1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1827,4505],{11199:(e,t,a)=>{a.d(t,{p:()=>u});var n=a(28407),o=a(29188),r=a(3422),i=a(60900),l=a(64965),s=a(68066),c=a(8884);const u=()=>{const{locale:e}=(0,s.A)(),{stack:t}=(0,r.r)(),a=(0,l.useParams)(),u=a.rest?`/${a.rest}`:"/",d=function(){var a=(0,n.A)((function*(a){const n=yield(0,i.zV)({stack:t,contentTypeUid:"generic_html_page",entryUrl:a,locale:e.alias,brand:c.Sk});return n&&n[0]?n[0]:null}));return function(e){return a.apply(this,arguments)}}();return(0,o.I)(["generic_html_page",u],(()=>d(u)))}},81308:(e,t,a)=>{a.d(t,{A:()=>b});var n=a(64180),o=a(18801),r=a(77810),i=a(17015),l=a(73352),s=a(60097),c=a(75011),u=a(73295),d=a(28387),m=a(45915),p=a(36287),v=a(40133),y=a(25635),h=a(75826),f=a.n(h);const g=["title","description","optionalText","isOpen","onAlternateAction"],E=e=>{let{title:t,description:a,optionalText:h,isOpen:f,onAlternateAction:E=i.lQ}=e,b=(0,o.A)(e,g);const _=(0,l.Vl)("ConfirmationModal"),w=()=>{E()};return r.createElement(s.L,(0,n.A)({isOpen:f,isCentered:!0,onClose:w},b),r.createElement(c.m,null),r.createElement(s.E,null,r.createElement(u.s,{"data-testid":"close-icon",onClick:w}),r.createElement(d.c,null,r.createElement(m.s,_.container,r.createElement(p.az,_.iconContainer,r.createElement(y.AlertIcon,_.alertIcon)),r.createElement(m.s,_.textContainer,r.createElement(v.E,(0,n.A)({},_.text,{textStyle:"body-xlarge"}),t),r.createElement(v.E,(0,n.A)({},_.text,{textStyle:"body-medium"}),a),h&&r.createElement(v.E,(0,n.A)({},_.text,{textStyle:"body-xsmall"}),h))))))};E.propTypes={title:f().string,description:f().string,optionalText:f().string,isOpen:f().bool,onAlternateAction:f().func};const b=E},12753:(e,t,a)=>{a.d(t,{A:()=>p});var n=a(64180),o=a(77810),r=a(75826),i=a.n(r),l=a(73352),s=a(86400),c=a(36287),u=a(40133),d=a(14893);const m=({heading:e,text:t,icon:a,buttonText:r,buttonProps:i,onButtonClick:m,variant:p})=>{const v=(0,l.o5)("Wishlist",{variant:p});return o.createElement(s.B,v.pageActioncontainer,o.createElement(c.az,v.iconContainer,a),o.createElement(s.B,v.container,o.createElement(c.az,v.textContainer,o.createElement(u.E,v.heading,e),o.createElement(u.E,v.text,t)),o.createElement(d.$,(0,n.A)({variant:"secondary",onClick:m},i,v.addButton),r)))};m.propTypes={heading:i().string,text:i().string,buttonText:i().string,icon:i().any,buttonProps:i().object,onButtonClick:i().func,variant:i().string};const p=m},7146:(e,t,a)=>{a.d(t,{A:()=>g});var n=a(64180),o=a(18801),r=a(77810),i=a(75826),l=a.n(i),s=a(37180),c=a(75011),u=a(21466),d=a(73295),m=a(28387),p=a(32998),v=a(95106),y=a(34692);const h=["product","isOpen","onClose"],f=e=>{var t;let{product:a,isOpen:i,onClose:l}=e,f=(0,o.A)(e,h);const g=(0,v.h)(a),E=(0,y.A)().formatMessage({defaultMessage:[{type:0,value:"Edit modal for "},{type:1,value:"productName"}],id:"cart.product_edit_modal.modal_label"},{productName:null==g||null===(t=g.product)||void 0===t?void 0:t.name});return r.createElement(s.aF,{size:"4xl",isOpen:i,onClose:l},r.createElement(c.m,null),r.createElement(u.$,{containerProps:{"data-testid":"product-view-modal"},"aria-label":E},r.createElement(d.s,null),r.createElement(m.c,{pb:8,bg:"white",paddingBottom:6,marginTop:6},r.createElement(p.A,(0,n.A)({showFullLink:!0,imageSize:"sm",product:g.product,isLoading:g.isFetching},f)))))};f.propTypes={isOpen:l().bool.isRequired,onOpen:l().func.isRequired,onClose:l().func.isRequired,product:l().object,isLoading:l().bool};const g=f},18844:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ie});var n=a(64180),o=a(28407),r=a(68175),i=a(77810),l=a(34692),s=a(41863),c=a(73352),u=a(86400),d=a(14893),m=a(45915),p=a(40133),v=a(64194),y=a(54019),h=a(90031),f=a(87916),g=a(7711),E=a(10947),b=a(71954),_=a(12753),w=a(19150),A=a(66732),O=a(75826),I=a.n(O),C=a(18584),k=a(16602),S=a(34638),P=a(60309),L=a(70581),x=a(17015),M=a(32105),D=a(25635);(0,k.zR)({defaultMessage:[{type:0,value:"Confirm Remove Item"}],id:"confirmation_modal.remove_wishlist_item.title.confirm_remove"}),(0,k.zR)({defaultMessage:[{type:0,value:"Are you sure you want to remove this item from your wishlist?"}],id:"confirmation_modal.remove_wishlist_item.message.sure_to_remove"}),(0,k.zR)({defaultMessage:[{type:0,value:"Yes, remove item"}],id:"confirmation_modal.remove_wishlist_item.action.yes"}),(0,k.zR)({defaultMessage:[{type:0,value:"Yes, remove item"}],id:"confirmation_modal.remove_cart_item.assistive_msg.yes"}),(0,k.zR)({defaultMessage:[{type:0,value:"No, keep item"}],id:"confirmation_modal.remove_wishlist_item.action.no"}),(0,k.zR)({defaultMessage:[{type:0,value:"No, keep item"}],id:"confirmation_modal.remove_cart_item.assistive_msg.no"}),x.lQ;const j=({productListItemId:e,productName:t="",focusElementOnRemove:a,onClick:n=x.lQ,onItemRemoved:r})=>{const s=(0,L.e)(),{data:u}=(0,P.J)(),{data:p}=(0,b.T)(),v=(0,S.d)(),{formatMessage:y}=(0,l.A)(),f=(0,h.useShopperCustomersMutation)("deleteCustomerProductListItem"),g=function(){var i=(0,o.A)((function*(){try{var o;const i=f.mutateAsync({parameters:{customerId:u.customerId,listId:null==p?void 0:p.id,itemId:e}});n(s.id,i),yield i,r&&r(t),null==a||null===(o=a.current)||void 0===o||o.focus()}catch{v({title:y(M.gS),status:"error"})}}));return function(){return i.apply(this,arguments)}}(),E=(0,c.o5)("Wishlist");return i.createElement(m.s,E.secondaryButtonGroup,i.createElement(C.e,{spacing:"6"},i.createElement(d.$,{variant:"link",size:"sm",onClick:g,"data-testid":`sf-wishlist-remove-${e}`,"aria-label":y({defaultMessage:[{type:0,value:"Remove "},{type:1,value:"productName"}],id:"wishlist_secondary_button_group.info.item.remove.label"},{productName:t})},i.createElement(D.DeleteIcon,{boxSize:{base:"iconsSize.small",lg:"iconsSize.medium"},onClick:e=>{e.preventDefault()}}))))};j.propTypes={productListItemId:I().string,productName:I().string,focusElementOnRemove:I().object,onClick:I().func,onItemRemoved:I().func};const N=j;var T=a(71878),R=a(35714),B=a(44879),z=a(37180),F=a(75011),$=a(21466),q=a(25610),V=a(28387),W=a(48070),U=a(68066),G=a(4026);const H=({wishListData:e,customer:t})=>{const a=(0,c.Vl)("Wishlist"),{isOpen:r,onOpen:m,onClose:y}=(0,B.j)(),[f,g]=(0,i.useState)(!1),{locale:E}=(0,U.A)(),{customParams:b}=(0,G.getConfig)(),_=(0,h.useShopperCustomersMutation)("updateCustomerProductList"),{formatMessage:w}=(0,l.A)(),A=function(){var a=(0,o.A)((function*(){null!=e&&e.id&&null!=t&&t.customerId&&_.mutate({parameters:{listId:e.id,customerId:t.customerId},body:{public:!0}},{onError:e=>console.error("Error updating wishlist:",e)}),m()}));return function(){return a.apply(this,arguments)}}();if(null==e||!e.id)return null;const O=()=>{g(!1),y()},I=`https://${b.currentHost}/${E.alias}/wishlist/share?wishlistId=${e.id}`,C=function(){var e=(0,o.A)((function*(){try{yield navigator.clipboard.writeText(I),g(!0)}catch(e){console.error("Failed to copy text: ",e)}}));return function(){return e.apply(this,arguments)}}();return i.createElement(i.Fragment,null,i.createElement(d.$,{variant:"text-button",onClick:A},i.createElement(v.z,a.iconShareFlex,i.createElement(D.ShareIcon,a.shareIcon),i.createElement(p.E,a.textButton,i.createElement(s.A,{defaultMessage:[{type:0,value:"Share your Wishlist"}],id:"account_wishlist.title.share_wishlist"})))),i.createElement(z.aF,{isOpen:r,onClose:O},i.createElement(F.m,a.modalOverlay),i.createElement($.$,a.modalShareContent,i.createElement(q.r,a.modalShareHeader,i.createElement(v.z,a.modalShareHeadingFlex,i.createElement(p.E,a.modalShareHeading,i.createElement(s.A,{defaultMessage:[{type:0,value:"Share your Wishlist"}],id:"account_wishlist.title.share_wishlist"})),i.createElement(D.CloseIcon,{"data-testid":"close-modal-button",onClick:O,tabIndex:0,"aria-label":w({id:"c
1ountry.banner.close",defaultMessage:[{type:0,value:"Close"}]}),role:"button",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||O()}}))),i.createElement(V.c,a.modalShareBody,i.createElement(u.B,a.modalShareBodyStack,i.createElement(p.E,(0,n.A)({},a.modalShareDescription,{id:"share-link"}),i.createElement(s.A,{defaultMessage:[{type:0,value:"Copy the link below to share your wishlist."}],id:"account_wishlist.share_wishlist.description"})),i.createElement(v.z,a.modalShareBodyHStack,i.createElement(W.p,(0,n.A)({},a.modalSharePath,{value:I,isReadOnly:!0,"aria-labelledby":"share-link"})),i.createElement(d.$,{variant:"primary",onClick:C,isDisabled:f},i.createElement(s.A,{defaultMessage:[{type:0,value:"Copy"}],id:"account_wishlist.share_wishlist.copy"}))),f&&i.createElement(v.z,a.modalShareBodyCopied,i.createElement(D.CheckIcon,a.modalCheckIcon),i.createElement(p.E,null,i.createElement(s.A,{defaultMessage:[{type:0,value:"URL copied"}],id:"account_wishlist.share_wishlist.copied"}))))))))};H.propTypes={wishListData:I().shape({id:I().string.isRequired}),customer:I().shape({customerId:I().string.isRequired})},H.defaultProps={wishListData:null,customer:null};const Y=H;var Q=a(36287),K=a(40586);const J=({isNotifyMe:e=!1,callback:t=x.lQ})=>{const{openModal:a}=(0,K.S)(),o=(0,c.o5)("Wishlist");return i.createElement(Q.az,null,i.createElement(d.$,(0,n.A)({w:e?"100%":{base:"100%",md:"auto"},variant:"primary"},o.wishlistLoginButton,{onClick:()=>a(e,t)}),i.createElement(s.A,{defaultMessage:[{type:0,value:"Login"}],id:"login_form.message.login"})))};J.propTypes={isNotifyMe:I().bool,callback:I().func,pid:I().string};const X=J;var Z=a(20877),ee=a(20922),te=a(45456),ae=a(28467),ne=a(57328);function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(a),!0).forEach((function(t){(0,r.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):oe(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}const ie=()=>{var e,t;const a=(0,ae.I8)("hideAccount"),r=null!==a&&a,O=(0,g.A)(),{formatMessage:I}=(0,l.A)(),C=(0,E.d)(),{addLayer:k}=(0,Z.W)(),{data:S,isFetching:L}=(0,P.J)(),x=S.isGuest?"guest":"",D=(0,c.o5)("Wishlist",{variant:x}),j=(0,i.useRef)();(0,i.useEffect)((()=>{var e;null==j||null===(e=j.current)||void 0===e||e.focus()}),[]);const[B,z]=(0,i.useState)(void 0),[F]=(0,i.useState)(!1),{data:$,isLoading:q}=(0,b.T)(),V=null==$||null===(e=$.customerProductListItems)||void 0===e?void 0:e.map((e=>e.productId)),{data:W,isLoading:U}=(0,h.useProducts)({parameters:{ids:null==V?void 0:V.join(","),expand:["availability","images"]},headers:{"x-debug":"wishlist-index"}},{enabled:(null==V?void 0:V.length)>0}),G=null==$||null===(t=$.customerProductListItems)||void 0===t?void 0:t.reduce(((e,t)=>{var a;const n=null==W||null===(a=W.data)||void 0===a?void 0:a.find((e=>e.id===t.productId));return re(re({},e),{},{[t.productId]:re(re({},t),{},{product:n})})}),{}),H=(0,h.useShopperCustomersMutation)("updateCustomerProductListItem"),Q=(0,h.useShopperCustomersMutation)("deleteCustomerProductListItem"),K=function(){var e=(0,o.A)((function*(e){e.length&&(yield Promise.all(e.map(function(){var e=(0,o.A)((function*(e){const t=null==G?void 0:G.find((t=>t.productId.toString()===e.toString())),a={customerId:S.customerId,itemId:null==t?void 0:t.id,listId:null==$?void 0:$.id};yield Q.mutateAsync({parameters:a})}));return function(t){return e.apply(this,arguments)}}())))}));return function(t){return e.apply(this,arguments)}}(),J=function(){var e=(0,o.A)((function*(e,t){let a=!1;z(t.productId);const n=re(re({},t),{},{quantity:parseInt(e),public:!0});delete n.product;const o={customerId:S.customerId,itemId:t.id,listId:null==$?void 0:$.id},r=parseInt(e)>0?H.mutateAsync({body:n,parameters:o}):Q.mutateAsync({parameters:o});try{yield r,a=!0,z(void 0)}catch(e){C({title:I(M.gS),status:"error"})}return a}));return function(t,a){return e.apply(this,arguments)}}(),oe=Object.keys(G??{}).length>0,ie=L||oe?U:q,[le,se]=(0,i.useState)(""),ce=e=>{se(e),setTimeout((()=>se("")),3e3)};return(0,i.useEffect)((()=>{oe&&!U&&(k(ee.$x.bind(void 0)),k(ee.I1.bind(void 0,{event:"view_item_list",item_list_name:"wishlist",items:Object.keys(G).map(((e,t)=>{var a,n;const{product:o,productId:r}=G[e];return{item_name:null==o?void 0:o.c_defaultName,item_id:r,item_category:null==o?void 0:o.c_defaultCategoryName,item_variant:r,price:null==o?void 0:o.price,fullprice:null!==(a=(0,te.mY)(o))&&void 0!==a&&a.isOnSale?"reduced":"fullprice",rating_points:"",erp_category:null==o?void 0:o.c_materialGroup,prdha_category:null==o?void 0:o.c_prdha_category,index:t+1,stock_status:(null==o||null===(n=o.inventory)||void 0===n?void 0:n.stockLevel)>0?"in-stock":"out-of-stock"}}))})))}),[oe,U]),r?i.createElement(ne.default,null):i.createElement(u.B,(0,n.A)({},null==D?void 0:D.wishlistStack,{"data-testid":"account-wishlist-page"}),i.createElement(u.B,null==D?void 0:D.wishlistLogin,S.isGuest&&i.createElement(d.$,(0,n.A)({},null==D?void 0:D.wishlistBackButton,{variant:"text-button",as:f.A,to:"/"}),i.createElement(s.A,{defaultMessage:[{type:0,value:"Back to homepage"}],id:"login_form.message.back_to_homepage"})),i.createElement(m.s,!1===S.isGuest&&(null==D?void 0:D.wishlistShare),i.createElement(p.E,(0,n.A)({},null==D?void 0:D.wishlistTitle,{ref:j}),i.createElement(s.A,{defaultMessage:[{type:0,value:"Wishlist"}],id:"account_wishlist.title.wishlist"})),!S.isGuest&&i.createElement(Y,{wishListData:$,customer:S})),S.isGuest&&i.createElement(u.B,null==D?void 0:D.wishlistLoginStack,i.createElement(p.E,null==D?void 0:D.wishlistTextSuggestion,i.createElement(s.A,{defaultMessage:[{type:0,value:"Log in or create a new account to save your Wishlist and be able to view it at any time, from all your devices"}],id:"account_wishlist.description.login_or_create_account"})),i.createElement(m.s,null==D?void 0:D.wishlistLoginButtonGroup,i.createElement(X,null),i.createElement(d.$,(0,n.A)({variant:"secondary"},null==D?void 0:D.wishlistLoginButton,{as:f.A,to:"/registration"}),i.createElement(s.A,{defaultMessage:[{type:0,value:"Registrate"}],id:"login_form.message.registrate"}))))),le&&i.createElement(v.z,null==D?void 0:D.feedbackContainer,i.createElement(R.A,{message:i.createElement(s.A,{id:"account_wishlist.feedback.removed",defaultMessage:[{type:1,value:"productName"},{type:0,value:" has been removed from your wishlist."}],values:{productName:le}}),variant:"removeFeedbackWishlist",status:"success",enableIcon:!1})),ie&&i.createElement(m.s,(0,n.A)({},null==D?void 0:D.gridProduct,{"data-testid":"sf-wishlist-skeleton"}),new Array(3).fill(0).map(((e,t)=>i.createElement(u.B,{key:t,p:[4,6],my:4,border:"1px solid",borderColor:"gray.100",borderRadius:"base"},i.createElement(y.E,{boxSize:["88px",36],mr:4}),i.createElement(u.B,{spacing:2},i.createElement(y.E,{h:"20px",w:"112px"}),i.createElement(y.E,{h:"20px",w:"84px"}),i.createElement(y.E,{h:"20px",w:"140px"})))))),!ie&&!oe&&i.createElement(_.A,{"data-testid":"empty-wishlist",heading:I({defaultMessage:[{type:0,value:"Your wishlist is empty"}],id:"account_wishlist.heading.empty_wishlist"}),text:I({defaultMessage:[{type:0,value:"You have not saved any products to your wishlist yet"}],id:"account_wishlist.description.continue_shopping"}),buttonText:I({defaultMessage:[{type:0,value:"Start shopping"}],id:"account_wishlist.button.start_shopping"}),buttonProps:{leftIcon:void 0},onButtonClick:()=>O("/"),variant:"empty-wishlist"}),i.createElement(m.s,null==D?void 0:D.gridProduct,!ie&&G&&Object.keys(G).map((e=>{var t,a,n;const o=G[e];return i.createElement(w.A,{key:o.id,product:re(re({},o.product),{},{quantity:o.quantity}),showLoading:(H.isLoading||Q.isLoading||F)&&B===o.productId,primaryAction:i.createElement(A.A,null),onItemQuantityChange:e=>J(e,o),secondaryActions:i.createElement(N,{productListItemId:null==o?void 0:o.id,productName:(null==o||null===(t=o.product)||void 0===t?void 0:t.c_variantIdentifier)||(null==o||null===(a=o.product)||void 0===a?void 0:a.name)||(null==o||null===(n=o.product)||void 0===n?void 0:n.productName),focusElementOnRemove:j,onItemRemoved:ce})})}))),i.createElement(T.A,{productItems:null==$?void 0:$.customerProductListItems,handleUnavailableProducts:K}))}},66732:(e,t,a)=>{a.d(t,{A:()=>E});var n=a(28407),o=a(77810),r=a(75826),i=a.n(r),l=a(44879),s=a(14893),c=a(34692),u=a(41863),d=a(70581),m=a(10947),p=a(32105),v=a(87916),y=a(90031),h=a(1714),f=a(7146);const g=({product:e})=>{var t,a,r;const i=(0,d.e)(),{addItemToNewOrExistingBasket:g}=(0,y.useShopperBasketsMutationHelper)(),{formatMessage:E}=(0,c.A)(),_=(null==i||null===(t=i.type)||void 0===t?void 0:t.master)||!1,w=null==i||null===(a=i.type)||void 0===a?void 0:a.set,A=null==i||null===(r=i.type)||void 0===r?void 0:r.bundle,O=(0,m.d)(),[I,C]=(0,o.useState)(!1),{isOpen:k,onOpen:S,onClose:P}=(0,l.j)(),L=function(){var e=(0,n.A)((function*(e,t){C(!0);const a=Boolean(e.setProducts),n=a?e.setProducts.map((e=>({productId:e.id||e.productId,price:e.price,quantity:t}))):[{productId:e.id||e.productId,price:e.price,quantity:t}];try{var o;yield g(n),O({title:E(1===t?{defaultMessage:"{quantity} item added to cart",id:"wishlist_primary_action.info.added_to_cart"}:{defaultMessage:"{quantity} items added to cart",id:"wishlist_primary_action.info.added_to_cart_plural"},{quantity:a?t*((null===(o=e.setProducts)||void 0===o?void 0:o.length)||1):t}),status:"success"}),P()}catch(e){O({title:E(p.gS),status:"error"})}finally{C(!1)}}));return function(t,a){return e.apply(this,arguments)}}(),x={viewOptions:o.createElement(u.A,{defaultMessage:[{type:0,value:"View Options"}],id:"wishlist_primary_action.button.view_options"}),viewFullDetails:o.createElement(u.A,{defaultMessage:[{type:0,value:"View Full Details"}],id:"wishlist_primary_action.button.view_full_details"}),addToCart:o.createElement(u.A,{defaultMessage:[{type:0,value:"Add to Cart"}],id:"global.add-to-cart"}),addSetToCart:o.createElement(u.A,{defaultMessage:[{type:0,value:"Add Set to Cart"}],id:"wishlist_primary_action.button.add_set_to_cart"})};var M;return w?null!==(M=i.setProducts)&&void 0!==M&&M.every((e=>!b(e)))?o.createElement(s.$,{variant:"solid",onClick:()=>L(i,i.quantity),w:"full",isLoading:I,"aria-label":E({id:"wishlist_primary_action.button.addSetToCart.label",defaultMessage:[{type:0,value:"Add "},{type:1,value:"productName"},{type:0,value:" set to cart"}]},{productName:i.name})},x.addSetToCart):o.createElement(s.$,{as:v.A,href:(0,h.ec)(e),w:"full",variant:"solid",_hover:{textDecoration:"none"},"aria-label":E({id:"wishlist_primary_action.button.viewFullDetails.label",defaultMessage:[{type:0,value:"View full details for "},{type:1,value:"productName"}]},{productName:i.name})},x.viewFullDetails):A?o.createElement(s.$,{as:v.A,href:(0,h.ec)(e),w:"full",variant:"solid",_hover:{textDecoration:"none"},"aria-label":E({id:"wishlist_primary_action.button.viewFullDetails.label",defaultMessage:[{type:0,value:"View full details for "},{type:1,value:"productName"}]},{productName:i.name})},x.viewFullDetails):_?o.createElement(o.Fragment,null,o.createElement(s.$,{"aria-label":E({id:"wishlist_primary_action.button.view_options.label",defaultMessage:[{type:0,value:"View Options for "},{type:1,value:"productName"}]},{productName:i.name}),w:"full",variant:"solid",onClick:S},x.viewOptions),k&&o.createElement(f.A,{isOpen:k,onOpen:S,onClose:P,product:i,addToCart:(e,t)=>L(e,t)})):o.createElement(s.$,{variant:"primary",onClick:()=>L(i,i.quantity),w:"100%",isLoading:I,"aria-label":E({id:"wishlist_primary_action.button.addToCart.label",defaultMessage:[{type:0,value:"Add "},{type:1,value:"productName"},{type:0,value:" to cart"}]},{productName:i.name})},x.addToCart)};g.propTypes={product:i().object};const E=g,b=e=>Boolean((null==e?void 0:e.c_variants)??(null==e?void 0:e.variants)
1)},19150:(e,t,a)=>{a.d(t,{A:()=>$});var n=a(64180),o=a(68175),r=a(77810),i=a(75826),l=a.n(i),s=a(34692),c=a(41863),u=a(73352),d=a(42047),m=a(36287),p=a(86400),v=a(45915),y=a(64194),h=a(82070),f=a(40133),g=a(87916),E=a(55981),b=a(70581),_=a(38321),w=a(24961),A=a(53302),O=a(20389),I=a(91332),C=a(8174),k=a(25635),S=a(47642),P=a(10636),L=a(76396),x=a(86639),M=a(62004),D=a(32105),j=a(28467),N=a(14905),T=a(8884),R=a(23397);function B(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?B(Object(a),!0).forEach((function(t){(0,o.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):B(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}const F=({product:e,secondaryActions:t,showLoading:a=!1})=>{var o,i,l,B,F,$,q,V,W,U,G,H,Y,Q,K,J;const{currency:X}=(0,A.H2)(),{formatMessage:Z}=(0,s.A)(),ee=(0,u.Vl)("Wishlist"),[te]=(0,d.U)(`(max-width: ${E.f.md})`),ae=(0,j.I8)("notShoppableCountry"),[ne,oe]=(0,r.useState)(0),re=(0,r.useRef)(null),ie=(0,R.r)(e),le="braun"===T.UK?k.InfoLabelIcon:k.InfoIcon,se="braun"===T.UK?k.CloseLabelIcon:k.CloseIcon;e=z(z({},e),ie);const{productUrl:ce,priceData:ue}=(0,M.Ay)(e,D.dX),de=(0,j.I8)("showLastItemThreshold");return r.createElement(m.az,(0,n.A)({},null==ee?void 0:ee.itemContainer,{"data-testid":`sf-cart-item-${e.productId?e.productId:e.id}`}),r.createElement(b.A,{variant:e},a&&r.createElement(N.A,null),r.createElement(p.B,null==ee?void 0:ee.flexContainer,r.createElement(p.B,null==ee?void 0:ee.productDetails,r.createElement(g.A,(0,n.A)({to:ce},null==ee?void 0:ee.productImageContainer),r.createElement(_.A,(0,n.A)({},null==ee?void 0:ee.productImage,{imageProps:null==ee?void 0:ee.cartImage})),r.createElement(v.s,null==ee?void 0:ee.removeIcon,t),r.createElement(y.z,ee.badgeGroup,r.createElement(x.Y,{product:e,priceData:ue}))),(null===(o=e)||void 0===o||null===(i=o.inventory)||void 0===i?void 0:i.stockLevel)<=de&&0!==(null===(l=e)||void 0===l||null===(B=l.inventory)||void 0===B?void 0:B.stockLevel)&&r.createElement(C.A,{variant:"lastFewItems",icon:r.createElement(le,{circleColor:"transparent"}),textMessage:r.createElement(c.A,{id:"use_product.message.low_stock",defaultMessage:[{type:0,value:"Last "},{type:1,value:"quantity"},{type:0,value:" "},{type:1,value:"itemLabel"}],values:{quantity:null===(F=e)||void 0===F||null===($=F.inventory)||void 0===$?void 0:$.stockLevel,itemLabel:1===(null===(q=e)||void 0===q||null===(V=q.inventory)||void 0===V?void 0:V.stockLevel)?r.createElement(c.A,{id:"global.message.item",defaultMessage:[{type:0,value:"item"}]}):r.createElement(c.A,{id:"global.message.items",defaultMessage:[{type:0,value:"items"}]})}})}),0===(null===(W=e)||void 0===W||null===(U=W.inventory)||void 0===U?void 0:U.stockLevel)&&r.createElement(C.A,{variant:"outOfStock",icon:r.createElement(se,null),textMessage:r.createElement(c.A,{id:"use_product.message.out_of_stock",defaultMessage:[{type:0,value:"Out of stock"}]})}),r.createElement(m.az,null==ee?void 0:ee.detailContainer,r.createElement(m.az,null==ee?void 0:ee.headerStack,r.createElement(g.A,{to:ce},r.createElement(w.A,null==ee?void 0:ee.itemName))),r.createElement(v.s,{flexDirection:"column"},r.createElement(O.A,{priceData:ue,currency:X,listPriceProps:z({},ee.productListPrice),currentPriceProps:z({},ee.productDetailPrice),discountProps:{display:"none"},productDetailPriceView:!0,notShoppableCountry:ae}),!ae&&ue.showOmnibusPriceDiscount&&r.createElement(m.az,ee.productOmnibusWrapper,r.createElement(I.A,{priceData:ue,currency:X,omnibusExpandedView:!0,variant:"recommended"}))),r.createElement(m.az,{ref:re},ne?r.createElement(h.z,{in:!0},r.createElement(f.E,{color:"text.danger",fontWeight:"semibold",marginBottom:8},ne===L.je.INVENTORY_REMAINING_FOR_PRODUCT?Z(L.tn.INVENTORY_REMAINING_FOR_PRODUCT,{stockLevel:(null===(G=e)||void 0===G||null===(H=G.c_extendVariant)||void 0===H?void 0:H.stock)||0,productName:e.productName}):Z(L.tn.NO_VARIANT_SELECTED))):r.createElement(r.Fragment,null)),!ae&&r.createElement(p.B,{w:"full"},0===(null===(Y=e)||void 0===Y||null===(Q=Y.inventory)||void 0===Q?void 0:Q.stockLevel)||null===(null===(K=e)||void 0===K||null===(J=K.c_extendVariant)||void 0===J?void 0:J.stock)?r.createElement(P.A,{product:e}):r.createElement(S.A,{product:e,compactView:te,setShowErrorMessage:oe,errorContainerRef:re,showUniversalFeedback:!0})))))))};F.propTypes={product:l().object,onItemQuantityChange:l().func,onAddItemToCart:l().func,showLoading:l().bool,isWishlistItem:l().bool,secondaryActions:l().node};const $=F},57328:(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var n=a(64180),o=a(68175),r=a(77810),i=a(62241),l=a(11199),s=a(54752),c=a(80243),u=a(73352),d=a(36287),m=a(31390),p=a(4026),v=a(64965);function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(a),!0).forEach((function(t){(0,o.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):y(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}const f=(0,c.default)({resolved:{},chunkName:()=>"page-not-found",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!a.m[t]},importAsync:()=>a.e(9649).then(a.bind(a,61681)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return a(t)},resolve:()=>61681}),g=()=>{const{res:e}=(0,i.useServerContext)(),{data:t,error:a,isLoading:o}=(0,l.p)(),c=h({},t),y=(0,u.o5)("Policies"),g=(0,v.useLocation)(),{customParams:E}=(0,p.getConfig)();if(a||null===t&&!o)return e&&e.status(404),r.createElement(f,null);const b=(null==c?void 0:c.seo_standard)||{},_=null==b?void 0:b.meta_title,w=null==b?void 0:b.meta_description,A={"@context":"https://schema.org/","@type":"WebPage",name:_,description:w,url:"https://"+E.currentHost+g.pathname};return r.createElement(r.Fragment,null,r.createElement(s.Helmet,null,_&&r.createElement("title",null,_),w&&r.createElement("meta",{name:"description",content:w}),r.createElement("script",{type:"application/ld+json"},JSON.stringify(A,null,2))),r.createElement(d.az,(0,n.A)({},y.container,{__css:h({},y)}),r.createElement(m.A,{as:"div",html:null==t?void 0:t.html})))}}}]); 2//# sourceMappingURL=pages-account-wishlist.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.