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KAAE,MAAO,CAAEC,IAAK,2CAA4CC,MAAO,eAAa,EAChFF,KAAE,MAAO,CAAEC,IAAK,2CAA4CC,MAAO,oCAAkC,EAAGF,KAAE,MAAO,CAAEC,IAAK,2CAA4CC,MAAO,aAAW,EAAGF,KAAE,6BAA8B,CAAEC,IAAK,2CAA4CnH,MAAON,KAAKM,MAAO4H,UAAU,EAAMF,kBAAmBhI,KAAKgI,qBAAmB,EAAGR,KAAE,SAAU,CAAEC,IAAK,2CAA4C9C,KAAM,SAAUnF,GAAI,wBAAyBkI,MAAO,kBAAmBS,QAASA,IAAM7I,EAAuBC,SAASS,KAAK8H,gBAAiB,0BAA2B9H,KAAK+H,oBAAqBK,UAAWpI,KAAK8H,iBAAmB,cAAYN,KAAE,OAAQ,CAAEC,IAAK,2CAA4CjI,GAAI,yBAA0BkI,MAAO,WAAS,EAAGF,KAAE,OAAQ,CAAEC,IAAK,2CAA4CC,MAAO,oCAAkC,EACh2BF,KAAE,MAAO,CAAEC,IAAK,2CAA4CC,MAAO,2BAAyB,EAAGF,KAAE,IAAK,CAAEC,IAAK,2CAA4CG,MAAO,CAAE,YAAa,UAAa,4BAAyB,EAAGJ,KAAE,SAAU,CAAEC,IAAK,4CAA8C,qBAAkB,EAAGD,KAAE,IAAK,CAAEC,IAAK,6CAA2C,EAAGD,KAAE,OAAQ,CAAEC,IAAK,2CAA4CjI,GAAI,QAASkI,MAAO,sCAAwC1H,KAAKiI,kBAAgB5B,KAAcmB,KAAE,IAAK,CAAEF,KAAM,IAAKI,MAAO,mBAAqB,eAE9jB,GAEJG,EAA0BD,MApBW","names":["TokenActivationKind","Unknown","Append","AppendOrNow","Now","Exact","TokenActivationHelpers","activate","id","contrId","controllerAction","workerType","hideActivateTokenBtn","hideWizardActivateToken","hideWizardActivateToken2","hideActivateThroughConfig","this","disableActivationButtons","showLoadingIndicators","clearAlerts","control","getControl","token","value","trim","isValidGuid","showInvalidTokenError","enableActivationButtons","hideLoadingIndicators","data","createTokenActivationModel","isOverlapPromptVisible","setActivationKindAndDate","$","response","tokenActivation_completed","fail","handleActivationError","prop","removeClass","addClass","remove","length","RegExp","test","append","ConfigurationId","Token","ActivationKind","ActivationDate","WorkerType","is","tokenActivationKind","val","activationDate","jqXHR","_textStatus","errorThrown","console","error","status","errorMsg","responseJSON","message","detailsLink","errorDiv","find","click","e","preventDefault","detailsDiv","toggle","text","success","showSuccessMessage","hideActivationButtons","handleWizardActivation","dispatchTokenActivationCompletedEvent","userPrompt","showUserPrompt","appendDate","StartDate","showErrorMessage","hideOverlapPrompt","resetActivationUI","window","tokenJustActivated","hide","url","location","origin","type","event","Event","document","dispatchEvent","startDate","formattedDate","Date","toLocaleDateString","formattedStartDate","updatePromptMessages","setPromptControlsReadOnly","show","formattedEndDate","defaultMessage","defaultMessageStartDate","updatedMessageHtml","html","validFromHtml","replace","CosoTokenActivation","constructor","hostRef","registerInstance","tokenActivationSuccess","closeModalRedirectPath","undefined","componentWillLoad","ready","on","hasClass","reload","button","relatedTarget","attr","_token","Number","off","activeFocusTrap","createFocusTrap","deactivate","addEventListener","componentDidLoad","href","render","h","key","class","role","style","CosoTokenActivationWizard","configurationId","tokenActivationUrl","productPricingUrl","isWizardStep","isWizard","onClick","disabled"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./node_modules/@coso/saas/dist/esm/token-activation-helpers-db86e106.js","./node_modules/@coso/saas/dist/esm/coso-token-activation_2.entry.js"],"sourcesContent":["import $ from 'jquery';\n\nvar TokenActivationKind;\n(function (TokenActivationKind) {\n TokenActivationKind[TokenActivationKind[\"Unknown\"] = 0] = \"Unknown\";\n TokenActivationKind[TokenActivationKind[\"Append\"] = 1] = \"Append\";\n TokenActivationKind[TokenActivationKind[\"AppendOrNow\"] = 2] = \"AppendOrNow\";\n TokenActivationKind[TokenActivationKind[\"Now\"] = 3] = \"Now\";\n TokenActivationKind[TokenActivationKind[\"Exact\"] = 4] = \"Exact\";\n})(TokenActivationKind || (TokenActivationKind = {}));\nclass TokenActivationHelpers {\n static activate(id, contrId, controllerAction = \"/Token/Activate/\", workerType = 0, hideActivateTokenBtn = true, hideWizardActivateToken = true, hideWizardActivateToken2 = true, hideActivateThroughConfig = true) {\n this.disableActivationButtons();\n this.showLoadingIndicators();\n this.clearAlerts();\n const control = this.getControl(contrId);\n if (!control)\n return;\n const token = control.value.trim();\n if (!this.isValidGuid(token)) {\n this.showInvalidTokenError();\n this.enableActivationButtons();\n this.hideLoadingIndicators();\n return;\n }\n const data = this.createTokenActivationModel(id, token, workerType);\n if (this.isOverlapPromptVisible()) {\n this.setActivationKindAndDate(data);\n }\n $.post(controllerAction, data, (response) => this.tokenActivation_completed(response, hideActivateTokenBtn, hideWizardActivateToken, hideWizardActivateToken2, hideActivateThroughConfig)).fail(this.handleActivationError);\n }\n static disableActivationButtons() {\n $(\"#activateTokenBtn, #wizardActivateToken, #wizardActivateToken2, #activateThroughConfig\").prop(\"disabled\", true);\n }\n static enableActivationButtons() {\n $(\"#activateTokenBtn, #wizardActivateToken, #wizardActivateToken2, #activateThroughConfig\").prop(\"disabled\", false);\n }\n static showLoadingIndicators() {\n $(\"#activateAnotherLink, #loadingTokenActivation\").removeClass(\"hidden\");\n }\n static hideLoadingIndicators() {\n $(\"#activateAnotherLink, #loadingTokenActivation\").removeClass(\"hidden\").addClass(\"hidden\");\n }\n static clearAlerts() {\n $(\".tokenBody .alert\").remove();\n }\n static getControl(contrId) {\n let control = $(contrId)[0];\n if (!control && $(\"#activateTokenForm_isWizardModal\").length > 0) {\n control = $(\"#tokenInputBox_isWizardModal\")[0];\n }\n return control;\n }\n static isValidGuid(token) {\n const guidRegexp = new RegExp(\"^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$\");\n return guidRegexp.test(token);\n }\n static showInvalidTokenError() {\n $(\"#tokenInput, #tokenInput_isWizard, #tokenInput_isWizardModal\").addClass(\"has-error\");\n $(\".tokenBody\").append('