@hhgtech/hhg-components 1.29.544 → 1.29.546-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-2620d1e0.js → InputDate-d5172898.js} +5 -5
- package/build/{LastPeriod-0b7452dd.js → LastPeriod-42893199.js} +1 -1
- package/build/{MobileBottomNavigationIcon-1b59d9bc.js → MobileBottomNavigationIcon-c615e0c2.js} +3 -3
- package/build/{SiteWideBanner-20c60fbd.js → SiteWideBanner-f365ca44.js} +61 -25
- package/build/{Spinner-84d3cdf0.js → Spinner-ab6f56d8.js} +1 -1
- package/build/{WhatsApp-1159dc64.js → WhatsApp-44d5c539.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +52 -51
- package/build/babyGrowth.js +86 -86
- package/build/cache.js +2 -2
- package/build/care.js +22 -22
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +19 -19
- package/build/components/molecules/pillCarousel/index.styled.d.ts +1 -1
- package/build/components/molecules/videoItem/index.d.ts +3 -1
- package/build/components/molecules/videoItem/normalizeVideoItemData.d.ts +2 -0
- package/build/components/molecules/videoItem/types.d.ts +5 -3
- package/build/components/navigationV2/applyHelloWellnessNavCategories.d.ts +22 -0
- package/build/components/navigationV2/applyHelloWellnessNavVideos.d.ts +8 -0
- package/build/components/navigationV2/components/molecules/menuVideoList/index.d.ts +2 -2
- package/build/components/navigationV2/components/molecules/menuVideoList/videoSpotlights.d.ts +2 -2
- package/build/components/navigationV2/formatHelloWellness.d.ts +3 -0
- package/build/components/navigationV2/index.d.ts +6 -2
- package/build/components/navigationV2/insertHelloWellnessMenuItem.d.ts +1 -0
- package/build/components/organisms/index.d.ts +2 -1
- package/build/components.js +110 -108
- package/build/{constants-762249c4.js → constants-b68a7fb3.js} +2 -2
- package/build/{constants-1b66eaa9.js → constants-ce783029.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-d07a5649.js → core-207aecaa.js} +1 -1
- package/build/{dataTransform-a2855b2e.js → dataTransform-ad9421da.js} +2 -1
- package/build/ecom.js +5 -5
- package/build/{editor-2c516070.js → editor-91318156.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/{InputDate-7f98bd21.js → InputDate-d8b73bcd.js} +5 -5
- package/build/esm/{LastPeriod-c84be22b.js → LastPeriod-1253397b.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-76d90292.js → MobileBottomNavigationIcon-d1a7382e.js} +3 -3
- package/build/esm/{SiteWideBanner-f124abd4.js → SiteWideBanner-07d471a4.js} +56 -20
- package/build/esm/{Spinner-d228c2bd.js → Spinner-dc3b8906.js} +1 -1
- package/build/esm/{WhatsApp-659c222b.js → WhatsApp-29b781a3.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +52 -51
- package/build/esm/babyGrowth.js +86 -86
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +22 -22
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +19 -19
- package/build/esm/components/molecules/pillCarousel/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/videoItem/index.d.ts +3 -1
- package/build/esm/components/molecules/videoItem/normalizeVideoItemData.d.ts +2 -0
- package/build/esm/components/molecules/videoItem/types.d.ts +5 -3
- package/build/esm/components/navigationV2/applyHelloWellnessNavCategories.d.ts +22 -0
- package/build/esm/components/navigationV2/applyHelloWellnessNavVideos.d.ts +8 -0
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/index.d.ts +2 -2
- package/build/esm/components/navigationV2/components/molecules/menuVideoList/videoSpotlights.d.ts +2 -2
- package/build/esm/components/navigationV2/formatHelloWellness.d.ts +3 -0
- package/build/esm/components/navigationV2/index.d.ts +6 -2
- package/build/esm/components/navigationV2/insertHelloWellnessMenuItem.d.ts +1 -0
- package/build/esm/components/organisms/index.d.ts +2 -1
- package/build/esm/components.js +108 -108
- package/build/esm/{constants-67be5c94.js → constants-53b38d20.js} +2 -2
- package/build/esm/{constants-e1af6937.js → constants-dc77a938.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-0cf3a3a7.js → core-98a99bb6.js} +1 -1
- package/build/esm/{dataTransform-35304d21.js → dataTransform-0d2e5ac0.js} +3 -2
- package/build/esm/ecom.js +5 -5
- package/build/esm/{editor-d65cf4d0.js → editor-d9bd2212.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/esm/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-304323dc.js → healthTools-ba43094e.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +20 -20
- package/build/esm/healthToolsForm.js +36 -36
- 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-eaa64027.js → index-0122c69b.js} +3 -3
- package/build/esm/{index-51f58c70.js → index-0583cfaa.js} +3 -3
- package/build/esm/{index-6fbb16f8.js → index-075677e4.js} +1 -1
- package/build/esm/{index-9c46abab.js → index-0d4bd999.js} +3 -3
- package/build/esm/{index-2d38fb02.js → index-12e62a8b.js} +18 -18
- package/build/esm/{index-960c3169.js → index-15ffc0a1.js} +1 -1
- package/build/esm/{index-a55c76ce.js → index-190b7469.js} +7 -7
- package/build/esm/{index-9ddd1558.js → index-195eb63f.js} +4 -4
- package/build/esm/{index-4b48e440.js → index-20487624.js} +2 -2
- package/build/esm/{index-9ef06f7d.js → index-204a96e0.js} +15 -14
- package/build/esm/{index-31fe400d.js → index-22feafa0.js} +16 -16
- package/build/esm/{index-7d2718d0.js → index-2b4ee0c7.js} +9 -9
- package/build/esm/{index-6fdd63a7.js → index-2ed559e9.js} +12 -12
- package/build/esm/{index-c86880ed.js → index-33089cbd.js} +25 -25
- package/build/esm/{index-f71a880f.js → index-36ad465e.js} +3 -3
- package/build/esm/{index-6fd14acd.js → index-38fe7b88.js} +341 -4
- package/build/esm/{index-d0a1200e.js → index-39e5fe7e.js} +2 -2
- package/build/esm/{index-afe90ec2.js → index-39e65f79.js} +2 -2
- package/build/esm/{index-aebd61a9.js → index-3e8c62d8.js} +2 -2
- package/build/esm/{index-bee6ed79.js → index-40782775.js} +3 -3
- package/build/esm/{index-91c6a49c.js → index-44995486.js} +1 -1
- package/build/esm/{index-e3c3ad7d.js → index-4519993d.js} +14 -14
- package/build/esm/{index-59ec1b79.js → index-489f74ae.js} +18 -18
- package/build/esm/{index-40133f69.js → index-4930d155.js} +16 -16
- package/build/esm/{index-0d2148ad.js → index-49400987.js} +15 -15
- package/build/esm/{index-c8f5f257.js → index-4b45eec3.js} +1 -1
- package/build/esm/{index-f21110d2.js → index-4c40eee1.js} +3 -3
- package/build/esm/{index-74fcf0aa.js → index-4cc4f450.js} +2 -2
- package/build/esm/{index-d0599279.js → index-4ccde302.js} +2 -2
- package/build/esm/{index-4e6b8a2b.js → index-5442537f.js} +8 -8
- package/build/esm/{index-d71a0918.js → index-5774d5c2.js} +15 -15
- package/build/esm/{index-d615e2d4.js → index-59665b82.js} +2 -2
- package/build/esm/{index-ea9dfed6.js → index-60be4bfb.js} +7 -7
- package/build/esm/{index-309f4c70.js → index-61a77621.js} +25 -25
- package/build/esm/{index-5aaa75e5.js → index-64b4971d.js} +5 -5
- package/build/esm/{index-59432dd7.js → index-674f477c.js} +6 -6
- package/build/esm/{index-8ef247f2.js → index-68c68989.js} +3 -3
- package/build/esm/{index-6f8dd7c5.js → index-6ca60e9d.js} +6 -6
- package/build/esm/{index-bcd0508c.js → index-6d1d70bc.js} +304 -122
- package/build/esm/{index-5dd44171.js → index-6d32bfab.js} +20 -20
- package/build/esm/{index-5b1ba061.js → index-743f7bdf.js} +2 -2
- package/build/esm/{index-24be25e0.js → index-78f83c2d.js} +3 -3
- package/build/esm/{index-fc085ad1.js → index-7e095c46.js} +1 -1
- package/build/esm/{index-92c3895b.js → index-8718b11c.js} +21 -21
- package/build/esm/{index-70e81356.js → index-881b2c68.js} +4 -4
- package/build/esm/{index-c3177e04.js → index-88c9be49.js} +9 -9
- package/build/esm/{index-b0680d02.js → index-8c72b74e.js} +2 -2
- package/build/esm/{index-3e2acbf5.js → index-9073e0ff.js} +14 -14
- package/build/esm/{index-8bba0d7a.js → index-95090718.js} +6 -6
- package/build/esm/{index-e8f762ab.js → index-9779df04.js} +3 -3
- package/build/esm/{index-417311da.js → index-9fddc689.js} +2 -2
- package/build/esm/{index-7601f2a1.js → index-b5d5e80e.js} +2 -2
- package/build/esm/{index-122829d2.js → index-b7201910.js} +6 -6
- package/build/esm/{index-88fafd6a.js → index-be3330b0.js} +16 -16
- package/build/esm/{index-27fc99f7.js → index-c384f93f.js} +39 -37
- package/build/esm/{index-8101d468.js → index-ccc7a9b0.js} +32 -32
- package/build/esm/{index-579b84f2.js → index-d0ae4e3e.js} +13 -13
- package/build/esm/{index-789049e6.js → index-d6cdea47.js} +14 -14
- package/build/esm/{index-1b8a552a.js → index-db243990.js} +2 -2
- package/build/esm/{index-d337e2fb.js → index-dd4c2362.js} +3 -3
- package/build/esm/{index-1a558698.js → index-de4aa661.js} +2 -2
- package/build/esm/{index-973eb541.js → index-debf8807.js} +2 -2
- package/build/esm/{index-12c0175f.js → index-e40aa208.js} +16 -16
- package/build/esm/{index-f3c67a5d.js → index-e9e3c308.js} +13 -13
- package/build/esm/{index-b6f0a56f.js → index-f1373a57.js} +1 -1
- package/build/esm/{index-d9b5d0ac.js → index-f19f503a.js} +2 -2
- package/build/esm/{index-840e2343.js → index-f25e018b.js} +16 -16
- package/build/esm/{index-41a88cf1.js → index-f735176a.js} +1 -1
- package/build/esm/{index-96c62ad5.js → index-f959b4cd.js} +2 -2
- package/build/esm/{index-354a2bb2.js → index-fd282e48.js} +22 -22
- package/build/esm/{index-a8162282.js → index-fe3d42b3.js} +2 -2
- package/build/esm/{index-06c9c29e.js → index-ff179c4c.js} +17 -17
- package/build/esm/index.css +1 -1
- package/build/esm/index.js +127 -127
- package/build/esm/interfaces/types/HelloWellness.d.ts +143 -0
- package/build/esm/interfaces/types/Video.d.ts +6 -2
- package/build/esm/interfaces/types/index.d.ts +1 -0
- package/build/esm/{labelSorting-c209d0ab.js → labelSorting-57705827.js} +4 -4
- package/build/esm/lead.js +38 -37
- package/build/esm/{logoIcon-5e351e08.js → logoIcon-4d08630e.js} +2 -2
- package/build/esm/mantine.js +27 -27
- package/build/esm/misc/normalizeLink.d.ts +1 -0
- package/build/esm/misc/promise.d.ts +10 -0
- package/build/esm/misc.js +18 -19
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +7 -8
- 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 +81 -82
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +52 -51
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +28 -27
- package/build/esm/{normalizeLink-0bc93fbf.js → normalizeLink-3197974c.js} +11 -1
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +65 -64
- package/build/esm/{post-501cfac5.js → post-8353a3c2.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2.js +31 -31
- package/build/esm/{store-b88d97b9.js → store-023575cd.js} +3 -3
- package/build/esm/subot.js +39 -40
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-ebaba467.js → surveyThankyouCard-a16fc570.js} +5 -5
- package/build/esm/together/hooks/useCaptureUrl.d.ts +3 -0
- package/build/esm/together/hooks/useCaptureUrlParams.d.ts +2 -0
- package/build/esm/together/hooks/useResolvedCaptureUrls.d.ts +2 -0
- package/build/esm/together/hooks/useSetCaptureUrlPageParams.d.ts +5 -0
- package/build/esm/together/index.d.ts +6 -0
- package/build/esm/together/interfaces/types.d.ts +2 -0
- package/build/esm/together/togetherComponentGlobalContext.d.ts +12 -1
- package/build/esm/together/utils/analytics.d.ts +2 -0
- package/build/esm/together/utils/captureUrlParams.d.ts +14 -0
- package/build/esm/together.js +60 -58
- package/build/esm/togetherApiUtils.js +13 -6
- package/build/esm/togetherAtoms.js +38 -37
- package/build/esm/togetherComponentGlobalContext.js +13 -6
- package/build/esm/togetherMolecules.js +54 -53
- package/build/esm/togetherMoleculesCardAuthor.js +31 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +21 -14
- package/build/esm/togetherMoleculesProfileDetail.js +47 -46
- package/build/esm/togetherOrganisms.js +58 -57
- package/build/esm/togetherRichTextEditor.js +28 -21
- package/build/esm/togetherShareBox.js +20 -13
- package/build/esm/{transform-a70ceaf2.js → transform-48f183b3.js} +34 -34
- package/build/esm/{translationsProvider-12ae5b8a.js → translationsProvider-3f718ff2.js} +1 -1
- package/build/esm/{treePopoverMenu-b7652f55.js → treePopoverMenu-7c431767.js} +19 -19
- package/build/esm/types-60432488.js +13 -0
- package/build/esm/types.js +2 -2
- package/build/esm/{useCartCareService-4af08500.js → useCartCareService-21412d73.js} +1 -1
- package/build/esm/{useHealthToolCache-872bf831.js → useHealthToolCache-4e931079.js} +1 -1
- package/build/esm/{usePhoneValidator-5465c728.js → usePhoneValidator-3e0760b1.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-f9f424cf.js → usePlacesAutocomplete-71721f57.js} +1 -1
- package/build/esm/useResolvedCaptureUrls-e95a1c6f.js +77 -0
- package/build/esm/useTogetherAuthRequiredAction.js +12 -10
- package/build/esm/{utils-42d7e284.js → utils-20ae0ad8.js} +2 -2
- package/build/esm/{utils-a34a4457.js → utils-42803fd5.js} +2 -2
- package/build/esm/{utils-5b0a0cb8.js → utils-68ad49a9.js} +5 -20
- package/build/esm/{utils-79b3c79f.js → utils-b1edecbc.js} +5 -5
- package/build/esm/{utils-f5ed68ed.js → utils-cf892015.js} +104 -5
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-9d73d292.js → healthTools-8ce8a656.js} +1 -1
- package/build/healthToolsCardWrapper.js +20 -20
- package/build/healthToolsForm.js +36 -36
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-da3b86cd.js → index-01cd7594.js} +1 -1
- package/build/{index-968f57c8.js → index-03439e35.js} +2 -2
- package/build/{index-9d9461f6.js → index-03555f06.js} +16 -16
- package/build/{index-e316d555.js → index-0393a38b.js} +39 -37
- package/build/{index-d11d2b22.js → index-03ebfe00.js} +13 -13
- package/build/{index-8734a3ed.js → index-0533d650.js} +25 -25
- package/build/{index-7ab0b2c3.js → index-0c9b69b9.js} +13 -13
- package/build/{index-e16b8fc3.js → index-14dcd1f0.js} +1 -1
- package/build/{index-2b5bfc0c.js → index-18c53df0.js} +2 -2
- package/build/{index-e81131be.js → index-1b717c8c.js} +15 -15
- package/build/{index-9ff64134.js → index-1f08664b.js} +18 -18
- package/build/{index-7ed6004c.js → index-241db799.js} +2 -2
- package/build/{index-9747120c.js → index-27cc1aa8.js} +2 -2
- package/build/{index-6ce6e395.js → index-2a7802e2.js} +2 -2
- package/build/{index-50fc9ea2.js → index-2e704d60.js} +3 -3
- package/build/{index-b3bc6b66.js → index-32e387fe.js} +2 -2
- package/build/{index-89f1ccd4.js → index-3613076d.js} +22 -22
- package/build/{index-e85152d0.js → index-3753dba4.js} +15 -14
- package/build/{index-93808d7e.js → index-377b60d4.js} +1 -1
- package/build/{index-c3d01be3.js → index-39a18842.js} +1 -1
- package/build/{index-f602c136.js → index-3af64a21.js} +20 -20
- package/build/{index-65d3d2a1.js → index-3c45a719.js} +15 -15
- package/build/{index-54ad7bf3.js → index-3e6bc80a.js} +337 -153
- package/build/{index-eba09ec0.js → index-3eb9104c.js} +3 -3
- package/build/{index-0805ded0.js → index-3f9827b9.js} +25 -25
- package/build/{index-3d563586.js → index-458c34cd.js} +3 -3
- package/build/{index-4dad7b3d.js → index-46b965d9.js} +14 -14
- package/build/{index-be663749.js → index-474d0b34.js} +21 -21
- package/build/{index-b3037bdc.js → index-47e9a287.js} +14 -14
- package/build/{index-4fb2e074.js → index-49014e27.js} +6 -6
- package/build/{index-992544de.js → index-4e362f5b.js} +2 -2
- package/build/{index-0dee6fc7.js → index-4e4bff10.js} +2 -2
- package/build/{index-e083a917.js → index-524bea17.js} +4 -4
- package/build/{index-17dd60b9.js → index-580c6375.js} +2 -2
- package/build/{index-0f1d64dc.js → index-589cf8b4.js} +7 -7
- package/build/{index-a02b9dd2.js → index-589edad5.js} +6 -6
- package/build/{index-63b0c985.js → index-598add42.js} +16 -16
- package/build/{index-5fc323d7.js → index-5def30b8.js} +7 -7
- package/build/{index-d54fe628.js → index-5ec53100.js} +2 -2
- package/build/{index-4fe23b62.js → index-61bc27aa.js} +16 -16
- package/build/{index-29a7579d.js → index-63fe4301.js} +3 -3
- package/build/{index-d24c85ac.js → index-6627aa63.js} +1 -1
- package/build/{index-a31ed3e1.js → index-6821a630.js} +2 -2
- package/build/{index-5b062789.js → index-860bccce.js} +17 -17
- package/build/{index-ce74fe39.js → index-87be4014.js} +18 -18
- package/build/{index-283684b8.js → index-89b6cc5d.js} +3 -3
- package/build/{index-2e0b951e.js → index-8b89055f.js} +2 -2
- package/build/{index-5098b9bf.js → index-90d1325a.js} +2 -2
- package/build/{index-97e6dd59.js → index-9f173d99.js} +3 -3
- package/build/{index-628ae6fc.js → index-a18de02d.js} +32 -32
- package/build/{index-87ed9c3a.js → index-a26514ea.js} +1 -1
- package/build/{index-b2bb8571.js → index-a649fddc.js} +3 -3
- package/build/{index-80bd2eb2.js → index-a904c4fe.js} +5 -5
- package/build/{index-16480bf7.js → index-b03300bb.js} +2 -2
- package/build/{index-4e13f8c3.js → index-b816e5a4.js} +3 -3
- package/build/{index-a11c6c43.js → index-c190d2b3.js} +6 -6
- package/build/{index-af9c3c64.js → index-c434e838.js} +2 -2
- package/build/{index-3643ff1b.js → index-c6552415.js} +1 -1
- package/build/{index-518cadb5.js → index-c9699dba.js} +16 -16
- package/build/{index-c5518397.js → index-d0222e7d.js} +9 -9
- package/build/{index-98ac1127.js → index-d374bb97.js} +2 -2
- package/build/{index-36c48054.js → index-d9bb97ac.js} +348 -10
- package/build/{index-985cec35.js → index-daf6dedd.js} +3 -3
- package/build/{index-95e46080.js → index-e39d7fed.js} +14 -14
- package/build/{index-64717354.js → index-e49710b8.js} +16 -16
- package/build/{index-7556f2cb.js → index-e511647f.js} +3 -3
- package/build/{index-8df498d5.js → index-ea6c3908.js} +4 -4
- package/build/{index-a1ca31f3.js → index-f6a12d27.js} +12 -12
- package/build/{index-1e5e2223.js → index-fbbf7190.js} +9 -9
- package/build/{index-024542ed.js → index-fcffe1fa.js} +8 -8
- package/build/{index-bc73e718.js → index-fe107c1f.js} +2 -2
- package/build/{index-729f166a.js → index-ff0decba.js} +6 -6
- package/build/index.css +1 -1
- package/build/index.js +136 -128
- package/build/interfaces/types/HelloWellness.d.ts +143 -0
- package/build/interfaces/types/Video.d.ts +6 -2
- package/build/interfaces/types/index.d.ts +1 -0
- package/build/{labelSorting-5cef27ae.js → labelSorting-c7235d21.js} +4 -4
- package/build/lead.js +38 -37
- package/build/{logoIcon-8a9f9e61.js → logoIcon-45c8907e.js} +2 -2
- package/build/mantine.js +25 -25
- package/build/misc/normalizeLink.d.ts +1 -0
- package/build/misc/promise.d.ts +10 -0
- package/build/misc.js +18 -19
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +7 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +81 -82
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +54 -51
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +28 -27
- package/build/{normalizeLink-20e290e8.js → normalizeLink-55e31d61.js} +11 -0
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +67 -64
- package/build/{post-93ff5536.js → post-638ded76.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2.js +29 -29
- package/build/{store-bb6f9909.js → store-4c79e933.js} +3 -3
- package/build/subot.js +38 -39
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-22929455.js → surveyThankyouCard-29fd05e6.js} +5 -5
- package/build/together/hooks/useCaptureUrl.d.ts +3 -0
- package/build/together/hooks/useCaptureUrlParams.d.ts +2 -0
- package/build/together/hooks/useResolvedCaptureUrls.d.ts +2 -0
- package/build/together/hooks/useSetCaptureUrlPageParams.d.ts +5 -0
- package/build/together/index.d.ts +6 -0
- package/build/together/interfaces/types.d.ts +2 -0
- package/build/together/togetherComponentGlobalContext.d.ts +12 -1
- package/build/together/utils/analytics.d.ts +2 -0
- package/build/together/utils/captureUrlParams.d.ts +14 -0
- package/build/together.js +67 -59
- package/build/togetherApiUtils.js +13 -6
- package/build/togetherAtoms.js +38 -37
- package/build/togetherComponentGlobalContext.js +13 -6
- package/build/togetherMolecules.js +54 -53
- package/build/togetherMoleculesCardAuthor.js +31 -29
- package/build/togetherMoleculesPostImagePreview.js +21 -14
- package/build/togetherMoleculesProfileDetail.js +47 -46
- package/build/togetherOrganisms.js +58 -57
- package/build/togetherRichTextEditor.js +28 -21
- package/build/togetherShareBox.js +20 -13
- package/build/{transform-52f37c86.js → transform-c9a92366.js} +34 -34
- package/build/{translationsProvider-10747450.js → translationsProvider-5b9738ac.js} +1 -1
- package/build/{treePopoverMenu-89dcd8ba.js → treePopoverMenu-65437160.js} +19 -19
- package/build/types-4ddaff10.js +16 -0
- package/build/types.js +2 -2
- package/build/{useCartCareService-35f487b0.js → useCartCareService-f5c36167.js} +1 -1
- package/build/{useHealthToolCache-d6ee00f6.js → useHealthToolCache-5946cd65.js} +1 -1
- package/build/{usePhoneValidator-56b8b062.js → usePhoneValidator-f29f3b49.js} +5 -5
- package/build/{usePlacesAutocomplete-404907fe.js → usePlacesAutocomplete-65d0f824.js} +1 -1
- package/build/useResolvedCaptureUrls-3259bc56.js +83 -0
- package/build/useTogetherAuthRequiredAction.js +12 -10
- package/build/{utils-0c8cc4cf.js → utils-0252c245.js} +5 -5
- package/build/{utils-0cc6746b.js → utils-211f191d.js} +5 -20
- package/build/{utils-7210e0bb.js → utils-52cb7cc2.js} +2 -2
- package/build/{utils-302bc65c.js → utils-6dd9bbba.js} +107 -7
- package/build/{utils-f5279ce3.js → utils-7cfa9346.js} +2 -2
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/esm/index-95942e9e.js +0 -339
- package/build/esm/types-22bdbe8f.js +0 -5
- package/build/index-3b44943e.js +0 -341
- package/build/types-58c36225.js +0 -7
- /package/build/{BMI_BOYS.percentile.monthly-92c8b42c.js → BMI_BOYS.percentile.monthly-d2d2b4da.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-1483925a.js → BMI_BOYS.percentile.weekly-b32cabd1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-233db1f2.js → BMI_BOYS.percentile.yearly-3d38e3bf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-b865eb84.js → BMI_BOYS.zscore.monthly-e505fd10.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-672e873a.js → BMI_BOYS.zscore.weekly-51c29e05.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-3e4789a2.js → BMI_BOYS.zscore.yearly-d474c236.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-635c83ca.js → BMI_GIRLS.percentile.monthly-8878ff32.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-9d39c2cb.js → BMI_GIRLS.percentile.weekly-a283fd99.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-3ecdd071.js → BMI_GIRLS.percentile.yearly-bec5a747.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-cdcb7cf7.js → BMI_GIRLS.zscore.monthly-3510f91b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-5dbe6397.js → BMI_GIRLS.zscore.weekly-b7cef969.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e4f48b83.js → BMI_GIRLS.zscore.yearly-6ea27691.js} +0 -0
- /package/build/{ChevronDown-8067b030.js → ChevronDown-d056ea04.js} +0 -0
- /package/build/{Google-d768de84.js → Google-96e1fc80.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-119dcc49.js → HEAD CIRCUM_BOYS.percentile.monthly-077ad181.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-544740ce.js → HEAD CIRCUM_BOYS.percentile.weekly-1ce280c1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-a604ec58.js → HEAD CIRCUM_BOYS.percentile.yearly-a8c231d7.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-fa3433d3.js → HEAD CIRCUM_BOYS.zscore.monthly-4ee12d23.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-d6d7a650.js → HEAD CIRCUM_BOYS.zscore.weekly-ccdcd863.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-71fe8cf0.js → HEAD CIRCUM_BOYS.zscore.yearly-acae89ae.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-4e24ca95.js → HEAD CIRCUM_GIRLS.percentile.monthly-62cdbf2c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-d2d8980c.js → HEAD CIRCUM_GIRLS.percentile.weekly-612d92c2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4cbcdd0b.js → HEAD CIRCUM_GIRLS.percentile.yearly-06200aaf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-090901a1.js → HEAD CIRCUM_GIRLS.zscore.monthly-517a24fb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a6e9a42b.js → HEAD CIRCUM_GIRLS.zscore.weekly-a5562212.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-2fa633ae.js → HEAD CIRCUM_GIRLS.zscore.yearly-1f47f421.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-4fecb89c.js → HEIGHT_BOYS.percentile.monthly-59b73b23.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-d5a2290a.js → HEIGHT_BOYS.percentile.weekly-49fd3dad.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-f71d2018.js → HEIGHT_BOYS.percentile.yearly-167d30fc.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-934f0714.js → HEIGHT_BOYS.zscore.monthly-44e58649.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-cab85975.js → HEIGHT_BOYS.zscore.weekly-d4d20b70.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f0ebd736.js → HEIGHT_BOYS.zscore.yearly-c262e29f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-ac78c58c.js → HEIGHT_GIRLS.percentile.monthly-bfd1bc06.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a0534589.js → HEIGHT_GIRLS.percentile.weekly-fdc9c661.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-90a24dff.js → HEIGHT_GIRLS.percentile.yearly-79a56205.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-37c48ed3.js → HEIGHT_GIRLS.zscore.monthly-aed97827.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ae3ec746.js → HEIGHT_GIRLS.zscore.weekly-4fa0e685.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-43c72997.js → HEIGHT_GIRLS.zscore.yearly-3fc3a12d.js} +0 -0
- /package/build/{Locale-fbe01177.js → Locale-a58a0889.js} +0 -0
- /package/build/{Visible-6c5d9e21.js → Visible-157c7a6d.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-55349075.js → WEIGHT_BOYS.percentile.monthly-eac7e17a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-2778d520.js → WEIGHT_BOYS.percentile.weekly-983f98e2.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-57ec61bc.js → WEIGHT_BOYS.percentile.yearly-265de28c.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-bca6cd92.js → WEIGHT_BOYS.zscore.monthly-1574eb98.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-5a1c8838.js → WEIGHT_BOYS.zscore.weekly-7910b043.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-9f07e21c.js → WEIGHT_BOYS.zscore.yearly-0350e227.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-e7c017eb.js → WEIGHT_GIRLS.percentile.monthly-e2a40938.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-f9d60c8b.js → WEIGHT_GIRLS.percentile.weekly-d335fe22.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-07e2ff73.js → WEIGHT_GIRLS.percentile.yearly-c060c01b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-cf9a0e61.js → WEIGHT_GIRLS.zscore.monthly-bf26f4e5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-29c4a43e.js → WEIGHT_GIRLS.zscore.weekly-e66980b0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-c828bbf0.js → WEIGHT_GIRLS.zscore.yearly-eee2f52d.js} +0 -0
- /package/build/{ageGenerate-1ce5e3a8.js → ageGenerate-fd3994cc.js} +0 -0
- /package/build/{animation-f2389c7b.js → animation-b83469f3.js} +0 -0
- /package/build/{constants-3fbd741a.js → constants-2346cf9c.js} +0 -0
- /package/build/{constants-f734b4e4.js → constants-9dfa0506.js} +0 -0
- /package/build/{constants-6d0b5b59.js → constants-d9831589.js} +0 -0
- /package/build/{context-f7fe7a26.js → context-e97168c7.js} +0 -0
- /package/build/{dataTransform-926e99a5.js → dataTransform-79b8300d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0eb61ce7.js → BMI_BOYS.percentile.monthly-282ecee1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-fc835346.js → BMI_BOYS.percentile.weekly-c6071c76.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-da4eceed.js → BMI_BOYS.percentile.yearly-4be25f67.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-2d0fd333.js → BMI_BOYS.zscore.monthly-64d42153.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f46c8cb8.js → BMI_BOYS.zscore.weekly-70f682da.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-737a60ee.js → BMI_BOYS.zscore.yearly-3f493574.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-8eb0e01b.js → BMI_GIRLS.percentile.monthly-2046b22d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-8fa258c1.js → BMI_GIRLS.percentile.weekly-2d8923d8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-23436291.js → BMI_GIRLS.percentile.yearly-97206f42.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d5d7f2fb.js → BMI_GIRLS.zscore.monthly-0a75dee3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-14ab18f0.js → BMI_GIRLS.zscore.weekly-b2bee6d1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-755cee44.js → BMI_GIRLS.zscore.yearly-7678ccb1.js} +0 -0
- /package/build/esm/{ChevronDown-8ce63f9a.js → ChevronDown-c826aaa5.js} +0 -0
- /package/build/esm/{Google-62bfe213.js → Google-873f7870.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-b2553a11.js → HEAD CIRCUM_BOYS.percentile.monthly-0e7ad122.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-cc1e20aa.js → HEAD CIRCUM_BOYS.percentile.weekly-dc4c6ff1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-8f8c8bcb.js → HEAD CIRCUM_BOYS.percentile.yearly-ebad1369.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-de1416c6.js → HEAD CIRCUM_BOYS.zscore.monthly-e3445378.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f1804f67.js → HEAD CIRCUM_BOYS.zscore.weekly-c474413c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b6844f72.js → HEAD CIRCUM_BOYS.zscore.yearly-9d766e4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-be09f9cc.js → HEAD CIRCUM_GIRLS.percentile.monthly-d65da991.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c6258e1d.js → HEAD CIRCUM_GIRLS.percentile.weekly-97f076a9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-269cfea2.js → HEAD CIRCUM_GIRLS.percentile.yearly-f473ff40.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-4b677a4a.js → HEAD CIRCUM_GIRLS.zscore.monthly-156bc0b7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-99afe5c3.js → HEAD CIRCUM_GIRLS.zscore.weekly-c1dc76d5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-613740fd.js → HEAD CIRCUM_GIRLS.zscore.yearly-877e7f5c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5a964862.js → HEIGHT_BOYS.percentile.monthly-cf53a26d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-017e3f3b.js → HEIGHT_BOYS.percentile.weekly-78a3cf04.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ce3ddc99.js → HEIGHT_BOYS.percentile.yearly-bf6e991e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-7ef4f193.js → HEIGHT_BOYS.zscore.monthly-6af15114.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-77567b89.js → HEIGHT_BOYS.zscore.weekly-4caa3f20.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-01eaedce.js → HEIGHT_BOYS.zscore.yearly-9c329a91.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-3424e1be.js → HEIGHT_GIRLS.percentile.monthly-3a5e99cb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-61d62dde.js → HEIGHT_GIRLS.percentile.weekly-e91f5497.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-0d6bea4d.js → HEIGHT_GIRLS.percentile.yearly-bb4a7b55.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-db195bec.js → HEIGHT_GIRLS.zscore.monthly-7bffe4e3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-c34a1a9f.js → HEIGHT_GIRLS.zscore.weekly-9e6d197f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-011ab0ee.js → HEIGHT_GIRLS.zscore.yearly-eff29df2.js} +0 -0
- /package/build/esm/{Locale-87b46912.js → Locale-dafe556c.js} +0 -0
- /package/build/esm/{Visible-b6a47e2b.js → Visible-fb1cab98.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-7a6d8027.js → WEIGHT_BOYS.percentile.monthly-4fdd5548.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-44e626c2.js → WEIGHT_BOYS.percentile.weekly-0500d95f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-6e443dd4.js → WEIGHT_BOYS.percentile.yearly-dddf28a2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-3f27fbef.js → WEIGHT_BOYS.zscore.monthly-37f0dcf9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e6f43ea3.js → WEIGHT_BOYS.zscore.weekly-74135a87.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-2369fe66.js → WEIGHT_BOYS.zscore.yearly-6eeb70a2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-620739f9.js → WEIGHT_GIRLS.percentile.monthly-fc88c799.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-466cccfd.js → WEIGHT_GIRLS.percentile.weekly-fb715868.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-ac671914.js → WEIGHT_GIRLS.percentile.yearly-52025d8d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-03e02ae0.js → WEIGHT_GIRLS.zscore.monthly-0267fb11.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-772ccd46.js → WEIGHT_GIRLS.zscore.weekly-3949585e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-3b4ed58b.js → WEIGHT_GIRLS.zscore.yearly-23875daf.js} +0 -0
- /package/build/esm/{ageGenerate-831f2bfd.js → ageGenerate-03810417.js} +0 -0
- /package/build/esm/{animation-d098c55f.js → animation-b04049bb.js} +0 -0
- /package/build/esm/{constants-96288a21.js → constants-0e629c31.js} +0 -0
- /package/build/esm/{constants-106f2bcb.js → constants-5f603c5c.js} +0 -0
- /package/build/esm/{constants-2f2c9886.js → constants-6564104a.js} +0 -0
- /package/build/esm/{context-e9fa0aef.js → context-1b66a34f.js} +0 -0
- /package/build/esm/{dataTransform-01707157.js → dataTransform-b51ed291.js} +0 -0
- /package/build/esm/{index-fd80d78b.js → index-1f32de60.js} +0 -0
- /package/build/esm/{index-183faa8a.js → index-56bc6c8b.js} +0 -0
- /package/build/esm/{index-43584299.js → index-89abf3e8.js} +0 -0
- /package/build/esm/{index-60f1945d.js → index-99625d22.js} +0 -0
- /package/build/esm/{index-a55fa240.js → index-be56ad67.js} +0 -0
- /package/build/esm/{index-f5f8f564.js → index-d833e00b.js} +0 -0
- /package/build/esm/{index-3942e08c.js → index-dd5bbd4f.js} +0 -0
- /package/build/esm/{index-38e03570.js → index-fe5b8d3a.js} +0 -0
- /package/build/esm/{index.styles-3ba274d2.js → index.styles-63311dd4.js} +0 -0
- /package/build/esm/{localizeNumberFormat-857f6d60.js → localizeNumberFormat-afc92556.js} +0 -0
- /package/build/esm/{number-d952dba5.js → number-88cdc203.js} +0 -0
- /package/build/esm/{paths-b9ad10a5.js → paths-a861684b.js} +0 -0
- /package/build/esm/{shared-3674950a.js → shared-1a8a2027.js} +0 -0
- /package/build/esm/{translationsContext-4de1415e.js → translationsContext-d24fab3f.js} +0 -0
- /package/build/esm/{tslib.es6-ab63fd84.js → tslib.es6-aeb83deb.js} +0 -0
- /package/build/esm/{types-e758ca0d.js → types-6876aff0.js} +0 -0
- /package/build/esm/{useOutsideClick-10e74687.js → useOutsideClick-a1378425.js} +0 -0
- /package/build/esm/{useScrollbarSize-e42d1fca.js → useScrollbarSize-9a82365c.js} +0 -0
- /package/build/esm/{useUniqueId-6d89c40a.js → useUniqueId-50b9620d.js} +0 -0
- /package/build/esm/{utils-32d7d5af.js → utils-1edbc81c.js} +0 -0
- /package/build/esm/{utils-53d796ad.js → utils-814e3729.js} +0 -0
- /package/build/{index-7d7d8dfe.js → index-13dd776e.js} +0 -0
- /package/build/{index-07c3d435.js → index-177e0db0.js} +0 -0
- /package/build/{index-59a9827e.js → index-53f509dc.js} +0 -0
- /package/build/{index-b0ce6f8f.js → index-ab1664f5.js} +0 -0
- /package/build/{index-acf80f95.js → index-d498d269.js} +0 -0
- /package/build/{index-7422b616.js → index-de885341.js} +0 -0
- /package/build/{index-edabce15.js → index-f2b78818.js} +0 -0
- /package/build/{index-4230e69a.js → index-fe0f4447.js} +0 -0
- /package/build/{index.styles-691de58f.js → index.styles-d0c1155f.js} +0 -0
- /package/build/{localizeNumberFormat-fd3ce573.js → localizeNumberFormat-0a1e695e.js} +0 -0
- /package/build/{number-800e4b9c.js → number-914e0a2f.js} +0 -0
- /package/build/{paths-b2d1698d.js → paths-c02399e7.js} +0 -0
- /package/build/{shared-60ad3e5a.js → shared-8138e65f.js} +0 -0
- /package/build/{translationsContext-78113889.js → translationsContext-9282d674.js} +0 -0
- /package/build/{tslib.es6-2c2ed574.js → tslib.es6-d943330a.js} +0 -0
- /package/build/{types-2d553dd1.js → types-7fbee213.js} +0 -0
- /package/build/{useOutsideClick-20d5ca9e.js → useOutsideClick-c251a276.js} +0 -0
- /package/build/{useScrollbarSize-2ff6d46d.js → useScrollbarSize-537e1a0b.js} +0 -0
- /package/build/{useUniqueId-18ea5b53.js → useUniqueId-6f7e0795.js} +0 -0
- /package/build/{utils-9e461f41.js → utils-a5de528d.js} +0 -0
- /package/build/{utils-b92a8b1c.js → utils-d609f225.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var constants$1 = require('./constants-
|
|
4
|
-
require('./index-
|
|
5
|
-
var index = require('./index-
|
|
3
|
+
var constants$1 = require('./constants-2346cf9c.js');
|
|
4
|
+
require('./index-2a7802e2.js');
|
|
5
|
+
var index = require('./index-01cd7594.js');
|
|
6
6
|
var formatString = require('string-format');
|
|
7
|
-
var constants = require('./constants-
|
|
7
|
+
var constants = require('./constants-9dfa0506.js');
|
|
8
8
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -168,22 +168,7 @@ const checkAvailableSpotlight = (spotlight) => {
|
|
|
168
168
|
const formatVideoItem = (data) => {
|
|
169
169
|
if (typeof data === 'undefined' || !data)
|
|
170
170
|
return null;
|
|
171
|
-
return {
|
|
172
|
-
id: data.ID || '',
|
|
173
|
-
videoId: data.video_id || '',
|
|
174
|
-
url: data.video_url || '',
|
|
175
|
-
title: data.video_title || '',
|
|
176
|
-
type: data.type || index.VideoType.VIDEO,
|
|
177
|
-
totalView: data.total_view || 0,
|
|
178
|
-
description: data.description || '',
|
|
179
|
-
createTime: data.create_time || '',
|
|
180
|
-
duration: data.duration || 0,
|
|
181
|
-
image: data.image || '',
|
|
182
|
-
imageMedium: data.image_medium || '',
|
|
183
|
-
imageThumbnail: data.image_thumbnail || '',
|
|
184
|
-
active: false,
|
|
185
|
-
articleLink: data.article_link || '',
|
|
186
|
-
};
|
|
171
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ id: data.ID || '', videoId: data.video_id || '', url: data.video_url || '', title: data.video_title || '', type: data.type || index.VideoType.VIDEO }, (data.total_view > 0 ? { totalView: data.total_view } : {})), { description: data.description || '', createTime: data.create_time || '' }), (data.duration > 0 ? { duration: data.duration } : {})), { image: data.image || '', imageMedium: data.image_medium || '', imageThumbnail: data.image_thumbnail || '', active: false, articleLink: data.article_link || '' });
|
|
187
172
|
};
|
|
188
173
|
function hexToRgb(hex, returnObj = false) {
|
|
189
174
|
let alpha = false, h = hex.slice(hex.startsWith('#') ? 1 : 0);
|
|
@@ -1,20 +1,68 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-d943330a.js');
|
|
4
|
+
var index$1 = require('./index-d9bb97ac.js');
|
|
5
5
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
6
6
|
var slugify = require('slugify');
|
|
7
7
|
var constantsIsProduction = require('./constantsIsProduction.js');
|
|
8
8
|
var formatString = require('string-format');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var togetherApiPaths = require('./togetherApiPaths.js');
|
|
11
|
-
var constants = require('./constants-
|
|
11
|
+
var constants = require('./constants-b68a7fb3.js');
|
|
12
|
+
var Cookies = require('js-cookie');
|
|
13
|
+
var index = require('./index-2a7802e2.js');
|
|
12
14
|
|
|
13
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
14
16
|
|
|
15
17
|
var slugify__default = /*#__PURE__*/_interopDefault(slugify);
|
|
16
18
|
var formatString__default = /*#__PURE__*/_interopDefault(formatString);
|
|
17
19
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
20
|
+
var Cookies__default = /*#__PURE__*/_interopDefault(Cookies);
|
|
21
|
+
|
|
22
|
+
const GEOJS_COUNTRY_API = 'https://get.geojs.io/v1/ip/country.json';
|
|
23
|
+
let cachedCountryFromUserIp = null;
|
|
24
|
+
let countryFromUserIpPromise = null;
|
|
25
|
+
function getGaClientId() {
|
|
26
|
+
if (typeof window === 'undefined')
|
|
27
|
+
return '';
|
|
28
|
+
const gaClientId = Cookies__default["default"].get(index.GA_TOKEN_COOKIE) || '';
|
|
29
|
+
if (!gaClientId)
|
|
30
|
+
return '';
|
|
31
|
+
try {
|
|
32
|
+
return gaClientId;
|
|
33
|
+
}
|
|
34
|
+
catch (_a) {
|
|
35
|
+
return '';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function fetchCountryFromUserIp() {
|
|
39
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (cachedCountryFromUserIp !== null) {
|
|
41
|
+
return cachedCountryFromUserIp;
|
|
42
|
+
}
|
|
43
|
+
if (typeof window === 'undefined') {
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
if (!countryFromUserIpPromise) {
|
|
47
|
+
countryFromUserIpPromise = fetch(GEOJS_COUNTRY_API)
|
|
48
|
+
.then((res) => {
|
|
49
|
+
if (!res.ok) {
|
|
50
|
+
throw new Error(`geojs responded with ${res.status}`);
|
|
51
|
+
}
|
|
52
|
+
return res.json();
|
|
53
|
+
})
|
|
54
|
+
.then((data) => {
|
|
55
|
+
cachedCountryFromUserIp = (data.country || '').toLowerCase();
|
|
56
|
+
return cachedCountryFromUserIp;
|
|
57
|
+
})
|
|
58
|
+
.catch(() => '')
|
|
59
|
+
.finally(() => {
|
|
60
|
+
countryFromUserIpPromise = null;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return countryFromUserIpPromise;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
18
66
|
|
|
19
67
|
const DefaultComponentGlobalContextData = {
|
|
20
68
|
locale: 'vi-VN',
|
|
@@ -39,14 +87,60 @@ exports.GlobalData = DefaultComponentGlobalContextData;
|
|
|
39
87
|
const TogetherComponentGlobalContextProvider = ({ locale = 'vi-VN', children, userInfo, router, env = {
|
|
40
88
|
isMarryBaby: false,
|
|
41
89
|
togetherBasePath: '/community',
|
|
42
|
-
}, sanitizeFunction = (s) => s, pushNotifications = () => false, formatMessage, }) => {
|
|
90
|
+
}, sanitizeFunction = (s) => s, pushNotifications = () => false, formatMessage, helloWellnessEnabled, }) => {
|
|
43
91
|
const [togetherUserId, setTogetherUserId] = React.useState();
|
|
92
|
+
const [gaClientId, setGaClientId] = React.useState('');
|
|
93
|
+
const [countryFromUserIp, setCountryFromUserIp] = React.useState('');
|
|
94
|
+
const [articleId, setArticleId] = React.useState('');
|
|
95
|
+
const [categorySlug, setCategorySlug] = React.useState('');
|
|
96
|
+
const [utmMedium, setUtmMedium] = React.useState('');
|
|
97
|
+
const setCaptureUrlPageParams = React.useCallback((params) => {
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
setArticleId((_a = params.articleId) !== null && _a !== void 0 ? _a : '');
|
|
100
|
+
setCategorySlug((_b = params.categorySlug) !== null && _b !== void 0 ? _b : '');
|
|
101
|
+
setUtmMedium((_c = params.utmMedium) !== null && _c !== void 0 ? _c : '');
|
|
102
|
+
}, []);
|
|
103
|
+
React.useEffect(() => {
|
|
104
|
+
const syncGaClientId = () => {
|
|
105
|
+
const nextGaClientId = getGaClientId();
|
|
106
|
+
if (nextGaClientId) {
|
|
107
|
+
setGaClientId(nextGaClientId);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
if (!getGaClientId()) {
|
|
111
|
+
index$1.checkUntilFinished({
|
|
112
|
+
condition: () => Boolean(getGaClientId()),
|
|
113
|
+
finished: syncGaClientId,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
syncGaClientId();
|
|
118
|
+
}
|
|
119
|
+
}, []);
|
|
120
|
+
React.useEffect(() => {
|
|
121
|
+
if (!helloWellnessEnabled)
|
|
122
|
+
return;
|
|
123
|
+
let cancelled = false;
|
|
124
|
+
fetchCountryFromUserIp().then((nextCountryFromUserIp) => {
|
|
125
|
+
if (cancelled || !nextCountryFromUserIp)
|
|
126
|
+
return;
|
|
127
|
+
setCountryFromUserIp(nextCountryFromUserIp);
|
|
128
|
+
});
|
|
129
|
+
return () => {
|
|
130
|
+
cancelled = true;
|
|
131
|
+
};
|
|
132
|
+
}, [helloWellnessEnabled]);
|
|
44
133
|
exports.GlobalData = {
|
|
45
134
|
userInfo,
|
|
46
135
|
locale,
|
|
47
136
|
togetherUserId,
|
|
48
137
|
router,
|
|
49
138
|
env,
|
|
139
|
+
gaClientId,
|
|
140
|
+
countryFromUserIp,
|
|
141
|
+
articleId,
|
|
142
|
+
categorySlug,
|
|
143
|
+
utmMedium,
|
|
50
144
|
};
|
|
51
145
|
React.useEffect(() => {
|
|
52
146
|
if (userInfo === null || userInfo === void 0 ? void 0 : userInfo.id) {
|
|
@@ -65,10 +159,16 @@ const TogetherComponentGlobalContextProvider = ({ locale = 'vi-VN', children, us
|
|
|
65
159
|
togetherUserId,
|
|
66
160
|
router,
|
|
67
161
|
env,
|
|
162
|
+
gaClientId,
|
|
163
|
+
countryFromUserIp,
|
|
164
|
+
articleId,
|
|
165
|
+
categorySlug,
|
|
166
|
+
utmMedium,
|
|
68
167
|
},
|
|
69
168
|
action: {
|
|
70
169
|
pushNotifications,
|
|
71
170
|
sanitizeFunction,
|
|
171
|
+
setCaptureUrlPageParams,
|
|
72
172
|
},
|
|
73
173
|
formatMessage,
|
|
74
174
|
} }, children));
|
|
@@ -224,7 +324,7 @@ const callApiWithOptionalAuth = (urlData, method = 'GET', options, reqCookie) =>
|
|
|
224
324
|
try {
|
|
225
325
|
const url = typeof urlData === 'string' ? urlData : urlData.url;
|
|
226
326
|
const backupUrl = typeof urlData === 'string' ? urlData : urlData.backupUrl;
|
|
227
|
-
const parsedCookie = index.cookie.parse(reqCookie || '');
|
|
327
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
228
328
|
const token = parsedCookie[constants.BEARER_TOKEN_COOKIE];
|
|
229
329
|
const cookie = token || miscCookieHelper.getCookie(constants.BEARER_TOKEN_COOKIE);
|
|
230
330
|
if (cookie && cookie.length) {
|
|
@@ -261,7 +361,7 @@ const callApiWithOptionalAuth = (urlData, method = 'GET', options, reqCookie) =>
|
|
|
261
361
|
});
|
|
262
362
|
const callApiWithAuth = (url, method, options, reqCookie) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
263
363
|
try {
|
|
264
|
-
const parsedCookie = index.cookie.parse(reqCookie || '');
|
|
364
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
265
365
|
const token = parsedCookie[constants.BEARER_TOKEN_COOKIE];
|
|
266
366
|
const cookie = token || miscCookieHelper.getCookie(constants.BEARER_TOKEN_COOKIE);
|
|
267
367
|
if (cookie && cookie.length) {
|
|
@@ -278,7 +378,7 @@ const callApiWithAuth = (url, method, options, reqCookie) => tslib_es6.__awaiter
|
|
|
278
378
|
});
|
|
279
379
|
const callApiWithAdminAuth = (url, method, options, reqCookie) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
280
380
|
try {
|
|
281
|
-
const parsedCookie = index.cookie.parse(reqCookie || '');
|
|
381
|
+
const parsedCookie = index$1.cookie.parse(reqCookie || '');
|
|
282
382
|
const token = parsedCookie[constants.BEARER_ADMIN_TOKEN_COOKIE];
|
|
283
383
|
const cookie = token || miscCookieHelper.getCookie(constants.BEARER_ADMIN_TOKEN_COOKIE);
|
|
284
384
|
if (cookie && cookie.length) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-2a7802e2.js');
|
|
5
5
|
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
6
6
|
var styled = require('@emotion/styled');
|
|
7
7
|
var miscTheme = require('./miscTheme.js');
|
|
8
|
-
var utils = require('./utils-
|
|
8
|
+
var utils = require('./utils-d609f225.js');
|
|
9
9
|
var Skeleton = require('react-loading-skeleton');
|
|
10
10
|
var formatString = require('string-format');
|
|
11
11
|
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
package/build/vaccination.js
CHANGED
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-d943330a.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var core = require('@mantine/core');
|
|
8
|
-
var index$5 = require('./index-
|
|
8
|
+
var index$5 = require('./index-fbbf7190.js');
|
|
9
9
|
require('@mantine/dates');
|
|
10
|
-
require('./index-
|
|
11
|
-
var index$7 = require('./index-
|
|
12
|
-
require('./index-
|
|
13
|
-
var index$3 = require('./index-
|
|
14
|
-
var index$2 = require('./index-
|
|
15
|
-
var index$1 = require('./index-
|
|
10
|
+
require('./index-2a7802e2.js');
|
|
11
|
+
var index$7 = require('./index-01cd7594.js');
|
|
12
|
+
require('./index-ab1664f5.js');
|
|
13
|
+
var index$3 = require('./index-fcffe1fa.js');
|
|
14
|
+
var index$2 = require('./index-6821a630.js');
|
|
15
|
+
var index$1 = require('./index-458c34cd.js');
|
|
16
16
|
var miscTheme = require('./miscTheme.js');
|
|
17
|
-
require('./index-
|
|
18
|
-
require('./index.styles-
|
|
19
|
-
var index = require('./index-
|
|
17
|
+
require('./index-53f509dc.js');
|
|
18
|
+
require('./index.styles-d0c1155f.js');
|
|
19
|
+
var index = require('./index-c6552415.js');
|
|
20
20
|
var hooks = require('@mantine/hooks');
|
|
21
|
-
var utils = require('./utils-
|
|
22
|
-
require('./index-
|
|
21
|
+
var utils = require('./utils-d609f225.js');
|
|
22
|
+
require('./index-3eb9104c.js');
|
|
23
23
|
var styled = require('@emotion/styled');
|
|
24
|
-
var index$4 = require('./index-
|
|
25
|
-
require('./translationsContext-
|
|
24
|
+
var index$4 = require('./index-d498d269.js');
|
|
25
|
+
require('./translationsContext-9282d674.js');
|
|
26
26
|
var other = require('@hhgtech/icons/other');
|
|
27
|
-
var index$6 = require('./index-
|
|
28
|
-
var index$8 = require('./index-
|
|
27
|
+
var index$6 = require('./index-c434e838.js');
|
|
28
|
+
var index$8 = require('./index-b03300bb.js');
|
|
29
29
|
var form = require('@mantine/form');
|
|
30
30
|
var dayjs = require('dayjs');
|
|
31
31
|
var customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
32
|
-
var index$a = require('./index-
|
|
33
|
-
var index$9 = require('./index-
|
|
32
|
+
var index$a = require('./index-c190d2b3.js');
|
|
33
|
+
var index$9 = require('./index-5ec53100.js');
|
|
34
34
|
require('@mantine/carousel');
|
|
35
|
-
require('./shared-
|
|
35
|
+
require('./shared-8138e65f.js');
|
|
36
36
|
require('classnames');
|
|
37
37
|
require('uuid');
|
|
38
|
-
require('./useUniqueId-
|
|
38
|
+
require('./useUniqueId-6f7e0795.js');
|
|
39
39
|
require('./constantsSite.js');
|
|
40
|
-
require('./Locale-
|
|
40
|
+
require('./Locale-a58a0889.js');
|
|
41
41
|
require('@emotion/react');
|
|
42
42
|
require('@hhgtech/icons/core');
|
|
43
43
|
require('date-fns/locale');
|
package/package.json
CHANGED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* cookie
|
|
3
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Module exports.
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
var parse_1 = parse;
|
|
14
|
-
var serialize_1 = serialize;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Module variables.
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
var __toString = Object.prototype.toString;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* RegExp to match cookie-name in RFC 6265 sec 4.1.1
|
|
25
|
-
* This refers out to the obsoleted definition of token in RFC 2616 sec 2.2
|
|
26
|
-
* which has been replaced by the token definition in RFC 7230 appendix B.
|
|
27
|
-
*
|
|
28
|
-
* cookie-name = token
|
|
29
|
-
* token = 1*tchar
|
|
30
|
-
* tchar = "!" / "#" / "$" / "%" / "&" / "'" /
|
|
31
|
-
* "*" / "+" / "-" / "." / "^" / "_" /
|
|
32
|
-
* "`" / "|" / "~" / DIGIT / ALPHA
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
var cookieNameRegExp = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* RegExp to match cookie-value in RFC 6265 sec 4.1.1
|
|
39
|
-
*
|
|
40
|
-
* cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
|
|
41
|
-
* cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
42
|
-
* ; US-ASCII characters excluding CTLs,
|
|
43
|
-
* ; whitespace DQUOTE, comma, semicolon,
|
|
44
|
-
* ; and backslash
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
var cookieValueRegExp = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* RegExp to match domain-value in RFC 6265 sec 4.1.1
|
|
51
|
-
*
|
|
52
|
-
* domain-value = <subdomain>
|
|
53
|
-
* ; defined in [RFC1034], Section 3.5, as
|
|
54
|
-
* ; enhanced by [RFC1123], Section 2.1
|
|
55
|
-
* <subdomain> = <label> | <subdomain> "." <label>
|
|
56
|
-
* <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]
|
|
57
|
-
* Labels must be 63 characters or less.
|
|
58
|
-
* 'let-dig' not 'letter' in the first char, per RFC1123
|
|
59
|
-
* <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>
|
|
60
|
-
* <let-dig-hyp> = <let-dig> | "-"
|
|
61
|
-
* <let-dig> = <letter> | <digit>
|
|
62
|
-
* <letter> = any one of the 52 alphabetic characters A through Z in
|
|
63
|
-
* upper case and a through z in lower case
|
|
64
|
-
* <digit> = any one of the ten digits 0 through 9
|
|
65
|
-
*
|
|
66
|
-
* Keep support for leading dot: https://github.com/jshttp/cookie/issues/173
|
|
67
|
-
*
|
|
68
|
-
* > (Note that a leading %x2E ("."), if present, is ignored even though that
|
|
69
|
-
* character is not permitted, but a trailing %x2E ("."), if present, will
|
|
70
|
-
* cause the user agent to ignore the attribute.)
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
var domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* RegExp to match path-value in RFC 6265 sec 4.1.1
|
|
77
|
-
*
|
|
78
|
-
* path-value = <any CHAR except CTLs or ";">
|
|
79
|
-
* CHAR = %x01-7F
|
|
80
|
-
* ; defined in RFC 5234 appendix B.1
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
var pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Parse a cookie header.
|
|
87
|
-
*
|
|
88
|
-
* Parse the given cookie header string into an object
|
|
89
|
-
* The object has the various cookies as keys(names) => values
|
|
90
|
-
*
|
|
91
|
-
* @param {string} str
|
|
92
|
-
* @param {object} [opt]
|
|
93
|
-
* @return {object}
|
|
94
|
-
* @public
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
function parse(str, opt) {
|
|
98
|
-
if (typeof str !== 'string') {
|
|
99
|
-
throw new TypeError('argument str must be a string');
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
var obj = {};
|
|
103
|
-
var len = str.length;
|
|
104
|
-
// RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.
|
|
105
|
-
if (len < 2) return obj;
|
|
106
|
-
|
|
107
|
-
var dec = (opt && opt.decode) || decode;
|
|
108
|
-
var index = 0;
|
|
109
|
-
var eqIdx = 0;
|
|
110
|
-
var endIdx = 0;
|
|
111
|
-
|
|
112
|
-
do {
|
|
113
|
-
eqIdx = str.indexOf('=', index);
|
|
114
|
-
if (eqIdx === -1) break; // No more cookie pairs.
|
|
115
|
-
|
|
116
|
-
endIdx = str.indexOf(';', index);
|
|
117
|
-
|
|
118
|
-
if (endIdx === -1) {
|
|
119
|
-
endIdx = len;
|
|
120
|
-
} else if (eqIdx > endIdx) {
|
|
121
|
-
// backtrack on prior semicolon
|
|
122
|
-
index = str.lastIndexOf(';', eqIdx - 1) + 1;
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
var keyStartIdx = startIndex(str, index, eqIdx);
|
|
127
|
-
var keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
|
|
128
|
-
var key = str.slice(keyStartIdx, keyEndIdx);
|
|
129
|
-
|
|
130
|
-
// only assign once
|
|
131
|
-
if (!obj.hasOwnProperty(key)) {
|
|
132
|
-
var valStartIdx = startIndex(str, eqIdx + 1, endIdx);
|
|
133
|
-
var valEndIdx = endIndex(str, endIdx, valStartIdx);
|
|
134
|
-
|
|
135
|
-
if (str.charCodeAt(valStartIdx) === 0x22 /* " */ && str.charCodeAt(valEndIdx - 1) === 0x22 /* " */) {
|
|
136
|
-
valStartIdx++;
|
|
137
|
-
valEndIdx--;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
var val = str.slice(valStartIdx, valEndIdx);
|
|
141
|
-
obj[key] = tryDecode(val, dec);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
index = endIdx + 1;
|
|
145
|
-
} while (index < len);
|
|
146
|
-
|
|
147
|
-
return obj;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function startIndex(str, index, max) {
|
|
151
|
-
do {
|
|
152
|
-
var code = str.charCodeAt(index);
|
|
153
|
-
if (code !== 0x20 /* */ && code !== 0x09 /* \t */) return index;
|
|
154
|
-
} while (++index < max);
|
|
155
|
-
return max;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function endIndex(str, index, min) {
|
|
159
|
-
while (index > min) {
|
|
160
|
-
var code = str.charCodeAt(--index);
|
|
161
|
-
if (code !== 0x20 /* */ && code !== 0x09 /* \t */) return index + 1;
|
|
162
|
-
}
|
|
163
|
-
return min;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Serialize data into a cookie header.
|
|
168
|
-
*
|
|
169
|
-
* Serialize a name value pair into a cookie string suitable for
|
|
170
|
-
* http headers. An optional options object specifies cookie parameters.
|
|
171
|
-
*
|
|
172
|
-
* serialize('foo', 'bar', { httpOnly: true })
|
|
173
|
-
* => "foo=bar; httpOnly"
|
|
174
|
-
*
|
|
175
|
-
* @param {string} name
|
|
176
|
-
* @param {string} val
|
|
177
|
-
* @param {object} [opt]
|
|
178
|
-
* @return {string}
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
function serialize(name, val, opt) {
|
|
183
|
-
var enc = (opt && opt.encode) || encodeURIComponent;
|
|
184
|
-
|
|
185
|
-
if (typeof enc !== 'function') {
|
|
186
|
-
throw new TypeError('option encode is invalid');
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (!cookieNameRegExp.test(name)) {
|
|
190
|
-
throw new TypeError('argument name is invalid');
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
var value = enc(val);
|
|
194
|
-
|
|
195
|
-
if (!cookieValueRegExp.test(value)) {
|
|
196
|
-
throw new TypeError('argument val is invalid');
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
var str = name + '=' + value;
|
|
200
|
-
if (!opt) return str;
|
|
201
|
-
|
|
202
|
-
if (null != opt.maxAge) {
|
|
203
|
-
var maxAge = Math.floor(opt.maxAge);
|
|
204
|
-
|
|
205
|
-
if (!isFinite(maxAge)) {
|
|
206
|
-
throw new TypeError('option maxAge is invalid')
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
str += '; Max-Age=' + maxAge;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (opt.domain) {
|
|
213
|
-
if (!domainValueRegExp.test(opt.domain)) {
|
|
214
|
-
throw new TypeError('option domain is invalid');
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
str += '; Domain=' + opt.domain;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (opt.path) {
|
|
221
|
-
if (!pathValueRegExp.test(opt.path)) {
|
|
222
|
-
throw new TypeError('option path is invalid');
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
str += '; Path=' + opt.path;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (opt.expires) {
|
|
229
|
-
var expires = opt.expires;
|
|
230
|
-
|
|
231
|
-
if (!isDate(expires) || isNaN(expires.valueOf())) {
|
|
232
|
-
throw new TypeError('option expires is invalid');
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
str += '; Expires=' + expires.toUTCString();
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (opt.httpOnly) {
|
|
239
|
-
str += '; HttpOnly';
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
if (opt.secure) {
|
|
243
|
-
str += '; Secure';
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
if (opt.partitioned) {
|
|
247
|
-
str += '; Partitioned';
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
if (opt.priority) {
|
|
251
|
-
var priority = typeof opt.priority === 'string'
|
|
252
|
-
? opt.priority.toLowerCase() : opt.priority;
|
|
253
|
-
|
|
254
|
-
switch (priority) {
|
|
255
|
-
case 'low':
|
|
256
|
-
str += '; Priority=Low';
|
|
257
|
-
break
|
|
258
|
-
case 'medium':
|
|
259
|
-
str += '; Priority=Medium';
|
|
260
|
-
break
|
|
261
|
-
case 'high':
|
|
262
|
-
str += '; Priority=High';
|
|
263
|
-
break
|
|
264
|
-
default:
|
|
265
|
-
throw new TypeError('option priority is invalid')
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (opt.sameSite) {
|
|
270
|
-
var sameSite = typeof opt.sameSite === 'string'
|
|
271
|
-
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
272
|
-
|
|
273
|
-
switch (sameSite) {
|
|
274
|
-
case true:
|
|
275
|
-
str += '; SameSite=Strict';
|
|
276
|
-
break;
|
|
277
|
-
case 'lax':
|
|
278
|
-
str += '; SameSite=Lax';
|
|
279
|
-
break;
|
|
280
|
-
case 'strict':
|
|
281
|
-
str += '; SameSite=Strict';
|
|
282
|
-
break;
|
|
283
|
-
case 'none':
|
|
284
|
-
str += '; SameSite=None';
|
|
285
|
-
break;
|
|
286
|
-
default:
|
|
287
|
-
throw new TypeError('option sameSite is invalid');
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
return str;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* URL-decode string value. Optimized to skip native call when no %.
|
|
296
|
-
*
|
|
297
|
-
* @param {string} str
|
|
298
|
-
* @returns {string}
|
|
299
|
-
*/
|
|
300
|
-
|
|
301
|
-
function decode (str) {
|
|
302
|
-
return str.indexOf('%') !== -1
|
|
303
|
-
? decodeURIComponent(str)
|
|
304
|
-
: str
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Determine if value is a Date.
|
|
309
|
-
*
|
|
310
|
-
* @param {*} val
|
|
311
|
-
* @private
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
function isDate (val) {
|
|
315
|
-
return __toString.call(val) === '[object Date]';
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Try decoding a string using a decoding function.
|
|
320
|
-
*
|
|
321
|
-
* @param {string} str
|
|
322
|
-
* @param {function} decode
|
|
323
|
-
* @private
|
|
324
|
-
*/
|
|
325
|
-
|
|
326
|
-
function tryDecode(str, decode) {
|
|
327
|
-
try {
|
|
328
|
-
return decode(str);
|
|
329
|
-
} catch (e) {
|
|
330
|
-
return str;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
var cookie = {
|
|
335
|
-
parse: parse_1,
|
|
336
|
-
serialize: serialize_1
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
export { cookie as c };
|