PageSourceSearch

https://www.joepools.com/_next/static/chunks/20234-a1962c991dd3f440.js

js joepools.com collected 2026-09-29 17:11:29 UTC 119,278 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20234],{669:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(6029),i=n(71024),a=n.n(i),l=n(55729),o=n(21425),s=n(91775),d=n(26481);let c=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(46049),n.e(94638),n.e(1543)]).then(n.bind(n,94638)),{loadableGenerated:{webpack:()=>[94638]}}),u=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(66898),n.e(69266),n.e(20885)]).then(n.bind(n,39340)),{loadableGenerated:{webpack:()=>[39340]}}),p=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(32465),n.e(1420)]).then(n.bind(n,98959)),{loadableGenerated:{webpack:()=>[98959]}}),h=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(11835),n.e(53431),n.e(55874)]).then(n.bind(n,29773)),{loadableGenerated:{webpack:()=>[29773]}}),m=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(27011),n.e(99156),n.e(31832),n.e(4645),n.e(9533)]).then(n.bind(n,4645)),{loadableGenerated:{webpack:()=>[4645]}}),x=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(4654),n.e(27011),n.e(36897),n.e(14745),n.e(71056),n.e(94160)]).then(n.bind(n,71056)),{loadableGenerated:{webpack:()=>[71056]}}),f=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(2818),n.e(19893),n.e(84240),n.e(3544),n.e(66232)]).then(n.bind(n,3544)),{loadableGenerated:{webpack:()=>[3544]}}),g=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(61598),n.e(50912),n.e(95477),n.e(69693)]).then(n.bind(n,95477)),{loadableGenerated:{webpack:()=>[95477]}}),b=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(33881),n.e(43297),n.e(2028),n.e(98180)]).then(n.bind(n,2028)),{loadableGenerated:{webpack:()=>[2028]}}),y=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(2610),n.e(8603),n.e(28274),n.e(15368)]).then(n.bind(n,77784)),{loadableGenerated:{webpack:()=>[77784]}}),A=a()(()=>Promise.all([n.e(27011),n.e(85468)]).then(n.bind(n,27300)),{loadableGenerated:{webpack:()=>[27300]}});function j(e){let{config:t,isPreview:n,isEditingPreview:i}=(0,l.useContext)(o.Q),{page:a,selectedCategoryId:j,categories:v}=e.data,E=v.find(e=>e.id===j)??null;switch((0,l.useEffect)(()=>{n||i||(0,s.tr)(t.id,{href:(0,d.PD)({page:a,category:E}),categoryName:E?.name??null})},[t.id,n,i,a,E]),t.template){case"jaguar":return(0,r.jsx)(c,{...e});case"sleek":return(0,r.jsx)(g,{...e});case"professional":return(0,r.jsx)(b,{...e});case"bold":return(0,r.jsx)(y,{...e});case"boxy":return(0,r.jsx)(u,{...e});case"modern":return(0,r.jsx)(p,{...e});case"sunrise":return(0,r.jsx)(h,{...e});case"eclectic":return(0,r.jsx)(m,{...e});case"friendly":return(0,r.jsx)(x,{...e});case"lux":return(0,r.jsx)(f,{...e});default:return(0,r.jsx)(A,{...e})}}},1106:(e,t,n)=>{n.d(t,{Bj:()=>a,EC:()=>o,V$:()=>l,hj:()=>i}),n(55729);var r=n(69937);let i=e=>0!==e.length,a=e=>i(e)&&e.match(r.Uo),l=e=>i(e)&&(e.match(/\d/g)?.length??0)>=10,o=e=>i(e)&&e.match(r.ZP)},2856:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(6029),i=n(95669),a=n.n(i);function l(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:"Under Construction"}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsxs)("div",{style:{minHeight:"100dvh",width:"100%",display:"flex",flexDirection:"column",backgroundColor:"#eef2fa",color:"#16325c",fontFamily:'system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"',boxSizing:"border-box"},children:[(0,r.jsxs)("main",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",maxWidth:800,width:"100%",margin:"0 auto",textAlign:"center",padding:"24px 24px 32px",boxSizing:"border-box"},children:[(0,r.jsx)("svg",{width:"120",height:"120",viewBox:"0 0 16 16",fill:"#16325c",xmlns:"http://www.w3.org/2000/svg",style:{marginBottom:24},children:(0,r.jsx)("path",{d:"M12.28592,11.7143,6.49472,5.92372a2.50375,2.50375,0,0,0,.16958-.7544,2.14905,2.14905,0,0,0-.09474-.81438,2.11972,2.11972,0,0,0-.54871-.90431,2.32771,2.32771,0,0,0-1.76079-.68447H4.21515a2.104,2.104,0,0,0-.71829.15488L4.59925,4.02518l.31921.31976.24445.24481a1.864,1.864,0,0,1-.21948.85435,1.04314,1.04314,0,0,1-.11475.14488,1.64822,1.64822,0,0,1-1.00259.33474L2.609,4.70468,2.16005,4.255a2.07386,2.07386,0,0,0-.13469.54457l-.015.10493a2.33671,2.33671,0,0,0,.38407,1.51882,2.50928,2.50928,0,0,0,.29431.35975A2.20549,2.20549,0,0,0,4.265,7.43257a2.45325,2.45325,0,0,0,.89789-.17485L9.95648,12.054l1.20212,1.19909H11.827l.66343-.6645v-.6695Zm-6.53561-2.806,1.3662,1.3662L4.12892,13.2621H3.20558l-.45037-.45038V11.8959ZM14,5.90569,12.19094,7.71475,10.89232,6.49869,9.5111,7.87992,8.1449,6.51372,9.51861,5.13249,7.89717,3.5111l.68312-.7732,2.252.45042Z"})}),(0,r.jsx)("h1",{style:{fontSize:28,fontWeight:700,margin:"0 0 16px 0"},children:"This website is under construction."}),(0,r.jsx)("p",{style:{fontSize:18,lineHeight:1.6,margin:0},children:"We're working hard to bring you something amazing. Please check back soon!"})]}),(0,r.jsx)("footer",{style:{flexShrink:0,width:"100%",padding:"16px 24px",backgroundColor:"#16325c",color:"#ffffff",textAlign:"left",boxSizing:"border-box"},children:(0,r.jsxs)("div",{style:{fontSize:12,opacity:.95},children:["Copyright \xa9"," ",new Date().getFullYear()," ","All Rights Reserved."]})})]})]})}}
1,5254:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(55729),i=n(9264);function a(){let e=(0,r.useContext)(i.tG);if(!e)throw Error("useThemeKit must be used inside a storefront page (ThemeKitProvider missing).");return e}},9264:(e,t,n)=>{n.d(t,{Ez:()=>a,tG:()=>l,uQ:()=>i});var r=n(55729);let i={textDecoration:"line-through",'&:not([aria-pressed="true"])':{opacity:.6}};function a(e){return e.soldOut?`${e.label} (sold out)`:void 0}let l=(0,r.createContext)(null)},9854:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},13558:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(67110),i=n(90982),a=n(7659);function l(e,t){let{navigate:n,config:l}=t;if(!l?.pages)return;let o=(0,a.A)(l.pages),s=(0,r.l7)(e.split("#")[0]),d=o.find(e=>"urlPath"in e&&e.urlPath===s);if(!d)return;if(!("pageType"in d&&"BLOG"===d.pageType))return void n({screen:"Sections",pageKeyChain:d.keyChain});let c=d.sections.findIndex(e=>(0,i.Jo)(e));if(c>=0)return void n({screen:"BlogHomePage",pageKeyChain:d.keyChain,sectionIndex:c});n({screen:"Pages"})}},16259:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(55729),i=n(77103);function a(){let e=(0,r.useContext)(i.MI);if(!e)throw Error("useCart must be used inside a storefront page (CartProvider missing).");return e}},18658:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(81278),i=n(55729),a=n(77079),l=n(35993),o=n(13558),s=n(67110);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"push",t=(0,r.useRouter)(),{editorActive:n,setEditorActiveRoute:d}=(0,i.useContext)(a.n),c=(0,i.useContext)(l.p);return(0,i.useCallback)(r=>{if(n){let e=(0,s.fQ)(r);if(e){d({route:e}),(0,o.A)((0,s.l7)(e),c);return}}t?.[e]?.(r)},[n,c,e,t,d])}},20234:(e,t,n)=>{n.d(t,{A:()=>e1});var r=n(6029),i=n(55729),a=n(71024),l=n.n(a),o=n(95669),s=n.n(o),d=n(34330),c=n(77079),u=n(72387),p=n(48879),h=n(21425),m=n(9854);function x(e){let t,{page:n,canonicalUrl:a}=e,{config:l}=(0,i.useContext)(h.Q);try{t=new URL(a).origin}catch{return null}let o=function(e,t){if(!t.urlPath||"/"===t.urlPath)return[];let n=e.find(e=>"/"===e.urlPath),r={name:n?.nameInNav||"Home",urlPath:"/"},i=((function e(t,n){for(let r of t){if(r.id===n)return[r];if(r.children){let t=e(r.children,n);if(t)return[r,...t]}}})(e,t.id??"")??[t]).filter(e=>!!(e.urlPath&&e.nameInNav)).map(e=>({name:e.nameInNav,urlPath:e.urlPath}));return 0===i.length?[]:[r,...i]}(l?.pages??[],n);if(o.length<2)return null;let d={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:o.map((e,n)=>({"@type":"ListItem",position:n+1,name:e.name,item:"/"===e.urlPath?t:`${t}${e.urlPath}`}))};return(0,r.jsx)(s(),{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,m.A)(d)}},"breadcrumb-ld")})}var f=n(25425);function g(e){return"number"==typeof e&&e>=1&&e<=5}function b(e,t){return{"@type":"AggregateRating",ratingValue:String(Math.round(10*e)/10),reviewCount:String(t),bestRating:"5",worstRating:"1"}}function y(e){if(!g(e.starRating))return null;let t="string"==typeof e.comment?e.comment.trim():"";return{"@type":"Review",author:{"@type":"Person",name:("string"==typeof e.reviewerName?e.reviewerName.trim():"")||"Anonymous"},...t?{reviewBody:t}:{},reviewRating:{"@type":"Rating",ratingValue:String(e.starRating),bestRating:"5",worstRating:"1"},...e.postedAt?{datePublished:e.postedAt}:{}}}var A=n(74302),j=n(44165);let v=e=>{let[t,n]=e.split(/[:\s]/),[r,i]=[parseInt(t,10),e.slice(-2)];return"PM"===i&&12!==r?r+=12:"AM"===i&&12===r&&(r=0),`${String(r).padStart(2,"0")}:${n.slice(0,2)}`},E={sunday:"Su",monday:"Mo",tuesday:"Tu",wednesday:"We",thursday:"Th",friday:"Fr",saturday:"Sa"};function w(e){var t;let n,{canonicalUrl:a}=e,{orgInfo:l,hasFetchedOrgInfo:o}=(0,i.useContext)(d._P),{config:c}=(0,i.useContext)(h.Q),{reviews:u,ratingAggregate:p}=(0,f.v1)();if(!o)return null;let x=l?.name||c?.businessName;if(!x)return null;try{n=a?new URL(a).origin:void 0}catch{n=void 0}let w=function(e){let{name:t,origin:n,location:r,headerPhone:i,logo:a,email:l,sameAs:o,reviews:s,ratingAggregate:d}=e,c=!!r?.addressVisible&&!!(r.streetAddress||r.city||r.state||r.formattedAddress||r.lat&&r.lng),u={"@context":"https://schema.org","@type":c?"LocalBusiness":"Organization",...n?{"@id":`${n}/#organization`,url:n}:{},name:t}
1,p=r?.phoneNumber&&r?.phoneNumberVisible?r.phoneNumber:i;if(p&&(u={...u,telephone:p}),l&&(u={...u,email:l}),a&&(u={...u,logo:a,image:a}),o&&o.length>0&&(u={...u,sameAs:o}),s&&s.length>0){let{aggregateRating:e,reviews:t}=function(e,t){let n=e.map(y).filter(e=>null!=e);return{aggregateRating:function(e,t){if(t&&null!=t.averageRating&&t.ratedReviewCount>0)return b(t.averageRating,t.ratedReviewCount);let n=e.filter(e=>g(e.starRating));return 0===n.length?null:b(n.reduce((e,t)=>e+t.starRating,0)/n.length,n.length)}(e,t),reviews:n}}(s,d);e&&(u={...u,aggregateRating:e}),t.length>0&&(u={...u,review:t})}if(!c)return u;let{lat:h,lng:m,streetAddress:x,city:f,state:w,country:C,formattedAddress:k,hoursOfOperation:I,hoursOfOperationVisible:S}=r,N="United States"===C||null==C,P=N?k?.match(/\b(\d{5}(?:-\d{4})?),\s*USA\s*$/)?.[1]:void 0;return h&&m&&(u={...u,geo:{"@type":"GeoCoordinates",latitude:h,longitude:m}}),u={...u,address:{"@type":"PostalAddress",...x?{streetAddress:x}:{},...f?{addressLocality:f}:{},addressRegion:w,...P?{postalCode:P}:{},addressCountry:N?"US":C}},I&&S&&(u={...u,openingHours:(e=>{let t=[];return A.W.forEach(n=>{e[n]?.forEach(e=>{e.open.match(j.bH)?t.push(`${E[n]} 00:00-00:00`):e.open.match(j.ps)?t.push(`${E[n]} CLOSED`):e.open.match(j.Mw)||e.open&&e.closed&&t.push(`${E[n]} ${v(e.open)}-${v(e.closed)}`)})}),t})(I)}),u}({name:x,origin:n,location:l?.allLocations?.[0],headerPhone:function(e){if(e){if("phone"in e&&e.phone?.link)return e.phone.link.replace(/^tel:/,"");if("primaryCTA"in e&&e.primaryCTA?.type==="phone")return e.primaryCTA.link.replace(/^tel:/,"");if("secondaryCTA"in e&&e.secondaryCTA?.type==="phone")return e.secondaryCTA.link.replace(/^tel:/,"")}}(c?.header),logo:l?.logo||c?.logo,email:c?.email,sameAs:(t=c?.socialMedia)?Array.from(new Set(t.map(e=>"link"in e?e.link:void 0).filter(e=>"string"==typeof e&&/^https?:\/\//.test(e)))):[],reviews:u,ratingAggregate:p});return(0,r.jsx)(s(),{children:(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,m.A)(w)}},"biz-ld")})}let C=l()(()=>n.e(48888).then(n.bind(n,48888)),{loadableGenerated:{webpack:()=>[48888]}}),k=l()(()=>n.e(33834).then(n.bind(n,33834)),{loadableGenerated:{webpack:()=>[33834]}});function I(e){let t,{page:n,canonicalUrl:i}=e,a=(t=n.sections,(e=>{for(let t=0;t<e.length;t++){let n=e[t];switch(n.section){case p.b.MODERN_FAQ:case p.b.BOXY_FAQ:case p.b.SUNRISE_FAQ:case p.b.PROFESSIONAL_FAQ:case p.b.BOLD_FAQ:case p.b.ECLECTIC_FAQ:case p.b.FRIENDLY_FAQ:case p.b.LUX_FAQ:case p.b.JAGUAR_FAQ:case p.b.SLEEK_FAQ:return n.items}}})(t)?.filter(e=>e.question&&e.answer)??[]),l="BLOG"===n.pageType;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w,{canonicalUrl:i}),i&&(0,r.jsx)(x,{page:n,canonicalUrl:i}),a.length>0&&(0,r.jsx)(C,{faq:a}),l&&(0,r.jsx)(k,{page:n,canonicalUrl:i})]})}p.b.MODERN_FAQ,p.b.BOXY_FAQ,p.b.SUNRISE_FAQ,p.b.PROFESSIONAL_FAQ,p.b.BOLD_FAQ,p.b.ECLECTIC_FAQ,p.b.FRIENDLY_FAQ,p.b.LUX_FAQ,p.b.JAGUAR_FAQ,p.b.SLEEK_FAQ;var S=n(52174),N=n(1753),P=n(67110),R=n(7703),T=n(92349),L=n(28438),O=n.n(L);let _=l()(()=>n.e(869).then(n.bind(n,869)),{loadableGenerated:{webpack:()=>[869]}}),D=(0,i.memo)(function(e){let{children:t,pageKeyChain:n,section:i,editorActive:a}=e;return a?(0,r.jsx)(_,{pageKeyChain:n,section:i,children:t}):(0,r.jsx)(r.Fragment,{children:t})},O());var M=n(81278),U=n(67598),$=n(32812),G=n(63696);let F=Array.from({length:Math.round(20)+1},(e,t)=>.05*t),B=e=>e.rootBounds?.height??window.innerHeight,W=e=>e.isIntersecting&&(e.intersectionRatio>=.25||e.intersectionRect.height>=.5*B(e)),H=e=>e.isIntersecting&&(e.intersectionRatio>=.5||e.intersectionRect.height>=.5*B(e)),z=function(e){let{sections:t}=e,n=(0,$.A)(),{resolveFormData:r}=(0,i.useContext)(U.Z),{isPreview:a,isClaimed:l}=(0,i.useContext)(h.Q),{asPath:o}=(0,M.useRouter)()??{asPath:"/"},s=(0,i.useRef)(-1),d=(0,i.useRef)(new Set),c=(0,i.useRef)(null),u=t.map(e=>e.id).join(",");return(0,i.useEffect)(()=>{if(a||!l||"undefined"==typeof IntersectionObserver)return;let e=(0,G.lg)(o??"/");c.current!==e&&(c.current=e,s.current=-1,d.current.clear());let i=new Map(t.map((e,t)=>[e.id,t])),u=new Map;for(let e of t){if(!e.formData)continue;let{resolvedFormData:t,formId:n}=r(e.formData);t&&u.set(e.id,{formId:n,formName:t.title})}let p=new Map,h=new IntersectionObserver(e=>{for(let r of e){let e=r.target.id,a=i.get(e);void 0!==a&&a>s.current&&W(r)&&(s.current=a,n("furthest_section_view",{section_id:e,visible_section_index:a,total_visible_sections:t.length}));let l=u.get(e);if(!(!l||d.current.has(e)))if(H(r))p.has(e)||p.set(e,window.setTimeout(()=>{p.delete(e),d.current.add(e),n("form_view",{form_id:l.formId,form_name:l.formName,section_id:e})},1e3));else{let t=p.get(e);void 0!==t&&(window.clearTimeout(t),p.delete(e))}}},{threshold:F});for(let e of t){let t=document.getElementById(e.id);t&&h.observe(t)}return()=>
1{h.disconnect(),p.forEach(e=>window.clearTimeout(e))}},[u,o,a,l,r,n]),null},Y=function(e){let t={};return e.reduce((e,n,r)=>{let[i,a,l]=n,o={...a,section:l,idx:r};return(void 0!==t[i]?(t[i]+=1,i=`${i}(${t[i]})`):i&&(t[i]=0),i)?[...e,[i,o]]:0===e.length?[...e,[void 0,o]]:(e[e.length-1].push(o),e)},[]).reduce((e,t)=>({...e,[t[0]]:t.slice(1)}),{})},K=(0,R.n9)()(()=>({usingMouse:{"& :focus":{outline:"none"}}})),V=l()(()=>n.e(47771).then(n.bind(n,67492)),{loadableGenerated:{webpack:()=>[67492]},ssr:!1}),q=l()(()=>n.e(73732).then(n.bind(n,6124)),{loadableGenerated:{webpack:()=>[6124]}}),Q=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(66038),n.e(76592),n.e(73542),n.e(8470),n.e(23475),n.e(27011),n.e(62900),n.e(15010),n.e(2610),n.e(8603),n.e(49893),n.e(90891)]).then(n.bind(n,45624)),{loadableGenerated:{webpack:()=>[45624]}}),X=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(23475),n.e(27011),n.e(2610),n.e(8603),n.e(85465),n.e(35886),n.e(57583),n.e(995)]).then(n.bind(n,82496)),{loadableGenerated:{webpack:()=>[82496]}}),J=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(23475),n.e(27011),n.e(33881),n.e(92598),n.e(89686),n.e(92599)]).then(n.bind(n,48503)),{loadableGenerated:{webpack:()=>[48503]}}),Z=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(76592),n.e(23475),n.e(27011),n.e(15010),n.e(33881),n.e(92598),n.e(85824),n.e(13847)]).then(n.bind(n,25768)),{loadableGenerated:{webpack:()=>[25768]}}),ee=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(27011),n.e(99156),n.e(40001),n.e(30904)]).then(n.bind(n,66658)),{loadableGenerated:{webpack:()=>[66658]}}),et=l()(()=>Promise.all([n.e(25979),n.e(99156),n.e(22588)]).then(n.bind(n,11060)),{loadableGenerated:{webpack:()=>[11060]}}),en=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(4654),n.e(27011),n.e(36897),n.e(14745),n.e(80515),n.e(3285),n.e(81379)]).then(n.bind(n,10397)),{loadableGenerated:{webpack:()=>[10397]}}),er=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(4654),n.e(23475),n.e(27011),n.e(36897),n.e(14745),n.e(91704),n.e(80515),n.e(83681),n.e(73499)]).then(n.bind(n,21348)),{loadableGenerated:{webpack:()=>[21348]}}),ei=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(19893),n.e(60489),n.e(3227)]).then(n.bind(n,21369)),{loadableGenerated:{webpack:()=>[21369]}}),ea=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(60489),n.e(99673),n.e(4979)]).then(n.bind(n,93590)),{loadableGenerated:{webpack:()=>[93590]}}),el=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(42963),n.e(12146),n.e(23702),n.e(23475),n.e(27011),n.e(62900),n.e(46049),n.e(42856),n.e(66307),n.e(52869),n.e(6845),n.e(20790)]).then(n.bind(n,79228)),{loadableGenerated:{webpack:()=>[79228]}}),eo=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(46049),n.e(6845),n.e(75406)]).then(n.bind(n,6936)),{loadableGenerated:{webpack:()=>
1[6936]}}),es=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(42963),n.e(12146),n.e(23702),n.e(23475),n.e(27011),n.e(62900),n.e(61598),n.e(50912),n.e(1586),n.e(66307),n.e(52869),n.e(44121),n.e(82456)]).then(n.bind(n,69683)),{loadableGenerated:{webpack:()=>[69683]}}),ed=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(61598),n.e(44121),n.e(98524)]).then(n.bind(n,95468)),{loadableGenerated:{webpack:()=>[95468]}}),ec=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(25263),n.e(26095)]).then(n.bind(n,18898)),{loadableGenerated:{webpack:()=>[18898]}}),eu=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(23475),n.e(27011),n.e(25263),n.e(14607)]).then(n.bind(n,91104)),{loadableGenerated:{webpack:()=>[91104]}}),ep=l()(()=>Promise.all([n.e(61086),n.e(27011),n.e(66898),n.e(97532),n.e(97621),n.e(69312)]).then(n.bind(n,55893)),{loadableGenerated:{webpack:()=>[55893]}}),eh=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(23475),n.e(27011),n.e(66898),n.e(51996),n.e(97621),n.e(83332)]).then(n.bind(n,28379)),{loadableGenerated:{webpack:()=>[28379]}}),em=l()(()=>Promise.all([n.e(25979),n.e(23475),n.e(27011),n.e(59977)]).then(n.bind(n,24575)),{loadableGenerated:{webpack:()=>[24575]}}),ex=l()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(21185),n.e(37185),n.e(44525)]).then(n.bind(n,1254)),{loadableGenerated:{webpack:()=>[1254]}}),ef=l()(()=>n.e(99911).then(n.bind(n,15921)),{loadableGenerated:{webpack:()=>[15921]}}),eg=(0,R.n9)()(e=>({main:{background:e.palette.primary.main,position:"relative",whiteSpace:"pre-wrap"},sunriseTemplate:{"& > *:last-child section":{marginBottom:0,[e.breakpoints.down("xl")]:{paddingBottom:16}}}}));function eb(e){let{template:t,section:n,sectionIdx:i,allSections:a,isBlogPage:l}=e,o=l&&function(e){switch(e){case p.b.BOLD_BLOG_HOME:case p.b.BOLD_BLOG_CONTENT:case p.b.BOXY_BLOG_HOME:case p.b.BOXY_BLOG_CONTENT:case p.b.ECLECTIC_BLOG_HOME:case p.b.ECLECTIC_BLOG_CONTENT:case p.b.FRIENDLY_BLOG_HOME:case p.b.FRIENDLY_BLOG_CONTENT:case p.b.LUX_BLOG_HOME:case p.b.LUX_BLOG_CONTENT:case p.b.MODERN_BLOG_HOME:case p.b.MODERN_BLOG_CONTENT:case p.b.PROFESSIONAL_BLOG_HOME:case p.b.PROFESSIONAL_BLOG_CONTENT:case p.b.SUNRISE_BLOG_HOME:case p.b.SUNRISE_BLOG_CONTENT:case p.b.JAGUAR_BLOG_HOME:case p.b.JAGUAR_BLOG_CONTENT:case p.b.SLEEK_BLOG_HOME:case p.b.SLEEK_BLOG_CONTENT:return!0;default:return!1}}(n.section);switch(t){case"bold":return o?(0,r.jsx)(X,{section:n,sectionIdx:i,allSections:a}):(0,r.jsx)(Q,{section:n,sectionIdx:i,allSections:a});case"professional":return o?(0,r.jsx)(Z,{section:n}):(0,r.jsx)(J,{section:n});case"eclectic":return o?(0,r.jsx)(et,{section:n}):(0,r.jsx)(ee,{section:n});case"friendly":return o?(0,r.jsx)(er,{section:n,idx:i}):(0,r.jsx)(en,{section:n,idx:i});case"lux":return o?(0,r.jsx)(ea,{section:n}):(0,r.jsx)(ei,{section:n});case"jaguar":return o?(0,r.jsx)(eo,{section:n}):(0,r.jsx)(el,{section:n});case"sleek":return o?(0,r.jsx)(ed,{section:n}):(0,r.jsx)(es,{section:n});case"modern":return o?(0,r.jsx)(eu,{section:n}):(0,r.jsx)(ec,{section:n});case"sunrise":return o?(0,r.jsx)(ex,{section:n}):(0,r.jsx)(em,{section:n});case"boxy":return o?(0,r.jsx)(eh,{section:n}):(0,r.jsx)(ep,{section:n});default:return null}}function ey(e){let{idx:t,children:n,isProbablyMobile:i,sectionId:a,isHomePage:l}=e;return l&&t<(!0===i?2:4)&&a&&null==globalThis[`${a}-skip-animation`]&&(globalThis[`${a}-skip-animation`]=!0),(0,r.jsx)("div",{children:n})}let eA=function(e){let{sections:t,isSinglePage:n,editorActive:a,isProbablyMobile:l,keyChain:o,isHomePage:s,isBlogPage:d}=e,{template:c}=(0,i.useContext)(h.$),{classes:u,cx:m}=eg(),x=t.map(e=>[e.nameInNav,{},e]),f=n?Y(x):null,{classes:g}=K();return(0,i.useEffect)(()=>{let e=()=>document.body.classList.add(g.usingMouse),t=e=>{let{keyCode:t}=e;(9===t||37===t||38===t||39===t||40===t)&&document.body.classList.remove(g.usingMouse)};return e(),document.body.addEventListener("mousedown",e),document.body.addEventListener("keydown",t),()=>{document.body.removeEventListener("mousedown",e),document.body.removeEventListener("keydown",t),document.body.classList.remove(g.usingMouse)}},[g.usingMouse]),(0,r.jsxs)("main",{className:m(u.main,"sunrise"===c&&u.sunriseTemplate),id:JSON.stringify(o),children:[a&&(0,r.jsx)(V,{}),!a&&(0,r.jsx)(z,{sections:t}),(0,r.jsx)("div",{id:"top"}),"friendly"===c&&(0,r.jsx)(ef,{}),n?Object.entries(f).map(e=>{let[n,i]=e;return(0,r.jsx)(T.Hg,{name:n,children:i.map(e=>(0,r.jsx)("div",{id:e.section.id,children:(0,r.jsx)(T.Hg,{name:e.section.id,id:e.section.id,children:(0,r.jsxs)(D,{pageKeyChain:o,section:e.section,editorActive:a,children:[(0,r.jsx)(ey,{isProbablyMobile:l,idx:e.idx,sectionId:e.section.id,isHomePage:s,children:(0,r.jsx)(eb,{template:c,section:e.section,sectionIdx:e.idx,allSections:t,isBlogPage:d})}),e.section.section===p.b.THIRD_PARTY&&(0,r.jsx)(q,{...e.section,template:c,idx:e.idx,allSections:t})]})})},e.section.id))},n)}):x.map((e,n)=>{let[,,i]=e;return(0,r.jsx)("div",{id:i.id,children:(0,r.jsx)(T.Hg,{name:i.id,children:(0,r.jsxs)(D,{section:i,pageKeyChain:o,editorActive:a,children:[(0,r.jsx)(ey,{isProbablyMobile:l,idx:n,sectionId:i.id,isHomePage:s,children:(0,r.jsx)(eb,{template:c,section:i,sectionIdx:n,allSections:t,isBlogPage:d})}),i.section===p.b.THIRD_PARTY&&(0,r.jsx)(q,{...i,template:c,idx:n,allSections:t})]})})},i.id)}),(0,r.jsx)("div",{id:"bottom"})]})};var ej=n(90798),ev=n(32559),eE=n(43291);n(87830),n(57e3);let ew=(0,i.createContext)({products:[],loading:!1,hasFetched:!1,hasStore:null,loadError:!1,refetch:async()=>{},reorderProducts:async()=>{},reorderError:null});var eC=n(48271),ek=n(669),eI=n(24910),eS=n(26481),eN=n(5254);function eP(e){let{slug:t}=e,{Band:n,Action:i}=(0,eN.A)();return(0,r.jsx)(n,{id:"store-product-missing",sx:{px:3,py:{xs:5,md:8}},children:(0,r.jsxs)(ej.A,{maxWidth:720,mx:"auto",textAlign:"center",children:[(0,r.jsx)(ev.A,{variant:"h4",component:"h1",children:"Product not found"}),(0,r.jsx)(ev.A,{variant:"body1",mt:1,sx:{opacity:.8},children:`“${t}” is not in your published catalog.`}),(0,r.jsx)(ej.A,{mt:3,display:"inline-block",children:(0,r.jsx)(i,{emphasis:"primary",text:"Back to store",href:"/store"})})]})})}function eR(e){let{storePage:t,template:n,productSlug:a}=e,{products:l}=(0,eE.R7)(),{loading:o,hasFetched:s}=(0,i.useContext)(ew),{editorActiveRoute:d}=(0,i.useContext)(c.n),u=(0,i.useMemo)(()=>(function(e,t){let n=new URLSearchParams(t.split("?")[1]??""),r=function(e){let t=new Map;for(let n of e)for(let e of n.categories)t.set(e.id,e.name);return[...t.entries()].map(e=>{let[t,n]=e;return{id:t,name:n}})}(e),i=(0,eS.P7)(n.get("category")??void 0,r),a=i?e.filter(e=>e.categories.some(e=>e.id===i)):e,l=a.length;return{products:a,total:l,page:(0,eS.NL)(n.get("page")??void 0),pageSize:Math.max(l,1),categories:r,selectedCategoryId:i}})(l,d.route),[l,d.route]),p=a?l.find(e=>e.slug===a):void 0,h=(0,i.useMemo)(()=>
1{if(!p)return[];let e=p.categories[0]?.id,t=e?l.filter(t=>t.id!==p.id&&t.categories.some(t=>t.id===e)):l.filter(e=>e.id!==p.id);return(t.length>0?t:l.filter(e=>e.id!==p.id)).slice(0,4)},[p,l]);return!s||o?null:(0,r.jsxs)(eC.A,{template:n,children:[a&&!p&&(0,r.jsx)(eP,{slug:a}),a&&p&&(0,r.jsx)(eI.A,{data:{product:p,related:h},settings:null,canonicalUrl:`/store/${p.slug}`}),!a&&(0,r.jsx)(ek.A,{data:u,storePage:t})]})}var eT=n(21814);function eL(e){let{template:t}=e,{orgInfo:n}=(0,i.useContext)(d._P);return(0,r.jsx)(eC.A,{template:t,children:(0,r.jsx)(eT.A,{orgId:n.id||null,settings:null})})}var eO=n(72835);function e_(e){let{template:t}=e,{orgInfo:n}=(0,i.useContext)(d._P);return(0,r.jsx)(eC.A,{template:t,children:(0,r.jsx)(eO.A,{orgId:n.id||null,settings:null,canonicalUrl:""})})}var eD=n(29883);function eM(e){let{template:t,publicToken:n,successMode:i}=e;return(0,r.jsx)(eC.A,{template:t,children:(0,r.jsx)(eD.A,{publicToken:n,initial:null,successMode:i})})}var eU=n(7652),e$=n(35003),eG=n(69937);let eF=new Set([p.b.SUNRISE_HTML,p.b.BOXY_EMBED,p.b.MODERN_EMBED,p.b.ECLECTIC_EMBED,p.b.THIRD_PARTY]),eB=new Set([p.b.BOXY_ANNOUNCEMENT_BAR,p.b.BOLD_ANNOUNCEMENT_BAR,p.b.BOLD_SCROLLING_ANNOUNCEMENT_BAR,p.b.PROFESSIONAL_ANNOUNCEMENT_BAR,p.b.PROFESSIONAL_SCROLLING_ANNOUNCEMENT_BAR,p.b.ECLECTIC_ANNOUNCEMENT_BAR,p.b.ECLECTIC_SCROLLING_ANNOUNCEMENT_BAR,p.b.FRIENDLY_ANNOUNCEMENT_BAR,p.b.FRIENDLY_SCROLLING_BANNER,p.b.FRIENDLY_SIMPLE_BANNER,p.b.LUX_ANNOUNCEMENT_BAR,p.b.LUX_SCROLLING_BANNER,p.b.LUX_SIMPLE_BANNER,p.b.JAGUAR_ANNOUNCEMENT_BAR,p.b.JAGUAR_SCROLLING_ANNOUNCEMENT_BAR,p.b.JAGUAR_SIMPLE_BANNER,p.b.SLEEK_ANNOUNCEMENT_BAR,p.b.SLEEK_SCROLLING_ANNOUNCEMENT_BAR,p.b.SUNRISE_BANNER]),eW=RegExp(`url\\(\\s*['"]?(${/https?:\/\/[^\s"'()<>]+\.(?:avif|gif|jpe?g|png|webp)(?:\?[^\s"'()<>]*)?/i.source})`,"i"),eH=/<\s*(iframe|object|embed)[\s>]/i,ez=e=>{if(!e||eH.test(e))return null;let t=e.match(eW)?.[1];return t?t.replace(/&amp;/g,"&"):null},eY=e=>{if("object"==typeof e&&null!==e){if("html"in e&&"string"==typeof e.html)return e.html;if("code"in e&&"string"==typeof e.code)return e.code}},eK=(e,t)=>{let n=((t===p.b.FRIENDLY_HERO_FORM?void 0:e.items)??[]).find(e=>e&&(e.asset||e.backgroundAsset||e.beforeAsset));for(let[t,r]of[[e.backgroundAsset,!0],[e.asset,!1],[e.featuredAsset,!1],[n?.asset,!1],[n?.backgroundAsset,!1],[n?.beforeAsset,!1]])if((0,eU.Ay)(t))return{asset:t,fullBleed:r};return null},eV=/https:\/\/[a-zA-Z0-9-]+\.b-cdn\.net/g,eq=l()(()=>n.e(65542).then(n.bind(n,16335)),{loadableGenerated:{webpack:()=>[16335]}}),eQ=l()(()=>n.e(29670).then(n.bind(n,43159)),{loadableGenerated:{webpack:()=>[43159]}});function eX(e){let{config:t,isPreview:n,urlPath:a,canonicalUrl:l,isProbablyMobile:o,isSubdomain:p}=e,{editorActiveRoute:h,editorActive:m}=(0,i.useContext)(c.n),{orgInfo:x}=(0,i.useContext)(d._P),f=m||n,g=f?h.route:a,b=f&&"string"==typeof g?(0,P.fr)(g):null,y=f&&"string"==typeof g?(0,P.yb)(g):null,A="string"==typeof g&&"1"===new URLSearchParams(g.split("?")[1]?.split("#")[0]??"").get("success"),j=f&&"string"==typeof g?(0,P.l7)(g):g,v=(0,N.t)(t.pages,[]),E=(0,S.A)(j,t),w=(0,N.CD)(v),C=w.find(e=>E&&"urlPath"in E&&E.urlPath?e.urlPath===E.urlPath:e.nameInNav===E?.nameInNav)?.keyChain;if(E&&!("sections"in E&&E.sections)||("professional"!==t.template||C||(C=[]),!C))return null;let k=((e,t)=>{let n,r=e.sections.filter(e=>!("hidden"in e&&e.hidden)),i=null,a=0;for(let e of r){if(eF.has(e.section)){let t=ez(eY(e));if(t)return{href:t};continue}if(!eB.has(e.section)){if((a+=1)>2)break;if(i=eK(e,e.section)){n=e;break}}}if(!n||!i)return null;let{asset:l,fullBleed:o}=i,s=(0,eU.Ay)(l);if(!s)return null;if((0,eG.s5)(s))return{href:(0,eU.Vt)(s,{noTransform:t})};if((0,eG.CZ)(s))return null;
1let d=(0,eU.Nh)(l),c=(0,eU.fF)(l,{noTransform:t,sourceWidth:d}),u=o?e$.e:e$.G[n.section];if(!u)return{href:c};let p=(0,eU.Dl)(l,{noTransform:t,sourceWidth:d});return p?{href:c,imageSrcSet:p,imageSizes:u}:{href:c}})(E,t.disableImageCompression),R=m||n?[]:((e,t)=>{let n=[],r=e=>{let t=e.toLowerCase();"https://h3f5ivd9.b-cdn.net"!==t&&n.length<2&&!n.includes(t)&&n.push(t)};try{for(let e of t?.match(eV)??[])r(e);let n="sections"in e&&e.sections||[];for(let e of JSON.stringify(n.slice(0,4)).match(eV)??[])r(e)}catch{}return n})(E,k?.href),T="/"===E.urlPath,L="pageType"in E&&"BLOG"===E.pageType,O=function(e,t,n,r){if(n||r)return null;let i=e.passwordProtection;if(i?.enabled&&i?.password)return{password:i.password,storageKey:`${e.id}_pw_auth_site`};if(!t)return null;let a="passwordProtection"in t?t.passwordProtection:void 0;return a?.enabled&&a?.password&&"urlPath"in t?{password:a.password,storageKey:`${e.id}_pw_auth_${t.urlPath}`}:null}(t,E,m,n);return(0,r.jsxs)(r.Fragment,{children:[O&&(0,r.jsx)(u.A,{password:O.password,storageKey:O.storageKey}),!m&&!n&&(0,r.jsx)(I,{page:E,canonicalUrl:l}),!m&&!n&&(p||E.seo?.noIndex)&&(0,r.jsx)(s(),{children:(0,r.jsx)("meta",{name:"robots",content:p?"noindex, nofollow":"noindex, follow"},"robots")}),!m&&!n&&l&&(0,r.jsx)(s(),{children:(0,r.jsx)("link",{rel:"canonical",href:l},"canonical")}),R.length>0&&(0,r.jsxs)(s(),{children:[R.map(e=>(0,r.jsx)("link",{rel:"preconnect",href:e},`preconnect-${e}`)),R.map(e=>(0,r.jsx)("link",{rel:"dns-prefetch",href:e},`dns-prefetch-${e}`))]}),!m&&!n&&k&&(0,r.jsx)(s(),{children:(0,r.jsx)("link",{rel:"preload",href:k.href,imageSrcSet:k.imageSrcSet,imageSizes:k.imageSizes,as:"image",fetchPriority:"high"},"lcp-preload")}),!m&&!n&&(0,r.jsx)(eq,{...E.seo??{},canonicalUrl:l,siteName:x?.name||t.businessName,ogType:"pageType"in E&&"BLOG"===E.pageType?"article":"website"}),"pageType"in E&&"STORE"===E.pageType&&"CART"===E.storePageRole&&f?(0,r.jsx)(eL,{template:t.template}):"pageType"in E&&"STORE"===E.pageType&&"CHECKOUT"===E.storePageRole&&f?(0,r.jsx)(e_,{template:t.template}):"pageType"in E&&"STORE"===E.pageType&&"ORDER_STATUS"===E.storePageRole&&f&&y?(0,r.jsx)(eM,{template:t.template,publicToken:y,successMode:A}):"pageType"in E&&"STORE"===E.pageType&&"HOME"===E.storePageRole&&f?(0,r.jsx)(eR,{storePage:E,template:t.template,productSlug:b}):(0,r.jsx)(eA,{isProbablyMobile:o,sections:E.sections,isSinglePage:"main"===t.pageType,keyChain:C,editorActive:m,isHomePage:T,isBlogPage:L}),"popUp"in E&&E.popUp&&(0,r.jsx)(eQ,{popUp:E.popUp,template:t.template})]})}var eJ=n(36181),eZ=n(57263),e0=n(2856);function e1(e){return e.unavailable?(0,r.jsx)(eZ.A,{}):e.underConstruction?(0,r.jsx)(e0.A,{}):e.pageNotFound?(0,r.jsx)(eJ.A,{}):(0,r.jsx)(eX,{...e})}},21814:(e,t,n)=>{n.d(t,{A:()=>N});var r=n(6029),i=n(55729),a=n(90798),l=n(56188),o=n(15374),s=n(17745),d=n(32559),c=n(29835),u=n(57654),p=n(75466),h=n(16259),m=n(5254),x=n(48227),f=n(79394),g=n(88351),b=n(8934),y=n(28647);function A(e){let{value:t,onChange:n,name:i,disabled:l,max:o}=e,s=(0,m.A)(),c="number"==typeof o?Math.min(o,99):99;return(0,r.jsxs)(a.A,{role:"group","aria-label":`Quantity for ${i}`,sx:{display:"inline-flex",alignItems:"center",border:"1px solid",borderColor:"divider",borderRadius:`${s.radii.input}px`,overflow:"hidden"},children:[(0,r.jsx)(g.A,{"aria-label":`Decrease quantity of ${i}`,onClick:()=>n(t-1),disabled:l,size:"small",sx:{width:40,height:44,borderRadius:0},color:"inherit",children:(0,r.jsx)(y.A,{fontSize:"small"})}),(0,r.jsx)(d.A,{component:"span","aria-live":"polite",sx:{width:34,textAlign:"center"},children:t}),(0,r.jsx)(g.A,{"aria-label":`Increase quantity of ${i}`,onClick:()=>n(t+1),disabled:l||t>=c,size:"small",sx:{width:40,height:44,borderRadius:0},color:"inherit",children:(0,r.jsx)(b.A,{fontSize:"small"})})]})}function j(e){let{line:t,priced:n,onQuantity:i,onRemove:l,busy:s}=e,c=n?.unitPrice??t.unitPriceCents,h=n?.lineTotal??c*t.quantity,m=null!==n&&!n.available,f=`/store/${t.slug}`;return(0,r.jsxs)(a.A,{component:"li","data-variant-id":t.variantId,"aria-busy":s||void 0,sx:{display:"flex",gap:{xs:2,md:2.5},py:3,borderTop:"1px solid",borderColor:m?"error.main":"divider",listStyle:"none",opacity:s?.85:1,transition:"opacity 120ms"},children:[(0,r.jsx)(x.zi,{src:t.image,alt:"",size:{xs:80,md:112}}),(0,r.jsxs)(a.A,{flex:1,minWidth:0,children:[(0,r.jsx)(x.i7,{component:"h3",children:(0,r.jsx)(u.A,{href:f,children:(0,r.jsx)(o.A,{href:f,underline:"hover",color:"inherit",children:t.name})})}),t.variantLabel&&(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.65,mt:.75},children:t.variantLabel}),m&&(0,r.jsx)(d.A,{variant:"body2",color:"error",sx:{mt:.75},role:"alert",children:`Only ${n?.availableQuantity??0} left. Lower the quantity or remove it to check out.`}),(0,r.jsxs)(a.A,{display:"flex",alignItems:"center",gap:2.25,mt:2,flexWrap:"wrap",children:[(0,r.jsx)(A,{value:t.quantity,onChange:i,name:t.name,max:m?n?.availableQuantity??0:n?.availableQuantity}),(0,r.jsx)(o.A,{component:"button",type:"button",onClick:l,underline:"hover",color:"inherit",sx:{opacity:.6,fontSize:15},"aria-label":`Remove all ${t.name} from your cart`,children:"Remove all"})]}),(0,r.jsxs)(a.A,{sx:{display:{xs:"block",md:"none"},mt:1.5}
1,children:[(0,r.jsx)(x.i7,{component:"p",children:(0,p.A)(h)}),t.quantity>1&&(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.65},children:`${(0,p.A)(c)} each`})]})]}),(0,r.jsxs)(a.A,{flexShrink:0,textAlign:"right",sx:{display:{xs:"none",md:"block"}},children:[(0,r.jsx)(x.i7,{component:"p",children:(0,p.A)(h)}),t.quantity>1&&(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.65},children:`${(0,p.A)(c)} each`})]})]})}function v(e){let{subtotalCents:t,freeShippingThresholdCents:n,shippingRequired:i,checkoutDisabled:l,checkoutDisabledReason:o}=e,c=(0,m.A)(),u=null!==n&&i?Math.max(0,n-t):0;return(0,r.jsxs)(c.Panel,{tone:"tint",sx:{p:{xs:3,md:4}},children:[(0,r.jsx)(x.i7,{component:"h2",children:"Summary"}),(0,r.jsxs)(s.A,{spacing:1.75,mt:2.75,children:[(0,r.jsx)(x.zT,{label:"Subtotal",value:(0,p.A)(t)}),(0,r.jsx)(x.zT,{label:"Shipping",value:"At checkout",muted:!0}),(0,r.jsx)(x.zT,{label:"Tax",value:"At checkout",muted:!0})]}),(0,r.jsx)(x.jO,{}),(0,r.jsx)(x.zT,{label:"Total",value:(0,p.A)(t),emphasis:!0}),(0,r.jsx)(a.A,{mt:3,sx:{display:{xs:"none",lg:"block"}},children:(0,r.jsx)(c.Action,{emphasis:"primary",text:"Checkout",href:l?void 0:"/checkout",disabled:l,fullWidth:!0})}),o&&(0,r.jsx)(d.A,{variant:"body2",color:"error",sx:{mt:2},children:o}),u>0&&(0,r.jsx)(d.A,{variant:"body2",sx:{mt:2,opacity:.65,lineHeight:1.6},children:`Add ${(0,p.A)(u)} more and shipping is on us.`})]})}function E(){let e=(0,m.A)();return(0,r.jsxs)(a.A,{sx:{mt:4.5,py:{xs:6,md:10},borderTop:"1px solid",borderBottom:"1px solid",borderColor:"divider",textAlign:"center"},children:[(0,r.jsx)(x.i7,{component:"h2",children:"Your cart is empty"}),(0,r.jsx)(d.A,{sx:{mt:1.5,opacity:.7},children:"Nothing in here yet. Anything you add will be saved here for the next 30 days."}),(0,r.jsx)(a.A,{mt:3.5,display:"inline-block",children:(0,r.jsx)(e.Action,{emphasis:"primary",text:"Continue shopping",href:"/store"})})]})}var w=n(90923),C=n(75614),k=n(68684),I=n(90931);function S(e){let{line:t,onRestore:n,onDismiss:l,durationMs:s=5e3}=e,c=(0,m.A)(),p=(0,I.A)(),h=(0,k.A)("(prefers-reduced-motion: reduce)"),[x,f]=(0,i.useState)(!0),[g,b]=(0,i.useState)(!1),[y,A]=(0,i.useState)(!1),j=g||y,v=(0,i.useRef)(s),E=(0,i.useRef)(0),S=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(x&&!j)return E.current=Date.now(),S.current=setTimeout(()=>f(!1),v.current),()=>{S.current&&clearTimeout(S.current),S.current=null,v.current=Math.max(0,v.current-(Date.now()-E.current))}},[x,j]);let N=(0,i.useCallback)(()=>b(!0),[]),P=(0,i.useCallback)(()=>b(!1),[]),R=(0,i.useCallback)(()=>A(!0),[]),T=(0,i.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||A(!1)},[]),L=p.palette.text.primary,O=p.palette.getContrastText(L),_=`/store/${t.slug}`;return(0,r.jsx)(C.A,{component:"li",in:x,appear:!1,timeout:240*!h,onExited:l,sx:{listStyle:"none"},unmountOnExit:!0,children:(0,r.jsxs)(a.A,{role:"status","aria-live":"polite","data-testid":"removed-line-notice",onMouseEnter:N,onMouseLeave:P,onFocus:R,onBlur:T,sx:{position:"relative",overflow:"hidden",display:"flex",alignItems:"center",gap:{xs:1.5,sm:2},my:1.5,pl:{xs:1.75,sm:2.25},pr:{xs:1.25,sm:1.5},py:1.5,borderRadius:`${c.radii.input}px`,backgroundColor:L,color:O,boxShadow:"0 6px 20px rgba(0,0,0,0.14)","@keyframes storefrontNoticeIn":{from:{opacity:0,transform:"translateY(-6px)"},to:{opacity:1,transform:"none"}},"@keyframes storefrontNoticeDrain":{from:{transform:"scaleX(1)"},to:{transform:"scaleX(0)"}},animation:h?"none":"storefrontNoticeIn 200ms ease-out"},children:[(0,r.jsx)(a.A,{component:"svg",viewBox:"0 0 24 24","aria-hidden":!0,sx:{display:{xs:"none",sm:"block"},flexShrink:0,width:22,height:22,fill:"currentColor",opacity:.9},children:(0,r.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}),(0,r.jsxs)(d.A,{component:"p",variant:"body2",sx:{flex:1,minWidth:0,color:"inherit"},children:[(0,r.jsx)(u.A,{href:_,children:(0,r.jsx)(o.A,{href:_,underline:"hover",color:"inherit",sx:{display:"inline-block",verticalAlign:"bottom",fontWeight:600,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.name})})," was removed from your cart."]}
1),(0,r.jsx)(w.A,{type:"button",variant:"outlined",color:"inherit",size:"small",onClick:n,"aria-label":`Add ${t.name} back to your cart`,sx:{flexShrink:0,whiteSpace:"nowrap",minWidth:0,minHeight:0,px:{xs:1.75,sm:1.75},py:{xs:.625,sm:.625},fontSize:{xs:14,sm:14},lineHeight:1.5,borderColor:"currentColor",color:"inherit",opacity:.95,"&:hover":{opacity:1,borderColor:"currentColor",backgroundColor:"rgba(128,128,128,0.18)"}},children:"Add back"}),!h&&(0,r.jsx)(a.A,{"aria-hidden":!0,sx:{position:"absolute",left:0,right:0,bottom:0,height:3,backgroundColor:"currentColor",opacity:.35,transformOrigin:"left",animation:`storefrontNoticeDrain ${s}ms linear forwards`,animationPlayState:j?"paused":"running"}})]})})}function N(e){let{orgId:t,settings:n,undoWindowMs:g=5e3}=e,b=(0,m.A)(),y=(0,h.A)(),[A,w]=(0,i.useState)([]),[C,k]=(0,i.useState)([]),[I,N]=(0,i.useState)([]),R=(0,i.useMemo)(()=>new Map(y.lines.map(e=>[e.variantId,e])),[y.lines]),T=(0,i.useMemo)(()=>new Map(C.filter(e=>!R.has(e.line.variantId)).map(e=>[e.line.variantId,e])),[C,R]),L=(0,i.useMemo)(()=>{let e=new Set(I);return[...I.filter(e=>R.has(e)||T.has(e)),...y.lines.filter(t=>!e.has(t.variantId)).map(e=>e.variantId)]},[I,y.lines,R,T]),O=(0,i.useCallback)(e=>{N(L),k(t=>[...t.filter(t=>t.line.variantId!==e.variantId),{line:e,key:Date.now()}]),y.remove(e.variantId)},[y,L]),_=(0,i.useCallback)(e=>{k(t=>t.filter(t=>t!==e))},[]),D=(0,i.useCallback)(e=>{let t=L.indexOf(e.line.variantId),n=L.slice(0,t).filter(e=>R.has(e)).length;y.restore(e.line,n),_(e)},[y,R,L,_]),M=(0,i.useCallback)(e=>{let t=y.lines.filter(t=>e.includes(t.variantId));0!==t.length&&(w(e=>[...e,...t.map(e=>e.name)]),t.forEach(e=>y.remove(e.variantId)))},[y]),U=(0,f.A)({orgId:t,lines:y.lines,enabled:y.hydrated,onItemsChanged:M}),$=(0,i.useMemo)(()=>{let e=new Map;return U.cart?.lines.forEach(t=>e.set(t.productVariantId,t)),e},[U.cart]),G=U.cart?.subtotal??y.subtotalHintCents,F=y.lines.filter(e=>$.get(e.variantId)?.available===!1).length,B=U.error?.code==="STORE_DISABLED",W=B?"This store is not accepting orders right now.":F>0?1===F?"One item in your cart is unavailable in that quantity.":`${F} items in your cart are unavailable in those quantities.`:null,H=null!==W||null===U.cart,z=(0,r.jsx)(a.A,{component:"ul",m:0,p:0,"aria-label":"Items in your cart",children:L.map(e=>{let t=R.get(e);if(t)return(0,r.jsx)(j,{line:t,priced:$.get(e)??null,onQuantity:n=>n<=0?O(t):y.setQuantity(e,n),onRemove:()=>O(t),busy:U.loading},e);let n=T.get(e);return n?(0,r.jsx)(S,{line:n.line,durationMs:g,onRestore:()=>D(n),onDismiss:()=>_(n)},`removed-${n.key}`):null})}),Y=y.hydrated&&y.lines.length>0;return(0,r.jsxs)(b.Band,{sx:{py:{xs:4,md:6},pb:{xs:12,md:7}},children:[(0,r.jsxs)(a.A,{maxWidth:b.maxWidth,mx:"auto",px:{xs:2,sm:3,md:7},children:[(0,r.jsx)(x.sT,{children:"Your cart"}),y.hydrated?0===y.lines.length?(0,r.jsxs)(r.Fragment,{children:[A.length>0&&(0,r.jsx)(a.A,{mt:3,children:(0,r.jsx)(P,{names:A})}),T.size>0&&(0,r.jsx)(a.A,{mt:3,children:z}),(0,r.jsx)(E,{})]}):(0,r.jsxs)(a.A,{mt:{xs:3,md:4.5},display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"flex-start",gap:{xs:4,lg:6},children:[(0,r.jsxs)(a.A,{flex:1,minWidth:0,width:"100%",children:[(0,r.jsxs)(s.A,{spacing:2,mb:A.length||U.error?2:0,children:[A.length>0&&(0,r.jsx)(P,{names:A}),B&&(0,r.jsx)(x.$T,{tone:"warning",children:"This store is not accepting orders right now. Your cart is saved for when it reopens."}),U.error&&"NETWORK"===U.error.code&&(0,r.jsx)(x.$T,{tone:"warning",action:(0,r.jsx)(l.A,{color:"inherit",size:"small",loading:U.loading,onClick:U.refresh,children:"Retry"}),children:"We couldn't re-check prices just now — showing your last known prices."})]}),z,(0,r.jsx)(a.A,{sx:{borderTop:"1px solid",borderColor:"divider",pt:3},children:(0,r.jsx)(u.A,{href:"/store",children:(0,r.jsxs)(o.A,{href:"/store",underline:"hover",color:"secondary",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[(0,r.jsx)(c.A,{fontSize:"small","aria-hidden":!0}),"Keep shopping"]})})})]}),(0,r.jsx)(a.A,{width:{xs:"100%",lg:400},flexShrink:0,children:(0,r.jsx)(v,{subtotalCents:G,freeShippingThresholdCents:n?.freeShippingThreshold??null,shippingRequired:U.cart?.shippingRequired??!0,checkoutDisabled:H,checkoutDisabledReason:W})})]}):(0,r.jsxs)(a.A,{component:"ul",m:0,p:0,mt:4.5,"aria-busy":!0,children:[(0,r.jsx)(x.Ud,{}),(0,r.jsx)(x.Ud,{})]})]}),Y&&(0,r.jsxs)(a.A,{sx:{display:{xs:"flex",lg:"none"},position:"fixed",left:0,right:0,bottom:0,zIndex:10,alignItems:"center",gap:2,px:2,py:1.5,backgroundColor:"background.paper",color:"text.primary",borderTop:"1px solid",borderColor:"divider",boxShadow:"0 -8px 24px rgba(0,0,0,0.08)"},children:[(0,r.jsxs)(a.A,{flex:1,minWidth:0,children:[(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.7},children:"Total"}),(0,r.jsx)(x.i7,{component:"p",children:(0,p.A)(G)})]}),(0,r.jsx)(a.A,{flexShrink:0,children:(0,r.jsx)(b.Action,{emphasis:"primary",text:"Checkout",href:H?void 0:"/checkout",disabled:H})})]})]})}function P(e){let{names:t}=e,n=1===t.length?`${t[0]} is no longer available, so we removed it from your cart.`:`${t.join(", ")} are no longer available, so we removed them from your cart.`;return(0,r.jsx)(x.$T,{tone:"warning",children:n})}},22285:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(30003),i=n(80787);function a(e,t){return(0,r.rp)(t,[e.palette.text.primary,e.palette.text.secondary,i.e2,i._R])}},24910:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(6029),i=n(71024),a=n.n(i),l=n(55729),o=n(21425);let s=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(46049),n.e(94638),n.e(16407)]).then(n.bind(n,25025)),{loadableGenerated:{webpack:()=>[25025]}}),d=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(66898),n.e(69266),n.e(49973)]).then(n.bind(n,32742)),{loadableGenerated:{webpack:()=>[32742]}}),c=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(32465),n.e(19432)]).then(n.bind(n,57224)),{loadableGenerated:{webpack:()=>[57224]}}),u=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(11835),n.e(53431),n.e(22582)]).then(n.bind(n,71038)),{loadableGenerated:{webpack:()=>[71038]}}),p=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(27011),n.e(21977),n.e(99156),n.e(31832),n.e(9965)]).then(n.bind(n,98870)),{loadableGenerated:{webpack:()=>[98870]}}),h=a()(()=>Promise.all([n.e(25979),n.e(4654),n.e(27011),n.e(36897),n.e(21977),n.e(88348)]).then(n.bind(n,48924)),{loadableGenerated:{webpack:()=>[48924]}}),m=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(2818),n.e(21977),n.e(19893),n.e(84240),n.e(2004)]).then(n.bind(n,663)),{loadableGenerated:{webpack:()=>[663]}}),x=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(61598),n.e(50912),n.e(95477),n.e(89805)]).then(n.bind(n,15343)),{loadableGenerated:{webpack:()=>[15343]}}),f=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(21977),n.e(33881),n.e(43297),n.e(84272)]).then(n.bind(n,36952)),{loadableGenerated:{webpack:()=>[36952]}}),g=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(23475),n.e(27011),n.e(21977),n.e(2610),n.e(8603),n.e(28274),n.e(24324)]).then(n.bind(n,67812)),{loadableGenerated:{webpack:()=>[67812]}}),b=a()(()=>Promise.all([n.e(27011),n.e(21977),n.e(36504)]).then(n.bind(n,60759)),{loadableGenerated:{webpack:()=>[60759]}});
1function y(e){let{config:t}=(0,l.useContext)(o.Q);switch(t.template){case"jaguar":return(0,r.jsx)(s,{...e});case"sleek":return(0,r.jsx)(x,{...e});case"professional":return(0,r.jsx)(f,{...e});case"bold":return(0,r.jsx)(g,{...e});case"boxy":return(0,r.jsx)(d,{...e});case"modern":return(0,r.jsx)(c,{...e});case"sunrise":return(0,r.jsx)(u,{...e});case"eclectic":return(0,r.jsx)(p,{...e});case"friendly":return(0,r.jsx)(h,{...e});case"lux":return(0,r.jsx)(m,{...e});default:return(0,r.jsx)(b,{...e})}}},26481:(e,t,n)=>{function r(e){return Array.isArray(e)?e[0]:e}function i(e){let t=r(e);if(void 0===t||!/^\d+$/.test(t))return 1;let n=Number(t);return Number.isSafeInteger(n)&&n>=1?n:1}function a(e){return e.toLowerCase().normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function l(e,t){let n=r(e);if(!n)return null;if(t.some(e=>e.id===n))return n;let i=a(n);return i?t.find(e=>a(e.name)===i)?.id??null:null}function o(e){let t=new URLSearchParams;e.category&&t.set("category",a(e.category.name)||e.category.id),e.page&&e.page>1&&t.set("page",String(e.page));let n=t.toString();return n?`/store?${n}`:"/store"}n.d(t,{NL:()=>i,P7:()=>l,PD:()=>o})},29883:(e,t,n)=>{n.d(t,{A:()=>T});var r=n(6029),i=n(55729),a=n(90798),l=n(4473),o=n(83451),s=n(17745),d=n(32559),c=n(21425),u=n(77103),p=n(5254);let h={good:"success",warn:"warning",bad:"error"},m={neutral:10,good:16,warn:18,bad:14};function x(e){let{badges:t}=e,{radii:n}=(0,p.A)();return t.length?(0,r.jsx)(s.A,{direction:"row",flexWrap:"wrap",useFlexGap:!0,spacing:1,role:"list","aria-label":"Order status",children:t.map(e=>(0,r.jsx)(a.A,{role:"listitem",sx:t=>({px:1.5,py:.5,borderRadius:`${n.pill}px`,backgroundColor:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return`color-mix(in srgb, ${"neutral"===t?"currentColor":e.palette[h[t]].main} ${n}%, transparent)`}(t,e.tone,m[e.tone])}),children:(0,r.jsx)(d.A,{variant:"body2",fontWeight:600,component:"span",children:e.label})},e.label))}):null}var f=n(15374),g=n(83070);function b(e){return"LOCAL_PICKUP"===e?"PICKUP":"LOCAL_DELIVERY"===e?"DELIVERY":"SHIPPING"}function y(e){return(0,g.Gp)(e)??""}function A(e,t){let n=e.events.filter(e=>e.type===t);return n.length?n[n.length-1].occurredAt:void 0}function j(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"PICKUP"===e?"You'll pay when you collect it.":"DELIVERY"===e?"You'll pay at delivery.":t?"Payment is still due — we'll arrange it with you directly.":"We'll arrange payment with you directly before it ships."}function v(e){return"ONLINE"===e?" It can take 5–10 business days to show on your statement.":""}function E(e){let t=b(e);return"PICKUP"===t?"Local pickup":"DELIVERY"===t?"Local delivery":"Shipping"}function w(e){let{events:t,shippingMethod:n}=e,{radii:i}=(0,p.A)(),l=[...t].sort((e,t)=>new Date(t.occurredAt).getTime()-new Date(e.occurredAt).getTime());if(!l.length)return null;let o=i.card>=8?"50%":0;return(0,r.jsx)(s.A,{component:"ol",spacing:2,sx:{listStyle:"none",m:0,p:0},children:l.map(e=>{var t;return(0,r.jsxs)(s.A,{component:"li",direction:"row",spacing:1.5,alignItems:"flex-start",children:[(0,r.jsx)(a.A,{"aria-hidden":!0,sx:{width:12,height:12,mt:"5px",flexShrink:0,borderRadius:o,backgroundColor:"secondary.main"}}),(0,r.jsxs)(a.A,{children:[(0,r.jsx)(d.A,{variant:"body2",fontWeight:600,children:function(e,t){switch(e){case"PLACED":return"Order placed";case"PAID":return"Payment received";case"FULFILLED":{let e=b(t);if("PICKUP"===e)return"Ready for pickup";if("DELIVERY"===e)return"Out for delivery";return"Shipped"}case"REFUNDED":return"Refund issued";case"CANCELED":return"Order canceled";case"EXPIRED":return"Order expired";default:return e}}(e.type,n)}),(0,r.jsx)(d.A,{variant:"caption",component:"time",dateTime:e.occurredAt,sx:{opacity:.6},suppressHydrationWarning:!0,children:(t=e.occurredAt,(0,g.TU)(t)??"")})]})]},`${e.type}-${e.occurredAt}`)})})}function C(e){let{title:t,children:n}=e;return(0,r.jsxs)(s.A,{spacing:1,children:[(0,r.jsx)(d.A,{variant:"overline",component:"h2",children:t}),n]})}function k(e){let t,n,{order:i}=e,a=b(i.shippingMethod),l=i.fulfillments.length?i.fulfillments[i.fulfillments.length-1]:void 0,o="FULFILLED"===i.fulfillmentStatus,c="PLACED"===i.status||"PENDING_PAYMENT"===i.status;if("PICKUP"===a)t=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.A,{variant:"body1",children:o?"Ready to collect.":"We'll let you know 
1when it's ready to collect."}),i.pickupNotes&&(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.75,whiteSpace:"pre-line"},children:i.pickupNotes})]});else if(o&&l){let e=y(l.fulfilledAt);t=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.A,{variant:"body1",suppressHydrationWarning:!0,children:["DELIVERY"===a?"Out for delivery":"Shipped",e?` ${e}`:"",l.carrier?` with ${l.carrier}`:""]}),l.trackingNumber&&(0,r.jsxs)(d.A,{variant:"body2",sx:{opacity:.75},children:["Tracking: ",l.trackingUrl?(0,r.jsx)(f.A,{href:l.trackingUrl,target:"_blank",rel:"noopener noreferrer",color:"inherit",children:l.trackingNumber}):l.trackingNumber]})]})}else t=(0,r.jsx)(d.A,{variant:"body1",children:c?"DELIVERY"===a?"We'll deliver it locally once it's packed.":"We'll add tracking here once it ships.":"Not shipped."});let u="IN_PERSON"===i.paymentMethod;if("UNPAID"===i.paymentStatus)n=c?u?"PICKUP"===a?"Pay in person when you collect.":"DELIVERY"===a?"Pay in person at delivery.":"Pay in person — we'll arrange it with you.":"Card payment pending.":"No payment was taken.";else{let e=u?"Paid in person":"Paid online by card";n="REFUNDED"===i.paymentStatus?`${e} — refunded in full.`:"PARTIALLY_REFUNDED"===i.paymentStatus?`${e} — partially refunded.`:`${e}.`}return(0,r.jsxs)(s.A,{spacing:4,children:[i.customerName&&(0,r.jsx)(C,{title:"PICKUP"===a?"Collecting":"Going to",children:(0,r.jsx)(d.A,{variant:"body1",children:i.customerName})}),(0,r.jsx)(C,{title:E(i.shippingMethod),children:t}),(0,r.jsx)(C,{title:"Payment",children:(0,r.jsx)(d.A,{variant:"body1",children:n})}),(0,r.jsx)(C,{title:"Progress",children:(0,r.jsx)(w,{events:i.events,shippingMethod:i.shippingMethod})})]})}var I=n(95143),S=n(75466);function N(e){let{label:t,value:n}=e;return(0,r.jsxs)(s.A,{direction:"row",justifyContent:"space-between",spacing:2,children:[(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.75},children:t}),(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.75},textAlign:"right",children:n})]})}function P(e){let{order:t,title:n,totalLabel:i}=e,{Panel:l}=(0,p.A)(),{currency:o}=t,c="PICKUP"===b(t.shippingMethod)?"Pickup":E(t.shippingMethod),u=0===t.shippingAmount?"Free":(0,S.A)(t.shippingAmount,o);return(0,r.jsxs)(l,{sx:{p:0,overflow:"hidden"},children:[(0,r.jsx)(a.A,{sx:{px:3,py:2.5,borderBottom:"1px solid",borderColor:"divider"},children:(0,r.jsx)(d.A,{variant:"overline",component:"h2",children:n})}),(0,r.jsx)(s.A,{component:"ul",sx:{listStyle:"none",m:0,px:3,py:1},divider:(0,r.jsx)(I.A,{component:"li"}),children:t.lines.map((e,t)=>{let n=e.quantity??1,i=n>1&&null!=e.unitPrice?`${(0,S.A)(e.unitPrice,o)} each`:null,l=[e.variantLabel,`qty ${n}`,i].filter(Boolean).join(" \xb7 ");return(0,r.jsxs)(s.A,{component:"li",direction:"row",alignItems:"center",spacing:2,sx:{py:2},children:[(0,r.jsxs)(a.A,{sx:{flex:1,minWidth:0},children:[(0,r.jsx)(d.A,{variant:"body1",fontWeight:600,children:e.name??"Item"}),(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.65},children:l})]}),(0,r.jsx)(d.A,{variant:"body1",fontWeight:600,children:(0,S.A)(e.lineTotal??(e.unitPrice??0)*n,o)})]},t)})}),(0,r.jsxs)(s.A,{spacing:1,sx:{px:3,py:2.5,borderTop:"1px solid",borderColor:"divider"},children:[(0,r.jsx)(N,{label:"Subtotal",value:(0,S.A)(t.subtotal,o)}),(0,r.jsx)(N,{label:c,value:u}),(0,r.jsx)(N,{label:"Tax",value:(0,S.A)(t.taxTotal,o)}),(0,r.jsx)(I.A,{sx:{my:1}}),(0,r.jsxs)(s.A,{direction:"row",justifyContent:"space-between",alignItems:"baseline",spacing:2,children:[(0,r.jsx)(d.A,{variant:"h6",component:"p",children:i}),(0,r.jsx)(d.A,{variant:"h5",component:"p",children:(0,S.A)(t.total,o)})]})]})]})}var R=n(51758);let T=function(e){let{publicToken:t,initial:n,successMode:h}=e,{Band:m,Heading:f,Action:g,maxWidth:E}=(0,p.A)(),{config:w}=(0,i.useContext)(c.Q),C=(0,i.useContext)(u.MI),{order:I,loadError:S,timedOut:N,polling:T,retry:L}=function(e,t,n){let{poll:r}=n,[a,l]=(0,i.useState)(t),[o,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)(!1),[u,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)(0),x=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(null!==t)return;let n=new AbortController;return(0,R.Rr)(e,n.signal).then(e=>{l(e),s(!1)}).catch(()=>{n.signal.aborted||s(!0)}),()=>n.abort()},[e,t,h]);let f=(0,i.useCallback)(()=>{s(!1),m(e=>e+1)},[]),g=r&&null!==a&&"PENDING_PAYMENT"===a.status&&!d;return(0,i.useEffect)(()=>
1{if(!g)return void p(!1);null===x.current&&(x.current=Date.now());let t=null,n=null,r=!1;p(!0);let i=()=>"undefined"==typeof document||"visible"===document.visibilityState,a=()=>{if(r||!i())return;let e=Date.now()-(x.current??Date.now());if(e>=18e4){c(!0),p(!1);return}t=setTimeout(o,e>=3e4?5e3:2e3)};async function o(){if(t=null,!r&&i()){n=new AbortController;try{let t=await (0,R.Rr)(e,n.signal);if(r)return;if(l(t),"PENDING_PAYMENT"!==t.status)return void p(!1)}catch{}finally{n=null}a()}}let s=()=>{i()?null!==t||n||o().catch(()=>void 0):null!==t&&(clearTimeout(t),t=null)};return document.addEventListener("visibilitychange",s),a(),()=>{r=!0,null!==t&&clearTimeout(t),n?.abort(),document.removeEventListener("visibilitychange",s)}},[g,e]),{order:a,loadError:o,timedOut:d,polling:u,retry:f}}(t,n,{poll:h}),O=I?.status==="PLACED";(0,i.useEffect)(()=>{C&&(O||h)&&C.attempt.read()?.publicToken===t&&C.clear()},[C,O,h,t]);let[_,D]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=C?.orders.read()?.find(e=>e.publicToken===t);D(e?.email??null)},[C,t]);let[M,U]=(0,i.useState)("idle"),$=(0,i.useCallback)(async()=>{let e=`${window.location.origin}/orders/${encodeURIComponent(t)}`;try{await navigator.clipboard.writeText(e),U("copied")}catch{U("failed")}},[t]);if((0,i.useEffect)(()=>{if("idle"===M)return;let e=setTimeout(()=>U("idle"),2500);return()=>clearTimeout(e)},[M]),!I)return(0,r.jsx)(m,{id:"order-status",children:(0,r.jsx)(o.A,{maxWidth:!1,sx:{maxWidth:E},children:S?(0,r.jsxs)(s.A,{spacing:3,sx:{maxWidth:640},children:[(0,r.jsx)(f,{as:"h1",eyebrow:"Your order",title:"We couldn't load this order",body:"Check your connection and try again. If it keeps happening, email us with the link you were sent."}),(0,r.jsx)(a.A,{children:(0,r.jsx)(g,{emphasis:"primary",text:"Try again",onClick:L})})]}):(0,r.jsxs)(s.A,{direction:"row",spacing:2,alignItems:"center",role:"status","aria-live":"polite",children:[(0,r.jsx)(l.A,{size:20,color:"inherit"}),(0,r.jsx)(d.A,{variant:"body1",children:"Loading your order…"})]})})});let G=function(e){var t;let n=b(e.shippingMethod),r="REFUNDED"===(t=e.paymentStatus)||"PARTIALLY_REFUNDED"===t;if("EXPIRED"===e.status)return{headline:"This order expired",body:"The checkout window closed before a payment came through, so nothing was charged. Your cart is still here if you'd like to start again.",totalLabel:"Not charged",primary:"CART",processing:!1};if("CANCELED"===e.status){if("UNPAID"===e.paymentStatus)return{headline:"Order canceled",body:"This order was canceled and nothing was charged. If that's a surprise, email us and we'll sort it out.",totalLabel:"Not charged",primary:"STORE",processing:!1};let t="We're sorry — we couldn't fulfil this order.";return{headline:"Order canceled",body:"REFUNDED"===e.paymentStatus?`${t} Your payment has been refunded in full.${v(e.paymentMethod)}`:"PARTIALLY_REFUNDED"===e.paymentStatus?`${t} Part of your payment has been refunded — see the timeline below — and we'll be in touch about the rest.${v(e.paymentMethod)}`:`${t} We'll be in touch about your refund — email us if you have any questions.`,totalLabel:"REFUNDED"===e.paymentStatus?"Refunded":"Paid",primary:"STORE",processing:!1}}if("PENDING_PAYMENT"===e.status)return"IN_PERSON"===e.paymentMethod?{headline:"Order received",body:`Thanks — we have your order. ${j(n)}`,totalLabel:"Due",primary:null,processing:!1}:e.successMode&&!e.pollingTimedOut?{headline:"Confirming your payment…",body:"This usually takes a few seconds. Keep this page open — it updates on its own.",totalLabel:"Total",primary:null,processing:!0}:{headline:e.pollingTimedOut?"Still confirming your payment":"Payment not completed",body:e.pollingTimedOut?"Your card may have been charged but the confirmation is taking longer than usual. Don't pay again — refresh in a minute, or email us with your order number.":"We haven't received a payment for this order yet. If you just paid, give it a moment and refresh; otherwise your cart is still here.",totalLabel:"Due",primary:e.pollingTimedOut?null:"CART",processing:!1};if("REFUNDED"===e.paymentStatus){let t=y(A(e,"REFUNDED"));return{headline:"Refunded",body:`Your payment was refunded in full${t?` on ${t}`:""}.${v(e.paymentMethod)}`,totalLabel:"Refunded",primary:"STORE",processing:!1}}let i=r||"PAID"===e.paymentStatus?"Paid":"Due",a="PARTIALLY_REFUNDED"===e.paymentStatus?" Part of this order was refunded — see the timeline below.":"",l="IN_PERSON"===e.paymentMethod&&"UNPAID"===e.paymentStatus?` ${j(n,"FULFILLED"===e.fulfillmentStatus)}`:"";if("FULFILLED"===e.fulfillmentStatus){let t=e.fulfillments.length?e.fulfillments[e.fulfillments.length-1]:void 0,r=y(t?.fulfilledAt??A(e,"FULFILLED"));if("PICKUP"===n)return{headline:"Ready for pickup",body:`Your order is packed and waiting${r?` since ${r}`:""}. Pickup details are below.${l}${a}`,totalLabel:i,primary:null,processing:!1};if("DELIVERY"===n)return{headline:"On its way",body:`Out for local delivery${r?` as of ${r}`:""}. We'll drop it off shortly.${l}${a}`,totalLabel:i,primary:null,processing:!1};let o=t?.carrier?` with ${t.carrier}`:"",s=t?.trackingNumber?" Tracking below — it can take a day before the carrier scans it.":"";return{headline:"On its way",body:`Shipped${r?` ${r}`:""}${o}.${s}${l}${a}`,totalLabel:i,primary:t?.trackingUrl?"TRACK":null,processing:!1}}let o=e.successMode?"Thanks — your order is in. ":"";return"PICKUP"===n?{headline:"We're getting it ready",body:`${o}We'll update this page when it's ready for pickup.${l}${a}`,totalLabel:i,primary:null,processing:!1}:{headline:"We're getting it ready",body:`${o}${"DELIVERY"===n?"We'll update this page when it's out for delivery.":"We'll add tracking here as soon as it ships."}${l}${a}`,totalLabel:i,primary:null,processing:!1}}({...I,successMode:h,pollingTimedOut:N}),F=function(e){let{header:t}=e;if(!t||"object"!=typeof t||!("email"in t))return null;let{email:n}=t;return n&&"object"==typeof n&&"link"in n&&"string"==typeof n.link&&n.link.replace(/^mailto:/i,"")||null}(w),B=F?`mailto:${F}?subject=${encodeURIComponent(`Order #${I.number}`)}`:null,W=function(e){let t,n=e?.trim();if(!n)return;let r=/^[a-z][a-z0-9+.-]*:/i.test(n)?n:`https://${n}`;try{t=new URL(r)}catch{return}if("http:"===t.protocol||"https:"===t.protocol)return t.toString()}(I.fulfillments.length?I.fulfillments[I.fulfillments.length-1].trackingUrl:void 0),H="PLACED"===I.status&&"REFUNDED"!==I.paymentStatus?"What's coming":"In this order";return(0,r.jsx)(m,{id:"order-status",children:(0,r.jsxs)(o.A,{maxWidth:!1,sx:{maxWidth:E},children:[(0,r.jsxs)(s.A,{spacing:3,sx:{maxWidth:640},children:[(0,r.jsx)(f,{as:"h1",eyebrow:`Order #${I.number}`,title:G.headline}),(0,r.jsx)(d.A,{variant:"body1",sx:{opacity:.72,lineHeight:1.6},suppressHydrationWarning:!0,children:G.body}),(0,r.jsx)(x,{badges:function(e){let t=[];switch(e.status){case"PENDING_PAYMENT":t.push({label:"Awaiting payment",tone:"warn"});break;case"PLACED":t.push({label:"Placed",tone:"good"});break;case"CANCELED":t.push({label:"Canceled",tone:"bad"});break;case"EXPIRED":t.push({label:"Expired",tone:"bad"})}switch(e.paymentStatus){case"PAID":t.push({label:"Paid",tone:"good"});break;case"PARTIALLY_REFUNDED":t.push({label:"Partially refunded",tone:"warn"});break;case"REFUNDED":t.push({label:"Refunded",tone:"neutral"});break;case"UNPAID":"PLACED"===e.status&&t.push({label:"Payment due",tone:"warn"})}if("PLACED"===e.status){let n=b(e.shippingMethod);"FULFILLED"===e.fulfillmentStatus?t.push({label:"PICKUP"===n?"Ready for pickup":"DELIVERY"===n?"Out for delivery":"Shipped",tone:"good"}):t.push({label:"Preparing",tone:"neutral"})}return t}(I)}),h&&O&&_&&(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.75},children:`Look for a confirmation email at ${function(e){let t=e.indexOf("@");return t<1?"•••":`${e[0]}•••${e.slice(t)}`}(_)} — it has a link back to this page.`}),G.processing&&(0,r.jsxs)(s.A,{direction:"row",spacing:1.5,alignItems:"center",role:"status","aria-live":"polite",children:[(0,r.jsx)(l.A,{size:18,color:"inherit"}),(0,r.jsx)(d.A,{variant:"body2",sx:{opacity:.75},children:T?"Checking with the payment provider…":"Paused — come back to this tab to keep checking."})]}),(0,r.jsxs)(s.A,{direction:{xs:"column",sm:"row"},spacing:1.5,useFlexGap:!0,flexWrap:"wrap",children:["TRACK"===G.primary&&W&&(0,r.jsx)(g,{emphasis:"primary",text:"Track this package",href:W}),"CART"===G.primary&&(0,r.jsx)(g,{emphasis:"primary",text:"Back to your cart",href:"/cart"}),"STORE"===G.primary&&(0,r.jsx)(g,{emphasis:"primary",text:"Back to the store",href:"/store"}),(0,r.jsx)(g,{emphasis:"secondary",text:"copied"===M?"Link copied":"failed"===M?"Couldn't copy — use the address bar":"Copy link to this order",onClick:$}),B&&(0,r.jsx)(g,{emphasis:"secondary",text:"Email us about this order",href:B})]})]}),(0,r.jsxs)(a.A,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"minmax(0, 1fr) 340px"},gap:{xs:4,md:5.5},alignItems:"flex-start",mt:{xs:4,md:5.5}},children:[(0,r.jsx)(P,{order:I,title:H,totalLabel:G.totalLabel}),(0,r.jsx)(a.A,{component:"aside","aria-label":"Delivery, payment and progress",children:(0,r.jsx)(k,{order:I})})]})]})})}},30003:(e,t,n)=>{n.d(t,{B_:()=>p,CT:()=>c,Od:()=>s,bJ:()=>o,nn:()=>d,rp:()=>u});var r=n(76568),i=n(49449),a=n(7124);function l(e,t,n){let r=[e,t,n].map(e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*r[0]+.7152*r[1]+.0722*r[2]}function o(e,t){let n=(0,a.E2)(e),r=(0,a.E2)(t);
1if(!n||!r)return null;let i=l(n.r,n.g,n.b),o=l(r.r,r.g,r.b);return(Math.max(i,o)+.05)/(Math.min(i,o)+.05)}let s=4;function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,r=o(e,t);return!!(r&&r>n)}function c(e,t){let n=(0,i.n)(t.map(t=>o(e,t))),r=Math.max(...n);return t[n.indexOf(r)]||t[0]}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;return t.find(t=>(o(e,t)||0)>n)||c(e,t)}function p(e,t){let n=t;return(t?.startsWith("rgb")&&(n=(0,r.Ob)(t)),!n||d(e.palette.text.primary,n))?e.palette.text.primary:e.palette.text.secondary}},30264:(e,t,n)=>{n.d(t,{AA:()=>i,I_:()=>p,PW:()=>h,RG:()=>s,S1:()=>u,kh:()=>d,zd:()=>c});let r=["LOCAL_PICKUP","LOCAL_DELIVERY","STANDARD_SHIPPING"];function i(e){return"string"==typeof e&&r.some(t=>t===e)}function a(e){if("string"!=typeof e.productVariantId||"number"!=typeof e.unitPrice)return null;let t="number"==typeof e.quantity?e.quantity:0;return{productVariantId:e.productVariantId,name:"string"==typeof e.name?e.name:"",variantLabel:"string"==typeof e.variantLabel&&e.variantLabel?e.variantLabel:null,unitPrice:e.unitPrice,quantity:t,lineTotal:"number"==typeof e.lineTotal?e.lineTotal:e.unitPrice*t,available:!1!==e.available,availableQuantity:"number"==typeof e.availableQuantity?e.availableQuantity:null}}function l(e){return i(e.method)&&"number"==typeof e.amount&&"number"==typeof e.total?{method:e.method,amount:e.amount,total:e.total}:null}function o(e){let t=[];return e.forEach(e=>{null!==e&&t.push(e)}),t}function s(e){return{lines:o(e.lines.map(a)),subtotal:e.subtotal,taxRate:"number"==typeof e.taxRate?e.taxRate:null,taxTotal:e.taxTotal,shippingRequired:e.shippingRequired,shippingOptions:o(e.shippingOptions.map(l)),pickupNotes:"string"==typeof e.pickupNotes&&e.pickupNotes?e.pickupNotes:null,acceptOnlinePayments:e.acceptOnlinePayments,acceptInPersonPayments:e.acceptInPersonPayments}}function d(e,t){if(!e.shippingRequired)return{subtotal:e.subtotal,taxTotal:e.taxTotal,shippingAmount:0,total:e.subtotal+e.taxTotal};let n=e.shippingOptions.find(e=>e.method===t);return n?{subtotal:e.subtotal,taxTotal:e.taxTotal,shippingAmount:n.amount,total:n.total}:null}function c(e){return"object"==typeof e&&null!==e&&"subtotal"in e&&"number"==typeof e.subtotal&&"taxTotal"in e&&"number"==typeof e.taxTotal&&"shippingAmount"in e&&"number"==typeof e.shippingAmount&&"total"in e&&"number"==typeof e.total}function u(e){let t=e.productVariantIds;if(Array.isArray(t))return t.filter(e=>"string"==typeof e);let n=e.productVariantId;return"string"==typeof n?[n]:[]}let p={LOCAL_PICKUP:"Local pickup",LOCAL_DELIVERY:"Local delivery",STANDARD_SHIPPING:"Shipping"},h={LOCAL_PICKUP:"Pickup",LOCAL_DELIVERY:"Local delivery",STANDARD_SHIPPING:"Shipping"}},32812:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(55729),i=n(81278),a=n(21425),l=n(63696);let o=()=>{let{config:e}=(0,r.useContext)(a.Q),{asPath:t}=(0,i.useRouter)()??{asPath:"/"},n=(0,r.useMemo)(()=>(0,l.lL)(e.thirdPartyIntegrations),[e.thirdPartyIntegrations]);return(0,r.useCallback)(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,l.lg)(t??"/");(0,l.sh)(e,{...r,page_path:i},n,i)},[n,t])}},35003:(e,t,n)=>{n.d(t,{G:()=>a,e:()=>i});var r=n(48879);let i="100vw",a={[r.b.MODERN_HERO]:i,[r.b.SUNRISE_HERO]:i,[r.b.BOXY_HERO]:i,[r.b.BOLD_HERO]:i,[r.b.BOLD_HERO_ALT]:"(min-width: 900px) 50vw, 100vw",[r.b.PROFESSIONAL_HERO]:i,[r.b.JAGUAR_HERO]:i,[r.b.JAGUAR_HERO_ALT]:"(min-width: 900px) 50vw, 100vw",[r.b.SLEEK_HERO]:"(min-width: 900px) 60vw, 100vw",[r.b.ECLECTIC_HERO]:"(min-width: 900px) 50vw, 100vw",[r.b.ECLECTIC_HERO_ALT]:i,[r.b.FRIENDLY_HERO]:"(min-width: 900px) 70vw, 100vw",[r.b.FRIENDLY_HERO_ALT]:"(min-width: 900px) 55vw, 100vw",[r.b.FRIENDLY_HERO_FORM]:i,[r.b.LUX_HERO]:i,[r.b.LUX_HERO_ALT]:"(min-width: 900px) 45vw, 100vw"}},35993:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(55729),i=function(e){return e.IDLE="IDLE",e.PUBLISHING="PUBLISHING",e.WAITING_ON_GENERATOR="WAITING_ON_GENERATOR",e.ERROR="ERROR",e.SUCCESS="SUCCESS",e.SUBDOMAIN_MESSAGE="SUBDOMAIN_MESSAGE",e.UNDER_CONSTRUCTION_MESSAGE="UNDER_CONSTRUCTION_MESSAGE",e}(i||{});let a=r.createContext({config:{},updateConfig:()=>{},publishState:i.IDLE,setPublishState:()=>{},screenProps:{screen:"Home"},navigate:()=>{},isPreview:!1,isEditingPreview:!1,setGlobalConfig:()=>{},configHasUnpublishedChanges:!1,setLastPublishedConfig:()=>{},configHasUnsavedChanges:!1,setConfigHasUnsavedChanges:()=>{},openPrevScreen:()=>{},includedSections:new Set,stockPhotos:[],requestDraftConfigSave:()=>{},adoptServerDraft:()=>!1})},36181:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6029),i=n(55729),a=n(95669),l=n.n(a),o=n(90798),s=n(21425),d=n(80787);function c(){let e=(0,i.useContext)(s.Q),t=e?.config?.colors?.primary??"#FFFFFF",n="#FFFFFF"===t?d._R:d.e2;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Page Not Found"}
1,"title"),(0,r.jsx)("meta",{name:"robots",content:"noindex, follow"},"robots")]}),(0,r.jsxs)(o.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",padding:"40px 20px",textAlign:"center",backgroundColor:t,color:n},children:[(0,r.jsx)(o.A,{component:"h1",sx:{fontSize:{xs:"36px",sm:"48px"},fontWeight:700,marginBottom:"16px",lineHeight:1.2},children:"Page Not Found"}),(0,r.jsxs)(o.A,{component:"p",sx:{fontSize:{xs:"16px",sm:"18px"},lineHeight:1.6,maxWidth:"600px",marginBottom:"24px"},children:["The page you're looking for doesn't exist or has been moved.",e?.config?(0,r.jsx)(r.Fragment,{children:"Please use the navigation menu above to find what you need."}):(0,r.jsx)(r.Fragment,{})]})]})]})}},44165:(e,t,n)=>{n.d(t,{Mw:()=>l,UX:()=>d,XI:()=>c,bH:()=>o,ps:()=>a,rR:()=>s});var r=n(74302);let i=/(?<hour>1[0-2]|0?[1-9]):(?<minutes>([0-5][0-9])|[0-9])\s*(?<amPm>[AaPp][mM]$)/,a=/^closed$/i,l=/appointment/i,o=/^24_hours$/i,s=()=>[{label:"Closed",value:"CLOSED"},{label:"By Appointment Only",value:"APPOINTMENT"},{label:"24 Hours",value:"24_HOURS"},...(e=>{let t=e??30,n=60/t;return Array.from({length:24*n}).map((e,r)=>{let i=Math.floor(r/n),a=((e,t,n)=>{let r=e%12;return 0===r&&(r=12),`${r}:${t.toLocaleString("en-US",{minimumIntegerDigits:2})} ${n?"PM":"AM"}`})(i,r%n*t,i>=12);return{label:a,value:a}})})()];function d(e){return!e||!i.test(e)&&!a.test(e)&&!l.test(e)&&!o.test(e)}function c(e){return r.W.some(t=>e[t].some(e=>d(e.open)||d(e.closed)))}},48227:(e,t,n)=>{n.d(t,{$T:()=>y,Ud:()=>A,fo:()=>p,i7:()=>m,jO:()=>f,sT:()=>h,uB:()=>b,zT:()=>x,zi:()=>g});var r=n(6029);n(55729);var i=n(7568),a=n(90798),l=n(95143),o=n(19997),s=n(32559),d=n(32690),c=n(5254),u=n(75466);function p(e){let{children:t,id:n}=e;return(0,r.jsx)(s.A,{variant:"overline",component:"p",id:n,sx:{opacity:.75,lineHeight:1.6},children:t})}function h(e){let{children:t}=e;return(0,r.jsx)(s.A,{variant:"h2",component:"h1",children:t})}function m(e){let{children:t,component:n="p",sx:i}=e;return(0,r.jsx)(s.A,{variant:"h4",component:n,sx:i,children:t})}function x(e){let{label:t,value:n,muted:i,emphasis:l}=e,o=l?m:s.A;return(0,r.jsxs)(a.A,{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:2,children:[(0,r.jsx)(o,{component:"span",sx:l?void 0:{opacity:.7},children:t}),(0,r.jsx)(o,{component:"span",sx:i?{opacity:.6}:void 0,children:n})]})}function f(e){let{my:t=2.75}=e;return(0,r.jsx)(l.A,{sx:{my:t}})}function g(e){let{src:t,alt:n,size:i}=e,l=(0,c.A)(),o="number"==typeof i?i:{xs:i.xs,md:i.md};return(0,r.jsx)(a.A,{sx:{width:o,height:o,flexShrink:0,borderRadius:`${l.radii.input}px`,overflow:"hidden",backgroundColor:"action.hover",display:"flex",alignItems:"center",justifyContent:"center"},children:t?(0,r.jsx)(a.A,{component:"img",src:t,alt:n,loading:"lazy",sx:{width:"100%",height:"100%",objectFit:"cover"}}):(0,r.jsx)(d.A,{sx:{fontSize:30,opacity:.35},"aria-hidden":!0})})}function b(e){let{name:t,meta:n,image:i,priceCents:l,flagged:o}=e;return(0,r.jsxs)(a.A,{display:"flex",gap:1.75,alignItems:"center",sx:o?{color:"error.main"}:void 0,children:[(0,r.jsx)(g,{src:i,alt:"",size:68}),(0,r.jsxs)(a.A,{flex:1,minWidth:0,children:[(0,r.jsx)(s.A,{fontWeight:600,noWrap:!0,children:t}),(0,r.jsx)(s.A,{variant:"body2",sx:{opacity:.65},children:n})]}),(0,r.jsx)(s.A,{fontWeight:600,flexShrink:0,children:(0,u.A)(l)})]})}function y(e){let{tone:t="info",children:n,action:a,id:l}=e,o=(0,c.A)();return(0,r.jsx)(i.A,{id:l,severity:t,role:"error"===t?"alert":"status",action:a,sx:{borderRadius:`${o.radii.input}px`,alignItems:"center","& .MuiAlert-action .MuiButton-root":{whiteSpace:"nowrap",minWidth:0}},children:n})}function A(){return(0,r.jsxs)(a.A,{display:"flex",gap:2.5,py:3,children:[(0,r.jsx)(o.A,{variant:"rounded",width:112,height:112}),(0,r.jsxs)(a.A,{flex:1,children:[(0,r.jsx)(o.A,{width:"50%",height:32}),(0,r.jsx)(o.A,{width:"30%"}),(0,r.jsx)(o.A,{width:"40%",height:44,sx:{mt:2}})]}),(0,r.jsx)(o.A,{width:72,height:32})]})}},48271:(e,t,n)=>{n.d(t,{A:()=>R});var r=n(6029),i=n(71024),a=n.n(i);n(55729);var l=n(90798),o=n(90923),s=n(87224),d=n(4473),c=n(27105),u=n(94054),p=n(17745),h=n(48482),m=n(32559),x=n(90931),f=n(57654),g=n(22285),b=n(9264);let y={Band:function(e){let{tone:t="base",backgroundColor:n,id:i,children:a,s
1x:o}=e,s=(0,x.A)(),d=n??("alt"===t?s.palette.action.hover:s.palette.primary.main);return(0,r.jsx)(l.A,{component:i?"section":"div",id:i,sx:[{backgroundColor:d,color:(0,g.A)(s,d),py:{xs:4,md:6}},...Array.isArray(o)?o:[o]],children:a})},Panel:function(e){let{tone:t="card",children:n,sx:i}=e,a=(0,x.A)();return(0,r.jsx)(l.A,{sx:[{backgroundColor:"tint"===t?a.palette.action.hover:a.palette.primary.main,border:`1px solid ${a.palette.divider}`,borderRadius:2,p:{xs:2,md:3}},...Array.isArray(i)?i:[i]],children:n})},Heading:function(e){let{eyebrow:t,title:n,body:i,align:a="left",as:l="h2"}=e;return(0,r.jsxs)(p.A,{spacing:1,alignItems:"center"===a?"center":"flex-start",textAlign:a,children:[t&&(0,r.jsx)(m.A,{variant:"overline",children:t}),n&&(0,r.jsx)(m.A,{variant:"h1"===l?"h2":"h4",component:l,children:n}),i&&(0,r.jsx)(m.A,{variant:"body1",sx:{color:"inherit",opacity:.8},children:i})]})},Action:function(e){let{emphasis:t,text:n,href:i,onClick:a,disabled:l,loading:s,fullWidth:c,type:u="button",ariaLabel:p,startIcon:h}=e,m=(0,r.jsx)(o.A,{variant:"primary"===t?"contained":"secondary"===t?"outlined":"text",color:"secondary",type:u,onClick:a,disabled:l||s,fullWidth:c,"aria-label":p,"aria-busy":s||void 0,startIcon:s?(0,r.jsx)(d.A,{size:16,color:"inherit"}):h,children:n});return i?(0,r.jsx)(f.A,{href:i,children:m}):m},ChipGroup:function(e){let{options:t,selectedId:n,onChange:i,allowAll:a,ariaLabel:l}=e;return(0,r.jsxs)(p.A,{direction:"row",flexWrap:"wrap",useFlexGap:!0,spacing:1,role:"group","aria-label":l,children:[a&&(0,r.jsx)(s.A,{label:"All",onClick:()=>i(null),color:null===n?"secondary":"default",variant:null===n?"filled":"outlined"}),t.map(e=>(0,r.jsx)(s.A,{label:e.label,disabled:e.disabled,onClick:()=>i(e.id),color:n===e.id?"secondary":"default",variant:n===e.id?"filled":"outlined",sx:e.soldOut?b.uQ:void 0,"aria-pressed":n===e.id,"aria-label":(0,b.Ez)(e)},e.id))]})},Overlay:function(e){let{onClose:t,children:n,labelledBy:i}=e,a=(0,x.A)();return(0,r.jsx)(u.A,{open:!0,onClose:t,"aria-labelledby":i,children:(0,r.jsx)(l.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"min(92vw, 560px)",maxHeight:"90vh",overflowY:"auto",backgroundColor:a.palette.primary.main,color:a.palette.text.primary,borderRadius:2,p:{xs:2.5,md:4},outline:"none"},children:n})})},FormText:function(e){let{id:t,label:n,type:i="text",value:a,onChange:l,required:o,disabled:s,error:d,helperText:c}=e;return(0,r.jsx)(h.A,{id:t,name:t,label:n,type:i,value:a,onChange:e=>l(e.target.value),required:o,disabled:s,error:d,helperText:c,fullWidth:!0})},FormSelect:function(e){let{id:t,label:n,value:i,options:a,onChange:l,required:o,disabled:s,error:d,helperText:u}=e;return(0,r.jsx)(h.A,{id:t,name:t,label:n,value:i,onChange:e=>l(e.target.value),required:o,disabled:s,error:d,helperText:u,select:!0,fullWidth:!0,children:a.map(e=>(0,r.jsx)(c.A,{value:e.value,children:e.label},e.value))})},radii:{card:12,input:8,pill:999},maxWidth:1200,stickyHeaderHeight:0};function A(e){let{children:t}=e;return(0,r.jsx)(b.tG.Provider,{value:y,children:t})}let j=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(62900),n.e(46049),n.e(42856),n.e(57033)]).then(n.bind(n,68300)),{loadableGenerated:{webpack:()=>[68300]}}),v=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(66898),n.e(69266),n.e(25267)]).then(n.bind(n,69266)),{loadableGenerated:{webpack:()=>[69266]}}),E=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(32465),n.e(29616)]).then(n.bind(n,32465)),{loadableGenerated:{webpack:()=>[32465]}}),w=a()(()=>Promise.all([n.e(61086),n.e(11835),n.e(53431),n.e(66202)]).then(n.bind(n,93847)),{loadableGenerated:{webpack:()=>[93847]}}),C=a()(()=>Promise.all([n.e(61086),n.e(27011),n.e(62900),n.e(61598),n.e(50912),n.e(1586),n.e(64811)]).then(n.bind(n,70650)),{loadableGenerated:{webpack:()=>[70650]}}),k=a()(()=>Promise.all([n.e(61086),n.e(33881),n.e(43297),n.e(88760)]).then(n.bind(n,43297)),{loadableGenerated:{webpack:()=>[43297]}}),I=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(23475),n.e(27011),n.e(62900),n.e(49893),n.e(78860)]).then(n.bind(n,85445)),{loadableGenerated:{webpack:()=>[85445]}}),S=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(98777),n.e(66038),n.e(73542),n.e(68496),n.e(27011),n.e(62900),n.e(8839),n.e(33579),n.e(99156),n.e(14827)]).then(n.bind(n,17482)),{loadableGenerated:{webpack:()=>[17482]}}),N=a()(()=>Promise.all([n.e(61086),n.e(25979),n.e(4654),n.e(36897),n.e(7818),n.e(14745),n.e(77828)]).then(n.bind(n,94925)),{loadableGenerated:{webpack:()=>[94925]}}),P=a()(()=>Promise.all([n.e(61086),n.e(2818),n.e(19893),n.e(84240),n.e(78300)]).then(n.bind(n,47621)),{loadableGenerated:{webpack:()=>[47621]}});function R(e){let{template:t,children:n}=e;switch(t){case"jaguar":return(0,r.jsx)(j,{children:n});case"boxy":return(0,r.jsx)(v,{children:n});case"modern":return(0,r.jsx)(E,{children:n});case"sunrise":return(0,r.jsx)(w,{children:n});case"sleek":return(0,r.jsx)(C,{children:n});case"professional":return(0,r.jsx)(k,{children:n});case"bold":return(0,r.jsx)(I,{children:n});case"eclectic":return(0,r.jsx)(S,{children:n});case"friendly":return(0,r.jsx)(N,{children:n});case"lux":return(0,r.jsx)(P,{children:n});default:return(0,r.jsx)(A,{children:n})}}}
1,49449:(e,t,n)=>{n.d(t,{n:()=>r});let r=e=>e.filter(e=>null!=e&&""!==e&&0!==e&&!1!==e)},51758:(e,t,n)=>{n.d(t,{Ho:()=>o,Rr:()=>d,t9:()=>i,xB:()=>s});var r=n(78795);class i extends Error{constructor(e,t,n,r={}){super(n),this.name="CheckoutApiError",this.code=e,this.status=t,this.details=r}}async function a(e){var t;let n={};try{let t=await e.json();(0,r.u4)(t)&&(n=t)}catch{}if(400===e.status&&"string"==typeof n.message&&/origin/i.test(n.message))return new i("ORIGIN_REJECTED",400,n.message,n);let a="string"==typeof(t=n.code)&&t.length>0?n.code:"NETWORK",l="string"==typeof n.message?n.message:`Request failed (${e.status}).`;return new i(a,e.status,l,n)}async function l(e,t){let n;try{n=await fetch(`${function(){let e=globalThis.apiRoot;if("string"!=typeof e||!e)throw new i("NETWORK",0,"API root is not configured.");return e}()}/commerce-api${e}`,{...t,signal:AbortSignal.timeout(15e3),headers:{Accept:"application/json",...t.headers}})}catch(e){if(e instanceof i)throw e;throw new i("NETWORK",0,"Could not reach the store. Check your connection and try again.")}if(!n.ok)throw await a(n);return n.json()}function o(e,t){let n=new URLSearchParams({orgId:e.orgId});return e.lines.forEach(e=>n.append("line",`${e.variantId}:${e.quantity}`)),e.state&&n.set("state",e.state),e.zip&&n.set("zip",e.zip),l(`/public/checkout-options?${n.toString()}`,{method:"GET",signal:t})}function s(e){return l("/public/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function d(e,t){return l(`/public/orders/${encodeURIComponent(e)}/status`,{method:"GET",signal:t})}},57263:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(6029),i=n(95669),a=n.n(i);function l(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:"Temporarily Unavailable"}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsxs)("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#eef2fa",color:"#16325c",fontFamily:'system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"'},children:[(0,r.jsxs)("main",{style:{maxWidth:800,textAlign:"center",padding:"0 24px"},children:[(0,r.jsx)("h1",{style:{fontSize:28,fontWeight:700,margin:"0 0 16px 0"},children:"Sorry, this website is temporarily unavailable."}),(0,r.jsx)("p",{style:{fontSize:18,lineHeight:1.6,margin:0},children:"If you're the owner of this domain, please contact your customer service representative to get your website back online."}),(0,r.jsx)("p",{style:{fontSize:14,marginTop:16,color:"#354a6b"},children:"We're available for email support 24/7."})]}),(0,r.jsx)("footer",{style:{width:"100%",position:"absolute",bottom:0,left:0,right:0,padding:"16px 24px",backgroundColor:"#16325c",color:"#ffffff",textAlign:"left",boxSizing:"border-box"},children:(0,r.jsxs)("div",{style:{fontSize:12,opacity:.95},children:["Copyright \xa9"," ",new Date().getFullYear()," ","All Rights Reserved."]})})]})]})}},57654:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(6029),i=n(82203),a=n.n(i),l=n(55729),o=n(77079),s=n(35993),d=n(13558),c=n(67110);function u(e){let{children:t,href:n}=e,{editorActive:i,setEditorActiveRoute:u}=(0,l.useContext)(o.n),p=(0,l.useContext)(s.p),h=globalThis?.shouldUseNextLink??!1,m=i?(0,c.fQ)(n):null;return h&&!m?(0,r.jsx)(a(),{href:n,legacyBehavior:!0,passHref:!0,children:t}):l.cloneElement(t,{href:n,onClick:e=>{m&&(e.preventDefault(),u({route:m}),(0,d.A)((0,c.l7)(m),p));let n=t.props.onClick;n?.(e)}})}},63696:(e,t,n)=>{n.d(t,{eW:()=>o,lL:()=>a,lg:()=>i,qJ:()=>d,sh:()=>c,zO:()=>s});let r=/^(G|AW)-[A-Z0-9]+$/i,i=e=>e.split("?")[0].split("/index.html")[0],a=e=>(e??[]).filter(e=>"GOOGLE_ANALYTICS"===e.type),l=(e,t)=>e.trackingPages.includes("*")||e.trackingPages.includes(t),o=e=>{let t=new Set;for(let n of e??[])!n.disabled&&"global"===n.scope&&r.test(n.trackingId)&&t.add(n.trackingId);return Array.from(t)},s=(e,t)=>{let n=new Set;for(let i of e??[])!i.disabled&&"global"===i.scope&&r.test(i.trackingId)&&l(i,t)&&n.add(i.trackingId);return Array.from(n)},d=e=>e.filter(e=>e.toUpperCase().startsWith("G-")),c=(e,t,n,r)=>{if("function"!=typeof window.gtag)return;let i=d(s(n,r));if(0===i.length)return;let a=Object.fromEntries(Object.entries(t).filter(e=>{let[,t]=e;return void 0!==t}));window.gtag("event",e,{...a,send_to:i})}},67110:(e,t,n)=>{function r(e){let t=e.split("?")[0];if(!t.startsWith("/store/"))return null;let n=t.slice(7);if(!n||n.includes("/"))return null;try{return decodeURIComponent(n)}catch{return null}}function i(e){let t=e.split("#")[0].split("?")[0];if(!t.startsWith("/orders/"))return null;let n=t.slice(8);if(!n||n.includes("/"))return null;try{return decodeURIComponent(n)}catch{return null}}function a(e){if(!e.startsWith("/"))return null;let t=e.split("#")[0],n=t.split("?")[0];return"/store"===n||"/cart"===n||"/checkout"===n?t:r(n)?n:i(n)?t:null}function l(e){return r(e)?"/store":i(e)?"/orders":e.split("?")[0]}n.d(t,{fQ:()=>a,fr:()=>r,l7:()=>l,yb:()=>i})},72387:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(6029),i=n(55729),a=n(56760);
1let l={checkingBackground:"#ffffff",background:"#eef2fa",primary:"#16325c",secondary:"#354a6b",white:"#ffffff",error:"#dc2626"},o=()=>(0,r.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:l.secondary,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),(0,r.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}),(0,r.jsx)("circle",{cx:"12",cy:"16",r:"1",fill:l.secondary})]}),s=()=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,r.jsx)("polyline",{points:"12 5 19 12 12 19"})]}),d={overlay:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:l.background,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:99999,fontFamily:"system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif"},container:{maxWidth:600,width:"90%",textAlign:"center",padding:"0 24px"},iconWrapper:{marginBottom:24},title:{margin:0,marginBottom:12,fontSize:36,fontWeight:400,color:l.primary,letterSpacing:"-0.5px"},subtitle:{margin:0,marginBottom:40,fontSize:16,color:l.secondary},form:{display:"flex",alignItems:"center",maxWidth:400,margin:"0 auto",backgroundColor:l.white,borderRadius:4,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.08)",overflow:"hidden"},input:{flex:1,padding:"16px 20px",fontSize:16,border:"none",outline:"none",backgroundColor:"transparent",color:l.primary},button:{padding:"16px 20px",backgroundColor:"transparent",border:"none",cursor:"pointer",color:l.secondary,display:"flex",alignItems:"center",justifyContent:"center",transition:"color 0.2s"},buttonDisabled:{padding:"16px 20px",backgroundColor:"transparent",border:"none",cursor:"not-allowed",color:"#a0aec0",display:"flex",alignItems:"center",justifyContent:"center"},error:{color:l.error,fontSize:14,marginTop:16,marginBottom:0}},c=function(e){let{password:t,storageKey:n}=e,[c,u]=(0,i.useState)(null),[p,h]=(0,i.useState)(""),[m,x]=(0,i.useState)("");(0,i.useLayoutEffect)(()=>{try{let e=localStorage.getItem(n);u("true"===e)}catch{u(!1)}},[n]);let f=(0,i.useCallback)(e=>{if(e.preventDefault(),p)if(x(""),p===t){u(!0);try{localStorage.setItem(n,"true")}catch{}}else x("Incorrect password. Please try again.")},[p,t,n]);if(!0===c)return null;let g=!1===c,b=null===c,y=(0,r.jsx)("div",{style:{...d.overlay,backgroundColor:b?l.checkingBackground:l.background},"aria-busy":b,"aria-label":g?"Password required":"Checking access",children:g&&(0,r.jsxs)("div",{style:d.container,children:[(0,r.jsx)("div",{style:d.iconWrapper,children:(0,r.jsx)(o,{})}),(0,r.jsx)("h1",{style:d.title,children:"This content is protected."}),(0,r.jsx)("p",{style:d.subtitle,children:"To view, please enter the password."}),(0,r.jsxs)("form",{style:d.form,onSubmit:f,children:[(0,r.jsx)("input",{type:"password",style:d.input,placeholder:"Enter password",value:p,onChange:e=>h(e.target.value),autoFocus:!0}),(0,r.jsx)("button",{type:"submit",style:p?d.button:d.buttonDisabled,disabled:!p,"aria-label":"Submit password",children:(0,r.jsx)(s,{})})]}),m&&(0,r.jsx)("p",{style:d.error,children:m})]})});return"undefined"==typeof document?y:(0,a.createPortal)(y,document.body)}},72835:(e,t,n)=>{n.d(t,{A:()=>Q});var r=n(6029),i=n(55729),a=n(90798),l=n(90923),o=n(75614),s=n(15374),d=n(19997),c=n(17745),u=n(32559),p=n(22878),h=n(57654),m=n(75466),x=n(16259),f=n(18658),g=n(5254),b=n(48227);function y(e){let{label:t,id:n,children:i,first:l}=e;return(0,r.jsxs)(a.A,{component:"section","aria-labelledby":`${n}-label`,mt:l?4:3.5,children:[(0,r.jsx)(b.fo,{id:`${n}-label`,children:t}),(0,r.jsx)(a.A,{mt:1.5,children:i})]})}function A(e){let{form:t,errors:n,setField:i,disabled:a}=e,l=(0,g.A)();return(0,r.jsx)(y,{label:"Contact",id:"contact",first:!0,children:(0,r.jsxs)(c.A,{spacing:1.5,children:[(0,r.jsx)(l.FormText,{id:"checkout-name",label:"Full name",value:t.name,onChange:e=>i("name",e),error:!!n.name,helperText:n.name,required:!0,disabled:a}),(0,r.jsx)(l.FormText,{id:"checkout-email",label:"Email",type:"email",value:t.email,onChange:e=>i("email",e),error:!!n.email,helperText:n.email,required:!0,disabled:a}),(0,r.jsx)(l.FormText,{id:"checkout-phone",label:"Phone (optional)",type:"tel",value:t.phone,onChange:e=>i("phone",e),error:!!n.phone,helperText:n.phone,disabled:a})]})})}function j(e){let{from:t,to:n}=e;return(0,r.jsxs)(u.A,{component:"span",sx:{whiteSpace:"nowrap"},children:[(0,r.jsx)(u.A,{component:"s",sx:{opacity:.6},children:(0,m.A)(t)})," → ",(0,r.jsx)(u.A,{component:"strong",fontWeight:700,children:(0,m.A)(n)})]})}function v(e){let{issue:t,siteOrigin:n,onDismiss:a,onPayInPerson:o,onRetry:d}=e,c=(0,r.jsx)(l.A,{color:"inherit",size:"small",onClick:a,children:"OK"});switch(t.kind){case"TOTALS_CHANGED":return(0,r.jsxs)(b.$T,{tone:"warning",action:c,children:[(0,r.jsxs)(u.A,{component:"span",fontWeight:600,children:["Your total changed: ",(0,r.jsx)(j,{from:t.previous.total,to:t.fresh.total})]}),function(e,t){let n=[];return(e.subtotal!==t.subtotal&&n.push({label:"items",from:e.subtotal,to:t.subtotal}),e.shippingAmount!==t.shippingAmount&&n.push({label:"shipping",from:e.shippingAmount,to:t.shippingAmount}),e.taxTotal!==t.taxTotal&&n.push({label:"tax",from:e.taxTotal,to:t.taxTotal}),0===n.length)?null:(0,r.jsxs)(r.Fragment,{children:[" (",n.map((e,t)=>(0,r.jsxs)(i.Fragment,{children:[t>0&&", ",`${e.label} `,(0,r.jsx)(j,{from:e.from,to:e.to})]},e.label)),")"]})}(t.previous,t.fresh),". The summary has been updated — review it and place your order again."]});case"CHECKOUT_EXPIRED":return(0,r.jsx)(b.$T,{tone:"warning",action:c,children:"Your checkout window ran out before the payment went through, so nothing was charged. We've re-checked prices and availability — review the summary and place your order again."});case"ITEMS_UNAVAILABLE":return(0,r.jsx)(b.$T,{tone:"error",action:(0,r.jsx)(h.A,{href:"/cart",children:(0,r.jsx)(l.A,{color:"inherit",size:"small",children:"Edit c
1art"})}),children:"Some items in your cart are no longer available in those quantities. They're marked in the summary — adjust them in your cart to continue."});case"ITEMS_REMOVED":return(0,r.jsx)(b.$T,{tone:"warning",action:c,children:1===t.names.length?`${t.names[0]} is no longer available, so we removed it from your order.`:`${t.names.join(", ")} are no longer available, so we removed them from your order.`});case"ORIGIN_REJECTED":return(0,r.jsxs)(b.$T,{tone:"error",children:["Checkout is only available on this site's main address.",n&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(s.A,{href:`${n}/checkout`,color:"inherit",children:"Continue there"}),"."]})]});case"PAYMENTS_UNAVAILABLE":return(0,r.jsx)(b.$T,{tone:"error",action:t.canPayInPerson?(0,r.jsx)(l.A,{color:"inherit",size:"small",onClick:o,children:"Pay in person instead"}):(0,r.jsx)(l.A,{color:"inherit",size:"small",onClick:d,children:"Try again"}),children:t.canPayInPerson?"Card payments aren't available right now. You can still place the order and pay in person.":"Card payments aren't available right now. Please try again in a moment."});case"STORE_DISABLED":return(0,r.jsx)(b.$T,{tone:"warning",children:"This store is not accepting orders right now."});case"RECHECKED":return(0,r.jsx)(b.$T,{tone:"info",action:c,children:"Your cart was re-checked — prices and availability are current."});case"NETWORK":return(0,r.jsx)(b.$T,{tone:"error",action:(0,r.jsx)(l.A,{color:"inherit",size:"small",onClick:d,children:"Try again"}),children:t.message});default:return(0,r.jsx)(b.$T,{tone:"error",action:c,children:t.message})}}var E=n(30264),w=n(19044);function C(e){let{deadline:t,onExpire:n,now:l=Date.now}=e,[o,s]=(0,i.useState)(()=>t-l()),d=(0,i.useRef)(n);d.current=n;let c=(0,i.useRef)(null);(0,i.useEffect)(()=>{s(t-l());let e=setInterval(()=>{let e=t-l();s(e),e<=0&&c.current!==t&&(c.current=t,d.current())},1e3);return()=>clearInterval(e)},[t,l]);let p=o>0&&o<=6e4;return(0,r.jsxs)(a.A,{display:"flex",alignItems:"center",justifyContent:"center",gap:.75,sx:{mt:2,opacity:p?1:.65,color:p?"warning.main":"inherit"},"aria-live":"polite","aria-atomic":!0,"data-testid":"checkout-countdown",children:[(0,r.jsx)(w.A,{sx:{fontSize:15},"aria-hidden":!0}),(0,r.jsx)(u.A,{variant:"body2",component:"span",children:o<=0?"Re-checking your cart…":`${function(e){let t=Math.max(0,Math.ceil(e/1e3)),n=Math.floor(t/60);return`${n}:${(t%60).toString().padStart(2,"0")}`}(o)} left to finish`})]})}function k(e){let{lines:t,priced:n,loading:i,shippingMethod:l,totals:o,unavailableIds:s,ctaText:p,ctaDisabled:h,ctaLoading:x,onCta:f,showCta:y,deadline:A,onCountdownExpire:j,notice:v}=e,w=(0,g.A)(),k=new Map(n?.lines.map(e=>[e.productVariantId,e])??[]),I=n&&!n.shippingRequired?"Shipping":l?E.PW[l]:"Shipping",S=n&&!n.shippingRequired?"Not needed":o?0===o.shippingAmount?"Free":(0,m.A)(o.shippingAmount):"Choose an option",N=n?.taxRate?`Tax (${n.taxRate}%)`:"Tax";return(0,r.jsxs)(a.A,{"aria-busy":i||void 0,sx:{opacity:i?.8:1,transition:"opacity 120ms"},children:[(0,r.jsx)(b.i7,{component:"h2",children:"Order summary"}),(0,r.jsx)(c.A,{spacing:2.25,component:"ul",sx:{listStyle:"none",p:0,mx:0,mb:0,mt:4},children:t.map(e=>{let t=k.get(e.variantId)??null,n=[e.variantLabel,`qty ${e.quantity}`].filter(Boolean).join(" \xb7 ");return(0,r.jsx)("li",{children:(0,r.jsx)(b.uB,{name:e.name,meta:s.includes(e.variantId)?`${n} \xb7 unavailable`:n,image:e.image,priceCents:t?.lineTotal??e.unitPriceCents*e.quantity,flagged:s.includes(e.variantId)})},e.variantId)})}),(0,r.jsx)(b.jO,{my:3}),n?(0,r.jsxs)(c.A,{spacing:1.5,children:[(0,r.jsx)(b.zT,{label:"Subtotal",value:(0,m.A)(n.subtotal)}),(0,r.jsx)(b.zT,{label:I,value:S,muted:!o||!n.shippingRequired}),(0,r.jsx)(b.zT,{label:N,value:(0,m.A)(n.taxTotal)})]}):(0,r.jsxs)(c.A,{spacing:1.5,children:[(0,r.jsx)(d.A,{width:"100%",height:24}),(0,r.jsx)(d.A,{width:"100%",height:24}),(0,r.jsx)(d.A,{width:"100%",height:24})]}),(0,r.jsx)(b.jO,{my:3}),(0,r.jsx)(b.zT,{label:"Total",value:o?(0,m.A)(o.total):"—",emphasis:!0}),y&&(0,r.jsxs)(a.A,{mt:3,sx:{display:{xs:"none",lg:"block"}},children:[(0,r.jsx)(w.Action,{emphasis:"primary",text:p,onClick:f,disabled:h,loading:x,fullWidth:!0}),!o&&n?.shippingRequired&&(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.65,mt:1.5,textAlign:"center"},children:"Choose how you'd like to receive your order to see the total."})]}),v&&(0,r.jsx)(a.A,{mt:2,children:v}),null!==A&&(0,r.jsx)(C,{deadline:A,onExpire:j})]})}var I=n(56044),S=n(43842),N=n(9830),P=n(84962);function R(e){let{value:t,title:n,subtitle:i,trailing:l,selected:o,disabled:s}=e,d=(0,g.A)();return(0,r.jsx)(N.A,{value:t,disabled:s,control:(0,r.jsx)(P.A,{color:"secondary",sx:{p:0,mr:1.75}}
1),sx:{m:0,p:"17px",border:o?"2px solid":"1px solid",borderColor:o?"secondary.main":"divider",...o?{p:"16px"}:{},borderRadius:`${d.radii.input}px`,backgroundColor:o?"action.hover":"transparent",alignItems:"center","& .MuiFormControlLabel-label":{flex:1,minWidth:0}},label:(0,r.jsxs)(a.A,{display:"flex",alignItems:"center",gap:1.75,children:[(0,r.jsxs)(a.A,{flex:1,minWidth:0,children:[(0,r.jsx)(u.A,{variant:"body2",fontWeight:600,sx:{fontSize:{xs:17}},children:n}),i&&(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.65,mt:.25,whiteSpace:"pre-line"},children:i})]}),l&&(0,r.jsx)(u.A,{variant:"body2",fontWeight:600,sx:{fontSize:{xs:17}},flexShrink:0,children:l})]})})}var T=n(78895),L=n(65480);function O(e){let{amountLabel:t,returnUrl:n,onSuccess:l}=e,o=(0,g.A)(),s=(0,T.useStripe)(),d=(0,T.useElements)(),[c,u]=(0,i.useState)(!1),[p,h]=(0,i.useState)(null),m=async()=>{if(s&&d){u(!0),h(null);try{let e=await s.confirmPayment({elements:d,confirmParams:{return_url:n},redirect:"if_required"});if(e.error)return void h(e.error.message??"Payment failed. Please try again.");l()}catch{h("Payment failed. Check your connection and try again.")}finally{u(!1)}}};return(0,r.jsxs)(a.A,{children:[(0,r.jsx)(T.PaymentElement,{}),p&&(0,r.jsx)(a.A,{mt:1.5,children:(0,r.jsx)(b.$T,{tone:"error",children:p})}),(0,r.jsx)(a.A,{mt:2.5,children:(0,r.jsx)(o.Action,{emphasis:"primary",text:`Pay ${t}`,onClick:m,disabled:!s,loading:c,fullWidth:!0})})]})}function _(e){let{attempt:t,returnUrl:n,onSuccess:l,onCancel:o}=e,d=(0,g.A)(),c=(0,i.useMemo)(()=>(0,L.loadStripe)(t.publishableKey,{stripeAccount:t.stripeAccountId}),[t.publishableKey,t.stripeAccountId]),p=(0,m.A)(t.amountCents,t.currency.toUpperCase()),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;h.current?.scrollIntoView?.({behavior:e?"auto":"smooth",block:"start"})},[]),(0,r.jsx)(a.A,{ref:h,sx:{mt:1.5,scrollMarginTop:{xs:88,md:168}},children:(0,r.jsxs)(d.Panel,{tone:"card",children:[(0,r.jsx)(u.A,{fontWeight:600,children:"One last step"}),(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.7,mt:.5,mb:2},children:`Your order is reserved. Pay ${p} to confirm it.`}),(0,r.jsx)(T.Elements,{stripe:c,options:{clientSecret:t.clientSecret},children:(0,r.jsx)(O,{amountLabel:p,returnUrl:n,onSuccess:l})}),(0,r.jsxs)(a.A,{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center",gap:2,children:[(0,r.jsx)(u.A,{variant:"caption",sx:{opacity:.55},children:"Payments processed securely by Stripe"}),(0,r.jsx)(s.A,{component:"button",type:"button",onClick:o,underline:"hover",color:"inherit",sx:{opacity:.7,fontSize:13},children:"Change details"})]})]})})}let D="You'll pay in person when you pick up or receive your order. Nothing is charged now.";function M(e){let{acceptOnline:t,acceptInPerson:n,choiceRequired:i,paymentMethod:l,choosePayment:o,attempt:s,returnUrl:d,onPaid:c,onAbandonPayment:p,disabled:h}=e,m=(0,g.A)();return(0,r.jsxs)(y,{label:"Payment",id:"payment",children:[i&&!s&&(0,r.jsxs)(I.A,{name:"paymentMethod","aria-label":"Payment method",value:l??"",onChange:e=>{("ONLINE"===e.target.value||"IN_PERSON"===e.target.value)&&o(e.target.value)},sx:{gap:1.25},children:[(0,r.jsx)(R,{value:"ONLINE",title:"Pay now by card",subtitle:"Enter your card after you place the order",selected:"ONLINE"===l,disabled:h}),(0,r.jsx)(R,{value:"IN_PERSON",title:"Pay in person",subtitle:"Pay when you pick up or receive your order",selected:"IN_PERSON"===l,disabled:h})]}),!i&&!t&&n&&(0,r.jsx)(u.A,{variant:"body2",children:D}),i&&"IN_PERSON"===l&&!s&&(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.7,mt:1.5},children:D}),!t&&!n&&(0,r.jsx)(u.A,{variant:"body2",color:"error",children:"This store has no payment method set up yet, so orders can't be placed right now."}),"ONLINE"===l&&!s&&(0,r.jsxs)(a.A,{sx:{mt:1.5*!!i,border:"1px dashed",borderColor:"divider",borderRadius:`${m.radii.input}px`,p:2,display:"flex",alignItems:"center",gap:1.5,opacity:.75},children:[(0,r.jsx)(S.A,{"aria-hidden":!0}),(0,r.jsx)(u.A,{variant:"body2",children:"Card details are collected securely by Stripe after you place the order. Nothing is charged until you confirm."})]}),s&&(0,r.jsx)(_,{attempt:s,returnUrl:d,onSuccess:c,onCancel:p})]})}var U=n(78624),$=n(4473);let G={LOCAL_PICKUP:"I understand this order is for pickup and won't be shipped.",LOCAL_DELIVERY:"I'm within the delivery area and someone can receive the order at this address."},F=[["AL","Alabama"],["AK","Alaska"],["AZ","Arizona"],["AR","Arkansas"],["CA","California"],["CO","Colorado"],["CT","Connecticut"],["DE","Delaware"],["FL","Florida"],["GA","Georgia"],["HI","Hawaii"],["ID","Idaho"],["IL","Illinois"],["IN","Indiana"],["IA","Iowa"],["KS","Kansas"],["KY","Kentucky"],["LA","Louisiana"],["ME","Maine"],["MD","Maryland"],["MA","Massachusetts"],["MI","Michigan"],["MN","Minnesota"],["MS","Mississippi"],["MO","Missouri"],["MT","Montana"],["NE","Nebraska"],["NV","Nevada"],["NH","New Hampshire"],["NJ","New Jersey"],["NM","New Mexico"],["NY","New York"],["NC","North Carolina"],["ND","North Dakota"],["OH","Ohio"],["OK","Oklahoma"],["OR","Oregon"],["PA","Pennsylvania"],["RI","Rhode Island"],["SC","South Carolina"],["SD","South Dakota"],["TN","Tennessee"],["TX","Texas"],["UT","Utah"],["VT","Vermont"],["VA","Virginia"],["WA","Washington"],["WV","West Virginia"],["WI","Wisconsin"],["WY","Wyoming"],["DC","District of Columbia"],["AS","American Samoa"],["GU","Guam"],["MP","Northern Mariana Islands"],["PR","Puerto Rico"],["VI","U.S. Virgin Islands"],["AA","Armed Forces Americas"],["AE","Armed Forces Europe"],["AP","Armed Forces Pacific"]];function B(e){let{form:t,errors:n,setField:i,priced:l,loading:o,stale:s,regionValid:d,shippingMethod:p,setShippingMethod:h,needsAddress:x,needsConfirmation:f,confirmed:b,setConfirmed:A,disabled:j}=e,v=(0,g.A)(),w=l?.shippingOptions??[],C=1===w.length&&"LOCAL_PICKUP"===w[0].method,k=!l||s?null:d?0===w.length?`We can't ship to ${t.state} ${t.zip}. Try another address or contact us.`:C?`We don't ship to ${t.state} ${t.zip}, but pickup is available.`:null:0===w.length?"Enter your address to see delivery options.":"Enter your address to see more shipping options.";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{label:"Delivery address",id:"region",children:(0,r.jsxs)(c.A,{spacing:1.5,"aria-label":"Delivery address",children:[(0,r.jsx)(v.FormText,{id:"checkout-line1",label:"Street address",value:t.line1,onChange:e=>i("line1",e),error:!!n.line1,helperText:n.line1,required:x,disabled:j}),(0,r.jsx)(v.FormText,{id:"checkout-line2",label:"Apartment, suite, etc. (optional)",value:t.line2,onChange:e=>i("line2",e),disabled:j}),(0,r.jsx)(v.FormText,{id:"checkout-city",label:"City",value:t.city,onChange:e=>i("city",e),error:!!n.city,helperText:n.city,required:x,disabled:j}),(0,r.jsxs)(a.A,{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:1.5,children:[(0,r.jsx)(v.FormSelect,{id:"checkout-state",label:"State",value:t.state,onChange:e=>i("state",e),error:!!n.state,helperText:n.state,disabled:j,options:F.map(e=>{let[t,n]=e;return{value:t,label:n}})}),(0,r.jsx)(v.FormText,{id:"checkout-zip",label:"ZIP",value:t.zip,onChange:e=>i("zip",e),error:!!n.zip,helperText:n.zip,disabled:j})]})]})}),(0,r.jsxs)(y,{label:"Shipping method",id:"method",children:[!l&&(0,r.jsxs)(a.A,{display:"flex",alignItems:"center",gap:1.5,sx:{opacity:.7},"aria-busy":!0,children:[(0,r.jsx)($.A,{size:18,color:"inherit"}),(0,r.jsx)(u.A,{variant:"body2",children:"Checking your options…"})]}),l&&w.length>0&&(0,r.jsx)(I.A,{name:"shippingMethod","aria-label":"Delivery method",value:p??"",onChange:e=>{let{value:t}=e.target;h((0,E.AA)(t)?t:null)}
1,sx:{gap:1.25,opacity:o?.7:1,transition:"opacity 120ms"},"aria-busy":o||void 0,children:w.map(e=>(0,r.jsx)(R,{value:e.method,title:E.I_[e.method],subtitle:function(e,t,n){switch(e){case"LOCAL_PICKUP":return t.pickupNotes?`Collect in person \xb7 ${t.pickupNotes}`:"Collect in person — no shipping";case"LOCAL_DELIVERY":return`We deliver to ${n} — we'll drop it off`;default:return"Delivered to your address"}}(e.method,l,t.zip),trailing:0===e.amount?"Free":(0,m.A)(e.amount),selected:p===e.method,disabled:j},e.method))}),k&&(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.7,mt:1.5*(w.length>0)},children:k}),f&&("LOCAL_PICKUP"===p||"LOCAL_DELIVERY"===p)&&(0,r.jsx)(N.A,{sx:{mt:2,alignItems:"flex-start",ml:0},control:(0,r.jsx)(U.A,{checked:b,onChange:e=>A(e.target.checked),color:"secondary",disabled:j,sx:{mt:-1},inputProps:{"aria-label":G[p]}}),label:(0,r.jsx)(u.A,{variant:"body2",children:G[p]})})]})]})}var W=n(51758),H=n(79394),z=n(69937),Y=n(1106);let K={name:"",email:"",phone:"",line1:"",line2:"",city:"",state:"",zip:""},V=/^[A-Z]{2}$/,q=/^\d{5}$/;function Q(e){var t,n,y;let{orgId:j,settings:w,canonicalUrl:C}=e,I=(0,g.A)(),S=(0,x.A)(),N=function(e){var t,n;let{orgId:r,settings:a,cart:l,navigate:o,now:s=Date.now}=e,[d,c]=(0,i.useState)("form"),[u,p]=(0,i.useState)(K),[h,m]=(0,i.useState)({}),[x,f]=(0,i.useState)(""),[g,b]=(0,i.useState)(null),[y,A]=(0,i.useState)(!1),[j,v]=(0,i.useState)(null),[w,C]=(0,i.useState)(null),[k,I]=(0,i.useState)(null),[S,N]=(0,i.useState)([]),[P,R]=(0,i.useState)(()=>s()),T=(0,i.useRef)(null),L=(0,i.useRef)(!1),O=(0,i.useRef)(null),_=(0,i.useCallback)(e=>{let t=l.lines.filter(t=>e.includes(t.variantId));0!==t.length&&(N(t.map(e=>e.name)),t.forEach(e=>l.remove(e.variantId)))},[l]),D=(t=u.state,V.test(t)&&(n=u.zip,q.test(n))),M=(0,H.A)({orgId:r,lines:l.lines,state:D?u.state:null,zip:D?u.zip:null,enabled:l.hydrated,onItemsChanged:_}),U=M.cart;(0,i.useEffect)(()=>{0!==S.length&&(I({kind:"ITEMS_REMOVED",names:S}),N([]))},[S]),(0,i.useEffect)(()=>{if(!l.hydrated||L.current)return;L.current=!0;let e=l.buyer.read();e&&(O.current=e.address,p(t=>({...t,name:e.name,email:e.email,phone:e.phone,line1:e.address?.line1??"",line2:e.address?.line2??"",city:e.address?.city??"",state:e.address?.state??"",zip:e.address?.zip??""})));let t=l.attempt.read();t&&l.lines.length>0&&(C(t),T.current={fingerprint:"",key:t.idempotencyKey},c("paying"))},[l]),(0,i.useEffect)(()=>{"paying"===d&&w&&null===l.attempt.read()&&(C(null),c("form"))},[l,l.lastInteractionAt,d,w]);let $=U?.shippingRequired??!0,G=U?.acceptOnlinePayments??a?.acceptOnlinePayments??!1,F=U?.acceptInPersonPayments??a?.acceptInPersonPayments??!1,B=G&&F,Q=B?j:G?"ONLINE":F?"IN_PERSON":null;(0,i.useEffect)(()=>{g&&U&&(U.shippingOptions.some(e=>e.method===g)||(b(null),A(!1)))},[U,g]);let X=(0,i.useCallback)(e=>{b(e),A(!1),m({})},[]),J=$&&null!==g&&"LOCAL_PICKUP"!==g,Z=$&&("LOCAL_PICKUP"===g||"LOCAL_DELIVERY"===g),ee=(0,i.useMemo)(()=>U?(0,E.kh)(U,$?g:null):null,[U,$,g]),et=(0,i.useMemo)(()=>{let e=new Set(U?.lines.filter(e=>!e.available).map(e=>e.productVariantId)??[]);return k?.kind==="ITEMS_UNAVAILABLE"&&k.variantIds.forEach(t=>e.add(t)),Array.from(e)},[U,k]),en=M.error?.code==="STORE_DISABLED",er="form"===d&&l.hydrated&&l.lines.length>0&&null!==U&&!M.loading&&null!==ee&&0===et.length&&null!==Q&&(!Z||y)&&!en&&null!==r,ei=(0,i.useCallback)((e,t)=>{let n="state"===e?t.toUpperCase().replace(/[^A-Z]/g,"").slice(0,2):"zip"===e?t.replace(/\D/g,"").slice(0,5):t;p(t=>({...t,[e]:n})),m(t=>t[e]?{...t,[e]:void 0}:t)},[]),ea=JSON.stringify({lines:l.lines.map(e=>[e.variantId,e.quantity]),totals:ee,name:u.name.trim()}),el=(0,i.useCallback)(e=>{c("done");let t=J?{line1:u.line1.trim(),...u.line2.trim()?{line2:u.line2.trim()}:{},city:u.city.trim(),state:u.state,zip:u.zip}:O.current;l.buyer.write({name:u.name.trim(),email:u.email.trim(),phone:u.phone.trim(),address:t}),l.attempt.clear(),l.clear(),o(`/orders/${encodeURIComponent(e)}?success=1`)},[l,u,J,o]),eo=(0,i.useCallback)(async()=>{if(!er||!U||!ee||!Q||!r)return;let e=function(e,t){var n,r,i;let{needsAddress:a}=t,l={};return e.name.trim()||(l.name="Enter your name."),e.email.trim()?(0,z.B9)(e.email.trim())||(l.email="Enter a valid email address."):l.email="Enter your email so we can send your order 
1confirmation.",e.phone.trim()&&(n=e.phone,!(0,Y.V$)(n))&&(l.phone="Enter a valid phone number, or leave it blank."),a&&(e.line1.trim()||(l.line1="Enter your street address."),e.city.trim()||(l.city="Enter your city."),r=e.state,V.test(r)||(l.state="Select a state."),i=e.zip,q.test(i)||(l.zip="Five-digit ZIP code.")),l}(u,{needsAddress:J});if(m(e),Object.values(e).some(Boolean))return;I(null),c("submitting");let t=u.phone.trim(),n={orgId:r,idempotencyKey:(e=>{if(T.current&&T.current.fingerprint===e)return T.current.key;let t=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);return"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(e):e.forEach((t,n)=>{e[n]=Math.floor(256*Math.random())}),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}();return T.current={fingerprint:e,key:t},t})(ea),lines:l.lines.map(e=>({productVariantId:e.variantId,quantity:e.quantity})),paymentMethod:Q,...$&&g?{shippingMethod:g}:{},customer:{name:u.name.trim(),email:u.email.trim(),...t?{phone:t}:{}},...J?{address:{line1:u.line1.trim(),...u.line2.trim()?{line2:u.line2.trim()}:{},city:u.city.trim(),state:u.state,zip:u.zip}}:{},clientTotals:ee,...x?{website:x}:{}};try{let e=await (0,W.xB)(n);if(l.rememberOrder({publicToken:e.publicToken,email:n.customer.email}),"IN_PERSON"===Q||"PLACED"===e.status)return void el(e.publicToken);let t=function(e,t){let n=e.payment;if(!n)return null;let{clientSecret:r,stripeAccountId:i,publishableKey:a,amountCents:l,currency:o}=n;return"string"!=typeof r||"string"!=typeof i||"string"!=typeof a?null:{idempotencyKey:t,publicToken:e.publicToken,clientSecret:r,stripeAccountId:i,publishableKey:a,amountCents:"number"==typeof l?l:0,currency:"string"==typeof o?o:"usd"}}(e,n.idempotencyKey);if(!t){c("form"),I({kind:"PAYMENTS_UNAVAILABLE",canPayInPerson:F});return}l.attempt.write(t),C(t),c("paying")}catch(t){c("form");let e=function(e,t,n){if(!(e instanceof W.t9))return{kind:"ERROR",message:"Something went wrong placing your order. Please try again."};switch(e.code){case"TOTALS_CHANGED":{let n=e.details.totals;return(0,E.zd)(n)?{kind:"TOTALS_CHANGED",previous:t,fresh:n}:{kind:"ERROR",message:"Your total changed. Review the updated summary and place your order again."}}case"ITEMS_UNAVAILABLE":case"ITEMS_CHANGED":return{kind:"ITEMS_UNAVAILABLE",variantIds:(0,E.S1)(e.details)};case"ORIGIN_REJECTED":return{kind:"ORIGIN_REJECTED"};case"PAYMENTS_UNAVAILABLE":case"PAYMENT_METHOD_UNAVAILABLE":return{kind:"PAYMENTS_UNAVAILABLE",canPayInPerson:n};case"STORE_DISABLED":return{kind:"STORE_DISABLED"};case"NETWORK":return{kind:"NETWORK",message:e.message};default:return{kind:"ERROR",message:e.message}}}(t,ee,F);I(e),("TOTALS_CHANGED"===e.kind||"ITEMS_UNAVAILABLE"===e.kind)&&M.refresh()}},[er,U,ee,Q,r,u,$,J,ea,l,g,x,el,F,M]),es=(0,i.useCallback)(()=>{l.attempt.clear(),C(null),c("form")},[l]),ed=(0,i.useCallback)(()=>{w&&el(w.publicToken)},[w,el]),ec=(0,i.useCallback)(()=>I(null),[]),eu=(0,i.useCallback)(()=>{v("IN_PERSON"),I(null)},[]),ep=(a?.checkoutExpirationWindowMinutes??15)*6e4,eh=Math.max(P,l.lastInteractionAt)+ep,em=(0,i.useCallback)(()=>{"paying"===d?(l.attempt.clear(),C(null),T.current=null,c("form"),I({kind:"CHECKOUT_EXPIRED"})):I({kind:"RECHECKED"}),M.refresh(),R(s())},[d,l,M,s]);return{phase:d,form:u,setField:ei,fieldErrors:h,honeypot:x,setHoneypot:f,pricing:M,priced:U,shippingRequired:$,regionValid:D,shippingMethod:g,setShippingMethod:X,needsAddress:J,needsConfirmation:Z,confirmed:y,setConfirmed:A,acceptOnline:G,acceptInPerson:F,paymentChoiceRequired:B,paymentMethod:Q,choosePayment:v,totals:ee,unavailableIds:et,storeDisabled:en,canPlace:er,submit:eo,attempt:w,abandonPayment:es,completePayment:ed,issue:k,dismissIssue:ec,payInPersonInstead:eu,deadline:eh,onCountdownExpire:em}}({orgId:j,settings:w,cart:S,navigate:(0,f.A)("replace")}),[P,R]=(0,i.useState)(!1),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(0,i.useRef)(null),[n,r]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let n=t.current,i=n?.parentElement;if(!n||!i)return;let a=()=>{let t=getComputedStyle(i),a=parseFloat(t.paddingTop)||0,l=parseFloat(t.paddingBottom)||
10;r(Math.min(e+a,window.innerHeight-n.offsetHeight-l))};a(),window.addEventListener("resize",a);let l="undefined"==typeof ResizeObserver?null:new ResizeObserver(a);return l?.observe(n),()=>{window.removeEventListener("resize",a),l?.disconnect()}},[e]),{ref:t,top:n}}(I.stickyHeaderHeight),L=function(e){try{return new URL(e).origin}catch{return null}}(C),O=N.attempt?`${window.location.origin}/orders/${encodeURIComponent(N.attempt.publicToken)}?success=1`:"",_="submitting"===N.phase||"done"===N.phase,D=_||"paying"===N.phase,U=(t=N.phase,n=N.paymentMethod,y=N.totals,"done"===t?"Order placed":"ONLINE"!==n?"Place order":y?`Continue to pay ${(0,m.A)(y.total)}`:"Continue to payment"),$=N.issue&&S.hydrated&&S.lines.length>0&&"done"!==N.phase?(0,r.jsx)(v,{issue:N.issue,siteOrigin:L,onDismiss:N.dismissIssue,onPayInPerson:N.payInPersonInstead,onRetry:N.pricing.refresh}):null,G=e=>(0,r.jsx)(k,{lines:S.lines,priced:N.priced,loading:N.pricing.loading,shippingMethod:N.shippingMethod,totals:N.totals,unavailableIds:N.unavailableIds,ctaText:U,ctaDisabled:!N.canPlace,ctaLoading:"submitting"===N.phase,onCta:N.submit,showCta:"paying"!==N.phase,deadline:"done"===N.phase?null:N.deadline,onCountdownExpire:N.onCountdownExpire,notice:e}),F=S.hydrated&&S.lines.length>0&&"paying"!==N.phase&&"done"!==N.phase;return(0,r.jsxs)(I.Band,{sx:{py:0},children:[(0,r.jsxs)(a.A,{display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"stretch",sx:{maxWidth:{xl:I.maxWidth+440},mx:"auto"},children:[(0,r.jsx)(a.A,{sx:{display:{xs:"block",lg:"none"}},children:(0,r.jsxs)(I.Panel,{tone:"tint",sx:{borderRadius:0,px:{xs:2,sm:3},py:2},children:[(0,r.jsxs)(a.A,{component:"button",type:"button",onClick:()=>R(e=>!e),"aria-expanded":P,"aria-controls":"checkout-summary-mobile",sx:{all:"unset",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",color:"inherit"},children:[(0,r.jsxs)(u.A,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[P?"Hide order summary":"Show order summary",(0,r.jsx)(p.default,{sx:{transform:P?"rotate(180deg)":"none",transition:"transform 150ms"},"aria-hidden":!0})]}),(0,r.jsx)(b.i7,{component:"span",children:N.totals?(0,m.A)(N.totals.total):"—"})]}),(0,r.jsx)(o.A,{in:P,id:"checkout-summary-mobile",children:(0,r.jsx)(a.A,{mt:2,children:G(null)})})]})}),(0,r.jsx)(a.A,{flex:1,minWidth:0,px:{xs:2,sm:3,md:7},pt:{xs:3,md:5.5},pb:{xs:14,md:7},children:(0,r.jsxs)(a.A,{maxWidth:720,children:[(0,r.jsx)(b.sT,{children:"Checkout"}),S.hydrated?"done"===N.phase?(0,r.jsx)(a.A,{mt:4,children:(0,r.jsx)(b.$T,{tone:"success",children:"Order placed — taking you to your order…"})}):0===S.lines.length?(0,r.jsxs)(a.A,{mt:4,children:[(0,r.jsx)(b.i7,{component:"h2",children:"Nothing to check out yet"}),(0,r.jsx)(u.A,{sx:{mt:1.5,opacity:.7},children:"Your cart is empty."}),(0,r.jsx)(a.A,{mt:3,display:"inline-block",children:(0,r.jsx)(I.Action,{emphasis:"primary",text:"Continue shopping",href:"/store"})})]}):(0,r.jsxs)(a.A,{component:"form",noValidate:!0,onSubmit:e=>{e.preventDefault(),N.submit()},"aria-busy":_||void 0,children:[N.storeDisabled&&!N.issue&&(0,r.jsx)(a.A,{mt:3,children:(0,r.jsx)(b.$T,{tone:"warning",children:"This store is not accepting orders right now."})}),N.pricing.error&&!N.storeDisabled&&!N.issue&&(0,r.jsx)(a.A,{mt:3,children:(0,r.jsx)(b.$T,{tone:"error",action:(0,r.jsx)(l.A,{color:"inherit",size:"small",onClick:N.pricing.refresh,children:"Retry"}),children:N.priced?"We couldn't re-check your cart or delivery options. Check your connection and try again.":"We couldn't price your cart. Check your connection and try again."})}),(0,r.jsx)(a.A,{component:"input",type:"text",name:"co_hp",id:"co_hp",tabIndex:-1,autoComplete:"off","aria-hidden":!0,value:N.honeypot,onChange:e=>N.setHoneypot(e.target.value),sx:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0}}),(0,r.jsx)(A,{form:N.form,errors:N.fieldErrors,setField:N.setField,disabled:D}),N.shippingRequired&&(0,r.jsx)(B,{form:N.form,errors:N.fieldErrors,setField:N.setField,priced:N.priced,loading:N.pricing.loading,stale:null!==N.pricing.error,regi
1onValid:N.regionValid,shippingMethod:N.shippingMethod,setShippingMethod:N.setShippingMethod,needsAddress:N.needsAddress,needsConfirmation:N.needsConfirmation,confirmed:N.confirmed,setConfirmed:N.setConfirmed,disabled:D}),(0,r.jsx)(M,{acceptOnline:N.acceptOnline,acceptInPerson:N.acceptInPerson,choiceRequired:N.paymentChoiceRequired,paymentMethod:N.paymentMethod,choosePayment:N.choosePayment,attempt:"paying"===N.phase?N.attempt:null,returnUrl:O,onPaid:N.completePayment,onAbandonPayment:N.abandonPayment,disabled:D}),(0,r.jsx)(a.A,{mt:4,display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",children:(0,r.jsx)(h.A,{href:"/cart",children:(0,r.jsx)(s.A,{href:"/cart",underline:"hover",color:"inherit",sx:{opacity:.7,fontSize:15},children:"Back to cart"})})}),(0,r.jsx)("button",{type:"submit",hidden:!0,"aria-hidden":!0,tabIndex:-1,disabled:!N.canPlace,children:U})]}):(0,r.jsxs)(c.A,{spacing:2,mt:4,"aria-busy":!0,children:[(0,r.jsx)(d.A,{width:120,height:20}),(0,r.jsx)(d.A,{variant:"rounded",height:52}),(0,r.jsx)(d.A,{variant:"rounded",height:52}),(0,r.jsx)(d.A,{width:160,height:20,sx:{mt:3}}),(0,r.jsx)(d.A,{variant:"rounded",height:52})]})]})}),(0,r.jsx)(a.A,{sx:{display:{xs:"none",lg:"block"},width:440,flexShrink:0,borderLeft:"1px solid",borderColor:"divider"},children:(0,r.jsx)(I.Panel,{tone:"tint",sx:{borderRadius:0,height:"100%",p:"44px 36px"},children:(0,r.jsx)(a.A,{ref:T.ref,sx:{position:"sticky",top:T.top},children:G($)})})})]}),F&&(0,r.jsxs)(a.A,{sx:{display:{xs:"block",lg:"none"},position:"fixed",left:0,right:0,bottom:0,zIndex:10,px:2,py:1.5,backgroundColor:"background.paper",color:"text.primary",borderTop:"1px solid",borderColor:"divider",boxShadow:"0 -8px 24px rgba(0,0,0,0.08)"},children:[$&&(0,r.jsx)(a.A,{sx:{mb:1.5,maxHeight:"40vh",overflowY:"auto"},children:$}),(0,r.jsxs)(a.A,{display:"flex",alignItems:"center",gap:2,children:[(0,r.jsxs)(a.A,{flex:1,minWidth:0,children:[(0,r.jsx)(u.A,{variant:"body2",sx:{opacity:.7},children:"Total"}),(0,r.jsx)(b.i7,{component:"p",children:N.totals?(0,m.A)(N.totals.total):"—"})]}),(0,r.jsx)(a.A,{flexShrink:0,children:(0,r.jsx)(I.Action,{emphasis:"primary",text:U,onClick:N.submit,disabled:!N.canPlace,loading:"submitting"===N.phase})})]})]})]})}},74302:(e,t,n)=>{n.d(t,{W:()=>i,U:()=>r});var r=function(e){return e.AL="Alabama",e.AK="Alaska",e.AZ="Arizona",e.AR="Arkansas",e.CA="California",e.CO="Colorado",e.CT="Connecticut",e.DE="Delaware",e.FL="Florida",e.GA="Georgia",e.HI="Hawaii",e.ID="Idaho",e.IL="Illinois",e.IN="Indiana",e.IA="Iowa",e.KS="Kansas",e.KY="Kentucky",e.LA="Louisiana",e.ME="Maine",e.MD="Maryland",e.MA="Massachusetts",e.MI="Michigan",e.MN="Minnesota",e.MS="Mississippi",e.MO="Missouri",e.MT="Montana",e.NE="Nebraska",e.NV="Nevada",e.NH="New Hampshire",e.NJ="New Jersey",e.NM="New Mexico",e.NY="New York",e.NC="North Carolina",e.ND="North Dakota",e.OH="Ohio",e.OK="Oklahoma",e.OR="Oregon",e.PA="Pennsylvania",e.RI="Rhode Island",e.SC="South Carolina",e.SD="South Dakota",e.TN="Tennessee",e.TX="Texas",e.UT="Utah",e.VT="Vermont",e.VA="Virginia",e.WA="Washington",e.WV="West Virginia",e.WI="Wisconsin",e.WY="Wyoming",e.AB="Alberta",e.BC="British Columbia",e.MB="Manitoba",e.NB="New Brunswick",e.NL="Newfoundland and Labrador",e.NT="Northwest Territories",e.NS="Nova Scotia",e.NU="Nunavut",e.ON="Ontario",e.PE="Prince Edward Island",e.QC="Quebec",e.SK="Saskatchewan",e.YT="Yukon",e}({});let i=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]},75466:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";try{return new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e/100)}catch{return`$${(e/100).toFixed(2)}`}}},76568:(e,t,n)=>{n.d(t,{Ob:()=>a,rP:()=>i});let r=["rgb","rgba","hsl","hsla","color"];function i(e){let t,n;if("string"!=typeof e)return e;if("#"===e.charAt(0))return i(function(e){let t=e.slice(1),n=RegExp(`.{1,${t.length>=6?2:1}}`,"g"),r=t.match(n);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let a=e.indexOf("("),l=e.substring(0,a);if(!r.some(e=>e===l))throw Error(`Unsupported \`${e}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);if("color"===l){if(n=(t=e.substring(a+1,e.length-1).split(" ")).shift(),4===t.length&&"/"===t[3].charAt(0)&&(t[3]=t[3].slice(1)),!n||!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw Error(`Unsupported \`${n}\` color space.`)}else t=e.substring(a+1,e.length-1).split(",");return{type:l,values:t.map(e=>parseFloat(e)),colorSpace:n}}function a(e){if(e.startsWith("#"))return e;let{values:t}=i(e);return`#${t.map((e,t)=>
1(e=>{let t=e.toString(16);return 1===t.length?`0${t}`:t})(3===t?Math.round(255*e):e)).join("")}`}},79394:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(55729),i=n(51758),a=n(30264);function l(e){let{orgId:t,lines:n,state:l,zip:o,enabled:s,onItemsChanged:d}=e,[c,u]=(0,r.useState)(null),[p,h]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),[f,g]=(0,r.useState)(0),b=(0,r.useRef)(null),y=(0,r.useRef)(!0),A=(0,r.useRef)(d);A.current=d;let j=n.map(e=>`${e.variantId}:${e.quantity}`).join(","),v=`${l??""}|${o??""}`;(0,r.useEffect)(()=>{if(!s||!t||0===n.length){b.current?.abort(),h(!1),0===n.length&&u(null);return}b.current?.abort();let e=new AbortController;b.current=e,h(!0);let r=async()=>{try{let r=await (0,i.Ho)({orgId:t,lines:n.map(e=>({variantId:e.variantId,quantity:e.quantity})),state:l,zip:o},e.signal);if(e.signal.aborted)return;u((0,a.RG)(r)),x(null)}catch(t){if(e.signal.aborted)return;t instanceof i.t9?(x(t),"ITEMS_CHANGED"===t.code&&A.current?.((0,a.S1)(t.details))):x(new i.t9("NETWORK",0,"Could not re-check your cart."))}finally{e.signal.aborted||h(!1)}},d=y.current;y.current=!1;let c=setTimeout(r,400*!d);return()=>{clearTimeout(c),e.abort()}},[s,t,j,v,f]);let E=(0,r.useCallback)(()=>{y.current=!0,g(e=>e+1)},[]);return(0,r.useMemo)(()=>({cart:c,loading:p,error:m,refresh:E}),[c,p,m,E])}}}]);

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.