{"version":3,"file":"BunnyVideo.7QJsR1mI.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_DPhDUVVB","ControlType","BunnyVideo","props","raw","video","guid","GUID_RE","lib","LIB_RE","libraryId","fixedHeight","style","box","radius","src","autoplay","loop","muted","init_BunnyVideo"],"sources":["https:/framerusercontent.com/modules/tIvfl7SM3JZl8MigfKLn/eWg1LUCotqE8A389dsQF/BunnyVideo.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Reproductor de Bunny Stream (sustituye al componente Vimeo).\n// En \"Vídeo\" se puede pegar el ID, la URL de embed o el <iframe> entero que da Bunny.\n// Con altura \"Fit\" mantiene siempre 16:9 según el ancho; con altura fija, la rellena.\nconst GUID_RE=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i;const LIB_RE=/embed\\/(\\d+)\\//;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 270\n */export default function BunnyVideo(props){const{video,libraryId,autoplay,muted,loop,radius,style}=props;const raw=video||\"\";const guid=(raw.match(GUID_RE)||[])[0];const lib=(raw.match(LIB_RE)||[])[1]||libraryId;// Si Framer no fija altura (Fit), el contenedor toma 16:9 del ancho\nconst fixedHeight=style&&style.height!==undefined&&style.height!==\"auto\";const box={position:\"relative\",width:\"100%\",borderRadius:radius,overflow:\"hidden\",background:\"#000\",...style,...fixedHeight?{height:\"100%\"}:{height:\"auto\",aspectRatio:\"16 / 9\"}};if(!guid){return /*#__PURE__*/_jsx(\"div\",{style:{...box,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"#999\",fontSize:14,fontFamily:\"sans-serif\"},children:\"Pega el ID o el embed de Bunny\"});}const params=new URLSearchParams({autoplay:String(autoplay),loop:String(loop),muted:String(muted),preload:\"true\",responsive:\"true\"});const src=`https://iframe.mediadelivery.net/embed/${lib}/${guid}?${params}`;return /*#__PURE__*/_jsx(\"div\",{style:box,children:/*#__PURE__*/_jsx(\"iframe\",{src:src,loading:\"lazy\",style:{position:\"absolute\",inset:0,border:0,width:\"100%\",height:\"100%\"},allow:\"accelerometer;gyroscope;autoplay;encrypted-media;picture-in-picture;fullscreen;\",allowFullScreen:true,title:\"V\\xeddeo\"})});}addPropertyControls(BunnyVideo,{video:{type:ControlType.String,title:\"V\\xeddeo\",placeholder:\"ID, URL o iframe de Bunny\",defaultValue:\"\"},libraryId:{type:ControlType.String,title:\"Librer\\xeda\",defaultValue:\"17200\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:true},muted:{type:ControlType.Boolean,title:\"Silencio\",defaultValue:true},loop:{type:ControlType.Boolean,title:\"Bucle\",defaultValue:true},radius:{type:ControlType.Number,title:\"Radio\",defaultValue:10,min:0,max:100,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BunnyVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"270\",\"framerIntrinsicWidth\":\"480\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BunnyVideo.map"],"mappings":"A,4JAQG,SAAwBM,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,QAAM,OAAK,SAAO,SAAOC,EAAYC,EAAIC,GAAO,GAASC,GAAMF,EAAI,MAAMG,CAAO,GAAG,CAAC,EAAA,CAAG,GAASC,GAAKJ,EAAI,MAAMK,CAAM,GAAG,CAAC,EAAA,CAAG,IAAIC,EACtMC,EAAYC,GAAOA,EAAM,SAAS,IAAA,IAAWA,EAAM,SAAS,OAAaC,EAAI,CAAC,SAAS,WAAW,MAAM,OAAO,aAAaC,EAAO,SAAS,SAA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