1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}return t}({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:product-catalog-ssr":!0});var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2b72a78b-7154-4601-93c5-822fcee2cdba",t._sentryDebugIdIdentifier="sentry-dbid-2b72a78b-7154-4601-93c5-822fcee2cdba")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9986],{4325:(t,e,r)=>{"use strict";r.d(e,{s:()=>u});var s=r(95747);r(46538);var i=r(65510),n=r(61567),a=r(16335);let u=(t,e)=>{let{shopSlug:r}=(0,a.useSelectedShop)(),u=(0,s.useQuery)({...e,queryKey:["products",t],queryFn:async()=>{let{data:e}=await (0,i.d$)(t,{shopSlug:r});return e}});return(0,n.useRefretchWhenUserQuery)(u)}},13725:function(t){t.exports=function(){"use strict";var t="week",e="year";return function(r,s,i){var n=s.prototype;n.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var s=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var n=i(this).startOf(e).add(1,e).date(s),a=i(this).endOf(t);if(n.isBefore(a))return 1}var u=i(this).startOf(e).date(s).startOf(t).subtract(1,"millisecond"),o=this.diff(u,t,!0);return o<0?i(this).startOf("week").week():Math.ceil(o)},n.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}()},29473:(t,e,r)=>{"use strict";r.d(e,{useMutation:()=>d});var s=r(7620),i=r(37645),n=r(99241),a=r(2694),u=r(98611);class o extends u.Q{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let r=this.options;this.options=this.client.defaultMutationOptions(t),(0,i.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,n.$)(),e={...t,isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=e}notify(t){a.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,r,s,i,n,a,u,o;t.onSuccess?(null==(e=(r=this.mutateOptions).onSuccess)||e.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(s=(i=this.mutateOptions).onSettled)||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(a=this.mutateOptions).onError)||n.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(o=this.mutateOptions).onSettled)||u.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}var l=r(97724),c=r(27608),h=r(39721);function d(t,e,r){let n=(0,i.GR)(t,e,r),u=(0,c.useQueryClient)({context:n.context}),[d]=s.useState(()=>new o(u,n));s.useEffect(()=>{d.setOptions(n)},[d,n]);let p=(0,l.r)(s.useCallback(t=>d.subscribe(a.j.batchCalls(t)),[d]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),b=s.useCallback((t,e)=>{d.mutate(t,e).catch(f)},[d]);if(p.error&&(0,h.G)(d.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:b,mutateAsync:p.mutate}}function f(){}},59566:(t,e,r)=>{"use strict";r.r(e),r.d(e,{FavoritesList:()=>v});var s=r(54568),i=r(7620),n=r(54018),a=r(4325),u=r(23083),o=r(27484),l=r(51136),c=r(641);let h=l.Ay.h3.withConfig({componentId:"sc-8e05bab2-0"})(["font-size:var(--font-size-500);font-weight:var(--font-weight-460);line-height:var(--font-line-height-400);letter-spacing:var(--font-letter-spacing-denser);"]),d=l.Ay.div.withConfig({componentId:"sc-8e05bab2-1"})(["display:flex;justify-content:space-between;align-items:center;"]),f=(0,l.Ay)(c.V).withConfig({componentId:"sc-8e05bab2-2"})(["cursor:pointer;font-size:14px;font-weight:400;line-height:21px;text-decoration-line:underline;color:var(--text-primary);"]),p=l.Ay.div.withConfig({componentId:"sc-8e05bab2-3"})(["margin-top:20px;> * + *{margin-top:20px;}",""],t=>{let{$isLoading:e}=t;return e&&(0,l.AH)(["opacity:0.4;"])});var b=r(68245);let v=t=>{var e,r,n;let{active:l}=t,c=(0,a.s)([{page:0,size:10,favourite:!0}],{enabled:l}),v=null==(e=(0,u.C8)({enabled:!1}).data)?void 0:e.count;return((0,i.useEffect)(()=>{l&&c.refetch()},[l]),c.isLoading)?(0,s.jsx)(y,{count:Math.min(null!=v?v:5,10)}):(0,s.jsxs)(s.Fragment,{children:[(null==c||null==(r=c.data)?void 0:r.products.length)===0?(0,s.jsx)(h,{children:"You currently don't have any favorite products added."}):(0,s.jsxs)(d,{children:[(0,s.jsx)(h,{children:"Your favorites"}),(0,s.jsx)(f,{href:b.DT.productsFavorites.path,children:"See all"})]}),(0,s.jsx)(p,{$isLoading:c.isRefetching,children:null==c||null==(n=c.data)?void 0:n.products.map(t=>
1(0,s.jsx)(o.D,{product:{id:t.id,image:t.variants.matched[0].photoUrl,slug:t.slug,brand:t.brand,brandModel:t.brandModel,name:t.name,priceFrom:t.priceFrom,favorite:t.favourite,productionMethods:Object.keys(t.groupedProductionMethods),minimumOrdersNumber:t.minimumOrdersNumber},onRemove:async()=>{await c.refetch()}},t.id))})]})},y=t=>{let{count:e}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d,{children:[(0,s.jsx)(h,{children:(0,s.jsx)(n.E,{children:(0,s.jsx)(n.E.Shape,{width:100,height:16})})}),(0,s.jsx)(f,{href:b.DT.productsFavorites.path,children:(0,s.jsx)(n.E,{children:(0,s.jsx)(n.E.Shape,{width:40,height:16})})})]}),(0,s.jsx)(p,{children:Array.from({length:e},(t,e)=>(0,s.jsx)(o.D.Skeleton,{},e))})]})}},78917:(t,e,r)=>{"use strict";function s(t){return i(t[0])+i(t[1])}function i(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}r.d(e,{A:()=>s})}}]);
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.