@hhgtech/hhg-components 1.29.362-beta-6 → 1.29.362-beta-7
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/build/{InputDate-fd0e82e5.js → InputDate-64d42e12.js} +3 -3
- package/build/{LastPeriod-675b0494.js → LastPeriod-0b4bdb7b.js} +1 -1
- package/build/{MobileBottomNavigationIcon-88da3d18.js → MobileBottomNavigationIcon-6268685b.js} +3 -3
- package/build/{Spinner-c338b48a.js → Spinner-732c257a.js} +1 -1
- package/build/{WhatsApp-60349170.js → WhatsApp-873b091d.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +48 -48
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components.js +96 -96
- package/build/{constants-d903206f.js → constants-abcc0371.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-b01c1ac6.js → core-beed5f88.js} +1 -1
- package/build/{dataTransform-394e0d39.js → dataTransform-efdc8b5b.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-03eeead9.js → editor-ab52b049.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{InputDate-a4d6ee35.js → InputDate-16ff69fb.js} +3 -3
- package/build/esm/{LastPeriod-261ee5fa.js → LastPeriod-dac3ccfb.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-b5a1301c.js → MobileBottomNavigationIcon-09f20a81.js} +3 -3
- package/build/esm/{Spinner-d0e7abf8.js → Spinner-47aa89e4.js} +1 -1
- package/build/esm/{WhatsApp-0015ff5e.js → WhatsApp-a86d6d53.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +48 -48
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components.js +96 -96
- package/build/esm/{constants-e2fef392.js → constants-f640ae0f.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-1a9e6336.js → core-d9c0671e.js} +1 -1
- package/build/esm/{dataTransform-8522b6e5.js → dataTransform-69716caa.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-aa7c1e7e.js → editor-7d81f7ef.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-6d9bc6bb.js → healthTools-465b855e.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-43003e56.js → index-0d4e612e.js} +2 -2
- package/build/esm/{index-b824c63e.js → index-13c0ea70.js} +6 -6
- package/build/esm/{index-3d1a057a.js → index-18c8dcde.js} +3 -3
- package/build/esm/{index-271fb414.js → index-1913a930.js} +3 -3
- package/build/esm/{index-c4f0d220.js → index-19f99de5.js} +16 -16
- package/build/esm/{index-69266c15.js → index-1c22d4f9.js} +22 -22
- package/build/esm/{index-cc9c4f8d.js → index-2305e665.js} +24 -24
- package/build/esm/{index-abd67120.js → index-2bcab30b.js} +10 -10
- package/build/esm/{index-0a319369.js → index-2c4ea8ae.js} +1 -1
- package/build/esm/{index-aa78faae.js → index-3672b72f.js} +13 -13
- package/build/esm/{index-8d7414f5.js → index-3af42a84.js} +2 -2
- package/build/esm/{index-2d0027bb.js → index-3c3a3102.js} +7 -7
- package/build/esm/{index-d926a789.js → index-3da1e4b6.js} +17 -17
- package/build/esm/{index-6c0adc97.js → index-432abb58.js} +1 -1
- package/build/esm/{index-b88e063b.js → index-447cd8a4.js} +6 -6
- package/build/esm/{index-c7bef4da.js → index-4497323a.js} +1 -1
- package/build/esm/{index-b8ae41e7.js → index-4eabf61b.js} +1 -1
- package/build/esm/{index-4f679233.js → index-4f111f60.js} +3 -3
- package/build/esm/{index-c75d775a.js → index-50027e5c.js} +13 -13
- package/build/esm/{index-a0e28e14.js → index-5307e0c6.js} +25 -25
- package/build/esm/{index-18855286.js → index-5451485b.js} +11 -11
- package/build/esm/{index-b867b65e.js → index-55ce4171.js} +17 -17
- package/build/esm/{index-ade570f6.js → index-55e275b4.js} +3 -3
- package/build/esm/{index-7eb265fa.js → index-597bbb57.js} +18 -18
- package/build/esm/{index-fdaccc36.js → index-5a86d9b0.js} +5 -5
- package/build/esm/{index-a262027e.js → index-5acde2d7.js} +17 -17
- package/build/esm/{index-5bacde9a.js → index-6037be86.js} +1 -1
- package/build/esm/{index-6e30f84b.js → index-61322bbf.js} +6 -6
- package/build/esm/{index-128b1ed7.js → index-63e8911e.js} +2 -2
- package/build/esm/{index-2dea69ae.js → index-67a5426d.js} +13 -13
- package/build/esm/{index-3b97009b.js → index-68571fd9.js} +6 -6
- package/build/esm/{index-2c25389c.js → index-6bf4911c.js} +2 -2
- package/build/esm/{index-a92da53f.js → index-6cebc2c8.js} +16 -16
- package/build/esm/{index-02a48b88.js → index-6f3bed52.js} +3 -3
- package/build/esm/{index-62833621.js → index-6fb98c8f.js} +2 -2
- package/build/esm/{index-0096a0e9.js → index-7107c883.js} +6 -6
- package/build/esm/{index-e512d075.js → index-75266933.js} +4 -4
- package/build/esm/{index-3e49fab2.js → index-84a00e3b.js} +2 -2
- package/build/esm/{index-7bc63809.js → index-84ca8d60.js} +2 -2
- package/build/esm/{index-a48580cf.js → index-8ee9610b.js} +18 -18
- package/build/esm/{index-c53221d3.js → index-9789a5bb.js} +2 -2
- package/build/esm/{index-1334730d.js → index-9fe435c1.js} +13 -13
- package/build/esm/{index-7bee1da6.js → index-a0f010bf.js} +1 -1
- package/build/esm/{index-c487aa6f.js → index-a111eead.js} +1 -1
- package/build/esm/{index-ae36d803.js → index-a5b8a392.js} +7 -7
- package/build/esm/{index-12bd7a04.js → index-a94fc823.js} +5 -5
- package/build/esm/{index-e2fa8007.js → index-aa3201b9.js} +2 -2
- package/build/esm/{index-1124693a.js → index-ab2833d5.js} +31 -31
- package/build/esm/{index-980b3a3b.js → index-acf2009f.js} +21 -21
- package/build/esm/{index-c502503e.js → index-aefd2493.js} +2 -2
- package/build/esm/{index-1cc1ec84.js → index-b2316ee2.js} +16 -16
- package/build/esm/{index-a3da289d.js → index-b501a228.js} +1 -1
- package/build/esm/{index-a14ad51b.js → index-b6908538.js} +2 -2
- package/build/esm/{index-d76f8524.js → index-c35929d1.js} +16 -16
- package/build/esm/{index-210d3892.js → index-c612c756.js} +32 -32
- package/build/esm/{index-6aee72f8.js → index-cf7511b0.js} +2 -2
- package/build/esm/{index-0157dab8.js → index-d1c3d3f8.js} +16 -16
- package/build/esm/{index-c4070a12.js → index-da8fae13.js} +32 -32
- package/build/esm/{index-9943a900.js → index-db34c7f8.js} +2 -2
- package/build/esm/{index-94fe2230.js → index-ed465943.js} +15 -15
- package/build/esm/{index-e2df7129.js → index-ef63171d.js} +2 -2
- package/build/esm/{index-ed8b1b4d.js → index-f0a7c31c.js} +10 -10
- package/build/esm/{index-929b12bb.js → index-fe975ba7.js} +1 -1
- package/build/esm/{index-d4f98ef0.js → index-fec30d54.js} +3 -3
- package/build/esm/index.js +117 -117
- package/build/esm/{labelSorting-59a03a60.js → labelSorting-df818f96.js} +4 -4
- package/build/esm/lead.js +462 -25
- package/build/esm/{logoIcon-f5fabf8a.js → logoIcon-bcab45ec.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +73 -73
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +45 -45
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +49 -49
- package/build/esm/{post-0bb56712.js → post-12899078.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2.js +29 -29
- package/build/esm/{store-2f4a3de8.js → store-74598ce1.js} +4 -4
- package/build/esm/subot.js +36 -36
- package/build/esm/surveyOrPremiumBanner.js +32 -32
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-acd5065b.js → surveyThankyouCard-a99f3769.js} +5 -5
- package/build/esm/together.js +55 -55
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +50 -50
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +38 -38
- package/build/esm/togetherOrganisms.js +49 -49
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-a2c5e10b.js → treePopoverMenu-10382802.js} +19 -19
- package/build/esm/{types-c6f4b649.js → types-cb3acc26.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-e6c5f3f4.js → useCategory-d4b1c5f2.js} +5 -5
- package/build/esm/{useHealthToolCache-42bb7e54.js → useHealthToolCache-54d80f8c.js} +1 -1
- package/build/esm/{useMantineLocale-86072926.js → useMantineLocale-2c267cf1.js} +6 -6
- package/build/esm/usePlacesAutocomplete-23dbc6fa.js +81 -0
- package/build/esm/{useScreenSize-d5709b35.js → useScreenSize-db569e75.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-3fb29038.js → utils-09f8e5fd.js} +3 -3
- package/build/esm/{utils-fa1cee35.js → utils-30ed34b7.js} +4 -4
- package/build/esm/{utils-80c1ae9d.js → utils-3c0e208c.js} +2 -2
- package/build/esm/{utils-c7536c86.js → utils-cdd60699.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-e42395ee.js → healthTools-77fca866.js} +1 -1
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-8af743c4.js → index-0976cf3a.js} +1 -1
- package/build/{index-34ba141e.js → index-09b30ecf.js} +31 -31
- package/build/{index-14e8a4bf.js → index-0b773c57.js} +2 -2
- package/build/{index-f39711fb.js → index-124981ac.js} +2 -2
- package/build/{index-8b14ab7a.js → index-16e88760.js} +2 -2
- package/build/{index-9becb073.js → index-1ce8cebb.js} +13 -13
- package/build/{index-47c7236c.js → index-2862f470.js} +5 -5
- package/build/{index-7efb4007.js → index-2888aa0d.js} +16 -16
- package/build/{index-0b638588.js → index-2bfcacaa.js} +2 -2
- package/build/{index-e76258d1.js → index-346b78ed.js} +3 -3
- package/build/{index-53b50908.js → index-37a4d328.js} +15 -15
- package/build/{index-d1741909.js → index-37ef911f.js} +1 -1
- package/build/{index-7995fd09.js → index-3a188a9b.js} +16 -16
- package/build/{index-0a086949.js → index-3cd97c88.js} +6 -6
- package/build/{index-c0628923.js → index-3ff902b7.js} +13 -13
- package/build/{index-fad8eaac.js → index-40486d40.js} +5 -5
- package/build/{index-733dea52.js → index-45f52a74.js} +17 -17
- package/build/{index-2fd0440f.js → index-474499d7.js} +24 -24
- package/build/{index-89dfd95d.js → index-4c8fa66a.js} +7 -7
- package/build/{index-37170515.js → index-500d59e0.js} +16 -16
- package/build/{index-2b664d4c.js → index-5ead853f.js} +6 -6
- package/build/{index-a5454694.js → index-61b188dc.js} +32 -32
- package/build/{index-6d023e3f.js → index-64e3c3d3.js} +1 -1
- package/build/{index-f28b96a7.js → index-6570d852.js} +2 -2
- package/build/{index-5475cf4e.js → index-67ac5c04.js} +16 -16
- package/build/{index-28246ee7.js → index-6816ad79.js} +18 -18
- package/build/{index-869029fb.js → index-69f88dca.js} +3 -3
- package/build/{index-c06af6e7.js → index-6e4f9b56.js} +1 -1
- package/build/{index-f518f327.js → index-7056279d.js} +1 -1
- package/build/{index-7f31c1b3.js → index-7573e047.js} +17 -17
- package/build/{index-8bf4db6f.js → index-7d212a91.js} +17 -17
- package/build/{index-e06a7e67.js → index-90e07d5d.js} +22 -22
- package/build/{index-223ee091.js → index-94fedc8f.js} +2 -2
- package/build/{index-2b4a1fa4.js → index-9abf5c76.js} +2 -2
- package/build/{index-341b39a7.js → index-9f69e8f2.js} +1 -1
- package/build/{index-9ab6eff7.js → index-a0d42537.js} +3 -3
- package/build/{index-c3bcf68a.js → index-a1b50a50.js} +2 -2
- package/build/{index-c359d080.js → index-a2e166cb.js} +2 -2
- package/build/{index-868f265e.js → index-a6e60b9e.js} +21 -21
- package/build/{index-3427e121.js → index-aae5daa6.js} +1 -1
- package/build/{index-1aa248b8.js → index-abb4fe75.js} +3 -3
- package/build/{index-deeabe50.js → index-b3798ae1.js} +2 -2
- package/build/{index-ac084a83.js → index-bcab6d5c.js} +18 -18
- package/build/{index-001fada4.js → index-c1a20b50.js} +13 -13
- package/build/{index-a0523f88.js → index-c2a0a243.js} +6 -6
- package/build/{index-669d4781.js → index-c6e943df.js} +10 -10
- package/build/{index-6bbf3de0.js → index-c9ef25e1.js} +13 -13
- package/build/{index-88c05c6d.js → index-ca55e97e.js} +2 -2
- package/build/{index-0e15566a.js → index-d04d8bc2.js} +10 -10
- package/build/{index-eaea1669.js → index-d13230c8.js} +11 -11
- package/build/{index-c80bb596.js → index-d38b9f49.js} +3 -3
- package/build/{index-053f53ad.js → index-d4fcd1d3.js} +2 -2
- package/build/{index-0d2b0272.js → index-d52875ca.js} +25 -25
- package/build/{index-05432eda.js → index-d90027a5.js} +4 -4
- package/build/{index-c984ffbe.js → index-da263b8c.js} +2 -2
- package/build/{index-234dcab6.js → index-da3d5bf5.js} +6 -6
- package/build/{index-b4b29605.js → index-ed8e4b3a.js} +32 -32
- package/build/{index-db5c4f29.js → index-eff9de5a.js} +7 -7
- package/build/{index-7858e63b.js → index-f7c0987b.js} +2 -2
- package/build/{index-97349834.js → index-f8bea6f7.js} +1 -1
- package/build/{index-ab62215d.js → index-f927abb8.js} +3 -3
- package/build/{index-5a251e58.js → index-fbb15ec3.js} +16 -16
- package/build/{index-4e12800c.js → index-fd81e3fa.js} +1 -1
- package/build/{index-b9c21c28.js → index-fdfddf00.js} +6 -6
- package/build/index.js +117 -117
- package/build/{labelSorting-3a57f00a.js → labelSorting-91beddf9.js} +4 -4
- package/build/lead.js +492 -55
- package/build/{logoIcon-1d0cec48.js → logoIcon-f214edfa.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +73 -73
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +45 -45
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +49 -49
- package/build/{post-953ae518.js → post-71039d7e.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2.js +27 -27
- package/build/{store-ec082514.js → store-c8fa067a.js} +4 -4
- package/build/subot.js +35 -35
- package/build/surveyOrPremiumBanner.js +32 -32
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-60c65d4f.js → surveyThankyouCard-7b2781bc.js} +5 -5
- package/build/together.js +55 -55
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +50 -50
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +38 -38
- package/build/togetherOrganisms.js +49 -49
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-a5ab646e.js → treePopoverMenu-ef9818ce.js} +19 -19
- package/build/{types-df93deb4.js → types-95e861df.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-0f8cbb89.js → useCategory-dcc735eb.js} +5 -5
- package/build/{useHealthToolCache-656e214f.js → useHealthToolCache-ab042676.js} +1 -1
- package/build/{useMantineLocale-d3b08d5e.js → useMantineLocale-bfaf810c.js} +6 -6
- package/build/usePlacesAutocomplete-db5d0254.js +85 -0
- package/build/{useScreenSize-c6515eb2.js → useScreenSize-53337b39.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-8cdcde5d.js → utils-665877d3.js} +2 -2
- package/build/{utils-ad1f98b3.js → utils-92bf9062.js} +4 -4
- package/build/{utils-89f1d6d4.js → utils-d8a37749.js} +3 -3
- package/build/{utils-925d1a21.js → utils-fe6c5f1f.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/usePlacesAutocomplete-a9d55e56.js +0 -520
- package/build/usePlacesAutocomplete-7b83983f.js +0 -528
- /package/build/{BMI_BOYS.percentile.monthly-0c545430.js → BMI_BOYS.percentile.monthly-77d32ede.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-b2abdd52.js → BMI_BOYS.percentile.weekly-34068a3d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-73da03a1.js → BMI_BOYS.percentile.yearly-3b87566c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-5bc00bd2.js → BMI_BOYS.zscore.monthly-fd248b60.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b270dca9.js → BMI_BOYS.zscore.weekly-70ffc0ea.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-e11a3061.js → BMI_BOYS.zscore.yearly-9d8fb3b3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-f8d3ae24.js → BMI_GIRLS.percentile.monthly-be3ccc40.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-ab748c6a.js → BMI_GIRLS.percentile.weekly-318e81d5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-002aebb0.js → BMI_GIRLS.percentile.yearly-8cff53b7.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-e261af22.js → BMI_GIRLS.zscore.monthly-eae04f1f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d58566a9.js → BMI_GIRLS.zscore.weekly-f2f829e5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-1147723e.js → BMI_GIRLS.zscore.yearly-0516fac2.js} +0 -0
- /package/build/{ChevronDown-83383af6.js → ChevronDown-df85dca7.js} +0 -0
- /package/build/{Close-8e99232e.js → Close-c4c272a5.js} +0 -0
- /package/build/{Google-d203467c.js → Google-60d29b65.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-211f31d0.js → HEAD CIRCUM_BOYS.percentile.monthly-bf4b9347.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-ad1b91eb.js → HEAD CIRCUM_BOYS.percentile.weekly-bdedbbe6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3ef825f4.js → HEAD CIRCUM_BOYS.percentile.yearly-e3f79ff0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dd61aed0.js → HEAD CIRCUM_BOYS.zscore.monthly-69264ee8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-5f4bf7d7.js → HEAD CIRCUM_BOYS.zscore.weekly-231eed82.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-f503bf61.js → HEAD CIRCUM_BOYS.zscore.yearly-79f0540f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-76db00a2.js → HEAD CIRCUM_GIRLS.percentile.monthly-89357b63.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-60938b9d.js → HEAD CIRCUM_GIRLS.percentile.weekly-5a40c0ea.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-de08eaf6.js → HEAD CIRCUM_GIRLS.percentile.yearly-b57a585c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5de26ec2.js → HEAD CIRCUM_GIRLS.zscore.monthly-6f40c001.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ba767399.js → HEAD CIRCUM_GIRLS.zscore.weekly-c4d1a3dc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2d8cafcb.js → HEAD CIRCUM_GIRLS.zscore.yearly-0d13cc51.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3aa10b4d.js → HEIGHT_BOYS.percentile.monthly-4923dfb7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-ae1f58fc.js → HEIGHT_BOYS.percentile.weekly-8f73dc29.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-ec9b6a67.js → HEIGHT_BOYS.percentile.yearly-e170e80e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-2b9abf9e.js → HEIGHT_BOYS.zscore.monthly-fefc9c1b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ebc79372.js → HEIGHT_BOYS.zscore.weekly-ada5533a.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-64acc0b1.js → HEIGHT_BOYS.zscore.yearly-d4e83504.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8a6d5ba4.js → HEIGHT_GIRLS.percentile.monthly-1c3fb2cf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-94c6540f.js → HEIGHT_GIRLS.percentile.weekly-632d45d3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-3142b8d2.js → HEIGHT_GIRLS.percentile.yearly-51eae518.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-02aa6416.js → HEIGHT_GIRLS.zscore.monthly-05d5dbc9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-6c8e7a9f.js → HEIGHT_GIRLS.zscore.weekly-e42ffddc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-090810af.js → HEIGHT_GIRLS.zscore.yearly-7aa691cb.js} +0 -0
- /package/build/{Locale-3b16bb0e.js → Locale-bc11b358.js} +0 -0
- /package/build/{Visible-71839201.js → Visible-b7757afc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-ccef0bf9.js → WEIGHT_BOYS.percentile.monthly-2ac98cf5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3e37816c.js → WEIGHT_BOYS.percentile.weekly-a3651c26.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-37663922.js → WEIGHT_BOYS.percentile.yearly-2e4b61bc.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-6ca85d8d.js → WEIGHT_BOYS.zscore.monthly-9a264811.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-513cb51e.js → WEIGHT_BOYS.zscore.weekly-1af2c797.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d4ba37d8.js → WEIGHT_BOYS.zscore.yearly-b04f8ded.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-3459d0c0.js → WEIGHT_GIRLS.percentile.monthly-7848ad4d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-73376e4d.js → WEIGHT_GIRLS.percentile.weekly-007eb8de.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-39258498.js → WEIGHT_GIRLS.percentile.yearly-d73c397d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-aee13b23.js → WEIGHT_GIRLS.zscore.monthly-0919302e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-4f2556e7.js → WEIGHT_GIRLS.zscore.weekly-c23338a0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-59489de0.js → WEIGHT_GIRLS.zscore.yearly-77e13b21.js} +0 -0
- /package/build/{animation-ee9cffdc.js → animation-13a568d8.js} +0 -0
- /package/build/{constants-be090ce4.js → constants-1c1df5a8.js} +0 -0
- /package/build/{constants-46765397.js → constants-2905564a.js} +0 -0
- /package/build/{constants-c9a1b55d.js → constants-800a381c.js} +0 -0
- /package/build/{dataTransform-577eda33.js → dataTransform-6e9cbf45.js} +0 -0
- /package/build/{doctor-aea52c10.js → doctor-9a0f4b6a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-421ba7a1.js → BMI_BOYS.percentile.monthly-eef6a636.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-2131d37d.js → BMI_BOYS.percentile.weekly-ceb85dca.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7d7ac950.js → BMI_BOYS.percentile.yearly-4ed4b90e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f8b5a1ee.js → BMI_BOYS.zscore.monthly-e55e9afb.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-1c0b0ccf.js → BMI_BOYS.zscore.weekly-4073dca9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-cd3e748e.js → BMI_BOYS.zscore.yearly-0a2d322b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-b67288e2.js → BMI_GIRLS.percentile.monthly-a1a82ce8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-10e2e494.js → BMI_GIRLS.percentile.weekly-d9f484ed.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0e593580.js → BMI_GIRLS.percentile.yearly-02e0b5c6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-230a4308.js → BMI_GIRLS.zscore.monthly-3086a4eb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b461adde.js → BMI_GIRLS.zscore.weekly-18b946b1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e6ec3a95.js → BMI_GIRLS.zscore.yearly-4b41195a.js} +0 -0
- /package/build/esm/{ChevronDown-6513a253.js → ChevronDown-75af5663.js} +0 -0
- /package/build/esm/{Close-e4e577cb.js → Close-755f3cd6.js} +0 -0
- /package/build/esm/{Google-1a588c29.js → Google-f94ba2eb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-0c38a166.js → HEAD CIRCUM_BOYS.percentile.monthly-ccf35c97.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-32cae606.js → HEAD CIRCUM_BOYS.percentile.weekly-35cabdd6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-416f773a.js → HEAD CIRCUM_BOYS.percentile.yearly-f1a8bfd6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-dbdb6c06.js → HEAD CIRCUM_BOYS.zscore.monthly-f62449ec.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-28568e5a.js → HEAD CIRCUM_BOYS.zscore.weekly-555e72ad.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-446d3462.js → HEAD CIRCUM_BOYS.zscore.yearly-ffb64461.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-7d5e08b6.js → HEAD CIRCUM_GIRLS.percentile.monthly-dbb73d21.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-5a7731cb.js → HEAD CIRCUM_GIRLS.percentile.weekly-93516e21.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-70d17e88.js → HEAD CIRCUM_GIRLS.percentile.yearly-6ae63168.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-6e9b3ea4.js → HEAD CIRCUM_GIRLS.zscore.monthly-ee2360c6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-578339b4.js → HEAD CIRCUM_GIRLS.zscore.weekly-e6aabacc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-5d82e048.js → HEAD CIRCUM_GIRLS.zscore.yearly-ea540ad7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-ceb0c7ee.js → HEIGHT_BOYS.percentile.monthly-67ae92c3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-43fdcf07.js → HEIGHT_BOYS.percentile.weekly-c388098c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-5d863523.js → HEIGHT_BOYS.percentile.yearly-43abdda4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7a2bbfd1.js → HEIGHT_BOYS.zscore.monthly-7cbd36eb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-65248000.js → HEIGHT_BOYS.zscore.weekly-dba453b8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3de1aa3b.js → HEIGHT_BOYS.zscore.yearly-2a9d7648.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-f5422ca7.js → HEIGHT_GIRLS.percentile.monthly-59ab9a32.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-8de0c176.js → HEIGHT_GIRLS.percentile.weekly-c2840739.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-30774397.js → HEIGHT_GIRLS.percentile.yearly-0d408b89.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-acc7105f.js → HEIGHT_GIRLS.zscore.monthly-ed32bcd7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3440fc9e.js → HEIGHT_GIRLS.zscore.weekly-7ffdfcbf.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5057439c.js → HEIGHT_GIRLS.zscore.yearly-b994474b.js} +0 -0
- /package/build/esm/{Locale-1c96ad9c.js → Locale-f131de60.js} +0 -0
- /package/build/esm/{Visible-93776058.js → Visible-973ad72f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bf753079.js → WEIGHT_BOYS.percentile.monthly-fa452031.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-5e9af001.js → WEIGHT_BOYS.percentile.weekly-4d484b6a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-662fbde6.js → WEIGHT_BOYS.percentile.yearly-640c5c38.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f0475982.js → WEIGHT_BOYS.zscore.monthly-4d3b328d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6aafdeeb.js → WEIGHT_BOYS.zscore.weekly-33bd4dd5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-5fc306b9.js → WEIGHT_BOYS.zscore.yearly-c61fc388.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-4e5050b6.js → WEIGHT_GIRLS.percentile.monthly-27706de0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-297c26c6.js → WEIGHT_GIRLS.percentile.weekly-910e041a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-bb44c22b.js → WEIGHT_GIRLS.percentile.yearly-19634be2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-715bfa3b.js → WEIGHT_GIRLS.zscore.monthly-32cd08c3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-56dd1717.js → WEIGHT_GIRLS.zscore.weekly-e4568c26.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-64e721cf.js → WEIGHT_GIRLS.zscore.yearly-f6e304b9.js} +0 -0
- /package/build/esm/{animation-5400167d.js → animation-03accc76.js} +0 -0
- /package/build/esm/{constants-0c376e10.js → constants-78ddad2e.js} +0 -0
- /package/build/esm/{constants-76dc3883.js → constants-bf29e0f0.js} +0 -0
- /package/build/esm/{constants-a937eafe.js → constants-fb73e3ef.js} +0 -0
- /package/build/esm/{dataTransform-fe86c90a.js → dataTransform-e22fb4f9.js} +0 -0
- /package/build/esm/{doctor-ce0b76fd.js → doctor-33c9e25e.js} +0 -0
- /package/build/esm/{index-07890117.js → index-2097a507.js} +0 -0
- /package/build/esm/{index-2da128ed.js → index-25586182.js} +0 -0
- /package/build/esm/{index-56099b5d.js → index-49054ff9.js} +0 -0
- /package/build/esm/{index-85758df5.js → index-87d7e39b.js} +0 -0
- /package/build/esm/{index-fd2310c2.js → index-8d7c8364.js} +0 -0
- /package/build/esm/{index-afbe819e.js → index-b3528a2f.js} +0 -0
- /package/build/esm/{index-d11f9211.js → index-cf541b45.js} +0 -0
- /package/build/esm/{index-8d8b4325.js → index-ddbcb091.js} +0 -0
- /package/build/esm/{index.styles-f6a5d126.js → index.styles-3b4cb44d.js} +0 -0
- /package/build/esm/{localizeNumberFormat-69447a14.js → localizeNumberFormat-2063f26d.js} +0 -0
- /package/build/esm/{normalizeLink-56bb54f7.js → normalizeLink-8a2a5d71.js} +0 -0
- /package/build/esm/{number-49c50e28.js → number-b8f051b4.js} +0 -0
- /package/build/esm/{other-d6efb1d9.js → other-6869ae5e.js} +0 -0
- /package/build/esm/{paths-c7db8f50.js → paths-bbb40f27.js} +0 -0
- /package/build/esm/{translationsContext-290825cb.js → translationsContext-3e444dde.js} +0 -0
- /package/build/esm/{tslib.es6-48e9a62a.js → tslib.es6-666e3cd6.js} +0 -0
- /package/build/esm/{types-54a29c87.js → types-1ba72a05.js} +0 -0
- /package/build/esm/{useIsInit-61aa33bb.js → useIsInit-b49e83d5.js} +0 -0
- /package/build/esm/{useOutsideClick-ca9ebf88.js → useOutsideClick-040db14c.js} +0 -0
- /package/build/esm/{useScrollbarSize-3d6b723e.js → useScrollbarSize-241f3dd8.js} +0 -0
- /package/build/esm/{useUniqueId-46818085.js → useUniqueId-62c78e84.js} +0 -0
- /package/build/esm/{utils-c78aa552.js → utils-2cba8675.js} +0 -0
- /package/build/{index-063dd232.js → index-1eda14d7.js} +0 -0
- /package/build/{index-bb749661.js → index-30cceb74.js} +0 -0
- /package/build/{index-8ded19d5.js → index-471f7ea9.js} +0 -0
- /package/build/{index-e90ccbbb.js → index-82f9a77b.js} +0 -0
- /package/build/{index-2b902706.js → index-cb081b49.js} +0 -0
- /package/build/{index-70e345f1.js → index-cf9f60a1.js} +0 -0
- /package/build/{index-a55c0148.js → index-f40549f7.js} +0 -0
- /package/build/{index-31d8f042.js → index-f446d5f6.js} +0 -0
- /package/build/{index.styles-36d65d5c.js → index.styles-d77f7530.js} +0 -0
- /package/build/{localizeNumberFormat-381406cb.js → localizeNumberFormat-64398792.js} +0 -0
- /package/build/{normalizeLink-2736a2fa.js → normalizeLink-bbd9a1a4.js} +0 -0
- /package/build/{number-9fe1f3c7.js → number-e99f35d4.js} +0 -0
- /package/build/{other-55d7a29c.js → other-0f1056c9.js} +0 -0
- /package/build/{paths-4bfc1cef.js → paths-64d1e0f4.js} +0 -0
- /package/build/{translationsContext-9687dc3f.js → translationsContext-13d01c64.js} +0 -0
- /package/build/{tslib.es6-91e092ae.js → tslib.es6-ac3885bf.js} +0 -0
- /package/build/{types-721d4367.js → types-4ac2b84e.js} +0 -0
- /package/build/{useIsInit-78a4b005.js → useIsInit-b6cb0157.js} +0 -0
- /package/build/{useOutsideClick-155e9c38.js → useOutsideClick-03282050.js} +0 -0
- /package/build/{useScrollbarSize-2fac76a7.js → useScrollbarSize-3b28fc7f.js} +0 -0
- /package/build/{useUniqueId-220be409.js → useUniqueId-ff573dd2.js} +0 -0
- /package/build/{utils-ad823692.js → utils-855dca0f.js} +0 -0
|
@@ -1,528 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var uuid = require('uuid');
|
|
4
|
-
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-91e092ae.js');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
|
|
8
|
-
const CAMPAIGN_TARGET_TYPE = { LINKS: 1, TAGS: 2 };
|
|
9
|
-
let LEAD_API = 'https://dev.leadgen.hellobacsi.com/';
|
|
10
|
-
const LEAD_DEVICE_TYPE = {
|
|
11
|
-
MOBILE: 1,
|
|
12
|
-
DESKTOP: 2,
|
|
13
|
-
};
|
|
14
|
-
exports.LEAD_CLASS = '';
|
|
15
|
-
if (LEAD_API.includes('localhost')) {
|
|
16
|
-
LEAD_API = 'https://dev.leadgen.hellobacsi.com/';
|
|
17
|
-
}
|
|
18
|
-
if (location.hostname.includes('marrybaby.vn')) {
|
|
19
|
-
exports.LEAD_CLASS = 'pink';
|
|
20
|
-
}
|
|
21
|
-
// var LEAD_CURRENT_URL = location.href.toLowerCase();
|
|
22
|
-
let LEAD_CURRENT_URL = 'https://' + location.hostname + location.pathname + location.search;
|
|
23
|
-
LEAD_CURRENT_URL = LEAD_CURRENT_URL.toLowerCase();
|
|
24
|
-
// TODO: set inital object if exists
|
|
25
|
-
if (sessionStorage.getItem('insider_object')) {
|
|
26
|
-
window.insider_object = JSON.parse(sessionStorage.getItem('insider_object'));
|
|
27
|
-
}
|
|
28
|
-
const docLang = document.documentElement.lang;
|
|
29
|
-
// TODO: country code
|
|
30
|
-
const LEAD_LOCALE_DATA = {
|
|
31
|
-
'vi-VN': {
|
|
32
|
-
popupLang: 'vi',
|
|
33
|
-
countryCode: 'vn',
|
|
34
|
-
countryCodeNumber: 84,
|
|
35
|
-
},
|
|
36
|
-
'id-ID': {
|
|
37
|
-
popupLang: 'id',
|
|
38
|
-
countryCode: 'id',
|
|
39
|
-
countryCodeNumber: 62,
|
|
40
|
-
},
|
|
41
|
-
'th-TH': {
|
|
42
|
-
popupLang: 'th',
|
|
43
|
-
countryCode: 'th',
|
|
44
|
-
countryCodeNumber: 66,
|
|
45
|
-
},
|
|
46
|
-
'ms-MY': {
|
|
47
|
-
popupLang: 'ms',
|
|
48
|
-
countryCode: 'my',
|
|
49
|
-
countryCodeNumber: 60,
|
|
50
|
-
},
|
|
51
|
-
'zh-TW': {
|
|
52
|
-
popupLang: 'zh',
|
|
53
|
-
countryCode: 'tw',
|
|
54
|
-
countryCodeNumber: 886,
|
|
55
|
-
},
|
|
56
|
-
'km-KH': {
|
|
57
|
-
popupLang: 'km',
|
|
58
|
-
countryCode: 'kh',
|
|
59
|
-
countryCodeNumber: 855,
|
|
60
|
-
},
|
|
61
|
-
'my-MM': {
|
|
62
|
-
popupLang: 'my',
|
|
63
|
-
countryCode: 'mm',
|
|
64
|
-
countryCodeNumber: 95,
|
|
65
|
-
},
|
|
66
|
-
'hi-IN': {
|
|
67
|
-
popupLang: 'hi',
|
|
68
|
-
countryCode: 'in',
|
|
69
|
-
countryCodeNumber: 91,
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
const LEAD_LOCALE = LEAD_LOCALE_DATA[docLang] || LEAD_LOCALE_DATA['vi-VN'];
|
|
73
|
-
function LEAD_RESET_VAR() {
|
|
74
|
-
// LEAD_CURRENT_URL = location.href.toLowerCase();
|
|
75
|
-
LEAD_CURRENT_URL =
|
|
76
|
-
'https://' + location.hostname + location.pathname + location.search;
|
|
77
|
-
}
|
|
78
|
-
const LEAD_TIMEZONE_DATA = {
|
|
79
|
-
1: 'Asia/Ho_Chi_Minh',
|
|
80
|
-
10: 'Asia/Ho_Chi_Minh',
|
|
81
|
-
11: 'Asia/Ho_Chi_Minh',
|
|
82
|
-
12: 'Asia/Ho_Chi_Minh',
|
|
83
|
-
2: 'Asia/Jakarta',
|
|
84
|
-
3: 'Asia/Bangkok',
|
|
85
|
-
4: 'Asia/Phnom_Penh',
|
|
86
|
-
5: 'Asia/Kuala_Lumpur',
|
|
87
|
-
6: 'Asia/Taipei',
|
|
88
|
-
7: 'Asia/Yangon',
|
|
89
|
-
8: 'Asia/Kolkata',
|
|
90
|
-
9: 'Asia/Manila', // Philippines / Filipinos Site
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// import mockLeadData from './mockLeadData'
|
|
94
|
-
const listCampaignScheduled = [];
|
|
95
|
-
const listCampaignScheduledToActivated = [];
|
|
96
|
-
const listCampaignActiveButExpired = [];
|
|
97
|
-
const listCampaignExcludeSonsored = [];
|
|
98
|
-
const listCampaignDifferentSponsor = [];
|
|
99
|
-
const listCampaignNotDisplayInRangeOfTime = [];
|
|
100
|
-
function isMobile() {
|
|
101
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent);
|
|
102
|
-
}
|
|
103
|
-
const getShuffleArray = (array) => {
|
|
104
|
-
const newArray = [...array];
|
|
105
|
-
for (let i = newArray.length - 1; i > 0; i--) {
|
|
106
|
-
const j = Math.floor(Math.random() * (i + 1));
|
|
107
|
-
const temp = newArray[i];
|
|
108
|
-
newArray[i] = newArray[j];
|
|
109
|
-
newArray[j] = temp;
|
|
110
|
-
}
|
|
111
|
-
return newArray;
|
|
112
|
-
};
|
|
113
|
-
const getTimeByTimezone = (timeZone = 'UTC') => {
|
|
114
|
-
const date = new Date();
|
|
115
|
-
return new Date(date.toLocaleString('en-US', { timeZone }));
|
|
116
|
-
};
|
|
117
|
-
const parseDateByCampaignTime = (dateStr) => {
|
|
118
|
-
// Format like this: 2023-04-04 00:00:00
|
|
119
|
-
try {
|
|
120
|
-
const [datePart, timePart] = dateStr.split(' ');
|
|
121
|
-
const [year, month, day] = datePart.split('-').map(Number);
|
|
122
|
-
const [hours, minutes, seconds] = timePart.split(':').map(Number);
|
|
123
|
-
/** JavaScript counts months from 0 to 11 */
|
|
124
|
-
return new Date(year, month - 1, day, hours, minutes, seconds);
|
|
125
|
-
}
|
|
126
|
-
catch (err) {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
const checkCampaignNowInTimeframe = (c) => {
|
|
131
|
-
var _a;
|
|
132
|
-
const siteId = ((_a = c.site) === null || _a === void 0 ? void 0 : _a.id) || 1;
|
|
133
|
-
const startedAtStr = c.started_at;
|
|
134
|
-
const endedAtStr = c.ended_at;
|
|
135
|
-
const startedDate = parseDateByCampaignTime(startedAtStr);
|
|
136
|
-
const endedDate = parseDateByCampaignTime(endedAtStr);
|
|
137
|
-
if (!startedDate || !endedDate) {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
const timeZone = LEAD_TIMEZONE_DATA[siteId];
|
|
141
|
-
const nowWithTimezoneMs = getTimeByTimezone(timeZone).getTime();
|
|
142
|
-
if (nowWithTimezoneMs <= endedDate.getTime() &&
|
|
143
|
-
nowWithTimezoneMs >= startedDate.getTime()) {
|
|
144
|
-
listCampaignScheduledToActivated.push(c);
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
return false;
|
|
148
|
-
};
|
|
149
|
-
function checkCampaignActiveButExpireAlready(c) {
|
|
150
|
-
var _a;
|
|
151
|
-
/** Do not setup timeframe for this campaign. No need to check */
|
|
152
|
-
if (c.forever === 1) {
|
|
153
|
-
return true;
|
|
154
|
-
}
|
|
155
|
-
const startedAtStr = c.started_at;
|
|
156
|
-
const endedAtStr = c.ended_at;
|
|
157
|
-
const startedDate = parseDateByCampaignTime(startedAtStr);
|
|
158
|
-
const endedDate = parseDateByCampaignTime(endedAtStr);
|
|
159
|
-
/** Do not setup timeframe for this campaign. No need to check */
|
|
160
|
-
if (!startedDate || !endedDate) {
|
|
161
|
-
return true;
|
|
162
|
-
}
|
|
163
|
-
const siteId = ((_a = c.site) === null || _a === void 0 ? void 0 : _a.id) || 1;
|
|
164
|
-
const timeZone = LEAD_TIMEZONE_DATA[siteId];
|
|
165
|
-
const nowWithTimezoneMs = getTimeByTimezone(timeZone).getTime();
|
|
166
|
-
/** Check if this expire already, do not show */
|
|
167
|
-
if (nowWithTimezoneMs > endedDate.getTime()) {
|
|
168
|
-
listCampaignActiveButExpired.push(c);
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
function shouldNotDisplayIfExcludeAllSponsors(c) {
|
|
174
|
-
var _a;
|
|
175
|
-
const excludeSponsored = Number((_a = c.rules.find((i) => i.rule == 'exclude_sponsored')) === null || _a === void 0 ? void 0 : _a.value);
|
|
176
|
-
const isSponsored = Boolean(document.querySelector('.hhg-disclaimer-text'));
|
|
177
|
-
if (isSponsored && excludeSponsored) {
|
|
178
|
-
listCampaignExcludeSonsored.push(c);
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
return false;
|
|
182
|
-
}
|
|
183
|
-
function shouldDisplayWithCurrentSponsor(c) {
|
|
184
|
-
var _a, _b;
|
|
185
|
-
try {
|
|
186
|
-
// TODO: BE will rename `exclude_sponsored_list` later
|
|
187
|
-
const stringOrArray = (_a = c.rules.find((i) => i.rule == 'exclude_sponsored_list')) === null || _a === void 0 ? void 0 : _a.value;
|
|
188
|
-
const whiteListSponsors = stringOrArray instanceof Array ? stringOrArray : JSON.parse(stringOrArray);
|
|
189
|
-
const dataSponsoredId = Number((_b = document
|
|
190
|
-
.querySelector('[data-sponsored-id]')) === null || _b === void 0 ? void 0 : _b.getAttribute('data-sponsored-id'));
|
|
191
|
-
// There is no config for sponsor id and white list, should show as default
|
|
192
|
-
if (!dataSponsoredId ||
|
|
193
|
-
dataSponsoredId <= 0 ||
|
|
194
|
-
whiteListSponsors.length === 0) {
|
|
195
|
-
return true;
|
|
196
|
-
}
|
|
197
|
-
// Check the dataSponsoredId exists in the white list or not.
|
|
198
|
-
const isExist = whiteListSponsors.find((s) => s.id == dataSponsoredId);
|
|
199
|
-
if (isExist) {
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
listCampaignDifferentSponsor.push({ id: c.id, rules: c.rules });
|
|
203
|
-
return false;
|
|
204
|
-
}
|
|
205
|
-
catch (err) {
|
|
206
|
-
// Default is show
|
|
207
|
-
return true;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
const filterFnCampaign = (c) => {
|
|
211
|
-
if (shouldNotDisplayIfExcludeAllSponsors(c)) {
|
|
212
|
-
return false;
|
|
213
|
-
}
|
|
214
|
-
else if (!shouldDisplayWithCurrentSponsor(c)) {
|
|
215
|
-
return false;
|
|
216
|
-
}
|
|
217
|
-
/** Active */
|
|
218
|
-
if (c.formatted_status === 1) {
|
|
219
|
-
return checkCampaignActiveButExpireAlready(c);
|
|
220
|
-
}
|
|
221
|
-
/** Schedule */
|
|
222
|
-
if (c.formatted_status === 0) {
|
|
223
|
-
listCampaignScheduled.push(c);
|
|
224
|
-
return checkCampaignNowInTimeframe(c);
|
|
225
|
-
}
|
|
226
|
-
return false;
|
|
227
|
-
};
|
|
228
|
-
const fillterApprearanceTimeCampaign = (c) => {
|
|
229
|
-
var _a;
|
|
230
|
-
try {
|
|
231
|
-
const isTimeInRange = (currentTime, startTime, endTime) => {
|
|
232
|
-
const startParts = startTime.split(':');
|
|
233
|
-
const endParts = endTime.split(':');
|
|
234
|
-
const startDate = new Date();
|
|
235
|
-
startDate.setHours(Number(startParts[0]), Number(startParts[1]), 0, 0);
|
|
236
|
-
const endDate = new Date();
|
|
237
|
-
endDate.setHours(Number(endParts[0]), Number(endParts[1]), 0, 0);
|
|
238
|
-
return currentTime >= startDate && currentTime <= endDate;
|
|
239
|
-
};
|
|
240
|
-
const rulesApprValue = (_a = c.rules.find((i) => i.rule == 'appearance_time')) === null || _a === void 0 ? void 0 : _a.value;
|
|
241
|
-
const startTime = rulesApprValue.startTime;
|
|
242
|
-
const endTime = rulesApprValue.endTime || '23:59';
|
|
243
|
-
if (!startTime) {
|
|
244
|
-
return true;
|
|
245
|
-
}
|
|
246
|
-
if (isTimeInRange(new Date(), startTime, endTime)) {
|
|
247
|
-
return true;
|
|
248
|
-
}
|
|
249
|
-
listCampaignNotDisplayInRangeOfTime.push(c);
|
|
250
|
-
return false;
|
|
251
|
-
}
|
|
252
|
-
catch (err) {
|
|
253
|
-
return true;
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
let timeoutRef = null;
|
|
257
|
-
let LEAD_SCROLL_EVENT = null;
|
|
258
|
-
function clearPassiveEvent() {
|
|
259
|
-
if (timeoutRef) {
|
|
260
|
-
clearTimeout(timeoutRef);
|
|
261
|
-
timeoutRef = null;
|
|
262
|
-
}
|
|
263
|
-
if (LEAD_SCROLL_EVENT) {
|
|
264
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
265
|
-
LEAD_SCROLL_EVENT = null;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
269
|
-
// clear previous passive event, check for new condition
|
|
270
|
-
clearPassiveEvent();
|
|
271
|
-
const leadCurrentUrl = DEBUG_URL ||
|
|
272
|
-
('https://' +
|
|
273
|
-
location.hostname +
|
|
274
|
-
location.pathname +
|
|
275
|
-
location.search).toLowerCase();
|
|
276
|
-
fetch(leadApi + 'api/campaign/' + leadSiteId, {
|
|
277
|
-
method: 'POST',
|
|
278
|
-
headers: {
|
|
279
|
-
'Content-Type': 'application/json',
|
|
280
|
-
},
|
|
281
|
-
body: JSON.stringify({
|
|
282
|
-
url: leadCurrentUrl,
|
|
283
|
-
ga_client_id: miscCookieHelper.getCookie('_ga') || null,
|
|
284
|
-
}),
|
|
285
|
-
})
|
|
286
|
-
.then((response) => {
|
|
287
|
-
return response.json();
|
|
288
|
-
// return mockLeadData || response.json()
|
|
289
|
-
})
|
|
290
|
-
.then((data) => {
|
|
291
|
-
var _a, _b, _c, _d;
|
|
292
|
-
LeadLog('List campagin: ', data);
|
|
293
|
-
LEAD_RESET_VAR();
|
|
294
|
-
if (data._status == 1) {
|
|
295
|
-
const campaigns = (((_b = (_a = data._data) === null || _a === void 0 ? void 0 : _a.campaigns) === null || _b === void 0 ? void 0 : _b.filter(filterFnCampaign)) || []).filter(fillterApprearanceTimeCampaign);
|
|
296
|
-
if (!miscCookieHelper.getCookie('hhg-id')) {
|
|
297
|
-
miscCookieHelper.setCookie('hhg-id', uuid.v1(), {
|
|
298
|
-
domain: '.' + leadDomain,
|
|
299
|
-
path: '/',
|
|
300
|
-
});
|
|
301
|
-
LeadLog('😍 Set HHG ID cookie');
|
|
302
|
-
}
|
|
303
|
-
// getCookie('hhg-id')
|
|
304
|
-
// TODO: HP-534 Filter desktop
|
|
305
|
-
let campaignsDevice = [];
|
|
306
|
-
if (isMobile()) {
|
|
307
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
311
|
-
}
|
|
312
|
-
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
313
|
-
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
314
|
-
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
315
|
-
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
316
|
-
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
317
|
-
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
318
|
-
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
319
|
-
// Check links
|
|
320
|
-
let listLinksObj = campaignsDevice
|
|
321
|
-
.map((i, index) => i.targets
|
|
322
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
323
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
324
|
-
.flat(1);
|
|
325
|
-
// Check list link match current href
|
|
326
|
-
listLinksObj = listLinksObj.filter((i) => {
|
|
327
|
-
var _a;
|
|
328
|
-
const target = new URL(String(i.target).toLowerCase());
|
|
329
|
-
if (i.option == 'exact_match')
|
|
330
|
-
// FOR TEST LOCAL:
|
|
331
|
-
// return Boolean(location.pathname === target.pathname)
|
|
332
|
-
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
333
|
-
if (i.option == 'start_with') {
|
|
334
|
-
// FOR TEST LOCAL:
|
|
335
|
-
// if (location.pathname.includes(target.pathname)) {
|
|
336
|
-
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
337
|
-
const listExcluding = i.sub_target
|
|
338
|
-
.filter((i) => i.option == 'excluding')
|
|
339
|
-
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
340
|
-
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
return false;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
// Check tags
|
|
348
|
-
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
349
|
-
const listTags = listMetaTag.map((i) => i.content);
|
|
350
|
-
let listCampaignHasTag = [];
|
|
351
|
-
let listTagsObj = [];
|
|
352
|
-
if (listTags && listTags.length) {
|
|
353
|
-
listCampaignHasTag = campaignsDevice
|
|
354
|
-
.map((i, index) => i.targets
|
|
355
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
356
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
357
|
-
.flat(1);
|
|
358
|
-
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
359
|
-
}
|
|
360
|
-
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
361
|
-
const cookieKeys = document.cookie
|
|
362
|
-
.split('; ')
|
|
363
|
-
.map((i) => i.split('=')[0]);
|
|
364
|
-
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
365
|
-
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
366
|
-
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
367
|
-
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
368
|
-
const listCampaignSubmitedClosed = [
|
|
369
|
-
...listCampaignCodeSubmited,
|
|
370
|
-
...listCampaignCodeClosed,
|
|
371
|
-
];
|
|
372
|
-
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
373
|
-
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
374
|
-
return !hasSubmited;
|
|
375
|
-
});
|
|
376
|
-
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
377
|
-
// .sort(
|
|
378
|
-
// (a, b) =>
|
|
379
|
-
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
380
|
-
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
381
|
-
// )
|
|
382
|
-
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
383
|
-
if (listCampaignValid && listCampaignValid.length) {
|
|
384
|
-
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
385
|
-
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
386
|
-
const { rules } = CAMPAIGN_SHOW;
|
|
387
|
-
// CHECK RULE TRIGGER POPUP
|
|
388
|
-
const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
|
|
389
|
-
LeadLog(`timeoutRule`, timeoutRule);
|
|
390
|
-
const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
|
|
391
|
-
LeadLog(`scrollRule`, scrollRule);
|
|
392
|
-
let impressionAction = 'TIME';
|
|
393
|
-
if (Number.isInteger(timeoutRule)) {
|
|
394
|
-
impressionAction = 'TIME';
|
|
395
|
-
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
396
|
-
timeoutRef = setTimeout(() => {
|
|
397
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
398
|
-
}, timeoutRule * 1000);
|
|
399
|
-
}
|
|
400
|
-
if (Number.isInteger(scrollRule)) {
|
|
401
|
-
impressionAction = 'SCROLL';
|
|
402
|
-
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
403
|
-
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
404
|
-
document.querySelector('body');
|
|
405
|
-
const pct = $p.getBoundingClientRect().top;
|
|
406
|
-
const pb = $p.offsetHeight;
|
|
407
|
-
LeadLog(`👓 Element check scroll: `, $p);
|
|
408
|
-
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
409
|
-
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
410
|
-
let percent = 0;
|
|
411
|
-
if (wt >= pct) {
|
|
412
|
-
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
413
|
-
}
|
|
414
|
-
LeadLog('---Scroll', percent, scrollRule);
|
|
415
|
-
// TODO: CHECK FOOTER HEIGHT
|
|
416
|
-
if (percent >= scrollRule) {
|
|
417
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
418
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
422
|
-
passive: true,
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
})
|
|
431
|
-
.catch((err) => {
|
|
432
|
-
LeadLog(`Lead error: `, err);
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
const LeadLog = (...params) => {
|
|
436
|
-
if (process.env.NODE_ENV !== 'production' ||
|
|
437
|
-
(process.env.NEXT_PUBLIC_DEPLOY_ENV &&
|
|
438
|
-
process.env.NEXT_PUBLIC_DEPLOY_ENV !== 'production') ||
|
|
439
|
-
(typeof localStorage !== 'undefined' &&
|
|
440
|
-
localStorage.getItem('hhg_debug') === 'true')) {
|
|
441
|
-
console.log(...params);
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
const formatAutoCompleteAddress = (addresses) => {
|
|
446
|
-
if (!addresses || addresses.length < 1)
|
|
447
|
-
return [];
|
|
448
|
-
return addresses.map((s) => ({
|
|
449
|
-
placeId: s.place_id,
|
|
450
|
-
description: s.description,
|
|
451
|
-
rawData: s,
|
|
452
|
-
}));
|
|
453
|
-
};
|
|
454
|
-
const IS_SSR = typeof window === 'undefined';
|
|
455
|
-
// https://developers.google.com/maps/faq#languagesupport
|
|
456
|
-
const GOOGLE_API_LANGUAGE = {
|
|
457
|
-
VN: 'vi',
|
|
458
|
-
ID: 'id',
|
|
459
|
-
TH: 'th',
|
|
460
|
-
MY: 'ms',
|
|
461
|
-
TW: 'zh-TW',
|
|
462
|
-
KH: 'km',
|
|
463
|
-
MM: 'my',
|
|
464
|
-
IN: 'hi',
|
|
465
|
-
PH: 'en',
|
|
466
|
-
};
|
|
467
|
-
const GOOGLE_API_KEY = 'AIzaSyD9AbNa4AFwr8eNVs90G1YhQLhfWJ6KncU';
|
|
468
|
-
const googleAutocomplete = (text = '', countrycode = '', languageCountrycode = 'vi') => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
469
|
-
return new Promise((resolve, reject) => {
|
|
470
|
-
if (!text) {
|
|
471
|
-
return reject('Need valid text input');
|
|
472
|
-
}
|
|
473
|
-
if (IS_SSR) {
|
|
474
|
-
return reject('Need valid window object');
|
|
475
|
-
}
|
|
476
|
-
try {
|
|
477
|
-
new window.google.maps.places.AutocompleteService().getPlacePredictions(Object.assign(Object.assign({ input: text }, (countrycode
|
|
478
|
-
? {
|
|
479
|
-
componentRestrictions: { country: countrycode },
|
|
480
|
-
}
|
|
481
|
-
: {})), { language: GOOGLE_API_LANGUAGE[languageCountrycode] }), resolve);
|
|
482
|
-
}
|
|
483
|
-
catch (e) {
|
|
484
|
-
reject(e);
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
});
|
|
488
|
-
const usePlacesAutocomplete = (text = '', countrycode = '', languageCountrycode = '', debounceTimeout = 500) => {
|
|
489
|
-
const [predictions, setPredictions] = React.useState([]);
|
|
490
|
-
const [isLoading, setIsLoading] = React.useState(false);
|
|
491
|
-
React.useEffect(() => {
|
|
492
|
-
let handleDebounce;
|
|
493
|
-
if (text) {
|
|
494
|
-
handleDebounce = window.setTimeout(() => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
495
|
-
if (!text) {
|
|
496
|
-
setPredictions([]);
|
|
497
|
-
return;
|
|
498
|
-
}
|
|
499
|
-
try {
|
|
500
|
-
setIsLoading(true);
|
|
501
|
-
const nextPredictions = yield googleAutocomplete(text, countrycode, languageCountrycode);
|
|
502
|
-
setPredictions(formatAutoCompleteAddress(nextPredictions));
|
|
503
|
-
}
|
|
504
|
-
catch (e) {
|
|
505
|
-
console.error(e);
|
|
506
|
-
}
|
|
507
|
-
finally {
|
|
508
|
-
setIsLoading(false);
|
|
509
|
-
}
|
|
510
|
-
}), debounceTimeout);
|
|
511
|
-
}
|
|
512
|
-
else if (predictions.length) {
|
|
513
|
-
setPredictions([]);
|
|
514
|
-
}
|
|
515
|
-
return () => {
|
|
516
|
-
window.clearTimeout(handleDebounce);
|
|
517
|
-
};
|
|
518
|
-
}, [text, debounceTimeout, countrycode]);
|
|
519
|
-
return { isLoading, predictions };
|
|
520
|
-
};
|
|
521
|
-
|
|
522
|
-
exports.GOOGLE_API_KEY = GOOGLE_API_KEY;
|
|
523
|
-
exports.GOOGLE_API_LANGUAGE = GOOGLE_API_LANGUAGE;
|
|
524
|
-
exports.LEAD_LOCALE = LEAD_LOCALE;
|
|
525
|
-
exports.LeadLog = LeadLog;
|
|
526
|
-
exports.checkShowPopup = checkShowPopup;
|
|
527
|
-
exports.clearPassiveEvent = clearPassiveEvent;
|
|
528
|
-
exports.usePlacesAutocomplete = usePlacesAutocomplete;
|
/package/build/{BMI_BOYS.percentile.monthly-0c545430.js → BMI_BOYS.percentile.monthly-77d32ede.js}
RENAMED
|
File without changes
|
/package/build/{BMI_BOYS.percentile.weekly-b2abdd52.js → BMI_BOYS.percentile.weekly-34068a3d.js}
RENAMED
|
File without changes
|
/package/build/{BMI_BOYS.percentile.yearly-73da03a1.js → BMI_BOYS.percentile.yearly-3b87566c.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.monthly-f8d3ae24.js → BMI_GIRLS.percentile.monthly-be3ccc40.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.weekly-ab748c6a.js → BMI_GIRLS.percentile.weekly-318e81d5.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.percentile.yearly-002aebb0.js → BMI_GIRLS.percentile.yearly-8cff53b7.js}
RENAMED
|
File without changes
|
/package/build/{BMI_GIRLS.zscore.monthly-e261af22.js → BMI_GIRLS.zscore.monthly-eae04f1f.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.monthly-2b9abf9e.js → HEIGHT_BOYS.zscore.monthly-fefc9c1b.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.weekly-ebc79372.js → HEIGHT_BOYS.zscore.weekly-ada5533a.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_BOYS.zscore.yearly-64acc0b1.js → HEIGHT_BOYS.zscore.yearly-d4e83504.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.monthly-02aa6416.js → HEIGHT_GIRLS.zscore.monthly-05d5dbc9.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.weekly-6c8e7a9f.js → HEIGHT_GIRLS.zscore.weekly-e42ffddc.js}
RENAMED
|
File without changes
|
/package/build/{HEIGHT_GIRLS.zscore.yearly-090810af.js → HEIGHT_GIRLS.zscore.yearly-7aa691cb.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.monthly-6ca85d8d.js → WEIGHT_BOYS.zscore.monthly-9a264811.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.weekly-513cb51e.js → WEIGHT_BOYS.zscore.weekly-1af2c797.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_BOYS.zscore.yearly-d4ba37d8.js → WEIGHT_BOYS.zscore.yearly-b04f8ded.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.monthly-aee13b23.js → WEIGHT_GIRLS.zscore.monthly-0919302e.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.weekly-4f2556e7.js → WEIGHT_GIRLS.zscore.weekly-c23338a0.js}
RENAMED
|
File without changes
|
/package/build/{WEIGHT_GIRLS.zscore.yearly-59489de0.js → WEIGHT_GIRLS.zscore.yearly-77e13b21.js}
RENAMED
|
File without changes
|
|
File without changes
|