"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-FSLSW5KG.cjs.js"),s=require("react"),e=require("react/jsx-runtime");var S=s.lazy(async()=>Promise.resolve().then(()=>require("./WistiaPlayerWrapper-KYHM7EWK.cjs.js")).then(t=>({default:t.WistiaPlayerWrapper}))),p=s.forwardRef((t,c)=>{const{aspect:l,children:n,embedHost:a,mediaId:i,swatch:d,style:y}=t,o=r.getMergedEmbedOption(i,"embedHost",a!=null?a:void 0),u=r.isString(o)?o:"fast.wistia.com",h=l!==void 0,m=r.wistiaPlayerStyleBlock({mediaId:i,embedHost:u,aspect:l,shouldLoadSwatch:d});return e.jsx(s.Suspense,{fallback:h&&e.jsxs(s.Fragment,{children:[e.jsx("style",{children:m}),e.jsx("wistia-player",{"media-id":i,style:y,children:n})]}),children:e.jsx(S,{ref:c,...t})})});exports.WistiaPlayer=p;
