import{j as t}from"./index-D2K-duz6.js";function s(e){return e.replace(/\/+$/,"")}function m(){return s("/glitch")}function p(e){return`glitch_${e.replace(/-/g,"_")}`}function h(e,o){const c=o==null?void 0:o.trim();if(c)return c;const n=m(),l=p(e);return`${n}/${l}/index.html`}function f({props:e,displayMode:o,paused:c}){const n=e,l=String(n.header??"Interactive component"),r=String(n.componentId??"glitch-component"),i=h(r,String(n.componentUrl??"").trim()),a=String(n.caption??"Explore the model directly inside the slide.");return t.jsxs("article",{className:`glitch-component-frame glitch-component-frame--${o} ${c?"glitch-component-frame--paused":""}`,children:[t.jsxs("div",{className:"glitch-component-frame__chrome",children:[t.jsx("p",{className:"glitch-component-frame__eyebrow",children:l}),t.jsx("p",{className:"glitch-component-frame__id",children:r})]}),t.jsx("div",{className:"glitch-component-frame__viewport",children:t.jsx("iframe",{className:"glitch-component-frame__iframe",src:i,title:l||r,loading:"lazy",allow:"fullscreen; autoplay; xr-spatial-tracking",sandbox:"allow-scripts allow-same-origin allow-pointer-lock allow-popups allow-forms"})}),t.jsx("p",{className:"glitch-component-frame__caption",children:a})]})}export{f as default};
