1"use strict";(self.webpackChunkbuck_mason=self.webpackChunkbuck_mason||[]).push([[7597],{3471:function(e,t,n){n.r(t),n.d(t,{Head:function(){return h},default:function(){return f}});var l=n(4506),r=n(6540),a=n(4794);const c=()=>{const e=(0,a.useStaticQuery)("2212640156"),t={m:[],w:[],u:[]};return e.allCollection.nodes.forEach(e=>{t[e.gender]&&t[e.gender].push(e)}),t.m=t.m.sort((e,t)=>e.nav_rnk-t.nav_rnk),t.w=t.w.sort((e,t)=>e.nav_rnk-t.nav_rnk),t.u=t.u.sort((e,t)=>e.nav_rnk-t.nav_rnk),t};var o=n(6778),i=n(2711),s=n(9903);const m=function(e){return void 0===e&&(e=""),e.replace(/<\/?(p|div|span|br\s*\/?)>/gi,"").trim()},u=e=>Object.values(e.pdp_accords||[]).filter(e=>{var t;return(0,i.wx)(null==e?void 0:e.title)&&((0,i.wx)(null==e?void 0:e.copy)||(null===(t=e.subs)||void 0===t?void 0:t.length)>0)}),d=e=>(e.product_lines||[]).filter(e=>e&&Array.isArray(e.products)).map(t=>({...t,products:t.products.filter(t=>t.available&&e.prods_coll.includes(t.mid))})).filter(e=>e.products.length>0),p={m:"Men's",w:"Women's",u:"Unisex"};function f(e){var t;let{data:{collection:n}}=e;const a=c(),o=(0,r.useMemo)(()=>d(n),[]),i=(0,r.useMemo)(()=>{const e=o.flatMap(e=>e.products.map(e=>e.first_full_price||e.first_product_price)).filter(Boolean);return 0===e.length?null:{count:e.length,min:Math.min.apply(Math,(0,l.A)(e)),max:Math.max.apply(Math,(0,l.A)(e))}},[o]);return r.createElement("div",{className:s.X7},r.createElement("p",null,r.createElement("a",{href:"/for-ai"},"â All collections (text-only)")),r.createElement("div",{className:s.d5},r.createElement("h1",null,n.seotest_title||n.title),r.createElement("p",null,n.seotest_desc||n.description||n.seotest_meta||n.seo_desc),i&&r.createElement("p",null,i.min===i.max?`${i.count} products at $${i.min}.`:`${i.count} products, $${i.min}â$${i.max}.`),r.createElement("p",null,"View the full design-focused collection page at"," ",r.createElement("a",{href:`/collections/${n.handle}`},"www.buckmason.com/collections/",n.handle),".")),o.length>1&&r.createElement("nav",{"aria-label":"Product lines on this page",className:s.RM},r.createElement("h2",null,"On this page"),r.createElement("ul",null,o.map(e=>r.createElement("li",{key:`toc-${e.mid}`},r.createElement("a",{href:`#pl-${e.mid}`},e.name))))),o.map(e=>{const t=u(e),n=`pl-${e.mid}-h`;return r.createElement("section",{key:`pl-${e.mid}`,id:`pl-${e.mid}`,"aria-labelledby":n,className:s.U3},r.createElement("h2",{id:n},e.name),r.createElement("p",null,e.short_description),t.length>0&&r.createElement("dl",{className:s.UF},t.map(t=>{var n;return r.createElement(r.Fragment,{key:`accord-${e.mid}-${t.title}`},r.createElement("dt",null,r.createElement("strong",null,t.title),t.subtitle?`: ${t.subtitle}`:""),r.createElement("dd",null,m(t.copy),(null===(n=t.subs)||void 0===n?void 0:n.length)>0&&r.createElement("dl",null,t.subs.map(n=>r.createElement(r.Fragment,{key:`${e.mid}-${t.title}-${n.title}`},r.createElement("dt",null,n.title),r.createElement("dd",{dangerouslySetInnerHTML:{__html:m(n.copy)}}))))))})),r.createElement("table",{style:{width:"100%"}},r.createElement("caption",{className:s.sM},"Available colorways and prices for ",e.name),r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",{className:s.u$},"Colorway"),r.createElement("th",{style:{textAlign:"center",width:40},className:s.u$},"Price"))),r.createElement("tbody",null,e.products.map(t=>r.createElement("tr",{key:`${e.mid}-${t.handle}`},r.createElement("td",null,r.createElement("a",{href:`/products/${t.handle}`},t.title)),r.createElement("td",{style:{textAlign:"center",width:40}},"$",t.first_full_price||t.first_product_price))))))}),(null===(t=a[n.gender])||void 0===t?void 0:t.length)>0&&r.createElement("section",{"aria-labelledby":"related-h",className:s._2},r.createElement("h2",{id:"related-h"},"Featured ",p[n.gender]," Collections"),r.createElement("ul",null,a[n.gender].map(e=>r.createElement("li",{key:e.handle},r.createElement("a",{href:`/for-ai/collections/${e.handle}`},e.seotest_title||e.title))))))}const h=e=>{let{data:{collection:t}}=e;if(!t)return null;const n=((e,t)=>{const n=[];
1return t.forEach(e=>{e.products.forEach(e=>{const t=e.first_full_price||e.first_product_price;n.push({"@type":"ListItem",position:n.length+1,item:{"@type":"Product",name:e.title,url:`https://www.buckmason.com/products/${e.handle}`,...t?{offers:{"@type":"Offer",price:t,priceCurrency:"USD",availability:"https://schema.org/InStock",url:`https://www.buckmason.com/products/${e.handle}`}}:{}}})})}),{"@context":"https://schema.org","@type":"CollectionPage",name:e.seotest_title||e.title,description:e.seotest_desc||e.description||e.seotest_meta||e.seo_desc,url:`https://www.buckmason.com/for-ai/collections/${e.handle}`,mainEntity:{"@type":"ItemList",itemListElement:n}}})(t,d(t)),l=(e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"For AI Crawlers",item:"https://www.buckmason.com/for-ai"},{"@type":"ListItem",position:2,name:e.seotest_title||e.title,item:`https://www.buckmason.com/for-ai/collections/${e.handle}`}]}))(t);return r.createElement(o.G,{title:`${t.seotest_title||t.title} | For AI Crawlers (Text-Only)`,description:t.seotest_meta||t.seo_desc,url:`/collections/${t.handle}`},r.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),r.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}))}},6778:function(e,t,n){n.d(t,{G:function(){return c}});
1var l=n(6540),r=n(6462),a=n(2711);const c=e=>{let{title:t,description:n,image:c,url:o=!1,children:i,hide:s=!1}=e;const m=(0,r.useLocation)();let u=`${t}${t.includes("Buck Mason")?"":" | Buck Mason"}`,d=c?(0,a.vt)(c,1024,!0):"https://cdn.shopify.com/s/files/1/0123/5065/2473/files/chicago_1_0d30a8f6-9b69-4702-9afe-2d58adbfcbf7.jpg?v=1696020535",p=n||"Inspired by laid back California ethos of easy living, quality, & simplicity, \n Buck Mason is a modern American brand that makes fashion less complicated.";const f=o?`https://www.buckmason.com${o.split("?")[0]}`:m.href.replace(/\/$/,"").split("?")[0];return l.createElement(l.Fragment,null,l.createElement("title",null,u),l.createElement("meta",{property:"og:url",content:f}),l.createElement("meta",{property:"og:title",content:(0,a.RC)(u)}),l.createElement("meta",{property:"og:image",content:d}),l.createElement("link",{rel:"image_src",href:d}),l.createElement("meta",{name:"twitter:image",content:d}),l.createElement("meta",{name:"twitter:title",content:(0,a.RC)(u)}),l.createElement("meta",{name:"twitter:url",content:f}),!s&&l.createElement("link",{rel:"canonical",href:f}),s&&l.createElement("meta",{name:"robots",content:"noindex"}),l.createElement("meta",{name:"description",content:(0,a.RC)(p)}),l.createElement("meta",{property:"og:description",content:(0,a.RC)(p)}),l.createElement("meta",{name:"twitter:description",content:(0,a.RC)(p)}),i)}},9903:function(e,t,n){n.d(t,{LV:function(){return E},Os:function(){return c},RM:function(){return h},U3:function(){return m},UF:function(){return s},W6:function(){return a},X7:function(){return u},_2:function(){return d},d5:function(){return o},jD:function(){return r},l5:function(){return f},nz:function(){return l},sM:function(){return p},u$:function(){return i}});var l="forai-module--col--ba292",r="forai-module--cont--39110",a="forai-module--contwr--3d0cc",c="forai-module--group--82adb",o="forai-module--head--c60a4",i="forai-module--nontitle--922ec",s="forai-module--placcrd--4798d",m="forai-module--plwr--85815",u="forai-module--plwrap--0ce87",d="forai-module--related--cd258",p="forai-module--srOnly--a9a65",f="forai-module--taxdesc--bc127",h="forai-module--toc--10fdd",E="forai-module--wrap--80969"}}]); 2//# sourceMappingURL=component---src-pages-for-ai-collections-collection-handle-jsx-7260d22f623973ee31aa.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.