{"version":3,"file":"Panda.Bgex9pAP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/62WcC7mBUTYVs2WtUkob/fwijYKgqBFJuBC6SPCVl/Panda.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function PandaVídeo(props){const{url,allow,allowFullscreen,fetchPriority,borderRadius,iframeId,headCode}=props;useEffect(()=>{if(headCode){const headElements=headCode.split(\"\\n\").map(code=>{const element=document.createElement(\"div\");element.innerHTML=code.trim();return element.firstChild;});headElements.forEach(element=>document.head.appendChild(element));return()=>{headElements.forEach(element=>document.head.removeChild(element));};}},[headCode]);const iframeStyle={border:\"none\",position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\"};const containerStyle={position:\"relative\",width:\"100%\",height:\"100%\",paddingTop:\"56.25%\",overflow:\"hidden\",borderRadius:`${borderRadius}px`,minWidth:\"310px\"};return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{id:iframeId,src:url,style:iframeStyle,allow:allow.join(\";\"),allowFullScreen:allowFullscreen,fetchPriority:fetchPriority})});}PandaVídeo.defaultProps={url:\"https://player-vz-ded14ebd-85a.tv.pandavideo.com.br/embed/?v=79cb9b0e-a64b-4485-8a44-47f36b292e4c\",allow:[\"accelerometer\",\"gyroscope\",\"autoplay\",\"encrypted-media\",\"picture-in-picture\"],allowFullscreen:true,fetchPriority:\"high\",borderRadius:0,iframeId:\"panda-default-id\",headCode:\"\",codeBy:\"Code by @omatusaelhorch\"};addPropertyControls(PandaVídeo,{url:{type:ControlType.String,title:\"URL\",description:\"URL do v\\xeddeo\"},allow:{type:ControlType.Array,title:\"Allow\",control:{type:ControlType.String},description:\"Permiss\\xf5es do iframe\"},allowFullscreen:{type:ControlType.Boolean,title:\"Permitir Fullscreen\",description:\"Permitir modo de tela cheia\",defaultValue:true},fetchPriority:{type:ControlType.String,title:\"Prioridade de Fetch\",description:\"Prioridade de carregamento do iframe\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",description:\"Raio da borda do container\",defaultValue:10,min:0,max:50},headCode:{type:ControlType.String,title:\"Performance Head\",description:\"C\\xf3digo para inserir no head\",defaultValue:\"\",displayTextArea:true},codeBy:{type:ControlType.String,title:\" \",defaultValue:\"Code by @omatusaelhorch\",readOnly:true,description:\"Este componente foi criado por @omatusaelhorch.\"}});// Documentação\n// Code by @omatusaelhorch\nexport default PandaVídeo;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PandaVídeo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Panda.map"],"mappings":"0KAA4H,SAAS,EAAW,EAAM,CAAC,GAAK,CAAC,MAAI,QAAM,kBAAgB,gBAAc,eAAa,WAAS,YAAU,EAAwlB,OAAllB,MAAc,CAAC,GAAG,EAAS,CAAC,IAAM,EAAa,EAAS,MAAM;EAAK,CAAC,IAAI,GAAM,CAAC,IAAM,EAAQ,SAAS,cAAc,MAAM,CAA+B,MAA9B,GAAQ,UAAU,EAAK,MAAM,CAAQ,EAAQ,YAAa,CAAmE,OAAlE,EAAa,QAAQ,GAAS,SAAS,KAAK,YAAY,EAAQ,CAAC,KAAW,CAAC,EAAa,QAAQ,GAAS,SAAS,KAAK,YAAY,EAAQ,CAAC,IAAM,CAAC,EAAS,CAAC,CAAiR,EAAK,MAAM,CAAC,MAAzK,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,WAAW,SAAS,SAAS,SAAS,aAAa,GAAG,EAAa,IAAI,SAAS,QAAQ,CAAsD,SAAsB,EAAK,SAAS,CAAC,GAAG,EAAS,IAAI,EAAI,MAAxV,CAAC,OAAO,OAAO,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,CAA+R,MAAM,EAAM,KAAK,IAAI,CAAC,gBA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