@cuemath/web-utils 2.0.0-beta.0 → 2.1.11-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -0
- package/.eslintrc.json +9 -0
- package/.husky/pre-commit +5 -0
- package/.huskyrc +5 -0
- package/.lintstagedrc.yml +5 -0
- package/.nvmrc +1 -0
- package/.prettierrc.json +1 -0
- package/.vscode/settings.json +1 -0
- package/README.md +1 -334
- package/dist/constants/country/index.d.ts +2 -0
- package/dist/constants/country/index.js +7 -0
- package/dist/constants/country/index.js.map +1 -0
- package/dist/constants/country/iso-country-code.d.ts +248 -0
- package/dist/constants/country/iso-country-code.js +252 -0
- package/dist/constants/country/iso-country-code.js.map +1 -0
- package/dist/constants/date-time/index.d.ts +17 -0
- package/dist/constants/date-time/index.js +42 -0
- package/dist/constants/date-time/index.js.map +1 -0
- package/dist/constants/date-time/international-timezones.d.ts +7 -0
- package/dist/constants/date-time/international-timezones.js +155 -0
- package/dist/constants/date-time/international-timezones.js.map +1 -0
- package/dist/constants/e-cna/index.d.ts +41 -0
- package/dist/constants/e-cna/index.js +45 -0
- package/dist/constants/e-cna/index.js.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +19 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/cookie/index.d.ts +4 -0
- package/dist/cookie/index.js +46 -0
- package/dist/cookie/index.js.map +1 -0
- package/dist/country/index.d.ts +1 -0
- package/dist/country/index.js +13 -0
- package/dist/country/index.js.map +1 -0
- package/dist/date-time-helper/e-cna.d.ts +32 -0
- package/dist/date-time-helper/e-cna.js +153 -0
- package/dist/date-time-helper/e-cna.js.map +1 -0
- package/dist/date-time-helper/index.d.ts +54 -0
- package/dist/date-time-helper/index.js +290 -0
- package/dist/date-time-helper/index.js.map +1 -0
- package/dist/e-cna/flow/aggregator.d.ts +473 -0
- package/dist/e-cna/flow/aggregator.js +17 -0
- package/dist/e-cna/flow/aggregator.js.map +1 -0
- package/dist/e-cna/flow/index.d.ts +1 -0
- package/dist/e-cna/flow/index.js +18 -0
- package/dist/e-cna/flow/index.js.map +1 -0
- package/dist/e-cna/flow/variants/default.d.ts +734 -0
- package/dist/e-cna/flow/variants/default.js +94 -0
- package/dist/e-cna/flow/variants/default.js.map +1 -0
- package/dist/e-cna/flow/variants/index.d.ts +1 -0
- package/dist/e-cna/flow/variants/index.js +18 -0
- package/dist/e-cna/flow/variants/index.js.map +1 -0
- package/dist/e-cna/index.d.ts +43 -0
- package/dist/e-cna/index.js +221 -0
- package/dist/e-cna/index.js.map +1 -0
- package/dist/e-cna/slides/child_hobbies/index.d.ts +1 -0
- package/dist/e-cna/slides/child_hobbies/index.js +18 -0
- package/dist/e-cna/slides/child_hobbies/index.js.map +1 -0
- package/dist/e-cna/slides/child_hobbies/variants.d.ts +22 -0
- package/dist/e-cna/slides/child_hobbies/variants.js +26 -0
- package/dist/e-cna/slides/child_hobbies/variants.js.map +1 -0
- package/dist/e-cna/slides/child_info/index.d.ts +1 -0
- package/dist/e-cna/slides/child_info/index.js +18 -0
- package/dist/e-cna/slides/child_info/index.js.map +1 -0
- package/dist/e-cna/slides/child_info/variants.d.ts +17 -0
- package/dist/e-cna/slides/child_info/variants.js +22 -0
- package/dist/e-cna/slides/child_info/variants.js.map +1 -0
- package/dist/e-cna/slides/child_personality/index.d.ts +1 -0
- package/dist/e-cna/slides/child_personality/index.js +18 -0
- package/dist/e-cna/slides/child_personality/index.js.map +1 -0
- package/dist/e-cna/slides/child_personality/variants.d.ts +12 -0
- package/dist/e-cna/slides/child_personality/variants.js +16 -0
- package/dist/e-cna/slides/child_personality/variants.js.map +1 -0
- package/dist/e-cna/slides/curriculum/index.d.ts +1 -0
- package/dist/e-cna/slides/curriculum/index.js +18 -0
- package/dist/e-cna/slides/curriculum/index.js.map +1 -0
- package/dist/e-cna/slides/curriculum/variants.d.ts +12 -0
- package/dist/e-cna/slides/curriculum/variants.js +17 -0
- package/dist/e-cna/slides/curriculum/variants.js.map +1 -0
- package/dist/e-cna/slides/grade/index.d.ts +1 -0
- package/dist/e-cna/slides/grade/index.js +18 -0
- package/dist/e-cna/slides/grade/index.js.map +1 -0
- package/dist/e-cna/slides/grade/variants.d.ts +25 -0
- package/dist/e-cna/slides/grade/variants.js +54 -0
- package/dist/e-cna/slides/grade/variants.js.map +1 -0
- package/dist/e-cna/slides/index.d.ts +19 -0
- package/dist/e-cna/slides/index.js +36 -0
- package/dist/e-cna/slides/index.js.map +1 -0
- package/dist/e-cna/slides/intro/index.d.ts +1 -0
- package/dist/e-cna/slides/intro/index.js +18 -0
- package/dist/e-cna/slides/intro/index.js.map +1 -0
- package/dist/e-cna/slides/intro/variants.d.ts +7 -0
- package/dist/e-cna/slides/intro/variants.js +11 -0
- package/dist/e-cna/slides/intro/variants.js.map +1 -0
- package/dist/e-cna/slides/key_need_l1/index.d.ts +1 -0
- package/dist/e-cna/slides/key_need_l1/index.js +18 -0
- package/dist/e-cna/slides/key_need_l1/index.js.map +1 -0
- package/dist/e-cna/slides/key_need_l1/variants.d.ts +26 -0
- package/dist/e-cna/slides/key_need_l1/variants.js +57 -0
- package/dist/e-cna/slides/key_need_l1/variants.js.map +1 -0
- package/dist/e-cna/slides/key_need_l2/index.d.ts +1 -0
- package/dist/e-cna/slides/key_need_l2/index.js +18 -0
- package/dist/e-cna/slides/key_need_l2/index.js.map +1 -0
- package/dist/e-cna/slides/key_need_l2/variants.d.ts +67 -0
- package/dist/e-cna/slides/key_need_l2/variants.js +139 -0
- package/dist/e-cna/slides/key_need_l2/variants.js.map +1 -0
- package/dist/e-cna/slides/key_need_l3/index.d.ts +1 -0
- package/dist/e-cna/slides/key_need_l3/index.js +18 -0
- package/dist/e-cna/slides/key_need_l3/index.js.map +1 -0
- package/dist/e-cna/slides/key_need_l3/variants.d.ts +11 -0
- package/dist/e-cna/slides/key_need_l3/variants.js +15 -0
- package/dist/e-cna/slides/key_need_l3/variants.js.map +1 -0
- package/dist/e-cna/slides/math-perception/index.d.ts +1 -0
- package/dist/e-cna/slides/math-perception/index.js +18 -0
- package/dist/e-cna/slides/math-perception/index.js.map +1 -0
- package/dist/e-cna/slides/math-perception/variants.d.ts +15 -0
- package/dist/e-cna/slides/math-perception/variants.js +32 -0
- package/dist/e-cna/slides/math-perception/variants.js.map +1 -0
- package/dist/e-cna/slides/other_curriculum/index.d.ts +1 -0
- package/dist/e-cna/slides/other_curriculum/index.js +18 -0
- package/dist/e-cna/slides/other_curriculum/index.js.map +1 -0
- package/dist/e-cna/slides/other_curriculum/variants.d.ts +12 -0
- package/dist/e-cna/slides/other_curriculum/variants.js +17 -0
- package/dist/e-cna/slides/other_curriculum/variants.js.map +1 -0
- package/dist/e-cna/slides/school_performance_5_12/index.d.ts +1 -0
- package/dist/e-cna/slides/school_performance_5_12/index.js +18 -0
- package/dist/e-cna/slides/school_performance_5_12/index.js.map +1 -0
- package/dist/e-cna/slides/school_performance_5_12/variants.d.ts +15 -0
- package/dist/e-cna/slides/school_performance_5_12/variants.js +26 -0
- package/dist/e-cna/slides/school_performance_5_12/variants.js.map +1 -0
- package/dist/e-cna/slides/school_performance_kg_4/index.d.ts +1 -0
- package/dist/e-cna/slides/school_performance_kg_4/index.js +18 -0
- package/dist/e-cna/slides/school_performance_kg_4/index.js.map +1 -0
- package/dist/e-cna/slides/school_performance_kg_4/variants.d.ts +14 -0
- package/dist/e-cna/slides/school_performance_kg_4/variants.js +28 -0
- package/dist/e-cna/slides/school_performance_kg_4/variants.js.map +1 -0
- package/dist/e-cna/slides/secondary_needs/index.d.ts +1 -0
- package/dist/e-cna/slides/secondary_needs/index.js +18 -0
- package/dist/e-cna/slides/secondary_needs/index.js.map +1 -0
- package/dist/e-cna/slides/secondary_needs/variants.d.ts +14 -0
- package/dist/e-cna/slides/secondary_needs/variants.js +28 -0
- package/dist/e-cna/slides/secondary_needs/variants.js.map +1 -0
- package/dist/e-cna/slides/signup/index.d.ts +1 -0
- package/dist/e-cna/slides/signup/index.js +18 -0
- package/dist/e-cna/slides/signup/index.js.map +1 -0
- package/dist/e-cna/slides/signup/variants.d.ts +7 -0
- package/dist/e-cna/slides/signup/variants.js +11 -0
- package/dist/e-cna/slides/signup/variants.js.map +1 -0
- package/dist/e-cna/slides/signup_refer/index.d.ts +1 -0
- package/dist/e-cna/slides/signup_refer/index.js +18 -0
- package/dist/e-cna/slides/signup_refer/index.js.map +1 -0
- package/dist/e-cna/slides/signup_refer/variants.d.ts +22 -0
- package/dist/e-cna/slides/signup_refer/variants.js +34 -0
- package/dist/e-cna/slides/signup_refer/variants.js.map +1 -0
- package/dist/e-cna/slides/slot_pick/index.d.ts +1 -0
- package/dist/e-cna/slides/slot_pick/index.js +18 -0
- package/dist/e-cna/slides/slot_pick/index.js.map +1 -0
- package/dist/e-cna/slides/slot_pick/variants.d.ts +12 -0
- package/dist/e-cna/slides/slot_pick/variants.js +16 -0
- package/dist/e-cna/slides/slot_pick/variants.js.map +1 -0
- package/dist/e-cna/slides/teacher_intro/index.d.ts +1 -0
- package/dist/e-cna/slides/teacher_intro/index.js +18 -0
- package/dist/e-cna/slides/teacher_intro/index.js.map +1 -0
- package/dist/e-cna/slides/teacher_intro/variants.d.ts +78 -0
- package/dist/e-cna/slides/teacher_intro/variants.js +114 -0
- package/dist/e-cna/slides/teacher_intro/variants.js.map +1 -0
- package/dist/e-cna/utils/index.d.ts +4 -0
- package/dist/e-cna/utils/index.js +28 -0
- package/dist/e-cna/utils/index.js.map +1 -0
- package/dist/index.d.ts +7 -313
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/local-storage/index.d.ts +13 -0
- package/dist/local-storage/index.js +172 -0
- package/dist/local-storage/index.js.map +1 -0
- package/dist/object/index.d.ts +6 -0
- package/dist/object/index.js +24 -0
- package/dist/object/index.js.map +1 -0
- package/package.json +11 -52
- package/src/constants/country/index.ts +2 -0
- package/src/constants/country/iso-country-code.ts +248 -0
- package/src/constants/date-time/index.ts +43 -0
- package/src/constants/date-time/international-timezones.ts +157 -0
- package/src/constants/e-cna/index.ts +55 -0
- package/src/constants/index.ts +2 -0
- package/src/cookie/index.ts +51 -0
- package/src/country/index.ts +9 -0
- package/src/date-time-helper/e-cna.ts +205 -0
- package/src/date-time-helper/index.ts +365 -0
- package/src/e-cna/flow/aggregator.ts +12 -0
- package/src/e-cna/flow/index.ts +1 -0
- package/src/e-cna/flow/variants/default.ts +112 -0
- package/src/e-cna/flow/variants/index.ts +1 -0
- package/src/e-cna/index.ts +249 -0
- package/src/e-cna/slides/child_hobbies/index.ts +1 -0
- package/src/e-cna/slides/child_hobbies/variants.ts +24 -0
- package/src/e-cna/slides/child_info/index.ts +1 -0
- package/src/e-cna/slides/child_info/variants.ts +18 -0
- package/src/e-cna/slides/child_personality/index.ts +1 -0
- package/src/e-cna/slides/child_personality/variants.ts +12 -0
- package/src/e-cna/slides/curriculum/index.ts +1 -0
- package/src/e-cna/slides/curriculum/variants.ts +14 -0
- package/src/e-cna/slides/grade/index.ts +1 -0
- package/src/e-cna/slides/grade/variants.ts +53 -0
- package/src/e-cna/slides/index.ts +19 -0
- package/src/e-cna/slides/intro/index.ts +1 -0
- package/src/e-cna/slides/intro/variants.ts +7 -0
- package/src/e-cna/slides/key_need_l1/index.ts +1 -0
- package/src/e-cna/slides/key_need_l1/variants.ts +57 -0
- package/src/e-cna/slides/key_need_l2/index.ts +1 -0
- package/src/e-cna/slides/key_need_l2/variants.ts +143 -0
- package/src/e-cna/slides/key_need_l3/index.ts +1 -0
- package/src/e-cna/slides/key_need_l3/variants.ts +13 -0
- package/src/e-cna/slides/math-perception/index.ts +1 -0
- package/src/e-cna/slides/math-perception/variants.ts +30 -0
- package/src/e-cna/slides/other_curriculum/index.ts +1 -0
- package/src/e-cna/slides/other_curriculum/variants.ts +14 -0
- package/src/e-cna/slides/school_performance_5_12/index.ts +1 -0
- package/src/e-cna/slides/school_performance_5_12/variants.ts +23 -0
- package/src/e-cna/slides/school_performance_kg_4/index.ts +1 -0
- package/src/e-cna/slides/school_performance_kg_4/variants.ts +25 -0
- package/src/e-cna/slides/secondary_needs/index.ts +1 -0
- package/src/e-cna/slides/secondary_needs/variants.ts +26 -0
- package/src/e-cna/slides/signup/index.ts +1 -0
- package/src/e-cna/slides/signup/variants.ts +7 -0
- package/src/e-cna/slides/signup_refer/index.ts +1 -0
- package/src/e-cna/slides/signup_refer/variants.ts +30 -0
- package/src/e-cna/slides/slot_pick/index.ts +1 -0
- package/src/e-cna/slides/slot_pick/variants.ts +12 -0
- package/src/e-cna/slides/teacher_intro/index.ts +1 -0
- package/src/e-cna/slides/teacher_intro/variants.ts +112 -0
- package/src/e-cna/utils/index.ts +32 -0
- package/src/index.ts +7 -0
- package/src/local-storage/index.ts +186 -0
- package/src/object/index.ts +26 -0
- package/tsconfig.json +8 -0
- package/dist/browser.d.mts +0 -15
- package/dist/browser.d.ts +0 -15
- package/dist/browser.js +0 -2
- package/dist/browser.js.map +0 -1
- package/dist/browser.mjs +0 -2
- package/dist/browser.mjs.map +0 -1
- package/dist/chunk-5X4UT2UI.js +0 -3
- package/dist/chunk-5X4UT2UI.js.map +0 -1
- package/dist/chunk-CVZIO6BX.mjs +0 -4
- package/dist/chunk-CVZIO6BX.mjs.map +0 -1
- package/dist/chunk-LUUB665J.mjs +0 -3
- package/dist/chunk-LUUB665J.mjs.map +0 -1
- package/dist/chunk-OBXSX4MO.js +0 -3
- package/dist/chunk-OBXSX4MO.js.map +0 -1
- package/dist/chunk-SMWXEBQ2.js +0 -4
- package/dist/chunk-SMWXEBQ2.js.map +0 -1
- package/dist/chunk-TG7DRTM7.mjs +0 -3
- package/dist/chunk-TG7DRTM7.mjs.map +0 -1
- package/dist/cloudfront-DRTOCXPV.d.mts +0 -758
- package/dist/cloudfront-DRTOCXPV.d.ts +0 -758
- package/dist/cloudfront.d.mts +0 -2
- package/dist/cloudfront.d.ts +0 -2
- package/dist/cloudfront.js +0 -2
- package/dist/cloudfront.js.map +0 -1
- package/dist/cloudfront.mjs +0 -2
- package/dist/cloudfront.mjs.map +0 -1
- package/dist/data-props-RvZdA60G.d.mts +0 -157
- package/dist/data-props-RvZdA60G.d.ts +0 -157
- package/dist/date-time-helper/timezone.d.mts +0 -61
- package/dist/date-time-helper/timezone.d.ts +0 -61
- package/dist/date-time-helper/timezone.js +0 -2
- package/dist/date-time-helper/timezone.js.map +0 -1
- package/dist/date-time-helper/timezone.mjs +0 -2
- package/dist/date-time-helper/timezone.mjs.map +0 -1
- package/dist/index.d.mts +0 -313
- package/dist/index.mjs +0 -4
- package/dist/index.mjs.map +0 -1
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
package/dist/cloudfront.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { A as AB_IDENTIFIER_KEY, B as BRAND_PAGES, o as CURRENCY_SYMBOL_MAP, E as EXPERIMENT_KEYS, I as INTENT_PAGES, C as ISO_COUNTRY_CODE, R as REFERRAL_PAGES, n as REGION, S as SUPPLY_PAGES, V as VARIANTS, k as checkContentPage, J as checkValidation, H as convertSecondsToMiliseconds, w as convertTimeStampToSeconds, v as dateByTimestamp, t as formatDateTime, x as formatTimestamp, f as getABExperimentCacheKey, O as getABVariantFromCookies, u as getCurrentTimestamp, G as getDateAfterDays, F as getISOTimeString, q as getLastLandingPage, l as getSubRevenueChannel, z as getTimeDiff, K as isEmpty, m as isSEO, L as nestedMapsAreEqual, M as parseCloudFrontCookies, p as parseCookieString, h as removeHrefLangFromPath, i as removeQueryStringFromPath, j as removeTrailingSlashFromPath, y as timeToX } from './cloudfront-DRTOCXPV.mjs';
|
|
2
|
-
import 'dayjs';
|
package/dist/cloudfront.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { A as AB_IDENTIFIER_KEY, B as BRAND_PAGES, o as CURRENCY_SYMBOL_MAP, E as EXPERIMENT_KEYS, I as INTENT_PAGES, C as ISO_COUNTRY_CODE, R as REFERRAL_PAGES, n as REGION, S as SUPPLY_PAGES, V as VARIANTS, k as checkContentPage, J as checkValidation, H as convertSecondsToMiliseconds, w as convertTimeStampToSeconds, v as dateByTimestamp, t as formatDateTime, x as formatTimestamp, f as getABExperimentCacheKey, O as getABVariantFromCookies, u as getCurrentTimestamp, G as getDateAfterDays, F as getISOTimeString, q as getLastLandingPage, l as getSubRevenueChannel, z as getTimeDiff, K as isEmpty, m as isSEO, L as nestedMapsAreEqual, M as parseCloudFrontCookies, p as parseCookieString, h as removeHrefLangFromPath, i as removeQueryStringFromPath, j as removeTrailingSlashFromPath, y as timeToX } from './cloudfront-DRTOCXPV.js';
|
|
2
|
-
import 'dayjs';
|
package/dist/cloudfront.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkSMWXEBQ2_js=require('./chunk-SMWXEBQ2.js');Object.defineProperty(exports,"AB_IDENTIFIER_KEY",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.X}});Object.defineProperty(exports,"BRAND_PAGES",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.O}});Object.defineProperty(exports,"CURRENCY_SYMBOL_MAP",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.x}});Object.defineProperty(exports,"EXPERIMENT_KEYS",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.V}});Object.defineProperty(exports,"INTENT_PAGES",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.P}});Object.defineProperty(exports,"ISO_COUNTRY_CODE",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.g}});Object.defineProperty(exports,"REFERRAL_PAGES",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.R}});Object.defineProperty(exports,"REGION",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.t}});Object.defineProperty(exports,"SUPPLY_PAGES",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.Q}});Object.defineProperty(exports,"VARIANTS",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.W}});Object.defineProperty(exports,"checkContentPage",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.U}});Object.defineProperty(exports,"checkValidation",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.N}});Object.defineProperty(exports,"convertSecondsToMiliseconds",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.H}});Object.defineProperty(exports,"convertTimeStampToSeconds",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.B}});Object.defineProperty(exports,"dateByTimestamp",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.A}});Object.defineProperty(exports,"formatDateTime",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.y}});Object.defineProperty(exports,"formatTimestamp",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.C}});Object.defineProperty(exports,"getABExperimentCacheKey",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.ca}});Object.defineProperty(exports,"getABVariantFromCookies",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.Z}});Object.defineProperty(exports,"getCurrentTimestamp",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.z}});Object.defineProperty(exports,"getDateAfterDays",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.G}});Object.defineProperty(exports,"getISOTimeString",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.F}});Object.defineProperty(exports,"getLastLandingPage",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.da}});Object.defineProperty(exports,"getSubRevenueChannel",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.T}});Object.defineProperty(exports,"getTimeDiff",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.E}});Object.defineProperty(exports,"isEmpty",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.I}});Object.defineProperty(exports,"isSEO",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.S}});Object.defineProperty(exports,"nestedMapsAreEqual",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.J}});Object.defineProperty(exports,"parseCloudFrontCookies",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.b}});Object.defineProperty(exports,"parseCookieString",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.a}});Object.defineProperty(exports,"removeHrefLangFromPath",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.L}});Object.defineProperty(exports,"removeQueryStringFromPath",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.K}});Object.defineProperty(exports,"removeTrailingSlashFromPath",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.M}});Object.defineProperty(exports,"timeToX",{enumerable:true,get:function(){return chunkSMWXEBQ2_js.D}});//# sourceMappingURL=cloudfront.js.map
|
|
2
|
-
//# sourceMappingURL=cloudfront.js.map
|
package/dist/cloudfront.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"cloudfront.js"}
|
package/dist/cloudfront.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{X as AB_IDENTIFIER_KEY,O as BRAND_PAGES,x as CURRENCY_SYMBOL_MAP,V as EXPERIMENT_KEYS,P as INTENT_PAGES,g as ISO_COUNTRY_CODE,R as REFERRAL_PAGES,t as REGION,Q as SUPPLY_PAGES,W as VARIANTS,U as checkContentPage,N as checkValidation,H as convertSecondsToMiliseconds,B as convertTimeStampToSeconds,A as dateByTimestamp,y as formatDateTime,C as formatTimestamp,ca as getABExperimentCacheKey,Z as getABVariantFromCookies,z as getCurrentTimestamp,G as getDateAfterDays,F as getISOTimeString,da as getLastLandingPage,T as getSubRevenueChannel,E as getTimeDiff,I as isEmpty,S as isSEO,J as nestedMapsAreEqual,b as parseCloudFrontCookies,a as parseCookieString,L as removeHrefLangFromPath,K as removeQueryStringFromPath,M as removeTrailingSlashFromPath,D as timeToX}from'./chunk-CVZIO6BX.mjs';//# sourceMappingURL=cloudfront.mjs.map
|
|
2
|
-
//# sourceMappingURL=cloudfront.mjs.map
|
package/dist/cloudfront.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"cloudfront.mjs"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
declare const REFERRAL_PAGE_PATH: string[];
|
|
2
|
-
declare const REVENUE_CHANNEL: {
|
|
3
|
-
REFERRAL: string;
|
|
4
|
-
ORGANIC: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
declare const LOCAL_STORAGE_PRIMARY_KEY = "CUEMATH_WEB";
|
|
8
|
-
declare const checkLocalStorageSupport: () => boolean;
|
|
9
|
-
declare const removeKeyFromObject: (obj: {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, keyToRemove: string) => {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
} | null;
|
|
14
|
-
declare const localStorageSet: (key: string | number, value: any, ttl?: number) => boolean;
|
|
15
|
-
declare const localStorageGet: (key: string) => null | string;
|
|
16
|
-
declare const localStorageGetAll: () => null | string;
|
|
17
|
-
declare const localStorageRemove: (key: string) => boolean;
|
|
18
|
-
declare const localStorageRemoveAll: () => boolean;
|
|
19
|
-
declare const removeExpiredKeysOnMount: () => boolean;
|
|
20
|
-
|
|
21
|
-
declare const getDates: (timezone: string) => Array<{
|
|
22
|
-
futureDate: number;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
|
|
26
|
-
declare const APP_ENV: {
|
|
27
|
-
PRODUCTION: string;
|
|
28
|
-
STAGING: string;
|
|
29
|
-
DEVELOPMENT: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
declare const isServer: boolean;
|
|
33
|
-
|
|
34
|
-
declare const loadScript: (id: string, url: string, onLoad: (event: Event) => void, onError: (event: Event | string) => void) => void;
|
|
35
|
-
|
|
36
|
-
declare function parseURLParams(inpURL: any): {
|
|
37
|
-
[k: string]: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
interface CountryCodeItem {
|
|
41
|
-
code: string;
|
|
42
|
-
label: string;
|
|
43
|
-
value: string;
|
|
44
|
-
geoIPCountryCode: string;
|
|
45
|
-
}
|
|
46
|
-
declare const filterCountryCode: (list: CountryCodeItem[], value: string, exactMatch: boolean) => CountryCodeItem[];
|
|
47
|
-
|
|
48
|
-
type Platform = 'website' | 'app' | 'astro' | 'leap-teacher' | 'leap-admin';
|
|
49
|
-
type RevenueChannel = 'organic' | 'performance' | 'affiliate' | 'offline' | 'referral' | 'unknown';
|
|
50
|
-
type SignupFlow = 'regular' | 'e-cna' | 'e-sales' | 'e-cna-exit';
|
|
51
|
-
type Experiments = Record<string, unknown>;
|
|
52
|
-
type UTMParams = {
|
|
53
|
-
utm_source?: string;
|
|
54
|
-
utm_medium?: string;
|
|
55
|
-
utm_campaign?: string;
|
|
56
|
-
utm_term?: string;
|
|
57
|
-
utm_content?: string;
|
|
58
|
-
utm_adcontent?: string;
|
|
59
|
-
};
|
|
60
|
-
type SignupForm = {
|
|
61
|
-
form_id?: string;
|
|
62
|
-
product?: string;
|
|
63
|
-
process?: string;
|
|
64
|
-
};
|
|
65
|
-
type PageProps = {
|
|
66
|
-
url_path?: string;
|
|
67
|
-
page_profile?: string;
|
|
68
|
-
timestamp?: Date;
|
|
69
|
-
};
|
|
70
|
-
type SourceDetailsCookie = {
|
|
71
|
-
platform_channel: Platform;
|
|
72
|
-
experiment_dict?: Experiments;
|
|
73
|
-
flow?: SignupFlow;
|
|
74
|
-
utm_params?: UTMParams;
|
|
75
|
-
affiliate_channel?: string;
|
|
76
|
-
offline_channel?: string;
|
|
77
|
-
performance_channel?: string;
|
|
78
|
-
revenue_channel: RevenueChannel;
|
|
79
|
-
flow_entry?: string;
|
|
80
|
-
first_page?: PageProps;
|
|
81
|
-
signup_page?: PageProps;
|
|
82
|
-
landing_page_24_hours?: PageProps;
|
|
83
|
-
landing_page_session?: PageProps;
|
|
84
|
-
last_page?: string;
|
|
85
|
-
sales_process?: string;
|
|
86
|
-
guest_id?: string;
|
|
87
|
-
current?: Partial<SourceDetailsCookie>;
|
|
88
|
-
landing_page?: string;
|
|
89
|
-
referrer?: string;
|
|
90
|
-
source_channel?: string;
|
|
91
|
-
page_profile?: string;
|
|
92
|
-
sub_platform?: string;
|
|
93
|
-
current_page?: string;
|
|
94
|
-
current_page_category?: string;
|
|
95
|
-
signup_form?: SignupForm;
|
|
96
|
-
product?: string;
|
|
97
|
-
};
|
|
98
|
-
type SourceDetails = {
|
|
99
|
-
platform: Platform;
|
|
100
|
-
experiments?: Experiments;
|
|
101
|
-
flow?: SignupFlow;
|
|
102
|
-
utmParams?: UTMParams;
|
|
103
|
-
affiliateChannel?: string;
|
|
104
|
-
offlineChannel?: string;
|
|
105
|
-
performanceChannel?: string;
|
|
106
|
-
revenueChannel: RevenueChannel;
|
|
107
|
-
flowEntry?: string;
|
|
108
|
-
firstPage?: string;
|
|
109
|
-
lastPage?: string;
|
|
110
|
-
guestId?: string;
|
|
111
|
-
salesProcess?: string;
|
|
112
|
-
landingPage?: string;
|
|
113
|
-
referrer?: string;
|
|
114
|
-
sourceChannel?: string;
|
|
115
|
-
pageProfile?: string;
|
|
116
|
-
subPlatform?: string;
|
|
117
|
-
lastLandingPage?: string;
|
|
118
|
-
product?: string;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
declare const readSourceCookie: () => SourceDetailsCookie;
|
|
122
|
-
declare const isSourcePresent: () => boolean;
|
|
123
|
-
declare const initSourceDetails: ({ platform, experiments, flow, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, utmParams, lastLandingPage, product, }: SourceDetails) => Promise<void>;
|
|
124
|
-
declare const setFlowEntryPoint: (flowEntry: string) => Promise<void>;
|
|
125
|
-
declare const setFlow: (flow: SignupFlow) => Promise<void>;
|
|
126
|
-
declare const setRevenueChannel: (revenueChannel: RevenueChannel) => Promise<void>;
|
|
127
|
-
declare const setSalesProcess: (salesProcess: string) => Promise<void>;
|
|
128
|
-
declare const clearSalesProcess: () => Promise<void>;
|
|
129
|
-
declare const updateGuestId: (guestId: string) => Promise<void>;
|
|
130
|
-
declare const setFirstPage: (pagePath: string) => Promise<void>;
|
|
131
|
-
declare const setPlatformChannel: (platformChannel: Platform) => Promise<void>;
|
|
132
|
-
declare const setLandingPage: (landingPage: string) => Promise<void>;
|
|
133
|
-
declare const setSignupPage: (signupPage: string) => Promise<void>;
|
|
134
|
-
declare const setLastLandingPage: (lastLandingPage: string, createdAt: Date) => Promise<void>;
|
|
135
|
-
declare const setReferrer: (referrer: string) => Promise<void>;
|
|
136
|
-
declare const setSourceChannel: (sourceChannel: string) => Promise<void>;
|
|
137
|
-
declare const setSignupForm: (signupForm: SignupForm) => Promise<void>;
|
|
138
|
-
declare const clearSignupForm: () => Promise<void>;
|
|
139
|
-
declare const setProduct: (product: string) => Promise<void>;
|
|
140
|
-
declare const getSourceChannel: (utmSource: string) => string;
|
|
141
|
-
|
|
142
|
-
declare const getAttributes: (target: HTMLElement) => {
|
|
143
|
-
CTA: string;
|
|
144
|
-
parentScreen: string | null | undefined;
|
|
145
|
-
entrySection: string | null | undefined;
|
|
146
|
-
entryPoint: string | null | undefined;
|
|
147
|
-
parentDomId: string | null | undefined;
|
|
148
|
-
ctaType: string | null;
|
|
149
|
-
formId: string | null | undefined;
|
|
150
|
-
customTracking: string | null | undefined;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
declare const getDataProps: (entryPoint: string | undefined, entrySection: string | undefined, topic: string | undefined, isCustomTracking: boolean) => {
|
|
154
|
-
[key: string]: string | boolean;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { setSignupForm as A, clearSignupForm as B, setProduct as C, getSourceChannel as D, parseURLParams as E, getDates as F, filterCountryCode as G, isServer as H, APP_ENV as I, REVENUE_CHANNEL as J, removeKeyFromObject as K, LOCAL_STORAGE_PRIMARY_KEY as L, REFERRAL_PAGE_PATH as R, localStorageGet as a, localStorageGetAll as b, localStorageRemove as c, localStorageRemoveAll as d, checkLocalStorageSupport as e, loadScript as f, getAttributes as g, getDataProps as h, initSourceDetails as i, readSourceCookie as j, isSourcePresent as k, localStorageSet as l, setFlow as m, setRevenueChannel as n, setSalesProcess as o, clearSalesProcess as p, setFirstPage as q, removeExpiredKeysOnMount as r, setFlowEntryPoint as s, setPlatformChannel as t, updateGuestId as u, setLandingPage as v, setSignupPage as w, setLastLandingPage as x, setReferrer as y, setSourceChannel as z };
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
declare const REFERRAL_PAGE_PATH: string[];
|
|
2
|
-
declare const REVENUE_CHANNEL: {
|
|
3
|
-
REFERRAL: string;
|
|
4
|
-
ORGANIC: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
declare const LOCAL_STORAGE_PRIMARY_KEY = "CUEMATH_WEB";
|
|
8
|
-
declare const checkLocalStorageSupport: () => boolean;
|
|
9
|
-
declare const removeKeyFromObject: (obj: {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}, keyToRemove: string) => {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
} | null;
|
|
14
|
-
declare const localStorageSet: (key: string | number, value: any, ttl?: number) => boolean;
|
|
15
|
-
declare const localStorageGet: (key: string) => null | string;
|
|
16
|
-
declare const localStorageGetAll: () => null | string;
|
|
17
|
-
declare const localStorageRemove: (key: string) => boolean;
|
|
18
|
-
declare const localStorageRemoveAll: () => boolean;
|
|
19
|
-
declare const removeExpiredKeysOnMount: () => boolean;
|
|
20
|
-
|
|
21
|
-
declare const getDates: (timezone: string) => Array<{
|
|
22
|
-
futureDate: number;
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
|
|
26
|
-
declare const APP_ENV: {
|
|
27
|
-
PRODUCTION: string;
|
|
28
|
-
STAGING: string;
|
|
29
|
-
DEVELOPMENT: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
declare const isServer: boolean;
|
|
33
|
-
|
|
34
|
-
declare const loadScript: (id: string, url: string, onLoad: (event: Event) => void, onError: (event: Event | string) => void) => void;
|
|
35
|
-
|
|
36
|
-
declare function parseURLParams(inpURL: any): {
|
|
37
|
-
[k: string]: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
interface CountryCodeItem {
|
|
41
|
-
code: string;
|
|
42
|
-
label: string;
|
|
43
|
-
value: string;
|
|
44
|
-
geoIPCountryCode: string;
|
|
45
|
-
}
|
|
46
|
-
declare const filterCountryCode: (list: CountryCodeItem[], value: string, exactMatch: boolean) => CountryCodeItem[];
|
|
47
|
-
|
|
48
|
-
type Platform = 'website' | 'app' | 'astro' | 'leap-teacher' | 'leap-admin';
|
|
49
|
-
type RevenueChannel = 'organic' | 'performance' | 'affiliate' | 'offline' | 'referral' | 'unknown';
|
|
50
|
-
type SignupFlow = 'regular' | 'e-cna' | 'e-sales' | 'e-cna-exit';
|
|
51
|
-
type Experiments = Record<string, unknown>;
|
|
52
|
-
type UTMParams = {
|
|
53
|
-
utm_source?: string;
|
|
54
|
-
utm_medium?: string;
|
|
55
|
-
utm_campaign?: string;
|
|
56
|
-
utm_term?: string;
|
|
57
|
-
utm_content?: string;
|
|
58
|
-
utm_adcontent?: string;
|
|
59
|
-
};
|
|
60
|
-
type SignupForm = {
|
|
61
|
-
form_id?: string;
|
|
62
|
-
product?: string;
|
|
63
|
-
process?: string;
|
|
64
|
-
};
|
|
65
|
-
type PageProps = {
|
|
66
|
-
url_path?: string;
|
|
67
|
-
page_profile?: string;
|
|
68
|
-
timestamp?: Date;
|
|
69
|
-
};
|
|
70
|
-
type SourceDetailsCookie = {
|
|
71
|
-
platform_channel: Platform;
|
|
72
|
-
experiment_dict?: Experiments;
|
|
73
|
-
flow?: SignupFlow;
|
|
74
|
-
utm_params?: UTMParams;
|
|
75
|
-
affiliate_channel?: string;
|
|
76
|
-
offline_channel?: string;
|
|
77
|
-
performance_channel?: string;
|
|
78
|
-
revenue_channel: RevenueChannel;
|
|
79
|
-
flow_entry?: string;
|
|
80
|
-
first_page?: PageProps;
|
|
81
|
-
signup_page?: PageProps;
|
|
82
|
-
landing_page_24_hours?: PageProps;
|
|
83
|
-
landing_page_session?: PageProps;
|
|
84
|
-
last_page?: string;
|
|
85
|
-
sales_process?: string;
|
|
86
|
-
guest_id?: string;
|
|
87
|
-
current?: Partial<SourceDetailsCookie>;
|
|
88
|
-
landing_page?: string;
|
|
89
|
-
referrer?: string;
|
|
90
|
-
source_channel?: string;
|
|
91
|
-
page_profile?: string;
|
|
92
|
-
sub_platform?: string;
|
|
93
|
-
current_page?: string;
|
|
94
|
-
current_page_category?: string;
|
|
95
|
-
signup_form?: SignupForm;
|
|
96
|
-
product?: string;
|
|
97
|
-
};
|
|
98
|
-
type SourceDetails = {
|
|
99
|
-
platform: Platform;
|
|
100
|
-
experiments?: Experiments;
|
|
101
|
-
flow?: SignupFlow;
|
|
102
|
-
utmParams?: UTMParams;
|
|
103
|
-
affiliateChannel?: string;
|
|
104
|
-
offlineChannel?: string;
|
|
105
|
-
performanceChannel?: string;
|
|
106
|
-
revenueChannel: RevenueChannel;
|
|
107
|
-
flowEntry?: string;
|
|
108
|
-
firstPage?: string;
|
|
109
|
-
lastPage?: string;
|
|
110
|
-
guestId?: string;
|
|
111
|
-
salesProcess?: string;
|
|
112
|
-
landingPage?: string;
|
|
113
|
-
referrer?: string;
|
|
114
|
-
sourceChannel?: string;
|
|
115
|
-
pageProfile?: string;
|
|
116
|
-
subPlatform?: string;
|
|
117
|
-
lastLandingPage?: string;
|
|
118
|
-
product?: string;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
declare const readSourceCookie: () => SourceDetailsCookie;
|
|
122
|
-
declare const isSourcePresent: () => boolean;
|
|
123
|
-
declare const initSourceDetails: ({ platform, experiments, flow, revenueChannel, salesProcess, guestId, landingPage, referrer, sourceChannel, utmParams, lastLandingPage, product, }: SourceDetails) => Promise<void>;
|
|
124
|
-
declare const setFlowEntryPoint: (flowEntry: string) => Promise<void>;
|
|
125
|
-
declare const setFlow: (flow: SignupFlow) => Promise<void>;
|
|
126
|
-
declare const setRevenueChannel: (revenueChannel: RevenueChannel) => Promise<void>;
|
|
127
|
-
declare const setSalesProcess: (salesProcess: string) => Promise<void>;
|
|
128
|
-
declare const clearSalesProcess: () => Promise<void>;
|
|
129
|
-
declare const updateGuestId: (guestId: string) => Promise<void>;
|
|
130
|
-
declare const setFirstPage: (pagePath: string) => Promise<void>;
|
|
131
|
-
declare const setPlatformChannel: (platformChannel: Platform) => Promise<void>;
|
|
132
|
-
declare const setLandingPage: (landingPage: string) => Promise<void>;
|
|
133
|
-
declare const setSignupPage: (signupPage: string) => Promise<void>;
|
|
134
|
-
declare const setLastLandingPage: (lastLandingPage: string, createdAt: Date) => Promise<void>;
|
|
135
|
-
declare const setReferrer: (referrer: string) => Promise<void>;
|
|
136
|
-
declare const setSourceChannel: (sourceChannel: string) => Promise<void>;
|
|
137
|
-
declare const setSignupForm: (signupForm: SignupForm) => Promise<void>;
|
|
138
|
-
declare const clearSignupForm: () => Promise<void>;
|
|
139
|
-
declare const setProduct: (product: string) => Promise<void>;
|
|
140
|
-
declare const getSourceChannel: (utmSource: string) => string;
|
|
141
|
-
|
|
142
|
-
declare const getAttributes: (target: HTMLElement) => {
|
|
143
|
-
CTA: string;
|
|
144
|
-
parentScreen: string | null | undefined;
|
|
145
|
-
entrySection: string | null | undefined;
|
|
146
|
-
entryPoint: string | null | undefined;
|
|
147
|
-
parentDomId: string | null | undefined;
|
|
148
|
-
ctaType: string | null;
|
|
149
|
-
formId: string | null | undefined;
|
|
150
|
-
customTracking: string | null | undefined;
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
declare const getDataProps: (entryPoint: string | undefined, entrySection: string | undefined, topic: string | undefined, isCustomTracking: boolean) => {
|
|
154
|
-
[key: string]: string | boolean;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { setSignupForm as A, clearSignupForm as B, setProduct as C, getSourceChannel as D, parseURLParams as E, getDates as F, filterCountryCode as G, isServer as H, APP_ENV as I, REVENUE_CHANNEL as J, removeKeyFromObject as K, LOCAL_STORAGE_PRIMARY_KEY as L, REFERRAL_PAGE_PATH as R, localStorageGet as a, localStorageGetAll as b, localStorageRemove as c, localStorageRemoveAll as d, checkLocalStorageSupport as e, loadScript as f, getAttributes as g, getDataProps as h, initSourceDetails as i, readSourceCookie as j, isSourcePresent as k, localStorageSet as l, setFlow as m, setRevenueChannel as n, setSalesProcess as o, clearSalesProcess as p, setFirstPage as q, removeExpiredKeysOnMount as r, setFlowEntryPoint as s, setPlatformChannel as t, updateGuestId as u, setLandingPage as v, setSignupPage as w, setLastLandingPage as x, setReferrer as y, setSourceChannel as z };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
type Timestamp = number;
|
|
2
|
-
/**
|
|
3
|
-
* Convert timestamp to localized date-time string with optional timezone.
|
|
4
|
-
*
|
|
5
|
-
* @param timestamp - Unix timestamp in seconds
|
|
6
|
-
* @param timezone - IANA timezone identifier (e.g., 'America/New_York')
|
|
7
|
-
* @returns Localized date-time string
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* dateTimeByTimezone(1640000000, 'America/New_York')
|
|
11
|
-
* // "12/20/2021, 9:13:20 AM"
|
|
12
|
-
*/
|
|
13
|
-
declare function dateTimeByTimezone(timestamp: Timestamp, timezone?: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Format timestamp with timezone support.
|
|
16
|
-
*
|
|
17
|
-
* @param timestamp - Unix timestamp in seconds
|
|
18
|
-
* @param timezone - IANA timezone identifier
|
|
19
|
-
* @param format - dayjs format string
|
|
20
|
-
* @returns Formatted date string
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* dateByTimezone(1640000000, 'America/New_York', 'MM/DD/YYYY')
|
|
24
|
-
* // "12/20/2021"
|
|
25
|
-
*/
|
|
26
|
-
declare function dateByTimezone(timestamp: number, timezone: string, format: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Get current browser timezone.
|
|
29
|
-
*
|
|
30
|
-
* @returns IANA timezone identifier
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* getTimezone()
|
|
34
|
-
* // "America/Los_Angeles"
|
|
35
|
-
*/
|
|
36
|
-
declare function getTimezone(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Get current date-time in specified timezone.
|
|
39
|
-
*
|
|
40
|
-
* @param timezone - IANA timezone identifier
|
|
41
|
-
* @returns Localized current date-time string
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* getCurrentDatebyTimezone('Asia/Kolkata')
|
|
45
|
-
* // "12/18/2025, 3:30:00 PM"
|
|
46
|
-
*/
|
|
47
|
-
declare function getCurrentDatebyTimezone(timezone: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* Convert internal timezone ID to display name.
|
|
50
|
-
* Uses international-timezones constant for lookup.
|
|
51
|
-
*
|
|
52
|
-
* @param selectedTimezone - Internal timezone ID
|
|
53
|
-
* @returns Human-readable timezone name
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* convertedTimezone('America/New_York')
|
|
57
|
-
* // "Eastern Time"
|
|
58
|
-
*/
|
|
59
|
-
declare const convertedTimezone: (selectedTimezone: string) => string;
|
|
60
|
-
|
|
61
|
-
export { convertedTimezone, dateByTimezone, dateTimeByTimezone, getCurrentDatebyTimezone, getTimezone };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
type Timestamp = number;
|
|
2
|
-
/**
|
|
3
|
-
* Convert timestamp to localized date-time string with optional timezone.
|
|
4
|
-
*
|
|
5
|
-
* @param timestamp - Unix timestamp in seconds
|
|
6
|
-
* @param timezone - IANA timezone identifier (e.g., 'America/New_York')
|
|
7
|
-
* @returns Localized date-time string
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* dateTimeByTimezone(1640000000, 'America/New_York')
|
|
11
|
-
* // "12/20/2021, 9:13:20 AM"
|
|
12
|
-
*/
|
|
13
|
-
declare function dateTimeByTimezone(timestamp: Timestamp, timezone?: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Format timestamp with timezone support.
|
|
16
|
-
*
|
|
17
|
-
* @param timestamp - Unix timestamp in seconds
|
|
18
|
-
* @param timezone - IANA timezone identifier
|
|
19
|
-
* @param format - dayjs format string
|
|
20
|
-
* @returns Formatted date string
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* dateByTimezone(1640000000, 'America/New_York', 'MM/DD/YYYY')
|
|
24
|
-
* // "12/20/2021"
|
|
25
|
-
*/
|
|
26
|
-
declare function dateByTimezone(timestamp: number, timezone: string, format: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Get current browser timezone.
|
|
29
|
-
*
|
|
30
|
-
* @returns IANA timezone identifier
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* getTimezone()
|
|
34
|
-
* // "America/Los_Angeles"
|
|
35
|
-
*/
|
|
36
|
-
declare function getTimezone(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Get current date-time in specified timezone.
|
|
39
|
-
*
|
|
40
|
-
* @param timezone - IANA timezone identifier
|
|
41
|
-
* @returns Localized current date-time string
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* getCurrentDatebyTimezone('Asia/Kolkata')
|
|
45
|
-
* // "12/18/2025, 3:30:00 PM"
|
|
46
|
-
*/
|
|
47
|
-
declare function getCurrentDatebyTimezone(timezone: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* Convert internal timezone ID to display name.
|
|
50
|
-
* Uses international-timezones constant for lookup.
|
|
51
|
-
*
|
|
52
|
-
* @param selectedTimezone - Internal timezone ID
|
|
53
|
-
* @returns Human-readable timezone name
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* convertedTimezone('America/New_York')
|
|
57
|
-
* // "Eastern Time"
|
|
58
|
-
*/
|
|
59
|
-
declare const convertedTimezone: (selectedTimezone: string) => string;
|
|
60
|
-
|
|
61
|
-
export { convertedTimezone, dateByTimezone, dateTimeByTimezone, getCurrentDatebyTimezone, getTimezone };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk5X4UT2UI_js=require('../chunk-5X4UT2UI.js');Object.defineProperty(exports,"convertedTimezone",{enumerable:true,get:function(){return chunk5X4UT2UI_js.f}});Object.defineProperty(exports,"dateByTimezone",{enumerable:true,get:function(){return chunk5X4UT2UI_js.c}});Object.defineProperty(exports,"dateTimeByTimezone",{enumerable:true,get:function(){return chunk5X4UT2UI_js.b}});Object.defineProperty(exports,"getCurrentDatebyTimezone",{enumerable:true,get:function(){return chunk5X4UT2UI_js.e}});Object.defineProperty(exports,"getTimezone",{enumerable:true,get:function(){return chunk5X4UT2UI_js.d}});//# sourceMappingURL=timezone.js.map
|
|
2
|
-
//# sourceMappingURL=timezone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"timezone.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"timezone.mjs"}
|