1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{13475:(t,e,c)=>{c.d(e,{$:()=>o});class o extends Error{constructor(t,e){super('Attempted code injection: User provided "'.concat(t,'", which is not on expected subdomain "').concat(e,'"')),this.name="AttemptedCodeInjectionError"}}},40514:(t,e,c)=>{c.r(e),c.d(e,{ClickToBuyMultiProduct:()=>s});var o=c(74429),i=c(71041),r=c(18225),n=c.n(r),l=c(17464),d=c(85285),u=c(96607),a=c(87209),m=c(13475);let s=t=>{let{block:{elements:{srcUrl:e,dataKey:c,text:r}}}=t,[s,p]=(0,i.useState)(!1),y="brands.click2buy.com",C=l.Yj().url().safeParse(e).success?new URL(e):null;return C&&C.hostname!==y?((0,a.vV)(new m.$(e,y)),null):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n(),{async:!0,id:"click-to-buy-script-multi",onReady:()=>{(0,a.OG)("Smart Commerce - Click-to-buy-multi-product script loaded and ready"),(()=>{var t;p(!0),(0,a.OG)("Smart Commerce - Click-to-buy-multi-product widget initialized"),null==(t=window.c2bPopin)||t.init()})()},src:e}),(0,o.jsx)("div",{className:"btn C2B_Widget_Key my-2 text-sm md:my-0","data-key":c,role:"button",children:(0,o.jsx)(d.$,{onClick:t=>{if(t.preventDefault(),(0,a.OG)("From Smart Commerce - Click-to-buy-multi-product, Button clicked with name: ".concat(r)),(0,u.d)({event:"cta_click",cta_name:r,cta_category:"CTA_Button"}),s){let t=document.querySelector(".C2BC_popin");t?((0,a.OG)("Smart Commerce - Click-to-buy-multi-product widget displayed"),t.style.top="30px",t.style.display="block"):(0,a.OG)("Smart Commerce - Click-to-buy-multi-product widget not found in the DOM")}else(0,a.OG)("Smart Commerce - Click-to-buy-multi-product not loaded yet")},padding:"px-6 py-2",children:r})})]})}}}]); 2//# sourceMappingURL=514.aa69c42fc6aa66d9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.