1var l=(e,n,t)=>new Promise((o,r)=>{var d=i=>{try{s(t.next(i))}catch(m){r(m)}},a=i=>{try{s(t.throw(i))}catch(m){r(m)}},s=i=>i.done?o(i.value):Promise.resolve(i.value).then(d,a);s((t=t.apply(e,n)).next())});import{j as c}from"./npm.sellpy-design-system.DdsWMDHW.bundle.js";import{l as u}from"./npm.react-router.BDfxye5A.bundle.js";import{b$ as p,aa as k,c0 as y}from"./index.DWkcZ-_z.bundle.js";import{L as f}from"./Layout.DcQ89qnT.bundle.js";import{S as b}from"./SearchWrapper.BjrQ5OIC.bundle.js";import{q as g}from"./npm.apollo-client.CXJpJPbe.bundle.js";import{u as v}from"./npm.react-i18next.BwOa93YU.bundle.js";import"./npm.react-hook-form.HNw-giVQ.bundle.js";import"./npm.react-dom.DlIYrMBD.bundle.js";import"./npm.sellpy-commons.B413ARrd.bundle.js";import"./npm.immutable.DTQZtUT4.bundle.js";import"./npm.luxon.3NOFZn7k.bundle.js";import"./npm.styled-components.CzYR6Qdp.bundle.js";import"./npm.zod.DEnjmUYT.bundle.js";import"./npm.lodash.DxN61Y-S.bundle.js";import"./npm.parse.BcWrqAIh.bundle.js";import"./npm.sentry-react.Z7tY98T1.bundle.js";import"./npm.swr.CiJqMJM6.bundle.js";import"./npm.algolia.BDObKZ-5.bundle.js";import"./npm.i18next.B74d65Th.bundle.js";import"./translations.B5c9TvV-.bundle.js";import"./npm.graphql.ClDiDpi3.bundle.js";import"./SimilarItemsToFavoritesSlider.BWrK_n1K.bundle.js";import"./MarketItemTile.EzOdm3nI.bundle.js";import"./tools.DUKVunGT.bundle.js";import"./utils.DGZXBK23.bundle.js";import"./errors.dMazk1gb.bundle.js";import"./itemStatus.BI0rbHvu.bundle.js";import"./ItemImage.CQuik_ly.bundle.js";import"./useImageAlt.BiVHU0of.bundle.js";import"./itemTitles.DPqsUG8J.bundle.js";import"./constants.CDq1pkzK.bundle.js";import"./useSimilarAlgoliaSliderItems.BPgZ6OGJ.bundle.js";import"./useSimilarItemIds.Bfi-AhrA.bundle.js";import"./requestSource.DkzemPHh.bundle.js";import"./styles.D_oXEQp2.bundle.js";import"./FilterHeader.D7iVrp8h.bundle.js";import"./SizeProfilesModal.8Vds-Ut7.bundle.js";import"./usePrevious.C4FWeHWm.bundle.js";import"./getInternalLink.DWqdYguv.bundle.js";import"./useSimilarBrands.7uId8mcq.bundle.js";import"./fetchSimilarBrands.B-N58ik2.bundle.js";import"./validateBrandExistence.CXEK8dkk.bundle.js";import"./useDebounce.Crv4xCpD.bundle.js";import"./useSameSiteUprankingFilter.D14ObyWM.bundle.js";import"./SavedBrandsModal.DufuTTR1.bundle.js";import"./useSimilarBrandsFromBrands.BAreGy5v.bundle.js";import"./usePersonalisedSearch.DaHUNodJ.bundle.js";import"./featureConfig.BK1sOa3P.bundle.js";import"./useCategoryIcons.DsaRiBKa.bundle.js";import"./index.CJ-dL1Pw.bundle.js";import"./utils.DutWSyoJ.bundle.js";import"./useSanityStoreData.9-Q5H-F8.bundle.js";import"./getDefaultAlgoliaFilters.Bypt2EsX.bundle.js";try{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},n=new e.Error().stack;
1n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2f8e49d3-7720-4cd8-ad1e-7b3e0c11c0f3",e._sentryDebugIdIdentifier="sentry-dbid-2f8e49d3-7720-4cd8-ad1e-7b3e0c11c0f3")}catch(e){}{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sellpy-market":!0})}const I=`query getLatestItemRecommendationsForUser($userId: ID!) { 2 itemRecommendationsForUsers(where: { user: { have: { objectId: { equalTo: $userId } } } }) { 3 edges { 4 node { 5 items { 6 ... on Item { 7 objectId 8 } 9 } 10 } 11 } 12 } 13} 14`,S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLatestItemRecommendationsForUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"itemRecommendationsForUsers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"user"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"have"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"objectId"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"equalTo"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}]}}]}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Item"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"objectId"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:319,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:I}}},we=n=>l(null,[n],function*({request:e}){yield p({url:new URL(e.url)});const t=k();return y(S,{variables:{userId:t.objectId}}).toPromise()}),Ne=()=>{var d;const{t:e}=v("myShopping"),n=u(),{data:t}=g(n),o=(d=t.itemRecommendationsForUsers.edges[0])==null?void 0:d.node.items.map(({objectId:a})=>a),r=(o==null?void 0:o.length)>0&&"("+o.map(a=>`objectID:${a}`).join(" OR ")+")";return c.jsx(b,{customFilters:r,shouldReplace:!0,analyticsTag:"weekly-recommendations",noPersonalisedSearch:!0,children:c.jsx(f,{headline:e("pages.weeklyReccomendations"),analyticsMetadata:{listId:"weekly_recommendations",listName:"weekly_recommendations"}})})};export{Ne as default,we as weeklyRecommendationsLoader}; 15//# sourceMappingURL=WeeklyRecommendations.Cu7v5R9U.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.