{"version":3,"file":"UncodeID.DIAzJsNL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Uce3Q5bm4tHmMMmC2g08/TnF8aWFc3ibIKh8LdziN/UncodeID.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 200\n * @framerDisableUnlink\n */export default function T1000(props){const{children,customClass,customId,customScript,relativeMode,autor,enableLink,linkUrl,openInNewTab}=props;const isEmpty=!children||children.length===0;React.useEffect(()=>{const selector=customId?`#${customId}`:customClass?`.${customClass}`:null;const cleanId=customId||customClass||null;if(customScript&&selector){const finalScript=customScript.replaceAll(\"{{target}}\",selector).replaceAll(\"{{idOnly}}\",cleanId);try{const fn=new Function(finalScript);fn();}catch(err){console.warn(\"Erro ao executar JS personalizado:\",err);}}},[customScript,customId,customClass]);const containerStyle={padding:0,margin:0,width:\"100%\",height:\"100%\",...relativeMode?{position:\"relative\"}:{},...enableLink?{cursor:\"pointer\"}:{}};const handleClick=()=>{if(enableLink&&linkUrl){if(openInNewTab){window.open(linkUrl,\"_blank\");}else{window.location.href=linkUrl;}}};if(relativeMode){return /*#__PURE__*/_jsx(\"div\",{id:customId,className:customClass,style:containerStyle,onClick:handleClick});}if(isEmpty){return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,onClick:handleClick,children:/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,color:\"#999\",textAlign:\"center\"},children:\"Nenhum conte\\xfado foi adicionado ao componente. / No content added yet.\"})});}const child=/*#__PURE__*/React.cloneElement(children[0],{id:customId||undefined,className:customClass||undefined,style:{width:\"100%\",height:\"100%\",...children[0]?.props?.style||{}}});return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,onClick:handleClick,children:child});}T1000.displayName=\"UncodeID\";addPropertyControls(T1000,{relativeMode:{type:ControlType.Boolean,title:\"Relative\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Quando ativado, o container usa position: relative e ocupa 100% / Makes the wrapper full size and clickable\"},enableLink:{type:ControlType.Boolean,title:\"Link?\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",description:\"Ativa redirecionamento ao clicar / Enable clickable link behavior\"},linkUrl:{type:ControlType.Link,title:\"URL de destino / Target URL\",placeholder:\"https://...\",description:\"URL para onde ser\\xe1 redirecionado / URL to redirect to\",hidden(props){return props.enableLink===false;}},openInNewTab:{type:ControlType.Boolean,title:\"Abrir nova guia? / New tab?\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",hidden(props){return props.enableLink===false;},description:\"Abre o link em nova aba / Open the link in a new tab\"},children:{type:ControlType.ComponentInstance,title:\"Conte\\xfado / Content\",description:\"Conecte o componente que ser\\xe1 estilizado / Attach the instance to be styled\",hidden(props){return props.relativeMode===true;}},customClass:{type:ControlType.String,title:\"Classe / Class\",placeholder:\"classe-css\",description:\"Classe para estiliza\\xe7\\xe3o via CSS externo / Class name for styling\"},customId:{type:ControlType.String,title:\"ID\",placeholder:\"meu-id\",description:\"ID \\xfanico para uso em scripts ou estilos / Unique ID\"},customScript:{type:ControlType.String,title:\"JS Personalizado / Custom JS\",placeholder:\"document.getElementById('{{idOnly}}').addEventListener(...)\",displayTextArea:true,description:\"Use {{target}} para querySelector ou {{idOnly}} para getElementById / Use {{target}} or {{idOnly}} selectors\"},autor:{type:ControlType.String,title:\" \",defaultValue:\"Autor:\",description:\"Code by UncodeStack and @omatusaelhorch.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"T1000\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"200\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"400\"}},\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