{"version":3,"file":"GumletVideo.B_xa128d.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/kQUjVTPc3c1uQmS0owZd/Wr9BFOUcjhsxJRCzhZ2L/GumletVideo.js"],"sourcesContent":["// Gumlet Video Embed code for Framer\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * Gumlet Video Embed\n *\n * @framerIntrinsicWidth 640\n * @framerIntrinsicHeight 360\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GumletVideoEmbed(props){const{videoId,title,autoplay,background,loop,disableControls,aspectRatio,showTitle,style}=props;console.log(props);const paddingBottom=useMemo(()=>`${100/aspectRatio}%`,[aspectRatio]);const url=useMemo(()=>{try{const u=new URL(`https://play.gumlet.io/embed/${videoId}`);const params=u.searchParams;params.set(\"autoplay\",autoplay?\"true\":\"false\");params.set(\"background\",background?\"true\":\"false\");params.set(\"loop\",loop?\"true\":\"false\");params.set(\"disable_player_controls\",disableControls?\"true\":\"false\");params.set(\"video_title\",showTitle?\"true\":\"false\");u.search=params.toString();return u.toString();}catch{return\"about:blank\";}},[videoId,autoplay,background,loop,disableControls,showTitle]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:0,paddingBottom},children:/*#__PURE__*/_jsx(\"iframe\",{src:url,title:title,loading:\"lazy\",allow:\"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture; fullscreen;\",style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",border:\"none\"}})});}addPropertyControls(GumletVideoEmbed,{videoId:{type:ControlType.String,title:\"Video ID\",defaultValue:\"648556aa1c2ca2ad5ba7a97b\",placeholder:\"Video ID\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"Gumlet Video\"},autoplay:{type:ControlType.Boolean,title:\"Autoplay\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},showTitle:{type:ControlType.Boolean,title:\"Show Title on Embed\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"},disableControls:{type:ControlType.Boolean,title:\"Player Controls\",defaultValue:false,enabledTitle:\"Hide\",disabledTitle:\"Show\"},aspectRatio:{type:ControlType.Number,title:\"Aspect Ratio\",defaultValue:16/9},background:{type:ControlType.Boolean,title:\"Background Video\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GumletVideoEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"360\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"640\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GumletVideo.map"],"mappings":"qKASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,WAAS,aAAW,OAAK,kBAAgB,cAAY,YAAU,SAAO,EAAM,QAAQ,IAAI,EAAM,CAAC,IAAM,EAAcA,MAAY,GAAG,IAAI,EAAY,GAAG,CAAC,EAAY,CAAC,CAAO,EAAIA,MAAY,CAAC,GAAG,CAAC,IAAM,EAAE,IAAI,IAAI,gCAAgC,IAAU,CAAO,EAAO,EAAE,aAAyS,OAA5R,EAAO,IAAI,WAAW,EAAS,OAAO,QAAQ,CAAC,EAAO,IAAI,aAAa,EAAW,OAAO,QAAQ,CAAC,EAAO,IAAI,OAAO,EAAK,OAAO,QAAQ,CAAC,EAAO,IAAI,0BAA0B,EAAgB,OAAO,QAAQ,CAAC,EAAO,IAAI,cAAc,EAAU,OAAO,QAAQ,CAAC,EAAE,OAAO,EAAO,UAAU,CAAQ,EAAE,UAAU,MAAO,CAAC,MAAM,gBAAiB,CAAC,EAA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