(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7905],{95159:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/products/[slug]",function(){return s(78630)}])},88338:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var l=s(85893),a=s(36425),i=s(94155),n=s(96317),r=function(e){let{title:t,subtitle:s,btnUrl:r,btnText:c}=e;return(0,l.jsxs)("section",{className:"mx-auto w-full max-w-7xl px-4 py-10 md:px-8 md:py-20",children:[(0,l.jsxs)("div",{className:"md:flex md:items-center md:px-8",children:[(0,l.jsxs)("div",{className:"mb-4 basis-3/5 text-center md:mb-0 md:text-left",children:[(0,l.jsx)("h1",{className:"mb-1 text-gray-500 md:text-xl lg:text-2xl",children:t}),(0,l.jsx)("p",{className:"mb-6 font-heading text-2xl font-medium leading-tight md:mb-8 md:text-4xl lg:mb-12 lg:text-5xl",children:s}),(0,l.jsx)(n.Z,{href:r,children:c})]}),(0,l.jsx)("div",{className:"flex basis-2/5 justify-center",children:(0,l.jsx)(a.Z,{className:"mx-auto h-auto w-full max-w-[200px] text-navy-500 md:max-w-md"})})]}),(0,l.jsx)(i.Z,{containerClasses:"py-8",context:{type:"HOMEPAGE",location:"404",data:[]},selector:["404 Page"]})]})}},78630:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return eW},default:function(){return eG}});var l,a=s(85893),i=s(67294),n=s(31955),r=s(11163),c=s(41664),d=s.n(c),o=s(61631),x=s(76042),m=s(18770);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var l in s)({}).hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e}).apply(null,arguments)}var h=e=>i.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},e),l||(l=i.createElement("g",{stroke:"currentColor"},i.createElement("path",{d:"M13.333 8v6.667H2.667V8M14.667 4.667H1.334V8h13.333zM8 14.667v-10M8 4.667H5a1.667 1.667 0 0 1 0-3.334c2.334 0 3 3.334 3 3.334ZM8 4.667h3a1.667 1.667 0 1 0 0-3.334c-2.333 0-3 3.334-3 3.334Z"})))),g=function(e){let{isGiftCard:t=!1}=e;if(t)return null;let s=[{ends:new Date("2023-12-14T00:00:00"),label:"12/13 with ground shipping"},{ends:new Date("2023-12-16T00:00:00"),label:"12/15 with 3 day shipping"},{ends:new Date("2023-12-19T00:00:00"),label:"12/18 2 day shipping"},{ends:new Date("2023-12-20T00:00:00"),label:"12/19 with next day shipping"}],l=(0,m.zW)(new Date,"America/Chicago"),i=s.find(e=>{let t=(0,o.Q)(e.ends);return(0,x.R)(l,t)});return i?(0,a.jsxs)("p",{className:"flex items-center gap-2 text-xs text-blue",children:[(0,a.jsx)(h,{className:"h-5 w-5"}),"Order by ",i.label," to receive by Christmas Eve"]}):null},f=s(96496);function p(e){let{title:t,careIcons:s,children:l}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-8 pt-8 md:flex-row md:gap-0","data-test":"product-details-care",children:[(0,a.jsxs)("div",{className:"border-gray-100 md:w-1/2 md:border-r md:pr-10",children:[(0,a.jsx)("h3",{className:"mb-6 text-lg font-medium text-blue md:font-regular",children:t}),(0,a.jsx)("div",{children:l})]}),(0,a.jsxs)("div",{className:"md:w-1/2 md:pl-10",children:[(0,a.jsx)("h3",{className:"mb-6 text-lg font-medium text-blue md:font-regular",children:"Care"}),(0,a.jsx)("ul",{className:"flex flex-col gap-2",children:s?.map(e=>a.jsx("li",{children:a.jsx(f.Z,{icon:e.icon})},e?._key))})]})]})}var j=s(16889),v=s(72816);function w(e){let{summary:t,fabric:s,icons:l}=e,i=l&&l.length>0;return(0,a.jsxs)("div",{className:"flex flex-col gap-8 pt-8 lg:flex-row lg:items-center","data-test":"product-features",children:[i&&(0,a.jsx)("div",{className:"flex-grow-0 border-gray-100 lg:border-r lg:pr-10",children:(0,a.jsx)("ul",{className:"grid grid-cols-2 gap-4",children:l?.map(e=>a.jsx("li",{children:a.jsx(f.Z,{icon:e.icon})},e?._key))})}),(0,a.jsxs)("div",{className:(0,v.cn)("flex flex-1 flex-col gap-6 sm:gap-2",i&&"lg:pl-10"),children:[(0,a.jsx)("div",{className:"prose text-sm leading-normal text-black md:text-base md:leading-normal",children:(0,a.jsx)(j.YI,{value:t})}),s&&(0,a.jsxs)("p",{className:"text-xs text-navy-mix-700",children:["Fabric Contents: ",s]})]})]})}function y(e){let{items:t}=e;return(0,a.jsx)("nav",{"aria-label":"Breadcrumb Navigation",className:"hidden py-4 md:block","data-test":"breadcrumbs",children:(0,a.jsx)("ol",{className:"flex",children:t.map(e=>(0,a.jsx)("li",{className:"text-xs text-navy-mix-600 before:px-2 before:opacity-50 before:content-['/'] first:before:hidden",children:e.slug?(0,a.jsx)(d(),{className:"hover:underline",href:e.slug,children:e.title}):e.title},e._id))})})}var b=s(55300);function N(e){let{className:t}=e;return(0,a.jsxs)("div",{className:(0,v.cn)("inline-flex w-auto grow-0 items-center justify-start gap-1 rounded-full bg-tan-500 p-1 pr-2 text-xs font-bold uppercase text-white",t),children:[(0,a.jsx)(b.Z,{className:"h-5 w-5 shrink-0"}),"Double Coins"]})}var C=s(27042),S=s(62612),k=s(45139);let Z=(0,k.j)("inline-flex cursor-help items-center gap-1.5 text-xs leading-normal",{variants:{tone:{danger:"text-amber",success:"text-forest",warning:"text-tan",info:"text-navy"}},defaultVariants:{tone:"info"}});var _=function(e){let{tone:t="info",trigger:s,className:l,children:i}=e;return(0,a.jsxs)(S.fC,{children:[(0,a.jsx)(S.xz,{children:(0,a.jsx)("span",{className:(0,v.cn)(Z({tone:t}),l),"data-test":"popover-trigger",children:s})}),(0,a.jsx)(S.h_,{children:(0,a.jsx)(S.VY,{className:"z-[9999999910] max-w-xs select-none bg-white p-3 text-center text-xs text-navy shadow-lg outline-none will-change-[transform,opacity] data-[state=delayed-open]:data-[side=top]:animate-slideUpAndFade","data-test":"popover-content",side:"top",sideOffset:10,children:i})})]})},T=s(42437),L=s(50266),P=function(e){let{tags:t,className:s}=e;return(0,L.WI)(T.AC,t)?(0,a.jsx)("div",{className:s,children:(0,a.jsxs)(_,{tone:"danger",trigger:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Cyber Monday Exclusive"}),(0,a.jsx)(C.Z,{className:"h-4 w-4"})]}),children:["$50 Cyber Monday styles are eligible for ",(0,a.jsx)("strong",{children:"exchange only"})," no refunds. Cannot be combined with other offers."]})}):null};function O(e){let{tags:t,className:s}=e;return(0,L.WI)(T.sg,t)?(0,a.jsx)("div",{className:s,children:(0,a.jsxs)(_,{tone:"danger",trigger:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Exchange only"}),(0,a.jsx)(C.Z,{className:"h-4 w-4"})]}),children:["All Main Sale items are ",(0,a.jsx)("strong",{children:"only eligible for exchange within 90 days."})," Cannot be combined with other offers."]})}):null}var M=s(11948);function E(e){let{average:t,count:s,className:l}=e,i=Array.from({length:5},(e,s)=>{let l;return l=s+.5<t?"full":s<t?"half":"empty",(0,a.jsx)("svg",{"aria-hidden":"true",className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:"full"===l?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("path",{d:"m24.1 9.1-8.3-1.3L12 .2 8.2 7.8-.1 9.1l6 5.9-1.4 8.3 7.5-3.9 7.5 3.9-1.4-8.3z"})}):"half"===l?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("path",{d:"M19.5 23.3 12 19.4l-7.5 3.9L5.9 15-.2 9.1l8.4-1.2L12 .2l3.8 7.6L24.2 9l-6.1 6 1.4 8.3zM12 17.1l4.9 2.5-.9-5.4 3.9-3.8-5.4-.8L12 4.7v12.4z"})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("path",{d:"M19.5 23.3 12 19.4l-7.5 3.9L5.9 15-.2 9.1l8.4-1.2L12 .2l3.8 7.6L24.2 9l-6.1 6 1.4 8.3zM12 17.1l4.9 2.5-.9-5.4 3.9-3.8-5.4-.8L12 4.7l-2.4 5-5.4.8 3.9 3.8-.9 5.4 4.8-2.6z"})})},s)});return(0,a.jsxs)("div",{className:l,"data-test":"star-rating",children:[(0,a.jsxs)("span",{className:"sr-only",children:["Average rating ",t," stars"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex gap-1",children:i}),s&&s>0?(0,a.jsxs)("span",{className:"text-xs",children:["(",s,")"]}):null]})]})}var $=s(70231),z=s(36460);let I=(0,k.j)("border-b border-navy-mix-100",{variants:{variant:{default:"p-6 py-8 sm:py-14",mini:"pb-6"}},defaultVariants:{variant:"default"}}),A=(0,k.j)("flex w-full items-center justify-between hover:opacity-80",{variants:{variant:{default:"font-heading text-2xl font-medium",mini:""}},defaultVariants:{variant:"default"}}),R=(0,k.j)("w-full",{variants:{isOpen:{true:"visible",false:"hidden"},variant:{default:"",mini:"mt-4 text-sm"}},defaultVariants:{isOpen:!1,variant:"default"}});function F(e){let{title:t,children:s,defaultOpen:l=!1,className:n,accessory:r=null,variant:c="default",...d}=e,[o,x]=(0,i.useState)(l);return(0,a.jsx)("section",{className:(0,v.cn)(I({variant:c}),n),...d,children:(0,a.jsxs)("div",{className:"mx-auto max-w-8xl","data-test":"disclosure-panel",children:[(0,a.jsx)("h2",{children:(0,a.jsxs)("button",{className:(0,v.cn)(A({variant:c})),onClick:()=>x(!o),children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[t,r]}),o?(0,a.jsx)($.Z,{"aria-hidden":"true",className:"h-6 w-6 text-navy"}):(0,a.jsx)(z.Z,{"aria-hidden":"true",className:"h-6 w-6 text-navy"})]})}),(0,a.jsx)("div",{className:(0,v.cn)(R({isOpen:o,variant:c})),children:s})]})})}var V=s(94155),W=s(13114),G=s(57068),D=s(44008),B=s(74234),U=s(49447),H=s(79686),J=s(24956),X=s(93026),K=function(e){let{product:t,scrollTarget:s}=e,{fullSelection:l,selectedOptions:n,selectedVariant:r,optionError:c}=(0,J.$h)(),d=()=>{s.current&&s.current.scrollIntoView({behavior:"smooth"})};(0,i.useEffect)(()=>{if(t.isGiftCard){x("Select Amount");return}switch(["size","fit","length"].find(e=>!n?.[t.gid]?.[e])??c?.[t.gid]){case"size":x("Select size");break;case"fit":x("Select fit");break;case"length":x("Select length")}},[t.gid,c,n,t.isGiftCard]);let[o,x]=(0,i.useState)("Select Size"),[m,u]=(0,i.useState)(!1),h=t.tags.includes("coming-soon"),g=t.flags.notifyMe;return h&&t.comingSoonListId?(0,a.jsx)("button",{className:"w-full bg-navy px-5 py-3 text-center text-sm text-white transition-colors hover:bg-navy-mix-900",onClick:d,children:"Notify me when available"}):l?.[t.gid]?l[t.gid]&&r?.[t.gid]&&r?.[t.gid]?.inStock?(0,a.jsx)(X.Z,{addGiftBox:m,className:"",product:t,setAddGiftBox:u,variantId:r?.[t.gid]?.gid}):g&&l[t.gid]&&r?.[t.gid]&&!r?.[t.gid]?.inStock?(0,a.jsx)("button",{className:"w-full bg-navy px-5 py-3 text-center text-sm text-white transition-colors hover:bg-navy-mix-900",onClick:d,children:"Notify Me"}):l[t.gid]?(0,a.jsx)("button",{className:"w-full cursor-auto bg-gray-600 px-5 py-3 text-center text-sm text-white transition-colors hover:bg-gray-700",onClick:d,children:"Out of Stock"}):null:(0,a.jsx)("button",{className:(0,H.cn)(l?.[t.gid]?"":"bg-navy-mix-700 text-white transition hover:bg-navy","w-full flex-grow px-5 py-3 text-center text-sm transition-colors"),onClick:d,children:o})},Q=function(e){let{product:t,isGiftCard:s=!1,scrollTarget:l}=e,{query:i}=(0,r.useRouter)(),{atbInView:n}=(0,B.M)();return(0,a.jsx)(W.M,{children:!n&&(0,a.jsx)(G.E.div,{animate:{y:0},className:"fixed bottom-0 left-0 z-[999999] w-full bg-white px-2 py-2 pb-3 text-center shadow-top md:p-4",exit:{y:100},initial:{y:100},transition:{type:"spring",stiffness:300,damping:30},children:(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-8xl items-center justify-between px-4 md:px-6",children:[(0,a.jsxs)("div",{className:"hidden flex-col items-start leading-none md:flex",children:[(0,a.jsxs)("h2",{className:"text-xl font-medium",children:[t.vendor," ",t.productType]}),(0,a.jsx)("h3",{className:"font-medium text-navy-mix-700",children:t.title})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-2 md:w-auto md:flex-row md:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-6",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"mr-2 text-xs font-bold",children:"Style:"}),t.hoverImage?.asset?._ref&&(0,a.jsx)(D.dJ,{alt:t.title,baseUrl:"https://cdn.sanity.io/images/tgi56uf8/production/",className:"h-8 w-8 rounded-full",height:100,id:t.hoverImage.asset._ref,width:100})]}),["size","fit","length"].map(e=>{if(i[e])return(0,a.jsxs)("div",{className:"flex flex-col items-start md:flex-row md:items-baseline",children:[(0,a.jsxs)("span",{className:"mr-2 text-xs font-bold",children:[(0,U.Oo)(e.replace("title","amount")),":"]}),(0,a.jsx)("span",{className:"text-xs leading-none",children:(0,H.lo)((0,U.Oo)(String(i[e])))})]},e)})]}),(0,a.jsx)(K,{product:t,scrollTarget:l})]})]})})})},q=s(89382),Y=s(80705),ee=s(90512),et=s(74809),es=s(21023),el=s(42312),ea=s(39830),ei=s.n(ea),en=s(29423),er=s(53905),ec=s(79334),ed=function(e){let{images:t,options:s={loop:!0,align:"start",containScroll:"trimSnaps"},title:l,subtitle:n}=e,[r,c]=(0,i.useState)(!1),[d,o]=(0,i.useState)(void 0),[x,m]=(0,i.useState)({width:0,height:0});(0,i.useEffect)(()=>{let e=()=>{window&&(m({width:window.innerWidth,height:window.innerHeight}),window.innerWidth<768&&(o(void 0),c(!1)))};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]);let[u,h]=(0,q.Z)({loop:!0,align:"start",slidesToScroll:1,containScroll:"trimSnaps",...s}),[g,f]=(0,i.useState)(0),[p,j]=(0,i.useState)([]),v=(0,i.useCallback)(e=>h&&h.scrollTo(e),[h]),[w,y]=(0,i.useState)(!1),[b,N]=(0,i.useState)(!1),C=(0,i.useCallback)(()=>h&&h.scrollPrev(),[h]),S=(0,i.useCallback)(()=>h&&h.scrollNext(),[h]),k=(0,i.useCallback)(()=>{h&&f(h.selectedScrollSnap())},[h]);return(0,i.useEffect)(()=>{h&&(k(),j(h.scrollSnapList()),h.on("select",k),h.on("reInit",k))},[h,j,k]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"overflow-hidden",ref:u,children:(0,a.jsx)("div",{className:"-ml-4 flex h-auto flex-row",children:t.map(e=>e.asset?._ref?(0,a.jsx)("div",{className:(0,H.cn)("flex-0 relative aspect-square w-full min-w-0 flex-shrink-0 flex-grow-0 overflow-hidden pl-4 lg:aspect-4/5 lg:w-1/2",x.width>768?"cursor-zoom-in":""),onClick:x.width>768?()=>{o(e.id),c(!0)}:void 0,children:(0,a.jsx)(D.dJ,{baseUrl:"https://cdn.sanity.io/images/tgi56uf8/production/",className:"absolute block h-full w-full object-cover",id:e.asset._ref,loading:"eager",width:1024})},`styled-with-${e.id}`):null)})}),(0,a.jsx)("div",{className:"flex justify-center gap-2 py-4 md:hidden",children:p.map((e,t)=>(0,a.jsx)("button",{className:(0,H.cn)("h-2 w-2 rounded-full",t===g?"bg-navy":"bg-navy-mix-200"),onClick:()=>v(t),children:(0,a.jsxs)("span",{className:"sr-only",children:["Slide ",t+1]})},`styled-with-${t}`))}),(0,a.jsx)("button",{className:(0,H.cn)("absolute left-6 top-1/2 z-10 hidden h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-gray-100 text-navy transition hover:scale-105 md:flex"),onClick:C,children:(0,a.jsx)(er.Z,{"aria-hidden":"true",className:"h-6 w-6 -scale-x-100 transform"})}),(0,a.jsx)("button",{className:(0,H.cn)("absolute right-6 top-1/2 z-10 hidden h-12 w-12 -translate-y-1/2 items-center justify-center rounded-full bg-gray-100 text-navy transition hover:scale-105 md:flex"),onClick:S,children:(0,a.jsx)(er.Z,{"aria-hidden":"true",className:"h-6 w-6"})})]}),(0,a.jsx)(ec.Z,{imageId:d,images:t,onOpenChange:c,open:r,subtitle:n,title:l},d)]})},eo=function(e){let{product:t,target:s}=e,{quickViewId:l,setQuickViewId:i}=(0,B.M)();if(!t||t?.variants.reduce((e,t)=>e+t.inventory,0)<20)return null;let n=t.variants[0],r=l===t._id;return(0,a.jsx)("div",{className:"border-b border-gray-100 bg-white",ref:s,children:(0,a.jsx)("div",{className:"mx-auto flex max-w-8xl flex-col items-center gap-4 p-6 lg:flex-row lg:py-14",children:(0,a.jsxs)("div",{className:(0,ee.Z)("grid w-full lg:grid-cols-2",ei().container),children:[(0,a.jsx)("div",{className:ei().header,children:(0,a.jsxs)("div",{className:(0,ee.Z)("text-center md:text-left"),children:[(0,a.jsx)("h2",{className:"mb-1 font-heading text-2xl font-medium text-navy",children:"Styled With"}),(0,a.jsx)("p",{className:"text-sm text-navy-mix-700 sm:text-base md:text-lg",children:"A recommended pairing from our stylists."})]})}),(0,a.jsxs)("div",{className:(0,ee.Z)(ei().summary,"pb-2 pt-10 lg:pb-0"),children:[(0,a.jsx)("h3",{className:"mb-2 font-heading text-xl font-medium text-navy",children:(0,el.FS)(t)}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 sm:flex-col sm:items-start sm:justify-start",children:[(0,a.jsx)(M.Z,{className:"text-base",compareAtPrice:n?.compareAtPrice,price:n?.price}),(0,a.jsx)(en.Z,{className:"text-navy",count:t.reviewsCount,rating:t.reviewsAverage})]})]}),(0,a.jsx)("div",{className:ei().cta,children:(0,a.jsxs)("div",{className:(0,ee.Z)("flex flex-col items-center gap-4 lg:flex-row lg:gap-8"),children:[(0,a.jsxs)(et.Vq,{onOpenChange:e=>(e?i(t._id):i(null),!r),open:r,children:[(0,a.jsx)(et.hg,{asChild:!0,children:(0,a.jsx)("button",{className:"flex h-14 items-center justify-center gap-2 bg-blue p-2 px-10 text-lg text-white transition hover:bg-navy",children:"+ Quick View"})}),(0,a.jsxs)(et.cZ,{className:"p-0",children:[(0,a.jsxs)(et.fK,{className:"sr-only",children:[(0,a.jsx)(et.$N,{children:(0,el.FS)(t)}),(0,a.jsx)(et.Be,{children:"Select sizing options to add to your bag."})]}),(0,a.jsx)(es.Z,{location:"styled-with",product:t})]})]}),(0,a.jsxs)(d(),{className:"flex items-center gap-2 transition hover:text-blue",href:t.slug,children:["Learn More ",(0,a.jsxs)("span",{className:"sr-only",children:["about ",(0,el.FS)(t)]}),(0,a.jsx)("svg",{"aria-hidden":"true",height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",children:(0,a.jsx)("polyline",{points:"3.5 0.5 9.5 6 3.5 11.5"})})})]})]})}),(0,a.jsx)("div",{className:(0,ee.Z)(ei().gallery),children:(0,a.jsx)(ed,{images:t.images,subtitle:"A recommended pairing from our stylists.",title:"Styled With"})})]})})})},ex=s(97958),em=function(e){let{products:t,target:s}=e,[l,n]=(0,i.useState)(t.filter(e=>e?.variants.reduce((e,t)=>e+t.inventory,0)>20)),[r,c]=(0,q.Z)({loop:!0,slidesToScroll:1,align:"start",breakpoints:{"(min-width: 650px)":{slidesToScroll:2}}}),[d,o]=(0,i.useState)(!0),[x,m]=(0,i.useState)(!0),[u,h]=(0,i.useState)(0),[g,f]=(0,i.useState)([]),p=(0,i.useCallback)(()=>c&&c.scrollPrev(),[c]),j=(0,i.useCallback)(()=>c&&c.scrollNext(),[c]),v=(0,i.useCallback)(e=>c&&c.scrollTo(e),[c]),w=(0,i.useCallback)(e=>{f(e.scrollSnapList())},[]),y=(0,i.useCallback)(e=>{h(e.selectedScrollSnap()),o(!e.canScrollPrev()),m(!e.canScrollNext())},[]);return((0,i.useEffect)(()=>{c&&(w(c),y(c),c.on("reInit",w),c.on("reInit",y),c.on("select",y))},[c,w,y]),1===l.length)?(0,a.jsx)(eo,{product:l[0],target:s}):(0,a.jsx)("div",{className:"w-full border-b border-gray-100 bg-white",ref:s,children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-8xl flex-col items-center gap-2 p-6 py-8 sm:py-14 lg:flex-row",children:[(0,a.jsxs)("div",{className:"mb-8 w-full pr-6 lg:mb-0 lg:w-1/4",children:[(0,a.jsx)("h2",{className:"mb-2 text-2xl font-medium",children:"Complete the Look"}),(0,a.jsx)("p",{className:"font-regular text-navy-mix-700",children:"A recommended pairing from our stylists."})]}),(0,a.jsxs)("div",{className:"relative w-full overflow-hidden pb-4 sm:pb-0 lg:w-3/4",ref:r,children:[(0,a.jsx)("div",{className:"flex w-full gap-2 px-2",children:l.map(e=>(0,a.jsx)("div",{className:"min-w-[275px] max-w-[383px] flex-1 flex-shrink-0",children:(0,a.jsx)(ex.Z,{onClick:()=>{Y.Z.completeTheLookQuickView(String(e.productId))},product:e})},e.gid))}),g.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute bottom-0 left-0 flex w-full sm:hidden",children:g.map((e,t)=>(0,a.jsx)("button",{"aria-label":`Go to slide ${t+1}`,className:(0,H.cn)("h-1 flex-grow rounded-full transition-all duration-300",u===t?"bg-navy-mix-700":"bg-navy-mix-200"),onClick:()=>v(t)},`dot-${t}`))}),(0,a.jsx)("button",{"aria-label":"Previous Slide",className:"absolute left-0 top-1/2 ml-1 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-navy-mix-100 bg-opacity-60 hover:bg-opacity-100 disabled:hidden sm:flex",disabled:d,onClick:p,children:(0,a.jsx)("svg",{"aria-hidden":"true",className:"h-8 w-auto text-navy",fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:"currentColor",fillRule:"evenodd"})})}),(0,a.jsx)("button",{"aria-label":"Next Slide",className:"absolute right-0 top-1/2 mr-1 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-navy-mix-100 bg-opacity-60 hover:bg-opacity-100 disabled:hidden sm:flex",disabled:x,onClick:j,children:(0,a.jsx)("svg",{"aria-hidden":"true",className:"h-8 w-auto text-navy",fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd"})})})]})]})]})})},eu=s(4298),eh=s.n(eu),eg=s(77029),ef=s(36112);let ep=e=>{let t=e.variants[0];if(!t)return"";let[s]=t.prices;return s};var ej=e=>{let{product:t}=e;if(!t)return null;let[s]=t.images,l=(0,ef.hy)(t.detailsCare?.dcReference.details),i={"@context":"https://schema.org/","@type":"Product",name:`${(0,el.FS)(t)} - ${t.title}`,image:s?(0,ef.uH)(s).width(1e3).height(1e3).url():"",description:l,brand:{"@type":"Brand",name:"Mizzen+Main"},sku:t.sku,offers:{"@type":"Offer",url:`${eg._O}${t.slug}`,priceCurrency:"USD",price:String(ep(t)),availability:"https://schema.org/InStock",itemCondition:"https://schema.org/NewCondition"}},n={"@type":"AggregateRating",ratingValue:String(t.reviewsAverage),ratingCount:String(t.reviewsCount)};return t.reviewsCount>0&&(i.aggregateRating=n),(0,a.jsx)(eh(),{dangerouslySetInnerHTML:{__html:JSON.stringify(i,null," ")},id:"websiteSchema",type:"application/ld+json"})},ev=s(14020),ew=s(31443),ey=s(3150),eb=s(59995),eN=s(47665),eC=s(96562),eS=s(94925),ek=s(49742),eZ=s(18031),e_=s(67819),eT=s(64837);function eL(e){let{promoMessaging:t,tags:s,price:l,lines:i}=e,[n,r]=(0,el.ev)(t,s,"pdp",i),c=r?.message||n?.pdp;return c&&l?(0,a.jsx)("div",{className:"mb-2 mt-1 flex flex-col gap-2","data-test":"promo-messaging",children:(0,a.jsx)("div",{className:(0,v.cn)("border px-4 py-3 text-xs leading-tight"),"data-test":"promo-messaging",style:{color:n?.color,borderColor:n?.color},children:(0,a.jsx)(eT.Z,{price:l,promoText:c})})}):null}var eP=s(13439),eO=function(e){let{text:t}=e;return(0,a.jsx)("div",{className:(0,H.cn)("text-xs leading-tight text-navy-mix-700 md:leading-snug"),children:(0,a.jsx)(eP.Z,{style:!1,value:t||[]})})},eM=s(74188),eE=function(e){let{inventory:t}=e;return null},e$=s(89621),ez=function(e){let{product:t,moveRecs:s=!1}=e,l=(0,r.useRouter)(),{promoMessaging:n,smallPrint:c}=(0,eb.D)(),{selectedVariant:o,fullSelection:x}=(0,J.$h)(),{lines:m=[]}=(0,ey.iQ)(),[u,h]=(0,i.useState)(null),[f,j]=(0,i.useState)(!0),[v,b]=(0,i.useState)(void 0),C=t.variants[0];(0,i.useEffect)(()=>{Y.Z.productViewed(t)},[t]);let[S]=(0,el.ev)(n,t.tags,"pdp"),k=(0,el.oV)(c,t.tags,"pdp"),Z=t.hideSwatches||!1,_=t.breadcrumbs??[];(0,L.WI)(eg.sg,t.tags);let T=(o?.[t.gid]??C)?.price,$=(o?.[t.gid]??C)?.compareAtPrice;Number($?.amount??0)>0&&(T?.amount,$?.amount),(0,i.useEffect)(()=>{t&&(Y.Z.klaviyoTrackViewedProduct(t),Y.Z.klaviyoTrackViewedItem(t))},[t]);let z=(0,i.useRef)(null),I=(0,i.useRef)(null);return(0,i.useEffect)(()=>{(async function(){let e=await (0,eN.qX)();e?.showCta&&b("showCta"),e?.showProduct&&b("showProduct")})()},[]),(0,i.useEffect)(()=>{let e=localStorage.getItem(eg.Io);h(e?JSON.parse(e):null)},[]),(0,a.jsxs)("div",{className:"mb-16",children:[(0,a.jsxs)("div",{className:"mx-auto w-full max-w-8xl px-3 pt-3 md:px-6 md:pt-0",children:[(0,a.jsx)(ej,{product:t},`productSchema-${t.gid}`),(0,a.jsx)(y,{items:[..._,{_id:"pdp",title:`${t.vendor} ${t.productType}`}]}),(0,a.jsxs)("section",{className:"flex flex-col md:flex-row",children:[(0,a.jsx)("div",{className:"pb-2 md:w-1/2 xl:w-2/3",children:(0,a.jsx)(e_.Z,{ctlImagePosition:t.ctlImagePosition,ctlLink:v,ctlProduct:t.completeTheLook&&t.completeTheLook[0],ctlTarget:I,images:t.images,model:t.model,options:{loop:!0},productType:t.productType,showThumbs:!0,subtitle:t.title,title:(0,L.FS)(t),videoSlide:t.galleryVideo},`product-gallery-${t.gid}`)}),(0,a.jsx)("div",{className:"flex w-full flex-col gap-6 md:w-1/2 md:pl-6 xl:w-1/3",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3","data-test":"product-summary",children:[(0,eC.e)()?(0,a.jsx)("div",{className:"-mb-1",children:(0,a.jsx)(N,{})}):null,(0,a.jsxs)("div",{className:"flex justify-between",ref:z,children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)(e$.X,{as:"h1",className:"text-xl leading-tight","data-test":"product-title",variant:"heading",children:t.titleOverride?t.title:`${t.vendor} ${t.productType}`}),t.isGiftCard&&!x?.[t.gid]?null:(0,a.jsx)(M.Z,{className:"text-base",compareAtPrice:$,hasPromoMessaging:!!S,price:T})]}),(0,a.jsxs)("div",{className:"flex flex-shrink-0 flex-col items-end",children:[(0,a.jsx)("div",{className:"-mr-3 -mt-2.5 md:-mr-3.5",children:(0,a.jsx)(ek.Z,{product:t})}),!t.isGiftCard&&(0,a.jsx)(d(),{className:"mt-0.5",href:"#product-reviews",onClick:()=>j(!0),scroll:!1,children:(0,a.jsx)(E,{average:t.reviewsAverage,className:"text-tan",count:t.reviewsCount})})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(O,{tags:t.tags}),(0,a.jsx)(P,{tags:t.tags}),(0,a.jsx)(g,{isGiftCard:t.isGiftCard}),(0,a.jsx)(eE,{inventory:o?.[t.gid]?.inventory})]}),(0,a.jsx)(eL,{lines:m,price:T,promoMessaging:n,tags:t.tags}),!!k&&k?.pdp&&(0,a.jsx)(eO,{text:k.pdp}),t.swatches.length>0&&!Z&&!t.isGiftCard&&(0,a.jsx)("div",{className:"border-b border-t border-navy-mix-100 py-4",children:(0,a.jsx)(eM.Z,{flags:t.flags,hideSwatches:Z,isGiftCard:t.isGiftCard,product:t,swatches:t.swatches})}),(0,a.jsx)(eZ.Z,{hideCtas:!!(u&&Object.keys(u).length>0),product:t},`product-form-${t.gid}`)]})})]})]}),s&&(0,a.jsx)("div",{className:"-mb-8",children:(0,a.jsx)(V.Z,{containerClasses:"py-8",context:{type:"PRODUCT",location:l.asPath,data:[o?.[t.gid]?.sku||t.sku]},selector:[eg.mz]})}),t.features&&(0,a.jsx)(F,{defaultOpen:!1,title:"Features",children:(0,a.jsx)(w,{fabric:t.features?.featureSet?.fabric||"",icons:t.features?.featureSet?.icons||[],summary:t.features?.summary||[]})}),t.detailsCare&&(0,a.jsx)(F,{defaultOpen:!1,title:"Details + Care",children:(0,a.jsx)(p,{careIcons:t.detailsCare?.dcReference.careIcons,title:`${t.detailsCare?.title||(0,L.FS)(t)}`,children:(0,a.jsxs)("div",{className:"prose-sm text-gray-600 md:prose-base prose-ul:list-disc",children:[(0,a.jsx)(ev.Z,{style:!1,value:t.detailsCare?.dcReference.details||[]}),(0,a.jsxs)("p",{className:"pt-2 text-xs",children:["SKU: ",t.sku]})]})})}),t.styledWith&&!t.completeTheLook&&(0,a.jsx)(eo,{product:t.styledWith.swReference,target:I}),t.completeTheLook&&(0,a.jsx)(em,{products:t.completeTheLook,target:I},t.gid),!s&&(0,a.jsx)(V.Z,{containerClasses:"py-8",context:{type:"PRODUCT",location:l.asPath,data:[o?.[t.gid]?.sku||t.sku]},selector:[eg.mz]}),!t.isGiftCard&&(0,a.jsx)(F,{accessory:(0,a.jsx)(E,{average:t.reviewsAverage,className:"text-tan",count:t.reviewsCount}),defaultOpen:f,id:"product-reviews",title:"Reviews",children:(0,a.jsx)(ew.Z,{product:{productId:t.productId,title:t.title,slug:t.slug,image:t.images[0]}})},`product-reviews-${t.gid}-${f}`),(0,a.jsx)(V.Z,{containerClasses:"py-8",context:{type:"PRODUCT",location:l.asPath,data:[o?.[t.gid]?.sku||t.sku]},selector:["pdp-recommendations-2"]}),(0,a.jsx)(Q,{product:t,scrollTarget:z}),(0,a.jsx)(eS.Z,{})]})},eI=s(70352),eA=s(15754),eR=s(88338),eF=function(e){let{product:t}=e,s=`${(0,el.FS)(t)} ${t.title} is Out of Stock`;return(0,a.jsx)(eR.Z,{btnText:"Shop Now",btnUrl:"/",subtitle:"Oops, you are a little too late.",title:s})};let eV=e=>{let{product:t}=e,s=(0,r.useRouter)(),[l,c]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{(async function(e){let t={dyid:n.Z.get("_dyid"),session:n.Z.get("_dyjsession"),selector:["pdp-recs-position"],context:{type:eg.Op,location:window.location.pathname,data:[e]}};try{let e=await fetch(eg.eo,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(e.ok){let t=await e.json(),s=t?.choices[0];c(s.variations.length>0&&"true"===s.variations[0].payload.data.status)}}catch(e){console.error(e)}})(t.sku)},[t.sku]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eA.Z,{description:t.seo.description,imageUrl:t.images?(0,ef.uH)(t.images[0]).width(1e3).height(1e3).url():"",title:t.seo.title||`${(0,el.FS)(t)} - ${t.title}`,url:s.asPath}),(0,a.jsx)(a.Fragment,{children:!0===t.isActive?(0,a.jsx)(ez,{moveRecs:l,product:t}):(0,a.jsx)(eF,{product:t})})]})};eV.getLayout=function(e){return(0,a.jsx)(eI.Z,{children:e})};var eW=!0,eG=eV},39830:function(e){e.exports={container:"ProductStyledWith_container__TL1Kt",gallery:"ProductStyledWith_gallery__CBnD4",cta:"ProductStyledWith_cta__ckEgM",header:"ProductStyledWith_header__mw4u7",summary:"ProductStyledWith_summary___HKXC"}}},function(e){e.O(0,[9774,2455,8391,3723,3662,8559,6417,1272,115,8700,4885,9478,602,9791,2329,2105,3821,6377,8333,6496,3040,1147,2888,179],function(){return e(e.s=95159)}),_N_E=e.O()}]);