@envive-ai/react-hooks 0.1.0
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/LICENSE +2 -0
- package/README.md +2 -0
- package/dist/GridInsertionService-CEYo9pGj.js +22 -0
- package/dist/GridInsertionService-CS_bnPh0.cjs +28 -0
- package/dist/bandolier-Ble8jEa8.js +1221 -0
- package/dist/bandolier-Bm2xAt_j.cjs +1221 -0
- package/dist/carpe-Da7b-LCW.cjs +599 -0
- package/dist/carpe-W13mhRRP.js +597 -0
- package/dist/cdnService-CZ-aXcY6.cjs +23 -0
- package/dist/cdnService-zQfKk3Eb.js +18 -0
- package/dist/chatElementDisplayLocation-CX8fuNao.d.cts +239 -0
- package/dist/chatElementDisplayLocation-CwptS9tx.d.ts +239 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/contexts/index.cjs +13 -0
- package/dist/contexts/index.d.cts +65 -0
- package/dist/contexts/index.d.ts +66 -0
- package/dist/contexts/index.js +7 -0
- package/dist/contexts-BRjfVq_k.js +5064 -0
- package/dist/contexts-BYArqZtK.cjs +5164 -0
- package/dist/coterie-3y0D9ko4.cjs +229 -0
- package/dist/coterie-DOWcJAYv.js +229 -0
- package/dist/custservice-types-CFIFwZ-r.js +10 -0
- package/dist/custservice-types-CkfxZiHY.cjs +16 -0
- package/dist/default-C2fEZKXk.js +175 -0
- package/dist/default-CBUq6Q6G.cjs +4 -0
- package/dist/default-CGIFZK6m.js +4 -0
- package/dist/default-D_KPZdPJ.cjs +198 -0
- package/dist/divIds-Bss-btao.js +49 -0
- package/dist/divIds-DnZNd7rA.cjs +223 -0
- package/dist/dreamlandBaby-DCIsuU9R.cjs +338 -0
- package/dist/dreamlandBaby-DvSaZGrz.js +338 -0
- package/dist/entrypoints-D_JUvkgy.cjs +18 -0
- package/dist/entrypoints-YLQsbBRD.js +6 -0
- package/dist/enviveConfigContext-CUGLpPGU.js +34 -0
- package/dist/enviveConfigContext-Dfr2VH6u.cjs +48 -0
- package/dist/fiveCbd-B1SESMCO.js +605 -0
- package/dist/fiveCbd-CkOlVby_.cjs +605 -0
- package/dist/forLoveAndLemons-CfYPMnKS.cjs +660 -0
- package/dist/forLoveAndLemons-DmwYZIk0.js +658 -0
- package/dist/greenpan-Bsl3ir59.cjs +389 -0
- package/dist/greenpan-BtOi45lf.js +389 -0
- package/dist/grooveLife-6_dtYsRk.js +334 -0
- package/dist/grooveLife-Cmm1PSCL.cjs +334 -0
- package/dist/homegrownCannabis-C-kw-74X.js +400 -0
- package/dist/homegrownCannabis-CO0uY_mp.cjs +400 -0
- package/dist/hooks/index.cjs +16 -0
- package/dist/hooks/index.d.cts +357 -0
- package/dist/hooks/index.d.ts +357 -0
- package/dist/hooks/index.js +7 -0
- package/dist/jackArcher-CLVmwwpI.js +719 -0
- package/dist/jackArcher-DdYTIzAV.cjs +719 -0
- package/dist/jordanCraig-Am-Oor-O.js +1778 -0
- package/dist/jordanCraig-_u3-w4Hp.cjs +1778 -0
- package/dist/kindredBravely-CWovIDSc.cjs +482 -0
- package/dist/kindredBravely-eWp-ud_E.js +482 -0
- package/dist/kutFromTheKloth-BMV4BuGQ.js +361 -0
- package/dist/kutFromTheKloth-Q589bAOC.cjs +361 -0
- package/dist/larryAndSerges-BMUlTgI-.js +252 -0
- package/dist/larryAndSerges-CEau764j.cjs +252 -0
- package/dist/leapsAndRebounds-DGMzPO7T.js +352 -0
- package/dist/leapsAndRebounds-DHAtRTJD.cjs +352 -0
- package/dist/logger-Dln20ans.cjs +25 -0
- package/dist/logger-pdEEY8T2.js +19 -0
- package/dist/longevityrx-CZW8Hxzi.cjs +312 -0
- package/dist/longevityrx-jH2JLhNH.js +312 -0
- package/dist/lookOptic-BGXP5P_V.js +274 -0
- package/dist/lookOptic-CA6RwLbG.cjs +274 -0
- package/dist/mantraBrand-Cm9_PBCT.js +742 -0
- package/dist/mantraBrand-DByNqpnL.cjs +742 -0
- package/dist/medterra-B0wxj_PV.js +575 -0
- package/dist/medterra-DnPN2ksU.cjs +575 -0
- package/dist/modells-Bmz8Ag5M.js +476 -0
- package/dist/modells-CoYgkLSp.cjs +476 -0
- package/dist/models-DHdb7QWn.js +51 -0
- package/dist/models-ixxUsGL_.cjs +69 -0
- package/dist/pressedFloral-DSKs_oVG.js +653 -0
- package/dist/pressedFloral-DjBiSoUl.cjs +653 -0
- package/dist/skinPerfection-B_3xzVNS.cjs +326 -0
- package/dist/skinPerfection-IDrBuAPt.js +326 -0
- package/dist/snapSupplements-BJk5T5ba.js +277 -0
- package/dist/snapSupplements-BStTsdOZ.cjs +277 -0
- package/dist/socialProofClasses-Bhv2Vulz.js +9 -0
- package/dist/socialProofClasses-CrQBWdSA.cjs +39 -0
- package/dist/spanx-BYg0LE7R.js +653 -0
- package/dist/spanx-LwU1zSzq.cjs +655 -0
- package/dist/spanxStaging-CfSmuKYB.js +837 -0
- package/dist/spanxStaging-OZLV9qix.cjs +840 -0
- package/dist/suggestionBarV2-types-BllzwsBD.js +34 -0
- package/dist/suggestionBarV2-types-CaovchMP.cjs +46 -0
- package/dist/supergoop-BqPXDnKk.cjs +327 -0
- package/dist/supergoop-CIlrHND_.js +325 -0
- package/dist/types-C4T5UOIW.cjs +230 -0
- package/dist/types-CYNvLeSA.js +176 -0
- package/dist/uniqueVintage-B30mOqbH.cjs +1205 -0
- package/dist/uniqueVintage-CFueJOhO.js +1203 -0
- package/dist/venaCbd-DHGZy49P.cjs +357 -0
- package/dist/venaCbd-T0CqVD4k.js +357 -0
- package/dist/westonJonBoucher-BdMzs_Yg.cjs +414 -0
- package/dist/westonJonBoucher-b4TCQ4ev.js +414 -0
- package/dist/wineEnthusiast-BLGlOjgr.cjs +932 -0
- package/dist/wineEnthusiast-BqR0i_54.js +932 -0
- package/dist/wolfMattress-CyyO-LoC.js +362 -0
- package/dist/wolfMattress-DNGZOivg.cjs +362 -0
- package/dist/wolfTactical-3Mm2fvVF.js +341 -0
- package/dist/wolfTactical-BmXYlFjr.cjs +341 -0
- package/package.json +66 -0
- package/src/adapters/amplitude/amplitudeAdapter.ts +454 -0
- package/src/adapters/amplitude/index.ts +2 -0
- package/src/adapters/amplitude/stubAmplitudeAdapter.ts +34 -0
- package/src/adapters/spiffy/commerce/api.ts +596 -0
- package/src/adapters/spiffy/commerce/exceptions/sessionExceptions.ts +6 -0
- package/src/adapters/spiffy/commerce/exceptions/unsupportedProductExceptions.ts +6 -0
- package/src/adapters/spiffy/commerce/graphql.ts +184 -0
- package/src/application/config/generalStaticConfig.ts +37 -0
- package/src/application/logging/logger.ts +29 -0
- package/src/application/models/api/context.ts +4 -0
- package/src/application/models/api/generationParams.ts +4 -0
- package/src/application/models/api/nextMessageRequest.ts +11 -0
- package/src/application/models/api/orgAnalyticsConfig.ts +19 -0
- package/src/application/models/api/orgConfigResults.ts +40 -0
- package/src/application/models/api/organizationConfig.ts +12 -0
- package/src/application/models/api/response.ts +132 -0
- package/src/application/models/api/responseGenerics.ts +67 -0
- package/src/application/models/api/search.ts +26 -0
- package/src/application/models/api/suggestion.ts +4 -0
- package/src/application/models/api/supportedEventRequest.ts +8 -0
- package/src/application/models/api/userEvent.ts +101 -0
- package/src/application/models/cachedValue.ts +8 -0
- package/src/application/models/chatElementDisplayLocation.ts +22 -0
- package/src/application/models/clientDetails.ts +18 -0
- package/src/application/models/colorsConfig.ts +28 -0
- package/src/application/models/conversationalSearchIds.ts +5 -0
- package/src/application/models/dataLayer.ts +45 -0
- package/src/application/models/domMutationContinuation.ts +7 -0
- package/src/application/models/domObservationStrategy.ts +9 -0
- package/src/application/models/events.ts +5 -0
- package/src/application/models/featureGates.ts +23 -0
- package/src/application/models/frontendConfig.ts +14 -0
- package/src/application/models/googleAnalyticsEvents.ts +8 -0
- package/src/application/models/graphql/index.ts +2 -0
- package/src/application/models/graphql/queries/getMerchantColorsQuery.ts +37 -0
- package/src/application/models/graphql/queries/getMerchantFrontendConfigQuery.ts +103 -0
- package/src/application/models/graphql/queries/getMerchantOrgIdQuery.ts +11 -0
- package/src/application/models/guards/api/index.ts +12 -0
- package/src/application/models/guards/api/isApiFormResponse.ts +90 -0
- package/src/application/models/guards/api/isApiFormSubmittedResponseAttributes.ts +37 -0
- package/src/application/models/guards/api/isApiOrderResponseAttributes.ts +155 -0
- package/src/application/models/guards/api/isApiOrgConfigResults.ts +277 -0
- package/src/application/models/guards/api/isApiOrganizationConfig.ts +207 -0
- package/src/application/models/guards/api/isApiPDPEventAttributes.ts +21 -0
- package/src/application/models/guards/api/isApiPLPEventAttributes.ts +41 -0
- package/src/application/models/guards/api/isApiPageResponseAttributes.ts +21 -0
- package/src/application/models/guards/api/isApiProductResponseAttributes.ts +85 -0
- package/src/application/models/guards/api/isApiProductSearchAttributes.ts +23 -0
- package/src/application/models/guards/api/isApiProductSearchFilterAttributes.ts +15 -0
- package/src/application/models/guards/api/isApiQueryTypedEventAttributes.ts +4 -0
- package/src/application/models/guards/api/isApiResponse.ts +39 -0
- package/src/application/models/guards/api/isApiReviewResponseAttributes.ts +30 -0
- package/src/application/models/guards/api/isApiReviewRichInformation.ts +37 -0
- package/src/application/models/guards/api/isApiSearchEventAttributes.ts +28 -0
- package/src/application/models/guards/api/isApiSuggestion.ts +36 -0
- package/src/application/models/guards/api/isApiSuggestionClickedEventAttributes.ts +9 -0
- package/src/application/models/guards/api/isApiTextResponseAttributes.ts +9 -0
- package/src/application/models/guards/api/isApiUserEvent.ts +25 -0
- package/src/application/models/guards/graphQL/isGraphQLColorsConfig.ts +50 -0
- package/src/application/models/guards/isBaseEcommerceEvent.ts +17 -0
- package/src/application/models/guards/isGA4EcommerceEvent.ts +17 -0
- package/src/application/models/guards/isLegacyUAEcommerceEvent.ts +17 -0
- package/src/application/models/guards/isMobilePLPChatPlacementParameter.ts +11 -0
- package/src/application/models/guards/isSpanxTakeAQuizCtaParameter.ts +4 -0
- package/src/application/models/guards/isVariantInfo.ts +37 -0
- package/src/application/models/guards/utils.ts +43 -0
- package/src/application/models/index.ts +20 -0
- package/src/application/models/localStorageEventListener.ts +4 -0
- package/src/application/models/message.ts +146 -0
- package/src/application/models/mobilePLPChatPlacementParameter.ts +3 -0
- package/src/application/models/orgsEnum.ts +36 -0
- package/src/application/models/productExperiment.ts +5 -0
- package/src/application/models/spanxTakeAQuizCtaParameter.ts +4 -0
- package/src/application/models/spiffyWidgets.ts +16 -0
- package/src/application/models/supportedOrgs.ts +137 -0
- package/src/application/models/utilityTypes/camelCase.ts +87 -0
- package/src/application/models/utilityTypes/camelCasedPropertiesDeep.ts +80 -0
- package/src/application/models/utilityTypes/delimiterCase.ts +121 -0
- package/src/application/models/utilityTypes/delimiterCasedPropertiesDeep.ts +98 -0
- package/src/application/models/utilityTypes/index.ts +1 -0
- package/src/application/models/utilityTypes/internal.ts +93 -0
- package/src/application/models/utilityTypes/primitive.ts +8 -0
- package/src/application/models/utilityTypes/snakeCasedPropertiesDeep.ts +49 -0
- package/src/application/models/utilityTypes/splitWords.ts +76 -0
- package/src/application/models/utilityTypes/trim.ts +28 -0
- package/src/application/models/utilityTypes/unknownArray.ts +25 -0
- package/src/application/models/utils/snakeToCamelTransformer.ts +90 -0
- package/src/application/models/utils/stringToFulfillmentDisplayStatusEnumValue.ts +68 -0
- package/src/application/models/validators/validateGraphQLColorsConfig.ts +29 -0
- package/src/application/models/validators/validateGraphQLFrontendConfig.ts +594 -0
- package/src/application/models/validators/validateGraphQLOrgId.ts +7 -0
- package/src/application/models/validators/validateMobilePLPChatPlacementParameter.ts +14 -0
- package/src/application/models/validators/validateOrgConfigResults.ts +47 -0
- package/src/application/models/validators/validateOrganizationConfig.ts +37 -0
- package/src/application/models/validators/validateResponse.ts +187 -0
- package/src/application/models/validators/validateSuggestion.ts +16 -0
- package/src/application/models/validators/validateUserEvent.ts +110 -0
- package/src/application/models/variantInfo/index.ts +1 -0
- package/src/application/models/variantInfo/pageVisitInfo.ts +6 -0
- package/src/application/models/variantInfo/plpInfo.ts +3 -0
- package/src/application/models/variantInfo/productInfo.ts +5 -0
- package/src/application/models/variantInfo/variantInfo.ts +23 -0
- package/src/application/service/cachingService.ts +84 -0
- package/src/application/service/cdnService.ts +18 -0
- package/src/application/service/customerService/index.ts +8 -0
- package/src/application/service/customerService/providers/UnsupportedCustomerService.ts +15 -0
- package/src/application/service/customerService/types.ts +31 -0
- package/src/application/service/domMutationObserver.ts +320 -0
- package/src/application/service/domMutations/GridInsertionService.ts +123 -0
- package/src/application/service/domMutations/dataLayer/dataLayerEventsListener.ts +99 -0
- package/src/application/service/domMutations/domInsertionService.ts +90 -0
- package/src/application/service/domMutations/domMutationListener.ts +15 -0
- package/src/application/service/domMutations/domMutationListenerState.ts +52 -0
- package/src/application/service/domMutations/floatingChat/embeddedChatsPlacementsListener.ts +41 -0
- package/src/application/service/domMutations/gladly/gladlyListener.ts +61 -0
- package/src/application/service/domMutations/spiffy/orgs/common/kustomerVisibilityListener.ts +41 -0
- package/src/application/service/domMutations/spiffy/orgs/common/orgsCommonDataLayerListener.ts +119 -0
- package/src/application/service/environmentService.ts +51 -0
- package/src/application/service/featureFlagService.ts +130 -0
- package/src/application/service/kustomerIntegrationService.ts +111 -0
- package/src/application/service/localStorageService.ts +77 -0
- package/src/application/service/pageVariantService.ts +779 -0
- package/src/application/service/searchService.ts +140 -0
- package/src/application/service/sessionStorageService.ts +27 -0
- package/src/application/service/shopifyUrlService.ts +63 -0
- package/src/application/service/userIdentityService.ts +114 -0
- package/src/application/service/windowChatToggleService.ts +71 -0
- package/src/application/service/windowDataLayerService.ts +181 -0
- package/src/application/service/windowFrontendConfigService.ts +104 -0
- package/src/application/utils/__tests__/divideArrays.test.ts +14 -0
- package/src/application/utils/analyticsUtils.ts +110 -0
- package/src/application/utils/coreContextToApiContext.ts +11 -0
- package/src/application/utils/coreUserEventToApiUserEvent.ts +106 -0
- package/src/application/utils/divideArray.ts +7 -0
- package/src/application/utils/domObserver.ts +96 -0
- package/src/application/utils/elementObserver.ts +246 -0
- package/src/application/utils/imageFilter.ts +12 -0
- package/src/application/utils/index.ts +3 -0
- package/src/application/utils/merchantUtils.ts +16 -0
- package/src/application/utils/messageFromFormSubmittedEvent.ts +31 -0
- package/src/application/utils/messageFromQueryEvent.ts +38 -0
- package/src/application/utils/messageFromResponse.ts +133 -0
- package/src/application/utils/messageFromSuggestionEvent.ts +32 -0
- package/src/application/utils/mouseEventTypes.ts +1 -0
- package/src/application/utils/mutationHelper.ts +51 -0
- package/src/application/utils/nextMessageRequestToApiRequest.ts +31 -0
- package/src/application/utils/nodeSelector.ts +133 -0
- package/src/application/utils/overrides.ts +196 -0
- package/src/application/utils/stringUtils.ts +55 -0
- package/src/application/utils/supportedEventRequestToApiRequest.ts +12 -0
- package/src/application/utils/urlsParser.ts +53 -0
- package/src/application/utils/validation.ts +5 -0
- package/src/atoms/app/index.ts +57 -0
- package/src/atoms/app/variant.ts +261 -0
- package/src/atoms/atomStore.ts +34 -0
- package/src/atoms/chat/chatState.ts +44 -0
- package/src/atoms/chat/form.ts +19 -0
- package/src/atoms/chat/index.ts +38 -0
- package/src/atoms/chat/lastMessage.ts +11 -0
- package/src/atoms/chat/messageQueue.ts +65 -0
- package/src/atoms/chat/performanceMetrics.ts +84 -0
- package/src/atoms/chat/renderedWidgetRefs.ts +28 -0
- package/src/atoms/chat/replies.ts +51 -0
- package/src/atoms/chat/suggestions.ts +36 -0
- package/src/atoms/globalSearch.ts +12 -0
- package/src/atoms/index.ts +5 -0
- package/src/atoms/org/customerService.ts +13 -0
- package/src/atoms/org/graphqlConfig.ts +27 -0
- package/src/atoms/org/index.ts +7 -0
- package/src/atoms/org/merchantCss.ts +44 -0
- package/src/atoms/org/org.ts +256 -0
- package/src/atoms/org/orgAnalyticsConfig.ts +28 -0
- package/src/atoms/org/orgPageConfig.ts +38 -0
- package/src/atoms/org/orgUIConfig.ts +122 -0
- package/src/atoms/search/chatSearch.ts +293 -0
- package/src/atoms/search/index.ts +2 -0
- package/src/atoms/search/productFilters.ts +207 -0
- package/src/atoms/search/productSorter.ts +23 -0
- package/src/atoms/search/searchAPI.ts +194 -0
- package/src/atoms/search/types.ts +55 -0
- package/src/atoms/search/utils.ts +18 -0
- package/src/config/divIds.ts +27 -0
- package/src/config/locators/components/chat/entrypoints.ts +13 -0
- package/src/config/locators/components/chat/index.ts +23 -0
- package/src/config/locators/components/chat/preview.ts +13 -0
- package/src/config/locators/components/chat/variants/index.ts +16 -0
- package/src/config/locators/components/common/buttons.ts +6 -0
- package/src/config/locators/components/common/cards.ts +18 -0
- package/src/config/locators/components/common/links.ts +1 -0
- package/src/config/locators/components/common/tables.ts +2 -0
- package/src/config/locators/components/floating-button.ts +2 -0
- package/src/config/locators/components/index.ts +3 -0
- package/src/config/locators/components/report-issue.ts +21 -0
- package/src/config/locators/components/search/index.ts +5 -0
- package/src/config/locators/components/shadow-dom.ts +1 -0
- package/src/config/locators/embedded.ts +21 -0
- package/src/config/locators/index.ts +3 -0
- package/src/config/socialProofClasses.ts +17 -0
- package/src/contexts/chatContext.tsx +451 -0
- package/src/contexts/enviveConfigContext.tsx +70 -0
- package/src/contexts/index.ts +4 -0
- package/src/contexts/systemSettingsContext.tsx +61 -0
- package/src/contexts/types.ts +1059 -0
- package/src/enabled-features.ts +83 -0
- package/src/events/event-types.ts +11 -0
- package/src/events/index.ts +52 -0
- package/src/events/registerAnalyticsListeners.ts +49 -0
- package/src/extension.ts +63 -0
- package/src/hooks/index.ts +22 -0
- package/src/hooks/useBlockBackButton.ts +29 -0
- package/src/hooks/useChatToggle.ts +66 -0
- package/src/hooks/useCustomerSupportHandoff.ts +39 -0
- package/src/hooks/useDebounce.ts +17 -0
- package/src/hooks/useDynamicVariants.ts +210 -0
- package/src/hooks/useElementObserver.ts +245 -0
- package/src/hooks/useFileUpload.ts +61 -0
- package/src/hooks/useGrabAndScroll.ts +133 -0
- package/src/hooks/useHideElements.ts +82 -0
- package/src/hooks/useHorizontalScrollAnimation.ts +115 -0
- package/src/hooks/useImageResolver.ts +51 -0
- package/src/hooks/useIntersection.ts +28 -0
- package/src/hooks/useIsSmallScreen.ts +23 -0
- package/src/hooks/useMessageFilter.ts +49 -0
- package/src/hooks/useMessageScrollObserver.ts +47 -0
- package/src/hooks/useReducedMotionWithOverride.ts +15 -0
- package/src/hooks/useSearch.tsx +433 -0
- package/src/hooks/useSnapCalculator.ts +38 -0
- package/src/hooks/useSnapControl.ts +155 -0
- package/src/hooks/useSystemSettingsContext.ts +12 -0
- package/src/hooks/useTrackComponentVisibleEvent.ts +52 -0
- package/src/hooks/useUpdateAnalyticsProps.ts +56 -0
- package/src/hooks/utils.ts +153 -0
- package/src/index.ts +31 -0
- package/src/initialize.ts +163 -0
- package/src/interceptors/types.ts +6 -0
- package/src/interceptors/useFormEscalation.ts +40 -0
- package/src/interceptors/useMessageInterceptor.ts +32 -0
- package/src/main.ts +85 -0
- package/src/main.tsx +123 -0
- package/src/merchants/bandolier/bandolier.ts +1389 -0
- package/src/merchants/carpe/carpe.ts +656 -0
- package/src/merchants/coterie/coterie.ts +280 -0
- package/src/merchants/default.ts +193 -0
- package/src/merchants/dreamlandBaby/dreamlandBaby.ts +375 -0
- package/src/merchants/fiveCbd/fiveCbd.ts +697 -0
- package/src/merchants/forLoveAndLemons/forLoveAndLemons.ts +721 -0
- package/src/merchants/greenpan/greenpan.ts +440 -0
- package/src/merchants/grooveLife/grooveLife.ts +386 -0
- package/src/merchants/homegrownCannabis/homegrownCannabis.ts +468 -0
- package/src/merchants/init-merchant.sh +53 -0
- package/src/merchants/jackArcher/jackArcher.ts +974 -0
- package/src/merchants/jordanCraig/jordanCraig.ts +1927 -0
- package/src/merchants/kindredBravely/kindredBravely.ts +529 -0
- package/src/merchants/kutFromTheKloth/kutFromTheKloth.ts +418 -0
- package/src/merchants/larryAndSerges/larryAndSerges.ts +314 -0
- package/src/merchants/leapsAndRebounds/leapsAndRebounds.ts +424 -0
- package/src/merchants/longevityrx/longevityrx.ts +368 -0
- package/src/merchants/lookOptic/lookOptic.ts +323 -0
- package/src/merchants/mantraBrand/mantraBrand.ts +838 -0
- package/src/merchants/medterra/medterra.ts +670 -0
- package/src/merchants/modells/modells.ts +546 -0
- package/src/merchants/pressedFloral/pressedFloral.ts +734 -0
- package/src/merchants/skinPerfection/skinPerfection.ts +379 -0
- package/src/merchants/snapSupplements/snapSupplements.ts +325 -0
- package/src/merchants/spanx/spanx.ts +810 -0
- package/src/merchants/spanx/spanxStaging.ts +942 -0
- package/src/merchants/supergoop/supergoop.ts +376 -0
- package/src/merchants/uniqueVintage/uniqueVintage.ts +1314 -0
- package/src/merchants/uniqueVintage/views/useUniqueVintageChatSearch.ts +147 -0
- package/src/merchants/venaCbd/venaCbd.ts +410 -0
- package/src/merchants/westonJonBoucher/westonJonBoucher.ts +473 -0
- package/src/merchants/wineEnthusiast/wineEnthusiast.ts +990 -0
- package/src/merchants/wolfMattress/wolfMattress.ts +411 -0
- package/src/merchants/wolfTactical/wolfTactical.ts +389 -0
- package/src/types/custservice-types.ts +28 -0
- package/src/types/search-filter-types.ts +111 -0
- package/src/types/suggestionBarV2-types.ts +4 -0
- package/src/types/test-types.ts +3 -0
- package/src/types.ts +66 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import "./logger-pdEEY8T2.js";
|
|
2
|
+
import "./models-DHdb7QWn.js";
|
|
3
|
+
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-CYNvLeSA.js";
|
|
4
|
+
import { BOTTOM_REVIEWS_BAR_ID, BOTTOM_SUGGESTION_BAR_TESTID, CHAT_PREVIEW_CONTAINER_ID, CHAT_PREVIEW_TESTID, DOMInsertionType, TOP_SUGGESTION_BAR_PDP_ID, TOP_SUGGESTION_BAR_TESTID } from "./divIds-Bss-btao.js";
|
|
5
|
+
import { GridInsertionType } from "./GridInsertionService-CEYo9pGj.js";
|
|
6
|
+
import { ChatElementDisplayLocation, SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-BllzwsBD.js";
|
|
7
|
+
import { defaultOrgUIConfig } from "./default-C2fEZKXk.js";
|
|
8
|
+
import { ChatState } from "./custservice-types-CFIFwZ-r.js";
|
|
9
|
+
import SupergoopWhiteLogo from "@envive-ai/react-icons/SupergoopWhiteLogo";
|
|
10
|
+
|
|
11
|
+
//#region src/merchants/supergoop/supergoop.ts
|
|
12
|
+
const supergoopColors = {
|
|
13
|
+
[ColorNames.TextPrimary]: "#202020",
|
|
14
|
+
[ColorNames.TextSecondary]: "#5C5C5C",
|
|
15
|
+
[ColorNames.TextAccent]: "#00008C",
|
|
16
|
+
[ColorNames.TextLink]: "#2F2BD8",
|
|
17
|
+
[ColorNames.TextLight]: "#FFFFFF",
|
|
18
|
+
[ColorNames.BackgroundPrimary]: "#0000B4",
|
|
19
|
+
[ColorNames.BackgroundSecondary]: "#F7F7F7",
|
|
20
|
+
[ColorNames.BackgroundSecondaryDark]: "#E5E7EB",
|
|
21
|
+
[ColorNames.BackgroundTertiary]: "#FFE922",
|
|
22
|
+
[ColorNames.BackgroundDark]: "#00008C",
|
|
23
|
+
[ColorNames.BackgroundLight]: "#FFFFFF",
|
|
24
|
+
[ColorNames.BackgroundSaturated]: "#FFE922",
|
|
25
|
+
[ColorNames.BorderLight]: "#E0E0E0",
|
|
26
|
+
[ColorNames.BorderMedium]: "#B4B4B4",
|
|
27
|
+
[ColorNames.BorderDark]: "#5C5C5C",
|
|
28
|
+
[ColorNames.BorderOutline]: "#0000B4",
|
|
29
|
+
[ColorNames.AccentPrimary]: "#0000B4",
|
|
30
|
+
[ColorNames.AccentSecondary]: "#70AED0"
|
|
31
|
+
};
|
|
32
|
+
const supergoopOrgUIConfig = () => {
|
|
33
|
+
const defaultSupergoopOrgConfig = defaultOrgUIConfig(OrgShortName.Supergoop);
|
|
34
|
+
return {
|
|
35
|
+
...defaultSupergoopOrgConfig,
|
|
36
|
+
chatMessageConfig: {
|
|
37
|
+
...defaultSupergoopOrgConfig.chatMessageConfig,
|
|
38
|
+
assistantChatTitle: "Supergoop! AI",
|
|
39
|
+
productLink: {
|
|
40
|
+
...defaultSupergoopOrgConfig.chatMessageConfig.productLink,
|
|
41
|
+
iconVariant: "backgroundSaturated"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
floatingEntrypointConfig: {
|
|
45
|
+
...defaultSupergoopOrgConfig.floatingEntrypointConfig,
|
|
46
|
+
showOption: "always",
|
|
47
|
+
expansionText: {
|
|
48
|
+
pdp: "What have customers said?",
|
|
49
|
+
plp: "Hear from others who have tried it!"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
chatHeader: {
|
|
53
|
+
...defaultSupergoopOrgConfig.chatHeader,
|
|
54
|
+
icon: SupergoopWhiteLogo,
|
|
55
|
+
customerSupportSwitchConfig: {
|
|
56
|
+
...defaultSupergoopOrgConfig.chatHeader.customerSupportSwitchConfig,
|
|
57
|
+
supportTitle: "Customer Care Team"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
welcomeSectionConfig: {
|
|
61
|
+
...defaultSupergoopOrgConfig.welcomeSectionConfig,
|
|
62
|
+
title: "Welcome to Supergoop! AI",
|
|
63
|
+
subtitle: "Need help? I've got you! Ask me a question or tell me what you're looking for, and I'll get you there in no time."
|
|
64
|
+
},
|
|
65
|
+
chatPreviewConfig: {
|
|
66
|
+
...defaultSupergoopOrgConfig.chatPreviewConfig,
|
|
67
|
+
copies: {
|
|
68
|
+
pdp: [
|
|
69
|
+
"how others feel about its texture?",
|
|
70
|
+
"which skin types it is best for?",
|
|
71
|
+
"if it's great for outdoor adventures?",
|
|
72
|
+
"if it works well under makeup?"
|
|
73
|
+
],
|
|
74
|
+
plp: [
|
|
75
|
+
"a lightweight SPF that won't clog your pores?",
|
|
76
|
+
"a sunscreen that's gentle on sensitive skin?",
|
|
77
|
+
"the perfect moisturizer with SPF?",
|
|
78
|
+
"an SPF that primes for makeup?"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
iconFillColor: colorVar(ColorNames.AccentPrimary),
|
|
82
|
+
buttonTextColor: colorVar(ColorNames.AccentPrimary),
|
|
83
|
+
buttonTextHoverColor: colorVar(ColorNames.AccentPrimary),
|
|
84
|
+
buttonBackgroundColor: colorVar(ColorNames.BackgroundSecondary),
|
|
85
|
+
buttonBackgroundHoverColor: colorVar(ColorNames.BackgroundSecondaryDark),
|
|
86
|
+
headerConfig: { title: "Shopping Assistant" }
|
|
87
|
+
},
|
|
88
|
+
productCardConfig: {
|
|
89
|
+
...defaultSupergoopOrgConfig.productCardConfig,
|
|
90
|
+
pricePrefix: "From"
|
|
91
|
+
},
|
|
92
|
+
productReviewConfig: { ...defaultSupergoopOrgConfig.productReviewConfig },
|
|
93
|
+
customerServiceIntegration: {
|
|
94
|
+
...defaultSupergoopOrgConfig.customerServiceIntegration,
|
|
95
|
+
integrationMode: CustomerServiceIntegrationMode.full,
|
|
96
|
+
provider: CustomerServiceType.gorgias,
|
|
97
|
+
formAiName: "Supergoop! AI...",
|
|
98
|
+
contactSubjectOptions: [
|
|
99
|
+
"Track Order",
|
|
100
|
+
"Report Issue",
|
|
101
|
+
"Cancel Order",
|
|
102
|
+
"Product Question",
|
|
103
|
+
"Other"
|
|
104
|
+
],
|
|
105
|
+
welcomeTitle: "Chat with the Supergoop! Customer Care Team",
|
|
106
|
+
showWelcomeOnForm: true,
|
|
107
|
+
showAISuggestionsWithinBusinessHours: false,
|
|
108
|
+
chatEnabledDuringBusinessHours: true,
|
|
109
|
+
waitingMessagePosition: "BEFORE_MESSAGES",
|
|
110
|
+
welcomeDescription: "Thanks for reaching out! Our Customer Care Team's hours are M-F, 8am-4pm CT",
|
|
111
|
+
getCustomWaitingMessage: () => `Hi there! We’ll be with you real soon! 💛`,
|
|
112
|
+
withinBusinessHoursMessage: "👋 Hi there! If you need an answer immediately, Supergoop! AI can help you, otherwise you can leave our Support Team a message and we will respond via email in a few hours.",
|
|
113
|
+
withinBusinessHoursWaitingMessage: "👋\xA0Hi there! A Customer Care Team member will respond within 5 minutes. If you need an answer immediately, Supergoop! AI can help you.",
|
|
114
|
+
outsideBusinessHoursMessage: "👋 Hi, we’re sorry but our Customer Care Team is currently offline.<br /><br />If you need an answer immediately, Supergoop AI! can help you, otherwise you can leave a message for our Support Team and we will email you when we’re back online.",
|
|
115
|
+
outsideBusinessHoursWaitingMessage: "⚡⚡ You're all set! Our Customer Care Team will respond via email as soon as we're back online. Thank you for your patience!",
|
|
116
|
+
withinBusinessHoursFormMessage: "👋\xA0Hi there! A Customer Care Team member will respond within 5 minutes. If you need an answer immediately, Supergoop! AI can help you.",
|
|
117
|
+
outsideBusinessHoursFormMessage: "To help us fix your issue faster, please give us a little more detail.",
|
|
118
|
+
suggestedAIQuestions: [
|
|
119
|
+
"How do I return an item?",
|
|
120
|
+
"What is your return policy?",
|
|
121
|
+
"What is your shipping policy?",
|
|
122
|
+
"Do you have any discounts?"
|
|
123
|
+
],
|
|
124
|
+
businessHoursStartUTC: "9:30AM",
|
|
125
|
+
businessHoursEndUTC: "6:00PM",
|
|
126
|
+
businessHoursTimezone: "-05:00",
|
|
127
|
+
withinBusinessHoursInitialState: ChatState.FORM,
|
|
128
|
+
outsideBusinessHoursInitialState: ChatState.INITIAL,
|
|
129
|
+
withinBusinessHoursButtontext: "Send a message",
|
|
130
|
+
outsideBusinessHoursButtontext: "Send a message"
|
|
131
|
+
},
|
|
132
|
+
merchantOverrideCss: `
|
|
133
|
+
.spiffy-star-rating-container {
|
|
134
|
+
background: var(--spiffy-colors-background-tertiary) !important;
|
|
135
|
+
}
|
|
136
|
+
.spiffy-star-rating-rating {
|
|
137
|
+
color: var(--spiffy-colors-background-primary) !important;
|
|
138
|
+
}
|
|
139
|
+
.spiffy-star-rating-star {
|
|
140
|
+
fill: var(--spiffy-colors-background-primary) !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.spiffy-product-card-title {
|
|
144
|
+
font-family: var(--chakra-fonts-heading);
|
|
145
|
+
color: var(--spiffy-colors-text-primary);
|
|
146
|
+
}
|
|
147
|
+
.spiffy-product-card-rating-star-color {
|
|
148
|
+
fill: var(--spiffy-colors-background-primary);
|
|
149
|
+
}
|
|
150
|
+
.spiffy-welcome-section-svg-icon {
|
|
151
|
+
height: 24px;
|
|
152
|
+
}
|
|
153
|
+
#spiffy-ai-floating-button {
|
|
154
|
+
z-index: 49 !important;
|
|
155
|
+
}
|
|
156
|
+
`
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
const supergoopPageConfig = () => ({
|
|
160
|
+
pageVariants: [{
|
|
161
|
+
variantId: "plp",
|
|
162
|
+
variantType: "plp",
|
|
163
|
+
variantTests: [{ testType: PageVariantTestType.UrlResolver }],
|
|
164
|
+
plpIdExtractor: "url-resolver-plp-id",
|
|
165
|
+
widgetMounting: [{
|
|
166
|
+
mountingConfigId: "chatPreviewPLP",
|
|
167
|
+
widgetConfigId: "chatPreviewPLP"
|
|
168
|
+
}]
|
|
169
|
+
}, {
|
|
170
|
+
variantId: "pdp",
|
|
171
|
+
variantType: "pdp",
|
|
172
|
+
variantTests: [{ testType: PageVariantTestType.UrlResolver }],
|
|
173
|
+
productIdExtractor: "url-resolver-product-id",
|
|
174
|
+
widgetMounting: [
|
|
175
|
+
{
|
|
176
|
+
mountingConfigId: "topSuggestionBarPDP",
|
|
177
|
+
widgetConfigId: "topSuggestionsBar"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
mountingConfigId: "chatPreviewPDP",
|
|
181
|
+
widgetConfigId: "chatPreviewPDP"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
mountingConfigId: "bottomSuggestionBarPDP",
|
|
185
|
+
widgetConfigId: "bottomSuggestionsBar"
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
}],
|
|
189
|
+
widgetConfigs: {
|
|
190
|
+
topSuggestionsBar: {
|
|
191
|
+
widgetConfigId: "topSuggestionsBar",
|
|
192
|
+
contentId: "spiffy-top-suggestion-bar-contents",
|
|
193
|
+
type: WidgetType.SuggestionBarV2,
|
|
194
|
+
metricDisplayLocation: ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
195
|
+
location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
196
|
+
variant: "secondary",
|
|
197
|
+
hoverVariant: "secondaryDark",
|
|
198
|
+
buttonTexts: {
|
|
199
|
+
default: [
|
|
200
|
+
"Summarize the reviews",
|
|
201
|
+
"Is it gentle enough for sensitive skin?",
|
|
202
|
+
"Is this right for combination skin?",
|
|
203
|
+
"What do reviewers say about its texture?",
|
|
204
|
+
"Is this great for outdoor sports?"
|
|
205
|
+
],
|
|
206
|
+
productSpecific: { "unseen-sunscreen-spf-50": [
|
|
207
|
+
"What is new and different?",
|
|
208
|
+
"Summarize the reviews",
|
|
209
|
+
"Is it gentle enough for sensitive skin?",
|
|
210
|
+
"Is this right for combination skin?",
|
|
211
|
+
"What do reviewers say about its texture?"
|
|
212
|
+
] }
|
|
213
|
+
},
|
|
214
|
+
boldFirstButton: true,
|
|
215
|
+
twoRowsOnMobile: false,
|
|
216
|
+
animationSpeed: "none",
|
|
217
|
+
buttonBorderRadius: "md"
|
|
218
|
+
},
|
|
219
|
+
chatPreviewPLP: {
|
|
220
|
+
widgetConfigId: "chatPreviewPLP",
|
|
221
|
+
type: WidgetType.ChatPreview,
|
|
222
|
+
variant: "flat",
|
|
223
|
+
addSeparators: true
|
|
224
|
+
},
|
|
225
|
+
chatPreviewPDP: {
|
|
226
|
+
widgetConfigId: "chatPreviewPDP",
|
|
227
|
+
type: WidgetType.ChatPreview,
|
|
228
|
+
variant: "flat"
|
|
229
|
+
},
|
|
230
|
+
bottomSuggestionsBar: {
|
|
231
|
+
widgetConfigId: "bottomSuggestionsBar",
|
|
232
|
+
contentId: "spiffy-bottom-suggestion-bar-contents",
|
|
233
|
+
metricDisplayLocation: ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
|
|
234
|
+
type: WidgetType.SuggestionBarV2,
|
|
235
|
+
location: SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
|
|
236
|
+
variant: "secondary",
|
|
237
|
+
hoverVariant: "secondaryDark",
|
|
238
|
+
buttonTexts: {
|
|
239
|
+
default: [
|
|
240
|
+
"Summarize the reviews",
|
|
241
|
+
"Is it gentle enough for sensitive skin?",
|
|
242
|
+
"Is this right for combination skin?",
|
|
243
|
+
"What do reviewers say about its texture?",
|
|
244
|
+
"Is this great for outdoor sports?"
|
|
245
|
+
],
|
|
246
|
+
productSpecific: { "unseen-sunscreen-spf-50": [
|
|
247
|
+
"What is new and different?",
|
|
248
|
+
"Summarize the reviews",
|
|
249
|
+
"Is it gentle enough for sensitive skin?",
|
|
250
|
+
"Is this right for combination skin?",
|
|
251
|
+
"What do reviewers say about its texture?"
|
|
252
|
+
] }
|
|
253
|
+
},
|
|
254
|
+
boldFirstButton: true,
|
|
255
|
+
twoRowsOnMobile: true,
|
|
256
|
+
animationSpeed: "none",
|
|
257
|
+
buttonBorderRadius: "md"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
mountingConfigs: {
|
|
261
|
+
chatPreviewPLP: {
|
|
262
|
+
mountingConfigId: "chatPreviewPLP",
|
|
263
|
+
containerId: CHAT_PREVIEW_CONTAINER_ID,
|
|
264
|
+
testId: CHAT_PREVIEW_TESTID,
|
|
265
|
+
insertionPoint: {
|
|
266
|
+
selector: ".ss__results",
|
|
267
|
+
insertionType: DOMInsertionType.AFTER
|
|
268
|
+
},
|
|
269
|
+
gridInsertionType: GridInsertionType.ROW_2
|
|
270
|
+
},
|
|
271
|
+
chatPreviewPDP: {
|
|
272
|
+
mountingConfigId: "chatPreviewPDP",
|
|
273
|
+
containerId: CHAT_PREVIEW_CONTAINER_ID,
|
|
274
|
+
testId: CHAT_PREVIEW_TESTID,
|
|
275
|
+
insertionPoint: {
|
|
276
|
+
selector: ".product-review",
|
|
277
|
+
insertionType: DOMInsertionType.ADJACENT_AFTER_END
|
|
278
|
+
},
|
|
279
|
+
style: {
|
|
280
|
+
marginBottom: "4px",
|
|
281
|
+
marginTop: "4px"
|
|
282
|
+
},
|
|
283
|
+
className: "class=\"px-5 lg:container grid lg:grid-cols-1 grid-cols-1 mb-10 tab:my-10 product-review items-center lg:mt-5\""
|
|
284
|
+
},
|
|
285
|
+
topSuggestionBarPDP: {
|
|
286
|
+
mountingConfigId: "topSuggestionBarPDP",
|
|
287
|
+
containerId: TOP_SUGGESTION_BAR_PDP_ID,
|
|
288
|
+
testId: TOP_SUGGESTION_BAR_TESTID,
|
|
289
|
+
insertionPoint: {
|
|
290
|
+
selector: ".price + *",
|
|
291
|
+
insertionType: DOMInsertionType.ADJACENT_AFTER_END
|
|
292
|
+
},
|
|
293
|
+
style: {
|
|
294
|
+
marginBottom: "4px",
|
|
295
|
+
marginTop: "4px"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
bottomSuggestionBarPDP: {
|
|
299
|
+
mountingConfigId: "bottomSuggestionBarPDP",
|
|
300
|
+
containerId: BOTTOM_REVIEWS_BAR_ID,
|
|
301
|
+
testId: BOTTOM_SUGGESTION_BAR_TESTID,
|
|
302
|
+
insertionPoint: {
|
|
303
|
+
selector: ".yotpo-filters-container",
|
|
304
|
+
insertionType: DOMInsertionType.ADJACENT_BEFORE_BEGIN
|
|
305
|
+
},
|
|
306
|
+
style: {
|
|
307
|
+
marginBottom: "8px",
|
|
308
|
+
marginTop: "8px"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
const supergoopOrgInfo = {
|
|
314
|
+
shortName: OrgShortName.Supergoop,
|
|
315
|
+
name: "Supergoop",
|
|
316
|
+
domain: "supergoop.com",
|
|
317
|
+
defaultProductId: "unseen-sunscreen-spf-50",
|
|
318
|
+
alwaysEnabledMerchants: true,
|
|
319
|
+
orgUIConfig: supergoopOrgUIConfig,
|
|
320
|
+
orgColors: () => supergoopColors,
|
|
321
|
+
orgPageConfig: supergoopPageConfig
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
//#endregion
|
|
325
|
+
export { supergoopOrgInfo };
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/application/models/orgsEnum.ts
|
|
3
|
+
const OrgShortName = {
|
|
4
|
+
Coterie: "coterie",
|
|
5
|
+
ForLoveAndLemons: "for-love-and-lemons",
|
|
6
|
+
Greenpan: "greenpan",
|
|
7
|
+
JordanCraig: "jordan-craig",
|
|
8
|
+
LarryAndSerges: "larry_and_serges",
|
|
9
|
+
LeapsAndRebounds: "leaps-and-rebounds",
|
|
10
|
+
MantraBrand: "mantra-brand",
|
|
11
|
+
Spanx: "spanx",
|
|
12
|
+
SpanxStaging: "staging-spanx",
|
|
13
|
+
Supergoop: "supergoop",
|
|
14
|
+
UniqueVintage: "unique-vintage",
|
|
15
|
+
JackArcher: "jack-archer",
|
|
16
|
+
SkinPerfection: "skin-perfection",
|
|
17
|
+
LookOptic: "look-optic",
|
|
18
|
+
FiveCbd: "five-cbd",
|
|
19
|
+
SnapSupplements: "snap-supplements",
|
|
20
|
+
Longevityrx: "longevityrx",
|
|
21
|
+
VenaCbd: "vena-cbd",
|
|
22
|
+
Medterra: "medterra",
|
|
23
|
+
Modells: "modells",
|
|
24
|
+
PressedFloral: "pressed-floral",
|
|
25
|
+
KindredBravely: "kindred-bravely",
|
|
26
|
+
WineEnthusiast: "wine-enthusiast",
|
|
27
|
+
HomegrownCannabis: "homegrown-cannabis",
|
|
28
|
+
DreamlandBaby: "dreamland-baby",
|
|
29
|
+
Bandolier: "bandolier",
|
|
30
|
+
WestonJonBoucher: "weston-jon-boucher",
|
|
31
|
+
KutFromTheKloth: "kut-from-the-kloth",
|
|
32
|
+
GrooveLife: "groove-life",
|
|
33
|
+
Carpe: "carpe",
|
|
34
|
+
WolfTactical: "wolf-tactical",
|
|
35
|
+
WolfMattress: "wolfmattress",
|
|
36
|
+
Default: "default"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/application/models/supportedOrgs.ts
|
|
41
|
+
const getOrgInfo = async (orgShortName) => {
|
|
42
|
+
switch (orgShortName) {
|
|
43
|
+
case OrgShortName.Bandolier: return Promise.resolve().then(() => require("./bandolier-Bm2xAt_j.cjs")).then((module$1) => module$1.bandolierOrgInfo);
|
|
44
|
+
case OrgShortName.Carpe: return Promise.resolve().then(() => require("./carpe-Da7b-LCW.cjs")).then((module$1) => module$1.carpeOrgInfo);
|
|
45
|
+
case OrgShortName.Coterie: return Promise.resolve().then(() => require("./coterie-3y0D9ko4.cjs")).then((module$1) => module$1.coterieOrgInfo);
|
|
46
|
+
case OrgShortName.DreamlandBaby: return Promise.resolve().then(() => require("./dreamlandBaby-DCIsuU9R.cjs")).then((module$1) => module$1.dreamlandBabyOrgInfo);
|
|
47
|
+
case OrgShortName.ForLoveAndLemons: return Promise.resolve().then(() => require("./forLoveAndLemons-CfYPMnKS.cjs")).then((module$1) => module$1.forLoveAndLemonsOrgInfo);
|
|
48
|
+
case OrgShortName.Greenpan: return Promise.resolve().then(() => require("./greenpan-Bsl3ir59.cjs")).then((module$1) => module$1.greenpanOrgInfo);
|
|
49
|
+
case OrgShortName.GrooveLife: return Promise.resolve().then(() => require("./grooveLife-Cmm1PSCL.cjs")).then((module$1) => module$1.grooveLifeOrgInfo);
|
|
50
|
+
case OrgShortName.JackArcher: return Promise.resolve().then(() => require("./jackArcher-DdYTIzAV.cjs")).then((module$1) => module$1.jackArcherOrgInfo);
|
|
51
|
+
case OrgShortName.JordanCraig: return Promise.resolve().then(() => require("./jordanCraig-_u3-w4Hp.cjs")).then((module$1) => module$1.jordanCraigOrgInfo);
|
|
52
|
+
case OrgShortName.KutFromTheKloth: return Promise.resolve().then(() => require("./kutFromTheKloth-Q589bAOC.cjs")).then((module$1) => module$1.kutFromTheKlothOrgInfo);
|
|
53
|
+
case OrgShortName.LarryAndSerges: return Promise.resolve().then(() => require("./larryAndSerges-CEau764j.cjs")).then((module$1) => module$1.larryAndSergesOrgInfo);
|
|
54
|
+
case OrgShortName.LeapsAndRebounds: return Promise.resolve().then(() => require("./leapsAndRebounds-DHAtRTJD.cjs")).then((module$1) => module$1.leapsAndReboundsOrgInfo);
|
|
55
|
+
case OrgShortName.MantraBrand: return Promise.resolve().then(() => require("./mantraBrand-DByNqpnL.cjs")).then((module$1) => module$1.mantraBrandOrgInfo);
|
|
56
|
+
case OrgShortName.Spanx: return Promise.resolve().then(() => require("./spanx-LwU1zSzq.cjs")).then((module$1) => module$1.spanxOrgInfo);
|
|
57
|
+
case OrgShortName.SpanxStaging: return Promise.resolve().then(() => require("./spanxStaging-OZLV9qix.cjs")).then((module$1) => module$1.spanxOrgInfo);
|
|
58
|
+
case OrgShortName.Supergoop: return Promise.resolve().then(() => require("./supergoop-BqPXDnKk.cjs")).then((module$1) => module$1.supergoopOrgInfo);
|
|
59
|
+
case OrgShortName.UniqueVintage: return Promise.resolve().then(() => require("./uniqueVintage-B30mOqbH.cjs")).then((module$1) => module$1.uniqueVintageOrgInfo);
|
|
60
|
+
case OrgShortName.WestonJonBoucher: return Promise.resolve().then(() => require("./westonJonBoucher-BdMzs_Yg.cjs")).then((module$1) => module$1.westonJonBoucherOrgInfo);
|
|
61
|
+
case OrgShortName.WolfMattress: return Promise.resolve().then(() => require("./wolfMattress-DNGZOivg.cjs")).then((module$1) => module$1.wolfMattressOrgInfo);
|
|
62
|
+
case OrgShortName.WolfTactical: return Promise.resolve().then(() => require("./wolfTactical-BmXYlFjr.cjs")).then((module$1) => module$1.wolfTacticalOrgInfo);
|
|
63
|
+
case OrgShortName.SkinPerfection: return Promise.resolve().then(() => require("./skinPerfection-B_3xzVNS.cjs")).then((module$1) => module$1.skinPerfectionOrgInfo);
|
|
64
|
+
case OrgShortName.LookOptic: return Promise.resolve().then(() => require("./lookOptic-CA6RwLbG.cjs")).then((module$1) => module$1.lookOpticOrgInfo);
|
|
65
|
+
case OrgShortName.FiveCbd: return Promise.resolve().then(() => require("./fiveCbd-CkOlVby_.cjs")).then((module$1) => module$1.fiveCbdOrgInfo);
|
|
66
|
+
case OrgShortName.SnapSupplements: return Promise.resolve().then(() => require("./snapSupplements-BStTsdOZ.cjs")).then((module$1) => module$1.snapSupplementsOrgInfo);
|
|
67
|
+
case OrgShortName.Longevityrx: return Promise.resolve().then(() => require("./longevityrx-CZW8Hxzi.cjs")).then((module$1) => module$1.longevityrxOrgInfo);
|
|
68
|
+
case OrgShortName.VenaCbd: return Promise.resolve().then(() => require("./venaCbd-DHGZy49P.cjs")).then((module$1) => module$1.venaCbdOrgInfo);
|
|
69
|
+
case OrgShortName.Medterra: return Promise.resolve().then(() => require("./medterra-DnPN2ksU.cjs")).then((module$1) => module$1.medterraOrgInfo);
|
|
70
|
+
case OrgShortName.Modells: return Promise.resolve().then(() => require("./modells-CoYgkLSp.cjs")).then((module$1) => module$1.modellsOrgInfo);
|
|
71
|
+
case OrgShortName.PressedFloral: return Promise.resolve().then(() => require("./pressedFloral-DjBiSoUl.cjs")).then((module$1) => module$1.pressedFloralOrgInfo);
|
|
72
|
+
case OrgShortName.KindredBravely: return Promise.resolve().then(() => require("./kindredBravely-CWovIDSc.cjs")).then((module$1) => module$1.kindredBravelyOrgInfo);
|
|
73
|
+
case OrgShortName.WineEnthusiast: return Promise.resolve().then(() => require("./wineEnthusiast-BLGlOjgr.cjs")).then((module$1) => module$1.wineEnthusiastOrgInfo);
|
|
74
|
+
case OrgShortName.HomegrownCannabis: return Promise.resolve().then(() => require("./homegrownCannabis-CO0uY_mp.cjs")).then((module$1) => module$1.homegrownCannabisOrgInfo);
|
|
75
|
+
default: return Promise.resolve().then(() => require("./default-CBUq6Q6G.cjs")).then((module$1) => module$1.defaultOrgInfo);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/application/models/colorsConfig.ts
|
|
81
|
+
var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
|
|
82
|
+
ColorNames$1["TextPrimary"] = "text-primary";
|
|
83
|
+
ColorNames$1["TextSecondary"] = "text-secondary";
|
|
84
|
+
ColorNames$1["TextAccent"] = "text-accent";
|
|
85
|
+
ColorNames$1["TextLink"] = "text-link";
|
|
86
|
+
ColorNames$1["TextLight"] = "text-light";
|
|
87
|
+
ColorNames$1["BackgroundPrimary"] = "background-primary";
|
|
88
|
+
ColorNames$1["BackgroundSecondary"] = "background-secondary";
|
|
89
|
+
ColorNames$1["BackgroundSecondaryDark"] = "background-secondary-dark";
|
|
90
|
+
ColorNames$1["BackgroundTertiary"] = "background-tertiary";
|
|
91
|
+
ColorNames$1["BackgroundDark"] = "background-dark";
|
|
92
|
+
ColorNames$1["BackgroundLight"] = "background-light";
|
|
93
|
+
ColorNames$1["BackgroundSaturated"] = "background-saturated";
|
|
94
|
+
ColorNames$1["BorderLight"] = "border-light";
|
|
95
|
+
ColorNames$1["BorderMedium"] = "border-medium";
|
|
96
|
+
ColorNames$1["BorderDark"] = "border-dark";
|
|
97
|
+
ColorNames$1["BorderOutline"] = "border-outline";
|
|
98
|
+
ColorNames$1["AccentPrimary"] = "accent-primary";
|
|
99
|
+
ColorNames$1["AccentSecondary"] = "accent-secondary";
|
|
100
|
+
return ColorNames$1;
|
|
101
|
+
}(ColorNames || {});
|
|
102
|
+
const colorVar = (color) => `var(--spiffy-colors-${color})`;
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/contexts/types.ts
|
|
106
|
+
var CategoryExtractorType = /* @__PURE__ */ function(CategoryExtractorType$1) {
|
|
107
|
+
CategoryExtractorType$1["VisitCategoryMap"] = "VisitCategoryMap";
|
|
108
|
+
CategoryExtractorType$1["VisitCategoryDefault"] = "VisitCategoryDefault";
|
|
109
|
+
return CategoryExtractorType$1;
|
|
110
|
+
}(CategoryExtractorType || {});
|
|
111
|
+
var PageVariantTestType = /* @__PURE__ */ function(PageVariantTestType$1) {
|
|
112
|
+
PageVariantTestType$1["ShopifyPLP"] = "ShopifyPLP";
|
|
113
|
+
PageVariantTestType$1["ShopifyPDP"] = "ShopifyPDP";
|
|
114
|
+
PageVariantTestType$1["PageCategory"] = "PageCategory";
|
|
115
|
+
PageVariantTestType$1["CatalogCategory"] = "CatalogCategory";
|
|
116
|
+
PageVariantTestType$1["TopCatalogCategory"] = "TopCatalogCategory";
|
|
117
|
+
PageVariantTestType$1["HasReviews"] = "HasReviews";
|
|
118
|
+
PageVariantTestType$1["InCollection"] = "InCollection";
|
|
119
|
+
PageVariantTestType$1["HasMerchantTag"] = "HasMerchantTag";
|
|
120
|
+
PageVariantTestType$1["FeatureGate"] = "FeatureGate";
|
|
121
|
+
PageVariantTestType$1["PlpId"] = "PlpId";
|
|
122
|
+
PageVariantTestType$1["QueryParam"] = "QueryParam";
|
|
123
|
+
PageVariantTestType$1["ProductId"] = "ProductId";
|
|
124
|
+
PageVariantTestType$1["UserHasInteracted"] = "UserHasInteracted";
|
|
125
|
+
PageVariantTestType$1["UserHasNotInteracted"] = "UserHasNotInteracted";
|
|
126
|
+
PageVariantTestType$1["isLoading"] = "isLoading";
|
|
127
|
+
PageVariantTestType$1["isProductComparison"] = "isProductComparison";
|
|
128
|
+
PageVariantTestType$1["Fallback"] = "Fallback";
|
|
129
|
+
PageVariantTestType$1["UrlResolver"] = "UrlResolver";
|
|
130
|
+
PageVariantTestType$1["Null"] = "null";
|
|
131
|
+
return PageVariantTestType$1;
|
|
132
|
+
}(PageVariantTestType || {});
|
|
133
|
+
var WidgetType = /* @__PURE__ */ function(WidgetType$1) {
|
|
134
|
+
WidgetType$1["ChatPreview"] = "ChatPreview";
|
|
135
|
+
WidgetType$1["SocialProofV2"] = "SocialProofV2";
|
|
136
|
+
WidgetType$1["ChatPreviewV2"] = "ChatPreviewV2";
|
|
137
|
+
WidgetType$1["ChatPreviewIsLoading"] = "ChatPreviewIsLoading";
|
|
138
|
+
WidgetType$1["ChatPreviewPostInteraction"] = "ChatPreviewPostInteraction";
|
|
139
|
+
WidgetType$1["ChatPreviewProductComparison"] = "ChatPreviewProductComparison";
|
|
140
|
+
WidgetType$1["SuggestionBar"] = "SuggestionBar";
|
|
141
|
+
WidgetType$1["SuggestionBarV2"] = "SuggestionBarV2";
|
|
142
|
+
WidgetType$1["ImagePromptCard"] = "ImagePromptCard";
|
|
143
|
+
WidgetType$1["ImageBanner"] = "ImageBanner";
|
|
144
|
+
WidgetType$1["SingleImagePrompt"] = "SingleImagePrompt";
|
|
145
|
+
WidgetType$1["SearchPrompt"] = "SearchPrompt";
|
|
146
|
+
WidgetType$1["SearchZeroStateEntryPoint"] = "SearchZeroStateEntryPoint";
|
|
147
|
+
WidgetType$1["SearchResultsEntryPoint"] = "SearchResultsEntryPoint";
|
|
148
|
+
WidgetType$1["SearchOverlayHost"] = "SearchOverlayHost";
|
|
149
|
+
WidgetType$1["NoOp"] = "NoOp";
|
|
150
|
+
return WidgetType$1;
|
|
151
|
+
}(WidgetType || {});
|
|
152
|
+
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/application/service/customerService/types.ts
|
|
155
|
+
let CustomerServiceType = /* @__PURE__ */ function(CustomerServiceType$1) {
|
|
156
|
+
CustomerServiceType$1["shopify"] = "shopify";
|
|
157
|
+
CustomerServiceType$1["gorgias"] = "gorgias";
|
|
158
|
+
CustomerServiceType$1["kustomer"] = "kustomer";
|
|
159
|
+
CustomerServiceType$1["groove"] = "groove";
|
|
160
|
+
CustomerServiceType$1["tidio"] = "tidio";
|
|
161
|
+
CustomerServiceType$1["zowie"] = "zowie";
|
|
162
|
+
CustomerServiceType$1["redo"] = "redo";
|
|
163
|
+
CustomerServiceType$1["gladly"] = "gladly";
|
|
164
|
+
CustomerServiceType$1["richpanel"] = "richpanel";
|
|
165
|
+
CustomerServiceType$1["zendesk"] = "zendesk";
|
|
166
|
+
CustomerServiceType$1["unsupported"] = "unsupported";
|
|
167
|
+
return CustomerServiceType$1;
|
|
168
|
+
}({});
|
|
169
|
+
let CustomerServiceIntegrationMode = /* @__PURE__ */ function(CustomerServiceIntegrationMode$1) {
|
|
170
|
+
CustomerServiceIntegrationMode$1["none"] = "none";
|
|
171
|
+
CustomerServiceIntegrationMode$1["simple"] = "simple";
|
|
172
|
+
CustomerServiceIntegrationMode$1["full"] = "full";
|
|
173
|
+
return CustomerServiceIntegrationMode$1;
|
|
174
|
+
}({});
|
|
175
|
+
|
|
176
|
+
//#endregion
|
|
177
|
+
Object.defineProperty(exports, 'CategoryExtractorType', {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () {
|
|
180
|
+
return CategoryExtractorType;
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, 'ColorNames', {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () {
|
|
186
|
+
return ColorNames;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, 'CustomerServiceIntegrationMode', {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () {
|
|
192
|
+
return CustomerServiceIntegrationMode;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, 'CustomerServiceType', {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () {
|
|
198
|
+
return CustomerServiceType;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, 'OrgShortName', {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () {
|
|
204
|
+
return OrgShortName;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, 'PageVariantTestType', {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () {
|
|
210
|
+
return PageVariantTestType;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, 'WidgetType', {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () {
|
|
216
|
+
return WidgetType;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, 'colorVar', {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () {
|
|
222
|
+
return colorVar;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, 'getOrgInfo', {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () {
|
|
228
|
+
return getOrgInfo;
|
|
229
|
+
}
|
|
230
|
+
});
|