@hhgtech/hhg-components 1.29.80 → 1.29.81
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/{index-1250dd06.js → WhatsApp-82018096.js} +24 -276
- package/build/adapters.js +17 -16
- package/build/atoms.js +100 -0
- package/build/babyGrowth.js +162 -164
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/components.js +181 -165
- package/build/{constants-ca71f9e5.js → constants-3a475a22.js} +2 -2
- package/build/constants-513a9a41.js +318 -0
- package/build/{constants-4e7c419e.js → constants-936f45e9.js} +0 -136
- package/build/constants-dd16fb4d.js +425 -0
- package/build/constants.js +3 -3
- package/build/{core-bb2587e7.js → core-9e44ee99.js} +2 -2
- package/build/{index-5d9ad07e.js → dataTransform-6b4d7a4e.js} +3 -52
- package/build/{dataTransform-469b75eb.js → dataTransform-c1701cbd.js} +1 -1
- package/build/defaultClassWrapper-e87ca8ef.js +21 -0
- package/build/ecom.js +5 -5
- package/build/esm/WhatsApp-7d3732e2.js +46 -0
- package/build/esm/adapters.js +17 -16
- package/build/esm/atoms.js +57 -0
- package/build/esm/babyGrowth.js +87 -89
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components.js +91 -75
- package/build/esm/constants-6bdb97a8.js +417 -0
- package/build/esm/constants-71d9f33b.js +307 -0
- package/build/esm/{constants-7661ce64.js → constants-ebf80e5f.js} +2 -2
- package/build/esm/{constants-508ba335.js → constants-f77fc231.js} +1 -127
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-5a22b83e.js → core-c72e0ff5.js} +2 -2
- package/build/esm/{index-9b54376f.js → dataTransform-3e8e25ba.js} +5 -53
- package/build/esm/{dataTransform-f5db5afb.js → dataTransform-6c032113.js} +1 -1
- package/build/esm/defaultClassWrapper-31caf23b.js +15 -0
- package/build/esm/ecom.js +5 -5
- package/build/esm/fixedBottomAdBlock-13ed4a34.js +3474 -0
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-09fda8b3.js → getDynamicHealthTool-7681e43a.js} +4 -4
- package/build/esm/{getSocialList-96301dbb.js → getSocialList-e8142513.js} +5 -6
- package/build/esm/healthToolsForm.js +40 -0
- package/build/esm/healthToolsForms.d.ts +7 -0
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/index-16514f4d.js +156 -0
- package/build/esm/{index-3c7f109c.js → index-1da2ca0b.js} +2 -2
- package/build/esm/{utils-ff5d88a2.js → index-1ecbcf21.js} +71 -105
- package/build/esm/{index-92eedeb0.js → index-21eac858.js} +12 -201
- package/build/esm/{index-c4699d44.js → index-2774583d.js} +35 -176
- package/build/esm/index-29d04985.js +14 -0
- package/build/esm/index-2b9213cf.js +195 -0
- package/build/esm/index-3078acec.js +275 -0
- package/build/esm/index-376bee14.js +847 -0
- package/build/esm/index-38f50764.js +557 -0
- package/build/esm/index-42ad7763.js +95 -0
- package/build/esm/{index-53a86337.js → index-598ab51b.js} +5 -5
- package/build/esm/{index-df29c4e0.js → index-69248434.js} +33 -5
- package/build/esm/index-6ac73f00.js +1114 -0
- package/build/esm/index-703205e3.js +54 -0
- package/build/esm/{index-82861dba.js → index-73301602.js} +2 -2
- package/build/esm/index-76d20d3f.js +100 -0
- package/build/esm/{index-e68d4285.js → index-780a08de.js} +2 -2
- package/build/esm/{index-80f4d7df.js → index-78255d6c.js} +2 -2
- package/build/esm/{index-da2b8f22.js → index-7cbe2a10.js} +12 -11
- package/build/esm/{index-2d47a346.js → index-7e756cb8.js} +11 -10
- package/build/esm/{index.styled-9e147e72.js → index-87a2ea8c.js} +21 -3
- package/build/esm/index-88ad2ca3.js +1681 -0
- package/build/esm/index-8952ceac.js +202 -0
- package/build/esm/index-996f7caf.js +148 -0
- package/build/esm/{index-ef855343.js → index-9f1899f2.js} +4 -4
- package/build/esm/{index-32e2b169.js → index-b1bb27aa.js} +81 -9
- package/build/esm/{index-c807ef87.js → index-bef3c9bd.js} +3 -3
- package/build/esm/{index-bcd13f1d.js → index-c1af3a8e.js} +13 -12
- package/build/esm/{index-4dcdce19.js → index-c200bff6.js} +2 -2
- package/build/esm/{index-5773eb18.js → index-cb4afb33.js} +6 -6
- package/build/esm/{index-679d5383.js → index-cdac57da.js} +1 -1
- package/build/esm/{index-474e0ae5.js → index-cf6beac8.js} +2 -13
- package/build/esm/{index-77dddeb9.js → index-d218b94e.js} +2 -2
- package/build/esm/index-d6201fa4.js +42 -0
- package/build/esm/index-e104ad21.js +335 -0
- package/build/esm/index-e26514ee.js +262 -0
- package/build/esm/index-f27edf45.js +130 -0
- package/build/esm/index.js +89 -73
- package/build/esm/lead.js +23 -33
- package/build/esm/logoIcon-d93bc56e.js +104 -0
- package/build/esm/mantine.js +22 -20
- package/build/esm/misc.js +21 -21
- package/build/esm/molecules.js +88 -0
- package/build/esm/navigation.js +37 -37
- package/build/esm/onboardingV2.js +26 -35
- package/build/esm/organisms.js +57 -0
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-7bc3e320.js → routing-bebdc8b7.js} +2 -2
- package/build/esm/subot.js +31 -27
- package/build/esm/surveyOrPremiumBanner.js +45 -0
- package/build/esm/surveyQuestionCard.js +13 -0
- package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
- package/build/esm/together.js +35 -37
- package/build/esm/{types-957334f2.js → types-2580132c.js} +28 -30
- package/build/esm/{types-ee1be1e3.js → types-be952df2.js} +13 -13
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-7e020652.js → useCategory-8f109eb7.js} +5 -5
- package/build/esm/{useHealthToolCache-c70e4fd5.js → useHealthToolCache-d97dfa00.js} +2 -2
- package/build/esm/{useMantineLocale-1373e175.js → useMantineLocale-4fb67342.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-4bfe976e.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
- package/build/esm/{useTranslations-adad3b06.js → useTranslations-fbf6a6ab.js} +1 -1
- package/build/esm/{utils-b14c10f9.js → utils-cef111b6.js} +1 -1
- package/build/esm/{utils-dee27bfd.js → utils-d5a0b58f.js} +8 -356
- package/build/esm/vaccination.js +18 -29
- package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-357666f7.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
- package/build/{getSocialList-c1404aff.js → getSocialList-97e7bcc1.js} +8 -9
- package/build/healthToolsForm.js +54 -0
- package/build/healthToolsForms.d.ts +7 -0
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/index-058b3c0f.js +1127 -0
- package/build/{index-94fd9ea6.js → index-05f106c2.js} +32 -222
- package/build/index-06fa8444.js +102 -0
- package/build/{index-858f60e0.js → index-1efa7d84.js} +2 -2
- package/build/index-247a9eb2.js +1693 -0
- package/build/{index-94a2b0f9.js → index-264eeddd.js} +2 -2
- package/build/index-3d0d22b3.js +565 -0
- package/build/index-3dcb9bc6.js +61 -0
- package/build/{index-91027d35.js → index-4af08ec2.js} +2 -2
- package/build/index-6acb08c0.js +343 -0
- package/build/{index-bf6e5e4e.js → index-6bc3f8c3.js} +5 -5
- package/build/{index-b0414701.js → index-6c27b627.js} +56 -199
- package/build/index-73cde644.js +156 -0
- package/build/{index-5029b5d8.js → index-77a2b9ee.js} +1 -1
- package/build/{index-d710511f.js → index-7c1dc717.js} +12 -11
- package/build/index-7da7b531.js +107 -0
- package/build/{index-f0a532c7.js → index-838b0f95.js} +6 -6
- package/build/index-a7de42d1.js +202 -0
- package/build/{index-3a03bb34.js → index-a86ea1b6.js} +2 -2
- package/build/index-aa818139.js +49 -0
- package/build/{index-61ef343d.js → index-b773bc3d.js} +4 -4
- package/build/index-bef2bc73.js +136 -0
- package/build/{utils-263a60f7.js → index-c225ef22.js} +76 -120
- package/build/{index-8c826f3e.js → index-c2900d8c.js} +2 -2
- package/build/index-cb0544e5.js +866 -0
- package/build/{index-e60c98f8.js → index-d34cd464.js} +2 -2
- package/build/{index-82a3ba38.js → index-d5b4089d.js} +85 -12
- package/build/index-dba2e361.js +20 -0
- package/build/{index-917c975c.js → index-dcbd8bf3.js} +37 -9
- package/build/index-dd1392e3.js +167 -0
- package/build/{index-ed587907.js → index-def9867a.js} +11 -10
- package/build/index-e0bf03ac.js +277 -0
- package/build/index-ee964d3c.js +209 -0
- package/build/index-f10efb61.js +270 -0
- package/build/{index-040620f6.js → index-f1f4fbb9.js} +13 -12
- package/build/{index-c67602d7.js → index-f28c47ce.js} +1 -13
- package/build/{index-2b32b21e.js → index-f6575703.js} +2 -2
- package/build/{index.styled-8aca5145.js → index-fe7345fa.js} +22 -4
- package/build/index.js +202 -186
- package/build/lead.js +29 -39
- package/build/logoIcon-ee9a5501.js +110 -0
- package/build/mantine.js +24 -23
- package/build/misc.js +21 -21
- package/build/molecules.js +149 -0
- package/build/navigation.js +37 -37
- package/build/onboardingV2.js +45 -54
- package/build/organisms.js +74 -0
- package/build/pwg.js +19 -19
- package/build/{routing-bc8197d8.js → routing-f6d54205.js} +2 -2
- package/build/subot.js +43 -39
- package/build/surveyOrPremiumBanner.js +53 -0
- package/build/surveyQuestionCard.js +22 -0
- package/build/surveyThankyouCard-ead6b355.js +454 -0
- package/build/together.js +37 -39
- package/build/{types-6996fb20.js → types-4ba4268f.js} +13 -13
- package/build/{types-c8956642.js → types-6c5643a2.js} +60 -62
- package/build/types.js +1 -1
- package/build/{useCategory-7d1f8a7d.js → useCategory-e2c91f59.js} +5 -5
- package/build/{useHealthToolCache-b7dea4aa.js → useHealthToolCache-2a53367b.js} +2 -2
- package/build/{useMantineLocale-b243f628.js → useMantineLocale-a4f0c61d.js} +3 -3
- package/build/{usePlacesAutocomplete-08b86d2d.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
- package/build/{useTranslations-d5456a98.js → useTranslations-200168a3.js} +1 -1
- package/build/{utils-9f62698f.js → utils-95d9832e.js} +16 -375
- package/build/{utils-d421a448.js → utils-af695515.js} +1 -1
- package/build/vaccination.js +58 -69
- package/package.json +1 -1
- package/build/Instagram-91ba1e26.js +0 -32
- package/build/esm/Instagram-319a8e34.js +0 -26
- package/build/esm/index-13bf84f4.js +0 -298
- package/build/esm/index-1a3f36c3.js +0 -1086
- package/build/esm/index-800b956a.js +0 -7245
- package/build/esm/index-aebf96f3.js +0 -33
- package/build/esm/index-d48b5db6.js +0 -71
- package/build/esm/index-d5b66388.js +0 -23
- package/build/esm/index.styles-0ef0135c.js +0 -1322
- package/build/index-0523771b.js +0 -7324
- package/build/index-20ebc0bd.js +0 -30
- package/build/index-dbf560f2.js +0 -1100
- package/build/index-efcbac97.js +0 -39
- package/build/index-f5103542.js +0 -77
- package/build/index.styles-2bdfde5f.js +0 -1361
- /package/build/{BMI_BOYS.percentile.monthly-c38ce03a.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1eccee42.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0e7d5cb6.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f72f392f.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-94fd04e6.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-90d5e091.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-de3a9a14.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-1e1ce2b7.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-70a44f31.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-be4399a5.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-6121376b.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-822e7686.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
- /package/build/{ChevronDown-f9d31306.js → ChevronDown-f7e25d61.js} +0 -0
- /package/build/{Close-27e0dcf1.js → Close-36b0da99.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d0da1664.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-55446b8a.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f2f5b19f.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-e6ed98ef.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d0d37479.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-4023b808.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2087c9b4.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-f98d8b05.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-99d299e3.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-c46ed349.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-fddefca4.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
- /package/build/{Visible-01dfaec9.js → Visible-eee51ba6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-cead8ece.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-a97fa31a.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-c2c41945.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d8de7dc2.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-41a6f6bf.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5762fa8a.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-526fb18a.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-0c353536.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-97898ff6.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cbebe807.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
- /package/build/{animation-8605b5bb.js → animation-e1375a3b.js} +0 -0
- /package/build/{cart-ab5762b8.js → cart-67147d06.js} +0 -0
- /package/build/{cookieHelper-b2132ffc.js → cookieHelper-17491ce8.js} +0 -0
- /package/build/{doctor-f121fd79.js → doctor-17b525f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e507536d.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-3cbf7392.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-c7d54bc3.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-4d09aca0.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-319b78c5.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-764732c5.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-5a8e4069.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a2fe6df1.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-810fe911.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-afab03b0.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-8f4e7198.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7f043621.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
- /package/build/esm/{ChevronDown-d24fd24b.js → ChevronDown-74267eb8.js} +0 -0
- /package/build/esm/{Close-6243d246.js → Close-372aa467.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c2e21892.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-22018f1e.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-391cd377.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e11f50f4.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8e2c8306.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-78e974bb.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a49ff89.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5e158a8e.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f5544ab2.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-92f67ec2.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f5d11f32.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
- /package/build/esm/{Visible-7f408f98.js → Visible-3f9d7dca.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b09ae73a.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-733a24a9.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-2bfcfc93.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c0d3a746.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b41ff498.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-15bb7570.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b79dea8.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-33052637.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-64382b53.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-63f19584.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-938ebce2.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-016e1cfc.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
- /package/build/esm/{animation-bf170ee9.js → animation-0b2299dc.js} +0 -0
- /package/build/esm/{cart-5bdb4fa5.js → cart-f961dadc.js} +0 -0
- /package/build/esm/{cookieHelper-ff6c13b4.js → cookieHelper-73ce3871.js} +0 -0
- /package/build/esm/{doctor-f4cadffb.js → doctor-8a07ca44.js} +0 -0
- /package/build/esm/{index-6c0f560b.js → index-782fed08.js} +0 -0
- /package/build/esm/{index-528e64f4.js → index-b65a8764.js} +0 -0
- /package/build/esm/{index-b87433a0.js → index-c3264b34.js} +0 -0
- /package/build/esm/{index-eeedf0f0.js → index-e3787b20.js} +0 -0
- /package/build/esm/{isProduction-2838b9ae.js → isProduction-5684a28c.js} +0 -0
- /package/build/esm/{localizeNumberFormat-9303c122.js → localizeNumberFormat-42ae8d89.js} +0 -0
- /package/build/esm/{normalizeLink-38ab69f4.js → normalizeLink-d6f57223.js} +0 -0
- /package/build/esm/{number-fcae69c7.js → number-13f075cf.js} +0 -0
- /package/build/esm/{paths-d1c61fa8.js → paths-49a813e7.js} +0 -0
- /package/build/esm/{theme-0af1cc3d.js → theme-f18c2351.js} +0 -0
- /package/build/esm/{translationsContext-036458b7.js → translationsContext-f3d1a7bd.js} +0 -0
- /package/build/esm/{tslib.es6-2673b49d.js → tslib.es6-761239c7.js} +0 -0
- /package/build/esm/{useIsInit-2c5ff93d.js → useIsInit-ee864235.js} +0 -0
- /package/build/esm/{useOutsideClick-7023de23.js → useOutsideClick-7451aa57.js} +0 -0
- /package/build/esm/{useScrollbarSize-dfdab229.js → useScrollbarSize-84bb5b47.js} +0 -0
- /package/build/esm/{useUniqueId-d4b0bdd3.js → useUniqueId-c23213b6.js} +0 -0
- /package/build/esm/{utils-511a24f4.js → utils-f8761b9d.js} +0 -0
- /package/build/{index-c524c362.js → index-97ebd7e1.js} +0 -0
- /package/build/{index-bced434a.js → index-ba3797bb.js} +0 -0
- /package/build/{index-5c400e5e.js → index-bba97c2e.js} +0 -0
- /package/build/{index-18ddaa1b.js → index-df5cd44b.js} +0 -0
- /package/build/{isProduction-2e55aee3.js → isProduction-aa963bf9.js} +0 -0
- /package/build/{localizeNumberFormat-2befc6e4.js → localizeNumberFormat-90d4f9d5.js} +0 -0
- /package/build/{normalizeLink-0fd36e61.js → normalizeLink-451ae6d8.js} +0 -0
- /package/build/{number-92da0262.js → number-c2338382.js} +0 -0
- /package/build/{paths-350514c4.js → paths-e0bbfce7.js} +0 -0
- /package/build/{theme-f410baf6.js → theme-e4f7f487.js} +0 -0
- /package/build/{translationsContext-11cafcfc.js → translationsContext-39528d2f.js} +0 -0
- /package/build/{tslib.es6-4bc45883.js → tslib.es6-7e140b89.js} +0 -0
- /package/build/{useIsInit-0f6d1879.js → useIsInit-38cec0c4.js} +0 -0
- /package/build/{useOutsideClick-e067cc79.js → useOutsideClick-e579e1ac.js} +0 -0
- /package/build/{useScrollbarSize-ed50b4a6.js → useScrollbarSize-5a8be010.js} +0 -0
- /package/build/{useUniqueId-4ce69bff.js → useUniqueId-8929fe5f.js} +0 -0
- /package/build/{utils-4849d92a.js → utils-524bda7c.js} +0 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import React__default, { useState, useEffect, useRef } from 'react';
|
|
2
|
+
import { B as Button } from './index-1da2ca0b.js';
|
|
3
|
+
import { T as Text } from './index-c200bff6.js';
|
|
4
|
+
import { H as Heading } from './index-73301602.js';
|
|
5
|
+
import { I as Input } from './index-16514f4d.js';
|
|
6
|
+
import { T as TextArea } from './index-d6201fa4.js';
|
|
7
|
+
import styled from '@emotion/styled';
|
|
8
|
+
import { t as theme } from './theme-f18c2351.js';
|
|
9
|
+
|
|
10
|
+
const StyledSurveyQuestionCard = styled.div `
|
|
11
|
+
padding: 1rem;
|
|
12
|
+
background: ${theme.colors.neutral100};
|
|
13
|
+
.survey-inner-wrapper {
|
|
14
|
+
padding: 1.25rem 1rem 1.5rem;
|
|
15
|
+
background: ${theme.colors.white};
|
|
16
|
+
border-radius: ${theme.borderRadius};
|
|
17
|
+
.survey-header {
|
|
18
|
+
border-bottom: 1px solid #dbdfe5;
|
|
19
|
+
margin-bottom: 12px;
|
|
20
|
+
.survey-header-text {
|
|
21
|
+
color: ${theme.colors.gray500};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.survey-contact-submit {
|
|
26
|
+
width: 100%;
|
|
27
|
+
margin-bottom: 1.5rem;
|
|
28
|
+
}
|
|
29
|
+
.term-policy-container {
|
|
30
|
+
width: 70%;
|
|
31
|
+
min-width: 210px;
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
margin: 0 auto 1.5rem;
|
|
34
|
+
text-align: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.survey-progress-wrapper {
|
|
38
|
+
width: calc(100% + 2rem);
|
|
39
|
+
height: 4px;
|
|
40
|
+
margin-bottom: 1rem;
|
|
41
|
+
margin-left: -1rem;
|
|
42
|
+
background: #e4e8ec;
|
|
43
|
+
.survey-progress {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
background: #00b16a;
|
|
47
|
+
transform: scaleX(0);
|
|
48
|
+
transform-origin: left;
|
|
49
|
+
transition: transform ease-in-out 0.3s;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.survey-button-wrapper {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
button {
|
|
57
|
+
justify-content: center;
|
|
58
|
+
&[data-has-icon='true'] {
|
|
59
|
+
svg {
|
|
60
|
+
width: 10px;
|
|
61
|
+
height: 10px;
|
|
62
|
+
margin-right: 10px;
|
|
63
|
+
vertical-align: unset;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&.survey-next-button {
|
|
67
|
+
&[data-has-icon='true'] {
|
|
68
|
+
svg {
|
|
69
|
+
margin-right: 0;
|
|
70
|
+
margin-left: 10px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&[data-center='true'] {
|
|
76
|
+
justify-content: center;
|
|
77
|
+
button:only-child {
|
|
78
|
+
width: 200px;
|
|
79
|
+
max-width: 80%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.survey-prev-button {
|
|
83
|
+
margin-right: 0.5rem;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;
|
|
88
|
+
const StyledSurveyRadio = styled.div `
|
|
89
|
+
position: relative;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
|
|
94
|
+
input {
|
|
95
|
+
position: relative;
|
|
96
|
+
width: 20px;
|
|
97
|
+
height: 20px;
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
border: solid 1px ${theme.colors.gray500};
|
|
100
|
+
margin-right: 8px;
|
|
101
|
+
border-radius: 100%;
|
|
102
|
+
cursor: inherit;
|
|
103
|
+
transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
|
|
104
|
+
|
|
105
|
+
&:hover,
|
|
106
|
+
&:active {
|
|
107
|
+
border-color: ${theme.colors.primaryBase};
|
|
108
|
+
box-shadow: 0 0 2px 2px ${theme.colors.primary600};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:checked {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
border-color: ${theme.colors.primaryBase};
|
|
116
|
+
&:after {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 50%;
|
|
119
|
+
left: 50%;
|
|
120
|
+
width: 14px;
|
|
121
|
+
height: 14px;
|
|
122
|
+
//left: 3px;
|
|
123
|
+
//position: absolute;
|
|
124
|
+
//top: 4px;
|
|
125
|
+
background-color: ${theme.colors.primaryBase};
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
content: '';
|
|
128
|
+
transform: translate(-50%, -50%);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
label {
|
|
134
|
+
width: calc(100% - 24px);
|
|
135
|
+
cursor: inherit;
|
|
136
|
+
font-weight: ${theme.sizes.fwRegular};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&[data-disabled='true'] {
|
|
140
|
+
color: ${theme.colors.gray300};
|
|
141
|
+
cursor: not-allowed;
|
|
142
|
+
input {
|
|
143
|
+
border-color: ${theme.colors.gray300};
|
|
144
|
+
|
|
145
|
+
&:hover {
|
|
146
|
+
border-color: ${theme.colors.gray300};
|
|
147
|
+
box-shadow: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
padding: 16px 20px;
|
|
153
|
+
border: 0.5px solid transparent;
|
|
154
|
+
background: #fafafa;
|
|
155
|
+
border-radius: ${theme.borderRadius};
|
|
156
|
+
&[data-checked='true'] {
|
|
157
|
+
border: 0.5px solid #2d87f3;
|
|
158
|
+
background: #f7f9fc;
|
|
159
|
+
}
|
|
160
|
+
input {
|
|
161
|
+
border: solid 2px #737373;
|
|
162
|
+
margin-right: 0;
|
|
163
|
+
background: white;
|
|
164
|
+
&[type='checkbox'] {
|
|
165
|
+
&:checked {
|
|
166
|
+
border: 0;
|
|
167
|
+
background: ${theme.colors.primaryBase}
|
|
168
|
+
url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 21C16.5228 21 21 16.5228 21 11C21 5.47715 16.5228 1 11 1C5.47715 1 1 5.47715 1 11C1 16.5228 5.47715 21 11 21Z' fill='%232D87F3' stroke='%232D87F3' stroke-width='2'/%3E%3Cpath d='M15.5714 8L9.67857 14L7 11.2727' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
|
|
169
|
+
no-repeat center center;
|
|
170
|
+
&:after {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&[data-has-image='true'] {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: block;
|
|
180
|
+
padding: 12px;
|
|
181
|
+
input {
|
|
182
|
+
position: absolute;
|
|
183
|
+
top: 20px;
|
|
184
|
+
right: 20px;
|
|
185
|
+
}
|
|
186
|
+
.choice-image-wrapper {
|
|
187
|
+
position: relative;
|
|
188
|
+
padding-top: 56.25%;
|
|
189
|
+
margin-bottom: 0.75rem;
|
|
190
|
+
img {
|
|
191
|
+
position: absolute;
|
|
192
|
+
top: 0;
|
|
193
|
+
left: 0;
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: 100%;
|
|
196
|
+
border-radius: ${theme.borderRadius};
|
|
197
|
+
object-fit: cover;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
`;
|
|
202
|
+
const StyledSurveyThankyouCard = styled.div `
|
|
203
|
+
position: relative;
|
|
204
|
+
width: 100%;
|
|
205
|
+
padding-top: min(400px, 100%);
|
|
206
|
+
.survey-thankyou-wrapper-inner {
|
|
207
|
+
position: absolute;
|
|
208
|
+
top: 0;
|
|
209
|
+
left: 0;
|
|
210
|
+
display: flex;
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
.survey-thankyou-icon {
|
|
217
|
+
width: 36%;
|
|
218
|
+
max-height: 50%;
|
|
219
|
+
margin-bottom: 1.5rem;
|
|
220
|
+
}
|
|
221
|
+
.survey-thankyou-title {
|
|
222
|
+
margin-bottom: 1rem;
|
|
223
|
+
text-align: center;
|
|
224
|
+
}
|
|
225
|
+
.survey-thankyou-subtitle {
|
|
226
|
+
text-align: center;
|
|
227
|
+
> * {
|
|
228
|
+
text-align: center;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
`;
|
|
233
|
+
const StyledSurveyQuestionContent = styled.div `
|
|
234
|
+
.survey-question-text-wrapper {
|
|
235
|
+
margin-bottom: 24px;
|
|
236
|
+
.survey-question-title {
|
|
237
|
+
margin-bottom: 4px;
|
|
238
|
+
}
|
|
239
|
+
.survey-question-subtitle,
|
|
240
|
+
.survey-question-description {
|
|
241
|
+
color: ${theme.colors.gray500};
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
.survey-question-image {
|
|
245
|
+
width: 100%;
|
|
246
|
+
margin-bottom: 12px;
|
|
247
|
+
border-radius: ${theme.borderRadius};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.survey-question-answer-wrapper {
|
|
251
|
+
margin-bottom: 1.5rem;
|
|
252
|
+
.survey-question-options-wrapper {
|
|
253
|
+
display: grid;
|
|
254
|
+
grid-gap: 0.5rem;
|
|
255
|
+
grid-template-columns: 1fr;
|
|
256
|
+
&[data-has-image='true'] {
|
|
257
|
+
grid-gap: 0.8rem;
|
|
258
|
+
grid-template-columns: 1fr 1fr;
|
|
259
|
+
}
|
|
260
|
+
.survey-question-option-item {
|
|
261
|
+
label {
|
|
262
|
+
color: #262626;
|
|
263
|
+
font-size: 16px;
|
|
264
|
+
font-style: normal;
|
|
265
|
+
font-weight: normal;
|
|
266
|
+
line-height: 24px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
.survey-contact-input {
|
|
271
|
+
margin-bottom: 1rem;
|
|
272
|
+
&:first-child {
|
|
273
|
+
margin-top: 1rem;
|
|
274
|
+
}
|
|
275
|
+
label {
|
|
276
|
+
font-weight: 700;
|
|
277
|
+
}
|
|
278
|
+
input {
|
|
279
|
+
margin-top: 6px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
`;
|
|
284
|
+
|
|
285
|
+
const SurveyRadio = ({ size = 'small', label, name, checked, value, className, isDisabled = false, onChange, hasImage, inputType, image, }) => {
|
|
286
|
+
return (React__default.createElement(StyledSurveyRadio, { "data-disabled": isDisabled, className: className, "data-size": size, "data-checked": checked, onClick: () => {
|
|
287
|
+
onChange(value);
|
|
288
|
+
}, "data-has-image": hasImage },
|
|
289
|
+
hasImage && (React__default.createElement("div", { className: "choice-image-wrapper" }, image && React__default.createElement("img", { src: image, loading: "lazy" }))),
|
|
290
|
+
React__default.createElement("label", { onClick: (e) => {
|
|
291
|
+
e.preventDefault();
|
|
292
|
+
}, htmlFor: `${name}-${value}` }, label),
|
|
293
|
+
React__default.createElement("input", { type: inputType, checked: checked, name: name, id: `${name}-${value}`, value: value, readOnly: true })));
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
const SurveyQuestionContent = ({ question, description, onOptionsChange, onTextOptionsChange, style, className, }) => {
|
|
297
|
+
const { type, title, subtitle, image, textOptions: textOptionsProps, options, name, is_multi_select, } = question;
|
|
298
|
+
const optionHasImage = !!(options === null || options === void 0 ? void 0 : options.some((o) => o.image));
|
|
299
|
+
const [selectedOptions, setSelectedOptions] = useState([]);
|
|
300
|
+
const [textOptions, setTextOptions] = useState(() => (textOptionsProps === null || textOptionsProps === void 0 ? void 0 : textOptionsProps.slice()) || []);
|
|
301
|
+
useEffect(() => {
|
|
302
|
+
onOptionsChange && onOptionsChange(selectedOptions.slice());
|
|
303
|
+
}, [!!onOptionsChange, selectedOptions]);
|
|
304
|
+
useEffect(() => {
|
|
305
|
+
onTextOptionsChange && onTextOptionsChange(textOptions);
|
|
306
|
+
}, [!!onTextOptionsChange, textOptions]);
|
|
307
|
+
return (React__default.createElement(StyledSurveyQuestionContent, { className: className, style: style },
|
|
308
|
+
React__default.createElement("div", { className: "survey-question-text-wrapper" },
|
|
309
|
+
title && (React__default.createElement(Heading, { "data-nosubtitle": !subtitle, className: "survey-question-title", tag: "h4" }, title)),
|
|
310
|
+
subtitle && (React__default.createElement(Text, { className: "survey-question-subtitle", size: "p2" }, subtitle)),
|
|
311
|
+
description && (React__default.createElement(Text, { className: "survey-question-description", size: "p2" }, description))),
|
|
312
|
+
image && (React__default.createElement("img", { src: image, className: "survey-question-image", loading: "lazy" })),
|
|
313
|
+
React__default.createElement("div", { className: "survey-question-answer-wrapper" },
|
|
314
|
+
type === 'radio' && (React__default.createElement("div", { "data-has-image": optionHasImage, className: "survey-question-options-wrapper" }, options.map((option) => {
|
|
315
|
+
var _a;
|
|
316
|
+
return (React__default.createElement(SurveyRadio, { inputType: "radio", label: option.label, name: name, key: `${name}-${option.value}`, checked: ((_a = selectedOptions[0]) === null || _a === void 0 ? void 0 : _a.value) === option.value, value: option.value, onChange: (v) => {
|
|
317
|
+
setSelectedOptions([options.find((o) => o.value === v)]);
|
|
318
|
+
}, className: "survey-question-option-item", image: option.image, hasImage: optionHasImage }));
|
|
319
|
+
}))),
|
|
320
|
+
type === 'checkbox' && (React__default.createElement("div", { "data-has-image": optionHasImage, className: "survey-question-options-wrapper" }, options.map((option) => (React__default.createElement(SurveyRadio, { inputType: "checkbox", label: option.label, name: name, key: `${name}-${option.value}`, checked: !!selectedOptions.find((o) => o.value === option.value), value: option.value, onChange: () => {
|
|
321
|
+
const foundIndex = selectedOptions.findIndex((o) => o.value === option.value);
|
|
322
|
+
if (foundIndex >= 0) {
|
|
323
|
+
setSelectedOptions((_old) => {
|
|
324
|
+
_old.splice(foundIndex, 1);
|
|
325
|
+
return _old.slice();
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
if (!is_multi_select) {
|
|
330
|
+
setSelectedOptions([option]);
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
setSelectedOptions((_old) => _old.concat(option).slice());
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}, className: "survey-question-option-item survey-option-radio", image: option.image, hasImage: optionHasImage }))))),
|
|
337
|
+
type === 'textbox' &&
|
|
338
|
+
textOptions.map((option, index) => option.isTextArea ? (React__default.createElement(TextArea, { key: index, placeholder: option.placeholder, height: '150px', value: option.value, onChange: (t) => setTextOptions((_o) => {
|
|
339
|
+
_o[index].value = t;
|
|
340
|
+
return _o.slice();
|
|
341
|
+
}) })) : (React__default.createElement(Input, { key: index, value: option.value, name: option.name, size: "md", className: "survey-contact-input", label: option.label, placeholder: option.placeholder, onChange: (v) => {
|
|
342
|
+
setTextOptions((_o) => {
|
|
343
|
+
_o[index].value = v;
|
|
344
|
+
return _o.slice();
|
|
345
|
+
});
|
|
346
|
+
}, type: option.type }))))));
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
var NodeMultipleOptions;
|
|
350
|
+
(function (NodeMultipleOptions) {
|
|
351
|
+
NodeMultipleOptions[NodeMultipleOptions["UNLIMITED"] = 0] = "UNLIMITED";
|
|
352
|
+
NodeMultipleOptions[NodeMultipleOptions["EXACT_NUMBER"] = 1] = "EXACT_NUMBER";
|
|
353
|
+
NodeMultipleOptions[NodeMultipleOptions["RANGE"] = 2] = "RANGE";
|
|
354
|
+
})(NodeMultipleOptions || (NodeMultipleOptions = {}));
|
|
355
|
+
const SurveyQuestionCard = ({ className, headerText, style, question, termAndPolicyText, prevText, nextText, isContactForm, isDisableNext, isDisablePrev, onPrevClick, onNextClick, isSubmitButton, isButtonCenter, progress, descriptionText, }) => {
|
|
356
|
+
var _a, _b, _c;
|
|
357
|
+
// const [currentQuestionIndex, setQuestionIndex] = useState(0)
|
|
358
|
+
const [answer, setAnswer] = useState([]);
|
|
359
|
+
const { is_multi_select, multi_select_option, from, to } = question;
|
|
360
|
+
// const currentQuestion = questions[currentQuestionIndex]
|
|
361
|
+
// const currentAnswer = answers[currentQuestionIndex]
|
|
362
|
+
const currentType = question === null || question === void 0 ? void 0 : question.type;
|
|
363
|
+
const submitDisabled = (currentType === 'checkbox' &&
|
|
364
|
+
((_a = question.options) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
365
|
+
(!answer ||
|
|
366
|
+
answer.length === 0 ||
|
|
367
|
+
(is_multi_select &&
|
|
368
|
+
multi_select_option === NodeMultipleOptions.RANGE &&
|
|
369
|
+
(answer.length < from || answer.length > to)) ||
|
|
370
|
+
(is_multi_select &&
|
|
371
|
+
multi_select_option === NodeMultipleOptions.EXACT_NUMBER &&
|
|
372
|
+
answer.length !== from))) ||
|
|
373
|
+
(currentType === 'radio' &&
|
|
374
|
+
((_b = question.options) === null || _b === void 0 ? void 0 : _b.length) &&
|
|
375
|
+
(!answer || answer.length === 0)) ||
|
|
376
|
+
(currentType === 'textbox' &&
|
|
377
|
+
((_c = question.textOptions) === null || _c === void 0 ? void 0 : _c.length) &&
|
|
378
|
+
(answer.length < question.textOptions.length ||
|
|
379
|
+
answer.some((a) => !a.value)));
|
|
380
|
+
const normalizedProgress = typeof progress === 'number'
|
|
381
|
+
? progress > 1
|
|
382
|
+
? 1
|
|
383
|
+
: progress < 0
|
|
384
|
+
? 0
|
|
385
|
+
: Number(progress.toFixed(2))
|
|
386
|
+
: -1;
|
|
387
|
+
const formRef = useRef(null);
|
|
388
|
+
const reportValidity = () => {
|
|
389
|
+
if (currentType === 'textbox') {
|
|
390
|
+
// report validity for input elements
|
|
391
|
+
return formRef.current.reportValidity();
|
|
392
|
+
}
|
|
393
|
+
return true;
|
|
394
|
+
};
|
|
395
|
+
return (React__default.createElement(StyledSurveyQuestionCard, { className: className, style: style },
|
|
396
|
+
React__default.createElement("div", { className: "survey-inner-wrapper" },
|
|
397
|
+
headerText && (React__default.createElement("div", { className: "survey-header" },
|
|
398
|
+
React__default.createElement(Text, { className: "survey-header-text", size: "c2" }, headerText))),
|
|
399
|
+
React__default.createElement("form", { ref: formRef, onSubmit: (e) => e.preventDefault() },
|
|
400
|
+
React__default.createElement(SurveyQuestionContent, { question: question, description: descriptionText, onOptionsChange: (options) => {
|
|
401
|
+
setAnswer(options);
|
|
402
|
+
}, onTextOptionsChange: (text) => {
|
|
403
|
+
setAnswer(text);
|
|
404
|
+
} })),
|
|
405
|
+
isContactForm && nextText && (React__default.createElement(Button, { className: "survey-contact-submit", size: "lg", isDisabled: isDisableNext || submitDisabled, onClick: () => reportValidity() && onNextClick && onNextClick(answer) }, nextText)),
|
|
406
|
+
termAndPolicyText && (React__default.createElement("div", { className: "term-policy-container" }, termAndPolicyText)),
|
|
407
|
+
typeof progress === 'number' && (React__default.createElement("div", { className: "survey-progress-wrapper" },
|
|
408
|
+
React__default.createElement("div", { className: "survey-progress", style: {
|
|
409
|
+
transform: `scaleX(${normalizedProgress})`,
|
|
410
|
+
} }))),
|
|
411
|
+
(prevText || nextText) && (React__default.createElement("div", { "data-center": isButtonCenter, className: "survey-button-wrapper" },
|
|
412
|
+
prevText && (React__default.createElement(Button, { className: "survey-prev-button", size: "lg", color: isDisablePrev ? 'primary' : 'secondary', isDisabled: isDisablePrev, icon: React__default.createElement("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" },
|
|
413
|
+
React__default.createElement("path", { d: "M2.44677 4.99999L5.31252 2.13424C5.62302 1.82374 5.62302 1.31974 5.31252 1.00924C5.00202 0.698742 4.49802 0.698742 4.18752 1.00924L0.727018 4.46974C0.433768 4.76299 0.433768 5.23774 0.727018 5.53024L4.18752 8.99074C4.49802 9.30124 5.00202 9.30124 5.31252 8.99074C5.62302 8.68024 5.62302 8.17624 5.31252 7.86574L2.44677 4.99999Z", fill: isDisablePrev ? '#fff' : '#2D87F3' })), onClick: onPrevClick }, prevText)),
|
|
414
|
+
!isContactForm && nextText && (React__default.createElement(Button, { onClick: () => reportValidity() && onNextClick && onNextClick(answer), className: "survey-next-button", size: "lg", isDisabled: isDisableNext || submitDisabled },
|
|
415
|
+
nextText,
|
|
416
|
+
' ',
|
|
417
|
+
isSubmitButton ? undefined : (React__default.createElement("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" },
|
|
418
|
+
React__default.createElement("path", { d: "M3.80322 5.19994L0.937465 2.33419C0.626965 2.02369 0.626965 1.51969 0.937465 1.20919C1.24796 0.898693 1.75196 0.898693 2.06246 1.20919L5.52297 4.66969C5.81622 4.96294 5.81622 5.43769 5.52297 5.73019L2.06246 9.19069C1.75196 9.50119 1.24796 9.50119 0.937465 9.19069C0.626965 8.88019 0.626965 8.37619 0.937465 8.06569L3.80322 5.19994Z", fill: "#ffffff" }))))))))));
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
const SurveyThankyouCard = ({ thankyou, thankyouSubtitle, className, style, }) => {
|
|
422
|
+
return (React__default.createElement(StyledSurveyQuestionCard, { className: className, style: style },
|
|
423
|
+
React__default.createElement("div", { className: "survey-inner-wrapper" },
|
|
424
|
+
React__default.createElement(StyledSurveyThankyouCard, null,
|
|
425
|
+
React__default.createElement("div", { className: "survey-thankyou-wrapper-inner" },
|
|
426
|
+
React__default.createElement("svg", {
|
|
427
|
+
// width="122"
|
|
428
|
+
// height="122"
|
|
429
|
+
viewBox: "0 0 122 122", fill: "none", className: "survey-thankyou-icon" },
|
|
430
|
+
React__default.createElement("path", { d: "M61.5 122c33.137 0 60-26.863 60-60S94.637 2 61.5 2s-60 26.863-60 60 26.863 60 60 60Z", fill: theme.colors.primary50 }),
|
|
431
|
+
React__default.createElement("ellipse", { cx: "61.5", cy: "110.36", rx: "48", ry: "3.36", fill: "#91CAFF" }),
|
|
432
|
+
React__default.createElement("path", { d: "M82.905 72.666H101.5L87.597 40H35.403L21.5 72.666h18.595V91H83.08l-.174-18.334Z", fill: "#2C74DF" }),
|
|
433
|
+
React__default.createElement("path", { d: "M74.4 15H39.863a5.364 5.364 0 0 0-5.363 5.363v52.214a5.364 5.364 0 0 0 5.363 5.363h43.273a5.364 5.364 0 0 0 5.363-5.363V21a6 6 0 0 0-6-6H74.4Z", fill: "#fff" }),
|
|
434
|
+
React__default.createElement("path", { d: "M88.853 80.108H34.147a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074h54.706a4.055 4.055 0 0 1 4.087 4.074v10.65c0 2.27-1.81 4.074-4.087 4.074Z", fill: "#E4E8EC" }),
|
|
435
|
+
React__default.createElement("path", { d: "M90.838 85.451H32.162a4.055 4.055 0 0 1-4.087-4.074v-10.65c0-2.27 1.81-4.074 4.087-4.074H90.78a4.055 4.055 0 0 1 4.087 4.074v10.65c.058 2.27-1.81 4.074-4.029 4.074Z", fill: "#fff" }),
|
|
436
|
+
React__default.createElement("path", { d: "M103.748 75.492v30.263c0 1.92-1.576 3.492-3.503 3.492H23.003c-1.927 0-3.503-1.572-3.503-3.492V75.492c0-1.92 1.576-3.492 3.503-3.492h19.384c1.926 0 3.503 1.571 3.503 3.492v5.354c0 .35.233.582.584.582h30.3c.351 0 .585-.233.585-.582v-5.354c0-1.92 1.576-3.492 3.503-3.492h19.383c1.927 0 3.503 1.571 3.503 3.492Z", fill: "#45A4FF" }),
|
|
437
|
+
React__default.createElement("path", { stroke: "#2C74DF", d: "M51.954 91.377v3.084c0 1.63 1.285 2.91 2.92 2.91h12.844c1.635 0 2.92-1.28 2.92-2.91v-3.084" }),
|
|
438
|
+
React__default.createElement("path", { d: "M120.5 38.025c-2-.246-3.25 1.352-2.375 3.195l.25.737c.75 1.844-.375 3.441-2.375 3.195l-.75-.123c-2-.245-3.25 1.352-2.375 3.195l.375.738c.75 1.843-.375 3.44-2.375 3.195l-.75-.123c-1.5-.123-2.625.737-2.625 1.966", stroke: "#FE921D" }),
|
|
439
|
+
React__default.createElement("path", { d: "M1.533 62c-.269 1.413 1.142 2.337 2.82 1.848l.672-.218c1.678-.543 3.089.38 2.82 1.848l-.134.544c-.269 1.413 1.141 2.337 2.82 1.848l.671-.218c1.68-.543 3.09.38 2.82 1.848l-.134.543c-.201 1.087.538 1.848 1.612 1.957M118 92a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM82 3.187l1.188 4.348 4.347-1.188L86.347 2 82 3.187Z", stroke: "#00B16A" }),
|
|
440
|
+
React__default.createElement("path", { stroke: "#FE921D", d: "M17 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" }),
|
|
441
|
+
React__default.createElement("path", { d: "M61.5 26.667c-7.364 0-13.333 5.97-13.333 13.333 0 7.364 5.969 13.333 13.333 13.333S74.833 47.364 74.833 40 68.864 26.667 61.5 26.667Zm7.61 10.276-9.334 9.333a1.33 1.33 0 0 1-1.885 0l-4-4a1.332 1.332 0 1 1 1.885-1.885l3.057 3.057 8.391-8.39a1.332 1.332 0 1 1 1.885 1.885Z", fill: "#00CB8A" })),
|
|
442
|
+
thankyou && (React__default.createElement(Heading, { className: "survey-thankyou-title", tag: "h3" }, thankyou)),
|
|
443
|
+
thankyouSubtitle && (React__default.createElement(Text, { className: "survey-thankyou-subtitle", size: "p3" }, thankyouSubtitle)))))));
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
export { SurveyQuestionCard as S, SurveyThankyouCard as a };
|
package/build/esm/together.js
CHANGED
|
@@ -1,56 +1,54 @@
|
|
|
1
|
-
export { f as CardAuthor, C as CardLink, B as CardPost, D as CardPostPopoverMore, b as CardReactions, E as CardReply, F as CardReplyPopover, g as CreateNewPostContent, h as CreatePostDescription, i as CreatePostTitle, r as ImagePreviewPopup, I as InputCommentBar, d as LabelPin, L as LabelSortPin, e as LabelSorting, G as PopoverMenu, P as PopupDanger, k as PopupDoctor, j as PopupExpert, n as PopupFrame, l as PopupHospital, q as PostContent, v as PostImagePreview, s as PostSingleImageViewPopup, y as ProfileDetail, x as ProfileDetailModal, p as ShareBox, S as SharePopup, A as SkipQuestionOfExpertBtn, w as SocialLinkPreview, H as SourceList, o as SubmitReportForm, z as TabNameInProfileDetail, c as TagTopic, T as TogetherAuthConfigContext, a as TogetherAuthConfigContextProvider, t as TogetherTypes, m as TopicSelectList, V as VerifiedTag, u as useTogetherAuthRequiredAction } from './types-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { f as CardAuthor, C as CardLink, B as CardPost, D as CardPostPopoverMore, b as CardReactions, E as CardReply, F as CardReplyPopover, g as CreateNewPostContent, h as CreatePostDescription, i as CreatePostTitle, r as ImagePreviewPopup, I as InputCommentBar, d as LabelPin, L as LabelSortPin, e as LabelSorting, G as PopoverMenu, P as PopupDanger, k as PopupDoctor, j as PopupExpert, n as PopupFrame, l as PopupHospital, q as PostContent, v as PostImagePreview, s as PostSingleImageViewPopup, y as ProfileDetail, x as ProfileDetailModal, p as ShareBox, S as SharePopup, A as SkipQuestionOfExpertBtn, w as SocialLinkPreview, H as SourceList, o as SubmitReportForm, z as TabNameInProfileDetail, c as TagTopic, T as TogetherAuthConfigContext, a as TogetherAuthConfigContextProvider, t as TogetherTypes, m as TopicSelectList, V as VerifiedTag, u as useTogetherAuthRequiredAction } from './types-2580132c.js';
|
|
2
|
+
export { U as UserAvatar } from './index-703205e3.js';
|
|
3
|
+
export { d as TogetherDataTransforms } from './dataTransform-3e8e25ba.js';
|
|
4
|
+
export { c as TogetherConstants } from './constants-71d9f33b.js';
|
|
5
|
+
export { D as DefaultComponentGlobalContextData, G as GlobalData, T as TogetherComponentGlobalContext, a as TogetherComponentGlobalContextProvider } from './utils-d5a0b58f.js';
|
|
4
6
|
import 'react';
|
|
5
|
-
import './index-
|
|
6
|
-
import './tslib.es6-
|
|
7
|
+
import './index-c200bff6.js';
|
|
8
|
+
import './tslib.es6-761239c7.js';
|
|
7
9
|
import '@mantine/core';
|
|
8
|
-
import './utils-
|
|
9
|
-
import './translationsContext-
|
|
10
|
+
import './utils-f8761b9d.js';
|
|
11
|
+
import './translationsContext-f3d1a7bd.js';
|
|
10
12
|
import 'string-format';
|
|
11
13
|
import '@hhgtech/icons/other';
|
|
12
|
-
import './index-
|
|
14
|
+
import './index-cdac57da.js';
|
|
13
15
|
import '@emotion/styled';
|
|
14
|
-
import './theme-
|
|
15
|
-
import './useTranslations-
|
|
16
|
+
import './theme-f18c2351.js';
|
|
17
|
+
import './useTranslations-fbf6a6ab.js';
|
|
16
18
|
import 'innertext';
|
|
17
|
-
import './index-
|
|
19
|
+
import './index-21eac858.js';
|
|
18
20
|
import '@mantine/hooks';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
21
|
+
import './index-78255d6c.js';
|
|
22
|
+
import './index-bef3c9bd.js';
|
|
21
23
|
import 'date-fns/locale';
|
|
22
|
-
import './index-
|
|
23
|
-
import './isProduction-
|
|
24
|
+
import './index-e3787b20.js';
|
|
25
|
+
import './isProduction-5684a28c.js';
|
|
24
26
|
import '@mantine/carousel';
|
|
25
|
-
import './useMantineLocale-
|
|
27
|
+
import './useMantineLocale-4fb67342.js';
|
|
26
28
|
import 'dayjs';
|
|
29
|
+
import './index-2b9213cf.js';
|
|
27
30
|
import 'classnames';
|
|
28
|
-
import './useUniqueId-
|
|
31
|
+
import './useUniqueId-c23213b6.js';
|
|
29
32
|
import '@hhgtech/icons/core';
|
|
30
33
|
import '@mantine/dates';
|
|
31
|
-
import './index-
|
|
32
|
-
import './
|
|
33
|
-
import './constants-
|
|
34
|
-
import '
|
|
35
|
-
import './animation-bf170ee9.js';
|
|
36
|
-
import 'react-keyed-flatten-children';
|
|
37
|
-
import './paths-d1c61fa8.js';
|
|
38
|
-
import './index-aebf96f3.js';
|
|
34
|
+
import './index-b1bb27aa.js';
|
|
35
|
+
import './paths-49a813e7.js';
|
|
36
|
+
import './constants-f77fc231.js';
|
|
37
|
+
import './index-16514f4d.js';
|
|
39
38
|
import 'lodash/debounce';
|
|
40
39
|
import 'react-contenteditable';
|
|
41
|
-
import './index-
|
|
42
|
-
import './index-
|
|
43
|
-
import './cookieHelper-
|
|
40
|
+
import './index-1da2ca0b.js';
|
|
41
|
+
import './index-73301602.js';
|
|
42
|
+
import './cookieHelper-73ce3871.js';
|
|
44
43
|
import 'react-dom';
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
47
|
-
import './
|
|
48
|
-
import './number-
|
|
44
|
+
import './defaultClassWrapper-31caf23b.js';
|
|
45
|
+
import './index-69248434.js';
|
|
46
|
+
import './WhatsApp-7d3732e2.js';
|
|
47
|
+
import './number-13f075cf.js';
|
|
49
48
|
import 'date-fns';
|
|
50
49
|
import 'dayjs/plugin/relativeTime';
|
|
51
|
-
import '
|
|
52
|
-
import './
|
|
53
|
-
import './
|
|
54
|
-
import './index
|
|
55
|
-
import './index-528e64f4.js';
|
|
50
|
+
import '@emotion/react';
|
|
51
|
+
import './index-d218b94e.js';
|
|
52
|
+
import './routing-bebdc8b7.js';
|
|
53
|
+
import './index-3078acec.js';
|
|
56
54
|
import 'slugify';
|
|
@@ -1,49 +1,47 @@
|
|
|
1
1
|
import React__default, { createContext, useContext, useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
-
import { T as Text } from './index-
|
|
3
|
-
import './translationsContext-
|
|
2
|
+
import { T as Text } from './index-c200bff6.js';
|
|
3
|
+
import './translationsContext-f3d1a7bd.js';
|
|
4
4
|
import 'string-format';
|
|
5
|
-
import { T as TogetherComponentGlobalContext,
|
|
6
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
5
|
+
import { T as TogetherComponentGlobalContext, j as getUrlToSignUp, c as callApi, d as getApiPath, P as PATHS, k as getCurrentBaseUrl, g as getCarePath, C as CARE_PATHS, l as domainLocales, m as getCareHospitalUrl, n as getCareDoctorUrl, o as getDiscoverApiPath, p as DISCOVER_PATHS, A as ADMIN_PATHS, q as callApiWithAdminAuth, b as callApiWithAuth, r as getMarryBabyApiPath, s as callApiWithOptionalAuth } from './utils-d5a0b58f.js';
|
|
6
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-761239c7.js';
|
|
7
7
|
import { Heart, Reply, Comment, CrossLogo, ShieldCheck, Info, Ask, FullScreen, ArrowDown, ArrowRight, Trash, Endorse } from '@hhgtech/icons/other';
|
|
8
8
|
import { useMantineTheme, Box, createStyles, Flex, rem, Checkbox, Portal, Anchor, Accordion, Popover } from '@mantine/core';
|
|
9
|
-
import { D as Dropdown } from './index-
|
|
10
|
-
import { u as useTranslations } from './useTranslations-
|
|
9
|
+
import { D as Dropdown } from './index-cdac57da.js';
|
|
10
|
+
import { u as useTranslations } from './useTranslations-fbf6a6ab.js';
|
|
11
11
|
import innertext from 'innertext';
|
|
12
|
-
import { t as theme } from './theme-
|
|
13
|
-
import { I as ImageWrap, u as useScreenSize,
|
|
12
|
+
import { t as theme } from './theme-f18c2351.js';
|
|
13
|
+
import { I as ImageWrap, u as useScreenSize, A as Anchor$1, T as Tabs } from './index-21eac858.js';
|
|
14
14
|
import '@mantine/dates';
|
|
15
|
-
import { D as DATE_FNS_LOCALE, d as domainLocales$1 } from './index-
|
|
16
|
-
import { L as LOCALE, S as SocialType } from './index-
|
|
17
|
-
import { C as CommonGAssets } from './index-
|
|
18
|
-
import './useMantineLocale-
|
|
15
|
+
import { D as DATE_FNS_LOCALE, d as domainLocales$1 } from './index-bef3c9bd.js';
|
|
16
|
+
import { L as LOCALE, S as SocialType } from './index-e3787b20.js';
|
|
17
|
+
import { C as CommonGAssets } from './index-78255d6c.js';
|
|
18
|
+
import './useMantineLocale-4fb67342.js';
|
|
19
|
+
import { B as Button$1 } from './index-2b9213cf.js';
|
|
19
20
|
import '@mantine/hooks';
|
|
20
|
-
import { M as MediaQueries, t as toggleNoScroll, c as safeEncodeURI, a as getPopupWrapperDom } from './utils-
|
|
21
|
-
import { A as AuthorBadge, a as BookingBtn, B as BtnChoice, D as Divider } from './index-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
21
|
+
import { M as MediaQueries, t as toggleNoScroll, c as safeEncodeURI, a as getPopupWrapperDom } from './utils-f8761b9d.js';
|
|
22
|
+
import { A as AuthorBadge, a as BookingBtn, B as BtnChoice, D as Divider } from './index-b1bb27aa.js';
|
|
23
|
+
import { c as formatTopic, b as formatPost, P as Popup, e as formatComment, a as formatCommunity, g as formatArticle, h as formatCategory } from './dataTransform-3e8e25ba.js';
|
|
24
|
+
import { B as BEARER_TOKEN_COOKIE, D as DEFAULT_IMG, M as MAX_IMAGE_UPLOADS, a as DEFAULT_AVATAR_IMG, R as REPORT_REASON_MAP } from './constants-71d9f33b.js';
|
|
25
|
+
import { I as Input } from './index-16514f4d.js';
|
|
24
26
|
import debounce from 'lodash/debounce';
|
|
25
27
|
import ContentEditable from 'react-contenteditable';
|
|
26
28
|
import { Plus, Close, Check } from '@hhgtech/icons/core';
|
|
27
|
-
import { B as Button } from './index-
|
|
28
|
-
import { H as Heading } from './index-
|
|
29
|
-
import { d as deleteCookie, g as getCookie } from './cookieHelper-
|
|
29
|
+
import { B as Button } from './index-1da2ca0b.js';
|
|
30
|
+
import { H as Heading } from './index-73301602.js';
|
|
31
|
+
import { d as deleteCookie, g as getCookie } from './cookieHelper-73ce3871.js';
|
|
30
32
|
import * as ReactDOM from 'react-dom';
|
|
31
33
|
import styled from '@emotion/styled';
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
+
import { s as setDefaultClass } from './defaultClassWrapper-31caf23b.js';
|
|
35
|
+
import { I as Icon } from './index-69248434.js';
|
|
36
|
+
import { a as abbreviateNumber } from './number-13f075cf.js';
|
|
34
37
|
import { format } from 'date-fns';
|
|
35
38
|
import dayjs from 'dayjs';
|
|
36
39
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
40
|
+
import { U as UserAvatar } from './index-703205e3.js';
|
|
37
41
|
import { keyframes } from '@emotion/react';
|
|
38
|
-
import { M as Modal } from './index-
|
|
39
|
-
import { a as useUniqueId } from './useUniqueId-
|
|
40
|
-
import { g as getCurrentBaseUrl$1 } from './routing-
|
|
41
|
-
import './index.styles-0ef0135c.js';
|
|
42
|
-
import './constants-508ba335.js';
|
|
43
|
-
import './utils-ff5d88a2.js';
|
|
44
|
-
import './index-13bf84f4.js';
|
|
45
|
-
import './index.styled-9e147e72.js';
|
|
46
|
-
import './index-528e64f4.js';
|
|
42
|
+
import { M as Modal } from './index-d218b94e.js';
|
|
43
|
+
import { a as useUniqueId } from './useUniqueId-c23213b6.js';
|
|
44
|
+
import { g as getCurrentBaseUrl$1 } from './routing-bebdc8b7.js';
|
|
47
45
|
|
|
48
46
|
const TogetherAuthConfigContext = createContext({});
|
|
49
47
|
const TogetherAuthConfigContextProvider = ({ children, defaultParams, }) => {
|