PageSourceSearch

https://shop.mindful.org/cdn/shopifycloud/checkout-web/assets/c1/QRCode.BFweZYBT.js

js mindful.org collected 2026-09-24 08:33:45 UTC 3,764 bytes, 1 lines download raw bytes

1import{h as V,k as L,T as k,u as r,F as N,g as z}from"./esnext-vendor.D7ldIee_.js";import{ax as q,av as I,ak as S}from"./hydrate.ByRIsqvd.js";import{_ as x}from"./app.A60-IfPs.js";import"./addresses-is-address-empty.-MuOhIyI.js";function T({id:a,text:d,onCopy:s,onCopyError:m}){const{upsertInteraction:l,deleteInteraction:t}=q();return V(()=>(a?l({id:a,type:"command",kind:"clipboard",defaultCommand:"--copy",clipboard:{text:d,onCopy:s,onCopyError:m}}):console.warn("ClipboardItem: id is required"),()=>{a&&t(a)}),[a,d,s,m,l,t]),null}function W(a){const[d,s]=L({status:"pending",data:void 0,error:void 0});return V(()=>{async function m(l){if(l==null){s({status:"error",data:void 0,error:"QR Code: No content. Add a content property to the QRCode component."});return}let t;try{t=(await x(async()=>{const{default:o}=await import("./qrcodegen.CeqgWAwv.js");return{default:o}},[])).default}catch(o){s({status:"error",data:void 0,error:`QR Code: Unable to load QR code library: ${o instanceof Error?o.message:String(o)}`});return}try{const o=t.QrCode.encodeText(l,t.QrCode.Ecc.QUARTILE);s({status:"success",data:{size:o.size,modules:o.getModules()},error:void 0})}catch(o){s({status:"error",data:void 0,error:`QR Code: Unable to convert content: ${o instanceof Error?o.message:String(o)}`})}}m(a)},[a]),d}var e={QRCodeWrapper:"_1bol2bm4 _1bol2bm2 _1fragemup _1fragemv4 _1bol2bm3",QRCode:"_1bol2bm7 _1bol2bm5 _1fragemws _1bol2bm6",QRCodeSVG:"_1bol2bma _1bol2bm8 _1fragemzf _1fragem5u _1bol2bm9",QRCodeLogoWrapper:"_1bol2bmc _1bol2bmb _1fragemwi",QRCodeLogo:"_1bol2bme _1bol2bmd _1fragem5u _1fragemw3 _1fragemzf _1fragem4q",sizeVariant:{base:"_1bol2bmh _1bol2bmf",fill:"_1bol2bmi _1bol2bmg _1fragemzf"},borderVariant:{none:"_1bol2bmo",base:"_1bol2bmp _1bol2bmn _1fragemel _1frageme1 _1fragemf5 _1fragemdh"},displayVariant:{block:"_1bol2bml _1bol2bmj _1fragem5u",inline:"_1bol2bmm _1bol2bmk _1fragem6e _1fragem12x"},fillForeground:"_1bol2bmq",fillBackground:"_1bol2bmr",qrLogoWidthVar:"var(--_1bol2bm0)",qrLogoXYVar:"var(--_1bol2bm1)",visuallyHidden:"_1bol2bmt _1bol2bms _1fragem121"};const $=.25,D=.025;function O({content:a,accessibilityLabel:d,border:s="base",display:m="block",id:l,logo:t,onError:o,size:v="base"}){const[C,y]=L(!!t),Q=I(),{status:f,data:n,error:R}=W(a),w=k(()=>{if(!n)return null;const p=Math.round(n.size*D),i=Math.round(n.size*$),g=Math.round(n.size/2-i/2),c=[];for(let _=0;_<n.size;_++)for(let u=0;u<n.size;u++)n.modules[u][_]&&c.push(`M${u},${_}h1v1h-1z`);const b=c.join(" "),h=n.size;return{svgPath:b,svgViewBoxSize:h,logoWidth:i,logoXY:g,logoMargin:p}},[n]);if(f==="success"&&w){const{svgPath:p,svgViewBoxSize:i,logoWidth:g,logoXY:c,logoMargin:b}=w,h=d??Q("qrCode");return r("div",{id:l,className:z(e.QRCodeWrapper,e.sizeVariant[v],e.borderVariant[s],e.displayVariant[m]),style:N({[e.qrLogoWidthVar]:`${g/i*100}%`,[e.qrLogoXYVar]:`${c/i*100}%`}),children:r("div",{className:e.QRCode,children:[r("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:`0 0 ${i} ${i}`,stroke:"none","shape-rendering":"crispEdges",role:"img","aria-label":h,className:e.QRCodeSVG,children:[r("rect",{width:"100%",height:"100%",className:e.fillBackground}),r("path",{d:p,className:e.fillForeground}),C&&r("rect",{width:g+b*2,height:g+b*2,x:c-b,y:c-b,className:e.fillBackground})]}),C&&r("div",{className:e.QRCodeLogoWrapper,children:r("img",{src:t,className:e.QRCodeLogo,alt:"",onError:()=>{y(!1),console.warn(`QR Code: Error loading logo image from ${t}`)}})})]})})}return f==="pending"?r("div",{id:l,className:z(e.sizeVariant[v]),children:[r(S,{contentDisplay:"block",aspectRatio:"1",blockSize:"100%",inlineSize:"100%"}),r("div",{className:e.visuallyHidden,children:Q("loading")})]}):(f==="error"&&(R&&console.warn(R),o?.()),null)}export{T as C,O as Q};

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.