@marimo-team/islands 0.23.10-dev25 → 0.23.10-dev27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{code-visibility-CXkMXcdB.js → code-visibility-DI2QSiFC.js} +1646 -1179
- package/dist/main.js +7312 -7424
- package/dist/{reveal-component-dIolR_34.js → reveal-component-BA7HaWOX.js} +410 -333
- package/package.json +1 -1
- package/src/components/data-table/filter-by-values-picker.tsx +39 -17
- package/src/components/data-table/filter-pills.tsx +1 -1
- package/src/components/editor/cell/code/language-toggle.tsx +7 -1
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
- package/src/components/editor/renderers/slides-layout/types.ts +1 -0
- package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
- package/src/components/slides/reveal-component.tsx +283 -61
- package/src/components/slides/slide-cell-view.tsx +26 -2
- package/src/components/slides/slide-form.tsx +26 -4
- package/src/components/ui/combobox.tsx +51 -32
- package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
- package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
- package/src/components/ui/select-core/index.ts +16 -0
- package/src/components/ui/select-core/option-row.tsx +33 -0
- package/src/components/ui/select-core/render-slot.ts +20 -0
- package/src/components/ui/select-core/select-list.tsx +248 -0
- package/src/components/ui/select-core/types.ts +44 -0
- package/src/components/ui/select-core/use-select-list.ts +347 -0
- package/src/components/ui/select-core/utils.ts +121 -0
- package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
- package/src/plugins/impl/SearchableSelect.tsx +16 -97
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
- package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
- /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
|
@@ -9,7 +9,7 @@ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
|
9
9
|
import { lt as kioskModeAtom } from "./html-to-image-UEH5lFDZ.js";
|
|
10
10
|
import "./chunk-5FQGJX7Z-BNjes6Yx.js";
|
|
11
11
|
import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
|
|
12
|
-
import { $ as
|
|
12
|
+
import { $t as Expand, Qt as EyeOff, a as DEFAULT_SLIDE_TYPE, c as Slide, i as DEFAULT_DECK_TRANSITION, nn as Code, nt as PanelGroup, rt as PanelResizeHandle, s as SlideSidebar, t as useNotebookCodeAvailable, tt as Panel } from "./code-visibility-DI2QSiFC.js";
|
|
13
13
|
import { J as useDebouncedCallback } from "./input-CMYy4hzj.js";
|
|
14
14
|
import "./toDate-d8RCRrRd.js";
|
|
15
15
|
import "./react-dom-BTJzcVJ9.js";
|
|
@@ -2108,14 +2108,14 @@ function Ut$1(e5, t) {
|
|
|
2108
2108
|
if (!e5) throw 'Unable to find presentation root (<div class="reveal">).';
|
|
2109
2109
|
if (i) throw "Reveal.js has already been initialized.";
|
|
2110
2110
|
if (i = true, p.wrapper = e5, p.slides = e5.querySelector(".slides"), !p.slides) throw 'Unable to find slides container (<div class="slides">).';
|
|
2111
|
-
return r = Q$2(Q$2(Q$2(Q$2(Q$2({}, ts), r), t), a2), Mt$1()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), Bo(), window.addEventListener("load",
|
|
2111
|
+
return r = Q$2(Q$2(Q$2(Q$2(Q$2({}, ts), r), t), a2), Mt$1()), /print-pdf/gi.test(window.location.search) && (r.view = "print"), Bo(), window.addEventListener("load", ys, false), Eo.load(r.plugins, r.dependencies).then(Ho), new Promise((e6) => n.on("ready", e6));
|
|
2112
2112
|
}
|
|
2113
2113
|
function Bo() {
|
|
2114
2114
|
r.embedded === true ? p.viewport = V$1(e5, ".reveal-viewport") || e5 : (p.viewport = document.body, document.documentElement.classList.add("reveal-full-page")), p.viewport.classList.add("reveal-viewport");
|
|
2115
2115
|
}
|
|
2116
2116
|
function Ho() {
|
|
2117
|
-
i !== false && (a = true, Ko(), qo(),
|
|
2118
|
-
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"),
|
|
2117
|
+
i !== false && (a = true, Ko(), qo(), cs(), os(), ss(), Hs(), ls(), go.update(true), Go(), So.readURL(), setTimeout(() => {
|
|
2118
|
+
p.slides.classList.remove("no-transition"), p.wrapper.classList.add("ready"), gs({
|
|
2119
2119
|
type: "ready",
|
|
2120
2120
|
data: {
|
|
2121
2121
|
indexh: o,
|
|
@@ -2127,7 +2127,7 @@ function Ut$1(e5, t) {
|
|
|
2127
2127
|
}
|
|
2128
2128
|
function Go() {
|
|
2129
2129
|
let e6 = r.view === "print", t2 = r.view === "scroll" || r.view === "reader";
|
|
2130
|
-
(e6 || t2) && (e6 ?
|
|
2130
|
+
(e6 || t2) && (e6 ? ds() : jo.unbind(), p.viewport.classList.add("loading-scroll-mode"), e6 ? document.readyState === "complete" ? vo.activate() : window.addEventListener("load", () => vo.activate()) : _o.activate());
|
|
2131
2131
|
}
|
|
2132
2132
|
function Ko() {
|
|
2133
2133
|
r.showHiddenSlides || E$2(p.wrapper, 'section[data-visibility="hidden"]').forEach((e6) => {
|
|
@@ -2153,7 +2153,7 @@ function Ut$1(e5, t) {
|
|
|
2153
2153
|
if (n2 !== "true" && !r2) {
|
|
2154
2154
|
if (e6.tagName === "IMG" || e6.tagName === "VIDEO") {
|
|
2155
2155
|
let n3 = e6.getAttribute("alt");
|
|
2156
|
-
n3 && (t2 +=
|
|
2156
|
+
n3 && (t2 += is(n3));
|
|
2157
2157
|
}
|
|
2158
2158
|
Array.from(e6.childNodes).forEach((e7) => {
|
|
2159
2159
|
t2 += Zo(e7);
|
|
@@ -2170,58 +2170,58 @@ function Ut$1(e5, t) {
|
|
|
2170
2170
|
"H5",
|
|
2171
2171
|
"H6",
|
|
2172
2172
|
"BLOCKQUOTE"
|
|
2173
|
-
].includes(e6.tagName) && t2.trim() !== "" && (t2 =
|
|
2173
|
+
].includes(e6.tagName) && t2.trim() !== "" && (t2 = is(t2));
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
return t2 = t2.trim(), t2 === "" ? "" : t2 + " ";
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function is(e6) {
|
|
2179
2179
|
let t2 = e6.trim();
|
|
2180
2180
|
return t2 === "" ? e6 : /[.!?]$/.test(t2) ? t2 : t2 + ".";
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function os() {
|
|
2183
2183
|
setInterval(() => {
|
|
2184
2184
|
(!_o.isActive() && p.wrapper.scrollTop !== 0 || p.wrapper.scrollLeft !== 0) && (p.wrapper.scrollTop = 0, p.wrapper.scrollLeft = 0);
|
|
2185
2185
|
}, 1e3);
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2188
|
-
document.addEventListener("fullscreenchange",
|
|
2187
|
+
function ss() {
|
|
2188
|
+
document.addEventListener("fullscreenchange", Ec), document.addEventListener("webkitfullscreenchange", Ec);
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2191
|
-
r.postMessage && window.addEventListener("message",
|
|
2190
|
+
function cs() {
|
|
2191
|
+
r.postMessage && window.addEventListener("message", xc, false);
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function ls(e6) {
|
|
2194
2194
|
let t2 = Q$2({}, r);
|
|
2195
2195
|
if (typeof e6 == "object" && ge$1(r, e6), n.isReady() === false) return;
|
|
2196
2196
|
let i2 = p.wrapper.querySelectorAll(de$1).length;
|
|
2197
|
-
p.wrapper.classList.remove(t2.transition), p.wrapper.classList.add(r.transition), p.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), p.wrapper.setAttribute("data-background-transition", r.backgroundTransition), p.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), p.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle &&
|
|
2197
|
+
p.wrapper.classList.remove(t2.transition), p.wrapper.classList.add(r.transition), p.wrapper.setAttribute("data-transition-speed", r.transitionSpeed), p.wrapper.setAttribute("data-background-transition", r.backgroundTransition), p.viewport.style.setProperty("--slide-width", typeof r.width == "string" ? r.width : r.width + "px"), p.viewport.style.setProperty("--slide-height", typeof r.height == "string" ? r.height : r.height + "px"), r.shuffle && Us(), Ke$1(p.wrapper, "embedded", r.embedded), Ke$1(p.wrapper, "rtl", r.rtl), Ke$1(p.wrapper, "center", r.center), r.pause === false && js(), ho.reset(), so && (so = (so.destroy(), null)), i2 > 1 && r.autoSlide && r.autoSlideStoppable && (so = new es(p.wrapper, () => Math.min(Math.max((Date.now() - lo) / oo, 0), 1)), so.on("click", Dc), uo = false), r.navigationMode === "default" ? p.wrapper.removeAttribute("data-navigation-mode") : p.wrapper.setAttribute("data-navigation-mode", r.navigationMode), Mo.configure(r, t2), Oo.configure(r, t2), To.configure(r, t2), Co.configure(r, t2), wo.configure(r, t2), xo.configure(r, t2), yo.configure(r, t2), po.configure(r, t2), Bs();
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2200
|
-
window.addEventListener("resize",
|
|
2199
|
+
function us() {
|
|
2200
|
+
window.addEventListener("resize", wc, false), r.touch && jo.bind(), r.keyboard && xo.bind(), r.progress && wo.bind(), r.respondToHashChanges && So.bind(), Co.bind(), Oo.bind(), p.slides.addEventListener("click", Cc, false), p.slides.addEventListener("transitionend", Sc, false), p.pauseOverlay.addEventListener("click", js, false), r.focusBodyOnPageVisibilityChange && document.addEventListener("visibilitychange", Tc, false);
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2203
|
-
jo.unbind(), Oo.unbind(), xo.unbind(), Co.unbind(), wo.unbind(), So.unbind(), window.removeEventListener("resize",
|
|
2202
|
+
function ds() {
|
|
2203
|
+
jo.unbind(), Oo.unbind(), xo.unbind(), Co.unbind(), wo.unbind(), So.unbind(), window.removeEventListener("resize", wc, false), p.slides.removeEventListener("click", Cc, false), p.slides.removeEventListener("transitionend", Sc, false), p.pauseOverlay.removeEventListener("click", js, false);
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2206
|
-
i = false, a !== false && (
|
|
2205
|
+
function fs() {
|
|
2206
|
+
i = false, a !== false && (ds(), dc(), Mo.destroy(), Oo.destroy(), Do.destroy(), Eo.destroy(), To.destroy(), Co.destroy(), wo.destroy(), go.destroy(), po.destroy(), mo.destroy(), document.removeEventListener("fullscreenchange", Ec), document.removeEventListener("webkitfullscreenchange", Ec), document.removeEventListener("visibilitychange", Tc, false), window.removeEventListener("message", xc, false), window.removeEventListener("load", ys, false), p.pauseOverlay && p.pauseOverlay.remove(), p.statusElement && p.statusElement.remove(), document.documentElement.classList.remove("reveal-full-page"), p.wrapper.classList.remove("ready", "center", "has-horizontal-slides", "has-vertical-slides"), p.wrapper.removeAttribute("data-transition-speed"), p.wrapper.removeAttribute("data-background-transition"), p.viewport.classList.remove("reveal-viewport"), p.viewport.style.removeProperty("--slide-width"), p.viewport.style.removeProperty("--slide-height"), p.slides.style.removeProperty("width"), p.slides.style.removeProperty("height"), p.slides.style.removeProperty("zoom"), p.slides.style.removeProperty("left"), p.slides.style.removeProperty("top"), p.slides.style.removeProperty("bottom"), p.slides.style.removeProperty("right"), p.slides.style.removeProperty("transform"), Array.from(p.wrapper.querySelectorAll(de$1)).forEach((e6) => {
|
|
2207
2207
|
e6.style.removeProperty("display"), e6.style.removeProperty("top"), e6.removeAttribute("hidden"), e6.removeAttribute("aria-hidden");
|
|
2208
2208
|
}));
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function ps(t2, n2, r2) {
|
|
2211
2211
|
e5.addEventListener(t2, n2, r2);
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function ms(t2, n2, r2) {
|
|
2214
2214
|
e5.removeEventListener(t2, n2, r2);
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function hs(e6) {
|
|
2217
2217
|
typeof e6.layout == "string" && (io.layout = e6.layout), typeof e6.overview == "string" && (io.overview = e6.overview), io.layout ? ae$2(p.slides, io.layout + " " + io.overview) : ae$2(p.slides, io.overview);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function gs({ target: e6 = p.wrapper, type: t2, data: n2, bubbles: r2 = true }) {
|
|
2220
2220
|
let i2 = document.createEvent("HTMLEvents", 1, 2);
|
|
2221
|
-
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper &&
|
|
2221
|
+
return i2.initEvent(t2, r2, true), ge$1(i2, n2), e6.dispatchEvent(i2), e6 === p.wrapper && vs(t2), i2;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2224
|
-
|
|
2223
|
+
function _s(e6) {
|
|
2224
|
+
gs({
|
|
2225
2225
|
type: "slidechanged",
|
|
2226
2226
|
data: {
|
|
2227
2227
|
indexh: o,
|
|
@@ -2232,29 +2232,29 @@ function Ut$1(e5, t) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function vs(e6, t2) {
|
|
2236
2236
|
if (r.postMessageEvents && window.parent !== window.self) {
|
|
2237
2237
|
let n2 = {
|
|
2238
2238
|
namespace: "reveal",
|
|
2239
2239
|
eventName: e6,
|
|
2240
|
-
state:
|
|
2240
|
+
state: cc()
|
|
2241
2241
|
};
|
|
2242
2242
|
ge$1(n2, t2), window.parent.postMessage(JSON.stringify(n2), "*");
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function ys() {
|
|
2246
2246
|
if (p.wrapper && !vo.isActive()) {
|
|
2247
2247
|
let e6 = p.viewport.offsetWidth, t2 = p.viewport.offsetHeight;
|
|
2248
2248
|
if (!r.disableLayout) {
|
|
2249
2249
|
le$2 && !r.embedded && document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px");
|
|
2250
|
-
let n2 = _o.isActive() ?
|
|
2251
|
-
|
|
2250
|
+
let n2 = _o.isActive() ? Ss(e6, t2) : Ss(), i2 = ro;
|
|
2251
|
+
bs(r.width, r.height), p.slides.style.width = n2.width + "px", p.slides.style.height = n2.height + "px", ro = Math.min(n2.presentationWidth / n2.width, n2.presentationHeight / n2.height), ro = Math.max(ro, r.minScale), ro = Math.min(ro, r.maxScale), ro === 1 || _o.isActive() ? (p.slides.style.zoom = "", p.slides.style.left = "", p.slides.style.top = "", p.slides.style.bottom = "", p.slides.style.right = "", hs({ layout: "" })) : (p.slides.style.zoom = "", p.slides.style.left = "50%", p.slides.style.top = "50%", p.slides.style.bottom = "auto", p.slides.style.right = "auto", hs({ layout: "translate(-50%, -50%) scale(" + ro + ")" }));
|
|
2252
2252
|
let a2 = Array.from(p.wrapper.querySelectorAll(de$1));
|
|
2253
2253
|
for (let e7 = 0, t3 = a2.length; e7 < t3; e7++) {
|
|
2254
2254
|
let t4 = a2[e7];
|
|
2255
2255
|
t4.style.display !== "none" && (r.center || t4.classList.contains("center") ? t4.classList.contains("stack") ? t4.style.top = 0 : t4.style.top = Math.max((n2.height - t4.scrollHeight) / 2, 0) + "px" : t4.style.top = "");
|
|
2256
2256
|
}
|
|
2257
|
-
i2 !== ro &&
|
|
2257
|
+
i2 !== ro && gs({
|
|
2258
2258
|
type: "resize",
|
|
2259
2259
|
data: {
|
|
2260
2260
|
oldScale: i2,
|
|
@@ -2263,10 +2263,10 @@ function Ut$1(e5, t) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
2266
|
-
|
|
2266
|
+
xs(), p.viewport.style.setProperty("--slide-scale", ro), p.viewport.style.setProperty("--viewport-width", e6 + "px"), p.viewport.style.setProperty("--viewport-height", t2 + "px"), _o.layout(), wo.update(), go.updateParallax(), bo.isActive() && bo.update();
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function bs(e6, t2) {
|
|
2270
2270
|
E$2(p.slides, "section > .stretch, section > .r-stretch").forEach((n2) => {
|
|
2271
2271
|
let r2 = Ei(n2, t2);
|
|
2272
2272
|
if (/(img|video)/gi.test(n2.nodeName)) {
|
|
@@ -2275,13 +2275,13 @@ function Ut$1(e5, t) {
|
|
|
2275
2275
|
} else n2.style.width = e6 + "px", n2.style.height = r2 + "px";
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function xs() {
|
|
2279
2279
|
if (p.wrapper && !r.disableLayout && !vo.isActive() && typeof r.scrollActivationWidth == "number" && r.view !== "scroll") {
|
|
2280
|
-
let e6 =
|
|
2280
|
+
let e6 = Ss();
|
|
2281
2281
|
e6.presentationWidth > 0 && e6.presentationWidth <= r.scrollActivationWidth ? _o.isActive() || (go.create(), _o.activate()) : _o.isActive() && _o.deactivate();
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function Ss(e6, t2) {
|
|
2285
2285
|
let n2 = r.width, i2 = r.height;
|
|
2286
2286
|
r.disableLayout && (n2 = p.slides.offsetWidth, i2 = p.slides.offsetHeight);
|
|
2287
2287
|
let a2 = {
|
|
@@ -2292,58 +2292,58 @@ function Ut$1(e5, t) {
|
|
|
2292
2292
|
};
|
|
2293
2293
|
return a2.presentationWidth -= a2.presentationWidth * r.margin, a2.presentationHeight -= a2.presentationHeight * r.margin, typeof a2.width == "string" && /%$/.test(a2.width) && (a2.width = parseInt(a2.width, 10) / 100 * a2.presentationWidth), typeof a2.height == "string" && /%$/.test(a2.height) && (a2.height = parseInt(a2.height, 10) / 100 * a2.presentationHeight), a2;
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function Cs(e6, t2) {
|
|
2296
2296
|
typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.setAttribute("data-previous-indexv", t2 || 0);
|
|
2297
2297
|
}
|
|
2298
|
-
function
|
|
2298
|
+
function ws(e6) {
|
|
2299
2299
|
if (typeof e6 == "object" && typeof e6.setAttribute == "function" && e6.classList.contains("stack")) {
|
|
2300
2300
|
let t2 = e6.hasAttribute("data-start-indexv") ? "data-start-indexv" : "data-previous-indexv";
|
|
2301
2301
|
return parseInt(e6.getAttribute(t2) || 0, 10);
|
|
2302
2302
|
}
|
|
2303
2303
|
return 0;
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function Ts(e6 = l) {
|
|
2306
2306
|
return e6 && e6.parentNode && !!e6.parentNode.nodeName.match(/section/i);
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function Es(e6 = l) {
|
|
2309
2309
|
return e6.classList.contains(".stack") || e6.querySelector("section") !== null;
|
|
2310
2310
|
}
|
|
2311
|
-
function
|
|
2312
|
-
return l &&
|
|
2311
|
+
function Ds() {
|
|
2312
|
+
return l && Ts(l) ? !l.nextElementSibling : false;
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function Os() {
|
|
2315
2315
|
return o === 0 && s === 0;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2318
|
-
return l ? !(l.nextElementSibling ||
|
|
2317
|
+
function ks() {
|
|
2318
|
+
return l ? !(l.nextElementSibling || Ts(l) && l.parentNode.nextElementSibling) : false;
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function As() {
|
|
2321
2321
|
if (r.pause) {
|
|
2322
2322
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2323
|
-
|
|
2323
|
+
dc(), p.wrapper.classList.add("paused"), e6 === false && gs({ type: "paused" });
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function js() {
|
|
2327
2327
|
let e6 = p.wrapper.classList.contains("paused");
|
|
2328
|
-
p.wrapper.classList.remove("paused"),
|
|
2328
|
+
p.wrapper.classList.remove("paused"), uc(), e6 && gs({ type: "resumed" });
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2331
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2330
|
+
function Ms(e6) {
|
|
2331
|
+
typeof e6 == "boolean" ? e6 ? As() : js() : Ns() ? js() : As();
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function Ns() {
|
|
2334
2334
|
return p.wrapper.classList.contains("paused");
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function Ps(e6) {
|
|
2337
2337
|
typeof e6 == "boolean" ? e6 ? mo.show() : mo.hide() : mo.isVisible() ? mo.hide() : mo.show();
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2340
|
-
typeof e6 == "boolean" ? e6 ?
|
|
2339
|
+
function Fs(e6) {
|
|
2340
|
+
typeof e6 == "boolean" ? e6 ? pc() : fc() : uo ? pc() : fc();
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function Is() {
|
|
2343
2343
|
return !!(oo && !uo);
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2346
|
-
if (
|
|
2345
|
+
function Ls(t2, n2, i2, a2) {
|
|
2346
|
+
if (gs({
|
|
2347
2347
|
type: "beforeslidechange",
|
|
2348
2348
|
data: {
|
|
2349
2349
|
indexh: t2 === void 0 ? o : t2,
|
|
@@ -2359,19 +2359,19 @@ function Ut$1(e5, t) {
|
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
2361
|
if (u2.length === 0) return;
|
|
2362
|
-
n2 === void 0 && !bo.isActive() && (n2 =
|
|
2362
|
+
n2 === void 0 && !bo.isActive() && (n2 = ws(u2[t2])), c && c.parentNode && c.parentNode.classList.contains("stack") && Cs(c.parentNode, s);
|
|
2363
2363
|
let ro2 = f.concat();
|
|
2364
2364
|
f.length = 0;
|
|
2365
2365
|
let io2 = o || 0, oo2 = s || 0;
|
|
2366
|
-
o =
|
|
2366
|
+
o = Ws(te$2, t2 === void 0 ? o : t2), s = Ws(_e$1, n2 === void 0 ? s : n2);
|
|
2367
2367
|
let so2 = o !== io2 || s !== oo2;
|
|
2368
2368
|
so2 || (c = null);
|
|
2369
2369
|
let co2 = u2[o], lo2 = co2.querySelectorAll("section");
|
|
2370
2370
|
e5.classList.toggle("is-vertical-slide", lo2.length > 1), l = lo2[s] || co2;
|
|
2371
2371
|
let uo2 = false;
|
|
2372
|
-
so2 && c && l && !bo.isActive() && (ao = "running", uo2 =
|
|
2373
|
-
|
|
2374
|
-
|
|
2372
|
+
so2 && c && l && !bo.isActive() && (ao = "running", uo2 = Rs(c, l, io2, oo2), uo2 && p.slides.classList.add("disable-slide-transitions")), qs(), ys(), bo.isActive() && bo.update(), i2 !== void 0 && yo.goto(i2), c && c !== l && (c.classList.remove("present"), c.setAttribute("aria-hidden", "true"), Os() && setTimeout(() => {
|
|
2373
|
+
tc().forEach((e6) => {
|
|
2374
|
+
Cs(e6, 0);
|
|
2375
2375
|
});
|
|
2376
2376
|
}, 0));
|
|
2377
2377
|
e: for (let e6 = 0, t3 = f.length; e6 < t3; e6++) {
|
|
@@ -2379,64 +2379,64 @@ function Ut$1(e5, t) {
|
|
|
2379
2379
|
ro2.splice(t4, 1);
|
|
2380
2380
|
continue e;
|
|
2381
2381
|
}
|
|
2382
|
-
p.viewport.classList.add(f[e6]),
|
|
2382
|
+
p.viewport.classList.add(f[e6]), gs({ type: f[e6] });
|
|
2383
2383
|
}
|
|
2384
2384
|
for (; ro2.length; ) p.viewport.classList.remove(ro2.pop());
|
|
2385
|
-
so2 && (fo.afterSlideChanged(),
|
|
2385
|
+
so2 && (fo.afterSlideChanged(), _s(a2)), (so2 || !c) && (fo.stopEmbeddedContent(c), fo.startEmbeddedContent(l)), requestAnimationFrame(() => {
|
|
2386
2386
|
Xo(Zo(l));
|
|
2387
|
-
}), wo.update(), Co.update(), Mo.update(), go.update(), go.updateParallax(), po.update(), yo.update(), So.writeURL(),
|
|
2387
|
+
}), wo.update(), Co.update(), Mo.update(), go.update(), go.updateParallax(), po.update(), yo.update(), So.writeURL(), uc(), uo2 && (setTimeout(() => {
|
|
2388
2388
|
p.slides.classList.remove("disable-slide-transitions");
|
|
2389
2389
|
}, 0), r.autoAnimate && ho.run(c, l));
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function Rs(e6, t2, n2, r2) {
|
|
2392
2392
|
return e6.hasAttribute("data-auto-animate") && t2.hasAttribute("data-auto-animate") && e6.getAttribute("data-auto-animate-id") === t2.getAttribute("data-auto-animate-id") && !(o > n2 || s > r2 ? t2 : e6).hasAttribute("data-auto-animate-restart");
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function zs(e6, t2, n2) {
|
|
2395
2395
|
let i2 = o || 0;
|
|
2396
2396
|
o = t2, s = n2;
|
|
2397
2397
|
let a2 = l !== e6;
|
|
2398
|
-
c = l, l = e6, l && c && r.autoAnimate &&
|
|
2398
|
+
c = l, l = e6, l && c && r.autoAnimate && Rs(c, l, i2, s) && ho.run(c, l), a2 && (fo.afterSlideChanged(), c && (fo.stopEmbeddedContent(c), fo.stopEmbeddedContent(c.slideBackgroundElement)), fo.startEmbeddedContent(l), fo.startEmbeddedContent(l.slideBackgroundElement)), requestAnimationFrame(() => {
|
|
2399
2399
|
Xo(Zo(l));
|
|
2400
|
-
}),
|
|
2400
|
+
}), _s();
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2403
|
-
|
|
2402
|
+
function Bs() {
|
|
2403
|
+
ds(), us(), ys(), oo = r.autoSlide, uc(), go.create(), So.writeURL(), r.sortFragmentsOnSync === true && yo.sortAll(), o !== void 0 && (o = Ws(te$2, o), s = Ws(_e$1, s)), Co.update(), wo.update(), qs(), Mo.update(), Mo.updateVisibility(), Do.update(), go.update(true), po.update(), fo.formatEmbeddedContent(), r.autoPlayMedia === false ? fo.stopEmbeddedContent(l, { unloadIframes: false }) : fo.startEmbeddedContent(l), bo.isActive() && bo.layout(), gs({ type: "sync" });
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2406
|
-
go.sync(e6), yo.sync(e6), fo.load(e6), go.update(), Mo.update(),
|
|
2405
|
+
function Vs(e6 = l) {
|
|
2406
|
+
go.sync(e6), yo.sync(e6), fo.load(e6), go.update(), Mo.update(), gs({
|
|
2407
2407
|
type: "slidesync",
|
|
2408
2408
|
data: { slide: e6 }
|
|
2409
2409
|
});
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2411
|
+
function Hs() {
|
|
2412
|
+
$s().forEach((e6) => {
|
|
2413
2413
|
E$2(e6, "section").forEach((e7, t2) => {
|
|
2414
2414
|
t2 > 0 && (e7.classList.remove("present"), e7.classList.remove("past"), e7.classList.add("future"), e7.setAttribute("aria-hidden", "true"));
|
|
2415
2415
|
});
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function Us(e6 = $s()) {
|
|
2419
2419
|
e6.forEach((t2, n2) => {
|
|
2420
2420
|
let r2 = e6[Math.floor(Math.random() * e6.length)];
|
|
2421
2421
|
r2.parentNode === t2.parentNode && t2.parentNode.insertBefore(t2, r2);
|
|
2422
2422
|
let i2 = t2.querySelectorAll("section");
|
|
2423
|
-
i2.length &&
|
|
2423
|
+
i2.length && Us(i2);
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2426
|
+
function Ws(e6, t2) {
|
|
2427
2427
|
let n2 = E$2(p.wrapper, e6), i2 = n2.length, a2 = _o.isActive() || vo.isActive(), o2 = false, s2 = false;
|
|
2428
2428
|
if (i2) {
|
|
2429
2429
|
r.loop && (t2 >= i2 && (o2 = true), t2 %= i2, t2 < 0 && (t2 = i2 + t2, s2 = true)), t2 = Math.max(Math.min(t2, i2 - 1), 0);
|
|
2430
2430
|
for (let e8 = 0; e8 < i2; e8++) {
|
|
2431
|
-
let i3 = n2[e8], c3 = r.rtl && !
|
|
2431
|
+
let i3 = n2[e8], c3 = r.rtl && !Ts(i3);
|
|
2432
2432
|
if (i3.classList.remove("past"), i3.classList.remove("present"), i3.classList.remove("future"), i3.setAttribute("hidden", ""), i3.setAttribute("aria-hidden", "true"), i3.querySelector("section") && i3.classList.add("stack"), a2) {
|
|
2433
2433
|
i3.classList.add("present");
|
|
2434
2434
|
continue;
|
|
2435
2435
|
}
|
|
2436
|
-
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments &&
|
|
2436
|
+
e8 < t2 ? (i3.classList.add(c3 ? "future" : "past"), r.fragments && Gs(i3)) : e8 > t2 ? (i3.classList.add(c3 ? "past" : "future"), r.fragments && Ks(i3)) : e8 === t2 && r.fragments && (o2 ? Ks(i3) : s2 && Gs(i3));
|
|
2437
2437
|
}
|
|
2438
2438
|
let e7 = n2[t2], c2 = e7.classList.contains("present");
|
|
2439
|
-
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 ||
|
|
2439
|
+
e7.classList.add("present"), e7.removeAttribute("hidden"), e7.removeAttribute("aria-hidden"), c2 || gs({
|
|
2440
2440
|
target: e7,
|
|
2441
2441
|
type: "visible",
|
|
2442
2442
|
bubbles: false
|
|
@@ -2446,35 +2446,35 @@ function Ut$1(e5, t) {
|
|
|
2446
2446
|
} else t2 = 0;
|
|
2447
2447
|
return t2;
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function Gs(e6) {
|
|
2450
2450
|
E$2(e6, ".fragment").forEach((e7) => {
|
|
2451
2451
|
e7.classList.add("visible"), e7.classList.remove("current-fragment");
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function Ks(e6) {
|
|
2455
2455
|
E$2(e6, ".fragment.visible").forEach((e7) => {
|
|
2456
2456
|
e7.classList.remove("visible", "current-fragment");
|
|
2457
2457
|
});
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2460
|
-
let e6 =
|
|
2459
|
+
function qs() {
|
|
2460
|
+
let e6 = $s(), t2 = e6.length, n2, i2;
|
|
2461
2461
|
if (t2 && o !== void 0) {
|
|
2462
2462
|
let a2 = bo.isActive(), c2 = a2 ? 10 : r.viewDistance;
|
|
2463
2463
|
le$2 && (c2 = a2 ? 6 : r.mobileViewDistance), vo.isActive() && (c2 = Number.MAX_VALUE);
|
|
2464
2464
|
for (let l2 = 0; l2 < t2; l2++) {
|
|
2465
2465
|
let u2 = e6[l2], f2 = E$2(u2, "section"), ro2 = f2.length;
|
|
2466
2466
|
if (n2 = Math.abs((o || 0) - l2) || 0, r.loop && (n2 = Math.abs(((o || 0) - l2) % (t2 - c2)) || 0), n2 < c2 ? fo.load(u2) : fo.unload(u2), ro2) {
|
|
2467
|
-
let e7 = a2 ? 0 :
|
|
2467
|
+
let e7 = a2 ? 0 : ws(u2);
|
|
2468
2468
|
for (let t3 = 0; t3 < ro2; t3++) {
|
|
2469
2469
|
let r2 = f2[t3];
|
|
2470
2470
|
i2 = Math.abs(l2 === (o || 0) ? (s || 0) - t3 : t3 - e7), n2 + i2 < c2 ? fo.load(r2) : fo.unload(r2);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
|
-
|
|
2474
|
+
rc() ? p.wrapper.classList.add("has-vertical-slides") : p.wrapper.classList.remove("has-vertical-slides"), nc() ? p.wrapper.classList.add("has-horizontal-slides") : p.wrapper.classList.remove("has-horizontal-slides");
|
|
2475
2475
|
}
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Js({ includeFragments: e6 = false } = {}) {
|
|
2478
2478
|
let t2 = p.wrapper.querySelectorAll(te$2), n2 = p.wrapper.querySelectorAll(_e$1), i2 = {
|
|
2479
2479
|
left: o > 0,
|
|
2480
2480
|
right: o < t2.length - 1,
|
|
@@ -2491,8 +2491,8 @@ function Ut$1(e5, t) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
return i2;
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2495
|
-
let t2 =
|
|
2494
|
+
function Ys(e6 = l) {
|
|
2495
|
+
let t2 = $s(), n2 = 0;
|
|
2496
2496
|
e: for (let r2 = 0; r2 < t2.length; r2++) {
|
|
2497
2497
|
let i2 = t2[r2], a2 = i2.querySelectorAll("section");
|
|
2498
2498
|
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
@@ -2504,8 +2504,8 @@ function Ut$1(e5, t) {
|
|
|
2504
2504
|
}
|
|
2505
2505
|
return n2;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
let e6 =
|
|
2507
|
+
function Xs() {
|
|
2508
|
+
let e6 = ac(), t2 = Ys();
|
|
2509
2509
|
if (l) {
|
|
2510
2510
|
let e7 = l.querySelectorAll(".fragment");
|
|
2511
2511
|
if (e7.length > 0) {
|
|
@@ -2515,11 +2515,11 @@ function Ut$1(e5, t) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
return Math.min(t2 / (e6 - 1), 1);
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function Zs(e6) {
|
|
2519
2519
|
let t2 = o, n2 = s, r2;
|
|
2520
2520
|
if (e6) if (_o.isActive()) t2 = parseInt(e6.getAttribute("data-index-h"), 10), e6.getAttribute("data-index-v") && (n2 = parseInt(e6.getAttribute("data-index-v"), 10));
|
|
2521
2521
|
else {
|
|
2522
|
-
let r3 =
|
|
2522
|
+
let r3 = Ts(e6), i2 = r3 ? e6.parentNode : e6, a2 = $s();
|
|
2523
2523
|
t2 = Math.max(a2.indexOf(i2), 0), n2 = void 0, r3 && (n2 = Math.max(E$2(e6.parentNode, "section").indexOf(e6), 0));
|
|
2524
2524
|
}
|
|
2525
2525
|
if (!e6 && l && l.querySelectorAll(".fragment").length > 0) {
|
|
@@ -2532,26 +2532,26 @@ function Ut$1(e5, t) {
|
|
|
2532
2532
|
f: r2
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Qs() {
|
|
2536
2536
|
return E$2(p.wrapper, de$1 + ':not(.stack):not([data-visibility="uncounted"])');
|
|
2537
2537
|
}
|
|
2538
|
-
function
|
|
2538
|
+
function $s() {
|
|
2539
2539
|
return E$2(p.wrapper, te$2);
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function ec() {
|
|
2542
2542
|
return E$2(p.wrapper, ".slides>section>section");
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2544
|
+
function tc() {
|
|
2545
2545
|
return E$2(p.wrapper, te$2 + ".stack");
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2548
|
-
return
|
|
2547
|
+
function nc() {
|
|
2548
|
+
return $s().length > 1;
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2551
|
-
return
|
|
2550
|
+
function rc() {
|
|
2551
|
+
return ec().length > 1;
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2554
|
-
return
|
|
2553
|
+
function ic() {
|
|
2554
|
+
return Qs().map((e6) => {
|
|
2555
2555
|
let t2 = {};
|
|
2556
2556
|
for (let n2 = 0; n2 < e6.attributes.length; n2++) {
|
|
2557
2557
|
let r2 = e6.attributes[n2];
|
|
@@ -2560,102 +2560,102 @@ function Ut$1(e5, t) {
|
|
|
2560
2560
|
return t2;
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2564
|
-
return
|
|
2563
|
+
function ac() {
|
|
2564
|
+
return Qs().length;
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2567
|
-
let n2 =
|
|
2566
|
+
function oc(e6, t2) {
|
|
2567
|
+
let n2 = $s()[e6], r2 = n2 && n2.querySelectorAll("section");
|
|
2568
2568
|
return r2 && r2.length && typeof t2 == "number" ? r2 ? r2[t2] : void 0 : n2;
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2571
|
-
let n2 = typeof e6 == "number" ?
|
|
2570
|
+
function sc(e6, t2) {
|
|
2571
|
+
let n2 = typeof e6 == "number" ? oc(e6, t2) : e6;
|
|
2572
2572
|
if (n2) return n2.slideBackgroundElement;
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2575
|
-
let e6 =
|
|
2574
|
+
function cc() {
|
|
2575
|
+
let e6 = Zs();
|
|
2576
2576
|
return Q$2({
|
|
2577
2577
|
indexh: e6.h,
|
|
2578
2578
|
indexv: e6.v,
|
|
2579
2579
|
indexf: e6.f,
|
|
2580
|
-
paused:
|
|
2580
|
+
paused: Ns(),
|
|
2581
2581
|
overview: bo.isActive()
|
|
2582
2582
|
}, Do.getState());
|
|
2583
2583
|
}
|
|
2584
|
-
function
|
|
2584
|
+
function lc(e6) {
|
|
2585
2585
|
if (typeof e6 == "object") {
|
|
2586
|
-
|
|
2586
|
+
Ls(fe$1(e6.indexh), fe$1(e6.indexv), fe$1(e6.indexf));
|
|
2587
2587
|
let t2 = fe$1(e6.paused), n2 = fe$1(e6.overview);
|
|
2588
|
-
typeof t2 == "boolean" && t2 !==
|
|
2588
|
+
typeof t2 == "boolean" && t2 !== Ns() && Ms(t2), typeof n2 == "boolean" && n2 !== bo.isActive() && bo.toggle(n2), Do.setState(e6);
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2592
|
-
if (
|
|
2591
|
+
function uc() {
|
|
2592
|
+
if (dc(), l && r.autoSlide !== false) {
|
|
2593
2593
|
let e6 = l.querySelector(".current-fragment[data-autoslide]"), t2 = e6 ? e6.getAttribute("data-autoslide") : null, n2 = l.parentNode ? l.parentNode.getAttribute("data-autoslide") : null, i2 = l.getAttribute("data-autoslide");
|
|
2594
2594
|
t2 ? oo = parseInt(t2, 10) : i2 ? oo = parseInt(i2, 10) : n2 ? oo = parseInt(n2, 10) : (oo = r.autoSlide, l.querySelectorAll(".fragment").length === 0 && E$2(l, "video, audio").forEach((e7) => {
|
|
2595
2595
|
e7.hasAttribute("data-autoplay") && oo && e7.duration * 1e3 / e7.playbackRate > oo && (oo = e7.duration * 1e3 / e7.playbackRate + 1e3);
|
|
2596
|
-
})), oo && !uo && !
|
|
2597
|
-
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() :
|
|
2596
|
+
})), oo && !uo && !Ns() && !bo.isActive() && (!ks() || yo.availableRoutes().next || r.loop === true) && (co = setTimeout(() => {
|
|
2597
|
+
typeof r.autoSlideMethod == "function" ? r.autoSlideMethod() : yc(), uc();
|
|
2598
2598
|
}, oo), lo = Date.now()), so && so.setPlaying(co !== -1);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function dc() {
|
|
2602
2602
|
clearTimeout(co), co = -1;
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
oo && !uo && (uo = true,
|
|
2604
|
+
function fc() {
|
|
2605
|
+
oo && !uo && (uo = true, gs({ type: "autoslidepaused" }), clearTimeout(co), so && so.setPlaying(false));
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2608
|
-
oo && uo && (uo = false,
|
|
2607
|
+
function pc() {
|
|
2608
|
+
oo && uo && (uo = false, gs({ type: "autoslideresumed" }), uc());
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function mc({ skipFragments: e6 = false } = {}) {
|
|
2611
2611
|
if (u.hasNavigatedHorizontally = true, _o.isActive()) return _o.prev();
|
|
2612
|
-
r.rtl ? (bo.isActive() || e6 || yo.next() === false) &&
|
|
2612
|
+
r.rtl ? (bo.isActive() || e6 || yo.next() === false) && Js().left && Ls(o + 1, r.navigationMode === "grid" ? s : void 0) : (bo.isActive() || e6 || yo.prev() === false) && Js().left && Ls(o - 1, r.navigationMode === "grid" ? s : void 0);
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function hc({ skipFragments: e6 = false } = {}) {
|
|
2615
2615
|
if (u.hasNavigatedHorizontally = true, _o.isActive()) return _o.next();
|
|
2616
|
-
r.rtl ? (bo.isActive() || e6 || yo.prev() === false) &&
|
|
2616
|
+
r.rtl ? (bo.isActive() || e6 || yo.prev() === false) && Js().right && Ls(o - 1, r.navigationMode === "grid" ? s : void 0) : (bo.isActive() || e6 || yo.next() === false) && Js().right && Ls(o + 1, r.navigationMode === "grid" ? s : void 0);
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function gc({ skipFragments: e6 = false } = {}) {
|
|
2619
2619
|
if (_o.isActive()) return _o.prev();
|
|
2620
|
-
(bo.isActive() || e6 || yo.prev() === false) &&
|
|
2620
|
+
(bo.isActive() || e6 || yo.prev() === false) && Js().up && Ls(o, s - 1);
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function _c({ skipFragments: e6 = false } = {}) {
|
|
2623
2623
|
if (u.hasNavigatedVertically = true, _o.isActive()) return _o.next();
|
|
2624
|
-
(bo.isActive() || e6 || yo.next() === false) &&
|
|
2624
|
+
(bo.isActive() || e6 || yo.next() === false) && Js().down && Ls(o, s + 1);
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function vc({ skipFragments: e6 = false } = {}) {
|
|
2627
2627
|
if (_o.isActive()) return _o.prev();
|
|
2628
|
-
if (e6 || yo.prev() === false) if (
|
|
2628
|
+
if (e6 || yo.prev() === false) if (Js().up) gc({ skipFragments: e6 });
|
|
2629
2629
|
else {
|
|
2630
2630
|
let t2;
|
|
2631
2631
|
if (t2 = r.rtl ? E$2(p.wrapper, te$2 + ".future").pop() : E$2(p.wrapper, te$2 + ".past").pop(), t2 && t2.classList.contains("stack")) {
|
|
2632
2632
|
let e7 = t2.querySelectorAll("section").length - 1 || void 0;
|
|
2633
|
-
|
|
2634
|
-
} else r.rtl ?
|
|
2633
|
+
Ls(o - 1, e7);
|
|
2634
|
+
} else r.rtl ? hc({ skipFragments: e6 }) : mc({ skipFragments: e6 });
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function yc({ skipFragments: e6 = false } = {}) {
|
|
2638
2638
|
if (u.hasNavigatedHorizontally = true, u.hasNavigatedVertically = true, _o.isActive()) return _o.next();
|
|
2639
2639
|
if (e6 || yo.next() === false) {
|
|
2640
|
-
let t2 =
|
|
2641
|
-
t2.down && t2.right && r.loop &&
|
|
2640
|
+
let t2 = Js();
|
|
2641
|
+
t2.down && t2.right && r.loop && Ds() && (t2.down = false), t2.down ? _c({ skipFragments: e6 }) : r.rtl ? mc({ skipFragments: e6 }) : hc({ skipFragments: e6 });
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
|
-
function
|
|
2645
|
-
r.autoSlideStoppable &&
|
|
2644
|
+
function bc(e6) {
|
|
2645
|
+
r.autoSlideStoppable && fc();
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function xc(e6) {
|
|
2648
2648
|
let t2 = e6.data;
|
|
2649
2649
|
if (typeof t2 == "string" && t2.charAt(0) === "{" && t2.charAt(t2.length - 1) === "}" && (t2 = JSON.parse(t2), t2.method && typeof n[t2.method] == "function")) if (Li.test(t2.method) === false) {
|
|
2650
2650
|
let e7 = n[t2.method].apply(n, t2.args);
|
|
2651
|
-
|
|
2651
|
+
vs("callback", {
|
|
2652
2652
|
method: t2.method,
|
|
2653
2653
|
result: e7
|
|
2654
2654
|
});
|
|
2655
2655
|
} else console.warn('reveal.js: "' + t2.method + '" is is blacklisted from the postMessage API');
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2658
|
-
ao === "running" && /section/gi.test(e6.target.nodeName) && (ao = "idle",
|
|
2657
|
+
function Sc(e6) {
|
|
2658
|
+
ao === "running" && /section/gi.test(e6.target.nodeName) && (ao = "idle", gs({
|
|
2659
2659
|
type: "slidetransitionend",
|
|
2660
2660
|
data: {
|
|
2661
2661
|
indexh: o,
|
|
@@ -2665,72 +2665,72 @@ function Ut$1(e5, t) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
}));
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function Cc(e6) {
|
|
2669
2669
|
let t2 = V$1(e6.target, 'a[href^="#"]');
|
|
2670
2670
|
if (t2) {
|
|
2671
2671
|
let r2 = t2.getAttribute("href"), i2 = So.getIndicesFromHash(r2);
|
|
2672
2672
|
i2 && (n.slide(i2.h, i2.v, i2.f), e6.preventDefault());
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2676
|
-
|
|
2675
|
+
function wc(e6) {
|
|
2676
|
+
ys();
|
|
2677
2677
|
}
|
|
2678
|
-
function
|
|
2678
|
+
function Tc(e6) {
|
|
2679
2679
|
document.hidden === false && document.activeElement !== document.body && (typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus());
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function Ec(e6) {
|
|
2682
2682
|
(document.fullscreenElement || document.webkitFullscreenElement) === p.wrapper && (e6.stopImmediatePropagation(), setTimeout(() => {
|
|
2683
2683
|
n.layout(), n.focus.focus();
|
|
2684
2684
|
}, 1));
|
|
2685
2685
|
}
|
|
2686
|
-
function
|
|
2687
|
-
|
|
2686
|
+
function Dc(e6) {
|
|
2687
|
+
ks() && r.loop === false ? (Ls(0, 0), pc()) : uo ? pc() : fc();
|
|
2688
2688
|
}
|
|
2689
|
-
let
|
|
2689
|
+
let Oc = {
|
|
2690
2690
|
VERSION: Ot$1,
|
|
2691
2691
|
initialize: Ro,
|
|
2692
|
-
configure:
|
|
2693
|
-
destroy:
|
|
2694
|
-
sync:
|
|
2695
|
-
syncSlide:
|
|
2692
|
+
configure: ls,
|
|
2693
|
+
destroy: fs,
|
|
2694
|
+
sync: Bs,
|
|
2695
|
+
syncSlide: Vs,
|
|
2696
2696
|
syncFragments: yo.sync.bind(yo),
|
|
2697
|
-
slide:
|
|
2698
|
-
left:
|
|
2699
|
-
right:
|
|
2700
|
-
up:
|
|
2701
|
-
down:
|
|
2702
|
-
prev:
|
|
2703
|
-
next:
|
|
2704
|
-
navigateLeft:
|
|
2705
|
-
navigateRight:
|
|
2706
|
-
navigateUp:
|
|
2707
|
-
navigateDown:
|
|
2708
|
-
navigatePrev:
|
|
2709
|
-
navigateNext:
|
|
2697
|
+
slide: Ls,
|
|
2698
|
+
left: mc,
|
|
2699
|
+
right: hc,
|
|
2700
|
+
up: gc,
|
|
2701
|
+
down: _c,
|
|
2702
|
+
prev: vc,
|
|
2703
|
+
next: yc,
|
|
2704
|
+
navigateLeft: mc,
|
|
2705
|
+
navigateRight: hc,
|
|
2706
|
+
navigateUp: gc,
|
|
2707
|
+
navigateDown: _c,
|
|
2708
|
+
navigatePrev: vc,
|
|
2709
|
+
navigateNext: yc,
|
|
2710
2710
|
navigateFragment: yo.goto.bind(yo),
|
|
2711
2711
|
prevFragment: yo.prev.bind(yo),
|
|
2712
2712
|
nextFragment: yo.next.bind(yo),
|
|
2713
|
-
on:
|
|
2714
|
-
off:
|
|
2715
|
-
addEventListener:
|
|
2716
|
-
removeEventListener:
|
|
2717
|
-
layout:
|
|
2718
|
-
shuffle:
|
|
2719
|
-
availableRoutes:
|
|
2713
|
+
on: ps,
|
|
2714
|
+
off: ms,
|
|
2715
|
+
addEventListener: ps,
|
|
2716
|
+
removeEventListener: ms,
|
|
2717
|
+
layout: ys,
|
|
2718
|
+
shuffle: Us,
|
|
2719
|
+
availableRoutes: Js,
|
|
2720
2720
|
availableFragments: yo.availableRoutes.bind(yo),
|
|
2721
2721
|
toggleHelp: Do.toggleHelp.bind(Do),
|
|
2722
2722
|
toggleOverview: bo.toggle.bind(bo),
|
|
2723
2723
|
toggleScrollView: _o.toggle.bind(_o),
|
|
2724
|
-
togglePause:
|
|
2725
|
-
toggleAutoSlide:
|
|
2726
|
-
toggleJumpToSlide:
|
|
2727
|
-
isFirstSlide:
|
|
2728
|
-
isLastSlide:
|
|
2729
|
-
isLastVerticalSlide:
|
|
2730
|
-
isVerticalSlide:
|
|
2731
|
-
isVerticalStack:
|
|
2732
|
-
isPaused:
|
|
2733
|
-
isAutoSliding:
|
|
2724
|
+
togglePause: Ms,
|
|
2725
|
+
toggleAutoSlide: Fs,
|
|
2726
|
+
toggleJumpToSlide: Ps,
|
|
2727
|
+
isFirstSlide: Os,
|
|
2728
|
+
isLastSlide: ks,
|
|
2729
|
+
isLastVerticalSlide: Ds,
|
|
2730
|
+
isVerticalSlide: Ts,
|
|
2731
|
+
isVerticalStack: Es,
|
|
2732
|
+
isPaused: Ns,
|
|
2733
|
+
isAutoSliding: Is,
|
|
2734
2734
|
isSpeakerNotes: Mo.isSpeakerNotesWindow.bind(Mo),
|
|
2735
2735
|
isOverview: bo.isActive.bind(bo),
|
|
2736
2736
|
isFocused: Oo.isFocused.bind(Oo),
|
|
@@ -2747,35 +2747,35 @@ function Ut$1(e5, t) {
|
|
|
2747
2747
|
previewVideo: Do.previewVideo.bind(Do),
|
|
2748
2748
|
showPreview: Do.previewIframe.bind(Do),
|
|
2749
2749
|
hidePreview: Do.close.bind(Do),
|
|
2750
|
-
addEventListeners:
|
|
2751
|
-
removeEventListeners:
|
|
2752
|
-
dispatchEvent:
|
|
2753
|
-
getState:
|
|
2754
|
-
setState:
|
|
2755
|
-
getProgress:
|
|
2756
|
-
getIndices:
|
|
2757
|
-
getSlidesAttributes:
|
|
2758
|
-
getSlidePastCount:
|
|
2759
|
-
getTotalSlides:
|
|
2760
|
-
getSlide:
|
|
2750
|
+
addEventListeners: us,
|
|
2751
|
+
removeEventListeners: ds,
|
|
2752
|
+
dispatchEvent: gs,
|
|
2753
|
+
getState: cc,
|
|
2754
|
+
setState: lc,
|
|
2755
|
+
getProgress: Xs,
|
|
2756
|
+
getIndices: Zs,
|
|
2757
|
+
getSlidesAttributes: ic,
|
|
2758
|
+
getSlidePastCount: Ys,
|
|
2759
|
+
getTotalSlides: ac,
|
|
2760
|
+
getSlide: oc,
|
|
2761
2761
|
getPreviousSlide: () => c,
|
|
2762
2762
|
getCurrentSlide: () => l,
|
|
2763
|
-
getSlideBackground:
|
|
2763
|
+
getSlideBackground: sc,
|
|
2764
2764
|
getSlideNotes: Mo.getSlideNotes.bind(Mo),
|
|
2765
|
-
getSlides:
|
|
2766
|
-
getHorizontalSlides:
|
|
2767
|
-
getVerticalSlides:
|
|
2768
|
-
hasHorizontalSlides:
|
|
2769
|
-
hasVerticalSlides:
|
|
2765
|
+
getSlides: Qs,
|
|
2766
|
+
getHorizontalSlides: $s,
|
|
2767
|
+
getVerticalSlides: ec,
|
|
2768
|
+
hasHorizontalSlides: nc,
|
|
2769
|
+
hasVerticalSlides: rc,
|
|
2770
2770
|
hasNavigatedHorizontally: () => u.hasNavigatedHorizontally,
|
|
2771
2771
|
hasNavigatedVertically: () => u.hasNavigatedVertically,
|
|
2772
|
-
shouldAutoAnimateBetween:
|
|
2772
|
+
shouldAutoAnimateBetween: Rs,
|
|
2773
2773
|
addKeyBinding: xo.addKeyBinding.bind(xo),
|
|
2774
2774
|
removeKeyBinding: xo.removeKeyBinding.bind(xo),
|
|
2775
2775
|
triggerKey: xo.triggerKey.bind(xo),
|
|
2776
2776
|
registerKeyboardShortcut: xo.registerKeyboardShortcut.bind(xo),
|
|
2777
|
-
getComputedSlideSize:
|
|
2778
|
-
setCurrentScrollPage:
|
|
2777
|
+
getComputedSlideSize: Ss,
|
|
2778
|
+
setCurrentScrollPage: zs,
|
|
2779
2779
|
removeHiddenSlides: Ko,
|
|
2780
2780
|
getScale: () => ro,
|
|
2781
2781
|
getConfig: () => r,
|
|
@@ -2790,7 +2790,7 @@ function Ut$1(e5, t) {
|
|
|
2790
2790
|
getPlugin: Eo.getPlugin.bind(Eo),
|
|
2791
2791
|
getPlugins: Eo.getRegisteredPlugins.bind(Eo)
|
|
2792
2792
|
};
|
|
2793
|
-
return ge$1(n, We$1(Q$2({},
|
|
2793
|
+
return ge$1(n, We$1(Q$2({}, Oc), {
|
|
2794
2794
|
announceStatus: Xo,
|
|
2795
2795
|
getStatusText: Zo,
|
|
2796
2796
|
focus: Oo,
|
|
@@ -2804,14 +2804,14 @@ function Ut$1(e5, t) {
|
|
|
2804
2804
|
backgrounds: go,
|
|
2805
2805
|
slideContent: fo,
|
|
2806
2806
|
slideNumber: po,
|
|
2807
|
-
onUserInput:
|
|
2807
|
+
onUserInput: bc,
|
|
2808
2808
|
closeOverlay: Do.close.bind(Do),
|
|
2809
|
-
updateSlidesVisibility:
|
|
2810
|
-
layoutSlideContents:
|
|
2811
|
-
transformSlides:
|
|
2812
|
-
cueAutoSlide:
|
|
2813
|
-
cancelAutoSlide:
|
|
2814
|
-
})),
|
|
2809
|
+
updateSlidesVisibility: qs,
|
|
2810
|
+
layoutSlideContents: bs,
|
|
2811
|
+
transformSlides: hs,
|
|
2812
|
+
cueAutoSlide: uc,
|
|
2813
|
+
cancelAutoSlide: dc
|
|
2814
|
+
})), Oc;
|
|
2815
2815
|
}
|
|
2816
2816
|
var ce$1 = Ut$1, qt$1 = [];
|
|
2817
2817
|
ce$1.initialize = (e5) => {
|
|
@@ -4681,11 +4681,11 @@ const SlideNotesEditor = (e5) => {
|
|
|
4681
4681
|
return t[22] !== po || t[23] !== ho ? (_o = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
4682
4682
|
className: po,
|
|
4683
4683
|
"aria-label": "Speaker notes",
|
|
4684
|
-
onKeyDown: _temp,
|
|
4684
|
+
onKeyDown: _temp$1,
|
|
4685
4685
|
children: [mo, ho]
|
|
4686
4686
|
}), t[22] = po, t[23] = ho, t[24] = _o) : _o = t[24], _o;
|
|
4687
4687
|
};
|
|
4688
|
-
function _temp(e5) {
|
|
4688
|
+
function _temp$1(e5) {
|
|
4689
4689
|
return e5.stopPropagation();
|
|
4690
4690
|
}
|
|
4691
4691
|
var BLOCK_JOIN = "\n\n---\n\n";
|
|
@@ -7188,12 +7188,70 @@ var NotesAside = (e5) => {
|
|
|
7188
7188
|
className: r,
|
|
7189
7189
|
children: i
|
|
7190
7190
|
}), t[3] = r, t[4] = i, t[5] = a) : a = t[5], a;
|
|
7191
|
-
}
|
|
7192
|
-
|
|
7191
|
+
};
|
|
7192
|
+
function shouldShowCode(e5) {
|
|
7193
|
+
var _a2;
|
|
7194
|
+
let { cells: t, cellId: n, showCodeOverrides: r, codeToggleEnabled: i } = e5;
|
|
7195
|
+
return n == null || !i ? false : (((_a2 = t.get(n)) == null ? void 0 : _a2.showCode) ?? false) || r.has(n);
|
|
7196
|
+
}
|
|
7197
|
+
function deckSlideType(e5) {
|
|
7198
|
+
var _a2;
|
|
7199
|
+
let { cell: t, noOutputIds: n, heldEditCellId: r, slideConfigs: i } = e5;
|
|
7200
|
+
return n.has(t.id) || t.id === r ? "skip" : ((_a2 = i.get(t.id)) == null ? void 0 : _a2.type) ?? "slide";
|
|
7201
|
+
}
|
|
7202
|
+
function useParkedPreview(e5) {
|
|
7203
|
+
var _a2;
|
|
7204
|
+
let t = (0, import_compiler_runtime.c)(15), { activeCell: n, slideConfigs: r, noOutputIds: i } = e5, a = (n == null ? void 0 : n.id) ?? null, o;
|
|
7205
|
+
t[0] !== n || t[1] !== i ? (o = n != null && i.has(n.id), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
|
|
7206
|
+
let s = o, c = n != null && ((_a2 = r.get(n.id)) == null ? void 0 : _a2.type) === "skip" || s, l;
|
|
7207
|
+
t[3] === a ? l = t[4] : (l = {
|
|
7208
|
+
activeCellId: a,
|
|
7209
|
+
cellId: null
|
|
7210
|
+
}, t[3] = a, t[4] = l);
|
|
7211
|
+
let [u, f] = (0, import_react.useState)(l), ro = u.cellId;
|
|
7212
|
+
u.activeCellId === a ? s && ro !== a && (ro = a, f({
|
|
7213
|
+
activeCellId: a,
|
|
7214
|
+
cellId: ro
|
|
7215
|
+
})) : (ro = s ? a : null, f({
|
|
7216
|
+
activeCellId: a,
|
|
7217
|
+
cellId: ro
|
|
7218
|
+
}));
|
|
7219
|
+
let io = !c && a != null && ro === a, p = io ? ro : null, ao;
|
|
7220
|
+
t[5] === p ? ao = t[6] : (ao = {
|
|
7221
|
+
cellId: p,
|
|
7222
|
+
show: true
|
|
7223
|
+
}, t[5] = p, t[6] = ao);
|
|
7224
|
+
let [oo, so] = (0, import_react.useState)(ao), co = oo.show;
|
|
7225
|
+
oo.cellId !== p && (co = true, so({
|
|
7226
|
+
cellId: p,
|
|
7227
|
+
show: true
|
|
7228
|
+
}));
|
|
7229
|
+
let lo;
|
|
7230
|
+
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lo = () => so(_temp), t[7] = lo) : lo = t[7];
|
|
7231
|
+
let uo = useEvent_default(lo), fo = c || io ? n ?? null : null, po;
|
|
7232
|
+
return t[8] !== p || t[9] !== co || t[10] !== io || t[11] !== s || t[12] !== fo || t[13] !== uo ? (po = {
|
|
7233
|
+
parkedPreviewCell: fo,
|
|
7234
|
+
isHeldEdit: io,
|
|
7235
|
+
isNoOutputPreview: s,
|
|
7236
|
+
heldEditCellId: p,
|
|
7237
|
+
heldShowsCode: co,
|
|
7238
|
+
toggleHeldShowsCode: uo
|
|
7239
|
+
}, t[8] = p, t[9] = co, t[10] = io, t[11] = s, t[12] = fo, t[13] = uo, t[14] = po) : po = t[14], po;
|
|
7240
|
+
}
|
|
7241
|
+
function _temp(e5) {
|
|
7242
|
+
return {
|
|
7243
|
+
...e5,
|
|
7244
|
+
show: !e5.show
|
|
7245
|
+
};
|
|
7246
|
+
}
|
|
7247
|
+
var SubslideView = (e5) => {
|
|
7248
|
+
let t = (0, import_compiler_runtime.c)(24), { subslide: n, resolveShowCode: r, isEditable: i, slideConfigs: a } = e5, o, s, c, l, u, f;
|
|
7193
7249
|
if (t[0] !== i || t[1] !== r || t[2] !== a || t[3] !== n) {
|
|
7194
7250
|
let { slideLevel: e6, cumulativeByBlock: ro2 } = buildSubslideNotes(n, a);
|
|
7195
|
-
s = e6
|
|
7196
|
-
|
|
7251
|
+
s = e6;
|
|
7252
|
+
let p2 = n.blocks.some((e7) => e7.cells.some((e8) => r(e8.id)));
|
|
7253
|
+
o = w, f = "h-full w-full overflow-auto flex", c = p2 ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content", t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = { margin: "auto 20px" }, t[10] = l) : l = t[10], u = n.blocks.map((e7, t2) => {
|
|
7254
|
+
let n2 = e7.cells.map((e8) => r(e8.id) ? i ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellView, { cell: e8 }, e8.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellReadOnlyView, { cell: e8 }, e8.id) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
7197
7255
|
cellId: e8.id,
|
|
7198
7256
|
status: e8.status,
|
|
7199
7257
|
output: e8.output
|
|
@@ -7214,119 +7272,142 @@ var NotesAside = (e5) => {
|
|
|
7214
7272
|
style: l,
|
|
7215
7273
|
children: u
|
|
7216
7274
|
}), t[11] = c, t[12] = l, t[13] = u, t[14] = ro) : ro = t[14];
|
|
7217
|
-
let
|
|
7218
|
-
t[15] !== f || t[16] !== ro ? (
|
|
7275
|
+
let p;
|
|
7276
|
+
t[15] !== f || t[16] !== ro ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7219
7277
|
className: f,
|
|
7220
7278
|
children: ro
|
|
7221
|
-
}), t[15] = f, t[16] = ro, t[17] =
|
|
7222
|
-
let p;
|
|
7223
|
-
t[18] === s ? p = t[19] : (p = s && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: s }), t[18] = s, t[19] = p);
|
|
7279
|
+
}), t[15] = f, t[16] = ro, t[17] = p) : p = t[17];
|
|
7224
7280
|
let ao;
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7281
|
+
t[18] === s ? ao = t[19] : (ao = s && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotesAside, { text: s }), t[18] = s, t[19] = ao);
|
|
7282
|
+
let oo;
|
|
7283
|
+
return t[20] !== o || t[21] !== p || t[22] !== ao ? (oo = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(o, { children: [p, ao] }), t[20] = o, t[21] = p, t[22] = ao, t[23] = oo) : oo = t[23], oo;
|
|
7284
|
+
};
|
|
7285
|
+
function parkedRendersSource(e5) {
|
|
7286
|
+
let { isNoOutputPreview: t, isEditable: n, showCode: r } = e5;
|
|
7287
|
+
return t && n || r;
|
|
7288
|
+
}
|
|
7289
|
+
var ParkedPreviewContent = (e5) => {
|
|
7290
|
+
let t = (0, import_compiler_runtime.c)(7), { cell: n, isNoOutputPreview: r, isEditable: i, showCode: a } = e5;
|
|
7291
|
+
if (parkedRendersSource({
|
|
7292
|
+
isNoOutputPreview: r,
|
|
7293
|
+
isEditable: i,
|
|
7294
|
+
showCode: a
|
|
7295
|
+
})) {
|
|
7233
7296
|
let e6;
|
|
7234
|
-
return t[
|
|
7297
|
+
return t[0] !== n || t[1] !== i ? (e6 = i ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellView, { cell: n }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideCellReadOnlyView, { cell: n }), t[0] = n, t[1] = i, t[2] = e6) : e6 = t[2], e6;
|
|
7235
7298
|
}
|
|
7236
7299
|
let o;
|
|
7237
|
-
return t[
|
|
7300
|
+
return t[3] !== n.id || t[4] !== n.output || t[5] !== n.status ? (o = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, {
|
|
7238
7301
|
cellId: n.id,
|
|
7239
7302
|
status: n.status,
|
|
7240
7303
|
output: n.output
|
|
7241
|
-
}), t[
|
|
7242
|
-
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex:
|
|
7304
|
+
}), t[3] = n.id, t[4] = n.output, t[5] = n.status, t[6] = o) : o = t[6], o;
|
|
7305
|
+
}, reveal_component_default = ({ slideCells: e5, layout: o, setLayout: s, noOutputIds: l, activeIndex: ro, onSlideChange: io, mode: p, configWidth: fo, isEditable: po = false }) => {
|
|
7243
7306
|
var _a2, _b2;
|
|
7244
|
-
let yo = (0, import_react.useRef)(null), bo = (0, import_react.useRef)(null), { width: So, height: Co } = useSlideDimensions(yo), wo = useFullScreenElement() != null, To = useAtomValue(kioskModeAtom), Eo = (0, import_react.useMemo)(() => To ? [] : [ce], [To]), [Do, Oo] = (0, import_react.useState)(
|
|
7307
|
+
let yo = (0, import_react.useRef)(null), bo = (0, import_react.useRef)(null), { width: So, height: Co } = useSlideDimensions(yo), wo = useFullScreenElement() != null, To = useAtomValue(kioskModeAtom), Eo = (0, import_react.useMemo)(() => To ? [] : [ce], [To]), [Do, Oo] = (0, import_react.useState)(() => /* @__PURE__ */ new Set()), ko = useNotebookCodeAvailable(e5), Ao = !isIslands() && ko, jo = ro == null ? void 0 : e5[ro], Mo = jo ?? e5.at(0), { parkedPreviewCell: No, isHeldEdit: Po, isNoOutputPreview: Fo, heldEditCellId: Io, heldShowsCode: Lo, toggleHeldShowsCode: Ro } = useParkedPreview({
|
|
7308
|
+
activeCell: jo,
|
|
7309
|
+
slideConfigs: o.cells,
|
|
7310
|
+
noOutputIds: l
|
|
7311
|
+
}), zo = (e6) => shouldShowCode({
|
|
7312
|
+
cells: o.cells,
|
|
7313
|
+
cellId: e6,
|
|
7314
|
+
showCodeOverrides: Do,
|
|
7315
|
+
codeToggleEnabled: Ao
|
|
7316
|
+
}), Bo = (jo == null ? void 0 : jo.id) ?? (Mo == null ? void 0 : Mo.id), Vo = Po ? Lo : zo(Bo), Ho = Ao && Bo != null && (((_a2 = o.cells.get(Bo)) == null ? void 0 : _a2.showCode) ?? false), Uo = (0, import_react.useMemo)(() => composeSlides({
|
|
7245
7317
|
cells: e5,
|
|
7246
|
-
getType: (e6) => {
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7318
|
+
getType: (e6) => deckSlideType({
|
|
7319
|
+
cell: e6,
|
|
7320
|
+
noOutputIds: l,
|
|
7321
|
+
heldEditCellId: Io,
|
|
7322
|
+
slideConfigs: o.cells
|
|
7323
|
+
})
|
|
7250
7324
|
}), [
|
|
7251
7325
|
e5,
|
|
7252
7326
|
l,
|
|
7253
|
-
o.cells
|
|
7254
|
-
|
|
7255
|
-
|
|
7327
|
+
o.cells,
|
|
7328
|
+
Io
|
|
7329
|
+
]), { cellToTarget: Wo, targetToCellIndex: Go } = (0, import_react.useMemo)(() => buildSlideIndices({
|
|
7330
|
+
composition: Uo,
|
|
7256
7331
|
cells: e5,
|
|
7257
7332
|
getId: (e6) => e6.id
|
|
7258
|
-
}), [
|
|
7333
|
+
}), [Uo, e5]), Ko = ((_b2 = o.deck) == null ? void 0 : _b2.transition) ?? "slide", qo = (0, import_react.useMemo)(() => {
|
|
7259
7334
|
let e6 = new URL(window.location.href);
|
|
7260
7335
|
return e6.searchParams.set("kiosk", "true"), e6.searchParams.set("show-chrome", "false"), e6.toString();
|
|
7261
|
-
}, []),
|
|
7336
|
+
}, []), Jo = (0, import_react.useMemo)(() => ({
|
|
7262
7337
|
embedded: true,
|
|
7263
7338
|
width: So,
|
|
7264
7339
|
height: Co,
|
|
7265
7340
|
center: false,
|
|
7266
7341
|
minScale: 0.2,
|
|
7267
7342
|
maxScale: 2,
|
|
7268
|
-
transition:
|
|
7343
|
+
transition: Ko,
|
|
7269
7344
|
keyboardCondition: (e6) => !Events.fromInput(e6),
|
|
7270
|
-
url:
|
|
7345
|
+
url: qo
|
|
7271
7346
|
}), [
|
|
7272
7347
|
So,
|
|
7273
7348
|
Co,
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
]),
|
|
7349
|
+
Ko,
|
|
7350
|
+
qo
|
|
7351
|
+
]), Yo = useEvent_default((t) => {
|
|
7277
7352
|
let n = resolveDeckNavigationTarget({
|
|
7278
|
-
activeIndex:
|
|
7353
|
+
activeIndex: ro,
|
|
7279
7354
|
cells: e5,
|
|
7280
|
-
cellToTarget:
|
|
7355
|
+
cellToTarget: Wo,
|
|
7281
7356
|
getId: (e6) => e6.id
|
|
7282
7357
|
}), r = n && computeDeckNavigation(t.getIndices(), n);
|
|
7283
7358
|
r && (t.slide(r.h, r.v, r.f), clearPreviousVerticalIndices(t));
|
|
7284
7359
|
});
|
|
7285
7360
|
(0, import_react.useEffect)(() => {
|
|
7286
7361
|
let e6 = bo.current;
|
|
7287
|
-
e6 != null &&
|
|
7362
|
+
e6 != null && Yo(e6);
|
|
7288
7363
|
}, [
|
|
7289
|
-
|
|
7290
|
-
|
|
7364
|
+
ro,
|
|
7365
|
+
Wo,
|
|
7291
7366
|
e5,
|
|
7292
|
-
|
|
7367
|
+
Yo
|
|
7293
7368
|
]);
|
|
7294
|
-
let
|
|
7295
|
-
|
|
7296
|
-
|
|
7369
|
+
let Xo = useEvent_default(() => {
|
|
7370
|
+
if (!(Bo == null || Ho)) {
|
|
7371
|
+
if (Po) {
|
|
7372
|
+
Ro();
|
|
7373
|
+
return;
|
|
7374
|
+
}
|
|
7375
|
+
(0, import_react.startTransition)(() => Oo((e6) => {
|
|
7376
|
+
let t = new Set(e6);
|
|
7377
|
+
return t.has(Bo) ? t.delete(Bo) : t.add(Bo), t;
|
|
7378
|
+
}));
|
|
7379
|
+
}
|
|
7380
|
+
}), Zo = useEvent_default((e6) => {
|
|
7297
7381
|
var _a3;
|
|
7298
|
-
|
|
7382
|
+
Yo(e6), Ao && e6.addKeyBinding({
|
|
7299
7383
|
keyCode: 67,
|
|
7300
7384
|
key: "C",
|
|
7301
7385
|
description: "Toggle code editor"
|
|
7302
|
-
},
|
|
7386
|
+
}, Xo);
|
|
7303
7387
|
let t = (_a3 = e6.getSlidesElement()) == null ? void 0 : _a3.closest(".reveal");
|
|
7304
7388
|
t instanceof HTMLElement && (t.tabIndex = -1, t.focus({ preventScroll: true }));
|
|
7305
|
-
}),
|
|
7306
|
-
if (
|
|
7307
|
-
let e6 = Ro.get(Mo.id);
|
|
7308
|
-
return e6 ? {
|
|
7309
|
-
h: e6.h,
|
|
7310
|
-
v: e6.v
|
|
7311
|
-
} : null;
|
|
7312
|
-
}, [Mo, Ro]), qo = useEvent_default(() => {
|
|
7313
|
-
if (Lo != null) return;
|
|
7389
|
+
}), Qo = useEvent_default(() => {
|
|
7390
|
+
if (No != null) return;
|
|
7314
7391
|
let e6 = bo.current;
|
|
7315
7392
|
if (!e6) return;
|
|
7316
|
-
let t = resolveActiveCellIndex(
|
|
7317
|
-
t != null && (
|
|
7318
|
-
}),
|
|
7319
|
-
if (!
|
|
7393
|
+
let t = resolveActiveCellIndex(Go, e6.getIndices());
|
|
7394
|
+
t != null && (io == null ? void 0 : io(t));
|
|
7395
|
+
}), $o = useEvent_default((t) => {
|
|
7396
|
+
if (!No || ro == null || Events.fromInput(t)) return;
|
|
7320
7397
|
let n = classifyNavKey(t);
|
|
7321
7398
|
if (n === 0) return;
|
|
7322
7399
|
t.preventDefault(), t.stopPropagation();
|
|
7323
|
-
let i =
|
|
7324
|
-
i < 0 || i >= e5.length || (
|
|
7325
|
-
}),
|
|
7326
|
-
|
|
7400
|
+
let i = ro + n;
|
|
7401
|
+
i < 0 || i >= e5.length || (io == null ? void 0 : io(i));
|
|
7402
|
+
}), ns = useEvent_default(() => {
|
|
7403
|
+
Qo(), triggerResize(bo.current);
|
|
7327
7404
|
});
|
|
7328
|
-
useEventListener(document, "keydown",
|
|
7329
|
-
let
|
|
7405
|
+
useEventListener(document, "keydown", $o, { capture: true });
|
|
7406
|
+
let rs = Po ? null : Fo ? "Hidden as there is no output" : "Skipped in presentation", is = Po ? Lo : zo(No == null ? void 0 : No.id), as = parkedRendersSource({
|
|
7407
|
+
isNoOutputPreview: Fo,
|
|
7408
|
+
isEditable: po,
|
|
7409
|
+
showCode: is
|
|
7410
|
+
}), os = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7330
7411
|
ref: yo,
|
|
7331
7412
|
className: "h-full w-full min-w-0 flex items-center justify-center overflow-hidden",
|
|
7332
7413
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -7339,65 +7420,57 @@ var NotesAside = (e5) => {
|
|
|
7339
7420
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(b, {
|
|
7340
7421
|
deckRef: bo,
|
|
7341
7422
|
className: "aspect-video w-full overflow-hidden border rounded bg-background mo-slides-theme prose-slides focus:outline-none focus-visible:outline-none",
|
|
7342
|
-
config:
|
|
7343
|
-
onReady:
|
|
7344
|
-
onSlideChange:
|
|
7345
|
-
onFragmentShown:
|
|
7346
|
-
onFragmentHidden:
|
|
7423
|
+
config: Jo,
|
|
7424
|
+
onReady: Zo,
|
|
7425
|
+
onSlideChange: ns,
|
|
7426
|
+
onFragmentShown: Qo,
|
|
7427
|
+
onFragmentHidden: Qo,
|
|
7347
7428
|
plugins: Eo,
|
|
7348
|
-
children:
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
let r = (Ko == null ? void 0 : Ko.h) === t && (Ko == null ? void 0 : Ko.v) === n;
|
|
7360
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7361
|
-
subslide: e7,
|
|
7362
|
-
showCode: jo && r,
|
|
7363
|
-
isEditable: po,
|
|
7364
|
-
slideConfigs: o.cells
|
|
7365
|
-
}, n);
|
|
7366
|
-
}) }, t);
|
|
7367
|
-
})
|
|
7429
|
+
children: Uo.stacks.map((e6, t) => e6.subslides.length === 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7430
|
+
subslide: e6.subslides[0],
|
|
7431
|
+
resolveShowCode: zo,
|
|
7432
|
+
isEditable: po,
|
|
7433
|
+
slideConfigs: o.cells
|
|
7434
|
+
}, t) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ne, { children: e6.subslides.map((e7, t2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubslideView, {
|
|
7435
|
+
subslide: e7,
|
|
7436
|
+
resolveShowCode: zo,
|
|
7437
|
+
isEditable: po,
|
|
7438
|
+
slideConfigs: o.cells
|
|
7439
|
+
}, t2)) }, t))
|
|
7368
7440
|
}),
|
|
7369
|
-
|
|
7441
|
+
No && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7370
7442
|
className: "absolute inset-0 z-10 border rounded bg-background flex flex-col overflow-hidden",
|
|
7371
|
-
"aria-label":
|
|
7372
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7443
|
+
"aria-label": rs ?? void 0,
|
|
7444
|
+
children: [rs && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7373
7445
|
className: "flex items-center gap-1.5 px-3 py-1.5 text-xs text-muted-foreground border-b bg-muted/40",
|
|
7374
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children:
|
|
7446
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EyeOff, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: rs })]
|
|
7375
7447
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7376
7448
|
className: "flex-1 overflow-auto flex",
|
|
7377
7449
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7378
|
-
className:
|
|
7450
|
+
className: as ? "mo-slide-content flex flex-col gap-3" : "mo-slide-content",
|
|
7379
7451
|
style: { margin: "auto 20px" },
|
|
7380
7452
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParkedPreviewContent, {
|
|
7381
|
-
cell:
|
|
7382
|
-
isNoOutputPreview:
|
|
7453
|
+
cell: No,
|
|
7454
|
+
isNoOutputPreview: Fo,
|
|
7383
7455
|
isEditable: po,
|
|
7384
|
-
|
|
7456
|
+
showCode: is
|
|
7385
7457
|
})
|
|
7386
7458
|
})
|
|
7387
7459
|
})]
|
|
7388
|
-
},
|
|
7460
|
+
}, No.id),
|
|
7389
7461
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7390
7462
|
className: "absolute top-2 right-2 z-20 opacity-0 group-hover:opacity-70 text-muted-foreground transition-opacity",
|
|
7391
7463
|
children: [Ao && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
7392
|
-
content:
|
|
7464
|
+
content: Ho ? "Code is always shown for this slide" : Vo ? "Hide code (C)" : "Show code (C)",
|
|
7393
7465
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
7394
7466
|
"data-testid": "marimo-plugin-slides-toggle-code",
|
|
7395
7467
|
variant: "ghost",
|
|
7396
7468
|
size: "icon",
|
|
7397
|
-
className: cn("text-muted-foreground h-7 w-7",
|
|
7398
|
-
"aria-pressed":
|
|
7399
|
-
"aria-
|
|
7400
|
-
|
|
7469
|
+
className: cn("text-muted-foreground h-7 w-7", Vo && "text-foreground bg-muted", Ho && "opacity-50 cursor-not-allowed"),
|
|
7470
|
+
"aria-pressed": Vo,
|
|
7471
|
+
"aria-disabled": Ho,
|
|
7472
|
+
"aria-label": Ho ? "Code always shown" : Vo ? "Hide code" : "Show code",
|
|
7473
|
+
onClick: Xo,
|
|
7401
7474
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Code, { className: "h-4 w-4" })
|
|
7402
7475
|
})
|
|
7403
7476
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
@@ -7421,9 +7494,9 @@ var NotesAside = (e5) => {
|
|
|
7421
7494
|
]
|
|
7422
7495
|
})
|
|
7423
7496
|
});
|
|
7424
|
-
return
|
|
7497
|
+
return p === "read" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
7425
7498
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7426
|
-
children:
|
|
7499
|
+
children: os
|
|
7427
7500
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7428
7501
|
className: "flex-1 min-w-0 flex flex-row gap-3",
|
|
7429
7502
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PanelGroup, {
|
|
@@ -7434,7 +7507,7 @@ var NotesAside = (e5) => {
|
|
|
7434
7507
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Panel, {
|
|
7435
7508
|
defaultSize: 92,
|
|
7436
7509
|
minSize: 60,
|
|
7437
|
-
children:
|
|
7510
|
+
children: os
|
|
7438
7511
|
}),
|
|
7439
7512
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PanelResizeHandle, {
|
|
7440
7513
|
className: "mo-slides-notes-resize",
|
|
@@ -7452,7 +7525,7 @@ var NotesAside = (e5) => {
|
|
|
7452
7525
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SlideNotesEditor, {
|
|
7453
7526
|
layout: o,
|
|
7454
7527
|
setLayout: s,
|
|
7455
|
-
cellId:
|
|
7528
|
+
cellId: Mo == null ? void 0 : Mo.id
|
|
7456
7529
|
})
|
|
7457
7530
|
})
|
|
7458
7531
|
]
|
|
@@ -7460,10 +7533,14 @@ var NotesAside = (e5) => {
|
|
|
7460
7533
|
configWidth: fo,
|
|
7461
7534
|
layout: o,
|
|
7462
7535
|
setLayout: s,
|
|
7463
|
-
activeConfigCell:
|
|
7536
|
+
activeConfigCell: Mo
|
|
7464
7537
|
})]
|
|
7465
7538
|
});
|
|
7466
7539
|
};
|
|
7467
7540
|
export {
|
|
7468
|
-
|
|
7541
|
+
deckSlideType,
|
|
7542
|
+
reveal_component_default as default,
|
|
7543
|
+
parkedRendersSource,
|
|
7544
|
+
shouldShowCode,
|
|
7545
|
+
useParkedPreview
|
|
7469
7546
|
};
|