@hhgtech/hhg-components 1.28.57 → 1.28.59
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/{Plus-29cf93ab.js → Plus-155fd41f.js} +1 -1
- package/build/{WhatsApp-0328afb7.js → WhatsApp-cbd2b870.js} +1 -1
- package/build/babyGrowth.js +2 -2
- package/build/cache.js +1 -1
- package/build/care.js +1 -1
- package/build/components.js +1 -1
- package/build/{constants-accf73ad.js → constants-5f9a141f.js} +1 -1
- package/build/{constants-6df0e996.js → constants-6a8e6824.js} +1 -1
- package/build/constants.js +1 -1
- package/build/{core-74527c16.js → core-b543f933.js} +1 -1
- package/build/{dataTransform-90c60ebb.js → dataTransform-9d1496b9.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Plus-f7c5618a.js → Plus-0795a68c.js} +1 -1
- package/build/esm/{WhatsApp-712a2952.js → WhatsApp-c7fd561d.js} +1 -1
- package/build/esm/babyGrowth.js +5 -5
- package/build/esm/cache.js +1 -1
- package/build/esm/care.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/{constants-0025e49b.js → constants-7b7e7784.js} +1 -1
- package/build/esm/{constants-2b9cc123.js → constants-d7aa1c1c.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-7df57a7b.js → core-87a3d383.js} +1 -1
- package/build/esm/{dataTransform-0387e8b3.js → dataTransform-9c92d261.js} +1 -1
- package/build/esm/ecom.js +1 -1
- package/build/esm/footer.js +1 -1
- package/build/esm/gAssets.js +1 -1
- package/build/esm/getDynamicHealthTool-f55ca837.js +1 -0
- package/build/esm/{getSocialList-73f474a8.js → getSocialList-be651baf.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/i18n.js +1 -1
- package/build/esm/i18nV2.js +1 -1
- package/build/esm/{index-bd2dfaf4.js → index-03b6469c.js} +4 -4
- package/build/esm/{index-47defc94.js → index-09d9862b.js} +1 -1
- package/build/esm/index-0ce3ea30.js +113 -0
- package/build/esm/{index-11ddf8b9.js → index-1c858659.js} +1 -1
- package/build/esm/index-36467b48.js +1 -0
- package/build/esm/index-404bb127.js +1 -0
- package/build/esm/{index-ef286146.js → index-417dbb92.js} +1 -1
- package/build/esm/{index-0aa85299.js → index-47ab8d3d.js} +1 -1
- package/build/esm/index-47b11c19.js +1 -0
- package/build/esm/{index-bd890b36.js → index-4fa69484.js} +1 -1
- package/build/esm/{index-7bc42cef.js → index-5222461b.js} +1 -1
- package/build/esm/{index-3fcc7de2.js → index-5db9b9d7.js} +9 -9
- package/build/esm/{index-75ae81a1.js → index-64dc6b83.js} +1 -1
- package/build/esm/{index-6a968a24.js → index-77b369f0.js} +1 -1
- package/build/esm/{index-449bd04b.js → index-88f24735.js} +1 -1
- package/build/esm/{index-1979f711.js → index-a9cbc4b7.js} +1 -1
- package/build/esm/index-b6c758c5.js +2748 -0
- package/build/esm/{index-cbeaabc6.js → index-bfb36e6c.js} +1 -1
- package/build/esm/{index-49571e2c.js → index-cce4d6b6.js} +150 -150
- package/build/esm/{index-ac8ebb4a.js → index-ed7346f2.js} +1 -1
- package/build/esm/{index-495ffaf3.js → index-f047d212.js} +1 -1
- package/build/esm/{index-7ab2dba5.js → index-f76eef86.js} +1 -1
- package/build/esm/{index-27926bb9.js → index-fe314c0f.js} +2 -2
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-f2aff174.js → index.styled-500647b4.js} +1 -1
- package/build/esm/{index.styles-3ff4ce8e.js → index.styles-fa4052da.js} +1 -1
- package/build/esm/lead/index.d.ts +2 -1
- package/build/esm/lead.js +1 -1
- package/build/esm/mantine.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/onboardingV2.js +3 -3
- package/build/esm/pwg.js +2 -2
- package/build/esm/{routing-c72cf84b.js → routing-7c6d65ae.js} +1 -1
- package/build/esm/subot.js +1 -1
- package/build/esm/together/components/atoms/cardReactions/element/index.d.ts +6 -5
- package/build/esm/together/components/atoms/cardReactions/index.d.ts +3 -3
- package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
- package/build/esm/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
- package/build/esm/together/components/molecules/cardAuthor/context.d.ts +13 -0
- package/build/esm/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
- package/build/esm/together/components/molecules/cardAuthor/index.d.ts +12 -13
- package/build/esm/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
- package/build/esm/together/interfaces/types.d.ts +6 -0
- package/build/esm/together.js +1 -1
- package/build/esm/{types-65d7416d.js → types-8e137b89.js} +202 -202
- package/build/esm/{types-b1b4d47c.js → types-a8c76d05.js} +22 -22
- package/build/esm/types.js +1 -1
- package/build/esm/useCategory-21a9ba33.js +1 -0
- package/build/esm/{useHealthToolCache-251daff3.js → useHealthToolCache-148be933.js} +1 -1
- package/build/esm/{usePlacesAutocomplete-4a1e0e57.js → usePlacesAutocomplete-96e52ce9.js} +1 -1
- package/build/esm/useTranslations-78d82c21.js +1 -0
- package/build/esm/{utils-f11e41fe.js → utils-3e125f1e.js} +2 -2
- package/build/esm/utils-5af9dad1.js +1 -0
- package/build/esm/{utils-0f6dd8a5.js → utils-f842970f.js} +1 -1
- package/build/esm/vaccination.js +3 -3
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/{getDynamicHealthTool-c60e68fa.js → getDynamicHealthTool-c3acf06a.js} +1 -1
- package/build/{getSocialList-630891ed.js → getSocialList-3e010454.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-84d7415b.js → index-046ee378.js} +3 -3
- package/build/{index-ea138477.js → index-14cdaffe.js} +1 -1
- package/build/{index-c9f86bff.js → index-222727c4.js} +171 -171
- package/build/{index-98bbfe57.js → index-296a0b5b.js} +1 -1
- package/build/index-2deaed20.js +113 -0
- package/build/{index-7d061022.js → index-30443c6e.js} +1 -1
- package/build/{index-c3fd1632.js → index-3f91ded6.js} +1 -1
- package/build/{index-3ead4f3b.js → index-48bcbf86.js} +1 -1
- package/build/{index-2ef72538.js → index-6f106161.js} +1 -1
- package/build/index-7feececd.js +1 -0
- package/build/{index-af31de20.js → index-80fbf9a2.js} +1 -1
- package/build/{index-03f3ee56.js → index-8199c76f.js} +1 -1
- package/build/{index-c070fdfc.js → index-86439785.js} +1 -1
- package/build/index-ae905846.js +1 -0
- package/build/{index-03b6e1bc.js → index-ba567cf6.js} +1 -1
- package/build/{index-61501e74.js → index-bbdde6e0.js} +1 -1
- package/build/{index-4af93720.js → index-e0c87872.js} +1 -1
- package/build/{index-be9cca2e.js → index-e4d32d14.js} +1 -1
- package/build/{index-8da5271e.js → index-eca857bd.js} +1 -1
- package/build/{index-3893e92a.js → index-f39724a1.js} +2 -2
- package/build/{index-fec5e458.js → index-f6cc5b05.js} +2 -2
- package/build/index-fecb8f45.js +2748 -0
- package/build/{index-4b4621fc.js → index-ffd92aea.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-c87d00c0.js → index.styled-3811edd9.js} +1 -1
- package/build/{index.styles-0f69a584.js → index.styles-b34ee290.js} +5 -5
- package/build/lead/index.d.ts +2 -1
- package/build/lead.js +1 -1
- package/build/mantine.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/onboardingV2.js +1 -1
- package/build/pwg.js +1 -1
- package/build/{routing-2fc7c708.js → routing-29d56eb6.js} +1 -1
- package/build/subot.js +1 -1
- package/build/together/components/atoms/cardReactions/element/index.d.ts +6 -5
- package/build/together/components/atoms/cardReactions/index.d.ts +3 -3
- package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.d.ts +3 -0
- package/build/together/components/molecules/cardAuthor/authorBadgeItem/index.styles.d.ts +8 -0
- package/build/together/components/molecules/cardAuthor/context.d.ts +13 -0
- package/build/together/components/molecules/cardAuthor/displayName.d.ts +2 -0
- package/build/together/components/molecules/cardAuthor/index.d.ts +12 -13
- package/build/together/components/molecules/cardAuthor/index.styles.d.ts +0 -1
- package/build/together/interfaces/types.d.ts +6 -0
- package/build/together.js +1 -1
- package/build/{types-9c499972.js → types-341cbbd1.js} +1 -1
- package/build/{types-7e10aa4b.js → types-760db918.js} +70 -70
- package/build/types.js +1 -1
- package/build/useCategory-d3020719.js +1 -0
- package/build/{useHealthToolCache-26767afb.js → useHealthToolCache-728f118d.js} +1 -1
- package/build/{usePlacesAutocomplete-df148a7c.js → usePlacesAutocomplete-07a7b610.js} +1 -1
- package/build/useTranslations-d2cbefef.js +1 -0
- package/build/utils-1a351432.js +1 -0
- package/build/{utils-7b0b950b.js → utils-90cf77ff.js} +1 -1
- package/build/{utils-2424ad70.js → utils-af90797a.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +5 -3
- package/build/esm/getDynamicHealthTool-ae9dd594.js +0 -1
- package/build/esm/index-0e0b9e2d.js +0 -2748
- package/build/esm/index-8389442a.js +0 -1
- package/build/esm/index-a7a6f2f8.js +0 -1
- package/build/esm/index-c83e2c6d.js +0 -1
- package/build/esm/index-d0c1cd58.js +0 -113
- package/build/esm/index-e119a401.js +0 -1
- package/build/esm/useCategory-285c8929.js +0 -1
- package/build/esm/useTranslations-71150e1d.js +0 -1
- package/build/esm/useUniqueId-871437b9.js +0 -1
- package/build/esm/utils-b83897f9.js +0 -1
- package/build/index-33839bf2.js +0 -1
- package/build/index-65b1d890.js +0 -113
- package/build/index-6853c2df.js +0 -1
- package/build/index-6f3496ec.js +0 -2748
- package/build/index-cdf8d22b.js +0 -1
- package/build/useCategory-e37a5113.js +0 -1
- package/build/useTranslations-498d106f.js +0 -1
- package/build/useUniqueId-dcfc3871.js +0 -1
- package/build/utils-f53640d1.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-7c1f442a.js → BMI_BOYS.percentile.monthly-dc83dcf5.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-f35471bd.js → BMI_BOYS.percentile.weekly-e3dff055.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-747fddc8.js → BMI_BOYS.percentile.yearly-7b400a2c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-40ffab15.js → BMI_BOYS.zscore.monthly-22e88be5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-2558df4d.js → BMI_BOYS.zscore.weekly-7254d38e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-c50b7daf.js → BMI_BOYS.zscore.yearly-0ce1987c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-930cc7b0.js → BMI_GIRLS.percentile.monthly-8f29513e.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-abfe88eb.js → BMI_GIRLS.percentile.weekly-b13d593f.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-ddb2fc4b.js → BMI_GIRLS.percentile.yearly-53368595.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b07dabad.js → BMI_GIRLS.zscore.monthly-a453df29.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-7ff3b728.js → BMI_GIRLS.zscore.weekly-6a5afb2f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-23e39370.js → BMI_GIRLS.zscore.yearly-7e400eed.js} +0 -0
- /package/build/{ChevronDown-60dfaf68.js → ChevronDown-e3a06b59.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-49ee9158.js → HEAD CIRCUM_BOYS.percentile.monthly-3bf214c5.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-3212dfa3.js → HEAD CIRCUM_BOYS.percentile.weekly-10c63505.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a0bbf6a0.js → HEAD CIRCUM_BOYS.percentile.yearly-ec027f7c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-e091094c.js → HEAD CIRCUM_BOYS.zscore.monthly-4b2f4e10.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-833459f8.js → HEAD CIRCUM_BOYS.zscore.weekly-5a6c7eed.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-1cfbeac4.js → HEAD CIRCUM_BOYS.zscore.yearly-c6d5d99a.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-9849f834.js → HEAD CIRCUM_GIRLS.percentile.monthly-f38e143e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-5cb8c830.js → HEAD CIRCUM_GIRLS.percentile.weekly-961e9398.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f57b40e9.js → HEAD CIRCUM_GIRLS.percentile.yearly-fb89c9d5.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-79102211.js → HEAD CIRCUM_GIRLS.zscore.monthly-f4be59eb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-4320a2b5.js → HEAD CIRCUM_GIRLS.zscore.weekly-b1435610.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d122a505.js → HEAD CIRCUM_GIRLS.zscore.yearly-44f4bf7e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-246e47a4.js → HEIGHT_BOYS.percentile.monthly-9d116dae.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-df1d3933.js → HEIGHT_BOYS.percentile.weekly-af5e9330.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2cf03f10.js → HEIGHT_BOYS.percentile.yearly-84c68900.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-35d6ff9d.js → HEIGHT_BOYS.zscore.monthly-3f6f7a60.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e5b11239.js → HEIGHT_BOYS.zscore.weekly-191d8a50.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-5055ffc2.js → HEIGHT_BOYS.zscore.yearly-9e6a420d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-b557c0ed.js → HEIGHT_GIRLS.percentile.monthly-edbe76b4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-287247ba.js → HEIGHT_GIRLS.percentile.weekly-9656f527.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-cd0e7ffc.js → HEIGHT_GIRLS.percentile.yearly-d5e9646f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-33433a04.js → HEIGHT_GIRLS.zscore.monthly-7962a30f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-57e0bc18.js → HEIGHT_GIRLS.zscore.weekly-00091ba0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-c8cacc57.js → HEIGHT_GIRLS.zscore.yearly-3f3bdcf2.js} +0 -0
- /package/build/{Subot-52e94ede.js → Subot-da4770e7.js} +0 -0
- /package/build/{Visible-8835941a.js → Visible-bbf989e9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3917215a.js → WEIGHT_BOYS.percentile.monthly-0efda3d8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6eb9a56d.js → WEIGHT_BOYS.percentile.weekly-da0ea954.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-29731535.js → WEIGHT_BOYS.percentile.yearly-f6da0f3e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e3123910.js → WEIGHT_BOYS.zscore.monthly-69b7c7f8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-694662de.js → WEIGHT_BOYS.zscore.weekly-288a675a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0f990dad.js → WEIGHT_BOYS.zscore.yearly-74aa3f11.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-241403dd.js → WEIGHT_GIRLS.percentile.monthly-c507c65f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-137b3467.js → WEIGHT_GIRLS.percentile.weekly-f08c1806.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e9aecc7d.js → WEIGHT_GIRLS.percentile.yearly-65e7c887.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-2cff2183.js → WEIGHT_GIRLS.zscore.monthly-545572f3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-0bfd7674.js → WEIGHT_GIRLS.zscore.weekly-0eb78b8f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9c0a3370.js → WEIGHT_GIRLS.zscore.yearly-f82147f8.js} +0 -0
- /package/build/{animation-ce2ee519.js → animation-6d0e530d.js} +0 -0
- /package/build/{cookieHelper-1bbbf79c.js → cookieHelper-7d59b3e7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-c4a97c9a.js → BMI_BOYS.percentile.monthly-d5a8dcff.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-6339f482.js → BMI_BOYS.percentile.weekly-54a95b85.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8c1ca6e2.js → BMI_BOYS.percentile.yearly-d2d8b110.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-3a5c8b0d.js → BMI_BOYS.zscore.monthly-0bd50ff3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-97453c11.js → BMI_BOYS.zscore.weekly-c8593da1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-d9b1265b.js → BMI_BOYS.zscore.yearly-d5005236.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-c05fdcd4.js → BMI_GIRLS.percentile.monthly-e3884907.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-18663de0.js → BMI_GIRLS.percentile.weekly-1ed13a41.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2f551a4c.js → BMI_GIRLS.percentile.yearly-e718de5e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-9a5c1809.js → BMI_GIRLS.zscore.monthly-358d226f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-23e3fe35.js → BMI_GIRLS.zscore.weekly-fcedba22.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-02d624e8.js → BMI_GIRLS.zscore.yearly-9ca47d29.js} +0 -0
- /package/build/esm/{ChevronDown-bd411290.js → ChevronDown-cc35428e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-6a86e966.js → HEAD CIRCUM_BOYS.percentile.monthly-f7558c8b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-99b4a304.js → HEAD CIRCUM_BOYS.percentile.weekly-7bc35bee.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-af69640c.js → HEAD CIRCUM_BOYS.percentile.yearly-77357f85.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d5a7fdb7.js → HEAD CIRCUM_BOYS.zscore.monthly-2714257f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cdcc57d4.js → HEAD CIRCUM_BOYS.zscore.weekly-62058fcf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1c6c655f.js → HEAD CIRCUM_BOYS.zscore.yearly-65649b30.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a4c62c65.js → HEAD CIRCUM_GIRLS.percentile.monthly-2e8f844b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-72020f04.js → HEAD CIRCUM_GIRLS.percentile.weekly-28edfa4f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-493f7cf8.js → HEAD CIRCUM_GIRLS.percentile.yearly-763567ce.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-066536b9.js → HEAD CIRCUM_GIRLS.zscore.monthly-cf6bb939.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-943658b2.js → HEAD CIRCUM_GIRLS.zscore.weekly-d6db86f2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-15ea58ed.js → HEAD CIRCUM_GIRLS.zscore.yearly-bd3add5c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-1e25737a.js → HEIGHT_BOYS.percentile.monthly-33050dfa.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f8c953c4.js → HEIGHT_BOYS.percentile.weekly-790dde30.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-9f8f36d6.js → HEIGHT_BOYS.percentile.yearly-24a1ba96.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-22dc00c5.js → HEIGHT_BOYS.zscore.monthly-68f937ad.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-c7a8ae2b.js → HEIGHT_BOYS.zscore.weekly-5aafe365.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-12815978.js → HEIGHT_BOYS.zscore.yearly-ffefa912.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-2833c123.js → HEIGHT_GIRLS.percentile.monthly-72e94858.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0daf9f5b.js → HEIGHT_GIRLS.percentile.weekly-ce075c84.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4789a7e7.js → HEIGHT_GIRLS.percentile.yearly-ac92e23f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-de7243f8.js → HEIGHT_GIRLS.zscore.monthly-ea49be8c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4918bb2a.js → HEIGHT_GIRLS.zscore.weekly-59da335b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d4fd8ddd.js → HEIGHT_GIRLS.zscore.yearly-b16bfb36.js} +0 -0
- /package/build/esm/{Subot-56771801.js → Subot-e1ee8861.js} +0 -0
- /package/build/esm/{Visible-ace89781.js → Visible-5984bb59.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-264f8b1e.js → WEIGHT_BOYS.percentile.monthly-15ee1673.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-b4944551.js → WEIGHT_BOYS.percentile.weekly-fc4985d2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a8c6c2be.js → WEIGHT_BOYS.percentile.yearly-7fa505f0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-4e623320.js → WEIGHT_BOYS.zscore.monthly-d56eab98.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-1555670e.js → WEIGHT_BOYS.zscore.weekly-1d371a78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-b26402ba.js → WEIGHT_BOYS.zscore.yearly-d87e6880.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-984185a1.js → WEIGHT_GIRLS.percentile.monthly-6f53bf1d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b0e99fd4.js → WEIGHT_GIRLS.percentile.weekly-caa0cf1b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-893995ec.js → WEIGHT_GIRLS.percentile.yearly-4c1432b0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8dc61ee2.js → WEIGHT_GIRLS.zscore.monthly-1628b4dd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fe211553.js → WEIGHT_GIRLS.zscore.weekly-b240946e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-87882127.js → WEIGHT_GIRLS.zscore.yearly-f360fff3.js} +0 -0
- /package/build/esm/{animation-3f2b6f75.js → animation-70b8e1f2.js} +0 -0
- /package/build/esm/{cookieHelper-0c215a0b.js → cookieHelper-2017148d.js} +0 -0
- /package/build/esm/{index-7f1f7516.js → index-754b44fc.js} +0 -0
- /package/build/esm/{index-576a616c.js → index-86e92cc0.js} +0 -0
- /package/build/esm/{index-fa5073f3.js → index-cf6580dd.js} +0 -0
- /package/build/esm/{isProduction-6599ce88.js → isProduction-9fe75b7e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-28d92a62.js → localizeNumberFormat-cd2532b2.js} +0 -0
- /package/build/esm/{normalizeLink-7c303f96.js → normalizeLink-bae43899.js} +0 -0
- /package/build/esm/{number-d5c1e150.js → number-07ae3046.js} +0 -0
- /package/build/esm/{paths-a1da3d54.js → paths-be7ff55f.js} +0 -0
- /package/build/esm/{theme-23782329.js → theme-dab2950f.js} +0 -0
- /package/build/esm/{translationsContext-5ab0d4b4.js → translationsContext-5a2101f0.js} +0 -0
- /package/build/esm/{tslib.es6-2cb84ad8.js → tslib.es6-16e6bdc9.js} +0 -0
- /package/build/esm/{types-69671356.js → types-27d242a7.js} +0 -0
- /package/build/esm/{useIsInit-f38f0d5c.js → useIsInit-aa198cba.js} +0 -0
- /package/build/esm/{useOutsideClick-f050c073.js → useOutsideClick-a88e81d5.js} +0 -0
- /package/build/esm/{useScrollbarSize-7f0be029.js → useScrollbarSize-81850e48.js} +0 -0
- /package/build/esm/{utils-1ad4f186.js → utils-f69a5c66.js} +0 -0
- /package/build/{index-ba62d856.js → index-49020afd.js} +0 -0
- /package/build/{index-aaeccb69.js → index-5caececd.js} +0 -0
- /package/build/{index-0790d5ae.js → index-d725f995.js} +0 -0
- /package/build/{isProduction-9e0e9225.js → isProduction-5ee9440e.js} +0 -0
- /package/build/{localizeNumberFormat-c501510d.js → localizeNumberFormat-d05fe4e0.js} +0 -0
- /package/build/{normalizeLink-91646273.js → normalizeLink-069cc041.js} +0 -0
- /package/build/{number-21ab8a99.js → number-b3bfb023.js} +0 -0
- /package/build/{paths-99000104.js → paths-24d6890e.js} +0 -0
- /package/build/{theme-533eba85.js → theme-571f5130.js} +0 -0
- /package/build/{translationsContext-b64cc287.js → translationsContext-dfb5d88d.js} +0 -0
- /package/build/{tslib.es6-0476eed4.js → tslib.es6-94b275ba.js} +0 -0
- /package/build/{types-5c712d9e.js → types-bf4f47c3.js} +0 -0
- /package/build/{useIsInit-2a888094.js → useIsInit-4db83cec.js} +0 -0
- /package/build/{useOutsideClick-3b96ab2e.js → useOutsideClick-51ce49df.js} +0 -0
- /package/build/{useScrollbarSize-bd02c351.js → useScrollbarSize-2e658fb6.js} +0 -0
- /package/build/{utils-381e90c1.js → utils-f2321c70.js} +0 -0
package/build/esm/ecom.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./theme-23782329.js";export{c as Constants}from"./constants-0025e49b.js";export{t as Types}from"./types-69671356.js";import"./index-11ddf8b9.js";import"date-fns/locale";import"./Subot-56771801.js";import"./isProduction-6599ce88.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
|
1
|
+
import{t as o}from"./theme-dab2950f.js";export{c as Constants}from"./constants-7b7e7784.js";export{t as Types}from"./types-27d242a7.js";import"./index-1c858659.js";import"date-fns/locale";import"./Subot-e1ee8861.js";import"./isProduction-9fe75b7e.js";var e=Object.freeze({__proto__:null}),i=Object.freeze({__proto__:null});function l(t){return null!=t}const a={formatAutoCompleteAddress:t=>t&&t.place_id?{placeId:t.place_id,description:t.description||""}:null,formatPrice:(t,o)=>{const e="string"==typeof t?parseInt(t):t;return new Intl.NumberFormat(o||"vi-VN").format(e)},formatHotSearchKeyword:t=>({text:(null==t?void 0:t.name)||""}),formatHelpfulUrl:t=>({name:(null==t?void 0:t.name)||"",featuredImage:(null==t?void 0:t.featured_image)||"",url:(null==t?void 0:t.url)||""}),formatCategory:function(t,e,i){var l,r,n;const d=i?i+"/"+t.slug:t.slug,u=(null===(r=null===(l=null==t?void 0:t.children)||void 0===l?void 0:l.map)||void 0===r?void 0:r.call(l,(o=>a.formatCategory(o,t.id,d))))||[];return{id:null==t?void 0:t.id,name:(null==t?void 0:t.name)||"",logo:(null==t?void 0:t.logo)||"",slug:(null==t?void 0:t.slug)||"",fullSlug:d||"",children:u,backgroundColor:t.color||o.colors.teal50,parentId:e||0,products:(null===(n=t.products)||void 0===n?void 0:n.map(a.formatProduct))||[]}},formatFooterInfo:t=>{var o,e,i,l,a,r,n,d,u,s,m,c,v,p,_,g,f,b,h;const y=(null===(i=null===(e=null===(o=null==t?void 0:t.branch)||void 0===o?void 0:o.branch)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({flag:t.flag||"",name:t.name||"",url:t.url||""}))))||[],x=(null===(r=null===(a=null===(l=null==t?void 0:t.general)||void 0===l?void 0:l.verified)||void 0===a?void 0:a.map)||void 0===r?void 0:r.call(a,(t=>({image:t.image||"",url:t.url||""}))))||[],P=(null===(d=null===(n=null==t?void 0:t.menu)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,(t=>{var o,e;return{menu_title:t.menu_title,items:null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({title:t.title,url:t.url})))}})))||[],C=(null===(m=null===(s=null===(u=null==t?void 0:t.social)||void 0===u?void 0:u.socials)||void 0===s?void 0:s.map)||void 0===m?void 0:m.call(s,(t=>({icon:t.icon||"",name:t.name||"",url:t.url||""}))))||[];return{branch:{title:(null===(c=null==t?void 0:t.branch)||void 0===c?void 0:c.title)||"",branch:y},general:{logo:null!==(p=null===(v=null==t?void 0:t.general)||void 0===v?void 0:v.logo)&&void 0!==p?p:"",content:null!==(g=null===(_=null==t?void 0:t.general)||void 0===_?void 0:_.content)&&void 0!==g?g:"",copyright:null!==(b=null===(f=null==t?void 0:t.general)||void 0===f?void 0:f.copyright)&&void 0!==b?b:"",verified:x},menu:P,social:{title:(null===(h=null==t?void 0:t.social)||void 0===h?void 0:h.title)||"",socials:C}}},formatNavigation:function(t){var o,e,i,l,r,n;return{hotSearchKeywords:(null===(e=null===(o=null==t?void 0:t.hot_search_keywords)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatHotSearchKeyword))||[],helpfulUrls:(null===(l=null===(i=null==t?void 0:t.helpful_urls)||void 0===i?void 0:i.map)||void 0===l?void 0:l.call(i,a.formatHelpfulUrl))||[],categories:(null===(n=null===(r=null==t?void 0:t.categories)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,(t=>a.formatCategory(t))))||[],footer:a.formatFooterInfo(null==t?void 0:t.footer),storeId:(null==t?void 0:t.store_id)||0,customerId:(null==t?void 0:t.customer_id)||0,cartItemsQty:"number"==typeof(null==t?void 0:t.cart_items_qty)?t.cart_items_qty:null}},formatPriceInfo:t=>t?{final:t.final||0,regular:t.regular||0,discountPercent:t.discount_percent||0}:null,formatProduct:function(t){var o,e,i,r;if(!t)return null;const n={final:0,regular:0,discountPercent:0};return{id:t.id||0,price:t.price&&a.formatPriceInfo(t.price)||n,thumbnail:t.thumbnail||"",name:t.name||"",averageRating:Number((t.average_rating||0).toFixed(2)),reviewsCount:t.reviews_count||0,tag:t.tag||null,sku:t.sku||"",slug:t.slug||"",images:t.images||[],tags:t.tags||[],unit:t.unit||"",brand:t.brand?{name:t.brand.name||"",image:t.brand.image||"",slug:t.brand.slug||"",productsCount:t.brand.products_count||0}:null,description:t.description||"",productPromotions:(null===(e=null===(o=t.product_promotions)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProductPromotion).filter(l))||[],categories:(null===(r=null===(i=t.categories)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,(t=>a.formatCategory(t))).filter(l))||[],isInStock:(null==t?void 0:t.is_in_stock)||!1}},formatBanner:t=>t?{name:t.name||"",url:t.url||"",featuredImage:t.featured_image||"",alt:t.image_alt}:null,formatBlogPost:t=>{var o,e;return t?{title:t.title||"",image:t.image||"",link:t.link||"",postData:t.post_data?{reviewed:t.post_data.reviewed?{author:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.author||void 0),editor:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.editor||void 0),expert:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.expert||void 0),factCheck:a.formatBlogPostDataReviewedUser(t.post_data.reviewed.fact_check||void 0),isAuthor:Boolean(t.post_data.reviewed.is_author)}:null,categories:t.post_data.categories?null===(e=(o=t.post_data.categories).map)||void 0===e?void 0:e.call(o,(t=>({termId:t.term_id||0,name:t.name||"",permalink:t.permalink||"",textColor:t.text_color||""}))):[],postDate:t.post_data.post_date||"",postModified:t.post_data.post_modified||"",modifiedTime:t.post_data.modified_time||""}:null}:null},formatBlogPostDataReviewedUser:t=>t?{id:t.ID||0,userId:t.user_id||0,formerRole:t.former_role||"",role:t.role||"",slug:t.slug||"",displayName:t.display_name||"",description:t.description||"",profileUrl:t.profile_url||"",avatar:t.avatar||"",avatarThumbnail:t.avatar_thumbnail||"",turnOffProfile:Boolean(t.turn_off_profile)}:null,formatBrand:function(t){var o,e,i,r;return t?{id:t.id||0,image:t.image||"",position:t.position||"",isPopular:t.is_popular||!1,summary:t.summary||"",name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatHomePage:t=>{var o,e,i,r,n,d,u,s,m,c,v,p,_,g,f,b,h,y,x,P;return t?{brands:t.brands?null===(e=(o=t.brands).map)||void 0===e?void 0:e.call(o,a.formatBrand).filter(l):[],hotDeals:t.hot_deals?null===(r=(i=t.hot_deals).map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l):[],newProducts:t.new_products?null===(d=(n=t.new_products).map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l):[],slideBanners:t.slide_banners?null===(s=(u=t.slide_banners).map)||void 0===s?void 0:s.call(u,a.formatBanner).filter(l):[],subBanners:t.sub_banners?null===(c=(m=t.sub_banners).map)||void 0===c?void 0:c.call(m,a.formatBanner).filter(l):[],footerBanners:t.footer_banners?null===(p=(v=t.footer_banners).map)||void 0===p?void 0:p.call(v,a.formatBanner).filter(l):[],blogPosts:t.blog_posts?null===(g=(_=t.blog_posts).map)||void 0===g?void 0:g.call(_,a.formatBlogPost).filter(l):[],popularCategories:t.popular_categories?null===(b=(f=t.popular_categories).map)||void 0===b?void 0:b.call(f,(t=>a.formatCategory(t))).filter(l):[],suggestProducts:t.suggest_products?null===(y=(h=t.suggest_products).map)||void 0===y?void 0:y.call(h,(t=>a.formatCategory(t))).filter(l):[],promotions:t.promotions?null===(P=(x=t.promotions).map)||void 0===P?void 0:P.call(x,(t=>a.formatPromotion(t))).filter(l):[]}:null},formatCategoryPage:function(t){var o,e,i,r;return t?{id:t.id||0,name:t.name||"",slug:t.slug||"",description:t.description||null,banners:(null===(e=null===(o=t.banners)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatBanner).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[]}:null},formatBrandPage:function(t){return t?a.formatBrand(t):null},formatPagination:t=>t?{current:t.current||0,first:t.first||0,itemsPerPage:t.items_per_page||0,last:t.last||0,next:t.next||0,prev:t.prev||0,totalItems:t.total_items||0}:null,formatProductDetailPage:function(t){var o,e,i,r,n,d,u,s;return t?Object.assign(Object.assign({},a.formatProduct(t)),{relatedProducts:(null===(e=null===(o=t.related_products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatProduct).filter(l))||[],bestsellerProducts:(null===(r=null===(i=t.bestseller_products)||void 0===i?void 0:i.map)||void 0===r?void 0:r.call(i,a.formatProduct).filter(l))||[],viewedProducts:(null===(d=null===(n=t.viewed_products)||void 0===n?void 0:n.map)||void 0===d?void 0:d.call(n,a.formatProduct).filter(l))||[],promotions:(null===(s=null===(u=t.promotions)||void 0===u?void 0:u.map)||void 0===s?void 0:s.call(u,a.formatPromotion).filter(l))||[]}):null},formatProductReview:t=>{var o,e;return t?{reviewId:t.review_id||"",createdAt:t.created_at||"",title:t.title||"",detail:t.detail||"",nickname:t.nick_name||"",avatar:t.avatar||"",ratingVotes:(null===(e=null===(o=t.rating_votes)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({ratingCode:t.rating_code||"",value:Number(t.value)||0,percent:Number(t.percent)||0}))))||[],images:t.images||[]}:null},formatProductPromotion:t=>t?{id:t.id||0,name:t.name||"",thumbnail:t.thumbnail||"",expirationDate:t.expiration_date||""}:null,formatPromotion:t=>t?{id:t.id||0,name:t.name||"",slug:t.slug||"",thumbnail:t.thumbnail||"",expiredDate:t.expired_date||"",banners:t.banners||[],points:0,description:t.description||"",metaTitle:t.meta_title||"",metaKeywords:t.meta_keywords||"",metaDescription:t.meta_description||""}:null,formatCustomAttributes:(t,o)=>{var e;return(null==t?void 0:t.length)&&(null===(e=null==t?void 0:t.find((t=>t.attribute_code===o)))||void 0===e?void 0:e.value)||""},formatAddress:t=>{var o,e,i,l;return t?{id:t.id||0,fullName:t.firstname||"",telephone:t.telephone||"",province:{value:null===(o=t.region)||void 0===o?void 0:o.region_id,label:null===(e=t.region)||void 0===e?void 0:e.region}||null,district:{value:a.formatCustomAttributes(t.custom_attributes,"district_id"),label:a.formatCustomAttributes(t.custom_attributes,"district")},commune:{value:a.formatCustomAttributes(t.custom_attributes,"ward_id"),label:a.formatCustomAttributes(t.custom_attributes,"ward")},street:(null===(i=null==t?void 0:t.street)||void 0===i?void 0:i.length)?null==t?void 0:t.street[0]:"",isDefault:t.default_billing&&t.default_shipping||!1,fullAddress:(null===(l=null==t?void 0:t.extension_attributes)||void 0===l?void 0:l.full_address)||""}:null},formatProvince:t=>(null==t?void 0:t.available_regions)?t.available_regions.map((t=>({value:t.id||"",label:t.name||""}))):[],formatDistrict:t=>(null==t?void 0:t.districts)?t.districts.map((t=>({value:t.id||"",label:t.name||""}))):[],formatCommune:t=>(null==t?void 0:t.communes)?t.communes.map((t=>({value:t.id||"",label:t.name||""}))):[],formatOrder:t=>{var o,e;return t?{orderNumber:(null==t?void 0:t.order_number)||"",shippingData:(null==t?void 0:t.shipping_data)?{shippingMethod:t.shipping_data.shipping_method||"",shippingDescription:t.shipping_data.shipping_description||"",shippingAddress:t.shipping_data.shipping_address?{fullName:t.shipping_data.shipping_address.firstname||"",fullAddress:t.shipping_data.shipping_address.full_address||"",telephone:t.shipping_data.shipping_address.telephone||""}:null,storeAddress:null}:null,orderedDate:(null==t?void 0:t.ordered_date)||"",status:(null==t?void 0:t.status)||null,totals:(null==t?void 0:t.totals)?{subtotal:t.totals.subtotal||0,shippingAmount:t.totals.shipping_amount||0,discountAmount:t.totals.discount_amount||0,grandTotal:t.totals.grand_total||0}:null,products:(null===(e=null===(o=null==t?void 0:t.products)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,(t=>({sku:t.sku||"",name:t.name||"",price:t.price||0,rowTotal:t.row_total||0,image:t.image||"",qty:t.qty||0}))))||[],paymentMethod:(null==t?void 0:t.payment_method)||""}:null},formatStatistic:t=>{var o,e,i,l,a;return t?{pending:Number(null===(o=null==t?void 0:t.find((t=>"pending"===t.status)))||void 0===o?void 0:o.amount)||0,processing:Number(null===(e=null==t?void 0:t.find((t=>"processing"===t.status)))||void 0===e?void 0:e.amount)||0,delivering:Number(null===(i=null==t?void 0:t.find((t=>"delivering"===t.status)))||void 0===i?void 0:i.amount)||0,complete:Number(null===(l=null==t?void 0:t.find((t=>"complete"===t.status)))||void 0===l?void 0:l.amount)||0,canceled:Number(null===(a=null==t?void 0:t.find((t=>"canceled"===t.status)))||void 0===a?void 0:a.amount)||0}:{}},formatCartItem:t=>{var o,e,i,l,r,n,d,u;return t?{itemId:t.item_id||0,sku:t.sku||"",qty:t.qty||0,name:t.name||"",price:t.price||0,basePrice:(null===(o=t.extension_attributes)||void 0===o?void 0:o.base_price)||0,productType:t.product_type||"",quoteId:t.quote_id||"",thumbnail:(null===(e=t.extension_attributes)||void 0===e?void 0:e.thumbnail)||"",rowTotal:(null===(i=t.extension_attributes)||void 0===i?void 0:i.row_total)||0,promotions:(null===(n=null===(r=null===(l=t.extension_attributes)||void 0===l?void 0:l.promotions)||void 0===r?void 0:r.map)||void 0===n?void 0:n.call(r,a.formatProductPromotion))||[],isInStock:(null===(d=t.extension_attributes)||void 0===d?void 0:d.is_in_stock)||!1,urlProduct:(null===(u=t.extension_attributes)||void 0===u?void 0:u.url_key)||""}:null},formatCartAddress:t=>{var o;return t?{customerAddressId:(null==t?void 0:t.customer_address_id)||0,id:t.id||0,region:t.region||"",regionId:t.region_id||0,regionCode:t.region_code||"",countryId:t.country_id||"",street:t.street||[],postcode:t.postcode||"",city:t.city||"",firstname:t.firstname||"",lastname:t.lastname||"",customerId:t.customer_id||0,email:t.email||"",telephone:t.telephone||"",sameAsBilling:t.same_as_billing||0,saveInAddressBook:t.save_in_address_book||0,fullAddress:(null===(o=t.extension_attributes)||void 0===o?void 0:o.full_address)||""}:null},formatEstimatedShipping:t=>t?{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",carrierTitle:t.carrier_title||"",methodTitle:t.method_title||"",amount:t.amount||0,baseAmount:t.base_amount||0,available:t.available||!1,errorMessage:t.error_message||"",priceExclTax:t.price_excl_tax||0,priceInclTax:t.price_incl_tax||0}:null,formatCartLoggedInCustomer:t=>{var o,e,i;return t?{email:t.email||"",firstname:t.firstname||"",lastname:t.lastname||"",id:t.id||0,groupId:t.group_id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",createdIn:t.created_in||"",storeId:t.store_id||0,websiteId:t.website_id||0,addresses:(null===(e=null===(o=t.addresses)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartAddress))||[],disableAutoGroupChange:t.disable_auto_group_change||0,isSubscribed:(null===(i=t.extension_attributes)||void 0===i?void 0:i.is_subscribed)||!1}:null},formatCart:t=>{var o,e,i,l,r,n,d,u,s,m,c,v,p,_;return t?{id:t.id||0,createdAt:t.created_at||"",updatedAt:t.updated_at||"",isActive:t.is_active||!1,isVirtual:t.is_virtual||!1,items:(null===(i=null===(e=null===(o=t.items)||void 0===o?void 0:o.map)||void 0===e?void 0:e.call(o,a.formatCartItem))||void 0===i?void 0:i.sort(((t,o)=>Number(null==o?void 0:o.isInStock)-Number(null==t?void 0:t.isInStock))))||[],itemsCount:t.items_count||0,itemsQty:t.items_qty||0,customer:t.customer?a.formatCartLoggedInCustomer(t.customer):null,billingAddress:t.billing_address?a.formatCartAddress(t.billing_address):null,origOrderId:t.orig_order_id||0,currency:{globalCurrencyCode:(null===(l=t.currency)||void 0===l?void 0:l.global_currency_code)||"",baseCurrencyCode:(null===(r=t.currency)||void 0===r?void 0:r.base_currency_code)||"",storeCurrencyCode:(null===(n=t.currency)||void 0===n?void 0:n.store_currency_code)||"",quoteCurrencyCode:(null===(d=t.currency)||void 0===d?void 0:d.quote_currency_code)||"",storeToBaseRate:(null===(u=t.currency)||void 0===u?void 0:u.store_to_base_rate)||0,storeToQuoteRate:(null===(s=t.currency)||void 0===s?void 0:s.store_to_quote_rate)||0,baseToGlobalRate:(null===(m=t.currency)||void 0===m?void 0:m.base_to_global_rate)||0,baseToQuoteRate:(null===(c=t.currency)||void 0===c?void 0:c.base_to_quote_rate)||0},customerIsGuest:t.customer_is_guest||!1,customerNoteNotify:t.customer_note_notify||!1,customerTaxClassId:t.customer_tax_class_id||0,storeId:t.store_id||0,shippingAssignments:null===(_=null===(p=null===(v=t.extension_attributes)||void 0===v?void 0:v.shipping_assignments)||void 0===p?void 0:p.map)||void 0===_?void 0:_.call(p,(t=>{var o,e,i;return{shipping:{address:t.shipping.address?a.formatCartAddress(t.shipping.address):null,method:(null===(o=t.shipping)||void 0===o?void 0:o.method)||""},items:(null===(i=(e=t.items).map)||void 0===i?void 0:i.call(e,a.formatCartItem))||[]}}))}:null},formatCartTotal:t=>{var o,e,i;return t?{grandTotal:t.grand_total||0,baseGrandTotal:t.base_grand_total||0,subtotal:t.subtotal||0,baseSubtotal:t.base_subtotal||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,subtotalWithDiscount:t.subtotal_with_discount||0,baseSubtotalWithDiscount:t.base_subtotal_with_discount||0,shippingAmount:t.shipping_amount||0,baseShippingAmount:t.base_shipping_amount||0,shippingDiscountAmount:t.shipping_discount_amount||0,baseShippingDiscountAmount:t.base_shipping_discount_amount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,shippingTaxAmount:t.shipping_tax_amount||0,baseShippingTaxAmount:t.base_shipping_tax_amount||0,subtotalInclTax:t.subtotal_incl_tax||0,shippingInclTax:t.shipping_incl_tax||0,baseShippingInclTax:t.base_shipping_incl_tax||0,baseCurrencyCode:t.base_currency_code||"",quoteCurrencyCode:t.quote_currency_code||"",itemsQty:t.items_qty||0,coupon:{couponCode:t.coupon_code||"",couponDescription:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.coupon_description_text)||""},items:(null===(i=null===(e=t.items)||void 0===e?void 0:e.map)||void 0===i?void 0:i.call(e,(t=>({itemId:t.item_id||0,price:t.price||0,basePrice:t.base_price||0,qty:t.qty||0,rowTotal:t.row_total||0,baseRowTotal:t.base_row_total||0,rowTotalWithDiscount:t.row_total_with_discount||0,taxAmount:t.tax_amount||0,baseTaxAmount:t.base_tax_amount||0,taxPercent:t.tax_percent||0,discountAmount:t.discount_amount||0,baseDiscountAmount:t.base_discount_amount||0,discountPercent:t.discount_percent||0,priceInclTax:t.price_incl_tax||0,basePriceInclTax:t.base_price_incl_tax||0,rowTotalInclTax:t.row_total_incl_tax||0,baseRowTotalInclTax:t.base_row_total_incl_tax||0,options:t.options||"",weeeTaxAppliedAmount:t.weee_tax_applied_amount||0,weeeTaxApplied:t.weee_tax_applied||0,name:t.name||""}))))||[],totalSegments:t.total_segments||[]}:null},formatPaymentMethod:t=>t?null==t?void 0:t.map((t=>({code:(null==t?void 0:t.payment_code)||"",title:(null==t?void 0:t.payment_title)||"",thumbnail:(null==t?void 0:t.payment_thumbnail)||""}))):null,formatPaymentInformation:t=>{var o;return t?{paymentMethods:a.formatPaymentMethod(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.payment_detail_info)||[],totals:a.formatCartTotal(t.totals)}:null},formatOrderConfirmation:t=>t?{isSuccess:t.is_success||!1,orderInfo:a.formatOrder(t.order_info)}:null,formatCoupons:t=>{var o;return(null===(o=null==t?void 0:t.items)||void 0===o?void 0:o.length)?t.items.map((t=>({code:(null==t?void 0:t.code)||"",name:(null==t?void 0:t.name)||"",thumbnail:(null==t?void 0:t.thumbnail)||"",description:(null==t?void 0:t.expired_date)||""}))):null},formatShippings:t=>t?t.map((t=>{var o;return{carrierCode:t.carrier_code||"",methodCode:t.method_code||"",title:t.carrier_title||"",description:t.method_title||"",price:(null==t?void 0:t.base_amount)||0,thumbnail:(null===(o=null==t?void 0:t.extension_attributes)||void 0===o?void 0:o.thumbnail)||""}})):[]};var r=Object.freeze({__proto__:null,dataFormatter:a});export{e as ApiTypes,r as DataFormatter,i as DataTypes};
|
package/build/esm/footer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{F as Footer}from"./index-
|
|
1
|
+
export{F as Footer}from"./index-09d9862b.js";import"react";import"./index-ed7346f2.js";import"./tslib.es6-16e6bdc9.js";import"./index-0ce3ea30.js";import"@mantine/core";import"@mantine/hooks";import"./theme-dab2950f.js";import"./index-5222461b.js";import"./index-1c858659.js";import"date-fns/locale";import"./Subot-e1ee8861.js";import"./isProduction-9fe75b7e.js";import"dayjs";import"./utils-f69a5c66.js";import"styled-components";import"@mantine/carousel";import"./Plus-0795a68c.js";import"classnames";import"./useTranslations-78d82c21.js";import"./translationsContext-5a2101f0.js";import"string-format";import"./index-86e92cc0.js";import"@mantine/dates";import"./index-bfb36e6c.js";import"./utils-f842970f.js";import"./index-88f24735.js";import"./index.styled-500647b4.js";
|
package/build/esm/gAssets.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CommonGAssets,G as GAssets}from"./index-
|
|
1
|
+
export{C as CommonGAssets,G as GAssets}from"./index-5222461b.js";import"./index-1c858659.js";import"date-fns/locale";import"./Subot-e1ee8861.js";import"./isProduction-9fe75b7e.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./tslib.es6-16e6bdc9.js";import{n as o}from"./normalizeLink-bae43899.js";import{c as i}from"./routing-7c6d65ae.js";import{g as l}from"./core-87a3d383.js";const n=(t,o)=>{var i,l;if(!t)return{};const n="tl-PH"===o?"/fil":"";return{id:t.id,isSubot:t.is_subot,template:t.template,icon:t.icon,link:(null===(i=t.link)||void 0===i?void 0:i.startsWith("http"))?t.link:`${n}/health-tools`+(null===(l=t.link)||void 0===l?void 0:l.replace(`${n}/`,"/")),subtitle:t.subtitle,title:t.title}},e=l=>t(void 0,void 0,void 0,(function*(){var t,e;try{const a="tl-PH"===l?"lang=fil":"";let s=[];try{const r=yield fetch(o(`${i(l)}/wp-json/api/healthtools?ismenu=0${a?"&"+a:""}`)).then((t=>t.json()));s=(null===(e=null===(t=null==r?void 0:r.data)||void 0===t?void 0:t.map)||void 0===e?void 0:e.call(t,(t=>n(t,l))))||[]}catch(t){}return s}catch(t){console.error(t)}})),a=o=>t(void 0,void 0,void 0,(function*(){return(yield l("all-health-tools",(()=>e(o||"en-PH")),(t=>!!(null==t?void 0:t.length)),6e4))||[]}));export{a,n as f,e as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{L as t}from"./Subot-
|
|
1
|
+
import e from"react";import{L as t}from"./Subot-e1ee8861.js";import{C}from"./index-5222461b.js";const l=l=>[{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("path",{d:"M27.5 0H5.5C2.73858 0 0.5 2.23858 0.5 5V27C0.5 29.7614 2.73858 32 5.5 32H27.5C30.2614 32 32.5 29.7614 32.5 27V5C32.5 2.23858 30.2614 0 27.5 0Z",fill:"#1778F2"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.814 32V19.499H24.069L24.5 15.19H20.814L20.82 13.034C20.82 11.911 20.92 11.309 22.443 11.309H24.477V7H21.222C17.312 7 15.937 9.09 15.937 12.604V15.191H13.5V19.499H15.937V32H20.814Z",fill:"white"})),name:"Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${l}`},{icon:e.createElement("img",{src:C.getAssetPath("zalo-mini.png"),alt:"Zalo",style:{width:32,height:32},loading:"lazy"}),name:"Zalo",href:`https://sp.zalo.me/share?href=${l}`,allowedLocales:[t.Vietnam]},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#1FA1F3"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2304 13.2349L16.2708 13.8692L15.5964 13.7916C13.1417 13.4938 10.9972 12.484 9.17631 10.788L8.2861 9.94646L8.05683 10.5679C7.57124 11.9532 7.88149 13.4161 8.89305 14.4001C9.43257 14.9438 9.31116 15.0215 8.38052 14.6978C8.05683 14.5943 7.77357 14.5166 7.74658 14.5554C7.65216 14.646 7.97591 15.8241 8.23218 16.2902C8.58286 16.9376 9.29766 17.5719 10.08 17.9474L10.7409 18.2452L9.9586 18.2581C9.20324 18.2581 9.17631 18.271 9.25723 18.5429C9.52699 19.3844 10.5925 20.2777 11.7794 20.6661L12.6157 20.938L11.8873 21.3523C10.8083 21.9478 9.54049 22.2844 8.2726 22.3103C7.66566 22.3232 7.16663 22.375 7.16663 22.4139C7.16663 22.5433 8.81213 23.2684 9.76976 23.5531C12.6427 24.3947 16.055 24.0322 18.6177 22.5951C20.4385 21.5724 22.2593 19.5398 23.1091 17.5719C23.5677 16.5232 24.0263 14.6072 24.0263 13.688C24.0263 13.0925 24.0667 13.0148 24.822 12.3027C25.2671 11.8885 25.6853 11.4353 25.7662 11.3059C25.901 11.0598 25.8875 11.0598 25.1997 11.28C24.0532 11.6683 23.8913 11.6166 24.4579 11.034C24.876 10.6197 25.375 9.86879 25.375 9.64873C25.375 9.60987 25.1727 9.67458 24.9434 9.79112C24.7006 9.92061 24.1611 10.1148 23.7565 10.2313L23.0281 10.4514L22.3673 10.0241C22.0031 9.79112 21.4905 9.53219 21.2208 9.45452C20.5329 9.27327 19.4809 9.29918 18.8605 9.50628C17.1745 10.0889 16.1089 11.5907 16.2304 13.2349Z",fill:"white"})),name:"Twitter",href:`https://twitter.com/intent/tweet?url=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("g",{clipPath:"url(#clip0_687_88944)"},e.createElement("path",{d:"M29.5309 0H3.46909C1.82931 0 0.5 1.32931 0.5 2.96909V29.0309C0.5 30.6707 1.82931 32 3.46909 32H29.5309C31.1707 32 32.5 30.6707 32.5 29.0309V2.96909C32.5 1.32931 31.1707 0 29.5309 0Z",fill:"url(#paint0_linear_687_88944)"}),e.createElement("path",{d:"M23.5545 8.94548C21.8898 7.2642 19.6792 6.23313 17.3212 6.03825C14.9633 5.84336 12.6134 6.49749 10.6953 7.88265C8.77715 9.2678 7.41716 11.2928 6.86059 13.5924C6.30403 15.8919 6.58753 18.3147 7.65997 20.4237L6.60724 25.5346C6.59632 25.5854 6.59601 25.638 6.60633 25.689C6.61665 25.74 6.63739 25.7883 6.66724 25.8309C6.71097 25.8956 6.77338 25.9454 6.84616 25.9737C6.91893 26.0019 6.99859 26.0073 7.07451 25.9891L12.0836 24.8018C14.1866 25.8471 16.5923 26.1124 18.8725 25.5505C21.1528 24.9885 23.1597 23.6358 24.5362 21.7331C25.9128 19.8303 26.5696 17.5009 26.3898 15.1593C26.21 12.8177 25.2053 10.6158 23.5545 8.94548ZM21.9927 21.4109C20.8409 22.5595 19.3578 23.3176 17.7523 23.5786C16.1468 23.8395 14.4998 23.5901 13.0436 22.8655L12.3454 22.52L9.27451 23.2473L9.2836 23.2091L9.91997 20.1182L9.57815 19.4437C8.83408 17.9823 8.57159 16.323 8.82831 14.7034C9.08502 13.0837 9.84775 11.5869 11.0072 10.4273C12.4642 8.97083 14.4399 8.15263 16.5 8.15263C18.56 8.15263 20.5358 8.97083 21.9927 10.4273C22.0051 10.4415 22.0185 10.4549 22.0327 10.4673C23.4716 11.9275 24.2748 13.8974 24.2673 15.9474C24.2598 17.9974 23.4422 19.9613 21.9927 21.4109Z",fill:"white"}),e.createElement("path",{d:"M21.7199 19.1436C21.3436 19.7364 20.749 20.4618 20.0017 20.6418C18.6926 20.9582 16.6836 20.6527 14.1836 18.3218L14.1526 18.2946C11.9545 16.2564 11.3836 14.56 11.5217 13.2146C11.5981 12.4509 12.2345 11.76 12.7708 11.3091C12.8556 11.2367 12.9562 11.1852 13.0645 11.1586C13.1727 11.1321 13.2857 11.1312 13.3944 11.1561C13.503 11.181 13.6044 11.231 13.6903 11.3021C13.7761 11.3732 13.8442 11.4634 13.889 11.5655L14.6981 13.3836C14.7507 13.5015 14.7702 13.6315 14.7545 13.7596C14.7388 13.8878 14.6885 14.0092 14.609 14.1109L14.1999 14.6418C14.1121 14.7515 14.0592 14.8848 14.0478 15.0248C14.0365 15.1648 14.0673 15.305 14.1363 15.4273C14.3654 15.8291 14.9145 16.42 15.5236 16.9673C16.2072 17.5855 16.9654 18.1509 17.4454 18.3436C17.5738 18.3961 17.715 18.4089 17.8508 18.3804C17.9866 18.3519 18.1107 18.2834 18.2072 18.1836L18.6817 17.7055C18.7733 17.6152 18.8872 17.5508 19.0117 17.5188C19.1363 17.4869 19.2671 17.4886 19.3908 17.5236L21.3126 18.0691C21.4187 18.1016 21.5158 18.158 21.5967 18.2338C21.6776 18.3096 21.7401 18.4029 21.7794 18.5066C21.8187 18.6103 21.8338 18.7216 21.8235 18.832C21.8132 18.9424 21.7777 19.049 21.7199 19.1436Z",fill:"white"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_687_88944",x1:"16.5",y1:"0.130909",x2:"16.5",y2:"30.4509",gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#36F46C"}),e.createElement("stop",{offset:"1",stopColor:"#03D749"})),e.createElement("clipPath",{id:"clip0_687_88944"},e.createElement("rect",{width:"32",height:"32",fill:"white",transform:"translate(0.5)"})))),name:"WhatsApp",href:`https://wa.me/?text=${l}`},{icon:e.createElement("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none"},e.createElement("rect",{x:"0.5",width:"32",height:"32",rx:"4",fill:"#0077B5"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3571 9.07077C11.3349 7.97643 10.6126 7.14288 9.43969 7.14288C8.26679 7.14288 7.5 7.97643 7.5 9.07077C7.5 10.1425 8.24415 11 9.39516 11H9.4171C10.6126 11 11.3571 10.1425 11.3571 9.07077ZM11.3571 12.286H7.5V23.8574H11.3571V12.286ZM20.651 12.286C23.4224 12.286 25.5 13.9022 25.5 17.3748L25.4999 23.8571H21.2885V17.8086C21.2885 16.2894 20.6791 15.2526 19.1545 15.2526C17.991 15.2526 17.2979 15.9515 16.9935 16.6265C16.8822 16.8685 16.8548 17.2056 16.8548 17.5435V23.8574H12.6429C12.6429 23.8574 12.6984 13.6127 12.6429 12.5518H16.8548V14.1531C17.4138 13.3834 18.415 12.286 20.651 12.286Z",fill:"white"})),name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${l}`},{icon:e.createElement("svg",{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1"},e.createElement("g",{id:"surface1"},e.createElement("path",{fill:"#00cf2e",d:"M 26.398438 32 L 5.601562 32 C 2.507812 32 0 29.492188 0 26.398438 L 0 5.601562 C 0 2.507812 2.507812 0 5.601562 0 L 26.398438 0 C 29.492188 0 32 2.507812 32 5.601562 L 32 26.398438 C 32 29.492188 29.492188 32 26.398438 32 Z M 26.398438 32 "}),e.createElement("path",{fill:"#fff",d:"M 28.199219 14.199219 C 28.199219 9.800781 23 5 16.199219 5 C 9.574219 5 4.199219 8.898438 4.199219 14.199219 C 4.199219 19.089844 8.390625 23.128906 14.285156 23.726562 C 14.648438 23.753906 14.980469 23.949219 15.179688 24.253906 C 15.320312 24.476562 15.398438 24.734375 15.398438 25 C 15.386719 25.542969 15.324219 26.082031 15.21875 26.613281 C 15.1875 26.761719 15.238281 26.914062 15.355469 27.011719 C 15.472656 27.109375 15.632812 27.128906 15.769531 27.070312 C 18.59375 25.820312 28.199219 20.679688 28.199219 14.199219 Z M 28.199219 14.199219 "}),e.createElement("path",{fill:"#00cf2e",d:"M 11.800781 16.398438 L 10 16.398438 L 10 12.199219 C 10 11.867188 9.730469 11.601562 9.398438 11.601562 C 9.070312 11.601562 8.800781 11.867188 8.800781 12.199219 L 8.800781 17 C 8.800781 17.332031 9.070312 17.601562 9.398438 17.601562 L 11.800781 17.601562 C 12.132812 17.601562 12.398438 17.332031 12.398438 17 C 12.398438 16.667969 12.132812 16.398438 11.800781 16.398438 Z M 11.800781 16.398438 "}),e.createElement("path",{fill:"#00cf2e",d:"M 13.398438 11.601562 C 13.070312 11.601562 12.800781 11.867188 12.800781 12.199219 L 12.800781 17 C 12.800781 17.332031 13.070312 17.601562 13.398438 17.601562 C 13.730469 17.601562 14 17.332031 14 17 L 14 12.199219 C 14 11.867188 13.730469 11.601562 13.398438 11.601562 Z M 13.398438 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 19 11.601562 C 18.667969 11.601562 18.398438 11.867188 18.398438 12.199219 L 18.398438 15.199219 L 15.898438 11.839844 C 15.746094 11.632812 15.476562 11.550781 15.230469 11.628906 C 14.984375 11.710938 14.820312 11.941406 14.820312 12.199219 L 14.820312 17 C 14.871094 17.285156 15.121094 17.492188 15.410156 17.492188 C 15.699219 17.492188 15.949219 17.285156 16 17 L 16 14 L 18.5 17.359375 C 18.617188 17.515625 18.804688 17.605469 19 17.601562 C 19.066406 17.601562 19.128906 17.589844 19.191406 17.570312 C 19.433594 17.488281 19.601562 17.257812 19.601562 17 L 19.601562 12.199219 C 19.601562 11.867188 19.332031 11.601562 19 11.601562 Z M 19 11.601562 "}),e.createElement("path",{fill:"#00cf2e",d:"M 23.398438 15.199219 C 23.730469 15.199219 24 14.929688 24 14.601562 C 24 14.269531 23.730469 14 23.398438 14 L 21.601562 14 L 21.601562 12.800781 L 23.398438 12.800781 C 23.730469 12.800781 24 12.53125 24 12.199219 C 24 11.867188 23.730469 11.601562 23.398438 11.601562 L 21 11.601562 C 20.667969 11.601562 20.398438 11.867188 20.398438 12.199219 L 20.398438 17 C 20.398438 17.332031 20.667969 17.601562 21 17.601562 L 23.398438 17.601562 C 23.730469 17.601562 24 17.332031 24 17 C 24 16.667969 23.730469 16.398438 23.398438 16.398438 L 21.601562 16.398438 L 21.601562 15.199219 Z M 23.398438 15.199219 "}))),name:"Line",href:`http://line.me/R/msg/text/?${l}`,allowedLocales:[t.Taiwan]}];export{l as g};
|
package/build/esm/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as useTranslations}from"./useTranslations-
|
|
1
|
+
export{a as useInitialMount,u as useTranslations,b as useUniqueId}from"./useTranslations-78d82c21.js";export{M as MEASURE_ELEMENT_CLASS,u as useScrollbarSize}from"./useScrollbarSize-81850e48.js";export{M as MAPPED_CATEGORY_SLUGS,P as PREGNANCY_SLUG,c as useCategory,u as useFbDataLayer,a as usePrevious,b as useRafState}from"./useCategory-21a9ba33.js";export{u as useHealthToolsCache}from"./useHealthToolCache-148be933.js";export{u as useIsInit}from"./useIsInit-aa198cba.js";export{i as initSharedOutSideClickListener,a as useOutsideClick,u as useSharedOutsideClick}from"./useOutsideClick-a88e81d5.js";import"react";import"./translationsContext-5a2101f0.js";import"string-format";import"lodash/debounce";import"./tslib.es6-16e6bdc9.js";import"./cookieHelper-2017148d.js";import"./Subot-e1ee8861.js";import"./getDynamicHealthTool-f55ca837.js";import"./normalizeLink-bae43899.js";import"./routing-7c6d65ae.js";import"./index-1c858659.js";import"date-fns/locale";import"./isProduction-9fe75b7e.js";import"./core-87a3d383.js";
|
package/build/esm/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as s}from"./translationsContext-
|
|
1
|
+
import{T as s}from"./translationsContext-5a2101f0.js";export{T as TranslationsContext}from"./translationsContext-5a2101f0.js";import o,{useState as r,useEffect as e,useMemo as t}from"react";import i from"./i18n-values/en-PH.js";import n from"./i18n-values/hi-IN.js";import a from"./i18n-values/id-ID.js";import l from"./i18n-values/km-KH.js";import m from"./i18n-values/ms-MY.js";import v from"./i18n-values/my-MM.js";import j from"./i18n-values/th-TH.js";import u from"./i18n-values/tl-PH.js";import f from"./i18n-values/vi-VN.js";import p from"./i18n-values/vi-VN_MB.js";import c from"./i18n-values/zh-TW.js";const d={"en-PH":i,"vi-VN":f,"hi-IN":n,"id-ID":a,"ms-MY":m,"my-MM":v,"km-KH":l,"zh-TW":c,"th-TH":j,"tl-PH":u,"vi-VN_MB":p},h=({locale:i="en-PH",overrides:n,overrideCurrentLocale:a,children:l,shouldLoadTranslation:m=!0,loader:v=null,onTranslationsLoaded:j})=>{const u=n&&n[i]||a,[f,p]=r((()=>Object.assign(Object.assign({},u),m?d[i]:{})));e((()=>{p(Object.assign(Object.assign({},u),m?d[i]:{}))}),[m,i]);const c=t((()=>f?{locale:i,values:f}:null),[i,f]);return e((()=>{j&&Object.keys(f).length&&j(f)}),[f]),o.createElement(s.Provider,{value:c},c?l:v)};export{h as TranslationsProvider,d as translationsMap};
|
package/build/esm/i18nV2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as t}from"./translationsContext-
|
|
1
|
+
import{T as t}from"./translationsContext-5a2101f0.js";export{T as TranslationsContext}from"./translationsContext-5a2101f0.js";import e,{useMemo as o}from"react";const a=({locale:a="en-PH",values:r,children:n})=>{const l=o((()=>r?{locale:a,values:r}:null),[a,r]);return e.createElement(t.Provider,{value:l},n)};export{a as TranslationsProvider};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e}from"./tslib.es6-
|
|
1
|
+
import{_ as e}from"./tslib.es6-16e6bdc9.js";import t,{useMemo as n,useState as a,useEffect as o}from"react";import{L as l}from"./Subot-e1ee8861.js";import{C as r}from"./index-5222461b.js";import{t as i}from"./theme-dab2950f.js";import c from"styled-components";import{I as s,g as d}from"./index-0ce3ea30.js";import{T as p}from"./index-404bb127.js";const m=c.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
width: ${e=>e.size}px;
|
|
@@ -36,9 +36,9 @@ import{_ as e}from"./tslib.es6-2cb84ad8.js";import t,{useMemo as n,useState as a
|
|
|
36
36
|
& > * {
|
|
37
37
|
pointer-events: none;
|
|
38
38
|
}
|
|
39
|
-
`,
|
|
39
|
+
`,b=[l.Myanmar,l.Taiwan],h=c((a=>{var{icon:o,name:l,className:c,locale:d="en-PH",dataEventCategory:h,dataEventAction:v,dataEventLabel:u,onSelect:x}=a,k=e(a,["icon","name","className","locale","dataEventCategory","dataEventAction","dataEventLabel","onSelect"]);const C=n((()=>null==c?void 0:c.includes("selected-week-pill")),[c]);return t.createElement(g,Object.assign({onClick:x,className:c?"week-pill".concat(" non-pointer-event-child ",c):"week-pill non-pointer-event-child","data-event-category":h,"data-event-action":v,"data-event-label":u},k),t.createElement(m,{size:64,iconSize:40,backgroundColor:i.colors.white},t.createElement(s,{src:o||r.getAssetPath("week_default.png"),alt:`week ${l}`})),C?t.createElement(p,Object.assign({type:"semiBold",size:"n1",color:i.colors.gray800},b.includes(d)&&{style:{fontSize:"10px"}}),l):t.createElement(p,Object.assign({size:"n1",color:i.colors.gray600},b.includes(d)&&{style:{fontSize:"10px"}}),l))}))`
|
|
40
40
|
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
|
|
41
|
-
`,
|
|
41
|
+
`,v=c(d.Slide)`
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
> div * {
|
|
44
44
|
pointer-events: none;
|
|
@@ -47,4 +47,4 @@ import{_ as e}from"./tslib.es6-2cb84ad8.js";import t,{useMemo as n,useState as a
|
|
|
47
47
|
.centerred-pill-wrapper {
|
|
48
48
|
padding: 16px 0;
|
|
49
49
|
}
|
|
50
|
-
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:s,locale:d=l.Vietnam,blurFromIndex:p,blurLength:m}=n,g=e(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const
|
|
50
|
+
`,x=n=>{var{data:r,isMobile:i,onSlideChange:c,pillProps:s,locale:d=l.Vietnam,blurFromIndex:p,blurLength:m}=n,g=e(n,["data","isMobile","onSlideChange","pillProps","locale","blurFromIndex","blurLength"]);const b={withControls:!i,slideGap:16,blurFromCenter:!0,blurFromIndex:p||(i?2:4),blurLength:m||(i?1:3),onSlideChange:c},[x,C]=a("");return o((()=>{C(window.location.href)}),[]),t.createElement(u,Object.assign({},b,g,{selectSlideWhenClick:!0,previousControlIcon:t.createElement(k,{currentUrl:x}),nextControlIcon:t.createElement(k,{currentUrl:x,isRight:!0})}),(e=>r.map(((n,a)=>t.createElement(v,Object.assign({key:a,onClick:c,"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x,innerSlideProps:{"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Click","data-event-label":x}},s),t.createElement("div",{className:"centerred-pill-wrapper"},t.createElement(h,{"data-event-category":"Health Tool","data-event-action":"Fetal Week Click","data-event-label":x,locale:d,name:n.name,icon:n.icon,className:a===e?"selected-week-pill pointer-event-child-none":"pointer-event-child-none"})))))))},k=({isRight:e,currentUrl:n})=>t.createElement("svg",{viewBox:"0 0 15 15",fill:"none",width:"16",height:"16",style:e?{transform:"rotate(-90deg)"}:{transform:"rotate(90deg)"},"data-event-category":"Health Tool","data-event-action":"Pregnancy Week Arrow Click","data-event-label":n,className:"pointer-event-child-none"},t.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));export{x as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{B as t}from"./index-ac8ebb4a.js";import{C as a}from"./index-576a616c.js";import l from"dayjs";import{d as n}from"./index-11ddf8b9.js";import{t as o}from"./theme-23782329.js";import"./index-d0c1cd58.js";import{Flex as i,Stack as r,Box as c}from"@mantine/core";import"@mantine/dates";import"./Subot-56771801.js";import"./index-7bc42cef.js";import{T as m}from"./Plus-f7c5618a.js";import{u as s}from"./useTranslations-71150e1d.js";import"@mantine/hooks";import"./utils-1ad4f186.js";import{L as d}from"./index-cbeaabc6.js";import{M as v}from"./index-449bd04b.js";import"./translationsContext-5ab0d4b4.js";import"string-format";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:c,isMobile:d,locale:v})=>{var E,p,y,f,b,N,h,k,F,$,z,T,M,x,C,L,_,j,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==c?void 0:c.menu,O=(null===(p=null===(E=null==c?void 0:c.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==c?void 0:c.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(m,{size:"p1",weight:"bold"},null===(f=null==c?void 0:c.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(b=null==c?void 0:c.social)||void 0===b?void 0:b.title),e.createElement("div",{className:"icons"},null===(h=null===(N=null==c?void 0:c.social)||void 0===N?void 0:N.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(T=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===T?void 0:T.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(M=K[2])||void 0===M?void 0:M.menu_title),null===(C=null===(x=K[2])||void 0===x?void 0:x.items)||void 0===C?void 0:C.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.title),e.createElement("div",{className:"flags"},null===(j=null===(_=null==c?void 0:c.branch)||void 0===_?void 0:_.branch)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(m,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==c?void 0:c.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==c?void 0:c.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(w=null==c?void 0:c.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==c?void 0:c.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(m,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(A=null==c?void 0:c.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==c?void 0:c.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(m,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(D=null==c?void 0:c.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==c?void 0:c.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",b="qc5bEb3",N="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:b,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:N,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(c,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(m,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},z=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{z as F};
|
|
1
|
+
import e from"react";import{B as t}from"./index-ed7346f2.js";import{C as a}from"./index-86e92cc0.js";import l from"dayjs";import{d as n}from"./index-1c858659.js";import{t as o}from"./theme-dab2950f.js";import"./index-0ce3ea30.js";import{Flex as i,Stack as r,Box as c}from"@mantine/core";import"@mantine/dates";import"./Subot-e1ee8861.js";import"./index-5222461b.js";import{T as m}from"./Plus-0795a68c.js";import{u as s}from"./useTranslations-78d82c21.js";import"@mantine/hooks";import"./utils-f69a5c66.js";import{L as d}from"./index-bfb36e6c.js";import{M as v}from"./index-88f24735.js";import"./translationsContext-5a2101f0.js";import"string-format";var u="Lj0qoTD",E="OO-qFWT";const g=({url:t,isMobile:a,dataEventCategory:l,dataEventAction:n,dataEventLabel:o})=>e.createElement("div",{className:E,"data-is-mobile":a},e.createElement("img",{loading:"lazy",className:"country-flag",src:t,alt:"Country Flag","data-event-category":l,"data-event-action":n,"data-content-label":o})),p=({className:i,type:r="main",footerInfo:c,isMobile:d,locale:v})=>{var E,p,y,f,N,b,h,k,F,$,z,T,M,x,C,L,_,j,S,w,H,I,A,B,G,D,q,U;const{t:J}=s(),K=null==c?void 0:c.menu,O=(null===(p=null===(E=null==c?void 0:c.general)||void 0===E?void 0:E.verified)||void 0===p?void 0:p.filter(Boolean))||[];return e.createElement("footer",{className:`${u} ${i||""}`,style:"mini"===r?{backgroundColor:o.colors.neutral50}:{}},e.createElement(a,null,e.createElement("div",{className:"inner","data-type":r},"main"===r?e.createElement(e.Fragment,null,e.createElement("a",{href:"/"},e.createElement("img",{loading:"lazy",className:"footer-logo",src:null===(y=null==c?void 0:c.general)||void 0===y?void 0:y.logo,alt:"Logo","data-is-sehat":"id-ID"===v})),e.createElement("div",{className:"columns"},e.createElement("div",{className:"newsletter"},e.createElement(m,{size:"p1",weight:"bold"},null===(f=null==c?void 0:c.general)||void 0===f?void 0:f.content),e.createElement(t,{className:"signupButton",color:"primary",size:"lg"},J("footer.signUp")),e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(N=null==c?void 0:c.social)||void 0===N?void 0:N.title),e.createElement("div",{className:"icons"},null===(h=null===(b=null==c?void 0:c.social)||void 0===b?void 0:b.socials)||void 0===h?void 0:h.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{loading:"lazy","data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",className:"social-icon"}))))),e.createElement("hr",{className:"hrMobile"}))),e.createElement("div",null,K&&e.createElement(e.Fragment,null,e.createElement("div",{className:"biglinks"},null===(F=null===(k=K[0])||void 0===k?void 0:k.items)||void 0===F?void 0:F.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"bigLink",key:a,href:t.url},t.title)))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===($=K[1])||void 0===$?void 0:$.menu_title),null===(T=null===(z=K[1])||void 0===z?void 0:z.items)||void 0===T?void 0:T.map(((t,a)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(M=K[2])||void 0===M?void 0:M.menu_title),null===(C=null===(x=K[2])||void 0===x?void 0:x.items)||void 0===C?void 0:C.map(((t,a)=>t.url&&e.createElement("a",{"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url,className:"link",href:t.url,key:a},e.createElement(m,{size:"sm",dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title)))))),e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"otherSites"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(L=null==c?void 0:c.branch)||void 0===L?void 0:L.title),e.createElement("div",{className:"flags"},null===(j=null===(_=null==c?void 0:c.branch)||void 0===_?void 0:_.branch)||void 0===j?void 0:j.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-event-category":"Footer","data-event-action":t.name,"data-event-label":t.url},e.createElement(g,{url:t.flag,isMobile:d,dataEventCategory:"Footer",dataEventAction:t.name,dataEventLabel:t.url})))))))),e.createElement("hr",null),e.createElement("div",{className:"copyright"},e.createElement("div",{className:"copyright-image-wrapper"},O.length?O.map(((t,a)=>e.createElement("a",{href:t.url,key:a,className:"copyright-image"},e.createElement("img",{loading:"lazy",src:t.image,alt:"DMCA Icon"})))):null),e.createElement(m,{size:"xs",className:"copyright-content",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null===(S=null==c?void 0:c.general)||void 0===S?void 0:S.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})))):e.createElement(e.Fragment,null,(null==c?void 0:c.menu)&&e.createElement("div",{className:"columns"},e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(w=null==c?void 0:c.menu[1])||void 0===w?void 0:w.menu_title),null===(I=null===(H=null==c?void 0:c.menu[1])||void 0===H?void 0:H.items)||void 0===I?void 0:I.map((t=>e.createElement("a",{className:"link",href:t.url,key:t.title,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Information","data-content-title":t.title,"data-content-id":`https://${n[v]}${t.url}`,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":`https://${n[v]}${t.url}`},e.createElement(m,{dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:`https://${n[v]}${t.url}`,size:"sm",style:{color:o.colors.gray800}},t.title))))),e.createElement("div",{className:"mHalf"},e.createElement(m,{size:"sm",className:"linkTitle"},null===(A=null==c?void 0:c.menu[2])||void 0===A?void 0:A.menu_title),null===(G=null===(B=null==c?void 0:c.menu[2])||void 0===B?void 0:B.items)||void 0===G?void 0:G.map(((t,a)=>e.createElement("a",{className:"link",href:t.url,key:a,"data-list-type":"Footer","data-content-type":"Navigate","data-content-topic":"Hello Health","data-content-title":t.title,"data-content-id":t.url,"data-event-category":"Footer","data-event-action":t.title,"data-event-label":t.url},e.createElement(m,{size:"sm",color:o.colors.gray800,dataEventCategory:"Footer",dataEventAction:t.title,dataEventLabel:t.url},t.title))))),"mini"!==r&&e.createElement("hr",{className:"hrMobile"}),e.createElement("div",{className:"newsletter"},e.createElement("div",{className:"social"},e.createElement(m,{size:"sm"},null===(D=null==c?void 0:c.social)||void 0===D?void 0:D.title),e.createElement("div",{className:"icons"},null===(U=null===(q=null==c?void 0:c.social)||void 0===q?void 0:q.socials)||void 0===U?void 0:U.map(((t,a)=>e.createElement("a",{key:a,"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,href:t.url},e.createElement("img",{"data-event-category":"Footer","data-event-action":`Follow us - ${t.name}`,"data-content-label":t.url,src:t.icon,alt:"Logo Social",loading:"lazy",className:"social-icon"}))))))))))))};var y="B6-KmWK",f="GS-7mbG",N="qc5bEb3",b="CQGVeuT",h="_8eUT8Jr",k="_6JMoel-",F="pFG7UH3";const $=({logoType:t="marryBaby",footerMenu:n,background:s})=>{var u;if(!n)return null;const{general:E,menu:g,socials:p}=n;return e.createElement("footer",{className:y,style:{backgroundColor:s||"none"}},e.createElement(a,null,e.createElement("div",{className:f},null==g?void 0:g.map((({menu_title:t,items:a},l)=>e.createElement("div",{className:N,key:`mbf${l}`},e.createElement(v,{className:"title",type:"subtitle-1",color:o.mbColors.pink},t),null==a?void 0:a.map((({title:t,url:a},l)=>e.createElement("a",{"data-event-category":"Footer","data-event-action":"Click","data-event-label":`${a}`,className:"link",href:a,key:`footer-links-${l}`},e.createElement("div",{className:b,key:`mbitem${l}`},e.createElement(v,{type:"bodytext-2",color:o.mbColors.gray},t)))))))))),e.createElement(a,null,e.createElement("div",{className:k},e.createElement(i,{gap:"24px",sx:e=>({[e.fn.largerThan("sm")]:{".info-item":{flexGrow:1,width:"50%"}},[e.fn.smallerThan("sm")]:{flexDirection:"column"}})},e.createElement(r,{spacing:"24px",className:"info-item"},e.createElement(d,{className:"logo",type:t}),e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.content}})),e.createElement("div",{className:F},null==p?void 0:p.map((({icon:t,name:a,url:l},n)=>e.createElement("a",{key:`social${n}`,target:"_blank",rel:"noreferrer","data-event-category":"Footer","data-event-action":`Follow us - ${a}`,"data-content-label":a,href:l},e.createElement("img",{className:"social-logo",loading:"lazy",src:t,alt:a})))))),e.createElement(c,{className:"info-item",sx:{paddingTop:"7px"}},e.createElement(m,{size:"p4",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.information}})))))),e.createElement("div",{className:h},e.createElement(a,null,e.createElement("div",{className:"content"},e.createElement(m,{size:"p5",color:"#fff",as:"div"},e.createElement("div",{dangerouslySetInnerHTML:{__html:null==E?void 0:E.copyright.replace(/{currentYear}/gi,l().get("year").toString())}})),e.createElement("div",{className:"verify"},null===(u=null==E?void 0:E.verified)||void 0===u?void 0:u.map((({image:t,url:a},l)=>e.createElement("img",{loading:"lazy",key:`imgMbFt${l}`,src:t,alt:a}))))))))},z=({type:t,isMobile:a=!0,locale:l,footerInfo:n,siteType:o,background:i})=>"helloSites"===o?e.createElement(p,{isMobile:a,type:t,locale:l,footerInfo:n||{}}):e.createElement($,{footerMenu:n,background:i});export{z as F};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import{_ as e,a as t}from"./tslib.es6-16e6bdc9.js";import*as l from"react";import n,{useState as a,forwardRef as r,useEffect as i,Component as o,useCallback as c,createContext as s,useContext as d,useRef as h,useMemo as m,useImperativeHandle as p}from"react";import{createStyles as u,useMantineTheme as g,Button as f,Autocomplete as b,Image as E,ActionIcon as C,Select as v,AspectRatio as L,em as y,Box as w,Breadcrumbs as x,Textarea as k,Accordion as j,Indicator as O,Avatar as M,FileInput as S,createEmotionCache as H,NumberInput as B,PasswordInput as Z,TextInput as R,Input as V,Checkbox as A,Slider as I,Radio as z,Flex as P,rem as F,Tabs as T,ScrollArea as D,Popover as N,Chip as $}from"@mantine/core";import{useUncontrolled as W,useDebouncedValue as U,useViewportSize as _,useResizeObserver as G,useDisclosure as K,useClickOutside as q}from"@mantine/hooks";import{t as Y}from"./theme-dab2950f.js";import{C as Q}from"./index-5222461b.js";import J from"dayjs";import{L as X}from"./Subot-e1ee8861.js";import{B as ee,M as te}from"./utils-f69a5c66.js";import le from"styled-components";import{Carousel as ne}from"@mantine/carousel";import{T as ae,O as re,A as ie,a as oe,C as ce,P as se}from"./Plus-0795a68c.js";import{I as de,s as he}from"./index-1c858659.js";import me from"classnames";import{b as pe}from"./useTranslations-78d82c21.js";const ue=t=>{var{alt:l,backupSrc:r,src:i,placeholderSrc:o,style:c,ref:s}=t,d=e(t,["alt","backupSrc","src","placeholderSrc","style","ref"]);const[h,m]=a(!1);return n.createElement(ge,Object.assign({loading:"lazy",alt:l,onError:()=>!h&&m(!0),src:h?r||i:i||r,style:Object.assign(Object.assign({},o?{backgroundImage:`url(${o})`}:{}),c),"data-has-placeholder":!!o,ref:s},d))},ge=le.img`
|
|
2
|
+
&[data-has-placeholder='true'] {
|
|
3
|
+
background-position: center;
|
|
4
|
+
background-repeat: no-repeat;
|
|
5
|
+
background-size: cover;
|
|
6
|
+
}
|
|
7
|
+
`,fe="100ms";var be=u(((e,t)=>{var l,n,a,r,i,o;const{other:c}=e,{template:s}=c,{size:d,variant:h,skipHover:m,isError:p,isSuccess:u,color:g,children:f,theme:b}=t,E="mb"===s||"marryBaby"===b,C=g||(b&&E?"mb":e.primaryColor),v=C.startsWith("#"),L=v?e.fn.lighten(g,.9):(null===(n=null===(l=e.colors)||void 0===l?void 0:l[C])||void 0===n?void 0:n[0])||"",y=v?C:null===(r=null===(a=e.colors)||void 0===a?void 0:a[C])||void 0===r?void 0:r[e.fn.primaryShade()],w=v?e.fn.darken(g,.05):null===(o=null===(i=e.colors)||void 0===i?void 0:i[C])||void 0===o?void 0:o[e.fn.primaryShade()+1];return{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({transition:`all ${fe} ease-in-out`,"&[data-event-category] > *":{pointerEvents:"none"},"&:focus":{outline:"none"}},!f&&{paddingLeft:"10px",paddingRight:"10px",".mantine-Button-icon":{margin:0}}),(()=>{switch(d){case"xl":return{height:56,fontWeight:600,fontSize:E?"14px":"16px",lineHeight:"24px"};case"lg":return{height:48,fontWeight:600,fontSize:E?"14px":"16px",lineHeight:"24px"};case"md":return{height:40,fontWeight:600,fontSize:"14px",lineHeight:"22px"};case"sm":return{height:32,fontWeight:600,fontSize:E?"12px":"14px",lineHeight:"22px",paddingLeft:"16px",paddingRight:"16px"};case"xs":return{height:24,fontWeight:600,fontSize:"12px",lineHeight:"18px",paddingLeft:"8px",paddingRight:"8px"}}})()),(()=>{switch(h){case"primary":return Object.assign({color:e.white,backgroundColor:y},!m&&{"&:hover":{backgroundColor:w}});case"secondary":return Object.assign({color:y,backgroundColor:"transparent",border:`1px solid ${y}`},!m&&{"&:hover":{backgroundColor:L,border:`1px solid ${y}`}});case"white":return{color:y,backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:"transparent",border:"transparent"}};case"tertiary":return{color:e.colors.gray[8],backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`,"&:hover":Object.assign({},m?{backgroundColor:e.white,border:`1px solid ${e.colors.neutral[2]}`}:{backgroundColor:e.colors.neutral[0],border:`1px solid ${e.colors.neutral[0]}`})};case"light":return{color:y,backgroundColor:L,border:"1px solid transparent","&:hover":Object.assign({},m?{backgroundColor:L,border:"1px solid transparent"}:{backgroundColor:e.white,border:`1px solid ${L}`})};case"ghost":return Object.assign({color:y,backgroundColor:"transparent",border:"1px solid transparent"},!m&&{"&:hover":{backgroundColor:L,border:"1px solid transparent"}})}})()),{"&[data-disabled]":{backgroundColor:e.colors.gray[1],color:e.colors.gray[4]}}),p?Object.assign({color:e.colors.red[6],backgroundColor:e.white,border:`1px solid ${e.colors.red[6]}`},!m&&{"&:hover":{backgroundColor:e.colors.red[0],border:`1px solid ${e.colors.red[6]}`}}):{}),u?Object.assign({color:e.colors.green[8],backgroundColor:e.colors.green[0]},!m&&{"&:hover":{backgroundColor:e.colors.green[0]}}):{})}}));const Ee={primary:"filled",secondary:"outline",tertiary:"default",light:"light",ghost:"subtle",error:"outline",white:"white",success:"subtle"};const Ce=t=>{var l,a;const r=g(),i=Object.assign(Object.assign({},null===(a=null===(l=r.components)||void 0===l?void 0:l.Button)||void 0===a?void 0:a.defaultProps),function(e){const t={};return Object.keys(e).filter((t=>void 0!==e[t])).forEach((l=>t[l]=e[l])),t}(t)),{variant:o,size:c,color:s,skipHover:d,className:h,dataEventCategory:m,dataEventAction:p,dataEventLabel:u,children:b,theme:E}=i,C=e(i,["variant","size","color","skipHover","className","dataEventCategory","dataEventAction","dataEventLabel","children","theme"]),v="error"===o,{classes:L,cx:y}=be({variant:o,size:c,color:s,skipHover:d,isError:v,isSuccess:"success"===o,children:b,theme:E});return n.createElement(f,Object.assign({className:y(h,o),classNames:{root:L.root},variant:Ee[o],"data-variant":o,"data-event-category":m,"data-event-action":p,"data-event-label":u},C),b)},ve=e=>n.createElement(ue,Object.assign({alt:"round cambodia flag",src:Q.getAssetPath("flags/cambodiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Le=e=>n.createElement(ue,Object.assign({alt:"square cambodia flag",src:Q.getAssetPath("flags/cambodiaSquare.png")},e)),ye=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("path",{d:"M7.49953 0.327881C5.47199 0.850891 3.69346 1.98591 2.37793 3.53444L7.49953 6.6655V0.327881Z",fill:"#3F51B5"}),n.createElement("path",{d:"M2.30273 16.3824C3.62476 17.9749 5.4353 19.1399 7.50034 19.6729V13.2053L2.30273 16.3824Z",fill:"#3F51B5"}),n.createElement("path",{d:"M0.328125 12.5C0.334625 12.526 0.341125 12.5515 0.348125 12.5775L0.474128 12.5H0.328125Z",fill:"white"}),n.createElement("path",{d:"M17.7871 3.73445C16.4571 2.08391 14.6131 0.872891 12.499 0.327881V6.96651L17.7871 3.73445Z",fill:"#3F51B5"}),n.createElement("path",{d:"M12.499 19.6722C14.6506 19.1172 16.5196 17.8707 17.8546 16.1752L12.499 12.9021V19.6722Z",fill:"#3F51B5"}),n.createElement("path",{d:"M0.376626 7.31055C0.359125 7.37305 0.344125 7.43705 0.328125 7.50005H0.686632L0.376626 7.31055Z",fill:"white"}),n.createElement("path",{d:"M19.8745 8.50006C19.827 8.18506 19.7655 7.87555 19.6895 7.57104L18.1699 8.50006H19.8745Z",fill:"white"}),n.createElement("path",{d:"M0.686034 7.50024H0.327527C0.243026 7.82775 0.175524 8.16076 0.124023 8.50026H2.32207L0.686034 7.50024Z",fill:"white"}),n.createElement("path",{d:"M19.7197 12.3148C19.7832 12.0473 19.8337 11.7752 19.8752 11.5002H18.3867L19.7197 12.3148Z",fill:"white"}),n.createElement("path",{d:"M2.10956 11.5002H0.124023C0.175024 11.8398 0.243026 12.1728 0.327527 12.5003H0.47403L2.10956 11.5002Z",fill:"white"}),n.createElement("path",{d:"M8.50002 7.27665V0.124512C8.16051 0.175513 7.82751 0.243514 7.5 0.328016V6.66564L8.50002 7.27665Z",fill:"white"}),n.createElement("path",{d:"M11.5 12.2913V19.8759C11.8395 19.8249 12.1725 19.7569 12.5 19.6724V12.9023L11.5 12.2913Z",fill:"white"}),n.createElement("path",{d:"M7.5 13.205V19.6721C7.82751 19.7566 8.16051 19.8241 8.50002 19.8756V12.594L7.5 13.205Z",fill:"white"}),n.createElement("path",{d:"M11.5925 7.34715L11.7345 7.43415L12.5 6.96614V0.328016C12.1725 0.243514 11.8395 0.176013 11.5 0.124512V7.49865L11.5925 7.34715Z",fill:"white"}),n.createElement("path",{d:"M2.32251 8.50002H7.01761L8.50014 7.594V7.277L7.50011 6.66548L2.37852 3.53442C1.95151 4.03743 1.572 4.58144 1.24949 5.16296L5.02507 7.5H2.29701L0.650482 6.47648C0.54748 6.74949 0.455478 7.02699 0.375977 7.3105L0.686483 7.5L2.32251 8.50002Z",fill:"white"}),n.createElement("path",{d:"M11.7344 7.43419L13.4784 8.50021H18.171L19.6905 7.57119C19.528 6.92118 19.303 6.29767 19.02 5.70516L16.139 7.50019H13.4109L18.317 4.45013C18.1515 4.20313 17.9735 3.96562 17.7875 3.73462L12.4999 6.96618L11.7344 7.43419Z",fill:"white"}),n.createElement("path",{d:"M5.02448 7.50013L1.2494 5.16309C1.0169 5.58259 0.821394 6.0231 0.650391 6.47661L2.29642 7.50013H5.02448Z",fill:"#E53935"}),n.createElement("path",{d:"M16.1392 7.50024L19.0207 5.70521C18.8132 5.2702 18.5837 4.84819 18.3177 4.45068L13.4111 7.50024H16.1392Z",fill:"#E53935"}),n.createElement("path",{d:"M11.5 11.5002V12.2913L12.5 12.9023L17.8556 16.1758C18.2416 15.6853 18.5836 15.1593 18.8736 14.6008L15.4856 12.5003H18.2136L19.4432 13.2673C19.5507 12.9563 19.6432 12.6393 19.7197 12.3153L18.3871 11.5002H11.5Z",fill:"white"}),n.createElement("path",{d:"M13.4785 8.50019L11.7345 7.43417L11.5925 7.34717L11.5 7.49867V8.50019H13.4785Z",fill:"white"}),n.createElement("path",{d:"M8.49934 12.5943V11.5002H2.10921L0.473182 12.5003L0.34668 12.5778C0.522683 13.2383 0.762688 13.8713 1.06319 14.4708L4.16375 12.5003H6.89181L1.80071 15.7168C1.95971 15.9448 2.12471 16.1688 2.30172 16.3823L7.49932 13.2053L8.49934 12.5943Z",fill:"white"}),n.createElement("path",{d:"M7.01758 8.50026H8.50011V7.59424L7.01758 8.50026Z",fill:"white"}),n.createElement("path",{d:"M15.4854 12.5L18.8729 14.6C19.0949 14.173 19.2834 13.727 19.4429 13.2665L18.2134 12.5H15.4854Z",fill:"#E53935"}),n.createElement("path",{d:"M4.16501 12.5L1.06445 14.4705C1.28196 14.9045 1.52596 15.3216 1.80197 15.7166L6.89307 12.5H4.16501Z",fill:"#E53935"}),n.createElement("path",{d:"M13.4785 8.5H11.5V11.5001H18.3871H19.8757C19.9497 11.0095 20.0002 10.511 20.0002 10C20.0002 9.48902 19.9497 8.99051 19.8757 8.5H18.1711H13.4785Z",fill:"#E53935"}),n.createElement("path",{d:"M8.50017 11.5001V8.5H7.01764H2.32255H0.124502C0.050501 8.99051 0 9.48902 0 10C0 10.511 0.050501 11.0095 0.124502 11.5001H2.11004H8.50017Z",fill:"#E53935"}),n.createElement("path",{d:"M11.5001 19.8759V12.2912V11.5002V8.50016V7.49865V0.124502C11.0095 0.050501 10.511 0 10 0C9.48902 0 8.99051 0.050501 8.5 0.124502V7.27664V7.59365V8.50016V11.5002V12.5942V19.8759C8.99051 19.9499 9.48902 20.0004 10 20.0004C10.511 20.0004 11.0095 19.9499 11.5001 19.8759Z",fill:"#E53935"}))),we=e=>n.createElement("svg",Object.assign({viewBox:"0 0 26 26",fill:"none"},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"5",width:"24",height:"16"},n.createElement("path",{d:"M1.08301 7.41675C1.08301 6.31218 1.97844 5.41675 3.08301 5.41675H22.9163C24.0209 5.41675 24.9163 6.31218 24.9163 7.41675V18.5834C24.9163 19.688 24.0209 20.5834 22.9163 20.5834H3.08301C1.97844 20.5834 1.08301 19.688 1.08301 18.5834V7.41675Z",fill:"#3F51B5"})),n.createElement("path",{d:"M1.08301 5.41675H24.9163V20.5834H1.08301V5.41675Z",fill:"#3F51B5"}),n.createElement("path",{d:"M1.08301 7.70041L12.3551 14.5899L14.05 11.8165L3.57901 5.41675H1.08301V7.70041Z",fill:"white"}),n.createElement("path",{d:"M24.9165 5.41675H22.9616L12.4912 11.816L14.1855 14.5899L24.9165 8.03083V5.41675Z",fill:"white"}),n.createElement("path",{d:"M14.1855 10.9802L12.4912 13.7536L23.6658 20.5834H24.9165V17.5387L14.1855 10.9802Z",fill:"white"}),n.createElement("path",{d:"M1.08301 17.8702V20.5834H2.87592L14.05 13.7541L12.3556 10.9802L1.08301 17.8702Z",fill:"white"}),n.createElement("path",{d:"M1.08301 10.8333H24.9163V15.1666H1.08301V10.8333Z",fill:"white"}),n.createElement("path",{d:"M10.833 5.41675H15.1663V20.5834H10.833V5.41675Z",fill:"white"}),n.createElement("path",{d:"M9.32609 10.8334L1.08301 5.79537V7.06504L7.24826 10.8334H9.32609ZM24.0004 5.41675L15.1376 10.8334H17.2149L24.9163 6.12687V5.41675H24.0004ZM17.9191 15.1667L24.9163 19.4432V18.1735L19.9964 15.1667H17.9191ZM8.62192 15.1667L1.08301 19.7742V20.5834H1.83701L10.6992 15.1667H8.62192ZM1.08301 11.9167H24.9163V14.0834H1.08301V11.9167Z",fill:"#E53935"}),n.createElement("path",{d:"M11.917 5.41675H14.0837V20.5834H11.917V5.41675Z",fill:"#E53935"}))),xe=e=>n.createElement(ue,Object.assign({alt:"round india flag",src:Q.getAssetPath("flags/indiaRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),ke=e=>n.createElement(ue,Object.assign({alt:"square indian flag",src:Q.getAssetPath("flags/indiaSquare.png")},e)),je=t=>{var l=e(t,[]);const a=pe();return n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none"},l),n.createElement("mask",{id:a,style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("g",{mask:`url(#${a})`},n.createElement("rect",{width:"20",height:"10",fill:"#CE1126"}),n.createElement("rect",{y:"10",width:"20",height:"10",fill:"white"})))},Oe=t=>{var l=e(t,[]);const a=pe();return n.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},l),n.createElement("g",{clipPath:`url(#${a})`},n.createElement("rect",{y:"0.0166016",width:"24",height:"8",fill:"#CE1126"}),n.createElement("rect",{y:"8.0166",width:"24",height:"8",fill:"white"})),n.createElement("defs",null,n.createElement("clipPath",{id:a},n.createElement("rect",{width:"24",height:"16",rx:"2",fill:"white"}))))},Me=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("rect",{y:"1",width:"20",height:"20",fill:"#CC0001"}),n.createElement("rect",{y:"16.106",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"16",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"18",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"14.0652",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"12.0242",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"9.9834",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"7.94263",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"5.90186",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"3.86084",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"2",width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{width:"20",height:"1.02041",fill:"white"}),n.createElement("rect",{y:"-1",width:"10",height:"12",fill:"#010066"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11387 3.86084C2.92711 3.86084 1.96387 5.23232 1.96387 6.92206C1.96387 8.6118 2.92711 9.98329 4.11387 9.98329C4.54263 9.98329 4.94211 9.80406 5.27763 9.4957C5.08225 9.59203 4.87256 9.64471 4.65427 9.64471C3.60193 9.64471 2.74786 8.42866 2.74786 6.93032C2.74786 5.43198 3.60193 4.21594 4.65427 4.21594C4.88682 4.21594 5.10959 4.27527 5.31571 4.38397C4.97256 4.0538 4.5589 3.86084 4.11387 3.86084Z",fill:"#FFCC00"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67935 8.51573L6.7737 7.8407L7.04147 9.22221L6.43573 8.06657L6.24676 9.47313L6.0609 8.06576L5.4526 9.2188L5.72343 7.83844L4.81629 8.50957L5.49017 7.42963L4.46387 7.48593L5.40732 6.9203L4.46512 6.35062L5.4913 6.41133L4.81981 5.3285L5.72546 6.00353L5.45769 4.62202L6.06343 5.77766L6.25241 4.37109L6.43827 5.77847L7.04656 4.62543L6.77574 6.00579L7.68287 5.33466L7.00899 6.4146L8.0353 6.3583L7.09184 6.92392L8.03404 7.49361L7.00786 7.43289L7.67935 8.51573Z",fill:"#FFCC00"}))),Se=e=>n.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),n.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#CC0001"}),n.createElement("rect",{y:"12.2712",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"12.1904",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"13.7144",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"10.7161",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"9.16138",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"7.60645",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"6.05127",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"4.49658",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"2.94141",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{y:"1.52393",width:"24",height:"0.777454",fill:"white"}),n.createElement("rect",{width:"24",height:"0.777454",fill:"white"}),n.createElement("path",{d:"M0 2C0 0.895431 0.895431 0 2 0H12V8.38095H0V2Z",fill:"#010066"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.93644 1.52393C3.51233 1.52393 2.35645 2.56887 2.35645 3.85629C2.35645 5.14371 3.51233 6.18865 4.93644 6.18865C5.45096 6.18865 5.93034 6.05209 6.33296 5.81716C6.09851 5.89054 5.84688 5.93068 5.58492 5.93068C4.32212 5.93068 3.29724 5.00417 3.29724 3.86258C3.29724 2.72099 4.32212 1.79448 5.58492 1.79448C5.86399 1.79448 6.13132 1.83968 6.37865 1.9225C5.96688 1.67094 5.47049 1.52393 4.93644 1.52393Z",fill:"#FFCC00"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.216 5.07041L8.12923 4.55611L8.45055 5.60869L7.72366 4.72819L7.49689 5.79987L7.27386 4.72758L6.5439 5.60609L6.86889 4.55439L5.78033 5.06572L6.58899 4.24291L5.35742 4.28581L6.48957 3.85485L5.35893 3.42081L6.59034 3.46707L5.78456 2.64205L6.87133 3.15636L6.55001 2.10378L7.2769 2.98427L7.50367 1.9126L7.7267 2.98488L8.45666 2.10638L8.13166 3.15808L9.22022 2.64674L8.41157 3.46955L9.64314 3.42666L8.51099 3.85761L9.64163 4.29165L8.41022 4.2454L9.216 5.07041Z",fill:"#FFCC00"})),He=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("rect",{x:"-4",y:"-1",width:"28",height:"11",fill:"#FECB00"}),n.createElement("rect",{x:"-4",y:"10",width:"28",height:"10",fill:"#EA2839"}),n.createElement("rect",{x:"-4",y:"6.7041",width:"28",height:"6.47773",fill:"#34B233"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.56543 10.3272L10.1796 5.15527L11.7938 10.3272H8.56543Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5292 11.2775L7.18336 14.5129L8.91745 9.37991L11.5292 11.2775Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.75181 11.8648L5.33182 8.73143L10.7494 8.79447L9.75181 11.8648Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.6105 8.78962L15.0281 8.72658L10.6081 11.86L9.6105 8.78962Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4424 9.37686L13.1765 14.5098L8.83064 11.2744L11.4424 9.37686Z",fill:"white"}))),Be=e=>n.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),n.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#FECB00"}),n.createElement("rect",{y:"8.3811",width:"24",height:"7.61905",rx:"2",fill:"#EA2839"}),n.createElement("rect",{y:"5.86987",width:"24",height:"4.93542",fill:"#34B233"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7705 8.63046L12.1541 4.68994L13.5377 8.63046H10.7705Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3108 9.35502L9.58574 11.8201L11.0721 7.90925L13.3108 9.35502Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7874 9.80216L7.99884 7.41482L12.6425 7.46285L11.7874 9.80216Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6667 7.4589L16.3104 7.41087L12.5218 9.79821L11.6667 7.4589Z",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2361 7.90629L14.7225 11.8171L10.9974 9.35207L13.2361 7.90629Z",fill:"white"})),Ze=e=>n.createElement(ue,Object.assign({alt:"round philippines flag",src:Q.getAssetPath("flags/philippineRound.png"),style:Object.assign({borderRadius:"50%"},e.style)},e)),Re=e=>n.createElement(ue,Object.assign({alt:"square philippines flag",src:Q.getAssetPath("flags/philippineSquare.png")},e)),Ve=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#D8D8D8"}),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"white"})),n.createElement("rect",{width:"30",height:"20",fill:"#ED1E24"}),n.createElement("rect",{width:"15",height:"10",fill:"#2B2F84"}),n.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),n.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),n.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),n.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),n.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),n.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),n.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),n.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),n.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),n.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),n.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),n.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),n.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})))),Ae=e=>n.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),n.createElement("rect",{width:"24",height:"16",rx:"2",fill:"#ED1E24"}),n.createElement("path",{d:"M0 2C0 0.89543 0.895431 0 2 0H15V10H0V2Z",fill:"#2B2F84"}),n.createElement("circle",{cx:"7.49791",cy:"4.99913",r:"1.869",fill:"white"}),n.createElement("path",{d:"M7.93582 2.89402L7.49722 1.25732L7.05762 2.89812C7.28902 2.84212 7.64062 2.82912 7.93582 2.89402Z",fill:"white"}),n.createElement("path",{d:"M6.82515 2.95674L5.62695 1.75854L6.06655 3.39934C6.23895 3.23514 6.53695 3.04814 6.82515 2.95674Z",fill:"white"}),n.createElement("path",{d:"M5.89364 3.56677L4.25684 3.12817L5.45794 4.32927C5.52514 4.10107 5.68964 3.79007 5.89364 3.56677Z",fill:"white"}),n.createElement("path",{d:"M5.39266 4.56055L3.75586 4.99915L5.39666 5.43885C5.34066 5.20745 5.32756 4.85585 5.39266 4.56055Z",fill:"white"}),n.createElement("path",{d:"M5.45504 5.67188L4.25684 6.87007L5.89764 6.43047C5.73344 6.25807 5.54634 5.96007 5.45504 5.67188Z",fill:"white"}),n.createElement("path",{d:"M6.06555 6.60278L5.62695 8.23958L6.82815 7.03838C6.59975 6.97128 6.28875 6.80678 6.06555 6.60278Z",fill:"white"}),n.createElement("path",{d:"M7.05859 7.1041L7.49719 8.7409L7.93679 7.1001C7.70549 7.1561 7.35399 7.1692 7.05859 7.1041Z",fill:"white"}),n.createElement("path",{d:"M8.16992 7.04148L9.36812 8.23968L8.92852 6.59888C8.75622 6.76308 8.45822 6.95018 8.16992 7.04148Z",fill:"white"}),n.createElement("path",{d:"M9.10156 6.43145L10.7384 6.87005L9.53726 5.66895C9.47006 5.89725 9.30556 6.20825 9.10156 6.43145Z",fill:"white"}),n.createElement("path",{d:"M9.60263 5.43763L11.2394 4.99903L9.59863 4.55933C9.65463 4.79073 9.66763 5.14223 9.60263 5.43763Z",fill:"white"}),n.createElement("path",{d:"M9.54026 4.32637L10.7385 3.12817L9.09766 3.56777C9.26196 3.74007 9.44896 4.03807 9.54026 4.32637Z",fill:"white"}),n.createElement("path",{d:"M8.92959 3.39534L9.36819 1.75854L8.16699 2.95964C8.39529 3.02674 8.70629 3.19124 8.92959 3.39534Z",fill:"white"})),Ie=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#ED1C24"}),n.createElement("rect",{x:"-4",y:"3.31665",width:"28",height:"13.3333",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-4 6.65015H24V13.3168H-4V6.65015Z",fill:"#241D4F"}))),ze=e=>n.createElement("svg",Object.assign({viewBox:"0 0 24 17",fill:"none"},e),n.createElement("rect",{y:"0.983398",width:"24",height:"16",rx:"2",fill:"#ED1C24"}),n.createElement("rect",{y:"3.65039",width:"24",height:"10.6667",fill:"white"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 6.31689H24V11.6502H0V6.31689Z",fill:"#241D4F"})),Pe=e=>n.createElement("svg",Object.assign({viewBox:"0 0 20 20",fill:"none",style:Object.assign({borderRadius:"50%"},e.style)},e),n.createElement("g",null,n.createElement("mask",{style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"#C4C4C4"})),n.createElement("rect",{x:"-4",y:"-0.0166016",width:"28",height:"20",fill:"#DA251D"}),n.createElement("path",{d:"M11.7228 10.8677L14.2819 9.00839L11.1187 9.00839L10.1409 6L9.16316 9.00839L6 9.00839L8.5591 10.8677L7.58184 13.8766L10.1409 12.0168L12.7 13.8766L11.7228 10.8677Z",fill:"#FFEB3B"}))),Fe=e=>n.createElement("svg",Object.assign({viewBox:"0 0 24 16",fill:"none"},e),n.createElement("g",null,n.createElement("clipPath",null,n.createElement("rect",{width:"24",height:"16",fill:"white"})),n.createElement("path",{d:"M2.01386e-10 2C0 0.895431 0.895431 -7.50368e-10 2 -1.67599e-09L22 -1.84359e-08C23.1046 -1.93615e-08 24 0.895431 24 2L24 14C24 15.1046 23.1046 16 22 16L2 16C0.89543 16 1.52092e-09 15.1046 1.4097e-09 14L2.01386e-10 2Z",fill:"#DA251D"}),n.createElement("path",{d:"M13.7823 8.92854L16.6663 6.8332L13.1016 6.8332L11.9997 3.44287L10.8978 6.8332L7.33301 6.8332L10.217 8.92854L9.11567 12.3195L11.9997 10.2235L14.8837 12.3195L13.7823 8.92854Z",fill:"#FFEB3B"})));var Te="pfaLGRK";const De=({country:e,language:t,rounded:l,height:a,width:r,isTesting:i,className:o})=>{let c,s;switch(t){case"en":c=n.createElement(we,null),s=n.createElement(ye,null);break;case"vi":c=n.createElement(Fe,null),s=n.createElement(Pe,null);break;case"id":c=n.createElement(Oe,{isTesting:i}),s=n.createElement(je,{isTesting:i});break;case"th":c=n.createElement(ze,null),s=n.createElement(Ie,null);break;case"km":c=n.createElement(Le,null),s=n.createElement(ve,null);break;case"ms":c=n.createElement(Se,null),s=n.createElement(Me,null);break;case"my":c=n.createElement(Be,null),s=n.createElement(He,null);break;case"tl":c=n.createElement(Re,null),s=n.createElement(Ze,null);break;case"hi":c=n.createElement(ke,null),s=n.createElement(xe,null);break;case"zh":c=n.createElement(Ae,null),s=n.createElement(Ve,null)}if(!c&&!s)switch(e){case"VN":c=n.createElement(Fe,null),s=n.createElement(Pe,null);break;case"ID":c=n.createElement(Oe,{isTesting:i}),s=n.createElement(je,{isTesting:i});break;case"TH":c=n.createElement(ze,null),s=n.createElement(Ie,null);break;case"KH":c=n.createElement(Le,null),s=n.createElement(ve,null);break;case"MY":c=n.createElement(Se,null),s=n.createElement(Me,null);break;case"MM":c=n.createElement(Be,null),s=n.createElement(He,null);break;case"PH":c=n.createElement(Re,null),s=n.createElement(Ze,null);break;case"IN":c=n.createElement(ke,null),s=n.createElement(xe,null);break;case"TW":c=n.createElement(Ae,null),s=n.createElement(Ve,null)}return n.createElement("div",{className:`${Te} ${o||""}`,style:{"--width":r||20,"--height":a||20}},l?s:c)},Ne=t=>{var{size:l=24,color:a=Y.colors.gray600}=t,r=e(t,["size","color"]);return n.createElement("svg",Object.assign({width:l,height:l,viewBox:"0 0 20 20",fill:"none"},r),n.createElement("path",{d:"M9.9998 10.8567 6.943 7.7999C6.6118 7.4687 6.0742 7.4687 5.743 7.7999 5.4118 8.1311 5.4118 8.6687 5.743 8.9999L9.4342 12.6911C9.747 13.0039 10.2534 13.0039 10.5654 12.6911L14.2566 8.9999C14.5878 8.6687 14.5878 8.1311 14.2566 7.7999 13.9254 7.4687 13.3878 7.4687 13.0566 7.7999L9.9998 10.8567Z",fill:a}))},$e=r(((t,l)=>{var{keepSearch:a=!1}=t,r=e(t,["keepSearch"]);return a?n.createElement(We,Object.assign({},r,{ref:l})):n.createElement(Ue,Object.assign({},r,{ref:l}))})),We=r(((t,l)=>{var{value:a,defaultValue:r,onChange:i,clearable:o}=t,c=e(t,["value","defaultValue","onChange","clearable"]);const[s,d]=W({value:a,defaultValue:r,onChange:i});return n.createElement(b,Object.assign({ref:l,rightSection:n.createElement(E,{src:Q.getAssetPath("chevron-down.svg"),fit:"none"}),size:"md",maxDropdownHeight:300,onChange:e=>d(e),value:s},c,o&&(null==s?void 0:s.length)>0?{rightSection:n.createElement(C,{onClick:()=>{d("")},sx:{cursor:"pointer"}},n.createElement(_e,null))}:{}))})),Ue=r(((t,l)=>{var{searchValue:a,onSearchChange:r}=t,i=e(t,["searchValue","onSearchChange"]);const[o,c]=W({defaultValue:"",value:a,onChange:r});return n.createElement(v,Object.assign({ref:l,rightSection:n.createElement(Ne,{size:18}),rightSectionProps:{style:{pointerEvents:"none"}},size:"md",maxDropdownHeight:300,onSearchChange:e=>c(e),searchValue:o},i,i.clearable&&(null==o?void 0:o.length)>0?{rightSection:n.createElement(C,{onClick:()=>{c("")},sx:{cursor:"pointer"}},n.createElement(_e,null))}:{}))})),_e=()=>n.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6665 9.99996C1.6665 5.39163 5.3915 1.66663 9.99984 1.66663C14.6082 1.66663 18.3332 5.39163 18.3332 9.99996C18.3332 14.6083 14.6082 18.3333 9.99984 18.3333C5.3915 18.3333 1.6665 14.6083 1.6665 9.99996ZM12.4083 13.5831C12.7333 13.9081 13.2583 13.9081 13.5833 13.5831C13.9 13.2581 13.9 12.7247 13.5833 12.4081L11.175 9.99973L13.5833 7.5914C13.9083 7.2664 13.9083 6.7414 13.5833 6.4164C13.2583 6.0914 12.7333 6.0914 12.4083 6.4164L10 8.82473L7.59167 6.4164C7.26667 6.0914 6.74167 6.0914 6.41667 6.4164C6.26063 6.57209 6.17293 6.78347 6.17293 7.0039C6.17293 7.22433 6.26063 7.43571 6.41667 7.5914L8.825 9.99973L6.41667 12.4081C6.26063 12.5638 6.17293 12.7751 6.17293 12.9956C6.17293 13.216 6.26063 13.4274 6.41667 13.5831C6.74167 13.9081 7.26667 13.9081 7.59167 13.5831L10 11.1747L12.4083 13.5831Z",fill:"#8C8C8C"})),Ge={[X.Vietnam]:"vi",[X.Cambodia]:"km",[X.India]:"hi",[X.Indonesia]:"id",[X.Malaysia]:"ms",[X.Thailand]:"th",[X.Taiwan]:"zh-tw",[X.PhilippinesTagalog]:"tl-ph",[X.PhilippinesEnglish]:"en",[X.Myanmar]:"my"},Ke={[X.Vietnam]:()=>import("dayjs/locale/vi.js"),[X.Cambodia]:()=>import("dayjs/locale/km.js"),[X.India]:()=>import("dayjs/locale/hi.js"),[X.Indonesia]:()=>import("dayjs/locale/id.js"),[X.Malaysia]:()=>import("dayjs/locale/ms.js"),[X.Thailand]:()=>import("dayjs/locale/th.js"),[X.Taiwan]:()=>import("dayjs/locale/zh-tw.js"),[X.PhilippinesTagalog]:()=>import("dayjs/locale/tl-ph.js"),[X.PhilippinesEnglish]:()=>import("dayjs/locale/en.js"),[X.Myanmar]:()=>import("dayjs/locale/my.js")},qe=e=>{const[l,n]=a(!1);return i((()=>{t(void 0,void 0,void 0,(function*(){var t;n(!1),yield null===(t=Ke[e])||void 0===t?void 0:t.call(Ke),J.locale(Ge[e]),n(!0)}))}),[e]),{isLoaded:l}},Ye=()=>"undefined"!=typeof window&&window.innerWidth<ee.BREAK_POINT_MOBILE,Qe=()=>"undefined"!=typeof window&&window.innerWidth>=ee.BREAK_POINT_MOBILE&&window.innerWidth<ee.BREAK_POINT_PC,Je=()=>{const[e,t]=a(Ye()),[l,n]=a(Qe());return i((()=>{const e=()=>{t(Ye()),n(Qe())};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}}),[]),{isMobile:e,isLargeMobile:l}};class Xe extends o{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||n.createElement(n.Fragment,null):this.props.children}}const et=t=>{var{slidesToShow:l=1,children:a}=t,r=e(t,["slidesToShow","children"]);return(Array.isArray(a)?a.length:1)?n.createElement(Xe,null,n.createElement(ne,Object.assign({slideSize:String(Math.floor(1/l*1e4)/100)+"%",containScroll:"trimSnaps"},r),a)):null};et.Slide=ne.Slide;const tt=le(et)`
|
|
8
|
+
cursor: grab;
|
|
9
|
+
width: 100%;
|
|
10
|
+
.mantine-Carousel-control {
|
|
11
|
+
background: rgb(255, 255, 255);
|
|
12
|
+
opacity: 1;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
&[data-inactive] {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
cursor: default;
|
|
19
|
+
}
|
|
20
|
+
&:first-child {
|
|
21
|
+
padding-right: 24px;
|
|
22
|
+
background: linear-gradient(
|
|
23
|
+
90deg,
|
|
24
|
+
rgba(255, 255, 255, 1) 0%,
|
|
25
|
+
rgba(255, 255, 255, 1) 50%,
|
|
26
|
+
rgba(255, 255, 255, 0) 100%
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
&:last-child {
|
|
30
|
+
padding-left: 24px;
|
|
31
|
+
background: linear-gradient(
|
|
32
|
+
270deg,
|
|
33
|
+
rgba(255, 255, 255, 1) 0%,
|
|
34
|
+
rgba(255, 255, 255, 1) 50%,
|
|
35
|
+
rgba(255, 255, 255, 0) 100%
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.mantine-Carousel-container {
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
`;var lt=u(((e,t)=>({root:{color:t.color||("hb"===e.primaryColor?e.colors.hb[6]:e.fn.primaryColor()),"&[data-event-category] > *":{pointerEvents:"none"}}})));const nt=t=>{var{color:l,styles:a,className:r}=t,i=e(t,["color","styles","className"]);const{classes:o,cx:c}=lt({color:l},{name:"Anchor",styles:a});return n.createElement(ae,Object.assign({as:"a",className:c(o.root,r)},i))},at=t=>{var{children:l}=t,a=e(t,["children"]);return n.createElement(nt,Object.assign({size:"p4",color:"gray.8"},a),l)},rt=e=>n.createElement(L,Object.assign({sx:{borderRadius:4,overflow:"hidden","> img":{objectFit:"contain"}}},e)),it={Button:{defaultProps:{variant:"primary",size:"md"}}},ot=[{size:"40px",lineHeight:"52px",letterSpacing:"-1.2px"},{size:"32px",lineHeight:"42px",letterSpacing:"-1px"},{size:"26px",lineHeight:"36px",letterSpacing:"-0.8px"},{size:"22px",lineHeight:"32px",letterSpacing:"-0.6px"},{size:"18px",lineHeight:"28px",letterSpacing:"-0.2px"},{size:"16px",lineHeight:"24px",letterSpacing:0}],ct=[{size:"26px",lineHeight:"34px",letterSpacing:"-0.9px"},{size:"24px",lineHeight:"32px",letterSpacing:"-0.8px"},{size:"20px",lineHeight:"26px",letterSpacing:"-0.7px"},{size:"18px",lineHeight:"26px",letterSpacing:"-0.6px"},{size:"16px",lineHeight:"24px",letterSpacing:"-0.2px"},{size:"14px",lineHeight:"22px",letterSpacing:"-0.2px"}],st=(e=!1)=>Object.fromEntries((e?ct:ot).map(((e,t)=>[`h${t+1}`,{fontSize:e.size,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing}]))),dt={Title:{styles:{root:Object.assign(Object.assign({fontWeight:re.fontWeight.bold},st()),{[`&${te.mbDown}`]:Object.assign({},st(!0))})}}},ht=e=>{var t;return{InputWrapper:{styles:{label:{display:"inline-flex",gap:4,marginBottom:"0.25rem",fontWeight:600,fontSize:"14px",lineHeight:"22px",color:Y.colors.gray600},description:{fontWeight:400,fontSize:"12px",lineHeight:"18px",color:Y.colors.gray600,marginBottom:"0.25rem"},error:{marginTop:"0.25rem"}}},NumberInput:{defaultProps:{decimalSeparator:null===(t=de[e])||void 0===t?void 0:t.separator}},Input:{styles:(e,t,{size:l})=>({input:{border:`1px solid ${Y.colors.gray200}`,transition:`all ${fe} ease-in-out`,"&:not(.mantine-Textarea-input)":Object.assign({},(()=>{switch(l){case"lg":return{height:48,fontSize:16,minHeight:"unset",lineHeight:"24px"};case"md":return{height:40,fontSize:14,lineHeight:"22px",minHeight:"unset"};case"sm":return{height:32,fontSize:14,lineHeight:"22px",minHeight:"unset"}}})()),"&:hover":{border:`1px solid ${e.primaryColor}`},"&:focus":{boxShadow:`0px 0px 0px 2px ${e.colors[e.primaryColor][2]}`}},'&[data-invalid="true"]':{border:`1px solid ${Y.colors.red600}`,color:"#000"}})}}},mt={Radio:{defaultProps:{size:"sm",color:"blue.6"},styles:{radio:{backgroundColor:"transparent","&:checked":{backgroundColor:"transparent"}}}}},pt={hb:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],mb:["#FFE9F1","#F8CCDC","#F5B4CB","#F29CBA","#EE84AA","#EB6B99","#E85388","#D34C7C","#BE446F","#A93D63"],blue:["#e3f2ff","#bcdeff","#91caff","#65b5ff","#45a4ff","#2b94ff","#2d87f3","#2c74df","#2b62cd","#2743ad"],gray:["#fafafa","#f2f2f2","#d9d9d9","#bfbfbf","#8c8c8c","#737373","#595959","#404040","#262626","#1a1a1a"],delftGray:["#F3F3F3","#EAEAEC","#D9DAE2","#B9BAC8","#9898A9","#7C7C8F","#5A5A72","#3E3F58","#202135","#0C0C12"],neutral:["#f7f9fc","#e4e8ec","#d2d6dc","#bfc5cc","#adb3bc","#9aa2ac","#87909c","#757f8c","#626d7c","#545E6C"],green:["#e0f8ee","#b3eed5","#7ce2b9","#2ed69e","#00CB8A","#00C076","#00B16A","#009E5C","#008C50","#006C39"],pink:["#fff1f6","#fec7dc","#fec7dc","#fec2cf","#fe9dc2","#fd87b4","#fd72a7","#fc5d9a","#fc488d","#E92D74"],violet:["#F5EDFF","#E7D2F7","#D8B7F0","#CA9CE8","#BB82E1","#AD67D9","#9E4CD1","#9031CA","#8116C2","#63059D"],yellow:["#fff8e2","#ffecb6","#ffe187","#ffd658","#ffcb37","#ffc326","#ffb521","#fea21e","#fe921d","#fc7419"],teal:["#e0f7fc","#b1ebf8","#7ddff3","#44d1ec","#00c7e6","#00bee0","#00aecd","#0099b2","#008599","#00626c"],indigol:["#CEDDF0","#ACC5E6","#95B3DA","#85A6CF","#6D91BE","#5F85B5","#4C77AC","#35639C","#284A75","#1B3250"],red:["#fae9e8","#feccbf","#FEAA96","#f44d2c","#ff6f4d","#ff5331","#f44d2c","#e64728","#d84023","#bf331b"],redViolet:["#F3EAEB","#E8D5D7","#DDC1C4","#D1ACB0","#C5979C","#BA8288","#AF6D74","#A35961","#97444D","#8C2F39"]},ut=(e,t="hb")=>({defaultRadius:"hb"===t?4:16,cursorType:"pointer",colors:Object.assign(Object.assign(Object.assign({},pt),Y.colors),{toneYellow:"#fff9eb",toneGreen:"#f2fcf7",toneBlue:"#e0e9fb",tonePink:"#ffeaf1"}),primaryColor:t,primaryShade:6,fontFamily:(e===X.Cambodia?"Battambang":e===X.Thailand?"Noto Sans Thai":"Inter")+", -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",breakpoints:{xs:y(ee.BREAK_POINT_SMALL_MOBILE),sm:y(ee.BREAK_POINT_MOBILE),md:y(ee.BREAK_POINT_TABLET),lg:y(ee.BREAK_POINT_PC),xl:y(ee.BREAK_POINT_LGPC)},components:Object.assign(Object.assign(Object.assign(Object.assign({},ht(e)),mt),it),dt),other:{template:t,defaultImage:Q.getAssetPath("mb"===t?"default-image-mb.jpg":"default-image.jpg")}}),gt=t=>{var l,{children:r,showHomeIcon:o=!0,homeIconHref:s="/"}=t,d=e(t,["children","showHomeIcon","homeIconHref"]);const h=g(),m="mb"===(null===(l=null==h?void 0:h.other)||void 0===l?void 0:l.template),[p,u]=a(null),{isMobile:f}=Je(),[,b]=a(!0),E=c((()=>{b(!1)}),[]),C=c((()=>{setTimeout((()=>{b(!0)}),1e3)}),[]);return i((()=>(p&&(p.on("scroll",E),p.on("pointerUp",C)),()=>{p&&(p.off("scroll",E),p.on("pointerUp",C))})),[p,E,C]),n.createElement(tt,Object.assign({align:"center",slideGap:"xs",dragFree:!0,draggable:f,slideSize:"0",getEmblaApi:u,controlsOffset:-52,previousControlIcon:n.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},n.createElement("path",{d:"M6.86589 3.56104C7.03647 3.56104 7.20724 3.62732 7.33724 3.75765L7.39453 3.81494C7.6552 4.07561 7.6552 4.49765 7.39453 4.75765L4.81901 7.33317L13.5326 7.33317C13.9006 7.33317 14.1992 7.63184 14.1992 7.99984C14.1992 8.36784 13.9006 8.6665 13.5326 8.6665L4.81901 8.66651L7.39453 11.242C7.6552 11.5027 7.6552 11.9247 7.39453 12.1847L7.33724 12.242C7.07657 12.5027 6.65453 12.5027 6.39453 12.242L2.6237 8.47119C2.36303 8.21053 2.36303 7.78849 2.6237 7.52849L6.39453 3.75765C6.52487 3.62732 6.6953 3.56104 6.86589 3.56104Z",fill:"#595959"})),nextControlIcon:n.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},n.createElement("path",{d:"M9.13411 12.439C8.96353 12.439 8.79276 12.3727 8.66276 12.2423L8.60547 12.1851C8.3448 11.9244 8.3448 11.5023 8.60547 11.2423L11.181 8.66683L2.46745 8.66683C2.09945 8.66683 1.80078 8.36816 1.80078 8.00016C1.80078 7.63216 2.09945 7.3335 2.46745 7.3335L11.181 7.3335L8.60547 4.75797C8.3448 4.49731 8.3448 4.07527 8.60547 3.81527L8.66276 3.75797C8.92343 3.49731 9.34547 3.49731 9.60547 3.75797L13.3763 7.52881C13.637 7.78947 13.637 8.21152 13.3763 8.47152L9.60547 12.2423C9.47513 12.3727 9.3047 12.439 9.13411 12.439Z",fill:"#595959"}))},d),o&&n.createElement(et.Slide,{style:{borderRight:`1px solid ${pt.neutral[1]}`}},n.createElement(at,{href:s,target:"_blank",className:"pointer-event-child-none"},n.createElement(w,{sx:Object.assign({},!m&&{borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center"}),bg:!m&&pt.neutral[0],p:m?0:6},n.createElement(rt,{ratio:1,w:18},m?n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1183 3.67722C12.8727 2.70772 11.1281 2.708 9.88187 3.67718L14.1183 3.67722ZM14.1183 3.67722L19.718 8.03283C20.5589 8.68632 21.05 9.69173 21.05 10.7562V17.6002C21.05 19.5057 19.5055 21.0502 17.6 21.0502H6.40016C4.49466 21.0502 2.9502 19.5057 2.9502 17.6002V10.7562C2.9502 9.69163 3.44113 8.68632 4.28216 8.03283L9.88187 3.67718M10.6799 4.70339L5.08006 9.05916C4.55657 9.46592 4.2502 10.0923 4.2502 10.7562V17.6002C4.2502 18.7878 5.21263 19.7502 6.40016 19.7502H17.6C18.7875 19.7502 19.75 18.7878 19.75 17.6002V10.7562C19.75 10.0923 19.4438 9.46612 18.9204 9.05936L13.3202 4.70335C12.5443 4.09941 11.4571 4.09905 10.6799 4.70339Z",fill:"#3E3F58"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2373 13.1626C12.5546 12.4794 11.4466 12.4791 10.7629 13.1628C10.0793 13.8464 10.0793 14.9538 10.7629 15.6374C11.4465 16.321 12.5539 16.321 13.2375 15.6374C13.9211 14.9538 13.9211 13.8464 13.2375 13.1628L13.2373 13.1626ZM14.1567 12.2436C12.9661 11.0521 11.0348 11.0525 9.84366 12.2436C8.65237 13.4348 8.65237 15.3653 9.84366 16.5566C11.0349 17.7479 12.9654 17.7479 14.1567 16.5566C15.348 15.3653 15.348 13.4348 14.1567 12.2436Z",fill:"#3E3F58"})):n.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.58691 5.59863L8.58691 1.62305C8.83594 1.45898 9.16406 1.45898 9.41309 1.62305L15.4131 5.59863C15.624 5.73926 15.75 5.97363 15.75 6.22559V14.25C15.75 15.0791 15.0791 15.75 14.25 15.75H3.75C2.9209 15.75 2.25 15.0791 2.25 14.25V6.22559C2.25 5.97363 2.37598 5.73926 2.58691 5.59863ZM5.5017 11.7602C5.1717 11.5108 5.17316 11.0321 5.46521 10.7391C5.75775 10.4456 6.24936 10.4292 6.5986 10.6522C7.17818 11.0223 8.12516 11.4889 9.21628 11.4889C10.3074 11.4889 11.2543 11.0223 11.8339 10.6522C12.1832 10.4292 12.6748 10.4456 12.9673 10.7391C13.2594 11.0321 13.2608 11.5108 12.9308 11.7602C11.8743 12.5589 10.535 12.9889 9.21628 12.9889C7.89758 12.9889 6.55824 12.5589 5.5017 11.7602Z",fill:"#595959"})))))),n.createElement(et.Slide,null),n.createElement(et.Slide,null,n.createElement(x,{styles:{separator:{marginInline:4}},separator:n.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},n.createElement("path",{d:"M8.71527 7.99969L6.16794 5.45236C5.89194 5.17636 5.89194 4.72836 6.16794 4.45236C6.44394 4.17636 6.89194 4.17636 7.16794 4.45236L10.2439 7.52836C10.5046 7.78903 10.5046 8.21103 10.2439 8.47103L7.16794 11.547C6.89194 11.823 6.44394 11.823 6.16794 11.547C5.89194 11.271 5.89194 10.823 6.16794 10.547L8.71527 7.99969Z",fill:"#8C8C8C"}))},r)))};gt.Item=at;const ft=le(k)`
|
|
44
|
+
.mantine-Textarea-input {
|
|
45
|
+
padding: 12px 16px;
|
|
46
|
+
background: #ffffff;
|
|
47
|
+
border: 1px solid ${Y.colors.gray200};
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
}
|
|
50
|
+
`;var bt=u((e=>({root:{},inner:{},content:{padding:0},header:{borderBottom:`1px solid ${e.colors.neutral[1]}`,marginRight:0,marginBottom:0,padding:"1rem"},overlay:{},title:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",marginRight:0},body:{},close:{cursor:"pointer",width:"24px",height:"24px"}})));const Et=le(j)`
|
|
51
|
+
.mantine-Accordion-label {
|
|
52
|
+
padding: 0;
|
|
53
|
+
}
|
|
54
|
+
.mantine-Accordion-control {
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.mantine-Accordion-item {
|
|
60
|
+
.mantine-Accordion-chevron {
|
|
61
|
+
> div {
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
width: 16px;
|
|
64
|
+
height: 16px;
|
|
65
|
+
background-position: center;
|
|
66
|
+
background-image: url(${e=>e.closeChevron||Q.getAssetPath("plus-icon.svg")});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
&[data-active='true'] {
|
|
70
|
+
.mantine-Accordion-chevron {
|
|
71
|
+
> div {
|
|
72
|
+
background-image: url(${e=>e.openChevron||Q.getAssetPath("minus-icon.svg")});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.mantine-Accordion-panel {
|
|
78
|
+
border-radius: ${Y.borderRadius};
|
|
79
|
+
}
|
|
80
|
+
.mantine-Accordion-content {
|
|
81
|
+
white-space: pre-wrap;
|
|
82
|
+
}
|
|
83
|
+
`,Ct=t=>{var{children:l}=t,a=e(t,["children"]);return n.createElement(Et,Object.assign({chevron:n.createElement("div",null),disableChevronRotation:!0,transitionDuration:300},a),l)};Ct.Control=j.Control,Ct.Item=j.Item,Ct.Panel=j.Panel;const vt=Q.getAssetPath("avatar.jpg"),Lt=t=>{var{withIndicator:l=!1,indicatorConfig:a=null,size:r=56,children:i,styles:o,placeholderText:c}=t,s=e(t,["withIndicator","indicatorConfig","size","children","styles","placeholderText"]);const d=()=>n.createElement(M,Object.assign({size:r,radius:"xl"},s,{imageProps:Object.assign({loading:"lazy"},s.imageProps),styles:{placeholder:{backgroundColor:s.color,color:"white"}}}),i||(c||n.createElement(ue,{src:vt,width:r,alt:s.alt||"avatar"})));return l?n.createElement(O,Object.assign({inline:!0,position:"bottom-end",offset:9},a,{styles:Object.assign({indicator:{backgroundColor:n.isValidElement(a.label)&&"transparent",zIndex:1}},o)}),d()):d()},yt=300,wt=H({key:"mantine",prepend:!1}),xt=t=>{var{value:l,onChange:r}=t,o=e(t,["value","onChange"]);const[c,s]=a(l),[d]=U(c,300);return i((()=>{null==r||r(d)}),[d]),i((()=>{s(l)}),[l]),n.createElement(B,Object.assign({size:"md",stepHoldDelay:500,stepHoldInterval:e=>Math.max(1e3/Math.pow(e,2),25),onChange:s,hideControls:!0,min:0,formatter:e=>0===Number(e)?e:e||"",removeTrailingZeros:!0,value:c},o))},kt=Q.getAssetPath("EyeVisible.svg"),jt=Q.getAssetPath("EyeHidden.svg"),Ot=r(((t,l)=>{const{size:a="md",visibilityToggleIcon:r}=t,i=e(t,["size","visibilityToggleIcon"]),o=r||(({reveal:e,size:t})=>e?n.createElement("img",{src:kt,width:t,loading:"lazy"}):n.createElement("img",{src:jt,width:t,loading:"lazy"}));return n.createElement(Z,Object.assign({ref:l,size:a,visibilityToggleIcon:o},i,{className:`input-control ${(null==i?void 0:i.className)||""}`}))})),Mt=r(((t,l)=>{var{value:r,onChange:o,onChangeRaw:c,maxLength:s}=t,d=e(t,["value","onChange","onChangeRaw","maxLength"]);const[h,m]=a(r||""),[p]=U(h,300);return i((()=>{null==o||o(p)}),[p]),i((()=>{m(r)}),[r]),n.createElement(R,Object.assign({ref:l,size:"md",onChange:e=>{"number"==typeof s&&e.currentTarget.value.length>s||(null==c||c(e),m(e.currentTarget.value))},value:h},d,{maxLength:s,className:`input-control ${(null==d?void 0:d.className)||""}`}))}));Mt.File=e=>n.createElement(S,Object.assign({size:"md"},e)),Mt.Password=Ot,Mt.Number=xt,Mt.Wrapper=V.Wrapper;const St=ne.Slide,Ht=s({}),Bt=(e,t)=>e>=t?e-t:e,Zt=t=>{var{children:l,blurFromCenter:r,blurFromIndex:o,blurLength:c=3,maxBlurOpacity:s=.5,onSlideChange:d,selectSlideWhenClick:m}=t,p=e(t,["children","blurFromCenter","blurFromIndex","blurLength","maxBlurOpacity","onSlideChange","selectSlideWhenClick"]);const{width:g}=_(),[f]=G(),b=h(null),[E,C]=a(0),v=()=>{var e,t,l,n,a;const i=(null===(e=null==b?void 0:b.current)||void 0===e?void 0:e.slideNodes())||[];if((null===(t=null==b?void 0:b.current)||void 0===t?void 0:t.slideNodes().length)<=(null===(l=null==b?void 0:b.current)||void 0===l?void 0:l.slidesInView().length))return i.map((e=>{e.classList.remove("center-slide"),e.style.opacity="1"})),!1;const d=null===(n=null==b?void 0:b.current)||void 0===n?void 0:n.selectedScrollSnap();C(d);const h=i.length,m=(null===(a=null==b?void 0:b.current)||void 0===a?void 0:a.slidesInView()).length,p=Math.floor(m/2),u=r?o+c-1:p,g=d+u,f=g===h?0:g>h?g-h:g,E=d-u,v=E<0?h+E:E>0?d-u:0,L=[...new Set(Array(2*u+1).fill("").map(((e,t)=>Bt(v+t,h))))];i.map(((e,t)=>{if(t===d?e.classList.add("center-slide"):e.classList.remove("center-slide"),-1!==L.indexOf(t)){const a=s/c;for(let r=0;r<c;r++){if(t===Bt(v+r,h)||t===(n=h,(l=f-r)<0?n+l:l)){e.style.opacity=String((r+1)*a);break}e.style.opacity="1"}}else e.style.opacity="0";var l,n}))},L={getEmblaApi:e=>{b.current=e},onSlideChange:e=>{v(),null==d||d(e)}};i((()=>{(null==b?void 0:b.current)&&v()}),[g]);const y=u((()=>{var e,t;return{control:Object.assign({},(null===(e=null==b?void 0:b.current)||void 0===e?void 0:e.slideNodes().length)<=(null===(t=null==b?void 0:b.current)||void 0===t?void 0:t.slidesInView().length)&&{display:"none"})}})),{classes:w}=y();return n.createElement(Ht.Provider,{value:{slider:null==b?void 0:b.current,centerSlide:E,selectSlideWhenClick:m}},n.createElement(ne,Object.assign({classNames:{control:w.control},ref:f,slideSize:"auto",containScroll:"trimSnaps"},L,p,{loop:!0}),"function"==typeof l?l(E):l))};Zt.Slide=t=>{var{children:l,onClick:r,innerSlideProps:o}=t,c=e(t,["children","onClick","innerSlideProps"]);const{slider:s,selectSlideWhenClick:m}=d(Ht),p=h(),u=h(""),[g,f]=a(0);i((()=>{u.current=String(Math.round(1e4*Math.random()))}),[]),i((()=>{const e=(null==s?void 0:s.slideNodes())||[];f(e.findIndex((e=>e.dataset.key===u.current)))}),[s]);const b={ref:p,"data-key":u.current,"data-index":g};return n.createElement(St,Object.assign({},b,c),n.createElement("div",Object.assign({style:{height:"100%"},onClick:()=>{m&&(null==s||s.scrollTo(g)),null==r||r(g)}},o),l))};const Rt=t=>{var{styles:l,color:a="blue"}=t,r=e(t,["styles","color"]);const i=g(),o=m((()=>{var e,t;return((null==a?void 0:a.includes("."))?null===(e=i.colors[a.split(".")[0]])||void 0===e?void 0:e[a.split(".")[1]]:null===(t=i.colors[a])||void 0===t?void 0:t[i.primaryShade||6])||i.colors.blue[6]}),[a]);return n.createElement(A,Object.assign({styles:Object.assign({input:{"&:hover":{border:`1px solid ${o}`}}},l),color:a},r))};Rt.Group=A.Group;const Vt=le(I)`
|
|
84
|
+
${e=>{const t=e.color||Y.colors.primaryBase;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
85
|
+
[data-theme='marryBaby'] & {
|
|
86
|
+
${e=>{const t=e.color||Y.mbColors.pink;return`\n .mantine-Slider-bar {\n background-color: ${t};\n }\n .mantine-Slider-thumb {\n border-color: ${t};\n color: ${t};\n }\n `}}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.mantine-Slider-label {
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
color: #000;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
`,At=le.div`
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
.hhg-mantine-slider {
|
|
99
|
+
flex-grow: 1;
|
|
100
|
+
}
|
|
101
|
+
button {
|
|
102
|
+
path:not([stroke]) {
|
|
103
|
+
stroke: ${Y.colors.primaryBase};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
[data-theme='marryBaby'] & {
|
|
107
|
+
button {
|
|
108
|
+
path:not([stroke]) {
|
|
109
|
+
stroke: ${Y.mbColors.pink};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`,It=t=>{var{styles:l,color:a="blue"}=t,r=e(t,["styles","color"]);const i=g(),o=m((()=>{var e,t;return((null==a?void 0:a.includes("."))?null===(e=i.colors[a.split(".")[0]])||void 0===e?void 0:e[a.split(".")[1]]:null===(t=i.colors[a])||void 0===t?void 0:t[i.primaryShade||6])||i.colors.blue[6]}),[a]);return n.createElement(z,Object.assign({styles:Object.assign({radio:{"&:hover":{border:`1px solid ${o}`}},icon:{color:`${o}`}},l),color:a},r))};function zt(e,t=6){const l=new Array(t).fill("");if(e){const t=e.toString().split("");l.map(((e,n)=>{t[n]&&(l[n]=t[n]||"")}))}return l}function Pt(e){return e.join("")}It.Group=z.Group;var Ft="_2iQs0sk",Tt="Ia6IojY";const Dt=r(((t,l)=>{const{maxLength:a=1,placeholder:r,className:i}=t,o=e(t,["maxLength","placeholder","className"]);return n.createElement("input",Object.assign({maxLength:a,className:me(Tt,"otpInput",i),placeholder:r,type:"number"},o,{ref:l}))})),Nt=r(((e,t)=>{const{valueLength:l=6,type:r="number",value:o,defaultValue:s,placeholder:d,onChange:m,onBlur:u}=e,g=h(new Array(l).fill(null)),[f,b]=a(s||o),[E,C]=a(-1),[v,L]=a((()=>zt(f,l))),y=c((()=>{if(-1===E)return;const e=g.current[E];if(e){e.value="";const t=v;t[E]="",L(t),b((()=>Pt(t))),null==m||m(Pt(t))}}),[E,m,v]),w=c((()=>{if(0===E)return;const e=g.current[E];e&&e.blur();const t=g.current[E-1];t&&t.focus()}),[E]),x=c((()=>{if(E===l-1)return;const e=g.current[E];e&&e.blur();const t=g.current[E+1];t&&t.focus()}),[E,l]),k=c((e=>{const t=e.target,l=t.value.toString().slice(0,1),n=g.current.findIndex((e=>e===t));if(-1!==n){const e=v;e[n]=l,L(e),b((()=>Pt(e))),null==m||m(Pt(e))}x()}),[x,m,v]),j=c((e=>{const t=e.target,l=g.current.findIndex((e=>e===t));"number"===r?t.select():t.setSelectionRange(0,t.value.length,"backward"),-1!==l&&C(l)}),[]),O=c((e=>{const t=zt(e.clipboardData.getData("text/plain"),l),n=Pt(t);L(t),b(n),null==m||m(n)}),[m,r,l]),M=c((e=>{8===e.keyCode||"Backspace"===e.key?(e.preventDefault(),y(),w()):46===e.keyCode||"Delete"===e.key?(e.preventDefault(),y()):37===e.keyCode||"ArrowLeft"===e.key?(e.preventDefault(),w()):39===e.keyCode||"ArrowRight"===e.key?(e.preventDefault(),x()):32!==e.keyCode&&" "!==e.key&&"Spacebar"!==e.key&&"Space"!==e.key||e.preventDefault()}),[y,x,w]);return p(t,(()=>g.current[0]),[]),i((()=>{L((()=>zt(o,l))),b(o)}),[l,o]),n.createElement(P,{justify:"center",columnGap:8,className:me(Ft,"otpContainer")},v.map(((e,t)=>n.createElement(Dt,{ref:e=>{g.current[t]=e},key:""+t,value:e,type:r,onChange:k,onFocus:j,onKeyDown:M,onPaste:O,onBlur:u,placeholder:d}))))})),$t=Object.values(he).reduce(((e,{phoneCountry:t})=>(e.includes(t)||e.push(t),e)),[]);var Wt={phoneInput:"i-9Ibox",error:"YDWHh9b"};const Ut=e=>l.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 8 5",fill:"currentColor"},e),l.createElement("path",{d:"M4 5L0.535898 0.5L7.4641 0.5L4 5Z"})),_t=r(((l,r)=>{const{isError:o,defaultCountry:c,countries:s=$t,countryCallingCodeEditable:d=!1,defaultValue:h,value:m,onChange:p,className:u}=l,g=e(l,["isError","defaultCountry","countries","countryCallingCodeEditable","defaultValue","value","onChange","className"]),[f,b]=a(h||m),[E,C]=a(null);return i((()=>{b(m)}),[m]),i((()=>{t(void 0,void 0,void 0,(function*(){const e=yield import("react-phone-number-input");C(e)}))}),[]),E?n.createElement(E.default,Object.assign({ref:r,value:f,onChange:e=>{b(e),null==p||p(e)},countries:s,defaultCountry:c,countryCallingCodeEditable:d,className:me(Wt.phoneInput,{isError:o,[Wt.error]:o},u),flagUrl:void 0,flagComponent:t=>{const{country:l,countryName:a,flagUrl:r}=t,i=e(t,["country","countryName","flagUrl"]),o=l?`(+${E.getCountryCallingCode(l)})`:"";return n.createElement(n.Fragment,null,n.createElement(De,Object.assign({country:l,title:a},i)),n.createElement("span",{className:me(Wt.callingCode,"PhoneInputCountryIconCallingCode")},o))},countrySelectProps:{arrowComponent:()=>n.createElement("div",{className:me(Wt.arrowSelect,"PhoneInputArrowContainer")},n.createElement(Ut,null))}},g)):null}));var Gt=u(((e,t)=>{const{variant:l}=t,n={content:"none",top:0,bottom:0,zIndex:1,width:F(56)};return Object.assign({},"inline"===l&&{root:{},tabsList:{gap:F(24),borderBottom:"none",flexWrap:"nowrap"},tab:{padding:`${F(8)} 0`,color:e.colors.gray[4],borderColor:"transparent",borderBottomWidth:F(2),marginBottom:F(-1),transition:"border 0.2s ease","&:hover":{backgroundColor:"initial",borderColor:"transparent"},"&[data-active='true']":{color:e.fn.primaryColor(),borderColor:e.fn.primaryColor()}},tabRightSection:{},tabLabel:{},tabIcon:{},panel:{},scrollArea:{position:"relative","&.prev-bg":{"&:before":Object.assign(Object.assign({},n),{content:'""',position:"absolute",left:0,background:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)"})},"&.next-bg":{"&:after":Object.assign(Object.assign({},n),{content:'""',position:"absolute",right:0,background:"linear-gradient(90deg, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%)"})}},list:{borderBottom:`1px solid ${e.colors.neutral[1]}`},btn:{position:"absolute",top:"50%",zIndex:2,transform:"translate(0, -50%)",width:F(28),height:F(28),padding:0,background:"white",borderRadius:"50%",cursor:"pointer",filter:"drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.04)) drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04))",".mantine-Button-icon":{display:"flex",alignItems:"center",justifyContent:"center"},"&.disabled":{opacity:0,zIndex:0}},prevBtn:{left:0},nextBtn:{right:0}})}));const Kt=t=>{var l,{variant:r="inline",value:o,styles:c,children:s,dataList:d=[],tabProps:m,listProps:p,panelProps:u,TabComponentDisplay:g,startPadding:f=40,defaultValue:b}=t,E=e(t,["variant","value","styles","children","dataList","tabProps","listProps","panelProps","TabComponentDisplay","startPadding","defaultValue"]);const{cx:C,classes:v}=Gt({variant:r},{name:"Tabs",styles:c}),L=h(null),y=h([]),[w,x]=a(b||(null===(l=null==d?void 0:d[0])||void 0===l?void 0:l.value)),[k,j]=a(0),[O,M]=a(!1),[S,H]=a(!0),[B,Z]=a({x:0,y:0}),R=h(null),V=Object.assign({defaultValue:b,classNames:v},s?{value:o}:{value:w,onTabChange:e=>x(e)});i((()=>{x(o)}),[o]),i((()=>{var e,t,l;null===(e=R.current)||void 0===e||e.scrollTo({left:(null===(l=null===(t=null==y?void 0:y.current)||void 0===t?void 0:t[k])||void 0===l?void 0:l.offsetLeft)-f,behavior:"smooth"})}),[k]),i((()=>{j(d.findIndex((e=>e.value==w)))}),[w]),i((()=>{var e,t;H(0===B.x),M((null===(e=null==R?void 0:R.current)||void 0===e?void 0:e.clientWidth)+B.x===(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.scrollWidth))}),[B]);const A=({text:e,dataEventCategory:t,dataEventAction:l,dataEventLabel:a})=>g?n.createElement(g,null,e):n.createElement(ae,{size:"s3",color:"inherit",weight:"semiBold","data-event-category":t,"data-event-action":l,"data-event-label":a},e);return n.createElement(T,Object.assign({},V,E),s||n.createElement(n.Fragment,null,n.createElement(D,{className:C(v.scrollArea,`${S?"":"prev-bg"} ${O?"":"next-bg"}`),scrollbarSize:0,viewportRef:R,onScrollPositionChange:Z},n.createElement(T.List,Object.assign({className:v.list,ref:L},p),d.map(((e,t)=>n.createElement(T.Tab,Object.assign({ref:e=>y.current[t]=e,className:v.tab,key:String(e.value),value:String(e.value)},m),n.createElement(A,Object.assign({},e)))))),n.createElement(Ce,{className:C(v.btn,v.prevBtn,S?"disabled":""),unstyled:!0,onClick:()=>j(k-1>-1?k-1:0),leftIcon:n.createElement(ie,{size:16})}),n.createElement(Ce,{className:C(v.btn,v.nextBtn,O?"disabled":""),unstyled:!0,onClick:()=>j(k+1<d.length-1?k+1:d.length-1),leftIcon:n.createElement(oe,{size:16})})),d.map((e=>n.createElement(T.Panel,Object.assign({value:String(e.value),key:String(e.value)},u),e.content)))))};Kt.List=T.List,Kt.Tab=T.Tab,Kt.Panel=T.Panel;const qt=s({}),Yt=t=>{var{children:l,closeOnClickOutside:a=!0}=t,r=e(t,["children","closeOnClickOutside"]);const[i,{close:o,open:c}]=K(!1),s=a?q(o):h(),d=Object.assign({},"function"==typeof l?{opened:i}:{});return n.createElement(qt.Provider,{value:{opened:i,close:o,open:c}},n.createElement(N,Object.assign({closeOnClickOutside:a},d,r),n.createElement("div",{ref:s},"function"==typeof l?l({open:c,close:o,opened:i}):l)))};Yt.Target=N.Target,Yt.Dropdown=N.Dropdown;var Qt=u((e=>{var t;return{root:{},iconWrapper:{display:"none"},label:{display:"inline-block",cursor:"pointer",".checked":{display:"none"},".unchecked":{display:"inline-block"},'&[data-checked="true"]':{".checked":{display:"inline-block"},".unchecked":{display:"none"}},'&,&[data-checked="true"]':{padding:0,border:0,height:"auto"}},btnRoot:{pointerEvents:"none",'&[data-variant="secondary"]':{backgroundColor:null===(t=e.colors[e.primaryColor])||void 0===t?void 0:t[0]},".mantine-Button-label":{fontWeight:"normal",fontSize:F(14)}}}}));const Jt=t=>{var{variant:l="secondary",withIcon:a,children:r,buttonProps:i}=t,o=e(t,["variant","withIcon","children","buttonProps"]);const{classes:c,cx:s}=Qt();return n.createElement($,Object.assign({classNames:c},o,{unstyled:!0}),n.createElement(Ce,Object.assign({className:s(c.btnRoot,"checked"),leftIcon:a?n.createElement(ce,{size:18,useCurrentColor:!0}):void 0,variant:l},i),r),n.createElement(Ce,Object.assign({className:s(c.btnRoot,"unchecked"),leftIcon:a?n.createElement(se,{size:18,useCurrentColor:!0}):void 0,variant:"tertiary"},i),r))};Jt.Group=$.Group;export{nt as A,Ce as B,Ut as C,yt as D,De as F,ue as I,Ge as M,xt as N,Nt as O,_t as P,It as R,$e as S,Kt as T,Ne as a,Lt as b,rt as c,Mt as d,Rt as e,Jt as f,Zt as g,At as h,Vt as i,bt as j,ft as k,qe as l,ut as m,gt as n,Ct as o,et as p,wt as q,st as r,Yt as s,pt as t,Je as u};
|