@hhgtech/hhg-components 1.29.23 → 1.29.25
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/WhatsApp-35770ecc.js +30 -0
- package/build/adapters.js +15 -15
- package/build/babyGrowth.js +139 -138
- package/build/cache.js +3 -3
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care.js +17 -17
- package/build/components/atoms/icons/Facebook.d.ts +4 -0
- package/build/components/atoms/icons/Instagram.d.ts +4 -0
- package/build/components/atoms/icons/Line.d.ts +4 -0
- package/build/components/atoms/icons/Linkedin.d.ts +4 -0
- package/build/components/atoms/icons/Twitter.d.ts +4 -0
- package/build/components/atoms/icons/index.d.ts +1 -0
- package/build/components/mantine/modal/index.d.ts +1 -1
- package/build/components.js +58 -57
- package/build/{constants-83103c86.js → constants-7fddc7f7.js} +2 -2
- package/build/{constants-fe792097.js → constants-da55a84e.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-a181cf16.js → core-a265269e.js} +2 -2
- package/build/{dataTransform-856b1f05.js → dataTransform-15015b32.js} +1 -1
- package/build/ecom.js +6 -6
- package/build/esm/WhatsApp-321057e5.js +24 -0
- package/build/esm/adapters.js +15 -15
- package/build/esm/babyGrowth.js +80 -79
- package/build/esm/cache.js +3 -3
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/esm/care.js +17 -17
- package/build/esm/components/atoms/icons/Facebook.d.ts +4 -0
- package/build/esm/components/atoms/icons/Instagram.d.ts +4 -0
- package/build/esm/components/atoms/icons/Line.d.ts +4 -0
- package/build/esm/components/atoms/icons/Linkedin.d.ts +4 -0
- package/build/esm/components/atoms/icons/Twitter.d.ts +4 -0
- package/build/esm/components/atoms/icons/index.d.ts +1 -0
- package/build/esm/components/mantine/modal/index.d.ts +1 -1
- package/build/esm/components.js +58 -57
- package/build/esm/{constants-548f4588.js → constants-1174d0f0.js} +2 -2
- package/build/esm/{constants-fcc67674.js → constants-3f24d4bd.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-6d345f96.js → core-f598afc6.js} +2 -2
- package/build/esm/{dataTransform-2eed5a53.js → dataTransform-a44c3d7b.js} +1 -1
- package/build/esm/ecom.js +6 -6
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-0947c4a4.js → getDynamicHealthTool-b3eb64ec.js} +4 -4
- package/build/esm/getSocialList-625dd815.js +96 -0
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-7afb8e30.js → index-07e119b9.js} +12 -12
- package/build/esm/{index-d4d744b5.js → index-0d74d50d.js} +5 -5
- package/build/esm/{index-eae69ef8.js → index-0e55e2be.js} +3 -3
- package/build/esm/{index-680e27d9.js → index-1d14271f.js} +2 -2
- package/build/esm/{index-a575349a.js → index-3b86b895.js} +10 -10
- package/build/esm/{Subot-361740d6.js → index-43acf53a.js} +34 -1
- package/build/esm/{index-dc44831b.js → index-47c8429c.js} +11 -11
- package/build/esm/{index-e761c348.js → index-4c81dc18.js} +4 -4
- package/build/esm/{index-8ec83835.js → index-4cada81e.js} +6 -6
- package/build/esm/{index-e121bfa0.js → index-54d95469.js} +1 -1
- package/build/esm/{index-132a6178.js → index-57adb5eb.js} +45 -41
- package/build/esm/{index-3cdf5d9b.js → index-62e81061.js} +2 -2
- package/build/esm/{index-63e22f43.js → index-7ddf699e.js} +2 -2
- package/build/esm/{index-b40f826b.js → index-8008586b.js} +2 -2
- package/build/esm/{index-6a9d62f7.js → index-8365c37f.js} +4 -4
- package/build/esm/{index-8ed0a3d3.js → index-84bd9c32.js} +32 -31
- package/build/esm/{index-574efe4b.js → index-90eea71b.js} +2 -2
- package/build/esm/{index-b95e1821.js → index-9d13cee1.js} +8 -4
- package/build/esm/{index-92cdb389.js → index-a1981b13.js} +10 -10
- package/build/esm/{index-a8f17123.js → index-aa8ae7f9.js} +2 -2
- package/build/esm/{index-d153a02d.js → index-b115d850.js} +2 -2
- package/build/esm/{index-a9367999.js → index-b1db79d0.js} +5 -4
- package/build/esm/{index-dcab64b1.js → index-b4ee011b.js} +9 -9
- package/build/esm/{index-943061a4.js → index-c3e340c2.js} +9 -9
- package/build/esm/{index-6ece991f.js → index-c853dc6e.js} +2 -2
- package/build/esm/{index-5c54e7b1.js → index-e203ac71.js} +5 -3
- package/build/esm/index.js +67 -85
- package/build/esm/{index.styled-fb5ef56b.js → index.styled-7e8976d7.js} +2 -2
- package/build/esm/{index.styles-842e6e70.js → index.styles-c6f8b3fc.js} +6 -6
- package/build/esm/interfaces/types/index.d.ts +11 -0
- package/build/esm/lead/components/context.d.ts +2 -2
- package/build/esm/lead/components/form/index.styles.d.ts +1 -0
- package/build/esm/lead/components/index.d.ts +2 -1
- package/build/esm/lead/components/thankyou.d.ts +1 -1
- package/build/esm/lead/index.d.ts +1 -0
- package/build/esm/lead.js +50 -41
- package/build/esm/mantine.js +21 -21
- package/build/esm/misc/getSocialList.d.ts +3 -2
- package/build/esm/misc.js +19 -18
- package/build/esm/navigation.js +35 -34
- package/build/esm/onboardingV2.js +31 -30
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-0e8fa6d3.js → routing-95ea7b65.js} +2 -2
- package/build/esm/subot.js +22 -21
- package/build/esm/together.js +34 -34
- package/build/esm/{types-56c20269.js → types-5ac2ff73.js} +13 -13
- package/build/esm/{types-62ab109f.js → types-a20df0c5.js} +44 -45
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-fe269ece.js → useCategory-6b615844.js} +5 -5
- package/build/esm/{useHealthToolCache-c97960a0.js → useHealthToolCache-56de0311.js} +2 -2
- package/build/esm/{useMantineLocale-40210236.js → useMantineLocale-8fe4fb5d.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-2e3ac7b4.js → usePlacesAutocomplete-8fad7364.js} +1 -1
- package/build/esm/{useTranslations-8b84971d.js → useTranslations-5f0ff5be.js} +1 -1
- package/build/esm/{utils-4c1be496.js → utils-42c076ca.js} +4 -4
- package/build/esm/{utils-36f3b48d.js → utils-8c516da1.js} +31 -24
- package/build/esm/{utils-f69148b3.js → utils-a503138f.js} +1 -1
- package/build/esm/vaccination.js +26 -25
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-4b10e371.js → getDynamicHealthTool-77ad407c.js} +4 -4
- package/build/getSocialList-b23f0cb7.js +102 -0
- package/build/hooks.js +17 -17
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-1e5ab75e.js → index-030b874d.js} +12 -12
- package/build/{index-0ab5406a.js → index-062199dd.js} +2 -2
- package/build/{index-d8d8d8f9.js → index-105c8063.js} +13 -13
- package/build/{index-d29fe144.js → index-2efce884.js} +41 -40
- package/build/{index-a9909eda.js → index-35563f12.js} +2 -2
- package/build/{index-a6df76e8.js → index-42026289.js} +45 -45
- package/build/{index-32ea3d2a.js → index-55fd130f.js} +26 -26
- package/build/{index-0530a6d5.js → index-564d3bfc.js} +6 -4
- package/build/{index-2eb92c6e.js → index-5aaa87c9.js} +2 -2
- package/build/{index-00082c1c.js → index-6197f133.js} +9 -9
- package/build/{index-e0539879.js → index-619c46d6.js} +2 -2
- package/build/{Subot-10b3bc3c.js → index-717e466d.js} +34 -0
- package/build/{index-663b3cf0.js → index-802d6d60.js} +12 -12
- package/build/{index-c391e0e0.js → index-84c6efc1.js} +2 -2
- package/build/{index-ec6a5ce1.js → index-90e90e3d.js} +4 -4
- package/build/{index-22f2d9d4.js → index-91dfa8fd.js} +52 -48
- package/build/{index-a9d7ba78.js → index-9f1cb55a.js} +8 -4
- package/build/{index-56035c50.js → index-a6795e34.js} +3 -3
- package/build/{index-f5e6489c.js → index-a6ade3c7.js} +7 -7
- package/build/{index-497d465f.js → index-bb55a2a5.js} +1 -1
- package/build/{index-23c8fa2c.js → index-c8886dfa.js} +17 -17
- package/build/index-d4e42148.js +77 -0
- package/build/{index-a031b95e.js → index-d56f3314.js} +2 -2
- package/build/{index-f856a387.js → index-de3537ec.js} +2 -2
- package/build/{index-0a0388bf.js → index-e1ab3b36.js} +5 -4
- package/build/{index-e4125647.js → index-e76b722c.js} +10 -10
- package/build/index.js +67 -85
- package/build/{index.styled-98760ae1.js → index.styled-4f0b82d2.js} +2 -2
- package/build/{index.styles-f01df622.js → index.styles-ead24c3b.js} +6 -6
- package/build/interfaces/types/index.d.ts +11 -0
- package/build/lead/components/context.d.ts +2 -2
- package/build/lead/components/form/index.styles.d.ts +1 -0
- package/build/lead/components/index.d.ts +2 -1
- package/build/lead/components/thankyou.d.ts +1 -1
- package/build/lead/index.d.ts +1 -0
- package/build/lead.js +50 -41
- package/build/mantine.js +18 -18
- package/build/misc/getSocialList.d.ts +3 -2
- package/build/misc.js +19 -18
- package/build/navigation.js +35 -34
- package/build/onboardingV2.js +30 -29
- package/build/pwg.js +19 -19
- package/build/{routing-c18c13c1.js → routing-583ce55e.js} +2 -2
- package/build/subot.js +204 -203
- package/build/together.js +34 -34
- package/build/{types-ce59480c.js → types-4b7eb719.js} +13 -13
- package/build/{types-13051304.js → types-b91979fa.js} +124 -125
- package/build/types.js +20 -16
- package/build/{useCategory-98906f54.js → useCategory-801d8148.js} +15 -15
- package/build/{useHealthToolCache-966d36c1.js → useHealthToolCache-b9f0195f.js} +2 -2
- package/build/{useMantineLocale-5bdd1d8e.js → useMantineLocale-7c47271c.js} +23 -23
- package/build/{usePlacesAutocomplete-85b04bee.js → usePlacesAutocomplete-2c183056.js} +1 -1
- package/build/{useTranslations-edb824e3.js → useTranslations-480f64da.js} +1 -1
- package/build/{utils-f4ec384b.js → utils-c5ddb828.js} +31 -24
- package/build/{utils-5e5329b4.js → utils-d8620de3.js} +8 -8
- package/build/{utils-bd8e14ad.js → utils-e94247e4.js} +10 -10
- package/build/vaccination.js +32 -31
- package/package.json +1 -1
- package/build/esm/getSocialList-8544d1d6.js +0 -60
- package/build/getSocialList-b92d91aa.js +0 -66
- package/build/index-36d6ceab.js +0 -77
- /package/build/{BMI_BOYS.percentile.monthly-97114744.js → BMI_BOYS.percentile.monthly-d50fe5ae.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-73ed8fc4.js → BMI_BOYS.percentile.weekly-43894113.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-0083706f.js → BMI_BOYS.percentile.yearly-fbd052bf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-ea56d845.js → BMI_BOYS.zscore.monthly-74c8af46.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-323d8624.js → BMI_BOYS.zscore.weekly-42f382c7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-e633b372.js → BMI_BOYS.zscore.yearly-6ea91784.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-df3080e9.js → BMI_GIRLS.percentile.monthly-eeaad411.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-cd8109b6.js → BMI_GIRLS.percentile.weekly-34799c6d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-d23b2904.js → BMI_GIRLS.percentile.yearly-59bdf904.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-54a1b4d0.js → BMI_GIRLS.zscore.monthly-95f19acb.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-1bb6e773.js → BMI_GIRLS.zscore.weekly-c2525a68.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-f1754041.js → BMI_GIRLS.zscore.yearly-c67c83e1.js} +0 -0
- /package/build/{ChevronDown-121f1185.js → ChevronDown-91f06fd2.js} +0 -0
- /package/build/{Close-306c8a67.js → Close-6e566c9d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-8d015fce.js → HEAD CIRCUM_BOYS.percentile.monthly-342a4a8b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-5b7117ac.js → HEAD CIRCUM_BOYS.percentile.weekly-b582bdc6.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-01fd03e7.js → HEAD CIRCUM_BOYS.percentile.yearly-f45241a8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3471ea39.js → HEAD CIRCUM_BOYS.zscore.monthly-c4899e99.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-784f9ee2.js → HEAD CIRCUM_BOYS.zscore.weekly-2592ac1c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-87e36b24.js → HEAD CIRCUM_BOYS.zscore.yearly-4fdb95df.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-40ac5912.js → HEAD CIRCUM_GIRLS.percentile.monthly-35293595.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-db883adf.js → HEAD CIRCUM_GIRLS.percentile.weekly-cb142232.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-7b60bc79.js → HEAD CIRCUM_GIRLS.percentile.yearly-72be1a24.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-a6505bf6.js → HEAD CIRCUM_GIRLS.zscore.monthly-11902907.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-97a88fa9.js → HEAD CIRCUM_GIRLS.zscore.weekly-f01466fc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-04ec653c.js → HEAD CIRCUM_GIRLS.zscore.yearly-cbcaff35.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-422ee655.js → HEIGHT_BOYS.percentile.monthly-8b850042.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-83287693.js → HEIGHT_BOYS.percentile.weekly-a72cd3c5.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1fc19b3d.js → HEIGHT_BOYS.percentile.yearly-20908987.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-a5824279.js → HEIGHT_BOYS.zscore.monthly-b63b54dc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-b4db1f7f.js → HEIGHT_BOYS.zscore.weekly-8c2af19d.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-179d8f96.js → HEIGHT_BOYS.zscore.yearly-ee3ccb3c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8f7f22cb.js → HEIGHT_GIRLS.percentile.monthly-bca91c6a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-0a518496.js → HEIGHT_GIRLS.percentile.weekly-a579abb8.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-09f373fa.js → HEIGHT_GIRLS.percentile.yearly-b60fbbd1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-40cde6c6.js → HEIGHT_GIRLS.zscore.monthly-4f5029fd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-09495b45.js → HEIGHT_GIRLS.zscore.weekly-b85f05ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-56c7f570.js → HEIGHT_GIRLS.zscore.yearly-44f4fab9.js} +0 -0
- /package/build/{Visible-858dd620.js → Visible-63ae4a15.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-79951845.js → WEIGHT_BOYS.percentile.monthly-11e4f5e8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-8eebc18a.js → WEIGHT_BOYS.percentile.weekly-b6fab62d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-ddb175a3.js → WEIGHT_BOYS.percentile.yearly-a4801ff8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-4f48ca01.js → WEIGHT_BOYS.zscore.monthly-d5fe14b5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-750b0bbf.js → WEIGHT_BOYS.zscore.weekly-5701e0e0.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a8a13f4c.js → WEIGHT_BOYS.zscore.yearly-8eec9677.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-3864b4a4.js → WEIGHT_GIRLS.percentile.monthly-1119cd80.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-0345cdc6.js → WEIGHT_GIRLS.percentile.weekly-521dfc88.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-91fdbc66.js → WEIGHT_GIRLS.percentile.yearly-70ce9387.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e2d72902.js → WEIGHT_GIRLS.zscore.monthly-23806ed2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-2324885b.js → WEIGHT_GIRLS.zscore.weekly-7b7bd073.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-ecd684fd.js → WEIGHT_GIRLS.zscore.yearly-491f32e1.js} +0 -0
- /package/build/{animation-4f527e9b.js → animation-9d8acebe.js} +0 -0
- /package/build/{cart-59a5da5e.js → cart-690cadca.js} +0 -0
- /package/build/{cookieHelper-13eeab44.js → cookieHelper-0b7f586d.js} +0 -0
- /package/build/{doctor-fe31197a.js → doctor-5ca5d99b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-32b12c67.js → BMI_BOYS.percentile.monthly-954c2d8f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-06fde604.js → BMI_BOYS.percentile.weekly-4f9c77ab.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-375bb73c.js → BMI_BOYS.percentile.yearly-1929eb3b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-c2413e9f.js → BMI_BOYS.zscore.monthly-66f969ea.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-d51f277c.js → BMI_BOYS.zscore.weekly-c3eb69b3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-7f960bab.js → BMI_BOYS.zscore.yearly-738ee609.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1bfa2e59.js → BMI_GIRLS.percentile.monthly-5bd9e974.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-3ac046bc.js → BMI_GIRLS.percentile.weekly-50399b6a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-f93f6d3a.js → BMI_GIRLS.percentile.yearly-b780ed5c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-5e7cf3ec.js → BMI_GIRLS.zscore.monthly-9946a16f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-a846a22d.js → BMI_GIRLS.zscore.weekly-6a985189.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ab7314d8.js → BMI_GIRLS.zscore.yearly-7e06b463.js} +0 -0
- /package/build/esm/{ChevronDown-d5afb91b.js → ChevronDown-761e1d17.js} +0 -0
- /package/build/esm/{Close-35698e10.js → Close-e3fe72a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-17f34b96.js → HEAD CIRCUM_BOYS.percentile.monthly-b5fd3180.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-064436b7.js → HEAD CIRCUM_BOYS.percentile.weekly-07f290cd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-3cf8a772.js → HEAD CIRCUM_BOYS.percentile.yearly-99c9790d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ab3ccaa3.js → HEAD CIRCUM_BOYS.zscore.monthly-2c61094c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-60e235f8.js → HEAD CIRCUM_BOYS.zscore.weekly-55e7391c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-a723c8ec.js → HEAD CIRCUM_BOYS.zscore.yearly-c3ae5aac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-899f498d.js → HEAD CIRCUM_GIRLS.percentile.monthly-2fc36807.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-a8578563.js → HEAD CIRCUM_GIRLS.percentile.weekly-36d69146.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e439cde4.js → HEAD CIRCUM_GIRLS.percentile.yearly-79967c54.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7c7b74e3.js → HEAD CIRCUM_GIRLS.zscore.monthly-15ff247d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-296b35b3.js → HEAD CIRCUM_GIRLS.zscore.weekly-7e74085f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-924eab18.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a6f280f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-6250b668.js → HEIGHT_BOYS.percentile.monthly-42868130.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-66e5a9bd.js → HEIGHT_BOYS.percentile.weekly-b497520f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-dabcb848.js → HEIGHT_BOYS.percentile.yearly-489e3a70.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-cf043972.js → HEIGHT_BOYS.zscore.monthly-22b88c68.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-6a4855a6.js → HEIGHT_BOYS.zscore.weekly-6b6b951c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-e201ff72.js → HEIGHT_BOYS.zscore.yearly-4293d9f0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-560c144b.js → HEIGHT_GIRLS.percentile.monthly-cbc98ce9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-060d3634.js → HEIGHT_GIRLS.percentile.weekly-9c962736.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-c755a4a3.js → HEIGHT_GIRLS.percentile.yearly-43d44637.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-439c20ba.js → HEIGHT_GIRLS.zscore.monthly-7e8ffefc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a8e88330.js → HEIGHT_GIRLS.zscore.weekly-30c4a68b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-1c6597cd.js → HEIGHT_GIRLS.zscore.yearly-cea9956e.js} +0 -0
- /package/build/esm/{Visible-9f2228ee.js → Visible-6294ea92.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-de095d0e.js → WEIGHT_BOYS.percentile.monthly-351b002b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-4e3f413f.js → WEIGHT_BOYS.percentile.weekly-f4df38c2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bb36e395.js → WEIGHT_BOYS.percentile.yearly-5ef225df.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-b1170396.js → WEIGHT_BOYS.zscore.monthly-d03bbb69.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-92b9d262.js → WEIGHT_BOYS.zscore.weekly-a642e63d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-924dd090.js → WEIGHT_BOYS.zscore.yearly-de0f11a4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-73f7a0ed.js → WEIGHT_GIRLS.percentile.monthly-4a22c12a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-cad07f03.js → WEIGHT_GIRLS.percentile.weekly-8273ddae.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-82515797.js → WEIGHT_GIRLS.percentile.yearly-28df4700.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-c36bbf5c.js → WEIGHT_GIRLS.zscore.monthly-a2e302d9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-bd556cc3.js → WEIGHT_GIRLS.zscore.weekly-b684c8d6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-bd222e1f.js → WEIGHT_GIRLS.zscore.yearly-bb99a4f3.js} +0 -0
- /package/build/esm/{animation-8c547eec.js → animation-89491bac.js} +0 -0
- /package/build/esm/{cart-41d81648.js → cart-e181efa3.js} +0 -0
- /package/build/esm/{cookieHelper-21637032.js → cookieHelper-bdcae9e9.js} +0 -0
- /package/build/esm/{doctor-69db91e9.js → doctor-e1e1a438.js} +0 -0
- /package/build/esm/{index-dd7eccc3.js → index-11ea5f3a.js} +0 -0
- /package/build/esm/{index-36d68721.js → index-2219b86b.js} +0 -0
- /package/build/esm/{index-d8148b19.js → index-39aeff4f.js} +0 -0
- /package/build/esm/{isProduction-7604877f.js → isProduction-2cb49e0e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c3dce4b4.js → localizeNumberFormat-93a46788.js} +0 -0
- /package/build/esm/{normalizeLink-31981aa3.js → normalizeLink-98886668.js} +0 -0
- /package/build/esm/{number-7a55b6a3.js → number-d3e03931.js} +0 -0
- /package/build/esm/{paths-d0064310.js → paths-47504c6e.js} +0 -0
- /package/build/esm/{theme-5885ed2a.js → theme-ad9ae9bc.js} +0 -0
- /package/build/esm/{translationsContext-cb471015.js → translationsContext-dd192b6b.js} +0 -0
- /package/build/esm/{tslib.es6-dc38c9a9.js → tslib.es6-77e4ea0d.js} +0 -0
- /package/build/esm/{types-bbdb4b5a.js → types-1184bbca.js} +0 -0
- /package/build/esm/{useIsInit-1d8f34c6.js → useIsInit-8442a087.js} +0 -0
- /package/build/esm/{useOutsideClick-b218f74e.js → useOutsideClick-29676c24.js} +0 -0
- /package/build/esm/{useScrollbarSize-55567401.js → useScrollbarSize-c96444e0.js} +0 -0
- /package/build/esm/{useUniqueId-79649657.js → useUniqueId-0d137689.js} +0 -0
- /package/build/esm/{utils-81ef6fd0.js → utils-3501a8c9.js} +0 -0
- /package/build/{index-b8f0bfc8.js → index-1327fbe0.js} +0 -0
- /package/build/{index-5cc0dc98.js → index-14dec016.js} +0 -0
- /package/build/{index-1754c5e0.js → index-8515dc14.js} +0 -0
- /package/build/{isProduction-96b803ee.js → isProduction-b1fe9e14.js} +0 -0
- /package/build/{localizeNumberFormat-caf6373c.js → localizeNumberFormat-1a51ee3d.js} +0 -0
- /package/build/{normalizeLink-cfc248a6.js → normalizeLink-2fbce9d9.js} +0 -0
- /package/build/{number-9f26f611.js → number-a548c60c.js} +0 -0
- /package/build/{paths-a1dba0a3.js → paths-c6a37ed5.js} +0 -0
- /package/build/{theme-c77539f8.js → theme-98664cfd.js} +0 -0
- /package/build/{translationsContext-f03cde97.js → translationsContext-4b7afa0b.js} +0 -0
- /package/build/{tslib.es6-2ac79a26.js → tslib.es6-86f09fff.js} +0 -0
- /package/build/{types-33b76625.js → types-68510635.js} +0 -0
- /package/build/{useIsInit-f3c42bd3.js → useIsInit-2b2ff2f0.js} +0 -0
- /package/build/{useOutsideClick-962ad8f7.js → useOutsideClick-cff03e12.js} +0 -0
- /package/build/{useScrollbarSize-86adbd89.js → useScrollbarSize-8ba5e28e.js} +0 -0
- /package/build/{useUniqueId-312b88fa.js → useUniqueId-3b0ef44a.js} +0 -0
- /package/build/{utils-9757de2d.js → utils-1f428807.js} +0 -0
package/build/subot.js
CHANGED
|
@@ -3,53 +3,54 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var index$
|
|
6
|
+
var index$1 = require('./index-717e466d.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-86f09fff.js');
|
|
8
|
+
var index$2 = require('./index-42026289.js');
|
|
9
9
|
var Cookies = require('js-cookie');
|
|
10
10
|
var fd = require('fastdom');
|
|
11
11
|
var fastdomPromised = require('fastdom/extensions/fastdom-promised');
|
|
12
12
|
var formatString = require('string-format');
|
|
13
|
-
var utils = require('./utils-
|
|
13
|
+
var utils = require('./utils-c5ddb828.js');
|
|
14
14
|
var uuid = require('uuid');
|
|
15
|
-
var isProduction = require('./isProduction-
|
|
15
|
+
var isProduction = require('./isProduction-b1fe9e14.js');
|
|
16
16
|
var hexRgb = require('hex-rgb');
|
|
17
17
|
var cn = require('classnames');
|
|
18
|
-
var index$
|
|
19
|
-
var index$
|
|
18
|
+
var index$9 = require('./index-8515dc14.js');
|
|
19
|
+
var index$7 = require('./index-a6795e34.js');
|
|
20
20
|
var framerMotion = require('framer-motion');
|
|
21
21
|
var styled = require('@emotion/styled');
|
|
22
|
-
var utils$1 = require('./utils-
|
|
23
|
-
var index$
|
|
22
|
+
var utils$1 = require('./utils-1f428807.js');
|
|
23
|
+
var index$3 = require('./index-55fd130f.js');
|
|
24
24
|
var remarkable = require('remarkable');
|
|
25
25
|
var other = require('@hhgtech/icons/other');
|
|
26
26
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
27
27
|
var core = require('@mantine/core');
|
|
28
|
-
var index$
|
|
28
|
+
var index$4 = require('./index-619c46d6.js');
|
|
29
29
|
var dayjs = require('dayjs');
|
|
30
30
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
31
|
-
var index$
|
|
32
|
-
var theme = require('./theme-
|
|
31
|
+
var index$5 = require('./index-e1ab3b36.js');
|
|
32
|
+
var theme = require('./theme-98664cfd.js');
|
|
33
33
|
require('@mantine/dates');
|
|
34
|
-
require('./useMantineLocale-
|
|
35
|
-
require('./translationsContext-
|
|
34
|
+
require('./useMantineLocale-7c47271c.js');
|
|
35
|
+
require('./translationsContext-4b7afa0b.js');
|
|
36
36
|
require('@mantine/hooks');
|
|
37
37
|
var isEmpty = require('lodash/isEmpty');
|
|
38
38
|
var reactHookForm = require('react-hook-form');
|
|
39
39
|
var PhoneInputBase = require('react-phone-number-input');
|
|
40
40
|
var api = require('@react-google-maps/api');
|
|
41
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
42
|
-
var index$
|
|
43
|
-
var index$
|
|
41
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-2c183056.js');
|
|
42
|
+
var index$8 = require('./index-bb55a2a5.js');
|
|
43
|
+
var index$6 = require('./index-062199dd.js');
|
|
44
44
|
require('date-fns/locale');
|
|
45
|
-
require('./cookieHelper-
|
|
45
|
+
require('./cookieHelper-0b7f586d.js');
|
|
46
46
|
require('slugify');
|
|
47
|
-
require('./index-
|
|
48
|
-
require('./
|
|
47
|
+
require('./index-564d3bfc.js');
|
|
48
|
+
require('./WhatsApp-35770ecc.js');
|
|
49
|
+
require('./useTranslations-480f64da.js');
|
|
49
50
|
require('date-fns');
|
|
50
51
|
require('react-day-picker/DayPickerInput');
|
|
51
52
|
require('@mantine/carousel');
|
|
52
|
-
require('./useUniqueId-
|
|
53
|
+
require('./useUniqueId-3b0ef44a.js');
|
|
53
54
|
require('@hhgtech/icons/core');
|
|
54
55
|
|
|
55
56
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -267,7 +268,7 @@ const ssoIntents = (f) => [
|
|
|
267
268
|
title: '',
|
|
268
269
|
description: '',
|
|
269
270
|
}),
|
|
270
|
-
type:
|
|
271
|
+
type: index$1.NodeIntentType.SSO_INTENT,
|
|
271
272
|
url: '',
|
|
272
273
|
},
|
|
273
274
|
{
|
|
@@ -282,7 +283,7 @@ const ssoIntents = (f) => [
|
|
|
282
283
|
defaultMessage: 'Personal identifiers (like your name) will always be removed to protect your privacy. ',
|
|
283
284
|
}),
|
|
284
285
|
}),
|
|
285
|
-
type:
|
|
286
|
+
type: index$1.NodeIntentType.SSO_INTENT,
|
|
286
287
|
url: '/images/subot/my-health.svg',
|
|
287
288
|
},
|
|
288
289
|
{
|
|
@@ -297,7 +298,7 @@ const ssoIntents = (f) => [
|
|
|
297
298
|
defaultMessage: 'Hellobacsi would like to learn from your data to provide better healthcare for you',
|
|
298
299
|
}),
|
|
299
300
|
}),
|
|
300
|
-
type:
|
|
301
|
+
type: index$1.NodeIntentType.SSO_INTENT,
|
|
301
302
|
url: '/images/subot/file-storage.svg',
|
|
302
303
|
},
|
|
303
304
|
{
|
|
@@ -312,7 +313,7 @@ const ssoIntents = (f) => [
|
|
|
312
313
|
defaultMessage: 'Personal identifiers (like your name) will always be removed to protect your privacy. ',
|
|
313
314
|
}),
|
|
314
315
|
}),
|
|
315
|
-
type:
|
|
316
|
+
type: index$1.NodeIntentType.SSO_INTENT,
|
|
316
317
|
url: '/images/subot/shield.svg',
|
|
317
318
|
},
|
|
318
319
|
];
|
|
@@ -349,8 +350,8 @@ const getSubotCookieId = (queryCookieId) => {
|
|
|
349
350
|
};
|
|
350
351
|
const getUserIdFromCookie = (reqCookie) => {
|
|
351
352
|
const parsedCookie = utils.cookie.parse(reqCookie || '');
|
|
352
|
-
const reqToken = parsedCookie[index$
|
|
353
|
-
const token = reqToken || Cookies__default["default"].get(index$
|
|
353
|
+
const reqToken = parsedCookie[index$2.BEARER_TOKEN_COOKIE];
|
|
354
|
+
const token = reqToken || Cookies__default["default"].get(index$2.BEARER_TOKEN_COOKIE) || '';
|
|
354
355
|
try {
|
|
355
356
|
const base64Url = token.split('.')[1];
|
|
356
357
|
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
@@ -368,8 +369,8 @@ const getUserIdFromCookie = (reqCookie) => {
|
|
|
368
369
|
};
|
|
369
370
|
const getUserInfoFromCookie = (reqCookie) => {
|
|
370
371
|
const parsedCookie = utils.cookie.parse(reqCookie || '');
|
|
371
|
-
const reqToken = parsedCookie[index$
|
|
372
|
-
const token = reqToken || Cookies__default["default"].get(index$
|
|
372
|
+
const reqToken = parsedCookie[index$2.BEARER_TOKEN_COOKIE];
|
|
373
|
+
const token = reqToken || Cookies__default["default"].get(index$2.BEARER_TOKEN_COOKIE) || '';
|
|
373
374
|
try {
|
|
374
375
|
const base64Url = token.split('.')[1];
|
|
375
376
|
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
|
|
@@ -400,7 +401,7 @@ const getHelloSitesUrl = (locale, ignoreLocal) => {
|
|
|
400
401
|
if (isLocalhost) {
|
|
401
402
|
return 'http://localhost'; // or any other localhost URL you want to use as fallback
|
|
402
403
|
}
|
|
403
|
-
return `https://${isProduction.isProduction ? '' : 'discover.'}${index$
|
|
404
|
+
return `https://${isProduction.isProduction ? '' : 'discover.'}${index$2.domainLocales[locale]}`;
|
|
404
405
|
};
|
|
405
406
|
const checkMobile = (userAgent) => {
|
|
406
407
|
const ua = userAgent || (typeof navigator === 'undefined' ? '' : navigator.userAgent);
|
|
@@ -459,7 +460,7 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
|
|
|
459
460
|
? _formSubmitMeta
|
|
460
461
|
: nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.form_submit_meta;
|
|
461
462
|
if (isNodeWithDynamicScore &&
|
|
462
|
-
node.type ===
|
|
463
|
+
node.type === index$1.NodeType.FORM &&
|
|
463
464
|
formSubmitMeta) {
|
|
464
465
|
// debugger
|
|
465
466
|
// NodeId hiện tại có trong object "dynamic_score"
|
|
@@ -499,7 +500,7 @@ const replaceTextWithVariables = (label, listNodes) => {
|
|
|
499
500
|
if (Object.keys(dynamicScoreHash).length === 0) {
|
|
500
501
|
return label;
|
|
501
502
|
}
|
|
502
|
-
const listFormNodes = listNodes.filter((node) => node.type ===
|
|
503
|
+
const listFormNodes = listNodes.filter((node) => node.type === index$1.NodeType.FORM);
|
|
503
504
|
Object.keys(dynamicScoreHash).forEach((nodeId) => {
|
|
504
505
|
var _a, _b, _c;
|
|
505
506
|
const foundNode = listFormNodes.find((node) => node.id === nodeId);
|
|
@@ -546,7 +547,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
546
547
|
json.activeId &&
|
|
547
548
|
json.createdAt + timeToExist > Date.now()) {
|
|
548
549
|
localStorage.removeItem(STATE_SUBOT_INLINE_KEY);
|
|
549
|
-
const isSSOAtLast = json.listNodes.slice(-1)[0].position ===
|
|
550
|
+
const isSSOAtLast = json.listNodes.slice(-1)[0].position === index$1.NodePosition.SSO;
|
|
550
551
|
if (isSSOAtLast) {
|
|
551
552
|
return {
|
|
552
553
|
listNodes: json.listNodes,
|
|
@@ -618,7 +619,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
618
619
|
((_a = nodeMessage._message) === null || _a === void 0 ? void 0 : _a.action_id) &&
|
|
619
620
|
((_b = nodeMessage._message) === null || _b === void 0 ? void 0 : _b.action_value)) {
|
|
620
621
|
const key = nodeMessage._message.action_value; // submit
|
|
621
|
-
if (nodeMessage.type ===
|
|
622
|
+
if (nodeMessage.type === index$1.NodeType.FORM) {
|
|
622
623
|
const addressControl = ['address', 'province', 'district', 'commune'];
|
|
623
624
|
const formMetaExceptAddress = (((_c = nodeMessage._message) === null || _c === void 0 ? void 0 : _c.form_submit_meta) || []).filter((formMeta) => !addressControl.includes(formMeta.control));
|
|
624
625
|
/** For address field */
|
|
@@ -654,7 +655,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
654
655
|
});
|
|
655
656
|
}
|
|
656
657
|
}
|
|
657
|
-
if (nodeMessage.type ===
|
|
658
|
+
if (nodeMessage.type === index$1.NodeType.TEXT) {
|
|
658
659
|
if (nodeMessage.is_multi_select) {
|
|
659
660
|
const actionIds = Object.keys(nodeMessage._message.selected_actions || {});
|
|
660
661
|
const actionLabel = nodeMessage.actions
|
|
@@ -673,7 +674,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
673
674
|
const actionLabel = action === null || action === void 0 ? void 0 : action.label;
|
|
674
675
|
// Select "Other, please provide more detail" -> There is an input below the option is stored in form_submit_meta
|
|
675
676
|
const otherText = (_q = (_p = (_o = nodeMessage._message) === null || _o === void 0 ? void 0 : _o.form_submit_meta) === null || _p === void 0 ? void 0 : _p.find((f) => f.key === KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD)) === null || _q === void 0 ? void 0 : _q.value;
|
|
676
|
-
const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) ===
|
|
677
|
+
const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) === index$1.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
|
|
677
678
|
if (actionLabel && actionId) {
|
|
678
679
|
result.push({
|
|
679
680
|
attribute: key,
|
|
@@ -683,7 +684,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
683
684
|
}
|
|
684
685
|
}
|
|
685
686
|
}
|
|
686
|
-
if (nodeMessage.type ===
|
|
687
|
+
if (nodeMessage.type === index$1.NodeType.POLL) {
|
|
687
688
|
const nodeId = nodeMessage.id;
|
|
688
689
|
const actionIds = ((_u = (_t = nodeMessage._message) === null || _t === void 0 ? void 0 : _t.current_polls) === null || _u === void 0 ? void 0 : _u[nodeId]) || [];
|
|
689
690
|
const actionLabel = nodeMessage.actions
|
|
@@ -728,7 +729,7 @@ const extractVoucherAnswers = (nodes, botItem) => {
|
|
|
728
729
|
else if (submitMessage.action_value === 'voucher_color') {
|
|
729
730
|
voucherColor = (selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.label) || '';
|
|
730
731
|
}
|
|
731
|
-
if (nodeMessage.type ===
|
|
732
|
+
if (nodeMessage.type === index$1.NodeType.FORM) {
|
|
732
733
|
const formMetaVoucherSize = (_b = submitMessage.form_submit_meta) === null || _b === void 0 ? void 0 : _b.find((formMeta) => {
|
|
733
734
|
return formMeta.key === 'voucher_size';
|
|
734
735
|
});
|
|
@@ -783,7 +784,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
|
|
|
783
784
|
let statusFlowBot = 'in_progress';
|
|
784
785
|
const lastNode = nodes[nodes.length - 1];
|
|
785
786
|
// Saving data with status COMPLETE when chatbot go to final node
|
|
786
|
-
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) &&
|
|
787
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) && index$1.NodeFinalTypes.includes(lastNode.type)) {
|
|
787
788
|
statusFlowBot = 'complete';
|
|
788
789
|
}
|
|
789
790
|
/** Remove the first node and push it later in data fetching step to make sure data is latest */
|
|
@@ -805,7 +806,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
|
|
|
805
806
|
data: JSON.stringify(data),
|
|
806
807
|
status: statusFlowBot,
|
|
807
808
|
type: 'inline',
|
|
808
|
-
market: index$
|
|
809
|
+
market: index$2.MAP_DOMAIN_BY_LOCALE[utils.locale],
|
|
809
810
|
};
|
|
810
811
|
yield utils.callApi(getSubotApiPath(PATHS$1.POST_SUBOT_CREATE_LOG), 'POST', {
|
|
811
812
|
data: payload,
|
|
@@ -900,7 +901,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
900
901
|
const getParams = React.useCallback(() => {
|
|
901
902
|
const gaData = window.gaData;
|
|
902
903
|
const url = window.location.origin +
|
|
903
|
-
index$
|
|
904
|
+
index$2.basePath +
|
|
904
905
|
((utils.GlobalData === null || utils.GlobalData === void 0 ? void 0 : utils.GlobalData.locale) === 'tl-PH'
|
|
905
906
|
? articleLink.replace('fil/', '')
|
|
906
907
|
: articleLink);
|
|
@@ -1113,9 +1114,9 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1113
1114
|
});
|
|
1114
1115
|
}, [activeId]);
|
|
1115
1116
|
React.useEffect(() => {
|
|
1116
|
-
if (!Cookies__default["default"].get(index$
|
|
1117
|
+
if (!Cookies__default["default"].get(index$2.GA_TOKEN_COOKIE)) {
|
|
1117
1118
|
checkUntilFinished({
|
|
1118
|
-
condition: () => Boolean(Cookies__default["default"].get(index$
|
|
1119
|
+
condition: () => Boolean(Cookies__default["default"].get(index$2.GA_TOKEN_COOKIE)),
|
|
1119
1120
|
finished: () => {
|
|
1120
1121
|
const params = getParams();
|
|
1121
1122
|
getFirstNode(params);
|
|
@@ -1475,7 +1476,7 @@ Container$v.displayName = 'SubotInlineDisclaimer';
|
|
|
1475
1476
|
const useCurrentUrl = () => {
|
|
1476
1477
|
const { data: { locale, router }, } = React.useContext(utils.TogetherComponentGlobalContext);
|
|
1477
1478
|
const { asPath } = router || {};
|
|
1478
|
-
const [currentUrl, setCurrentUrl] = React.useState(() => `${getHelloSitesUrl(locale, false)}${index$
|
|
1479
|
+
const [currentUrl, setCurrentUrl] = React.useState(() => `${getHelloSitesUrl(locale, false)}${index$2.basePath}${asPath}`);
|
|
1479
1480
|
React.useEffect(() => {
|
|
1480
1481
|
setCurrentUrl(window.location.href);
|
|
1481
1482
|
}, [asPath]);
|
|
@@ -1486,7 +1487,7 @@ const useCurrentUrl = () => {
|
|
|
1486
1487
|
const useValidationMultiOption = () => {
|
|
1487
1488
|
const { formatMessage: f, action: { pushNotifications }, } = React.useContext(utils.TogetherComponentGlobalContext);
|
|
1488
1489
|
const validateSelectActions = (activeActions, node, callBack) => {
|
|
1489
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) ===
|
|
1490
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$1.NodeMultipleOptions.EXACT_NUMBER &&
|
|
1490
1491
|
activeActions.length !== (node === null || node === void 0 ? void 0 : node.from)) {
|
|
1491
1492
|
pushNotifications({
|
|
1492
1493
|
message: f({
|
|
@@ -1499,7 +1500,7 @@ const useValidationMultiOption = () => {
|
|
|
1499
1500
|
});
|
|
1500
1501
|
return;
|
|
1501
1502
|
}
|
|
1502
|
-
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) ===
|
|
1503
|
+
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$1.NodeMultipleOptions.RANGE &&
|
|
1503
1504
|
(activeActions.length < (node === null || node === void 0 ? void 0 : node.from) ||
|
|
1504
1505
|
activeActions.length > (node === null || node === void 0 ? void 0 : node.to))) {
|
|
1505
1506
|
pushNotifications({
|
|
@@ -1629,12 +1630,12 @@ const NodeContextProvider = ({ children }) => {
|
|
|
1629
1630
|
return (React__default["default"].createElement(NodeContext.Provider, { value: ctxValue }, children));
|
|
1630
1631
|
};
|
|
1631
1632
|
|
|
1632
|
-
const disabledNodeList = [
|
|
1633
|
-
const disabledPositionList = [
|
|
1633
|
+
const disabledNodeList = [index$1.NodeType.FORM];
|
|
1634
|
+
const disabledPositionList = [index$1.NodePosition.SSO];
|
|
1634
1635
|
const excludeNodeList = [
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1636
|
+
index$1.NodeType.FINAL,
|
|
1637
|
+
index$1.NodeType.FINAL_THANK_YOU,
|
|
1638
|
+
index$1.NodeType.FINAL_STANDARD,
|
|
1638
1639
|
];
|
|
1639
1640
|
// const isSingleChoiceText = (node?: SubotNode) => {
|
|
1640
1641
|
// if (!node) return false
|
|
@@ -1652,11 +1653,11 @@ const Container$u = () => {
|
|
|
1652
1653
|
const validation = useValidationMultiOption();
|
|
1653
1654
|
const botItem = listNodes[0];
|
|
1654
1655
|
const node = listNodes.find((nodeItem) => nodeItem.id == activeId);
|
|
1655
|
-
const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type ===
|
|
1656
|
-
const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type ==
|
|
1657
|
-
const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type ==
|
|
1656
|
+
const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$1.NodeActionType.USER_CHOICE_NEXT);
|
|
1657
|
+
const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$1.NodeActionType.POLL_BUTTON);
|
|
1658
|
+
const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$1.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
1658
1659
|
const selectedWithOtherInput = ((_e = (_d = node === null || node === void 0 ? void 0 : node.actions) === null || _d === void 0 ? void 0 : _d.find(({ id }) => id === value.action_id)) === null || _e === void 0 ? void 0 : _e.type) ===
|
|
1659
|
-
|
|
1660
|
+
index$1.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
|
|
1660
1661
|
const handleNextChoice = () => {
|
|
1661
1662
|
const nextValue = {
|
|
1662
1663
|
node_id: node.id,
|
|
@@ -1727,7 +1728,7 @@ const Container$u = () => {
|
|
|
1727
1728
|
defaultMessage: 'Start over',
|
|
1728
1729
|
}))),
|
|
1729
1730
|
isDisplayAction && (React__default["default"].createElement("div", { className: "si-footer-actions" },
|
|
1730
|
-
React__default["default"].createElement(index$
|
|
1731
|
+
React__default["default"].createElement(index$3.Button, { size: "md", variant: "tertiary", onClick: onPrev, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Back", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
|
|
1731
1732
|
root: {
|
|
1732
1733
|
':not(:disabled)': {
|
|
1733
1734
|
backgroundColor: 'transparent !important',
|
|
@@ -1743,7 +1744,7 @@ const Container$u = () => {
|
|
|
1743
1744
|
id: 'riskScreener.back',
|
|
1744
1745
|
defaultMessage: 'Back',
|
|
1745
1746
|
})),
|
|
1746
|
-
React__default["default"].createElement(index$
|
|
1747
|
+
React__default["default"].createElement(index$3.Button, { size: "md", onClick: handleClickNext, loading: isDisabled ? false : loading, disabled: isDisabled, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Continue", "data-event-label": currentUrl, "data-bot-id": params.bot_id, sx: { paddingLeft: 16, paddingRight: 16, borderRadius: 8 }, styles: {
|
|
1747
1748
|
root: {
|
|
1748
1749
|
':not(:disabled)': {
|
|
1749
1750
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
@@ -2016,11 +2017,11 @@ const SubotInlineVoucherLeftUI = ({ clientId, voucherAnswers }) => {
|
|
|
2016
2017
|
return null;
|
|
2017
2018
|
}
|
|
2018
2019
|
return (React__default["default"].createElement(StyledWrap$n, { className: "si-voucher-left-ui" },
|
|
2019
|
-
React__default["default"].createElement("img", { src: index$
|
|
2020
|
-
React__default["default"].createElement("img", { src: index$
|
|
2020
|
+
React__default["default"].createElement("img", { src: index$4.CommonGAssets.getAssetPath('subot/voucher_bg.png'), alt: "", loading: "eager", className: "si-voucher-bg" }),
|
|
2021
|
+
React__default["default"].createElement("img", { src: index$4.CommonGAssets.getAssetPath('subot/voucher_icon.png'), alt: "", loading: "eager", className: "si-voucher-item" }),
|
|
2021
2022
|
React__default["default"].createElement(core.Box, { className: "si-voucher-in-stock" },
|
|
2022
2023
|
React__default["default"].createElement("h3", null, quantityInStock),
|
|
2023
|
-
React__default["default"].createElement("img", { src: index$
|
|
2024
|
+
React__default["default"].createElement("img", { src: index$4.CommonGAssets.getAssetPath('subot/voucher_icon_small.png'), alt: "", loading: "eager" })),
|
|
2024
2025
|
React__default["default"].createElement(core.Box, { className: "si-voucher-progress" },
|
|
2025
2026
|
React__default["default"].createElement(core.Box, { className: "si-voucher-progress--inner", style: { width: `${percentage}%` } }))));
|
|
2026
2027
|
};
|
|
@@ -2061,7 +2062,7 @@ const Container$s = ({ node, onClickStart }) => {
|
|
|
2061
2062
|
email: '',
|
|
2062
2063
|
voucherName: '',
|
|
2063
2064
|
} })),
|
|
2064
|
-
React__default["default"].createElement(index$
|
|
2065
|
+
React__default["default"].createElement(index$3.Button, { onClick: handleClickStart, "data-event-category": "Service Connection", "data-event-action": "Risk Screening Start", "data-event-label": currentUrl, "data-bot-id": params.bot_id, rightIcon: React__default["default"].createElement(other.ArrowRight, { color: "var(--subot-inline-text-button-color, #fff)" }), styles: {
|
|
2065
2066
|
root: {
|
|
2066
2067
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
2067
2068
|
'&:hover': {
|
|
@@ -2140,17 +2141,17 @@ Container$r.displayName = 'SubotInlineIntentBotImage';
|
|
|
2140
2141
|
|
|
2141
2142
|
const Container$q = ({ intent, indexNumber }) => {
|
|
2142
2143
|
const { listNodes } = React.useContext(SubotInlineContext);
|
|
2143
|
-
const isShowLabel = ![
|
|
2144
|
+
const isShowLabel = ![index$1.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2144
2145
|
const isHasTextOrBtn = [
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2146
|
+
index$1.NodeIntentType.BOT_TEXT,
|
|
2147
|
+
index$1.NodeIntentType.BOT_MAIN_TITLE,
|
|
2148
|
+
index$1.NodeIntentType.BOT_BUTTON,
|
|
2148
2149
|
].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2149
2150
|
const isImageNode = [
|
|
2150
|
-
|
|
2151
|
-
|
|
2151
|
+
index$1.NodeIntentType.BOT_IMAGE,
|
|
2152
|
+
index$1.NodeIntentType.BOT_MAIN_IMAGE,
|
|
2152
2153
|
].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2153
|
-
const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) ===
|
|
2154
|
+
const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) === index$1.NodeIntentType.BOT_MAIN_TITLE;
|
|
2154
2155
|
if (!intent) {
|
|
2155
2156
|
return null;
|
|
2156
2157
|
}
|
|
@@ -2193,7 +2194,7 @@ const getLeadPath = (path, params) => {
|
|
|
2193
2194
|
const callApiWithLead = (url, method, options) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2194
2195
|
if (options === null || options === void 0 ? void 0 : options.data) {
|
|
2195
2196
|
let cookie = Cookies__default["default"].get(utils.LEAD_TOKEN_COOKIE);
|
|
2196
|
-
const ga = Cookies__default["default"].get(index$
|
|
2197
|
+
const ga = Cookies__default["default"].get(index$2.GA_TOKEN_COOKIE);
|
|
2197
2198
|
if (!cookie) {
|
|
2198
2199
|
const newCookie = uuid.v4();
|
|
2199
2200
|
cookie = newCookie;
|
|
@@ -2272,15 +2273,15 @@ const checkSyncDataOnFrisoCampaign = (bot, values) => {
|
|
|
2272
2273
|
if (!((_a = bot.extra_settings) === null || _a === void 0 ? void 0 : _a.sync_data_friso_campaign) || !values) {
|
|
2273
2274
|
return;
|
|
2274
2275
|
}
|
|
2275
|
-
const nameControl =
|
|
2276
|
-
const emailControl =
|
|
2277
|
-
const dateControl =
|
|
2278
|
-
const phoneControlOtp =
|
|
2279
|
-
const phoneControl =
|
|
2280
|
-
const level1Control =
|
|
2281
|
-
const level2Control =
|
|
2282
|
-
const level3Control =
|
|
2283
|
-
const addressControl =
|
|
2276
|
+
const nameControl = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_NAME];
|
|
2277
|
+
const emailControl = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_EMAIL];
|
|
2278
|
+
const dateControl = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_DATE];
|
|
2279
|
+
const phoneControlOtp = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_OTP];
|
|
2280
|
+
const phoneControl = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_PHONE];
|
|
2281
|
+
const level1Control = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE];
|
|
2282
|
+
const level2Control = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT];
|
|
2283
|
+
const level3Control = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE];
|
|
2284
|
+
const addressControl = index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_ADDRESS];
|
|
2284
2285
|
const name = ((_b = values.find((o) => o.control === nameControl)) === null || _b === void 0 ? void 0 : _b.value) || '';
|
|
2285
2286
|
const email = ((_c = values.find((o) => o.control === emailControl)) === null || _c === void 0 ? void 0 : _c.value) || '';
|
|
2286
2287
|
const date = ((_d = values.find((o) => o.control === dateControl)) === null || _d === void 0 ? void 0 : _d.value) || '';
|
|
@@ -2326,11 +2327,11 @@ const foundNodeFrisoForm = (listNode) => {
|
|
|
2326
2327
|
var _a, _b, _c, _d, _e, _f;
|
|
2327
2328
|
const node = n;
|
|
2328
2329
|
const phone = ((_c = (_b = (_a = node === null || node === void 0 ? void 0 : node._message) === null || _a === void 0 ? void 0 : _a.form_submit_meta) === null || _b === void 0 ? void 0 : _b.find((o) => o.control ===
|
|
2329
|
-
|
|
2330
|
+
index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_OTP] ||
|
|
2330
2331
|
o.control ===
|
|
2331
|
-
|
|
2332
|
+
index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_PHONE])) === null || _c === void 0 ? void 0 : _c.value) || '';
|
|
2332
2333
|
const date = ((_f = (_e = (_d = node === null || node === void 0 ? void 0 : node._message) === null || _d === void 0 ? void 0 : _d.form_submit_meta) === null || _e === void 0 ? void 0 : _e.find((o) => o.control ===
|
|
2333
|
-
|
|
2334
|
+
index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_DATE])) === null || _f === void 0 ? void 0 : _f.value) || '';
|
|
2334
2335
|
if (phone && date) {
|
|
2335
2336
|
foundPhone = phone;
|
|
2336
2337
|
foundDate = date;
|
|
@@ -2368,7 +2369,7 @@ const Container$p = ({ intent }) => {
|
|
|
2368
2369
|
const trackingMainButton = React.useMemo(() => {
|
|
2369
2370
|
if (!intent.url ||
|
|
2370
2371
|
!intent.label ||
|
|
2371
|
-
(intent === null || intent === void 0 ? void 0 : intent.type) !==
|
|
2372
|
+
(intent === null || intent === void 0 ? void 0 : intent.type) !== index$1.NodeIntentType.BOT_MAIN_BUTTON)
|
|
2372
2373
|
return {};
|
|
2373
2374
|
return {
|
|
2374
2375
|
'data-event-category': 'Service Connection',
|
|
@@ -2379,7 +2380,7 @@ const Container$p = ({ intent }) => {
|
|
|
2379
2380
|
if (!(intent === null || intent === void 0 ? void 0 : intent.label))
|
|
2380
2381
|
return null;
|
|
2381
2382
|
return (React__default["default"].createElement(StyledWrap$i, null,
|
|
2382
|
-
React__default["default"].createElement(index$
|
|
2383
|
+
React__default["default"].createElement(index$3.Button, Object.assign({ size: "md", color: "primary", onClick: handleOnClick }, trackingMainButton, { styles: {
|
|
2383
2384
|
root: {
|
|
2384
2385
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
2385
2386
|
'&:hover': {
|
|
@@ -2550,10 +2551,10 @@ const StyledWrap$f = styled__default["default"].div `
|
|
|
2550
2551
|
`;
|
|
2551
2552
|
|
|
2552
2553
|
const whiteList = [
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2554
|
+
index$1.LOCALE.Thailand,
|
|
2555
|
+
index$1.LOCALE.Vietnam,
|
|
2556
|
+
index$1.LOCALE.Indonesia,
|
|
2557
|
+
index$1.LOCALE.Malaysia,
|
|
2557
2558
|
];
|
|
2558
2559
|
const Container$m = ({ text }) => {
|
|
2559
2560
|
const [isShow, setIsShow] = React.useState(false);
|
|
@@ -2595,7 +2596,7 @@ const Container$l = ({ intent }) => {
|
|
|
2595
2596
|
if (!intent.label || !listServices.length)
|
|
2596
2597
|
return null;
|
|
2597
2598
|
return (React__default["default"].createElement(StyledWrap$g, null,
|
|
2598
|
-
React__default["default"].createElement(index$
|
|
2599
|
+
React__default["default"].createElement(index$5.Text, { size: "lg", weight: "semiBold", className: "si-title", color: "var(--subot-inline-text-color, #262626)" }, f({
|
|
2599
2600
|
id: 'tools.suggestedServices',
|
|
2600
2601
|
defaultMessage: 'Suggested services',
|
|
2601
2602
|
}) + ':'),
|
|
@@ -2626,7 +2627,7 @@ const Container$k = ({ intent }) => {
|
|
|
2626
2627
|
if (!(intent === null || intent === void 0 ? void 0 : intent.label)) {
|
|
2627
2628
|
return null;
|
|
2628
2629
|
}
|
|
2629
|
-
const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) ===
|
|
2630
|
+
const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) === index$1.NodeIntentType.BOT_MAIN_BODY;
|
|
2630
2631
|
return (React__default["default"].createElement(StyledWrap$e, { className: "si-bot-text" },
|
|
2631
2632
|
React__default["default"].createElement(Markdown, null, isMainBody
|
|
2632
2633
|
? replaceTextWithVariables(intent.label, listNodes)
|
|
@@ -2742,29 +2743,29 @@ const Container$i = ({ intent, }) => {
|
|
|
2742
2743
|
Container$i.displayName = 'SubotInlineIntentUrl';
|
|
2743
2744
|
|
|
2744
2745
|
const SubotInlineIntentBaseTarget = {
|
|
2745
|
-
[
|
|
2746
|
-
[
|
|
2747
|
-
[
|
|
2748
|
-
[
|
|
2746
|
+
[index$1.NodeIntentType.BOT_TEXT]: Container$k,
|
|
2747
|
+
[index$1.NodeIntentType.BOT_IMAGE]: Container$r,
|
|
2748
|
+
[index$1.NodeIntentType.BOT_BUTTON]: Container$p,
|
|
2749
|
+
[index$1.NodeIntentType.BOT_URL]: Container$i,
|
|
2749
2750
|
// [NodeIntentType.BOT_RECALCULATE]: SubotInlineIntentBotRecalculate,
|
|
2750
|
-
[
|
|
2751
|
+
[index$1.NodeIntentType.BOT_MAIN_TITLE]: Container$q,
|
|
2751
2752
|
// [NodeIntentType.BOT_MAIN_IMAGE]: SubotInlineIntentBotMainImage,
|
|
2752
|
-
[
|
|
2753
|
-
[
|
|
2754
|
-
[
|
|
2755
|
-
[
|
|
2753
|
+
[index$1.NodeIntentType.BOT_MAIN_BODY]: Container$k,
|
|
2754
|
+
[index$1.NodeIntentType.BOT_MAIN_BUTTON]: Container$p,
|
|
2755
|
+
[index$1.NodeIntentType.BOT_SUB_TITLE]: Container$k,
|
|
2756
|
+
[index$1.NodeIntentType.BOT_SUB_BODY]: Container$k,
|
|
2756
2757
|
// [NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
|
|
2757
2758
|
// [NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
|
|
2758
2759
|
// [NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
|
|
2759
|
-
[
|
|
2760
|
-
[
|
|
2761
|
-
[
|
|
2762
|
-
[
|
|
2763
|
-
[
|
|
2764
|
-
[
|
|
2765
|
-
[
|
|
2760
|
+
[index$1.NodeIntentType.BOT_RELATED_ARTICLE]: Container$n,
|
|
2761
|
+
[index$1.NodeIntentType.THANK_YOU_IMAGE]: Container$r,
|
|
2762
|
+
[index$1.NodeIntentType.THANK_YOU_TITLE]: Container$k,
|
|
2763
|
+
[index$1.NodeIntentType.THANK_YOU_BODY]: Container$k,
|
|
2764
|
+
[index$1.NodeIntentType.BOT_SUGGESTED_SERVICE]: Container$l,
|
|
2765
|
+
[index$1.NodeIntentType.BOT_BOOKING]: Container$p,
|
|
2766
|
+
[index$1.NodeIntentType.BOT_EVENT_SUBMISSION]: Container$o,
|
|
2766
2767
|
/** intents fake for sso block */
|
|
2767
|
-
[
|
|
2768
|
+
[index$1.NodeIntentType.SSO_INTENT]: Container$j,
|
|
2768
2769
|
};
|
|
2769
2770
|
const SubotInlineIntentBase = new Proxy(SubotInlineIntentBaseTarget, {
|
|
2770
2771
|
get(_, prop) {
|
|
@@ -2780,8 +2781,8 @@ const SubotInlineIntentBase = new Proxy(SubotInlineIntentBaseTarget, {
|
|
|
2780
2781
|
});
|
|
2781
2782
|
|
|
2782
2783
|
const excludeIntents = [
|
|
2783
|
-
|
|
2784
|
-
|
|
2784
|
+
index$1.NodeIntentType.BOT_SUBMISSION,
|
|
2785
|
+
index$1.NodeIntentType.BOT_BACKGROUND_IMAGE,
|
|
2785
2786
|
];
|
|
2786
2787
|
const Container$h = ({ intents: intentsProp, indexNumber, }) => {
|
|
2787
2788
|
const filteredIntents = intentsProp.filter((intent) => !excludeIntents.includes(intent.type || ''));
|
|
@@ -3035,41 +3036,41 @@ const Container$f = ({ node }) => {
|
|
|
3035
3036
|
let botSubmissionIntent = undefined;
|
|
3036
3037
|
intentsProps.forEach((intent) => {
|
|
3037
3038
|
switch (intent === null || intent === void 0 ? void 0 : intent.type) {
|
|
3038
|
-
case
|
|
3039
|
+
case index$1.NodeIntentType.BOT_MAIN_IMAGE:
|
|
3039
3040
|
mainIntents.push(intent);
|
|
3040
3041
|
break;
|
|
3041
|
-
case
|
|
3042
|
+
case index$1.NodeIntentType.BOT_MAIN_TITLE:
|
|
3042
3043
|
mainIntents.push(intent);
|
|
3043
3044
|
break;
|
|
3044
|
-
case
|
|
3045
|
+
case index$1.NodeIntentType.BOT_MAIN_BODY:
|
|
3045
3046
|
mainIntents.push(intent);
|
|
3046
3047
|
break;
|
|
3047
|
-
case
|
|
3048
|
+
case index$1.NodeIntentType.BOT_SUGGESTED_SERVICE:
|
|
3048
3049
|
suggestedServiceIntents.push(intent);
|
|
3049
3050
|
break;
|
|
3050
|
-
case
|
|
3051
|
+
case index$1.NodeIntentType.BOT_MAIN_BUTTON:
|
|
3051
3052
|
mainButtonIntents.push(intent);
|
|
3052
3053
|
break;
|
|
3053
|
-
case
|
|
3054
|
+
case index$1.NodeIntentType.BOT_BOOKING:
|
|
3054
3055
|
bookingButtonIntents.push(intent);
|
|
3055
3056
|
break;
|
|
3056
|
-
case
|
|
3057
|
+
case index$1.NodeIntentType.BOT_RECALCULATE:
|
|
3057
3058
|
// mainIntents.push(intent)
|
|
3058
3059
|
// TODO: Do not apply. Inline Revamp has "Start Over" btn already
|
|
3059
3060
|
break;
|
|
3060
|
-
case
|
|
3061
|
+
case index$1.NodeIntentType.BOT_SUB_TITLE:
|
|
3061
3062
|
subIntents.push(intent);
|
|
3062
3063
|
break;
|
|
3063
|
-
case
|
|
3064
|
+
case index$1.NodeIntentType.BOT_SUB_BODY:
|
|
3064
3065
|
subIntents.push(intent);
|
|
3065
3066
|
break;
|
|
3066
|
-
case
|
|
3067
|
+
case index$1.NodeIntentType.BOT_RELATED_ARTICLE:
|
|
3067
3068
|
relatedArticleIntents.push(intent);
|
|
3068
3069
|
break;
|
|
3069
|
-
case
|
|
3070
|
+
case index$1.NodeIntentType.BOT_RISK_SCREEN:
|
|
3070
3071
|
screenerIntents.push(intent);
|
|
3071
3072
|
break;
|
|
3072
|
-
case
|
|
3073
|
+
case index$1.NodeIntentType.BOT_SUBMISSION:
|
|
3073
3074
|
botSubmissionIntent = intent;
|
|
3074
3075
|
break;
|
|
3075
3076
|
}
|
|
@@ -3115,7 +3116,7 @@ const Container$f = ({ node }) => {
|
|
|
3115
3116
|
return NodeIntent && React__default["default"].createElement(NodeIntent, { key: intent.id, intent: intent });
|
|
3116
3117
|
}))),
|
|
3117
3118
|
(relatedArticleIntents === null || relatedArticleIntents === void 0 ? void 0 : relatedArticleIntents.length) > 0 && (React__default["default"].createElement("div", { style: { marginTop: 24 } },
|
|
3118
|
-
React__default["default"].createElement(index$
|
|
3119
|
+
React__default["default"].createElement(index$5.Text, { size: "lg", weight: "semiBold", color: "var(--subot-inline-text-color, #262626)" }, f({
|
|
3119
3120
|
id: 'articlePage.relatedPostsSectionTitle',
|
|
3120
3121
|
defaultMessage: 'Related Articles',
|
|
3121
3122
|
})),
|
|
@@ -3140,7 +3141,7 @@ const Container$e = ({ node }) => {
|
|
|
3140
3141
|
}, []);
|
|
3141
3142
|
const resultButton = React.useMemo(() => {
|
|
3142
3143
|
var _a;
|
|
3143
|
-
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type ===
|
|
3144
|
+
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$1.NodeActionType.RESULT_BUTTON);
|
|
3144
3145
|
if (_resultButton)
|
|
3145
3146
|
return _resultButton;
|
|
3146
3147
|
return null;
|
|
@@ -3154,7 +3155,7 @@ const Container$e = ({ node }) => {
|
|
|
3154
3155
|
return (React__default["default"].createElement(StyledWrap$b, { id: "si-node-final-thank-you" },
|
|
3155
3156
|
React__default["default"].createElement(Container$h, { intents: node.intents || [] }),
|
|
3156
3157
|
resultButton && (React__default["default"].createElement("div", { className: "si-final-thank-action" },
|
|
3157
|
-
React__default["default"].createElement(index$
|
|
3158
|
+
React__default["default"].createElement(index$3.Button, { size: "md", onClick: handleOnNext }, resultButton.label)))));
|
|
3158
3159
|
};
|
|
3159
3160
|
Container$e.displayName = 'SubotinlineNodeFinal';
|
|
3160
3161
|
|
|
@@ -3631,7 +3632,7 @@ function GoogleAddressField({ action, formError, control, initValue, onChange, }
|
|
|
3631
3632
|
}, render: (props) => {
|
|
3632
3633
|
const { address = '' } = (props.field.value || {});
|
|
3633
3634
|
console.log('props', props);
|
|
3634
|
-
return (React__default["default"].createElement(index$
|
|
3635
|
+
return (React__default["default"].createElement(index$3.Select, { data: options, icon: React__default["default"].createElement(Location, null), itemComponent: SelectItem,
|
|
3635
3636
|
// Always display the suggestions
|
|
3636
3637
|
filter: () => true, searchable: true, className: cn__default["default"]({
|
|
3637
3638
|
isEmpty: options.length === 0 ||
|
|
@@ -4121,30 +4122,30 @@ const StyleWrapperFullAddress = styled__default["default"].div `
|
|
|
4121
4122
|
`;
|
|
4122
4123
|
|
|
4123
4124
|
const getActionEmail = (actions) => {
|
|
4124
|
-
return actions.find(({ type }) => type ===
|
|
4125
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_EMAIL);
|
|
4125
4126
|
};
|
|
4126
4127
|
const getActionName = (actions) => {
|
|
4127
|
-
return actions.find(({ type }) => type ===
|
|
4128
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_NAME);
|
|
4128
4129
|
};
|
|
4129
4130
|
const getActionPhone = (actions) => {
|
|
4130
|
-
return actions.find(({ type }) => type ===
|
|
4131
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_PHONE);
|
|
4131
4132
|
};
|
|
4132
4133
|
const getActionOtp = (actions) => {
|
|
4133
|
-
return actions.find(({ type }) => type ===
|
|
4134
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_OTP);
|
|
4134
4135
|
};
|
|
4135
4136
|
const getActionOtpWhatsApp = (actions) => {
|
|
4136
|
-
return actions.find(({ type }) => type ===
|
|
4137
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_WHATSAPP);
|
|
4137
4138
|
};
|
|
4138
4139
|
const getActionConfirm = (actions) => {
|
|
4139
|
-
return actions.find(({ type }) => type ===
|
|
4140
|
+
return actions.find(({ type }) => type === index$1.NodeActionType.USER_SUBMIT_CONFIRM);
|
|
4140
4141
|
};
|
|
4141
4142
|
const isControlOtp = (control) => {
|
|
4142
|
-
return (control ===
|
|
4143
|
-
control ===
|
|
4143
|
+
return (control === index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_OTP] ||
|
|
4144
|
+
control === index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_WHATSAPP]);
|
|
4144
4145
|
};
|
|
4145
4146
|
const isActionTypeOtp = (type) => {
|
|
4146
|
-
return (type ===
|
|
4147
|
-
type ===
|
|
4147
|
+
return (type === index$1.NodeActionType.USER_SUBMIT_OTP ||
|
|
4148
|
+
type === index$1.NodeActionType.USER_SUBMIT_WHATSAPP);
|
|
4148
4149
|
};
|
|
4149
4150
|
|
|
4150
4151
|
const CheckCircleGreen = (props) => {
|
|
@@ -4603,30 +4604,30 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4603
4604
|
}, [botId, nodeId, JSON.stringify(trackingSubmitBtn)]);
|
|
4604
4605
|
const firstActionAddressIndex = React.useMemo(() => {
|
|
4605
4606
|
return actions.findIndex((action) => {
|
|
4606
|
-
return
|
|
4607
|
+
return index$1.FULL_KEY_ADDRESS.includes(action.type);
|
|
4607
4608
|
});
|
|
4608
4609
|
}, [actions]);
|
|
4609
4610
|
const actionAddress = React.useMemo(() => {
|
|
4610
4611
|
return actions.find((action) => {
|
|
4611
|
-
return
|
|
4612
|
+
return index$1.NodeActionType.USER_SUBMIT_ADDRESS === action.type;
|
|
4612
4613
|
});
|
|
4613
4614
|
}, [actions]);
|
|
4614
4615
|
const actionAddressLever1 = React.useMemo(() => {
|
|
4615
4616
|
return actions.find((action) => {
|
|
4616
|
-
return
|
|
4617
|
+
return index$1.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE === action.type;
|
|
4617
4618
|
});
|
|
4618
4619
|
}, [actions]);
|
|
4619
4620
|
const actionAddressLever2 = React.useMemo(() => {
|
|
4620
4621
|
return actions.find((action) => {
|
|
4621
|
-
return
|
|
4622
|
+
return index$1.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT === action.type;
|
|
4622
4623
|
});
|
|
4623
4624
|
}, [actions]);
|
|
4624
4625
|
const actionAddressLever3 = React.useMemo(() => {
|
|
4625
4626
|
return actions.find((action) => {
|
|
4626
|
-
return
|
|
4627
|
+
return index$1.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
4627
4628
|
});
|
|
4628
4629
|
}, [actions]);
|
|
4629
|
-
const inputType =
|
|
4630
|
+
const inputType = index$1.ELEMENT_CONTROL_INPUT_TYPE;
|
|
4630
4631
|
const { register, handleSubmit, watch, formState: { errors }, control, setValue, setError, clearErrors, getValues, trigger, } = reactHookForm.useForm({ defaultValues: defaultFormValues });
|
|
4631
4632
|
const setSubmitData = (data) => {
|
|
4632
4633
|
const submitMeta = [];
|
|
@@ -4634,9 +4635,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4634
4635
|
if (!action.key) {
|
|
4635
4636
|
continue;
|
|
4636
4637
|
}
|
|
4637
|
-
if (action.type !==
|
|
4638
|
-
action.type !==
|
|
4639
|
-
if (action.type ===
|
|
4638
|
+
if (action.type !== index$1.NodeActionType.USER_SUBMIT_CONFIRM &&
|
|
4639
|
+
action.type !== index$1.NodeActionType.USER_SUBMIT_TERMS) {
|
|
4640
|
+
if (action.type === index$1.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS) {
|
|
4640
4641
|
/** If it's google api address, admin cannot add address province/district/commune and address freetext */
|
|
4641
4642
|
const googleMapData = data[action.key];
|
|
4642
4643
|
googleMapAddressKeys.forEach((addressKey) => {
|
|
@@ -4649,9 +4650,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4649
4650
|
}
|
|
4650
4651
|
});
|
|
4651
4652
|
}
|
|
4652
|
-
else if (action.type ===
|
|
4653
|
-
action.type ===
|
|
4654
|
-
action.type ===
|
|
4653
|
+
else if (action.type === index$1.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE ||
|
|
4654
|
+
action.type === index$1.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT ||
|
|
4655
|
+
action.type === index$1.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE) {
|
|
4655
4656
|
submitMeta.push({
|
|
4656
4657
|
key: action.key,
|
|
4657
4658
|
control: inputType[action.type] || '',
|
|
@@ -4662,7 +4663,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4662
4663
|
else if (isActionTypeOtp(action.type)) {
|
|
4663
4664
|
submitMeta.push({
|
|
4664
4665
|
key: action.key,
|
|
4665
|
-
control:
|
|
4666
|
+
control: index$1.ELEMENT_CONTROL_INPUT_TYPE[index$1.NodeActionType.USER_SUBMIT_OTP],
|
|
4666
4667
|
value: data.otpPhoneNumber,
|
|
4667
4668
|
});
|
|
4668
4669
|
}
|
|
@@ -4688,7 +4689,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4688
4689
|
}
|
|
4689
4690
|
}
|
|
4690
4691
|
}
|
|
4691
|
-
const actionArr = actions.filter((action) => action.type ===
|
|
4692
|
+
const actionArr = actions.filter((action) => action.type === index$1.NodeActionType.USER_SUBMIT_SEND);
|
|
4692
4693
|
const submitData = {
|
|
4693
4694
|
action_id: actionArr[0].id,
|
|
4694
4695
|
action_value: actionArr[0].key,
|
|
@@ -4879,7 +4880,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4879
4880
|
required: true,
|
|
4880
4881
|
}, render: (props) => {
|
|
4881
4882
|
var _a;
|
|
4882
|
-
return (React__default["default"].createElement(index$
|
|
4883
|
+
return (React__default["default"].createElement(index$8.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
|
|
4883
4884
|
props.field.onChange(val);
|
|
4884
4885
|
handleSelectedProvince(val);
|
|
4885
4886
|
}, value: props.field.value, placeholder: (actionAddressLever1 === null || actionAddressLever1 === void 0 ? void 0 : actionAddressLever1.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
@@ -4895,7 +4896,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4895
4896
|
required: true,
|
|
4896
4897
|
}, render: (props) => {
|
|
4897
4898
|
var _a;
|
|
4898
|
-
return (React__default["default"].createElement(index$
|
|
4899
|
+
return (React__default["default"].createElement(index$8.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
|
|
4899
4900
|
props.field.onChange(val);
|
|
4900
4901
|
handleSelectedDistrict(val);
|
|
4901
4902
|
}, value: props.field.value, placeholder: (actionAddressLever2 === null || actionAddressLever2 === void 0 ? void 0 : actionAddressLever2.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
@@ -4911,7 +4912,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4911
4912
|
required: true,
|
|
4912
4913
|
}, render: (props) => {
|
|
4913
4914
|
var _a;
|
|
4914
|
-
return (React__default["default"].createElement(index$
|
|
4915
|
+
return (React__default["default"].createElement(index$8.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
|
|
4915
4916
|
props.field.onChange(val);
|
|
4916
4917
|
}, value: props.field.value, placeholder: (actionAddressLever3 === null || actionAddressLever3 === void 0 ? void 0 : actionAddressLever3.label) || '', className: `address-dropdown ${((_a = props.field.value) === null || _a === void 0 ? void 0 : _a.value) ? '' : 'show-placeholder'}` }));
|
|
4917
4918
|
} })),
|
|
@@ -4929,18 +4930,18 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4929
4930
|
return renderFullAddressInput();
|
|
4930
4931
|
}
|
|
4931
4932
|
switch (action.type) {
|
|
4932
|
-
case
|
|
4933
|
+
case index$1.NodeActionType.USER_SUBMIT_DROPDOWN:
|
|
4933
4934
|
const options = action.url ? action.url.split('\n') : [];
|
|
4934
4935
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4935
4936
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
4936
4937
|
React__default["default"].createElement(reactHookForm.Controller, { key: action.key, control: control, name: action.key, render: ({ field }) => {
|
|
4937
|
-
return (React__default["default"].createElement(index$
|
|
4938
|
+
return (React__default["default"].createElement(index$3.Select, Object.assign({ searchable: true, data: options, placeholder: action.label }, field, { withinPortal: true, zIndex: 1000 })));
|
|
4938
4939
|
} }),
|
|
4939
4940
|
errors[action.key] && (React__default["default"].createElement("p", { className: "error-message" }, f({
|
|
4940
4941
|
id: 'validation.error.requiredField',
|
|
4941
4942
|
defaultMessage: 'This field is required',
|
|
4942
4943
|
})))));
|
|
4943
|
-
case
|
|
4944
|
+
case index$1.NodeActionType.USER_SUBMIT_EMAIL:
|
|
4944
4945
|
const emailPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
4945
4946
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4946
4947
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
@@ -4957,7 +4958,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4957
4958
|
id: 'validation.error.validEmail',
|
|
4958
4959
|
defaultMessage: 'Please enter a valid email address.',
|
|
4959
4960
|
})))));
|
|
4960
|
-
case
|
|
4961
|
+
case index$1.NodeActionType.USER_SUBMIT_NAME:
|
|
4961
4962
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4962
4963
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
4963
4964
|
React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
|
|
@@ -4965,7 +4966,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4965
4966
|
id: 'validation.error.requiredField',
|
|
4966
4967
|
defaultMessage: 'This field is required',
|
|
4967
4968
|
})))));
|
|
4968
|
-
case
|
|
4969
|
+
case index$1.NodeActionType.USER_SUBMIT_PHONE:
|
|
4969
4970
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4970
4971
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
4971
4972
|
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
@@ -4976,7 +4977,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4976
4977
|
id: 'validation.error.validNumber',
|
|
4977
4978
|
defaultMessage: 'Please enter a valid number.',
|
|
4978
4979
|
})))));
|
|
4979
|
-
case
|
|
4980
|
+
case index$1.NodeActionType.USER_SUBMIT_NUMBER:
|
|
4980
4981
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4981
4982
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
4982
4983
|
React__default["default"].createElement("input", Object.assign({ type: "number", id: action.id }, register(action.key, { required: true }))),
|
|
@@ -4984,12 +4985,12 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
4984
4985
|
id: 'validation.error.requiredField',
|
|
4985
4986
|
defaultMessage: 'This field is required',
|
|
4986
4987
|
})))));
|
|
4987
|
-
case
|
|
4988
|
+
case index$1.NodeActionType.USER_SUBMIT_DATE:
|
|
4988
4989
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
4989
4990
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
4990
4991
|
React__default["default"].createElement(StyleDatePickerInput, null,
|
|
4991
|
-
React__default["default"].createElement(index$
|
|
4992
|
-
const dateString = dayjs__default["default"](_value).format(index$
|
|
4992
|
+
React__default["default"].createElement(index$7.DatePicker, { locale: locale || 'en-PH', displayDateFormat: index$2.DATE_FNS_DATE_FORMAT, onChange: (_value) => {
|
|
4993
|
+
const dateString = dayjs__default["default"](_value).format(index$2.API_DATE_FORMAT);
|
|
4993
4994
|
setValue(action.key, dateString);
|
|
4994
4995
|
trigger(action.key);
|
|
4995
4996
|
} }),
|
|
@@ -5105,7 +5106,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5105
5106
|
// )}
|
|
5106
5107
|
// </div>
|
|
5107
5108
|
// )
|
|
5108
|
-
case
|
|
5109
|
+
case index$1.NodeActionType.USER_SUBMIT_BMI:
|
|
5109
5110
|
return (React__default["default"].createElement("div", { key: action.id },
|
|
5110
5111
|
React__default["default"].createElement("div", { className: "input-row", key: `${action.id}-weight` },
|
|
5111
5112
|
React__default["default"].createElement("label", { htmlFor: `${action.key}-weight` }, f({ id: 'home.bmi.input.weight', defaultMessage: 'Weight' })),
|
|
@@ -5121,7 +5122,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5121
5122
|
id: 'validation.error.requiredField',
|
|
5122
5123
|
defaultMessage: 'This field is required',
|
|
5123
5124
|
}))))));
|
|
5124
|
-
case
|
|
5125
|
+
case index$1.NodeActionType.USER_SUBMIT_GENDER:
|
|
5125
5126
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5126
5127
|
React__default["default"].createElement("label", null, action.label),
|
|
5127
5128
|
React__default["default"].createElement("div", { className: "radio-group" },
|
|
@@ -5157,7 +5158,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5157
5158
|
defaultMessage: 'This field is required',
|
|
5158
5159
|
})))));
|
|
5159
5160
|
// case NodeActionType.USER_SUBMIT_ADDRESS:
|
|
5160
|
-
case
|
|
5161
|
+
case index$1.NodeActionType.USER_SUBMIT_TEXT:
|
|
5161
5162
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5162
5163
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5163
5164
|
React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
|
|
@@ -5165,8 +5166,8 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5165
5166
|
id: 'validation.error.requiredField',
|
|
5166
5167
|
defaultMessage: 'This field is required',
|
|
5167
5168
|
})))));
|
|
5168
|
-
case
|
|
5169
|
-
case
|
|
5169
|
+
case index$1.NodeActionType.USER_SUBMIT_OTP:
|
|
5170
|
+
case index$1.NodeActionType.USER_SUBMIT_WHATSAPP:
|
|
5170
5171
|
return (React__default["default"].createElement("div", null,
|
|
5171
5172
|
React__default["default"].createElement("div", { className: "input-row input-row--otp" },
|
|
5172
5173
|
React__default["default"].createElement("label", { htmlFor: "otpPhoneNumber" }, action.label),
|
|
@@ -5192,7 +5193,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5192
5193
|
id: 'validation.error.validNumber',
|
|
5193
5194
|
defaultMessage: 'Please enter a valid number.',
|
|
5194
5195
|
}))),
|
|
5195
|
-
verifiedOTP ? ('') : (React__default["default"].createElement(index$
|
|
5196
|
+
verifiedOTP ? ('') : (React__default["default"].createElement(index$3.Button, Object.assign({ size: "sm", loading: isLoading, disabled: (!isFinishedCountDown && sentOTP) ||
|
|
5196
5197
|
isLoading ||
|
|
5197
5198
|
!PhoneInputBase.isPossiblePhoneNumber(watchOtp || ''), onClick: handleSendOTP, variant: "ghost", className: "btn-send-otp" }, trackingSendOTP), sentOTP ? (React__default["default"].createElement(CountDown$1, { ref: countRef, isFinished: isFinishedCountDown, onFinish: setIsFinishedCountDown })) : (React__default["default"].createElement("span", null, f({
|
|
5198
5199
|
id: 'subot.sendOTP.button',
|
|
@@ -5218,11 +5219,11 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5218
5219
|
React__default["default"].createElement("span", { className: "verify-success-label" }, f({
|
|
5219
5220
|
id: 'subot.verifyOTP.success.message',
|
|
5220
5221
|
defaultMessage: 'Verified successful',
|
|
5221
|
-
})))) : (React__default["default"].createElement(index$
|
|
5222
|
+
})))) : (React__default["default"].createElement(index$6.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
|
|
5222
5223
|
id: 'subot.verifyOTP.button',
|
|
5223
5224
|
defaultMessage: 'Verify OTP',
|
|
5224
5225
|
})))))));
|
|
5225
|
-
case
|
|
5226
|
+
case index$1.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5226
5227
|
return (React__default["default"].createElement(GoogleAddressField$1, { action: action, control: control, formError: errors[action.key], key: action.id, initValue: defaultFormValues === null || defaultFormValues === void 0 ? void 0 : defaultFormValues[action.key], onChange: setValue }));
|
|
5227
5228
|
default:
|
|
5228
5229
|
return '';
|
|
@@ -5230,19 +5231,19 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5230
5231
|
};
|
|
5231
5232
|
const renderFormSubmitAndTerms = (action) => {
|
|
5232
5233
|
switch (action.type) {
|
|
5233
|
-
case
|
|
5234
|
+
case index$1.NodeActionType.USER_SUBMIT_CONFIRM:
|
|
5234
5235
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5235
5236
|
React__default["default"].createElement("label", { className: "subot-checkbox" },
|
|
5236
5237
|
React__default["default"].createElement("input", Object.assign({}, register('confirm'), { type: "checkbox", defaultChecked: true, className: "subot-checkbox__input" })),
|
|
5237
5238
|
React__default["default"].createElement("span", { className: "subot-checkbox__label" },
|
|
5238
5239
|
React__default["default"].createElement(Markdown, null, action.label)))));
|
|
5239
|
-
case
|
|
5240
|
+
case index$1.NodeActionType.USER_SUBMIT_SEND:
|
|
5240
5241
|
const disabledWhenNotVerifyed = hasOtpField ? !verifiedOTP : false;
|
|
5241
5242
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5242
5243
|
React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: hasConfirm
|
|
5243
5244
|
? !confirm || disabledWhenNotVerifyed
|
|
5244
5245
|
: disabledWhenNotVerifyed }, trackingSubmit, { "data-response-id": action.id }), action.label)));
|
|
5245
|
-
case
|
|
5246
|
+
case index$1.NodeActionType.USER_SUBMIT_TERMS:
|
|
5246
5247
|
return (React__default["default"].createElement("div", { className: "form-terms", key: action.id },
|
|
5247
5248
|
React__default["default"].createElement(Markdown, null, action.label)));
|
|
5248
5249
|
default:
|
|
@@ -5453,7 +5454,7 @@ const Container$b = ({ action, onChange }) => {
|
|
|
5453
5454
|
const currentUrl = useCurrentUrl();
|
|
5454
5455
|
const { params, activeId } = React.useContext(SubotInlineContext);
|
|
5455
5456
|
return (React__default["default"].createElement(StyledWrap$6, null,
|
|
5456
|
-
React__default["default"].createElement(index$
|
|
5457
|
+
React__default["default"].createElement(index$3.Button, { onClick: () => onChange && onChange(action), size: "lg", "data-event-category": "Service Connection", "data-event-action": "Risk Screening Sign Up for Result", "data-event-label": currentUrl, "data-bot-id": params.bot_id, "data-event-question-id": activeId },
|
|
5457
5458
|
React__default["default"].createElement(Markdown, null, action === null || action === void 0 ? void 0 : action.label))));
|
|
5458
5459
|
};
|
|
5459
5460
|
Container$b.displayName = 'SubotInlineActionSSO';
|
|
@@ -5517,7 +5518,7 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
|
|
|
5517
5518
|
const inputRef = React.useRef(null);
|
|
5518
5519
|
const [otherText, setOtherText] = React.useState('');
|
|
5519
5520
|
const { params } = React.useContext(SubotInlineContext);
|
|
5520
|
-
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) ===
|
|
5521
|
+
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$1.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
|
|
5521
5522
|
React.useEffect(() => {
|
|
5522
5523
|
var _a, _b;
|
|
5523
5524
|
if (active) {
|
|
@@ -5543,7 +5544,7 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
|
|
|
5543
5544
|
React__default["default"].createElement("div", { className: "label" }, action === null || action === void 0 ? void 0 : action.label)),
|
|
5544
5545
|
isActionSelectWithOther && active && (React__default["default"].createElement(core.Box, { px: "2px", style: { textAlign: 'right' } },
|
|
5545
5546
|
React__default["default"].createElement(core.Textarea, { ref: inputRef, placeholder: action === null || action === void 0 ? void 0 : action.label, styles: stylesTextarea, value: otherText, onChange: (evt) => setOtherText(evt.target.value), maxLength: 360 }),
|
|
5546
|
-
React__default["default"].createElement(index$
|
|
5547
|
+
React__default["default"].createElement(index$3.Button, { size: "sm", mt: "5px", styles: stylesButtonSubmitOther, disabled: !otherText, onClick: handleClickWithFormMeta }, f({
|
|
5547
5548
|
id: 'feedback.submit',
|
|
5548
5549
|
defaultMessage: 'Submit',
|
|
5549
5550
|
}))))));
|
|
@@ -5557,7 +5558,7 @@ const Container$9 = ({ action, onChange, active, htmlType, }) => {
|
|
|
5557
5558
|
if (action && onChange) {
|
|
5558
5559
|
onChange({
|
|
5559
5560
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
5560
|
-
control:
|
|
5561
|
+
control: index$1.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
5561
5562
|
value: '',
|
|
5562
5563
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
5563
5564
|
});
|
|
@@ -5573,7 +5574,7 @@ const Container$8 = ({ action, onChange, active, htmlType, }) => {
|
|
|
5573
5574
|
if (action && onChange) {
|
|
5574
5575
|
onChange({
|
|
5575
5576
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
5576
|
-
control:
|
|
5577
|
+
control: index$1.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
5577
5578
|
value: '',
|
|
5578
5579
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
5579
5580
|
});
|
|
@@ -5585,13 +5586,13 @@ Container$8.displayName = 'SubotInlinePollChoiceImage';
|
|
|
5585
5586
|
|
|
5586
5587
|
const SubotInlineActionBaseTarget = {
|
|
5587
5588
|
// 'user-image': SubotInlineActionImageChoice,
|
|
5588
|
-
[
|
|
5589
|
-
[
|
|
5590
|
-
[
|
|
5591
|
-
[
|
|
5592
|
-
[
|
|
5593
|
-
[
|
|
5594
|
-
[
|
|
5589
|
+
[index$1.NodeActionType.USER_CHOICE_TEXT]: Container$a,
|
|
5590
|
+
[index$1.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: Container$a,
|
|
5591
|
+
[index$1.NodeActionType.USER_CHOICE_IMAGE]: Container$c,
|
|
5592
|
+
[index$1.NodeActionType.ACTION_SSO_REDIRECT]: Container$b,
|
|
5593
|
+
[index$1.NodeActionType.POLL_CHOICE]: Container$9,
|
|
5594
|
+
[index$1.NodeActionType.POLL_BUTTON]: () => null,
|
|
5595
|
+
[index$1.NodeActionType.POLL_CHOICE_IMAGE]: Container$8,
|
|
5595
5596
|
// [NodeActionType.RATING_STAR]: SubotInlineRatingStar,
|
|
5596
5597
|
// [NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
|
|
5597
5598
|
// [NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
|
|
@@ -5614,13 +5615,13 @@ const SubotInlineActionBase = new Proxy(SubotInlineActionBaseTarget, {
|
|
|
5614
5615
|
},
|
|
5615
5616
|
});
|
|
5616
5617
|
|
|
5617
|
-
const excludeActions = [
|
|
5618
|
+
const excludeActions = [index$1.NodeActionType.USER_CHOICE_NEXT];
|
|
5618
5619
|
const Container$7 = ({ actions, value, onChange, htmlType, node_type, formSubmitMeta, }) => {
|
|
5619
|
-
const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type ===
|
|
5620
|
+
const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type === index$1.NodeActionType.POLL_CHOICE_IMAGE)), [actions]);
|
|
5620
5621
|
const className = React.useMemo(() => {
|
|
5621
5622
|
switch (node_type) {
|
|
5622
|
-
case
|
|
5623
|
-
case
|
|
5623
|
+
case index$1.NodeType.IMAGE:
|
|
5624
|
+
case index$1.NodeType.REACTION:
|
|
5624
5625
|
return 'si-two-columns';
|
|
5625
5626
|
default:
|
|
5626
5627
|
return isPollChoiceImage ? 'si-two-columns' : '';
|
|
@@ -5694,7 +5695,7 @@ const Container$5 = ({ node, indexNumber }) => {
|
|
|
5694
5695
|
}, []);
|
|
5695
5696
|
const submitButton = React.useMemo(() => {
|
|
5696
5697
|
var _a;
|
|
5697
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type ==
|
|
5698
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$1.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
5698
5699
|
if (_submitButton)
|
|
5699
5700
|
return _submitButton;
|
|
5700
5701
|
return null;
|
|
@@ -5729,7 +5730,7 @@ const Container$5 = ({ node, indexNumber }) => {
|
|
|
5729
5730
|
return;
|
|
5730
5731
|
}
|
|
5731
5732
|
});
|
|
5732
|
-
const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !==
|
|
5733
|
+
const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$1.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
5733
5734
|
return (React__default["default"].createElement(StyledWrap$3, { id: "si-node-text" },
|
|
5734
5735
|
React__default["default"].createElement(Container$h, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber }),
|
|
5735
5736
|
React__default["default"].createElement(Container$7, { value: activeActions, actions: actionsRemoveMultipleBtn, onChange: handleOnChange })));
|
|
@@ -5742,13 +5743,13 @@ const useDescriptionPollNode = ({ node }) => {
|
|
|
5742
5743
|
id: 'multiSelectError.required',
|
|
5743
5744
|
defaultMessage: 'You must choose one options',
|
|
5744
5745
|
});
|
|
5745
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) ===
|
|
5746
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$1.NodeMultipleOptions.UNLIMITED) {
|
|
5746
5747
|
description = f({
|
|
5747
5748
|
id: 'multiSelectError.unlimited',
|
|
5748
5749
|
defaultMessage: 'You must choose at least one options',
|
|
5749
5750
|
});
|
|
5750
5751
|
}
|
|
5751
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) ===
|
|
5752
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$1.NodeMultipleOptions.RANGE) {
|
|
5752
5753
|
description = f({
|
|
5753
5754
|
id: 'multiSelectError.range',
|
|
5754
5755
|
defaultMessage: 'You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)',
|
|
@@ -5757,7 +5758,7 @@ const useDescriptionPollNode = ({ node }) => {
|
|
|
5757
5758
|
to: node.to,
|
|
5758
5759
|
});
|
|
5759
5760
|
}
|
|
5760
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) ===
|
|
5761
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$1.NodeMultipleOptions.EXACT_NUMBER) {
|
|
5761
5762
|
description = f({
|
|
5762
5763
|
id: 'multiSelectError.exactNumber',
|
|
5763
5764
|
defaultMessage: 'You must choose {from} answers.',
|
|
@@ -5787,7 +5788,7 @@ const Container$4 = ({ node, indexNumber }) => {
|
|
|
5787
5788
|
}, []);
|
|
5788
5789
|
const submitButton = React.useMemo(() => {
|
|
5789
5790
|
var _a;
|
|
5790
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type ==
|
|
5791
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$1.NodeActionType.POLL_BUTTON);
|
|
5791
5792
|
if (_submitButton)
|
|
5792
5793
|
return _submitButton;
|
|
5793
5794
|
return null;
|
|
@@ -5849,7 +5850,7 @@ const Container$3 = ({ node }) => {
|
|
|
5849
5850
|
const handleOnChange = (action) => {
|
|
5850
5851
|
if (params.bot_id &&
|
|
5851
5852
|
action &&
|
|
5852
|
-
action.type ===
|
|
5853
|
+
action.type === index$1.NodeActionType.ACTION_SSO_REDIRECT) {
|
|
5853
5854
|
const currentState = {
|
|
5854
5855
|
params: Object.assign(Object.assign(Object.assign({}, params), node === null || node === void 0 ? void 0 : node._message), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key, mode: 'inline' }),
|
|
5855
5856
|
listNodes,
|
|
@@ -5863,7 +5864,7 @@ const Container$3 = ({ node }) => {
|
|
|
5863
5864
|
const returnUrlEncode = encodeURIComponent(returnUrl.includes('?')
|
|
5864
5865
|
? `${returnUrl}&=${extraQueryString}`
|
|
5865
5866
|
: `${returnUrl}?=${extraQueryString}`);
|
|
5866
|
-
window.location.href = `${index$
|
|
5867
|
+
window.location.href = `${index$2.SSO_URL}?returnUrl=${returnUrlEncode}&source=subot-inline`;
|
|
5867
5868
|
}
|
|
5868
5869
|
};
|
|
5869
5870
|
return (React__default["default"].createElement(StyledWrap$1, { id: "si-node-final" },
|
|
@@ -5911,7 +5912,7 @@ const Container$2 = ({ node, indexNumber }) => {
|
|
|
5911
5912
|
const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
5912
5913
|
if (!action)
|
|
5913
5914
|
return;
|
|
5914
|
-
const isActionSelectWithOther = action.type ===
|
|
5915
|
+
const isActionSelectWithOther = action.type === index$1.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
|
|
5915
5916
|
setValue(Object.assign(Object.assign({}, value), { action_id: action === null || action === void 0 ? void 0 : action.id, action_value: action === null || action === void 0 ? void 0 : action.key }));
|
|
5916
5917
|
if (!isActionSelectWithOther) {
|
|
5917
5918
|
handleOnChangeNormal(action);
|
|
@@ -5988,12 +5989,12 @@ const Container$1 = ({ onClickStart }) => {
|
|
|
5988
5989
|
React__default["default"].createElement(Container$s, { node: foundNode, onClickStart: onClickStart })));
|
|
5989
5990
|
}
|
|
5990
5991
|
const node = foundNode;
|
|
5991
|
-
const nodeType =
|
|
5992
|
-
const nodeTypeSSO = (_a =
|
|
5993
|
-
let NodeComponent = node.position ===
|
|
5992
|
+
const nodeType = index$1.NodeType[node.type].valueOf();
|
|
5993
|
+
const nodeTypeSSO = (_a = index$1.NodePosition[node.position]) === null || _a === void 0 ? void 0 : _a.valueOf();
|
|
5994
|
+
let NodeComponent = node.position === index$1.NodePosition.SSO
|
|
5994
5995
|
? SubotInlineNodeBase[nodeTypeSSO]
|
|
5995
5996
|
: SubotInlineNodeBase[nodeType];
|
|
5996
|
-
if (node.is_multi_select && node.type !==
|
|
5997
|
+
if (node.is_multi_select && node.type !== index$1.NodeType.POLL) {
|
|
5997
5998
|
NodeComponent = SubotInlineNodeBase['MULTIPLE'];
|
|
5998
5999
|
}
|
|
5999
6000
|
return (React__default["default"].createElement(framerMotion.motion.div, { key: node.id, initial: { opacity: 1, y: -300 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
@@ -6046,7 +6047,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6046
6047
|
React__default["default"].createElement(Close, null))),
|
|
6047
6048
|
React__default["default"].createElement(NodeContextProvider, null,
|
|
6048
6049
|
React__default["default"].createElement("div", { className: "subot-inline-revamp-container", "data-show-footer": isShowFooter },
|
|
6049
|
-
loading && !isShowFooter && React__default["default"].createElement(index$
|
|
6050
|
+
loading && !isShowFooter && React__default["default"].createElement(index$7.Loading, { className: "si-loading" }),
|
|
6050
6051
|
React__default["default"].createElement(Container$1, { onClickStart: () => {
|
|
6051
6052
|
setIsDisplayFullMobile(true);
|
|
6052
6053
|
} })),
|
|
@@ -6065,7 +6066,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6065
6066
|
}, [bgImgFullContainer]);
|
|
6066
6067
|
if (isFullContainer) {
|
|
6067
6068
|
return (React__default["default"].createElement(StyledContainerFullscreen, { style: styleFullContainer },
|
|
6068
|
-
React__default["default"].createElement(index$
|
|
6069
|
+
React__default["default"].createElement(index$9.Container, { className: "si-container" },
|
|
6069
6070
|
React__default["default"].createElement("div", { className: "si-revamp-left" },
|
|
6070
6071
|
React__default["default"].createElement(Container$t, { subotSettingData: subotSettingData }),
|
|
6071
6072
|
React__default["default"].createElement(Container$v, null)),
|
|
@@ -6084,7 +6085,7 @@ const Container = () => {
|
|
|
6084
6085
|
if (!foundNode)
|
|
6085
6086
|
return '';
|
|
6086
6087
|
return (foundNode.inline_background ||
|
|
6087
|
-
((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type ===
|
|
6088
|
+
((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type === index$1.NodeIntentType.BOT_BACKGROUND_IMAGE)) === null || _b === void 0 ? void 0 : _b.url));
|
|
6088
6089
|
}, [listNodes, activeId]);
|
|
6089
6090
|
const subotSettingData = React.useMemo(() => {
|
|
6090
6091
|
const subotInlineSettings = listNodes[0];
|