markdown-flow-ui 0.1.106-beta.2 → 0.1.106-beta.4
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/_virtual/index.cjs10.js +1 -1
- package/dist/_virtual/index.cjs4.js +1 -1
- package/dist/_virtual/index.cjs5.js +1 -1
- package/dist/_virtual/index.cjs6.js +1 -1
- package/dist/_virtual/index.cjs7.js +1 -1
- package/dist/_virtual/index.cjs8.js +1 -1
- package/dist/_virtual/index.cjs9.js +1 -1
- package/dist/_virtual/index.es10.js +2 -2
- package/dist/_virtual/index.es4.js +4 -4
- package/dist/_virtual/index.es5.js +4 -4
- package/dist/_virtual/index.es6.js +2 -5
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +5 -2
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es8.js +3 -2
- package/dist/_virtual/index.es8.js.map +1 -1
- package/dist/_virtual/index.es9.js +2 -3
- package/dist/_virtual/index.es9.js.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.js +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.js.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +6 -6
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +26 -26
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
- package/dist/components/Slide/Player.cjs.js +1 -1
- package/dist/components/Slide/Player.cjs.js.map +1 -1
- package/dist/components/Slide/Player.d.ts +6 -5
- package/dist/components/Slide/Player.es.js +129 -133
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs.js +1 -1
- package/dist/components/Slide/Slide.cjs.js.map +1 -1
- package/dist/components/Slide/Slide.d.ts +4 -4
- package/dist/components/Slide/Slide.es.js +553 -522
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/Slide.stories.d.ts +6 -5
- package/dist/components/Slide/SlideFullscreenHint.cjs.js +2 -0
- package/dist/components/Slide/SlideFullscreenHint.cjs.js.map +1 -0
- package/dist/components/Slide/SlideFullscreenHint.d.ts +9 -0
- package/dist/components/Slide/SlideFullscreenHint.es.js +42 -0
- package/dist/components/Slide/SlideFullscreenHint.es.js.map +1 -0
- package/dist/components/Slide/constants.cjs.js +2 -0
- package/dist/components/Slide/constants.cjs.js.map +1 -0
- package/dist/components/Slide/constants.d.ts +8 -0
- package/dist/components/Slide/constants.es.js +12 -0
- package/dist/components/Slide/constants.es.js.map +1 -0
- package/dist/components/Slide/index.d.ts +2 -2
- package/dist/components/Slide/utils/mobileScreenMode.cjs.js +1 -1
- package/dist/components/Slide/utils/mobileScreenMode.cjs.js.map +1 -1
- package/dist/components/Slide/utils/mobileScreenMode.d.ts +14 -14
- package/dist/components/Slide/utils/mobileScreenMode.es.js +13 -13
- package/dist/components/Slide/utils/mobileScreenMode.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs.js +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.cjs.js.map +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-LVOFAZNH.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-input@1.8.0_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/rc-textarea@1.10.2_react-dom@19.0.1_react@19.0.1__react@19.0.1/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.cjs.js +1 -1
- package/dist/markdown-flow-ui/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.es.js +1 -1
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs10.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs.js"),r=require("../markdown-flow-ui/node_modules/.pnpm/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs.js"),r=require("../markdown-flow-ui/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs.js");var t=r.__require();const o=e.getDefaultExportFromCjs(t);exports.default=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs4.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs.js"),t=require("../markdown-flow-ui/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.cjs.js");var r=t.__require();const o=e.getDefaultExportFromCjs(r);exports.default=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_commonjsHelpers.cjs.js"),r=require("../markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js");var s=r.__require();const t=e.getDefaultExportFromCjs(s);exports.default=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.cjs.js");var r=e.__require();exports.distExports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs8.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs9.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.es.js";
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
import { __require as o } from "../markdown-flow-ui/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.es.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=index.es4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as r } from "../markdown-flow-ui/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js";
|
|
3
|
+
var t = r();
|
|
4
|
+
const a = /* @__PURE__ */ e(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as r } from "../markdown-flow-ui/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.es.js";
|
|
3
|
-
var t = r();
|
|
4
|
-
const a = /* @__PURE__ */ e(t);
|
|
1
|
+
var r = {};
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
r as __exports
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index.es6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.es.js";
|
|
2
|
+
import { __require as s } from "../markdown-flow-ui/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js";
|
|
3
|
+
var e = s();
|
|
4
|
+
const t = /* @__PURE__ */ r(e);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
t as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index.es7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es7.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { __require as r } from "../markdown-flow-ui/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.es.js";
|
|
2
|
+
var i = r();
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
i as d
|
|
4
5
|
};
|
|
5
6
|
//# sourceMappingURL=index.es8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es8.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
var i = r();
|
|
1
|
+
var r = {};
|
|
3
2
|
export {
|
|
4
|
-
|
|
3
|
+
r as __exports
|
|
5
4
|
};
|
|
6
5
|
//# sourceMappingURL=index.es9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es9.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../_virtual/jsx-runtime.cjs.js"),d=require("../../markdown-flow-ui/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react_47bb8d90b09b6a0ef5443ddd7a1cb20c/node_modules/@radix-ui/react-dialog/dist/index.cjs.js"),s=require("../../lib/utils.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../_virtual/jsx-runtime.cjs.js"),d=require("../../markdown-flow-ui/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react_47bb8d90b09b6a0ef5443ddd7a1cb20c/node_modules/@radix-ui/react-dialog/dist/index.cjs.js"),s=require("../../lib/utils.cjs.js"),r=require("../ui/dialog.cjs.js"),c=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/x.cjs.js"),u=({open:i,labels:t,viewMode:n,container:l,onClose:a,onOpenChange:x,onViewModeChange:o})=>e.jsxRuntimeExports.jsx(r.Dialog,{open:i,onOpenChange:x,children:e.jsxRuntimeExports.jsxs(r.DialogPortal,{container:l,children:[e.jsxRuntimeExports.jsx(r.DialogOverlay,{className:"z-[60] bg-black/35"}),e.jsxRuntimeExports.jsxs(d.Content,{"aria-describedby":void 0,className:s.cn("fixed inset-x-0 bottom-0 z-[61] flex max-h-[min(360px,calc(100dvh-32px))] flex-col overflow-hidden rounded-t-[24px] border-t border-border bg-background shadow-[0_-12px_32px_rgba(28,44,64,0.16)] outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex min-h-14 items-center justify-between border-b border-border px-6",children:[e.jsxRuntimeExports.jsx(r.DialogTitle,{className:"text-[15px] font-semibold leading-5 text-foreground",children:t.title}),e.jsxRuntimeExports.jsx("button",{"aria-label":"Close settings",className:"inline-flex h-8 w-8 items-center justify-center rounded-full border-none bg-transparent p-0 text-foreground/70 transition-colors hover:text-foreground",onClick:a,type:"button",children:e.jsxRuntimeExports.jsx(c.default,{className:"h-4 w-4"})})]}),e.jsxRuntimeExports.jsxs("div",{className:"flex min-h-[72px] items-center gap-6 px-6",children:[e.jsxRuntimeExports.jsx("span",{className:"shrink-0 text-[15px] font-semibold leading-5 text-foreground",children:t.screen}),e.jsxRuntimeExports.jsxs("div",{"aria-label":"Screen mode",className:"flex items-center gap-8",role:"radiogroup",children:[e.jsxRuntimeExports.jsx("button",{"aria-checked":n==="nonFullscreen",className:s.cn("border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors",n==="nonFullscreen"&&"font-semibold text-primary"),onClick:()=>o("nonFullscreen"),role:"radio",type:"button",children:t.nonFullscreen}),e.jsxRuntimeExports.jsx("button",{"aria-checked":n==="fullscreen",className:s.cn("border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors",n==="fullscreen"&&"font-semibold text-primary"),onClick:()=>o("fullscreen"),role:"radio",type:"button",children:t.fullscreen})]})]})]})]})});exports.default=u;
|
|
2
2
|
//# sourceMappingURL=MobilePlayerSettingsSheet.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePlayerSettingsSheet.cjs.js","sources":["../../../src/components/Slide/MobilePlayerSettingsSheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { Dialog, DialogOverlay, DialogPortal, DialogTitle } from \"../ui/dialog\";\nimport type {
|
|
1
|
+
{"version":3,"file":"MobilePlayerSettingsSheet.cjs.js","sources":["../../../src/components/Slide/MobilePlayerSettingsSheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { Dialog, DialogOverlay, DialogPortal, DialogTitle } from \"../ui/dialog\";\nimport type { MobileViewMode } from \"./utils/mobileScreenMode\";\n\nexport type MobilePlayerSettingsSheetLabels = {\n title: string;\n screen: string;\n nonFullscreen: string;\n fullscreen: string;\n};\n\nexport type MobilePlayerSettingsSheetProps = {\n open: boolean;\n labels: MobilePlayerSettingsSheetLabels;\n viewMode: MobileViewMode;\n container?: HTMLElement | null;\n onClose: () => void;\n onOpenChange: (open: boolean) => void;\n onViewModeChange: (nextViewMode: MobileViewMode) => void;\n};\n\nconst MobilePlayerSettingsSheet = ({\n open,\n labels,\n viewMode,\n container,\n onClose,\n onOpenChange,\n onViewModeChange,\n}: MobilePlayerSettingsSheetProps) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogPortal container={container}>\n <DialogOverlay className=\"z-[60] bg-black/35\" />\n <DialogPrimitive.Content\n aria-describedby={undefined}\n className={cn(\n \"fixed inset-x-0 bottom-0 z-[61] flex max-h-[min(360px,calc(100dvh-32px))] flex-col overflow-hidden rounded-t-[24px] border-t border-border bg-background shadow-[0_-12px_32px_rgba(28,44,64,0.16)] outline-none\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n \"data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full\"\n )}\n >\n <div className=\"flex min-h-14 items-center justify-between border-b border-border px-6\">\n <DialogTitle className=\"text-[15px] font-semibold leading-5 text-foreground\">\n {labels.title}\n </DialogTitle>\n <button\n aria-label=\"Close settings\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-full border-none bg-transparent p-0 text-foreground/70 transition-colors hover:text-foreground\"\n onClick={onClose}\n type=\"button\"\n >\n <X className=\"h-4 w-4\" />\n </button>\n </div>\n\n <div className=\"flex min-h-[72px] items-center gap-6 px-6\">\n <span className=\"shrink-0 text-[15px] font-semibold leading-5 text-foreground\">\n {labels.screen}\n </span>\n <div\n aria-label=\"Screen mode\"\n className=\"flex items-center gap-8\"\n role=\"radiogroup\"\n >\n <button\n aria-checked={viewMode === \"nonFullscreen\"}\n className={cn(\n \"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors\",\n viewMode === \"nonFullscreen\" && \"font-semibold text-primary\"\n )}\n onClick={() => onViewModeChange(\"nonFullscreen\")}\n role=\"radio\"\n type=\"button\"\n >\n {labels.nonFullscreen}\n </button>\n <button\n aria-checked={viewMode === \"fullscreen\"}\n className={cn(\n \"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors\",\n viewMode === \"fullscreen\" && \"font-semibold text-primary\"\n )}\n onClick={() => onViewModeChange(\"fullscreen\")}\n role=\"radio\"\n type=\"button\"\n >\n {labels.fullscreen}\n </button>\n </div>\n </div>\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n );\n};\n\nexport default MobilePlayerSettingsSheet;\n"],"names":["MobilePlayerSettingsSheet","open","labels","viewMode","container","onClose","onOpenChange","onViewModeChange","Dialog","jsxs","DialogPortal","jsx","DialogOverlay","DialogPrimitive.Content","cn","DialogTitle","X"],"mappings":"ulBAwBMA,EAA4B,CAAC,CACjC,KAAAC,EACA,OAAAC,EACA,SAAAC,EACA,UAAAC,EACA,QAAAC,EACA,aAAAC,EACA,iBAAAC,CACF,4BAEKC,EAAAA,OAAA,CAAO,KAAAP,EAAY,aAAAK,EAClB,SAAAG,EAAAA,kBAAAA,KAACC,EAAAA,cAAa,UAAAN,EACZ,SAAA,CAAAO,EAAAA,kBAAAA,IAACC,EAAAA,cAAA,CAAc,UAAU,oBAAA,CAAqB,EAC9CH,EAAAA,kBAAAA,KAACI,EAAAA,QAAA,CACC,mBAAkB,OAClB,UAAWC,EAAAA,GACT,kNACA,+DACA,0FAAA,EAGF,SAAA,CAAAL,EAAAA,kBAAAA,KAAC,MAAA,CAAI,UAAU,yEACb,SAAA,CAAAE,EAAAA,kBAAAA,IAACI,EAAAA,YAAA,CAAY,UAAU,sDACpB,SAAAb,EAAO,MACV,EACAS,EAAAA,kBAAAA,IAAC,SAAA,CACC,aAAW,iBACX,UAAU,yJACV,QAASN,EACT,KAAK,SAEL,SAAAM,EAAAA,kBAAAA,IAACK,EAAAA,QAAA,CAAE,UAAU,SAAA,CAAU,CAAA,CAAA,CACzB,EACF,EAEAP,EAAAA,kBAAAA,KAAC,MAAA,CAAI,UAAU,4CACb,SAAA,CAAAE,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,+DACb,SAAAT,EAAO,OACV,EACAO,EAAAA,kBAAAA,KAAC,MAAA,CACC,aAAW,cACX,UAAU,0BACV,KAAK,aAEL,SAAA,CAAAE,EAAAA,kBAAAA,IAAC,SAAA,CACC,eAAcR,IAAa,gBAC3B,UAAWW,EAAAA,GACT,4FACAX,IAAa,iBAAmB,4BAAA,EAElC,QAAS,IAAMI,EAAiB,eAAe,EAC/C,KAAK,QACL,KAAK,SAEJ,SAAAL,EAAO,aAAA,CAAA,EAEVS,EAAAA,kBAAAA,IAAC,SAAA,CACC,eAAcR,IAAa,aAC3B,UAAWW,EAAAA,GACT,4FACAX,IAAa,cAAgB,4BAAA,EAE/B,QAAS,IAAMI,EAAiB,YAAY,EAC5C,KAAK,QACL,KAAK,SAEJ,SAAAL,EAAO,UAAA,CAAA,CACV,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MobileViewMode } from './utils/mobileScreenMode';
|
|
2
2
|
export type MobilePlayerSettingsSheetLabels = {
|
|
3
3
|
title: string;
|
|
4
4
|
screen: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
nonFullscreen: string;
|
|
6
|
+
fullscreen: string;
|
|
7
7
|
};
|
|
8
8
|
export type MobilePlayerSettingsSheetProps = {
|
|
9
9
|
open: boolean;
|
|
10
10
|
labels: MobilePlayerSettingsSheetLabels;
|
|
11
|
-
|
|
11
|
+
viewMode: MobileViewMode;
|
|
12
12
|
container?: HTMLElement | null;
|
|
13
13
|
onClose: () => void;
|
|
14
14
|
onOpenChange: (open: boolean) => void;
|
|
15
|
-
|
|
15
|
+
onViewModeChange: (nextViewMode: MobileViewMode) => void;
|
|
16
16
|
};
|
|
17
|
-
declare const MobilePlayerSettingsSheet: ({ open, labels,
|
|
17
|
+
declare const MobilePlayerSettingsSheet: ({ open, labels, viewMode, container, onClose, onOpenChange, onViewModeChange, }: MobilePlayerSettingsSheetProps) => import("react").JSX.Element;
|
|
18
18
|
export default MobilePlayerSettingsSheet;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { j as e } from "../../_virtual/jsx-runtime.es.js";
|
|
2
2
|
import { Content as d } from "../../markdown-flow-ui/node_modules/.pnpm/@radix-ui_react-dialog@1.1.15_@types_react-dom@19.2.2_@types_react@19.2.2__@types_react_47bb8d90b09b6a0ef5443ddd7a1cb20c/node_modules/@radix-ui/react-dialog/dist/index.es.js";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Dialog as c, DialogPortal as x, DialogOverlay as
|
|
5
|
-
import
|
|
3
|
+
import { cn as n } from "../../lib/utils.es.js";
|
|
4
|
+
import { Dialog as c, DialogPortal as x, DialogOverlay as m, DialogTitle as p } from "../ui/dialog.es.js";
|
|
5
|
+
import u from "../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/x.es.js";
|
|
6
6
|
const N = ({
|
|
7
|
-
open:
|
|
7
|
+
open: l,
|
|
8
8
|
labels: t,
|
|
9
|
-
|
|
10
|
-
container:
|
|
11
|
-
onClose:
|
|
12
|
-
onOpenChange:
|
|
13
|
-
|
|
14
|
-
}) => /* @__PURE__ */ e.jsx(c, { open:
|
|
15
|
-
/* @__PURE__ */ e.jsx(
|
|
9
|
+
viewMode: r,
|
|
10
|
+
container: s,
|
|
11
|
+
onClose: a,
|
|
12
|
+
onOpenChange: i,
|
|
13
|
+
onViewModeChange: o
|
|
14
|
+
}) => /* @__PURE__ */ e.jsx(c, { open: l, onOpenChange: i, children: /* @__PURE__ */ e.jsxs(x, { container: s, children: [
|
|
15
|
+
/* @__PURE__ */ e.jsx(m, { className: "z-[60] bg-black/35" }),
|
|
16
16
|
/* @__PURE__ */ e.jsxs(
|
|
17
17
|
d,
|
|
18
18
|
{
|
|
19
19
|
"aria-describedby": void 0,
|
|
20
|
-
className:
|
|
20
|
+
className: n(
|
|
21
21
|
"fixed inset-x-0 bottom-0 z-[61] flex max-h-[min(360px,calc(100dvh-32px))] flex-col overflow-hidden rounded-t-[24px] border-t border-border bg-background shadow-[0_-12px_32px_rgba(28,44,64,0.16)] outline-none",
|
|
22
22
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
23
23
|
"data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"
|
|
24
24
|
),
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ e.jsxs("div", { className: "flex min-h-14 items-center justify-between border-b border-border px-6", children: [
|
|
27
|
-
/* @__PURE__ */ e.jsx(
|
|
27
|
+
/* @__PURE__ */ e.jsx(p, { className: "text-[15px] font-semibold leading-5 text-foreground", children: t.title }),
|
|
28
28
|
/* @__PURE__ */ e.jsx(
|
|
29
29
|
"button",
|
|
30
30
|
{
|
|
31
31
|
"aria-label": "Close settings",
|
|
32
32
|
className: "inline-flex h-8 w-8 items-center justify-center rounded-full border-none bg-transparent p-0 text-foreground/70 transition-colors hover:text-foreground",
|
|
33
|
-
onClick:
|
|
33
|
+
onClick: a,
|
|
34
34
|
type: "button",
|
|
35
|
-
children: /* @__PURE__ */ e.jsx(
|
|
35
|
+
children: /* @__PURE__ */ e.jsx(u, { className: "h-4 w-4" })
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
] }),
|
|
@@ -41,36 +41,36 @@ const N = ({
|
|
|
41
41
|
/* @__PURE__ */ e.jsxs(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
"aria-label": "Screen
|
|
44
|
+
"aria-label": "Screen mode",
|
|
45
45
|
className: "flex items-center gap-8",
|
|
46
46
|
role: "radiogroup",
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ e.jsx(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
|
-
"aria-checked": r === "
|
|
52
|
-
className:
|
|
51
|
+
"aria-checked": r === "nonFullscreen",
|
|
52
|
+
className: n(
|
|
53
53
|
"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors",
|
|
54
|
-
r === "
|
|
54
|
+
r === "nonFullscreen" && "font-semibold text-primary"
|
|
55
55
|
),
|
|
56
|
-
onClick: () =>
|
|
56
|
+
onClick: () => o("nonFullscreen"),
|
|
57
57
|
role: "radio",
|
|
58
58
|
type: "button",
|
|
59
|
-
children: t.
|
|
59
|
+
children: t.nonFullscreen
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ e.jsx(
|
|
63
63
|
"button",
|
|
64
64
|
{
|
|
65
|
-
"aria-checked": r === "
|
|
66
|
-
className:
|
|
65
|
+
"aria-checked": r === "fullscreen",
|
|
66
|
+
className: n(
|
|
67
67
|
"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors",
|
|
68
|
-
r === "
|
|
68
|
+
r === "fullscreen" && "font-semibold text-primary"
|
|
69
69
|
),
|
|
70
|
-
onClick: () =>
|
|
70
|
+
onClick: () => o("fullscreen"),
|
|
71
71
|
role: "radio",
|
|
72
72
|
type: "button",
|
|
73
|
-
children: t.
|
|
73
|
+
children: t.fullscreen
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePlayerSettingsSheet.es.js","sources":["../../../src/components/Slide/MobilePlayerSettingsSheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { Dialog, DialogOverlay, DialogPortal, DialogTitle } from \"../ui/dialog\";\nimport type {
|
|
1
|
+
{"version":3,"file":"MobilePlayerSettingsSheet.es.js","sources":["../../../src/components/Slide/MobilePlayerSettingsSheet.tsx"],"sourcesContent":["import * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { Dialog, DialogOverlay, DialogPortal, DialogTitle } from \"../ui/dialog\";\nimport type { MobileViewMode } from \"./utils/mobileScreenMode\";\n\nexport type MobilePlayerSettingsSheetLabels = {\n title: string;\n screen: string;\n nonFullscreen: string;\n fullscreen: string;\n};\n\nexport type MobilePlayerSettingsSheetProps = {\n open: boolean;\n labels: MobilePlayerSettingsSheetLabels;\n viewMode: MobileViewMode;\n container?: HTMLElement | null;\n onClose: () => void;\n onOpenChange: (open: boolean) => void;\n onViewModeChange: (nextViewMode: MobileViewMode) => void;\n};\n\nconst MobilePlayerSettingsSheet = ({\n open,\n labels,\n viewMode,\n container,\n onClose,\n onOpenChange,\n onViewModeChange,\n}: MobilePlayerSettingsSheetProps) => {\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogPortal container={container}>\n <DialogOverlay className=\"z-[60] bg-black/35\" />\n <DialogPrimitive.Content\n aria-describedby={undefined}\n className={cn(\n \"fixed inset-x-0 bottom-0 z-[61] flex max-h-[min(360px,calc(100dvh-32px))] flex-col overflow-hidden rounded-t-[24px] border-t border-border bg-background shadow-[0_-12px_32px_rgba(28,44,64,0.16)] outline-none\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n \"data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full\"\n )}\n >\n <div className=\"flex min-h-14 items-center justify-between border-b border-border px-6\">\n <DialogTitle className=\"text-[15px] font-semibold leading-5 text-foreground\">\n {labels.title}\n </DialogTitle>\n <button\n aria-label=\"Close settings\"\n className=\"inline-flex h-8 w-8 items-center justify-center rounded-full border-none bg-transparent p-0 text-foreground/70 transition-colors hover:text-foreground\"\n onClick={onClose}\n type=\"button\"\n >\n <X className=\"h-4 w-4\" />\n </button>\n </div>\n\n <div className=\"flex min-h-[72px] items-center gap-6 px-6\">\n <span className=\"shrink-0 text-[15px] font-semibold leading-5 text-foreground\">\n {labels.screen}\n </span>\n <div\n aria-label=\"Screen mode\"\n className=\"flex items-center gap-8\"\n role=\"radiogroup\"\n >\n <button\n aria-checked={viewMode === \"nonFullscreen\"}\n className={cn(\n \"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors\",\n viewMode === \"nonFullscreen\" && \"font-semibold text-primary\"\n )}\n onClick={() => onViewModeChange(\"nonFullscreen\")}\n role=\"radio\"\n type=\"button\"\n >\n {labels.nonFullscreen}\n </button>\n <button\n aria-checked={viewMode === \"fullscreen\"}\n className={cn(\n \"border-none bg-transparent p-0 text-[15px] leading-5 text-foreground/70 transition-colors\",\n viewMode === \"fullscreen\" && \"font-semibold text-primary\"\n )}\n onClick={() => onViewModeChange(\"fullscreen\")}\n role=\"radio\"\n type=\"button\"\n >\n {labels.fullscreen}\n </button>\n </div>\n </div>\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n );\n};\n\nexport default MobilePlayerSettingsSheet;\n"],"names":["MobilePlayerSettingsSheet","open","labels","viewMode","container","onClose","onOpenChange","onViewModeChange","Dialog","jsxs","DialogPortal","jsx","DialogOverlay","DialogPrimitive.Content","cn","DialogTitle","X"],"mappings":";;;;;AAwBA,MAAMA,IAA4B,CAAC;AAAA,EACjC,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,kBAAAC;AACF,4BAEKC,GAAA,EAAO,MAAAP,GAAY,cAAAK,GAClB,UAAAG,gBAAAA,EAAAA,KAACC,KAAa,WAAAN,GACZ,UAAA;AAAA,EAAAO,gBAAAA,EAAAA,IAACC,GAAA,EAAc,WAAU,qBAAA,CAAqB;AAAA,EAC9CH,gBAAAA,EAAAA;AAAAA,IAACI;AAAAA,IAAA;AAAA,MACC,oBAAkB;AAAA,MAClB,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAGF,UAAA;AAAA,QAAAL,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,0EACb,UAAA;AAAA,UAAAE,gBAAAA,EAAAA,IAACI,GAAA,EAAY,WAAU,uDACpB,UAAAb,EAAO,OACV;AAAA,UACAS,gBAAAA,EAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACC,cAAW;AAAA,cACX,WAAU;AAAA,cACV,SAASN;AAAA,cACT,MAAK;AAAA,cAEL,UAAAM,gBAAAA,EAAAA,IAACK,GAAA,EAAE,WAAU,UAAA,CAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QACzB,GACF;AAAA,QAEAP,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,6CACb,UAAA;AAAA,UAAAE,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,gEACb,UAAAT,EAAO,QACV;AAAA,UACAO,gBAAAA,EAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cACC,cAAW;AAAA,cACX,WAAU;AAAA,cACV,MAAK;AAAA,cAEL,UAAA;AAAA,gBAAAE,gBAAAA,EAAAA;AAAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,gBAAcR,MAAa;AAAA,oBAC3B,WAAWW;AAAA,sBACT;AAAA,sBACAX,MAAa,mBAAmB;AAAA,oBAAA;AAAA,oBAElC,SAAS,MAAMI,EAAiB,eAAe;AAAA,oBAC/C,MAAK;AAAA,oBACL,MAAK;AAAA,oBAEJ,UAAAL,EAAO;AAAA,kBAAA;AAAA,gBAAA;AAAA,gBAEVS,gBAAAA,EAAAA;AAAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,gBAAcR,MAAa;AAAA,oBAC3B,WAAWW;AAAA,sBACT;AAAA,sBACAX,MAAa,gBAAgB;AAAA,oBAAA;AAAA,oBAE/B,SAAS,MAAMI,EAAiB,YAAY;AAAA,oBAC5C,MAAK;AAAA,oBACL,MAAK;AAAA,oBAEJ,UAAAL,EAAO;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACV;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AACF,EAAA,CACF,EAAA,CACF;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../_virtual/jsx-runtime.cjs.js"),r=require("react"),ie=require("../../lib/utils.cjs.js"),qe=require("./MobilePlayerSettingsSheet.cjs.js"),Te=require("./utils/mobileScreenMode.cjs.js"),Ue=require("./utils/playerCustomActions.cjs.js");;/* empty css */const Pe=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs.js"),We=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/volume-2.cjs.js"),Be=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js"),Ve=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js"),Fe=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/scan-line.cjs.js"),Ke=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/maximize.cjs.js"),Ze=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/file-pen-line.cjs.js"),oe=new Map,$e={settingsTitle:"Settings",screenLabel:"Screen",portraitLabel:"Portrait",landscapeLabel:"Landscape"},fe=j=>{if(typeof window>"u"||!j||oe.has(j))return;const M=window.document.createElement("audio");M.preload="auto",M.setAttribute("playsinline","true"),M.src=j,M.load(),oe.set(j,M)},He=()=>t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",children:[t.jsxRuntimeExports.jsx("path",{d:"M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",fill:"#0A0A0A"}),t.jsxRuntimeExports.jsx("path",{d:"M12 10H16V24H12V10ZM18 10H22V24H18V10Z",fill:"white"})]}),Oe=()=>t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",children:[t.jsxRuntimeExports.jsx("path",{d:"M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",fill:"#0A0A0A"}),t.jsxRuntimeExports.jsx("path",{d:"M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z",fill:"white"})]}),ze=({audioList:j=[],className:M,currentAudioIndex:o=-1,defaultPlaying:g=!0,isPlaybackPaused:w=!1,isAutoAdvanceEnabled:F=!0,useAutoAdvanceToggle:K=!1,onLoadingChange:O,onPrev:de,onNext:me,onFullscreen:z,isFullscreen:D=!1,mobileScreenMode:pe=Te.DEFAULT_MOBILE_SCREEN_MODE,settingsPortalContainer:xe,onMobileScreenModeChange:X,onEnded:Y,onAutoAdvanceToggle:he,onInteractionToggle:ge,hasInteraction:Re=!1,isInteractionOpen:q=!1,prevDisabled:Ee=!1,nextDisabled:ye=!1,showControls:Z=!0,customActions:G,customActionContext:J,texts:Q,...be})=>{const p=r.useRef(null),I=r.useRef(q),R=r.useRef(null),ee=r.useRef(null),E=r.useRef(0),c=r.useRef(null),P=r.useRef(void 0),_=r.useRef([]),T=r.useRef(!1),re=r.useRef(!1),f=r.useRef(!1),A=r.useRef(null),x=r.useRef(!1),s=r.useRef(!1),d=r.useRef(null),h=r.useRef(!1),S=r.useRef("unknown"),[$,l]=r.useState(g),[te,v]=r.useState(!1),i=o>=0?j[o]:void 0,L=i?.audioUrl,y=r.useMemo(()=>[...i?.audioSegments??[]].sort((e,a)=>e.segment_index-a.segment_index),[i?.audioSegments]),ne=r.useMemo(()=>Ue.toPlayerCustomActionList(G,J),[J,G]),se=ne.length+5,je=r.useMemo(()=>({"--slide-player-mobile-control-count":String(se)}),[se]),W=r.useMemo(()=>({...$e,...Q}),[Q]),H=r.useMemo(()=>i?i.audioKey??`${String(i.sequenceNumber??"none")}:${String(i.audioUrl??"")}`:"none",[i]),_e=K?F:$,Se=K?F?"Pause autoplay":"Play autoplay":$?"Pause":"Play";r.useEffect(()=>{P.current=i},[i]),r.useEffect(()=>{Z||v(!1)},[Z]),r.useEffect(()=>{!I.current&&q&&v(!1),I.current=q},[q]),r.useEffect(()=>{_.current=y},[y]),r.useEffect(()=>{const e=i?.audioUrl,a=o>=0?j[o+1]?.audioUrl:void 0;fe(e),fe(a)},[j,i?.audioUrl,o]);const n=r.useCallback(e=>{re.current!==e&&(re.current=e,O?.(e))},[O]),ue=r.useCallback(e=>e instanceof DOMException?e.name==="NotAllowedError"||e.name==="SecurityError":!1,[]),C=r.useCallback(()=>g&&!w&&!f.current&&S.current!=="blocked",[g,w]),le=r.useCallback(e=>e?e.startsWith("data:")?e:`data:audio/mpeg;base64,${e}`:"",[]),ae=r.useCallback(()=>{const e=c.current;return e==null||e<=0?0:_.current.slice(0,e).reduce((a,u)=>a+Math.max(Number(u.duration_ms??0),0),0)/1e3},[]),U=r.useCallback(()=>{const e=p.current;e&&(s.current=!1,f.current=!1,T.current=!1,A.current=null,d.current=null,x.current=!1,h.current=!1,e.pause(),e.removeAttribute("src"),e.load(),R.current=null,E.current=0,c.current=null,l(!1),n(!1))},[n]),m=r.useCallback(e=>{const a=p.current;if(!a)return!1;const u=a.play();return u&&typeof u.then=="function"&&u.then(()=>{S.current==="unknown"&&(S.current="auto"),s.current=!1,h.current=!1}).catch(N=>{S.current==="unknown"&&ue(N)&&(S.current="blocked",s.current=!1,n(!1)),h.current=!1,l(!1)}),!0},[ue,n]),b=r.useCallback((e,a)=>{const u=p.current,N=_.current[e];if(!u||!N)return!1;const k=le(N.audio_data);E.current=e,c.current=null,x.current=!1,h.current=!0;const V=C();s.current=V,n(!1);const Le=R.current!==k;return A.current="segment",Le&&(u.pause(),u.removeAttribute("src"),u.load(),R.current=k,u.src=k,u.load()),d.current=0,u.readyState>0&&(u.currentTime=0,d.current=null),V?m(`start-segment:${a}`):(s.current=!1,h.current=!1,u.pause(),l(!1),!0)},[C,le,m,n]),B=r.useCallback(e=>{s.current=!1,x.current=!1,h.current=!1,l(!1),n(!1),o>=0&&Y?.(o)},[o,Y,n]),ce=r.useCallback(()=>{const e=E.current+1,a=_.current,u=a[e],N=P.current,k=a.some(V=>V.is_final);if(u){b(e,"ended");return}if(N?.isAudioStreaming||!k){E.current=e,c.current=e,x.current=!0,s.current=g,l(!1),n(!0);return}B("segments-completed")},[g,B,b,n]);r.useEffect(()=>{if(ee.current===H)return;ee.current=H,E.current=0,c.current=null,x.current=!1,f.current=!1,T.current=!1,s.current=!1,h.current=!1,A.current=null,R.current=null,n(!1);const e=p.current;e&&(e.pause(),e.removeAttribute("src"),e.load(),l(!1))},[o,H,y.length,L,n]),r.useEffect(()=>{const e=p.current;if(e){if(w){T.current=!!(P.current&&!f.current&&(!e.paused||s.current||c.current!==null)),s.current=!1,n(!1),e.pause(),l(!1);return}if(!(!T.current||!P.current||f.current)){if(T.current=!1,c.current!==null){if(c.current<_.current.length){b(c.current,"external-resume");return}s.current=!0,n(!0);return}if(!R.current&&_.current.length>0){b(Math.min(E.current,_.current.length-1),"external-resume-init");return}e.paused&&(s.current=!0,m("external-resume"))}}},[w,b,m,n]),r.useEffect(()=>{const e=p.current;if(e){if(!i){U();return}if(w){s.current=!1,n(!1),e.pause(),l(!1);return}if(L){const a=R.current!==L,u=C();if(A.current==="segment"&&!!R.current&&c.current===null){if(!u){s.current=!1,e.pause(),l(!1);return}e.paused&&(s.current=!0,m("keep-segment-source"));return}if(a){const k=c.current!==null?ae():0;e.pause(),e.removeAttribute("src"),e.load(),R.current=L,A.current="url",e.src=L,e.load(),d.current=k,e.readyState>0&&(e.currentTime=k,d.current=null)}if(s.current=u,x.current=!1,h.current=!1,n(!1),!u){s.current=!1,e.pause(),l(!1);return}m(a?"sync-url-init":"sync-url");return}if(c.current!==null){if(c.current<y.length){if(f.current){l(!1),n(!1);return}b(c.current,"wait-resume");return}x.current=!0,s.current=C(),l(!1),n(C());return}if(!y.length){if(i.isAudioStreaming){c.current=E.current,x.current=!0,s.current=C(),l(!1),n(C());return}U();return}if(!R.current){b(Math.min(E.current,y.length-1),"effect-init");return}if(!g||f.current){s.current=!1,e.pause(),l(!1);return}e.paused&&(s.current=!0,m("sync-paused-retry"))}},[i,o,y,L,g,w,C,U,b,m,ae,n]),r.useEffect(()=>U,[U]);const Ce=r.useCallback(()=>{l(!0),n(!1)},[n]),ke=r.useCallback(()=>{x.current||h.current||l(!1)},[o]),Me=r.useCallback(()=>{const e=p.current;e&&d.current!==null&&(e.currentTime=d.current,d.current=null),!(!s.current||!g)&&m("canplay")},[o,g,m]),we=r.useCallback(()=>{const e=p.current;e&&d.current!==null&&(e.currentTime=d.current,d.current=null)},[o]),Ne=r.useCallback(()=>{const e=A.current==="url"||_.current.length===0;if(h.current=!1,e){B("url-ended");return}ce()},[B,ce]),Ae=r.useCallback(()=>{l(!1),n(!1)},[n]),ve=r.useCallback(e=>{X?.(e),v(!1)},[X]);return t.jsxRuntimeExports.jsxs("div",{className:ie.cn("slide-player",M),...be,children:[t.jsxRuntimeExports.jsx("audio",{ref:p,preload:"auto",playsInline:!0,onLoadedMetadata:we,onCanPlay:Me,onPlay:Ce,onPause:ke,onEnded:Ne,onError:Ae}),Z?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(qe.default,{container:xe,labels:{landscape:W.landscapeLabel,portrait:W.portraitLabel,screen:W.screenLabel,title:W.settingsTitle},onClose:()=>v(!1),onOpenChange:v,onScreenModeChange:ve,open:te,screenMode:pe}),t.jsxRuntimeExports.jsxs("div",{className:"slide-player__controls",style:je,children:[t.jsxRuntimeExports.jsxs("div",{className:"slide-player__group",children:[t.jsxRuntimeExports.jsx("button",{"aria-expanded":te,"aria-haspopup":"dialog","aria-label":"More options",className:"slide-player__action slide-player__action--mobile-more",onClick:()=>{v(e=>!e)},type:"button",children:t.jsxRuntimeExports.jsx(Pe.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Volume",className:"hidden",type:"button",children:t.jsxRuntimeExports.jsx(We.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Rewind",className:"slide-player__action slide-player__action--prev",disabled:Ee,onClick:de,type:"button",children:t.jsxRuntimeExports.jsx(Be.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":Se,className:"slide-player__toggle slide-player__toggle--playback",onClick:()=>{if(K){he?.(!F);return}const e=p.current;if(!(w||!e||!i)){if(c.current!==null){if($){s.current=!1,f.current=!0,c.current=null,x.current=!1,l(!1),n(!1),e.pause();return}S.current="manual",f.current=!1,s.current=!0,n(!0);return}if(!e.src&&y.length>0){S.current="manual",f.current=!1,b(Math.min(E.current,y.length-1),"toggle");return}if(e.paused){S.current="manual",f.current=!1,s.current=!0,m("toggle-resume");return}s.current=!1,f.current=!0,e.pause()}},type:"button",children:_e?t.jsxRuntimeExports.jsx(He,{}):t.jsxRuntimeExports.jsx(Oe,{})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Forward",className:"slide-player__action slide-player__action--next",disabled:ye,onClick:me,type:"button",children:t.jsxRuntimeExports.jsx(Ve.default,{className:"slide-player__icon",strokeWidth:2.25})}),z?t.jsxRuntimeExports.jsx("button",{"aria-label":D?"Exit fullscreen":"Enter fullscreen",className:"slide-player__action slide-player__action--fullscreen",onClick:z,type:"button",children:D?t.jsxRuntimeExports.jsx(Fe.default,{className:"slide-player__icon",strokeWidth:2.25}):t.jsxRuntimeExports.jsx(Ke.default,{className:"slide-player__icon",strokeWidth:2.25})}):null]}),t.jsxRuntimeExports.jsx("div",{className:"slide-player__separator"}),t.jsxRuntimeExports.jsxs("div",{className:"slide-player__group",children:[ne.map((e,a)=>t.jsxRuntimeExports.jsx(r.Fragment,{children:e},`custom-action-${a}`)),t.jsxRuntimeExports.jsx("button",{"aria-label":"Notes",className:ie.cn("slide-player__action slide-player__action--notes",q&&"slide-player__action--active"),disabled:!Re,onClick:ge,type:"button",children:t.jsxRuntimeExports.jsx(Ze.default,{className:"slide-player__icon",strokeWidth:2.25})})]})]})]}):null]})};exports.default=ze;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../_virtual/jsx-runtime.cjs.js"),r=require("react"),ie=require("../../lib/utils.cjs.js"),Le=require("./MobilePlayerSettingsSheet.cjs.js"),Te=require("./constants.cjs.js"),Ue=require("./utils/mobileScreenMode.cjs.js"),We=require("./utils/playerCustomActions.cjs.js");;/* empty css */const Pe=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.cjs.js"),Ve=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/volume-2.cjs.js"),Be=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-ccw.cjs.js"),Fe=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/rotate-cw.cjs.js"),Ke=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/scan-line.cjs.js"),Ze=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/maximize.cjs.js"),$e=require("../../markdown-flow-ui/node_modules/.pnpm/lucide-react@0.525.0_react@19.0.1/node_modules/lucide-react/dist/esm/icons/file-pen-line.cjs.js"),oe=new Map,fe=_=>{if(typeof window>"u"||!_||oe.has(_))return;const w=window.document.createElement("audio");w.preload="auto",w.setAttribute("playsinline","true"),w.src=_,w.load(),oe.set(_,w)},He=()=>t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",children:[t.jsxRuntimeExports.jsx("path",{d:"M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",fill:"#0A0A0A"}),t.jsxRuntimeExports.jsx("path",{d:"M12 10H16V24H12V10ZM18 10H22V24H18V10Z",fill:"white"})]}),Oe=()=>t.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",children:[t.jsxRuntimeExports.jsx("path",{d:"M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",fill:"#0A0A0A"}),t.jsxRuntimeExports.jsx("path",{d:"M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z",fill:"white"})]}),De=({audioList:_=[],className:w,currentAudioIndex:o=-1,defaultPlaying:g=!0,isPlaybackPaused:M=!1,isAutoAdvanceEnabled:F=!0,useAutoAdvanceToggle:K=!1,onLoadingChange:O,onPrev:de,onNext:me,onFullscreen:D,isFullscreen:z=!1,mobileViewMode:pe=Ue.DEFAULT_MOBILE_VIEW_MODE,settingsPortalContainer:xe,onMobileViewModeChange:X,onEnded:Y,onAutoAdvanceToggle:he,onInteractionToggle:ge,hasInteraction:Re=!1,isInteractionOpen:L=!1,prevDisabled:Ee=!1,nextDisabled:ye=!1,showControls:Z=!0,customActions:G,customActionContext:J,texts:Q,...je})=>{const p=r.useRef(null),I=r.useRef(L),R=r.useRef(null),ee=r.useRef(null),E=r.useRef(0),c=r.useRef(null),W=r.useRef(void 0),b=r.useRef([]),T=r.useRef(!1),re=r.useRef(!1),f=r.useRef(!1),N=r.useRef(null),x=r.useRef(!1),s=r.useRef(!1),d=r.useRef(null),h=r.useRef(!1),S=r.useRef("unknown"),[$,l]=r.useState(g),[te,v]=r.useState(!1),i=o>=0?_[o]:void 0,q=i?.audioUrl,y=r.useMemo(()=>[...i?.audioSegments??[]].sort((e,a)=>e.segment_index-a.segment_index),[i?.audioSegments]),ne=r.useMemo(()=>We.toPlayerCustomActionList(G,J),[J,G]),se=ne.length+5,_e=r.useMemo(()=>({"--slide-player-mobile-control-count":String(se)}),[se]),P=r.useMemo(()=>({...Te.DEFAULT_SLIDE_PLAYER_TEXTS,...Q}),[Q]),H=r.useMemo(()=>i?i.audioKey??`${String(i.sequenceNumber??"none")}:${String(i.audioUrl??"")}`:"none",[i]),be=K?F:$,Se=K?F?"Pause autoplay":"Play autoplay":$?"Pause":"Play";r.useEffect(()=>{W.current=i},[i]),r.useEffect(()=>{Z||v(!1)},[Z]),r.useEffect(()=>{!I.current&&L&&v(!1),I.current=L},[L]),r.useEffect(()=>{b.current=y},[y]),r.useEffect(()=>{const e=i?.audioUrl,a=o>=0?_[o+1]?.audioUrl:void 0;fe(e),fe(a)},[_,i?.audioUrl,o]);const n=r.useCallback(e=>{re.current!==e&&(re.current=e,O?.(e))},[O]),ue=r.useCallback(e=>e instanceof DOMException?e.name==="NotAllowedError"||e.name==="SecurityError":!1,[]),C=r.useCallback(()=>g&&!M&&!f.current&&S.current!=="blocked",[g,M]),le=r.useCallback(e=>e?e.startsWith("data:")?e:`data:audio/mpeg;base64,${e}`:"",[]),ae=r.useCallback(()=>{const e=c.current;return e==null||e<=0?0:b.current.slice(0,e).reduce((a,u)=>a+Math.max(Number(u.duration_ms??0),0),0)/1e3},[]),U=r.useCallback(()=>{const e=p.current;e&&(s.current=!1,f.current=!1,T.current=!1,N.current=null,d.current=null,x.current=!1,h.current=!1,e.pause(),e.removeAttribute("src"),e.load(),R.current=null,E.current=0,c.current=null,l(!1),n(!1))},[n]),m=r.useCallback(e=>{const a=p.current;if(!a)return!1;const u=a.play();return u&&typeof u.then=="function"&&u.then(()=>{S.current==="unknown"&&(S.current="auto"),s.current=!1,h.current=!1}).catch(A=>{S.current==="unknown"&&ue(A)&&(S.current="blocked",s.current=!1,n(!1)),h.current=!1,l(!1)}),!0},[ue,n]),j=r.useCallback((e,a)=>{const u=p.current,A=b.current[e];if(!u||!A)return!1;const k=le(A.audio_data);E.current=e,c.current=null,x.current=!1,h.current=!0;const B=C();s.current=B,n(!1);const qe=R.current!==k;return N.current="segment",qe&&(u.pause(),u.removeAttribute("src"),u.load(),R.current=k,u.src=k,u.load()),d.current=0,u.readyState>0&&(u.currentTime=0,d.current=null),B?m(`start-segment:${a}`):(s.current=!1,h.current=!1,u.pause(),l(!1),!0)},[C,le,m,n]),V=r.useCallback(e=>{s.current=!1,x.current=!1,h.current=!1,l(!1),n(!1),o>=0&&Y?.(o)},[o,Y,n]),ce=r.useCallback(()=>{const e=E.current+1,a=b.current,u=a[e],A=W.current,k=a.some(B=>B.is_final);if(u){j(e,"ended");return}if(A?.isAudioStreaming||!k){E.current=e,c.current=e,x.current=!0,s.current=g,l(!1),n(!0);return}V("segments-completed")},[g,V,j,n]);r.useEffect(()=>{if(ee.current===H)return;ee.current=H,E.current=0,c.current=null,x.current=!1,f.current=!1,T.current=!1,s.current=!1,h.current=!1,N.current=null,R.current=null,n(!1);const e=p.current;e&&(e.pause(),e.removeAttribute("src"),e.load(),l(!1))},[o,H,y.length,q,n]),r.useEffect(()=>{const e=p.current;if(e){if(M){T.current=!!(W.current&&!f.current&&(!e.paused||s.current||c.current!==null)),s.current=!1,n(!1),e.pause(),l(!1);return}if(!(!T.current||!W.current||f.current)){if(T.current=!1,c.current!==null){if(c.current<b.current.length){j(c.current,"external-resume");return}s.current=!0,n(!0);return}if(!R.current&&b.current.length>0){j(Math.min(E.current,b.current.length-1),"external-resume-init");return}e.paused&&(s.current=!0,m("external-resume"))}}},[M,j,m,n]),r.useEffect(()=>{const e=p.current;if(e){if(!i){U();return}if(M){s.current=!1,n(!1),e.pause(),l(!1);return}if(q){const a=R.current!==q,u=C();if(N.current==="segment"&&!!R.current&&c.current===null){if(!u){s.current=!1,e.pause(),l(!1);return}e.paused&&(s.current=!0,m("keep-segment-source"));return}if(a){const k=c.current!==null?ae():0;e.pause(),e.removeAttribute("src"),e.load(),R.current=q,N.current="url",e.src=q,e.load(),d.current=k,e.readyState>0&&(e.currentTime=k,d.current=null)}if(s.current=u,x.current=!1,h.current=!1,n(!1),!u){s.current=!1,e.pause(),l(!1);return}m(a?"sync-url-init":"sync-url");return}if(c.current!==null){if(c.current<y.length){if(f.current){l(!1),n(!1);return}j(c.current,"wait-resume");return}x.current=!0,s.current=C(),l(!1),n(C());return}if(!y.length){if(i.isAudioStreaming){c.current=E.current,x.current=!0,s.current=C(),l(!1),n(C());return}U();return}if(!R.current){j(Math.min(E.current,y.length-1),"effect-init");return}if(!g||f.current){s.current=!1,e.pause(),l(!1);return}e.paused&&(s.current=!0,m("sync-paused-retry"))}},[i,o,y,q,g,M,C,U,j,m,ae,n]),r.useEffect(()=>U,[U]);const Ce=r.useCallback(()=>{l(!0),n(!1)},[n]),ke=r.useCallback(()=>{x.current||h.current||l(!1)},[o]),we=r.useCallback(()=>{const e=p.current;e&&d.current!==null&&(e.currentTime=d.current,d.current=null),!(!s.current||!g)&&m("canplay")},[o,g,m]),Me=r.useCallback(()=>{const e=p.current;e&&d.current!==null&&(e.currentTime=d.current,d.current=null)},[o]),Ae=r.useCallback(()=>{const e=N.current==="url"||b.current.length===0;if(h.current=!1,e){V("url-ended");return}ce()},[V,ce]),Ne=r.useCallback(()=>{l(!1),n(!1)},[n]),ve=r.useCallback(e=>{X?.(e),v(!1)},[X]);return t.jsxRuntimeExports.jsxs("div",{className:ie.cn("slide-player",w),...je,children:[t.jsxRuntimeExports.jsx("audio",{ref:p,preload:"auto",playsInline:!0,onLoadedMetadata:Me,onCanPlay:we,onPlay:Ce,onPause:ke,onEnded:Ae,onError:Ne}),Z?t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(Le.default,{container:xe,labels:{fullscreen:P.fullscreenLabel,nonFullscreen:P.nonFullscreenLabel,screen:P.screenLabel,title:P.settingsTitle},onClose:()=>v(!1),onOpenChange:v,onViewModeChange:ve,open:te,viewMode:pe}),t.jsxRuntimeExports.jsxs("div",{className:"slide-player__controls",style:_e,children:[t.jsxRuntimeExports.jsxs("div",{className:"slide-player__group",children:[t.jsxRuntimeExports.jsx("button",{"aria-expanded":te,"aria-haspopup":"dialog","aria-label":"More options",className:"slide-player__action slide-player__action--mobile-more",onClick:()=>{v(e=>!e)},type:"button",children:t.jsxRuntimeExports.jsx(Pe.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Volume",className:"hidden",type:"button",children:t.jsxRuntimeExports.jsx(Ve.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Rewind",className:"slide-player__action slide-player__action--prev",disabled:Ee,onClick:de,type:"button",children:t.jsxRuntimeExports.jsx(Be.default,{className:"slide-player__icon",strokeWidth:2.25})}),t.jsxRuntimeExports.jsx("button",{"aria-label":Se,className:"slide-player__toggle slide-player__toggle--playback",onClick:()=>{if(K){he?.(!F);return}const e=p.current;if(!(M||!e||!i)){if(c.current!==null){if($){s.current=!1,f.current=!0,c.current=null,x.current=!1,l(!1),n(!1),e.pause();return}S.current="manual",f.current=!1,s.current=!0,n(!0);return}if(!e.src&&y.length>0){S.current="manual",f.current=!1,j(Math.min(E.current,y.length-1),"toggle");return}if(e.paused){S.current="manual",f.current=!1,s.current=!0,m("toggle-resume");return}s.current=!1,f.current=!0,e.pause()}},type:"button",children:be?t.jsxRuntimeExports.jsx(He,{}):t.jsxRuntimeExports.jsx(Oe,{})}),t.jsxRuntimeExports.jsx("button",{"aria-label":"Forward",className:"slide-player__action slide-player__action--next",disabled:ye,onClick:me,type:"button",children:t.jsxRuntimeExports.jsx(Fe.default,{className:"slide-player__icon",strokeWidth:2.25})}),D?t.jsxRuntimeExports.jsx("button",{"aria-label":z?"Exit fullscreen":"Enter fullscreen",className:"slide-player__action slide-player__action--fullscreen",onClick:D,type:"button",children:z?t.jsxRuntimeExports.jsx(Ke.default,{className:"slide-player__icon",strokeWidth:2.25}):t.jsxRuntimeExports.jsx(Ze.default,{className:"slide-player__icon",strokeWidth:2.25})}):null]}),t.jsxRuntimeExports.jsx("div",{className:"slide-player__separator"}),t.jsxRuntimeExports.jsxs("div",{className:"slide-player__group",children:[ne.map((e,a)=>t.jsxRuntimeExports.jsx(r.Fragment,{children:e},`custom-action-${a}`)),t.jsxRuntimeExports.jsx("button",{"aria-label":"Notes",className:ie.cn("slide-player__action slide-player__action--notes",L&&"slide-player__action--active"),disabled:!Re,onClick:ge,type:"button",children:t.jsxRuntimeExports.jsx($e.default,{className:"slide-player__icon",strokeWidth:2.25})})]})]})]}):null]})};exports.default=De;
|
|
2
2
|
//# sourceMappingURL=Player.cjs.js.map
|