https://www.guardianlightoftheworld.com/_next/static/chunks/jaguar-store-product.377c40b0b4bade44.js
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16407],{18658:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(81278),a=i(55729),s=i(77079),n=i(35993),o=i(13558),l=i(67110);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"push",t=(0,r.useRouter)(),{editorActive:i,setEditorActiveRoute:c}=(0,a.useContext)(s.n),d=(0,a.useContext)(n.p);return(0,a.useCallback)(r=>{if(i){let e=(0,l.fQ)(r);if(e){c({route:e}),(0,o.A)((0,l.l7)(e),d);return}}t?.[e]?.(r)},[i,d,e,t,c])}},25025:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var r=i(6029);i(55729);var a=i(90798),s=i(17745),n=i(32559),o=i(57654),l=i(75466),c=i(73397),d=i(5254),h=i(68699),p=i(75603),m=i(87410),x=i(26481),u=i(14104),g=i(56909),A=i(81674),j=i(36830),w=i(29255),y=i(94638),b=i(34696);let f={color:"inherit",textDecoration:"none","&:hover":{textDecoration:"underline"}};function v(e){let{data:t,settings:i,canonicalUrl:v}=e,{product:$,related:C}=t,{Band:S,Action:k,ChipGroup:I}=(0,d.A)(),N=(0,g.A)($),W=(0,m.AP)($,N.selectedVariant),R=!$.anyInStock,L=R||N.selectedSoldOut,O=(0,m.dK)($,N.selectedVariant),V=N.selectedVariant?(0,l.A)(N.selectedVariant.priceCents):(0,m.EJ)($),_=(0,m.ry)($,N.selectedVariant,i),z=$.categories[0],D=(0,m.Jm)($),F=!R&&"none"!==N.mode&&!N.selectedVariant;return(0,r.jsxs)(S,{id:"store-product",sx:{px:w.n$,py:{xs:4,md:5}},children:[(0,r.jsx)(c.A,{product:$,canonicalUrl:v,description:(0,m.cw)($.body)}),(0,r.jsxs)(a.A,{maxWidth:1400,mx:"auto",children:[(0,r.jsxs)(s.A,{direction:"row",alignItems:"center",flexWrap:"wrap",useFlexGap:!0,spacing:{xs:2,md:3},children:[(0,r.jsx)(u.A,{}),(0,r.jsxs)(n.A,{component:"nav","aria-label":"Breadcrumb",variant:"body2",sx:{opacity:.6},children:[(0,r.jsx)(o.A,{href:"/store",children:(0,r.jsx)(a.A,{component:"a",href:"/store",sx:f,children:"Store"})}),z&&(0,r.jsxs)(r.Fragment,{children:["\xa0\xa0/\xa0\xa0",(0,r.jsx)(o.A,{href:(0,x.PD)({category:z}),children:(0,r.jsx)(a.A,{component:"a",href:(0,x.PD)({category:z}),sx:f,children:z.name})})]}),"\xa0\xa0/\xa0\xa0",(0,r.jsx)("span",{"aria-current":"page",children:$.name})]})]}),(0,r.jsxs)(a.A,{mt:{xs:3,md:3.5},display:"grid",gap:{xs:3,md:5,lg:7},gridTemplateColumns:{xs:"1fr",md:"minmax(0, 1fr) minmax(0, 1fr)",lg:"560px minmax(0, 1fr)"},alignItems:"start",children:[(0,r.jsx)(h.A,{images:$.images,activeImage:N.variantImage,name:$.name,radius:j.LO,accent:"var(--secondary-color-replacement)",placeholder:"var(--secondary-light-replacement)"}),(0,r.jsxs)(a.A,{children:[D&&(0,r.jsx)(n.A,{variant:"overline",component:"p",className:"jaguar-color-secondary-main",mb:1.5,children:D}),(0,r.jsx)(n.A,{variant:"h2",component:"h1",children:$.name}),(0,r.jsx)(n.A,{variant:"h5",component:"p",className:"jaguar-color-secondary-main",mt:2,"aria-live":"polite",children:V}),$.body&&(0,r.jsx)(n.A,{variant:"body1",mt:2.5,maxWidth:520,sx:{opacity:.72,whiteSpace:"pre-line"},children:$.body}),"none"!==N.mode&&(0,r.jsxs)(s.A,{spacing:3,mt:4,maxWidth:520,children:[(0,r.jsxs)(a.A,{children:[(0,r.jsx)(n.A,{variant:"body2",mb:1,sx:{opacity:.65},children:$.optionNames.one}),(0,r.jsx)(I,{ariaLabel:$.optionNames.one??"Option",options:N.optionsOne,selectedId:N.selection.one,onChange:e=>N.select("one",e)})]}),"two"===N.mode&&(0,r.jsxs)(a.A,{children:[(0,r.jsx)(n.A,{variant:"body2",mb:1,sx:{opacity:.65},children:$.optionNames.two}),(0,r.jsx)(I,{ariaLabel:$.optionNames.two??"Option",options:N.optionsTwo,selectedId:N.selection.two,onChange:e=>N.select("two",e)})]})]}),(0,r.jsxs)(s.A,{direction:"row",spacing:1.75,mt:4,maxWidth:520,alignItems:"stretch",children:[(0,r.jsx)(p.A,{value:W.quantity,onChange:W.setQuantity,disabled:L,radius:j.VJ}),(0,r.jsx)(a.A,{flex:1,display:"flex",sx:{"& > *":{flex:1},"& button":{height:"100%"}},children:(0,r.jsx)(k,{emphasis:"primary",text:L?"Sold out":"Add to cart",disabled:!N.purchasable,onClick:W.add,fullWidth:!0})})]}),F&&(0,r.jsx)(n.A,{variant:"body2",mt:1.5,sx:{opacity:.65},children:"two"===N.mode?`Choose a ${$.optionNames.one?.toLowerCase()} and ${$.optionNames.two?.toLowerCase()} to add this to your cart.`:`Choose a ${$.optionNames.one?.toLowerCase()} to add this to your cart.`}),O&&(0,r.jsx)(n.A,{variant:"body2",mt:1.5,sx:{opacity:.65},role:"status",children:O}),W.justAdded&&(0,r.jsx)(a.A,{mt:2,maxWidth:520,role:"status",children:(0,r.jsx)(A.A,{surface:"tint",borderRadius:`${j.VJ}px`,px:2,py:1.5,children:(0,r.jsxs)(s.A,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:2,flexWrap:"wrap",useFlexGap:!0,children:[(0,r.jsx)(n.A,{variant:"body1",fontWeight:600,children:"Added to your cart."}),(0,r.jsx)(k,{emphasis:"quiet",text:"View cart",href:"/cart"})]})})}),_.length>0&&(0,r.jsx)(s.A,{spacing:1.25,mt:4,pt:3,maxWidth:520,sx:{borderTop:"1px solid color-mix(in srgb, var(--text-color-replacement) 12%, transparent)",opacity:.75},children:_.map(e=>(0,r.jsx)(n.A,{variant:"body2",children:e},e))})]})]}),C.length>0&&(0,r.jsxs)(a.A,{mt:{xs:6,md:8},children:[(0,r.jsx)(n.A,{variant:"h4",component:"h2",children:"You might also like"}),(0,r.jsx)(a.A,{mt:3,display:"grid",gap:y.STORE_GRID_GAP,gridTemplateColumns:y.STORE_GRID_COLUMNS,children:C.map(e=>(0,r.jsx)(b.A,{product:e,sizes:"(min-width: 900px) 25vw, (min-width: 600px) 33vw, 50vw"},e.id))})]})]})]})}},68699:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(6029);i(55729);var a=i(90798),s=i(17745),n=i(90931),o=i(27011),l=i(38166);function c(e){let{images:t,name:i,activeImage:c,radius:d,accent:h,placeholder:p}=e,m=(0,n.A)(),[x,u]=(0,l.A)(t,c),g=t[x]??t[0];return(0,r.jsxs)(a.A,{children:[(0,r.jsx)(a.A,{sx:{aspectRatio:"1 / 1",borderRadius:`${d}px`,overflow:"hidden",backgroundColor:p},children:g&&(0,r.jsx)(o.A,{media:g,objectFit:"cover",containerStyle:{display:"block",width:"100%",height:"100%"},style:{width:"100%",height:"100%"},title:i,sizes:"(min-width: 1280px) 560px, (min-width: 900px) 50vw, 100vw",loading:"eager",fetchPriority:"high"})}),t.length>1&&(0,r.jsx)(s.A,{direction:"row",spacing:1.75,mt:2,flexWrap:"wrap",useFlexGap:!0,children:t.map((e,s)=>(0,r.jsx)(a.A,{component:"button",type:"button","aria-label":`Show image ${s+1} of ${t.length}`,"aria-pressed":s===x,onClick:()=>u(s),p:0,sx:{width:{xs:64,md:88},height:{xs:64,md:88},borderRadius:`${Math.min(d,8)}px`,overflow:"hidden",cursor:"pointer",border:"none",background:p,boxSh
1adow:s===x?`0 0 0 2px ${h}`:"none","&:focus-visible":{outline:`2px solid ${m.palette.text.primary}`,outlineOffset:2}},children:(0,r.jsx)(o.A,{media:e,objectFit:"cover",containerStyle:{display:"block",width:"100%",height:"100%"},style:{width:"100%",height:"100%"},title:`${i} thumbnail ${s+1}`,sizes:"88px",loading:"lazy"})},e))})]})}},85518:(e,t,i)=>{i.d(t,{W:()=>p,g:()=>m});var r=i(7652);let a=/<img\b([^>]*)\/?>/gi,s=/(^|\s)src\s*=\s*(?:"([^"]*)"|'([^']*)')/i,n=/(^|\s)srcset\s*=\s*(?:"([^"]*)"|'([^']*)')/i,o=/(^|\s)sizes\s*=\s*(?:"([^"]*)"|'([^']*)')/i,l=/(^|\s)style\s*=\s*(?:"([^"]*)"|'([^']*)')/i,c=/(?:^|;)\s*width\s*:\s*([\d.]+)\s*(px|%)/i,d=e=>e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/gi,"'").replace(/</g,"<").replace(/>/g,">"),h=e=>e.replace(/&/g,"&").replace(/"/g,"""),p=e=>e&&e.includes("<img")?e.replace(a,(e,t)=>(e=>{let t=/(?:^|\s)alt\s*=/i.test(e)?e:`${e} alt=""`,i=e.match(s);if(!i)return`<img${t}>`;let a=d(i[2]??i[3]??"");if(!a)return`<img${t}>`;let n=(e=>{try{if(new URL(e).searchParams.has("width"))return(0,r.Ib)(e,{width:r.CA})===e?null:{src:e};let t=(0,r.Ib)(e,{width:r.CA});if(t===e)return null;return{src:t,srcSet:(0,r.Dl)(e)}}catch{return null}})(a);if(!n)return`<img${t}>`;let o=n.src===a?t:t.replace(s,`$1src="${h(n.src)}"`);if(n.srcSet&&!/(?:^|\s)srcset\s*=/i.test(o)){let t=e.match(l),i=(e=>{if(!e)return"100vw";let t=e.match(c);if(!t)return"100vw";let i=t[1];if("%"===t[2].toLowerCase()){let e=Math.round(parseFloat(i));return`${e}vw`}return`${i}px`})(t?.[2]??t?.[3]);o=`${o} srcset="${h(n.srcSet)}" sizes="${h(i)}"`}return/(?:^|\s)loading\s*=/i.test(o)||(o=`${o} loading="lazy"`),/(?:^|\s)decoding\s*=/i.test(o)||(o=`${o} decoding="async"`),`<img${o}>`})(t)):e??"",m=e=>e&&e.includes("<img")?Array.from(e.matchAll(a),e=>{let t=e[1],i=t.match(s),r=d(i?.[2]??i?.[3]??"");if(!r)return null;let a=t.match(n),l=t.match(o),c=d(a?.[2]??a?.[3]??""),h=d(l?.[2]??l?.[3]??"");return{src:r,...c?{srcSet:c}:{},...h?{sizes:h}:{}}}).filter(e=>null!==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.