Initial commit after recreate
This commit is contained in:
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as a}from"./index-D2K-duz6.js";function h(s){if(!Array.isArray(s)||s.length===0)return[{label:"Security",value:72,color:"#111"},{label:"Trust",value:58,color:"rgba(17, 17, 17, 0.72)"},{label:"Growth",value:44,color:"rgba(17, 17, 17, 0.52)"}];const c=[];return s.forEach((e,n)=>{if(!e||typeof e!="object")return;const l=e,t=Number(l.value);c.push({label:String(l.label??`Series ${n+1}`),value:Number.isFinite(t)?Math.max(0,t):0,color:typeof l.color=="string"?l.color:void 0})}),c.length>0?c:[{label:"Security",value:72,color:"#111"},{label:"Trust",value:58,color:"rgba(17, 17, 17, 0.72)"},{label:"Growth",value:44,color:"rgba(17, 17, 17, 0.52)"}]}function u({props:s,paused:c}){const e=s,n=String(e.header??e.eyebrow??"Chart single"),l=String(e.title??"One chart, one comparison"),t=String(e.body??"Use one chart for one contrast."),o=h(e.points),i=Math.max(...o.map(r=>r.value),1);return a.jsx("article",{className:`chart-single ${c?"chart-single--paused":""}`,children:a.jsxs("div",{className:"chart-single__content",children:[a.jsxs("div",{className:"chart-single__copy",children:[a.jsx("p",{className:"chart-single__eyebrow",children:n}),a.jsx("h2",{className:"chart-single__title",children:l}),a.jsx("p",{className:"chart-single__body",children:t})]}),a.jsx("div",{className:"chart-single__plot",role:"img","aria-label":l,children:o.map(r=>a.jsxs("div",{className:"chart-single__row",children:[a.jsx("span",{className:"chart-single__label",children:r.label}),a.jsx("div",{className:"chart-single__bar-track",children:a.jsx("div",{className:"chart-single__bar-fill",style:{width:`${r.value/i*100}%`,background:r.color??"#111"}})}),a.jsx("span",{className:"chart-single__value",children:r.value})]},r.label))})]})})}export{u as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{j as e}from"./index-D2K-duz6.js";function o({props:n,paused:t}){const i=n,a=String(i.header??i.eyebrow??"Definition"),r=String(i.term??"Crystallization"),d=String(i.definition??"An interactive talk becomes a fixed video."),s=String(i.example??"Same source. Cleaner final cut.");return e.jsx("article",{className:`definition-card ${t?"definition-card--paused":""}`,children:e.jsxs("div",{className:"definition-card__content",children:[e.jsx("p",{className:"definition-card__eyebrow",children:a}),e.jsx("h2",{className:"definition-card__term",children:r}),e.jsx("p",{className:"definition-card__definition",children:d}),e.jsx("p",{className:"definition-card__example",children:s})]})})}export{o as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{r as w,j as i}from"./index-D2K-duz6.js";const y="glitch-player-mathjax",E="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js";let x=null;function M(){var d;return typeof window>"u"||typeof document>"u"||(d=window.MathJax)!=null&&d.typesetPromise?Promise.resolve():x||(x=new Promise((s,u)=>{var l;window.MathJax=window.MathJax??{};const n=document.getElementById(y),a=()=>{var e,c;n&&(n.dataset.loaded="true");const f=(c=(e=window.MathJax)==null?void 0:e.startup)==null?void 0:c.promise;if(f){f.then(()=>s()).catch(u);return}s()};if(n){if(n.dataset.loaded==="true"||(l=window.MathJax)!=null&&l.typesetPromise){a();return}n.addEventListener("load",a,{once:!0}),n.addEventListener("error",()=>u(new Error("Failed to load MathJax.")),{once:!0});return}const t=document.createElement("script");t.id=y,t.async=!0,t.src=E,t.addEventListener("load",()=>{t.dataset.loaded="true",a()},{once:!0}),t.addEventListener("error",()=>u(new Error("Failed to load MathJax.")),{once:!0}),document.head.appendChild(t)}),x)}function g({props:d,latexString:s,displayMode:u,paused:n}){const a=d,t=String(a.header??a.eyebrow??"Equation focus"),l=String(a.title??"Definition of the mean"),f=String(a.annotation??"The mean is the total of all observations divided by the number of observations."),e=w.useRef(null),[c,p]=w.useState("loading");return w.useEffect(()=>{const J=e.current,_=s??String.raw`\bar{x} = \frac{1}{N}\sum_{i=0}^{N} x_i`;if(!J)return;let h=!1;return p("loading"),M().then(async()=>{var r,q,m,v;if(h||!e.current)return;const o=e.current;o.textContent=`\\[${_}\\]`,(q=(r=window.MathJax)==null?void 0:r.typesetClear)==null||q.call(r,[o]),await((v=(m=window.MathJax)==null?void 0:m.typesetPromise)==null?void 0:v.call(m,[o])),h||p("ready")}).catch(()=>{!h&&e.current&&(e.current.textContent=_,p("error"))}),()=>{var o,r;h=!0,e.current&&((r=(o=window.MathJax)==null?void 0:o.typesetClear)==null||r.call(o,[e.current]))}},[s]),i.jsx("article",{className:`equation-focus equation-focus--${u} ${n?"equation-focus--paused":""}`,children:i.jsxs("div",{className:"equation-focus__content",children:[i.jsx("p",{className:"equation-focus__eyebrow",children:t}),i.jsx("h2",{className:"equation-focus__title",children:l}),i.jsx("div",{className:"equation-focus__equation-frame",children:i.jsx("div",{ref:e,className:`equation-focus__equation equation-focus__equation--mathjax ${c==="loading"?"equation-focus__equation--loading":""} ${c==="error"?"equation-focus__equation--error":""}`,"aria-live":"polite"})}),i.jsx("p",{className:"equation-focus__annotation",children:f})]})})}export{g as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{j as e}from"./index-D2K-duz6.js";function m({props:t,paused:i}){const s=t,n=String(s.eyebrow??"Fullscreen split"),l=String(s.title??"One image. One idea."),a=String(s.body??"Fullscreen keeps the seam invisible."),c=String(s.imageSrc??"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80"),r=String(s.imageAlt??l),p=s.imagePosition==="right"?"right":"left";return e.jsxs("article",{className:`fullscreen-split ${i?"fullscreen-split--paused":""} fullscreen-split--image-${p}`,children:[e.jsx("div",{className:"fullscreen-split__panel fullscreen-split__panel--image",children:e.jsx("img",{className:"fullscreen-split__image",src:c,alt:r})}),e.jsx("div",{className:"fullscreen-split__panel fullscreen-split__panel--text",children:e.jsxs("div",{className:"fullscreen-split__text",children:[e.jsx("p",{className:"fullscreen-split__eyebrow",children:n}),e.jsx("h2",{className:"fullscreen-split__title",children:l}),e.jsx("p",{className:"fullscreen-split__body",children:a})]})})]})}export{m as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{r as m,j as s}from"./index-D2K-duz6.js";function y({props:x,paused:u,onMediaLoadingChange:r}){const l=x,v=String(l.header??"").trim(),S=String(l.caption??"").trim(),c=String(l.videoSrc??"").trim(),_=String(l.posterSrc??"").trim(),f=m.useRef(null);return m.useEffect(()=>{const t=f.current;if(!t)return;if(u){t.pause();return}const p=t.play();p&&typeof p.catch=="function"&&p.catch(()=>{})},[u,c]),m.useEffect(()=>{if(!c){r==null||r(!1);return}return r==null||r(!0),()=>{r==null||r(!1);const t=f.current;t&&(t.pause(),t.currentTime=0)}},[r,c]),s.jsxs("article",{className:`fullscreen-video ${u?"fullscreen-video--paused":""}`,children:[s.jsx("video",{ref:f,className:"fullscreen-video__media",src:c,poster:_||void 0,autoPlay:!0,playsInline:!0,preload:"metadata",controls:!1,onLoadedData:()=>r==null?void 0:r(!1),onCanPlay:()=>r==null?void 0:r(!1),onPlaying:()=>r==null?void 0:r(!1),onLoadStart:()=>r==null?void 0:r(!0),onWaiting:()=>r==null?void 0:r(!0),onStalled:()=>r==null?void 0:r(!0),onSuspend:()=>r==null?void 0:r(!1),onEnded:()=>r==null?void 0:r(!1),onError:()=>r==null?void 0:r(!1)}),v?s.jsx("div",{className:"fullscreen-video__chrome",children:s.jsx("p",{className:"fullscreen-video__header",children:v})}):null,S?s.jsx("p",{className:"fullscreen-video__caption",children:S}):null]})}export{y as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as v,j as c}from"./index-D2K-duz6.js";function j({props:S,paused:l,onMediaLoadingChange:t}){const u=S,m=String(u.caption??"").trim(),s=String(u.videoSrc??"").trim(),x=String(u.posterSrc??"").trim(),f=v.useRef(null);return v.useEffect(()=>{const r=f.current;if(!r)return;if(l){r.pause();return}const p=r.play();p&&typeof p.catch=="function"&&p.catch(()=>{})},[l,s]),v.useEffect(()=>{if(!s){t==null||t(!1);return}return t==null||t(!0),()=>{t==null||t(!1);const r=f.current;r&&(r.pause(),r.currentTime=0)}},[t,s]),c.jsxs("article",{className:`fullscreen-video-center-caption ${l?"fullscreen-video-center-caption--paused":""}`,children:[c.jsx("video",{ref:f,className:"fullscreen-video-center-caption__media",src:s,poster:x||void 0,autoPlay:!0,playsInline:!0,preload:"metadata",controls:!1,onLoadedData:()=>t==null?void 0:t(!1),onCanPlay:()=>t==null?void 0:t(!1),onPlaying:()=>t==null?void 0:t(!1),onLoadStart:()=>t==null?void 0:t(!0),onWaiting:()=>t==null?void 0:t(!0),onStalled:()=>t==null?void 0:t(!0),onSuspend:()=>t==null?void 0:t(!1),onEnded:()=>t==null?void 0:t(!1),onError:()=>t==null?void 0:t(!1)}),m?c.jsx("div",{className:"fullscreen-video-center-caption__overlay",children:c.jsx("p",{className:"fullscreen-video-center-caption__caption",children:m})}):null]})}export{j as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as p,j as l}from"./index-D2K-duz6.js";const y="No need to be discrete";function _({props:m,paused:c,onMediaLoadingChange:t}){const u=m,S=String(u.title??"").trim()||y,s=String(u.videoSrc??"").trim(),x=String(u.posterSrc??"").trim(),f=p.useRef(null);return p.useEffect(()=>{const r=f.current;if(!r)return;if(c){r.pause();return}const v=r.play();v&&typeof v.catch=="function"&&v.catch(()=>{})},[c,s]),p.useEffect(()=>{if(!s){t==null||t(!1);return}return t==null||t(!0),()=>{t==null||t(!1);const r=f.current;r&&(r.pause(),r.currentTime=0)}},[t,s]),l.jsxs("article",{className:`fullscreen-video-title ${c?"fullscreen-video-title--paused":""}`,children:[l.jsx("video",{ref:f,className:"fullscreen-video-title__media",src:s,poster:x||void 0,autoPlay:!0,playsInline:!0,preload:"metadata",controls:!1,onLoadedData:()=>t==null?void 0:t(!1),onCanPlay:()=>t==null?void 0:t(!1),onPlaying:()=>t==null?void 0:t(!1),onLoadStart:()=>t==null?void 0:t(!0),onWaiting:()=>t==null?void 0:t(!0),onStalled:()=>t==null?void 0:t(!0),onSuspend:()=>t==null?void 0:t(!1),onEnded:()=>t==null?void 0:t(!1),onError:()=>t==null?void 0:t(!1)}),l.jsx("div",{className:"fullscreen-video-title__overlay",children:l.jsx("h2",{className:"fullscreen-video-title__title",children:S})})]})}export{_ as default};
|
||||
@@ -0,0 +1 @@
|
||||
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};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as s}from"./index-D2K-duz6.js";function i(e){return!Array.isArray(e)||e.length===0?["Record talking-head segments","Align transcript to timeline","Generate slide variants","Play, compare, and refine"]:e.map(r=>String(r))}function d({props:e,paused:r}){const o=e,l=String(o.eyebrow??"Process flow"),a=String(o.title??"How it becomes a video"),n=i(o.steps);return s.jsx("article",{className:`process-flow ${r?"process-flow--paused":""}`,children:s.jsxs("div",{className:"process-flow__content",children:[s.jsx("p",{className:"process-flow__eyebrow",children:l}),s.jsx("h2",{className:"process-flow__title",children:a}),s.jsx("div",{className:"process-flow__steps",children:n.map((t,c)=>s.jsxs("div",{className:"process-flow__step",children:[s.jsx("span",{className:"process-flow__index",children:c+1}),s.jsx("p",{className:"process-flow__label",children:t})]},`${c}-${t}`))})]})})}export{d as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as e}from"./index-D2K-duz6.js";function l({props:i,paused:o}){const t=i,s=String(t.eyebrow??"Quote image"),a=String(t.quote??"Good explanation makes hard ideas feel graspable."),m=String(t.attribution??"Glitch University"),n=String(t.imageSrc??"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80"),r=String(t.imageAlt??a),g=t.imagePosition==="right"?"right":"left";return e.jsxs("article",{className:`quote-image ${o?"quote-image--paused":""} quote-image--image-${g}`,children:[e.jsx("div",{className:"quote-image__panel quote-image__panel--image",children:e.jsx("img",{className:"quote-image__image",src:n,alt:r})}),e.jsx("div",{className:"quote-image__panel quote-image__panel--quote",children:e.jsxs("div",{className:"quote-image__content",children:[e.jsx("p",{className:"quote-image__eyebrow",children:s}),e.jsxs("blockquote",{className:"quote-image__quote",children:['"',a,'"']}),e.jsx("p",{className:"quote-image__attribution",children:m})]})})]})}export{l as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{r as f,j as p}from"./index-D2K-duz6.js";function y({props:m,paused:c,onMediaLoadingChange:r}){const v=m,s=String(v.videoSrc??"").trim(),S=String(v.posterSrc??"").trim(),u=f.useRef(null);return f.useEffect(()=>{const t=u.current;if(!t)return;if(c){t.pause();return}const l=t.play();l&&typeof l.catch=="function"&&l.catch(()=>{})},[c,s]),f.useEffect(()=>{if(!s){r==null||r(!1);return}return r==null||r(!0),()=>{r==null||r(!1);const t=u.current;t&&(t.pause(),t.currentTime=0)}},[r,s]),p.jsx("article",{className:`square-video ${c?"square-video--paused":""}`,children:p.jsx("div",{className:"square-video__frame",children:p.jsx("video",{ref:u,className:"square-video__media",src:s,poster:S||void 0,autoPlay:!0,preload:"metadata",playsInline:!0,controls:!1,onLoadedData:()=>r==null?void 0:r(!1),onCanPlay:()=>r==null?void 0:r(!1),onPlaying:()=>r==null?void 0:r(!1),onLoadStart:()=>r==null?void 0:r(!0),onWaiting:()=>r==null?void 0:r(!0),onStalled:()=>r==null?void 0:r(!0),onSuspend:()=>r==null?void 0:r(!1),onEnded:()=>r==null?void 0:r(!1),onError:()=>r==null?void 0:r(!1)})})})}export{y as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{j as a}from"./index-D2K-duz6.js";function m({props:s,paused:r}){const e=s,t=String(e.header??"Square yellow"),i=String(e.imageSrc??"https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80"),l=String(e.imageAlt??t);return a.jsx("article",{className:`square-slide square-slide--yellow ${r?"square-slide--paused":""}`,children:a.jsx("div",{className:"square-slide__image-frame",children:a.jsx("img",{className:"square-slide__image",src:i,alt:l})})})}export{m as default};
|
||||
Vendored
+40
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user