PageSourceSearch

https://www.hunkemoller.be/mobify/bundle/1087/pages-cart-public.js

js hunkemoller.be collected 2026-10-04 11:48:51 UTC 11,487 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[322],{66577(t,e,r){r.d(e,{k:()=>p});var n=r(10939),o=r(44258),c=r(38340),i=r(36287),a=r(45915),l=r(14154),s=r(64922);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t){const e=(0,o.c)(13),{title:r,variant:n,children:u,link:p,headingTag:f,headingVariant:v,id:y}=t,b=void 0===f?"h2":f,h=void 0===v?"heading.lg":v;let O;e[0]!==n?(O={variant:n},e[0]=n,e[1]=O):O=e[1];const g=(0,l.o)("CartSection",O);let m,j;return e[2]!==b||e[3]!==h||e[4]!==y||e[5]!==p||e[6]!==g.titleWrapper||e[7]!==r?(m=r&&(p?(0,s.jsxs)(a.s,d(d({},g.titleWrapper),{},{children:[(0,s.jsx)(c.D,{as:b,variant:h,id:y,children:r}),p]})):(0,s.jsx)(c.D,{as:b,variant:h,id:y,children:r})),e[2]=b,e[3]=h,e[4]=y,e[5]=p,e[6]=g.titleWrapper,e[7]=r,e[8]=m):m=e[8],e[9]!==u||e[10]!==g.root||e[11]!==m?(j=(0,s.jsxs)(i.az,d(d({},g.root),{},{children:[m,u]})),e[9]=u,e[10]=g.root,e[11]=m,e[12]=j):j=e[12],j}},10875(t,e,r){r.d(e,{G:()=>O});var n=r(10939),o=r(44258),c=r(36287),i=r(38340),a=r(41863),l=r(28734),s=r(68588),u=r(14154),d=r(3235),p=r(96012),f=r(61567);const v=(0,r(16602).YK)({description:{id:"cart_intl_empty_description",defaultMessage:[{type:0,value:"Your bag is empty"}]},back:{id:"cart_intl_empty_cta_back_to_home",defaultMessage:[{type:0,value:"Back to homepage"}]},startShopping:{id:"cart_intl_empty_cta_start_shopping",defaultMessage:[{type:0,value:"Start shopping"}]}});var y=r(64922);function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function O(t){const e=(0,o.c)(19),{content:r}=t,n=(0,u.o)("EmptyCart");let b,O,g,m,j,_,P,D;return e[0]!==n.icon?(b=(0,y.jsx)(l.ue,h(h({},n.icon),{},{tabIndex:-1})),e[0]=n.icon,e[1]=b):b=e[1],e[2]!==n.iconFrame||e[3]!==b?(O=(0,y.jsx)(c.az,h(h({},n.iconFrame),{},{children:b})),e[2]=n.iconFrame,e[3]=b,e[4]=O):O=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(g=(0,y.jsx)(a.A,h({},v.description)),e[5]=g):g=e[5],e[6]!==n.heading?(m=(0,y.jsx)(i.D,h(h({variant:"heading.lg"},n.heading),{},{children:g})),e[6]=n.heading,e[7]=m):m=e[7],e[8]===Symbol.for("react.memo_cache_sentinel")?(j=(0,y.jsx)(f.$,{as:p.A,to:s.j.ROOT,variant:"secondary",children:(0,y.jsx)(a.A,h({},v.back))}),e[8]=j):j=e[8],e[9]!==r?(_=(null==r?void 0:r.start_shopping_cta)&&(0,y.jsx)(d.U,{content:r.start_shopping_cta}),e[9]=r,e[10]=_):_=e[10],e[11]!==n.buttons||e[12]!==_?(P=(0,y.jsxs)(c.az,h(h({},n.buttons),{},{children:[j,_]})),e[11]=n.buttons,e[12]=_,e[13]=P):P=e[13],e[14]!==n.root||e[15]!==O||e[16]!==m||e[17]!==P?(D=(0,y.jsxs)(c.az,h(h({},n.root),{},{children:[O,m,P]}
1)),e[14]=n.root,e[15]=O,e[16]=m,e[17]=P,e[18]=D):D=e[18],D}},87486(t,e,r){r.d(e,{QT:()=>v,m1:()=>y});var n=r(28407),o=r(10939),c=r(44258),i=r(90031),a=r(38279),l=r(10857),s=(r(77810),r(18752));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}const p={expand:["availability","links","promotions","options","images","prices","variations"]},f=t=>{var e,r;if(null!=t&&null!==(e=t.parameters)&&void 0!==e&&e.select)return t;const n={parameters:d(d(d({},p),null==t?void 0:t.parameters),{},{ids:(null==t||null===(r=t.parameters)||void 0===r?void 0:r.ids)??[]})};return null!=t&&t.headers&&(n.headers=t.headers),n};function v(...t){const e=(0,c.c)(5),r=t;let n,o;e[0]!==r?([n,...o]=r,e[0]=r,e[1]=n,e[2]=o):(n=e[1],o=e[2]);const a=n;let l;e[3]!==a?(l=f(a),e[3]=a,e[4]=l):l=e[4];const s=l;return(0,i.useProducts)(s,...o)}function y(){const t=(0,c.c)(6),e=(0,l.jE)(),{sdkQueryKeyFn:r}=(0,s.P6)(),{getProducts:o}=function(){const t=(0,c.c)(5),{getTokenWhenReady:e}=(0,i.useAccessToken)(),r=(0,i.useCommerceApi)(a.CLIENT_KEYS.SHOPPER_PRODUCTS);let o;t[0]!==e||t[1]!==r?(o=function(){var t=(0,n.A)((function*(t){const n=yield e(),o=f(t);return yield r.getProducts({parameters:null==o?void 0:o.parameters,headers:d({Authorization:`Bearer ${n}`},null==o?void 0:o.headers)})}));return function(e){return t.apply(this,arguments)}}(),t[0]=e,t[1]=r,t[2]=o):o=t[2];const l=o;let s;return t[3]!==l?(s={getProducts:l},t[3]=l,t[4]=s):s=t[4],s}();let u;t[0]!==o||t[1]!==e||t[2]!==r?(u=function(){var t=(0,n.A)((function*(t){const c=f(t),i=yield e.fetchQuery({queryKey:r("getProducts",c),queryFn:(a=(0,n.A)((function*(){return yield o(c)})),function(){return a.apply(this,arguments)})});var a;return i}));return function(e){return t.apply(this,arguments)}}(),t[0]=o,t[1]=e,t[2]=r,t[3]=u):u=t[3];const p=u;let v;return t[4]!==p?(v={getProductsCached:p},t[4]=p,t[5]=v):v=t[5],v}},83325(t,e,r){r.r(e),r.d(e,{CartPublic:()=>L});var n=r(10939),o=r(44258),c=r(54019),i=r(66272),a=r(77810),l=r(34692),s=r(98363),u=r(45863),d=r(81208),p=r(80837),f=r(72129),v=r(66577),y=r(10875),b=r(47984),h=r(68588),O=r(14154);const g=(0,r(16602).YK)({someProductsUnavailable:{id:"cart_intl_public_some_products_unavailable",defaultMessage:[{type:0,value:"Sorry, some products are no longer available"}]},allProductsUnavailable:{id:"cart_intl_public_all_products_unavailable",defaultMessage:[{type:0,value:"Sorry, the shared products are no longer available"}]},errorTitle:{id:"cart_intl_public_error_title",defaultMessage:[{type:0,value:"An error occurred"}]}});var m=r(28407),j=r(29188),_=r(46328),P=r(87486),D=r(13576),A=r(21418),S=r(64965);function w(t){var e;return null===(e=t.productVariant)||void 0===e?void 0:e.orderable}function E(t){return t.ID}var x=r(64922);function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach((function(e){(0,n.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function L(){const t=(0,o.c)(24),{products:e,isAllProductsAvailable:r,isLoading:n}=function(){const t=(0,o.c)(27),{data:e}=(()=>{const t=(0,o.c)(6),e=(0,S.zy)();let r;t[0]!==e.search?(r=new URLSearchParams(e.search).get("data"),t[0]=e.search,t[1]=r):r=t[1];const n=r;let c;if(n)try{let e;if(t[2]!==n){const r=atob(decodeURIComponent(n));e=JSON.parse(r),t[2]=n,t[3]=e}else e=t[3];c=e}catch{c=null}else c=null;const i=c;let a;return t[4]!==i?(a={data:i},t[4]=i,t[5]=a):a=t[5],a})(),{getProductsCached:r}=(0,P.m1)();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,D.w)(),t[0]=n):n=t[0];const{maxLimitPerItem:c}=n,[i,l]=(0,a.useState)(!1),{data:s,isLoading:u}=(0,_.X)();let d;t[1]!==e?(d=null==e?void 0:e.map(E),t[1]=e,t[2]=d):d=t[2];const p=d;let f,v;t[3]!==p?(f=p??[],t[3]=p,t[4]=f):f=t[4],t[5]!==f?(v={parameters:{ids:f}},t[5]=f,t[6]=v):v=t[6];const y=v;let b,h,O;t[7]!==y?(b=["app","share-products",y],t[7]=y,t[8]=b):b=t[8],t[9]!==r||t[10]!==y?(h=function(){var t=(0,m.A)((function*(){return yield r(y)}));return function(){return t.apply(this,arguments)}}(),t[9]=r,t[10]=y,t[11]=h):h=t[11],t[12]!==b||t[13]!==h?(O={queryKey:b,queryFn:h},t[12]=b,t[13]=h,t[14]=O):O=t[14];const{data:g,isLoading:x}=(0,j.I)(O),k=null==g?void 0:g.data;let C,L;t[15]!==(null==s?void 0:s.productItems)||t[16]!==k||t[17]!==e?(C=()=>null==k?void 0:k.reduce(((t,r)=>{var n,o,i;const a=(0,A.IX)({product:r,values:{color:String(null==r||null===(n=r.variationValues)||void 0===n?void 0:n.color),size:String(null==r||null===(o=r.variationValues)||void 0===o?void 0:o.size)}});if(!a)return t;const u=null==e?void 0:e.find((t=>t.ID===r.id)),d=null==s||null===(i=s.productItems)||void 0===i?void 0:i.find((t=>(null==t?void 0:t.productId)===r.id)),p=(null==u?void 0:u.qty)??1,f=(null==d?void 0:d.quantity)??0,v=(0,A.DL)(r,c),y=Math.min(+p,v-f);return p!==y&&l(!0),t.push({product:r,productVariant:a,quantity:y??1}),t}),[]),t[15]=null==s?void 0:s.productItems,t[16]=k,t[17]=e,t[18]=C):C=t[18],null==s||s.productItems,t[19]!==C?(L=C(),t[19]=C,t[20]=L):L=t[20];const I=L;let T;t[21]!==I?(T=null==I?void 0:I.filter(w),t[21]=I,t[22]=T):T=t[22];const M=T,R=!(null==M||!M.length||M.length!==(null==I?void 0:I.length)||i),U=u||x;let z;return t[23]!==R||t[24]!==U||t[25]!==M?(z={products:M,isAllProductsAvailable:R,isLoading:U},t[23]=R,t[24]=U,t[25]=M,t[26]=z):z=t[26],z}(),k=(0,O.o)("CartPublic"),{formatMessage:L}=(0,l.A)(),{trackEvent:M}=(0,p.u)(),{addToCart:R}=(0,u.M)(),[U,z]=(0,a.useState)(!1),[K,q]=(0,a.useState)(!1),[V,F]=(0,a.useState)(!1);let W;t[0]!==L||t[1]!==r||t[2]!==U||t[3]!==V?(W=L(!r||V&&U?g.someProductsUnavailable:g.allProductsUnavailable),t[0]=L,t[1]=r,t[2]=U,t[3]=V,t[4]=W):W=t[4];const B=W,{showError:N}=(0,f.M)();let Y;t[5]!==N||t[6]!==B||t[7]!==L?(Y=()=>{N({title:L(g.errorTitle),description:B})},t[5]=N,t[6]=B,t[7]=L,t[8]=Y):Y=t[8];const H=Y,Q=(0,a.useRef)(!1),G=(0,a.useRef)(!1);let X,$,J,Z;if(t[9]!==R||t[10]!==r||t[11]!==U||t[12]!==n||t[13]!==e||t[14]!==H||t[15]!==M?(X=()=>
1{if(!Q.current&&!n)return null!=e&&e.length?(Q.current=!0,R(e).then((t=>{const{itemsAdded:r}=t;if(r){const t=(null==e?void 0:e.map(T))??[];F(!0),M({event:d.WW.ADD_TO_CART,items:r,products:t,productVariants:null==e?void 0:e.map(I)})}})).catch((t=>{z(!0),(0,s.n)({caller:"cart-public.view",error:t,message:"Error while adding shared products to cart"})})).finally((()=>{!U&&r||G.current||(H(),G.current=!0),q(!0)})),()=>{z(!1),q(!1),F(!1),G.current=!1}):(G.current||(H(),G.current=!0),void q(!0))},$=[R,H,e,r,U,n,M],t[9]=R,t[10]=r,t[11]=U,t[12]=n,t[13]=e,t[14]=H,t[15]=M,t[16]=X,t[17]=$):(X=t[16],$=t[17]),(0,a.useEffect)(X,$),K){let e;return t[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,x.jsx)(b.r,{to:h.j.CART}),t[18]=e):e=t[18],e}return t[19]!==U?(J=!U&&(0,x.jsx)(c.E,{children:(0,x.jsx)(v.k,{children:(0,x.jsx)(y.G,{})})}),t[19]=U,t[20]=J):J=t[20],t[21]!==k.container||t[22]!==J?(Z=(0,x.jsx)(i.m,C(C({},k.container),{},{children:J})),t[21]=k.container,t[22]=J,t[23]=Z):Z=t[23],Z}function I(t){return t.productVariant}function T(t){return t.product}}}]);

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.