PageSourceSearch

https://www.theograce.co.uk/_next/static/chunks/2193.9cb86546f42af42e.js

js theograce.co.uk collected 2026-10-08 03:39:14 UTC 1,710 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2193],{7089:t=>{t.exports={PdpSwitch:"pdpSwitch_PdpSwitch__m_rb9",FirstLine:"pdpSwitch_FirstLine__mLXA1"}},82193:(t,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>h});var i=l(37876),r=l(14232),d=l(6936),n=l(31262),c=l(7089),a=l.n(c),o=l(44510),s=l(20788),u=l(54587),p=l.n(u),_=l(19110);let h=t=>{let{content:e}=t,{text1:l,text2:c,background:u,text_color:h,font_weight:f,text_decoration:v,icon_link:x,switch_id:m}=e,[k,w]=(0,r.useState)(null),{data:S}=(0,o.B)(t=>t.catalogProduct),{data:b}=(0,o.B)(t=>t.sku),j=Number(m),{pushToDataLayer:g}=(0,_.ur)(),{pricing:N}=S;(0,r.useEffect)(()=>{var t,e,l;let i=((null==S?void 0:S.categories)||[]).find(t=>t.id===j),r=(null==i?void 0:i.options)||[],d=r.findIndex(t=>t.is_default),n=null;if(-1!==d&&(n=r[d+1]||r[0]),!(null==n?void 0:n.related_product))return void w(null);let c=(t=>{let{friendlyUrl:e,shortId:l}=t;return e?"/".concat(s.J.product,"/").concat(e):"/".concat(s.J.product,"/shortid-").concat(l)})({friendlyUrl:null!=(e=n.related_product.friendly_url)?e:void 0,shortId:null!=(l=null==(t=n.related_product.short_id)?void 0:t.toString())?l:""});c&&w(c)},[S,j]);let y="bold"===f?"text2":"text1",A=(0,i.jsxs)("div",{id:"pdp_line",className:a().PdpSwitch,onClick:()=>{g({event:"pdp_interactions",element:"pdp_line",element_template:"switch",interaction_type:"click",item_sku_default:b,item_price_default:N})},style:{backgroundColor:u,color:h,textDecoration:v},children:[(0,i.jsxs)("div",{className:a().FirstLine,children:[x&&(0,i.jsx)(p(),{alt:"",src:x,width:20,height:20}),(0,i.jsx)(d.A,{variant:y,children:l})]}),c&&(0,i.jsx)(d.A,{variant:y,children:c})]});return k?(0,i.jsx)(n.A,{href:k,children:A}):A}}}]);

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.