{"version":3,"file":"ApplyOrientationForm.CnNENu_L.js","sources":["../../../../../../src/lib/utils/popup-utils.ts","../../../../../../src/lib/components/organisms/Form/ApplyOrientationForm.svelte"],"sourcesContent":["export class PopupUtils {\n private static readonly POPUP_EXPIRATION_KEY = \"popupExpiration\";\n private static readonly POPUP_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 7; // 7 days\n private static readonly POPUP_CLOSED_KEY = \"popupClosed\";\n private static readonly POPUP_CLOSED_TIME = 1000 * 60 * 60 * 24 * 7; // 7 days\n\n public static isPopupExpired(): boolean {\n if (typeof window === \"undefined\") {\n return true;\n }\n const expiration = localStorage.getItem(PopupUtils.POPUP_EXPIRATION_KEY);\n if (expiration === null) {\n return true;\n }\n const expirationDate = new Date(expiration);\n const now = new Date();\n return now > expirationDate;\n }\n\n public static setPopupExpiration(): void {\n const now = new Date();\n const expirationDate = new Date(now.getTime() + PopupUtils.POPUP_EXPIRATION_TIME);\n localStorage.setItem(PopupUtils.POPUP_EXPIRATION_KEY, expirationDate.toISOString());\n }\n\n public static clearPopupExpiration(): void {\n localStorage.removeItem(PopupUtils.POPUP_EXPIRATION_KEY);\n }\n\n public static isPopupClosed(): boolean {\n if (typeof window === \"undefined\") {\n return false;\n }\n const closed = localStorage.getItem(PopupUtils.POPUP_CLOSED_KEY);\n if (closed === null) {\n return false;\n }\n const closedDate = new Date(closed);\n const now = new Date();\n return now < closedDate;\n }\n\n public static setPopupClosed(): void {\n const now = new Date();\n const closedDate = new Date(now.getTime() + PopupUtils.POPUP_CLOSED_TIME);\n localStorage.setItem(PopupUtils.POPUP_CLOSED_KEY, closedDate.toISOString());\n }\n\n public static clearPopupClosed(): void {\n localStorage.removeItem(PopupUtils.POPUP_CLOSED_KEY);\n }\n\n}\n","\n\n\n
\n"],"names":["_PopupUtils","expiration","expirationDate","now","closed","closedDate","__publicField","PopupUtils","ctx","switchtoggle_props","insert_hydration","target","div","anchor","append_hydration","span","switchtoggle_changes","textfield0_props","textfield1_props","textfield2_props","textfield3_props","customselect0_props","create_if_block","customselect1_props","customselect2_props","switchtoggle0_props","switchtoggle1_props","form_1","div0","span0","div1","span1","textfield0_changes","textfield1_changes","textfield2_changes","textfield3_changes","customselect0_changes","customselect1_changes","customselect2_changes","switchtoggle0_changes","switchtoggle1_changes","loading","$$props","authStore","useOktaStore","campaignStore","useCampaignStore","sessionStore","useSessionStore","cookiesStore","useCookiesStore","orientationStore","useOrientationStore","campaignData","get","firstClickCampaign","webid","ctaService","useCtaServicesApiClient","dispatch","createEventDispatcher","userInfo","isLoggedIn","pendingUserInfo","companyStatus","name","field","$userInfo","$pendingUserInfo","requiredValidation","lastname","email","emailValidation","phone","patternValidation","occupation","topics","arrayRequired","frequency","scholarship","financing","subscribe","orientation","form","buildRequest","$isLoggedIn","$name","$lastname","$email","$phone","$subscribe","$companyStatus","$topics","$occupation","$frequency","$financing","$scholarship","handleSubmit","$orientation","orientationReq","createCtaEvent","e","handleTopicsChange","event","lastSelectedValue","choosenTopics","topic","$$self","value","$$invalidate"],"mappings":"g0CAAO,MAAMA,EAAN,MAAMA,CAAW,CAMtB,OAAc,gBAA0B,CAClC,GAAA,OAAO,OAAW,IACb,MAAA,GAET,MAAMC,EAAa,aAAa,QAAQD,EAAW,oBAAoB,EACvE,GAAIC,IAAe,KACV,MAAA,GAEH,MAAAC,EAAiB,IAAI,KAAKD,CAAU,EAE1C,WADgB,KACHC,CAAA,CAGf,OAAc,oBAA2B,CACjC,MAAAC,MAAU,KACVD,EAAiB,IAAI,KAAKC,EAAI,QAAQ,EAAIH,EAAW,qBAAqB,EAChF,aAAa,QAAQA,EAAW,qBAAsBE,EAAe,aAAa,CAAA,CAGpF,OAAc,sBAA6B,CAC5B,aAAA,WAAWF,EAAW,oBAAoB,CAAA,CAGzD,OAAc,eAAyB,CACjC,GAAA,OAAO,OAAW,IACb,MAAA,GAET,MAAMI,EAAS,aAAa,QAAQJ,EAAW,gBAAgB,EAC/D,GAAII,IAAW,KACN,MAAA,GAEH,MA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