(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417],{1780:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/categories/[[...category]]",function(){return i(8664)}])},1024:function(e,n,i){"use strict";i.d(n,{Z:function(){return d}});var t=i(4924),o=i(5893),l=i(5387),r=i.n(l),a=i(7963),s=i(540),c=i(6010);function d(e){var n=e.image,i=void 0===n?null:n,l=e.title,d=e.subtitle,u=e.content;return(0,o.jsxs)("header",{className:(0,c.Z)([r().header,(0,t.Z)({},r().hasImage,i)]),children:[i&&(0,o.jsx)("div",{className:r().imageContainer,children:"string"===typeof i?(0,o.jsx)(o.Fragment,{children:i&&(0,o.jsx)("img",{src:i,className:r().image})}):(0,o.jsx)(s.Z,{image:i,layout:"fill",objectFit:"cover",objectPosition:"center",className:r().image})}),(0,o.jsx)(a.Z,{title:l,subtitle:d,content:u,className:r().content})]})}},3739:function(e,n,i){"use strict";i.d(n,{Z:function(){return x}});var t=i(5893),o=(i(7294),i(5214)),l=i(7985),r=i.n(l),a=i(6042),s=i(9396),c=i(9534),d=i(1664),u=i.n(d),_=function(e){var n=e.href,i=void 0===n?null:n,o=e.children,l=(0,c.Z)(e,["href","children"]);return i?(0,t.jsx)(u(),(0,s.Z)((0,a.Z)({href:i},l),{children:(0,t.jsx)("a",{children:o})})):o},v=i(9728),h=i(8639),f=function(e){var n=e.href,i=void 0===n?null:n,o=e.image,l=void 0===o?null:o,a=e.label,s=void 0===a?null:a,c=e.labelColor,d=void 0===c?"#000":c,u=e.className,f=void 0===u?"":u,p=e.onClick,m=void 0===p?function(){}:p,x=e.children;return(0,t.jsx)("div",{className:[r().card,f].join(" "),onClick:m,children:(0,t.jsxs)(_,{href:i,children:[(0,t.jsxs)("div",{className:r().rounded,children:[s&&(0,t.jsx)(h.Z,{className:r().label,title:s,backgroundColor:d}),(0,t.jsx)(v.Z,{image:l,layout:"fill",objectPosition:"center",objectFit:"cover"})]}),(0,t.jsx)("div",{className:r().content,children:x})]})})},p=i(6013),m=i.n(p),x=function(e){var n,i,l,r,a,s,c,d,u,_=e.product,v=e.onClick,h=void 0===v?function(){}:v,p=e.className,x=void 0===p?"":p,b=(0,o.ZP)({amount:null===(n=_.price)||void 0===n?void 0:n.value,baseAmount:null===(i=_.price)||void 0===i?void 0:i.retailPrice,currencyCode:null===(l=_.price)||void 0===l?void 0:l.currencyCode}).price,g=(0,o.ZP)({amount:null===(r=_.listPrice)||void 0===r?void 0:r.value,baseAmount:null===(a=_.listPrice)||void 0===a?void 0:a.retailPrice,currencyCode:null===(s=_.listPrice)||void 0===s?void 0:s.currencyCode}).price,j=(null===(c=_.listPrice)||void 0===c?void 0:c.value)>0,Z=_.images&&_.images.length>0?_.images[0]:null;return(0,t.jsxs)(f,{href:"/products/".concat(_.slug),image:Z,label:null===(d=_.label)||void 0===d?void 0:d.value,labelColor:null===(u=_.labelColor)||void 0===u?void 0:u.value,className:x,onClick:h,children:[(0,t.jsx)("span",{className:m().title,children:_.name}),(0,t.jsxs)("div",{className:m().prices,children:[b&&(0,t.jsx)("span",{className:m().price,children:b}),j&&(0,t.jsx)("span",{className:m().oldPrice,children:g})]})]})}},633:function(e,n,i){"use strict";var t=i(5893),o=(i(7294),i(2507)),l=i(6797),r=i.n(l),a=i(9046),s=i(1664),c=i.n(s);n.Z=function(e){var n=e.url,i=void 0===n?"":n,l=e.children;return(0,t.jsx)(o.Z,{className:r().section,children:(0,t.jsx)("div",{className:r().container,children:(0,t.jsx)("div",{className:r().button,children:(0,t.jsx)(c(),{href:i,passHref:!0,children:(0,t.jsx)(a.Z,{Component:"a",children:l})})})})})}},6743:function(e,n,i){"use strict";var t=i(5893),o=(i(7294),i(5675)),l=i.n(o),r=i(2507),a=i(5225),s=i.n(a);n.Z=function(e){var n=e.src,i=e.width,o=e.height;return n?(0,t.jsx)(r.Z,{className:s().section,children:(0,t.jsx)("div",{className:s().container,children:(0,t.jsx)("div",{className:s().image,children:(0,t.jsx)(l(),{src:n,alt:"404.png",width:i,height:o})})})}):null}},7963:function(e,n,i){"use strict";var t=i(4924),o=i(5893),l=(i(7294),i(8718)),r=i.n(l),a=i(1664),s=i.n(a),c=i(6010);n.Z=function(e){var n=e.className,i=e.title,l=e.link,a=e.linkLabel,d=e.subtitle,u=void 0===d?null:d,_=e.noMaxWidth,v=void 0!==_&&_,h=e.content;return i||l||a?(0,o.jsx)("div",{className:(0,c.Z)([n,r().header]),children:(0,o.jsxs)("div",{className:(0,c.Z)(r().container,(0,t.Z)({},r().noMaxWidth,v)),children:[(0,o.jsx)("h1",{className:r().title,children:i}),l&&a&&(0,o.jsx)(s(),{href:l,children:(0,o.jsx)("a",{className:r().link,children:a})}),u&&(0,o.jsx)("p",{className:r().subTitle,children:u}),h&&(0,o.jsx)("div",{className:r().content,dangerouslySetInnerHTML:{__html:h}})]})}):null}},2322:function(e,n,i){"use strict";i.d(n,{h:function(){return s}});var t=i(5893),o=(i(7294),i(2507)),l=i(5935),r=i(4405),a=i.n(r),s=function(e){var n=e.component;return(0,t.jsx)(c,{titleTop:n.titleTop,children:(0,l.ZP)(n.title)})},c=function(e){var n=e.children,i=e.titleTop;return(0,t.jsx)(o.Z,{className:a().section,children:(0,t.jsxs)("div",{className:a().container,children:[i&&(0,t.jsx)("h2",{className:a().titleTop,children:i}),(0,t.jsx)("div",{className:a().title,children:n})]})})};n.Z=c},8639:function(e,n,i){"use strict";var t=i(5893),o=(i(7294),i(7861)),l=i.n(o),r=i(6010);n.Z=function(e){var n=e.className,i=void 0===n?null:n,o=e.title,a=void 0===o?null:o,s=e.color,c=void 0===s?"#FFF":s,d=e.backgroundColor,u=void 0===d?"#000":d;return(0,t.jsx)("div",{className:(0,r.Z)([l().label,i]),style:{color:c,backgroundColor:u},children:a})}},2507:function(e,n,i){"use strict";i.d(n,{Z:function(){return a}});var t=i(5893),o=i(2577),l=i.n(o),r=i(6010);function a(e){var n=e.children,i=e.className,o=void 0===i?"":i;return(0,t.jsx)("div",{className:(0,r.Z)([o,l().section]),children:n})}},9728:function(e,n,i){"use strict";var t=i(4924),o=i(6042),l=i(9534),r=i(5893),a=i(7294),s=i(5675),c=i.n(s),d=i(6010),u=i(3269),_=i.n(u);n.Z=function(e){var n=e.image,i=e.className,s=void 0===i?"":i,u=e.placeholder,v=void 0===u?"empty":u,h=e.onLoadingComplete,f=void 0===h?function(){}:h,p=(0,l.Z)(e,["image","className","placeholder","onLoadingComplete"]),m=(0,a.useState)(!1),x=m[0],b=m[1];if(!(null===n||void 0===n?void 0:n.url))return null;return(0,r.jsx)(c(),(0,o.Z)({src:n.url,loader:function(e){var i=e.width;return"".concat(null===n||void 0===n?void 0:n.url,"&w=").concat(i)},className:(0,d.Z)([s,(0,t.Z)({},_().placeholderBlur,"blur"===v),(0,t.Z)({},_().placeholderColor,"color"===v),(0,t.Z)({},_().loaded,x)]),onLoadingComplete:function(){b(!0),f()},placeholder:"color"===v?"blur":v,alt:n.altText},p))}},1635:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSG:function(){return _}});var t=i(5893),o=i(6910),l=i(9008),r=i.n(l),a=(i(7294),i(2322)),s=i(6743),c=i(633),d=i(1163),u=function(){var e=(0,d.useRouter)().asPath.match(/^\/products.*$/g);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r(),{children:[(0,t.jsx)("title",{children:"Page not found"}),(0,t.jsx)("meta",{name:"description",content:"IRIS 404 page"})]}),(0,t.jsx)(s.Z,{src:"/images/404.png",width:468,height:147}),(0,t.jsxs)(a.Z,{children:["Oops\u2026 flat tire",(0,t.jsx)("br",{})," 404 not found"]}),(0,t.jsx)(c.Z,{url:e?"/categories/shop-all":"/",children:e?"Back to shop":"Back to homepage"})]})};u.Layout=o.Z;var _=!0;n.default=u},8664:function(e,n,i){"use strict";i.r(n),i.d(n,{__N_SSG:function(){return Ce},default:function(){return Ne}});var t=i(9815),o=i(5893),l=i(7294),r=i(7568),a=i(6042),s=i(9396),c=i(655),d=i(8100),u=i(1233),_=i(8673),v=i(364),h=i(5697),f=i(1163),p=function(){var e=(0,r.Z)((function(e,n){var i;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return i=_.T5,"POST",[4,fetch(i,{method:"POST",body:JSON.stringify({query:e,variables:n}),headers:{"X-Shopify-Storefront-Access-Token":_.E0,"Content-Type":"application/json"}})];case 1:return[2,t.sent().json()]}}))}));return function(n,i){return e.apply(this,arguments)}}(),m=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=(0,f.useRouter)().isReady;return(0,d.ZP)(t?[e,n]:null,p,(0,s.Z)((0,a.Z)({},i),{revalidateOnFocus:!1}))},x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"popularity-desc",t=(0,l.useState)([]),o=t[0],r=t[1],c=(0,l.useState)([]),d=c[0],_=c[1],f=m(u.Z,(0,a.Z)({categoryId:e,filters:n.map((function(e){var n=e.input;return JSON.parse(n)}))},(0,h.Z)(i))),p=f.data,x=f.error,b=f.isValidating;return(0,l.useEffect)((function(){var e,n,i;r((function(e){var n,i,t,o;return(null===e||void 0===e?void 0:e.length)>0&&!p?e:null===p||void 0===p||null===(n=p.data)||void 0===n||null===(i=n.node)||void 0===i||null===(t=i.products)||void 0===t||null===(o=t.edges)||void 0===o?void 0:o.map((function(e){var n=e.node;return(0,v.Op)(n)}))}));var t=["Small / Medium","Small / Medium","XXXL","XXL","XL","L","M","S","XS","XXS","XXXS"],o=null===p||void 0===p||null===(e=p.data)||void 0===e||null===(n=e.node)||void 0===n||null===(i=n.products)||void 0===i?void 0:i.filters.map((function(e){if("filter.v.option.size"!==e.id)return e;var n=e.values.sort((function(e,n){var i=t.indexOf(e.label);return t.indexOf(n.label)-i}));return(0,s.Z)((0,a.Z)({},e),{values:n})}));_((function(e){return(null===e||void 0===e?void 0:e.length)>0&&!p?e:o}))}),[p]),{products:o,filters:d,error:x,isValidating:b}},b=i(9008),g=i.n(b),j=i(1024),Z=i(1207),C=i.n(Z);function N(e){var n=e.title,i=e.linkLabel,t=e.toolbar,l=void 0===t?null:t,r=e.children;return(0,o.jsxs)("div",{className:C().collection,children:[n&&(0,o.jsxs)("div",{className:C().title,children:[(0,o.jsx)("h1",{children:n}),(0,o.jsx)("a",{href:"#",children:i})]}),l,(0,o.jsx)("div",{className:C().container,children:r})]})}var y=i(199),P=i.n(y),S=i(6010),k=function(e){var n=e.children,i=e.className,t=void 0===i?"":i;return(0,o.jsx)("div",{className:(0,S.Z)([t,P().toolbarItem]),children:n})},w=function(e){var n=e.children,i=l.Children.map(n,(function(e){var n;return e?["right","bottom"].includes(null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.align)?null:(0,l.cloneElement)(e):null})),t=l.Children.map(n,(function(e){var n;return e&&"right"===(null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.align)?(0,l.cloneElement)(e):null})),r=l.Children.map(n,(function(e){var n;return e&&"bottom"===(null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.align)?(0,l.cloneElement)(e):null}));return(0,o.jsx)("div",{className:P().toolbar,children:(0,o.jsxs)("div",{className:P().container,children:[(0,o.jsx)("div",{className:P().left,children:i}),(0,o.jsx)("div",{className:P().right,children:t}),r.length>0&&(0,o.jsx)("div",{className:P().bottom,children:r})]})})},T=i(3739),M=i(6910),F=i(5421),I=i.n(F),L=i(9690),E=function(e){e.align;var n=e.options,i=e.onRemove,l=void 0===i?function(){}:i;return(0,o.jsx)("ul",{className:I().options,children:(0,t.Z)(n).map((function(e){return(0,o.jsxs)("li",{className:I().option,children:[e.label,(0,o.jsx)(L.X1,{className:I().removeIcon,onClick:function(){return l(e)}})]},e.id)}))})},H=i(1635),O=i(1263),B=i(4924),R=i(798),X=i.n(R),G=i(9534),D=i(9538),A=i(8948),U=i(4708),K=i(9641),q=i(3952),z=i(4663),V=(0,l.forwardRef)((function(e,n){e.title;var i=e.children,t=e.isOpen,l=e.onClose,r=(0,G.Z)(e,["title","children","isOpen","onClose"]),c=(0,A.Ir)({onClose:l,isOpen:t,isDismissable:!0},n).overlayProps,d=(0,A.dd)().modalProps,u=(0,U.R)({},n).dialogProps;return(0,o.jsx)(K.MT,{contain:!0,restoreFocus:!0,autoFocus:!0,children:(0,o.jsx)("div",(0,s.Z)((0,a.Z)({className:X().popover},(0,q.dG)(c,u,r,d)),{ref:n,children:i}))})}));V.displayName="ToolbarDropdownOverlay";var W=function(e){var n=e.align,i=void 0===n?"left":n,t=e.children,r=(0,D.d)({}),c=(0,l.useRef)(),d=(0,l.useRef)(),u=(0,A.IB)({type:"dialog"},r,c),_=u.triggerProps,v=u.overlayProps,h=(0,A.tN)({targetRef:c,overlayRef:d,placement:"bottom ".concat(i),isOpen:r.isOpen}),f=h.overlayProps,p=h.updatePosition,m=(0,l.useCallback)((function(e){d.current=e,p(),function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};null===e||void 0===e||e.addEventListener("focusout",(function(i){!e.contains(i.relatedTarget)&&document.hasFocus()&&n()}))}(d.current,(function(){return null===r||void 0===r?void 0:r.close()}))}),[d,p]),x=(0,z.U)({onPress:function(){return r.open()}},c).buttonProps;return(0,o.jsxs)("div",{className:X().dropdown,children:[(0,o.jsxs)("button",(0,s.Z)((0,a.Z)({},x,_),{ref:c,className:X().button,children:[e.label,(0,o.jsx)(L._M,{"aria-hidden":"true"})]})),r.isOpen&&(0,o.jsx)(A.Xj,{children:(0,o.jsx)(V,(0,s.Z)((0,a.Z)({},v,f),{ref:m,isOpen:r.isOpen,onClose:r.close,children:t}))})]})},J=i(8550),Y=i(4206),Q=i(9009),$=i.n(Q),ee=function(e){var n=e.item,i=e.state,t=e.checkbox,r=(0,l.useRef)(),c=(0,Y.Fv)({key:n.key},i,r),d=c.optionProps,u=c.isSelected,_=c.isDisabled,v=(0,K.Fx)(),h=(v.isFocusVisible,v.focusProps);return(0,o.jsx)("li",(0,s.Z)((0,a.Z)({},(0,q.dG)(d,h)),{ref:r,className:(0,S.Z)([$().listBoxItem,(0,B.Z)({},$().hasCheckbox,t),(0,B.Z)({},$().isSelected,u),(0,B.Z)({},$().isDisabled,_)]),children:n.rendered}))},ne=function(e){var n=(0,J.n_)(e),i=(0,l.useRef)(),r=(0,Y.co)(e,n,i).listBoxProps,c=e.className,d=e.label,u=e.checkbox,_=void 0!==u&&u;return(0,o.jsx)("ul",(0,s.Z)((0,a.Z)({"aria-label":d},r),{ref:i,className:[$().listBox,c].join(" "),children:(0,t.Z)(n.collection).map((function(e){return(0,o.jsx)(ee,{checkbox:_,item:e,state:n},e.key)}))}))},ie=function(e){var n,i=e.align,l=e.label,r=e.children,a=e.value,s=e.items,c=e.onSelectionChange,d=void 0===c?function(){}:c,u=e.disallowEmptySelection,_=void 0!==u&&u;return(0,o.jsxs)(k,{align:i,className:(0,S.Z)([(0,B.Z)({},X().right,"right"===i)]),children:[l&&(0,o.jsx)("span",{className:X().prefix,children:l}),(0,o.jsx)(W,{label:null===(n=s.find((function(e){return e.key===a})))||void 0===n?void 0:n.label,align:i||"left",children:(0,o.jsx)(ne,{label:l,items:s,selectionMode:"single",selectedKeys:[a],onSelectionChange:function(e){return d((0,t.Z)(e)[0])},disallowEmptySelection:_,children:r})})]})},te=[{key:"manual",label:"Default"},{key:"trending-desc",label:"Popularity"},{key:"latest-desc",label:"New"},{key:"price-desc",label:"Price - high to low"},{key:"price-asc",label:"Price - low to high"}],oe=function(e){var n=e.value,i=e.onChange,t=void 0===i?function(){}:i,l=e.align;return(0,o.jsx)(ie,{align:l,defaultValue:n,value:n,onSelectionChange:t,items:te,disallowEmptySelection:!0,children:function(e){return(0,o.jsx)(O.ck,{children:e.label},e.key)}})},le=i(3538),re=i(1020),ae=i.n(re),se=function(e){var n=e.onClose,i=void 0===n?function(){}:n,t=(0,G.Z)(e,["onClose"]),r=t.title,c=t.footer,d=t.children,u=l.useRef(),_=(0,A.Ir)(t,u).overlayProps;(0,A.tk)();var v=(0,A.dd)().modalProps,h=(0,U.R)(t,u),f=h.dialogProps,p=h.titleProps,m=l.useRef(),x=(0,z.U)({onPress:i},m).buttonProps;return(0,o.jsx)(A.Xj,{children:(0,o.jsx)(K.MT,{contain:!0,restoreFocus:!0,autoFocus:!0,children:(0,o.jsxs)("div",(0,s.Z)((0,a.Z)({},_,f,v),{ref:u,className:ae().popup,children:[(0,o.jsxs)("header",{className:ae().header,children:[(0,o.jsx)("div",{className:ae().headerLeft,children:(0,o.jsx)("button",(0,s.Z)((0,a.Z)({},x),{ref:m,className:ae().close,children:(0,o.jsx)(L.Xd,{})}))}),(0,o.jsx)("h3",(0,s.Z)((0,a.Z)({},p),{className:ae().title,children:r}))]}),(0,o.jsx)("div",{className:ae().content,children:d}),c&&(0,o.jsx)("footer",{className:ae().footer,children:c})]}))})})},ce=i(2761),de=i.n(ce),ue=i(9046),_e=function(e){var n=e.label,i=e.onSelectionChange,t=void 0===i?function(){}:i,r=e.onApply,c=void 0===r?function(){}:r,d=e.value,u=e.disabledKeys,_=e.items,v=void 0===_?[]:_,h=e.children,f=(0,D.d)({}),p=(0,l.useRef)(),m=(0,z.U)({onPress:function(){return f.open()}},p).buttonProps,x=v.filter((function(e){var n=e.id;return d.includes(n)}));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",(0,s.Z)((0,a.Z)({className:de().item,ref:p},m),{children:[(0,o.jsx)("div",{className:de().label,children:n}),(0,o.jsx)("div",{className:de().options,children:x.map((function(e){return e.label})).join(", ")}),(0,o.jsx)("div",{className:de().icon,children:(0,o.jsx)(L._Q,{})})]})),f.isOpen&&(0,o.jsx)(se,{title:n,isOpen:!0,onClose:f.close,isDismissable:!0,footer:(0,o.jsx)(ue.Z,{block:!0,onClick:function(){f.close(),c()},children:"Apply filters"}),children:(0,o.jsx)(ne,{label:"Test",selectionMode:"multiple",selectedKeys:d,disabledKeys:u,onSelectionChange:t,items:v,checkbox:!0,className:de().listBox,children:h})})]})},ve=i(8832),he=i.n(ve),fe=i(872),pe=function(e){var n=(0,fe.Z)({},e);return(0,o.jsxs)("svg",(0,s.Z)((0,a.Z)({width:"24",height:"24",viewBox:"0 0 512 512",fill:"currentColor",stroke:"currentColor"},n),{children:[(0,o.jsx)("path",{d:"M257.6,128c7.4-36.5,39.7-64,78.4-64s71,27.5,78.4,64H512v32h-97.6c-7.4,36.5-39.7,64-78.4,64s-71-27.5-78.4-64H0v-32 H257.6z M336,192c26.5,0,48-21.5,48-48s-21.5-48-48-48s-48,21.5-48,48S309.5,192,336,192z"}),(0,o.jsx)("path",{d:"M97.6,352c7.4-36.5,39.7-64,78.4-64s71,27.5,78.4,64H512v32H254.4c-7.4,36.5-39.7,64-78.4,64s-71-27.5-78.4-64H0v-32H97.6z M176,416c26.5,0,48-21.5,48-48s-21.5-48-48-48s-48,21.5-48,48S149.5,416,176,416z"})]}))},me=function(e){var n=e.filters,i=e.selectedFilters,t=e.onChange,r=e.align,c=(0,D.d)({}),d=(0,l.useRef)(),u=(0,z.U)({onPress:function(){return c.open()}},d).buttonProps,_=(null===i||void 0===i?void 0:i.length)||0;if(!(null===n||void 0===n?void 0:n.length)>0)return null;var v=function(){c.close()};return(0,o.jsxs)(k,{align:r,children:[(0,o.jsxs)("button",(0,s.Z)((0,a.Z)({},u),{ref:d,className:he().button,children:[(0,o.jsx)(pe,{className:he().icon}),"Filters ",_>0&&"(".concat(_,")")]})),c.isOpen&&(0,o.jsx)(se,{title:"Filters",isOpen:!0,onClose:c.close,isDismissable:!0,footer:(0,o.jsx)(ue.Z,{block:!0,onClick:function(){return v()},children:"Apply filters"}),children:n.map((function(e){return(0,o.jsx)(_e,{label:e.label,values:e.values,selectionMode:"multiple",items:e.values,disabledKeys:e.values.filter((function(e){return e.count<1})).map((function(e){return e.id})),value:i.map((function(e){return e.id})).filter((function(n){return e.values.find((function(e){return e.id===n}))})),onSelectionChange:function(n){return t(e,n)},onApply:function(){return setTimeout(v,1)},children:function(e){return(0,o.jsx)(O.ck,{value:e,disabled:e.count<1,children:e.label},e.id)}},e.id)}))})]})},xe=function(e){var n=e.align,i=void 0===n?null:n,t=e.checkbox,l=void 0!==t&&t,r=e.label,a=e.onSelectionChange,s=void 0===a?function(){}:a,c=e.value,d=e.items,u=e.disabledKeys,_=e.children;return(0,o.jsx)(k,{align:i,className:(0,S.Z)([X().dropdown,(0,B.Z)({},X().right,"right"===i)]),children:(0,o.jsx)(W,{label:r,children:(0,o.jsx)(ne,{label:"Test",selectionMode:"multiple",selectedKeys:c,disabledKeys:u,onSelectionChange:s,items:d,checkbox:l,children:_})})})},be=function(e){var n=e.filters,i=e.selectedFilters,t=e.onChange,l=e.align;return!(null===n||void 0===n?void 0:n.length)>0?null:n.filter((function(e){return"LIST"===e.type})).map((function(e){return(0,o.jsx)(xe,{align:l,label:e.label,items:e.values,checkbox:!0,disabledKeys:e.values.filter((function(e){return e.count<1})).map((function(e){return e.id})),value:i.map((function(e){return e.id})).filter((function(n){return e.values.find((function(e){return e.id===n}))})),onSelectionChange:function(n){t(e,n)},children:function(e){return(0,o.jsx)(O.ck,{value:e,disabled:e.count<1,children:e.label},e.id)}},e.id)}))},ge=i(4323),je=i(5246);var Ze=function(e){var n,i,r,a=e.categories,s=(0,f.useRouter)(),c=(null===(n=s.query.category)||void 0===n?void 0:n[0])||"shop-all",d=a.find((function(e){return e.slug===c})),u=(0,le.Z)().minMedia,_=null===(i=s.query)||void 0===i?void 0:i.gender,v=(0,l.useState)("manual"),h=v[0],p=v[1],m=(0,l.useState)([]),b=m[0],Z=m[1];(0,l.useEffect)((function(){s.asPath.includes("?")||je.Z.viewItemList(c,null===d||void 0===d?void 0:d.name,y.map((function(e){var n;return ge.E.fromProductInOverview(e,null===(n=e.variants)||void 0===n?void 0:n[0])})))}),[s.asPath,s.events]),(0,l.useLayoutEffect)((function(){_&&"Unisex"!==_&&Z([{id:"filter.p.m.my_fields.gender.".concat(_.toLowerCase()),label:_,input:'{"productMetafield":{"namespace":"my_fields","key":"gender","value":"'.concat(_,'"}}')}])}),[_]);var C=x(null===d||void 0===d?void 0:d.id,b,h),y=C.products,P=C.filters,S=(C.error,C.isValidating,function(e,n){Z((function(i){var o,l,r,a=i.map((function(e){return e.id})).filter((function(n){return!!e.values.find((function(e){return e.id===n}))})),s=null===(l=a,r=(0,t.Z)(n),o=(0,t.Z)(l.filter((function(e){return!r.includes(e)}))).concat((0,t.Z)(r.filter((function(e){return!l.includes(e)})))))||void 0===o?void 0:o[0],c=i.find((function(e){return e.id===s})),d=e.values.find((function(e){return e.id===s}));return c?(0,t.Z)(i.filter((function(e){return e.id!==s}))):(0,t.Z)(i).concat([d])}))});if(!d)return(0,o.jsx)(H.default,{});var M=null===y||void 0===y?void 0:y.filter((function(e){return"Test Product"!==e.name&&"Test Gift Card"!==e.name}));return(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(g(),{children:(0,o.jsx)("title",{children:"".concat((null===d||void 0===d?void 0:d.name)||"Category"," | IRIS")})}),(0,o.jsx)(j.Z,{image:null===d||void 0===d||null===(r=d.image)||void 0===r?void 0:r.url,title:(null===d||void 0===d?void 0:d.name)||"All Products",subtitle:"Colourful Confidence Guaranteed",content:null===d||void 0===d?void 0:d.description}),(0,o.jsx)(N,{toolbar:(0,o.jsxs)(w,{children:[u("tablet")?(0,o.jsx)(be,{filters:P,selectedFilters:b,onChange:S,align:"left"}):(0,o.jsx)(me,{filters:P,selectedFilters:b,onChange:S,align:"left"}),(0,o.jsx)(oe,{value:h,onChange:function(e){p(e)},align:"right"}),u("tablet")&&(0,o.jsxs)(k,{align:"right",children:[null===y||void 0===y?void 0:y.length," Items"]}),u("tablet")&&(0,o.jsx)(E,{align:"bottom",options:b,onRemove:function(e){Z((function(n){return(0,t.Z)(n.filter((function(n){return n.id!==e.id})))}))}})]}),children:(null===M||void 0===M?void 0:M.length)>0&&M.map((function(e){return(0,o.jsx)(T.Z,{product:e,onClick:function(){return function(e){var n,i=ge.E.fromProductInOverview(e,null===(n=e.variants)||void 0===n?void 0:n[0]);je.Z.selectItem(c,null===d||void 0===d?void 0:d.name,[i])}(e)}},e.id)}))})]},(null===d||void 0===d?void 0:d.id)||null)};Ze.Layout=M.Z;var Ce=!0,Ne=Ze},1207:function(e){e.exports={phone:"min-width: 360px",phoneLandscape:"min-width: 473px",tablet:"min-width: 660px",tabletLandscape:"min-width: 990px",laptop:"min-width: 1280px",desktop:"min-width: 1440px",hd:"min-width: 1920px",phoneMax:"max-width: 472px",phoneLandscapeMax:"max-width: 659px",tabletMax:"max-width: 989px",tabletLandscapeMax:"max-width: 1279px",laptopMax:"max-width: 1439px",desktopMax:"max-width: 1919px",collection:"Collection_collection___FrD9 Section_section__EInGp",container:"Collection_container__Y2YQk Section_container__lUPEN",title:"Collection_title__Cq7Fe"}},2761:function(e){e.exports={item:"MobileCollectionFilter_item__dmDL1",options:"MobileCollectionFilter_options__hmaVk",icon:"MobileCollectionFilter_icon__mkegC",listBox:"MobileCollectionFilter_listBox__E7xOt"}},8832:function(e){e.exports={button:"MobileCollectionFilters_button__wIuEa",icon:"MobileCollectionFilters_icon__cEK3Y"}},1020:function(e){e.exports={popup:"MobileCollectionFiltersPopup_popup__veb6M",close:"MobileCollectionFiltersPopup_close__bBW3M",header:"MobileCollectionFiltersPopup_header__FXIcr",headerLeft:"MobileCollectionFiltersPopup_headerLeft__hQ6lD",title:"MobileCollectionFiltersPopup_title__12izz",content:"MobileCollectionFiltersPopup_content___SPen",footer:"MobileCollectionFiltersPopup_footer__OdQO_"}},5387:function(e){e.exports={header:"Header_header__cnjji",links:"Header_links__OdmGE",content:"Header_content__oftFj",imageContainer:"Header_imageContainer__WOJoz",image:"Header_image__c6tX3"}},6013:function(e){e.exports={title:"ProductCard_title__xgty9 HeadingAlt_normal__qEpHT",prices:"ProductCard_prices__sIT1F",price:"ProductCard_price__pB7_t Typography_smallStrong__waraZ",oldPrice:"ProductCard_oldPrice__k3le0 Typography_smallStrong__waraZ"}},6797:function(e){e.exports={section:"Button_section__uf1b_ Section_section__EInGp",container:"Button_container__xaeIF Section_container__lUPEN",button:"Button_button__RmH3D"}},5225:function(e){e.exports={section:"PlainImage_section__MAG6b Section_section__EInGp",container:"PlainImage_container__Bqjwy Section_container__lUPEN",image:"PlainImage_image__8q_vj"}},8718:function(e){e.exports={header:"SectionHeader_header__3tlx2 Section_section__EInGp",container:"SectionHeader_container__UkZTV Section_container__lUPEN",noMaxWidth:"SectionHeader_noMaxWidth__LAidK",title:"SectionHeader_title__G3mmc HeadingAlt_large__T6acf",link:"SectionHeader_link__LmMBP Typography_smallStrong__waraZ",subTitle:"SectionHeader_subTitle__46zxJ",content:"SectionHeader_content__GHl8w"}},4405:function(e){e.exports={section:"TitleLarge_section__dzHrj Section_section__EInGp",container:"TitleLarge_container__ZclC7 Section_container__lUPEN",titleTop:"TitleLarge_titleTop__5_6y8 HeadingAlt_smallCaps__ozLI7 HeadingAlt_small__7nKWG",title:"TitleLarge_title__WohJm Heading_super__Q_KIn"}},7985:function(e){e.exports={card:"Card_card__gHJgY",rounded:"Card_rounded__1hSYU",label:"Card_label__AhUxE",content:"Card_content__9qMHR"}},7861:function(e){e.exports={label:"Label_label__2hqMW"}},9009:function(e){e.exports={listBox:"ListBox_listBox__1je8X",listBoxItem:"ListBox_listBoxItem__qh4G9",isSelected:"ListBox_isSelected__7M4Uf",isDisabled:"ListBox_isDisabled__6eB8R",hasCheckbox:"ListBox_hasCheckbox__TJwwc"}},2577:function(e){e.exports={section:"Section_section__TZ1Iy"}},3269:function(e){e.exports={placeholderBlur:"ShopifyImage_placeholderBlur__XkFi7",loaded:"ShopifyImage_loaded__icPVu",placeholderColor:"ShopifyImage_placeholderColor__r0uLu",unblur:"ShopifyImage_unblur___D3Vp"}},199:function(e){e.exports={toolbar:"Toolbar_toolbar__WNz_q",toolbarItem:"Toolbar_toolbarItem__gWiEy",container:"Toolbar_container__eumyH Section_container__lUPEN",left:"Toolbar_left__YSBHG",right:"Toolbar_right__VXOdA",bottom:"Toolbar_bottom__sUsBe"}},798:function(e){e.exports={prefix:"ToolbarDropdown_prefix__ku6Om",right:"ToolbarDropdown_right__lEL16",dropdown:"ToolbarDropdown_dropdown__LG_3T",button:"ToolbarDropdown_button__7_Hdq",popover:"ToolbarDropdown_popover__9hGpG"}},5421:function(e){e.exports={options:"ToolbarSelectedOptions_options__F7V5w",removeIcon:"ToolbarSelectedOptions_removeIcon__647Af"}}},function(e){e.O(0,[408,935,874,119,774,888,179],(function(){return n=1780,e(e.s=n);var n}));var n=e.O();_N_E=n}]);