{"version":3,"file":"VSL.Dq3f03eR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/1UxC78QDUE7kQfjgRpf2/bTk0QVBbcWTY2ovfGdJJ/VSL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function VturbPlayer({videoId,accountId,borderRadius,maxWidth}){useEffect(()=>{if(!videoId||!accountId)return;const SCRIPT_URL=`https://scripts.converteai.net/${accountId}/players/${videoId}/v4/player.js`;const SCRIPT_ID=`vturb-script-${videoId}`;if(document.getElementById(SCRIPT_ID))return;const script=document.createElement(\"script\");script.id=SCRIPT_ID;script.src=SCRIPT_URL;script.async=true;document.head.appendChild(script);},[videoId,accountId]);if(!videoId||!accountId){return /*#__PURE__*/_jsx(\"div\",{style:{padding:24,background:\"#f5f5f5\",borderRadius:8,color:\"#666\",textAlign:\"center\",fontFamily:\"sans-serif\"},children:\"Configur\\xe1 Video ID y Account ID en el panel derecho\"});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",maxWidth:`${maxWidth}px`,margin:\"0 auto\"},children:/*#__PURE__*/_jsx(\"vturb-smartplayer\",{id:`vid-${videoId}`,style:{display:\"block\",margin:\"0 auto\",width:\"100%\",borderRadius:`${borderRadius}px`,overflow:\"hidden\"}})});}VturbPlayer.defaultProps={videoId:\"\",accountId:\"4a2e6a86-06bb-4688-ade2-ceda098f97eb\",borderRadius:7,maxWidth:800};addPropertyControls(VturbPlayer,{videoId:{type:ControlType.String,title:\"Video ID\",placeholder:\"Ej: 6a01fa7d9c0c7d2462ead9e2\"},accountId:{type:ControlType.String,title:\"Account ID\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",min:0,max:50,step:1,unit:\"px\"},maxWidth:{type:ControlType.Number,title:\"Max Width\",min:300,max:1400,step:10,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VturbPlayer\",\"slots\":[],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