1"use strict";(self.webpackChunkbuck_mason=self.webpackChunkbuck_mason||[]).push([[9811],{6131:function(e,t,l){l.d(t,{A:function(){return st}});var n={};l.r(n),l.d(n,{chunky_title:function(){return m},constrain:function(){return d},copy:function(){return p},cta:function(){return h},cta_bold:function(){return _},ctawr:function(){return f},dovr_centbot:function(){return g},dovr_centmid:function(){return y},dovr_left50:function(){return v},dovr_right50:function(){return b},dsplit_t:function(){return E},img_title:function(){return k},imgtwr:function(){return w},movr_centbot:function(){return x},movr_centmid:function(){return N},msplit_t:function(){return $},nd_ctaLink:function(){return S},only_txt:function(){return F},over_grp:function(){return I},overlay:function(){return A},overwr:function(){return T},ovrlybtn:function(){return L},seo_title:function(){return M},title:function(){return C},title_link:function(){return H},use_bio:function(){return P},use_caslon:function(){return R},use_cond:function(){return D},use_mason:function(){return O},use_overpass:function(){return q},use_proxw:function(){return G},video:function(){return B}});var o={};l.r(o),l.d(o,{caption:function(){return Y},chunky_title:function(){return W},copy:function(){return X},cta:function(){return J},ctawr:function(){return K},img_title:function(){return Q},imgtwr:function(){return Z},nd_ctaLink:function(){return ee},ovrlybtn:function(){return te},title:function(){return le},title_link:function(){return ne},use_caslon:function(){return oe},use_cond:function(){return re},use_mason:function(){return ae},use_overpass:function(){return ce},use_proxw:function(){return se}});var r={};l.r(r),l.d(r,{arrowbtn:function(){return Ve},car_tiles:function(){return je},carou_bg:function(){return ze},carou_cont:function(){return Ue},cont:function(){return Ye},cta_link:function(){return We},desk_arrows:function(){return Xe},forw:function(){return Je},groups:function(){return Ke},infos:function(){return Qe},mob_arrow:function(){return Ze},nd_ctaLink:function(){return et},tees_groups:function(){return tt},tile:function(){return lt},wrap:function(){return nt}});var a=l(6540),c=l(1439),s=l(1459),i=l(2711);var u=e=>{let{content:t,type:l,colId:n,pstyles:o}=e;const{img_title:r,img_title_dheight:c,img_title_mheight:u}=t;let m=t.title||"";const d=t.url||t.cta_url,p=c||!1,h=u||!1;let _={};return p&&(_["--dheight"]=p),h&&(_["--mheight"]=h),a.createElement(a.Fragment,null,a.createElement("div",{className:o.htitle,imgt:n,style:_},!!(0,i.wx)(d)&&a.createElement(s.A,{href:d,className:o.htitle_link},a.createElement("img",{className:o.img_title,src:r.includes(".png")?r:(0,i.vt)(r,500),alt:m,width:200,height:50})),!(0,i.wx)(d)&&a.createElement("img",{className:o.img_title,src:r.includes(".png")?r:(0,i.vt)(r,500),alt:m,width:200,height:50})))},m="h25-overlay-module--chunky_title--2bc17",d="h25-overlay-module--constrain--b341f",p="h25-overlay-module--copy--e1c22",h="h25-overlay-module--cta--661ba",_="h25-overlay-module--cta_bold--179f2",f="h25-overlay-module--ctawr--f842e",g="h25-overlay-module--dovr_centbot--45580",y="h25-overlay-module--dovr_centmid--e5b58",v="h25-overlay-module--dovr_left50--2ccf6",b="h25-overlay-module--dovr_right50--d5b2a",E="h25-overlay-module--dsplit_t--bef4b",k="h25-overlay-module--img_title--526fd",w="h25-overlay-module--imgtwr--f9312",x="h25-overlay-module--movr_centbot--d0866",N="h25-overlay-module--movr_centmid--76dda",$="h25-overlay-module--msplit_t--8165c",S="h25-overlay-module--nd_cta-link--abdcc",F="h25-overlay-module--only_txt--2616d",I="h25-overlay-module--over_grp--71387",A="h25-overlay-module--overlay--023f3",T="h25-overlay-module--overwr--36cc7",L="h25-overlay-module--ovrlybtn--287d4",M="h25-overlay-module--seo_title--a9ad7",C="h25-overlay-module--title--fa2f5",H="h25-overlay-module--title_link--bea94",P="h25-overlay-module--use_bio--3751a",R="h25-overlay-module--use_caslon--fff11",D="h25-overlay-module--use_cond--0e931",O="h25-overlay-module--use_mason--e70b1",q="h25-overlay-module--use_overpass--89f46",G="h25-overlay-module--use_proxw--a3163",B="h25-overlay-module--video--b848b";const V=e=>{let{content:t,block:l}=e;const o=t.url||t.cta_url;let r=[C];return t.title_as_cta&&r.push(m),t.title_font&&r.push(n[`use_${t.title_font}`]),a.createElement(a.Fragment,null,l.first?a.createElement(a.Fragment,null,(0,i.wx)(o)?a.createElement("h1",{className:(0,i.oF)(r),h25t:""},a.createElement(s.A,{href:o,className:H,dangerouslySetInnerHTML:{__html:t.title}}
1)):a.createElement("h1",{className:(0,i.oF)(r),h25t:"",dangerouslySetInnerHTML:{__html:t.title}})):a.createElement(a.Fragment,null,(0,i.wx)(o)?a.createElement("div",{className:(0,i.oF)(r),h25t:""},a.createElement(s.A,{href:o,className:H,dangerouslySetInnerHTML:{__html:t.title}})):a.createElement("div",{className:(0,i.oF)(r),h25t:"",dangerouslySetInnerHTML:{__html:t.title}})))},j=e=>{let{content:t,block:l}=e;return a.createElement(a.Fragment,null,l.first?a.createElement("h1",{className:M,dangerouslySetInnerHTML:{__html:t.title}}):a.createElement("h2",{className:M,dangerouslySetInnerHTML:{__html:t.title}}))},z=e=>{let{content:t,colId:l,block:n,contents:o=[]}=e;const{setGender:r}=(0,c.DP)(),u=t.url||t.cta_url,m=e=>{r(e.replace("/?g=","")),setTimeout(()=>{var e;(e=window).scrollTo.apply(e,[0,0]);const t=document.querySelector("#header");t&&(t.style.transform="translate(0, 0%)")},20)};let d=!1;n.first&&1==o.length&&"cta"===o[0]&&(d=!0);let p=[h];return t.cta_bold&&t.cta_style&&p.push(_),t.cta_style||p.push(L),a.createElement("div",{className:(0,i.oF)([f]),h25cta:""},d?a.createElement("h1",null,u&&u.includes("/?g=")?a.createElement("button",{type:"button",className:(0,i.oF)(p),onClick:e=>{m(u)},ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):u?a.createElement(s.A,{href:u,className:(0,i.oF)(p),ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):a.createElement("div",{className:(0,i.oF)(p),ovrlybtn:t.cta_style?void 0:"true",fcta:""},a.createElement("span",null,t.cta_copy))):a.createElement(a.Fragment,null,u&&u.includes("/?g=")?a.createElement("button",{type:"button",className:(0,i.oF)(p),onClick:e=>{m(u)},ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):u?a.createElement(s.A,{href:u,className:(0,i.oF)(p),ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):a.createElement("div",{className:(0,i.oF)(p),ovrlybtn:t.cta_style?void 0:"true",fcta:""},a.createElement("span",null,t.cta_copy))))};var U=e=>{let{content:t,colId:l,block:o,onlyTxt:r}=e;const{isMobile:s}=(0,c.DP)(),{0:m,1:h}=(0,a.useState)(!1),{0:f,1:k}=(0,a.useState)(0),{0:S,1:L}=(0,a.useState)(0),{0:M,1:C}=(0,a.useState)({}),H=(0,a.useRef)(null),{desk_cont_align:P,mobi_cont_align:R,desk_text_align:D,mobi_text_align:O,desk_valign:q,mobi_valign:G,desk_ovr_off:B,mobi_ovr_off:U}=t,Y="center"!==P&&P,W=(e,t)=>{if(!e)return"0px";let l=parseFloat(e)/100;const n="bottom"===t?e.replace("-",""):e;return e.includes("%")?`calc(var(--ovrh) * ${l})`:n};let X=[A,`ovr${l}`];t.cta_bold&&X.push(_),Y&&X.push("left"===Y?v:b),"bottom"!==q||t.dsplit_t||X.push(g),"bottom"!==G||t.msplit_t||X.push(x),"h25_hero"===o.type&&t.cont_constrain&&X.push(d),r&&X.push(F),t.dsplit_t&&X.push(E),t.msplit_t&&X.push($),"center"===P&&"center"===q&&X.push(y),"center"===R&&"center"===G&&X.push(N);let J=`\n ${`[h25ovr="${l}"]`} {\n --dtexta: ${D||"center"};\n --mtexta: ${O||"center"};\n --ovr_doff: ${W(B,q)};\n --ovr_moff: ${W(U,G)};\n }\n `;const K=()=>{let e=[];return t.cont_order.forEach(l=>{"title"===l&&((0,i.wx)(t.title)||(0,i.wx)(t.img_title))&&e.push((0,i.wx)(t.img_title)?"img_title":"title"),"copy"===l&&(0,i.wx)(t.copy)&&e.push("copy"),"cta"===l&&(0,i.wx)(t.cta_copy)&&e.push("cta")}),e};let Q=[p];t.copy_font&&Q.push(n[`use_${t.copy_font}`]);return(0,a.useEffect)(()=>{h(!0)},[]),(0,a.useEffect)(()=>{if(!m)return;const e=()=>{if(!H.current)return;let e=H.current.getBoundingClientRect().height;o.first&&(0===e||e>window.innerHeight-30)&&(e=window.innerHeight-30),k(t=>(e!==t&&L(t),e))};return window.addEventListener("resize",e,{passive:!0}),e(),setTimeout(()=>{e()},100),()=>{window.removeEventListener("resize",e)}},[m]),(0,a.useEffect)(()=>{0!==f&&(()=>{let e=Math.abs((f-S)/S);e===1/0&&(e=0),s&&e>0&&e<.03||C({"--ovrh":`${f}px`})})()},[f]),a.createElement("div",{className:T,h25ovrwr:l},(0,i.wx)(J)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:J}}),a.createElement("div",{className:(0,i.oF)(X),h25ovr:l,style:M,ref:H},a.createElement("div",{className:I,h25ovrc:l},K().map((e,r)=>a.createElement(a.Fragment,{key:`${l}ovc${r}`},"title"===e&&!t.seo_title&&a.createElement(V,{content:t,colId:l,block:o}),"title"===e&&t.seo_title&&a.createElement(j,{content:t,colId:l,block:o}),"img_title"===e&&a.createElement(a.Fragment,null,o.first?a.createElement("h1",{className:w,h25itwr:l},a.createElement(u,{content:t,type:"overlay",colId:l,pstyles:n})):a.createElement("div",{className:w,h25itwr:l},a.createElement(u,{content:t,type:"overlay",colId:l,pstyles:n}))),"copy"===e&&a.createElement("div",{className:(0,i.oF)(Q),h25copy:""},t.copy),"cta"===e&&a.createElement(z,{content:t,colId:l,block:o,contents:K()}))))))},Y="h25-caption-module--caption--d1a8c",W="h25-caption-module--chunky_title--33fb9",X="h25-caption-module--copy--149e9",J="h25-caption-module--cta--f3926",K="h25-caption-module--ctawr--0156e",Q="h25-caption-module--img_title--652da",Z="h25-caption-module--imgtwr--3120a",ee="h25-caption-module--nd_cta-link--f6a2e",te="h25-caption-module--ovrlybtn--a19ce",le="h25-caption-module--title--0d734",ne="h25-caption-module--title_link--6073b",oe="h25-caption-module--use_caslon--aa1d7",re="h25-caption-module--use_cond--0ec43",ae="h25-caption-module--use_mason--f1cd2",ce="h25-caption-module--use_overpass--a1116",
1se="h25-caption-module--use_proxw--01c28";const ie=e=>{let{content:t,block:l}=e;const n=t.url||t.cta_url;let r=[le];return t.title_as_cta&&r.push(W),t.title_font&&r.push(o[`use_${t.title_font}`]),a.createElement(a.Fragment,null,l.first?a.createElement(a.Fragment,null,(0,i.wx)(n)?a.createElement("h1",{className:(0,i.oF)(r),h25t:""},a.createElement(s.A,{href:n,className:ne,dangerouslySetInnerHTML:{__html:t.title}})):a.createElement("h1",{className:(0,i.oF)(r),h25t:"",dangerouslySetInnerHTML:{__html:t.title}})):a.createElement(a.Fragment,null,(0,i.wx)(n)?a.createElement("div",{className:le,h25t:""},a.createElement(s.A,{href:n,className:ne,dangerouslySetInnerHTML:{__html:t.title}})):a.createElement("div",{className:(0,i.oF)(r),h25t:"",dangerouslySetInnerHTML:{__html:t.title}})))},ue=e=>{let{content:t,colId:l}=e;const{setGender:n}=(0,c.DP)(),o=t.url||t.cta_url;let r=[J];return t.cta_style||r.push(te),a.createElement("div",{className:(0,i.oF)([K]),h25cta:""},o&&o.includes("/?g=")?a.createElement("button",{type:"button",className:r.join(" "),onClick:e=>{(e=>{n(e.replace("/?g=","")),setTimeout(()=>{var e;(e=window).scrollTo.apply(e,[0,0]);const t=document.querySelector("#header");t&&(t.style.transform="translate(0, 0%)")},20)})(o)},ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):o?a.createElement(s.A,{href:o,className:r.join(" "),ovrlybtn:t.cta_style?void 0:"true"},a.createElement("span",null,t.cta_copy)):a.createElement("div",{className:r.join(" "),ovrlybtn:t.cta_style?void 0:"true",fcta:""},a.createElement("span",null,t.cta_copy)))};var me=e=>{let{content:t,colId:l,block:n}=e;let r=[X];t.copy_font&&r.push(o[`use_${t.copy_font}`]);const c=`[h25cap="${l}"]`;let s=`\n --dtexta: ${t.desk_text_align||"left"};\n --mtexta: ${t.mobi_text_align||"left"};\n --dpad: 0;\n --mpad: 0;\n `;const m="10px"===n.desk_margin;"0px"!==n.desk_padding&&"0px"!==n.desk_gutter||(s+=`--dpad: ${m?"0 20px 30px":"0 20px"}; `);const d="3px"===n.mobi_margin;return"0px"!==n.mobi_padding&&"0px"!==n.mobi_gutter||(s+=`--mpad: ${d?"0 10px 30px":"0 10px"}; `),(0,i.wx)(s)&&(s=`${c} {${s}}`),(0,a.useEffect)(()=>{},[]),a.createElement("div",{className:Y,h25cap:l},(0,i.wx)(s)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:s}}),(()=>{let e=[];return t.cont_order.forEach(l=>{"title"===l&&((0,i.wx)(t.title)||(0,i.wx)(t.img_title))&&e.push((0,i.wx)(t.img_title)?"img_title":"title"),"copy"===l&&(0,i.wx)(t.copy)&&e.push("copy"),"cta"===l&&(0,i.wx)(t.cta_copy)&&e.push("cta")}),e})().map((e,c)=>a.createElement(a.Fragment,{key:`${l}ovc${c}`},"title"===e&&a.createElement(ie,{content:t,colId:l,block:n}),"img_title"===e&&a.createElement(a.Fragment,null,n.first?a.createElement("h1",{className:Z},a.createElement(u,{content:t,type:"overlay",colId:l,pstyles:o})):a.createElement("div",{className:Z},a.createElement(u,{content:t,type:"overlay",colId:l,pstyles:o}))),"copy"===e&&a.createElement("div",{className:(0,i.oF)(r),h25copy:""},t.copy),"cta"===e&&a.createElement(ue,{content:t,colId:l}))))},de=l(188),pe=l(3030),he=l(4614),_e="h25-shop-look-module--arrows--0107b",fe="h25-shop-look-module--image--c7faf",ge="h25-shop-look-module--img--033d3",ye="h25-shop-look-module--prod--b8d15",ve="h25-shop-look-module--vid--c7b25",be="h25-shop-look-module--video--aa66b";var Ee=e=>{let{content:t,colId:l,block:n}=e;const{isMobile:o,isTouches:r}=(0,c.DP)(),{0:u,1:m}=(0,a.useState)(null),{0:d,1:p}=(0,a.useState)(null),{0:h,1:_}=(0,a.useState)(null),{0:f,1:g}=(0,a.useState)(null),{0:y,1:v}=(0,a.useState)(0),{0:b,1:E}=(0,a.useState)("100%"),{0:k,1:w}=(0,a.useState)(!1),x=e=>{let t=e.media;return!t&&e.image&&(t={type:"IMAGE",src:e.image}),t},N=e=>e.image&&!e.media?"-50%":`${e.offset}%`,$=e=>({autoplay:!0,controls:!1,children:["mediaLoader","posterImage"],setPlaysinline:!0,playsinline:!0,poster:e.src?(0,i.vt)(e.src,700):null,muted:!0,loop:!0,sources:e.sources.filter(e=>"application/x-mpegURL"!==e.mimeType).map(e=>({src:e.url,type:e.mimeType}))}),S=e=>{let l=y+e;l<0||(l>t.products.length-1&&(l=0),A(l,e))},F=e=>{_(x(e)),m(e)},I=e=>{g(x(e)),p(e)},A=(e,l)=>{const n=t.products[e];I(n),E(l>0?"100%":"-100%"),v(e),setTimeout(()=>{w(!0)},50),setTimeout(()=>{E("0")},70),setTimeout(()=>{T(n)},230)},T=e=>{F(e),setTimeout(()=>{w(!1)},100),setTimeout(()=>{E("100%");let e=y+1;e>t.products.length-1&&(e=0),I(t.products[e])},110)},L=(0,de.uh)({onSwiping:e=>{},onSwipedLeft:e=>{r&&S(1)},onSwipedRight:e=>{r&&S(-1)},preventScrollOnSwipe:!0,trackTouch:!0,trackMouse:!0,delta:{up:1e3,down:1e3}});return(0,a.useEffect)(()=>{t.products.length<1||(F(t.products[0]),t.products.length>1&&I(t.products[1]))},[]),a.createElement("div",{className:"h25-shop-look-module--shoplook--07394",h25shl:""},a.createElement("div",{className:"h25-shop-look-module--cont--a5546"},a.createElement("div",{className:"h25-shop-look-module--prodswr--9a98b"},a.createElement("div",Object.assign({className:"h25-shop-look-module--products--18fdc"},L),u&&a.createElement("div",{className:ye},a.createElement(s.A,{href:`/products/${u.handle}`,className:fe,"aria-label":u.handle.replaceAll("-"," ")},h&&"IMAGE"===h.type&&a.createElement("img",{src:(0,i.vt)(h.src,o?1e3:1200),alt:u.alt||u.handle.replaceAll("-"," "),className:ge,width:"643",height:"565",decode:"async",style:{"--offset":N(u)}}),h&&"VIDEO"===h.type&&a.createElement("div",{className:be,style:{"--offset":N(u)}},a.createElement(pe.A,{options:$(h),vidclasses:ve,off:!1})))),d&&a.createElement("div",{className:(0,i.oF)([ye,"h25-shop-look-module--next_prod--4a1cf",k?"h25-shop-look-module--ani--0f400":""]),style:{"--trans":b}},a.createElement(s.A,{href:`/products/${d.handle}`,className:fe,"aria-label":d.handle.replaceAll("-"," ")},f&&"IMAGE"===f.type&&a.createElement("img",{src:(0,i.vt)(f.src,o?1e3:1200),alt:f.alt||d.handle.replaceAll("-"," "),className:ge,width:"643",height:"565",decode:"async",style:{"--offset":N(d)}}),f&&"VIDEO"===f.type&&a.createElement("div",{className:be,style:{"--offset":N(d)}},a.createElement(pe.A,{options:$(f),vidclasses:ve,off:!1}))))),t.products.length>1&&a.createElement(a.Fragment,null,a.createElement("button",{type:"button",className:(0,i.oF)([_e]),onClick:e=>S(-1),"aria-label":"Show previous image",disabled:0===y},a.createElement(he.l,null)),a.createElement("button",{type:"button",className:(0,i.oF)([_e,"h25-shop-look-module--arrow_right--a120b"]),onClick:e=>S(1),"aria-label":"Show next image","aria-hidden":"false"},a.createElement(he.Y,null)))),a.createElement("div",{className:"h25-shop-look-module--copy--baca2"},a.createElement("div",{className:"h25-shop-look-module--title--b845a"},(0,i.wx)(t.shoplook_title.trim())?t.shoplook_title:"get the look"),a.createElement("div",{className:"h25-shop-look-module--plwr--ed7be"},a.createElement("div",{className:"h25-shop-look-module--pl_name--ce542"},u&&a.createElement(s.A,{href:`/products/${u.handle}`,className:"h25-shop-look-module--pl_link--0c642","aria-label":u.handle.replaceAll("-"," ")},u.pl_name)))),o&&a.createElement("div",{className:"h25-shop-look-module--dots--0bc2a"},t.products.map((e,t)=>a.createElement("div",{key:`${l}_dot_${t}`,className:"h25-shop-look-module--dot--a4f53","aria-current":(t===y).toString()})))))},ke=l(7471),we=l(1633),xe="h25-col-module--video--93d4e";const Ne=e=>{let{content:t,type:l,colId:n}=e;const{setGender:o}=(0,c.DP)(),{vid_controls:r}=t,u=(0,i.wx)(t.url)?t.url:t.img_url,{0:m,1:d}=(0,a.useState)(null),p=e=>(e||"").replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),h=()=>{const e=p(t.title)||p(t.cta_copy)||p(t.img_title);if(e)return e;if((u||"").includes("g=women"))return"Shop Women";if((u||"").includes("g=men"))return"Shop Men";
1return((u||"").split("?")[0].split("/").filter(Boolean).pop()||"").replace(/-/g," ").trim()||"Shop now"};let _=t.vid_desk||!1,f=t.vid_mobi||!1;_&&!f&&(f=_);let g=t.desk_image||!1,y=t.desk_image_alt||"",v=t.mobi_image||!1,b=t.mobi_image_alt||"";g&&!v&&(v=g,b=y);let E=(0,i.wx)(u);_&&r&&(E=!1);const k=(_||f)&&!r,w=Se(t,n);return(0,a.useEffect)(()=>{d({desk_image:g,desk_image_alt:y,mobi_image:v,mobi_image_alt:b,vid_desk:_,vid_mobi:f,vid_controls:r})},[]),a.createElement(a.Fragment,null,(0,i.wx)(w)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:w}}),a.createElement("div",{className:(0,i.oF)(["h25-col-module--himage--ec4cf",k?"h25-col-module--vidnoc--74907":""]),himg:""},m&&E&&a.createElement(a.Fragment,null,u.includes("/?g=")?a.createElement("button",{type:"button","aria-label":h(),onClick:e=>{(e=>{o(e.replace("/?g=","")),setTimeout(()=>{var e;(e=window).scrollTo.apply(e,[0,0]);const t=document.querySelector("#header");t&&(t.style.transform="translate(0, 0%)")},20)})(u)}},a.createElement($e,{media:m,type:l})):a.createElement(s.A,{href:u,"aria-label":h()},a.createElement($e,{media:m,type:l}))),m&&!E&&a.createElement($e,{media:m,type:l})))},$e=e=>{let{media:t,type:l}=e;const{pageLoad:n,isMobile:o}=(0,c.DP)(),{desk_image:r,mobi_image:s,vid_desk:u,vid_mobi:m,vid_controls:d,desk_image_alt:p,mobi_image_alt:h}=t,{0:_,1:f}=(0,a.useState)(null),g=!(!r&&!s),y=!(!u&&!m),v=()=>{if(y){const e=o?m:u;return null!=e&&e.src?(0,i.vt)(e.src,1e3):null}return o?(0,i.vt)(s,n?1100:10):"hero"===l?(0,i.vt)(r,n?2200:10):(0,i.vt)(r,n?1200:10)};return(0,a.useEffect)(()=>{y&&n&&f(o?m:u)},[n,o,y,u,m]),a.createElement(a.Fragment,null,(g&&!y||y&&!!v())&&a.createElement("img",{className:"h25-col-module--himg--87688",src:v(),alt:o?h:p,width:"hero"===l?1100:600,height:"hero"===l?800:740}),y&&_&&d?a.createElement(we.A,{handle:null,videoObj:_,par_styles:`${xe}`,loopAuto:!0,fromHome:!0}):y&&_?a.createElement(ke.A,{handle:null,videoObj:_,par_styles:xe,fromHome:!0}):a.createElement(a.Fragment,null))},Se=(e,t)=>{var l,n,o,r,a,c;let s=(null==e||null===(l=e.desk_ratio)||void 0===l?void 0:l.ratio)||!1;e.vid_desk&&(s=(null===(n=e.vid_desk)||void 0===n||null===(o=n.size)||void 0===o?void 0:o.ratio)||!1);let i=(null==e||null===(r=e.mobi_ratio)||void 0===r?void 0:r.ratio)||!1;e.vid_mobi&&(i=(null===(a=e.vid_mobi)||void 0===a||null===(c=a.size)||void 0===c?void 0:c.ratio)||!1);let u="";const m=`[h25cid="${t}"] [himg]`;return s&&(u+=`\n @media only screen and (min-width: 820px) {\n ${m} {\n aspect-ratio: ${s} auto;\n }\n ${m} figure {\n aspect-ratio: ${s} auto;\n }\n }\n `),i&&(u+=`\n @media only screen and (max-width: 819px) {\n ${m} {\n aspect-ratio: ${i} auto;\n }\n ${m} figure {\n aspect-ratio: ${i} auto;\n }\n }\n `),u};var Fe=e=>{let{content:t,type:l,colId:n,block:o}=e;const r=(0,i.wx)(t.title)||(0,i.wx)(t.copy)||(0,i.wx)(t.cta_copy)||(0,i.wx)(t.img_title),c=(0,i.wx)(t.desk_image)||(0,i.wx)(t.mobi_image)||(0,i.wx)(t.vid_desk)||(0,i.wx)(t.vid_mobi),s=r&&!c;let u=`\n ${`[h25cid="${n}"]`} {\n --deskc: ${t.desk_texthex};\n --mobic: ${t.mobi_texthex};\n }\n `;return a.createElement("div",{className:(0,i.oF)(["h25-col-module--colwr--0f039",s?"h25-col-module--only_txt--f637f":""]),h25cid:n},(0,i.wx)(u)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:u}}),(0,i.wx)(t.custom_css)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:t.custom_css}}),"imgvid"===t.col_type?a.createElement(a.Fragment,null,a.createElement("div",{className:"h25-col-module--cont--1070c"},c&&a.createElement(Ne,{content:t,type:l,colId:n}),"overlay"===t.cont_pos&&r&&a.createElement(U,{content:t,colId:n,block:o,onlyTxt:s})),"caption"===t.cont_pos&&r&&a.createElement(me,{content:t,colId:n,block:o})):a.createElement(Ee,{content:t,colId:n,block:o}))},Ie=l(2899),Ae=l(7319),Te=l(6852),Le=(l(1249),"h25-tile-module--images--691d3"),Me="h25-tile-module--img_2--618a7",Ce="h25-tile-module--img_link--d79b4",He="h25-tile-module--info--a552f",Pe="h25-tile-module--infos--0247e",Re="h25-tile-module--price--b2257",De="h25-tile-module--tile--a83e6",Oe="h25-tile-module--tile_title--c7829",qe="h25-tile-module--tile_vid--6f46f";var Ge=e=>{let{product:t,pindex:l,pstyles:n={}}=e;const{isMobile:o}=(0,c.DP)(),r=(0,Ie.A)(99999===t.pl_pima||99998===t.pl_pima?null:t.shop_id),u=e=>e.find(e=>e.flat)||e.find(e=>e.face)||e.find(e=>"IMAGE"===e.type),m=e=>({autoplay:!0,controls:!1,children:["mediaLoader","posterImage"],setPlaysinline:!0,playsinline:!0,muted:!0,loop:!0,sources:e.sources.filter(e=>"application/x-mpegURL"!==e.mimeType).map(e=>({src:e.url,type:e.mimeType}))});return a.createElement(a.Fragment,null,99998===t.pl_pima||t.is_vintage?t.is_vintage?a.createElement(a.Fragment,null,a.createElement("meta",{itemProp:"name",content:t.title}),a.createElement("meta",{itemProp:"url",content:`https://www.buckmason.com/products/${t.handle}`}),u(t.media)&&a.createElement("meta",{itemProp:"image",content:(0,i.vt)(u(t.media).src,1400)}),a.createElement("div",{className:(0,i.oF)([Le])},a.createElement(s.A,{href:`/products/${t.handle}`,className:(0,i.oF)([Ce]),"aria-label":t.title},t.media.slice(0,2).map((e,t)=>a.createElement(a.Fragment,{key:e.image||e.src},"VIDEO"===(null==e?void 0:e.type)?a.createElement(pe.A,{options:m(e),vidclasses:(0,i.oF)([qe,0===t?"":Me]),off:!1}):a.createElement("img",{key:e.image,src:(0,i.vt)(e.src,o?1e3:1200),alt:e.alt||"",className:0===t?void 0:Me,width:"300 ",height:"400",decode:"async"}))))),a.createElement("div",{className:(0,i.oF)([Pe,n.infos])},a.createElement("div",{className:He},a.createElement(s.A,{href:`/products/${t.handle}`,className:Oe},(0,i.wx)(t.pl_name)?t.pl_name:t.title),a.createElement("div",{className:Re},(()=>{const e=(l=t.first_product_price,(n=t.first_full_price)>l?n:l);var l,n;return 0===e||!t.available?"SOLD":r?(0,Ae.$)(r.amount,r.currencyCode):`$${e}`})())),a.createElement("div",{className:"h25-tile-module--vintage--c7db0"},"Vintage"))):a.createElement(Te.A,{product:t,tile_ind:l,isInView:!0,parStyles:(0,i.oF)([Le,"h25-tile-module--imagespk--85387"]),forceSingle:!0}):a.createElement(a.Fragment,null,a.createElement("meta",{itemProp:"name",content:t.title}),a.createElement("meta",{itemProp:"url",content:`https://www.buckmason.com/products/${t.handle}`}),u(t.media)&&a.createElement("meta",{itemProp:"image",content:(0,i.vt)(u(t.media).src,1400)}),a.createElement("div",{className:(0,i.oF)([Le])},a.createElement(s.A,{href:`/products/${t.handle}`,className:(0,i.oF)([Ce]),"aria-label":t.title},t.media.slice(0,2).map((e,t)=>a.createElement(a.Fragment,{key:`${e.image||e.src}_media${t}`},"VIDEO"===(null==e?void 0:e.type)?a.createElement(pe.A,{options:m(e),vidclasses:(0,i.oF)([qe,0===t?"":Me]),off:!1}):a.createElement("img",{key:e.image,src:(0,i.vt)(e.src,o?1e3:1200),alt:e.alt||"",className:0===t?void 0:Me,width:"300 ",height:"400",decode:"async"})))),t.altcuts&&a.createElement("div",{className:"h25-tile-module--alts--4d0f4"},t.altcuts.opts.length," ",t.altcuts.type,t.altcuts.opts.length>
11?"s":"")),a.createElement("div",{className:(0,i.oF)([Pe,n.infos])},a.createElement("div",{className:He},a.createElement(s.A,{href:`/products/${t.handle}`,className:Oe},(0,i.wx)(t.pl_name)?t.pl_name:t.title),a.createElement("div",{className:Re},r?(0,Ae.$)(r.amount,r.currencyCode):`$${t.price}`)))))};var Be=e=>{let{block:t}=e,l=`\n --drow: ${"10px"===t.desk_gutter?"30px":"40px"};\n --mrow: 20px;\n `;"0px"!==t.desk_padding&&"0px"!==t.desk_gutter||(l+="--ptitle_dpad: 20px;"),"0px"!==t.mobi_padding&&"0px"!==t.mobi_gutter||(l+="--ptitle_mpad: 20px;");const n=`[mid="${t.id}"]`;return l=`${n} {${l}}`,t.products.length<4&&t.products.length>1&&(l+=`${n} [htiles] {grid-template-columns: repeat(${t.products.length}, 1fr);}`),a.createElement("div",{className:"h25-products-module--cont--49269"},(0,i.wx)(l)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:l}}),a.createElement("div",{className:"h25-products-module--tiles--aa211",htiles:""},t.products.map((e,t)=>a.createElement("div",{key:e.shop_id,className:(0,i.oF)([De])},a.createElement(Ge,{product:e,pindex:t})))))},Ve="h25-carousel-module--arrowbtn--0a053",je="h25-carousel-module--car_tiles--fb78e",ze="h25-carousel-module--carou_bg--dfa0b",Ue="h25-carousel-module--carou_cont--319bd",Ye="h25-carousel-module--cont--44f1f",We="h25-carousel-module--cta_link--9e9cf",Xe="h25-carousel-module--desk_arrows--26f79",Je="h25-carousel-module--forw--3e5b7",Ke="h25-carousel-module--groups--4ed79",Qe="h25-carousel-module--infos--e7fca",Ze="h25-carousel-module--mob_arrow--e3ab1",et="h25-carousel-module--nd_cta-link--9346d",tt="h25-carousel-module--tees_groups--9bf8b",lt="h25-carousel-module--tile--b267a",nt="h25-carousel-module--wrap--ae513";var ot=e=>{let{block:t,index:l,is_blog:n=!0}=e;const{isMobile:o,customer:u}=(0,c.DP)(),m=t.hasOwnProperty("settings")?t.settings:t;let d=m.products||[];d.length&&(d=d.filter(e=>e.hasOwnProperty("media")&&e.media.length>0));const{0:p,1:h}=(0,a.useState)(!1),{0:_,1:f}=(0,a.useState)(0),{0:g,1:y}=(0,a.useState)(!1),{0:v,1:b}=(0,a.useState)(!1),{0:E,1:k}=(0,a.useState)(!0),w=(0,a.useRef)(null),x=(0,a.useRef)(null),N=d.length,$=()=>{y(!0);const e=F();let t=e[0]-1-(o?0:e.length);t<0&&(t=0),f(t)},S=()=>{y(!0);const e=F();let t;e.length?(t=e[e.length-1]+(o?0:1),t+e.length>=N&&(t=N-1),1===e.length&&(t=e[0]+1)):t=N,f(t)},F=()=>{const e=w.current,t=e.getBoundingClientRect(),l=Array.from(e.querySelectorAll(`.${lt}`));let n=[];return l.forEach((e,l)=>
1{const r=e.getBoundingClientRect(),a=r.left-t.left,c=r.left+r.width-t.left-(o?13:0),s=1.9*t.width+13;o?a>-1*(t.width-13)&&c<=s&&n.push(l):a>=0&&c<t.width&&n.push(l)}),n},I=(0,a.useCallback)(()=>{const e=w.current,t=e.getBoundingClientRect(),l=e.scrollLeft,n=Array.from(e.querySelectorAll(`.${lt}`))[_].getBoundingClientRect().left+(l-t.left);e.scrollTo({top:0,left:n,behavior:"smooth"}),setTimeout(()=>{y(!1)},250)},[_]);let A=null;const T=()=>{g||(y(!0),A=null,(()=>{const e=w.current,t=e.getBoundingClientRect(),l=Array.from(e.querySelectorAll(`.${lt}`));let n=null,o=0;l.forEach((e,l)=>{const r=e.getBoundingClientRect(),a=r.left-t.left,c=r.left+r.width-t.left,s=t.width;if(a<=0&&c>=0&&c<s||a>=0&&c<2*s){const e=s-13-Math.abs(a);e>o&&(o=e,n=l)}}),f(n),setTimeout(()=>{y(!1)},250)})())},L=()=>{const e=w.current,t=Math.floor(e.scrollWidth-e.getBoundingClientRect().width)-1,l=e.scrollLeft>=1;l!==v&&b(l);const n=e.scrollLeft<=t;n!==E&&k(n),o&&(null!==A&&clearTimeout(A),g||(A=setTimeout(T,200)))};let M="";if("0px"!==t.desk_padding&&"0px"!==t.desk_gutter||(M+="--ptitle_dpad: 20px;"),"0px"!==t.mobi_padding&&"0px"!==t.mobi_gutter||(M+="--ptitle_mpad: 20px;"),(0,i.wx)(M)){M=`${`[mid="${t.id}"]`} {${M}}`}return(0,a.useEffect)(()=>{h(!0)},[]),(0,a.useEffect)(()=>{x.current&&I()},[_,x,I]),(0,a.useEffect)(()=>{const e=w.current;if(e)return e.addEventListener("scroll",L,{passive:!0}),()=>{e.removeEventListener("scroll",L)}}),a.createElement("div",{className:nt},(0,i.wx)(M)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:M}}),(o?N>1:N>4)&&a.createElement("div",{className:Xe},a.createElement("button",{type:"button",className:Ve,disabled:!v,"aria-label":"Scroll Back",onClick:e=>{$()}},a.createElement(he.l,{icon_classes:""})),a.createElement("button",{type:"button",className:(0,i.oF)([Ve,Je]),disabled:!E,"aria-label":"Scroll Forward",onClick:e=>{S()}},a.createElement(he.Y,{icon_classes:""}))),a.createElement("div",{className:tt,ref:w},a.createElement("div",{className:(0,i.oF)([Ke,je])},d&&d.map((e,t)=>a.createElement("div",{key:e.shop_id,className:(0,i.oF)([lt,De]),ref:_===t?x:void 0},a.createElement(Ge,{product:e,pindex:t,pstyles:r}))),(0,i.wx)(m.carousel_cta)&&a.createElement(s.A,{href:`/collections/${m.link_handle}`,className:(0,i.oF)([lt,De])},a.createElement("div",{className:ze},a.createElement("div",{className:Ue},m.carousel_link_count>0&&a.createElement("p",null,"View ",m.carousel_link_count," more product",m.carousel_link_count>1?"s":""),a.createElement("div",{className:We},m.carousel_cta||"EXPLORE THE COLLECTION")))))),a.createElement("button",{type:"button",className:(0,i.oF)([Ve,Ze]),"aria-label":"Scroll Back",disabled:!v,onClick:e=>{$()}},a.createElement(he.l,{icon_classes:""})),a.createElement("button",{type:"button",className:(0,i.oF)([Ve,Ze,Je]),"aria-label":"Scroll Forward",disabled:!E,onClick:e=>{S()}},a.createElement(he.Y,{icon_classes:""})))},rt="h25-block-module--h25_productswr--412d6";const at=e=>{let{block:t,bclass:l,index:n,children:o}=e;const{isMobile:r}=(0,c.DP)(),s=(0,a.useRef)(null);let u=`\n --dmarg: ${t.first?0:t.desk_margin} auto 0;\n --mmarg: ${t.first?0:t.mobi_margin} 0 0;\n --dpad: ${t.desk_bpadding} ${t.desk_padding};\n --mpad: ${t.mobi_bpadding} ${t.mobi_padding};\n --dgut: ${t.desk_gutter||0};\n --mgut: ${t.mobi_gutter||0};\n --mrow: ${t.mobi_colgap};\n --tbord: ${t.border_top?"1px solid #dddad0":0};\n --bbord: ${t.border_bottom?"1px solid #dddad0":0};\n `;"h25_cols"===t.type&&(u+=`--blkgrid: repeat(${t.cols.length}, 1fr); `),u+=`--title_dpad: ${"0px"===t.desk_padding?"0 40px":"0"};`,u+=`--title_mpad: ${"0px"===t.mobi_padding?"0 20px":"0"};`,3835===t.id&&(u+="--dpad: 100px 200px;",u+="--dgut: 10px;");let m=`${`[mid="${t.id}"]`} {${u}}`,d=["h25-block-module--block--b16d5",l];return t.first&&d.push("h25-block-module--first--6d740"),t.mobi_grid&&d.push("h25-block-module--mobi_grid--9a525"),t.hide_desk&&d.push("h25-block-module--hide_desk--713c3"),t.hide_mobi&&d.push("h25-block-module--hide_mobi--5349e"),"h25_products"===t.type&&"0px"===t.desk_padding&&d.push("h25-block-module--h25prods_
1wide--90431"),(0,a.useEffect)(()=>{if(!t.first)return;if("h25_hero"!==t.type)return;if(!s.current)return;const e=s.current;return setTimeout(()=>{if(!e)return;e.style.minHeight=null;const l=window.getComputedStyle(e);let n=!1;"none"!==l.display&&"hidden"!==l.visibility&&"0"!==l.opacity&&t.first&&(n=document.querySelector("#header"),n&&(n.setAttribute("full","true"),t.mob_fullb&&n.setAttribute("mfull","true"))),r&&!t.mob_fullb&&(e&&e.removeAttribute("full-block"),document.querySelector("#header")&&document.querySelector("#header").removeAttribute("full"))},100),setTimeout(()=>{e&&(e.style.minHeight=null)},400),()=>{document.querySelector("#header")&&(document.querySelector("#header").removeAttribute("full"),document.querySelector("#header").removeAttribute("mfull"))}},[]),a.createElement("div",{className:(0,i.oF)(d),om:t.only_mobi?"":void 0,g:t.gender,"mok-block":n,mid:t.id,ref:s,"full-block":t.first&&"h25_hero"===t.type?"":void 0},(0,i.wx)(m)&&a.createElement("style",{dangerouslySetInnerHTML:{__html:m}}),o)};var ct=e=>{let{block:t,index:l,preview:n=!1}=e;const o={h25_hero:"h25-block-module--blk_hero--04305",h25_cols:"h25-block-module--blk_cols--88e87",h25_products:"h25-block-module--blk_products--3ed65"},r=e=>`${t.id}_c${e}`;let c;return"h25_products"===t.type&&t.link_handle&&(c=`/collections/${t.link_handle}`),"h25_cols"===t.type&&(0,i.wx)(t.url)&&(c=t.url),a.createElement(at,{block:t,bclass:o[t.type],index:l},["h25_cols","h25_products"].includes(t.type)&&(0,i.wx)(t.title)&&a.createElement("div",{className:"h25-block-module--title--de78d"},c?a.createElement(s.A,{href:c,className:(0,i.oF)(["h25-block-module--title_link--d2b7a"]),"aria-label":c},t.title):a.createElement(a.Fragment,null,t.title)),"h25_hero"===t.type&&a.createElement(Fe,{content:t.cols[0],type:"hero",colId:r(0),block:t}),"h25_cols"===t.type&&t.cols.map((e,l)=>a.createElement(Fe,{key:r(l),content:e,type:t.cols.length>2&&t.mobi_grid?"lookbook":"col",colId:r(l),block:t})),"h25_products"===t.type&&!t.carousel&&a.createElement("div",{className:rt},a.createElement(Be,{block:t})),"h25_products"===t.type&&t.carousel&&a.createElement("div",{className:rt},a.createElement(ot,{block:t})))};var st=e=>{let{data:t}=e;const{gender:l}=(0,c.DP)(),n=(0,a.useRef)(null);t.filter(e=>"full_bleed"===e.type).length>1&&t.forEach(e=>{"full_bleed"===e.type&&(e.multi=!0)});const o=function(e){if(void 0===e&&(e=!1),e){let e=structuredClone(t);return e.forEach(e=>e.first=!1),e[0].first=!0,e}const n=(null==l?void 0:l.pgGender)||"men";return t.filter(e=>e.gender===n)},{0:r,1:s}=(0,a.useState)((null==l?void 0:l.pgGender)||"men"),{0:i,1:u}=(0,a.useState)(()=>o(!0)),m=()=>{if("undefined"==typeof window)return;if(null===l)return;const e=new URLSearchParams(window.location.search);e.set("g",(null==l?void 0:l.pgGender)||"men"),window.history.replaceState(null,null,`?${e.toString()}`)};return i.forEach((e,t)=>{"h25_products"===e.type&&i[t-1]&&(i[t-1].before_prods=!0)}),(0,a.useEffect)(()=>{const e=o();return u(e),m(),()=>{var e;null===(e=document.querySelector("#header"))||void 0===e||e.removeAttribute("full")}},[]),(0,a.useEffect)(()=>{if(r===l.pgGender)return;const e=o();u(e),m(),s((null==l?void 0:l.pgGender)||"men")},[l.pgGender]),a.createElement("div",{className:"home-module--homewr--85a02",style:{minHeight:"90vh"},ref:n},t&&t.filter(e=>!!e.custom_css).map(e=>a.createElement("style",{key:`css_${e.id}`,dangerouslySetInnerHTML:{__html:e.custom_css}})),i.map((e,t)=>e.type.includes("h25_")?a.createElement(ct,{key:`block${e.id}$`,block:e,index:t}):null))}}}]); 2//# sourceMappingURL=0225a369eea0a83d9866b4eeaaae38246c9d235a-2a31de5a3c5be9884c1e.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.