@hhgtech/hhg-components 1.29.570 → 1.29.571-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-9ebd52ca.js → InputDate-995cb207.js} +5 -5
- package/build/{LastPeriod-00b0b47b.js → LastPeriod-bb33cd60.js} +1 -1
- package/build/{MobileBottomNavigationIcon-f98b485b.js → MobileBottomNavigationIcon-960145ab.js} +3 -3
- package/build/{SiteWideBanner-fedd8edc.js → SiteWideBanner-7dc3b848.js} +13 -13
- package/build/{Spinner-18c90fe5.js → Spinner-36aa3370.js} +1 -1
- package/build/{WhatsApp-061da51d.js → WhatsApp-9d46392b.js} +1 -1
- package/build/adapters.js +20 -26
- package/build/atoms.js +54 -58
- package/build/babyGrowth.js +87 -90
- package/build/cache.js +2 -2
- package/build/care.js +21 -21
- package/build/careBookingSearchBar.js +13 -13
- package/build/careBookingSearchBarV2.js +18 -18
- package/build/components.js +115 -116
- package/build/{constants-b992173e.js → constants-60a484ab.js} +1 -1
- package/build/{constants-25b9497f.js → constants-a5ff8d2b.js} +1 -1
- package/build/constants.js +2 -2
- package/build/constantsRiskScreener.js +1 -1
- package/build/constantsSite.js +1 -1
- package/build/{core-c6026899.js → core-f43f5f1b.js} +1 -1
- package/build/countrySelect-e8d73af3.js +1436 -0
- package/build/{dataTransform-02a58a20.js → dataTransform-8e76c982.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-e6e9e3fb.js → editor-1bf827ce.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +26 -31
- package/build/embeddedHeathToolCards_babyPoop.js +21 -26
- package/build/embeddedHeathToolCards_babyVaccine.js +25 -30
- package/build/embeddedHeathToolCards_bmi_bmi.js +28 -33
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -33
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +25 -30
- package/build/embeddedHeathToolCards_helpers.js +2 -2
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +25 -30
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -32
- package/build/embeddedHeathToolCards_targetHeartRate.js +30 -35
- package/build/esm/{InputDate-86aca9f1.js → InputDate-9c9580bf.js} +5 -5
- package/build/esm/{LastPeriod-0fa55988.js → LastPeriod-9101f9cb.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-e8c6487b.js → MobileBottomNavigationIcon-246790b3.js} +3 -3
- package/build/esm/{SiteWideBanner-584af462.js → SiteWideBanner-56fff397.js} +13 -13
- package/build/esm/{Spinner-bf43cb76.js → Spinner-26dc772e.js} +1 -1
- package/build/esm/{WhatsApp-632c14e2.js → WhatsApp-c7d35699.js} +1 -1
- package/build/esm/adapters.js +20 -26
- package/build/esm/atoms.js +54 -58
- package/build/esm/babyGrowth.js +87 -90
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +21 -21
- package/build/esm/careBookingSearchBar.js +13 -13
- package/build/esm/careBookingSearchBarV2.js +18 -18
- package/build/esm/components.js +115 -116
- package/build/esm/{constants-2e7ee0b3.js → constants-4d660f1c.js} +1 -1
- package/build/esm/{constants-bc837908.js → constants-ae05c38c.js} +1 -1
- package/build/esm/constants.js +2 -2
- package/build/esm/constantsRiskScreener.js +1 -1
- package/build/esm/constantsSite.js +1 -1
- package/build/esm/{core-b5c06568.js → core-aea991a6.js} +1 -1
- package/build/esm/countrySelect-f63b8689.js +1426 -0
- package/build/esm/{dataTransform-20f020cf.js → dataTransform-37e8c48c.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-af36c0ee.js → editor-1af0c8a9.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +26 -31
- package/build/esm/embeddedHeathToolCards_babyPoop.js +21 -26
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +25 -30
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -33
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -33
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +25 -30
- package/build/esm/embeddedHeathToolCards_helpers.js +2 -2
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +25 -30
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -32
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +30 -35
- package/build/esm/footer.js +22 -28
- package/build/esm/formatTrackingData-abf42d49.js +4708 -0
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{healthTools-2375f3d7.js → healthTools-2080ed70.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -24
- package/build/esm/healthToolsForm.js +38 -43
- package/build/esm/{helpers-13942d8c.js → helpers-cee95490.js} +1 -1
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-86256531.js → index-07f80b01.js} +3 -3
- package/build/esm/{index-86d17c65.js → index-08cfa16e.js} +3 -3
- package/build/esm/{index-d491a5d8.js → index-0d2e1037.js} +2 -2
- package/build/esm/{index-4726d97a.js → index-0e007078.js} +15 -15
- package/build/esm/{index-c98bfa61.js → index-0e501836.js} +14 -14
- package/build/esm/{index-3e9784ab.js → index-237b8cd9.js} +1 -1
- package/build/esm/{index-fa37e9df.js → index-24894a72.js} +5 -5
- package/build/esm/{index-17856e46.js → index-27f9e93a.js} +3 -3
- package/build/esm/{index-674ad3f8.js → index-28d79f4b.js} +16 -16
- package/build/esm/{index-8878ebce.js → index-29a750bd.js} +4 -4
- package/build/esm/{index-4fb66ae3.js → index-29cd513e.js} +3 -3
- package/build/esm/{index-56d1537a.js → index-3be53b9b.js} +18 -18
- package/build/esm/{index-b09d9b2e.js → index-3d0afe18.js} +6 -6
- package/build/esm/{index-b0564176.js → index-3fe1192f.js} +3 -3
- package/build/esm/{index-aac41a30.js → index-498a276b.js} +3 -3
- package/build/esm/{index-1164f7d4.js → index-4cf8b5f1.js} +1 -1
- package/build/esm/{index-4c5be22c.js → index-52148654.js} +1 -1
- package/build/esm/{index-83ce36b7.js → index-53c22c93.js} +17 -17
- package/build/esm/{index-21bd6de5.js → index-5592d074.js} +4 -4
- package/build/esm/{index-e1aa2251.js → index-5619dd62.js} +3 -3
- package/build/esm/{index-b9c6f372.js → index-56d2d60f.js} +6 -6
- package/build/esm/{index-d8c33a6a.js → index-57ffae3a.js} +2 -2
- package/build/esm/{index-f522da5c.js → index-5841c3e9.js} +19 -19
- package/build/esm/{index-dc8f650b.js → index-5e838787.js} +2 -2
- package/build/esm/{index-0db64b4f.js → index-5ee90121.js} +2 -2
- package/build/esm/{index-7c58eb2b.js → index-643f16ff.js} +11 -11
- package/build/esm/{index-4a538dfc.js → index-65916df7.js} +7 -7
- package/build/esm/{index-436b58cd.js → index-6cb6260f.js} +1 -1
- package/build/esm/{index-759ff54d.js → index-6d1fe7c8.js} +2 -2
- package/build/esm/{index-72cc3c82.js → index-6fa2c6ce.js} +7 -7
- package/build/esm/{index-ac17facc.js → index-707cb603.js} +5 -5
- package/build/esm/{index-a83d2663.js → index-71b51d89.js} +17 -17
- package/build/esm/{index-0948e312.js → index-726d569f.js} +2 -2
- package/build/esm/{index-d4975c2a.js → index-7d86b1a8.js} +2 -2
- package/build/esm/{index-d991925d.js → index-8619675e.js} +31 -31
- package/build/esm/index-8af37f62.js +50 -0
- package/build/esm/{index-1002fab9.js → index-90ef2c39.js} +14 -14
- package/build/esm/{index-690ee4c3.js → index-93d64849.js} +2 -2
- package/build/esm/{index-8ea55c3a.js → index-9484c5ca.js} +16 -16
- package/build/esm/{index-a488b4e6.js → index-94bb7063.js} +2 -2
- package/build/esm/{index-2e49b6fc.js → index-9d506407.js} +2 -2
- package/build/esm/{index-6ac1e86b.js → index-9f30e96d.js} +17 -17
- package/build/esm/{index-22745456.js → index-a14631c4.js} +2 -2
- package/build/esm/{index-6ffe8a54.js → index-b1a6e5d0.js} +1 -1
- package/build/esm/{index-c2dd68b0.js → index-b36deefc.js} +2 -2
- package/build/esm/{index-df2bf85e.js → index-b490a756.js} +24 -24
- package/build/esm/{index-c6901973.js → index-b8247641.js} +12 -12
- package/build/esm/{index-cff8f873.js → index-b839f3d8.js} +1 -1
- package/build/esm/{index-6bb00382.js → index-b8e42f40.js} +21 -21
- package/build/esm/{index-3cd77063.js → index-b8fbc885.js} +13 -13
- package/build/esm/{index-672802ff.js → index-b9a20401.js} +5 -5
- package/build/esm/{index-ca5f175f.js → index-b9a46a26.js} +6 -6
- package/build/esm/{index-a82b9bdc.js → index-bd4ebd5b.js} +1 -1
- package/build/esm/{index-3895f110.js → index-bebe42f2.js} +25 -25
- package/build/esm/{index-3bd6d1a3.js → index-c29fc01e.js} +2 -2
- package/build/esm/{index-dd7c098e.js → index-c569f9e0.js} +2 -2
- package/build/esm/{index-1f84117b.js → index-ca40e113.js} +7 -7
- package/build/esm/{index-4ff88c7c.js → index-cdadb975.js} +2 -2
- package/build/esm/{index-98d2d8a9.js → index-d0713f49.js} +22 -22
- package/build/esm/{index-b3cddca0.js → index-d3cb33aa.js} +21 -1411
- package/build/esm/{index-79b6aa9a.js → index-d4b7a047.js} +13 -13
- package/build/esm/{index-e7bcd704.js → index-d50849ed.js} +2 -2
- package/build/esm/{index-33c0d916.js → index-d6d684a7.js} +17 -17
- package/build/esm/{index-1486a6da.js → index-d73c5c39.js} +20 -20
- package/build/esm/{index-308e99f5.js → index-d9b3b939.js} +2 -2
- package/build/esm/{index-a9accacf.js → index-db46dfa4.js} +9 -9
- package/build/esm/{index-b7f9d0bb.js → index-dfbabe79.js} +31 -31
- package/build/esm/{index-d52d4fc9.js → index-e535cd30.js} +16 -16
- package/build/esm/{index-09409879.js → index-e5babd72.js} +3 -3
- package/build/esm/{index-c28b5511.js → index-eea83486.js} +34 -34
- package/build/esm/{index-5237dddb.js → index-f45155a3.js} +3 -3
- package/build/esm/{index-0a262faf.js → index-f8ea3dd5.js} +2 -2
- package/build/esm/{index-9acc34a7.js → index-fc3a5254.js} +3 -3
- package/build/esm/{index-bdbd4403.js → index-fc73d436.js} +17 -17
- package/build/esm/index.js +132 -133
- package/build/esm/{labelSorting-6693dc3b.js → labelSorting-4c2b9b29.js} +4 -4
- package/build/esm/lead/LeadGenCore.d.ts +75 -0
- package/build/esm/lead/LeadGenSlim.d.ts +33 -0
- package/build/esm/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/esm/lead/i18n/index.d.ts +1 -1
- package/build/esm/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/esm/lead.js +442 -5106
- package/build/esm/leadRecaptcha.js +2 -2
- package/build/esm/leadSlim.d.ts +1 -0
- package/build/esm/leadSlim.js +457 -0
- package/build/esm/{logoIcon-26941868.js → logoIcon-ed0ba65c.js} +2 -2
- package/build/esm/mantine.js +29 -34
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +3 -3
- package/build/esm/miscGetSocialList.js +6 -6
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +90 -91
- package/build/esm/moleculesArticleCard.js +5 -5
- package/build/esm/moleculesArticleCardV2.js +17 -23
- package/build/esm/navigation.js +54 -56
- package/build/esm/navigationLogoutPopup.js +10 -10
- package/build/esm/navigationProfileButton.js +26 -31
- package/build/esm/onboardingV2.js +31 -35
- package/build/esm/organisms.js +68 -69
- package/build/esm/{post-6b391944.js → post-cbbd8afa.js} +2 -2
- package/build/esm/profileNavigation.js +19 -24
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -28
- package/build/esm/{recaptchaV3-34684488.js → recaptchaV3-cc6fd4ca.js} +1 -1
- package/build/esm/ssoV2.js +32 -36
- package/build/esm/{store-6afbb89f.js → store-0d93e898.js} +3 -3
- package/build/esm/subot/captcha/index.d.ts +10 -7
- package/build/esm/subot.js +45 -96
- package/build/esm/subotRecaptcha.d.ts +1 -0
- package/build/esm/subotRecaptcha.js +3 -0
- package/build/esm/surveyOrPremiumBanner.js +34 -38
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-1b913b92.js → surveyThankyouCard-639e53f7.js} +5 -5
- package/build/esm/together.js +59 -62
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +31 -36
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +53 -56
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +40 -44
- package/build/esm/togetherOrganisms.js +50 -53
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-3992daea.js → transform-3e8c4f18.js} +34 -34
- package/build/esm/{translationsProvider-0a7813b1.js → translationsProvider-588a0b2f.js} +1 -1
- package/build/esm/{treePopoverMenu-2b0332f7.js → treePopoverMenu-167029db.js} +18 -18
- package/build/esm/{types-be272abe.js → types-59349efa.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-cefb1029.js → useCartCareService-7a55d5cd.js} +1 -1
- package/build/esm/{useHealthToolCache-c49acdf1.js → useHealthToolCache-b75a1a0f.js} +1 -1
- package/build/esm/{usePhoneValidator-784fe823.js → usePhoneValidator-810fd4b0.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-0617aed7.js → usePlacesAutocomplete-8b114d56.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-054899bd.js → useResolvedCaptureUrls-def61857.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-07ea3389.js → utils-141179b6.js} +4 -4
- package/build/esm/{utils-dc631f93.js → utils-3ef98622.js} +4 -4
- package/build/esm/{utils-51368802.js → utils-6c355922.js} +1 -1
- package/build/esm/{utils-a15aaf15.js → utils-c8b41185.js} +2 -2
- package/build/esm/{utils-f1f4f7e8.js → utils-e62c8c96.js} +5 -5
- package/build/esm/vaccination.js +23 -28
- package/build/footer.js +22 -28
- package/build/formatTrackingData-86139edc.js +4757 -0
- package/build/gAssets.js +1 -1
- package/build/{healthTools-2ff3afde.js → healthTools-f332b98b.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -24
- package/build/healthToolsForm.js +38 -43
- package/build/{helpers-7c1f5ba2.js → helpers-fd76182d.js} +1 -1
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-6ce7e646.js → index-05d450cd.js} +6 -6
- package/build/{index-7f36de72.js → index-0a0f349e.js} +2 -2
- package/build/{index-0a0cd148.js → index-0b002741.js} +5 -5
- package/build/{index-b7ce6c84.js → index-0ecc0039.js} +3 -3
- package/build/{index-b5099834.js → index-1854ea71.js} +2 -2
- package/build/{index-862570e8.js → index-18a375e9.js} +17 -17
- package/build/index-192407f0.js +56 -0
- package/build/{index-4187e37c.js → index-1d83a02d.js} +3 -3
- package/build/{index-83924b73.js → index-2ef7f67e.js} +2 -2
- package/build/{index-a2e9b70a.js → index-3381d7cc.js} +1 -1
- package/build/{index-548d2ac1.js → index-33a85e15.js} +2 -2
- package/build/{index-ae158063.js → index-366d51c3.js} +7 -7
- package/build/{index-2955fa8d.js → index-36cca36d.js} +9 -9
- package/build/{index-3230baad.js → index-37610634.js} +2 -2
- package/build/{index-ebb33f1f.js → index-3cfb2944.js} +24 -24
- package/build/{index-6c423f35.js → index-410ff5af.js} +14 -14
- package/build/{index-60bd1fba.js → index-42cd4003.js} +3 -3
- package/build/{index-657ed4d4.js → index-438bcf83.js} +2 -2
- package/build/{index-3511e1af.js → index-43b42a19.js} +16 -16
- package/build/{index-177681f5.js → index-43e461c8.js} +18 -18
- package/build/{index-5d9bbd65.js → index-44701f4a.js} +2 -2
- package/build/{index-02a3adbc.js → index-4c0a64cf.js} +2 -2
- package/build/{index-4157eca3.js → index-50301f71.js} +2 -2
- package/build/{index-ebd0ec02.js → index-63842221.js} +3 -3
- package/build/{index-ba0188a4.js → index-63a8efc6.js} +11 -11
- package/build/{index-0cb355e9.js → index-676984f3.js} +2 -2
- package/build/{index-19bb7271.js → index-67f538e3.js} +31 -31
- package/build/{index-f85a4de0.js → index-69ed731e.js} +14 -14
- package/build/{index-4f69a48e.js → index-6cf3681a.js} +2 -2
- package/build/{index-55dac945.js → index-70f07d4e.js} +3 -3
- package/build/{index-ea09e421.js → index-77562ac2.js} +13 -13
- package/build/{index-caeeb401.js → index-776f38bf.js} +6 -6
- package/build/{index-33cdb702.js → index-780105c3.js} +17 -17
- package/build/{index-44993a1e.js → index-7bb58e13.js} +2 -2
- package/build/{index-77a042e1.js → index-7bf3a398.js} +12 -12
- package/build/{index-51d01acc.js → index-7da5ed40.js} +21 -1414
- package/build/{index-7e25b4f3.js → index-8254a007.js} +7 -7
- package/build/{index-ba967ab3.js → index-88b3db0c.js} +1 -1
- package/build/{index-967076ad.js → index-8902d37c.js} +17 -17
- package/build/{index-1c1dcc52.js → index-9538674e.js} +1 -1
- package/build/{index-b3f5d72d.js → index-9b921233.js} +2 -2
- package/build/{index-594475ad.js → index-9bb2149a.js} +21 -21
- package/build/{index-9e2d57d8.js → index-9e252f4c.js} +4 -4
- package/build/{index-6cd51190.js → index-a369ea0e.js} +1 -1
- package/build/{index-5ae0a209.js → index-a3791803.js} +16 -16
- package/build/{index-5c94c387.js → index-a4772869.js} +31 -31
- package/build/{index-a0ca8856.js → index-a60fc062.js} +20 -20
- package/build/{index-669bebfa.js → index-a8d0149a.js} +3 -3
- package/build/{index-74a39817.js → index-a9762d07.js} +3 -3
- package/build/{index-25c6d5be.js → index-a98ea311.js} +25 -25
- package/build/{index-3ea0608f.js → index-b0222315.js} +1 -1
- package/build/{index-dd9b1412.js → index-b3797c90.js} +1 -1
- package/build/{index-4cdc2006.js → index-b5947cbf.js} +6 -6
- package/build/{index-c1b212c8.js → index-b76f0cf3.js} +5 -5
- package/build/{index-d8ef9967.js → index-b849f9d5.js} +2 -2
- package/build/{index-2ac112e5.js → index-bd8c6967.js} +34 -34
- package/build/{index-51e0829a.js → index-bfb6f248.js} +7 -7
- package/build/{index-93cfde25.js → index-c680babd.js} +19 -19
- package/build/{index-42f7db47.js → index-c6fe2253.js} +3 -3
- package/build/{index-7ff1ac74.js → index-c8dc7534.js} +16 -16
- package/build/{index-96c50c61.js → index-cb385b49.js} +2 -2
- package/build/{index-75e14772.js → index-cc02cab7.js} +13 -13
- package/build/{index-4dd08aab.js → index-cdff82f1.js} +3 -3
- package/build/{index-70903c8e.js → index-d349c778.js} +2 -2
- package/build/{index-32d9e76c.js → index-db1676b7.js} +1 -1
- package/build/{index-881501b2.js → index-e1c63f1a.js} +15 -15
- package/build/{index-93286eef.js → index-e81660b7.js} +2 -2
- package/build/{index-58ad97c9.js → index-ee3f0966.js} +3 -3
- package/build/{index-234d78bb.js → index-f06896ce.js} +4 -4
- package/build/{index-c4028ca0.js → index-f549e0a3.js} +2 -2
- package/build/{index-807fd0e4.js → index-f6bc1784.js} +22 -22
- package/build/{index-ec6c4d5e.js → index-f721bc96.js} +17 -17
- package/build/{index-e024ff35.js → index-f80f101c.js} +5 -5
- package/build/{index-59658a1f.js → index-f87a7c07.js} +17 -17
- package/build/index.js +132 -133
- package/build/{labelSorting-c4df0590.js → labelSorting-31326412.js} +4 -4
- package/build/lead/LeadGenCore.d.ts +75 -0
- package/build/lead/LeadGenSlim.d.ts +33 -0
- package/build/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/lead/i18n/index.d.ts +1 -1
- package/build/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/lead.js +531 -5214
- package/build/leadRecaptcha.js +2 -2
- package/build/leadSlim.d.ts +1 -0
- package/build/leadSlim.js +466 -0
- package/build/{logoIcon-55134dc4.js → logoIcon-1bf09f07.js} +2 -2
- package/build/mantine.js +27 -32
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +3 -3
- package/build/miscGetSocialList.js +6 -6
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +90 -91
- package/build/moleculesArticleCard.js +5 -5
- package/build/moleculesArticleCardV2.js +17 -23
- package/build/navigation.js +54 -56
- package/build/navigationLogoutPopup.js +10 -10
- package/build/navigationProfileButton.js +26 -31
- package/build/onboardingV2.js +30 -34
- package/build/organisms.js +68 -69
- package/build/{post-ae6cd5df.js → post-6d243ae6.js} +2 -2
- package/build/profileNavigation.js +19 -24
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -28
- package/build/{recaptchaV3-01aeba64.js → recaptchaV3-7b6c0e41.js} +1 -1
- package/build/ssoV2.js +30 -34
- package/build/{store-738f12a2.js → store-0e139b7c.js} +3 -3
- package/build/subot/captcha/index.d.ts +10 -7
- package/build/subot.js +406 -458
- package/build/subotRecaptcha.d.ts +1 -0
- package/build/subotRecaptcha.js +15 -0
- package/build/surveyOrPremiumBanner.js +34 -38
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-c4cc9785.js → surveyThankyouCard-80ff60c8.js} +5 -5
- package/build/together.js +59 -62
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +31 -36
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +53 -56
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +40 -44
- package/build/togetherOrganisms.js +50 -53
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-bdface58.js → transform-a9f2ba27.js} +34 -34
- package/build/{translationsProvider-8b5cb380.js → translationsProvider-d168e99d.js} +1 -1
- package/build/{treePopoverMenu-7978e490.js → treePopoverMenu-453b7df7.js} +18 -18
- package/build/{types-51ba8d5f.js → types-2aa77453.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-12a23cae.js → useCartCareService-e0dd9f20.js} +1 -1
- package/build/{useHealthToolCache-a14d6044.js → useHealthToolCache-3a1ec3cd.js} +1 -1
- package/build/{usePhoneValidator-a940ee56.js → usePhoneValidator-b7cc229f.js} +4 -4
- package/build/{usePlacesAutocomplete-b97e2338.js → usePlacesAutocomplete-7b7ddd89.js} +1 -1
- package/build/{useResolvedCaptureUrls-b4a7e19a.js → useResolvedCaptureUrls-eae8eaf7.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-bc439355.js → utils-019e7f64.js} +2 -2
- package/build/{utils-39d3f595.js → utils-1e719362.js} +4 -4
- package/build/{utils-200a6650.js → utils-4fea7795.js} +5 -5
- package/build/{utils-c65ca307.js → utils-9a670387.js} +1 -1
- package/build/{utils-655fcf34.js → utils-e4866c58.js} +4 -4
- package/build/vaccination.js +23 -28
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-7b48264a.js → BMI_BOYS.percentile.monthly-a4116fd7.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-129bbda2.js → BMI_BOYS.percentile.weekly-b08e7790.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-5fb02717.js → BMI_BOYS.percentile.yearly-5fc6e0bf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-0b5978f6.js → BMI_BOYS.zscore.monthly-322bbb0e.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-711e040a.js → BMI_BOYS.zscore.weekly-39f72817.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-39ce689a.js → BMI_BOYS.zscore.yearly-32cc88eb.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-8916f9e9.js → BMI_GIRLS.percentile.monthly-8d467f0c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-a5d8d437.js → BMI_GIRLS.percentile.weekly-900c0f0d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7db6e19a.js → BMI_GIRLS.percentile.yearly-26f10a71.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-76f74077.js → BMI_GIRLS.zscore.monthly-2bc8a1c5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-5b8ec1fe.js → BMI_GIRLS.zscore.weekly-e3c0b382.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-19b7d20d.js → BMI_GIRLS.zscore.yearly-7b199915.js} +0 -0
- /package/build/{ChevronDown-7aa5239a.js → ChevronDown-1a2f225a.js} +0 -0
- /package/build/{Google-e4c5b102.js → Google-24430f64.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5f7ab088.js → HEAD CIRCUM_BOYS.percentile.monthly-22166a0b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-4b0643ff.js → HEAD CIRCUM_BOYS.percentile.weekly-3ac50c42.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-38491538.js → HEAD CIRCUM_BOYS.percentile.yearly-743b2f5a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-06121ec5.js → HEAD CIRCUM_BOYS.zscore.monthly-9aa65a20.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-14419797.js → HEAD CIRCUM_BOYS.zscore.weekly-de42fd4b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2402f1cd.js → HEAD CIRCUM_BOYS.zscore.yearly-015a842c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-e10b9aa6.js → HEAD CIRCUM_GIRLS.percentile.monthly-c548fd55.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dfd42fbd.js → HEAD CIRCUM_GIRLS.percentile.weekly-db38bf32.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-570c5749.js → HEAD CIRCUM_GIRLS.percentile.yearly-a953fb93.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-1a171872.js → HEAD CIRCUM_GIRLS.zscore.monthly-188b7a7e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-ddfe0d95.js → HEAD CIRCUM_GIRLS.zscore.weekly-6e1094f2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-7f73fe04.js → HEAD CIRCUM_GIRLS.zscore.yearly-ed155590.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-70f949ac.js → HEIGHT_BOYS.percentile.monthly-268a8cce.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c30b1584.js → HEIGHT_BOYS.percentile.weekly-723e98f9.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-1d674e57.js → HEIGHT_BOYS.percentile.yearly-29e59851.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-7d9f3790.js → HEIGHT_BOYS.zscore.monthly-73ccc770.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-32d669bf.js → HEIGHT_BOYS.zscore.weekly-8db0e0ea.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-a3d14050.js → HEIGHT_BOYS.zscore.yearly-fc08b103.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-31599c31.js → HEIGHT_GIRLS.percentile.monthly-8ceaf7ab.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-65421db3.js → HEIGHT_GIRLS.percentile.weekly-5885b0c7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-61c1ec90.js → HEIGHT_GIRLS.percentile.yearly-35e40e15.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-5c4d0cc1.js → HEIGHT_GIRLS.zscore.monthly-86e8a36c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-703e5f92.js → HEIGHT_GIRLS.zscore.weekly-7ae93417.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-4ec4aece.js → HEIGHT_GIRLS.zscore.yearly-e0bcff79.js} +0 -0
- /package/build/{Visible-3589ecdf.js → Visible-2e851a27.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3fa2caaa.js → WEIGHT_BOYS.percentile.monthly-afca7805.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-3f3ab6a6.js → WEIGHT_BOYS.percentile.weekly-27adcaf9.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0e8b97fd.js → WEIGHT_BOYS.percentile.yearly-780dc3f4.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e95a73e4.js → WEIGHT_BOYS.zscore.monthly-9968e956.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-9fa69332.js → WEIGHT_BOYS.zscore.weekly-3ac1116e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-a3b3fd37.js → WEIGHT_BOYS.zscore.yearly-898d2579.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-a60581dd.js → WEIGHT_GIRLS.percentile.monthly-ca6622a9.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-ce7d59e5.js → WEIGHT_GIRLS.percentile.weekly-35d4370d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-6c2dcb5b.js → WEIGHT_GIRLS.percentile.yearly-fc5ceaba.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-ae847d4b.js → WEIGHT_GIRLS.zscore.monthly-49a0f49a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-8fcb8eee.js → WEIGHT_GIRLS.zscore.weekly-ceb312e8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-904f1266.js → WEIGHT_GIRLS.zscore.yearly-335fc936.js} +0 -0
- /package/build/{ageGenerate-cb2b7ad3.js → ageGenerate-77d6c6a0.js} +0 -0
- /package/build/{animation-116218a5.js → animation-000648a5.js} +0 -0
- /package/build/{appearance-c75af09e.js → appearance-7e4cb3c0.js} +0 -0
- /package/build/{constants-2b73f764.js → constants-7016a8d0.js} +0 -0
- /package/build/{constants-82549a98.js → constants-96f9b51c.js} +0 -0
- /package/build/{constants-06c26920.js → constants-eec0eb66.js} +0 -0
- /package/build/{context-b791251e.js → context-d532eb08.js} +0 -0
- /package/build/{dataTransform-15d1dbe9.js → dataTransform-0aa82232.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-3ba45a7b.js → BMI_BOYS.percentile.monthly-819b1d31.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-4f198fff.js → BMI_BOYS.percentile.weekly-dae3c9e3.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-e1c40939.js → BMI_BOYS.percentile.yearly-b854737b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-b723f477.js → BMI_BOYS.zscore.monthly-c2467c66.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-76872082.js → BMI_BOYS.zscore.weekly-4bad030d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-4c65f9b4.js → BMI_BOYS.zscore.yearly-ffc35db2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-9acc6205.js → BMI_GIRLS.percentile.monthly-8d963faf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-f59f14ac.js → BMI_GIRLS.percentile.weekly-ea6b4d43.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0e3f0688.js → BMI_GIRLS.percentile.yearly-048d0602.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-b4c2b4d3.js → BMI_GIRLS.zscore.monthly-ed7011cd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-a96f7858.js → BMI_GIRLS.zscore.weekly-4d64a151.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a0416fdf.js → BMI_GIRLS.zscore.yearly-9595220f.js} +0 -0
- /package/build/esm/{ChevronDown-7abc9558.js → ChevronDown-eaf19f23.js} +0 -0
- /package/build/esm/{Google-fbfa5959.js → Google-1876371c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-175d0f0a.js → HEAD CIRCUM_BOYS.percentile.monthly-71d49275.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-6c938980.js → HEAD CIRCUM_BOYS.percentile.weekly-60a61c5d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2d8e62fd.js → HEAD CIRCUM_BOYS.percentile.yearly-be915a08.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ca7a5051.js → HEAD CIRCUM_BOYS.zscore.monthly-8cc18d01.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-65be2ed7.js → HEAD CIRCUM_BOYS.zscore.weekly-05b96219.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-c8ba092c.js → HEAD CIRCUM_BOYS.zscore.yearly-3ae724b9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1a1aaf27.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac12449c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e67f1d9c.js → HEAD CIRCUM_GIRLS.percentile.weekly-e75c41d9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-07489c1f.js → HEAD CIRCUM_GIRLS.percentile.yearly-494cac16.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-d38a69f2.js → HEAD CIRCUM_GIRLS.zscore.monthly-9add68dd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-659f780b.js → HEAD CIRCUM_GIRLS.zscore.weekly-5590a44a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1b298591.js → HEAD CIRCUM_GIRLS.zscore.yearly-f1e813fb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b723062c.js → HEIGHT_BOYS.percentile.monthly-1f057021.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-04ed64cc.js → HEIGHT_BOYS.percentile.weekly-f0eef4d8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-1c998863.js → HEIGHT_BOYS.percentile.yearly-50c83275.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c168ec05.js → HEIGHT_BOYS.zscore.monthly-b70eeb31.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-02b9f313.js → HEIGHT_BOYS.zscore.weekly-abf16a17.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-063b9a59.js → HEIGHT_BOYS.zscore.yearly-aeb5e5ab.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-fc2bc0f7.js → HEIGHT_GIRLS.percentile.monthly-def1b3c8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-aaa0e151.js → HEIGHT_GIRLS.percentile.weekly-0144b04e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-5d318320.js → HEIGHT_GIRLS.percentile.yearly-778a63ba.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-37dbee5f.js → HEIGHT_GIRLS.zscore.monthly-cc6a4e10.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cb6f65f3.js → HEIGHT_GIRLS.zscore.weekly-5fc0de25.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-41f5ca61.js → HEIGHT_GIRLS.zscore.yearly-eabe188d.js} +0 -0
- /package/build/esm/{Visible-f8dd9574.js → Visible-3488b00b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-aa54e3a0.js → WEIGHT_BOYS.percentile.monthly-ac77f33a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-088b794b.js → WEIGHT_BOYS.percentile.weekly-bb10e1c5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-213bb8ce.js → WEIGHT_BOYS.percentile.yearly-12f79f5f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-a73caed2.js → WEIGHT_BOYS.zscore.monthly-44c635cb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-f716733a.js → WEIGHT_BOYS.zscore.weekly-26db7184.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-63919d9b.js → WEIGHT_BOYS.zscore.yearly-c93de8a4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5646fbb1.js → WEIGHT_GIRLS.percentile.monthly-044fe6de.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-306d88cf.js → WEIGHT_GIRLS.percentile.weekly-d109deb7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-efa44761.js → WEIGHT_GIRLS.percentile.yearly-ec495075.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0eb6c8a3.js → WEIGHT_GIRLS.zscore.monthly-189f6161.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-a8058f6d.js → WEIGHT_GIRLS.zscore.weekly-055242a6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-4f6015c7.js → WEIGHT_GIRLS.zscore.yearly-9ab5ab6f.js} +0 -0
- /package/build/esm/{ageGenerate-74c2e9c7.js → ageGenerate-95a24f3b.js} +0 -0
- /package/build/esm/{animation-e3175d08.js → animation-f305d18c.js} +0 -0
- /package/build/esm/{appearance-c71018df.js → appearance-4d829171.js} +0 -0
- /package/build/esm/{constants-7a11f46a.js → constants-01cc2d6d.js} +0 -0
- /package/build/esm/{constants-d7235689.js → constants-09ec7d2d.js} +0 -0
- /package/build/esm/{constants-c21d8ae3.js → constants-8e7f0d42.js} +0 -0
- /package/build/esm/{context-d81be133.js → context-f28da715.js} +0 -0
- /package/build/esm/{dataTransform-c9eeac89.js → dataTransform-d89a5c1d.js} +0 -0
- /package/build/esm/{index-dfaf91b6.js → index-16831bab.js} +0 -0
- /package/build/esm/{index-a96ebb13.js → index-4662e01b.js} +0 -0
- /package/build/esm/{index-e038ce4d.js → index-53f21f54.js} +0 -0
- /package/build/esm/{index-12e998bf.js → index-77ad256a.js} +0 -0
- /package/build/esm/{index-1cea02c2.js → index-7b73a628.js} +0 -0
- /package/build/esm/{index-daa46513.js → index-84065ed0.js} +0 -0
- /package/build/esm/{index-db6af26b.js → index-89bbf30c.js} +0 -0
- /package/build/esm/{index-c7cb0101.js → index-9e7aea01.js} +0 -0
- /package/build/esm/{index-39b9cc52.js → index-c13ffa4f.js} +0 -0
- /package/build/esm/{index.styles-c9e74348.js → index.styles-4c7ac336.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c803156a.js → localizeNumberFormat-9541cb8c.js} +0 -0
- /package/build/esm/{number-64a7542e.js → number-3ff3c945.js} +0 -0
- /package/build/esm/{paths-a3ad6847.js → paths-36449217.js} +0 -0
- /package/build/esm/{routing-162621b2.js → routing-f4634b0d.js} +0 -0
- /package/build/esm/{shared-eb75e8c5.js → shared-1fdaf34a.js} +0 -0
- /package/build/esm/{translationsContext-2ce23027.js → translationsContext-0188cf47.js} +0 -0
- /package/build/esm/{tslib.es6-2430ac70.js → tslib.es6-97e77b98.js} +0 -0
- /package/build/esm/{types-d127803a.js → types-6e531be2.js} +0 -0
- /package/build/esm/{useImageAspectRatio-b39c77ec.js → useImageAspectRatio-d606bc4d.js} +0 -0
- /package/build/esm/{useOutsideClick-5c34d0ee.js → useOutsideClick-16cac5a3.js} +0 -0
- /package/build/esm/{useScrollbarSize-e81eb6a3.js → useScrollbarSize-a1de6d08.js} +0 -0
- /package/build/esm/{useUniqueId-39017eb1.js → useUniqueId-6617fc8c.js} +0 -0
- /package/build/esm/{utils-b29fb220.js → utils-1f37e52f.js} +0 -0
- /package/build/esm/{utils-b8b8ee25.js → utils-8f3d8e88.js} +0 -0
- /package/build/{index-6d8bca56.js → index-1bc22565.js} +0 -0
- /package/build/{index-11ef464d.js → index-1bc5147a.js} +0 -0
- /package/build/{index-b57789f4.js → index-5a78eab8.js} +0 -0
- /package/build/{index-b0aea26f.js → index-5f11365b.js} +0 -0
- /package/build/{index-7f972e73.js → index-8dee3b8f.js} +0 -0
- /package/build/{index-e89c54d4.js → index-91719e7d.js} +0 -0
- /package/build/{index-74946e26.js → index-999c7bcd.js} +0 -0
- /package/build/{index-06e8844d.js → index-ac3b1f6d.js} +0 -0
- /package/build/{index-f6d864a4.js → index-cf188099.js} +0 -0
- /package/build/{index.styles-29a1822e.js → index.styles-b7c2b099.js} +0 -0
- /package/build/{localizeNumberFormat-e1cc74aa.js → localizeNumberFormat-39be0f5c.js} +0 -0
- /package/build/{number-6fc1dfe4.js → number-2d49c4a7.js} +0 -0
- /package/build/{paths-af560692.js → paths-92ccb998.js} +0 -0
- /package/build/{routing-6a52dd63.js → routing-4cc2e7c9.js} +0 -0
- /package/build/{shared-2404a68d.js → shared-07d3fb7f.js} +0 -0
- /package/build/{translationsContext-5889fc15.js → translationsContext-8464a806.js} +0 -0
- /package/build/{tslib.es6-d98fb08d.js → tslib.es6-71662edb.js} +0 -0
- /package/build/{types-869ba50a.js → types-203a2f6c.js} +0 -0
- /package/build/{useImageAspectRatio-a5dc09c4.js → useImageAspectRatio-2658464d.js} +0 -0
- /package/build/{useOutsideClick-567b4a52.js → useOutsideClick-91901d6e.js} +0 -0
- /package/build/{useScrollbarSize-883050ad.js → useScrollbarSize-96fb3803.js} +0 -0
- /package/build/{useUniqueId-ead9ce35.js → useUniqueId-f016b344.js} +0 -0
- /package/build/{utils-311b8f16.js → utils-1ea5064b.js} +0 -0
- /package/build/{utils-6fe31363.js → utils-9d3c15e5.js} +0 -0
package/build/subot.js
CHANGED
|
@@ -3,85 +3,82 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var index$
|
|
7
|
-
var tslib_es6 = require('./tslib.es6-
|
|
8
|
-
var index$
|
|
6
|
+
var index$3 = require('./index-5a78eab8.js');
|
|
7
|
+
var tslib_es6 = require('./tslib.es6-71662edb.js');
|
|
8
|
+
var index$4 = require('./index-b3797c90.js');
|
|
9
9
|
var Cookies = require('js-cookie');
|
|
10
10
|
var fd = require('fastdom');
|
|
11
11
|
var fastdomPromised = require('fastdom/extensions/fastdom-promised');
|
|
12
|
-
var togetherComponentGlobalContext = require('./utils-
|
|
12
|
+
var togetherComponentGlobalContext = require('./utils-1e719362.js');
|
|
13
13
|
var formatString = require('string-format');
|
|
14
|
-
var
|
|
15
|
-
var index$1 = require('./index-
|
|
14
|
+
var index$2 = require('./index-192407f0.js');
|
|
15
|
+
var index$1 = require('./index-cb385b49.js');
|
|
16
16
|
var dayjs = require('dayjs');
|
|
17
17
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
18
18
|
var core = require('@mantine/core');
|
|
19
19
|
var classNames = require('classnames');
|
|
20
|
-
var index$
|
|
21
|
-
var index$
|
|
20
|
+
var index$c = require('./index-999c7bcd.js');
|
|
21
|
+
var index$b = require('./index-b849f9d5.js');
|
|
22
22
|
var framerMotion = require('framer-motion');
|
|
23
23
|
var styled = require('@emotion/styled');
|
|
24
|
-
var utils = require('./utils-
|
|
25
|
-
var index$
|
|
24
|
+
var utils = require('./utils-9d3c15e5.js');
|
|
25
|
+
var index$5 = require('./index-1d83a02d.js');
|
|
26
26
|
var remarkable = require('remarkable');
|
|
27
27
|
var other = require('@hhgtech/icons/other');
|
|
28
28
|
var reactIntersectionObserver = require('react-intersection-observer');
|
|
29
|
-
var index$
|
|
29
|
+
var index$6 = require('./index-1bc22565.js');
|
|
30
30
|
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
|
|
31
|
-
var constants = require('./constants-
|
|
31
|
+
var constants = require('./constants-60a484ab.js');
|
|
32
32
|
var uuid = require('uuid');
|
|
33
|
-
var
|
|
33
|
+
var recaptchaV3 = require('./recaptchaV3-7b6c0e41.js');
|
|
34
|
+
var index$7 = require('./index-d349c778.js');
|
|
34
35
|
var miscTheme = require('./miscTheme.js');
|
|
35
36
|
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
36
|
-
var index$
|
|
37
|
+
var index$8 = require('./index-7da5ed40.js');
|
|
37
38
|
require('@mantine/dates');
|
|
38
|
-
require('./index-
|
|
39
|
-
require('./index-
|
|
40
|
-
require('./index.styles-
|
|
41
|
-
require('./translationsContext-
|
|
39
|
+
require('./index-366d51c3.js');
|
|
40
|
+
require('./index-ac3b1f6d.js');
|
|
41
|
+
require('./index.styles-b7c2b099.js');
|
|
42
|
+
require('./translationsContext-8464a806.js');
|
|
42
43
|
require('@mantine/hooks');
|
|
43
|
-
require('./index-
|
|
44
|
+
require('./index-cdff82f1.js');
|
|
44
45
|
var isEmpty = require('lodash/isEmpty');
|
|
45
46
|
var reactHookForm = require('react-hook-form');
|
|
46
47
|
var PhoneInputBase = require('react-phone-number-input');
|
|
47
48
|
var api = require('@react-google-maps/api');
|
|
48
|
-
var usePlacesAutocomplete = require('./usePlacesAutocomplete-
|
|
49
|
+
var usePlacesAutocomplete = require('./usePlacesAutocomplete-7b7ddd89.js');
|
|
49
50
|
var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
|
|
50
|
-
var InputDate = require('./InputDate-
|
|
51
|
-
var index$
|
|
52
|
-
var index$
|
|
53
|
-
var store = require('./store-
|
|
54
|
-
var utils$1 = require('./utils-
|
|
55
|
-
var index$
|
|
51
|
+
var InputDate = require('./InputDate-995cb207.js');
|
|
52
|
+
var index$9 = require('./index-e81660b7.js');
|
|
53
|
+
var index$a = require('./index-8dee3b8f.js');
|
|
54
|
+
var store = require('./store-0e139b7c.js');
|
|
55
|
+
var utils$1 = require('./utils-e4866c58.js');
|
|
56
|
+
var index$d = require('./index-63842221.js');
|
|
56
57
|
var StarRatings = require('react-star-ratings');
|
|
57
58
|
var moleculesArticleCard = require('./moleculesArticleCard.js');
|
|
58
|
-
var index$
|
|
59
|
-
var index$
|
|
59
|
+
var index$e = require('./index-cc02cab7.js');
|
|
60
|
+
var index$f = require('./index-33a85e15.js');
|
|
60
61
|
require('date-fns/locale');
|
|
61
62
|
require('./constantsSite.js');
|
|
62
63
|
require('./constantsRiskScreener.js');
|
|
63
64
|
require('./miscCookieHelper.js');
|
|
64
65
|
require('slugify');
|
|
65
66
|
require('./togetherApiPaths.js');
|
|
66
|
-
require('./index-
|
|
67
|
-
require('./WhatsApp-
|
|
68
|
-
require('./Spinner-
|
|
69
|
-
require('./index-
|
|
70
|
-
require('./shared-
|
|
71
|
-
require('./index-
|
|
67
|
+
require('./index-0ecc0039.js');
|
|
68
|
+
require('./WhatsApp-9d46392b.js');
|
|
69
|
+
require('./Spinner-36aa3370.js');
|
|
70
|
+
require('./index-9538674e.js');
|
|
71
|
+
require('./shared-07d3fb7f.js');
|
|
72
|
+
require('./index-9b921233.js');
|
|
72
73
|
require('@mantine/carousel');
|
|
73
|
-
require('./useUniqueId-
|
|
74
|
-
require('@hhgtech/icons/core');
|
|
75
|
-
require('lodash/debounce');
|
|
76
|
-
require('lodash/throttle');
|
|
77
|
-
require('react-phone-number-input/flags');
|
|
78
|
-
require('vaul');
|
|
74
|
+
require('./useUniqueId-f016b344.js');
|
|
79
75
|
require('@emotion/react');
|
|
76
|
+
require('@hhgtech/icons/core');
|
|
80
77
|
require('@mantine/notifications');
|
|
81
78
|
require('zustand');
|
|
82
|
-
require('./index-
|
|
83
|
-
require('./routing-
|
|
84
|
-
require('./healthTools-
|
|
79
|
+
require('./index-f06896ce.js');
|
|
80
|
+
require('./routing-4cc2e7c9.js');
|
|
81
|
+
require('./healthTools-f332b98b.js');
|
|
85
82
|
|
|
86
83
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
87
84
|
|
|
@@ -170,55 +167,6 @@ const CachedSystem = {
|
|
|
170
167
|
}),
|
|
171
168
|
};
|
|
172
169
|
|
|
173
|
-
const SUBOT_CAPTCHA_HEADER = 'X-Recaptcha-Token';
|
|
174
|
-
// One action per endpoint, as agreed with subot-be.
|
|
175
|
-
const ACTIONS = {
|
|
176
|
-
chat: 'subot_chat',
|
|
177
|
-
log: 'subot_log',
|
|
178
|
-
sms_otp: 'subot_sms_otp',
|
|
179
|
-
whatsapp_otp: 'subot_whatsapp_otp',
|
|
180
|
-
sms_verify: 'subot_sms_verify',
|
|
181
|
-
whatsapp_verify: 'subot_whatsapp_verify',
|
|
182
|
-
};
|
|
183
|
-
const SUBOT_CAPTCHA_FAILED_MESSAGE = {
|
|
184
|
-
id: 'subot.captcha.failed',
|
|
185
|
-
defaultMessage: 'We could not verify your request. Please try again.',
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Headers with a fresh reCAPTCHA v3 token from the shared v3 key
|
|
189
|
-
* (`NEXT_PUBLIC_GOOGLE_RECAPTCHA_KEY`). Call it right before the request:
|
|
190
|
-
* tokens are single-use and expire after 2 minutes.
|
|
191
|
-
*
|
|
192
|
-
* Resolves to `{}` when no token is available and lets the backend decide.
|
|
193
|
-
*/
|
|
194
|
-
const getSubotCaptchaHeaders = (kind) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
195
|
-
const token = yield recaptchaV3.getLeadgenRecaptchaToken(ACTIONS[kind]);
|
|
196
|
-
return token ? { [SUBOT_CAPTCHA_HEADER]: token } : {};
|
|
197
|
-
});
|
|
198
|
-
/**
|
|
199
|
-
* POST to a subot-be endpoint protected by reCAPTCHA. subot-be rejects a
|
|
200
|
-
* missing or failed token with HTTP 403, which `callApi` cannot report, so the
|
|
201
|
-
* response is flagged with `_captchaForbidden`.
|
|
202
|
-
*/
|
|
203
|
-
const callSubotProtectedApi = (url, kind, data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
204
|
-
try {
|
|
205
|
-
const res = yield fetch(url, {
|
|
206
|
-
method: 'POST',
|
|
207
|
-
body: JSON.stringify(data),
|
|
208
|
-
headers: yield getSubotCaptchaHeaders(kind),
|
|
209
|
-
});
|
|
210
|
-
const body = yield res.json().catch(() => null);
|
|
211
|
-
if (res.status === 403)
|
|
212
|
-
return Object.assign(Object.assign({}, body), { _captchaForbidden: true });
|
|
213
|
-
return body;
|
|
214
|
-
}
|
|
215
|
-
catch (error) {
|
|
216
|
-
console.log(error);
|
|
217
|
-
return null;
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
const isSubotCaptchaForbidden = (res) => !!(res === null || res === void 0 ? void 0 : res._captchaForbidden);
|
|
221
|
-
|
|
222
170
|
const getSubotApiPath = (path, params) => {
|
|
223
171
|
const { subotApiUrl } = togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.env;
|
|
224
172
|
const apiUrl = subotApiUrl.endsWith('frontend/api/')
|
|
@@ -229,7 +177,7 @@ const getSubotApiPath = (path, params) => {
|
|
|
229
177
|
/** inline message */
|
|
230
178
|
const subotInlineMessage$1 = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
231
179
|
try {
|
|
232
|
-
return yield callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
|
|
180
|
+
return yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
|
|
233
181
|
}
|
|
234
182
|
catch (error) { }
|
|
235
183
|
});
|
|
@@ -381,7 +329,7 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
|
|
|
381
329
|
? _formSubmitMeta
|
|
382
330
|
: nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.form_submit_meta;
|
|
383
331
|
if (isNodeWithDynamicScore &&
|
|
384
|
-
node.type === index$
|
|
332
|
+
node.type === index$3.NodeType.FORM &&
|
|
385
333
|
formSubmitMeta) {
|
|
386
334
|
// debugger
|
|
387
335
|
// NodeId hiện tại có trong object "dynamic_score"
|
|
@@ -393,22 +341,22 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
|
|
|
393
341
|
const foundActions = (_b = node.actions) === null || _b === void 0 ? void 0 : _b.filter((act) => actionIdsDynamicScore.includes(act.id));
|
|
394
342
|
const foundFormMetas = formSubmitMeta.filter((f) => foundActions.find((a) => a.key === f.key) &&
|
|
395
343
|
(f.control ===
|
|
396
|
-
index$
|
|
344
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
|
|
397
345
|
f.control ===
|
|
398
|
-
index$
|
|
346
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
|
|
399
347
|
const formulaWithVariable = actionVarsDynamicScore
|
|
400
348
|
.map((variableName, idx) => {
|
|
401
349
|
const variableMapToActionId = actionIdsDynamicScore[idx];
|
|
402
350
|
const variableMapToAction = foundActions.find((act) => act.id === variableMapToActionId);
|
|
403
351
|
const formValue = foundFormMetas.find((f) => (variableMapToAction === null || variableMapToAction === void 0 ? void 0 : variableMapToAction.key) === f.key &&
|
|
404
352
|
(f.control ===
|
|
405
|
-
index$
|
|
353
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
|
|
406
354
|
f.control ===
|
|
407
|
-
index$
|
|
355
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
|
|
408
356
|
if (!formValue)
|
|
409
357
|
return '';
|
|
410
358
|
if (formValue.control ===
|
|
411
|
-
index$
|
|
359
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]) {
|
|
412
360
|
const { age } = calcAge(dayjs__default["default"](formValue.value).toDate());
|
|
413
361
|
return `var ${variableName} = ${age};`;
|
|
414
362
|
}
|
|
@@ -430,7 +378,7 @@ const getCurrentTotalDynamicScore = (listNodes, activeId, nextActionId, _formSub
|
|
|
430
378
|
const replaceTextWithVariables = (label, listNodes) => {
|
|
431
379
|
const dynamicScoreHash = getDynamicScore(listNodes[0]);
|
|
432
380
|
try {
|
|
433
|
-
const listFormNodes = listNodes.filter((node) => node.type === index$
|
|
381
|
+
const listFormNodes = listNodes.filter((node) => node.type === index$3.NodeType.FORM);
|
|
434
382
|
/** Apply for dynamic score */
|
|
435
383
|
Object.keys(dynamicScoreHash).forEach((nodeId) => {
|
|
436
384
|
var _a, _b, _c;
|
|
@@ -441,9 +389,9 @@ const replaceTextWithVariables = (label, listNodes) => {
|
|
|
441
389
|
const foundActions = (_a = foundNode === null || foundNode === void 0 ? void 0 : foundNode.actions) === null || _a === void 0 ? void 0 : _a.filter((act) => actionIdsDynamicScore.includes(act.id));
|
|
442
390
|
const foundFormMetas = (_c = (_b = foundNode === null || foundNode === void 0 ? void 0 : foundNode._message) === null || _b === void 0 ? void 0 : _b.form_submit_meta) === null || _c === void 0 ? void 0 : _c.filter((f) => foundActions.find((a) => a.key === f.key) &&
|
|
443
391
|
(f.control ===
|
|
444
|
-
index$
|
|
392
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
|
|
445
393
|
f.control ===
|
|
446
|
-
index$
|
|
394
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
|
|
447
395
|
if (dynamicScoreHash[nodeId].formula &&
|
|
448
396
|
dynamicScoreHash[nodeId].formula_result_name &&
|
|
449
397
|
(foundFormMetas === null || foundFormMetas === void 0 ? void 0 : foundFormMetas.length)) {
|
|
@@ -453,9 +401,9 @@ const replaceTextWithVariables = (label, listNodes) => {
|
|
|
453
401
|
const variableMapToAction = foundActions.find((act) => act.id === variableMapToActionId);
|
|
454
402
|
const formValue = foundFormMetas.find((f) => (variableMapToAction === null || variableMapToAction === void 0 ? void 0 : variableMapToAction.key) === f.key &&
|
|
455
403
|
(f.control ===
|
|
456
|
-
index$
|
|
404
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NUMBER] ||
|
|
457
405
|
f.control ===
|
|
458
|
-
index$
|
|
406
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB]));
|
|
459
407
|
if (!formValue)
|
|
460
408
|
return '';
|
|
461
409
|
return `var ${variableName} = ${formValue.value};`;
|
|
@@ -611,7 +559,7 @@ const buildSubotInlineSsoReturnUrl = () => {
|
|
|
611
559
|
};
|
|
612
560
|
const isActiveSubotInlineSsoNode = (listNodes, activeId) => {
|
|
613
561
|
const found = listNodes.find((n) => n.id == activeId);
|
|
614
|
-
return (found === null || found === void 0 ? void 0 : found.position) === index$
|
|
562
|
+
return (found === null || found === void 0 ? void 0 : found.position) === index$3.NodePosition.SSO;
|
|
615
563
|
};
|
|
616
564
|
const hasPendingSubotInlineSsoState = (botId) => {
|
|
617
565
|
var _a;
|
|
@@ -627,7 +575,7 @@ const hasPendingSubotInlineSsoState = (botId) => {
|
|
|
627
575
|
json.createdAt + timeToExist <= Date.now()) {
|
|
628
576
|
return false;
|
|
629
577
|
}
|
|
630
|
-
return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === index$
|
|
578
|
+
return ((_a = json.listNodes.slice(-1)[0]) === null || _a === void 0 ? void 0 : _a.position) === index$3.NodePosition.SSO;
|
|
631
579
|
}
|
|
632
580
|
catch (_b) {
|
|
633
581
|
return false;
|
|
@@ -664,7 +612,7 @@ const getPreviousStateFromStorage = (botId, { getParams }) => {
|
|
|
664
612
|
json.activeId &&
|
|
665
613
|
json.createdAt + timeToExist > Date.now()) {
|
|
666
614
|
localStorage.removeItem(STATE_SUBOT_INLINE_KEY);
|
|
667
|
-
const isSSOAtLast = json.listNodes.slice(-1)[0].position === index$
|
|
615
|
+
const isSSOAtLast = json.listNodes.slice(-1)[0].position === index$3.NodePosition.SSO;
|
|
668
616
|
if (isSSOAtLast) {
|
|
669
617
|
return {
|
|
670
618
|
listNodes: json.listNodes,
|
|
@@ -736,7 +684,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
736
684
|
((_a = nodeMessage._message) === null || _a === void 0 ? void 0 : _a.action_id) &&
|
|
737
685
|
((_b = nodeMessage._message) === null || _b === void 0 ? void 0 : _b.action_value)) {
|
|
738
686
|
const key = nodeMessage._message.action_value; // submit
|
|
739
|
-
if (nodeMessage.type === index$
|
|
687
|
+
if (nodeMessage.type === index$3.NodeType.FORM) {
|
|
740
688
|
const addressControl = ['address', 'province', 'district', 'commune'];
|
|
741
689
|
const formMetaExceptAddress = (((_c = nodeMessage._message) === null || _c === void 0 ? void 0 : _c.form_submit_meta) || []).filter((formMeta) => !addressControl.includes(formMeta.control));
|
|
742
690
|
/** For address field */
|
|
@@ -772,7 +720,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
772
720
|
});
|
|
773
721
|
}
|
|
774
722
|
}
|
|
775
|
-
if (nodeMessage.type === index$
|
|
723
|
+
if (nodeMessage.type === index$3.NodeType.TEXT) {
|
|
776
724
|
if (nodeMessage.is_multi_select) {
|
|
777
725
|
const actionIds = Object.keys(nodeMessage._message.selected_actions || {});
|
|
778
726
|
const actionLabel = nodeMessage.actions
|
|
@@ -791,7 +739,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
791
739
|
const actionLabel = action === null || action === void 0 ? void 0 : action.label;
|
|
792
740
|
// Select "Other, please provide more detail" -> There is an input below the option is stored in form_submit_meta
|
|
793
741
|
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;
|
|
794
|
-
const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
742
|
+
const isSelectedOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT;
|
|
795
743
|
if (actionLabel && actionId) {
|
|
796
744
|
result.push({
|
|
797
745
|
attribute: key,
|
|
@@ -801,7 +749,7 @@ const extractUnifiedAnswers = (nodes) => {
|
|
|
801
749
|
}
|
|
802
750
|
}
|
|
803
751
|
}
|
|
804
|
-
if (nodeMessage.type === index$
|
|
752
|
+
if (nodeMessage.type === index$3.NodeType.POLL) {
|
|
805
753
|
const nodeId = nodeMessage.id;
|
|
806
754
|
const actionIds = ((_u = (_t = nodeMessage._message) === null || _t === void 0 ? void 0 : _t.current_polls) === null || _u === void 0 ? void 0 : _u[nodeId]) || [];
|
|
807
755
|
const actionLabel = nodeMessage.actions
|
|
@@ -846,7 +794,7 @@ const extractVoucherAnswers = (nodes, botItem) => {
|
|
|
846
794
|
else if (submitMessage.action_value === 'voucher_color') {
|
|
847
795
|
voucherColor = (selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.label) || '';
|
|
848
796
|
}
|
|
849
|
-
if (nodeMessage.type === index$
|
|
797
|
+
if (nodeMessage.type === index$3.NodeType.FORM) {
|
|
850
798
|
const logicFind = (key) => (formMeta) => {
|
|
851
799
|
return formMeta.key === key;
|
|
852
800
|
};
|
|
@@ -911,7 +859,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
|
|
|
911
859
|
let statusFlowBot = 'in_progress';
|
|
912
860
|
const lastNode = nodes[nodes.length - 1];
|
|
913
861
|
// Saving data with status COMPLETE when chatbot go to final node
|
|
914
|
-
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) && index$
|
|
862
|
+
if ((lastNode === null || lastNode === void 0 ? void 0 : lastNode.type) && index$3.NodeFinalTypes.includes(lastNode.type)) {
|
|
915
863
|
statusFlowBot = 'complete';
|
|
916
864
|
}
|
|
917
865
|
/** Remove the first node and push it later in data fetching step to make sure data is latest */
|
|
@@ -935,7 +883,7 @@ const saveSubotInlineLogs = ({ nodes, activeId, params, accountIdFromLogs, }) =>
|
|
|
935
883
|
type: 'inline',
|
|
936
884
|
market: constantsDomainLocales.domainLocales[togetherComponentGlobalContext.locale],
|
|
937
885
|
};
|
|
938
|
-
yield callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SUBOT_CREATE_LOG), 'log', payload);
|
|
886
|
+
yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SUBOT_CREATE_LOG), 'log', payload);
|
|
939
887
|
}
|
|
940
888
|
catch (err) {
|
|
941
889
|
//
|
|
@@ -1026,7 +974,7 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1026
974
|
/** Get Params */
|
|
1027
975
|
const getParams = React.useCallback(() => {
|
|
1028
976
|
const gaData = window.gaData;
|
|
1029
|
-
const url = (customUrl || window.location.origin + index$
|
|
977
|
+
const url = (customUrl || window.location.origin + index$4.basePath) +
|
|
1030
978
|
((togetherComponentGlobalContext.GlobalData === null || togetherComponentGlobalContext.GlobalData === void 0 ? void 0 : togetherComponentGlobalContext.GlobalData.locale) === 'tl-PH'
|
|
1031
979
|
? articleLink.replace('fil/', '')
|
|
1032
980
|
: articleLink);
|
|
@@ -1279,9 +1227,9 @@ const SubotInlineProvider = ({ children, articleLink, subotId, isFullContainer,
|
|
|
1279
1227
|
elementScrollIntoView,
|
|
1280
1228
|
]);
|
|
1281
1229
|
React.useEffect(() => {
|
|
1282
|
-
if (!Cookies__default["default"].get(index$
|
|
1230
|
+
if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
|
|
1283
1231
|
index$1.checkUntilFinished({
|
|
1284
|
-
condition: () => Boolean(Cookies__default["default"].get(index$
|
|
1232
|
+
condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
|
|
1285
1233
|
finished: () => {
|
|
1286
1234
|
const params = getParams();
|
|
1287
1235
|
getFirstNode(params);
|
|
@@ -1721,7 +1669,7 @@ Container$v.displayName = 'SubotInlineDisclaimer';
|
|
|
1721
1669
|
const useCurrentUrl = () => {
|
|
1722
1670
|
const { data: { locale, router }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
1723
1671
|
const { asPath } = router || {};
|
|
1724
|
-
const [currentUrl, setCurrentUrl] = React.useState(() => `${index$1.getHelloSitesUrl(locale, false)}${index$
|
|
1672
|
+
const [currentUrl, setCurrentUrl] = React.useState(() => `${index$1.getHelloSitesUrl(locale, false)}${index$4.basePath}${asPath}`);
|
|
1725
1673
|
React.useEffect(() => {
|
|
1726
1674
|
setCurrentUrl(window.location.href);
|
|
1727
1675
|
}, [asPath]);
|
|
@@ -1732,7 +1680,7 @@ const useCurrentUrl = () => {
|
|
|
1732
1680
|
const useValidationMultiOption = () => {
|
|
1733
1681
|
const { formatMessage: f, action: { pushNotifications }, } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
1734
1682
|
const validateSelectActions = (activeActions, node, callBack) => {
|
|
1735
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
1683
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER &&
|
|
1736
1684
|
activeActions.length !== (node === null || node === void 0 ? void 0 : node.from)) {
|
|
1737
1685
|
pushNotifications({
|
|
1738
1686
|
message: f({
|
|
@@ -1745,7 +1693,7 @@ const useValidationMultiOption = () => {
|
|
|
1745
1693
|
});
|
|
1746
1694
|
return;
|
|
1747
1695
|
}
|
|
1748
|
-
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
1696
|
+
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE &&
|
|
1749
1697
|
(activeActions.length < (node === null || node === void 0 ? void 0 : node.from) ||
|
|
1750
1698
|
activeActions.length > (node === null || node === void 0 ? void 0 : node.to))) {
|
|
1751
1699
|
pushNotifications({
|
|
@@ -1875,12 +1823,12 @@ const NodeContextProvider = ({ children }) => {
|
|
|
1875
1823
|
return (React__default["default"].createElement(NodeContext.Provider, { value: ctxValue }, children));
|
|
1876
1824
|
};
|
|
1877
1825
|
|
|
1878
|
-
const disabledNodeList = [index$
|
|
1879
|
-
const disabledPositionList = [index$
|
|
1826
|
+
const disabledNodeList = [index$3.NodeType.FORM];
|
|
1827
|
+
const disabledPositionList = [index$3.NodePosition.SSO];
|
|
1880
1828
|
const excludeNodeList = [
|
|
1881
|
-
index$
|
|
1882
|
-
index$
|
|
1883
|
-
index$
|
|
1829
|
+
index$3.NodeType.FINAL,
|
|
1830
|
+
index$3.NodeType.FINAL_THANK_YOU,
|
|
1831
|
+
index$3.NodeType.FINAL_STANDARD,
|
|
1884
1832
|
];
|
|
1885
1833
|
// const isSingleChoiceText = (node?: SubotNode) => {
|
|
1886
1834
|
// if (!node) return false
|
|
@@ -1898,9 +1846,9 @@ const Container$u = () => {
|
|
|
1898
1846
|
const validation = useValidationMultiOption();
|
|
1899
1847
|
const botItem = listNodes[0];
|
|
1900
1848
|
const node = listNodes.find((nodeItem) => nodeItem.id == activeId);
|
|
1901
|
-
const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$
|
|
1902
|
-
const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$
|
|
1903
|
-
const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$
|
|
1849
|
+
const actionNextChoice = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$3.NodeActionType.USER_CHOICE_NEXT);
|
|
1850
|
+
const actionPollSubmit = (_b = node === null || node === void 0 ? void 0 : node.actions) === null || _b === void 0 ? void 0 : _b.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
|
|
1851
|
+
const actionMultipleSubmit = (_c = node === null || node === void 0 ? void 0 : node.actions) === null || _c === void 0 ? void 0 : _c.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
1904
1852
|
// const selectedWithOtherInput =
|
|
1905
1853
|
// node?.actions?.find(({ id }) => id === value.action_id)?.type ===
|
|
1906
1854
|
// NodeActionType.USER_CHOICE_TEXT_BY_INPUT
|
|
@@ -1974,7 +1922,7 @@ const Container$u = () => {
|
|
|
1974
1922
|
defaultMessage: 'Start over',
|
|
1975
1923
|
}))),
|
|
1976
1924
|
isDisplayAction && (React__default["default"].createElement("div", { className: "si-footer-actions" },
|
|
1977
|
-
React__default["default"].createElement(index$
|
|
1925
|
+
React__default["default"].createElement(index$5.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: {
|
|
1978
1926
|
root: {
|
|
1979
1927
|
':not(:disabled)': {
|
|
1980
1928
|
backgroundColor: 'transparent !important',
|
|
@@ -1990,7 +1938,7 @@ const Container$u = () => {
|
|
|
1990
1938
|
id: 'riskScreener.back',
|
|
1991
1939
|
defaultMessage: 'Back',
|
|
1992
1940
|
})),
|
|
1993
|
-
React__default["default"].createElement(index$
|
|
1941
|
+
React__default["default"].createElement(index$5.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: {
|
|
1994
1942
|
root: {
|
|
1995
1943
|
':not(:disabled)': {
|
|
1996
1944
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
@@ -2314,11 +2262,11 @@ const SubotInlineVoucherLeftUI = ({ clientId, voucherAnswers }) => {
|
|
|
2314
2262
|
return null;
|
|
2315
2263
|
}
|
|
2316
2264
|
return (React__default["default"].createElement(StyledWrap$n, { className: "si-voucher-left-ui" },
|
|
2317
|
-
React__default["default"].createElement("img", { src: index$
|
|
2318
|
-
React__default["default"].createElement("img", { src: index$
|
|
2265
|
+
React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_bg.png'), alt: "", loading: "eager", className: "si-voucher-bg" }),
|
|
2266
|
+
React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_icon.png'), alt: "", loading: "eager", className: "si-voucher-item" }),
|
|
2319
2267
|
React__default["default"].createElement(core.Box, { className: "si-voucher-in-stock" },
|
|
2320
2268
|
React__default["default"].createElement("h3", null, quantityInStock),
|
|
2321
|
-
React__default["default"].createElement("img", { src: index$
|
|
2269
|
+
React__default["default"].createElement("img", { src: index$6.CommonGAssets.getAssetPath('subot/voucher_icon_small.png'), alt: "", loading: "eager" })),
|
|
2322
2270
|
React__default["default"].createElement(core.Box, { className: "si-voucher-progress" },
|
|
2323
2271
|
React__default["default"].createElement(core.Box, { className: "si-voucher-progress--inner", style: { width: `${percentage}%` } }))));
|
|
2324
2272
|
};
|
|
@@ -2359,7 +2307,7 @@ const Container$s = ({ node, onClickStart }) => {
|
|
|
2359
2307
|
email: '',
|
|
2360
2308
|
voucherName: '',
|
|
2361
2309
|
} })),
|
|
2362
|
-
React__default["default"].createElement(index$
|
|
2310
|
+
React__default["default"].createElement(index$5.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: {
|
|
2363
2311
|
root: {
|
|
2364
2312
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
2365
2313
|
'&:hover': {
|
|
@@ -2460,7 +2408,7 @@ const getLeadPath = (path, params) => {
|
|
|
2460
2408
|
const callApiWithLead = (url, method, options) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2461
2409
|
if (options === null || options === void 0 ? void 0 : options.data) {
|
|
2462
2410
|
let cookie = Cookies__default["default"].get(constants.LEAD_TOKEN_COOKIE);
|
|
2463
|
-
const ga = Cookies__default["default"].get(index$
|
|
2411
|
+
const ga = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
|
|
2464
2412
|
if (!cookie) {
|
|
2465
2413
|
const newCookie = uuid.v4();
|
|
2466
2414
|
cookie = newCookie;
|
|
@@ -2541,15 +2489,15 @@ const checkSyncDataOnFrisoCampaign = (bot, values) => {
|
|
|
2541
2489
|
if (!((_a = bot.extra_settings) === null || _a === void 0 ? void 0 : _a.sync_data_friso_campaign) || !values) {
|
|
2542
2490
|
return;
|
|
2543
2491
|
}
|
|
2544
|
-
const nameControl = index$
|
|
2545
|
-
const emailControl = index$
|
|
2546
|
-
const dateControl = index$
|
|
2547
|
-
const phoneControlOtp = index$
|
|
2548
|
-
const phoneControl = index$
|
|
2549
|
-
const level1Control = index$
|
|
2550
|
-
const level2Control = index$
|
|
2551
|
-
const level3Control = index$
|
|
2552
|
-
const addressControl = index$
|
|
2492
|
+
const nameControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_NAME];
|
|
2493
|
+
const emailControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_EMAIL];
|
|
2494
|
+
const dateControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE];
|
|
2495
|
+
const phoneControlOtp = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP];
|
|
2496
|
+
const phoneControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE];
|
|
2497
|
+
const level1Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE];
|
|
2498
|
+
const level2Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT];
|
|
2499
|
+
const level3Control = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE];
|
|
2500
|
+
const addressControl = index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_ADDRESS];
|
|
2553
2501
|
const name = ((_b = values.find((o) => o.control === nameControl)) === null || _b === void 0 ? void 0 : _b.value) || '';
|
|
2554
2502
|
const email = ((_c = values.find((o) => o.control === emailControl)) === null || _c === void 0 ? void 0 : _c.value) || '';
|
|
2555
2503
|
const date = ((_d = values.find((o) => o.control === dateControl)) === null || _d === void 0 ? void 0 : _d.value) || '';
|
|
@@ -2595,11 +2543,11 @@ const foundNodeFrisoForm = (listNode) => {
|
|
|
2595
2543
|
var _a, _b, _c, _d, _e, _f;
|
|
2596
2544
|
const node = n;
|
|
2597
2545
|
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 ===
|
|
2598
|
-
index$
|
|
2546
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP] ||
|
|
2599
2547
|
o.control ===
|
|
2600
|
-
index$
|
|
2548
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE])) === null || _c === void 0 ? void 0 : _c.value) || '';
|
|
2601
2549
|
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 ===
|
|
2602
|
-
index$
|
|
2550
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE])) === null || _f === void 0 ? void 0 : _f.value) || '';
|
|
2603
2551
|
if (phone && date) {
|
|
2604
2552
|
foundPhone = phone;
|
|
2605
2553
|
foundDate = date;
|
|
@@ -2638,7 +2586,7 @@ const Container$r = ({ intent }) => {
|
|
|
2638
2586
|
const trackingMainButton = React.useMemo(() => {
|
|
2639
2587
|
if (!intent.url ||
|
|
2640
2588
|
!intent.label ||
|
|
2641
|
-
(intent === null || intent === void 0 ? void 0 : intent.type) !== index$
|
|
2589
|
+
(intent === null || intent === void 0 ? void 0 : intent.type) !== index$3.NodeIntentType.BOT_MAIN_BUTTON)
|
|
2642
2590
|
return {};
|
|
2643
2591
|
return {
|
|
2644
2592
|
'data-event-category': 'Service Connection',
|
|
@@ -2650,7 +2598,7 @@ const Container$r = ({ intent }) => {
|
|
|
2650
2598
|
return null;
|
|
2651
2599
|
const isShowDownloadIcon = (_a = intent.label) === null || _a === void 0 ? void 0 : _a.startsWith(':download:');
|
|
2652
2600
|
return (React__default["default"].createElement(StyledWrap$j, null,
|
|
2653
|
-
React__default["default"].createElement(index$
|
|
2601
|
+
React__default["default"].createElement(index$5.Button, Object.assign({ size: "md", color: "primary", onClick: handleOnClick }, trackingMainButton, { styles: {
|
|
2654
2602
|
root: {
|
|
2655
2603
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
2656
2604
|
'&:hover': {
|
|
@@ -2683,20 +2631,20 @@ Container$q.displayName = 'SubotInlineIntentBotImage';
|
|
|
2683
2631
|
|
|
2684
2632
|
const Container$p = ({ intent, indexNumber }) => {
|
|
2685
2633
|
const { listNodes } = React.useContext(SubotInlineContext$1);
|
|
2686
|
-
const isShowLabel = ![index$
|
|
2634
|
+
const isShowLabel = ![index$3.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2687
2635
|
const isText = [
|
|
2688
|
-
index$
|
|
2689
|
-
index$
|
|
2636
|
+
index$3.NodeIntentType.BOT_TEXT,
|
|
2637
|
+
index$3.NodeIntentType.BOT_MAIN_TITLE,
|
|
2690
2638
|
].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2691
2639
|
const isBtn = [
|
|
2692
|
-
index$
|
|
2693
|
-
index$
|
|
2640
|
+
index$3.NodeIntentType.BOT_BUTTON,
|
|
2641
|
+
index$3.NodeIntentType.BOT_RECALCULATE,
|
|
2694
2642
|
].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2695
2643
|
const isImageNode = [
|
|
2696
|
-
index$
|
|
2697
|
-
index$
|
|
2644
|
+
index$3.NodeIntentType.BOT_IMAGE,
|
|
2645
|
+
index$3.NodeIntentType.BOT_MAIN_IMAGE,
|
|
2698
2646
|
].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
2699
|
-
const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) === index$
|
|
2647
|
+
const isMainTitle = (intent === null || intent === void 0 ? void 0 : intent.type) === index$3.NodeIntentType.BOT_MAIN_TITLE;
|
|
2700
2648
|
if (isBtn)
|
|
2701
2649
|
return React__default["default"].createElement(Container$r, { intent: intent });
|
|
2702
2650
|
if (!intent) {
|
|
@@ -2871,11 +2819,11 @@ function useGetEncodedGaId() {
|
|
|
2871
2819
|
const [encodedGaId, setEncodedGaId] = React.useState('');
|
|
2872
2820
|
const [gaId, setGaId] = React.useState('');
|
|
2873
2821
|
React.useEffect(() => {
|
|
2874
|
-
if (!Cookies__default["default"].get(index$
|
|
2822
|
+
if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
|
|
2875
2823
|
index$1.checkUntilFinished({
|
|
2876
|
-
condition: () => Boolean(Cookies__default["default"].get(index$
|
|
2824
|
+
condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
|
|
2877
2825
|
finished: () => {
|
|
2878
|
-
const gaClientId = Cookies__default["default"].get(index$
|
|
2826
|
+
const gaClientId = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
|
|
2879
2827
|
if (gaClientId) {
|
|
2880
2828
|
const base64Encoded = btoa(gaClientId);
|
|
2881
2829
|
setEncodedGaId(base64Encoded);
|
|
@@ -2886,7 +2834,7 @@ function useGetEncodedGaId() {
|
|
|
2886
2834
|
});
|
|
2887
2835
|
}
|
|
2888
2836
|
else {
|
|
2889
|
-
const gaClientId = Cookies__default["default"].get(index$
|
|
2837
|
+
const gaClientId = Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE);
|
|
2890
2838
|
if (gaClientId) {
|
|
2891
2839
|
const base64Encoded = btoa(gaClientId);
|
|
2892
2840
|
setEncodedGaId(base64Encoded);
|
|
@@ -3027,7 +2975,7 @@ const Container$l = ({ intent }) => {
|
|
|
3027
2975
|
const disclaimerText = (_a = listServices[0]) === null || _a === void 0 ? void 0 : _a.disclaimer;
|
|
3028
2976
|
const sectionTitle = (_b = listServices[0]) === null || _b === void 0 ? void 0 : _b.sectionTitle;
|
|
3029
2977
|
return (React__default["default"].createElement(StyledWrap$g, null,
|
|
3030
|
-
React__default["default"].createElement(index$
|
|
2978
|
+
React__default["default"].createElement(index$7.Text, { size: "lg", weight: "semiBold", className: "si-title", color: "var(--subot-inline-text-color, #262626)" }, ((_c = sectionTitle === null || sectionTitle === void 0 ? void 0 : sectionTitle.trim) === null || _c === void 0 ? void 0 : _c.call(sectionTitle)) ||
|
|
3031
2979
|
f({
|
|
3032
2980
|
id: 'tools.suggestedServices',
|
|
3033
2981
|
defaultMessage: 'Suggested services',
|
|
@@ -3036,7 +2984,7 @@ const Container$l = ({ intent }) => {
|
|
|
3036
2984
|
return (React__default["default"].createElement("div", { onClick: () => handleOnClick(service), key: index, className: "image-wrapper", role: "presentation", "data-event-category": "Service Connection", "data-event-action": "Risk Screener Result Recommended Services", "data-event-label": index$1.formatUrlWithEncrypedGa((service === null || service === void 0 ? void 0 : service.url) || '', encodedGaId) },
|
|
3037
2985
|
React__default["default"].createElement(core.Box, { className: "aspect-square" },
|
|
3038
2986
|
React__default["default"].createElement("img", { loading: "lazy", src: service.feature, alt: service.feature, key: index })),
|
|
3039
|
-
service.title && (React__default["default"].createElement(index$
|
|
2987
|
+
service.title && (React__default["default"].createElement(index$7.Text, { size: "p2", className: "si-service-title", color: "var(--subot-inline-text-color, #262626)" }, service.title))));
|
|
3040
2988
|
})),
|
|
3041
2989
|
disclaimerText && React__default["default"].createElement(Container$m, { text: disclaimerText })));
|
|
3042
2990
|
};
|
|
@@ -3061,7 +3009,7 @@ const Container$k = ({ intent }) => {
|
|
|
3061
3009
|
if (!(intent === null || intent === void 0 ? void 0 : intent.label)) {
|
|
3062
3010
|
return null;
|
|
3063
3011
|
}
|
|
3064
|
-
const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) === index$
|
|
3012
|
+
const isMainBody = (intent === null || intent === void 0 ? void 0 : intent.type) === index$3.NodeIntentType.BOT_MAIN_BODY;
|
|
3065
3013
|
return (React__default["default"].createElement(StyledWrap$e, { className: "si-bot-text" },
|
|
3066
3014
|
React__default["default"].createElement(Markdown, null, isMainBody
|
|
3067
3015
|
? replaceTextWithVariables(intent.label, listNodes)
|
|
@@ -3177,30 +3125,30 @@ const Container$i = ({ intent, }) => {
|
|
|
3177
3125
|
Container$i.displayName = 'SubotInlineIntentUrl';
|
|
3178
3126
|
|
|
3179
3127
|
const SubotInlineIntentBaseTarget = {
|
|
3180
|
-
[index$
|
|
3181
|
-
[index$
|
|
3182
|
-
[index$
|
|
3183
|
-
[index$
|
|
3128
|
+
[index$3.NodeIntentType.BOT_TEXT]: Container$k,
|
|
3129
|
+
[index$3.NodeIntentType.BOT_IMAGE]: Container$q,
|
|
3130
|
+
[index$3.NodeIntentType.BOT_BUTTON]: Container$r,
|
|
3131
|
+
[index$3.NodeIntentType.BOT_URL]: Container$i,
|
|
3184
3132
|
// In the revamp UI, recalculate as a normal button
|
|
3185
|
-
[index$
|
|
3186
|
-
[index$
|
|
3187
|
-
[index$
|
|
3188
|
-
[index$
|
|
3189
|
-
[index$
|
|
3190
|
-
[index$
|
|
3191
|
-
[index$
|
|
3133
|
+
[index$3.NodeIntentType.BOT_RECALCULATE]: Container$r,
|
|
3134
|
+
[index$3.NodeIntentType.BOT_MAIN_TITLE]: Container$p,
|
|
3135
|
+
[index$3.NodeIntentType.BOT_MAIN_IMAGE]: Container$q,
|
|
3136
|
+
[index$3.NodeIntentType.BOT_MAIN_BODY]: Container$k,
|
|
3137
|
+
[index$3.NodeIntentType.BOT_MAIN_BUTTON]: Container$r,
|
|
3138
|
+
[index$3.NodeIntentType.BOT_SUB_TITLE]: Container$k,
|
|
3139
|
+
[index$3.NodeIntentType.BOT_SUB_BODY]: Container$k,
|
|
3192
3140
|
// [NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
|
|
3193
3141
|
// [NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
|
|
3194
3142
|
// [NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
|
|
3195
|
-
[index$
|
|
3196
|
-
[index$
|
|
3197
|
-
[index$
|
|
3198
|
-
[index$
|
|
3199
|
-
[index$
|
|
3200
|
-
[index$
|
|
3201
|
-
[index$
|
|
3143
|
+
[index$3.NodeIntentType.BOT_RELATED_ARTICLE]: Container$n,
|
|
3144
|
+
[index$3.NodeIntentType.THANK_YOU_IMAGE]: Container$q,
|
|
3145
|
+
[index$3.NodeIntentType.THANK_YOU_TITLE]: Container$k,
|
|
3146
|
+
[index$3.NodeIntentType.THANK_YOU_BODY]: Container$k,
|
|
3147
|
+
[index$3.NodeIntentType.BOT_SUGGESTED_SERVICE]: Container$l,
|
|
3148
|
+
[index$3.NodeIntentType.BOT_BOOKING]: Container$r,
|
|
3149
|
+
[index$3.NodeIntentType.BOT_EVENT_SUBMISSION]: Container$o,
|
|
3202
3150
|
/** intents fake for sso block */
|
|
3203
|
-
[index$
|
|
3151
|
+
[index$3.NodeIntentType.SSO_INTENT]: Container$j,
|
|
3204
3152
|
};
|
|
3205
3153
|
const SubotInlineIntentBase$1 = new Proxy(SubotInlineIntentBaseTarget, {
|
|
3206
3154
|
get(_, prop) {
|
|
@@ -3216,13 +3164,13 @@ const SubotInlineIntentBase$1 = new Proxy(SubotInlineIntentBaseTarget, {
|
|
|
3216
3164
|
});
|
|
3217
3165
|
|
|
3218
3166
|
const excludeIntents = [
|
|
3219
|
-
index$
|
|
3220
|
-
index$
|
|
3167
|
+
index$3.NodeIntentType.BOT_SUBMISSION,
|
|
3168
|
+
index$3.NodeIntentType.BOT_BACKGROUND_IMAGE,
|
|
3221
3169
|
];
|
|
3222
3170
|
const Container$h = ({ intents: intentsProp, indexNumber, }) => {
|
|
3223
3171
|
const filteredIntents = intentsProp.filter((intent) => !excludeIntents.includes(intent.type || ''));
|
|
3224
|
-
const intentTitle = filteredIntents.find((intent) => intent.type === index$
|
|
3225
|
-
const intents = filteredIntents.filter((intent) => intent.type !== index$
|
|
3172
|
+
const intentTitle = filteredIntents.find((intent) => intent.type === index$3.NodeIntentType.BOT_MAIN_TITLE);
|
|
3173
|
+
const intents = filteredIntents.filter((intent) => intent.type !== index$3.NodeIntentType.BOT_MAIN_TITLE);
|
|
3226
3174
|
return (React__default["default"].createElement(StyledWrap$l, { "data-intent-count": intents.length + 1 },
|
|
3227
3175
|
intentTitle && (React__default["default"].createElement(Container$p, { intent: intentTitle, indexNumber: indexNumber })),
|
|
3228
3176
|
!!intents.length && (React__default["default"].createElement("div", { className: "si-intent-list" }, intents.map((intent) => {
|
|
@@ -3472,41 +3420,41 @@ const Container$f = ({ node }) => {
|
|
|
3472
3420
|
let botSubmissionIntent = undefined;
|
|
3473
3421
|
intentsProps.forEach((intent) => {
|
|
3474
3422
|
switch (intent === null || intent === void 0 ? void 0 : intent.type) {
|
|
3475
|
-
case index$
|
|
3423
|
+
case index$3.NodeIntentType.BOT_MAIN_IMAGE:
|
|
3476
3424
|
mainIntents.push(intent);
|
|
3477
3425
|
break;
|
|
3478
|
-
case index$
|
|
3426
|
+
case index$3.NodeIntentType.BOT_MAIN_TITLE:
|
|
3479
3427
|
mainIntents.push(intent);
|
|
3480
3428
|
break;
|
|
3481
|
-
case index$
|
|
3429
|
+
case index$3.NodeIntentType.BOT_MAIN_BODY:
|
|
3482
3430
|
mainIntents.push(intent);
|
|
3483
3431
|
break;
|
|
3484
|
-
case index$
|
|
3432
|
+
case index$3.NodeIntentType.BOT_SUGGESTED_SERVICE:
|
|
3485
3433
|
suggestedServiceIntents.push(intent);
|
|
3486
3434
|
break;
|
|
3487
|
-
case index$
|
|
3435
|
+
case index$3.NodeIntentType.BOT_MAIN_BUTTON:
|
|
3488
3436
|
mainButtonIntents.push(intent);
|
|
3489
3437
|
break;
|
|
3490
|
-
case index$
|
|
3438
|
+
case index$3.NodeIntentType.BOT_BOOKING:
|
|
3491
3439
|
bookingButtonIntents.push(intent);
|
|
3492
3440
|
break;
|
|
3493
|
-
case index$
|
|
3441
|
+
case index$3.NodeIntentType.BOT_RECALCULATE:
|
|
3494
3442
|
// mainIntents.push(intent)
|
|
3495
3443
|
// TODO: Do not apply. Inline Revamp has "Start Over" btn already
|
|
3496
3444
|
break;
|
|
3497
|
-
case index$
|
|
3445
|
+
case index$3.NodeIntentType.BOT_SUB_TITLE:
|
|
3498
3446
|
subIntents.push(intent);
|
|
3499
3447
|
break;
|
|
3500
|
-
case index$
|
|
3448
|
+
case index$3.NodeIntentType.BOT_SUB_BODY:
|
|
3501
3449
|
subIntents.push(intent);
|
|
3502
3450
|
break;
|
|
3503
|
-
case index$
|
|
3451
|
+
case index$3.NodeIntentType.BOT_RELATED_ARTICLE:
|
|
3504
3452
|
relatedArticleIntents.push(intent);
|
|
3505
3453
|
break;
|
|
3506
|
-
case index$
|
|
3454
|
+
case index$3.NodeIntentType.BOT_RISK_SCREEN:
|
|
3507
3455
|
screenerIntents.push(intent);
|
|
3508
3456
|
break;
|
|
3509
|
-
case index$
|
|
3457
|
+
case index$3.NodeIntentType.BOT_SUBMISSION:
|
|
3510
3458
|
botSubmissionIntent = intent;
|
|
3511
3459
|
break;
|
|
3512
3460
|
}
|
|
@@ -3552,7 +3500,7 @@ const Container$f = ({ node }) => {
|
|
|
3552
3500
|
return NodeIntent && React__default["default"].createElement(NodeIntent, { key: intent.id, intent: intent });
|
|
3553
3501
|
}))),
|
|
3554
3502
|
(relatedArticleIntents === null || relatedArticleIntents === void 0 ? void 0 : relatedArticleIntents.length) > 0 && (React__default["default"].createElement("div", { style: { marginTop: 24 } },
|
|
3555
|
-
React__default["default"].createElement(index$
|
|
3503
|
+
React__default["default"].createElement(index$7.Text, { size: "lg", weight: "semiBold", color: "var(--subot-inline-text-color, #262626)" }, f({
|
|
3556
3504
|
id: 'articlePage.relatedPostsSectionTitle',
|
|
3557
3505
|
defaultMessage: 'Related Articles',
|
|
3558
3506
|
})),
|
|
@@ -3577,7 +3525,7 @@ const Container$e = ({ node }) => {
|
|
|
3577
3525
|
}, []);
|
|
3578
3526
|
const resultButton = React.useMemo(() => {
|
|
3579
3527
|
var _a;
|
|
3580
|
-
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$
|
|
3528
|
+
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RESULT_BUTTON);
|
|
3581
3529
|
if (_resultButton)
|
|
3582
3530
|
return _resultButton;
|
|
3583
3531
|
return null;
|
|
@@ -3591,7 +3539,7 @@ const Container$e = ({ node }) => {
|
|
|
3591
3539
|
return (React__default["default"].createElement(StyledWrap$b, { id: "si-node-final-thank-you" },
|
|
3592
3540
|
React__default["default"].createElement(Container$h, { intents: node.intents || [] }),
|
|
3593
3541
|
resultButton && (React__default["default"].createElement("div", { className: "si-final-thank-action" },
|
|
3594
|
-
React__default["default"].createElement(index$
|
|
3542
|
+
React__default["default"].createElement(index$5.Button, { size: "md", onClick: handleOnNext }, resultButton.label)))));
|
|
3595
3543
|
};
|
|
3596
3544
|
Container$e.displayName = 'SubotinlineNodeFinal';
|
|
3597
3545
|
|
|
@@ -4301,7 +4249,7 @@ function GoogleAddressField({ action, formError, control, initValue, onChange, }
|
|
|
4301
4249
|
}, render: (props) => {
|
|
4302
4250
|
const { address = '' } = (props.field.value || {});
|
|
4303
4251
|
console.log('props', props);
|
|
4304
|
-
return (React__default["default"].createElement(index$
|
|
4252
|
+
return (React__default["default"].createElement(index$8.Select, { data: options, icon: React__default["default"].createElement(Location, null), itemComponent: SelectItem,
|
|
4305
4253
|
// Always display the suggestions
|
|
4306
4254
|
filter: () => true, searchable: true, className: classNames__default["default"]({
|
|
4307
4255
|
isEmpty: options.length === 0 ||
|
|
@@ -4809,57 +4757,57 @@ const StyleWrapperFullAddress = styled__default["default"].div `
|
|
|
4809
4757
|
`;
|
|
4810
4758
|
|
|
4811
4759
|
const getActionEmail = (actions) => {
|
|
4812
|
-
return actions.find(({ type }) => type === index$
|
|
4760
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_EMAIL);
|
|
4813
4761
|
};
|
|
4814
4762
|
const getActionName = (actions) => {
|
|
4815
|
-
return actions.find(({ type }) => type === index$
|
|
4763
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_NAME);
|
|
4816
4764
|
};
|
|
4817
4765
|
const getActionPhone = (actions) => {
|
|
4818
|
-
return actions.find(({ type }) => type === index$
|
|
4766
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_PHONE);
|
|
4819
4767
|
};
|
|
4820
4768
|
const getActionOtp = (actions) => {
|
|
4821
|
-
return actions.find(({ type }) => type === index$
|
|
4769
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_OTP);
|
|
4822
4770
|
};
|
|
4823
4771
|
const getActionOtpWhatsApp = (actions) => {
|
|
4824
|
-
return actions.find(({ type }) => type === index$
|
|
4772
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_WHATSAPP);
|
|
4825
4773
|
};
|
|
4826
4774
|
const getActionConfirm = (actions) => {
|
|
4827
|
-
return actions.find(({ type }) => type === index$
|
|
4775
|
+
return actions.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_CONFIRM);
|
|
4828
4776
|
};
|
|
4829
4777
|
const isControlOtp = (control) => {
|
|
4830
|
-
return (control === index$
|
|
4831
|
-
control === index$
|
|
4778
|
+
return (control === index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP] ||
|
|
4779
|
+
control === index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_WHATSAPP]);
|
|
4832
4780
|
};
|
|
4833
4781
|
const isActionTypeOtp = (type) => {
|
|
4834
|
-
return (type === index$
|
|
4835
|
-
type === index$
|
|
4782
|
+
return (type === index$3.NodeActionType.USER_SUBMIT_OTP ||
|
|
4783
|
+
type === index$3.NodeActionType.USER_SUBMIT_WHATSAPP);
|
|
4836
4784
|
};
|
|
4837
4785
|
const getTranslateVerifiedOtpMessages = () => {
|
|
4838
4786
|
const phoneWasVerifiedMessage = new Map();
|
|
4839
|
-
phoneWasVerifiedMessage.set(index$
|
|
4840
|
-
phoneWasVerifiedMessage.set(index$
|
|
4841
|
-
phoneWasVerifiedMessage.set(index$
|
|
4842
|
-
phoneWasVerifiedMessage.set(index$
|
|
4843
|
-
phoneWasVerifiedMessage.set(index$
|
|
4844
|
-
phoneWasVerifiedMessage.set(index$
|
|
4845
|
-
phoneWasVerifiedMessage.set(index$
|
|
4846
|
-
phoneWasVerifiedMessage.set(index$
|
|
4847
|
-
phoneWasVerifiedMessage.set(index$
|
|
4848
|
-
phoneWasVerifiedMessage.set(index$
|
|
4787
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Vietnam, 'Số điện thoại này đã được xác minh.');
|
|
4788
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.PhilippinesEnglish, 'This phone number has been verified.');
|
|
4789
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Cambodia, 'លេខទូរស័ព្ទនេះត្រូវបានផ្ទៀងផ្ទាត់។');
|
|
4790
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.India, 'इस फ़ोन नंबर की पुष्टि कर दी गई है.');
|
|
4791
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Indonesia, 'Nomor telepon ini telah diverifikasi.');
|
|
4792
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Malaysia, 'Nombor telefon ini telah disahkan.');
|
|
4793
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Myanmar, 'ဤဖုန်းနံပါတ်ကို စစ်ဆေးပြီးပါပြီ။');
|
|
4794
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Taiwan, '該電話號碼已經過驗證。');
|
|
4795
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.Thailand, 'หมายเลขโทรศัพท์นี้ได้รับการตรวจสอบแล้ว');
|
|
4796
|
+
phoneWasVerifiedMessage.set(index$3.LOCALE.PhilippinesTagalog, 'Na-verify na ang numero ng teleponong ito.');
|
|
4849
4797
|
return phoneWasVerifiedMessage;
|
|
4850
4798
|
};
|
|
4851
4799
|
const getTransPleaseVerifiedOtp = () => {
|
|
4852
4800
|
const pleaseVerifiedOtp = new Map();
|
|
4853
|
-
pleaseVerifiedOtp.set(index$
|
|
4854
|
-
pleaseVerifiedOtp.set(index$
|
|
4855
|
-
pleaseVerifiedOtp.set(index$
|
|
4856
|
-
pleaseVerifiedOtp.set(index$
|
|
4857
|
-
pleaseVerifiedOtp.set(index$
|
|
4858
|
-
pleaseVerifiedOtp.set(index$
|
|
4859
|
-
pleaseVerifiedOtp.set(index$
|
|
4860
|
-
pleaseVerifiedOtp.set(index$
|
|
4861
|
-
pleaseVerifiedOtp.set(index$
|
|
4862
|
-
pleaseVerifiedOtp.set(index$
|
|
4801
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Vietnam, 'Vui lòng xác minh số điện thoại');
|
|
4802
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.PhilippinesEnglish, 'Please verify your phone number');
|
|
4803
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Cambodia, 'សូមផ្ទៀងផ្ទាត់លេខទូរស័ព្ទរបស់អ្នក។');
|
|
4804
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.India, 'कृपया अपना फ़ोन नंबर सत्यापित करें');
|
|
4805
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Indonesia, 'Harap verifikasi nomor telepon AndaNomor telepon ini telah diverifikasi.');
|
|
4806
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Malaysia, 'Sila sahkan nombor telefon anda');
|
|
4807
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Myanmar, 'သင့်ဖုန်းနံပါတ်ကို အတည်ပြုပါ။');
|
|
4808
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Taiwan, '請驗證您的電話號碼');
|
|
4809
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.Thailand, 'กรุณาตรวจสอบหมายเลขโทรศัพท์ของคุณ');
|
|
4810
|
+
pleaseVerifiedOtp.set(index$3.LOCALE.PhilippinesTagalog, 'Paki-verify ang iyong numero ng telepono');
|
|
4863
4811
|
return pleaseVerifiedOtp;
|
|
4864
4812
|
};
|
|
4865
4813
|
const validateDateField = (value, isSubmitting, f, cb) => {
|
|
@@ -5138,10 +5086,10 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5138
5086
|
}
|
|
5139
5087
|
data[d.key] = d.value;
|
|
5140
5088
|
if ([
|
|
5141
|
-
index$
|
|
5142
|
-
index$
|
|
5089
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DATE],
|
|
5090
|
+
index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_DOB],
|
|
5143
5091
|
].includes(d.control)) {
|
|
5144
|
-
data[d.key] = dayjs__default["default"](d.value, index$
|
|
5092
|
+
data[d.key] = dayjs__default["default"](d.value, index$4.API_DATE_FORMAT).toDate();
|
|
5145
5093
|
}
|
|
5146
5094
|
});
|
|
5147
5095
|
if (data['otpPhoneNumber']) {
|
|
@@ -5186,39 +5134,39 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5186
5134
|
}, [botId, nodeId, JSON.stringify(trackingSubmitBtn)]);
|
|
5187
5135
|
const firstActionAddressIndex = React.useMemo(() => {
|
|
5188
5136
|
return actions.findIndex((action) => {
|
|
5189
|
-
return index$
|
|
5137
|
+
return index$3.FULL_KEY_ADDRESS.includes(action.type);
|
|
5190
5138
|
});
|
|
5191
5139
|
}, [actions]);
|
|
5192
5140
|
const actionAddress = React.useMemo(() => {
|
|
5193
5141
|
return actions.find((action) => {
|
|
5194
|
-
return index$
|
|
5142
|
+
return index$3.NodeActionType.USER_SUBMIT_ADDRESS === action.type;
|
|
5195
5143
|
});
|
|
5196
5144
|
}, [actions]);
|
|
5197
5145
|
const actionAddressLever1 = React.useMemo(() => {
|
|
5198
5146
|
return actions.find((action) => {
|
|
5199
|
-
return index$
|
|
5147
|
+
return index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE === action.type;
|
|
5200
5148
|
});
|
|
5201
5149
|
}, [actions]);
|
|
5202
5150
|
const actionAddressLever2 = React.useMemo(() => {
|
|
5203
5151
|
return actions.find((action) => {
|
|
5204
|
-
return index$
|
|
5152
|
+
return index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT === action.type;
|
|
5205
5153
|
});
|
|
5206
5154
|
}, [actions]);
|
|
5207
5155
|
const actionAddressLever3 = React.useMemo(() => {
|
|
5208
5156
|
return actions.find((action) => {
|
|
5209
|
-
return index$
|
|
5157
|
+
return index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE === action.type;
|
|
5210
5158
|
});
|
|
5211
5159
|
}, [actions]);
|
|
5212
5160
|
const { labelInputDate } = React.useMemo(() => {
|
|
5213
|
-
const { dateFormat } = (index$
|
|
5161
|
+
const { dateFormat } = (index$4.ISO_FORMAT === null || index$4.ISO_FORMAT === void 0 ? void 0 : index$4.ISO_FORMAT[locale]) || index$4.ISO_FORMAT['vi-VN'];
|
|
5214
5162
|
return {
|
|
5215
5163
|
dateFormat,
|
|
5216
5164
|
labelInputDate: dateFormat
|
|
5217
5165
|
.split('/')
|
|
5218
|
-
.map((key) => f(index$
|
|
5166
|
+
.map((key) => f(index$3.COMMON_DATE_TRANSLATE_KEY === null || index$3.COMMON_DATE_TRANSLATE_KEY === void 0 ? void 0 : index$3.COMMON_DATE_TRANSLATE_KEY[key])),
|
|
5219
5167
|
};
|
|
5220
5168
|
}, [locale, f]);
|
|
5221
|
-
const inputType = index$
|
|
5169
|
+
const inputType = index$3.ELEMENT_CONTROL_INPUT_TYPE;
|
|
5222
5170
|
const { register, handleSubmit, watch, formState: { errors, isSubmitting }, control, setValue, setError, clearErrors, getValues, trigger, } = reactHookForm.useForm({ defaultValues: defaultFormValues });
|
|
5223
5171
|
const setSubmitData = (data) => {
|
|
5224
5172
|
const submitMeta = [];
|
|
@@ -5226,9 +5174,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5226
5174
|
if (!action.key) {
|
|
5227
5175
|
continue;
|
|
5228
5176
|
}
|
|
5229
|
-
if (action.type !== index$
|
|
5230
|
-
action.type !== index$
|
|
5231
|
-
if (action.type === index$
|
|
5177
|
+
if (action.type !== index$3.NodeActionType.USER_SUBMIT_CONFIRM &&
|
|
5178
|
+
action.type !== index$3.NodeActionType.USER_SUBMIT_TERMS) {
|
|
5179
|
+
if (action.type === index$3.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS) {
|
|
5232
5180
|
/** If it's google api address, admin cannot add address province/district/commune and address freetext */
|
|
5233
5181
|
const googleMapData = data[action.key];
|
|
5234
5182
|
googleMapAddressKeys.forEach((addressKey) => {
|
|
@@ -5241,9 +5189,9 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5241
5189
|
}
|
|
5242
5190
|
});
|
|
5243
5191
|
}
|
|
5244
|
-
else if (action.type === index$
|
|
5245
|
-
action.type === index$
|
|
5246
|
-
action.type === index$
|
|
5192
|
+
else if (action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_PROVINCE ||
|
|
5193
|
+
action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_DISTRICT ||
|
|
5194
|
+
action.type === index$3.NodeActionType.USER_SUBMIT_ADDRESS_COMMUNE) {
|
|
5247
5195
|
submitMeta.push({
|
|
5248
5196
|
key: action.key,
|
|
5249
5197
|
control: inputType[action.type] || '',
|
|
@@ -5251,22 +5199,22 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5251
5199
|
value: data[action.key].label || '',
|
|
5252
5200
|
});
|
|
5253
5201
|
}
|
|
5254
|
-
else if (action.type === index$
|
|
5255
|
-
action.type === index$
|
|
5202
|
+
else if (action.type === index$3.NodeActionType.USER_SUBMIT_DOB ||
|
|
5203
|
+
action.type === index$3.NodeActionType.USER_SUBMIT_DATE) {
|
|
5256
5204
|
const dobStr = (data[action.key] || '');
|
|
5257
5205
|
const dayInJS = dayjs__default["default"](dobStr);
|
|
5258
5206
|
if (dayInJS.isValid()) {
|
|
5259
5207
|
submitMeta.push({
|
|
5260
5208
|
key: action.key,
|
|
5261
5209
|
control: inputType[action.type] || '',
|
|
5262
|
-
value: dayInJS.format(index$
|
|
5210
|
+
value: dayInJS.format(index$4.API_DATE_FORMAT),
|
|
5263
5211
|
});
|
|
5264
5212
|
}
|
|
5265
5213
|
}
|
|
5266
5214
|
else if (isActionTypeOtp(action.type)) {
|
|
5267
5215
|
submitMeta.push({
|
|
5268
5216
|
key: action.key,
|
|
5269
|
-
control: index$
|
|
5217
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_OTP],
|
|
5270
5218
|
value: data.otpPhoneNumber,
|
|
5271
5219
|
});
|
|
5272
5220
|
}
|
|
@@ -5292,7 +5240,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5292
5240
|
}
|
|
5293
5241
|
}
|
|
5294
5242
|
}
|
|
5295
|
-
const actionArr = actions.filter((action) => action.type === index$
|
|
5243
|
+
const actionArr = actions.filter((action) => action.type === index$3.NodeActionType.USER_SUBMIT_SEND);
|
|
5296
5244
|
const submitData = {
|
|
5297
5245
|
action_id: actionArr[0].id,
|
|
5298
5246
|
action_value: actionArr[0].key,
|
|
@@ -5354,7 +5302,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5354
5302
|
}
|
|
5355
5303
|
setIsLoading(true);
|
|
5356
5304
|
try {
|
|
5357
|
-
const result = yield callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
|
|
5305
|
+
const result = yield index$2.callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
|
|
5358
5306
|
? PATHS$1.POST_SEND_OTP_WHATSAPP
|
|
5359
5307
|
: PATHS$1.POST_SEND_OTP), actionOtpWhatsApp ? 'whatsapp_otp' : 'sms_otp', actionOtpWhatsApp
|
|
5360
5308
|
? {
|
|
@@ -5366,13 +5314,13 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5366
5314
|
});
|
|
5367
5315
|
setIsLoading(false);
|
|
5368
5316
|
const { _status, _errorCode } = result;
|
|
5369
|
-
if (isSubotCaptchaForbidden(result)) {
|
|
5317
|
+
if (index$2.isSubotCaptchaForbidden(result)) {
|
|
5370
5318
|
if (countRef.current) {
|
|
5371
5319
|
countRef.current.cancel();
|
|
5372
5320
|
}
|
|
5373
5321
|
pushNotifications({
|
|
5374
5322
|
title: '',
|
|
5375
|
-
message: f(SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
5323
|
+
message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
5376
5324
|
type: 'warning',
|
|
5377
5325
|
});
|
|
5378
5326
|
return;
|
|
@@ -5398,7 +5346,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5398
5346
|
title: '',
|
|
5399
5347
|
message: f(OTP_VERIFIED_MSG_CODE === null || OTP_VERIFIED_MSG_CODE === void 0 ? void 0 : OTP_VERIFIED_MSG_CODE[_errorCode]) ||
|
|
5400
5348
|
messages.get(locale) ||
|
|
5401
|
-
messages.get(index$
|
|
5349
|
+
messages.get(index$3.LOCALE.PhilippinesEnglish),
|
|
5402
5350
|
type: 'success',
|
|
5403
5351
|
});
|
|
5404
5352
|
clearErrors(((_a = getActionOtp(actions)) === null || _a === void 0 ? void 0 : _a.key) || ((_b = getActionOtpWhatsApp(actions)) === null || _b === void 0 ? void 0 : _b.key));
|
|
@@ -5441,7 +5389,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5441
5389
|
const parsedPhone = PhoneInputBase.parsePhoneNumber(data.otpPhoneNumber);
|
|
5442
5390
|
if (action.key && parsedPhone) {
|
|
5443
5391
|
try {
|
|
5444
|
-
const result = yield callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
|
|
5392
|
+
const result = yield index$2.callSubotProtectedApi(getSubotApiPath(actionOtpWhatsApp
|
|
5445
5393
|
? PATHS$1.POST_VERIFY_OTP_WHATSAPP
|
|
5446
5394
|
: PATHS$1.POST_VERIFY_OTP), actionOtpWhatsApp ? 'whatsapp_verify' : 'sms_verify', actionOtpWhatsApp
|
|
5447
5395
|
? {
|
|
@@ -5470,8 +5418,8 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5470
5418
|
catch (error) {
|
|
5471
5419
|
const errMessage = JSON.parse(error.message);
|
|
5472
5420
|
const { _errorCode } = errMessage || {};
|
|
5473
|
-
const message = f(isSubotCaptchaForbidden(errMessage)
|
|
5474
|
-
? SUBOT_CAPTCHA_FAILED_MESSAGE
|
|
5421
|
+
const message = f(index$2.isSubotCaptchaForbidden(errMessage)
|
|
5422
|
+
? index$2.SUBOT_CAPTCHA_FAILED_MESSAGE
|
|
5475
5423
|
: OTP_VERIFIED_MSG_CODE === null || OTP_VERIFIED_MSG_CODE === void 0 ? void 0 : OTP_VERIFIED_MSG_CODE[_errorCode]) || f({ id: 'validation.error.validOTP' });
|
|
5476
5424
|
pushNotifications({ title: '', message, type: 'danger' });
|
|
5477
5425
|
setError('otpCode', { type: 'custom', message });
|
|
@@ -5503,7 +5451,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5503
5451
|
required: true,
|
|
5504
5452
|
}, render: (props) => {
|
|
5505
5453
|
var _a;
|
|
5506
|
-
return (React__default["default"].createElement(index$
|
|
5454
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever1.id, options: provinceData, onChange: (val) => {
|
|
5507
5455
|
props.field.onChange(val);
|
|
5508
5456
|
handleSelectedProvince(val);
|
|
5509
5457
|
}, 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'}` }));
|
|
@@ -5519,7 +5467,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5519
5467
|
required: true,
|
|
5520
5468
|
}, render: (props) => {
|
|
5521
5469
|
var _a;
|
|
5522
|
-
return (React__default["default"].createElement(index$
|
|
5470
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever2.id, options: districtData, onChange: (val) => {
|
|
5523
5471
|
props.field.onChange(val);
|
|
5524
5472
|
handleSelectedDistrict(val);
|
|
5525
5473
|
}, 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'}` }));
|
|
@@ -5535,7 +5483,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5535
5483
|
required: true,
|
|
5536
5484
|
}, render: (props) => {
|
|
5537
5485
|
var _a;
|
|
5538
|
-
return (React__default["default"].createElement(index$
|
|
5486
|
+
return (React__default["default"].createElement(index$a.Dropdown, { id: actionAddressLever3.id, options: communeData, onChange: (val) => {
|
|
5539
5487
|
props.field.onChange(val);
|
|
5540
5488
|
}, 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'}` }));
|
|
5541
5489
|
} })),
|
|
@@ -5553,20 +5501,20 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5553
5501
|
return renderFullAddressInput();
|
|
5554
5502
|
}
|
|
5555
5503
|
switch (action.type) {
|
|
5556
|
-
case index$
|
|
5504
|
+
case index$3.NodeActionType.USER_SUBMIT_DROPDOWN:
|
|
5557
5505
|
const options = action.url ? action.url.split('\n') : [];
|
|
5558
5506
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5559
5507
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5560
5508
|
React__default["default"].createElement(reactHookForm.Controller, { key: action.key, control: control, name: action.key, rules: {
|
|
5561
5509
|
required: true,
|
|
5562
5510
|
}, render: ({ field }) => {
|
|
5563
|
-
return (React__default["default"].createElement(index$
|
|
5511
|
+
return (React__default["default"].createElement(index$8.Select, Object.assign({ searchable: true, data: options, placeholder: action.label }, field, { withinPortal: true, zIndex: 1000 })));
|
|
5564
5512
|
} }),
|
|
5565
5513
|
errors[action.key] && (React__default["default"].createElement("p", { className: "error-message" }, f({
|
|
5566
5514
|
id: 'validation.error.requiredField',
|
|
5567
5515
|
defaultMessage: 'This field is required',
|
|
5568
5516
|
})))));
|
|
5569
|
-
case index$
|
|
5517
|
+
case index$3.NodeActionType.USER_SUBMIT_EMAIL:
|
|
5570
5518
|
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,}))$/;
|
|
5571
5519
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5572
5520
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
@@ -5583,7 +5531,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5583
5531
|
id: 'validation.error.validEmail',
|
|
5584
5532
|
defaultMessage: 'Please enter a valid email address.',
|
|
5585
5533
|
})))));
|
|
5586
|
-
case index$
|
|
5534
|
+
case index$3.NodeActionType.USER_SUBMIT_NAME:
|
|
5587
5535
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5588
5536
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5589
5537
|
React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
|
|
@@ -5591,7 +5539,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5591
5539
|
id: 'validation.error.requiredField',
|
|
5592
5540
|
defaultMessage: 'This field is required',
|
|
5593
5541
|
})))));
|
|
5594
|
-
case index$
|
|
5542
|
+
case index$3.NodeActionType.USER_SUBMIT_PHONE:
|
|
5595
5543
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5596
5544
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5597
5545
|
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
@@ -5602,7 +5550,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5602
5550
|
id: 'validation.error.validNumber',
|
|
5603
5551
|
defaultMessage: 'Please enter a valid number.',
|
|
5604
5552
|
})))));
|
|
5605
|
-
case index$
|
|
5553
|
+
case index$3.NodeActionType.USER_SUBMIT_NUMBER:
|
|
5606
5554
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5607
5555
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5608
5556
|
React__default["default"].createElement("input", Object.assign({ type: "number", id: action.id }, register(action.key, { required: true }))),
|
|
@@ -5610,7 +5558,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5610
5558
|
id: 'validation.error.requiredField',
|
|
5611
5559
|
defaultMessage: 'This field is required',
|
|
5612
5560
|
})))));
|
|
5613
|
-
case index$
|
|
5561
|
+
case index$3.NodeActionType.USER_SUBMIT_DATE:
|
|
5614
5562
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5615
5563
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5616
5564
|
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
@@ -5638,7 +5586,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5638
5586
|
}, labelTuples: labelInputDate, locale: locale, error: isError, className: "subot_input subot_input_date" }))),
|
|
5639
5587
|
isError && (React__default["default"].createElement("p", { className: "error-message" }, error === null || error === void 0 ? void 0 : error.message))));
|
|
5640
5588
|
} })));
|
|
5641
|
-
case index$
|
|
5589
|
+
case index$3.NodeActionType.USER_SUBMIT_BMI:
|
|
5642
5590
|
return (React__default["default"].createElement("div", { key: action.id },
|
|
5643
5591
|
React__default["default"].createElement("div", { className: "input-row", key: `${action.id}-height` },
|
|
5644
5592
|
React__default["default"].createElement("label", { htmlFor: `${action.key}-height` }, f({ id: 'home.bmi.input.height', defaultMessage: 'Height' })),
|
|
@@ -5654,7 +5602,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5654
5602
|
id: 'validation.error.requiredField',
|
|
5655
5603
|
defaultMessage: 'This field is required',
|
|
5656
5604
|
}))))));
|
|
5657
|
-
case index$
|
|
5605
|
+
case index$3.NodeActionType.USER_SUBMIT_GENDER:
|
|
5658
5606
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5659
5607
|
React__default["default"].createElement("label", null, action.label),
|
|
5660
5608
|
React__default["default"].createElement("div", { className: "radio-group" },
|
|
@@ -5678,7 +5626,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5678
5626
|
id: 'validation.error.requiredField',
|
|
5679
5627
|
defaultMessage: 'This field is required',
|
|
5680
5628
|
})))));
|
|
5681
|
-
case index$
|
|
5629
|
+
case index$3.NodeActionType.USER_SUBMIT_TEXT:
|
|
5682
5630
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
5683
5631
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
5684
5632
|
React__default["default"].createElement("input", Object.assign({ id: action.id, placeholder: action.label }, register(action.key, { required: true }))),
|
|
@@ -5686,8 +5634,8 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5686
5634
|
id: 'validation.error.requiredField',
|
|
5687
5635
|
defaultMessage: 'This field is required',
|
|
5688
5636
|
})))));
|
|
5689
|
-
case index$
|
|
5690
|
-
case index$
|
|
5637
|
+
case index$3.NodeActionType.USER_SUBMIT_OTP:
|
|
5638
|
+
case index$3.NodeActionType.USER_SUBMIT_WHATSAPP:
|
|
5691
5639
|
return (React__default["default"].createElement("div", null,
|
|
5692
5640
|
React__default["default"].createElement("div", { className: "input-row input-row--otp" },
|
|
5693
5641
|
React__default["default"].createElement("label", { htmlFor: "otpPhoneNumber" }, action.label),
|
|
@@ -5717,7 +5665,7 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5717
5665
|
id: 'validation.error.validNumber',
|
|
5718
5666
|
defaultMessage: 'Please enter a valid number.',
|
|
5719
5667
|
})))),
|
|
5720
|
-
verifiedOTP ? ('') : (React__default["default"].createElement(index$
|
|
5668
|
+
verifiedOTP ? ('') : (React__default["default"].createElement(index$5.Button, Object.assign({ size: "sm", loading: isLoading, disabled: (!isFinishedCountDown && sentOTP) ||
|
|
5721
5669
|
isLoading ||
|
|
5722
5670
|
!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({
|
|
5723
5671
|
id: 'subot.sendOTP.button',
|
|
@@ -5740,13 +5688,13 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5740
5688
|
React__default["default"].createElement("span", { className: "verify-success-label" }, f({
|
|
5741
5689
|
id: 'subot.verifyOTP.success.message',
|
|
5742
5690
|
defaultMessage: 'Verified successful',
|
|
5743
|
-
})))) : (React__default["default"].createElement(index$
|
|
5691
|
+
})))) : (React__default["default"].createElement(index$9.Button, Object.assign({ className: "submit-btn", size: isFormRevamp ? 'md' : 'lg', isLoading: isLoadingVerify, isDisabled: !sentOTP, onClick: (e) => handleVerifyOTP(e, action) }, trackingVerifyOTP), f({
|
|
5744
5692
|
id: 'subot.verifyOTP.button',
|
|
5745
5693
|
defaultMessage: 'Verify OTP',
|
|
5746
5694
|
})))))));
|
|
5747
|
-
case index$
|
|
5695
|
+
case index$3.NodeActionType.USER_SUBMIT_GOOGLE_API_ADDRESS:
|
|
5748
5696
|
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 }));
|
|
5749
|
-
case index$
|
|
5697
|
+
case index$3.NodeActionType.USER_SUBMIT_DOB:
|
|
5750
5698
|
return (React__default["default"].createElement(DOB, { key: action.key, action: action, trigger: trigger, control: control, locale: locale, labelTuples: labelInputDate, isSubmitting: isSubmitting }));
|
|
5751
5699
|
default:
|
|
5752
5700
|
return '';
|
|
@@ -5754,17 +5702,17 @@ const UserInfoForm = ({ className, style, actions, countryCode, callBack, formSu
|
|
|
5754
5702
|
};
|
|
5755
5703
|
const renderFormSubmitAndTerms = (action) => {
|
|
5756
5704
|
switch (action.type) {
|
|
5757
|
-
case index$
|
|
5705
|
+
case index$3.NodeActionType.USER_SUBMIT_CONFIRM:
|
|
5758
5706
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5759
5707
|
React__default["default"].createElement("label", { className: "subot-checkbox" },
|
|
5760
5708
|
React__default["default"].createElement("input", Object.assign({}, register('confirm'), { type: "checkbox", defaultChecked: true, className: "subot-checkbox__input" })),
|
|
5761
5709
|
React__default["default"].createElement("span", { className: "subot-checkbox__label" },
|
|
5762
5710
|
React__default["default"].createElement(Markdown, null, action.label)))));
|
|
5763
|
-
case index$
|
|
5711
|
+
case index$3.NodeActionType.USER_SUBMIT_SEND:
|
|
5764
5712
|
const disabled = hasConfirm ? !confirm : false;
|
|
5765
5713
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
5766
5714
|
React__default["default"].createElement("button", Object.assign({ id: action.id, className: "submit-btn", type: "submit", disabled: disabled }, trackingSubmit, { "data-response-id": action.id }), action.label)));
|
|
5767
|
-
case index$
|
|
5715
|
+
case index$3.NodeActionType.USER_SUBMIT_TERMS:
|
|
5768
5716
|
return (React__default["default"].createElement("div", { className: "form-terms", key: action.id },
|
|
5769
5717
|
React__default["default"].createElement(Markdown, null, action.label)));
|
|
5770
5718
|
default:
|
|
@@ -5795,10 +5743,10 @@ const Container$d = ({ node, indexNumber }) => {
|
|
|
5795
5743
|
checkSyncDataOnFrisoCampaign(listNodes[0], data.form_submit_meta);
|
|
5796
5744
|
const _message = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, params), node._message), data), getCurrentTotalDynamicScore(listNodes, activeId, data.action_id, data.form_submit_meta)), { node_id: node.id });
|
|
5797
5745
|
const res = yield subotInlineMessage$1(_message);
|
|
5798
|
-
if (isSubotCaptchaForbidden(res)) {
|
|
5746
|
+
if (index$2.isSubotCaptchaForbidden(res)) {
|
|
5799
5747
|
pushNotifications({
|
|
5800
5748
|
title: '',
|
|
5801
|
-
message: f(SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
5749
|
+
message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
5802
5750
|
type: 'warning',
|
|
5803
5751
|
});
|
|
5804
5752
|
return;
|
|
@@ -5985,7 +5933,7 @@ const Container$b = ({ action, onChange }) => {
|
|
|
5985
5933
|
const currentUrl = useCurrentUrl();
|
|
5986
5934
|
const { params, activeId } = React.useContext(SubotInlineContext$1);
|
|
5987
5935
|
return (React__default["default"].createElement(StyledWrap$6, null,
|
|
5988
|
-
React__default["default"].createElement(index$
|
|
5936
|
+
React__default["default"].createElement(index$5.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, styles: {
|
|
5989
5937
|
root: {
|
|
5990
5938
|
backgroundColor: 'var(--subot-inline-primary-color) !important',
|
|
5991
5939
|
'&:hover': {
|
|
@@ -6046,8 +5994,8 @@ const Container$a = ({ action, onChange, active, htmlType, formSubmitMeta, }) =>
|
|
|
6046
5994
|
const inputRef = React.useRef(null);
|
|
6047
5995
|
const [otherText, setOtherText] = React.useState('');
|
|
6048
5996
|
const { params } = React.useContext(SubotInlineContext$1);
|
|
6049
|
-
const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6050
|
-
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
5997
|
+
const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
|
|
5998
|
+
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
|
|
6051
5999
|
isActionPollWithOther;
|
|
6052
6000
|
React.useEffect(() => {
|
|
6053
6001
|
var _a, _b;
|
|
@@ -6084,7 +6032,7 @@ const Container$9 = ({ action, onChange, active, htmlType, }) => {
|
|
|
6084
6032
|
if (action && onChange) {
|
|
6085
6033
|
onChange({
|
|
6086
6034
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
6087
|
-
control: index$
|
|
6035
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
6088
6036
|
value: '',
|
|
6089
6037
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
6090
6038
|
});
|
|
@@ -6100,7 +6048,7 @@ const Container$8 = ({ action, onChange, active, htmlType, }) => {
|
|
|
6100
6048
|
if (action && onChange) {
|
|
6101
6049
|
onChange({
|
|
6102
6050
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
6103
|
-
control: index$
|
|
6051
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
6104
6052
|
value: '',
|
|
6105
6053
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
6106
6054
|
});
|
|
@@ -6112,14 +6060,14 @@ Container$8.displayName = 'SubotInlinePollChoiceImage';
|
|
|
6112
6060
|
|
|
6113
6061
|
const SubotInlineActionBaseTarget = {
|
|
6114
6062
|
// 'user-image': SubotInlineActionImageChoice,
|
|
6115
|
-
[index$
|
|
6116
|
-
[index$
|
|
6117
|
-
[index$
|
|
6118
|
-
[index$
|
|
6119
|
-
[index$
|
|
6120
|
-
[index$
|
|
6121
|
-
[index$
|
|
6122
|
-
[index$
|
|
6063
|
+
[index$3.NodeActionType.USER_CHOICE_TEXT]: Container$a,
|
|
6064
|
+
[index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: Container$a,
|
|
6065
|
+
[index$3.NodeActionType.USER_CHOICE_IMAGE]: Container$c,
|
|
6066
|
+
[index$3.NodeActionType.ACTION_SSO_REDIRECT]: Container$b,
|
|
6067
|
+
[index$3.NodeActionType.POLL_CHOICE]: Container$9,
|
|
6068
|
+
[index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: Container$a,
|
|
6069
|
+
[index$3.NodeActionType.POLL_BUTTON]: () => null,
|
|
6070
|
+
[index$3.NodeActionType.POLL_CHOICE_IMAGE]: Container$8,
|
|
6123
6071
|
// [NodeActionType.RATING_STAR]: SubotInlineRatingStar,
|
|
6124
6072
|
// [NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
|
|
6125
6073
|
// [NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
|
|
@@ -6142,13 +6090,13 @@ const SubotInlineActionBase$1 = new Proxy(SubotInlineActionBaseTarget, {
|
|
|
6142
6090
|
},
|
|
6143
6091
|
});
|
|
6144
6092
|
|
|
6145
|
-
const excludeActions = [index$
|
|
6093
|
+
const excludeActions = [index$3.NodeActionType.USER_CHOICE_NEXT];
|
|
6146
6094
|
const Container$7 = ({ actions, value, onChange, htmlType, node_type, formSubmitMeta, }) => {
|
|
6147
|
-
const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type === index$
|
|
6095
|
+
const isPollChoiceImage = React.useMemo(() => !!(actions === null || actions === void 0 ? void 0 : actions.find((act) => act.type === index$3.NodeActionType.POLL_CHOICE_IMAGE)), [actions]);
|
|
6148
6096
|
const className = React.useMemo(() => {
|
|
6149
6097
|
switch (node_type) {
|
|
6150
|
-
case index$
|
|
6151
|
-
case index$
|
|
6098
|
+
case index$3.NodeType.IMAGE:
|
|
6099
|
+
case index$3.NodeType.REACTION:
|
|
6152
6100
|
return 'si-two-columns';
|
|
6153
6101
|
default:
|
|
6154
6102
|
return isPollChoiceImage ? 'si-two-columns' : '';
|
|
@@ -6222,7 +6170,7 @@ const Container$5 = ({ node, indexNumber }) => {
|
|
|
6222
6170
|
}, []);
|
|
6223
6171
|
const submitButton = React.useMemo(() => {
|
|
6224
6172
|
var _a;
|
|
6225
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
6173
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
6226
6174
|
if (_submitButton)
|
|
6227
6175
|
return _submitButton;
|
|
6228
6176
|
return null;
|
|
@@ -6237,8 +6185,8 @@ const Container$5 = ({ node, indexNumber }) => {
|
|
|
6237
6185
|
var _b, _c;
|
|
6238
6186
|
if (action) {
|
|
6239
6187
|
const _value = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, selected_actions: Object.assign({}, value === null || value === void 0 ? void 0 : value.selected_actions) })));
|
|
6240
|
-
if ((action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6241
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6188
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
|
|
6189
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
|
|
6242
6190
|
const isExistedPoll = (_value === null || _value === void 0 ? void 0 : _value.selected_actions) && action.id in _value.selected_actions;
|
|
6243
6191
|
if (isExistedPoll) {
|
|
6244
6192
|
if (formSubmitMeta) {
|
|
@@ -6272,7 +6220,7 @@ const Container$5 = ({ node, indexNumber }) => {
|
|
|
6272
6220
|
}
|
|
6273
6221
|
}
|
|
6274
6222
|
});
|
|
6275
|
-
const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$
|
|
6223
|
+
const actionsRemoveMultipleBtn = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter((a) => a.type !== index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
6276
6224
|
return (React__default["default"].createElement(StyledWrap$3, { id: "si-node-text" },
|
|
6277
6225
|
React__default["default"].createElement(Container$h, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber }),
|
|
6278
6226
|
React__default["default"].createElement(Container$7, { value: activeActions, actions: actionsRemoveMultipleBtn, onChange: handleOnChange, formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
|
|
@@ -6285,13 +6233,13 @@ const useDescriptionPollNode = ({ node }) => {
|
|
|
6285
6233
|
id: 'multiSelectError.required',
|
|
6286
6234
|
defaultMessage: 'You must choose one options',
|
|
6287
6235
|
});
|
|
6288
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
6236
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.UNLIMITED) {
|
|
6289
6237
|
description = f({
|
|
6290
6238
|
id: 'multiSelectError.unlimited',
|
|
6291
6239
|
defaultMessage: 'You must choose at least one options',
|
|
6292
6240
|
});
|
|
6293
6241
|
}
|
|
6294
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
6242
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE) {
|
|
6295
6243
|
description = f({
|
|
6296
6244
|
id: 'multiSelectError.range',
|
|
6297
6245
|
defaultMessage: 'You must choose from {from} to {to} answers (Ex: You must choose from 3 to 5 answers)',
|
|
@@ -6300,7 +6248,7 @@ const useDescriptionPollNode = ({ node }) => {
|
|
|
6300
6248
|
to: node.to,
|
|
6301
6249
|
});
|
|
6302
6250
|
}
|
|
6303
|
-
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
6251
|
+
if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER) {
|
|
6304
6252
|
description = f({
|
|
6305
6253
|
id: 'multiSelectError.exactNumber',
|
|
6306
6254
|
defaultMessage: 'You must choose {from} answers.',
|
|
@@ -6330,7 +6278,7 @@ const Container$4 = ({ node, indexNumber }) => {
|
|
|
6330
6278
|
}, []);
|
|
6331
6279
|
const submitButton = React.useMemo(() => {
|
|
6332
6280
|
var _a;
|
|
6333
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
6281
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
|
|
6334
6282
|
if (_submitButton)
|
|
6335
6283
|
return _submitButton;
|
|
6336
6284
|
return null;
|
|
@@ -6339,8 +6287,8 @@ const Container$4 = ({ node, indexNumber }) => {
|
|
|
6339
6287
|
const handleOnChange = (action, formSubmitMeta) => {
|
|
6340
6288
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6341
6289
|
const newValue = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: [...((value === null || value === void 0 ? void 0 : value.form_submit_meta) || [])] })));
|
|
6342
|
-
if ((action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6343
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6290
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
|
|
6291
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
|
|
6344
6292
|
const isExistedPoll = (_a = newValue.form_submit_meta) === null || _a === void 0 ? void 0 : _a.some(({ action_id }) => action_id === action.id);
|
|
6345
6293
|
if (isExistedPoll) {
|
|
6346
6294
|
newValue.form_submit_meta =
|
|
@@ -6352,7 +6300,7 @@ const Container$4 = ({ node, indexNumber }) => {
|
|
|
6352
6300
|
newValue.form_submit_meta = (_d = newValue.form_submit_meta) === null || _d === void 0 ? void 0 : _d.concat([
|
|
6353
6301
|
{
|
|
6354
6302
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
6355
|
-
control: index$
|
|
6303
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
|
|
6356
6304
|
value: '',
|
|
6357
6305
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
6358
6306
|
},
|
|
@@ -6401,7 +6349,7 @@ const Container$3 = ({ node }) => {
|
|
|
6401
6349
|
const handleOnChange = (action) => {
|
|
6402
6350
|
if (params.bot_id &&
|
|
6403
6351
|
action &&
|
|
6404
|
-
action.type === index$
|
|
6352
|
+
action.type === index$3.NodeActionType.ACTION_SSO_REDIRECT) {
|
|
6405
6353
|
const currentState = {
|
|
6406
6354
|
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' }),
|
|
6407
6355
|
listNodes,
|
|
@@ -6424,7 +6372,7 @@ const Container$3 = ({ node }) => {
|
|
|
6424
6372
|
urlObj.searchParams.set('mode', 'inline');
|
|
6425
6373
|
urlObj.searchParams.set('source', 'subot-inline');
|
|
6426
6374
|
const returnUrl = urlObj.href;
|
|
6427
|
-
window.location.href = `${index$
|
|
6375
|
+
window.location.href = `${index$4.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
6428
6376
|
}
|
|
6429
6377
|
}
|
|
6430
6378
|
};
|
|
@@ -6474,8 +6422,8 @@ const Container$2 = ({ node, indexNumber }) => {
|
|
|
6474
6422
|
const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
6475
6423
|
if (!action)
|
|
6476
6424
|
return;
|
|
6477
|
-
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6478
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
6425
|
+
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
|
|
6426
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
|
|
6479
6427
|
const newValue = 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, form_submit_meta: formSubmitMeta });
|
|
6480
6428
|
if (actionWithOther) {
|
|
6481
6429
|
setValue(newValue);
|
|
@@ -6544,12 +6492,12 @@ const Container$1 = ({ onClickStart }) => {
|
|
|
6544
6492
|
React__default["default"].createElement(Container$s, { node: foundNode, onClickStart: onClickStart })));
|
|
6545
6493
|
}
|
|
6546
6494
|
const node = foundNode;
|
|
6547
|
-
const nodeType = index$
|
|
6548
|
-
const nodeTypeSSO = (_a = index$
|
|
6549
|
-
let NodeComponent = node.position === index$
|
|
6495
|
+
const nodeType = index$3.NodeType[node.type].valueOf();
|
|
6496
|
+
const nodeTypeSSO = (_a = index$3.NodePosition[node.position]) === null || _a === void 0 ? void 0 : _a.valueOf();
|
|
6497
|
+
let NodeComponent = node.position === index$3.NodePosition.SSO
|
|
6550
6498
|
? SubotInlineNodeBase$1[nodeTypeSSO]
|
|
6551
6499
|
: SubotInlineNodeBase$1[nodeType];
|
|
6552
|
-
if (node.is_multi_select && node.type !== index$
|
|
6500
|
+
if (node.is_multi_select && node.type !== index$3.NodeType.POLL) {
|
|
6553
6501
|
NodeComponent = SubotInlineNodeBase$1['MULTIPLE'];
|
|
6554
6502
|
}
|
|
6555
6503
|
return (React__default["default"].createElement(framerMotion.motion.div, { key: node.id, initial: { opacity: 1, y: -300 }, animate: { opacity: 1, y: 0 }, transition: {
|
|
@@ -6620,7 +6568,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6620
6568
|
React__default["default"].createElement(Close, null))),
|
|
6621
6569
|
typeFormProps && locale ? (React__default["default"].createElement(TypeFormView, { locale: locale, typeFormProps: typeFormProps })) : (React__default["default"].createElement(NodeContextProvider, null,
|
|
6622
6570
|
React__default["default"].createElement("div", { className: "subot-inline-revamp-container", "data-show-footer": isShowFooter },
|
|
6623
|
-
loading && !isShowFooter && React__default["default"].createElement(index$
|
|
6571
|
+
loading && !isShowFooter && React__default["default"].createElement(index$b.Loading, { className: "si-loading" }),
|
|
6624
6572
|
React__default["default"].createElement(Container$1, { onClickStart: () => {
|
|
6625
6573
|
setIsDisplayFullMobile(true);
|
|
6626
6574
|
} })),
|
|
@@ -6640,7 +6588,7 @@ const View = ({ loading, backgroundImage, isShowFooter, isFullContainer, isDisab
|
|
|
6640
6588
|
if (isFullContainer) {
|
|
6641
6589
|
const showLeftInfo = hasSubotLeftInfo(subotSettingData);
|
|
6642
6590
|
return (React__default["default"].createElement(StyledContainerFullscreen, { className: "si-container-fs", style: styleFullContainer, "data-has-left-info": showLeftInfo },
|
|
6643
|
-
React__default["default"].createElement(index$
|
|
6591
|
+
React__default["default"].createElement(index$c.Container, { className: core.clsx('si-container', {
|
|
6644
6592
|
'si-typeform-container': Boolean(typeFormProps),
|
|
6645
6593
|
'si-no-left-info': !showLeftInfo,
|
|
6646
6594
|
}) },
|
|
@@ -6665,7 +6613,7 @@ const Container = () => {
|
|
|
6665
6613
|
if (!foundNode)
|
|
6666
6614
|
return '';
|
|
6667
6615
|
return (foundNode.inline_background ||
|
|
6668
|
-
((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type === index$
|
|
6616
|
+
((_b = (_a = foundNode.intents) === null || _a === void 0 ? void 0 : _a.find((i) => i.type === index$3.NodeIntentType.BOT_BACKGROUND_IMAGE)) === null || _b === void 0 ? void 0 : _b.url));
|
|
6669
6617
|
}, [listNodes, activeId]);
|
|
6670
6618
|
const subotSettingData = React.useMemo(() => {
|
|
6671
6619
|
const subotInlineSettings = listNodes[0];
|
|
@@ -6718,7 +6666,7 @@ const Root = styled__default["default"](core.Box) `
|
|
|
6718
6666
|
`}
|
|
6719
6667
|
}
|
|
6720
6668
|
`;
|
|
6721
|
-
const Inner = styled__default["default"](index$
|
|
6669
|
+
const Inner = styled__default["default"](index$c.Container) `
|
|
6722
6670
|
display: flex;
|
|
6723
6671
|
gap: 24px;
|
|
6724
6672
|
|
|
@@ -6924,7 +6872,7 @@ const subotInlineImpression = (data) => tslib_es6.__awaiter(void 0, void 0, void
|
|
|
6924
6872
|
/** inline message */
|
|
6925
6873
|
const subotInlineMessage = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
6926
6874
|
try {
|
|
6927
|
-
return yield callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
|
|
6875
|
+
return yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.GET_INLINE_MESSAGE), 'chat', data);
|
|
6928
6876
|
}
|
|
6929
6877
|
catch (error) { }
|
|
6930
6878
|
});
|
|
@@ -6980,7 +6928,7 @@ const SubotInlineDescription$1 = styled__default["default"].div `
|
|
|
6980
6928
|
color: #595959;
|
|
6981
6929
|
font-style: italic;
|
|
6982
6930
|
`;
|
|
6983
|
-
const SubotInlineFinalButton = styled__default["default"](index$
|
|
6931
|
+
const SubotInlineFinalButton = styled__default["default"](index$9.Button) `
|
|
6984
6932
|
position: relative;
|
|
6985
6933
|
min-width: 180px;
|
|
6986
6934
|
svg {
|
|
@@ -7368,8 +7316,8 @@ const SubotInlineActionListContainer = styled__default["default"].div `
|
|
|
7368
7316
|
const SubotInlineAction = ({ actions, value, onChange, htmlType, node_type, formSubmitMeta, }) => {
|
|
7369
7317
|
const className = React.useMemo(() => {
|
|
7370
7318
|
switch (node_type) {
|
|
7371
|
-
case index$
|
|
7372
|
-
case index$
|
|
7319
|
+
case index$3.NodeType.IMAGE:
|
|
7320
|
+
case index$3.NodeType.REACTION:
|
|
7373
7321
|
return 'list-container';
|
|
7374
7322
|
default:
|
|
7375
7323
|
return '';
|
|
@@ -7381,7 +7329,7 @@ const SubotInlineAction = ({ actions, value, onChange, htmlType, node_type, form
|
|
|
7381
7329
|
})))));
|
|
7382
7330
|
};
|
|
7383
7331
|
|
|
7384
|
-
const ButtonStyled = styled__default["default"](index$
|
|
7332
|
+
const ButtonStyled = styled__default["default"](index$9.Button) `
|
|
7385
7333
|
&:disabled {
|
|
7386
7334
|
background-color: rgb(242, 242, 242);
|
|
7387
7335
|
color: rgb(140, 140, 140);
|
|
@@ -7433,8 +7381,8 @@ const SubotInlineActionTextChoice = ({ action, onChange, active, htmlType, formS
|
|
|
7433
7381
|
const { trackingCommonInline } = React.useContext(SubotInlineContext);
|
|
7434
7382
|
const inputRef = React.useRef(null);
|
|
7435
7383
|
const [otherText, setOtherText] = React.useState('');
|
|
7436
|
-
const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
7437
|
-
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
7384
|
+
const isActionPollWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
|
|
7385
|
+
const isActionSelectWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
|
|
7438
7386
|
isActionPollWithOther;
|
|
7439
7387
|
const onChangeTextArea = (evt) => {
|
|
7440
7388
|
setOtherText(evt.target.value);
|
|
@@ -7442,7 +7390,7 @@ const SubotInlineActionTextChoice = ({ action, onChange, active, htmlType, formS
|
|
|
7442
7390
|
onChange === null || onChange === void 0 ? void 0 : onChange(action, [
|
|
7443
7391
|
{
|
|
7444
7392
|
key: KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD,
|
|
7445
|
-
control: index$
|
|
7393
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
|
|
7446
7394
|
value: evt.target.value,
|
|
7447
7395
|
action_id: action.id,
|
|
7448
7396
|
},
|
|
@@ -7493,12 +7441,12 @@ const SubotInlinePollChoice = ({ active, action, onChange, htmlType, node_type,
|
|
|
7493
7441
|
onChange &&
|
|
7494
7442
|
onChange({
|
|
7495
7443
|
key: (action === null || action === void 0 ? void 0 : action.key) || '',
|
|
7496
|
-
control: index$
|
|
7444
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
7497
7445
|
value: '',
|
|
7498
7446
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
7499
7447
|
});
|
|
7500
7448
|
};
|
|
7501
|
-
if (node_type === index$
|
|
7449
|
+
if (node_type === index$3.NodeType.RESULT_POLL)
|
|
7502
7450
|
return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
|
|
7503
7451
|
React__default["default"].createElement(SubotInlineActionPollChoiceResult, { percent: (action === null || action === void 0 ? void 0 : action.percent) || 0, is_chosen: action === null || action === void 0 ? void 0 : action.is_chosen },
|
|
7504
7452
|
React__default["default"].createElement("div", { className: "number" }, action === null || action === void 0 ? void 0 :
|
|
@@ -7514,12 +7462,12 @@ const SubotInlinePollChoiceImage = ({ active, action, onChange, htmlType, node_t
|
|
|
7514
7462
|
onChange &&
|
|
7515
7463
|
onChange({
|
|
7516
7464
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7517
|
-
control: index$
|
|
7465
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
7518
7466
|
value: '',
|
|
7519
7467
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
7520
7468
|
});
|
|
7521
7469
|
};
|
|
7522
|
-
if (node_type === index$
|
|
7470
|
+
if (node_type === index$3.NodeType.RESULT_POLL)
|
|
7523
7471
|
// TODO: Update layout result poll image
|
|
7524
7472
|
return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
|
|
7525
7473
|
React__default["default"].createElement(SubotInlineActionPollChoiceResult, { percent: (action === null || action === void 0 ? void 0 : action.percent) || 0, is_chosen: action === null || action === void 0 ? void 0 : action.is_chosen },
|
|
@@ -7539,7 +7487,7 @@ const SubotInlineRatingStar = ({ action, value, onChange, }) => {
|
|
|
7539
7487
|
: 0, changeRating: (star) => {
|
|
7540
7488
|
const _value = {
|
|
7541
7489
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7542
|
-
control: index$
|
|
7490
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
7543
7491
|
value: star.toString(),
|
|
7544
7492
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
7545
7493
|
};
|
|
@@ -7549,12 +7497,12 @@ const SubotInlineRatingStar = ({ action, value, onChange, }) => {
|
|
|
7549
7497
|
const SubotInlineTextArea = ({ action, value, onChange, }) => {
|
|
7550
7498
|
return (React__default["default"].createElement(SubotInlineActionItemContainer, null,
|
|
7551
7499
|
React__default["default"].createElement(SubotInlineActionRatingDescriptionContainer, null,
|
|
7552
|
-
React__default["default"].createElement(index$
|
|
7500
|
+
React__default["default"].createElement(index$d.TextArea, { placeholder: action === null || action === void 0 ? void 0 : action.label, value: value && typeof value !== 'string' && (value === null || value === void 0 ? void 0 : value.value)
|
|
7553
7501
|
? value === null || value === void 0 ? void 0 : value.value
|
|
7554
7502
|
: '', onChange: (evt) => {
|
|
7555
7503
|
const _value = {
|
|
7556
7504
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7557
|
-
control: index$
|
|
7505
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
7558
7506
|
value: evt.target.value,
|
|
7559
7507
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
7560
7508
|
};
|
|
@@ -7577,7 +7525,7 @@ const SubotInlineReviewChoice = ({ active, action, onChange, }) => (React__defau
|
|
|
7577
7525
|
React__default["default"].createElement(SubotInlineButtonReview, { className: classNames__default["default"](!!active && 'active'), onClick: () => onChange &&
|
|
7578
7526
|
onChange({
|
|
7579
7527
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
7580
|
-
control: index$
|
|
7528
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type],
|
|
7581
7529
|
value: '',
|
|
7582
7530
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
7583
7531
|
}) },
|
|
@@ -7586,21 +7534,21 @@ const SubotInlinePollResult = ({ action, }) => (React__default["default"].create
|
|
|
7586
7534
|
React__default["default"].createElement(SubotInlineActionPollResult, null, action === null || action === void 0 ? void 0 : action.label)));
|
|
7587
7535
|
const SubotInlineActionBase = {
|
|
7588
7536
|
'user-image': SubotInlineActionImageChoice,
|
|
7589
|
-
[index$
|
|
7590
|
-
[index$
|
|
7591
|
-
[index$
|
|
7592
|
-
[index$
|
|
7593
|
-
[index$
|
|
7594
|
-
[index$
|
|
7595
|
-
[index$
|
|
7596
|
-
[index$
|
|
7597
|
-
[index$
|
|
7598
|
-
[index$
|
|
7599
|
-
[index$
|
|
7600
|
-
[index$
|
|
7601
|
-
[index$
|
|
7602
|
-
[index$
|
|
7603
|
-
[index$
|
|
7537
|
+
[index$3.NodeActionType.USER_CHOICE_TEXT]: SubotInlineActionTextChoice,
|
|
7538
|
+
[index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
|
|
7539
|
+
[index$3.NodeActionType.USER_CHOICE_IMAGE]: SubotInlineActionImageChoice,
|
|
7540
|
+
[index$3.NodeActionType.ACTION_SSO_REDIRECT]: SubotInlineActionSSO,
|
|
7541
|
+
[index$3.NodeActionType.POLL_CHOICE]: SubotInlinePollChoice,
|
|
7542
|
+
[index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT]: SubotInlineActionTextChoice,
|
|
7543
|
+
[index$3.NodeActionType.POLL_CHOICE_IMAGE]: SubotInlinePollChoiceImage,
|
|
7544
|
+
[index$3.NodeActionType.RATING_STAR]: SubotInlineRatingStar,
|
|
7545
|
+
[index$3.NodeActionType.RATING_DESCRIPTION]: SubotInlineTextArea,
|
|
7546
|
+
[index$3.NodeActionType.LIKE_CHOICE]: SubotInlineLikeChoice,
|
|
7547
|
+
[index$3.NodeActionType.DISLIKE_CHOICE]: SubotInlineDislikeChoice,
|
|
7548
|
+
[index$3.NodeActionType.REVIEW_CHOICE]: SubotInlineReviewChoice,
|
|
7549
|
+
[index$3.NodeActionType.REVIEW_DESCRIPTION]: SubotInlineTextArea,
|
|
7550
|
+
[index$3.NodeActionType.RESULT_BUTTON]: SubotInlineActionTextChoice,
|
|
7551
|
+
[index$3.NodeActionType.POLL_RESULT]: SubotInlinePollResult,
|
|
7604
7552
|
};
|
|
7605
7553
|
|
|
7606
7554
|
const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextText, backProps, nextProps, }) => {
|
|
@@ -7608,7 +7556,7 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
|
|
|
7608
7556
|
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
7609
7557
|
const { nodes: listNodes, activeId, params, onNext, trackingCommonInline, } = React.useContext(SubotInlineContext);
|
|
7610
7558
|
const nodeMessage = listNodes.find((nodeItem) => nodeItem.id == activeId);
|
|
7611
|
-
const actionNextChoice = (_a = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$
|
|
7559
|
+
const actionNextChoice = (_a = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _a === void 0 ? void 0 : _a.find((act) => act.type === index$3.NodeActionType.USER_CHOICE_NEXT);
|
|
7612
7560
|
const handleNextChoice = () => {
|
|
7613
7561
|
if (nodeMessage && actionNextChoice) {
|
|
7614
7562
|
const nextValue = {
|
|
@@ -7619,7 +7567,7 @@ const SubotInlineFooter = ({ onBack, onNext: onSubmit, hideBack, hideNext, nextT
|
|
|
7619
7567
|
onNext === null || onNext === void 0 ? void 0 : onNext(Object.assign(Object.assign(Object.assign({}, params), nextValue), nodeMessage._message));
|
|
7620
7568
|
}
|
|
7621
7569
|
};
|
|
7622
|
-
const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === index$
|
|
7570
|
+
const actionSubmitMultiple = (_b = nodeMessage === null || nodeMessage === void 0 ? void 0 : nodeMessage.actions) === null || _b === void 0 ? void 0 : _b.find((act) => act.type === index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
7623
7571
|
return (React__default["default"].createElement(SubotInlineFooterStyled, null,
|
|
7624
7572
|
!hideBack && (React__default["default"].createElement(ButtonBackStyled, Object.assign({ size: "md", color: "secondary", onClick: onBack }, backProps, { className: classNames__default["default"]('pointer-event-child-none', backProps === null || backProps === void 0 ? void 0 : backProps.className) }, trackingCommonInline, { "data-event-action": "Back Click" }),
|
|
7625
7573
|
React__default["default"].createElement(ArrowLeft, { style: { marginRight: 10 } }),
|
|
@@ -7678,7 +7626,7 @@ const SubotInlineIntentTitle = styled__default["default"].h3 `
|
|
|
7678
7626
|
font-size: 20px;
|
|
7679
7627
|
}
|
|
7680
7628
|
`;
|
|
7681
|
-
const SubotInlineRecalculateButton = styled__default["default"](index$
|
|
7629
|
+
const SubotInlineRecalculateButton = styled__default["default"](index$9.Button) `
|
|
7682
7630
|
&.bot-recalculate {
|
|
7683
7631
|
svg {
|
|
7684
7632
|
path {
|
|
@@ -7694,7 +7642,7 @@ const SubotInlineRecalculateButton = styled__default["default"](index$8.Button)
|
|
|
7694
7642
|
}
|
|
7695
7643
|
}
|
|
7696
7644
|
`;
|
|
7697
|
-
const SubotInlineIntentButton = styled__default["default"](index$
|
|
7645
|
+
const SubotInlineIntentButton = styled__default["default"](index$9.Button) `
|
|
7698
7646
|
border: 2px solid transparent;
|
|
7699
7647
|
`;
|
|
7700
7648
|
const SubotInlineItemIcon = styled__default["default"].div `
|
|
@@ -7738,7 +7686,7 @@ const SubotInlineItemIcon = styled__default["default"].div `
|
|
|
7738
7686
|
}
|
|
7739
7687
|
}
|
|
7740
7688
|
`;
|
|
7741
|
-
styled__default["default"](index$
|
|
7689
|
+
styled__default["default"](index$9.Button) ``;
|
|
7742
7690
|
const SubotInlineIntentFirstTextWrapper = styled__default["default"].div `
|
|
7743
7691
|
display: flex;
|
|
7744
7692
|
align-items: flex-start;
|
|
@@ -7974,25 +7922,25 @@ const SubotInlineIntentFinal = ({ intents: intentsProps, }) => {
|
|
|
7974
7922
|
const rest = [];
|
|
7975
7923
|
intentsProps === null || intentsProps === void 0 ? void 0 : intentsProps.map((intent) => {
|
|
7976
7924
|
switch (intent === null || intent === void 0 ? void 0 : intent.type) {
|
|
7977
|
-
case index$
|
|
7925
|
+
case index$3.NodeIntentType.BOT_MAIN_IMAGE:
|
|
7978
7926
|
mainIntents.push(intent);
|
|
7979
7927
|
break;
|
|
7980
|
-
case index$
|
|
7928
|
+
case index$3.NodeIntentType.BOT_MAIN_TITLE:
|
|
7981
7929
|
mainIntents.push(intent);
|
|
7982
7930
|
break;
|
|
7983
|
-
case index$
|
|
7931
|
+
case index$3.NodeIntentType.BOT_MAIN_BODY:
|
|
7984
7932
|
mainIntents.push(intent);
|
|
7985
7933
|
break;
|
|
7986
|
-
case index$
|
|
7934
|
+
case index$3.NodeIntentType.BOT_MAIN_BUTTON:
|
|
7987
7935
|
mainIntents.push(intent);
|
|
7988
7936
|
break;
|
|
7989
|
-
case index$
|
|
7937
|
+
case index$3.NodeIntentType.BOT_RECALCULATE:
|
|
7990
7938
|
mainIntents.push(intent);
|
|
7991
7939
|
break;
|
|
7992
|
-
case index$
|
|
7940
|
+
case index$3.NodeIntentType.BOT_SUB_TITLE:
|
|
7993
7941
|
subIntents.push(intent);
|
|
7994
7942
|
break;
|
|
7995
|
-
case index$
|
|
7943
|
+
case index$3.NodeIntentType.BOT_SUB_BODY:
|
|
7996
7944
|
subIntents.push(intent);
|
|
7997
7945
|
break;
|
|
7998
7946
|
default:
|
|
@@ -8125,7 +8073,7 @@ const SubotInlineIntentSSO = ({ intent, }) => {
|
|
|
8125
8073
|
/*************************** NodeIntentType: 'bot-title' ***********************/
|
|
8126
8074
|
//#region
|
|
8127
8075
|
const SubotInlineIntentBotTitle = ({ intent, indexNumber, }) => {
|
|
8128
|
-
const isShowLabel = ![index$
|
|
8076
|
+
const isShowLabel = ![index$3.NodeIntentType.SSO_INTENT].includes(intent === null || intent === void 0 ? void 0 : intent.type);
|
|
8129
8077
|
return (React__default["default"].createElement(SubotInlineIntentFirstTextContainer, null,
|
|
8130
8078
|
React__default["default"].createElement(SubotInlineIntentFirstTextWrapper, null,
|
|
8131
8079
|
indexNumber && (React__default["default"].createElement("div", { className: "number" },
|
|
@@ -8133,9 +8081,9 @@ const SubotInlineIntentBotTitle = ({ intent, indexNumber, }) => {
|
|
|
8133
8081
|
".")),
|
|
8134
8082
|
isShowLabel &&
|
|
8135
8083
|
intent &&
|
|
8136
|
-
[index$
|
|
8084
|
+
[index$3.NodeIntentType.BOT_TEXT, index$3.NodeIntentType.BOT_BUTTON].includes(intent === null || intent === void 0 ? void 0 : intent.type) && React__default["default"].createElement(Markdown, { className: "title" }, intent.label)),
|
|
8137
8085
|
intent &&
|
|
8138
|
-
[index$
|
|
8086
|
+
[index$3.NodeIntentType.BOT_IMAGE].includes(intent === null || intent === void 0 ? void 0 : intent.type) && (React__default["default"].createElement(SubotInlineIntentFirstImageWrapper, null,
|
|
8139
8087
|
React__default["default"].createElement(SubotInlineIntentBotImage, { intent: intent })))));
|
|
8140
8088
|
};
|
|
8141
8089
|
//#endregion
|
|
@@ -8328,26 +8276,26 @@ const SubotInlineIntentThankYouBody = ({ intent, }) => {
|
|
|
8328
8276
|
/*************************** END - NodeIntentType: 'thank-you-body' ************/
|
|
8329
8277
|
/*******************************************************************************/
|
|
8330
8278
|
const SubotInlineIntentBase = {
|
|
8331
|
-
[index$
|
|
8332
|
-
[index$
|
|
8333
|
-
[index$
|
|
8334
|
-
[index$
|
|
8335
|
-
[index$
|
|
8336
|
-
[index$
|
|
8337
|
-
[index$
|
|
8338
|
-
[index$
|
|
8339
|
-
[index$
|
|
8340
|
-
[index$
|
|
8341
|
-
[index$
|
|
8342
|
-
[index$
|
|
8343
|
-
[index$
|
|
8344
|
-
[index$
|
|
8345
|
-
[index$
|
|
8346
|
-
[index$
|
|
8347
|
-
[index$
|
|
8348
|
-
[index$
|
|
8279
|
+
[index$3.NodeIntentType.BOT_TEXT]: SubotInlineIntentBotText,
|
|
8280
|
+
[index$3.NodeIntentType.BOT_IMAGE]: SubotInlineIntentBotImage,
|
|
8281
|
+
[index$3.NodeIntentType.BOT_BUTTON]: SubotInlineIntentBotButton,
|
|
8282
|
+
[index$3.NodeIntentType.BOT_URL]: SubotInlineIntentUrl,
|
|
8283
|
+
[index$3.NodeIntentType.BOT_RECALCULATE]: SubotInlineIntentBotRecalculate,
|
|
8284
|
+
[index$3.NodeIntentType.BOT_MAIN_TITLE]: SubotInlineIntentBotMainTitle,
|
|
8285
|
+
[index$3.NodeIntentType.BOT_MAIN_IMAGE]: SubotInlineIntentBotMainImage,
|
|
8286
|
+
[index$3.NodeIntentType.BOT_MAIN_BODY]: SubotInlineIntentBotMainBody,
|
|
8287
|
+
[index$3.NodeIntentType.BOT_MAIN_BUTTON]: SubotInlineIntentBotMainButton,
|
|
8288
|
+
[index$3.NodeIntentType.BOT_SUB_TITLE]: SubotInlineIntentBotMainTitle,
|
|
8289
|
+
[index$3.NodeIntentType.BOT_SUB_BODY]: SubotInlineIntentBotMainBody,
|
|
8290
|
+
[index$3.NodeIntentType.BOT_LANDING_PAGE_URL]: SubotInlineIntentBotText,
|
|
8291
|
+
[index$3.NodeIntentType.BOT_LANDING_PAGE_BUTTON]: SubotInlineIntentBotText,
|
|
8292
|
+
[index$3.NodeIntentType.BOT_RISK_SCREEN]: SubotInlineIntentBotRiskScreener,
|
|
8293
|
+
[index$3.NodeIntentType.BOT_RELATED_ARTICLE]: SubotInlineIntentBotRelatedArticle,
|
|
8294
|
+
[index$3.NodeIntentType.THANK_YOU_IMAGE]: SubotInlineIntentThankYouImage,
|
|
8295
|
+
[index$3.NodeIntentType.THANK_YOU_TITLE]: SubotInlineIntentThankYouTitle,
|
|
8296
|
+
[index$3.NodeIntentType.THANK_YOU_BODY]: SubotInlineIntentThankYouBody,
|
|
8349
8297
|
/** intents fake for sso block */
|
|
8350
|
-
[index$
|
|
8298
|
+
[index$3.NodeIntentType.SSO_INTENT]: SubotInlineIntentSSO,
|
|
8351
8299
|
};
|
|
8352
8300
|
|
|
8353
8301
|
/***************** type: TEXT, IMAGE ***************/
|
|
@@ -8369,8 +8317,8 @@ const SubotInlineNode = ({ node, indexNumber, }) => {
|
|
|
8369
8317
|
const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
8370
8318
|
if (!action)
|
|
8371
8319
|
return;
|
|
8372
|
-
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
8373
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
8320
|
+
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
|
|
8321
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
|
|
8374
8322
|
const newValue = 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, form_submit_meta: formSubmitMeta });
|
|
8375
8323
|
if (actionWithOther) {
|
|
8376
8324
|
setValue(newValue);
|
|
@@ -8463,7 +8411,7 @@ const SubotInlineNodeFinal = ({ node, }) => {
|
|
|
8463
8411
|
const botType = (_a = botItem === null || botItem === void 0 ? void 0 : botItem.extra_settings) === null || _a === void 0 ? void 0 : _a.subot_type;
|
|
8464
8412
|
const suggestedServiceIntents = React.useMemo(() => {
|
|
8465
8413
|
var _a;
|
|
8466
|
-
return (((_a = node === null || node === void 0 ? void 0 : node.intents) === null || _a === void 0 ? void 0 : _a.filter((i) => i.type === index$
|
|
8414
|
+
return (((_a = node === null || node === void 0 ? void 0 : node.intents) === null || _a === void 0 ? void 0 : _a.filter((i) => i.type === index$3.NodeIntentType.BOT_SUGGESTED_SERVICE)) || []);
|
|
8467
8415
|
}, []);
|
|
8468
8416
|
return (React__default["default"].createElement(SubotInlineFinalContainer, null,
|
|
8469
8417
|
React__default["default"].createElement("div", { ref: flag, className: "hhg-flag", style: {
|
|
@@ -8485,7 +8433,7 @@ const SubotInlineNodeFinal = ({ node, }) => {
|
|
|
8485
8433
|
React__default["default"].createElement(ArrowDown, { style: { marginLeft: 10 } }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
8486
8434
|
f({ id: 'subotInline.showLess', defaultMessage: 'Show less' }),
|
|
8487
8435
|
React__default["default"].createElement(ArrowUp, { style: { marginLeft: 10 } })))))),
|
|
8488
|
-
botType === index$
|
|
8436
|
+
botType === index$3.SubotType.voucherAcuvue && (React__default["default"].createElement(SubotInlineVoucherLeftUI, { clientId: (_b = botItem.extra_settings) === null || _b === void 0 ? void 0 : _b.client_id, voucherAnswers: extractVoucherAnswers(nodes, botItem) }))));
|
|
8489
8437
|
};
|
|
8490
8438
|
|
|
8491
8439
|
const SubotInlineResultButton = styled__default["default"].span `
|
|
@@ -8528,7 +8476,7 @@ const SubotInlineNodeFinalThankYou = ({ node, }) => {
|
|
|
8528
8476
|
const { params, onNext } = React.useContext(SubotInlineContext);
|
|
8529
8477
|
const resultButton = React.useMemo(() => {
|
|
8530
8478
|
var _a;
|
|
8531
|
-
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$
|
|
8479
|
+
const _resultButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RESULT_BUTTON);
|
|
8532
8480
|
if (_resultButton)
|
|
8533
8481
|
return _resultButton;
|
|
8534
8482
|
return null;
|
|
@@ -8552,10 +8500,10 @@ const SubotInlineNodeForm = ({ node, indexNumber, }) => {
|
|
|
8552
8500
|
const { params, onPrev, onSubmit, trackingCommonInline, nodes, activeId } = React.useContext(SubotInlineContext);
|
|
8553
8501
|
const handleSubmit = (data) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
8554
8502
|
const res = yield subotInlineMessage(Object.assign(Object.assign(Object.assign(Object.assign({}, params), node._message), data), getCurrentTotalDynamicScore(nodes, activeId, data.action_id, data.form_submit_meta)));
|
|
8555
|
-
if (isSubotCaptchaForbidden(res)) {
|
|
8503
|
+
if (index$2.isSubotCaptchaForbidden(res)) {
|
|
8556
8504
|
pushNotifications({
|
|
8557
8505
|
title: '',
|
|
8558
|
-
message: f(SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8506
|
+
message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8559
8507
|
type: 'warning',
|
|
8560
8508
|
});
|
|
8561
8509
|
return;
|
|
@@ -8624,7 +8572,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
|
|
|
8624
8572
|
const [value, setValue] = React.useState((node === null || node === void 0 ? void 0 : node._message) || {});
|
|
8625
8573
|
const submitButton = React.useMemo(() => {
|
|
8626
8574
|
var _a;
|
|
8627
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
8575
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.ACTION_MULTIPLE_BUTTON);
|
|
8628
8576
|
if (_submitButton)
|
|
8629
8577
|
return _submitButton;
|
|
8630
8578
|
return null;
|
|
@@ -8648,7 +8596,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
|
|
|
8648
8596
|
});
|
|
8649
8597
|
return;
|
|
8650
8598
|
}
|
|
8651
|
-
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
8599
|
+
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.RANGE &&
|
|
8652
8600
|
activeActions.length < (node === null || node === void 0 ? void 0 : node.from)) {
|
|
8653
8601
|
pushNotifications({
|
|
8654
8602
|
title: '',
|
|
@@ -8663,7 +8611,7 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
|
|
|
8663
8611
|
});
|
|
8664
8612
|
return;
|
|
8665
8613
|
}
|
|
8666
|
-
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$
|
|
8614
|
+
else if ((node === null || node === void 0 ? void 0 : node.multi_select_option) === index$3.NodeMultipleOptions.EXACT_NUMBER &&
|
|
8667
8615
|
activeActions.length !== (node === null || node === void 0 ? void 0 : node.from)) {
|
|
8668
8616
|
pushNotifications({
|
|
8669
8617
|
message: f({
|
|
@@ -8684,8 +8632,8 @@ const SubotInlineNodeMultiple = ({ node, indexNumber, }) => {
|
|
|
8684
8632
|
var _a, _b;
|
|
8685
8633
|
if (action) {
|
|
8686
8634
|
const _value = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, selected_actions: Object.assign({}, value === null || value === void 0 ? void 0 : value.selected_actions) })));
|
|
8687
|
-
if ((action === null || action === void 0 ? void 0 : action.type) === index$
|
|
8688
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
8635
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
|
|
8636
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
|
|
8689
8637
|
const isExistedPoll = (_value === null || _value === void 0 ? void 0 : _value.selected_actions) && action.id in _value.selected_actions;
|
|
8690
8638
|
if (isExistedPoll) {
|
|
8691
8639
|
if (formSubmitMeta) {
|
|
@@ -8784,18 +8732,18 @@ callBack, }) => {
|
|
|
8784
8732
|
}
|
|
8785
8733
|
setIsLoading(true);
|
|
8786
8734
|
try {
|
|
8787
|
-
const result = yield callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SEND_OTP), 'sms_otp', {
|
|
8735
|
+
const result = yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_SEND_OTP), 'sms_otp', {
|
|
8788
8736
|
phone_number: parsedPhone.nationalNumber,
|
|
8789
8737
|
area_code: `+${parsedPhone.countryCallingCode}`,
|
|
8790
8738
|
});
|
|
8791
8739
|
setIsLoading(false);
|
|
8792
|
-
if (isSubotCaptchaForbidden(result)) {
|
|
8740
|
+
if (index$2.isSubotCaptchaForbidden(result)) {
|
|
8793
8741
|
if (countRef.current) {
|
|
8794
8742
|
countRef.current.cancel();
|
|
8795
8743
|
}
|
|
8796
8744
|
pushNotifications({
|
|
8797
8745
|
title: '',
|
|
8798
|
-
message: f(SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8746
|
+
message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8799
8747
|
type: 'warning',
|
|
8800
8748
|
});
|
|
8801
8749
|
return;
|
|
@@ -8826,7 +8774,7 @@ callBack, }) => {
|
|
|
8826
8774
|
message: 'Số điện thoại này đã được xác minh.',
|
|
8827
8775
|
type: 'success',
|
|
8828
8776
|
});
|
|
8829
|
-
const action = actions.find((action) => action.type === index$
|
|
8777
|
+
const action = actions.find((action) => action.type === index$3.NodeActionType.USER_SUBMIT_SEND);
|
|
8830
8778
|
action && callBack(action, data.phone);
|
|
8831
8779
|
return;
|
|
8832
8780
|
}
|
|
@@ -8852,16 +8800,16 @@ callBack, }) => {
|
|
|
8852
8800
|
return;
|
|
8853
8801
|
}
|
|
8854
8802
|
try {
|
|
8855
|
-
const result = yield callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_VERIFY_OTP), 'sms_verify', {
|
|
8803
|
+
const result = yield index$2.callSubotProtectedApi(getSubotApiPath(PATHS$1.POST_VERIFY_OTP), 'sms_verify', {
|
|
8856
8804
|
phone_number: parsedPhone.nationalNumber,
|
|
8857
8805
|
area_code: `+${parsedPhone.countryCallingCode}`,
|
|
8858
8806
|
code: number,
|
|
8859
8807
|
});
|
|
8860
8808
|
setIsLoadingVerify(false);
|
|
8861
|
-
if (isSubotCaptchaForbidden(result)) {
|
|
8809
|
+
if (index$2.isSubotCaptchaForbidden(result)) {
|
|
8862
8810
|
pushNotifications({
|
|
8863
8811
|
title: '',
|
|
8864
|
-
message: f(SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8812
|
+
message: f(index$2.SUBOT_CAPTCHA_FAILED_MESSAGE),
|
|
8865
8813
|
type: 'warning',
|
|
8866
8814
|
});
|
|
8867
8815
|
return;
|
|
@@ -8902,7 +8850,7 @@ callBack, }) => {
|
|
|
8902
8850
|
return null;
|
|
8903
8851
|
}
|
|
8904
8852
|
switch (action.type) {
|
|
8905
|
-
case index$
|
|
8853
|
+
case index$3.NodeActionType.USER_SUBMIT_PHONE:
|
|
8906
8854
|
return (React__default["default"].createElement("div", { className: "input-row", key: action.id },
|
|
8907
8855
|
React__default["default"].createElement("label", { htmlFor: action.key }, action.label),
|
|
8908
8856
|
React__default["default"].createElement(reactHookForm.Controller, { name: action.key, control: control, rules: {
|
|
@@ -8924,12 +8872,12 @@ callBack, }) => {
|
|
|
8924
8872
|
defaultMessage: 'Please enter a valid number.',
|
|
8925
8873
|
}))),
|
|
8926
8874
|
React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
8927
|
-
React__default["default"].createElement(index$
|
|
8875
|
+
React__default["default"].createElement(index$9.Button, { className: "submit-btn", size: "lg", onClick: handleSendOTP, isDisabled: (!isFinishedCountDown && sentOTP) || isLoading, isLoading: isLoading }, sentOTP ? (React__default["default"].createElement(CountDown$1, { ref: countRef, isFinished: isFinishedCountDown, onFinish: setIsFinishedCountDown })) : (React__default["default"].createElement("span", null, f({
|
|
8928
8876
|
id: 'subot.sendOTP.button',
|
|
8929
8877
|
defaultMessage: 'Send OTP',
|
|
8930
8878
|
})))))));
|
|
8931
8879
|
} })));
|
|
8932
|
-
case index$
|
|
8880
|
+
case index$3.NodeActionType.USER_SUBMIT_NUMBER:
|
|
8933
8881
|
if (!sentOTP) {
|
|
8934
8882
|
return '';
|
|
8935
8883
|
}
|
|
@@ -8949,18 +8897,18 @@ callBack, }) => {
|
|
|
8949
8897
|
};
|
|
8950
8898
|
const renderFormSubmitAndTerms = (action) => {
|
|
8951
8899
|
switch (action.type) {
|
|
8952
|
-
case index$
|
|
8900
|
+
case index$3.NodeActionType.USER_SUBMIT_SEND:
|
|
8953
8901
|
if (!sentOTP)
|
|
8954
8902
|
return '';
|
|
8955
8903
|
return (React__default["default"].createElement("div", { className: "submit-btn-row", key: action.id },
|
|
8956
|
-
React__default["default"].createElement(index$
|
|
8904
|
+
React__default["default"].createElement(index$9.Button, { className: "submit-btn", size: "lg", isDisabled: isLoadingVerify, isLoading: isLoadingVerify, onClick: (event) => handleOnVerify(event, action) }, action.label)));
|
|
8957
8905
|
default:
|
|
8958
8906
|
return '';
|
|
8959
8907
|
}
|
|
8960
8908
|
};
|
|
8961
8909
|
React.useEffect(() => {
|
|
8962
8910
|
if (phoneNumber) {
|
|
8963
|
-
const action = actions.find((action) => action.type === index$
|
|
8911
|
+
const action = actions.find((action) => action.type === index$3.NodeActionType.USER_SUBMIT_PHONE);
|
|
8964
8912
|
if (action && action.key) {
|
|
8965
8913
|
setValue(action.key, `+${areaCode}${phoneNumber}`);
|
|
8966
8914
|
}
|
|
@@ -8993,14 +8941,14 @@ const SubotInlineNodeOTP = ({ node, indexNumber, }) => {
|
|
|
8993
8941
|
const verifiedPhone = useVerifyPhoneNumber();
|
|
8994
8942
|
const handleOnVerify = (action, phoneNumber) => {
|
|
8995
8943
|
var _a;
|
|
8996
|
-
const actionPhone = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$
|
|
8944
|
+
const actionPhone = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.USER_SUBMIT_PHONE);
|
|
8997
8945
|
if (!action || !actionPhone) {
|
|
8998
8946
|
return;
|
|
8999
8947
|
}
|
|
9000
8948
|
const form_submit_meta = [
|
|
9001
8949
|
{
|
|
9002
8950
|
key: String(actionPhone.key),
|
|
9003
|
-
control: index$
|
|
8951
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[index$3.NodeActionType.USER_SUBMIT_PHONE],
|
|
9004
8952
|
value: phoneNumber,
|
|
9005
8953
|
},
|
|
9006
8954
|
];
|
|
@@ -9037,7 +8985,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
|
|
|
9037
8985
|
const descriptionNode = useDescriptionPollNode({ node });
|
|
9038
8986
|
const submitButton = React.useMemo(() => {
|
|
9039
8987
|
var _a;
|
|
9040
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
8988
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.POLL_BUTTON);
|
|
9041
8989
|
if (_submitButton)
|
|
9042
8990
|
return _submitButton;
|
|
9043
8991
|
return null;
|
|
@@ -9045,8 +8993,8 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
|
|
|
9045
8993
|
const handleOnChange = (action, formSubmitMeta) => {
|
|
9046
8994
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
9047
8995
|
const newValue = JSON.parse(JSON.stringify(Object.assign(Object.assign({}, value), { node_id: node.id, action_id: submitButton === null || submitButton === void 0 ? void 0 : submitButton.id, action_value: submitButton === null || submitButton === void 0 ? void 0 : submitButton.key, form_submit_meta: [...((value === null || value === void 0 ? void 0 : value.form_submit_meta) || [])] })));
|
|
9048
|
-
if ((action === null || action === void 0 ? void 0 : action.type) === index$
|
|
9049
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
8996
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT ||
|
|
8997
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT) {
|
|
9050
8998
|
const isExistedPoll = (_a = newValue.form_submit_meta) === null || _a === void 0 ? void 0 : _a.some(({ action_id }) => action_id === action.id);
|
|
9051
8999
|
if (isExistedPoll) {
|
|
9052
9000
|
newValue.form_submit_meta =
|
|
@@ -9058,7 +9006,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
|
|
|
9058
9006
|
newValue.form_submit_meta = (_d = newValue.form_submit_meta) === null || _d === void 0 ? void 0 : _d.concat([
|
|
9059
9007
|
{
|
|
9060
9008
|
key: action === null || action === void 0 ? void 0 : action.key,
|
|
9061
|
-
control: index$
|
|
9009
|
+
control: index$3.ELEMENT_CONTROL_INPUT_TYPE[action === null || action === void 0 ? void 0 : action.type] || 'text',
|
|
9062
9010
|
value: '',
|
|
9063
9011
|
action_id: action === null || action === void 0 ? void 0 : action.id,
|
|
9064
9012
|
},
|
|
@@ -9100,7 +9048,7 @@ const SubotInlineNodePoll = ({ node, indexNumber, }) => {
|
|
|
9100
9048
|
React__default["default"].createElement(SubotInlineIntentContainer, null,
|
|
9101
9049
|
React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber })),
|
|
9102
9050
|
React__default["default"].createElement(SubotInlineDescription$1, null, descriptionNode),
|
|
9103
|
-
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$
|
|
9051
|
+
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
|
|
9104
9052
|
const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
|
|
9105
9053
|
return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, active: activeActions.includes(action.id), action: action, onChange: handleOnChange, htmlType: "checkbox", formSubmitMeta: value === null || value === void 0 ? void 0 : value.form_submit_meta })));
|
|
9106
9054
|
}))))),
|
|
@@ -9124,7 +9072,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
|
|
|
9124
9072
|
const [isSubmit, setIsSubmit] = React.useState(false);
|
|
9125
9073
|
const ratingStarValue = React.useMemo(() => {
|
|
9126
9074
|
var _a;
|
|
9127
|
-
const _ratingStar = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$
|
|
9075
|
+
const _ratingStar = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type === index$3.NodeActionType.RATING_STAR);
|
|
9128
9076
|
if (value.form_submit_meta && _ratingStar) {
|
|
9129
9077
|
const formIndex = value === null || value === void 0 ? void 0 : value.form_submit_meta.findIndex(({ action_id }) => action_id === (_ratingStar === null || _ratingStar === void 0 ? void 0 : _ratingStar.id));
|
|
9130
9078
|
if (formIndex !== -1)
|
|
@@ -9134,7 +9082,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
|
|
|
9134
9082
|
}, [value === null || value === void 0 ? void 0 : value.form_submit_meta]);
|
|
9135
9083
|
const submitButton = React.useMemo(() => {
|
|
9136
9084
|
var _a;
|
|
9137
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
9085
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.RATING_BUTTON);
|
|
9138
9086
|
if (_submitButton)
|
|
9139
9087
|
return _submitButton;
|
|
9140
9088
|
return null;
|
|
@@ -9188,7 +9136,7 @@ const SubotInlineNodeRating = ({ node, indexNumber, }) => {
|
|
|
9188
9136
|
React__default["default"].createElement(SubotInlineWrapper$1, null,
|
|
9189
9137
|
React__default["default"].createElement(SubotInlineIntentContainer, null,
|
|
9190
9138
|
React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [], indexNumber: indexNumber })),
|
|
9191
|
-
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$
|
|
9139
|
+
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.RATING_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
|
|
9192
9140
|
var _a;
|
|
9193
9141
|
const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
|
|
9194
9142
|
return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, action: action, onChange: handleOnChange, value: (value &&
|
|
@@ -9247,7 +9195,7 @@ const SubotInlineNodeResultPoll = ({ node, }) => {
|
|
|
9247
9195
|
React__default["default"].createElement(SubotInlineWrapper$1, null,
|
|
9248
9196
|
React__default["default"].createElement(SubotInlineIntentContainer, null,
|
|
9249
9197
|
React__default["default"].createElement(SubotInlineIntent, { intents: (node === null || node === void 0 ? void 0 : node.intents) || [] })),
|
|
9250
|
-
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$
|
|
9198
|
+
React__default["default"].createElement(SubotInlineActionContainer, null, (node === null || node === void 0 ? void 0 : node.actions) && !!((_a = node.actions) === null || _a === void 0 ? void 0 : _a.length) && (React__default["default"].createElement(SubotInlineActionListContainer, null, (_b = node === null || node === void 0 ? void 0 : node.actions.filter(({ type }) => type !== index$3.NodeActionType.POLL_BUTTON)) === null || _b === void 0 ? void 0 : _b.map((action) => {
|
|
9251
9199
|
const NodeAction = SubotInlineActionBase[action === null || action === void 0 ? void 0 : action.type];
|
|
9252
9200
|
return (NodeAction && (React__default["default"].createElement(NodeAction, { key: action.id, action: action, htmlType: "checkbox", node_type: node === null || node === void 0 ? void 0 : node.type })));
|
|
9253
9201
|
})))))));
|
|
@@ -9273,15 +9221,15 @@ const SubotInlineNodeReview = ({ node, indexNumber, }) => {
|
|
|
9273
9221
|
const [isSubmit, setIsSubmit] = React.useState(false);
|
|
9274
9222
|
const reviewChoices = React.useMemo(() => {
|
|
9275
9223
|
var _a;
|
|
9276
|
-
return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$
|
|
9224
|
+
return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$3.NodeActionType.REVIEW_CHOICE)) || [];
|
|
9277
9225
|
}, [node === null || node === void 0 ? void 0 : node.actions]);
|
|
9278
9226
|
const reviewDescriptions = React.useMemo(() => {
|
|
9279
9227
|
var _a;
|
|
9280
|
-
return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$
|
|
9228
|
+
return ((_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.filter(({ type }) => type === index$3.NodeActionType.REVIEW_DESCRIPTION)) || [];
|
|
9281
9229
|
}, [node === null || node === void 0 ? void 0 : node.actions]);
|
|
9282
9230
|
const submitButton = React.useMemo(() => {
|
|
9283
9231
|
var _a;
|
|
9284
|
-
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$
|
|
9232
|
+
const _submitButton = (_a = node === null || node === void 0 ? void 0 : node.actions) === null || _a === void 0 ? void 0 : _a.find(({ type }) => type == index$3.NodeActionType.REVIEW_BUTTON);
|
|
9285
9233
|
if (_submitButton)
|
|
9286
9234
|
return _submitButton;
|
|
9287
9235
|
return null;
|
|
@@ -9388,7 +9336,7 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
|
9388
9336
|
const { params, onPrev, nodes, activeId } = React.useContext(SubotInlineContext);
|
|
9389
9337
|
const { formatMessage: f } = React.useContext(togetherComponentGlobalContext.TogetherComponentGlobalContext);
|
|
9390
9338
|
const handleOnChange = (action) => {
|
|
9391
|
-
if (action && action.type === index$
|
|
9339
|
+
if (action && action.type === index$3.NodeActionType.ACTION_SSO_REDIRECT) {
|
|
9392
9340
|
const currentState = {
|
|
9393
9341
|
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' }),
|
|
9394
9342
|
listNodes: nodes,
|
|
@@ -9411,7 +9359,7 @@ const SubotInlineNodeSSO = ({ node, indexNumber, }) => {
|
|
|
9411
9359
|
urlObj.searchParams.set('mode', 'inline');
|
|
9412
9360
|
urlObj.searchParams.set('source', 'subot-inline');
|
|
9413
9361
|
const returnUrl = urlObj.href;
|
|
9414
|
-
window.location.href = `${index$
|
|
9362
|
+
window.location.href = `${index$4.SSO_URL}?returnUrl=${encodeURIComponent(returnUrl)}`;
|
|
9415
9363
|
}
|
|
9416
9364
|
}
|
|
9417
9365
|
};
|
|
@@ -9445,8 +9393,8 @@ const SubotInlineNodeText = ({ node, indexNumber, }) => {
|
|
|
9445
9393
|
const handleOnChange = (action, formSubmitMeta) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
9446
9394
|
if (!action)
|
|
9447
9395
|
return;
|
|
9448
|
-
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$
|
|
9449
|
-
(action === null || action === void 0 ? void 0 : action.type) === index$
|
|
9396
|
+
const actionWithOther = (action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.USER_CHOICE_TEXT_BY_INPUT ||
|
|
9397
|
+
(action === null || action === void 0 ? void 0 : action.type) === index$3.NodeActionType.POLL_CHOICE_TEXT_BY_INPUT;
|
|
9450
9398
|
const newValue = 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, form_submit_meta: formSubmitMeta });
|
|
9451
9399
|
if (actionWithOther) {
|
|
9452
9400
|
setValue(newValue);
|
|
@@ -9509,7 +9457,7 @@ const SubotInlineNodeBase = {
|
|
|
9509
9457
|
// RESULT_REACTION = 13,
|
|
9510
9458
|
};
|
|
9511
9459
|
|
|
9512
|
-
const SubotInlineButton = styled__default["default"](index$
|
|
9460
|
+
const SubotInlineButton = styled__default["default"](index$9.Button) `
|
|
9513
9461
|
margin-top: 24px;
|
|
9514
9462
|
${utils.MediaQueries.mbUp} {
|
|
9515
9463
|
margin-top: 16px;
|
|
@@ -9518,13 +9466,13 @@ const SubotInlineButton = styled__default["default"](index$8.Button) `
|
|
|
9518
9466
|
const SubotInlineDescription = styled__default["default"].div `
|
|
9519
9467
|
margin-top: 24px;
|
|
9520
9468
|
`;
|
|
9521
|
-
const SubotInlineReview = styled__default["default"](index$
|
|
9469
|
+
const SubotInlineReview = styled__default["default"](index$e.Text) `
|
|
9522
9470
|
text-align: center;
|
|
9523
9471
|
${utils.MediaQueries.mbUp} {
|
|
9524
9472
|
text-align: left;
|
|
9525
9473
|
}
|
|
9526
9474
|
`;
|
|
9527
|
-
const SubotInlineTitle = styled__default["default"](index$
|
|
9475
|
+
const SubotInlineTitle = styled__default["default"](index$f.Heading) `
|
|
9528
9476
|
text-align: center;
|
|
9529
9477
|
margin-bottom: 8px;
|
|
9530
9478
|
|
|
@@ -9746,7 +9694,7 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9746
9694
|
const getParams = React.useCallback(() => {
|
|
9747
9695
|
var _a, _b, _c, _d;
|
|
9748
9696
|
const gaData = window.gaData;
|
|
9749
|
-
const _url = (customUrl || window.location.origin + index$
|
|
9697
|
+
const _url = (customUrl || window.location.origin + index$4.basePath) +
|
|
9750
9698
|
(togetherComponentGlobalContext.GlobalData.locale === 'tl-PH'
|
|
9751
9699
|
? articleLink.replace('fil/', '')
|
|
9752
9700
|
: articleLink);
|
|
@@ -9951,9 +9899,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9951
9899
|
if (subotLogs) {
|
|
9952
9900
|
const lastNode = subotLogs.nodes[subotLogs.nodes.length - 1];
|
|
9953
9901
|
const isComplete = [
|
|
9954
|
-
index$
|
|
9955
|
-
index$
|
|
9956
|
-
index$
|
|
9902
|
+
index$3.NodeType.FINAL,
|
|
9903
|
+
index$3.NodeType.FINAL_THANK_YOU,
|
|
9904
|
+
index$3.NodeType.FINAL_STANDARD,
|
|
9957
9905
|
].includes(lastNode.type);
|
|
9958
9906
|
if (!isComplete) {
|
|
9959
9907
|
nodes = subotLogs.nodes;
|
|
@@ -9990,9 +9938,9 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
9990
9938
|
console.log('Subot Already Loaded');
|
|
9991
9939
|
return () => undefined;
|
|
9992
9940
|
}
|
|
9993
|
-
if (!Cookies__default["default"].get(index$
|
|
9941
|
+
if (!Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)) {
|
|
9994
9942
|
index$1.checkUntilFinished({
|
|
9995
|
-
condition: () => Boolean(Cookies__default["default"].get(index$
|
|
9943
|
+
condition: () => Boolean(Cookies__default["default"].get(index$4.GA_TOKEN_COOKIE)),
|
|
9996
9944
|
finished: () => {
|
|
9997
9945
|
const params = getParams();
|
|
9998
9946
|
getFirstAPI(params);
|
|
@@ -10058,23 +10006,23 @@ const SubotInline = ({ id, isMobile, articleLink, customUrl, }) => {
|
|
|
10058
10006
|
pointerEvents: 'none',
|
|
10059
10007
|
} }),
|
|
10060
10008
|
React__default["default"].createElement(SubotInlineLoading, { isLoading: !!loading },
|
|
10061
|
-
React__default["default"].createElement(index$
|
|
10009
|
+
React__default["default"].createElement(index$b.Loading, null),
|
|
10062
10010
|
"Verifying..."),
|
|
10063
10011
|
state.nodes.map((node, index) => {
|
|
10064
10012
|
if (node.id.toString() === (state === null || state === void 0 ? void 0 : state.activeId)) {
|
|
10065
10013
|
if (node.hasOwnProperty('type')) {
|
|
10066
10014
|
let NodeComponent;
|
|
10067
10015
|
switch (node === null || node === void 0 ? void 0 : node.position) {
|
|
10068
|
-
case index$
|
|
10016
|
+
case index$3.NodePosition.SSO:
|
|
10069
10017
|
NodeComponent =
|
|
10070
|
-
SubotInlineNodeBase[index$
|
|
10018
|
+
SubotInlineNodeBase[index$3.NodePosition[node === null || node === void 0 ? void 0 : node.position].valueOf()];
|
|
10071
10019
|
break;
|
|
10072
10020
|
default:
|
|
10073
10021
|
NodeComponent =
|
|
10074
|
-
SubotInlineNodeBase[index$
|
|
10022
|
+
SubotInlineNodeBase[index$3.NodeType[node === null || node === void 0 ? void 0 : node.type].valueOf()];
|
|
10075
10023
|
}
|
|
10076
10024
|
if (node.is_multi_select &&
|
|
10077
|
-
node.type !== index$
|
|
10025
|
+
node.type !== index$3.NodeType.POLL)
|
|
10078
10026
|
NodeComponent = SubotInlineNodeBase['MULTIPLE'];
|
|
10079
10027
|
return (NodeComponent && (React__default["default"].createElement(NodeComponent, { key: index.toString(), indexNumber: index, node: node })));
|
|
10080
10028
|
}
|
|
@@ -10148,11 +10096,11 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
10148
10096
|
subotInlineClick: subotInlineClick$1,
|
|
10149
10097
|
subotInlineImpression: subotInlineImpression$1,
|
|
10150
10098
|
PATHS: PATHS$1,
|
|
10151
|
-
|
|
10152
|
-
SUBOT_CAPTCHA_FAILED_MESSAGE: SUBOT_CAPTCHA_FAILED_MESSAGE,
|
|
10153
|
-
|
|
10154
|
-
callSubotProtectedApi: callSubotProtectedApi,
|
|
10155
|
-
isSubotCaptchaForbidden: isSubotCaptchaForbidden,
|
|
10099
|
+
SUBOT_CAPTCHA_FIELD: index$2.SUBOT_CAPTCHA_FIELD,
|
|
10100
|
+
SUBOT_CAPTCHA_FAILED_MESSAGE: index$2.SUBOT_CAPTCHA_FAILED_MESSAGE,
|
|
10101
|
+
withSubotCaptcha: index$2.withSubotCaptcha,
|
|
10102
|
+
callSubotProtectedApi: index$2.callSubotProtectedApi,
|
|
10103
|
+
isSubotCaptchaForbidden: index$2.isSubotCaptchaForbidden,
|
|
10156
10104
|
SUBOT_INLINE_SSO_QUERY_KEYS: SUBOT_INLINE_SSO_QUERY_KEYS,
|
|
10157
10105
|
stripSubotInlineSsoQueryFromUrl: stripSubotInlineSsoQueryFromUrl,
|
|
10158
10106
|
buildSubotInlineSsoReturnUrl: buildSubotInlineSsoReturnUrl,
|
|
@@ -10176,6 +10124,11 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
10176
10124
|
replaceTextWithVariables: replaceTextWithVariables
|
|
10177
10125
|
});
|
|
10178
10126
|
|
|
10127
|
+
exports.SUBOT_CAPTCHA_FAILED_MESSAGE = index$2.SUBOT_CAPTCHA_FAILED_MESSAGE;
|
|
10128
|
+
exports.SUBOT_CAPTCHA_FIELD = index$2.SUBOT_CAPTCHA_FIELD;
|
|
10129
|
+
exports.callSubotProtectedApi = index$2.callSubotProtectedApi;
|
|
10130
|
+
exports.isSubotCaptchaForbidden = index$2.isSubotCaptchaForbidden;
|
|
10131
|
+
exports.withSubotCaptcha = index$2.withSubotCaptcha;
|
|
10179
10132
|
exports.TIME_RESET_RESEND_OTP = index$1.TIME_RESET_RESEND_OTP;
|
|
10180
10133
|
exports.checkMobile = index$1.checkMobile;
|
|
10181
10134
|
exports.checkUntilFinished = index$1.checkUntilFinished;
|
|
@@ -10193,8 +10146,6 @@ exports.ssoIntents = index$1.ssoIntents;
|
|
|
10193
10146
|
exports.KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD = KEY_OF_TEXT_CHOICE_WITH_OTHER_FIELD;
|
|
10194
10147
|
exports.Markdown = Markdown;
|
|
10195
10148
|
exports.PATHS = PATHS$1;
|
|
10196
|
-
exports.SUBOT_CAPTCHA_FAILED_MESSAGE = SUBOT_CAPTCHA_FAILED_MESSAGE;
|
|
10197
|
-
exports.SUBOT_CAPTCHA_HEADER = SUBOT_CAPTCHA_HEADER;
|
|
10198
10149
|
exports.SUBOT_INLINE_SSO_QUERY_KEYS = SUBOT_INLINE_SSO_QUERY_KEYS;
|
|
10199
10150
|
exports.SubotInline = SubotInline;
|
|
10200
10151
|
exports.SubotInlineIntentBase = SubotInlineIntentBase$1;
|
|
@@ -10203,7 +10154,6 @@ exports.SubotInlineRevampWithTheme = SubotInlineRevampWithTheme;
|
|
|
10203
10154
|
exports.SubotInlineVoucherLeftUI = SubotInlineVoucherLeftUI;
|
|
10204
10155
|
exports.UserInfoForm = UserInfoForm;
|
|
10205
10156
|
exports.buildSubotInlineSsoReturnUrl = buildSubotInlineSsoReturnUrl;
|
|
10206
|
-
exports.callSubotProtectedApi = callSubotProtectedApi;
|
|
10207
10157
|
exports.checkSyncDataOnFrisoCampaign = checkSyncDataOnFrisoCampaign;
|
|
10208
10158
|
exports.computeExtraSettingsForBot = computeExtraSettingsForBot$1;
|
|
10209
10159
|
exports["default"] = ContainerWithProvider;
|
|
@@ -10215,13 +10165,11 @@ exports.getCurrentTotalDynamicScore = getCurrentTotalDynamicScore;
|
|
|
10215
10165
|
exports.getDynamicScore = getDynamicScore;
|
|
10216
10166
|
exports.getPreviousStateFromStorage = getPreviousStateFromStorage;
|
|
10217
10167
|
exports.getSubotApiPath = getSubotApiPath;
|
|
10218
|
-
exports.getSubotCaptchaHeaders = getSubotCaptchaHeaders;
|
|
10219
10168
|
exports.getSubotInlineLogs = getSubotInlineLogs;
|
|
10220
10169
|
exports.handleFrisoRedirecition = handleFrisoRedirecition;
|
|
10221
10170
|
exports.hasPendingSubotInlineSsoState = hasPendingSubotInlineSsoState;
|
|
10222
10171
|
exports.hexRgb = hexRgb;
|
|
10223
10172
|
exports.isActiveSubotInlineSsoNode = isActiveSubotInlineSsoNode;
|
|
10224
|
-
exports.isSubotCaptchaForbidden = isSubotCaptchaForbidden;
|
|
10225
10173
|
exports.replaceTextWithVariables = replaceTextWithVariables;
|
|
10226
10174
|
exports.restoreSubotInlineFromSsoStorage = restoreSubotInlineFromSsoStorage;
|
|
10227
10175
|
exports.saveSubotInlineLogs = saveSubotInlineLogs;
|