@hhgtech/hhg-components 1.28.58 → 1.28.60
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-f712ad34.js → Plus-814ff7f1.js} +1 -1
- package/build/{WhatsApp-922bab38.js → WhatsApp-b7896776.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-ce8bc3a9.js → constants-4faff4e4.js} +1 -1
- package/build/{constants-d6564fca.js → constants-f4621c3c.js} +1 -1
- package/build/constants.js +1 -1
- package/build/core-d607304d.js +1 -0
- package/build/{dataTransform-32d3fe0a.js → dataTransform-b1b583ee.js} +1 -1
- package/build/ecom.js +1 -1
- package/build/esm/{Plus-e140d11d.js → Plus-b8d1c834.js} +1 -1
- package/build/esm/{WhatsApp-94b28f38.js → WhatsApp-2d802179.js} +1 -1
- package/build/esm/babyGrowth.js +2 -2
- 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-465ad352.js → constants-08ac43d9.js} +1 -1
- package/build/esm/{constants-cbdfa9c7.js → constants-0cd0ca62.js} +1 -1
- package/build/esm/constants.js +1 -1
- package/build/esm/{core-c724d8de.js → core-1e1bdebd.js} +1 -1
- package/build/esm/{dataTransform-426f6148.js → dataTransform-1fe37b96.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-af630a85.js +1 -0
- package/build/esm/{getSocialList-7519b152.js → getSocialList-30da33c1.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-b1190bab.js → index-07d085a6.js} +1 -1
- package/build/esm/{index-5157d6fe.js → index-196cd161.js} +1 -1
- package/build/esm/{index-69ffebf9.js → index-19d94ba6.js} +1 -1
- package/build/esm/{index-f7d2862f.js → index-24cb373f.js} +1 -1
- package/build/esm/{index-902cf5bc.js → index-2a84b189.js} +1 -1
- package/build/esm/{index-37fbc159.js → index-30c02e9e.js} +1 -1
- package/build/esm/index-317d2629.js +1 -0
- package/build/esm/index-33f21911.js +1 -0
- package/build/esm/{index-0060a1e2.js → index-36c3d5ed.js} +1 -1
- package/build/esm/{index-861f1f7a.js → index-3839b22c.js} +3 -3
- package/build/esm/{index-fcd1bf3c.js → index-41f1dc5c.js} +1 -1
- package/build/esm/{index-a966d393.js → index-4ce9ed5e.js} +5 -5
- package/build/esm/{index-bd8670b9.js → index-5ae296ec.js} +1 -1
- package/build/esm/{index-0bbb28e1.js → index-5d609356.js} +5 -5
- package/build/esm/index-66975069.js +117 -0
- package/build/esm/{index-3c7f4191.js → index-9313f566.js} +1 -1
- package/build/esm/index-9d004b6d.js +1 -0
- package/build/esm/{index-3fa780c2.js → index-a67a570a.js} +1 -1
- package/build/esm/index-aa209893.js +1 -0
- package/build/esm/{index-dd1b52b3.js → index-b147d00b.js} +1 -1
- package/build/esm/{index-c809f760.js → index-bb8a9468.js} +1 -1
- package/build/esm/{index-40a24566.js → index-bc7fa29a.js} +1 -1
- package/build/esm/index-f8b809c8.js +1 -0
- package/build/esm/index.js +1 -1
- package/build/esm/{index.styled-1cda3f12.js → index.styled-d65a93a7.js} +3 -3
- package/build/esm/{index.styles-443a8b9d.js → index.styles-d0394c83.js} +1 -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 +1 -1
- package/build/esm/pwg.js +5 -5
- package/build/esm/{routing-6deb7068.js → routing-f2d6084b.js} +1 -1
- package/build/esm/subot/index.d.ts +1 -0
- package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/types.d.ts +12 -6
- package/build/esm/subot/subotInlineRevamp/view.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/with-theme.d.ts +5 -0
- package/build/esm/subot.js +47 -30
- 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-1a715e98.js → types-8a997e8d.js} +67 -67
- package/build/esm/{types-43a9a7c2.js → types-92080f61.js} +22 -22
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-68272cd2.js → useCategory-bd2c270c.js} +1 -1
- package/build/esm/useHealthToolCache-78c1ff56.js +1 -0
- package/build/esm/usePlacesAutocomplete-6b32f949.js +1 -0
- package/build/esm/{useTranslations-dcdb33ca.js → useTranslations-2745f276.js} +1 -1
- package/build/esm/{utils-c3cf3400.js → utils-1a5f1be6.js} +2 -2
- package/build/esm/{utils-498ba951.js → utils-a298bdb0.js} +1 -1
- package/build/esm/{utils-ea76be2a.js → utils-b5496f0d.js} +1 -1
- package/build/esm/vaccination.js +11 -11
- package/build/footer.js +1 -1
- package/build/gAssets.js +1 -1
- package/build/getDynamicHealthTool-2d9bb3df.js +1 -0
- package/build/{getSocialList-1eac634c.js → getSocialList-b2b96a75.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-30263e2c.js → index-03bd0c4f.js} +1 -1
- package/build/{index-e72e40d0.js → index-257b644c.js} +1 -1
- package/build/{index-ae2e69b4.js → index-26b92707.js} +2 -2
- package/build/{index-86c0869b.js → index-36105247.js} +1 -1
- package/build/{index-98916ae2.js → index-49b75293.js} +13 -13
- package/build/{index-97e4387e.js → index-548830c1.js} +1 -1
- package/build/{index-4ded8a86.js → index-616ab28a.js} +1 -1
- package/build/{index-36ed9fcc.js → index-79a22348.js} +1 -1
- package/build/{index-7a5bf34a.js → index-79a3d514.js} +1 -1
- package/build/{index-6584dd52.js → index-7b5d4d6e.js} +1 -1
- package/build/{index-bf9081d8.js → index-7b5fca90.js} +1 -1
- package/build/{index-39d339f9.js → index-80ea3c31.js} +3 -3
- package/build/{index-9ed0b6ca.js → index-87c7dbb7.js} +1 -1
- package/build/{index-cbebaa19.js → index-96830fd7.js} +1 -1
- package/build/{index-cf4e2f0b.js → index-b63b8b91.js} +1 -1
- package/build/{index-1e823830.js → index-ba6e4946.js} +1 -1
- package/build/index-d1dd6c7a.js +1 -0
- package/build/{index-46e10bf4.js → index-dae72e53.js} +1 -1
- package/build/index-e1cb325d.js +1 -0
- package/build/{index-b1a10c8d.js → index-ee6bc277.js} +1 -1
- package/build/{index-dc5707d7.js → index-eeb02a5b.js} +1 -1
- package/build/index-f0d5faab.js +1 -0
- package/build/{index-0b39ed00.js → index-f32b89b0.js} +1 -1
- package/build/index.js +1 -1
- package/build/{index.styled-f9544ae0.js → index.styled-f222c9c8.js} +1 -1
- package/build/{index.styles-3a92c242.js → index.styles-4efe72e9.js} +1 -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 +5 -5
- package/build/pwg.js +1 -1
- package/build/{routing-729273bd.js → routing-9c9c80c1.js} +1 -1
- package/build/subot/index.d.ts +1 -0
- package/build/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/subot/subotInlineRevamp/types.d.ts +12 -6
- package/build/subot/subotInlineRevamp/view.d.ts +1 -1
- package/build/subot/subotInlineRevamp/with-theme.d.ts +5 -0
- package/build/subot.js +67 -50
- 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-74c5ac5f.js → types-0468f679.js} +67 -67
- package/build/{types-e26f31fd.js → types-81221d08.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCategory-2f81aa9a.js → useCategory-d2865a02.js} +1 -1
- package/build/useHealthToolCache-2e3591e5.js +1 -0
- package/build/{usePlacesAutocomplete-d26bd8db.js → usePlacesAutocomplete-cc0a1078.js} +1 -1
- package/build/{useTranslations-954fe610.js → useTranslations-6477c861.js} +1 -1
- package/build/{utils-40ccbbd4.js → utils-3df9caca.js} +1 -1
- package/build/{utils-2bd750bd.js → utils-3e01aa27.js} +1 -1
- package/build/{utils-ff04e1a6.js → utils-964a9106.js} +1 -1
- package/build/vaccination.js +1 -1
- package/package.json +1 -1
- package/build/core-e70f95a2.js +0 -1
- package/build/esm/getDynamicHealthTool-33b7f5d8.js +0 -1
- package/build/esm/index-59276832.js +0 -1
- package/build/esm/index-662bfc5d.js +0 -1
- package/build/esm/index-6674d1d3.js +0 -117
- package/build/esm/index-b20b680e.js +0 -1
- package/build/esm/index-bf735873.js +0 -1
- package/build/esm/index-e2d8ff1c.js +0 -1
- package/build/esm/useHealthToolCache-42739df7.js +0 -1
- package/build/esm/usePlacesAutocomplete-4659e7a7.js +0 -1
- package/build/getDynamicHealthTool-57465d04.js +0 -1
- package/build/index-11479f6e.js +0 -1
- package/build/index-17b96c15.js +0 -1
- package/build/index-732603df.js +0 -1
- package/build/useHealthToolCache-ae84171c.js +0 -1
- /package/build/{BMI_BOYS.percentile.monthly-1c06195c.js → BMI_BOYS.percentile.monthly-197e24e2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-309cc5c4.js → BMI_BOYS.percentile.weekly-d46c05e9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-362925bc.js → BMI_BOYS.percentile.yearly-462650f5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-86c7e9c5.js → BMI_BOYS.zscore.monthly-707f220c.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-82677a28.js → BMI_BOYS.zscore.weekly-20c37e4f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9ae503cc.js → BMI_BOYS.zscore.yearly-3d65c3e4.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-8343be6e.js → BMI_GIRLS.percentile.monthly-72036286.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7a2fda0a.js → BMI_GIRLS.percentile.weekly-f4517420.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-43ee2f14.js → BMI_GIRLS.percentile.yearly-28446379.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b96f5384.js → BMI_GIRLS.zscore.monthly-005a10a8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-732836b5.js → BMI_GIRLS.zscore.weekly-3e062930.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-83bcd846.js → BMI_GIRLS.zscore.yearly-6aa8aab6.js} +0 -0
- /package/build/{ChevronDown-271c6086.js → ChevronDown-19893ba9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-44e08c28.js → HEAD CIRCUM_BOYS.percentile.monthly-b8870beb.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-44d051d4.js → HEAD CIRCUM_BOYS.percentile.weekly-2a47878f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-ec50f8c3.js → HEAD CIRCUM_BOYS.percentile.yearly-5b14a0f4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1693daf7.js → HEAD CIRCUM_BOYS.zscore.monthly-f5e711d0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-e9a374bb.js → HEAD CIRCUM_BOYS.zscore.weekly-160b3502.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-3fdab8c6.js → HEAD CIRCUM_BOYS.zscore.yearly-6a003968.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-fb8ad75c.js → HEAD CIRCUM_GIRLS.percentile.monthly-f39e4289.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-b968fea2.js → HEAD CIRCUM_GIRLS.percentile.weekly-dbc6e1ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7aa7724b.js → HEAD CIRCUM_GIRLS.percentile.yearly-907d57ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-b79dd559.js → HEAD CIRCUM_GIRLS.zscore.monthly-f56ed73d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-3ed98ac6.js → HEAD CIRCUM_GIRLS.zscore.weekly-7cc677c6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-3d09b324.js → HEAD CIRCUM_GIRLS.zscore.yearly-c90768d7.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-84c2134d.js → HEIGHT_BOYS.percentile.monthly-48990fa8.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-2f5fac9b.js → HEIGHT_BOYS.percentile.weekly-dc8c2f28.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-2a16f55c.js → HEIGHT_BOYS.percentile.yearly-11d19395.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-059667dd.js → HEIGHT_BOYS.zscore.monthly-b98de2e2.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-45faee0f.js → HEIGHT_BOYS.zscore.weekly-dd417f4e.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-76930d9f.js → HEIGHT_BOYS.zscore.yearly-b6d5343a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-365f5b43.js → HEIGHT_GIRLS.percentile.monthly-82a28ab2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-87840310.js → HEIGHT_GIRLS.percentile.weekly-0683fa8d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-eab5b71f.js → HEIGHT_GIRLS.percentile.yearly-f4b9ad20.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-5d2026a3.js → HEIGHT_GIRLS.zscore.monthly-a96f346f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-a4f77ba1.js → HEIGHT_GIRLS.zscore.weekly-28a1ca47.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-49bf5c20.js → HEIGHT_GIRLS.zscore.yearly-62a5a970.js} +0 -0
- /package/build/{Subot-783c8b35.js → Subot-834192c4.js} +0 -0
- /package/build/{Visible-cbe2b892.js → Visible-3807cbe8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-a83e56b9.js → WEIGHT_BOYS.percentile.monthly-a9bec4e8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-ffc224c7.js → WEIGHT_BOYS.percentile.weekly-4df2ccf9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-4762b388.js → WEIGHT_BOYS.percentile.yearly-b6ba7de3.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-20d07ddd.js → WEIGHT_BOYS.zscore.monthly-f23bd0eb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b76fe6a2.js → WEIGHT_BOYS.zscore.weekly-65412e2c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-56d6ddd9.js → WEIGHT_BOYS.zscore.yearly-f5b0a208.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-7d179a3a.js → WEIGHT_GIRLS.percentile.monthly-5e107bbc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-3eab2756.js → WEIGHT_GIRLS.percentile.weekly-e9b0b6bb.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-1feeb7aa.js → WEIGHT_GIRLS.percentile.yearly-f11c30aa.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-df4c89cb.js → WEIGHT_GIRLS.zscore.monthly-096ae0ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-7ad866dd.js → WEIGHT_GIRLS.zscore.weekly-55e56b1b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-cd080073.js → WEIGHT_GIRLS.zscore.yearly-3ec7eb89.js} +0 -0
- /package/build/{animation-7187a3d6.js → animation-ca9fbe3e.js} +0 -0
- /package/build/{cookieHelper-2424d30a.js → cookieHelper-dedfa528.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-481c9b6c.js → BMI_BOYS.percentile.monthly-7284e34a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-9ecefc5f.js → BMI_BOYS.percentile.weekly-aee617f3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-31262211.js → BMI_BOYS.percentile.yearly-c8186048.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-97ad526c.js → BMI_BOYS.zscore.monthly-2a6ccd49.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-56d6d40c.js → BMI_BOYS.zscore.weekly-a5020d4d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-81b0b54f.js → BMI_BOYS.zscore.yearly-938d6ae4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1a979035.js → BMI_GIRLS.percentile.monthly-2daed3b1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-20d225ea.js → BMI_GIRLS.percentile.weekly-3104d8ff.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2def92f1.js → BMI_GIRLS.percentile.yearly-b701b321.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-845d7f9f.js → BMI_GIRLS.zscore.monthly-44c5e3c6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-d8e6e4d0.js → BMI_GIRLS.zscore.weekly-47b3bd5f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-2a7ff01d.js → BMI_GIRLS.zscore.yearly-bd778dbc.js} +0 -0
- /package/build/esm/{ChevronDown-ee31c8aa.js → ChevronDown-1e60e314.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-5392740c.js → HEAD CIRCUM_BOYS.percentile.monthly-9f25a777.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-a3446962.js → HEAD CIRCUM_BOYS.percentile.weekly-940bed57.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7de8ea14.js → HEAD CIRCUM_BOYS.percentile.yearly-ddcf6902.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-918e9910.js → HEAD CIRCUM_BOYS.zscore.monthly-5540a1e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-cbd78260.js → HEAD CIRCUM_BOYS.zscore.weekly-506d698e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-2d3423b2.js → HEAD CIRCUM_BOYS.zscore.yearly-06b6a9ea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fb6e13bd.js → HEAD CIRCUM_GIRLS.percentile.monthly-af2de359.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-67823275.js → HEAD CIRCUM_GIRLS.percentile.weekly-f6566170.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-fc675cf8.js → HEAD CIRCUM_GIRLS.percentile.yearly-9f91eb08.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-79856bd0.js → HEAD CIRCUM_GIRLS.zscore.monthly-d4eb4cd0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-b4fc71cd.js → HEAD CIRCUM_GIRLS.zscore.weekly-bafe6486.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-10614559.js → HEAD CIRCUM_GIRLS.zscore.yearly-a5c9738e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3cf12eed.js → HEIGHT_BOYS.percentile.monthly-708f679f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-56a6a86a.js → HEIGHT_BOYS.percentile.weekly-a181fa86.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2f0aadcd.js → HEIGHT_BOYS.percentile.yearly-a794a0b5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-b8c33f35.js → HEIGHT_BOYS.zscore.monthly-1cc57a1a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-aee1c866.js → HEIGHT_BOYS.zscore.weekly-fff66c54.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-08837bdf.js → HEIGHT_BOYS.zscore.yearly-edc274db.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-a56be6e5.js → HEIGHT_GIRLS.percentile.monthly-548d1ce0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-35432dc5.js → HEIGHT_GIRLS.percentile.weekly-6850a067.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-a9e7e75b.js → HEIGHT_GIRLS.percentile.yearly-6b2f3aff.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-13b0edaa.js → HEIGHT_GIRLS.zscore.monthly-aa761d80.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f0d5e23e.js → HEIGHT_GIRLS.zscore.weekly-9625b43b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5d0233cf.js → HEIGHT_GIRLS.zscore.yearly-1ffd0680.js} +0 -0
- /package/build/esm/{Subot-f0ae92e9.js → Subot-76fd0d33.js} +0 -0
- /package/build/esm/{Visible-05cddf20.js → Visible-d324ce4b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-fa4233f7.js → WEIGHT_BOYS.percentile.monthly-7be7f640.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-262cbe6c.js → WEIGHT_BOYS.percentile.weekly-70d1cd83.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-4fc46ee8.js → WEIGHT_BOYS.percentile.yearly-2a0ef95a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-e5559992.js → WEIGHT_BOYS.zscore.monthly-7c78d14e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-19a1252d.js → WEIGHT_BOYS.zscore.weekly-caecc334.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-cb880a38.js → WEIGHT_BOYS.zscore.yearly-945a3e86.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-bd523d31.js → WEIGHT_GIRLS.percentile.monthly-268c2453.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b294ccd6.js → WEIGHT_GIRLS.percentile.weekly-27b3529d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-8a6ab96a.js → WEIGHT_GIRLS.percentile.yearly-4a385f52.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-4a0fbc9b.js → WEIGHT_GIRLS.zscore.monthly-71ca61ef.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-8f51f53a.js → WEIGHT_GIRLS.zscore.weekly-7738a061.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c3a2e45d.js → WEIGHT_GIRLS.zscore.yearly-cc0326e5.js} +0 -0
- /package/build/esm/{animation-bddac9b6.js → animation-afdebd15.js} +0 -0
- /package/build/esm/{cookieHelper-1fb3be1d.js → cookieHelper-edb1014c.js} +0 -0
- /package/build/esm/{index-c7fa112f.js → index-1d7e19b1.js} +0 -0
- /package/build/esm/{index-49960be3.js → index-22a43d5a.js} +0 -0
- /package/build/esm/{index-9e042d54.js → index-2b034e6c.js} +0 -0
- /package/build/esm/{isProduction-6cfd2e5f.js → isProduction-5c72172a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-fc661717.js → localizeNumberFormat-e57f94fd.js} +0 -0
- /package/build/esm/{normalizeLink-f9553c7e.js → normalizeLink-68c1c249.js} +0 -0
- /package/build/esm/{number-3adfc7c9.js → number-d6eb475f.js} +0 -0
- /package/build/esm/{paths-2d7752c5.js → paths-d9409117.js} +0 -0
- /package/build/esm/{theme-329bebe3.js → theme-9d4ebb16.js} +0 -0
- /package/build/esm/{translationsContext-5b1b71c5.js → translationsContext-b3ac733d.js} +0 -0
- /package/build/esm/{tslib.es6-65aab26e.js → tslib.es6-8314c624.js} +0 -0
- /package/build/esm/{types-c90a21ae.js → types-4e38b890.js} +0 -0
- /package/build/esm/{useIsInit-b5e1063f.js → useIsInit-87f1345f.js} +0 -0
- /package/build/esm/{useOutsideClick-1c0cadb4.js → useOutsideClick-a2f1623b.js} +0 -0
- /package/build/esm/{useScrollbarSize-c446cb03.js → useScrollbarSize-1e1f61e3.js} +0 -0
- /package/build/esm/{utils-5df7c3ca.js → utils-fe6d1c2a.js} +0 -0
- /package/build/{index-8ab9f68b.js → index-0e2719f9.js} +0 -0
- /package/build/{index-e6268d5b.js → index-51f2280c.js} +0 -0
- /package/build/{index-5716dbb6.js → index-a229310f.js} +0 -0
- /package/build/{isProduction-4a6daf99.js → isProduction-73bdc6d7.js} +0 -0
- /package/build/{localizeNumberFormat-27ee6051.js → localizeNumberFormat-9b683cba.js} +0 -0
- /package/build/{normalizeLink-00561cf7.js → normalizeLink-61296854.js} +0 -0
- /package/build/{number-95c0dcd8.js → number-ae53b002.js} +0 -0
- /package/build/{paths-22a2f046.js → paths-dd126f4e.js} +0 -0
- /package/build/{theme-330bc0a7.js → theme-764c1525.js} +0 -0
- /package/build/{translationsContext-8f927975.js → translationsContext-d6d6476f.js} +0 -0
- /package/build/{tslib.es6-a180af9a.js → tslib.es6-f56038f0.js} +0 -0
- /package/build/{types-02b14d58.js → types-b582c22c.js} +0 -0
- /package/build/{useIsInit-e6ebb515.js → useIsInit-07753b5c.js} +0 -0
- /package/build/{useOutsideClick-97383323.js → useOutsideClick-f8dcb209.js} +0 -0
- /package/build/{useScrollbarSize-067c1620.js → useScrollbarSize-774bfe2f.js} +0 -0
- /package/build/{utils-66856242.js → utils-96f81909.js} +0 -0
package/build/esm/subot.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-f0ae92e9.js";import{a as _,_ as x}from"./tslib.es6-65aab26e.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-902cf5bc.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-c3cf3400.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-6cfd2e5f.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-9e042d54.js";import{D as G,L as V}from"./index-f7d2862f.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-5df7c3ca.js";import X from"styled-components";import{B as K,S as J}from"./index-3c7f4191.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-0060a1e2.js";import{I as ne}from"./index-69ffebf9.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-e140d11d.js";import{t as re}from"./theme-329bebe3.js";import"@mantine/dates";import"./translationsContext-5b1b71c5.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-4659e7a7.js";import{B as ye}from"./index-5157d6fe.js";import{D as _e}from"./index-dd1b52b3.js";import"date-fns/locale";import"./cookieHelper-1fb3be1d.js";import"slugify";import"./useTranslations-dcdb33ca.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-94b28f38.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode",(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})=>{const{formatMessage:h,action:{pushNotifications:f}}=i(L),y=n(null),E=n(null),[w,S]=o(!0),[N,O]=o(""),[T,M]=o([]),[P,U]=o(!1),[R,A]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=y.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff")})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m]);const D=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),$=l((()=>{var e;null===(e=y.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),F=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];S(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,E.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:D});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:E.current}),setTimeout((()=>{$()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);S(!1),O(c),M(u),A(Object.assign(Object.assign({},e),d))}))),[]),q=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=N,o=[...T];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(S(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{M(o),O(n),S(!1),Ze({nodes:o,activeId:n,params:R,accountIdFromLogs:E.current})}),250)}),[T,N]),z=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(T,N,e.action_id)),i=yield ke(t);if(S(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==T.findIndex((e=>e.id===a.id))?q(a):q(a,t))}f({title:h({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=T.find((e=>e.id==N));t&&t.hasOwnProperty("first_node")&&(O(T[1].id.toString()),Ze({nodes:T,activeId:T[1].id.toString(),params:D(),accountIdFromLogs:E.current}))}))),[q,T]),H=l((()=>{const e=T.findIndex((({id:e})=>e==N));if(e&&-1!==e&&e>1){const t=T[e-1];O(t.id),Ze({nodes:T,activeId:t.id,params:R,accountIdFromLogs:E.current})}}),[T,N]),G=l((()=>{const e=D();F(e,!1);const t=T[0],i=T[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:E.current})}),[D,F,T]),V=l((e=>{M((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==N?t.map((t=>{const i=t;return i.id===N?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[N]);a((()=>{if(C.get(I)){const e=D();F(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=D();F(e)}})}),[]),a((()=>{if(!T.length)return;T.find((e=>e.id==N))&&N||O(d+"")}),[N,T]);const Y=r((()=>({activeId:N,params:R,listNodes:T,loading:w,setLoading:S,getParams:D,onNext:z,onPrev:H,onSubmit:q,onStartOver:G,onChange:V,isShowFooter:P,setIsShowFooter:U,isFullContainer:c,isDisabledAnimationOnMobile:v,onCloseMobile:g,userInfo:b})),[N,z,H,q,V,G,P,R,T,w,S,D,c,v,g,b]);return T.length?e.createElement(tt.Provider,{value:Y},e.createElement("div",{ref:y},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
|
|
1
|
+
import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect as a,useCallback as l,useMemo as r,forwardRef as s,memo as d,useImperativeHandle as c}from"react";import{e as u,c as m,N as p,d as v,f as g,g as b,E as h,L as f,F as y}from"./Subot-76fd0d33.js";import{a as _,_ as x}from"./tslib.es6-8314c624.js";import{B as E,d as w,M as S,e as k,G as I,h as N,A as O,f as T}from"./index-2a84b189.js";import C from"js-cookie";import M from"fastdom";import P from"fastdom/extensions/fastdom-promised";import U from"string-format";import{G as B,b as j,x as R,y as A,T as L,L as D}from"./utils-1a5f1be6.js";import{v4 as $}from"uuid";import{i as F}from"./isProduction-5c72172a.js";import q from"hex-rgb";import z from"classnames";import{C as H}from"./index-2b034e6c.js";import{D as G,L as V}from"./index-24cb373f.js";import{motion as Y}from"framer-motion";import{M as W}from"./utils-fe6d1c2a.js";import X from"styled-components";import{B as K,S as J}from"./index-9313f566.js";import{Remarkable as Q}from"remarkable";import{useInView as Z}from"react-intersection-observer";import{Box as ee,Textarea as te}from"@mantine/core";import{C as ie}from"./index-36c3d5ed.js";import{I as ne}from"./index-19d94ba6.js";import oe from"dayjs";import ae from"dayjs/plugin/isSameOrBefore";import{T as le}from"./Plus-b8d1c834.js";import{t as re}from"./theme-9d4ebb16.js";import"@mantine/dates";import"./translationsContext-b3ac733d.js";import"@mantine/hooks";import se from"lodash/isEmpty";import{Controller as de,useForm as ce}from"react-hook-form";import ue,{getCountryCallingCode as me,isPossiblePhoneNumber as pe,parsePhoneNumber as ve}from"react-phone-number-input";import{LoadScript as ge}from"@react-google-maps/api";import{u as be,G as he,a as fe}from"./usePlacesAutocomplete-6b32f949.js";import{B as ye}from"./index-196cd161.js";import{D as _e}from"./index-b147d00b.js";import"date-fns/locale";import"./cookieHelper-edb1014c.js";import"slugify";import"./useTranslations-2745f276.js";import"date-fns";import"react-day-picker/DayPickerInput";import"@mantine/carousel";import"./WhatsApp-2d802179.js";const xe=M.extend(P),Ee={POST_VERIFY_SMS_OTP:"sms/update-phone",POST_SEND_OTP:"sms/otp",POST_SEND_OTP_WHATSAPP:"whatsapp/otp",POST_VERIFY_OTP:"sms/verify",POST_VERIFY_OTP_WHATSAPP:"sms/verify-whatsapp",GET_LANDING_PAGE_FIRST_NODE:"landing_page/bot",GET_LANDING_PAGE_NEXT_NODE:"landing_page/messages",POST_LANDING_PAGE_IMPRESSION:"landing_page/impressions",POST_LANDING_PAGE_CLICK:"landing_page/clicks",GET_INLINE_FIRST_NODE:"bots",GET_INLINE_MESSAGE:"inline/messages",GET_INLINE_IMPRESSION:"inline/impressions",GET_INLINE_CLICK:"inline/clicks",GET_SUBOT_LOG:"log/bot/{botId}/{cookieId}/{accountId}?type={type}",POST_SUBOT_CREATE_LOG:"log/bot",FETCH_URL_DATA:"preview",GET_VOUCHER_QUANTITY:"vouchers/total_quantity?search={search}&client_id={clientId}"},we={cached:{},clearCached:e=>{console.log(we.cached),Object.keys(we.cached).filter((t=>t.startsWith(e))).forEach((e=>{console.log(e),we.cached[e]=void 0}))},withCached:(e,t)=>_(void 0,void 0,void 0,(function*(){if("waitingTheFirstResponse"===we.cached[e])return new Promise((t=>{const i=(new Date).getTime(),n=setInterval((()=>{(new Date).getTime()-i>3e3&&clearInterval(n),"object"==typeof we.cached[e]&&(t(we.cached[e]),clearInterval(n))}),100)}));if("object"==typeof we.cached[e])return we.cached[e];we.cached[e]="waitingTheFirstResponse";try{const i=yield t();return we.cached[e]=i,setTimeout((()=>{we.cached[e]=void 0}),18e5),i}catch(t){return we.cached[e]=void 0,Promise.reject(t)}}))},Se=(e,t)=>{const{subotApiUrl:i}=null==B?void 0:B.env;return(i.endsWith("frontend/api/")?i:i+"frontend/api/")+U(e,Object.assign({},t))},ke=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_MESSAGE),"POST",{data:e})}catch(e){}})),Ie=e=>{var t;if(1===(null==e?void 0:e._status)&&(null===(t=null==e?void 0:e._data)||void 0===t?void 0:t.extra_settings))try{const t=JSON.parse(e._data.extra_settings);e._data.extra_settings="object"==typeof t?t:{sync_data_friso_campaign:!1}}catch(t){e._data.extra_settings={sync_data_friso_campaign:!1}}return e},Ne=e=>_(void 0,void 0,void 0,(function*(){try{return yield we.withCached("SubotInlineFirstNode/"+e,(()=>_(void 0,void 0,void 0,(function*(){const t=yield j(Se(Ee.GET_INLINE_FIRST_NODE)+`/${e}`,"GET");return Ie(t),t}))))}catch(e){return null}})),Oe=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_CLICK),"POST",{data:e})}catch(e){}})),Te=e=>_(void 0,void 0,void 0,(function*(){try{return yield j(Se(Ee.GET_INLINE_IMPRESSION),"POST",{data:e})}catch(e){}})),Ce=["form_submit_meta","selected_actions","current_selected","current_keys","current_polls"],Me=["bot_id","node_id","action_id","action_value","current_score","gtm_id","ga_client_id","is_new","title_url","url","window_id",...Ce],Pe=(e,t)=>(Object.keys(t).map((i=>{const n=t[i];if("source"!==i){if(Me.includes(i))if(Ce.includes(i))try{e[i]=JSON.parse(n)}catch(e){}else e[i]="account_id"!==i&&"current_score"!==i&&"bot_id"!==i?n:parseInt(n)}else e.is_new="first_login"===n})),e),Ue=e=>[{id:$(),label:JSON.stringify({title:"",description:""}),type:u.SSO_INTENT,url:""},{id:$(),label:JSON.stringify({title:e({id:"subot.myHealth.title",defaultMessage:"My Health"}),description:e({id:"subot.myHealth.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/my-health.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.saveData.title",defaultMessage:"Save Data"}),description:e({id:"subot.saveData.description",defaultMessage:"Hellobacsi would like to learn from your data to provide better healthcare for you"})}),type:u.SSO_INTENT,url:"/images/subot/file-storage.svg"},{id:$(),label:JSON.stringify({title:e({id:"subot.productYourIdentifiers.title",defaultMessage:"Protect your identifiers"}),description:e({id:"subot.productYourIdentifiers.description",defaultMessage:"Personal identifiers (like your name) will always be removed to protect your privacy. "})}),type:u.SSO_INTENT,url:"/images/subot/shield.svg"}];function Be(e){const t=e.condition,i=e.finished,n=e.timeout||3e3,o=(new Date).getTime(),a=setInterval((()=>{((new Date).getTime()-o>n||t())&&(clearInterval(a),i())}),300)}const je=e=>R.parse(e||"")["hhg-id"]||C.get("hhg-id")||"",Re=e=>{if(e)return C.set("hhg-id",e),e;const t=je();if(t)return t;const i=$();return C.set("hhg-id",i),i},Ae=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(i).sub}catch(e){return""}},Le=e=>{const t=R.parse(e||"")[E]||C.get(E)||"";try{const e=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")),n=JSON.parse(i);return{email:n.email,id:n.sub}}catch(e){return{email:"",id:0}}},De=$(),$e=()=>De,Fe=(e,t)=>!t&&("undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname))?"http://localhost":`https://${F?"":"discover."}${w[e]}`,qe=e=>{const t=e||("undefined"==typeof navigator?"":navigator.userAgent);return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substring(0,4)))},ze=e=>{const t=document.createElement("a");t.href=e,t.target="_blank",t.click()},He=30,Ge=e=>{try{return e.dynamic_score||{}}catch(e){return{}}},Ve=(e,t,i,n)=>{const o=Ge(e[0]);if(!t)return{};const a=e.findIndex((e=>e.id==t)),l=e.reduce(((e,l,r)=>{var s,d;if(r>a)return e;const c=l,u=i&&c.id===t?{action_id:i}:c._message;let p=0;const v=null===(s=c.actions)||void 0===s?void 0:s.find((e=>e.id===(null==u?void 0:u.action_id)));p+=(null==v?void 0:v.score)||0;const g=void 0!==o[c.id],b=i&&c.id===t?n:null==u?void 0:u.form_submit_meta;if(g&&c.type===m.FORM&&b){const e=o[c.id].action_id,t=null===(d=c.actions)||void 0===d?void 0:d.find((t=>t.id===e)),i=null==t?void 0:t.key,n=b.find((e=>e.key===i&&"number"===e.control));if(o[c.id].number&&["+","-","x","/"].includes(o[c.id].operator)&&(null==n?void 0:n.value)&&Number(n.value)){const e=Number(n.value),t=o[c.id].operator,i=o[c.id].number;let a=0;"+"===t&&(a=e+i),"-"===t&&(a=e-i),"x"===t&&(a=e*i),"/"===t&&(a=e/i),isNaN(a)||(p+=a)}}return e+p}),0);return{current_total_dynamic_score:l}},Ye=(e,t)=>{const i=Ge(t[0]);if(0===Object.keys(i).length)return e;const n=t.filter((e=>e.type===m.FORM));return Object.keys(i).forEach((t=>{var o,a,l;const r=n.find((e=>e.id===t)),s=null===(o=null==r?void 0:r.actions)||void 0===o?void 0:o.find((e=>{var n;return e.id===(null===(n=i[t])||void 0===n?void 0:n.action_id)})),d=null==s?void 0:s.key,c=null===(l=null===(a=null==r?void 0:r._message)||void 0===a?void 0:a.form_submit_meta)||void 0===l?void 0:l.find((e=>e.key===d&&"number"===e.control));if(i[t].number&&["+","-","x","/"].includes(i[t].operator)&&(null==c?void 0:c.value)&&Number(c.value)){const n=Number(c.value),o=i[t].operator,a=i[t].number;let l=0;if("+"===o&&(l=n+a),"-"===o&&(l=n-a),"x"===o&&(l=n*a),"/"===o&&(l=n/a),e.includes(`{{var:${d}}}`)){const t=new RegExp(`{{var:${d}}}`,"g");e=e.replace(t,String(Math.floor(100*l)/100))}}})),e},We="other",Xe="stateInlineSSO",Ke=()=>{try{const e=window.next.router.components["/[...slug]"].props.pageProps;return"services-connection"===e.template?{project_id:"care-path",user_funnel:e.spotlight.additionalSlugActive||"",audience_name:e.spotlight.groupIdActive||""}:{}}catch(e){return{}}},Je=e=>{const t=e.filter((e=>"Unified Questions"===e.name)).reduce(((e,t)=>{var i,n,o,a,l,r,s,d,c,u,p,v,b,h,f,y,_,x,E,w,S;if(t.actions&&(null===(i=t._message)||void 0===i?void 0:i.action_id)&&(null===(n=t._message)||void 0===n?void 0:n.action_value)){const i=t._message.action_value;if(t.type===m.FORM){const i=["address","province","district","commune"],n=((null===(o=t._message)||void 0===o?void 0:o.form_submit_meta)||[]).filter((e=>!i.includes(e.control))),m=((null===(a=t._message)||void 0===a?void 0:a.form_submit_meta)||[]).filter((e=>i.includes(e.control))).reduce(((e,t)=>(e[t.control]=t,e)),{}),p=[null===(l=m.address)||void 0===l?void 0:l.value,null===(r=m.commune)||void 0===r?void 0:r.value,null===(s=m.district)||void 0===s?void 0:s.value,null===(d=m.province)||void 0===d?void 0:d.value].filter(Boolean).join(", ");p&&m.address?e.push({attribute:m.address.key,value:p,label_question:(null===(u=null===(c=t.intents)||void 0===c?void 0:c[0])||void 0===u?void 0:u.label)||""}):n.forEach((i=>{var n,o;e.push({attribute:i.key,value:i.value,label_question:(null===(o=null===(n=t.intents)||void 0===n?void 0:n[0])||void 0===o?void 0:o.label)||""})}))}if(t.type===m.TEXT)if(t.is_multi_select){const i=Object.keys(t._message.selected_actions||{}),n=t.actions.filter((e=>e.label&&i.includes(e.id))).map((e=>e.label));i.length&&e.push({attribute:t.actions[0].key||"",value:n,label_question:(null===(v=null===(p=t.intents)||void 0===p?void 0:p[0])||void 0===v?void 0:v.label)||""})}else{const n=t._message.action_id,o=t.actions.find((e=>e.id===n)),a=null==o?void 0:o.label,l=null===(f=null===(h=null===(b=t._message)||void 0===b?void 0:b.form_submit_meta)||void 0===h?void 0:h.find((e=>e.key===We)))||void 0===f?void 0:f.value,r=(null==o?void 0:o.type)===g.USER_CHOICE_TEXT_BY_INPUT;a&&n&&e.push({attribute:i,value:r&&l?l:a,label_question:(null===(_=null===(y=t.intents)||void 0===y?void 0:y[0])||void 0===_?void 0:_.label)||""})}if(t.type===m.POLL){const i=t.id,n=(null===(E=null===(x=t._message)||void 0===x?void 0:x.current_polls)||void 0===E?void 0:E[i])||[],o=t.actions.filter((e=>e.label&&n.includes(e.id))).map((e=>e.label));n.length&&e.push({attribute:t.actions[0].key||"",value:o,label_question:(null===(S=null===(w=t.intents)||void 0===w?void 0:w[0])||void 0===S?void 0:S.label)||""})}}return e}),[]);return t},Qe=(e,t)=>{var i;try{if("ACUVUE"!==(null===(i=t.extra_settings)||void 0===i?void 0:i.subot_type))return;let n="",o="",a="",l=Le().email;if((e||[]).forEach((e=>{var t,i,r;const s=e._message;if(!s)return;const d=null===(t=e.actions)||void 0===t?void 0:t.find((e=>e.id===s.action_id));if("voucher_product"===s.action_value?n=(null==d?void 0:d.label)||"":"voucher_color"===s.action_value&&(o=(null==d?void 0:d.label)||""),e.type===m.FORM){const e=null===(i=s.form_submit_meta)||void 0===i?void 0:i.find((e=>"voucher_size"===e.key)),t=null===(r=s.form_submit_meta)||void 0===r?void 0:r.find((e=>"email"===e.control));e&&(a=e.value),t&&(l=t.value)}})),"ACUVUE® OASYS (1-DAY) WITH HYDRALUXE®"===n&&l)return{email:l,voucherName:n};if(n&&o&&a&&l)return{email:l,voucherName:`${n}|${o}|${a}`}}catch(e){console.log("ExtractVoucherAnswer",e)}},Ze=({nodes:e,activeId:t,params:i,accountIdFromLogs:n})=>_(void 0,void 0,void 0,(function*(){try{let o="in_progress";const a=e[e.length-1];(null==a?void 0:a.type)&&v.includes(a.type)&&(o="complete");const l=e.slice(1),r={activeId:t,params:i,nodes:l,tracking:Object.assign(Object.assign({},Ke()),{full_url:window.location.href}),unifiedAnswers:Je(l),voucherAnswers:Qe(l,e[0])},s={cookie_id:Re(),account_id:n||Ae()||null,bot_id:e[0].id,flow_uuid:e[0].flow_uuid,data:JSON.stringify(r),status:o,type:"inline",market:S[A]};yield j(Se(Ee.POST_SUBOT_CREATE_LOG),"POST",{data:s})}catch(e){}})),et=(e,t)=>{try{const[i,n,o]=q(e,{format:"array"});return`rgba(${i}, ${n}, ${o}, ${t})`}catch(e){return}},tt=t({activeId:"",params:{},listNodes:[],loading:!0,getParams:()=>({}),onNext:()=>null,onPrev:()=>null,onSubmit:()=>null,onStartOver:()=>null,onChange:()=>null,isShowFooter:!1,setIsShowFooter:()=>null,setLoading:()=>null,userInfo:null}),it=({children:t,articleLink:s,subotId:d,isFullContainer:c,bgColor:u,primaryColor:m,textColor:v,textButtonColor:g,bgContentColor:b,bgImgFullContainer:h,isDisabledAnimationOnMobile:f,onCloseMobile:y,userInfo:E})=>{const{formatMessage:w,action:{pushNotifications:S}}=i(L),N=n(null),O=n(null),[T,M]=o(!0),[P,U]=o(""),[R,A]=o([]),[D,$]=o(!1),[F,q]=o({});a((()=>{const e=u||"#e3f2ff",t=m||"#2d87f3",i=(new Date).getTime(),n=setInterval((()=>{const o=N.current,a=(new Date).getTime();o&&(xe.mutate((()=>{o.style.setProperty("--subot-inline-bg-color",e),o.style.setProperty("--subot-inline-primary-color",t),o.style.setProperty("--subot-inline-primary-color-hover",et(t,.9)||t),o.style.setProperty("--subot-inline-primary-color-100",et(t,.1)||"#e3f2ff"),o.style.setProperty("--subot-inline-primary-color-300",et(t,.3)||"#bcdeff"),v&&o.style.setProperty("--subot-inline-text-color",v),g&&o.style.setProperty("--subot-inline-text-button-color",g),b&&o.style.setProperty("--subot-inline-bg-content-color",b)})),clearInterval(n)),a-i>18e4&&clearInterval(n)}),100);return()=>{clearInterval(n)}}),[u,m,v,g,b]);const z=l((()=>{const e=window.gaData,t=window.location.origin+k+("tl-PH"===(null==B?void 0:B.locale)?s.replace("fil/",""):s),i={bot_id:d,account_id:Ae()||null,action_id:"",action_value:"",cookie_id:Re(),current_score:0,current_keys:[],current_selected:[],form_submit_meta:[],gtm_id:e?Object.keys(e)[0]:"",ga_client_id:C.get("_ga")||"",is_new:!1,mode:"inline",node_id:"",selected_actions:{},title_url:document.title||"",url:t.replace("http://localhost:6006","https://discover.hellobacsi.com").replace("http://localhost","https://discover.hellobacsi.com").replace("dev.","discover.").replace("staging.hellohealthgroup.com","discover.hellodoctor.com.ph").replace("https://hellohealthgroup.com","https://hellodoctor.com.ph"),window_id:$e()};return Pe(i,null==B?void 0:B.router.query)}),[]),H=l((()=>{var e;null===(e=N.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start",inline:"center"})}),[]),G=l(((e,t=!0)=>_(void 0,void 0,void 0,(function*(){var i;if(!e||!e.url||!e.bot_id)return;let n="",o=[];M(!0);const a=yield Ne(e.bot_id);1===(null==a?void 0:a._status)&&(n=null==a?void 0:a._data.id.toString(),o.push(null==a?void 0:a._data,null==a?void 0:a._data.first_node));const l=t?yield(r=o[0],_(void 0,void 0,void 0,(function*(){var e,t;try{if(!r)return null;const i=yield j(Se(Ee.GET_SUBOT_LOG,{botId:r.id,cookieId:Re(),accountId:Ae()||"",type:"inline"}),"GET");if(!(null===(e=null==i?void 0:i._data)||void 0===e?void 0:e.data)||"inline"!==(null===(t=null==i?void 0:i._data)||void 0===t?void 0:t.type))return null;const n=JSON.parse(i._data.data),o=n.nodes,a="in_progress"===i._data.status,l="complete"===i._data.status;return a||l?{nodes:[r,...o],activeId:n.activeId,params:Object.assign(Object.assign({},n.params),{account_id:Ae()||n.params.account_id||null})}:null}catch(e){return null}}))):null;var r;l&&(o=l.nodes,n=l.activeId,O.current=(null===(i=l.params)||void 0===i?void 0:i.account_id)||0);const s=((e,{getParams:t})=>{try{if(!Ae())return null;const i=JSON.parse(localStorage.getItem(Xe)||""),n=18e5;return(null==i?void 0:i.botId)===e&&i.listNodes&&i.activeId&&i.createdAt+n>Date.now()&&(localStorage.removeItem(Xe),i.listNodes.slice(-1)[0].position===p.SSO)?{listNodes:i.listNodes,activeId:i.activeId,params:Object.assign(Object.assign(Object.assign({},t()),i.params),{account_id:Ae()||null,cookie_id:Re(i.params.cookie_id)})}:null}catch(e){return null}})(e.bot_id,{getParams:z});if(s&&s.params.action_id&&s.params.action_value){const e=yield ke(s.params);1===(null==e?void 0:e._status)&&(null==e?void 0:e._data.node)&&(n=null==e?void 0:e._data.node.id,o=s.listNodes,o[o.length-1]=null==e?void 0:e._data.node,Ze({nodes:o,activeId:n,params:s.params,accountIdFromLogs:O.current}),setTimeout((()=>{H()}),100))}const d=(null==s?void 0:s.params)||(null==l?void 0:l.params)||e,[c,u]=((e,t,i)=>{if(!(null==e?void 0:e.subot_field_type))return[t,i];const n=i.find((e=>e.id==t));return n&&n.hasOwnProperty("first_node")&&i.length>1?[i[1].id,i]:[t,i]})(o[0],n,o);M(!1),U(c),A(u),q(Object.assign(Object.assign({},e),d))}))),[]),V=l(((e,t)=>{const i=document.querySelector(`.si-revamp-event-submission[data-bot-id="${d}"]`);i&&i.click();let n=P,o=[...R];if(null==t?void 0:t.node_id){const e=o.findIndex((({id:e})=>e==t.node_id));-1!==e&&(o[e]._message=Object.assign(Object.assign({},o[e]._message),t),o=[...o.slice(0,e+1)])}if(M(!0),e){const t=o.findIndex((({id:t})=>t==(null==e?void 0:e.id)));if(-1===t)o=[...o,Object.assign({},e)];else{const i=Object.assign(Object.assign(Object.assign({},o[t]),e),{_message:Object.assign(Object.assign({},o[t]._message),null==e?void 0:e._message)});o=[...o.slice(0,t),Object.assign({},i),...o.slice(t+1)]}n=e.id}setTimeout((()=>{A(o),U(n),M(!1),Ze({nodes:o,activeId:n,params:F,accountIdFromLogs:O.current})}),250)}),[R,P]),Y=l((e=>_(void 0,void 0,void 0,(function*(){if(null==e?void 0:e.node_id){const t=Object.assign(Object.assign({},e),Ve(R,P,e.action_id)),i=yield ke(t);if(M(!1),1===(null==i?void 0:i._status)){const e=null==i?void 0:i._data,{node:n}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},n),{_message:Object.assign(Object.assign({},o),{node_id:n.id})});return void(-1!==R.findIndex((e=>e.id===a.id))?V(a):V(a,t))}S({title:w({id:"notification.comment.somethingWrong"}),message:"",type:"danger"})}const t=R.find((e=>e.id==P));t&&t.hasOwnProperty("first_node")&&(U(R[1].id.toString()),Ze({nodes:R,activeId:R[1].id.toString(),params:z(),accountIdFromLogs:O.current}))}))),[V,R]),W=l((()=>{const e=R.findIndex((({id:e})=>e==P));if(e&&-1!==e&&e>1){const t=R[e-1];U(t.id),Ze({nodes:R,activeId:t.id,params:F,accountIdFromLogs:O.current})}}),[R,P]),X=l((()=>{const e=z();G(e,!1);const t=R[0],i=R[1];Ze({nodes:[t,i],activeId:String(t.id),params:e,accountIdFromLogs:O.current})}),[z,G,R]),K=l((e=>{A((t=>e&&(null==e?void 0:e.node_id)&&(null==e?void 0:e.node_id)==P?t.map((t=>{const i=t;return i.id===P?Object.assign(Object.assign({},t),{_message:i._message?Object.assign(Object.assign({},i._message),e):e}):t})):t))}),[P]);a((()=>{if(C.get(I)){const e=z();G(e)}else Be({condition:()=>Boolean(C.get(I)),finished:()=>{const e=z();G(e)}})}),[]),a((()=>{if(!R.length)return;R.find((e=>e.id==P))&&P||U(d+"")}),[P,R]);const J=r((()=>({activeId:P,params:F,listNodes:R,loading:T,setLoading:M,getParams:z,onNext:Y,onPrev:W,onSubmit:V,onStartOver:X,onChange:K,isShowFooter:D,setIsShowFooter:$,isFullContainer:c,bgImgFullContainer:h,isDisabledAnimationOnMobile:f,onCloseMobile:y,userInfo:E})),[P,Y,W,V,K,X,D,F,R,T,M,z,c,f,y,E,h]);return R.length?e.createElement(tt.Provider,{value:J},e.createElement("div",{ref:N},t)):null},nt=t=>e.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.991 4.99a1 1 0 0 0-.697 1.717L10.587 12l-5.293 5.293a1 1 0 1 0 1.414 1.415L12 13.415l5.293 5.293a1 1 0 1 0 1.414-1.415L13.415 12l5.293-5.293a1 1 0 1 0-1.414-1.414L12 10.586 6.708 5.293a1 1 0 0 0-.717-.302",fill:"#595959"})),ot="480px",at=X.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
4
|
.si-inline-revamp-container {
|
|
@@ -12,7 +12,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
12
12
|
position: relative;
|
|
13
13
|
border: 1px solid var(--subot-inline-primary-color-300);
|
|
14
14
|
justify-content: center;
|
|
15
|
-
background-color: #fff;
|
|
15
|
+
background-color: var(--subot-inline-bg-content-color, #fff);
|
|
16
16
|
position: absolute;
|
|
17
17
|
top: 0;
|
|
18
18
|
left: 0;
|
|
@@ -71,7 +71,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&::-webkit-scrollbar-thumb {
|
|
74
|
-
background-color: #8c8c8c;
|
|
74
|
+
background-color: var(--subot-inline-text-color, #8c8c8c);
|
|
75
75
|
border-radius: 2px;
|
|
76
76
|
outline: none;
|
|
77
77
|
}
|
|
@@ -196,7 +196,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.si-headline {
|
|
199
|
-
color: #262626;
|
|
199
|
+
color: var(--subot-inline-text-color, #262626);
|
|
200
200
|
font-size: 28px;
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
@@ -225,19 +225,22 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
225
225
|
cursor: pointer;
|
|
226
226
|
}
|
|
227
227
|
.si-disclaimer-desc {
|
|
228
|
-
color: #262626;
|
|
228
|
+
/* color: #262626; */
|
|
229
|
+
color: var(--subot-inline-text-color, #262626);
|
|
229
230
|
font-size: 14px;
|
|
230
231
|
font-weight: 600;
|
|
231
232
|
line-height: 150%;
|
|
232
233
|
letter-spacing: -0.07px;
|
|
233
234
|
}
|
|
234
235
|
.si-disclaimer-down {
|
|
235
|
-
color: black;
|
|
236
|
+
/* color: black; */
|
|
237
|
+
color: var(--subot-inline-text-color, black);
|
|
236
238
|
}
|
|
237
239
|
|
|
238
240
|
.si-disclaimer-expanded {
|
|
239
241
|
font-size: 12px;
|
|
240
|
-
color: #595959;
|
|
242
|
+
/* color: #595959; */
|
|
243
|
+
color: var(--subot-inline-text-color, #595959);
|
|
241
244
|
line-height: 1.4;
|
|
242
245
|
padding-top: 8px;
|
|
243
246
|
overflow: hidden;
|
|
@@ -255,7 +258,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
255
258
|
height: 40px;
|
|
256
259
|
font-weight: 600;
|
|
257
260
|
font-size: 14px;
|
|
258
|
-
color: #595959;
|
|
261
|
+
color: var(--subot-inline-text-color, #595959);
|
|
259
262
|
cursor: pointer;
|
|
260
263
|
transition: all 0.3s ease;
|
|
261
264
|
text-align: left;
|
|
@@ -308,7 +311,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
308
311
|
}
|
|
309
312
|
}
|
|
310
313
|
}
|
|
311
|
-
`,pt=t=>e.createElement("svg",Object.assign({width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"m7.988 8 3.417 3.417a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.07-.007L6.385 8.52a.76.76 0 0 1-.208-.525q-.001-.15.05-.28a.7.7 0 0 1 .157-.236l3.951-3.951a.73.73 0 0 1 .528-.237q.292 0 .521.23a.73.73 0 0 1 0 1.062z",fill:"currentColor"})),vt=t=>e.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M8.917 8 5.5 4.582a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.07.007l3.95 3.954q.105.113.156.243a.8.8 0 0 1 .053.282q0 .15-.053.28a.7.7 0 0 1-.156.236l-3.95 3.951a.73.73 0 0 1-.528.236.72.72 0 0 1-.52-.23.73.73 0 0 1 0-1.062z",fill:"currentColor"})),gt=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.5 10q0 .25.031.5t.073.479a1 1 0 0 1-.052.583.66.66 0 0 1-.406.396.72.72 0 0 1-.573-.032.66.66 0 0 1-.365-.427 5 5 0 0 1-.156-.729A6 6 0 0 1 4 10q0-2.522 1.77-4.292 1.772-1.77 4.355-1.709l-.667-.666a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.063 0l1.958 1.959q.23.228.23.52a.72.72 0 0 1-.23.521l-1.958 1.96a.68.68 0 0 1-.521.218.76.76 0 0 1-.52-.24.73.73 0 0 1 0-1.062l.645-.646q-1.959-.041-3.292 1.292T5.5 9.999m9 0q0-.25-.031-.5a9 9 0 0 0-.073-.48 1 1 0 0 1 .052-.594.73.73 0 0 1 .406-.406.66.66 0 0 1 .563 0q.27.125.354.417.105.375.166.76Q16 9.583 16 10q0 2.5-1.77 4.282-1.772 1.78-4.355 1.718l.667.667a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.063 0l-1.958-1.96a.72.72 0 0 1-.23-.52q0-.293.23-.521l1.958-1.959a.73.73 0 0 1 1.063 0 .73.73 0 0 1 0 1.063l-.667.666q1.959.042 3.292-1.291Q14.5 11.873 14.5 9.999",fill:"currentColor"})),bt=e.createContext({value:{},setValue:()=>null}),ht=({children:t})=>{const[i,n]=o({}),a=r((()=>({value:i,setValue:n})),[i,n]);return e.createElement(bt.Provider,{value:a},t)},ft=[m.FORM],yt=[p.SSO],_t=[m.FINAL,m.FINAL_THANK_YOU,m.FINAL_STANDARD],xt=()=>{var t,n,o,a,l;const{formatMessage:r,action:{pushNotifications:s}}=i(L),d=ut(),{listNodes:c,activeId:u,isShowFooter:m,onNext:p,onPrev:v,params:h,onStartOver:f,loading:y}=i(tt),{value:_}=i(bt),x=(()=>{const{formatMessage:e,action:{pushNotifications:t}}=i(L);return{validateSelectActions:(i,n,o)=>{(null==n?void 0:n.multi_select_option)!==b.EXACT_NUMBER||i.length===(null==n?void 0:n.from)?(null==n?void 0:n.multi_select_option)===b.RANGE&&(i.length<(null==n?void 0:n.from)||i.length>(null==n?void 0:n.to))?t({title:"",message:e({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:n.from,to:n.to}),type:"warning"}):i.length?o():t({title:"",message:e({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"}):t({message:e({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:n.from}),type:"warning"})}}})(),E=c[0],w=c.find((e=>e.id==u)),S=null===(t=null==w?void 0:w.actions)||void 0===t?void 0:t.find((e=>e.type===g.USER_CHOICE_NEXT)),k=null===(n=null==w?void 0:w.actions)||void 0===n?void 0:n.find((({type:e})=>e==g.POLL_BUTTON)),I=null===(o=null==w?void 0:w.actions)||void 0===o?void 0:o.find((({type:e})=>e==g.ACTION_MULTIPLE_BUTTON)),N=(null===(l=null===(a=null==w?void 0:w.actions)||void 0===a?void 0:a.find((({id:e})=>e===_.action_id)))||void 0===l?void 0:l.type)===g.USER_CHOICE_TEXT_BY_INPUT;if(!m)return null;const O=c.find((e=>e.id==u)),T=ft.includes((null==O?void 0:O.type)||"")||yt.includes((null==O?void 0:O.position)||"")||N,C=!_t.includes((null==O?void 0:O.type)||"");return e.createElement(mt,{"data-show-action":C},e.createElement("button",{onClick:f,"data-event-category":"Service Connection","data-event-action":"Risk Screening Start Over","data-event-label":d,"data-bot-id":h.bot_id,className:"si-footer-start-over",disabled:Boolean((null==E?void 0:E.subot_field_type)&&u==(null==c?void 0:c[1].id))},e.createElement(gt,null)," ",e.createElement("span",null,r({id:"tool.subot.inline.start.over",defaultMessage:"Start over"}))),C&&e.createElement("div",{className:"si-footer-actions"},e.createElement(K,{size:"md",variant:"tertiary",onClick:v,"data-event-category":"Service Connection","data-event-action":"Risk Screening Back","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8}},e.createElement(pt,{style:{marginRight:10}}),r({id:"riskScreener.back",defaultMessage:"Back"})),e.createElement(K,{size:"md",onClick:()=>{var e;(null==S?void 0:S.id)&&(null==S?void 0:S.key)?(()=>{const e={node_id:w.id,action_id:null==S?void 0:S.id,action_value:null==S?void 0:S.key};p(Object.assign(Object.assign(Object.assign({},h),e),null==w?void 0:w._message))})():I?x.validateSelectActions(Object.keys((null==_?void 0:_.selected_actions)||{}),w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),_))})):k?(()=>{var e;const t={},i=(null===(e=null==_?void 0:_.form_submit_meta)||void 0===e?void 0:e.map((({action_id:e})=>e)))||[];_.form_submit_meta&&_.form_submit_meta.length&&(t[w.id]=_.form_submit_meta.map((e=>e.action_id)));const n=Object.assign(Object.assign({},_),{current_polls:t});x.validateSelectActions(i,w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),n))}))})():(null==w?void 0:w._message)&&(null===(e=w._message)||void 0===e?void 0:e.action_id)?p(Object.assign(Object.assign(Object.assign({},h),_),null==w?void 0:w._message)):s({title:"",message:r({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},loading:!T&&y,disabled:T,"data-event-category":"Service Connection","data-event-action":"Risk Screening Continue","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}}},r({id:"riskScreener.next",defaultMessage:"Next"}),e.createElement(vt,{style:{marginLeft:10}}))))};xt.displayName="SubotInlineFooterContainer";const Et=X.div`
|
|
314
|
+
`,pt=t=>e.createElement("svg",Object.assign({width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"m7.988 8 3.417 3.417a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.07-.007L6.385 8.52a.76.76 0 0 1-.208-.525q-.001-.15.05-.28a.7.7 0 0 1 .157-.236l3.951-3.951a.73.73 0 0 1 .528-.237q.292 0 .521.23a.73.73 0 0 1 0 1.062z",fill:"currentColor"})),vt=t=>e.createElement("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M8.917 8 5.5 4.582a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.07.007l3.95 3.954q.105.113.156.243a.8.8 0 0 1 .053.282q0 .15-.053.28a.7.7 0 0 1-.156.236l-3.95 3.951a.73.73 0 0 1-.528.236.72.72 0 0 1-.52-.23.73.73 0 0 1 0-1.062z",fill:"currentColor"})),gt=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M5.5 10q0 .25.031.5t.073.479a1 1 0 0 1-.052.583.66.66 0 0 1-.406.396.72.72 0 0 1-.573-.032.66.66 0 0 1-.365-.427 5 5 0 0 1-.156-.729A6 6 0 0 1 4 10q0-2.522 1.77-4.292 1.772-1.77 4.355-1.709l-.667-.666a.73.73 0 0 1 0-1.063.73.73 0 0 1 1.063 0l1.958 1.959q.23.228.23.52a.72.72 0 0 1-.23.521l-1.958 1.96a.68.68 0 0 1-.521.218.76.76 0 0 1-.52-.24.73.73 0 0 1 0-1.062l.645-.646q-1.959-.041-3.292 1.292T5.5 9.999m9 0q0-.25-.031-.5a9 9 0 0 0-.073-.48 1 1 0 0 1 .052-.594.73.73 0 0 1 .406-.406.66.66 0 0 1 .563 0q.27.125.354.417.105.375.166.76Q16 9.583 16 10q0 2.5-1.77 4.282-1.772 1.78-4.355 1.718l.667.667a.73.73 0 0 1 0 1.063.73.73 0 0 1-1.063 0l-1.958-1.96a.72.72 0 0 1-.23-.52q0-.293.23-.521l1.958-1.959a.73.73 0 0 1 1.063 0 .73.73 0 0 1 0 1.063l-.667.666q1.959.042 3.292-1.291Q14.5 11.873 14.5 9.999",fill:"currentColor"})),bt=e.createContext({value:{},setValue:()=>null}),ht=({children:t})=>{const[i,n]=o({}),a=r((()=>({value:i,setValue:n})),[i,n]);return e.createElement(bt.Provider,{value:a},t)},ft=[m.FORM],yt=[p.SSO],_t=[m.FINAL,m.FINAL_THANK_YOU,m.FINAL_STANDARD],xt=()=>{var t,n,o,a,l;const{formatMessage:r,action:{pushNotifications:s}}=i(L),d=ut(),{listNodes:c,activeId:u,isShowFooter:m,onNext:p,onPrev:v,params:h,onStartOver:f,loading:y}=i(tt),{value:_}=i(bt),x=(()=>{const{formatMessage:e,action:{pushNotifications:t}}=i(L);return{validateSelectActions:(i,n,o)=>{(null==n?void 0:n.multi_select_option)!==b.EXACT_NUMBER||i.length===(null==n?void 0:n.from)?(null==n?void 0:n.multi_select_option)===b.RANGE&&(i.length<(null==n?void 0:n.from)||i.length>(null==n?void 0:n.to))?t({title:"",message:e({id:"multiSelectError.range",defaultMessage:"You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)"},{from:n.from,to:n.to}),type:"warning"}):i.length?o():t({title:"",message:e({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"}):t({message:e({id:"multiSelectError.exactNumber",defaultMessage:"You must choose {from} answers."},{from:n.from}),type:"warning"})}}})(),E=c[0],w=c.find((e=>e.id==u)),S=null===(t=null==w?void 0:w.actions)||void 0===t?void 0:t.find((e=>e.type===g.USER_CHOICE_NEXT)),k=null===(n=null==w?void 0:w.actions)||void 0===n?void 0:n.find((({type:e})=>e==g.POLL_BUTTON)),I=null===(o=null==w?void 0:w.actions)||void 0===o?void 0:o.find((({type:e})=>e==g.ACTION_MULTIPLE_BUTTON)),N=(null===(l=null===(a=null==w?void 0:w.actions)||void 0===a?void 0:a.find((({id:e})=>e===_.action_id)))||void 0===l?void 0:l.type)===g.USER_CHOICE_TEXT_BY_INPUT;if(!m)return null;const O=c.find((e=>e.id==u)),T=ft.includes((null==O?void 0:O.type)||"")||yt.includes((null==O?void 0:O.position)||"")||N,C=!_t.includes((null==O?void 0:O.type)||"");return e.createElement(mt,{"data-show-action":C},e.createElement("button",{onClick:f,"data-event-category":"Service Connection","data-event-action":"Risk Screening Start Over","data-event-label":d,"data-bot-id":h.bot_id,className:"si-footer-start-over",disabled:Boolean((null==E?void 0:E.subot_field_type)&&u==(null==c?void 0:c[1].id))},e.createElement(gt,null)," ",e.createElement("span",null,r({id:"tool.subot.inline.start.over",defaultMessage:"Start over"}))),C&&e.createElement("div",{className:"si-footer-actions"},e.createElement(K,{size:"md",variant:"tertiary",onClick:v,"data-event-category":"Service Connection","data-event-action":"Risk Screening Back","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"transparent !important","&:hover":{backgroundColor:"var(--subot-inline-text-button-color, #f7f9fc) !important"},color:"var(--subot-inline-text-color, #262626) !important"}}}},e.createElement(pt,{style:{marginRight:10}}),r({id:"riskScreener.back",defaultMessage:"Back"})),e.createElement(K,{size:"md",onClick:()=>{var e;(null==S?void 0:S.id)&&(null==S?void 0:S.key)?(()=>{const e={node_id:w.id,action_id:null==S?void 0:S.id,action_value:null==S?void 0:S.key};p(Object.assign(Object.assign(Object.assign({},h),e),null==w?void 0:w._message))})():I?x.validateSelectActions(Object.keys((null==_?void 0:_.selected_actions)||{}),w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),_))})):k?(()=>{var e;const t={},i=(null===(e=null==_?void 0:_.form_submit_meta)||void 0===e?void 0:e.map((({action_id:e})=>e)))||[];_.form_submit_meta&&_.form_submit_meta.length&&(t[w.id]=_.form_submit_meta.map((e=>e.action_id)));const n=Object.assign(Object.assign({},_),{current_polls:t});x.validateSelectActions(i,w,(()=>{p&&p(Object.assign(Object.assign(Object.assign({},h),null==w?void 0:w._message),n))}))})():(null==w?void 0:w._message)&&(null===(e=w._message)||void 0===e?void 0:e.action_id)?p(Object.assign(Object.assign(Object.assign({},h),_),null==w?void 0:w._message)):s({title:"",message:r({id:"multiSelectError.required",defaultMessage:"There is no answer!"}),type:"warning"})},loading:!T&&y,disabled:T,"data-event-category":"Service Connection","data-event-action":"Risk Screening Continue","data-event-label":d,"data-bot-id":h.bot_id,sx:{paddingLeft:16,paddingRight:16,borderRadius:8},styles:{root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}}},r({id:"riskScreener.next",defaultMessage:"Next"}),e.createElement(vt,{style:{marginLeft:10}}))))};xt.displayName="SubotInlineFooterContainer";const Et=X.div`
|
|
312
315
|
sup {
|
|
313
316
|
position: relative;
|
|
314
317
|
top: -0.5em;
|
|
@@ -334,7 +337,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
334
337
|
.si-review-by {
|
|
335
338
|
gap: 12px;
|
|
336
339
|
display: flex;
|
|
337
|
-
color: #595959;
|
|
340
|
+
color: var(--subot-inline-text-color, #595959);
|
|
338
341
|
font-style: normal;
|
|
339
342
|
font-weight: 400;
|
|
340
343
|
}
|
|
@@ -395,7 +398,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
395
398
|
font-weight: 600;
|
|
396
399
|
line-height: 150%;
|
|
397
400
|
letter-spacing: -0.3px;
|
|
398
|
-
color: #262626;
|
|
401
|
+
/* color: #262626; */
|
|
402
|
+
color: var(--subot-inline-text-color, #262626);
|
|
399
403
|
|
|
400
404
|
${W.mbUp} {
|
|
401
405
|
font-size: 24px;
|
|
@@ -405,7 +409,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
.si-node-start-desc {
|
|
408
|
-
color: #595959;
|
|
412
|
+
/* color: #595959; */
|
|
413
|
+
color: var(--subot-inline-text-color, #595959);
|
|
409
414
|
font-size: 16px;
|
|
410
415
|
line-height: 24px;
|
|
411
416
|
font-weight: 400;
|
|
@@ -485,7 +490,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
485
490
|
background-color: #2d87f3;
|
|
486
491
|
}
|
|
487
492
|
}
|
|
488
|
-
`,Ot=({clientId:t,voucherAnswers:i})=>{const[n,l]=o(0),[r,s]=o(0);a((()=>{j(Se(Ee.GET_VOUCHER_QUANTITY,{search:(null==i?void 0:i.voucherName.split("|")[0])||"",clientId:t}),"GET").then((e=>{const t=null==e?void 0:e._data[0];t.total_quantity&&(l(t.total_quantity),s(t.total_in_stock))}))}),[null==i?void 0:i.voucherName]);const d=n?r/n*100:0;return n?e.createElement(Nt,{className:"si-voucher-left-ui"},e.createElement("img",{src:ie.getAssetPath("subot/voucher_bg.png"),alt:"",loading:"eager",className:"si-voucher-bg"}),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon.png"),alt:"",loading:"eager",className:"si-voucher-item"}),e.createElement(ee,{className:"si-voucher-in-stock"},e.createElement("h3",null,r),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon_small.png"),alt:"",loading:"eager"})),e.createElement(ee,{className:"si-voucher-progress"},e.createElement(ee,{className:"si-voucher-progress--inner",style:{width:`${d}%`}}))):null},Tt=({node:t,onClickStart:o})=>{var l,s;const d=n(!1),{ref:c,inView:u}=Z(),m=ut(),{params:p,getParams:v,onNext:g,setIsShowFooter:b,listNodes:h}=i(tt),f=h[0],y=null===(l=null==f?void 0:f.extra_settings)||void 0===l?void 0:l.subot_type;r((()=>{b(!1)}),[]),a((()=>{u&&!d.current&&(Te(v()),d.current=!0)}),[u]);return e.createElement(It,{ref:c,className:z({"si-acuvue-wrap":"ACUVUE"===y})},e.createElement("h2",null,t.inline_title),e.createElement("div",{className:"si-node-start-desc"},e.createElement(wt,null,t.inline_description)),"ACUVUE"===y&&e.createElement(Ot,{clientId:null===(s=f.extra_settings)||void 0===s?void 0:s.client_id,voucherAnswers:{email:"",voucherName:""}}),e.createElement(K,{onClick:()=>{const e=v();e.device_id=qe(window.navigator.userAgent)?2:1,Oe(e),g(),null==o||o()},"data-event-category":"Service Connection","data-event-action":"Risk Screening Start","data-event-label":m,"data-bot-id":p.bot_id,rightIcon:e.createElement(ne.ArrowRight,{color:"#fff"}),styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}},t.inline_start_button))};Tt.displayName="SubotInlineNodeStartContainer";const Ct=X.div``,Mt=X.div`
|
|
493
|
+
`,Ot=({clientId:t,voucherAnswers:i})=>{const[n,l]=o(0),[r,s]=o(0);a((()=>{j(Se(Ee.GET_VOUCHER_QUANTITY,{search:(null==i?void 0:i.voucherName.split("|")[0])||"",clientId:t}),"GET").then((e=>{const t=null==e?void 0:e._data[0];t.total_quantity&&(l(t.total_quantity),s(t.total_in_stock))}))}),[null==i?void 0:i.voucherName]);const d=n?r/n*100:0;return n?e.createElement(Nt,{className:"si-voucher-left-ui"},e.createElement("img",{src:ie.getAssetPath("subot/voucher_bg.png"),alt:"",loading:"eager",className:"si-voucher-bg"}),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon.png"),alt:"",loading:"eager",className:"si-voucher-item"}),e.createElement(ee,{className:"si-voucher-in-stock"},e.createElement("h3",null,r),e.createElement("img",{src:ie.getAssetPath("subot/voucher_icon_small.png"),alt:"",loading:"eager"})),e.createElement(ee,{className:"si-voucher-progress"},e.createElement(ee,{className:"si-voucher-progress--inner",style:{width:`${d}%`}}))):null},Tt=({node:t,onClickStart:o})=>{var l,s;const d=n(!1),{ref:c,inView:u}=Z(),m=ut(),{params:p,getParams:v,onNext:g,setIsShowFooter:b,listNodes:h}=i(tt),f=h[0],y=null===(l=null==f?void 0:f.extra_settings)||void 0===l?void 0:l.subot_type;r((()=>{b(!1)}),[]),a((()=>{u&&!d.current&&(Te(v()),d.current=!0)}),[u]);return e.createElement(It,{ref:c,className:z({"si-acuvue-wrap":"ACUVUE"===y})},e.createElement("h2",null,t.inline_title),e.createElement("div",{className:"si-node-start-desc"},e.createElement(wt,null,t.inline_description)),"ACUVUE"===y&&e.createElement(Ot,{clientId:null===(s=f.extra_settings)||void 0===s?void 0:s.client_id,voucherAnswers:{email:"",voucherName:""}}),e.createElement(K,{onClick:()=>{const e=v();e.device_id=qe(window.navigator.userAgent)?2:1,Oe(e),g(),null==o||o()},"data-event-category":"Service Connection","data-event-action":"Risk Screening Start","data-event-label":m,"data-bot-id":p.bot_id,rightIcon:e.createElement(ne.ArrowRight,{color:"var(--subot-inline-text-button-color, #fff)"}),styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}},t.inline_start_button))};Tt.displayName="SubotInlineNodeStartContainer";const Ct=X.div``,Mt=X.div`
|
|
489
494
|
.si-intent-list {
|
|
490
495
|
display: flex;
|
|
491
496
|
gap: 12px;
|
|
@@ -502,7 +507,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
502
507
|
gap: 6px;
|
|
503
508
|
display: flex;
|
|
504
509
|
align-items: flex-start;
|
|
505
|
-
color: #262626;
|
|
510
|
+
color: var(--subot-inline-text-color, #262626);
|
|
506
511
|
font-weight: 600;
|
|
507
512
|
margin-bottom: 24px;
|
|
508
513
|
font-size: 18px;
|
|
@@ -540,7 +545,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
540
545
|
button {
|
|
541
546
|
min-width: 230px;
|
|
542
547
|
}
|
|
543
|
-
`,At="campaign/{campaignCode}/lead";oe.extend(ae);const Lt=e=>_(void 0,void 0,void 0,(function*(){const{first_name:t,last_name:i,address:n,dob:o,email:a,phone:l}=e||{};return yield(r=((e,t)=>{const{leadApiUrl:i}=null==B?void 0:B.env;return i+U(e,Object.assign({},t))})(At,{campaignCode:process.env.NEXT_PUBLIC_FRISO_COMPAIGN_CODE||"wufl4mh2vunsklq"}),s="POST",d={data:{url:window.location.href,title_article:document.title,referrer:"hlbs",meta:[{key:"first_name",value:t||"",control:"text"},{key:"last_name",value:i||"",control:"text"},{key:"due_date_dob",value:o,control:"due_date_dob"},{key:"province",value:((null==n?void 0:n.selectedProvince)||"").replace("Tỉnh ","").replace("Thành phố ",""),control:"province"},{key:"email",value:a||"",control:"email"},{key:"phone",value:l||"",control:"tel"},{key:"address",value:n?[(null==n?void 0:n.selectedProvince)||"",(null==n?void 0:n.selectedDistrict)||"",(null==n?void 0:n.selectedWard)||"",(null==n?void 0:n.extraInfo)||""].join("; "):"",control:"text"}]}},_(void 0,void 0,void 0,(function*(){if(null==d?void 0:d.data){let e=C.get(D);const t=C.get(I);if(!e){const t=$();e=t,C.set(D,t)}d.data.cookie_id=e,d.data.ga_client_id=t||""}return j(r,s,d)})));var r,s,d})),Dt=e=>{const{foundPhone:t,foundDate:i}=(e=>{let t="",i="";return e.forEach((e=>{var n,o,a,l,r,s;const d=e,c=(null===(a=null===(o=null===(n=null==d?void 0:d._message)||void 0===n?void 0:n.form_submit_meta)||void 0===o?void 0:o.find((e=>e.control===h[g.USER_SUBMIT_OTP]||e.control===h[g.USER_SUBMIT_PHONE])))||void 0===a?void 0:a.value)||"",u=(null===(s=null===(r=null===(l=null==d?void 0:d._message)||void 0===l?void 0:l.form_submit_meta)||void 0===r?void 0:r.find((e=>e.control===h[g.USER_SUBMIT_DATE])))||void 0===s?void 0:s.value)||"";c&&u&&(t=c,i=u)})),{foundPhone:t,foundDate:i}})(e);if(!t||!i)return;const n=oe(i),o=t.replace("+84","0"),a=n.isSameOrBefore(oe()),l=n.format("YYYY-MM-DD");window.location.href=U(process.env.NEXT_PUBLIC_FRISO_MINI_GAME_URL||"",Object.assign({phone:o},a?{dob:l}:{edd:l}))},$t=({intent:t})=>{const{listNodes:n}=i(tt),o=r((()=>t.url&&t.label&&(null==t?void 0:t.type)===u.BOT_MAIN_BUTTON?{"data-event-category":"Service Connection","data-event-action":`Risk Screening - ${t.label}`,"data-event-label":t.url}:{}),[t]);return(null==t?void 0:t.label)?e.createElement(Rt,null,e.createElement(K,Object.assign({size:"md",color:"primary",onClick:()=>{var e;(null===(e=t.url)||void 0===e?void 0:e.includes("{{.frisoRedirectUrl}}"))?Dt(n):t.url&&ze(t.url)}},o,{styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}}),e.createElement(wt,null,t.label))):null};$t.displayName="SubotInlineIntentBotButton";const Ft=({intent:t})=>{const n=ut(),{listNodes:o,activeId:a,params:l}=i(tt),r=o.find((e=>e.id==a));if(!t.label||!r)return null;const s={"data-event-category":"Service Connection","data-event-action":t.label,"data-event-label":n,"data-bot-id":l.bot_id,"data-question-id":r.id};return e.createElement(ee,{style:{position:"absolute",zIndex:-1}},e.createElement("button",Object.assign({className:"si-revamp-event-submission"},s)))};Ft.displayName="SubotInlineIntentBotEventSubmission";const qt=X.div`
|
|
548
|
+
`,At="campaign/{campaignCode}/lead";oe.extend(ae);const Lt=e=>_(void 0,void 0,void 0,(function*(){const{first_name:t,last_name:i,address:n,dob:o,email:a,phone:l}=e||{};return yield(r=((e,t)=>{const{leadApiUrl:i}=null==B?void 0:B.env;return i+U(e,Object.assign({},t))})(At,{campaignCode:process.env.NEXT_PUBLIC_FRISO_COMPAIGN_CODE||"wufl4mh2vunsklq"}),s="POST",d={data:{url:window.location.href,title_article:document.title,referrer:"hlbs",meta:[{key:"first_name",value:t||"",control:"text"},{key:"last_name",value:i||"",control:"text"},{key:"due_date_dob",value:o,control:"due_date_dob"},{key:"province",value:((null==n?void 0:n.selectedProvince)||"").replace("Tỉnh ","").replace("Thành phố ",""),control:"province"},{key:"email",value:a||"",control:"email"},{key:"phone",value:l||"",control:"tel"},{key:"address",value:n?[(null==n?void 0:n.selectedProvince)||"",(null==n?void 0:n.selectedDistrict)||"",(null==n?void 0:n.selectedWard)||"",(null==n?void 0:n.extraInfo)||""].join("; "):"",control:"text"}]}},_(void 0,void 0,void 0,(function*(){if(null==d?void 0:d.data){let e=C.get(D);const t=C.get(I);if(!e){const t=$();e=t,C.set(D,t)}d.data.cookie_id=e,d.data.ga_client_id=t||""}return j(r,s,d)})));var r,s,d})),Dt=e=>{const{foundPhone:t,foundDate:i}=(e=>{let t="",i="";return e.forEach((e=>{var n,o,a,l,r,s;const d=e,c=(null===(a=null===(o=null===(n=null==d?void 0:d._message)||void 0===n?void 0:n.form_submit_meta)||void 0===o?void 0:o.find((e=>e.control===h[g.USER_SUBMIT_OTP]||e.control===h[g.USER_SUBMIT_PHONE])))||void 0===a?void 0:a.value)||"",u=(null===(s=null===(r=null===(l=null==d?void 0:d._message)||void 0===l?void 0:l.form_submit_meta)||void 0===r?void 0:r.find((e=>e.control===h[g.USER_SUBMIT_DATE])))||void 0===s?void 0:s.value)||"";c&&u&&(t=c,i=u)})),{foundPhone:t,foundDate:i}})(e);if(!t||!i)return;const n=oe(i),o=t.replace("+84","0"),a=n.isSameOrBefore(oe()),l=n.format("YYYY-MM-DD");window.location.href=U(process.env.NEXT_PUBLIC_FRISO_MINI_GAME_URL||"",Object.assign({phone:o},a?{dob:l}:{edd:l}))},$t=({intent:t})=>{const{listNodes:n}=i(tt),o=r((()=>t.url&&t.label&&(null==t?void 0:t.type)===u.BOT_MAIN_BUTTON?{"data-event-category":"Service Connection","data-event-action":`Risk Screening - ${t.label}`,"data-event-label":t.url}:{}),[t]);return(null==t?void 0:t.label)?e.createElement(Rt,null,e.createElement(K,Object.assign({size:"md",color:"primary",onClick:()=>{var e;(null===(e=t.url)||void 0===e?void 0:e.includes("{{.frisoRedirectUrl}}"))?Dt(n):t.url&&ze(t.url)}},o,{styles:{root:{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"},color:"var(--subot-inline-text-button-color, #fff) !important"}}}),e.createElement(wt,null,t.label))):null};$t.displayName="SubotInlineIntentBotButton";const Ft=({intent:t})=>{const n=ut(),{listNodes:o,activeId:a,params:l}=i(tt),r=o.find((e=>e.id==a));if(!t.label||!r)return null;const s={"data-event-category":"Service Connection","data-event-action":t.label,"data-event-label":n,"data-bot-id":l.bot_id,"data-question-id":r.id};return e.createElement(ee,{style:{position:"absolute",zIndex:-1}},e.createElement("button",Object.assign({className:"si-revamp-event-submission"},s)))};Ft.displayName="SubotInlineIntentBotEventSubmission";const qt=X.div`
|
|
544
549
|
display: flex;
|
|
545
550
|
padding: 8px 0;
|
|
546
551
|
|
|
@@ -565,7 +570,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
565
570
|
|
|
566
571
|
h3,
|
|
567
572
|
h3 a {
|
|
568
|
-
color: #262626
|
|
573
|
+
/* color: #262626 */
|
|
574
|
+
color: var(--subot-inline-text-color, #262626);
|
|
569
575
|
font-size: 16px;
|
|
570
576
|
letter-spacing: -0.2px;
|
|
571
577
|
line-height: 24px;
|
|
@@ -608,7 +614,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
608
614
|
cursor: pointer;
|
|
609
615
|
}
|
|
610
616
|
.si-disclaimer-desc {
|
|
611
|
-
color: #262626;
|
|
617
|
+
/* color: #262626; */
|
|
618
|
+
color: var(--subot-inline-text-color, #262626);
|
|
612
619
|
font-size: 16px;
|
|
613
620
|
font-weight: 600;
|
|
614
621
|
line-height: 150%;
|
|
@@ -620,7 +627,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
620
627
|
|
|
621
628
|
.si-disclaimer-expanded {
|
|
622
629
|
font-size: 16px;
|
|
623
|
-
color: #262626;
|
|
630
|
+
/* color: #262626; */
|
|
631
|
+
color: var(--subot-inline-text-color, #262626);
|
|
624
632
|
line-height: 1.4;
|
|
625
633
|
overflow: hidden;
|
|
626
634
|
padding-left: 32px;
|
|
@@ -629,7 +637,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
629
637
|
`,Yt=[f.Thailand,f.Vietnam,f.Indonesia,f.Malaysia],Wt=({text:t})=>{const[n,a]=o(!1),{formatMessage:l}=i(L),r=null==B?void 0:B.locale;return t&&Yt.includes(r)?e.createElement(Vt,null,e.createElement("div",{className:"si-disclaimer",onClick:()=>a(!n)},e.createElement(dt,{className:"si-disclaimer-info-svg"}),e.createElement("span",{className:"si-disclaimer-desc"},l({id:"tools.disclaimer",defaultMessage:"Miễn trừ trách nhiệm"})),e.createElement(st,{className:"si-disclaimer-down"})),e.createElement(Y.div,{className:"si-disclaimer-expanded",animate:n?{height:"auto"}:{height:0},transition:{duration:.3}},t)):null};Wt.displayName="SubotInlineDisclaimer";const Xt=({intent:t})=>{var n;const{formatMessage:o}=i(L),a=r((()=>{try{return JSON.parse(t.label||"")||[]}catch(e){return[]}}),[null==t?void 0:t.label]),l=null===(n=a[0])||void 0===n?void 0:n.disclaimer;return t.label&&a.length?e.createElement(Gt,null,e.createElement(le,{size:"lg",weight:"semiBold",className:"si-title",color:"#262626"},o({id:"tools.suggestedServices",defaultMessage:"Suggested services"})+":"),e.createElement("div",{className:"si-list-services"},a.map(((t,i)=>e.createElement("div",{onClick:()=>(e=>{e.url&&e.url&&ze(e.url)})(t),key:i,className:"image-wrapper",role:"presentation"},e.createElement("img",{loading:"lazy",src:t.feature,alt:t.feature,key:i}))))),l&&e.createElement(Wt,{text:l})):null};Xt.displayName="SubotInlineIntentBotSuggestedService";const Kt=X.div`
|
|
630
638
|
font-size: 16px;
|
|
631
639
|
line-height: 24px;
|
|
632
|
-
color: #595959;
|
|
640
|
+
color: var(--subot-inline-text-color, #595959);
|
|
633
641
|
font-weight: 400;
|
|
634
642
|
|
|
635
643
|
ul,
|
|
@@ -638,10 +646,11 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
638
646
|
margin-top: 12px;
|
|
639
647
|
}
|
|
640
648
|
}
|
|
641
|
-
`,Jt=({intent:t})=>{const{listNodes:n}=i(tt);if(!(null==t?void 0:t.label))return null;const o=(null==t?void 0:t.type)===u.BOT_MAIN_BODY;return e.createElement(Kt,
|
|
649
|
+
`,Jt=({intent:t})=>{const{listNodes:n}=i(tt);if(!(null==t?void 0:t.label))return null;const o=(null==t?void 0:t.type)===u.BOT_MAIN_BODY;return e.createElement(Kt,{className:"si-bot-text"},e.createElement(wt,null,o?Ye(t.label,n):null==t?void 0:t.label))};Jt.displayName="SubotInlineIntentBotText";const Qt=X.div`
|
|
642
650
|
gap: 16px;
|
|
643
651
|
display: flex;
|
|
644
|
-
color: #262626;
|
|
652
|
+
/* color: #262626; */
|
|
653
|
+
color: var(--subot-inline-text-color, #262626);
|
|
645
654
|
max-width: 500px;
|
|
646
655
|
margin: 0 auto;
|
|
647
656
|
margin-top: 16px;
|
|
@@ -661,7 +670,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
661
670
|
.si-sso-description {
|
|
662
671
|
flex: 1;
|
|
663
672
|
font-size: 14px;
|
|
664
|
-
color: #595959;
|
|
673
|
+
/* color: #595959; */
|
|
674
|
+
color: var(--subot-inline-text-color, #595959);
|
|
665
675
|
line-height: 1.5;
|
|
666
676
|
}
|
|
667
677
|
`,Zt=({intent:t})=>{const i=(()=>{try{return(null==t?void 0:t.label)?JSON.parse(null==t?void 0:t.label):{}}catch(e){return{}}})();return i&&i.title?e.createElement(Qt,{id:"si-intent-sso"},e.createElement("img",{loading:"lazy",src:null==t?void 0:t.url,className:"icon",alt:""}),e.createElement("div",{className:"si-sso-content"},e.createElement("h3",{className:"si-sso-title"},i.title),e.createElement("div",{className:"si-sso-description"},i.description))):null};var ei;Zt.displayName="SubotInlineIntentSSO";const ti=X.div`
|
|
@@ -733,6 +743,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
733
743
|
|
|
734
744
|
.see-more-intent {
|
|
735
745
|
color: #6cbef0;
|
|
746
|
+
/* color: var(--subot-inline-primary-color, #6cbef0); */
|
|
736
747
|
font-size: 16px;
|
|
737
748
|
line-height: 24px;
|
|
738
749
|
font-weight: 600;
|
|
@@ -792,10 +803,15 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
792
803
|
ol {
|
|
793
804
|
list-style-type: decimal;
|
|
794
805
|
}
|
|
806
|
+
|
|
807
|
+
.si-bot-text {
|
|
808
|
+
color: #595959;
|
|
809
|
+
}
|
|
795
810
|
}
|
|
796
811
|
|
|
797
812
|
.si-sub-intent-title {
|
|
798
813
|
color: #262626;
|
|
814
|
+
/* color: var(--subot-inline-text-color, #262626); */
|
|
799
815
|
font-size: 16px;
|
|
800
816
|
line-height: 24px;
|
|
801
817
|
font-weight: 600;
|
|
@@ -807,7 +823,6 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
807
823
|
/* > div:first-child {
|
|
808
824
|
font-size: 16px;
|
|
809
825
|
font-weight: 600;
|
|
810
|
-
color: #262626;
|
|
811
826
|
|
|
812
827
|
+ div {
|
|
813
828
|
margin-top: 16px;
|
|
@@ -821,7 +836,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
821
836
|
font-size: 18px;
|
|
822
837
|
}
|
|
823
838
|
} */
|
|
824
|
-
`,vi=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("mask",{id:"mask0_2159_150362",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},e.createElement("rect",{width:"20",height:"20",fill:"#D9D9D9"})),e.createElement("g",{mask:"url(#mask0_2159_150362)"},e.createElement("path",{d:"M13.878 16.25a.35.35 0 0 0 .258-.11.35.35 0 0 0 .11-.259v-2.18a.35.35 0 0 0-.11-.257.35.35 0 0 0-.258-.111.35.35 0 0 0-.258.11.35.35 0 0 0-.111.259v2.179q0 .147.11.258.111.11.258.11m0-3.678q.15.008.26-.105a.37.37 0 0 0-.003-.523.36.36 0 0 0-.517 0 .35.35 0 0 0-.11.256.36.36 0 0 0 .112.259.35.35 0 0 0 .258.113M4.166 3.333v5.152-.024 8.205zm2.5 8.125h2.277q.182-.36.407-.668.226-.308.497-.582H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.445q0 .266.18.445.18.18.445.18m0 3.333h1.69a4.7 4.7 0 0 1-.017-1.25H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.446q0 .265.18.445t.445.18m-2.242 3.125q-.633 0-1.07-.437a1.45 1.45 0 0 1-.438-1.07V3.59q0-.63.438-1.068a1.45 1.45 0 0 1 1.068-.438h5.996q.305 0 .58.117a1.5 1.5 0 0 1 .482.322l3.497 3.497a1.5 1.5 0 0 1 .439 1.062V8.68a4 4 0 0 0-.608-.14 5 5 0 0 0-.642-.054V7.083h-3a.73.73 0 0 1-.534-.216.73.73 0 0 1-.216-.534v-3H4.422a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v12.82q0 .097.08.177t.176.08h4.545q.182.36.411.668.23.308.51.582zm9.453-7.628q1.561 0 2.656 1.095t1.095 2.655-1.095 2.656-2.656 1.094-2.655-1.094-1.094-2.656 1.094-2.655 2.656-1.095",fill:"#6CBEF0"}))),gi=({subIntents:t})=>{const[i,n]=o(!1),[a,...l]=t;return a?e.createElement(pi,null,e.createElement("div",{className:"si-sub-intent-title",onClick:()=>n(!i)},e.createElement(vi,null),e.createElement("span",null,a.label),e.createElement(st,{className:"si-chevron-down"})),e.createElement(Y.div,{className:"si-sub-intent-expand",animate:i?{height:"auto"}:{height:0},transition:{duration:.3},"data-show":i},l.map((t=>{const i=(null==t?void 0:t.type)||"",n=ai[i];return n&&e.createElement(n,{key:t.id,intent:t})})))):null},bi=({node:t})=>{var l;const s=n(null),{formatMessage:d}=i(L),{setIsShowFooter:c,listNodes:m}=i(tt),[p,v]=o(!1);a((()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.offsetHeight)&&s.current.offsetHeight<=300&&v(!0)}),[]);const g=m[0];console.log("botItem",typeof g);const b=t.intents||[],{mainIntents:h,subIntents:f,mainButtonIntents:y,bookingButtonIntents:_,relatedArticleIntents:x,suggestedServiceIntents:E,botSubmissionIntent:w}=r((()=>{const e=[],t=[],i=[],n=[],o=[],a=[],l=[];let r;return b.forEach((s=>{switch(null==s?void 0:s.type){case u.BOT_MAIN_IMAGE:case u.BOT_MAIN_TITLE:case u.BOT_MAIN_BODY:e.push(s);break;case u.BOT_SUGGESTED_SERVICE:l.push(s);break;case u.BOT_MAIN_BUTTON:t.push(s);break;case u.BOT_BOOKING:i.push(s);break;case u.BOT_RECALCULATE:break;case u.BOT_SUB_TITLE:case u.BOT_SUB_BODY:n.push(s);break;case u.BOT_RELATED_ARTICLE:a.push(s);break;case u.BOT_RISK_SCREEN:o.push(s);break;case u.BOT_SUBMISSION:r=s}})),{mainIntents:e,subIntents:n,mainButtonIntents:t,bookingButtonIntents:i,screenerIntents:o,relatedArticleIntents:a.filter((e=>{var t;return null===(t=zt(e))||void 0===t?void 0:t.title})),botSubmissionIntent:r,suggestedServiceIntents:l}}),[]);return r((()=>{c(!0)}),[]),a((()=>{const e=w;(null==e?void 0:e.label)?ui({risk_level:e.label}):ui()}),[]),t?e.createElement(mi,{id:"si-node-final"},e.createElement(Y.div,{ref:s,animate:p?{height:"auto"}:{height:300},transition:{duration:.3},className:"wrap-main-intent","data-hide":!p},e.createElement(ri,{intents:h})),!p&&e.createElement("span",{role:"presentation",className:"see-more-intent",onClick:()=>v(!0)},d({id:"articlePage.careEmbedding.seeMore",defaultMessage:"See more"})),e.createElement("div",{className:"wrap-main-button-intent"},null===(l=[...y,..._])||void 0===l?void 0:l.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==E?void 0:E.length)>0&&e.createElement("div",null,E.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==x?void 0:x.length)>0&&e.createElement("div",{style:{marginTop:24}},e.createElement(le,{size:"lg",weight:"semiBold",color:"#262626"},d({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})),e.createElement("div",{style:{padding:"8px 0"}},x.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})})))),e.createElement(gi,{subIntents:f})):null};bi.displayName="SubotinlineNodeFinalStandard";const hi=X.div`
|
|
839
|
+
`,vi=t=>e.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("mask",{id:"mask0_2159_150362",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},e.createElement("rect",{width:"20",height:"20",fill:"#D9D9D9"})),e.createElement("g",{mask:"url(#mask0_2159_150362)"},e.createElement("path",{d:"M13.878 16.25a.35.35 0 0 0 .258-.11.35.35 0 0 0 .11-.259v-2.18a.35.35 0 0 0-.11-.257.35.35 0 0 0-.258-.111.35.35 0 0 0-.258.11.35.35 0 0 0-.111.259v2.179q0 .147.11.258.111.11.258.11m0-3.678q.15.008.26-.105a.37.37 0 0 0-.003-.523.36.36 0 0 0-.517 0 .35.35 0 0 0-.11.256.36.36 0 0 0 .112.259.35.35 0 0 0 .258.113M4.166 3.333v5.152-.024 8.205zm2.5 8.125h2.277q.182-.36.407-.668.226-.308.497-.582H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.445q0 .266.18.445.18.18.445.18m0 3.333h1.69a4.7 4.7 0 0 1-.017-1.25H6.666a.6.6 0 0 0-.445.18.6.6 0 0 0-.18.446q0 .265.18.445t.445.18m-2.242 3.125q-.633 0-1.07-.437a1.45 1.45 0 0 1-.438-1.07V3.59q0-.63.438-1.068a1.45 1.45 0 0 1 1.068-.438h5.996q.305 0 .58.117a1.5 1.5 0 0 1 .482.322l3.497 3.497a1.5 1.5 0 0 1 .439 1.062V8.68a4 4 0 0 0-.608-.14 5 5 0 0 0-.642-.054V7.083h-3a.73.73 0 0 1-.534-.216.73.73 0 0 1-.216-.534v-3H4.422a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v12.82q0 .097.08.177t.176.08h4.545q.182.36.411.668.23.308.51.582zm9.453-7.628q1.561 0 2.656 1.095t1.095 2.655-1.095 2.656-2.656 1.094-2.655-1.094-1.094-2.656 1.094-2.655 2.656-1.095",fill:"#6CBEF0"}))),gi=({subIntents:t})=>{const[i,n]=o(!1),[a,...l]=t;return a?e.createElement(pi,null,e.createElement("div",{className:"si-sub-intent-title",onClick:()=>n(!i)},e.createElement(vi,null),e.createElement("span",null,a.label),e.createElement(st,{className:"si-chevron-down"})),e.createElement(Y.div,{className:"si-sub-intent-expand",animate:i?{height:"auto"}:{height:0},transition:{duration:.3},"data-show":i},l.map((t=>{const i=(null==t?void 0:t.type)||"",n=ai[i];return n&&e.createElement(n,{key:t.id,intent:t})})))):null},bi=({node:t})=>{var l;const s=n(null),{formatMessage:d}=i(L),{setIsShowFooter:c,listNodes:m}=i(tt),[p,v]=o(!1);a((()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.offsetHeight)&&s.current.offsetHeight<=300&&v(!0)}),[]);const g=m[0];console.log("botItem",typeof g);const b=t.intents||[],{mainIntents:h,subIntents:f,mainButtonIntents:y,bookingButtonIntents:_,relatedArticleIntents:x,suggestedServiceIntents:E,botSubmissionIntent:w}=r((()=>{const e=[],t=[],i=[],n=[],o=[],a=[],l=[];let r;return b.forEach((s=>{switch(null==s?void 0:s.type){case u.BOT_MAIN_IMAGE:case u.BOT_MAIN_TITLE:case u.BOT_MAIN_BODY:e.push(s);break;case u.BOT_SUGGESTED_SERVICE:l.push(s);break;case u.BOT_MAIN_BUTTON:t.push(s);break;case u.BOT_BOOKING:i.push(s);break;case u.BOT_RECALCULATE:break;case u.BOT_SUB_TITLE:case u.BOT_SUB_BODY:n.push(s);break;case u.BOT_RELATED_ARTICLE:a.push(s);break;case u.BOT_RISK_SCREEN:o.push(s);break;case u.BOT_SUBMISSION:r=s}})),{mainIntents:e,subIntents:n,mainButtonIntents:t,bookingButtonIntents:i,screenerIntents:o,relatedArticleIntents:a.filter((e=>{var t;return null===(t=zt(e))||void 0===t?void 0:t.title})),botSubmissionIntent:r,suggestedServiceIntents:l}}),[]);return r((()=>{c(!0)}),[]),a((()=>{const e=w;(null==e?void 0:e.label)?ui({risk_level:e.label}):ui()}),[]),t?e.createElement(mi,{id:"si-node-final"},e.createElement(Y.div,{ref:s,animate:p?{height:"auto"}:{height:300},transition:{duration:.3},className:"wrap-main-intent","data-hide":!p},e.createElement(ri,{intents:h})),!p&&e.createElement("span",{role:"presentation",className:"see-more-intent",onClick:()=>v(!0)},d({id:"articlePage.careEmbedding.seeMore",defaultMessage:"See more"})),e.createElement("div",{className:"wrap-main-button-intent"},null===(l=[...y,..._])||void 0===l?void 0:l.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==E?void 0:E.length)>0&&e.createElement("div",null,E.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})}))),(null==x?void 0:x.length)>0&&e.createElement("div",{style:{marginTop:24}},e.createElement(le,{size:"lg",weight:"semiBold",color:"var(--subot-inline-text-color, #262626)"},d({id:"articlePage.relatedPostsSectionTitle",defaultMessage:"Related Articles"})),e.createElement("div",{style:{padding:"8px 0"}},x.map((t=>{const i=ai[t.type||""];return i&&e.createElement(i,{key:t.id,intent:t})})))),e.createElement(gi,{subIntents:f})):null};bi.displayName="SubotinlineNodeFinalStandard";const hi=X.div`
|
|
825
840
|
.si-final-thank-action {
|
|
826
841
|
text-align: center;
|
|
827
842
|
}
|
|
@@ -952,7 +967,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
952
967
|
label {
|
|
953
968
|
display: block;
|
|
954
969
|
margin-bottom: 6px;
|
|
955
|
-
color: ${re.colors.gray600};
|
|
970
|
+
color: var(--subot-inline-text-color, ${re.colors.gray600});
|
|
956
971
|
font-size: 13px;
|
|
957
972
|
font-weight: bold;
|
|
958
973
|
}
|
|
@@ -1169,7 +1184,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1169
1184
|
&.si-form-revamp {
|
|
1170
1185
|
width: 100%;
|
|
1171
1186
|
border-radius: 12px;
|
|
1172
|
-
background: #f7f9fc;
|
|
1187
|
+
background: var(--subot-inline-bg-content-color, #f7f9fc);
|
|
1173
1188
|
padding: 24px !important;
|
|
1174
1189
|
|
|
1175
1190
|
.user-info-form {
|
|
@@ -1179,6 +1194,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1179
1194
|
padding: 8px 16px;
|
|
1180
1195
|
|
|
1181
1196
|
&:not(:disabled) {
|
|
1197
|
+
color: var(--subot-inline-text-button-color, #fff);
|
|
1182
1198
|
background-color: var(--subot-inline-primary-color);
|
|
1183
1199
|
}
|
|
1184
1200
|
|
|
@@ -1584,7 +1600,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1584
1600
|
width: 20px;
|
|
1585
1601
|
height: 20px;
|
|
1586
1602
|
border: 2px solid
|
|
1587
|
-
${({active:e})=>{var t;return e?"var(--subot-inline-primary-color)"
|
|
1603
|
+
${({active:e})=>{var t;return e?"var(--subot-inline-primary-color)":`var(--subot-inline-text-color, ${(null===(t=null==re?void 0:re.colors)||void 0===t?void 0:t.gray600)||"#8C8C8C"})`}};
|
|
1588
1604
|
border-radius: 50%;
|
|
1589
1605
|
content: '';
|
|
1590
1606
|
transform: translate(-50%, -50%);
|
|
@@ -1665,7 +1681,8 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1665
1681
|
width: 100%;
|
|
1666
1682
|
padding: 12px 16px;
|
|
1667
1683
|
border-radius: 8px;
|
|
1668
|
-
border: 1px solid #e4e8ec;
|
|
1684
|
+
/* border: 1px solid #e4e8ec; */
|
|
1685
|
+
border: 1px solid var(--subot-inline-text-color, #e4e8ec);
|
|
1669
1686
|
display: flex;
|
|
1670
1687
|
align-items: center;
|
|
1671
1688
|
cursor: pointer;
|
|
@@ -1686,7 +1703,7 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1686
1703
|
font-weight: 400;
|
|
1687
1704
|
line-height: 24px;
|
|
1688
1705
|
letter-spacing: -0.16px;
|
|
1689
|
-
color: #262626;
|
|
1706
|
+
color: var(--subot-inline-text-color, #262626);
|
|
1690
1707
|
}
|
|
1691
1708
|
`,un={input:{"&:focus":{borderColor:"var(--subot-inline-primary-color) !important",boxShadow:"0px 0px 0px 2px var(--subot-inline-primary-color-300) !important"}}},mn={root:{":not(:disabled)":{backgroundColor:"var(--subot-inline-primary-color) !important","&:hover":{backgroundColor:"var(--subot-inline-primary-color-hover) !important"}}}},pn=({action:t,onChange:l,active:r,htmlType:s,formSubmitMeta:d})=>{const{formatMessage:c}=i(L),u=ut(),m=n(null),[p,v]=o(""),{params:b}=i(tt),h=(null==t?void 0:t.type)===g.USER_CHOICE_TEXT_BY_INPUT;a((()=>{var e,t;r&&(v((null===(e=null==d?void 0:d.find((e=>e.key===We)))||void 0===e?void 0:e.value)||""),null===(t=m.current)||void 0===t||t.focus())}),[r,d]);return e.createElement(e.Fragment,null,e.createElement(cn,{id:"si-action-text-choice",active:!!r,onClick:()=>l&&l(t),"data-event-category":"Service Connection","data-event-action":"Risk Screening Answer Click","data-event-label":u,"data-bot-id":b.bot_id},e.createElement(an,{active:!!r},"checkbox"===s&&e.createElement(on,{className:"icon-checkbox",viewBox:"0 0 22 22"})),e.createElement("div",{className:"label"},null==t?void 0:t.label)),h&&r&&e.createElement(ee,{px:"2px",style:{textAlign:"right"}},e.createElement(te,{ref:m,placeholder:null==t?void 0:t.label,styles:un,value:p,onChange:e=>v(e.target.value),maxLength:360}),e.createElement(K,{size:"sm",mt:"5px",styles:mn,disabled:!p,onClick:()=>{p&&l&&l(t,[{key:We,control:"text",value:p}])}},c({id:"feedback.submit",defaultMessage:"Submit"}))))};pn.displayName="SubotInlineActionTextChoice";const vn=X.div``,gn=({action:t,onChange:i,active:n,htmlType:o})=>e.createElement(vn,null,e.createElement(pn,{active:!!n,action:t,onChange:e=>{e&&i&&i({key:null==e?void 0:e.key,control:h[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})},htmlType:o}));gn.displayName="SubotInlinePollChoice";const bn=({action:t,onChange:i,active:n,htmlType:o})=>e.createElement(rn,{active:!!n,action:t,onChange:e=>{e&&i&&i({key:null==e?void 0:e.key,control:h[null==e?void 0:e.type],value:"",action_id:null==e?void 0:e.id})},htmlType:o});bn.displayName="SubotInlinePollChoiceImage";const hn={[g.USER_CHOICE_TEXT]:pn,[g.USER_CHOICE_TEXT_BY_INPUT]:pn,[g.USER_CHOICE_IMAGE]:rn,[g.ACTION_SSO_REDIRECT]:dn,[g.POLL_CHOICE]:gn,[g.POLL_BUTTON]:()=>null,[g.POLL_CHOICE_IMAGE]:bn},fn=new Proxy(hn,{get:(t,i)=>hn[i]||(()=>F?null:e.createElement("p",null,"SubotInlineRevampActionBase ",i))}),yn=[g.USER_CHOICE_NEXT],_n=({actions:t,value:i,onChange:n,htmlType:o,node_type:a,formSubmitMeta:l})=>{const s=r((()=>!!(null==t?void 0:t.find((e=>e.type===g.POLL_CHOICE_IMAGE)))),[t]),d=r((()=>{switch(a){case m.IMAGE:case m.REACTION:return"si-two-columns";default:return s?"si-two-columns":""}}),[a]);return(null==t?void 0:t.length)?e.createElement(nn,{id:"si-action",className:d},null==t?void 0:t.map((t=>{const a=t.type;if(yn.includes(a))return null;const r=fn[t.type];return r&&e.createElement(r,{key:t.id,action:t,onChange:n,active:null==i?void 0:i.includes(t.id),htmlType:o,formSubmitMeta:l})}))):null};_n.displayName="SubotInlineAction";const xn=({node:t,indexNumber:n})=>{const{params:o,listNodes:l,activeId:s,onSubmit:d,setIsShowFooter:c,setLoading:u}=i(tt),{value:m,setValue:p}=i(bt);r((()=>{c(!0)}),[]),a((()=>{p((null==t?void 0:t._message)||{})}),[]);return t?e.createElement(tn,{id:"si-node-final"},e.createElement(ri,{intents:t.intents||[],indexNumber:n}),e.createElement(_n,{node_type:null==t?void 0:t.type,value:(null==m?void 0:m.action_id)?[null==m?void 0:m.action_id]:[],actions:null==t?void 0:t.actions,onChange:e=>_(void 0,void 0,void 0,(function*(){if(!e)return;p(Object.assign(Object.assign({},m),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key}));const i=Object.assign(Object.assign(Object.assign(Object.assign({},o),m),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key}),Ve(l,s,e.id));u(!0);const n=yield ke(i);if(u(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});d(a,i)}}))})):null};xn.displayName="SubotinlineNodeImage";const En=X.div`
|
|
1692
1709
|
display: flex;
|
|
@@ -1703,4 +1720,4 @@ import e,{createContext as t,useContext as i,useRef as n,useState as o,useEffect
|
|
|
1703
1720
|
flex-direction: column;
|
|
1704
1721
|
padding-bottom: 16px;
|
|
1705
1722
|
gap: 24px;
|
|
1706
|
-
`,Tn=({node:t,indexNumber:n})=>{var o;const{params:l,onSubmit:s,setIsShowFooter:d,listNodes:c,activeId:u,setLoading:m,onChange:p}=i(tt),{value:v,setValue:b}=i(bt);r((()=>{d(!0)}),[]),a((()=>{b((null==t?void 0:t._message)||{})}),[]),a((()=>()=>{b({})}),[]);return e.createElement(On,{id:"si-node-text"},e.createElement(ri,{intents:(null==t?void 0:t.intents)||[],indexNumber:n}),e.createElement(_n,{value:(null==v?void 0:v.action_id)?[null==v?void 0:v.action_id]:[],actions:null==t?void 0:t.actions,onChange:(e,i)=>_(void 0,void 0,void 0,(function*(){if(!e)return;const n=e.type===g.USER_CHOICE_TEXT_BY_INPUT;if(b(Object.assign(Object.assign({},v),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key})),n){if(i){const n=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:i}),Ve(c,u,e.id));p(n),m(!0);const o=yield ke(n);if(m(!1),1===(null==o?void 0:o._status)){const e=null==o?void 0:o._data,{node:t}=e,i=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},i),{node_id:t.id})});s(a,n)}}}else(e=>{_(void 0,void 0,void 0,(function*(){const i=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:void 0}),Ve(c,u,e.id));m(!0);const n=yield ke(i);if(m(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});s(a,i)}}))})(e)})),formSubmitMeta:null===(o=null==t?void 0:t._message)||void 0===o?void 0:o.form_submit_meta}))};Tn.displayName="SubotInlineNodeTextContainer";const Cn={TEXT:Tn,IMAGE:xn,FORM:en,FINAL_STANDARD:bi,FINAL:si,FINAL_THANK_YOU:fi,SSO:Nn,MULTIPLE:wn,POLL:kn},Mn=new Proxy(Cn,{get:(t,i)=>Cn[i]||(()=>F?null:e.createElement(e.Fragment,null,"SubotInlineNodeBase ",i))}),Pn=({onClickStart:t})=>{var n;const{listNodes:o,activeId:a,isDisabledAnimationOnMobile:l}=i(tt),s=r((()=>o.findIndex((e=>e.id==a))),[o,a]),d=o[s];if(!d)return null;if(d.hasOwnProperty("first_node"))return l?e.createElement(Tt,{node:d,onClickStart:t}):e.createElement(Y.div,{key:d.id,initial:{opacity:0},animate:{opacity:1},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(Tt,{node:d,onClickStart:t}));const c=d,u=m[c.type].valueOf(),v=null===(n=p[c.position])||void 0===n?void 0:n.valueOf();let g=c.position===p.SSO?Mn[v]:Mn[u];return c.is_multi_select&&c.type!==m.POLL&&(g=Mn.MULTIPLE),e.createElement(Y.div,{key:c.id,initial:{opacity:1,y:-300},animate:{opacity:1,y:0},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(g,{indexNumber:s,node:c}))};Pn.displayName="SubotInlineNodeContainer";const Un={type:"spring",damping:25,stiffness:120},Bn=d((({loading:t,backgroundImage:i,isShowFooter:n,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:d,onCloseMobile:c})=>{const
|
|
1723
|
+
`,Tn=({node:t,indexNumber:n})=>{var o;const{params:l,onSubmit:s,setIsShowFooter:d,listNodes:c,activeId:u,setLoading:m,onChange:p}=i(tt),{value:v,setValue:b}=i(bt);r((()=>{d(!0)}),[]),a((()=>{b((null==t?void 0:t._message)||{})}),[]),a((()=>()=>{b({})}),[]);return e.createElement(On,{id:"si-node-text"},e.createElement(ri,{intents:(null==t?void 0:t.intents)||[],indexNumber:n}),e.createElement(_n,{value:(null==v?void 0:v.action_id)?[null==v?void 0:v.action_id]:[],actions:null==t?void 0:t.actions,onChange:(e,i)=>_(void 0,void 0,void 0,(function*(){if(!e)return;const n=e.type===g.USER_CHOICE_TEXT_BY_INPUT;if(b(Object.assign(Object.assign({},v),{action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key})),n){if(i){const n=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:i}),Ve(c,u,e.id));p(n),m(!0);const o=yield ke(n);if(m(!1),1===(null==o?void 0:o._status)){const e=null==o?void 0:o._data,{node:t}=e,i=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},i),{node_id:t.id})});s(a,n)}}}else(e=>{_(void 0,void 0,void 0,(function*(){const i=Object.assign(Object.assign(Object.assign(Object.assign({},l),v),{node_id:t.id,action_id:null==e?void 0:e.id,action_value:null==e?void 0:e.key,form_submit_meta:void 0}),Ve(c,u,e.id));m(!0);const n=yield ke(i);if(m(!1),1===(null==n?void 0:n._status)){const e=null==n?void 0:n._data,{node:t}=e,o=x(e,["node"]),a=Object.assign(Object.assign({},t),{_message:Object.assign(Object.assign({},o),{node_id:t.id})});s(a,i)}}))})(e)})),formSubmitMeta:null===(o=null==t?void 0:t._message)||void 0===o?void 0:o.form_submit_meta}))};Tn.displayName="SubotInlineNodeTextContainer";const Cn={TEXT:Tn,IMAGE:xn,FORM:en,FINAL_STANDARD:bi,FINAL:si,FINAL_THANK_YOU:fi,SSO:Nn,MULTIPLE:wn,POLL:kn},Mn=new Proxy(Cn,{get:(t,i)=>Cn[i]||(()=>F?null:e.createElement(e.Fragment,null,"SubotInlineNodeBase ",i))}),Pn=({onClickStart:t})=>{var n;const{listNodes:o,activeId:a,isDisabledAnimationOnMobile:l}=i(tt),s=r((()=>o.findIndex((e=>e.id==a))),[o,a]),d=o[s];if(!d)return null;if(d.hasOwnProperty("first_node"))return l?e.createElement(Tt,{node:d,onClickStart:t}):e.createElement(Y.div,{key:d.id,initial:{opacity:0},animate:{opacity:1},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(Tt,{node:d,onClickStart:t}));const c=d,u=m[c.type].valueOf(),v=null===(n=p[c.position])||void 0===n?void 0:n.valueOf();let g=c.position===p.SSO?Mn[v]:Mn[u];return c.is_multi_select&&c.type!==m.POLL&&(g=Mn.MULTIPLE),e.createElement(Y.div,{key:c.id,initial:{opacity:1,y:-300},animate:{opacity:1,y:0},transition:{y:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},e.createElement(g,{indexNumber:s,node:c}))};Pn.displayName="SubotInlineNodeContainer";const Un={type:"spring",damping:25,stiffness:120},Bn=d((({loading:t,backgroundImage:i,isShowFooter:n,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:d,onCloseMobile:c,bgImgFullContainer:u})=>{const m=r((()=>({backgroundImage:i?`url("${i}")`:void 0,backgroundRepeat:"no-repeat",backgroundPosition:"center"})),[i]),[p,v]=o(!1);a((()=>{p?document.body.classList.add("si-open-overflow"):document.body.classList.remove("si-open-overflow")}),[p]),a((()=>()=>{document.body.classList.remove("si-open-overflow")}),[]);const g=p||s,b=e.createElement(at,null,e.createElement(Y.div,{style:m,layout:!0,transition:s?void 0:Un,className:z("si-inline-revamp-container",{"si-container-open":g,"si-full-container-config":l})},g&&e.createElement("button",{className:"si-close-btn",onClick:()=>{console.log("onClosemobile",c),v(!1),null==c||c()}},e.createElement(nt,null)),e.createElement(ht,null,e.createElement("div",{className:"subot-inline-revamp-container","data-show-footer":n},t&&!n&&e.createElement(V,{className:"si-loading"}),e.createElement(Pn,{onClickStart:()=>{v(!0)}})),n&&e.createElement(xt,null))),e.createElement("div",{className:"si-container-placeholder"})),h=r((()=>{if(u)return{backgroundImage:`url("${u}")`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),[u]);return l?e.createElement(lt,{style:h},e.createElement(H,{className:"si-container"},e.createElement("div",{className:"si-revamp-left"},e.createElement(kt,{subotSettingData:d}),e.createElement(ct,null)),e.createElement("div",{className:"si-revamp-right"},b))):b}));Bn.displayName="SubotInlineRevampView";const jn=()=>{const{loading:t,listNodes:n,isShowFooter:o,activeId:a,isFullContainer:l,isDisabledAnimationOnMobile:s,onCloseMobile:d,userInfo:c,bgImgFullContainer:m}=i(tt),p=r((()=>{var e,t;const i=n.find((e=>e.id==a));return i?i.inline_background||(null===(t=null===(e=i.intents)||void 0===e?void 0:e.find((e=>e.type===u.BOT_BACKGROUND_IMAGE)))||void 0===t?void 0:t.url):""}),[n,a]),v=r((()=>{const e=n[0];return{inlineImage:(null==e?void 0:e.inline_image)||"",inilneHeadline:(null==e?void 0:e.inline_headline)||"",reviewByAvatar:(null==e?void 0:e.inline_avatar)||"",reviewByName:(null==e?void 0:e.inline_review)||"",reviewBySpecialty:(null==e?void 0:e.inline_speciality)||"",reviewByHospital:(null==e?void 0:e.inline_hospital_name)||""}}),[n[0]]);if(void 0===c||!n[0])return null;const g={loading:t,backgroundImage:p,bgImgFullContainer:m,isShowFooter:o,isFullContainer:l,isDisabledAnimationOnMobile:s,subotSettingData:v,onCloseMobile:d};return e.createElement(Bn,Object.assign({},g))};jn.displayName="SubotInlineRevamp";const Rn=t=>e.createElement(it,Object.assign({},t,{subotId:Number(t.id)}),e.createElement(jn,null)),An=t=>{var i,n,l,r,s,d,c,u,m,p,v,g;const[b,h]=o(null);return a((()=>{_(void 0,void 0,void 0,(function*(){const e=yield Promise.resolve().then((function(){return Ln})).then((e=>e.subotInlineFirstNode)),i=yield e(t.id);console.log("props.id",t.id,i),h((null==i?void 0:i._data)||null)}))}),[t.id]),b?e.createElement(Rn,Object.assign({},t,{primaryColor:null===(n=null===(i=b.extra_settings)||void 0===i?void 0:i.inline_styles)||void 0===n?void 0:n.primary_color,textColor:null===(r=null===(l=b.extra_settings)||void 0===l?void 0:l.inline_styles)||void 0===r?void 0:r.text_color,textButtonColor:null===(d=null===(s=b.extra_settings)||void 0===s?void 0:s.inline_styles)||void 0===d?void 0:d.text_button_color,bgColor:null===(u=null===(c=b.extra_settings)||void 0===c?void 0:c.inline_styles)||void 0===u?void 0:u.container_bg_color,bgContentColor:null===(p=null===(m=b.extra_settings)||void 0===m?void 0:m.inline_styles)||void 0===p?void 0:p.content_bg_color,bgImgFullContainer:null===(g=null===(v=b.extra_settings)||void 0===v?void 0:v.inline_styles)||void 0===g?void 0:g.container_bg_image})):null};var Ln=Object.freeze({__proto__:null,default:Rn,SubotInlineRevampWithTheme:An,overrideParamsByQuery:Pe,ssoIntents:Ue,checkUntilFinished:Be,getHhgIdFromCookie:je,getSubotCookieId:Re,getUserIdFromCookie:Ae,getUserInfoFromCookie:Le,getWindowId:$e,getHelloSitesUrl:Fe,checkMobile:qe,clickAndOpenInNewTab:ze,TIME_RESET_RESEND_OTP:30,getSubotApiPath:Se,subotInlineMessage:ke,computeExtraSettingsForBot:Ie,subotInlineFirstNode:Ne,subotInlineClick:Oe,subotInlineImpression:Te,PATHS:Ee});export{Ee as PATHS,An as SubotInlineRevampWithTheme,He as TIME_RESET_RESEND_OTP,qe as checkMobile,Be as checkUntilFinished,ze as clickAndOpenInNewTab,Ie as computeExtraSettingsForBot,Rn as default,Fe as getHelloSitesUrl,je as getHhgIdFromCookie,Se as getSubotApiPath,Re as getSubotCookieId,Ae as getUserIdFromCookie,Le as getUserInfoFromCookie,$e as getWindowId,Pe as overrideParamsByQuery,Ue as ssoIntents,Oe as subotInlineClick,Ne as subotInlineFirstNode,Te as subotInlineImpression,ke as subotInlineMessage};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mantine/core';
|
|
2
3
|
export type Props = {
|
|
3
4
|
children?: ReactNode;
|
|
4
|
-
} &
|
|
5
|
-
declare const LikeWrapper: ({ children, className }: Props) => React.JSX.Element;
|
|
6
|
-
declare const ShareWrapper: ({ children, className }: Props) => React.JSX.Element;
|
|
7
|
-
declare const CommentWrapper: ({ children, className }: Props) => React.JSX.Element;
|
|
5
|
+
} & BoxProps;
|
|
6
|
+
declare const LikeWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
|
|
7
|
+
declare const ShareWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
|
|
8
|
+
declare const CommentWrapper: ({ children, className, ...boxProps }: Props) => React.JSX.Element;
|
|
8
9
|
export { LikeWrapper, ShareWrapper, CommentWrapper };
|
|
@@ -28,8 +28,8 @@ export type Props = {
|
|
|
28
28
|
};
|
|
29
29
|
declare const CardReactions: {
|
|
30
30
|
({ type, viewCount, loveCount, replyCount, replyPadding, liked, isReplied, onCommentClick, onLikeClick, onShareClick, className, style, hideCommentIcon, showingMostEngaging, isMarryBaby: isMarryBabyInit, hasShare, hasCountLike, trackingCategory, trackingLabel, children, ...rest }: Props): React.JSX.Element;
|
|
31
|
-
LikeWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
|
|
32
|
-
ShareWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
|
|
33
|
-
CommentWrapper: ({ children, className }: import("./element").Props) => React.JSX.Element;
|
|
31
|
+
LikeWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
|
|
32
|
+
ShareWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
|
|
33
|
+
CommentWrapper: ({ children, className, ...boxProps }: import("./element").Props) => React.JSX.Element;
|
|
34
34
|
};
|
|
35
35
|
export { CardReactions };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SiteType } from "../../../../types";
|
|
3
|
+
export type CardAuthorContextProps = {
|
|
4
|
+
displayName: string;
|
|
5
|
+
role: string;
|
|
6
|
+
title: string;
|
|
7
|
+
siteType: SiteType;
|
|
8
|
+
handleMakeAppointment: (doctorId?: string, hospitalId?: string) => void;
|
|
9
|
+
doctorId: string;
|
|
10
|
+
hospitalId: string;
|
|
11
|
+
currentUrl: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const CardAuthorContext: import("react").Context<CardAuthorContextProps>;
|