{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/1mkt2plloPEOvoe16UUK/EUmeSZzQepu1cHilAvr7/LemonSqueezy.js", "ssg:https://framerusercontent.com/modules/5ei5E6eaieCAic9iAG36/3tfT2vzniIXkuscRj83m/Image.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useEffect}from\"react\";/**\n *\n * LEMON SQUEEZY\n * By Benjamin\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 100\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export default function LemonSqueezy(props){const{styleOptions,hoverOptions}=props;const{backgroundColor,color,borderRadius,padding,paddingPerSide,paddingTop,paddingRight,paddingBottom,paddingLeft}=styleOptions;const paddingValue=paddingPerSide?`${paddingTop}px ${paddingRight}px ${paddingBottom}px ${paddingLeft}px`:`${padding}px`;/* Only load the lemon script if you want an Overlay\n     * Otherwise, do not include\u2014also, only load it once\n     * whenever you have multiple instances on your page.\n     */ useConditionalScript(!props.isRedirect,\"https://app.lemonsqueezy.com/js/lemon.js\",\"lemon-squeezy-framer-component\");return /*#__PURE__*/ _jsx(motion.a,{href:props.url,className:props.isRedirect?\"\":\"lemonsqueezy-button\",target:props.isRedirect?\"_blank\":\"_self\",style:{fontSize:16,lineHeight:1,fontFamily:\"Inter\",fontWeight:500,...props.style,...buttonStyles,...props.fontControl,padding:paddingValue,color:color,backgroundColor:backgroundColor,borderRadius:borderRadius,userSelect:\"none\",placeContent:flexAlignSwitch(props.fontControl),whiteSpace:\"nowrap\"},whileHover:{scale:hoverOptions===null||hoverOptions===void 0?void 0:hoverOptions.hoverScale,backgroundColor:hoverOptions===null||hoverOptions===void 0?void 0:hoverOptions.hoverBackgroundColor,color:hoverOptions===null||hoverOptions===void 0?void 0:hoverOptions.hoverColor},transition:props.hoverTransition,children:props.text});};LemonSqueezy.displayName=\"Lemon Squeezy\";addPropertyControls(LemonSqueezy,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Buy Now\"},url:{title:\"Link\",type:ControlType.String,defaultValue:\"https://makelemonade.lemonsqueezy.com/checkout/buy/0929c351-abb3-49f7-a671-ba15406517dd\"},isRedirect:{title:\"Type\",type:ControlType.Boolean,enabledTitle:\"Link\",disabledTitle:\"Overlay\",defaultValue:true},fontControl:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},styleOptions:{type:ControlType.Object,title:\"Styles\",buttonTitle:\"Button, Font\",controls:{backgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#40F\"},color:{type:ControlType.Color,defaultValue:\"#FFF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",displayStepper:true,defaultValue:50},padding:{title:\"Padding\",type:ControlType.FusedNumber,toggleKey:\"paddingPerSide\",toggleTitles:[\"Padding\",\"Padding per side\"],defaultValue:10,valueKeys:[\"paddingTop\",\"paddingRight\",\"paddingBottom\",\"paddingLeft\",],valueLabels:[\"T\",\"R\",\"B\",\"L\"],min:0}}},hoverOptions:{type:ControlType.Object,title:\"Hover\",buttonTitle:\"Effect\",optional:true,description:\"Learn more about the Checkout options [here](https://docs.lemonsqueezy.com/help/checkout/checkout-overlay)\",controls:{hoverScale:{type:ControlType.Number,title:\"Scale\",min:0,max:10,displayStepper:true,step:.01,defaultValue:1.1},hoverBackgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#111\",optional:true},hoverColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFF\",optional:true},hoverTransition:{type:ControlType.Transition,title:\"Transition\",defaultValue:{type:\"spring\",stiffness:400,damping:30}}}}});const buttonStyles={display:\"flex\",placeItems:\"center\",placeContent:\"center\",textDecoration:\"none\"};/* Use external script conditionally */ const useConditionalScript=(condition,url,id)=>{useEffect(()=>{if(!condition)return;if(document.querySelector(`#${id}`))return;const script=document.createElement(\"script\");script.src=url;script.id=id;script.defer=true;script.onload=()=>{var ref;if(window.LemonSqueezy)return;(ref=window.createLemonSqueezy)===null||ref===void 0?void 0:ref.call(window);};document.body.appendChild(script);},[url,id,condition]);};/* Match flex content alignment with text align */ const flexAlignSwitch=fontControlStyles=>{if(fontControlStyles.textAlign===\"left\"){return\"flex-start\";}if(fontControlStyles.textAlign===\"right\"){return\"flex-end\";}return\"center\";};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LemonSqueezy\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"100\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LemonSqueezy.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Responsive Image\n * By Benjamin\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n *\n */export default function Image(props){const{image,alt,radius,padding,link,newTab,style,shadowOptions}=props;const{shadowX,shadowY,shadowBlur,shadowColor,shadowEnabled}=shadowOptions;const wrapperStyle={display:\"flex\",placeContent:\"center\",placeItems:\"center\",width:\"100%\",height:\"100%\",padding:padding};const imageStyle={maxWidth:\"100%\",maxHeight:\"100%\",borderRadius:radius,boxShadow:shadowEnabled&&`${shadowX}px ${shadowY}px ${shadowBlur}px ${shadowColor}`};const imageSource=(image===null||image===void 0?void 0:image.src)||\"https://framerusercontent.com/images/64n4wnVJKDJspLlFZ6DarCP0M4.jpg\";return link?/*#__PURE__*/_jsx(\"a\",{href:link,title:alt,target:newTab?\"_blank\":\"_self\",style:wrapperStyle,children:/*#__PURE__*/_jsx(\"img\",{style:imageStyle,src:imageSource,srcSet:image===null||image===void 0?void 0:image.srcSet,alt:alt})}):/*#__PURE__*/_jsx(\"div\",{style:wrapperStyle,children:/*#__PURE__*/_jsx(\"img\",{style:imageStyle,src:imageSource,srcSet:image===null||image===void 0?void 0:image.srcSet,alt:alt})});}Image.defaultProps={radius:10,padding:10,alt:\"\",shadowOptions:{shadowEnabled:false,shadowX:0,shadowY:2,shadowBlur:4,shadowColor:\"rgba(0,0,0,0.2)\"}};addPropertyControls(Image,{image:{title:\"Image\",type:ControlType.ResponsiveImage},alt:{type:ControlType.String,title:\"Alt\",placeholder:\"Alt Text\"},radius:{title:\"Radius\",type:ControlType.Number,min:0,max:100,step:5,displayStepper:true},padding:{title:\"Padding\",type:ControlType.Number,min:0,max:100,step:5,displayStepper:true},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",hidden:props=>!props.link},shadowOptions:{type:ControlType.Object,title:\"Shadow\",controls:{shadowEnabled:{type:ControlType.Boolean,title:\"Enable\",defaultValue:false},shadowX:{type:ControlType.Number,title:\"X\",min:0,defaultValue:0,hidden:props=>!props.shadowEnabled},shadowY:{type:ControlType.Number,title:\"Y\",min:0,defaultValue:2,hidden:props=>!props.shadowEnabled},shadowBlur:{type:ControlType.Number,title:\"Blur\",min:0,defaultValue:4,hidden:props=>!props.shadowEnabled},shadowColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"rgba(0,0,0,0.2)\",hidden:props=>!props.shadowEnabled}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Image\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image.map"],
  "mappings": "8GAUmB,SAARA,EAA8BC,EAAM,CAAC,GAAK,CAAC,aAAAC,EAAa,aAAAC,CAAY,EAAEF,EAAW,CAAC,gBAAAG,EAAgB,MAAAC,EAAM,aAAAC,EAAa,QAAAC,EAAQ,eAAAC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AAS,KAAKA,EAAY,OAAO,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,eAAe,EAAI,EAAE,QAAQ,CAAC,MAAM,UAAU,KAAKA,EAAY,OAAO,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,eAAe,EAAI,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC,KAAKA,EAAY,QAAQ,MAAM,UAAU,OAAOnB,GAAO,CAACA,EAAM,IAAI,EAAE,cAAc,CAAC,KAAKmB,EAAY,OAAO,MAAM,SAAS,SAAS,CAAC,cAAc,CAAC,KAAKA,EAAY,QAAQ,MAAM,SAAS,aAAa,EAAK,EAAE,QAAQ,CAAC,KAAKA,EAAY,OAAO,MAAM,IAAI,IAAI,EAAE,aAAa,EAAE,OAAOnB,GAAO,CAACA,EAAM,aAAa,EAAE,QAAQ,CAAC,KAAKmB,EAAY,OAAO,MAAM,IAAI,IAAI,EAAE,aAAa,EAAE,OAAOnB,GAAO,CAACA,EAAM,aAAa,EAAE,WAAW,CAAC,KAAKmB,EAAY,OAAO,MAAM,OAAO,IAAI,EAAE,aAAa,EAAE,OAAOnB,GAAO,CAACA,EAAM,aAAa,EAAE,YAAY,CAAC,KAAKmB,EAAY,MAAM,MAAM,QAAQ,aAAa,kBAAkB,OAAOnB,GAAO,CAACA,EAAM,aAAa,CAAC,CAAC,CAAC,CAAC",
  "names": ["LemonSqueezy", "props", "styleOptions", "hoverOptions", "backgroundColor", "color", "borderRadius", "padding", "paddingPerSide", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingValue", "useConditionalScript", "p", "motion", "buttonStyles", "flexAlignSwitch", "addPropertyControls", "ControlType", "condition", "url", "id", "ue", "script", "ref", "window", "fontControlStyles", "Image", "props", "image", "alt", "radius", "padding", "link", "newTab", "style", "shadowOptions", "shadowX", "shadowY", "shadowBlur", "shadowColor", "shadowEnabled", "wrapperStyle", "imageStyle", "imageSource", "p", "addPropertyControls", "ControlType"]
}
