1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8969],{5380:(e,a,t)=>{t.r(a),t.d(a,{QRDialogContent:()=>E});var l=t(54568),r=t(61561),s=t(85958),o=t(7620),c=t(98404),i=t(81610),n=t(99617),p=t(83897),u=t(13626),d=t(63281),h=t(13601),x=t(5127),j=t(70971);let g=[d.j.AUDIENCES,d.j.TESTDATE,d.j.SHOWALL],m=({url:e})=>{let{formatMessage:a}=(0,s.A)(),[t,p]=(0,o.useState)(""),[u,d]=(0,o.useState)(!1),h=async e=>{try{p(await r.toDataURL(e,{errorCorrectionLevel:"L",margin:0,type:"image/webp",color:{light:n.A.previewApp.drupalColors.backgroundDark,dark:n.A.previewApp.drupalColors.primary},scale:10}))}catch(e){}};return(0,o.useEffect)(()=>{h(e)},[e]),(0,l.jsxs)(l.Fragment,{children:[a(j.E.dialogIntro),t&&(0,l.jsx)("img",{src:t,alt:"QR code",className:"my-2 w-full"}),(0,l.jsx)(c.p,{value:e,readOnly:!0,label:a(j.E.inputLabel)}),(0,l.jsxs)(i.Button,{className:"my-2",color:"drupal",onClick:()=>{navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),3e3)},children:[a(u?j.E.copied:j.E.copy),u&&(0,l.jsx)("span",{className:"icon-emp-success-circle w-2"})]})]})},E=({translationLinks:e,currentLang:a,revisionId:t})=>{let{formatMessage:r}=(0,s.A)(),c=(0,o.useSyncExternalStore)(x.JD.subscribe,x.JD.get,x.Lh),i=e[a].startsWith("/")?e[a].slice(1):e[a],E=new URLSearchParams;for(let e of g){let a=c[e];a&&E.set(e,a)}t&&E.set(d.j.REVISION,t);let b=E.toString(),w=b?`?${b}`:"",S=(0,p.r)(`/${h.CE}/${a}/${i}`,a,n.A),v=`${globalThis.location.origin}${S}${w}`,A=new URLSearchParams({language:a,page:i});for(let e of g){let a=c[e];a&&A.set(e,a)}t&&A.set(d.j.REVISION,t);let f=`${n.A.host.appDeeplinkProtocol}://storefront?${A.toString()}`;return(0,l.jsxs)(u.tU,{defaultValue:"web",className:"max-w-[300px]",children:[(0,l.jsxs)(u.j7,{children:[(0,l.jsx)(u.Xi,{value:"web",className:"text-color-drupal-text-light",children:r(j.E.tabWeb)}),(0,l.jsx)(u.Xi,{value:"app",className:"text-color-drupal-text-light",children:r(j.E.tabApp)})]}),(0,l.jsx)(u.av,{value:"web",children:(0,l.jsx)(m,{url:v})}),(0,l.jsx)(u.av,{value:"app",children:(0,l.jsx)(m,{url:f})})]})}}}]); 2//# sourceMappingURL=CMS_PreviewQRCode.e3de74d8f518017a.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.