1import{R as d,j as p}from"./RenderReact-D01794dB.js";import{P as m}from"./index-BrgB-2s_.js";let n=null;function l(t){const e=document.querySelector(`meta[name="${t}"]`);return e?e.getAttribute("content"):null}function r(){return window.Paddle?(console.log("Paddle is already loaded."),Promise.resolve()):n||(n=m("https://cdn.paddle.com/paddle/paddle.js","paddle",{returnPromise:!0}).then(()=>{console.log("Loaded Paddle. Setting it up.");const t=l("paddleEnvironment"),e=parseInt(l("paddleVendorId"));if(!t||!e){console.error("You must set the meta tags for paddleEnvironment or paddleVendorId");return}t!=="production"&&(console.log("Paddle environment is sandbox."),Paddle.Environment.set("sandbox")),Paddle.Setup({vendor:e,eventCallback:function(o){}})}),n)}function h({label:t,className:e,style:o,paddleParams:a}){const[s,u]=d.useState(!1);d.useEffect(()=>{r().then(()=>{u(!0)}).catch(c=>console.log(c))},[]);function i(){r().then(()=>{Paddle.Checkout.open(a)})}return s?p.jsx("div",{className:e,onClick:i,style:o,children:t}):null}export{h as default};
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.