"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[52],{28:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={container:"zZYXATlU",collectionTitle:"BtjVOEsI",bestSeller:"kwgJR5Zg",textWrapper:"vhyT1_Ow",colorSwatchContainer:"VtFAkf4R",link:"RZRR9V1h",box:"tSvIqLRS",heroImageContainer:"tK5FSRVg",heroImage:"vvSCjQFx",title:"b1hb0tgk",subtitle:"h5UYv_8A",price:"d9xb3vfY",originalPrice:"PtH37qZj",salePrice:"rAMBlFcx",collectionItems:"NYNuDbQO"}},202:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={pagination:"dLEi2VEw",paginationButton:"GO5iZ6wc",paginationButtonActive:"mVlg_Qfd",paginationButtonInactive:"Th4IeDdO",paginationEllipsis:"XaIzJ_nD"}},14:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={container:"LixAkx1y",imageContainer:"gclOIT5L",image:"Y5wVMJ4Q",details:"A4FyDY7j",title:"cMcEwdYe",subDetails:"McFQUCvJ",stylesAvailable:"bAroljYu",inStock:"to5yoRvj",dropdownIcon:"dqjUwhJm"}},12:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={accordion:"fmJEoApf",section:"ZJCsmW3Z",toggle:"NM_YOWAF",labelAccordian:"gMfWhlvk",arrow:"iVRau9iH",content:"Yn9kwIny",iconCaret:"UgDfblcC"}},11:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={container:"O9IcGWrR",sizeGuideContainer:"Sjgd8MXw",sizeGuideLabel:"maXcOloV",sizeGuideCheckbox:"bjWJCfH8",modalOverlay:"o3JfeQ8Y",modal:"rDogYdZh",modalImage:"UWyRdhCC",modalBackground:"nsap7aGo",closeBtn:"LeKie3P2",closeIconSVG:"twjfhJqJ",optionLabels:"v26a1W51",optionLabelsSlideUpModal:"KxvdnHon",colorOptionSlideUpModal:"sRhGufaC",moreColors:"TUQP7fb6",colorOption:"BSnU3jak",colorOptionSmall:"ueI1yDi4",styleSelector:"iEeSm8vy",isStyleOption:"F9WAUe61",noSwatchImage:"XSvSsyWQ",colorOptionSelected:"QMl69tAx",sizeOption:"MSGuc0os",sizeOptionSmall:"_LAImWda",soldOut:"z_5wn5b_",sizeOptionSelected:"UXdMckXt",label:"EIfulk0V",smallOptionLabel:"UixcHeUq",optionContainer:"SJQFNexH",small:"vzwk4W6S",visuallyHidden:"zkx8p4KR",divider:"pWq23Myu",resetLinkStyles:"N1cHTXJ7",dropdown:"TkYtS_aR"}},10:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={container:"lJdQwzYh",small:"FZXIRNTB",productPriceDefault:"R2JvcJin",productPrice:"pVzkKcC7",compareAtPrice:"f7Y7WbCg",login:"IBT6ZD4a",memberLink:"NgDvddjN",pricePill:"hVEOmGAB",pricingPolicyLabel:"YOXiFwY8",pricingPolicyCheckbox:"rSlb7WVn",modalOverlay:"ZbyY7W6Y",modal:"pqAtdOx3",modalImage:"R32tPmBt",modalBackground:"kC5EZFzk",closeBtn:"cquYxt54",pricingPolicy:"zHE03LgR",pricingHeader:"BgIIdEbc",pricingText:"eFFesRir",pricePolicyInnercontainer:"MtaJsqe8",header:"kMgZV8eq",toggleButton:"JjXXJ26g",content:"mt3p8uus"}},7:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={gallery:"utYziQAE",imageContainer:"u7hALhRV",image:"HRX192Oq",imageMessage:"C0mfa5lU",review:"jT_XY_1t",title:"pfrMrpCr",truncated:"YcyRuLBB",expanded:"IomlcWA2",modal:"EQpOtFeT",fadeIn:"sVWQQ9or",fadeOut:"sZfxzYzK",modalInner:"Lg4GX5Y4",modalContent:"OpbIhP35",modalOverlay:"iZzCdFwp",modalHeader:"wek3E8S1",fullBleedImage:"i2zolDuA",slideUp:"u96mNKND",slideDown:"jAr2PKY3",closeButton:"MvI_gVPT",modalTextContent:"bihC0FqM",modalBodyText:"ksR2mAtx",loadMoreButton:"QklUYRZO",reviewsHeader:"KjJxq4iV"}},201:(e,t,o)=>{const n=o(86);(0,o(2).createEntrypoint)("collections_with_pagination",n.PaginatedCollection)},19:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REVIEWS_ENDPOINT=t.REVIEWS_PER_PAGE=void 0,t.formatPrice=function(e){return parseInt(e)},t.REVIEWS_PER_PAGE=28,t.REVIEWS_ENDPOINT="https://shalom-development-worker-may-2024.digitaloptgroup.workers.dev"},23:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=function({collection:e,useSharedState:t}){const o=t();return(0,r.useLogCollection)(e),(0,i.jsxs)(l.Fragment,{children:[e.title&&(0,i.jsx)("h1",{class:a.default.collectionTitle,children:e.title}),(0,i.jsx)("div",{class:a.default.container,children:(0,i.jsx)("div",{class:a.default.collectionItems,children:e.products.map((t=>(0,i.jsx)(c.ProductCard,{product:t,sharedStateStore:o,collectionHandle:e.handle})))})})]})};const i=o(0),l=o(1),a=n(o(28)),r=o(25),c=o(32)},86:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaginatedCollection=function({collection:e,totalProducts:t,page:o,productsPerPage:n,useSharedState:a}){return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(c.Collection,{collection:e,useSharedState:a}),t>e.products.length&&(0,i.jsx)(d,{totalProducts:t,page:o,productsPerPage:n,useSharedState:a})]})};const i=o(0),l=o(1),a=n(o(202)),r=o(37),c=o(23),s=o(3);function d({totalProducts:e,page:t,productsPerPage:o,useSharedState:n}){const l=n(),{pathname:c,config:d}=l((e=>({pathname:e.pathname,config:e.config}))),g=Math.ceil(e/o),h=(0,r.useIsHydrated)(),m=(0,s.useMemo)((()=>h?new URL(window.location.href):new URL(`https://${d.hostname}/${c}`)),[h]),f=e=>(null==m||m.searchParams.set("page",e.toString()),null==m?void 0:m.toString());return(0,i.jsxs)("div",{class:a.default.pagination,children:[(0,i.jsx)("a",{href:f(1===t?t:t-1),class:[a.default.paginationButton,1===t?a.default.paginationButtonInactive:""].join(" "),children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:(0,i.jsx)("path",{d:"m15 18-6-6 6-6"})})}),Array.from({length:g},((e,o)=>{const n=p({pageNumber:o+1,page:t,pages:g});return n===u.Number?(0,i.jsx)("a",{href:f(o+1),class:[a.default.paginationButton,o+1===t?a.default.paginationButtonActive:""].join(" "),children:o+1},o):n===u.Ellipsis?(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:a.default.paginationEllipsis,children:[(0,i.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,i.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,i.jsx)("circle",{cx:"5",cy:"12",r:"1"})]},o):null})),(0,i.jsx)("a",{href:f(t===g?t:t+1),class:[a.default.paginationButton,t===g&&a.default.paginationButtonInactive].join(" "),children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:(0,i.jsx)("path",{d:"m9 18 6-6-6-6"})})})]})}var u;!function(e){e[e.Number=0]="Number",e[e.Ellipsis=1]="Ellipsis",e[e.None=2]="None"}(u||(u={}));const p=({pageNumber:e,page:t,pages:o})=>1===e||e===o||e===t||Math.abs(e-t)<=1?u.Number:2==Math.abs(e-t)?u.Ellipsis:u.None},37:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useIsHydrated=function(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{t(!0)}),[]),e};const n=o(3)}},e=>{e.O(0,[1,2,3,4,5,6,7,8,11,13,14,12,15,16,21],(()=>e(e.s=201))),e.O()}]);