@hhgtech/hhg-components 1.29.362-beta-4 → 1.29.362-beta-6
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-e1be6e30.js → InputDate-fd0e82e5.js} +5 -5
- package/build/{LastPeriod-71d556f2.js → LastPeriod-675b0494.js} +1 -1
- package/build/{MobileBottomNavigationIcon-0e8e618d.js → MobileBottomNavigationIcon-88da3d18.js} +3 -3
- package/build/{Spinner-44d4dd80.js → Spinner-c338b48a.js} +1 -1
- package/build/{WhatsApp-9f8ebab8.js → WhatsApp-60349170.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/atoms/inputDate/InputDate.d.ts +2 -0
- package/build/components.js +96 -96
- package/build/{constants-b19745e6.js → constants-d903206f.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-e0613b3f.js → core-b01c1ac6.js} +1 -1
- package/build/{dataTransform-5e92a531.js → dataTransform-394e0d39.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-e48ae369.js → editor-03eeead9.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-6cdaa933.js → InputDate-a4d6ee35.js} +5 -5
- package/build/esm/{LastPeriod-a9073d6f.js → LastPeriod-261ee5fa.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-f24602fc.js → MobileBottomNavigationIcon-b5a1301c.js} +3 -3
- package/build/esm/{Spinner-7eed0f04.js → Spinner-d0e7abf8.js} +1 -1
- package/build/esm/{WhatsApp-1aeae2c2.js → WhatsApp-0015ff5e.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/atoms/inputDate/InputDate.d.ts +2 -0
- package/build/esm/components.js +96 -96
- package/build/esm/{constants-d3ba59ed.js → constants-e2fef392.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-ae363980.js → core-1a9e6336.js} +1 -1
- package/build/esm/{dataTransform-18f61be2.js → dataTransform-8522b6e5.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-325c13f8.js → editor-aa7c1e7e.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-464b574f.js → healthTools-6d9bc6bb.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-7c4eee9e.js → index-0096a0e9.js} +6 -6
- package/build/esm/{index-16284103.js → index-0157dab8.js} +16 -16
- package/build/esm/{index-81e8359f.js → index-02a48b88.js} +3 -3
- package/build/esm/{index-98070cea.js → index-0a319369.js} +1 -1
- package/build/esm/{index-b6b313fd.js → index-1124693a.js} +31 -31
- package/build/esm/{index-0c2633b1.js → index-128b1ed7.js} +2 -2
- package/build/esm/{index-ce403ed6.js → index-12bd7a04.js} +5 -5
- package/build/esm/{index-873f2dd8.js → index-1334730d.js} +13 -13
- package/build/esm/{index-aabe5021.js → index-18855286.js} +11 -11
- package/build/esm/{index-5f92412c.js → index-1cc1ec84.js} +16 -16
- package/build/esm/{index-53c33c7d.js → index-210d3892.js} +32 -32
- package/build/esm/{index-ee89cc22.js → index-271fb414.js} +3 -3
- package/build/esm/{index-91fd0002.js → index-2c25389c.js} +2 -2
- package/build/esm/{index-0ca62c47.js → index-2d0027bb.js} +7 -7
- package/build/esm/{index-a5634eee.js → index-2dea69ae.js} +13 -13
- package/build/esm/{index-07d4351d.js → index-3b97009b.js} +6 -6
- package/build/esm/{index-59eccced.js → index-3d1a057a.js} +3 -3
- package/build/esm/{index-49c950af.js → index-3e49fab2.js} +2 -2
- package/build/esm/{index-10fd8bbd.js → index-43003e56.js} +2 -2
- package/build/esm/{index-380456e6.js → index-4f679233.js} +3 -3
- package/build/esm/{index-653e3328.js → index-5bacde9a.js} +1 -1
- package/build/esm/{index-3cd3b80a.js → index-62833621.js} +2 -2
- package/build/esm/{index-84363547.js → index-69266c15.js} +22 -22
- package/build/esm/{index-c15fab95.js → index-6aee72f8.js} +2 -2
- package/build/esm/{index-d6b5ccb5.js → index-6c0adc97.js} +1 -1
- package/build/esm/{index-7ef21c9f.js → index-6e30f84b.js} +6 -6
- package/build/esm/{index-2420ca4a.js → index-7bc63809.js} +2 -2
- package/build/esm/{index-fd10dcdf.js → index-7bee1da6.js} +1 -1
- package/build/esm/{index-45ecbd3d.js → index-7eb265fa.js} +18 -18
- package/build/esm/{index-4cb4bc06.js → index-8d7414f5.js} +2 -2
- package/build/esm/{index-4a786400.js → index-929b12bb.js} +1 -1
- package/build/esm/{index-1d68a46d.js → index-94fe2230.js} +15 -15
- package/build/esm/{index-5b64af28.js → index-980b3a3b.js} +21 -21
- package/build/esm/{index-c12512ca.js → index-9943a900.js} +2 -2
- package/build/esm/{index-ed345101.js → index-a0e28e14.js} +25 -25
- package/build/esm/{index-6bd8d6d6.js → index-a14ad51b.js} +2 -2
- package/build/esm/{index-e3725af6.js → index-a262027e.js} +17 -17
- package/build/esm/{index-4aaff87d.js → index-a3da289d.js} +1 -1
- package/build/esm/{index-ba8d6821.js → index-a48580cf.js} +18 -18
- package/build/esm/{index-d88fddbf.js → index-a92da53f.js} +16 -16
- package/build/esm/{index-acac3532.js → index-aa78faae.js} +13 -13
- package/build/esm/{index-9864c853.js → index-abd67120.js} +10 -10
- package/build/esm/{index-45ab1908.js → index-ade570f6.js} +3 -3
- package/build/esm/{index-99f4acdc.js → index-ae36d803.js} +7 -7
- package/build/esm/{index-d3d007d2.js → index-b824c63e.js} +6 -6
- package/build/esm/{index-037e4cbf.js → index-b867b65e.js} +17 -17
- package/build/esm/{index-0046d990.js → index-b88e063b.js} +6 -6
- package/build/esm/{index-0b0e3825.js → index-b8ae41e7.js} +1 -1
- package/build/esm/{index-1c2afeb5.js → index-c4070a12.js} +32 -32
- package/build/esm/{index-add9bdea.js → index-c487aa6f.js} +1 -1
- package/build/esm/{index-69a5fc8b.js → index-c4f0d220.js} +16 -16
- package/build/esm/{index-31f4587b.js → index-c502503e.js} +2 -2
- package/build/esm/{index-2852086c.js → index-c53221d3.js} +2 -2
- package/build/esm/{index-3eeade87.js → index-c75d775a.js} +13 -13
- package/build/esm/{index-088d0012.js → index-c7bef4da.js} +1 -1
- package/build/esm/{index-2d3bf3c9.js → index-cc9c4f8d.js} +24 -24
- package/build/esm/{index-217d458c.js → index-d4f98ef0.js} +3 -3
- package/build/esm/{index-f64086c7.js → index-d76f8524.js} +16 -16
- package/build/esm/{index-af3417e3.js → index-d926a789.js} +17 -17
- package/build/esm/{index-77d422e3.js → index-e2df7129.js} +2 -2
- package/build/esm/{index-f897f4f2.js → index-e2fa8007.js} +2 -2
- package/build/esm/{index-bdc55851.js → index-e512d075.js} +4 -4
- package/build/esm/{index-c4b210af.js → index-ed8b1b4d.js} +10 -10
- package/build/esm/{index-9c90717a.js → index-fdaccc36.js} +5 -5
- package/build/esm/index.js +117 -117
- package/build/esm/interfaces/types/Subot.d.ts +2 -0
- package/build/esm/{labelSorting-8345d24c.js → labelSorting-59a03a60.js} +4 -4
- package/build/esm/lead.js +25 -462
- package/build/esm/{logoIcon-57bb9648.js → logoIcon-f5fabf8a.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-f8bf5a43.js → post-0bb56712.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-8aab21fc.js → store-2f4a3de8.js} +4 -4
- package/build/esm/subot/components/dob/utils.d.ts +4 -2
- package/build/esm/subot/components/userInfoForm/utils.d.ts +2 -0
- package/build/esm/subot.js +118 -112
- package/build/esm/surveyOrPremiumBanner.js +32 -32
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-976d0d65.js → surveyThankyouCard-acd5065b.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-499d73f5.js → treePopoverMenu-a2c5e10b.js} +19 -19
- package/build/esm/{types-0ea71f58.js → types-c6f4b649.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-dc3df0d5.js → useCategory-e6c5f3f4.js} +5 -5
- package/build/esm/{useHealthToolCache-01ecd27f.js → useHealthToolCache-42bb7e54.js} +1 -1
- package/build/esm/{useMantineLocale-bd093e71.js → useMantineLocale-86072926.js} +6 -6
- package/build/esm/usePlacesAutocomplete-a9d55e56.js +520 -0
- package/build/esm/{useScreenSize-bd068022.js → useScreenSize-d5709b35.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-43693169.js → utils-3fb29038.js} +3 -3
- package/build/esm/{utils-1a1fa9db.js → utils-80c1ae9d.js} +2 -2
- package/build/esm/{utils-20554857.js → utils-c7536c86.js} +2 -2
- package/build/esm/{utils-7da0a956.js → utils-fa1cee35.js} +4 -4
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/{healthTools-076f76f5.js → healthTools-e42395ee.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-8a8a468e.js → index-001fada4.js} +13 -13
- package/build/{index-b13b1f46.js → index-053f53ad.js} +2 -2
- package/build/{index-d3d9a2b9.js → index-05432eda.js} +4 -4
- package/build/{index-b6f20d0e.js → index-0a086949.js} +6 -6
- package/build/{index-935c2efa.js → index-0b638588.js} +2 -2
- package/build/{index-49479aff.js → index-0d2b0272.js} +25 -25
- package/build/{index-20a90cd0.js → index-0e15566a.js} +10 -10
- package/build/{index-5d3f3176.js → index-14e8a4bf.js} +2 -2
- package/build/{index-2a69d374.js → index-1aa248b8.js} +3 -3
- package/build/{index-de65ab72.js → index-223ee091.js} +2 -2
- package/build/{index-35ce4787.js → index-234dcab6.js} +6 -6
- package/build/{index-1b63aa44.js → index-28246ee7.js} +18 -18
- package/build/{index-6c8d3059.js → index-2b4a1fa4.js} +2 -2
- package/build/{index-d4739619.js → index-2b664d4c.js} +6 -6
- package/build/{index-92750471.js → index-2fd0440f.js} +24 -24
- package/build/{index-9560e920.js → index-341b39a7.js} +1 -1
- package/build/{index-a013cc2e.js → index-3427e121.js} +1 -1
- package/build/{index-b87e6ebc.js → index-34ba141e.js} +31 -31
- package/build/{index-ea4f33ef.js → index-37170515.js} +16 -16
- package/build/{index-9090372f.js → index-47c7236c.js} +5 -5
- package/build/{index-8fca7a9d.js → index-4e12800c.js} +1 -1
- package/build/{index-558853e8.js → index-53b50908.js} +15 -15
- package/build/{index-21f4afdb.js → index-5475cf4e.js} +16 -16
- package/build/{index-3db4e12d.js → index-5a251e58.js} +16 -16
- package/build/{index-47e79b45.js → index-669d4781.js} +10 -10
- package/build/{index-3a974a72.js → index-6bbf3de0.js} +13 -13
- package/build/{index-a307a670.js → index-6d023e3f.js} +1 -1
- package/build/{index-2a177667.js → index-733dea52.js} +17 -17
- package/build/{index-13837682.js → index-7858e63b.js} +2 -2
- package/build/{index-21711ffd.js → index-7995fd09.js} +16 -16
- package/build/{index-b9da4d8b.js → index-7efb4007.js} +16 -16
- package/build/{index-0e638091.js → index-7f31c1b3.js} +17 -17
- package/build/{index-b5a0c362.js → index-868f265e.js} +21 -21
- package/build/{index-fadb11d3.js → index-869029fb.js} +3 -3
- package/build/{index-0c76baea.js → index-88c05c6d.js} +2 -2
- package/build/{index-58e51768.js → index-89dfd95d.js} +7 -7
- package/build/{index-699b9301.js → index-8af743c4.js} +1 -1
- package/build/{index-aebacbb2.js → index-8b14ab7a.js} +2 -2
- package/build/{index-69435f42.js → index-8bf4db6f.js} +17 -17
- package/build/{index-f84993ad.js → index-97349834.js} +1 -1
- package/build/{index-3b15a8ca.js → index-9ab6eff7.js} +3 -3
- package/build/{index-99718f1d.js → index-9becb073.js} +13 -13
- package/build/{index-a8aec9f7.js → index-a0523f88.js} +6 -6
- package/build/{index-e814fd18.js → index-a5454694.js} +32 -32
- package/build/{index-3db2f173.js → index-ab62215d.js} +3 -3
- package/build/{index-546d06a7.js → index-ac084a83.js} +18 -18
- package/build/{index-1b286145.js → index-b4b29605.js} +32 -32
- package/build/{index-89ddaca2.js → index-b9c21c28.js} +6 -6
- package/build/{index-1a053ab4.js → index-c0628923.js} +13 -13
- package/build/{index-d3a1b3a6.js → index-c06af6e7.js} +1 -1
- package/build/{index-4032bb76.js → index-c359d080.js} +2 -2
- package/build/{index-e79696ef.js → index-c3bcf68a.js} +2 -2
- package/build/{index-63c244cd.js → index-c80bb596.js} +3 -3
- package/build/{index-da767d94.js → index-c984ffbe.js} +2 -2
- package/build/{index-a8c86df7.js → index-d1741909.js} +1 -1
- package/build/{index-3e0c5791.js → index-db5c4f29.js} +7 -7
- package/build/{index-5016f9ca.js → index-deeabe50.js} +2 -2
- package/build/{index-65f33982.js → index-e06a7e67.js} +22 -22
- package/build/{index-a811f7ac.js → index-e76258d1.js} +3 -3
- package/build/{index-dc2c3c19.js → index-eaea1669.js} +11 -11
- package/build/{index-3667d285.js → index-f28b96a7.js} +2 -2
- package/build/{index-47ab9159.js → index-f39711fb.js} +2 -2
- package/build/{index-533d8aac.js → index-f518f327.js} +1 -1
- package/build/{index-60760dd9.js → index-fad8eaac.js} +5 -5
- package/build/index.js +117 -117
- package/build/interfaces/types/Subot.d.ts +2 -0
- package/build/{labelSorting-41215dae.js → labelSorting-3a57f00a.js} +4 -4
- package/build/lead.js +55 -492
- package/build/{logoIcon-aee89899.js → logoIcon-1d0cec48.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-239560ac.js → post-953ae518.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-c0cc20c3.js → store-ec082514.js} +4 -4
- package/build/subot/components/dob/utils.d.ts +4 -2
- package/build/subot/components/userInfoForm/utils.d.ts +2 -0
- package/build/subot.js +116 -110
- package/build/surveyOrPremiumBanner.js +32 -32
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-9cc336eb.js → surveyThankyouCard-60c65d4f.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-bc38212c.js → treePopoverMenu-a5ab646e.js} +19 -19
- package/build/{types-e0c4369a.js → types-df93deb4.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-2ee381aa.js → useCategory-0f8cbb89.js} +5 -5
- package/build/{useHealthToolCache-98e0f614.js → useHealthToolCache-656e214f.js} +1 -1
- package/build/{useMantineLocale-bfb9db0d.js → useMantineLocale-d3b08d5e.js} +6 -6
- package/build/usePlacesAutocomplete-7b83983f.js +528 -0
- package/build/{useScreenSize-4399bd9f.js → useScreenSize-c6515eb2.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-403f0647.js → utils-89f1d6d4.js} +3 -3
- package/build/{utils-49d56a81.js → utils-8cdcde5d.js} +2 -2
- package/build/{utils-7877f771.js → utils-925d1a21.js} +2 -2
- package/build/{utils-20b7ba1c.js → utils-ad1f98b3.js} +4 -4
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/usePlacesAutocomplete-6d0f68c7.js +0 -81
- package/build/usePlacesAutocomplete-f1b37b61.js +0 -85
- /package/build/{BMI_BOYS.percentile.monthly-ba882751.js → BMI_BOYS.percentile.monthly-0c545430.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-ea75e1cf.js → BMI_BOYS.percentile.weekly-b2abdd52.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-9ec7bad0.js → BMI_BOYS.percentile.yearly-73da03a1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-dafdf1fd.js → BMI_BOYS.zscore.monthly-5bc00bd2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b19cfd07.js → BMI_BOYS.zscore.weekly-b270dca9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-6ca20420.js → BMI_BOYS.zscore.yearly-e11a3061.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-3730e0c7.js → BMI_GIRLS.percentile.monthly-f8d3ae24.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-cc69d490.js → BMI_GIRLS.percentile.weekly-ab748c6a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-24832a0d.js → BMI_GIRLS.percentile.yearly-002aebb0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-54e2ef16.js → BMI_GIRLS.zscore.monthly-e261af22.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-f63bbc32.js → BMI_GIRLS.zscore.weekly-d58566a9.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-562bc044.js → BMI_GIRLS.zscore.yearly-1147723e.js} +0 -0
- /package/build/{ChevronDown-67f69d5f.js → ChevronDown-83383af6.js} +0 -0
- /package/build/{Close-5e14817a.js → Close-8e99232e.js} +0 -0
- /package/build/{Google-8a43b2c9.js → Google-d203467c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-2ece4d2b.js → HEAD CIRCUM_BOYS.percentile.monthly-211f31d0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-e00ecc7f.js → HEAD CIRCUM_BOYS.percentile.weekly-ad1b91eb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-dc4d5320.js → HEAD CIRCUM_BOYS.percentile.yearly-3ef825f4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-4bac3162.js → HEAD CIRCUM_BOYS.zscore.monthly-dd61aed0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-edf860f8.js → HEAD CIRCUM_BOYS.zscore.weekly-5f4bf7d7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-70a3b850.js → HEAD CIRCUM_BOYS.zscore.yearly-f503bf61.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0f7879de.js → HEAD CIRCUM_GIRLS.percentile.monthly-76db00a2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-2e92adc6.js → HEAD CIRCUM_GIRLS.percentile.weekly-60938b9d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-25eea949.js → HEAD CIRCUM_GIRLS.percentile.yearly-de08eaf6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9d5ef504.js → HEAD CIRCUM_GIRLS.zscore.monthly-5de26ec2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-18bb16bd.js → HEAD CIRCUM_GIRLS.zscore.weekly-ba767399.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-bc067e11.js → HEAD CIRCUM_GIRLS.zscore.yearly-2d8cafcb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-f6ae17e8.js → HEIGHT_BOYS.percentile.monthly-3aa10b4d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-2a02a701.js → HEIGHT_BOYS.percentile.weekly-ae1f58fc.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1979e09f.js → HEIGHT_BOYS.percentile.yearly-ec9b6a67.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-30a814f8.js → HEIGHT_BOYS.zscore.monthly-2b9abf9e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e8a598e3.js → HEIGHT_BOYS.zscore.weekly-ebc79372.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-8a0156ce.js → HEIGHT_BOYS.zscore.yearly-64acc0b1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-eca8f53c.js → HEIGHT_GIRLS.percentile.monthly-8a6d5ba4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-47102064.js → HEIGHT_GIRLS.percentile.weekly-94c6540f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-01135b0e.js → HEIGHT_GIRLS.percentile.yearly-3142b8d2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-96972720.js → HEIGHT_GIRLS.zscore.monthly-02aa6416.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c93ff614.js → HEIGHT_GIRLS.zscore.weekly-6c8e7a9f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c080e8fd.js → HEIGHT_GIRLS.zscore.yearly-090810af.js} +0 -0
- /package/build/{Locale-b6198746.js → Locale-3b16bb0e.js} +0 -0
- /package/build/{Visible-70d7db0a.js → Visible-71839201.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-0f546cd3.js → WEIGHT_BOYS.percentile.monthly-ccef0bf9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-e49ef9aa.js → WEIGHT_BOYS.percentile.weekly-3e37816c.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-820be855.js → WEIGHT_BOYS.percentile.yearly-37663922.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-756e08cd.js → WEIGHT_BOYS.zscore.monthly-6ca85d8d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-1dba5a7f.js → WEIGHT_BOYS.zscore.weekly-513cb51e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-75005e39.js → WEIGHT_BOYS.zscore.yearly-d4ba37d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1e8c72d9.js → WEIGHT_GIRLS.percentile.monthly-3459d0c0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-fc6aefcf.js → WEIGHT_GIRLS.percentile.weekly-73376e4d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-9ea63248.js → WEIGHT_GIRLS.percentile.yearly-39258498.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-90daee63.js → WEIGHT_GIRLS.zscore.monthly-aee13b23.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-b7a63e96.js → WEIGHT_GIRLS.zscore.weekly-4f2556e7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-f2f26e13.js → WEIGHT_GIRLS.zscore.yearly-59489de0.js} +0 -0
- /package/build/{animation-b6455916.js → animation-ee9cffdc.js} +0 -0
- /package/build/{constants-13088947.js → constants-46765397.js} +0 -0
- /package/build/{constants-a6b55494.js → constants-be090ce4.js} +0 -0
- /package/build/{constants-44329ecb.js → constants-c9a1b55d.js} +0 -0
- /package/build/{dataTransform-9097c356.js → dataTransform-577eda33.js} +0 -0
- /package/build/{doctor-6c270d75.js → doctor-aea52c10.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-b2932b8f.js → BMI_BOYS.percentile.monthly-421ba7a1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-3031be7b.js → BMI_BOYS.percentile.weekly-2131d37d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-5491020d.js → BMI_BOYS.percentile.yearly-7d7ac950.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-28cbf883.js → BMI_BOYS.zscore.monthly-f8b5a1ee.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-976153d3.js → BMI_BOYS.zscore.weekly-1c0b0ccf.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-8098fcbc.js → BMI_BOYS.zscore.yearly-cd3e748e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-6b6a49e0.js → BMI_GIRLS.percentile.monthly-b67288e2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-d2e28dde.js → BMI_GIRLS.percentile.weekly-10e2e494.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5df00fb5.js → BMI_GIRLS.percentile.yearly-0e593580.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f7e38afc.js → BMI_GIRLS.zscore.monthly-230a4308.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-bc76766d.js → BMI_GIRLS.zscore.weekly-b461adde.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ad065215.js → BMI_GIRLS.zscore.yearly-e6ec3a95.js} +0 -0
- /package/build/esm/{ChevronDown-0636f64c.js → ChevronDown-6513a253.js} +0 -0
- /package/build/esm/{Close-cdfc64fa.js → Close-e4e577cb.js} +0 -0
- /package/build/esm/{Google-ed99e5c9.js → Google-1a588c29.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b6fb38fb.js → HEAD CIRCUM_BOYS.percentile.monthly-0c38a166.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-08b975ca.js → HEAD CIRCUM_BOYS.percentile.weekly-32cae606.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2d6fe027.js → HEAD CIRCUM_BOYS.percentile.yearly-416f773a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-6973d98b.js → HEAD CIRCUM_BOYS.zscore.monthly-dbdb6c06.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-47d08272.js → HEAD CIRCUM_BOYS.zscore.weekly-28568e5a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ba2eb548.js → HEAD CIRCUM_BOYS.zscore.yearly-446d3462.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-740b9fe2.js → HEAD CIRCUM_GIRLS.percentile.monthly-7d5e08b6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-f872d1e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-5a7731cb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-24211fd8.js → HEAD CIRCUM_GIRLS.percentile.yearly-70d17e88.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-044d4443.js → HEAD CIRCUM_GIRLS.zscore.monthly-6e9b3ea4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-09e2bc7d.js → HEAD CIRCUM_GIRLS.zscore.weekly-578339b4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-3fb7a64b.js → HEAD CIRCUM_GIRLS.zscore.yearly-5d82e048.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6d6a3bed.js → HEIGHT_BOYS.percentile.monthly-ceb0c7ee.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-a50691c8.js → HEIGHT_BOYS.percentile.weekly-43fdcf07.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-bb6443fe.js → HEIGHT_BOYS.percentile.yearly-5d863523.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-84ef033e.js → HEIGHT_BOYS.zscore.monthly-7a2bbfd1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-65579f16.js → HEIGHT_BOYS.zscore.weekly-65248000.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-db3aef5d.js → HEIGHT_BOYS.zscore.yearly-3de1aa3b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ebd48b01.js → HEIGHT_GIRLS.percentile.monthly-f5422ca7.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a4a786f7.js → HEIGHT_GIRLS.percentile.weekly-8de0c176.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3e936e66.js → HEIGHT_GIRLS.percentile.yearly-30774397.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-1ac2da5d.js → HEIGHT_GIRLS.zscore.monthly-acc7105f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-06a02167.js → HEIGHT_GIRLS.zscore.weekly-3440fc9e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-631fcb40.js → HEIGHT_GIRLS.zscore.yearly-5057439c.js} +0 -0
- /package/build/esm/{Locale-fc8be7de.js → Locale-1c96ad9c.js} +0 -0
- /package/build/esm/{Visible-b6758e21.js → Visible-93776058.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-feceb350.js → WEIGHT_BOYS.percentile.monthly-bf753079.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0b2a5c7c.js → WEIGHT_BOYS.percentile.weekly-5e9af001.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-e4df24dd.js → WEIGHT_BOYS.percentile.yearly-662fbde6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3c5af46d.js → WEIGHT_BOYS.zscore.monthly-f0475982.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f5fc12f8.js → WEIGHT_BOYS.zscore.weekly-6aafdeeb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f6884de6.js → WEIGHT_BOYS.zscore.yearly-5fc306b9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2971124c.js → WEIGHT_GIRLS.percentile.monthly-4e5050b6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c797158a.js → WEIGHT_GIRLS.percentile.weekly-297c26c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-b716ee26.js → WEIGHT_GIRLS.percentile.yearly-bb44c22b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-2d77a6c3.js → WEIGHT_GIRLS.zscore.monthly-715bfa3b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-ec53ef2c.js → WEIGHT_GIRLS.zscore.weekly-56dd1717.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-26a1be04.js → WEIGHT_GIRLS.zscore.yearly-64e721cf.js} +0 -0
- /package/build/esm/{animation-128195ec.js → animation-5400167d.js} +0 -0
- /package/build/esm/{constants-e71c076b.js → constants-0c376e10.js} +0 -0
- /package/build/esm/{constants-d7f47028.js → constants-76dc3883.js} +0 -0
- /package/build/esm/{constants-8ba27525.js → constants-a937eafe.js} +0 -0
- /package/build/esm/{dataTransform-9ca4defb.js → dataTransform-fe86c90a.js} +0 -0
- /package/build/esm/{doctor-8eb2d477.js → doctor-ce0b76fd.js} +0 -0
- /package/build/esm/{index-e535957e.js → index-07890117.js} +0 -0
- /package/build/esm/{index-e3799f05.js → index-2da128ed.js} +0 -0
- /package/build/esm/{index-58e7a004.js → index-56099b5d.js} +0 -0
- /package/build/esm/{index-999e507f.js → index-85758df5.js} +0 -0
- /package/build/esm/{index-22f0be96.js → index-8d8b4325.js} +0 -0
- /package/build/esm/{index-f401bf2e.js → index-afbe819e.js} +0 -0
- /package/build/esm/{index-1064a1a3.js → index-d11f9211.js} +0 -0
- /package/build/esm/{index-1f479de5.js → index-fd2310c2.js} +0 -0
- /package/build/esm/{index.styles-c6ba3938.js → index.styles-f6a5d126.js} +0 -0
- /package/build/esm/{localizeNumberFormat-214d8ba4.js → localizeNumberFormat-69447a14.js} +0 -0
- /package/build/esm/{normalizeLink-648533d8.js → normalizeLink-56bb54f7.js} +0 -0
- /package/build/esm/{number-81701fea.js → number-49c50e28.js} +0 -0
- /package/build/esm/{other-6e01f149.js → other-d6efb1d9.js} +0 -0
- /package/build/esm/{paths-c656c3b5.js → paths-c7db8f50.js} +0 -0
- /package/build/esm/{translationsContext-1622f33c.js → translationsContext-290825cb.js} +0 -0
- /package/build/esm/{tslib.es6-158ccc1d.js → tslib.es6-48e9a62a.js} +0 -0
- /package/build/esm/{types-407cd604.js → types-54a29c87.js} +0 -0
- /package/build/esm/{useIsInit-6a38e8a6.js → useIsInit-61aa33bb.js} +0 -0
- /package/build/esm/{useOutsideClick-e74107d4.js → useOutsideClick-ca9ebf88.js} +0 -0
- /package/build/esm/{useScrollbarSize-60ea662f.js → useScrollbarSize-3d6b723e.js} +0 -0
- /package/build/esm/{useUniqueId-5ba90923.js → useUniqueId-46818085.js} +0 -0
- /package/build/esm/{utils-cd594041.js → utils-c78aa552.js} +0 -0
- /package/build/{index-e43cfa63.js → index-063dd232.js} +0 -0
- /package/build/{index-f79016ad.js → index-2b902706.js} +0 -0
- /package/build/{index-cb21af64.js → index-31d8f042.js} +0 -0
- /package/build/{index-ce349653.js → index-70e345f1.js} +0 -0
- /package/build/{index-16a28d8a.js → index-8ded19d5.js} +0 -0
- /package/build/{index-1db2cc7a.js → index-a55c0148.js} +0 -0
- /package/build/{index-081c7fb3.js → index-bb749661.js} +0 -0
- /package/build/{index-fea999ae.js → index-e90ccbbb.js} +0 -0
- /package/build/{index.styles-7115b21f.js → index.styles-36d65d5c.js} +0 -0
- /package/build/{localizeNumberFormat-b1e4ceeb.js → localizeNumberFormat-381406cb.js} +0 -0
- /package/build/{normalizeLink-d9ff1223.js → normalizeLink-2736a2fa.js} +0 -0
- /package/build/{number-f140b9d8.js → number-9fe1f3c7.js} +0 -0
- /package/build/{other-dcd6c6e0.js → other-55d7a29c.js} +0 -0
- /package/build/{paths-a94cd467.js → paths-4bfc1cef.js} +0 -0
- /package/build/{translationsContext-0cce698e.js → translationsContext-9687dc3f.js} +0 -0
- /package/build/{tslib.es6-0f05f7d2.js → tslib.es6-91e092ae.js} +0 -0
- /package/build/{types-355cbe93.js → types-721d4367.js} +0 -0
- /package/build/{useIsInit-64a0e22f.js → useIsInit-78a4b005.js} +0 -0
- /package/build/{useOutsideClick-78c44ba4.js → useOutsideClick-155e9c38.js} +0 -0
- /package/build/{useScrollbarSize-f372f10c.js → useScrollbarSize-2fac76a7.js} +0 -0
- /package/build/{useUniqueId-2d718c77.js → useUniqueId-220be409.js} +0 -0
- /package/build/{utils-92198b16.js → utils-ad823692.js} +0 -0
package/build/esm/lead.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-48e9a62a.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useState, useContext, forwardRef, useCallback, useImperativeHandle, memo } from 'react';
|
|
3
3
|
import { createStyles, Box, Input as Input$1, clsx, Autocomplete, Checkbox as Checkbox$1, Radio as Radio$1, Select as Select$1, TextInput, NumberInput as NumberInput$1, Button as Button$2, Portal, Transition, Overlay } from '@mantine/core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import debounce from 'lodash/debounce';
|
|
6
6
|
import { createFormContext, useForm } from '@mantine/form';
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
7
|
+
import { b as LEAD_LOCALE, u as usePlacesAutocomplete, G as GOOGLE_API_KEY, c as LEAD_CLASS, L as LeadLog, d as checkShowPopup, e as clearPassiveEvent } from './usePlacesAutocomplete-a9d55e56.js';
|
|
8
|
+
import { u as useTranslations } from './index-0a319369.js';
|
|
9
|
+
import { T as TranslationsContext } from './translationsContext-290825cb.js';
|
|
9
10
|
import { getCookie, setCookie } from './miscCookieHelper.js';
|
|
10
|
-
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-
|
|
11
|
-
import { T as Text } from './index-
|
|
12
|
-
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-
|
|
13
|
-
import { D as DatePicker } from './index-
|
|
14
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
11
|
+
import { b as getWrapperDomWithSelector, a as getPopupWrapperDom } from './utils-c78aa552.js';
|
|
12
|
+
import { T as Text } from './index-43003e56.js';
|
|
13
|
+
import { S as Select, d as Checkbox, I as Input, R as Radio, P as Phone, N as NumberInput, O as OTP } from './index-18855286.js';
|
|
14
|
+
import { D as DatePicker } from './index-b88e063b.js';
|
|
15
|
+
import { M as MAPPED_LOCALE } from './utils-c7536c86.js';
|
|
15
16
|
import { DateInput } from '@mantine/dates';
|
|
16
|
-
import { Z as ZINDEX_SSO } from './index-
|
|
17
|
-
import './index-
|
|
18
|
-
import './index-
|
|
19
|
-
import './useMantineLocale-
|
|
20
|
-
import { B as Button$1 } from './index-
|
|
21
|
-
import './index.styles-
|
|
17
|
+
import { Z as ZINDEX_SSO } from './index-e2df7129.js';
|
|
18
|
+
import './index-a3da289d.js';
|
|
19
|
+
import './index-fd2310c2.js';
|
|
20
|
+
import './useMantineLocale-86072926.js';
|
|
21
|
+
import { B as Button$1 } from './index-7bee1da6.js';
|
|
22
|
+
import './index.styles-f6a5d126.js';
|
|
22
23
|
import { useClickOutside } from '@mantine/hooks';
|
|
23
|
-
import './other-
|
|
24
|
-
import './index-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { H as Heading$1 } from './index-0c2633b1.js';
|
|
24
|
+
import './other-d6efb1d9.js';
|
|
25
|
+
import './index-3d1a057a.js';
|
|
26
|
+
import { B as Button } from './index-2c25389c.js';
|
|
27
|
+
import { H as Heading$1 } from './index-128b1ed7.js';
|
|
28
28
|
import styled from '@emotion/styled';
|
|
29
29
|
import { v1 } from 'uuid';
|
|
30
30
|
import { css } from '@emotion/react';
|
|
31
31
|
import { theme } from './miscTheme.js';
|
|
32
|
-
import { i as isVideo } from './index-
|
|
33
|
-
import { D as DrawerComponent } from './index-
|
|
34
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
32
|
+
import { i as isVideo } from './index-d11f9211.js';
|
|
33
|
+
import { D as DrawerComponent } from './index-e2fa8007.js';
|
|
34
|
+
import { u as useScreenSize } from './useScreenSize-d5709b35.js';
|
|
35
35
|
import { createPortal } from 'react-dom';
|
|
36
|
-
import { C as Close } from './Close-
|
|
36
|
+
import { C as Close } from './Close-e4e577cb.js';
|
|
37
37
|
import '@hhgtech/icons/other';
|
|
38
38
|
import '@mantine/carousel';
|
|
39
|
-
import './Locale-
|
|
39
|
+
import './Locale-1c96ad9c.js';
|
|
40
40
|
import 'classnames';
|
|
41
|
-
import './useUniqueId-
|
|
41
|
+
import './useUniqueId-46818085.js';
|
|
42
42
|
import './constantsSite.js';
|
|
43
43
|
import '@hhgtech/icons/core';
|
|
44
44
|
import 'date-fns/locale';
|
|
@@ -50,91 +50,6 @@ import 'vaul';
|
|
|
50
50
|
|
|
51
51
|
const LeadGenComponentContext = createContext({});
|
|
52
52
|
|
|
53
|
-
const CAMPAIGN_TARGET_TYPE = { LINKS: 1, TAGS: 2 };
|
|
54
|
-
let LEAD_API = 'https://dev.leadgen.hellobacsi.com/';
|
|
55
|
-
const LEAD_DEVICE_TYPE = {
|
|
56
|
-
MOBILE: 1,
|
|
57
|
-
DESKTOP: 2,
|
|
58
|
-
};
|
|
59
|
-
let LEAD_CLASS = '';
|
|
60
|
-
if (LEAD_API.includes('localhost')) {
|
|
61
|
-
LEAD_API = 'https://dev.leadgen.hellobacsi.com/';
|
|
62
|
-
}
|
|
63
|
-
if (location.hostname.includes('marrybaby.vn')) {
|
|
64
|
-
LEAD_CLASS = 'pink';
|
|
65
|
-
}
|
|
66
|
-
// var LEAD_CURRENT_URL = location.href.toLowerCase();
|
|
67
|
-
let LEAD_CURRENT_URL = 'https://' + location.hostname + location.pathname + location.search;
|
|
68
|
-
LEAD_CURRENT_URL = LEAD_CURRENT_URL.toLowerCase();
|
|
69
|
-
// TODO: set inital object if exists
|
|
70
|
-
if (sessionStorage.getItem('insider_object')) {
|
|
71
|
-
window.insider_object = JSON.parse(sessionStorage.getItem('insider_object'));
|
|
72
|
-
}
|
|
73
|
-
const docLang = document.documentElement.lang;
|
|
74
|
-
// TODO: country code
|
|
75
|
-
const LEAD_LOCALE_DATA$1 = {
|
|
76
|
-
'vi-VN': {
|
|
77
|
-
popupLang: 'vi',
|
|
78
|
-
countryCode: 'vn',
|
|
79
|
-
countryCodeNumber: 84,
|
|
80
|
-
},
|
|
81
|
-
'id-ID': {
|
|
82
|
-
popupLang: 'id',
|
|
83
|
-
countryCode: 'id',
|
|
84
|
-
countryCodeNumber: 62,
|
|
85
|
-
},
|
|
86
|
-
'th-TH': {
|
|
87
|
-
popupLang: 'th',
|
|
88
|
-
countryCode: 'th',
|
|
89
|
-
countryCodeNumber: 66,
|
|
90
|
-
},
|
|
91
|
-
'ms-MY': {
|
|
92
|
-
popupLang: 'ms',
|
|
93
|
-
countryCode: 'my',
|
|
94
|
-
countryCodeNumber: 60,
|
|
95
|
-
},
|
|
96
|
-
'zh-TW': {
|
|
97
|
-
popupLang: 'zh',
|
|
98
|
-
countryCode: 'tw',
|
|
99
|
-
countryCodeNumber: 886,
|
|
100
|
-
},
|
|
101
|
-
'km-KH': {
|
|
102
|
-
popupLang: 'km',
|
|
103
|
-
countryCode: 'kh',
|
|
104
|
-
countryCodeNumber: 855,
|
|
105
|
-
},
|
|
106
|
-
'my-MM': {
|
|
107
|
-
popupLang: 'my',
|
|
108
|
-
countryCode: 'mm',
|
|
109
|
-
countryCodeNumber: 95,
|
|
110
|
-
},
|
|
111
|
-
'hi-IN': {
|
|
112
|
-
popupLang: 'hi',
|
|
113
|
-
countryCode: 'in',
|
|
114
|
-
countryCodeNumber: 91,
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
const LEAD_LOCALE = LEAD_LOCALE_DATA$1[docLang] || LEAD_LOCALE_DATA$1['vi-VN'];
|
|
118
|
-
function LEAD_RESET_VAR() {
|
|
119
|
-
// LEAD_CURRENT_URL = location.href.toLowerCase();
|
|
120
|
-
LEAD_CURRENT_URL =
|
|
121
|
-
'https://' + location.hostname + location.pathname + location.search;
|
|
122
|
-
}
|
|
123
|
-
const LEAD_TIMEZONE_DATA = {
|
|
124
|
-
1: 'Asia/Ho_Chi_Minh',
|
|
125
|
-
10: 'Asia/Ho_Chi_Minh',
|
|
126
|
-
11: 'Asia/Ho_Chi_Minh',
|
|
127
|
-
12: 'Asia/Ho_Chi_Minh',
|
|
128
|
-
2: 'Asia/Jakarta',
|
|
129
|
-
3: 'Asia/Bangkok',
|
|
130
|
-
4: 'Asia/Phnom_Penh',
|
|
131
|
-
5: 'Asia/Kuala_Lumpur',
|
|
132
|
-
6: 'Asia/Taipei',
|
|
133
|
-
7: 'Asia/Yangon',
|
|
134
|
-
8: 'Asia/Kolkata',
|
|
135
|
-
9: 'Asia/Manila', // Philippines / Filipinos Site
|
|
136
|
-
};
|
|
137
|
-
|
|
138
53
|
const LEADGEN_ACTIONS = {
|
|
139
54
|
SHOW: 'SHOW',
|
|
140
55
|
SCROLL: 'SCROLL',
|
|
@@ -3730,358 +3645,6 @@ const TabLayout = ({ popupId, url, newTab, image, onClose, onOtherSubmit, }) =>
|
|
|
3730
3645
|
React__default.createElement(CloseButton, { onClose: onClose, containerClassName: "close-button-top-right" })))));
|
|
3731
3646
|
};
|
|
3732
3647
|
|
|
3733
|
-
// import mockLeadData from './mockLeadData'
|
|
3734
|
-
const listCampaignScheduled = [];
|
|
3735
|
-
const listCampaignScheduledToActivated = [];
|
|
3736
|
-
const listCampaignActiveButExpired = [];
|
|
3737
|
-
const listCampaignExcludeSonsored = [];
|
|
3738
|
-
const listCampaignDifferentSponsor = [];
|
|
3739
|
-
const listCampaignNotDisplayInRangeOfTime = [];
|
|
3740
|
-
function isMobile() {
|
|
3741
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent);
|
|
3742
|
-
}
|
|
3743
|
-
const getShuffleArray = (array) => {
|
|
3744
|
-
const newArray = [...array];
|
|
3745
|
-
for (let i = newArray.length - 1; i > 0; i--) {
|
|
3746
|
-
const j = Math.floor(Math.random() * (i + 1));
|
|
3747
|
-
const temp = newArray[i];
|
|
3748
|
-
newArray[i] = newArray[j];
|
|
3749
|
-
newArray[j] = temp;
|
|
3750
|
-
}
|
|
3751
|
-
return newArray;
|
|
3752
|
-
};
|
|
3753
|
-
const getTimeByTimezone = (timeZone = 'UTC') => {
|
|
3754
|
-
const date = new Date();
|
|
3755
|
-
return new Date(date.toLocaleString('en-US', { timeZone }));
|
|
3756
|
-
};
|
|
3757
|
-
const parseDateByCampaignTime = (dateStr) => {
|
|
3758
|
-
// Format like this: 2023-04-04 00:00:00
|
|
3759
|
-
try {
|
|
3760
|
-
const [datePart, timePart] = dateStr.split(' ');
|
|
3761
|
-
const [year, month, day] = datePart.split('-').map(Number);
|
|
3762
|
-
const [hours, minutes, seconds] = timePart.split(':').map(Number);
|
|
3763
|
-
/** JavaScript counts months from 0 to 11 */
|
|
3764
|
-
return new Date(year, month - 1, day, hours, minutes, seconds);
|
|
3765
|
-
}
|
|
3766
|
-
catch (err) {
|
|
3767
|
-
return null;
|
|
3768
|
-
}
|
|
3769
|
-
};
|
|
3770
|
-
const checkCampaignNowInTimeframe = (c) => {
|
|
3771
|
-
var _a;
|
|
3772
|
-
const siteId = ((_a = c.site) === null || _a === void 0 ? void 0 : _a.id) || 1;
|
|
3773
|
-
const startedAtStr = c.started_at;
|
|
3774
|
-
const endedAtStr = c.ended_at;
|
|
3775
|
-
const startedDate = parseDateByCampaignTime(startedAtStr);
|
|
3776
|
-
const endedDate = parseDateByCampaignTime(endedAtStr);
|
|
3777
|
-
if (!startedDate || !endedDate) {
|
|
3778
|
-
return false;
|
|
3779
|
-
}
|
|
3780
|
-
const timeZone = LEAD_TIMEZONE_DATA[siteId];
|
|
3781
|
-
const nowWithTimezoneMs = getTimeByTimezone(timeZone).getTime();
|
|
3782
|
-
if (nowWithTimezoneMs <= endedDate.getTime() &&
|
|
3783
|
-
nowWithTimezoneMs >= startedDate.getTime()) {
|
|
3784
|
-
listCampaignScheduledToActivated.push(c);
|
|
3785
|
-
return true;
|
|
3786
|
-
}
|
|
3787
|
-
return false;
|
|
3788
|
-
};
|
|
3789
|
-
function checkCampaignActiveButExpireAlready(c) {
|
|
3790
|
-
var _a;
|
|
3791
|
-
/** Do not setup timeframe for this campaign. No need to check */
|
|
3792
|
-
if (c.forever === 1) {
|
|
3793
|
-
return true;
|
|
3794
|
-
}
|
|
3795
|
-
const startedAtStr = c.started_at;
|
|
3796
|
-
const endedAtStr = c.ended_at;
|
|
3797
|
-
const startedDate = parseDateByCampaignTime(startedAtStr);
|
|
3798
|
-
const endedDate = parseDateByCampaignTime(endedAtStr);
|
|
3799
|
-
/** Do not setup timeframe for this campaign. No need to check */
|
|
3800
|
-
if (!startedDate || !endedDate) {
|
|
3801
|
-
return true;
|
|
3802
|
-
}
|
|
3803
|
-
const siteId = ((_a = c.site) === null || _a === void 0 ? void 0 : _a.id) || 1;
|
|
3804
|
-
const timeZone = LEAD_TIMEZONE_DATA[siteId];
|
|
3805
|
-
const nowWithTimezoneMs = getTimeByTimezone(timeZone).getTime();
|
|
3806
|
-
/** Check if this expire already, do not show */
|
|
3807
|
-
if (nowWithTimezoneMs > endedDate.getTime()) {
|
|
3808
|
-
listCampaignActiveButExpired.push(c);
|
|
3809
|
-
return false;
|
|
3810
|
-
}
|
|
3811
|
-
return true;
|
|
3812
|
-
}
|
|
3813
|
-
function shouldNotDisplayIfExcludeAllSponsors(c) {
|
|
3814
|
-
var _a;
|
|
3815
|
-
const excludeSponsored = Number((_a = c.rules.find((i) => i.rule == 'exclude_sponsored')) === null || _a === void 0 ? void 0 : _a.value);
|
|
3816
|
-
const isSponsored = Boolean(document.querySelector('.hhg-disclaimer-text'));
|
|
3817
|
-
if (isSponsored && excludeSponsored) {
|
|
3818
|
-
listCampaignExcludeSonsored.push(c);
|
|
3819
|
-
return true;
|
|
3820
|
-
}
|
|
3821
|
-
return false;
|
|
3822
|
-
}
|
|
3823
|
-
function shouldDisplayWithCurrentSponsor(c) {
|
|
3824
|
-
var _a, _b;
|
|
3825
|
-
try {
|
|
3826
|
-
// TODO: BE will rename `exclude_sponsored_list` later
|
|
3827
|
-
const stringOrArray = (_a = c.rules.find((i) => i.rule == 'exclude_sponsored_list')) === null || _a === void 0 ? void 0 : _a.value;
|
|
3828
|
-
const whiteListSponsors = stringOrArray instanceof Array ? stringOrArray : JSON.parse(stringOrArray);
|
|
3829
|
-
const dataSponsoredId = Number((_b = document
|
|
3830
|
-
.querySelector('[data-sponsored-id]')) === null || _b === void 0 ? void 0 : _b.getAttribute('data-sponsored-id'));
|
|
3831
|
-
// There is no config for sponsor id and white list, should show as default
|
|
3832
|
-
if (!dataSponsoredId ||
|
|
3833
|
-
dataSponsoredId <= 0 ||
|
|
3834
|
-
whiteListSponsors.length === 0) {
|
|
3835
|
-
return true;
|
|
3836
|
-
}
|
|
3837
|
-
// Check the dataSponsoredId exists in the white list or not.
|
|
3838
|
-
const isExist = whiteListSponsors.find((s) => s.id == dataSponsoredId);
|
|
3839
|
-
if (isExist) {
|
|
3840
|
-
return true;
|
|
3841
|
-
}
|
|
3842
|
-
listCampaignDifferentSponsor.push({ id: c.id, rules: c.rules });
|
|
3843
|
-
return false;
|
|
3844
|
-
}
|
|
3845
|
-
catch (err) {
|
|
3846
|
-
// Default is show
|
|
3847
|
-
return true;
|
|
3848
|
-
}
|
|
3849
|
-
}
|
|
3850
|
-
const filterFnCampaign = (c) => {
|
|
3851
|
-
if (shouldNotDisplayIfExcludeAllSponsors(c)) {
|
|
3852
|
-
return false;
|
|
3853
|
-
}
|
|
3854
|
-
else if (!shouldDisplayWithCurrentSponsor(c)) {
|
|
3855
|
-
return false;
|
|
3856
|
-
}
|
|
3857
|
-
/** Active */
|
|
3858
|
-
if (c.formatted_status === 1) {
|
|
3859
|
-
return checkCampaignActiveButExpireAlready(c);
|
|
3860
|
-
}
|
|
3861
|
-
/** Schedule */
|
|
3862
|
-
if (c.formatted_status === 0) {
|
|
3863
|
-
listCampaignScheduled.push(c);
|
|
3864
|
-
return checkCampaignNowInTimeframe(c);
|
|
3865
|
-
}
|
|
3866
|
-
return false;
|
|
3867
|
-
};
|
|
3868
|
-
const fillterApprearanceTimeCampaign = (c) => {
|
|
3869
|
-
var _a;
|
|
3870
|
-
try {
|
|
3871
|
-
const isTimeInRange = (currentTime, startTime, endTime) => {
|
|
3872
|
-
const startParts = startTime.split(':');
|
|
3873
|
-
const endParts = endTime.split(':');
|
|
3874
|
-
const startDate = new Date();
|
|
3875
|
-
startDate.setHours(Number(startParts[0]), Number(startParts[1]), 0, 0);
|
|
3876
|
-
const endDate = new Date();
|
|
3877
|
-
endDate.setHours(Number(endParts[0]), Number(endParts[1]), 0, 0);
|
|
3878
|
-
return currentTime >= startDate && currentTime <= endDate;
|
|
3879
|
-
};
|
|
3880
|
-
const rulesApprValue = (_a = c.rules.find((i) => i.rule == 'appearance_time')) === null || _a === void 0 ? void 0 : _a.value;
|
|
3881
|
-
const startTime = rulesApprValue.startTime;
|
|
3882
|
-
const endTime = rulesApprValue.endTime || '23:59';
|
|
3883
|
-
if (!startTime) {
|
|
3884
|
-
return true;
|
|
3885
|
-
}
|
|
3886
|
-
if (isTimeInRange(new Date(), startTime, endTime)) {
|
|
3887
|
-
return true;
|
|
3888
|
-
}
|
|
3889
|
-
listCampaignNotDisplayInRangeOfTime.push(c);
|
|
3890
|
-
return false;
|
|
3891
|
-
}
|
|
3892
|
-
catch (err) {
|
|
3893
|
-
return true;
|
|
3894
|
-
}
|
|
3895
|
-
};
|
|
3896
|
-
let timeoutRef = null;
|
|
3897
|
-
let LEAD_SCROLL_EVENT = null;
|
|
3898
|
-
function clearPassiveEvent() {
|
|
3899
|
-
if (timeoutRef) {
|
|
3900
|
-
clearTimeout(timeoutRef);
|
|
3901
|
-
timeoutRef = null;
|
|
3902
|
-
}
|
|
3903
|
-
if (LEAD_SCROLL_EVENT) {
|
|
3904
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
3905
|
-
LEAD_SCROLL_EVENT = null;
|
|
3906
|
-
}
|
|
3907
|
-
}
|
|
3908
|
-
function checkShowPopup({ leadApi, leadSiteId, leadDomain, onShowPopup, DEBUG_URL, }) {
|
|
3909
|
-
// clear previous passive event, check for new condition
|
|
3910
|
-
clearPassiveEvent();
|
|
3911
|
-
const leadCurrentUrl = DEBUG_URL ||
|
|
3912
|
-
('https://' +
|
|
3913
|
-
location.hostname +
|
|
3914
|
-
location.pathname +
|
|
3915
|
-
location.search).toLowerCase();
|
|
3916
|
-
fetch(leadApi + 'api/campaign/' + leadSiteId, {
|
|
3917
|
-
method: 'POST',
|
|
3918
|
-
headers: {
|
|
3919
|
-
'Content-Type': 'application/json',
|
|
3920
|
-
},
|
|
3921
|
-
body: JSON.stringify({
|
|
3922
|
-
url: leadCurrentUrl,
|
|
3923
|
-
ga_client_id: getCookie('_ga') || null,
|
|
3924
|
-
}),
|
|
3925
|
-
})
|
|
3926
|
-
.then((response) => {
|
|
3927
|
-
return response.json();
|
|
3928
|
-
// return mockLeadData || response.json()
|
|
3929
|
-
})
|
|
3930
|
-
.then((data) => {
|
|
3931
|
-
var _a, _b, _c, _d;
|
|
3932
|
-
LeadLog('List campagin: ', data);
|
|
3933
|
-
LEAD_RESET_VAR();
|
|
3934
|
-
if (data._status == 1) {
|
|
3935
|
-
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);
|
|
3936
|
-
if (!getCookie('hhg-id')) {
|
|
3937
|
-
setCookie('hhg-id', v1(), {
|
|
3938
|
-
domain: '.' + leadDomain,
|
|
3939
|
-
path: '/',
|
|
3940
|
-
});
|
|
3941
|
-
LeadLog('😍 Set HHG ID cookie');
|
|
3942
|
-
}
|
|
3943
|
-
// getCookie('hhg-id')
|
|
3944
|
-
// TODO: HP-534 Filter desktop
|
|
3945
|
-
let campaignsDevice = [];
|
|
3946
|
-
if (isMobile()) {
|
|
3947
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.MOBILE));
|
|
3948
|
-
}
|
|
3949
|
-
else {
|
|
3950
|
-
campaignsDevice = campaigns.filter((c) => c.device_types.some((d) => d.id == LEAD_DEVICE_TYPE.DESKTOP));
|
|
3951
|
-
}
|
|
3952
|
-
LeadLog(`👓 campaignsDevice`, campaignsDevice);
|
|
3953
|
-
LeadLog('--listCampaignScheduled', listCampaignScheduled);
|
|
3954
|
-
LeadLog('--listCampaignScheduledToActivated', listCampaignScheduledToActivated);
|
|
3955
|
-
LeadLog('--listCampaignActiveButExpired', listCampaignActiveButExpired);
|
|
3956
|
-
LeadLog('--listCampaignExcludeSonsored', listCampaignExcludeSonsored);
|
|
3957
|
-
LeadLog('--listCampaignDifferentSponsor', listCampaignDifferentSponsor);
|
|
3958
|
-
LeadLog('--listCampaignNotDisplayInRangeOfTime', listCampaignNotDisplayInRangeOfTime);
|
|
3959
|
-
// Check links
|
|
3960
|
-
let listLinksObj = campaignsDevice
|
|
3961
|
-
.map((i, index) => i.targets
|
|
3962
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.LINKS)
|
|
3963
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
3964
|
-
.flat(1);
|
|
3965
|
-
// Check list link match current href
|
|
3966
|
-
listLinksObj = listLinksObj.filter((i) => {
|
|
3967
|
-
var _a;
|
|
3968
|
-
const target = new URL(String(i.target).toLowerCase());
|
|
3969
|
-
if (i.option == 'exact_match')
|
|
3970
|
-
// FOR TEST LOCAL:
|
|
3971
|
-
// return Boolean(location.pathname === target.pathname)
|
|
3972
|
-
return Boolean(leadCurrentUrl === ((_a = target.href) === null || _a === void 0 ? void 0 : _a.toLowerCase()));
|
|
3973
|
-
if (i.option == 'start_with') {
|
|
3974
|
-
// FOR TEST LOCAL:
|
|
3975
|
-
// if (location.pathname.includes(target.pathname)) {
|
|
3976
|
-
if (leadCurrentUrl.includes(String(i.target).toLowerCase())) {
|
|
3977
|
-
const listExcluding = i.sub_target
|
|
3978
|
-
.filter((i) => i.option == 'excluding')
|
|
3979
|
-
.map((i) => { var _a; return (_a = i.value) === null || _a === void 0 ? void 0 : _a.toLowerCase(); });
|
|
3980
|
-
return !listExcluding.includes(leadCurrentUrl.split('?')[0]);
|
|
3981
|
-
}
|
|
3982
|
-
else {
|
|
3983
|
-
return false;
|
|
3984
|
-
}
|
|
3985
|
-
}
|
|
3986
|
-
});
|
|
3987
|
-
// Check tags
|
|
3988
|
-
const listMetaTag = Array.from(document.getElementsByTagName('META')).filter((i) => i.getAttribute('property') == 'article:tag');
|
|
3989
|
-
const listTags = listMetaTag.map((i) => i.content);
|
|
3990
|
-
let listCampaignHasTag = [];
|
|
3991
|
-
let listTagsObj = [];
|
|
3992
|
-
if (listTags && listTags.length) {
|
|
3993
|
-
listCampaignHasTag = campaignsDevice
|
|
3994
|
-
.map((i, index) => i.targets
|
|
3995
|
-
.filter((i) => i.type == CAMPAIGN_TARGET_TYPE.TAGS)
|
|
3996
|
-
.map((i) => (Object.assign(Object.assign({}, i), { campaignIndex: index }))))
|
|
3997
|
-
.flat(1);
|
|
3998
|
-
listTagsObj = listCampaignHasTag.filter((i) => listTags.includes(i.target));
|
|
3999
|
-
}
|
|
4000
|
-
const listCampaginsMatch = [...listLinksObj, ...listTagsObj];
|
|
4001
|
-
const cookieKeys = document.cookie
|
|
4002
|
-
.split('; ')
|
|
4003
|
-
.map((i) => i.split('=')[0]);
|
|
4004
|
-
const listCampaignCodeSubmited = cookieKeys.filter((i) => i.includes('lead_submited'));
|
|
4005
|
-
LeadLog(`--listCampaignCodeSubmited`, listCampaignCodeSubmited);
|
|
4006
|
-
const listCampaignCodeClosed = cookieKeys.filter((i) => i.includes('lead_closed'));
|
|
4007
|
-
LeadLog(`--listCampaignCodeClosed`, listCampaignCodeClosed);
|
|
4008
|
-
const listCampaignSubmitedClosed = [
|
|
4009
|
-
...listCampaignCodeSubmited,
|
|
4010
|
-
...listCampaignCodeClosed,
|
|
4011
|
-
];
|
|
4012
|
-
const listCampaignNoSubmitedClosed = listCampaginsMatch.filter((i) => {
|
|
4013
|
-
const hasSubmited = listCampaignSubmitedClosed.some((k) => k.includes(campaignsDevice[i.campaignIndex].code));
|
|
4014
|
-
return !hasSubmited;
|
|
4015
|
-
});
|
|
4016
|
-
const listCampaignValid = getShuffleArray(listCampaignNoSubmitedClosed);
|
|
4017
|
-
// .sort(
|
|
4018
|
-
// (a, b) =>
|
|
4019
|
-
// (listCampaignValid[a.campaignIndex]?.score || 0) -
|
|
4020
|
-
// (listCampaignValid[b.campaignIndex]?.score || 0),
|
|
4021
|
-
// )
|
|
4022
|
-
LeadLog('--listCampaignValid : ', listCampaignValid);
|
|
4023
|
-
if (listCampaignValid && listCampaignValid.length) {
|
|
4024
|
-
const CAMPAIGN_SHOW = campaignsDevice[listCampaignValid[0].campaignIndex];
|
|
4025
|
-
LeadLog(`CAMPAIGN_SHOW`, CAMPAIGN_SHOW);
|
|
4026
|
-
const { rules } = CAMPAIGN_SHOW;
|
|
4027
|
-
// CHECK RULE TRIGGER POPUP
|
|
4028
|
-
const timeoutRule = Number((_c = rules.find((i) => i.rule == 'time')) === null || _c === void 0 ? void 0 : _c.value);
|
|
4029
|
-
LeadLog(`timeoutRule`, timeoutRule);
|
|
4030
|
-
const scrollRule = Number((_d = rules.find((i) => i.rule == 'scroll')) === null || _d === void 0 ? void 0 : _d.value);
|
|
4031
|
-
LeadLog(`scrollRule`, scrollRule);
|
|
4032
|
-
let impressionAction = 'TIME';
|
|
4033
|
-
if (Number.isInteger(timeoutRule)) {
|
|
4034
|
-
impressionAction = 'TIME';
|
|
4035
|
-
LeadLog('✨ SHOW AWESOME POPUP AFTER: ', timeoutRule, ' seconds');
|
|
4036
|
-
timeoutRef = setTimeout(() => {
|
|
4037
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
4038
|
-
}, timeoutRule * 1000);
|
|
4039
|
-
}
|
|
4040
|
-
if (Number.isInteger(scrollRule)) {
|
|
4041
|
-
impressionAction = 'SCROLL';
|
|
4042
|
-
LeadLog('✨ SHOW AWESOME AFTER: SCROLL', scrollRule, ' %');
|
|
4043
|
-
const $p = document.querySelector(`[data-url="${location.pathname}"]`) ||
|
|
4044
|
-
document.querySelector('body');
|
|
4045
|
-
const pct = $p.getBoundingClientRect().top;
|
|
4046
|
-
const pb = $p.offsetHeight;
|
|
4047
|
-
LeadLog(`👓 Element check scroll: `, $p);
|
|
4048
|
-
LEAD_SCROLL_EVENT = function leadScollCheckHandler() {
|
|
4049
|
-
const wt = window.pageYOffset || document.documentElement.scrollTop;
|
|
4050
|
-
let percent = 0;
|
|
4051
|
-
if (wt >= pct) {
|
|
4052
|
-
percent = Math.round(((wt - pct) / (pb - innerHeight)) * 100);
|
|
4053
|
-
}
|
|
4054
|
-
LeadLog('---Scroll', percent, scrollRule);
|
|
4055
|
-
// TODO: CHECK FOOTER HEIGHT
|
|
4056
|
-
if (percent >= scrollRule) {
|
|
4057
|
-
window.removeEventListener('scroll', LEAD_SCROLL_EVENT);
|
|
4058
|
-
onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup(CAMPAIGN_SHOW, impressionAction);
|
|
4059
|
-
}
|
|
4060
|
-
};
|
|
4061
|
-
window.addEventListener('scroll', LEAD_SCROLL_EVENT, {
|
|
4062
|
-
passive: true,
|
|
4063
|
-
});
|
|
4064
|
-
}
|
|
4065
|
-
}
|
|
4066
|
-
else {
|
|
4067
|
-
LeadLog('🚧 No lead campaigns on current URL, tags');
|
|
4068
|
-
}
|
|
4069
|
-
}
|
|
4070
|
-
})
|
|
4071
|
-
.catch((err) => {
|
|
4072
|
-
LeadLog(`Lead error: `, err);
|
|
4073
|
-
});
|
|
4074
|
-
}
|
|
4075
|
-
const LeadLog = (...params) => {
|
|
4076
|
-
if (process.env.NODE_ENV !== 'production' ||
|
|
4077
|
-
(process.env.NEXT_PUBLIC_DEPLOY_ENV &&
|
|
4078
|
-
process.env.NEXT_PUBLIC_DEPLOY_ENV !== 'production') ||
|
|
4079
|
-
(typeof localStorage !== 'undefined' &&
|
|
4080
|
-
localStorage.getItem('hhg_debug') === 'true')) {
|
|
4081
|
-
console.log(...params);
|
|
4082
|
-
}
|
|
4083
|
-
};
|
|
4084
|
-
|
|
4085
3648
|
function getCategoryLevel(t = 'Xin chao {{category_2}} extra') {
|
|
4086
3649
|
if (t.includes('{{category_')) {
|
|
4087
3650
|
const cl = '{{category_'.length;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { memo, useMemo } from 'react';
|
|
2
|
-
import { C as CommonGAssets } from './index-
|
|
3
|
-
import { I as ImageWrap } from './useScreenSize-
|
|
2
|
+
import { C as CommonGAssets } from './index-fd2310c2.js';
|
|
3
|
+
import { I as ImageWrap } from './useScreenSize-d5709b35.js';
|
|
4
4
|
|
|
5
5
|
const _LogoIcon = ({ type, width, height }) => {
|
|
6
6
|
const data = useMemo(() => {
|
package/build/esm/mantine.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { g as getMantineThemeOverride, h as StyledTextArea, D as DEBOUNCED_TIME, i as StyledSliderWrapper, j as StyledSlider } from './index-
|
|
2
|
-
export { k as Accordion, A as Anchor, b as AspectRatio, a as Avatar, B as Breadcrumbs, l as Carousel, c as CentralCarousel, d as Checkbox, e as ChipButton, I as Input, O as OTP, P as Phone, n as Popover, R as Radio, S as Select, m as emotionCache, g as getMantineThemeOverride, t as themeColors } from './index-
|
|
3
|
-
export { D as DatePicker } from './index-
|
|
4
|
-
export { T as Text } from './index-
|
|
5
|
-
import { B as Button } from './index-
|
|
6
|
-
export { B as Button } from './index-
|
|
7
|
-
export { I as Indicator } from './index-
|
|
1
|
+
import { g as getMantineThemeOverride, h as StyledTextArea, D as DEBOUNCED_TIME, i as StyledSliderWrapper, j as StyledSlider } from './index-18855286.js';
|
|
2
|
+
export { k as Accordion, A as Anchor, b as AspectRatio, a as Avatar, B as Breadcrumbs, l as Carousel, c as CentralCarousel, d as Checkbox, e as ChipButton, I as Input, O as OTP, P as Phone, n as Popover, R as Radio, S as Select, m as emotionCache, g as getMantineThemeOverride, t as themeColors } from './index-18855286.js';
|
|
3
|
+
export { D as DatePicker } from './index-b88e063b.js';
|
|
4
|
+
export { T as Text } from './index-43003e56.js';
|
|
5
|
+
import { B as Button } from './index-7bee1da6.js';
|
|
6
|
+
export { B as Button } from './index-7bee1da6.js';
|
|
7
|
+
export { I as Indicator } from './index-b8ae41e7.js';
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
|
-
export { M as Modal } from './index-
|
|
10
|
-
import { _ as __rest } from './tslib.es6-
|
|
9
|
+
export { M as Modal } from './index-c53221d3.js';
|
|
10
|
+
import { _ as __rest } from './tslib.es6-48e9a62a.js';
|
|
11
11
|
import { MantineProvider as MantineProvider$1, Badge as Badge$1, LoadingOverlay as LoadingOverlay$1, clsx, Title, Text, Button as Button$1 } from '@mantine/core';
|
|
12
12
|
import { theme } from './miscTheme.js';
|
|
13
|
-
export { S as Spoiler } from './index-
|
|
13
|
+
export { S as Spoiler } from './index-02a48b88.js';
|
|
14
14
|
import { useDebouncedValue } from '@mantine/hooks';
|
|
15
|
-
export { S as Switch } from './index-
|
|
16
|
-
import { u as useMantineLocale, N as NotificationsHandler } from './useMantineLocale-
|
|
17
|
-
export { M as MAPPED_LOCALE, g as getHeadingStyles, s as showNotification, u as useMantineLocale } from './useMantineLocale-
|
|
18
|
-
export { O as OTHER_THEME_CONFIG } from './other-
|
|
19
|
-
export { T as Tabs } from './index-
|
|
15
|
+
export { S as Switch } from './index-2da128ed.js';
|
|
16
|
+
import { u as useMantineLocale, N as NotificationsHandler } from './useMantineLocale-86072926.js';
|
|
17
|
+
export { M as MAPPED_LOCALE, g as getHeadingStyles, s as showNotification, u as useMantineLocale } from './useMantineLocale-86072926.js';
|
|
18
|
+
export { O as OTHER_THEME_CONFIG } from './other-d6efb1d9.js';
|
|
19
|
+
export { T as Tabs } from './index-3d1a057a.js';
|
|
20
20
|
import '@hhgtech/icons/other';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-fd2310c2.js';
|
|
22
22
|
import './constantsDomainLocales.js';
|
|
23
|
-
import './Locale-
|
|
23
|
+
import './Locale-1c96ad9c.js';
|
|
24
24
|
import './constantsIsProduction.js';
|
|
25
|
-
import './useScreenSize-
|
|
25
|
+
import './useScreenSize-d5709b35.js';
|
|
26
26
|
import '@emotion/styled';
|
|
27
|
-
import './utils-
|
|
27
|
+
import './utils-c78aa552.js';
|
|
28
28
|
import '@mantine/carousel';
|
|
29
|
-
import './index-
|
|
30
|
-
import './index-
|
|
29
|
+
import './index-a3da289d.js';
|
|
30
|
+
import './index-e2df7129.js';
|
|
31
31
|
import 'date-fns/locale';
|
|
32
32
|
import './constantsSite.js';
|
|
33
33
|
import './constantsRiskScreener.js';
|
|
34
34
|
import 'classnames';
|
|
35
|
-
import './useUniqueId-
|
|
35
|
+
import './useUniqueId-46818085.js';
|
|
36
36
|
import '@hhgtech/icons/core';
|
|
37
37
|
import '@mantine/dates';
|
|
38
|
-
import './index.styles-
|
|
39
|
-
import './index-
|
|
40
|
-
import './translationsContext-
|
|
38
|
+
import './index.styles-f6a5d126.js';
|
|
39
|
+
import './index-0a319369.js';
|
|
40
|
+
import './translationsContext-290825cb.js';
|
|
41
41
|
import '@mantine/notifications';
|
|
42
42
|
import 'dayjs';
|
|
43
43
|
|
package/build/esm/misc.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export { a as ageGenerate, c as convertLocalizedStringToNumber, l as localizeNumberFormat } from './localizeNumberFormat-
|
|
2
|
-
export { h as fadeIn, a as slideInDown, b as slideInLeft, c as slideInRight, s as slideInUp, e as slideOutDown, f as slideOutLeft, g as slideOutRight, d as slideOutUp } from './animation-
|
|
1
|
+
export { a as ageGenerate, c as convertLocalizedStringToNumber, l as localizeNumberFormat } from './localizeNumberFormat-69447a14.js';
|
|
2
|
+
export { h as fadeIn, a as slideInDown, b as slideInLeft, c as slideInRight, s as slideInUp, e as slideOutDown, f as slideOutLeft, g as slideOutRight, d as slideOutUp } from './animation-5400167d.js';
|
|
3
3
|
export { deleteCookie, getCookie, setCookie } from './miscCookieHelper.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@mantine/core';
|
|
6
|
-
import './useMantineLocale-
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
6
|
+
import './useMantineLocale-86072926.js';
|
|
7
|
+
import './index-a3da289d.js';
|
|
8
|
+
import './index-fd2310c2.js';
|
|
9
9
|
export { MBTheme, theme } from './miscTheme.js';
|
|
10
|
-
export { B as Breakpoints, M as MediaQueries, S as Screens, f as formatUrlWithPageParam, g as getBoundariesFromMediaQueryKey, a as getPopupWrapperDom, b as getWrapperDomWithSelector, m as makeParams, c as safeEncodeURI, s as startCase, t as toggleNoScroll } from './utils-
|
|
11
|
-
import './index-
|
|
12
|
-
export { a as abbreviateNumber } from './number-
|
|
13
|
-
export { d as getCareApiDomain, g as getCurrentBaseUrl, a as getCurrentSsoUrl, c as getDiscoverApiDomain, b as getTogetherApiDomain } from './normalizeLink-
|
|
10
|
+
export { B as Breakpoints, M as MediaQueries, S as Screens, f as formatUrlWithPageParam, g as getBoundariesFromMediaQueryKey, a as getPopupWrapperDom, b as getWrapperDomWithSelector, m as makeParams, c as safeEncodeURI, s as startCase, t as toggleNoScroll } from './utils-c78aa552.js';
|
|
11
|
+
import './index-e2df7129.js';
|
|
12
|
+
export { a as abbreviateNumber } from './number-49c50e28.js';
|
|
13
|
+
export { d as getCareApiDomain, g as getCurrentBaseUrl, a as getCurrentSsoUrl, c as getDiscoverApiDomain, b as getTogetherApiDomain } from './normalizeLink-56bb54f7.js';
|
|
14
14
|
export { formatHealthTool, getDynamicHealthTool, getDynamicHealthToolWithCache } from './miscGetDynamicHealthTool.js';
|
|
15
15
|
export { getSocialList } from './miscGetSocialList.js';
|
|
16
16
|
export { ScreenSizeContext, ScreenSizeContextProvider, getWindowSizeGroups } from './miscScreenSizeContext.js';
|
|
17
|
-
export { f as formatPill } from './dataTransform-
|
|
17
|
+
export { f as formatPill } from './dataTransform-fe86c90a.js';
|
|
18
18
|
import 'dayjs';
|
|
19
19
|
import '@emotion/react';
|
|
20
|
-
import './tslib.es6-
|
|
20
|
+
import './tslib.es6-48e9a62a.js';
|
|
21
21
|
import '@mantine/notifications';
|
|
22
|
-
import './other-
|
|
23
|
-
import './Locale-
|
|
22
|
+
import './other-d6efb1d9.js';
|
|
23
|
+
import './Locale-1c96ad9c.js';
|
|
24
24
|
import './constantsDomainLocales.js';
|
|
25
25
|
import './constantsIsProduction.js';
|
|
26
26
|
import 'date-fns/locale';
|
|
27
27
|
import './constantsSite.js';
|
|
28
28
|
import './constantsRiskScreener.js';
|
|
29
|
-
import './core-
|
|
30
|
-
import './WhatsApp-
|
|
31
|
-
import './index-
|
|
32
|
-
import './index-
|
|
29
|
+
import './core-1a9e6336.js';
|
|
30
|
+
import './WhatsApp-0015ff5e.js';
|
|
31
|
+
import './index-4f679233.js';
|
|
32
|
+
import './index-85758df5.js';
|
|
33
33
|
import 'js-cookie';
|
|
34
34
|
import 'uuid';
|
|
35
35
|
import 'lodash/throttle';
|