@envive-ai/react-hooks 0.1.2 → 0.1.3
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/dist/adapters/amplitude/index.cjs +13 -13
- package/dist/adapters/amplitude/index.js +10 -10
- package/dist/{api-B2euFL-5.cjs → api-BtzLHcfU.cjs} +27 -27
- package/dist/{api-XRr_lAG6.js → api-kpPTZhV9.js} +27 -27
- package/dist/application/config/index.cjs +1 -1
- package/dist/application/config/index.js +1 -1
- package/dist/application/models/graphql/index.cjs +12 -12
- package/dist/application/models/graphql/index.js +10 -10
- package/dist/application/models/guards/api/index.cjs +2 -2
- package/dist/application/models/guards/api/index.js +2 -2
- package/dist/application/models/index.cjs +54 -54
- package/dist/application/models/index.js +10 -10
- package/dist/application/models/utilityTypes/index.cjs +1 -1
- package/dist/application/models/utilityTypes/index.js +1 -1
- package/dist/application/models/variantInfo/index.cjs +1 -1
- package/dist/application/models/variantInfo/index.js +1 -1
- package/dist/application/service/customerService/index.cjs +2 -2
- package/dist/application/service/customerService/index.js +2 -2
- package/dist/application/service/index.cjs +82 -82
- package/dist/application/service/index.d.cts +1 -1
- package/dist/application/service/index.d.ts +1 -1
- package/dist/application/service/index.js +16 -16
- package/dist/application/utils/index.cjs +37 -37
- package/dist/application/utils/index.d.ts +1 -1
- package/dist/application/utils/index.js +10 -10
- package/dist/atoms/app/index.cjs +16 -16
- package/dist/atoms/app/index.d.cts +1 -1
- package/dist/atoms/app/index.d.ts +2 -2
- package/dist/atoms/app/index.js +10 -10
- package/dist/atoms/atomStore/index.cjs +1 -1
- package/dist/atoms/atomStore/index.js +1 -1
- package/dist/atoms/chat/index.cjs +40 -40
- package/dist/atoms/chat/index.d.cts +26 -26
- package/dist/atoms/chat/index.d.ts +28 -28
- package/dist/atoms/chat/index.js +10 -10
- package/dist/atoms/globalSearch/index.d.cts +5 -5
- package/dist/atoms/globalSearch/index.d.ts +5 -5
- package/dist/atoms/org/index.cjs +33 -33
- package/dist/atoms/org/index.d.cts +26 -26
- package/dist/atoms/org/index.d.ts +26 -26
- package/dist/atoms/org/index.js +11 -11
- package/dist/atoms/search/index.cjs +12 -12
- package/dist/atoms/search/index.d.cts +1 -1
- package/dist/atoms/search/index.d.ts +1 -1
- package/dist/atoms/search/index.js +12 -12
- package/dist/{bandolier-oMkFDJMF.cjs → bandolier-CQrxBHsk.cjs} +37 -37
- package/dist/{bandolier-C7PAIw02.js → bandolier-Di9DpZ8e.js} +12 -12
- package/dist/{carpe-C0ccKuR9.cjs → carpe-3NJOR-Rj.cjs} +23 -23
- package/dist/{carpe-DFc78_lJ.js → carpe-DmWKaIQq.js} +12 -12
- package/dist/{cdnService-DvDSpfVJ.js → cdnService-BNreZjqy.js} +1 -1
- package/dist/{cdnService-dJU3sHpF.cjs → cdnService-vLxePdrU.cjs} +1 -1
- package/dist/{api-CxGedDxj.cjs → chat-CCQMmhc1.cjs} +2807 -2807
- package/dist/{api-NJEaveju.js → chat-H6YcCS4I.js} +2774 -2774
- package/dist/contexts/index.cjs +19 -19
- package/dist/contexts/index.d.cts +3 -3
- package/dist/contexts/index.js +14 -14
- package/dist/{coterie-Cp9FAJTQ.cjs → coterie-D0UFsFC5.cjs} +17 -17
- package/dist/{coterie-BGT8hqFR.js → coterie-JblRmIZL.js} +12 -12
- package/dist/{customerService-CUyZzowx.js → customerService-C4wc0glQ.js} +1 -1
- package/dist/{customerService-DqPw_XKf.cjs → customerService-zsDlp7g2.cjs} +1 -1
- package/dist/default-C5ZTV8HA.cjs +4 -0
- package/dist/{default-wf_IORgo.js → default-DPv8m-eQ.js} +1 -1
- package/dist/{default-BAXPatxf.cjs → default-DRKBosow.cjs} +1 -1
- package/dist/default-ao0vRl0W.js +4 -0
- package/dist/{dreamlandBaby-DZvM81LQ.js → dreamlandBaby-CyS8oW8X.js} +12 -12
- package/dist/{dreamlandBaby-BzuMvUFS.cjs → dreamlandBaby-y7kSvwH2.cjs} +19 -19
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/{fiveCbd-DE-tDY3d.cjs → fiveCbd-CXVuIBiZ.cjs} +24 -24
- package/dist/{fiveCbd-HNBPqPtX.js → fiveCbd-Cyc3-Ab9.js} +12 -12
- package/dist/{forLoveAndLemons-BeVEBOiu.cjs → forLoveAndLemons-CxQS0USq.cjs} +14 -14
- package/dist/{forLoveAndLemons-BKmJJ9pq.js → forLoveAndLemons-D8mcgmdk.js} +12 -12
- package/dist/{greenpan-BX1viAZB.js → greenpan-JM6SHcqO.js} +12 -12
- package/dist/{greenpan-chd3aa5I.cjs → greenpan-eIzyxVsn.cjs} +21 -21
- package/dist/{grooveLife-CHot3rZw.js → grooveLife-BmsUc2cD.js} +12 -12
- package/dist/{grooveLife-DEob7rK0.cjs → grooveLife-KdTizVUn.cjs} +19 -19
- package/dist/{homegrownCannabis-CoIjcehi.cjs → homegrownCannabis-C0GDai4r.cjs} +18 -18
- package/dist/{homegrownCannabis-CwkS1qDA.js → homegrownCannabis-a9udocBT.js} +12 -12
- package/dist/hooks/index.cjs +36 -36
- package/dist/hooks/index.d.cts +7 -7
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +14 -14
- package/dist/{contexts-iAzSvZjb.cjs → hooks-DjOa7ihH.cjs} +195 -195
- package/dist/{contexts-DO75-Kmx.js → hooks-fneW8SWw.js} +93 -93
- package/dist/{index-BkhvV8RZ.d.cts → index-BQErGgfM.d.cts} +29 -29
- package/dist/{index-CzMrMKx-.d.ts → index-CnqHN_jz.d.ts} +29 -29
- package/dist/interceptors/index.cjs +11 -11
- package/dist/interceptors/index.js +11 -11
- package/dist/{jackArcher-bewC0q1T.cjs → jackArcher-B6OJ0N3a.cjs} +25 -25
- package/dist/{jackArcher-BA-pkB4A.js → jackArcher-B9fe4Hv8.js} +12 -12
- package/dist/{jordanCraig-B5k9nlAw.cjs → jordanCraig-0CB_m_ts.cjs} +65 -65
- package/dist/{jordanCraig-BsQ1mYbt.js → jordanCraig-DNm1iw1L.js} +12 -12
- package/dist/{kindredBravely-BxYkCpGY.js → kindredBravely-CZgt7DJA.js} +12 -12
- package/dist/{kindredBravely-DsN0fo3s.cjs → kindredBravely-KvYPbckZ.cjs} +19 -19
- package/dist/{kutFromTheKloth-BQTCu3ct.cjs → kutFromTheKloth-BxgtWZs9.cjs} +19 -19
- package/dist/{kutFromTheKloth-bukOQM3P.js → kutFromTheKloth-SmteSZjk.js} +12 -12
- package/dist/{larryAndSerges-bj7fgy9b.cjs → larryAndSerges-6O_u3L90.cjs} +15 -15
- package/dist/{larryAndSerges-D1ecaT5a.js → larryAndSerges-DO-zG8ES.js} +11 -11
- package/dist/{leapsAndRebounds-DhNpZETg.js → leapsAndRebounds-BK62AmXw.js} +12 -12
- package/dist/{leapsAndRebounds-BfneG_0c.cjs → leapsAndRebounds-gPsWVUmQ.cjs} +20 -20
- package/dist/{longevityrx-D0goIuX0.cjs → longevityrx-DjKbwJo3.cjs} +17 -17
- package/dist/{longevityrx-CnoGcw0w.js → longevityrx-eq5TeUcy.js} +12 -12
- package/dist/{lookOptic-C4afLPZP.cjs → lookOptic-BPPqms_j.cjs} +17 -17
- package/dist/{lookOptic-uJWIKpER.js → lookOptic-jRpBXQCN.js} +12 -12
- package/dist/{mantraBrand-DuwKHM26.js → mantraBrand-BZOZfkUK.js} +12 -12
- package/dist/{mantraBrand-8JUlYtCE.cjs → mantraBrand-Cp8zptkj.cjs} +30 -30
- package/dist/{medterra-DH067P-V.cjs → medterra-BHYCBgvQ.cjs} +27 -27
- package/dist/{medterra-BQec8rzn.js → medterra-CShe6CLY.js} +12 -12
- package/dist/{modells-DUFnLmAz.cjs → modells-DE7-gmjK.cjs} +23 -23
- package/dist/{modells-DAgLE2xo.js → modells-DFyJxNwT.js} +12 -12
- package/dist/{org-CnHL2I9B.cjs → org-Bkn6fl6I.cjs} +22 -22
- package/dist/{org-C11APG3v.js → org-CX8HFbc9.js} +20 -20
- package/dist/{pressedFloral-DVZVfOSQ.cjs → pressedFloral-BMkCVs8c.cjs} +26 -26
- package/dist/{pressedFloral-MdbuoRyA.js → pressedFloral-aK9br-LF.js} +12 -12
- package/dist/{search-bSYdOBhY.cjs → search-DtIFZeMA.cjs} +28 -28
- package/dist/{search-CvHb1M3S.js → search-eWwg8pNn.js} +5 -5
- package/dist/{search-filter-types-BsJjrxk0.d.ts → search-filter-types-ByJnFPc4.d.cts} +8 -8
- package/dist/{search-filter-types-CqaGK3nM.d.cts → search-filter-types-DPgeG8FS.d.ts} +8 -8
- package/dist/{skinPerfection-bGiYxq1i.js → skinPerfection-B9G6yLM2.js} +12 -12
- package/dist/{skinPerfection-BcEWICQN.cjs → skinPerfection-BBC1q65Z.cjs} +17 -17
- package/dist/{snapSupplements-BXSXTjqF.cjs → snapSupplements-D7hx6Kgj.cjs} +17 -17
- package/dist/{snapSupplements-D7hHhdC9.js → snapSupplements-DKvJl__T.js} +12 -12
- package/dist/{spanx-lUzP6Lva.cjs → spanx-D-ZKkxjM.cjs} +20 -20
- package/dist/{spanx-5-0yX3iK.js → spanx-yl7YfVrf.js} +12 -12
- package/dist/{spanxStaging-hreMR0MS.cjs → spanxStaging-CXeIg6zI.cjs} +26 -26
- package/dist/{spanxStaging-HglCMJag.js → spanxStaging-DzGXL9wD.js} +12 -12
- package/dist/{supergoop-CkjtuRck.cjs → supergoop-CSpDPOpl.cjs} +18 -18
- package/dist/{supergoop-C9DDT3lY.js → supergoop-D0UkuRiA.js} +11 -11
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{types-BVsTRyxL.js → types-C3S1H4hl.js} +33 -33
- package/dist/{types-BUjohkXp.cjs → types-lcjuhDBt.cjs} +33 -33
- package/dist/{uniqueVintage-DIMGtYAU.cjs → uniqueVintage-DygVpCqU.cjs} +36 -36
- package/dist/{uniqueVintage-DPWA5Ed6.js → uniqueVintage-_n0FZFVj.js} +12 -12
- package/dist/{useMessageInterceptor-C2RZM-fo.js → useMessageInterceptor-BP6gzo8a.js} +3 -3
- package/dist/{useMessageInterceptor-B-P_rw73.cjs → useMessageInterceptor-BnUG2Pzt.cjs} +9 -9
- package/dist/{variant-XITncuI3.d.ts → variant-DH4zusMi.d.cts} +1 -1
- package/dist/{variant-BGjOVpY3.d.cts → variant-DTEqSBHd.d.ts} +3 -3
- package/dist/{venaCbd-B-znfAsl.js → venaCbd-BS0dvdBm.js} +12 -12
- package/dist/{venaCbd-BOwOtpOz.cjs → venaCbd-Pqg0bj-P.cjs} +21 -21
- package/dist/{westonJonBoucher-DCRagGu3.js → westonJonBoucher-CLw8Hy6u.js} +12 -12
- package/dist/{westonJonBoucher-CraTzRVt.cjs → westonJonBoucher-CeA0jwxe.cjs} +20 -20
- package/dist/{wineEnthusiast-Bv7umajk.js → wineEnthusiast-M9P18d1w.js} +12 -12
- package/dist/{wineEnthusiast-sVuATrq6.cjs → wineEnthusiast-gHBaQMbe.cjs} +20 -20
- package/dist/{wolfMattress-BUH-Rhov.js → wolfMattress-BQHjoQYu.js} +12 -12
- package/dist/{wolfMattress-DpVHIEnJ.cjs → wolfMattress-CdmN-Evm.cjs} +19 -19
- package/dist/{wolfTactical-Q14A1fpw.js → wolfTactical-Cc2ZLBRh.js} +12 -12
- package/dist/{wolfTactical-BcvF_sy-.cjs → wolfTactical-dObnPgAG.cjs} +20 -20
- package/package.json +1 -1
- package/src/contexts/systemSettingsContext.tsx +21 -8
- package/src/hooks/useSearch.tsx +6 -3
- package/src/types/search-filter-types.ts +7 -7
- package/dist/default-BR3225LZ.js +0 -4
- package/dist/default-DR6YjE9B.cjs +0 -4
- /package/dist/{atomStore-CeJm9Llb.cjs → atomStore-BNQyGmU_.cjs} +0 -0
- /package/dist/{atomStore-BFtpknLM.js → atomStore-TnLPtYns.js} +0 -0
- /package/dist/{enviveConfigContext-Dfr2VH6u.cjs → enviveConfigContext-Bs8kepnO.cjs} +0 -0
- /package/dist/{enviveConfigContext-CUGLpPGU.js → enviveConfigContext-CWVdVWKW.js} +0 -0
- /package/dist/{events-ClCDFK7t.js → events-DgFzlVJR.js} +0 -0
- /package/dist/{events-Da7gpmGv.cjs → events-bH-24eRW.cjs} +0 -0
- /package/dist/{logger-Dln20ans.cjs → logger-Be0NyKaY.cjs} +0 -0
- /package/dist/{logger-pdEEY8T2.js → logger-BexDfK3W.js} +0 -0
- /package/dist/{utilityTypes-C4h2wgAK.cjs → utilityTypes-DMdsI0DG.cjs} +0 -0
- /package/dist/{utilityTypes-BVikejDo.js → utilityTypes-UWdNHElu.js} +0 -0
- /package/dist/{variantInfo-CzhR5W6h.js → variantInfo-BTvC6CQh.js} +0 -0
- /package/dist/{variantInfo-CNRTY0gH.cjs → variantInfo-Cz2YXraO.cjs} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
1
|
+
require('./events-bH-24eRW.cjs');
|
|
2
|
+
require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
5
|
+
require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
6
|
+
require('./atomStore-BNQyGmU_.cjs');
|
|
7
|
+
require('./api-BtzLHcfU.cjs');
|
|
8
|
+
require('./customerService-zsDlp7g2.cjs');
|
|
9
|
+
require('./utilityTypes-DMdsI0DG.cjs');
|
|
10
|
+
require('./variantInfo-Cz2YXraO.cjs');
|
|
11
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
const require_socialProofClasses = require('./socialProofClasses-BYLiEXpU.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/merchants/mantraBrand/mantraBrand.ts
|
|
@@ -269,7 +269,7 @@ const mantraPageConfig = () => ({
|
|
|
269
269
|
{ testType: require_types.PageVariantTestType.UrlResolver },
|
|
270
270
|
{
|
|
271
271
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
272
|
-
featureGate:
|
|
272
|
+
featureGate: require_chat.FeatureGates.IsGlobalSearchEnabled
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
testType: require_types.PageVariantTestType.QueryParam,
|
|
@@ -305,7 +305,7 @@ const mantraPageConfig = () => ({
|
|
|
305
305
|
variantType: "plp",
|
|
306
306
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
307
307
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
308
|
-
featureGate:
|
|
308
|
+
featureGate: require_chat.FeatureGates.IsGlobalSearchEnabled
|
|
309
309
|
}],
|
|
310
310
|
plpIdExtractor: "url-resolver-plp-id",
|
|
311
311
|
widgetMounting: [
|
|
@@ -346,7 +346,7 @@ const mantraPageConfig = () => ({
|
|
|
346
346
|
variantType: "pdp",
|
|
347
347
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
348
348
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
349
|
-
featureGate:
|
|
349
|
+
featureGate: require_chat.FeatureGates.IsGlobalSearchEnabled
|
|
350
350
|
}],
|
|
351
351
|
productIdExtractor: "url-resolver-product-id",
|
|
352
352
|
widgetMounting: [
|
|
@@ -385,7 +385,7 @@ const mantraPageConfig = () => ({
|
|
|
385
385
|
variantType: "homepage",
|
|
386
386
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
387
387
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
388
|
-
featureGate:
|
|
388
|
+
featureGate: require_chat.FeatureGates.IsGlobalSearchEnabled
|
|
389
389
|
}],
|
|
390
390
|
widgetMounting: [
|
|
391
391
|
{
|
|
@@ -431,7 +431,7 @@ const mantraPageConfig = () => ({
|
|
|
431
431
|
variantType: "other",
|
|
432
432
|
variantTests: [{ testType: require_types.PageVariantTestType.UrlResolver }, {
|
|
433
433
|
testType: require_types.PageVariantTestType.FeatureGate,
|
|
434
|
-
featureGate:
|
|
434
|
+
featureGate: require_chat.FeatureGates.IsGlobalSearchEnabled
|
|
435
435
|
}],
|
|
436
436
|
widgetMounting: [
|
|
437
437
|
{
|
|
@@ -517,7 +517,7 @@ const mantraPageConfig = () => ({
|
|
|
517
517
|
topSuggestionsBar: {
|
|
518
518
|
widgetConfigId: "topSuggestionsBar",
|
|
519
519
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
520
|
-
metricDisplayLocation:
|
|
520
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
521
521
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
522
522
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
523
523
|
variant: "secondary",
|
|
@@ -593,7 +593,7 @@ const mantraPageConfig = () => ({
|
|
|
593
593
|
bottomSuggestionsBar: {
|
|
594
594
|
widgetConfigId: "bottomSuggestionsBar",
|
|
595
595
|
contentId: "spiffy-bottom-suggestion-bar-contents",
|
|
596
|
-
metricDisplayLocation:
|
|
596
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.BOTTOM_REVIEWS_SNIPPET,
|
|
597
597
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
598
598
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_BOTTOM,
|
|
599
599
|
variant: "darkPrimary",
|
|
@@ -617,7 +617,7 @@ const mantraPageConfig = () => ({
|
|
|
617
617
|
testId: require_embedded.SEARCH_RESULTS_ENTRYPOINT_TESTID,
|
|
618
618
|
insertionPoint: {
|
|
619
619
|
selector: ".main-content",
|
|
620
|
-
insertionType:
|
|
620
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
621
621
|
},
|
|
622
622
|
suppressionSelector: ".collection",
|
|
623
623
|
className: "search-results-entry-point",
|
|
@@ -629,7 +629,7 @@ const mantraPageConfig = () => ({
|
|
|
629
629
|
testId: require_embedded.SEARCH_RESULTS_ENTRYPOINT_TESTID,
|
|
630
630
|
insertionPoint: {
|
|
631
631
|
selector: ".main-content",
|
|
632
|
-
insertionType:
|
|
632
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
633
633
|
},
|
|
634
634
|
suppressionSelector: ".container",
|
|
635
635
|
className: "search-results-entry-point"
|
|
@@ -640,7 +640,7 @@ const mantraPageConfig = () => ({
|
|
|
640
640
|
testId: require_embedded.SEARCH_RESULTS_NO_OP_ENTRYPOINT_TESTID,
|
|
641
641
|
insertionPoint: {
|
|
642
642
|
selector: "#headerBottom.header__bottom.header__main-one",
|
|
643
|
-
insertionType:
|
|
643
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
644
644
|
},
|
|
645
645
|
suppressionSelector: ".search__container",
|
|
646
646
|
className: "search-results-no-op"
|
|
@@ -651,7 +651,7 @@ const mantraPageConfig = () => ({
|
|
|
651
651
|
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
652
652
|
insertionPoint: {
|
|
653
653
|
selector: ".main-content",
|
|
654
|
-
insertionType:
|
|
654
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
655
655
|
},
|
|
656
656
|
className: "global-entry-mobile",
|
|
657
657
|
style: {
|
|
@@ -665,7 +665,7 @@ const mantraPageConfig = () => ({
|
|
|
665
665
|
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
666
666
|
insertionPoint: {
|
|
667
667
|
selector: ".header__bottom.header__main-one .header-additional.right_side_wrapper .js-search-trigger.search",
|
|
668
|
-
insertionType:
|
|
668
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
669
669
|
},
|
|
670
670
|
suppressionSelector: ".header__bottom.header__main-one .header-additional.right_side_wrapper .js-search-trigger.search",
|
|
671
671
|
className: "global-entry-desktop",
|
|
@@ -677,7 +677,7 @@ const mantraPageConfig = () => ({
|
|
|
677
677
|
testId: require_embedded.GLOBAL_SEARCH_ENTRYPOINT_TESTID,
|
|
678
678
|
insertionPoint: {
|
|
679
679
|
selector: ".header__bottom.header__main-one .left_side_wrapper .js-search-trigger.search",
|
|
680
|
-
insertionType:
|
|
680
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
681
681
|
},
|
|
682
682
|
suppressionSelector: ".header__bottom.header__main-one .left_side_wrapper .js-search-trigger.search",
|
|
683
683
|
className: "global-entry-tablet",
|
|
@@ -689,7 +689,7 @@ const mantraPageConfig = () => ({
|
|
|
689
689
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
690
690
|
insertionPoint: {
|
|
691
691
|
selector: ".product-single__description",
|
|
692
|
-
insertionType:
|
|
692
|
+
insertionType: require_chat.DOMInsertionType.ADJACENT_AFTER_END
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
695
|
chatPreviewPLP: {
|
|
@@ -698,14 +698,14 @@ const mantraPageConfig = () => ({
|
|
|
698
698
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
699
699
|
insertionPoint: {
|
|
700
700
|
selector: ".main_custom_class_col",
|
|
701
|
-
insertionType:
|
|
701
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
702
702
|
},
|
|
703
703
|
style: {
|
|
704
704
|
paddingInline: "24px",
|
|
705
705
|
marginBottom: "24px",
|
|
706
706
|
width: "100%"
|
|
707
707
|
},
|
|
708
|
-
gridInsertionType:
|
|
708
|
+
gridInsertionType: require_chat.GridInsertionType.ROW_3
|
|
709
709
|
},
|
|
710
710
|
topSuggestionBarPDP: {
|
|
711
711
|
mountingConfigId: "topSuggestionBarPDP",
|
|
@@ -713,7 +713,7 @@ const mantraPageConfig = () => ({
|
|
|
713
713
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
714
714
|
insertionPoint: {
|
|
715
715
|
selector: ".ProductForm",
|
|
716
|
-
insertionType:
|
|
716
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
717
717
|
},
|
|
718
718
|
style: {
|
|
719
719
|
marginTop: "16px",
|
|
@@ -726,7 +726,7 @@ const mantraPageConfig = () => ({
|
|
|
726
726
|
testId: require_embedded.BOTTOM_SUGGESTION_BAR_TESTID,
|
|
727
727
|
insertionPoint: {
|
|
728
728
|
selector: ".stamped-header",
|
|
729
|
-
insertionType:
|
|
729
|
+
insertionType: require_chat.DOMInsertionType.ADJACENT_BEFORE_END,
|
|
730
730
|
selectionIndex: 0
|
|
731
731
|
},
|
|
732
732
|
style: {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
1
|
+
require('./events-bH-24eRW.cjs');
|
|
2
|
+
require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
5
|
+
require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
6
|
+
require('./atomStore-BNQyGmU_.cjs');
|
|
7
|
+
require('./api-BtzLHcfU.cjs');
|
|
8
|
+
require('./customerService-zsDlp7g2.cjs');
|
|
9
|
+
require('./utilityTypes-DMdsI0DG.cjs');
|
|
10
|
+
require('./variantInfo-Cz2YXraO.cjs');
|
|
11
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/medterra/medterra.ts
|
|
21
21
|
const medterraColors = {
|
|
@@ -306,7 +306,7 @@ const medterraPageConfig = () => ({
|
|
|
306
306
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
307
307
|
widgetConfigId: "topSuggestionsBar",
|
|
308
308
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
309
|
-
metricDisplayLocation:
|
|
309
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
310
310
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
311
311
|
variant: "dark",
|
|
312
312
|
hoverVariant: "secondaryDark",
|
|
@@ -382,7 +382,7 @@ const medterraPageConfig = () => ({
|
|
|
382
382
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
383
383
|
widgetConfigId: "topSuggestionsBarMoodGummies",
|
|
384
384
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
385
|
-
metricDisplayLocation:
|
|
385
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
386
386
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
387
387
|
variant: "dark",
|
|
388
388
|
hoverVariant: "secondaryDark",
|
|
@@ -398,7 +398,7 @@ const medterraPageConfig = () => ({
|
|
|
398
398
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
399
399
|
widgetConfigId: "topSuggestionsBarSleep",
|
|
400
400
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
401
|
-
metricDisplayLocation:
|
|
401
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
402
402
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
403
403
|
variant: "dark",
|
|
404
404
|
hoverVariant: "secondaryDark",
|
|
@@ -414,7 +414,7 @@ const medterraPageConfig = () => ({
|
|
|
414
414
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
415
415
|
widgetConfigId: "topSuggestionsBarRelief",
|
|
416
416
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
417
|
-
metricDisplayLocation:
|
|
417
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
418
418
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
419
419
|
variant: "dark",
|
|
420
420
|
hoverVariant: "secondaryDark",
|
|
@@ -430,7 +430,7 @@ const medterraPageConfig = () => ({
|
|
|
430
430
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
431
431
|
widgetConfigId: "topSuggestionsBarRelaxCbd",
|
|
432
432
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
433
|
-
metricDisplayLocation:
|
|
433
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
434
434
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
435
435
|
variant: "dark",
|
|
436
436
|
hoverVariant: "secondaryDark",
|
|
@@ -446,7 +446,7 @@ const medterraPageConfig = () => ({
|
|
|
446
446
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
447
447
|
widgetConfigId: "topSuggestionsBarFocus",
|
|
448
448
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
449
|
-
metricDisplayLocation:
|
|
449
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
450
450
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
451
451
|
variant: "dark",
|
|
452
452
|
hoverVariant: "secondaryDark",
|
|
@@ -462,7 +462,7 @@ const medterraPageConfig = () => ({
|
|
|
462
462
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
463
463
|
widgetConfigId: "topSuggestionsBarPets",
|
|
464
464
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
465
|
-
metricDisplayLocation:
|
|
465
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
466
466
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
467
467
|
variant: "dark",
|
|
468
468
|
hoverVariant: "secondaryDark",
|
|
@@ -484,9 +484,9 @@ const medterraPageConfig = () => ({
|
|
|
484
484
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
485
485
|
insertionPoint: {
|
|
486
486
|
selector: ".product-grid",
|
|
487
|
-
insertionType:
|
|
487
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
488
488
|
},
|
|
489
|
-
gridInsertionType:
|
|
489
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_5,
|
|
490
490
|
style: {
|
|
491
491
|
borderTop: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
492
492
|
borderBottom: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -504,9 +504,9 @@ const medterraPageConfig = () => ({
|
|
|
504
504
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
505
505
|
insertionPoint: {
|
|
506
506
|
selector: "#product-grid",
|
|
507
|
-
insertionType:
|
|
507
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
508
508
|
},
|
|
509
|
-
gridInsertionType:
|
|
509
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_2,
|
|
510
510
|
style: {
|
|
511
511
|
borderTop: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
512
512
|
borderBottom: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -524,9 +524,9 @@ const medterraPageConfig = () => ({
|
|
|
524
524
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
525
525
|
insertionPoint: {
|
|
526
526
|
selector: ".collection .product-grid",
|
|
527
|
-
insertionType:
|
|
527
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
528
528
|
},
|
|
529
|
-
gridInsertionType:
|
|
529
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_3,
|
|
530
530
|
style: {
|
|
531
531
|
borderTop: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
532
532
|
borderBottom: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -543,7 +543,7 @@ const medterraPageConfig = () => ({
|
|
|
543
543
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
544
544
|
insertionPoint: {
|
|
545
545
|
selector: ".product.product--medium",
|
|
546
|
-
insertionType:
|
|
546
|
+
insertionType: require_chat.DOMInsertionType.APPEND_CHILD
|
|
547
547
|
},
|
|
548
548
|
style: {
|
|
549
549
|
borderTop: `solid 1px ${medterraColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -564,7 +564,7 @@ const medterraPageConfig = () => ({
|
|
|
564
564
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
565
565
|
insertionPoint: {
|
|
566
566
|
selector: ".product-metafields-custom-tagline",
|
|
567
|
-
insertionType:
|
|
567
|
+
insertionType: require_chat.DOMInsertionType.BEFORE
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./
|
|
4
|
-
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-
|
|
5
|
-
import "./enviveConfigContext-
|
|
6
|
-
import "./atomStore-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
1
|
+
import "./events-DgFzlVJR.js";
|
|
2
|
+
import "./logger-BexDfK3W.js";
|
|
3
|
+
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./chat-H6YcCS4I.js";
|
|
4
|
+
import { ColorNames, CustomerServiceIntegrationMode, CustomerServiceType, OrgShortName, PageVariantTestType, WidgetType, colorVar } from "./types-C3S1H4hl.js";
|
|
5
|
+
import "./enviveConfigContext-CWVdVWKW.js";
|
|
6
|
+
import "./atomStore-TnLPtYns.js";
|
|
7
|
+
import "./api-kpPTZhV9.js";
|
|
8
|
+
import "./customerService-C4wc0glQ.js";
|
|
9
|
+
import "./utilityTypes-UWdNHElu.js";
|
|
10
|
+
import "./variantInfo-BTvC6CQh.js";
|
|
11
11
|
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
12
|
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
-
import { CdnService } from "./cdnService-
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
14
|
import "./chat-Dk6KPb1K.js";
|
|
15
15
|
import "./components-DAQxVIn9.js";
|
|
16
16
|
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
17
|
import "./locators-C2DX_nX6.js";
|
|
18
|
-
import { defaultOrgUIConfig } from "./default-
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/medterra/medterra.ts
|
|
21
21
|
const medterraColors = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
const
|
|
4
|
-
const require_types = require('./types-
|
|
5
|
-
require('./enviveConfigContext-
|
|
6
|
-
require('./atomStore-
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
1
|
+
require('./events-bH-24eRW.cjs');
|
|
2
|
+
require('./logger-Be0NyKaY.cjs');
|
|
3
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
4
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
5
|
+
require('./enviveConfigContext-Bs8kepnO.cjs');
|
|
6
|
+
require('./atomStore-BNQyGmU_.cjs');
|
|
7
|
+
require('./api-BtzLHcfU.cjs');
|
|
8
|
+
require('./customerService-zsDlp7g2.cjs');
|
|
9
|
+
require('./utilityTypes-DMdsI0DG.cjs');
|
|
10
|
+
require('./variantInfo-Cz2YXraO.cjs');
|
|
11
11
|
const require_suggestionBarV2_types = require('./suggestionBarV2-types-DG3Ekk44.cjs');
|
|
12
12
|
const require_divIds = require('./divIds-CFyAjjp3.cjs');
|
|
13
|
-
const require_cdnService = require('./cdnService-
|
|
13
|
+
const require_cdnService = require('./cdnService-vLxePdrU.cjs');
|
|
14
14
|
require('./chat-CCgyDehy.cjs');
|
|
15
15
|
require('./components-CScS7Ii-.cjs');
|
|
16
16
|
const require_embedded = require('./embedded-BlXJUbik.cjs');
|
|
17
17
|
require('./locators-CUpyd9Wt.cjs');
|
|
18
|
-
const require_default = require('./default-
|
|
18
|
+
const require_default = require('./default-DRKBosow.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/modells/modells.ts
|
|
21
21
|
const modellsColors = {
|
|
@@ -252,7 +252,7 @@ const modellsPageConfig = () => ({
|
|
|
252
252
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
253
253
|
widgetConfigId: "topSuggestionBarHats",
|
|
254
254
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
255
|
-
metricDisplayLocation:
|
|
255
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
256
256
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
257
257
|
variant: "secondary",
|
|
258
258
|
buttonBorderRadius: "md",
|
|
@@ -270,7 +270,7 @@ const modellsPageConfig = () => ({
|
|
|
270
270
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
271
271
|
widgetConfigId: "topSuggestionBarFanShop",
|
|
272
272
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
273
|
-
metricDisplayLocation:
|
|
273
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
274
274
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
275
275
|
variant: "secondary",
|
|
276
276
|
buttonBorderRadius: "md",
|
|
@@ -289,7 +289,7 @@ const modellsPageConfig = () => ({
|
|
|
289
289
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
290
290
|
widgetConfigId: "topSuggestionBarCamping",
|
|
291
291
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
292
|
-
metricDisplayLocation:
|
|
292
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
293
293
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
294
294
|
variant: "secondary",
|
|
295
295
|
buttonBorderRadius: "md",
|
|
@@ -307,7 +307,7 @@ const modellsPageConfig = () => ({
|
|
|
307
307
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
308
308
|
widgetConfigId: "topSuggestionBarSupplements",
|
|
309
309
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
310
|
-
metricDisplayLocation:
|
|
310
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
311
311
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
312
312
|
variant: "secondary",
|
|
313
313
|
buttonBorderRadius: "md",
|
|
@@ -325,7 +325,7 @@ const modellsPageConfig = () => ({
|
|
|
325
325
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
326
326
|
widgetConfigId: "topSuggestionBarGolf",
|
|
327
327
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
328
|
-
metricDisplayLocation:
|
|
328
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
329
329
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
330
330
|
variant: "secondary",
|
|
331
331
|
buttonBorderRadius: "md",
|
|
@@ -343,7 +343,7 @@ const modellsPageConfig = () => ({
|
|
|
343
343
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
344
344
|
widgetConfigId: "topSuggestionBarDrinkware",
|
|
345
345
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
346
|
-
metricDisplayLocation:
|
|
346
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
347
347
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
348
348
|
variant: "secondary",
|
|
349
349
|
buttonBorderRadius: "md",
|
|
@@ -362,7 +362,7 @@ const modellsPageConfig = () => ({
|
|
|
362
362
|
type: require_types.WidgetType.SuggestionBarV2,
|
|
363
363
|
widgetConfigId: "topSuggestionBar",
|
|
364
364
|
contentId: "spiffy-top-suggestion-bar-contents",
|
|
365
|
-
metricDisplayLocation:
|
|
365
|
+
metricDisplayLocation: require_chat.ChatElementDisplayLocation.TOP_REVIEWS_SNIPPET,
|
|
366
366
|
location: require_suggestionBarV2_types.SuggestionBarLocationForMetrics.SUGGESTION_BAR_TOP,
|
|
367
367
|
variant: "secondary",
|
|
368
368
|
buttonBorderRadius: "md",
|
|
@@ -439,9 +439,9 @@ const modellsPageConfig = () => ({
|
|
|
439
439
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
440
440
|
insertionPoint: {
|
|
441
441
|
selector: "#product-grid",
|
|
442
|
-
insertionType:
|
|
442
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
443
443
|
},
|
|
444
|
-
gridInsertionType:
|
|
444
|
+
gridInsertionType: require_chat.GridInsertionType.FIXED_4,
|
|
445
445
|
style: {
|
|
446
446
|
paddingBottom: "8px",
|
|
447
447
|
borderTop: `solid 1px ${modellsColors[require_types.ColorNames.BorderLight]}`,
|
|
@@ -456,7 +456,7 @@ const modellsPageConfig = () => ({
|
|
|
456
456
|
testId: require_embedded.CHAT_PREVIEW_TESTID,
|
|
457
457
|
insertionPoint: {
|
|
458
458
|
selector: ".product__description",
|
|
459
|
-
insertionType:
|
|
459
|
+
insertionType: require_chat.DOMInsertionType.APPEND_CHILD
|
|
460
460
|
}
|
|
461
461
|
},
|
|
462
462
|
topSuggestionBarPDP: {
|
|
@@ -465,7 +465,7 @@ const modellsPageConfig = () => ({
|
|
|
465
465
|
testId: require_embedded.TOP_SUGGESTION_BAR_TESTID,
|
|
466
466
|
insertionPoint: {
|
|
467
467
|
selector: ".main__price",
|
|
468
|
-
insertionType:
|
|
468
|
+
insertionType: require_chat.DOMInsertionType.AFTER
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./
|
|
4
|
-
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType } from "./types-
|
|
5
|
-
import "./enviveConfigContext-
|
|
6
|
-
import "./atomStore-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
1
|
+
import "./events-DgFzlVJR.js";
|
|
2
|
+
import "./logger-BexDfK3W.js";
|
|
3
|
+
import { ChatElementDisplayLocation, DOMInsertionType, GridInsertionType } from "./chat-H6YcCS4I.js";
|
|
4
|
+
import { ColorNames, OrgShortName, PageVariantTestType, WidgetType } from "./types-C3S1H4hl.js";
|
|
5
|
+
import "./enviveConfigContext-CWVdVWKW.js";
|
|
6
|
+
import "./atomStore-TnLPtYns.js";
|
|
7
|
+
import "./api-kpPTZhV9.js";
|
|
8
|
+
import "./customerService-C4wc0glQ.js";
|
|
9
|
+
import "./utilityTypes-UWdNHElu.js";
|
|
10
|
+
import "./variantInfo-BTvC6CQh.js";
|
|
11
11
|
import { SuggestionBarLocationForMetrics } from "./suggestionBarV2-types-B0RbMStE.js";
|
|
12
12
|
import { CHAT_PREVIEW_CONTAINER_ID, TOP_SUGGESTION_BAR_PDP_ID } from "./divIds-BWvq-i6I.js";
|
|
13
|
-
import { CdnService } from "./cdnService-
|
|
13
|
+
import { CdnService } from "./cdnService-BNreZjqy.js";
|
|
14
14
|
import "./chat-Dk6KPb1K.js";
|
|
15
15
|
import "./components-DAQxVIn9.js";
|
|
16
16
|
import { CHAT_PREVIEW_TESTID, TOP_SUGGESTION_BAR_TESTID } from "./embedded-C1jvFj3v.js";
|
|
17
17
|
import "./locators-C2DX_nX6.js";
|
|
18
|
-
import { defaultOrgUIConfig } from "./default-
|
|
18
|
+
import { defaultOrgUIConfig } from "./default-DPv8m-eQ.js";
|
|
19
19
|
|
|
20
20
|
//#region src/merchants/modells/modells.ts
|
|
21
21
|
const modellsColors = {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const
|
|
3
|
-
const require_types = require('./types-
|
|
2
|
+
const require_chat = require('./chat-CCQMmhc1.cjs');
|
|
3
|
+
const require_types = require('./types-lcjuhDBt.cjs');
|
|
4
4
|
let jotai = require("jotai");
|
|
5
5
|
jotai = require_chunk.__toESM(jotai);
|
|
6
6
|
|
|
7
|
+
//#region src/atoms/org/orgPageConfig.ts
|
|
8
|
+
const internalInjectedPageVariantsAtom = (0, jotai.atom)([]);
|
|
9
|
+
const orgPageConfigAtom = (0, jotai.atom)(async (get) => {
|
|
10
|
+
const orgConfig = get(require_chat.orgConfigAtom);
|
|
11
|
+
const orgInfo = await require_types.getOrgInfo(orgConfig.org.org.shortName);
|
|
12
|
+
const frontendConfig = get(require_chat.frontendConfigAtom);
|
|
13
|
+
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
14
|
+
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
15
|
+
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
16
|
+
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
17
|
+
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
18
|
+
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
19
|
+
return OverridenOrgPageConfig;
|
|
20
|
+
}, (_, set, pageVariants) => {
|
|
21
|
+
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/atoms/org/customerService.ts
|
|
8
26
|
const isBusinessHoursAtom = (0, jotai.atom)(true);
|
|
9
27
|
const isCustomerServiceOpenAtom = (0, jotai.atom)(false);
|
|
@@ -14,8 +32,8 @@ const customerServiceAttachment = (0, jotai.atom)();
|
|
|
14
32
|
//#endregion
|
|
15
33
|
//#region src/atoms/org/merchantCss.ts
|
|
16
34
|
const orgMerchantCssAtom = (0, jotai.atom)(async (get) => {
|
|
17
|
-
const orgUIConfig = get(
|
|
18
|
-
const colors = await get(
|
|
35
|
+
const orgUIConfig = get(require_chat.orgUIConfigAtom);
|
|
36
|
+
const colors = await get(require_chat.colorsConfigAtom);
|
|
19
37
|
const merchantThemeCss = colors ? `
|
|
20
38
|
|
|
21
39
|
* {
|
|
@@ -43,24 +61,6 @@ const orgMerchantCssAtom = (0, jotai.atom)(async (get) => {
|
|
|
43
61
|
return `${merchantThemeCss} ${merchantOverrideCss}`;
|
|
44
62
|
});
|
|
45
63
|
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/atoms/org/orgPageConfig.ts
|
|
48
|
-
const internalInjectedPageVariantsAtom = (0, jotai.atom)([]);
|
|
49
|
-
const orgPageConfigAtom = (0, jotai.atom)(async (get) => {
|
|
50
|
-
const orgConfig = get(require_api.orgConfigAtom);
|
|
51
|
-
const orgInfo = await require_types.getOrgInfo(orgConfig.org.org.shortName);
|
|
52
|
-
const frontendConfig = get(require_api.frontendConfigAtom);
|
|
53
|
-
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
54
|
-
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
55
|
-
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
56
|
-
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
57
|
-
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
58
|
-
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
59
|
-
return OverridenOrgPageConfig;
|
|
60
|
-
}, (_, set, pageVariants) => {
|
|
61
|
-
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
64
|
//#endregion
|
|
65
65
|
Object.defineProperty(exports, 'customerServiceAttachment', {
|
|
66
66
|
enumerable: true,
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import { colorsConfigAtom, frontendConfigAtom, orgConfigAtom, orgUIConfigAtom } from "./
|
|
2
|
-
import { ColorNames, getOrgInfo } from "./types-
|
|
1
|
+
import { colorsConfigAtom, frontendConfigAtom, orgConfigAtom, orgUIConfigAtom } from "./chat-H6YcCS4I.js";
|
|
2
|
+
import { ColorNames, getOrgInfo } from "./types-C3S1H4hl.js";
|
|
3
3
|
import { atom } from "jotai";
|
|
4
4
|
|
|
5
|
+
//#region src/atoms/org/orgPageConfig.ts
|
|
6
|
+
const internalInjectedPageVariantsAtom = atom([]);
|
|
7
|
+
const orgPageConfigAtom = atom(async (get) => {
|
|
8
|
+
const orgConfig = get(orgConfigAtom);
|
|
9
|
+
const orgInfo = await getOrgInfo(orgConfig.org.org.shortName);
|
|
10
|
+
const frontendConfig = get(frontendConfigAtom);
|
|
11
|
+
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
12
|
+
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
13
|
+
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
14
|
+
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
15
|
+
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
16
|
+
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
17
|
+
return OverridenOrgPageConfig;
|
|
18
|
+
}, (_, set, pageVariants) => {
|
|
19
|
+
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
5
23
|
//#region src/atoms/org/customerService.ts
|
|
6
24
|
const isBusinessHoursAtom = atom(true);
|
|
7
25
|
const isCustomerServiceOpenAtom = atom(false);
|
|
@@ -41,23 +59,5 @@ const orgMerchantCssAtom = atom(async (get) => {
|
|
|
41
59
|
return `${merchantThemeCss} ${merchantOverrideCss}`;
|
|
42
60
|
});
|
|
43
61
|
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/atoms/org/orgPageConfig.ts
|
|
46
|
-
const internalInjectedPageVariantsAtom = atom([]);
|
|
47
|
-
const orgPageConfigAtom = atom(async (get) => {
|
|
48
|
-
const orgConfig = get(orgConfigAtom);
|
|
49
|
-
const orgInfo = await getOrgInfo(orgConfig.org.org.shortName);
|
|
50
|
-
const frontendConfig = get(frontendConfigAtom);
|
|
51
|
-
const injectedPageVariants = get(internalInjectedPageVariantsAtom);
|
|
52
|
-
const OverridenOrgPageConfig = { ...orgInfo.orgPageConfig() };
|
|
53
|
-
if (frontendConfig?.mountingConfigs) OverridenOrgPageConfig.mountingConfigs = frontendConfig.mountingConfigs;
|
|
54
|
-
if (frontendConfig?.widgetConfigs) OverridenOrgPageConfig.widgetConfigs = frontendConfig.widgetConfigs;
|
|
55
|
-
if (frontendConfig?.pageVariants) OverridenOrgPageConfig.pageVariants = frontendConfig.pageVariants;
|
|
56
|
-
if (injectedPageVariants.length > 0) OverridenOrgPageConfig.pageVariants = [...injectedPageVariants];
|
|
57
|
-
return OverridenOrgPageConfig;
|
|
58
|
-
}, (_, set, pageVariants) => {
|
|
59
|
-
set(internalInjectedPageVariantsAtom, pageVariants);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
62
|
//#endregion
|
|
63
63
|
export { customerServiceAttachment, customerServiceChatStateAtom, customerServiceResponseAtom, isBusinessHoursAtom, isCustomerServiceOpenAtom, orgMerchantCssAtom, orgPageConfigAtom };
|