{"version":3,"sources":["Dialogs.js","ExternalPages.js","SnapOnline.js","TabLayout.js"],"names":["snapOnline","$","applyAutofocusToDynamicDialogContent","autofocusTarget","find","first","focus","data","select","updateDynamicDialogLayout","dialog","scroller","length","css","window","innerHeight","setDynamicDialogContentAndOpen","content","open","closeDynamicDialogWindow","windowObject","close","applyAutofocusToDynamicLogInDialogContent","Dialogs","changeDynamicDialogWindowTitle","title","setOptions","onDynamicDialogContentRefreshed","addWaitSpinnerToDialog","dialogWindow","getWaitSpinnerImage","openQwizardWindow","contentUrl","modal","draggable","width","height","kendo","ui","progress","element","refresh","center","closeSharedDialogWindow","createDynamicDialogWindow","id","kendoWindow","iframe","scrollable","resizable","pinned","actions","position","top","left","innerWidth","activate","deactivate","destroy","createDynamicLogInDialogWindow","onDynamicLogInDialogContentRefreshed","closeDynamicLogInDialogWindow","updateDynamicLogInDialogLayout","changeDynamicDialogLogInWindowTitle","immediatelyDestroyDynamicDialogWindow","closeCustomDialog","dialogSelector","remove","messageDialog","text","messageAndButton","append","html","click","confirmDialog","question","Promise","resolve","reject","message","buttons","waitDialog","waitImgUrl","getSolBaseUrl","kendoDialog","closable","createDownloadDialog","url","createResponseDownloadDialog","exportFormatid","val","parseInt","ResponsesPage","getExportOptionFlags","onDownloadReady","cookieName","waitForCookie","then","document","cookie","noop","showErrorMessage","iconAndMessage","SnapOnline","jQuery","ExternalPages","onLoginFormSubmitted","form","validate","valid","prop","addClass","hide","hideElementUnlessCapsLockOn","event","elementId","getModifierState","getElementById","style","display","Recaptcha","responseid","getResourceActionUrl","params","response","__RequestVerificationToken","getRequestVerificationToken","post","done","captchaResponse","parseJSON","Response","success","show","error","toggleDeviceName","checked","removeClass","saveCookieStatus","toggle","localStorage","setItem","kendoEncode","value","replace","kendoGridFilterQuery","gridName","filterState","grid","dataSourceState","dataSource","transport","parameterMap","filter","sort","group","attr","charAt","substring","getCurrentResourceId","getControllerUrl","controllerName","join","getActionUrl","actionName","resourceId","param","replaceElementWithAjaxGet","get","fail","jqXhr","textStatus","errorThrown","getEnabledDisabledImage","enabledTitle","disabledTitle","getYesNoDontKnowImage","getEnabledImageIfTrue","getWarningImageIfTrue","warningTitle","size","filename","isInIframe","self","e","showDropDown","target","srcElement","closest","stopPropagation","one","flashSelection","jquerySelection","fadeIn","fadeOut","onAccordionItemClicked","sender","siblings","onAccordionPanelClicked","menuItems","next","datePicker","format","kendoDatePicker","getCookie","cookies","split","n","item","trim","indexOf","timeout","remainingAttempts","downloadInterval","setInterval","clearInterval","setIframeHeightToFitContents","frame","minimumHeight","Math","max","contentWindow","body","scrollHeight","showSpinner","ShowBuildTab","hideBuildTab","HideBuildTab","forceRefresh","location","href","checkForInvalidCharacters","invalidCharDetected","initializeClipboard","button","clipboard","ClipboardJS","on","clearSelection","label","delay","this","trigger","after","toggleMFASettings","toggleClass","initMFASettings","launchMFAConfigureDialog","paddingLeft","closeMFADialog","deleteTrustedDevice","ID","deviceName","navigateAwayFromEditorHandler","TabLayout","setActivePanelId","panelId","panelLink","refreshSurveyTitleAndStatus","setNavigateAwayFromEditorHandler","remoteHandler","preventDefault"],"mappings":";AAAA,cAEA,SAAAA,EAAAC,GAGA,SAAAC,IACA,IAAAC,EAAAF,EAAA,wBAAAG,KAAA,oBAAAC,QACAF,IACAA,EAAAG,QACAH,EAAAI,KAAA,qBACAJ,EAAAK,UAOA,SAAAC,IACA,IAAAC,EAAAT,EAAA,wBACAU,EAAAD,EAAAN,KAAA,kCACAM,EAAAN,KAAA,yBACAQ,QACAF,EAAAG,IAAA,UAAA,KAEAF,EAAAC,QACAD,EAAAE,IAAA,aAAAC,OAAAC,YAAA,KAKA,SAAAC,EAAAN,EAAAO,GACAP,EAAAO,QAAAA,GACAR,IACAC,EAAAQ,OAIA,SAAAC,IACA,IAAAC,EAAAnB,EAAA,wBAAAM,KAAA,eACAa,GACAA,EAAAC,QAsJA,SAAAC,IACA,IAAAnB,EAAAF,EAAA,6BAAAG,KAAA,oBAAAC,QACAF,IACAA,EAAAG,Q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AAoD,MAEA5H,EAAAoG,OAhTA,CAkTAtF,OAAAyF,WAAAzF,OAAAyF,YAAA,GAAAC,QCrTA,IAAAqJ,8BAAA,MAEA,SAAA7P,EAAAC,GAEAD,EAAA8P,UAAA9P,EAAA8P,WAAA,GAMA9P,EAAA8P,UAAAC,iBAAA,SAAAC,GACA,IAAAC,EAAAhQ,EAAA,IAAA+P,GACAC,EAAArP,SACAqP,EAAA5D,WAAA5D,YAAA,UACAwH,EAAAlJ,SAAA,YAMA/G,EAAA8P,UAAAI,4BAAA,WACAlQ,EAAAuK,0BAAA,SAAAvK,EAAA0H,qBAAA,WAAA,YAMA1H,EAAA8P,UAAAK,iCAAA,SAAAC,GACA,GAAAA,EAAA,CACA,GAAA,OAAAP,8BAAA,CAMA5P,EAAA,mCAAAwE,MALA,SAAA+G,GAGA,OAFAA,EAAA6E,iBACAR,8BAAA5P,EAAAuL,EAAAE,QAAAE,QAAA,KAAAhC,KAAA,UACA,IAIAiG,8BAAAO,IAnCA,CAsCAtP,OAAAyF,WAAAzF,OAAAyF,YAAA,GAAAC","file":"utils.min.js","sourcesContent":["'use strict';\r\n\r\n(function (snapOnline, $) {\r\n // Called when then Dynamic Dialog Window loads new content or finishes the 'open' animation;\r\n // we use it to ensure any autofocus element receives focus.\r\n function applyAutofocusToDynamicDialogContent() {\r\n var autofocusTarget = $('#dynamicDialogWindow').find('input[autofocus]').first();\r\n if (autofocusTarget) {\r\n autofocusTarget.focus();\r\n if (autofocusTarget.data('auto-select-text')) {\r\n autofocusTarget.select();\r\n }\r\n }\r\n }\r\n\r\n // Updates the layout of the Dynamic Dialog window to ensure that the outer padding (provided by\r\n // Kendo) is removed if the content is placed within our own padded container.\r\n function updateDynamicDialogLayout() {\r\n var dialog = $('#dynamicDialogWindow');\r\n var scroller = dialog.find('.modal-dialog-content-scroller');\r\n var content = dialog.find('.modal-dialog-content');\r\n if (content.length) {\r\n dialog.css('padding', '0');\r\n }\r\n if (scroller.length) {\r\n scroller.css('max-height', window.innerHeight - 270);\r\n }\r\n }\r\n\r\n // Sets the content of the Dynamic Dialog Window, updates its layout, then opens the window.\r\n function setDynamicDialogContentAndOpen(dialog, content) {\r\n dialog.content(content);\r\n updateDynamicDialogLayout();\r\n dialog.open();\r\n }\r\n\r\n // Closes and destroys the Kendo Window created by createDynamicDialogWindow().\r\n function closeDynamicDialogWindow() {\r\n var windowObject = $('#dynamicDialogWindow').data('kendoWindow');\r\n if (windowObject) {\r\n windowObject.close();\r\n }\r\n }\r\n\r\n // Ensure required nested namespaces are declared.\r\n snapOnline.Dialogs = snapOnline.Dialogs || {};\r\n\r\n // ----- Public interface from here -----\r\n\r\n snapOnline.Dialogs.changeDynamicDialogWindowTitle = function (title) {\r\n var windowObject = $('#dynamicDialogWindow').data('kendoWindow');\r\n if (windowObject) {\r\n windowObject.setOptions({\r\n title: title\r\n });\r\n }\r\n\r\n return;\r\n };\r\n\r\n // Ensures the Dynamic Dialog Window fits within the screen nicely, and that the first input is focused.\r\n snapOnline.Dialogs.onDynamicDialogContentRefreshed = function () {\r\n updateDynamicDialogLayout();\r\n applyAutofocusToDynamicDialogContent();\r\n };\r\n\r\n // Fills the specified dialog with a 'wait spinner'.\r\n // The 'dialogWindow' parameter should be a Kendo window.\r\n snapOnline.Dialogs.addWaitSpinnerToDialog = function (dialogWindow) {\r\n dialogWindow.content('
' + text + '