{"version":3,"file":"CheckoutEmbed.B0bhkVg2.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/96sYVIQB05IwYzlXXHeW/lPScftCRUPxh1K9lFeVK/StarRating.js","https:/framerusercontent.com/modules/NZ4vb8TMCijAfanGoDOu/TKHLOYa74a2n1Z1IBhx6/ILaGf8NHi.js","https:/framerusercontent.com/modules/EgdQEbOBVZmQXL6wKteD/RyK2XkoDxBI7p83Drc65/CheckoutEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";export default function StarRating(props){const{rating:initialRating,maxStars,size,fillColor,emptyColor,hoverColor,interactive,showValue,direction,enableGlow,glowIntensity,onRatingChange}=props;const[rating,setRating]=useState(initialRating);const[hoverRating,setHoverRating]=useState(0);const handleClick=value=>{if(!interactive)return;setRating(value);onRatingChange?.(value);};const handleMouseEnter=value=>{if(!interactive)return;setHoverRating(value);};const handleMouseLeave=()=>{if(!interactive)return;setHoverRating(0);};const displayRating=hoverRating||rating;return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:\"4px\",width:\"100%\",height:\"100%\",flexDirection:direction===\"rtl\"?\"row-reverse\":\"row\",// Adiciona padding para garantir que o scale e o glow não sejam cortados nas bordas do container\npadding:\"15px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",// Aumentei um pouco o gap para o scale não sobrepor demais\ngap:\"8px\",cursor:interactive?\"pointer\":\"default\",flexDirection:direction===\"rtl\"?\"row-reverse\":\"row\"},children:[...Array(maxStars)].map((_,index)=>{const starValue=index+1;const isFilled=starValue<=displayRating;const isHovered=hoverRating===starValue;// Definir a cor atual para reutilizar no fill e no glow\nconst currentColor=isFilled?hoverRating?hoverColor:fillColor:emptyColor;return /*#__PURE__*/_jsx(\"svg\",{width:size,height:size,viewBox:\"0 0 24 24\",fill:currentColor,stroke:isFilled?currentColor:\"#CBD5E0\",strokeWidth:\"1.5\",onClick:()=>handleClick(starValue),onMouseEnter:()=>handleMouseEnter(starValue),onMouseLeave:handleMouseLeave,style:{// --- INÍCIO DAS ALTERAÇÕES DE SCALE ---\n// 1. Transição tipo \"mola\" para um efeito mais tátil\ntransition:\"all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\",// 2. Aumento da escala para 1.3x quando em hover\ntransform:isHovered?\"scale(1.3)\":\"scale(1)\",// 3. Garante que a estrela em hover fique acima das outras\nposition:\"relative\",zIndex:isHovered?10:1,// --- FIM DAS ALTERAÇÕES DE SCALE ---\nfilter:enableGlow&&isFilled?`drop-shadow(0 0 ${glowIntensity}px ${currentColor})`:\"none\",// Garante que o navegador renderize a animação de forma otimizada\nwillChange:\"transform, filter\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"})},index);})}),showValue&&/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:direction===\"ltr\"?\"8px\":\"0\",marginRight:direction===\"rtl\"?\"8px\":\"0\",fontSize:size*.6,fontWeight:600,color:fillColor,textShadow:enableGlow?`0 0 ${glowIntensity}px ${fillColor}40`:\"none\"},children:displayRating.toFixed(1)})]});}StarRating.defaultProps={rating:3,maxStars:5,size:32,fillColor:\"#FFC107\",emptyColor:\"#E0E0E0\",hoverColor:\"#FFD54F\",interactive:true,showValue:false,direction:\"ltr\",enableGlow:true,glowIntensity:8,onRatingChange:()=>{}};addPropertyControls(StarRating,{rating:{type:ControlType.Number,title:\"Rating\",min:0,max:5,step:.5,displayStepper:true},maxStars:{type:ControlType.Number,title:\"Max Stars\",min:3,max:10,step:1,displayStepper:true},size:{type:ControlType.Number,title:\"Size\",min:16,max:64,step:4,displayStepper:true},direction:{type:ControlType.Enum,title:\"Direction\",options:[\"ltr\",\"rtl\"],optionTitles:[\"Left to Right\",\"Right to Left\"],displaySegmentedControl:true},fillColor:{type:ControlType.Color,title:\"Fill Color\"},emptyColor:{type:ControlType.Color,title:\"Empty Color\"},hoverColor:{type:ControlType.Color,title:\"Hover Color\"},enableGlow:{type:ControlType.Boolean,title:\"Glow Effect\",defaultValue:true},glowIntensity:{type:ControlType.Number,title:\"Glow Blur\",min:0,max:30,step:1,hidden:props=>!props.enableGlow},interactive:{type:ControlType.Boolean,title:\"Interactive\",defaultValue:true},showValue:{type:ControlType.Boolean,title:\"Show Value\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StarRating\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StarRating.map","// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.269 0 L 0.019 3.25 C 0.019 3.25 -0.731 14.5 7.269 14.5 C 15.269 14.5 14.519 3.25 14.519 3.25 Z\" fill=\"transparent\" height=\"14.5px\" id=\"HZA9jZbir\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1335ju, 1.5)\" stroke=\"var(--18mrqx2, rgb(0, 0, 0))\" transform=\"translate(4.731 4.75)\" width=\"14.53737620061258px\"/><path d=\"M 0 3 L 1.25 4.5 L 4.5 0\" fill=\"transparent\" height=\"4.5px\" id=\"d2D4kXfrY\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1335ju, 1.5)\" stroke=\"var(--18mrqx2, rgb(0, 0, 0))\" transform=\"translate(9.75 9.75)\" width=\"4.5px\"/></svg>';const getProps=({dots,height,id,stroke,width,width1,...props})=>{return{...props,BKVe8Pgvw:dots??props.BKVe8Pgvw??1,fICyAUQY1:stroke??props.fICyAUQY1??\"rgb(0, 0, 0)\",lKf_CQTz5:width1??props.lKf_CQTz5??1.5};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,fICyAUQY1,lKf_CQTz5,BKVe8Pgvw,...restProps}=getProps(props);const href=useSVGTemplate(\"4212902478\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-8IZ2d\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1335ju\":lKf_CQTz5,\"--18mrqx2\":fICyAUQY1,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-8IZ2d { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"fICyAUQY1\":\"stroke\",\"lKf_CQTz5\":\"width1\",\"BKVe8Pgvw\":\"dots\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Shield Tick\",\"color\":{\"type\":\"variable\",\"value\":\"18mrqx2\"},\"set\":{\"localId\":\"vectorSet/SuYHhKUZG\",\"id\":\"SuYHhKUZG\",\"moduleId\":\"EqX8thWQjdZcOB1c6p5N\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-8IZ2d\");Icon.displayName=\"Shield Tick\";export default Icon;addPropertyControls(Icon,{fICyAUQY1:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color},lKf_CQTz5:{defaultValue:1.5,displayStepper:true,hidden:false,max:4,min:0,step:.5,title:\"Width\",type:ControlType.Number},BKVe8Pgvw:{defaultValue:1,displayStepper:true,hidden:true,max:4,min:1,title:\"Dots\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\",\"framerVariables\":\"{\\\"fICyAUQY1\\\":\\\"stroke\\\",\\\"lKf_CQTz5\\\":\\\"width1\\\",\\\"BKVe8Pgvw\\\":\\\"dots\\\"}\",\"framerContractVersion\":\"1\",\"framerVector\":\"{\\\"name\\\":\\\"Shield Tick\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"18mrqx2\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/SuYHhKUZG\\\",\\\"id\\\":\\\"SuYHhKUZG\\\",\\\"moduleId\\\":\\\"EqX8thWQjdZcOB1c6p5N\\\"}}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"true\",\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function useEmbed(){useEffect(()=>{if(window?.checkoutPage)return;const script=document.createElement(\"script\");script.src=\"https://checkoutpage.co/js/overlay.js\";script.async=true;document.body.appendChild(script);return()=>{document.body.removeChild(script);};},[]);return null;}export default function CheckoutEmbed({checkout,style}){useEmbed();useEffect(()=>{window?.checkoutPage?.initEmbeds();},[checkout]);return /*#__PURE__*/_jsx(\"div\",{style:style,children:/*#__PURE__*/_jsx(\"div\",{className:\"cp-checkout\",\"data-checkout\":checkout})});}// Add a form id field in the properties panel\naddPropertyControls(CheckoutEmbed,{checkout:{title:\"Checkout\",type:ControlType.String,placeholder:\"Your checkout link\",defaultValue:\"https://checkoutpage.co/c/examples/customize-this-checkout\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CheckoutEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CheckoutEmbed.map"],"mappings":"8QAAyI,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,OAAO,EAAc,WAAS,OAAK,YAAU,aAAW,aAAW,cAAY,YAAU,YAAU,aAAW,gBAAc,kBAAgB,EAAW,CAAC,EAAO,GAAWA,EAAS,EAAc,CAAM,CAAC,EAAY,GAAgBA,EAAS,EAAE,CAAO,EAAY,GAAO,CAAK,IAAmB,EAAU,EAAM,CAAC,IAAiB,EAAM,GAAS,EAAiB,GAAO,CAAK,GAAmB,EAAe,EAAM,EAAS,MAAqB,CAAK,GAAmB,EAAe,EAAE,EAAS,EAAc,GAAa,EAAO,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,IAAI,MAAM,MAAM,OAAO,OAAO,OAAO,cAAc,IAAY,MAAM,cAAc,MACh2B,QAAQ,OAAO,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAClE,IAAI,MAAM,OAAO,EAAY,UAAU,UAAU,cAAc,IAAY,MAAM,cAAc,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,EAAS,CAAC,CAAC,KAAK,EAAE,IAAQ,CAAC,IAAM,EAAU,EAAM,EAAQ,EAAS,GAAW,EAAoB,EAAU,IAAc,EAC5O,EAAa,EAAS,EAAY,EAAW,EAAU,E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