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4CQ,KAAM,QAASN,MAAO,uBAAwBD,GAAK,cAAahC,KAAKC,kBAAkBD,KAAKE,uBAAwBkC,KAAM,sBAAuBT,MAAO,YAAU,EAAGG,KAAE,QAAS,CAAEC,IAAK,2CAA4CE,MAAO,uBAAwBE,QAAU,cAAanC,KAAKC,kBAAkBD,KAAKE,uBAAwB8B,GAAK,iBAAgBhC,KAAKC,kBAAkBD,KAAKE,wBAA0B,eAAgB,SAAM,EAAG4B,KAAE,MAAO,CAAEC,IAAK,2CAA4CE,MAAO,gCAA8B,EAAGH,KAAE,QAAS,CAAEC,IAAK,2CAA4CQ,KAAM,QAASN,MAAO,uBAAwBD,GAAK,kBAAiBhC,KAAKC,kBAAkBD,KAAKE,uBAAwBkC,KAAM,sBAAuBT,MAAO,WAAS,EAAGG,KAAE,QAAS,CAAEC,IAAK,2CAA4CE,MAAO,uBAAwBE,QAAU,kBAAiBnC,KAAKC,kBAAkBD,KAAKE,wBAA0B,wBAAyBF,KAAKQ,mBAAmBsB,KAAE,MAAO,CAAEG,MAAO,aAAcD,GAAK,sBAAqBhC,KAAKC,kBAAkBD,KAAKE,yBAAuB,EAAG4B,KAAE,QAAS,CAAEK,QAAU,oBAAmBnC,KAAKC,kBAAkBD,KAAKE,wBAA0B,sBAAmB,EAAG4B,KAAE,QAAS,CAAEc,aAAc,MAAOX,MAAO,eAAgB,eAAgB,iDAAkD,cAAe,UAAW,eAAgB,QAAS,WAAY,OAAQ,gBAAiB,4BAA6BD,GAAK,oBAAmBhC,KAAKC,kBAAkBD,KAAKE,uBAAwBkC,KAAM,oBAAqBG,KAAM,qBACz/H,GAEJ3C,EAAwBsC,MA7CW","names":["CosoTokenActivationForm","constructor","hostRef","registerInstance","this","_isWizardString","_isWizardModalString","isWizard","undefined","isWizardModal","token","productPricingUrl","showDatePicker","componentWillLoad","componentDidLoad","currentDate","Date","offset","getTimezoneOffset","getTime","date","toISOString","slice","dateInputSelector","$","val","inputSelector","prop","change","event","target","value","on","render","h","key","id","class","style","htmlFor","name","placeholder","title","type","href","display","role","checked","autocomplete"],"ignoreList":[],"sourceRoot":"webpack:///","sources":["./node_modules/@coso/saas/dist/esm/coso-token-activation-form.entry.js"],"sourcesContent":["import { r as registerInstance, h } from './index-687e57d5.js';\nimport $ from 'jquery';\n\nconst cosoTokenActivationFormCss = \":host{display:block}\";\nconst CosoTokenActivationFormStyle0 = cosoTokenActivationFormCss;\n\nconst CosoTokenActivationForm = class {\n constructor(hostRef) {\n registerInstance(this, hostRef);\n this._isWizardString = \"\";\n this._isWizardModalString = \"\";\n this.isWizard = undefined;\n this.isWizardModal = undefined;\n this.token = undefined;\n this.productPricingUrl = undefined;\n this.showDatePicker = false;\n }\n componentWillLoad() {\n if (this.isWizard) {\n this._isWizardString = \"_isWizard\";\n }\n if (this.isWizardModal) {\n this._isWizardModalString = \"_isWizardModal\";\n }\n }\n componentDidLoad() {\n let currentDate = new Date();\n const offset = currentDate.getTimezoneOffset();\n currentDate = new Date(currentDate.getTime() - offset * 60 * 1000);\n let date = currentDate.toISOString().slice(0, 16);\n let dateInputSelector = \"#subscriptionStart\" + this._isWizardString + this._isWizardModalString;\n $(dateInputSelector).val(date);\n let inputSelector = \"#rbValidNow\" + this._isWizardString + this._isWizardModalString;\n $(inputSelector).prop(\"checked\", true);\n $(\"input[type=radio][name=tokenActivationKind]\").change((event) => {\n this.showDatePicker = event.target.value === \"Exact\";\n });\n $(\"#tokenInputBox\").on(\"input\", () => {\n this.showDatePicker = false;\n });\n $(\"#tokenInputBox_isWizard\").on(\"input\", () => {\n this.showDatePicker = false;\n });\n }\n render() {\n return (h(\"form\", { key: 'bf576ff7433ff1bc784aa1007cb518f2f61e7e9b', id: `activateTokenForm${this._isWizardString}${this._isWizardModalString}` }, h(\"div\", { key: 'c41f8291193b4cbe8a126fdf6637b7edb6a3fd4b', class: \"form-group\", id: `tokenInput${this._isWizardString}${this._isWizardModalString}`, style: { \"max-width\": \"400px\" } }, h(\"label\", { key: 'e2b588fb2c328ef2c2503bb8ff604ef154b1d1e1', class: \"col-form-label\", htmlFor: `tokenInputBox${this._isWizardString}${this._isWizardModalString}` }, \"Activation Token\"), h(\"input\", { key: '00506cee032772c43c3f285f19a3a041ec2f66ee', class: \"form-control popoverElement\", \"data-content\": \"Input here the token you've received in your email address.\", \"data-placement\": \"right\", \"data-toggle\": \"popover\", \"data-trigger\": \"hover\", id: `tokenInputBox${this._isWizardString}${this._isWizardModalString}`, name: \"Token\", placeholder: \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", title: \"\", type: \"text\", value: this.token, \"data-original-title\": \"Activation Token\" }), this.productPricingUrl ? (h(\"small\", null, \"Don't have an activation token?\", \" \", h(\"a\", { class: \"underline-link\", href: this.productPricingUrl, target: \"_blank\" }, \"Purchase Online\"))) : undefined, h(\"div\", { key: 'b34a96ad54219b1a36d0e9d2490435a4373a041b', class: \"mt-3\" }, h(\"strong\", { key: '4975d7d1de9e7a9b293101877e5000834a38ea77' }, \"Kindly note that activating a paid subscription ends your free trial.\"))), h(\"div\", { key: '5e95efc66eca8f5ffdfc2d25b9eae081e936cb1f', class: \"overlapPrompt\", style: { display: \"none\" } }, h(\"p\", { key: '17cf996ac1d996462ef01d390b09d96924dba8da', id: `lblTokenActivationMessage${this._isWizardString}${this._isWizardModalString}`, class: \"small\" }), h(\"div\", { key: 'de80853b3c0fc627728d3f9c947b12b7db0da6c5', id: \"subscriptionOptions\", class: \"form-group\", role: \"radiogroup\" }, h(\"div\", { key: '75af67864a63e7b12683ffe8f745f8a7362b3782', class: \"custom-control custom-radio\" }, h(\"input\", { key: 'efe01f94fa7ca67f5fd9854ade569c81baf80e5c', type: \"radio\", class: \"custom-control-input\", id: `rbValidNow${this._isWizardString}${this._isWizardModalString}`, name: \"tokenActivationKind\", value: \"Now\", checked: true }), h(\"label\", { key: 'f3af2a74e485cb1f4c1921b4d881a9eae8c80add', class: \"custom-control-label\", htmlFor: `rbValidNow${this._isWizardString}${this._isWizardModalString}` }, \"Active from now\")), h(\"div\", { key: '26f0e5f605b85bd80a2046498a959944c026a695', class: \"custom-control custom-radio\" }, h(\"input\", { key: '16f4f736ba9842b9bc5b748eeeecd7c1b619ff6a', type: \"radio\", class: \"custom-control-input\", id: `rbValidFrom${this._isWizardString}${this._isWizardModalString}`, name: \"tokenActivationKind\", value: \"Append\" }), h(\"label\", { key: 'fb82a290a71cdcbddad9c88ec2495afbfa03fb4f', class: \"custom-control-label\", htmlFor: `rbValidFrom${this._isWizardString}${this._isWizardModalString}`, id: `lblRbValidFrom${this._isWizardString}${this._isWizardModalString}` }, \"Active from \", \"{0}\")), h(\"div\", { key: '18a6c51f3e7148ec98ccd6c5f6948913e64e9012', class: \"custom-control custom-radio\" }, h(\"input\", { key: 'bb7ae7f177a3e103bd37311e799b27d6e7fe1967', type: \"radio\", class: \"custom-control-input\", id: `rbValidFromDate${this._isWizardString}${this._isWizardModalString}`, name: \"tokenActivationKind\", value: \"Exact\" }), h(\"label\", { key: 'd47ad5a8699cbc6345a149305985bea26b4da7b4', class: \"custom-control-label\", htmlFor: `rbValidFromDate${this._isWizardString}${this._isWizardModalString}` }, \"Select custom date\"))), this.showDatePicker && (h(\"div\", { class: \"form-group\", id: `datePickerContainer${this._isWizardString}${this._isWizardModalString}` }, h(\"label\", { htmlFor: `subscriptionStart${this._isWizardString}${this._isWizardModalString}` }, \"Choose start date\"), h(\"input\", { autocomplete: \"off\", class: \"form-control\", \"data-content\": \"Specifies date to start the subscription from.\", \"data-toggle\": \"popover\", \"data-trigger\": \"hover\", \"data-val\": \"true\", \"data-val-date\": \"The value must be a date.\", id: `subscriptionStart${this._isWizardString}${this._isWizardModalString}`, name: \"subscriptionStart\", type: \"datetime-local\" }))))));\n }\n};\nCosoTokenActivationForm.style = CosoTokenActivationFormStyle0;\n\nexport { CosoTokenActivationForm as coso_token_activation_form };\n\n"],"x_google_ignoreList":[0]}