{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/YX71vmJwjXJW368ldQO6/Usn6JMdbgKFjLzbgWTmV/WistiaEmbedUrl.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 225\n * @framerDisplayName Wistia Embed\n */export default function WistiaEmbed({videoId=\"wqlxfepac9\",objectFit=\"contain\",borderRadius=0,backgroundColor=\"#000000\",style}){const[isScriptLoaded,setIsScriptLoaded]=React.useState(false);React.useEffect(()=>{if(!videoId||document.querySelector(`script[src*=\"${videoId}.jsonp\"]`))return;const script1=document.createElement(\"script\");script1.src=`https://fast.wistia.com/embed/medias/${videoId}.jsonp`;script1.async=true;const script2=document.createElement(\"script\");script2.src=\"https://fast.wistia.com/assets/external/E-v1.js\";script2.async=true;Promise.all([new Promise(resolve=>{script1.onload=resolve;}),new Promise(resolve=>{script2.onload=resolve;})]).then(()=>{setIsScriptLoaded(true);});document.body.appendChild(script1);document.body.appendChild(script2);return()=>{if(script1.parentNode)script1.parentNode.removeChild(script1);if(script2.parentNode)script2.parentNode.removeChild(script2);};},[videoId]);React.useEffect(()=>{if(!isScriptLoaded||objectFit===\"contain\")return;window._wq=window._wq||[];window._wq.push({id:videoId,options:{fitStrategy:\"cover\",autoPlay:true,silentAutoPlay:true,muted:true,loop:true,controlsVisibleOnLoad:false,playerColor:\"000000\"}});},[videoId,objectFit,isScriptLoaded]);const containerStyle=React.useMemo(()=>({...style,overflow:\"hidden\",position:\"relative\",width:\"100%\",height:objectFit===\"cover\"?\"100%\":\"auto\",borderRadius:`${borderRadius}px`,backgroundColor:backgroundColor}),[style,objectFit,borderRadius,backgroundColor]);if(!videoId){return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:\"Please enter a Wistia video ID\"},\"empty-container\");}return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"div\",{className:`wistia_embed wistia_async_${videoId}${objectFit===\"contain\"?\" videoFoam=true\":\"\"}`,style:{width:\"100%\",height:objectFit===\"cover\"?\"100%\":\"auto\"}},\"wistia-embed\")},\"wistia-container\");}addPropertyControls(WistiaEmbed,{videoId:{type:ControlType.String,title:\"Video ID\",defaultValue:\"wqlxfepac9\"},objectFit:{type:ControlType.Enum,title:\"Media Fitting\",options:[\"contain\",\"cover\"],optionTitles:[\"Contain\",\"Cover\"],defaultValue:\"contain\",description:\"Use contain for default Wistia behavior. [Learn More](https://docs.wistia.com/docs/embed-options-and-plugins#fitstrategy)\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:0,min:0,max:100,step:1,displayStepper:true},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WistiaEmbed\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"225\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"400\",\"framerDisplayName\":\"Wistia Embed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WistiaEmbedUrl.map"],
  "mappings": "qHAMkB,SAARA,EAA6B,CAAC,QAAAC,EAAQ,aAAa,UAAAC,EAAU,UAAU,aAAAC,EAAa,EAAE,gBAAAC,EAAgB,UAAU,MAAAC,CAAK,EAAE,CAAC,GAAK,CAACC,EAAeC,CAAiB,EAAQC,EAAS,EAAK,EAAQC,EAAU,IAAI,CAAC,GAAG,CAACR,GAAS,SAAS,cAAc,gBAAgBA,CAAO,UAAU,EAAE,OAAO,IAAMS,EAAQ,SAAS,cAAc,QAAQ,EAAEA,EAAQ,IAAI,wCAAwCT,CAAO,SAASS,EAAQ,MAAM,GAAK,IAA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c,EAAK,MAAM,CAAC,MAAMF,EAAe,SAAS,gCAAgC,EAAE,iBAAiB,CAA4R,CAACG,EAAoBjB,EAAY,CAAC,QAAQ,CAAC,KAAKkB,EAAY,OAAO,MAAM,WAAW,aAAa,YAAY,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,MAAM,gBAAgB,QAAQ,CAAC,UAAU,OAAO,EAAE,aAAa,CAAC,UAAU,OAAO,EAAE,aAAa,UAAU,YAAY,2HAA2H,EAAE,aAAa,CAAC,KAAKA,EAAY,OAAO,MAAM,gBAAgB,aAAa,EAAE,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,eAAe,EAAI,EAAE,gBAAgB,CAAC,KAAKA,EAAY,MAAM,MAAM,mBAAmB,aAAa,SAAS,CAAC,CAAC",
  "names": ["WistiaEmbed", "videoId", "objectFit", "borderRadius", "backgroundColor", "style", "isScriptLoaded", "setIsScriptLoaded", "ye", "ue", "script1", "script2", "resolve", "window", "containerStyle", "se", "p", "addPropertyControls", "ControlType"]
}
