{"version":3,"file":"UpdateCard.BAwFatNp.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/EAZ6BJYtQSbtI1jcmG32/XfNh5GVNkzn83My0pu29/UpdateCard.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function UpdateCard(props){const{title,buttonLabel,buttonLink,backgroundColor,buttonColor,buttonTextColor,radius,position,offsetX,offsetY,iconBackground,iconSize,customIcon,paddingIcon,titleSize}=props;const[open,setOpen]=React.useState(true);const positionStyles={position:\"fixed\",zIndex:9999};if(position.includes(\"bottom\"))positionStyles.bottom=offsetY;if(position.includes(\"top\"))positionStyles.top=offsetY;if(position.includes(\"right\"))positionStyles.right=offsetX;if(position.includes(\"left\"))positionStyles.left=offsetX;const defaultIcon=`\n        <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" fill=\"#ffffff\" viewBox=\"0 0 16 16\">\n            <path d=\"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z\"/>\n        </svg>\n    `;return(// Root container controlado pelo Framer\n/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"},children:!open?// Ícone quando fechado\n/*#__PURE__*/_jsx(\"div\",{style:{...positionStyles,width:iconSize,height:iconSize,background:iconBackground,borderRadius:12,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",padding:paddingIcon,boxShadow:\"0 8px 20px rgba(0,0,0,0.15)\"},onClick:()=>setOpen(true),dangerouslySetInnerHTML:{__html:customIcon||defaultIcon}}):// Card aberto\n/*#__PURE__*/_jsxs(\"div\",{style:{...positionStyles,background:backgroundColor,borderRadius:radius,padding:\"20px 24px\",width:320,boxSizing:\"border-box\",fontFamily:\"Inter, sans-serif\",boxShadow:\"0 10px 30px rgba(0,0,0,0.15)\"},children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setOpen(false),style:{position:\"absolute\",top:10,right:12,color:\"white\",fontSize:28,cursor:\"pointer\",opacity:.8},children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"div\",{style:{color:\"white\",fontSize:titleSize,fontWeight:800,textAlign:\"center\",letterSpacing:.5,marginBottom:16},children:title}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"a\",{href:buttonLink,// target=\"_blank\"\nrel:\"noopener noreferrer\",style:{display:\"inline-block\",background:buttonColor,color:buttonTextColor,padding:\"10px 18px\",borderRadius:10,fontSize:14,fontWeight:500,textDecoration:\"none\"},children:buttonLabel})})]})}));}addPropertyControls(UpdateCard,{title:{type:ControlType.String,defaultValue:\"GET THE UPDATES FIRST\"},titleSize:{type:ControlType.Number,defaultValue:14},buttonLabel:{type:ControlType.String,defaultValue:\"Sign Up\"},buttonLink:{type:ControlType.String,defaultValue:\"https://example.com\"},backgroundColor:{type:ControlType.Color,defaultValue:\"#2E7D7A\"},buttonColor:{type:ControlType.Color,defaultValue:\"#A8E6CF\"},buttonTextColor:{type:ControlType.Color,defaultValue:\"#1B5E5B\"},radius:{type:ControlType.Number,defaultValue:12,min:0,max:50},position:{type:ControlType.Enum,options:[\"bottom-right\",\"bottom-left\",\"top-right\",\"top-left\"],defaultValue:\"bottom-right\"},offsetX:{type:ControlType.Number,defaultValue:24,title:\"Offset X\"},offsetY:{type:ControlType.Number,defaultValue:24,title:\"Offset Y\"},paddingIcon:{type:ControlType.Number,defaultValue:14},iconBackground:{type:ControlType.Color,defaultValue:\"#2E7D7A\",title:\"Icon BG\"},iconSize:{type:ControlType.Number,defaultValue:56,min:32,max:120,title:\"Icon Size\"},customIcon:{type:ControlType.String,title:\"Custom SVG\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UpdateCard\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UpdateCard.map"],"mappings":"iLAAyI,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,cAAY,aAAW,kBAAgB,cAAY,kBAAgB,SAAO,WAAS,UAAQ,UAAQ,iBAAe,WAAS,aAAW,cAAY,aAAW,EAAW,CAAC,EAAK,GAASA,EAAe,GAAK,CAAO,EAAe,CAAC,SAAS,QAAQ,OAAO,KAAK,CAIxb,OAJ4b,EAAS,SAAS,SAAS,GAAC,EAAe,OAAO,GAAW,EAAS,SAAS,MAAM,GAAC,EAAe,IAAI,GAAW,EAAS,SAAS,QAAQ,GAAC,EAAe,MAAM,GAAW,EAAS,SAAS,OAAO,GAAC,EAAe,KAAK,GAKlpB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,SAAU,EAEzD,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAe,WAAW,EAAgB,aAAa,EAAO,QAAQ,YAAY,MAAM,IAAI,UAAU,aAAa,WAAW,oBAAoB,UAAU,+BAA+B,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,YAAY,EAAQ,GAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,GAAG,MAAM,GAAG,MAAM,QAAQ,SAAS,GAAG,OAAO,UAAU,QAAQ,GAAG,CAAC,SAAS,IAAO,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,QAAQ,SAAS,EAAU,WAAW,IAAI,UAAU,SAAS,cAAc,GAAG,aAAa,GAAG,CAAC,SAAS,EAAM,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ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