@higgsfield/video-editor-mcp 1.0.7 → 1.1.1-dev.0
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/THIRD_PARTY_NOTICES.md +24 -24
- package/dist/cli.mjs +134 -125
- package/dist/index.html +136 -133
- package/dist/launcher.mjs +90 -90
- package/dist/server.mjs +1553 -1389
- package/node_modules/@higgsfield/higgsedit/README.md +181 -1
- package/node_modules/@higgsfield/higgsedit/dist/capture-page.js +902 -314
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2JYLVSVV.mjs +1594 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-2WKNH7OL.mjs +16 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-OMKZ5BXM.mjs → chunk-5LTTL3Q3.mjs} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/chunk-7PYXSJS7.mjs +717 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MLJAIZGP.mjs → chunk-BH2QF635.mjs} +33 -326
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-WZR5PZM7.mjs → chunk-BV5COOQZ.mjs} +250 -161
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-HTCYVKFX.mjs → chunk-C3GSB3XZ.mjs} +8 -7
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-CYH2EUQV.mjs → chunk-DVN4LUXV.mjs} +13 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-F4CMIG5G.mjs +36 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-IEPPEDEU.mjs +33 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-UVAZ6I6U.mjs → chunk-KIWGVAPJ.mjs} +16 -12
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-L6QDNSL3.mjs → chunk-L5LWBA6A.mjs} +5 -5
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LMQR3DHT.mjs +37 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-LTKMGZ6T.mjs +58 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-VI6IV6JP.mjs → chunk-MV2JTTBQ.mjs} +65 -47
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-4D6AXU4B.mjs → chunk-NARTAWRN.mjs} +50 -30
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-27NBQ5FA.mjs → chunk-NUXTKQNM.mjs} +33 -21
- package/node_modules/@higgsfield/higgsedit/dist/chunk-OCIZ36XD.mjs +40 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-MK6PL7N4.mjs → chunk-OF6RMSM2.mjs} +19 -17
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-6BETMESC.mjs → chunk-P2BGHTRR.mjs} +2 -2
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-EKFC4S4M.mjs → chunk-PAHMD6SU.mjs} +5 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-QVLAEV3U.mjs → chunk-PFQYUJQL.mjs} +3 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QJTILFBS.mjs +335 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QQ3GGKDN.mjs +21 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-TH7TK67K.mjs +23 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-SIMO6I3D.mjs → chunk-UDL5AHKO.mjs} +163 -158
- package/node_modules/@higgsfield/higgsedit/dist/chunk-UMWOUQN3.mjs +60 -0
- package/node_modules/@higgsfield/higgsedit/dist/{chunk-3AIM3THH.mjs → chunk-VLM5EOWJ.mjs} +4 -4
- package/node_modules/@higgsfield/higgsedit/dist/chunk-WENFTPXQ.mjs +403 -0
- package/node_modules/@higgsfield/higgsedit/dist/chunk-YLVXQIPX.mjs +464 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/.vite/manifest.json +559 -506
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-bottom-q4hZltI-.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/agent-corner-top-BJYI-I24.svg +431 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/confirmation-BTnwl3LS.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/drag-Bt_t4HZO.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/local-B3OTAV_A.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/menubar-2Y1Y2XJt.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/model-DdE4hCgf.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{IconText1-CzbCrP7v.css → notifications-B08L1jSe.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/{panel-g852pZf_.css → panel-BRN_AbBM.css} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-CYELNqrv.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DYLpT6oA.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-v84HaGTZ.css +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Bxb1Or0F.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCheckmark2Medium-daaES9uF.js → IconCheckmark2Medium-hegaz9mQ.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconChevronDownSmall-BhTBJk26.js → IconChevronDownSmall-DaruzJwU.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconClosedCaptioning-BPqcqKsD.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconCrossMedium-acfnCXOM.js → IconCrossMedium-BsPFJzc6.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconOpenaiFilled-D1fzthmi.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPause-pTeVSvUe.js → IconPause-ClNg8pao.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{IconPlayFilled-CwdgIuDG.js → IconPlayFilled-CHb-7GSx.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconSparklesSoftFilled-o7o33KRn.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-B9h-eaki.js +567 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/auto-layout-BO20Tg4B.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{button-CjG6GcgF.js → button-Cg0U0zpV.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/canvas-Bw4CVzfw.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/capabilities-BCd4-zPF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/commands-QeSqAbCt.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-tXMtIZNL.js +51 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/confirmation-CO2PHR_z.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dom-6aoQn29n.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-Dw8b_vO2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{editing-CjWbiCxv.js → editing-Cy-SaOyB.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-CqLBqir0.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-BjBskOe3.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/factories-Bw_iQrUL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/id3-CSR0NCRI.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-DP49i4ke.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMz9sLPe.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ingest-DsmIc415.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B5yqYJvp.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/{media-Bwjxu-0U.js → media-DQw6vU_T.js} +1 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-D31srALX.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-D0nZVEJs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/mode-DEG6doKF.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-Duf9fszJ.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/model-DyAkLA69.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/notifications-DqWZNIrK.js +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-HT83gWgL.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-B5Mvm6dg.js +7 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BC90wyvd.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Bw_ZJ2JI.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DNS060Nt.js +3 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DSgxIrEq.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DgBttE5O.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-_T2bHsHW.js +771 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DfHvAt5X.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-nBZvHlkA.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-DsCpJVSt.js +327 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-CEhZwZ67.js +280 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-2_tW9Do7.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/react-dom-1uB7Vbbb.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/schemas-CddYAOcj.js +64 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-BpFeKAI2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/src-BLG3tYBa.js +2 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/styles-e2n2A_JN.js +284 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CuV0zYKd.js +24 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-XeAgs9cs.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-DbNEaSIl.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-C8Ll3qFl.js +69 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-Dv1LPFbu.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-HWSfSsp2.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-D4SOg3N_.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/value-EB7YmAdS.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-fj5rA9k3.js +1 -0
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-B-WAkLt7.js +372 -0
- package/node_modules/@higgsfield/higgsedit/dist/higgsedit.mjs +39 -24
- package/node_modules/@higgsfield/higgsedit/dist/jsx/hooks.d.ts +26 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/index.d.ts +17 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/inspect.d.ts +42 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/jsx-runtime.d.ts +28 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/svg.d.ts +9 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/time.d.ts +6 -0
- package/node_modules/@higgsfield/higgsedit/dist/jsx/types.d.ts +420 -0
- package/node_modules/@higgsfield/higgsedit/package.json +28 -20
- package/package.json +4 -3
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/skills/video-editing/references/caption-titling.md +1 -1
- package/plugin/skills/video-editing/references/local-setup.md +3 -3
- package/node_modules/@higgsfield/higgsedit/dist/chunk-C6SASQHE.mjs +0 -424
- package/node_modules/@higgsfield/higgsedit/dist/chunk-FZ5U36SQ.mjs +0 -83
- package/node_modules/@higgsfield/higgsedit/dist/chunk-QLPCYN6K.mjs +0 -292
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/edit-drag-D2EV5ddd.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/editor-CuRHT75g.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/assets/panel-DnuQD7ja.css +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/FieldControl-B0fenhBJ.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconChainLink1-Cwv1X7hi.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeOpen-BqTT9_VV.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconEyeSlash-Whv58c1m.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPencil-Dr17k_7e.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlay-BroH3ziH.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconPlusSmall-43T9aE3d.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconText1-BaP_p9DW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/IconTrashCan-DX2w2AIC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/ai-composer-C-l0eIdP.js +0 -560
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/captions-Cd-bDG3G.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/clip-highlight-DpAvcA4x.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/components-e3ZbUVns.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/disposables-CwUPjcuA.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/drag-HLBkto5o.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/dropdown-BJ04G_X3.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edit-drag-Bg6LggKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/edits-a2IixhrN.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/export-dialog-4I4gqI5V.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/face-tracker-DzVfjVOO.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/fit-imported-media-CaCB0x0b.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/generation-queue-DuL2F4-_.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/import-error-CMARA0Hy.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/jsx-runtime-B-hcVAMW.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/menubar-Bs26OdwP.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/meters-YEr9OQjq.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/paints-DS2Msf91.js +0 -67
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/palette-CcS9IcAC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-7M3uQokX.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-BBK1NyG-.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-CHZTs7By.js +0 -4
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DaSOa3MP.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-DlK3RYVo.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Dst5OKWu.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-H_ZoDiKK.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-Rn9Z7Eek.js +0 -3
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-assets-FAghGFG3.js +0 -678
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-inspector-DEqULBNF.js +0 -260
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-timeline-0GYNz1uc.js +0 -333
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/panel-viewport-DOWjJi5-.js +0 -317
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/projects-BBJc7h5_.js +0 -2
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/session-B9sZaFKC.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/supercomputer-CX-LCL6Y.js +0 -24
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/tabs-CvKQ-eas.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/toggle-CrzrwiDZ.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-BgRfk-Qq.js +0 -69
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/transport-bar-C9nqAfE2.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/typography-C5-w9LOu-kD3uLKkf.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useOpenInteractionType-DbrQ6Ehu.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/useRenderElement-bbxXdYq0.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/chunks/writeback-support-BZfNpkmB.js +0 -1
- package/node_modules/@higgsfield/higgsedit/dist/editor/editor-Csn2_T_e.js +0 -293
- package/node_modules/@higgsfield/higgsedit/dist/export-settings.mjs +0 -75
- package/node_modules/@higgsfield/higgsedit/dist/history.mjs +0 -295
- package/node_modules/@higgsfield/higgsedit/dist/media-upload.mjs +0 -381
- package/node_modules/@higgsfield/higgsedit/dist/proxy.mjs +0 -170
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.editor-generation-card{aspect-ratio:280/163;color:#fff;background:#ffffff05;border-radius:16px;flex:none;width:100%;min-width:0;animation:.22s ease-out editor-generation-enter;position:relative;overflow:hidden}.editor-generation-media,.editor-generation-media video{width:100%;height:100%}.editor-generation-media{position:absolute;inset:0}.editor-generation-media video{object-fit:cover;display:block}.editor-generation-card[data-status=completed]:after{content:"";pointer-events:none;background:linear-gradient(#0000 73%,#000c);position:absolute;inset:0}.editor-generation-card .hf-generation-pending-surface{background:0 0}.editor-generation-card .hf-generation-pending-glow{aspect-ratio:1;filter:blur(36.55px);background:#d1fe171a;width:86%;height:auto;top:-107%;left:7%}.editor-generation-circle{color:#fff;backdrop-filter:blur(32px);background:#ffffff0d;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:36px;height:36px;padding:0;display:inline-flex}.editor-generation-card button{cursor:pointer;font:inherit}.editor-generation-card button:disabled{opacity:.45;cursor:default}.editor-generation-card button:focus-visible{outline-offset:-2px;outline:2px solid #d1fe17}.editor-generation-status,.editor-generation-open{z-index:1;position:absolute;top:12px}.editor-generation-status{left:12px}.editor-generation-open{right:12px;transform:scaleX(-1)}.editor-generation-footer{z-index:1;justify-content:space-between;align-items:center;gap:8px;display:flex;position:absolute;inset:auto 12px 12px}.editor-generation-actions{gap:6px;margin-left:auto;display:flex}.editor-generation-accept{color:#000;background:#fff}.editor-generation-pager{box-sizing:border-box;backdrop-filter:blur(32px);background:#ffffff0d;border-radius:56px;align-items:center;gap:8px;height:36px;padding:8px 12px;font-size:16px;font-weight:500;line-height:20px;display:flex}.editor-generation-pager button{color:inherit;background:0 0;border:0;padding:0;display:flex}.editor-generation-pager button:first-child{transform:rotate(180deg)}.editor-generation-error{flex-direction:column;justify-content:center;gap:8px;font-size:12px;display:flex;position:absolute;inset:12px 12px 54px;overflow:auto}.editor-generation-error button{color:#d1fe17;background:0 0;border:0;align-self:flex-start;padding:0}.hf-notification-inline-action{color:#d1fe17;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}@keyframes editor-generation-enter{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.editor-generation-card{animation:none}}.editor-generation-error>div{gap:12px;display:flex}.editor-generation-card{min-height:112px;container-type:inline-size}.editor-generation-card:has(.editor-generation-pager){min-height:148px}@container (width<=250px){.editor-generation-footer{flex-wrap:wrap}.editor-generation-actions{margin-left:0}}.editor-generation-sync-error{color:var(--color-text-secondary,#a3a3a3);margin:0;padding:.5rem;font-size:.75rem}.editor-generation-anchor{aspect-ratio:280/163;flex:none;width:100%;min-height:112px;position:relative}.editor-generation-anchor[data-multiple=true]{min-height:148px}.editor-generation-anchor[data-floating=true]{aspect-ratio:auto;height:0;min-height:0;margin-bottom:-8px}.editor-generation-dock-target{aspect-ratio:280/163;z-index:1;color:#a3a3a3;pointer-events:none;background:#111111e6;border:1px dashed #d1fe17;border-radius:16px;min-height:112px;font-size:12px;display:none;position:absolute;inset:0 0 auto}.editor-generation-anchor[data-dragging=true] .editor-generation-dock-target{place-items:center;display:grid}.editor-generation-anchor[data-drop-active=true] .editor-generation-dock-target{color:#d1fe17;background:#d1fe171f}.editor-generation-window{color:#fff;transform-origin:0 0;background:0 0;border:0;max-width:none;max-height:none;margin:0;padding:0;font-family:Inter,sans-serif;position:fixed;inset:0 auto auto 0}.editor-generation-window>.editor-generation-card{height:100%;min-height:0}.editor-generation-window[data-mode=floating]{z-index:50;cursor:grab;touch-action:none;user-select:none;border-radius:16px;box-shadow:0 8px 32px #0009}.editor-generation-window[data-mode=floating] .editor-generation-media video{pointer-events:none}.editor-generation-window[data-dragging=true]{cursor:grabbing}.editor-generation-open[data-floating=true]{transform:none}.editor-generation-window[data-mode=fullscreen]{box-sizing:border-box;background:#1c1e21;border:.5px solid #ffffff0d;border-radius:24px;margin:auto;padding:8px;inset:0;box-shadow:0 12px 32px #00000059;width:min(1368px,100vw - 32px)!important;height:min(884px,100dvh - 48px)!important;translate:none!important}.editor-generation-window::backdrop{background:#00000080}.editor-generation-window[data-mode=fullscreen] .editor-generation-card{aspect-ratio:auto;background:0 0;flex-direction:column;gap:8px;display:flex;overflow:visible;container-type:normal}.editor-generation-window[data-mode=fullscreen] .editor-generation-card:after{content:none}.editor-generation-window[data-mode=fullscreen] .editor-generation-media{background:#111;border-radius:20px;flex:1;height:auto;min-height:0;position:relative;overflow:hidden}.editor-generation-window[data-mode=fullscreen] video{object-fit:contain}.editor-generation-header{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-height:40px;display:grid}.editor-generation-header h2{margin:0;padding:8px;font-size:16px;font-weight:600;line-height:24px}.editor-generation-header-actions{grid-column:3;justify-content:flex-end;align-items:center;gap:4px;display:flex}.editor-generation-header-button{color:#fff;background:#ffffff1a;border:0;border-radius:9999px;justify-content:center;align-items:center;gap:6px;min-height:32px;padding:6px 12px;display:inline-flex}.editor-generation-header-button span{font-size:14px;font-weight:500;line-height:16px}.editor-generation-header-button.editor-generation-accept{color:#1a1a1a;background:#fff}.editor-generation-close{width:32px;height:32px;margin:4px}.editor-generation-footer[hidden]{display:none}.editor-generation-playback{background:linear-gradient(#0000,#000000b3);padding:12px 20px 14px;position:absolute;inset:auto 0 0}.editor-generation-playback>div{justify-content:center;gap:12px;padding-top:12px;display:flex}.editor-generation-playback .editor-generation-circle{background:#00000026}.editor-generation-playback input{appearance:none;cursor:pointer;background:0 0;width:100%;height:20px;margin:0;display:block}.editor-generation-playback input::-webkit-slider-runnable-track{background:#ffffff4d;border-radius:9999px;height:6px}.editor-generation-playback input::-moz-range-track{background:#ffffff4d;border-radius:9999px;height:6px}.editor-generation-playback input::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:8px;width:4px;height:12px;margin-top:-3px}.editor-generation-playback input::-moz-range-thumb{background:#fff;border:0;border-radius:8px;width:4px;height:12px}.editor-generation-playback input:focus-visible{outline-offset:2px;outline:2px solid #d1fe17}.editor-generation-playback p{text-align:center;font-size:12px}@media (width<=680px){.editor-generation-header{grid-template-columns:1fr auto}.editor-generation-header h2{grid-column:1/-1;padding-right:44px}.editor-generation-header .editor-generation-pager{grid-area:2/1;justify-self:start}.editor-generation-header-actions{grid-area:2/2}.editor-generation-close{position:absolute;top:0;right:0}}.editor-generation-window[data-mode=floating]:after{content:"";border-radius:inherit;pointer-events:none;border:1px solid #ffffff1a;position:absolute;inset:0}@media (width<=400px){.editor-generation-header-button{width:32px;padding:6px}.editor-generation-header-button span{display:none}}.editor-generation-anchor[data-multiple=true] .editor-generation-dock-target{min-height:148px}.editor-generation-window[data-mode=fullscreen] .editor-generation-card:not([data-status=completed]) .editor-generation-media,.editor-generation-window[data-mode=fullscreen] .editor-generation-media:has(.hf-generation-pending-surface){background:#1c1e21;container-type:inline-size}.editor-generation-window[data-mode=fullscreen] .hf-generation-pending-glow{aspect-ratio:auto;filter:blur(clamp(36px,13cqw,183px));width:77.2%;height:48.63%;top:-29.46%;left:8.81%}.editor-generation-full-status{position:absolute;top:20px;left:20px}.editor-generation-full-status .hf-generation-pending-badge{backdrop-filter:blur(32px);color:#d1fe17;background:#ffffff0d;border:1px solid #ffffff0d;height:40px;padding:6px 12px;font-size:16px;font-weight:500;line-height:20px}.editor-generation-full-status .hf-generation-pending-spinner{width:16px;height:16px}.editor-generation-header button:disabled{opacity:.4}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-B-hcVAMW.js";import{At as r,Bn as i,Gt as a,Ht as o,It as s,Jn as c,Lt as l,Rn as u,Rt as d,Sr as f,_r as p,br as m,fr as h,hr as g,mr as _,or as v,pr as y,qn as b,vr as x,xr as S,yr as C,yt as w,zt as T}from"./useOpenInteractionType-DbrQ6Ehu.js";import{a as E,l as D,s as O,t as k,u as A}from"./useRenderElement-bbxXdYq0.js";var j=n(),M=e(t()),N=M.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function P(e=!1){let t=M.useContext(N);if(!t&&!e)throw Error(D(86));return t}var F=function(e){let t=g(),n=e.controlId===void 0?t:e.controlId,[r,i]=M.useState(n),[a,o]=M.useState(e.labelId),[s,c]=M.useState([]),l=A(()=>new Map),{messageIds:u}=_(),d=f((e,t)=>{let n=l.current;if(t===void 0){n.delete(e);return}n.set(e,t),i(e=>{if(n.size===0)return;let t;for(let r of n.values()){if(e!==void 0&&r===e)return e;t===void 0&&(t=r)}return t})}),p=M.useCallback(e=>E({"aria-describedby":u.concat(s).join(` `)||void 0},e),[u,s]),m=M.useMemo(()=>({controlId:r,registerControlId:d,labelId:a,setLabelId:o,messageIds:s,setMessageIds:c,getDescriptionProps:p}),[r,d,a,o,s,c,p]);return(0,j.jsx)(y.Provider,{value:m,children:e.children})};function I(e,t){let n=g(e);return h(()=>(t(n),()=>{t(void 0)}),[n,t]),n}function L(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:a,focusControl:o}=e,{controlId:s,setLabelId:c}=_(),l=I(t,f(e=>{c(e),a?.(e)})),u=s??n;function d(e){if(o){o(e,u);return}if(!u)return;let t=b(e.currentTarget).getElementById(u);v(t)&&R(t)}function p(e){i(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&d(e))}return r?{id:l,htmlFor:u??void 0,onMouseDown:p}:{id:l,onClick:p,onPointerDown(e){e.preventDefault()}}}function R(e){e.focus({focusVisible:!0})}function z(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var B=Object.keys(m);function V(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let n of B)n!==`valid`&&(n===`valueMissing`&&(t=e[n]),e[n]&&(t=!1));return t}function H(e){let{formRef:t,clearErrors:n}=p(),{setValidityData:r,validate:i,validityData:o,validationDebounceTime:s,invalid:c,markedDirtyRef:l,state:u,name:d,shouldValidateOnChange:h,getRegisteredFieldId:g}=e,{controlId:v,getDescriptionProps:y}=_(),b=a(),x=M.useRef(null),S=f(async(e,n=!1)=>{let a=x.current;if(!a)return;function s(e,n=c){let r=g()??v;if(r==null)return;let i=t.current.fields.get(r);if(!i)return;let a=z(e,n);t.current.fields.set(r,{...i,validityData:a})}if(n){if(u.valid!==!1)return;let t=a.validity;if(!t.valueMissing){let t={value:e,state:{...m,valid:!0},error:``,errors:[],initialValue:o.initialValue};a.setCustomValidity(``),s(t,!1),r(t);return}let n=B.reduce((e,n)=>(e[n]=t[n],e),{});if(!n.valid&&!V(n))return}function d(e){let t=B.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of B)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}b.clear();let f=null,p=[],_=d(a),y,S=h();if(a.validationMessage&&!S)y=a.validationMessage,p=[a.validationMessage];else{let n=Array.from(t.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),r=i(e,n);f=typeof r==`object`&&r&&`then`in r?await r:r,f===null?S&&(a.setCustomValidity(``),_.customError=!1,a.validationMessage?(y=a.validationMessage,p=[a.validationMessage]):a.validity.valid&&!_.valid&&(_.valid=!0)):(_.valid=!1,_.customError=!0,Array.isArray(f)?(p=f,a.setCustomValidity(f.join(`
|
|
2
|
-
`))):f&&(p=[f],a.setCustomValidity(f)))}let C={value:e,state:_,error:y??(Array.isArray(f)?f[0]:f??``),errors:p,initialValue:o.initialValue};s(C),r(C)}),C=M.useCallback((e={})=>E(y,u.valid===!1?{"aria-invalid":!0}:O,e),[y,u.valid]),w=M.useCallback((e={})=>E({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(d),!h()){S(e.currentTarget.value,!0);return}let t=e.currentTarget;if(t.value===``){S(t.value);return}b.clear(),s?b.start(s,()=>{S(t.value)}):S(t.value)}},C(e)),[C,n,d,b,S,s,h]);return M.useMemo(()=>({getValidationProps:C,getInputValidationProps:w,inputRef:x,commit:S}),[C,w,S])}function U(e){let{commit:t,invalid:n,markedDirtyRef:r,name:i,setRegisteredFieldId:a,setValidityData:o,validityData:s}=e,{formRef:c}=p(),l=M.useRef(null),u=M.useRef(null),d=M.useRef(null),m=f(()=>{let e=u.current;if(e)return e.getValue?e.getValue():e.value}),g=f(()=>{let e=u.current;if(!e)return;let n=e.value;n===void 0&&(n=m()),r.current=!0,t(n)});function _(){let e=u.current;e&&e.id&&c.current.fields.set(e.id,{getValue:m,name:i,controlRef:e.controlRef??d,validityData:z(s,n),validate:g})}function v(e=u.current?.id){e&&c.current.fields.delete(e)}function y(){let e=u.current;if(!e)return;let t=e.value;t===void 0&&(t=m()),s.initialValue===null&&t!==null&&o(e=>({...e,initialValue:t}))}return h(()=>{let e=u.current;e&&e.id&&c.current.fields.set(e.id,{getValue:m,name:i,controlRef:e.controlRef??d,validityData:z(s,n),validate:g})},[c,m,n,i,g,s]),h(()=>{let e=c.current.fields;return()=>{let t=u.current?.id;t&&e.delete(t)}},[c]),f((e,t)=>{if(!t){l.current===e&&(l.current=null,v(),u.current=null,a(void 0));return}let n=u.current?.id;l.current=e,u.current=t,a(t.id),n&&n!==t.id&&v(n),y(),_()})}var W=M.forwardRef(function(e,t){let{errors:n,validationMode:r,submitAttemptedRef:i}=p(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:h,dirty:g,touched:_,actionsRef:v,style:y,...b}=e,{disabled:C}=P(),w=f(s||(()=>null)),T=C||d,[E,D]=M.useState(!1),[O,A]=M.useState(!1),[N,F]=M.useState(!1),[I,L]=M.useState(!1),R=g??O,z=_??E,B=M.useRef(!1),V=M.useRef(void 0),W=M.useCallback(()=>V.current,[]),G=M.useCallback(e=>{V.current=e},[]),K=f(e=>{g===void 0&&(e&&(B.current=!0),A(e))}),q=f(e=>{_===void 0&&D(e)}),J=f(()=>l===`onChange`||l===`onSubmit`&&i.current),ee=!!u&&Object.hasOwn(n,u)&&n[u]!==void 0,Y=h===!0||ee,[X,Z]=M.useState({state:m,error:``,errors:[],value:null,initialValue:null}),te=!Y&&X.state.valid,Q=M.useMemo(()=>({disabled:T,touched:z,dirty:R,valid:te,filled:N,focused:I}),[T,z,R,te,N,I]),$=H({setValidityData:Z,validate:w,validityData:X,validationDebounceTime:c,invalid:Y,markedDirtyRef:B,state:Q,name:u,shouldValidateOnChange:J,getRegisteredFieldId:W}),ne=X.value,re=M.useCallback(()=>{B.current=!0,$.commit(ne)},[$,ne]),ie=U({commit:$.commit,invalid:Y,markedDirtyRef:B,name:u,setRegisteredFieldId:G,setValidityData:Z,validityData:X});M.useImperativeHandle(v,()=>({validate:re}),[re]);let ae=M.useMemo(()=>({invalid:Y,name:u,validityData:X,setValidityData:Z,disabled:T,touched:z,setTouched:q,dirty:R,setDirty:K,filled:N,setFilled:F,focused:I,setFocused:L,validate:w,validationMode:l,validationDebounceTime:c,shouldValidateOnChange:J,state:Q,markedDirtyRef:B,registerFieldControl:ie,validation:$}),[Y,u,X,T,z,q,R,K,N,F,I,L,w,l,c,J,Q,ie,$]),oe=k(`div`,e,{ref:t,state:Q,props:b,stateAttributesMapping:S});return(0,j.jsx)(x.Provider,{value:ae,children:oe})}),G=M.forwardRef(function(e,t){return(0,j.jsx)(F,{children:(0,j.jsx)(W,{...e,ref:t})})}),K=M.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=C(!1),{labelId:l}=_(),u=M.useRef(null),d=L({id:l??a,native:o});return k(`label`,e,{ref:[t,u],state:c.state,props:[d,s],stateAttributesMapping:S})}),q={...S,...o},J=M.forwardRef(function(e,t){let{render:n,id:r,className:i,match:a,style:o,...s}=e,c=g(r),{validityData:l,state:u,name:f}=C(!1),{setMessageIds:m}=_(),{errors:v}=p(),y=f?v[f]:null,b=typeof a==`string`,x=!1;x=a===!0?!0:b?!!l.state[a]:!!y||l.state.valid===!1;let{mounted:S,transitionStatus:w,setMounted:E}=d(x);h(()=>{if(x&&c)return m(e=>e.concat(c)),()=>{m(e=>e.filter(e=>e!==c))}},[x,c,m]);let D=M.useRef(null),[O,A]=M.useState(null),[N,P]=M.useState(null),F=l.errors.length>1?(0,j.jsx)(`ul`,{children:l.errors.map(e=>(0,j.jsx)(`li`,{children:e},e))}):l.error,I=b?F:y||F,L=l.error;y==null?l.errors.length>1&&(L=JSON.stringify(l.errors)):L=Array.isArray(y)?JSON.stringify(y):y,x&&L!==N&&(P(L),A(I)),T({open:x,ref:D,onComplete(){x||E(!1)}});let R={...u,transitionStatus:w},z=k(`div`,e,{ref:[t,D],state:R,props:[{id:c,children:x?I:O},s],stateAttributesMapping:q,enabled:S});return S?z:null}),ee=M.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=g(r),c=C(!1),{setMessageIds:l}=_();return h(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),k(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:S})}),Y=M.forwardRef(function(e,t){let{render:n,className:i,id:a,name:o,value:d,disabled:p=!1,onValueChange:m,defaultValue:g,autoFocus:v=!1,style:y,...x}=e,{state:T,name:E,disabled:D,setTouched:O,setDirty:A,validityData:j,setFocused:N,setFilled:P,validationMode:F,validation:I}=C(),L=D||p,R=E??o,z={...T,disabled:L},{labelId:B}=_(),V=c({id:a});h(()=>{let e=d!=null;I.inputRef.current?.value||e&&d!==``?P(!0):e&&d===``&&P(!1)},[I.inputRef,P,d]);let H=M.useRef(null);h(()=>{v&&H.current===u(b(H.current))&&N(!0)},[v,N]);let[U]=l({controlled:d,default:g,name:`FieldControl`,state:`value`}),W=d!==void 0,G=W?U:void 0,K=f(()=>I.inputRef.current?.value);return s(I.inputRef,V,G,K),k(`input`,e,{ref:[t,H],state:z,props:[{id:V,disabled:L,name:R,ref:I.inputRef,"aria-labelledby":B,autoFocus:v,...W?{value:G}:{defaultValue:g},onChange(e){let t=e.currentTarget.value;m?.(t,w(r,e.nativeEvent)),A(t!==j.initialValue),P(t!==``)},onFocus(){N(!0)},onBlur(e){O(!0),N(!1),F===`onBlur`&&I.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(O(!0),I.commit(e.currentTarget.value))}},I.getInputValidationProps(),x],stateAttributesMapping:S})});export{G as a,K as i,ee as n,J as r,Y as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=e=>{let t=n.useId();return n.createElement(s,{...e,instanceId:t})},i=0,a=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++i}`})}render(){return n.createElement(s,{...this.props.iconProps,instanceId:this.state.instanceId})}},o=n.forwardRef((e,t)=>a?n.createElement(a,{iconProps:{...e,svgRef:t}}):n.createElement(r,{...e,svgRef:t}));o.displayName=`CentralIconBase`;var s=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},c=n.memo(n.forwardRef((e,t)=>n.createElement(o,{...e,ref:t,ariaLabel:`align-horizontal-center, alignment`,maskId:`round-outlined-radius-2-stroke-1.5-IconAlignHorizontalCenter`},n.createElement(`path`,{d:`M20.25 17.05V6.95C20.25 5.8299 20.25 5.26984 20.032 4.84202C19.8403 4.46569 19.5343 4.15973 19.158 3.96799C18.7302 3.75 18.1701 3.75 17.05 3.75H6.95C5.8299 3.75 5.26984 3.75 4.84202 3.96799C4.46569 4.15973 4.15973 4.46569 3.96799 4.84202C3.75 5.26984 3.75 5.8299 3.75 6.95V17.05C3.75 18.1701 3.75 18.7302 3.96799 19.158C4.15973 19.5343 4.46569 19.8403 4.84202 20.032C5.26984 20.25 5.8299 20.25 6.95 20.25H17.05C18.1701 20.25 18.7302 20.25 19.158 20.032C19.5343 19.8403 19.8403 19.5343 20.032 19.158C20.25 18.7302 20.25 18.1701 20.25 17.05Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M12 16.25L12 7.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})))),l=e=>{let t=n.useId();return n.createElement(p,{...e,instanceId:t})},u=0,d=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++u}`})}render(){return n.createElement(p,{...this.props.iconProps,instanceId:this.state.instanceId})}},f=n.forwardRef((e,t)=>d?n.createElement(d,{iconProps:{...e,svgRef:t}}):n.createElement(l,{...e,svgRef:t}));f.displayName=`CentralIconBase`;var p=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},m=n.memo(n.forwardRef((e,t)=>n.createElement(f,{...e,ref:t,ariaLabel:`alignment-left`,maskId:`round-outlined-radius-2-stroke-1.5-IconAlignmentLeft`},n.createElement(`path`,{d:`M3.75 4.75H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M3.75 12H12.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M3.75 19.25H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),h=e=>{let t=n.useId();return n.createElement(y,{...e,instanceId:t})},g=0,_=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++g}`})}render(){return n.createElement(y,{...this.props.iconProps,instanceId:this.state.instanceId})}},v=n.forwardRef((e,t)=>_?n.createElement(_,{iconProps:{...e,svgRef:t}}):n.createElement(h,{...e,svgRef:t}));v.displayName=`CentralIconBase`;var y=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},b=n.memo(n.forwardRef((e,t)=>n.createElement(v,{...e,ref:t,ariaLabel:`alignment-right`,maskId:`round-outlined-radius-2-stroke-1.5-IconAlignmentRight`},n.createElement(`path`,{d:`M3.75 4.75H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M11.75 12H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M3.75 19.25H20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),x=e=>{let t=n.useId();return n.createElement(T,{...e,instanceId:t})},S=0,C=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++S}`})}render(){return n.createElement(T,{...this.props.iconProps,instanceId:this.state.instanceId})}},w=n.forwardRef((e,t)=>C?n.createElement(C,{iconProps:{...e,svgRef:t}}):n.createElement(x,{...e,svgRef:t}));w.displayName=`CentralIconBase`;var T=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},E=n.memo(n.forwardRef((e,t)=>n.createElement(w,{...e,ref:t,ariaLabel:`align-vertical-center, alignment`,maskId:`round-outlined-radius-2-stroke-1.5-IconAlignVerticalCenter`},n.createElement(`path`,{d:`M20.25 17.05V6.95C20.25 5.8299 20.25 5.26984 20.032 4.84202C19.8403 4.46569 19.5343 4.15973 19.158 3.96799C18.7302 3.75 18.1701 3.75 17.05 3.75H6.95C5.8299 3.75 5.26984 3.75 4.84202 3.96799C4.46569 4.15973 4.15973 4.46569 3.96799 4.84202C3.75 5.26984 3.75 5.8299 3.75 6.95V17.05C3.75 18.1701 3.75 18.7302 3.96799 19.158C4.15973 19.5343 4.46569 19.8403 4.84202 20.032C5.26984 20.25 5.8299 20.25 6.95 20.25H17.05C18.1701 20.25 18.7302 20.25 19.158 20.032C19.5343 19.8403 19.8403 19.5343 20.032 19.158C20.25 18.7302 20.25 18.1701 20.25 17.05Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M7.75 12H16.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})))),ee=e=>{let t=n.useId();return n.createElement(ie,{...e,instanceId:t})},te=0,ne=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++te}`})}render(){return n.createElement(ie,{...this.props.iconProps,instanceId:this.state.instanceId})}},re=n.forwardRef((e,t)=>ne?n.createElement(ne,{iconProps:{...e,svgRef:t}}):n.createElement(ee,{...e,svgRef:t}));re.displayName=`CentralIconBase`;var ie=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},ae=n.memo(n.forwardRef((e,t)=>n.createElement(re,{...e,ref:t,ariaLabel:`arrow-down-wall`,maskId:`round-outlined-radius-2-stroke-1.5-IconArrowDownWall`},n.createElement(`path`,{d:`M19.25 3.75L4.75 3.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),n.createElement(`path`,{d:`M16.5 15.75L12 20.25L7.5 15.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M12 7.75V19.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),oe=e=>{let t=n.useId();return n.createElement(ue,{...e,instanceId:t})},se=0,ce=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++se}`})}render(){return n.createElement(ue,{...this.props.iconProps,instanceId:this.state.instanceId})}},le=n.forwardRef((e,t)=>ce?n.createElement(ce,{iconProps:{...e,svgRef:t}}):n.createElement(oe,{...e,svgRef:t}));le.displayName=`CentralIconBase`;var ue=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},de=n.memo(n.forwardRef((e,t)=>n.createElement(le,{...e,ref:t,ariaLabel:`arrow-up-wall`,maskId:`round-outlined-radius-2-stroke-1.5-IconArrowUpWall`},n.createElement(`path`,{d:`M16.5 8.25L12 3.75L7.5 8.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M19.25 20.25L4.75 20.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M12 4.5V16.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));function fe(e){return e<0?0:e>1?1:e}function D(e,t,n){let r=1-e;return 3*r*r*e*t+3*r*e*e*n+e*e*e}function pe(e,t,n,r,i){if(i<=0)return 0;if(i>=1)return 1;let a=i;for(let o=0;o<8;o++){let o=D(a,e,n)-i;if(Math.abs(o)<1e-5)return D(a,t,r);let s=1-a,c=3*s*s*e+6*s*a*(n-e)+3*a*a*(1-n);if(Math.abs(c)<1e-6)break;a=Math.min(1,Math.max(0,a-o/c))}let o=0,s=1;for(let t=0;t<24;t++)a=(o+s)/2,D(a,e,n)<i?o=a:s=a;return D(a,t,r)}function me(e){let t=fe(e),n=7.5625,r=2.75;if(t<1/r)return n*t*t;if(t<2/r){let e=t-1.5/r;return n*e*e+.75}if(t<2.5/r){let e=t-2.25/r;return n*e*e+.9375}let i=t-2.625/r;return n*i*i+.984375}function he(e,t){switch(e.kind){case`linear`:return t;case`hold`:return 0;case`steps`:return e.count>0?Math.min(1,Math.floor(t*e.count)/e.count):t;case`cubic-bezier`:return pe(e.x1,e.y1,e.x2,e.y2,t);case`bounce`:return me(t);default:return t}}function ge(e,t){let n=e.length;if(n===0)return null;let r=e[0];if(n===1||t<=r.time)return O(r.value);let i=e[n-1];if(t>=i.time)return O(i.value);let a=0;for(;a+1<n&&e[a+1].time<=t;)a++;let o=e[a],s=e[a+1],c=s.time-o.time,l=c>1e-9?(t-o.time)/c:1,u=he(o.easing,l);return typeof o.value==`number`&&typeof s.value==`number`?o.value+(s.value-o.value)*u:O(u<1?o.value:s.value)}function O(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function k(e,t,n,r,i){return{property:e,unit:t,enter:n,exit:r,neutral:i}}var _e={grow:[k(`scale`,`value`,.6,.6,1)],shrink:[k(`scale`,`value`,1.4,1.4,1)],"slide-left":[k(`offsetX`,`clip-width`,1,-1,0)],"slide-right":[k(`offsetX`,`clip-width`,-1,1,0)],"slide-up":[k(`offsetY`,`clip-height`,1,-1,0)],"slide-down":[k(`offsetY`,`clip-height`,-1,1,0)],spin:[k(`rotation`,`value`,-360,360,0)],twist:[k(`rotation`,`value`,-90,90,0),k(`scale`,`value`,.3,.3,1)]};function ve(e,t,n,r){return t===`clip-width`?e*n:t===`clip-height`?e*r:e}function A(e,t){let n=e.transform,r={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY,rotation:n.rotation,skewX:n.skewX,skewY:n.skewY,width:e.size.width,height:e.size.height};for(let n of e.animations){let e=ge(n.keyframes,t);if(e!==null)switch(n.property){case`positionX`:r.x=e;break;case`positionY`:r.y=e;break;case`offsetX`:r.x+=e;break;case`offsetY`:r.y+=e;break;case`scale`:r.scaleX*=e,r.scaleY*=e;break;case`scaleX`:r.scaleX=e;break;case`scaleY`:r.scaleY=e;break;case`rotation`:r.rotation=e;break;case`skewX`:r.skewX=e;break;case`skewY`:r.skewY=e;break;case`width`:r.width=e;break;case`height`:r.height=e}}return e.presetAnimations.length>0&&ye(r,e.presetAnimations,e.timeRange.duration,t),r}function ye(e,t,n,r){for(let i of t){let t=_e[i.preset];if(!t)continue;let a=Math.min(Math.max(i.duration,0),n);if(a<=0)continue;let o=i.direction===`in`?0:n-a,s=i.direction===`in`?a:n,c=s-o,l=c<=1e-9?+(r>=s):fe((r-o)/c),u=he(i.easing,l);for(let n of t){let t=ve(i.direction===`in`?n.enter:n.exit,n.unit,e.width,e.height),r=ve(n.neutral,n.unit,e.width,e.height),a=i.direction===`in`?t:r,o=a+((i.direction===`in`?r:t)-a)*u;switch(n.property){case`scale`:e.scaleX*=o,e.scaleY*=o;break;case`offsetX`:e.x+=o;break;case`offsetY`:e.y+=o;break;case`rotation`:e.rotation+=o}}}}function j(){return{a:1,b:0,c:0,d:1,e:0,f:0}}function M(e,t,n){let r=e.a*t.a+e.c*t.b,i=e.b*t.a+e.d*t.b,a=e.a*t.c+e.c*t.d,o=e.b*t.c+e.d*t.d,s=e.a*t.e+e.c*t.f+e.e,c=e.b*t.e+e.d*t.f+e.f;return n.a=r,n.b=i,n.c=a,n.d=o,n.e=s,n.f=c,n}var N=Math.PI/180;function P(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=n*N,h=Math.cos(m),g=Math.sin(m),_=Math.tan(r*N),v=Math.tan(i*N),y=d?-a:a,b=f?-o:o,x=(h-g*v)*y,S=(g+h*v)*y,C=(h*_-g)*b,w=(g*_+h)*b,T=-s*l,E=-c*u;return p.a=x,p.b=S,p.c=C,p.d=w,p.e=x*T+C*E+e,p.f=S*T+w*E+t,p}function F(e,t,n){return P(t.x,t.y,t.rotation,t.skewX,t.skewY,t.scaleX,t.scaleY,e.anchorX,e.anchorY,t.width,t.height,e.flipX,e.flipY,n)}function I(e,t,n,r){return P(e.x,e.y,e.rotation,e.skewX,e.skewY,e.scaleX,e.scaleY,e.anchorX,e.anchorY,t,n,e.flipX,e.flipY,r)}function be(e,t){let n=e.a*e.d-e.b*e.c;if(!Number.isFinite(n)||Math.abs(n)<1e-12)return!1;let r=1/n;return t.a=e.d*r,t.b=-e.b*r,t.c=-e.c*r,t.d=e.a*r,t.e=(e.c*e.f-e.d*e.e)*r,t.f=(e.b*e.e-e.a*e.f)*r,!0}function L(e,t,n){return e.a*t+e.c*n+e.e}function R(e,t,n){return e.b*t+e.d*n+e.f}function xe(e,t,n){return e.a*t+e.c*n}function Se(e,t,n){return e.b*t+e.d*n}function Ce(e){return e?e.scenes.find(t=>t.id===e.activeSceneId)??e.scenes[0]??null:null}function we(e,t){return e?.scenes.find(e=>e.id===t)??null}function z(e,t,n){for(let r of e){if(r.id===t)return{clip:r,chain:[...n]};if(r.kind===`group`){n.push(r);let e=z(r.children,t,n);if(n.pop(),e)return e}}return null}function B(e,t){for(let n of e.tracks){let e=z(n.clips,t,[]);if(e)return e}return null}function Te(e){return e.clip.locked||e.chain.some(e=>e.locked)}function V(e,t){let n=t;for(let t of e.chain)n-=t.timeRange.start;return n-e.clip.timeRange.start}function Ee(e,t){t.a=1,t.b=0,t.c=0,t.d=1,t.e=0,t.f=0;let n=j();for(let r of e)I(r.transform,r.size.width,r.size.height,n),M(t,n,t);return t}function De(e,t,n){n.a=1,n.b=0,n.c=0,n.d=1,n.e=0,n.f=0;let r=j(),i=t;for(let t of e){let e=i-t.timeRange.start;F(t.transform,A(t,Oe(t,e)),r),M(n,r,n),i=e}return n}function Oe(e,t){return Math.min(Math.max(t,0),e.timeRange.duration)}function H(e,t,n){De(e.chain,t,n);let r=Oe(e.clip,V(e,t)),i=j();return F(e.clip.transform,A(e.clip,r),i),M(n,i,n)}function ke(e,t){let n=e.scenes.findIndex(e=>e.id===t);return n===-1?null:[`scenes`,n]}function Ae(e,t,n){for(let r=0;r<e.length;r++){let i=e[r],a=[...n,r];if(i.id===t)return a;if(i.kind===`group`){let e=Ae(i.children,t,[...a,`children`]);if(e)return e}}return null}function je(e,t){for(let n=0;n<e.scenes.length;n++){let r=e.scenes[n];for(let e=0;e<r.tracks.length;e++){let i=Ae(r.tracks[e].clips,t,[`scenes`,n,`tracks`,e,`clips`]);if(i)return i}}return null}var U=[[0,0],[.5,0],[1,0],[1,.5],[1,1],[.5,1],[0,1],[0,.5]],W=24,Me={active:`#d6d6d6`,inactive:`#8f8f8f`},G=j(),K=new Float64Array(18),q=new Float64Array(18);function Ne(e,t,n){let r=Math.min(Math.max(n.width,328),t.width-16);return{x:Math.max(8+r/2,Math.min(e.x,t.width-r/2-8))-n.width/2,y:Math.max(8,Math.min(e.y-n.height-12,t.height-n.height-8))}}function J(e,t,n,r,i=0,a=0){H(e,t,G);let o=Math.min(Math.max(V(e,t),0),e.clip.timeRange.duration),s=A(e.clip,o);for(let e=0;e<U.length;e++){let t=U[e],o=t[0]*s.width,c=t[1]*s.height;r[e*2]=(L(G,o,c)+i)*n.zoom+n.panX,r[e*2+1]=(R(G,o,c)+a)*n.zoom+n.panY}let c=r[2],l=r[3],u=(L(G,s.width/2,s.height/2)+i)*n.zoom+n.panX,d=(R(G,s.width/2,s.height/2)+a)*n.zoom+n.panY,f=c-u,p=l-d,m=Math.hypot(f,p);m<1e-6?(f=0,p=-1):(f/=m,p/=m),r[16]=c+f*W,r[17]=l+p*W}function Pe(e,t,n,r){let i=1/0,a=1/0,o=-1/0;for(let s of r){let r=B(e,s);if(r&&r.clip.kind!==`audio`){J(r,t,n,q,e.x,e.y);for(let e of[0,2,4,6]){let t=q[e*2],n=q[e*2+1];i=Math.min(i,t),a=Math.min(a,n),o=Math.max(o,t)}}}return Number.isFinite(i)?{x:(i+o)/2,y:a}:null}function Fe(e,t){let n=null,r=new Float64Array(18),i=(a,o,s)=>{for(let c of a){let a=s-c.timeRange.start;if(c.hidden||c.kind===`audio`||c.opacity<=0||a<0||a>c.timeRange.duration)continue;if(c.kind===`group`&&!c.frame?.clip&&!c.mask?.enabled){i(c.children,[...o,c],a);continue}J({clip:c,chain:o},t,{zoom:1,panX:0,panY:0},r,e.x,e.y);let l=[r[0],r[4],r[8],r[12]],u=[r[1],r[5],r[9],r[13]];if(![...l,...u].every(Number.isFinite))continue;let d={minX:Math.min(...l),minY:Math.min(...u),maxX:Math.max(...l),maxY:Math.max(...u)};d.maxX<=d.minX||d.maxY<=d.minY||(n=n?{minX:Math.min(n.minX,d.minX),minY:Math.min(n.minY,d.minY),maxX:Math.max(n.maxX,d.maxX),maxY:Math.max(n.maxY,d.maxY)}:d)}};for(let n of e.tracks)n.hidden||i(n.clips,[],t);return n}var Y=j(),X=j();function Ie(e){let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e){let e=a.clip;if(!(e.kind===`audio`||e.size.width<=0||e.size.height<=0)){I(e.transform,e.size.width,e.size.height,Y);for(let a=0;a<4;a++){let o=+(a===1||a===2)*e.size.width,s=+(a>=2)*e.size.height,c=L(Y,o,s),l=R(Y,o,s);c<t&&(t=c),l<n&&(n=l),c>r&&(r=c),l>i&&(i=l)}}}return Number.isFinite(t)?{minX:t,minY:n,maxX:r,maxY:i}:null}function Le(e){let t=e[0]?.chain??[];for(let n of e){if(n.chain.length!==t.length)return null;for(let e=0;e<t.length;e++)if(n.chain[e]!==t[e])return null}return t}function Re(e,t,n,r,i,a){Ee(t,X);let o=(e,t)=>(L(X,e,t)+r)*n.zoom+n.panX,s=(e,t)=>(R(X,e,t)+i)*n.zoom+n.panY;for(let t=0;t<U.length;t++){let n=U[t],r=e.minX+n[0]*(e.maxX-e.minX),i=e.minY+n[1]*(e.maxY-e.minY);a[t*2]=o(r,i),a[t*2+1]=s(r,i)}let c=a[2],l=a[3],u=o((e.minX+e.maxX)/2,(e.minY+e.maxY)/2),d=s((e.minX+e.maxX)/2,(e.minY+e.maxY)/2),f=c-u,p=l-d,m=Math.hypot(f,p);m<1e-6?(f=0,p=-1):(f/=m,p/=m),a[16]=c+f*W,a[17]=l+p*W}var ze=e=>`12px ${e.fontUi}`,Be=16;function Ve(e,t,n,r){e.font=ze(r);let i=Math.max(e.measureText(t.name).width+8,24);return{x:t.x*n.zoom+n.panX,y:t.y*n.zoom+n.panY-Be-4,w:i,h:Be}}function He(e,t,n,r,i){e.globalAlpha=1,e.globalCompositeOperation=`source-over`,e.font=ze(i),e.textBaseline=`alphabetic`,e.textAlign=`left`;for(let a of t.scenes){let o=a.id===t.activeSceneId,s=a.id===r,c=a.x*n.zoom+n.panX,l=a.y*n.zoom+n.panY;s&&(e.strokeStyle=i.accent,e.lineWidth=1.5,e.strokeRect(c,l,a.width*n.zoom,a.height*n.zoom)),e.fillStyle=s?i.accent:o?Me.active:Me.inactive,o||e.fillText(a.name,c+1,l-7)}}var Z=new Float64Array(18),Ue=`500 11px Inter, system-ui, sans-serif`,We=8,Ge=18;function Ke(e,t,n,r,i,a,o){let s=1/0,c=-1/0,l=-1/0,u=1/0,d=null,f=0;for(let e of a){let i=B(t,e);if(i&&i.clip.kind!==`audio`){f++,d=i.clip,J(i,n,r,Z,t.x,t.y);for(let e of[0,2,4,6])s=Math.min(s,Z[e*2]),c=Math.max(c,Z[e*2]),u=Math.min(u,Z[e*2+1]),l=Math.max(l,Z[e*2+1])}}if(f===0||!Number.isFinite(s))return null;let[p,m]=f===1&&d?[d.size.width*Math.abs(d.transform.scaleX),d.size.height*Math.abs(d.transform.scaleY)]:[(c-s)/r.zoom,(l-u)/r.zoom],h=`${Math.round(p)} × ${Math.round(m)}`;e.setTransform(i,0,0,i,0,0),e.globalAlpha=1,e.font=Ue;let g=e.measureText(h).width+12,_=(s+c)/2-g/2,v=l+We;return e.fillStyle=o.accent,e.beginPath(),e.roundRect(_,v,g,Ge,4),e.fill(),e.fillStyle=`#111111`,e.textBaseline=`middle`,e.textAlign=`center`,e.fillText(h,_+g/2,v+Ge/2+.5),e.textAlign=`left`,e.textBaseline=`alphabetic`,h}function qe(e,t,n,r,i,a,o){e.setTransform(i,0,0,i,0,0),e.globalAlpha=1,e.globalCompositeOperation=`source-over`;let s=t.x,c=t.y,l=a.length>1,u=[];for(let d of a){let a=B(t,d);if(!a||a.clip.kind===`audio`)continue;u.push(a);let f=a.clip.mask;f&&f.enabled&&Qe(e,a,f,n,r,i,s,c),J(a,n,r,K,s,c),e.strokeStyle=o.accent,e.lineWidth=l?1:1.5,e.beginPath(),e.moveTo(K[0],K[1]),e.lineTo(K[4],K[5]),e.lineTo(K[8],K[9]),e.lineTo(K[12],K[13]),e.closePath(),e.stroke(),l||(e.beginPath(),e.moveTo(K[2],K[3]),e.lineTo(K[16],K[17]),e.stroke(),Je(e,K,o))}if(l&&u.length>0){let t=Le(u),n=t?Ie(u):null;n&&t&&(Re(n,t,r,s,c,K),e.strokeStyle=o.accent,e.lineWidth=1.5,e.beginPath(),e.moveTo(K[0],K[1]),e.lineTo(K[4],K[5]),e.lineTo(K[8],K[9]),e.lineTo(K[12],K[13]),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(K[2],K[3]),e.lineTo(K[16],K[17]),e.stroke(),Je(e,K,o))}}function Je(e,t,n){e.lineWidth=1,e.strokeStyle=n.accent,e.fillStyle=n.white;for(let n=0;n<8;n++){let r=t[n*2],i=t[n*2+1];e.fillRect(r-4,i-4,8,8),e.strokeRect(r-4,i-4,8,8)}e.beginPath(),e.arc(t[16],t[17],4.5,0,Math.PI*2),e.fill(),e.stroke()}var Ye=`rgba(255, 255, 255, 0.65)`,Xe=[4,4],Ze=[],Q=j();function Qe(e,t,n,r,i,a,o,s){let c=Math.min(Math.max(V(t,r),0),t.clip.timeRange.duration),l=A(t.clip,c);l.width<=0||l.height<=0||(H(t,r,Q),e.save(),e.setTransform(i.zoom*a,0,0,i.zoom*a,i.panX*a,i.panY*a),e.transform(1,0,0,1,o,s),e.transform(Q.a,Q.b,Q.c,Q.d,Q.e,Q.f),et(e,n),e.setTransform(a,0,0,a,0,0),e.strokeStyle=Ye,e.lineWidth=1,e.setLineDash(Xe),e.stroke(),e.setLineDash(Ze),e.restore())}var $e=Math.PI*2;function et(e,t){let n=t.rotation*Math.PI/180,r=Math.max(t.width,0)/2,i=Math.max(t.height,0)/2;e.translate(t.x,t.y),n!==0&&e.rotate(n),e.beginPath(),t.shape===`ellipse`?e.ellipse(0,0,r,i,0,0,$e):t.cornerRadius>0?e.roundRect(-r,-i,r*2,i*2,Math.min(t.cornerRadius,r,i)):e.rect(-r,-i,r*2,i*2),n!==0&&e.rotate(-n),e.translate(-t.x,-t.y)}var tt=e=>{let t=n.useId();return n.createElement(at,{...e,instanceId:t})},nt=0,rt=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++nt}`})}render(){return n.createElement(at,{...this.props.iconProps,instanceId:this.state.instanceId})}},it=n.forwardRef((e,t)=>rt?n.createElement(rt,{iconProps:{...e,svgRef:t}}):n.createElement(tt,{...e,svgRef:t}));it.displayName=`CentralIconBase`;var at=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},ot=n.memo(n.forwardRef((e,t)=>n.createElement(it,{...e,ref:t,ariaLabel:`arrow-rotate-counter-clockwise, rotate-left`,maskId:`round-outlined-radius-2-stroke-1.5-IconArrowRotateCounterClockwise`},n.createElement(`path`,{d:`M5.4998 7.00891C7.32073 4.95438 9.20364 3.75 12.0208 3.75C16.5771 3.75 20.2708 7.44365 20.2708 12C20.2708 16.5563 16.5771 20.25 12.0208 20.25C8.42869 20.25 5.37278 17.9543 4.24023 14.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M4.75 4V7.25C4.75 7.66421 5.08579 8 5.5 8H8.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),st=e=>{let t=n.useId();return n.createElement($,{...e,instanceId:t})},ct=0,lt=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++ct}`})}render(){return n.createElement($,{...this.props.iconProps,instanceId:this.state.instanceId})}},ut=n.forwardRef((e,t)=>lt?n.createElement(lt,{iconProps:{...e,svgRef:t}}):n.createElement(st,{...e,svgRef:t}));ut.displayName=`CentralIconBase`;var $=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},dt=n.memo(n.forwardRef((e,t)=>n.createElement(ut,{...e,ref:t,ariaLabel:`chain-link-1,url`,maskId:`round-outlined-radius-2-stroke-1.5-IconChainLink1`},n.createElement(`path`,{d:`M13.25 17.75L10.9142 20.0858C10.1332 20.8668 8.86684 20.8668 8.08579 20.0858L3.91422 15.9142C3.13317 15.1332 3.13317 13.8668 3.91422 13.0858L6.25 10.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M10.75 6.2497L13.0858 3.91391C13.8668 3.13286 15.1332 3.13286 15.9142 3.91391L20.0858 8.08548C20.8668 8.86653 20.8668 10.1329 20.0858 10.9139L17.75 13.2497`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M9 15L15 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{L as A,we as C,xe as D,j as E,E as F,b as I,m as L,A as M,de as N,Se as O,ae as P,c as R,Te as S,F as T,V as _,Ne as a,je as b,qe as c,Ve as d,Ie as f,Ee as g,Ce as h,Re as i,R as j,be as k,Ke as l,Le as m,ot as n,J as o,Pe as p,U as r,He as s,dt as t,Fe as u,H as v,I as w,ke as x,B as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-B-hcVAMW.js";import{wr as r}from"./useOpenInteractionType-DbrQ6Ehu.js";import{d as i}from"./session-B9sZaFKC.js";import{a,p as o,s}from"../editor-Csn2_T_e.js";import{c,d as l,g as u,l as d,m as f,n as p,s as m,t as h,u as g}from"./components-e3ZbUVns.js";var _=e(t(),1),v=e(r(),1),y=n(),b={direction:`row`,gap:16,padding:{top:16,right:16,bottom:16,left:16},align:`start`,justify:`start`};function x(e){return e.layoutSizing??{width:`fixed`,height:e.kind===`text`||e.kind===`group`&&e.autoLayout!=null?`hug`:`fixed`}}function S(e,t){return e?e[t]===`hug`?{available:!1,reason:`Fill ${t} is unavailable because the parent hugs its ${t}.`}:{available:!0,reason:null}:{available:!1,reason:`Fill is only available inside an Auto Layout parent.`}}function C(e,t,n,r,i,a){for(let o=0;o<e.length;o++){let s=e[o],c=[...n,o],l=i??(s.kind===`group`&&s.component!=null?s:null),u=a||s.locked;if(s.id===t){let e=l!==null&&l.id!==s.id,t=r?.autoLayout!=null,n=t?x(r):null,i=s.kind===`group`&&s.component==null&&!e,a=i?s.autoLayout??null:null;return{clip:s,path:c,parent:r,locked:u,sealed:e,canOwnLayout:i,canEditSizing:!e&&(t||a!==null),layout:a,sizing:x(s),widthFill:S(n,`width`),heightFill:S(n,`height`)}}if(s.kind===`group`){let e=C(s.children,t,[...c,`children`],s,l,u);if(e)return e}}return null}function w(e,t){return T(e,t)}function T(e,t){for(let n=0;n<(e?.scenes.length??0);n++){let r=e.scenes[n];for(let e=0;e<r.tracks.length;e++){let i=r.tracks[e],a=C(i.clips,t,[`scenes`,n,`tracks`,e,`clips`],null,null,i.locked);if(a)return a}}return null}function E(){return globalThis.crypto?.randomUUID?.()??`auto-layout-${Date.now().toString(36)}`}function D(e,t,n,r,i=null){let a=T(e,t);if(!a||a.locked||a.sealed)return null;let o=r(a);return o===a.clip?null:{id:E(),name:n,coalesceKey:i,ops:[{op:`set`,path:a.path,value:o}]}}function O(e,t){if(!e?.canOwnLayout||!e.layout)return null;if(t===`gap`)return e.layout.gap;let n=t.slice(8);return e.layout.padding[n]}function k(e,t,n){if(!e.canOwnLayout||!e.layout)return e.clip;let r=e.clip;if(t===`gap`)return{...r,autoLayout:{...e.layout,gap:n}};let i=t.slice(8);return{...r,autoLayout:{...e.layout,padding:{...e.layout.padding,[i]:n}}}}var A=[{value:`row`,label:`Horizontal`},{value:`column`,label:`Vertical`}],j=[{value:`start`,label:`Start`},{value:`center`,label:`Center`},{value:`end`,label:`End`}],M=[...j,{value:`space-between`,label:`Space between`}];function N(e){return[{value:`fixed`,label:`Fixed`},{value:`hug`,label:`Hug`},{value:`fill`,label:`Fill`,disabled:!e.available,title:e.reason??void 0}]}function P({canOwnLayout:e,layout:t,sizing:n,disabled:r,pending:i,error:a,onAdd:o,onRemove:s,onLayoutChange:u,onNumericLayoutChange:f,onSizingChange:p}){let v=r||i,b=(0,_.useRef)({}),[x,S]=(0,_.useState)(null),C=e=>r||i&&x!==e,w=(e,n)=>{let r=Math.max(0,n);if(f){f(e,r,b.current[e]??null);return}if(!t)return;if(e===`gap`){u({...t,gap:r});return}let i=e.slice(8);u({...t,padding:{...t.padding,[i]:r}})},T=e=>({onGestureStart:()=>{b.current[e]=`auto-layout:${e}:${E()}`,S(e)},onGestureEnd:()=>{delete b.current[e],S(t=>t===e?null:t)}});return(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)(g,{title:`Auto Layout`,actions:t&&(0,y.jsx)(h,{disabled:v,onClick:s,children:`Remove Auto Layout`}),children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d,{label:`Direction`,children:(0,y.jsx)(l,{value:t.direction,options:A,disabled:v,label:`Auto layout direction`,onChange:e=>u({...t,direction:e})})}),(0,y.jsx)(d,{label:`Gap`,children:(0,y.jsx)(c,{label:`Auto layout gap`,value:t.gap,min:0,disabled:C(`gap`),onCommit:e=>w(`gap`,e),...T(`gap`)})}),(0,y.jsx)(d,{label:`Padding`,children:[`top`,`right`,`bottom`,`left`].map(e=>(0,y.jsx)(c,{label:`Auto layout padding ${e}`,title:e,value:t.padding[e],min:0,disabled:C(`padding.${e}`),onCommit:t=>w(`padding.${e}`,t),...T(`padding.${e}`)},e))}),(0,y.jsx)(d,{label:`Align`,children:(0,y.jsx)(l,{value:t.align,options:j,disabled:v,label:`Auto layout alignment`,onChange:e=>u({...t,align:e})})}),(0,y.jsx)(d,{label:`Justify`,children:(0,y.jsx)(l,{value:t.justify,options:M,disabled:v,label:`Auto layout justification`,onChange:e=>u({...t,justify:e})})})]}):(0,y.jsx)(h,{className:`w-full`,disabled:v,onClick:o,children:`Add Auto Layout`})}),n&&(0,y.jsxs)(g,{title:`Layout sizing`,children:[(0,y.jsx)(d,{label:`Width`,children:(0,y.jsx)(l,{value:n.value.width,options:N(n.widthFill),disabled:v,label:`Layout width`,onChange:e=>p({...n.value,width:e})})}),!n.widthFill.available&&(0,y.jsx)(m,{children:n.widthFill.reason}),(0,y.jsx)(d,{label:`Height`,children:(0,y.jsx)(l,{value:n.value.height,options:N(n.heightFill),disabled:v,label:`Layout height`,onChange:e=>p({...n.value,height:e})})}),!n.heightFill.available&&n.heightFill.reason!==n.widthFill.reason&&(0,y.jsx)(m,{children:n.heightFill.reason})]}),r&&(0,y.jsx)(m,{children:`Auto Layout is unavailable because this layer or an ancestor is locked.`}),(0,y.jsx)(`span`,{role:`status`,className:`sr-only`,children:i?`Applying Auto Layout…`:``}),a&&(0,y.jsx)(`div`,{role:`alert`,className:`fui-auto-layout-error`,children:a})]})}function F(e){return e instanceof Error?e.message:String(e)}function I(e,t){let n=(0,_.useRef)(null),[r,i]=(0,_.useState)(0);return(0,_.useLayoutEffect)(()=>{if(e||r===0||!n.current)return;let{target:t,fallback:i}=n.current;n.current=null;let a=t?.isConnected&&!t.matches(`:disabled`)?t:null,o=i?.isConnected?i:null;(a??o)?.focus()},[e,r]),{capture:()=>{let e=t.current,r=e?.ownerDocument.activeElement;n.current={target:r,fallback:e?.closest(`[role="dialog"]`)??e}},restoreAfterCommit:()=>i(e=>e+1)}}function L({clipId:e,enableOnOpen:t=!1}){let n=o(),r=a(i),c=s(t=>w(t,e)),[l,u]=(0,_.useState)(!1),[d,f]=(0,_.useState)(null),[p,h]=(0,_.useState)(0),g=(0,_.useRef)(!1),v=(0,_.useRef)(!1),x=(0,_.useRef)(!0),S=(0,_.useRef)(!1),C=(0,_.useRef)([]),T=(0,_.useRef)(0),E=(0,_.useRef)(null),A=I(l,E);(0,_.useEffect)(()=>(x.current=!0,()=>{x.current=!1}),[]),(0,_.useEffect)(()=>{T.current+=1,C.current=[];let e=r?.onEvent(e=>{(e?.type===`opened`||e?.type===`closed`)&&(T.current+=1,C.current=[],x.current&&h(e=>e+1))});return()=>{e?.dispose(),T.current+=1,C.current=[]}},[e,r]);let j=async(t,i)=>{if(v.current)return;let a=r?.snapshot();if(!a)return;let o=D(a,e,t,i);if(!o){f(`Auto Layout is unavailable for this layer.`);return}A.capture(),v.current=!0,u(!0),f(null);try{await n.commands.execute(`document.apply`,o)}catch(e){x.current&&f(F(e))}finally{v.current=!1,x.current&&(u(!1),A.restoreAfterCommit())}},M=async()=>{if(S.current)return;S.current=!0,v.current=!0;let t=!1,i=!1;try{for(;C.current.length>0;){let a=C.current.shift();if(!x.current||a.lifecycle!==T.current)continue;let o=r?.snapshot();if(!o)break;if(O(w(o,e),a.field)===a.value)continue;let s=D(o,e,`Edit Auto Layout`,e=>k(e,a.field,a.value),a.coalesceKey);if(!s){C.current=[],x.current&&a.lifecycle===T.current&&f(`Auto Layout is unavailable for this layer.`);break}t||(i=a.coalesceKey===null,i&&A.capture(),t=!0,u(!0),f(null));try{await n.commands.execute(`document.apply`,s)}catch(e){C.current=[],x.current&&a.lifecycle===T.current&&f(F(e));break}}}finally{S.current=!1,v.current=!1,x.current&&t&&(u(!1),i&&A.restoreAfterCommit())}},N=(e,t,n)=>{let r={field:e,value:t,coalesceKey:n,lifecycle:T.current},i=C.current.at(-1);n!==null&&i?.field===e&&i.coalesceKey===n?C.current[C.current.length-1]=r:C.current.push(r),M()},L=()=>{j(`Add Auto Layout`,e=>e.canOwnLayout&&e.layout===null?{...e.clip,autoLayout:{...b,padding:{...b.padding}}}:e.clip)};return(0,_.useEffect)(()=>{t&&!g.current&&c&&c.layout===null&&(g.current=!0,L())},[t,c?.clip.id]),c?!c.canOwnLayout&&!c.canEditSizing?c.sealed?(0,y.jsx)(m,{children:`Component internals are sealed. Select the component instance to size it as one layout child.`}):null:(0,y.jsx)(`div`,{ref:E,className:l&&!c.locked?`fui-auto-layout-busy`:void 0,children:(0,y.jsx)(P,{canOwnLayout:c.canOwnLayout,layout:c.layout,sizing:c.canEditSizing?{value:c.sizing,widthFill:c.widthFill,heightFill:c.heightFill}:null,disabled:c.locked,pending:l,error:d,onAdd:L,onRemove:()=>void j(`Remove Auto Layout`,e=>e.canOwnLayout?{...e.clip,autoLayout:null}:e.clip),onLayoutChange:e=>void j(`Edit Auto Layout`,t=>t.canOwnLayout?{...t.clip,autoLayout:e}:t.clip),onNumericLayoutChange:N,onSizingChange:e=>void j(`Change layout sizing`,t=>!t.canEditSizing||e.width===`fill`&&!t.widthFill.available||e.height===`fill`&&!t.heightFill.available?t.clip:{...t.clip,layoutSizing:e})},`${e}:${p}`)}):(0,y.jsx)(m,{children:`Layer not found.`})}function R({selectionIds:e,onReady:t}){let n=o(),[r,i]=(0,_.useState)(null),a=(0,_.useRef)(null),s=(0,_.useRef)(null);return(0,_.useEffect)(()=>{let r=s.current?.ownerDocument.activeElement,o=!0;return a.current??=n.commands.execute(`fable.transport.groupAutoLayout`,{clipIds:[...e]}),a.current.then(e=>{o&&(typeof e==`string`?t(e):i(`Select at least two unlocked top-level layers in the same scene.`))}).catch(e=>{o&&i(F(e))}).finally(()=>{r?.isConnected&&r.focus()}),()=>{o=!1}},[n,t,e]),(0,y.jsx)(`div`,{ref:s,children:r?(0,y.jsx)(`div`,{role:`alert`,className:`fui-auto-layout-error`,children:r}):(0,y.jsx)(m,{children:`Grouping and adding Auto Layout…`})})}function z({clipIds:e}){let t=o(),[n,r]=(0,_.useState)(!1),[i,a]=(0,_.useState)(null),s=(0,_.useRef)(!1),c=(0,_.useRef)(!0),l=(0,_.useRef)(null),u=I(n,l);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]);let d=async()=>{if(!s.current){u.capture(),s.current=!0,r(!0),a(null);try{typeof await t.commands.execute(`fable.transport.groupAutoLayout`,{clipIds:[...e]})!=`string`&&c.current&&a(`Select at least two unlocked top-level layers in the same scene.`)}catch(e){c.current&&a(F(e))}finally{s.current=!1,c.current&&(r(!1),u.restoreAfterCommit())}}};return(0,y.jsx)(`div`,{ref:l,children:(0,y.jsxs)(g,{title:`Auto Layout`,children:[(0,y.jsx)(h,{className:`w-full`,disabled:n,onClick:()=>void d(),children:n?`Adding Auto Layout…`:`Add Auto Layout`}),(0,y.jsx)(m,{children:`Keeps current positions. Reflows when you edit layout or content.`}),i&&(0,y.jsx)(`div`,{role:`alert`,className:`fui-auto-layout-error`,children:i})]})})}function B({x:e,y:t,clipId:n,selectionIds:r,enableOnOpen:i=!1,onClose:a}){let o=(0,_.useRef)(null),s=(0,_.useRef)(null),c=(0,_.useRef)(a);c.current=a;let[l,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(n??null),[h,g]=(0,_.useState)({left:e,top:t}),b=(0,_.useRef)(null);(0,_.useLayoutEffect)(()=>{d(u(o.current))},[]),(0,_.useLayoutEffect)(()=>{let n=s.current;if(!n)return;let r=n.ownerDocument.defaultView??window;b.current??=n.ownerDocument.activeElement;let i=()=>{let i=n.getBoundingClientRect();g({left:Math.max(8,Math.min(e,r.innerWidth-i.width-8)),top:Math.max(8,Math.min(t,r.innerHeight-i.height-8))})};i();let a=new r.ResizeObserver(i);return a.observe(n),r.addEventListener(`resize`,i),n.focus(),()=>{a.disconnect(),r.removeEventListener(`resize`,i)}},[l,e,t]),(0,_.useEffect)(()=>{let e=s.current;if(!e)return;let t=e.ownerDocument.defaultView??window,n=n=>{n.target instanceof t.Node&&!e.contains(n.target)&&(e.querySelector(`:focus`)?.blur(),c.current())};return t.addEventListener(`pointerdown`,n,!0),()=>t.removeEventListener(`pointerdown`,n,!0)},[l]),(0,_.useEffect)(()=>()=>{b.current?.isConnected&&b.current.focus()},[]);let x={position:`fixed`,...h,zIndex:1e3};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{ref:o,hidden:!0}),l&&(0,v.createPortal)((0,y.jsxs)(`div`,{ref:s,role:`dialog`,"aria-label":`Auto Layout settings`,tabIndex:-1,className:`fui-auto-layout-popover`,style:x,onContextMenu:e=>e.preventDefault(),onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),a())},children:[(0,y.jsxs)(`div`,{className:`fui-component-popover-head`,children:[(0,y.jsx)(`span`,{className:`fui-component-popover-title`,children:`Auto Layout`}),(0,y.jsx)(`button`,{type:`button`,className:`fui-component-close`,"aria-label":`Close Auto Layout`,onClick:a,children:`×`})]}),f?(0,y.jsx)(L,{clipId:f,enableOnOpen:i}):r&&r.length>1?(0,y.jsx)(R,{selectionIds:r,onReady:p}):(0,y.jsx)(m,{children:`Select an ordinary group or at least two layers.`})]}),l)]})}function V(e){return e.kind===`group`&&e.component!=null}function H(e,t,n,r){for(let i of e){let e=V(i)?i:n,a=r||i.locked;if(i.id===t)return{target:e?{clip:e,locked:a}:null};if(i.kind===`group`){let n=H(i.children,t,e,a);if(n)return n}}return null}function U(e,t){for(let n of e?.scenes??[])for(let e of n.tracks){let n=H(e.clips,t,null,e.locked);if(n)return n.target}return null}function W({name:e,spec:t,value:n,assets:r,onCommit:i}){let a=t.label??e;switch(t.type){case`string`:return(0,y.jsx)(d,{label:a,children:(0,y.jsx)(f,{label:a,value:typeof n==`string`?n:String(n??``),onCommit:e=>i(e)})});case`color`:return(0,y.jsx)(d,{label:a,children:(0,y.jsx)(p,{label:a,value:typeof n==`string`?n:`#ffffff`,commitOnChangeEnd:!0,onCommit:e=>i(e)})});case`number`:{let e=typeof n==`number`?n:Number(n)||0;return(0,y.jsx)(d,{label:a,children:(0,y.jsx)(c,{title:a,value:e,step:t.step??1,...typeof t.min==`number`?{min:t.min}:{},...typeof t.max==`number`?{max:t.max}:{},onCommit:e=>i(e)})})}case`boolean`:return(0,y.jsx)(d,{label:a,children:(0,y.jsx)(`input`,{type:`checkbox`,"aria-label":a,checked:n===!0,onChange:e=>i(e.target.checked)})});case`asset`:{let e=r.filter(e=>!t.assetKinds||t.assetKinds.includes(e.kind)),o=typeof n==`string`?n:``,s=o!==``&&!e.some(e=>e.id===o);return(0,y.jsx)(d,{label:a,children:(0,y.jsxs)(`div`,{className:`fui-component-asset`,children:[(0,y.jsx)(l,{title:`Replace ${a}`,value:o,options:[{value:``,label:`None`},...s?[{value:o,label:`Unavailable: ${o}`,disabled:!0}]:[],...e.map(e=>({value:e.id,label:`${e.name} (${e.kind})`}))],onChange:e=>i(e===``?null:e)}),s&&(0,y.jsx)(`span`,{className:`fui-component-error`,children:`Choose a compatible project asset or clear this slot.`}),e.length===0&&(0,y.jsx)(`span`,{className:`fui-muted`,children:t.assetKinds?.length===0?`This slot only accepts None.`:`No compatible assets. Import a matching asset in Project first.`})]})})}case`select`:return(0,y.jsx)(d,{label:a,children:(0,y.jsx)(l,{title:a,value:typeof n==`string`?n:String(t.default),options:(t.options??[]).map(e=>({value:e,label:e})),onChange:e=>i(e)})})}}var G=new WeakMap;function K({docs:e,documentId:t,target:n,manifest:r,assets:i}){let a=o(),[s,c]=(0,_.useState)({}),[l,u]=(0,_.useState)(!1),[d,f]=(0,_.useState)(null),p=(0,_.useRef)(!1),h=(0,_.useRef)(!1),{clip:g,locked:v}=n;(0,_.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]);let b=(n,i)=>{if(v||p.current)return;let o=r.params[n],s=g.component.params[n]===void 0?o?.default:g.component.params[n];if(Object.is(s,i))return;p.current=!0,c({[n]:i}),u(!0),f(null);let l=!1,d=e.onEvent(t=>{t.type===`opened`&&(l=!0,G.delete(e))}),m=(G.get(e)??Promise.resolve()).then(async()=>{let r=e.snapshot(),o=U(r,g.id);if(l||r?.id!==t||o?.clip.component.assetId!==g.component.assetId)throw Error(`The component or project changed. Reopen its props and try again.`);if(o.locked)throw Error(`Unlock the component and its parent track before editing props.`);await a.commands.execute(`agent.component_update`,{clipId:g.id,params:{[n]:i}})}).catch(e=>{let t=e instanceof Error?e.message:String(e);a.log.error(`Component props update failed`,t),h.current&&f(t)}).finally(()=>{d.dispose(),p.current=!1,h.current&&(c({}),u(!1))});G.set(e,m)},x={...g.component.params,...s};return(0,y.jsxs)(`div`,{className:`fui-component-props`,children:[(0,y.jsx)(`div`,{className:`fui-component-popover-title`,children:r.title??r.name}),(0,y.jsxs)(m,{children:[g.name,` · Changes apply to this instance only.`]}),v&&(0,y.jsx)(m,{children:`Unlock this component and its parent track to edit props.`}),(0,y.jsx)(`fieldset`,{className:`fui-component-fields`,disabled:l||v,"aria-busy":l,children:Object.entries(r.params).map(([e,t])=>(0,y.jsx)(W,{name:e,spec:t,value:x[e]===void 0?t.default:x[e],assets:i,onCommit:t=>b(e,t)},e))}),Object.keys(r.params).length===0&&(0,y.jsx)(m,{children:`This component exposes no props.`}),l&&(0,y.jsx)(`div`,{role:`status`,className:`fui-muted fui-note`,children:`Updating component…`}),d&&(0,y.jsxs)(`div`,{role:`alert`,className:`fui-component-error`,children:[`Change not applied: `,d]})]})}function q({clipId:e}){let t=a(i),n=s(e=>e);if(!t)return(0,y.jsx)(m,{children:`Loading component props…`});let r=U(n,e);if(!n||!r)return(0,y.jsx)(m,{children:`This component is no longer available in the open project.`});let o=n.assets.find(e=>e.id===r.clip.component.assetId),c=o?.kind===`component`?o.component:void 0;return c?(0,y.jsx)(K,{docs:t,documentId:n.id,target:r,manifest:c,assets:n.assets},`${n.id}:${r.clip.id}:${r.clip.component.assetId}`):(0,y.jsx)(m,{children:`The component definition is missing. Restore it to edit this instance.`})}var J=e=>{let t=_.useId();return _.createElement(Q,{...e,instanceId:t})},Y=0,X=typeof _.useId==`function`?void 0:class extends _.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++Y}`})}render(){return _.createElement(Q,{...this.props.iconProps,instanceId:this.state.instanceId})}},Z=_.forwardRef((e,t)=>X?_.createElement(X,{iconProps:{...e,svgRef:t}}):_.createElement(J,{...e,svgRef:t}));Z.displayName=`CentralIconBase`;var Q=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:i,"aria-hidden":a,"aria-label":o,role:s,svgRef:c,renderShapes:l,style:u,mode:d=`masked`,maskId:f,instanceId:p,...m})=>{let h=p?`${f}-${p}`:f,g=d!==`raw`&&!!f,v=a??i??!0,y=v===!0||v===`true`,b=o??n,x=l?l(h??p??`icon`):e;return _.createElement(`svg`,{...m,ref:c,"aria-hidden":v,"aria-label":o,role:s??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...u}},b&&!y&&_.createElement(`title`,null,b),g?_.createElement(_.Fragment,null,_.createElement(`mask`,{id:h,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},_.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),_.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),_.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${h})`})):x)},$=_.memo(_.forwardRef((e,t)=>_.createElement(Z,{...e,ref:t,ariaLabel:`eye-open, show, see, reveal, look, visible`,maskId:`round-outlined-radius-2-stroke-1.5-IconEyeOpen`},_.createElement(`path`,{d:`M21.5298 11.1188C16.6909 2.62714 7.30917 2.62704 2.47032 11.1187C2.15898 11.665 2.15898 12.3348 2.47032 12.8811C7.30917 21.3728 16.6909 21.3729 21.5298 12.8812C21.8411 12.3349 21.8411 11.6652 21.5298 11.1188Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),_.createElement(`path`,{d:`M15.25 12C15.25 13.7949 13.7949 15.25 12 15.25C10.2051 15.25 8.75 13.7949 8.75 12C8.75 10.2051 10.2051 8.75 12 8.75C13.7949 8.75 15.25 10.2051 15.25 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{B as a,L as i,q as n,z as o,U as r,w as s,$ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],r={positionX:{label:`Position X`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},positionY:{label:`Position Y`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},offsetX:{label:`Offset X`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},offsetY:{label:`Offset Y`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},scale:{label:`Scale`,valueKinds:[`scalar`],unit:`multiplier`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},scaleX:{label:`Scale X`,valueKinds:[`scalar`],unit:`multiplier`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},scaleY:{label:`Scale Y`,valueKinds:[`scalar`],unit:`multiplier`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},rotation:{label:`Rotation`,valueKinds:[`scalar`],unit:`deg`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},skewX:{label:`Skew X`,valueKinds:[`scalar`],unit:`deg`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},skewY:{label:`Skew Y`,valueKinds:[`scalar`],unit:`deg`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},opacity:{label:`Opacity`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},color:{label:`Color`,valueKinds:[`color`],unit:`css-color`,clipKinds:[`rect`,`path`,`text`],targetHint:`solid-fill`},blur:{label:`Blur`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},volume:{label:`Volume`,valueKinds:[`scalar`],unit:`multiplier`,clipKinds:[`media`,`audio`],targetHint:`audio-source`},effectParam:{label:`Effect parameter`,valueKinds:[`scalar`,`color`],unit:`parameter`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:`effect-param`},width:{label:`Width`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},height:{label:`Height`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:null},strokeWidth:{label:`Stroke width`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`],targetHint:null},radius:{label:`Radius`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`media`],targetHint:null},radiusTL:{label:`Radius top left`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`media`],targetHint:null},radiusTR:{label:`Radius top right`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`media`],targetHint:null},radiusBR:{label:`Radius bottom right`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`media`],targetHint:null},radiusBL:{label:`Radius bottom left`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`media`],targetHint:null},gradientStopOffset:{label:`Gradient stop offset`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`rect`,`path`,`text`],targetHint:`gradient-stop`},gradientStopColor:{label:`Gradient stop color`,valueKinds:[`color`],unit:`css-color`,clipKinds:[`rect`,`path`,`text`],targetHint:`gradient-stop`},gradientStopOpacity:{label:`Gradient stop opacity`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`rect`,`path`,`text`],targetHint:`gradient-stop`},textProgress:{label:`Text progress`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`text`],targetHint:null},fontWeight:{label:`Font weight`,valueKinds:[`scalar`],unit:`parameter`,clipKinds:[`text`],targetHint:`shaped-text`},fontWidth:{label:`Font width`,valueKinds:[`scalar`],unit:`parameter`,clipKinds:[`text`],targetHint:`shaped-text`},bendAmplitude:{label:`Bend amplitude`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`text`],targetHint:`shaped-text`},bendPhase:{label:`Bend phase`,valueKinds:[`scalar`],unit:`rad`,clipKinds:[`text`],targetHint:`shaped-text`},bendWavelength:{label:`Bend wavelength`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`text`],targetHint:`shaped-text`},bendStretch:{label:`Bend stretch`,valueKinds:[`scalar`],unit:`multiplier`,clipKinds:[`text`],targetHint:`shaped-text`},textDrawProgress:{label:`Text draw progress`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`text`],targetHint:`shaped-text`},maskX:{label:`Mask X`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:`mask`},maskY:{label:`Mask Y`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:`mask`},maskWidth:{label:`Mask width`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:`box-mask`},maskHeight:{label:`Mask height`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`rect`,`path`,`text`,`media`,`adjustment`,`group`,`scene`],targetHint:`box-mask`},morphProgress:{label:`Morph progress`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`path`],targetHint:`morph-path`},gap:{label:`Gap`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},rowGap:{label:`Row gap`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},paddingTop:{label:`Padding top`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},paddingRight:{label:`Padding right`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},paddingBottom:{label:`Padding bottom`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},paddingLeft:{label:`Padding left`,valueKinds:[`scalar`],unit:`px`,clipKinds:[`group`],targetHint:`auto-layout`},revealProgress:{label:`Frame reveal`,valueKinds:[`scalar`],unit:`ratio`,clipKinds:[`group`],targetHint:`frame`}},i=e(t(),1),a=e=>{let t=i.useId();return i.createElement(l,{...e,instanceId:t})},o=0,s=typeof i.useId==`function`?void 0:class extends i.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++o}`})}render(){return i.createElement(l,{...this.props.iconProps,instanceId:this.state.instanceId})}},c=i.forwardRef((e,t)=>s?i.createElement(s,{iconProps:{...e,svgRef:t}}):i.createElement(a,{...e,svgRef:t}));c.displayName=`CentralIconBase`;var l=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??n,x=u?u(g??m??`icon`):e;return i.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...d}},b&&!y&&i.createElement(`title`,null,b),_?i.createElement(i.Fragment,null,i.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},i.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),i.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),i.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},u=i.memo(i.forwardRef((e,t)=>i.createElement(c,{...e,ref:t,ariaLabel:`chevron-right-small`,maskId:`round-outlined-radius-2-stroke-1.5-IconChevronRightSmall`},i.createElement(`path`,{d:`M10 16L13.2929 12.7071C13.6834 12.3166 13.6834 11.6834 13.2929 11.2929L10 8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),d=e=>{let t=i.useId();return i.createElement(h,{...e,instanceId:t})},f=0,p=typeof i.useId==`function`?void 0:class extends i.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++f}`})}render(){return i.createElement(h,{...this.props.iconProps,instanceId:this.state.instanceId})}},m=i.forwardRef((e,t)=>p?i.createElement(p,{iconProps:{...e,svgRef:t}}):i.createElement(d,{...e,svgRef:t}));m.displayName=`CentralIconBase`;var h=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??n,x=u?u(g??m??`icon`):e;return i.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...d}},b&&!y&&i.createElement(`title`,null,b),_?i.createElement(i.Fragment,null,i.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},i.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),i.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),i.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},g=i.memo(i.forwardRef((e,t)=>i.createElement(m,{...e,ref:t,ariaLabel:`eye-slash, hide, eye off, see, look, not visible`,maskId:`round-outlined-radius-2-stroke-1.5-IconEyeSlash`},i.createElement(`path`,{d:`M9.38159 5.13889C13.5844 3.87389 18.1952 5.69502 21.2234 10.6022C21.4836 11.0238 21.6136 11.2346 21.6871 11.5612C21.7414 11.8029 21.7414 12.1969 21.6871 12.4386C21.6137 12.7652 21.4839 12.9757 21.2242 13.3966C20.7534 14.1596 20.2444 14.848 19.7046 15.4619`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),i.createElement(`path`,{d:`M9.5 9.92322C9.03166 10.4864 8.75 11.2103 8.75 12C8.75 13.7949 10.2051 15.25 12 15.25C12.8035 15.25 13.5389 14.9584 14.1061 14.4753`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),i.createElement(`path`,{d:`M6.22301 6.75C4.94909 7.69766 3.77614 8.98208 2.7759 10.6033C2.51619 11.0242 2.38634 11.2347 2.31292 11.5613C2.25859 11.803 2.25861 12.197 2.31296 12.4387C2.3864 12.7653 2.51649 12.9761 2.77667 13.3977C6.43137 19.3202 12.3913 20.7475 17.1571 17.6795`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),i.createElement(`path`,{d:`M2.75 2.75L21.25 21.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{n as i,u as n,r,g as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=e=>{let t=n.useId();return n.createElement(s,{...e,instanceId:t})},i=0,a=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++i}`})}render(){return n.createElement(s,{...this.props.iconProps,instanceId:this.state.instanceId})}},o=n.forwardRef((e,t)=>a?n.createElement(a,{iconProps:{...e,svgRef:t}}):n.createElement(r,{...e,svgRef:t}));o.displayName=`CentralIconBase`;var s=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},c=n.memo(n.forwardRef((e,t)=>n.createElement(o,{...e,ref:t,ariaLabel:`pencil, edit, write`,maskId:`round-outlined-radius-2-stroke-1.5-IconPencil`},n.createElement(`path`,{d:`M18.9142 3.41415L20.5858 5.08573C21.3668 5.86678 21.3668 7.13311 20.5858 7.91416L17.75 10.7499L7.83579 20.6642C7.46071 21.0392 6.95201 21.2499 6.42157 21.2499H2.75V17.5784C2.75 17.0479 2.96071 16.5392 3.33579 16.1642L13.25 6.24994L16.0858 3.41416C16.8668 2.63311 18.1332 2.63311 18.9142 3.41415Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M13.25 6.25L17.75 10.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=e=>{let t=n.useId();return n.createElement(s,{...e,instanceId:t})},i=0,a=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++i}`})}render(){return n.createElement(s,{...this.props.iconProps,instanceId:this.state.instanceId})}},o=n.forwardRef((e,t)=>a?n.createElement(a,{iconProps:{...e,svgRef:t}}):n.createElement(r,{...e,svgRef:t}));o.displayName=`CentralIconBase`;var s=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},c=n.memo(n.forwardRef((e,t)=>n.createElement(o,{...e,ref:t,ariaLabel:`play, go`,maskId:`round-outlined-radius-2-stroke-1.5-IconPlay`},n.createElement(`path`,{d:`M20.155 10.3209L8.8365 2.99715C7.50578 2.13609 5.75 3.09128 5.75 4.67629V19.3237C5.75 20.9087 7.50577 21.8639 8.8365 21.0029L20.155 13.6791C21.373 12.891 21.373 11.109 20.155 10.3209Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`}))));export{c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=e=>{let t=n.useId();return n.createElement(s,{...e,instanceId:t})},i=0,a=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++i}`})}render(){return n.createElement(s,{...this.props.iconProps,instanceId:this.state.instanceId})}},o=n.forwardRef((e,t)=>a?n.createElement(a,{iconProps:{...e,svgRef:t}}):n.createElement(r,{...e,svgRef:t}));o.displayName=`CentralIconBase`;var s=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},c=n.memo(n.forwardRef((e,t)=>n.createElement(o,{...e,ref:t,ariaLabel:`plus-small, add small`,maskId:`round-outlined-radius-2-stroke-1.5-IconPlusSmall`},n.createElement(`path`,{d:`M12 6.75V12M12 12V17.25M12 12H6.75M12 12H17.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}))));export{c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,t as n}from"./jsx-runtime-B-hcVAMW.js";import{wr as r}from"./useOpenInteractionType-DbrQ6Ehu.js";import{k as i}from"../editor-Csn2_T_e.js";var a=e(t(),1),o=e(r(),1),s=i(),c=n(),l=({size:e=24,...t})=>(0,c.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(`path`,{fill:`currentColor`,d:`m3.571 15.37-.53.53 1.06 1.06.53-.53-.53-.53zm3.723-2.663-.53-.53zm1.415 0 .53-.53zm6.662 7.723.53.53 1.061-1.06-.53-.53-.53.53zM14.5 11.5v.75a2.75 2.75 0 0 0 2.75-2.75h-1.5c0 .69-.56 1.25-1.25 1.25zm2-2h.75a2.75 2.75 0 0 0-2.75-2.75v1.5c.69 0 1.25.56 1.25 1.25zm-2-2v-.75a2.75 2.75 0 0 0-2.75 2.75h1.5c0-.69.56-1.25 1.25-1.25zm-2 2h-.75a2.75 2.75 0 0 0 2.75 2.75v-1.5c-.69 0-1.25-.56-1.25-1.25zm6.75-5.75V3H4.75v1.5h14.5zm-14.5 0V3A1.75 1.75 0 0 0 3 4.75h1.5a.25.25 0 0 1 .25-.25zm-1 1H3v14.5h1.5V4.75zm0 14.5H3c0 .966.784 1.75 1.75 1.75v-1.5a.25.25 0 0 1-.25-.25zm1 1V21h14.5v-1.5H4.75zm14.5 0V21A1.75 1.75 0 0 0 21 19.25h-1.5a.25.25 0 0 1-.25.25zm1-1H21V4.75h-1.5v14.5zm0-14.5H21A1.75 1.75 0 0 0 19.25 3v1.5a.25.25 0 0 1 .25.25zM4.102 15.9l.53.53 3.193-3.192-.53-.53-.53-.531L3.57 15.37zm3.192-3.193.53.53a.25.25 0 0 1 .354 0l.53-.53.531-.53a1.75 1.75 0 0 0-2.475 0zm1.415 0-.53.53 7.192 7.193.53-.53.53-.53-7.192-7.193z`})})}),u=({size:e=24,...t})=>(0,c.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(`path`,{stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:1.5,d:`M2.75 5.75a1 1 0 0 1 1-1h10.5a1 1 0 0 1 1 1v12.5a1 1 0 0 1-1 1H3.75a1 1 0 0 1-1-1zM15.25 10l5.276-2.638a.5.5 0 0 1 .724.447v8.382a.5.5 0 0 1-.724.447L15.25 14z`})})}),d=({size:e=24,...t})=>(0,c.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(`path`,{stroke:`currentColor`,strokeLinejoin:`round`,strokeWidth:1.5,d:`M9.75 18.75c0 1.38-1.343 2.5-3 2.5s-3-1.12-3-2.5 1.343-2.5 3-2.5 3 1.12 3 2.5Zm0 0V6.504a1 1 0 0 1 .725-.961l8.503-2.429a1 1 0 0 1 1.274.962V15.75m0 0c0 1.38-1.343 2.5-3 2.5s-3-1.12-3-2.5 1.343-2.5 3-2.5 3 1.12 3 2.5Z`})})}),f=({size:e=24,...t})=>(0,c.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:1.5,d:`M8.75 13.25h3.5m-3.5 4h6.5m-2.5-14v5a1 1 0 0 0 1 1h5m-6.414-6.5H5.75a1 1 0 0 0-1 1v16.5a1 1 0 0 0 1 1h12.5a1 1 0 0 0 1-1V9.664a1 1 0 0 0-.293-.707l-5.914-5.914a1 1 0 0 0-.707-.293Z`})})}),p=`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M11.4798%203.81311C11.6751%203.61785%2011.9916%203.61785%2012.1869%203.81311C12.3821%204.00837%2012.3821%204.32488%2012.1869%204.52015L8.70707%207.99993L12.1869%2011.4798C12.3821%2011.6751%2012.3821%2011.9915%2012.1869%2012.1868C11.9916%2012.3821%2011.6751%2012.3821%2011.4798%2012.1868L8%208.707L4.52019%2012.1868C4.32492%2012.3821%204.00841%2012.3821%203.81315%2012.1868C3.61789%2011.9915%203.61789%2011.6751%203.81315%2011.4798L7.293%207.99993L3.81315%204.52015C3.61789%204.32488%203.61789%204.00837%203.81315%203.81311C4.00841%203.61785%204.32492%203.61785%204.52019%203.81311L8%207.29293L11.4798%203.81311Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e`,m=250,h={image:l,video:u,audio:d,file:f};function g({variant:e}){let t=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`path`,{d:`M12 11v5`}),(0,c.jsx)(`path`,{d:`M12 8h.01`})]});return e===`success`&&(t=(0,c.jsx)(`path`,{d:`m8 12 3 3 5-6`})),e===`error`&&(t=(0,c.jsx)(`path`,{d:`m9 9 6 6m0-6-6 6`})),(0,c.jsxs)(`svg`,{className:`hf-notification-icon`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,c.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),t]})}function _({notification:e,onDismiss:t,exiting:n,onExitComplete:r}){let i=e.mediaType?h[e.mediaType]:void 0,o=4e3;e.variant===`error`&&(o=6e3);let s=(0,a.useRef)(o),[l,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1),m=l||d;(0,a.useEffect)(()=>{if(m||n)return;let e=performance.now(),r=window.setTimeout(t,s.current);return()=>{window.clearTimeout(r),s.current=Math.max(0,s.current-(performance.now()-e))}},[t,m,n]);function _(e){e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget)||f(!1)}return(0,c.jsxs)(`div`,{className:`hf-notification`,"data-variant":e.variant,"data-exiting":n,inert:n,"aria-hidden":n,onPointerEnter:()=>u(!0),onPointerLeave:()=>u(!1),onFocus:()=>f(!0),onBlur:_,onTransitionEnd:e=>{n&&e.target===e.currentTarget&&e.propertyName===`opacity`&&r()},children:[(0,c.jsx)(`span`,{className:`hf-notification-icon-badge`,"data-media-type":e.mediaType,children:e.icon??(i?(0,c.jsx)(i,{size:20,"aria-hidden":`true`}):e.variant===`success`?(0,c.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cg%20id='Vector'%3e%3cpath%20d='M16.5413%203.68906C15.9718%203.11954%2015.0484%203.11954%2014.4788%203.68906L6.26047%2011.9074C5.98698%2012.1809%205.83333%2012.5518%205.83333%2012.9387V16.0418C5.83333%2016.3869%206.11316%2016.6668%206.45833%2016.6668H9.56142C9.94817%2016.6668%2010.3192%2016.5131%2010.5927%2016.2396L18.811%208.02122C19.3805%207.4517%2019.3805%206.52833%2018.811%205.95883L16.5413%203.68906Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M1.45833%204.16672C1.11316%204.16672%200.833333%204.44654%200.833333%204.79172C0.833333%205.1369%201.11316%205.41672%201.45833%205.41672H7.70833C8.05351%205.41672%208.33333%205.1369%208.33333%204.79172C8.33333%204.44654%208.05351%204.16672%207.70833%204.16672H1.45833Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M1.45833%207.50005C1.11316%207.50005%200.833333%207.77988%200.833333%208.12505C0.833333%208.47023%201.11316%208.75006%201.45833%208.75006H5.20833C5.55351%208.75006%205.83333%208.47023%205.83333%208.12505C5.83333%207.77988%205.55351%207.50005%205.20833%207.50005H1.45833Z'%20fill='%231A1A1A'/%3e%3cpath%20d='M14.8226%204.03341C15.2022%203.65381%2015.8181%203.65387%2016.1976%204.03341L18.4671%206.30294C18.8465%206.68243%2018.8464%207.29743%2018.4671%207.67696L10.2484%2015.8957C10.0662%2016.0778%209.81933%2016.1798%209.56185%2016.1799H6.45833C6.38196%2016.1799%206.3199%2016.1185%206.31966%2016.0422V12.9387C6.31966%2012.6809%206.42255%2012.4335%206.60482%2012.2512L14.8226%204.03341ZM1.45833%207.98653H5.20833C5.28486%207.98653%205.34701%208.04868%205.34701%208.1252C5.34692%208.20167%205.2848%208.26388%205.20833%208.26388H1.45833C1.38187%208.26388%201.31974%208.20167%201.31966%208.1252C1.31966%208.04868%201.38181%207.98653%201.45833%207.98653ZM1.45833%204.65352H7.70833C7.78486%204.65352%207.84701%204.71567%207.84701%204.7922C7.84675%204.86851%207.78471%204.92989%207.70833%204.92989H1.45833C1.38196%204.92989%201.31992%204.86851%201.31966%204.7922C1.31966%204.71567%201.38181%204.65352%201.45833%204.65352Z'%20stroke='url(%23paint0_linear_0_14)'%20stroke-opacity='0.1'%20style='mix-blend-mode:overlay'%20stroke-width='0.972862'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_14'%20x1='10.0357'%20y1='3.26192'%20x2='10.0357'%20y2='16.6668'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'%20stop-opacity='0.8'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0.32'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,width:`20`,height:`20`,alt:``}):(0,c.jsx)(g,{variant:e.variant}))}),(0,c.jsxs)(`span`,{className:`hf-notification-content`,children:[(0,c.jsx)(`span`,{className:`hf-notification-message`,children:e.message}),e.description&&(0,c.jsx)(`span`,{className:`hf-notification-description`,children:e.description}),e.action&&(0,c.jsx)(`button`,{className:`hf-notification-action`,type:`button`,onClick:e.action.onClick,children:e.action.label})]}),(0,c.jsx)(`button`,{className:`hf-notification-dismiss`,type:`button`,onClick:t,"aria-label":`Dismiss notification`,children:(0,c.jsx)(`img`,{src:p,width:`16`,height:`16`,alt:``})})]})}var v,y=0,b=()=>v?.render((0,c.jsx)(S,{notification:null,onDismiss:b}));function x(e){if(!v){let e=document.createElement(`div`);e.dataset.notificationOwner=`composer`,document.body.append(e),v=(0,s.createRoot)(e),(0,o.flushSync)(()=>v.render((0,c.jsx)(S,{notification:null,onDismiss:b})))}v.render((0,c.jsx)(S,{notification:{...e,id:++y},onDismiss:b}))}function S({notification:e,onDismiss:t}){let[n,r]=(0,a.useState)(null),[i,s]=(0,a.useState)(e),l=(0,a.useCallback)(()=>s(null),[]);if((0,a.useEffect)(()=>{if(e){s(e);return}let t=m;window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&(t=0);let n=window.setTimeout(()=>s(null),t);return()=>window.clearTimeout(n)},[e]),(0,a.useEffect)(()=>{let e=()=>{let e=document.querySelectorAll(`dialog:modal`);r(e.item(e.length-1)??document.body)};e();let t=new MutationObserver(e);return t.observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeFilter:[`open`]}),()=>t.disconnect()},[]),!n)return null;let u=null,d=null,f=e??i;if(f){let n=(0,c.jsx)(_,{notification:f,onDismiss:t,exiting:e===null,onExitComplete:l},f.id);f.variant===`error`?d=n:u=n}return(0,o.createPortal)((0,c.jsxs)(`div`,{className:`hf-notification-viewport`,children:[(0,c.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:u}),(0,c.jsx)(`div`,{role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:d})]}),n)}var C=({size:e=24,...t})=>(0,c.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...t,children:(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(`path`,{fill:`currentColor`,d:`M4.755 5.158a.285.285 0 0 0-.51 0l-.653 1.306a.3.3 0 0 1-.128.128l-1.306.653a.285.285 0 0 0 0 .51l1.306.653q.084.044.128.128l.653 1.306c.105.21.405.21.51 0l.653-1.306a.3.3 0 0 1 .128-.128l1.306-.653a.285.285 0 0 0 0-.51l-1.306-.653a.3.3 0 0 1-.128-.128zM9.264 2.163a.296.296 0 0 0-.528 0l-.48.96a.3.3 0 0 1-.133.133l-.96.48a.296.296 0 0 0 0 .528l.96.48a.3.3 0 0 1 .133.133l.48.96c.108.217.42.217.528 0l.48-.96a.3.3 0 0 1 .133-.133l.96-.48a.296.296 0 0 0 0-.528l-.96-.48a.3.3 0 0 1-.133-.133zM18.755 15.158a.285.285 0 0 0-.51 0l-.653 1.306a.3.3 0 0 1-.128.128l-1.306.653a.285.285 0 0 0 0 .51l1.306.653q.084.044.128.128l.653 1.306c.105.21.405.21.51 0l.653-1.306a.3.3 0 0 1 .128-.128l1.306-.653a.285.285 0 0 0 0-.51l-1.306-.653a.3.3 0 0 1-.128-.128zM17.737 3.677a1.75 1.75 0 0 0-2.474 0l-11.75 11.75A1.75 1.75 0 0 0 3 16.664v3.586c0 .414.336.75.75.75h3.586c.464 0 .909-.184 1.237-.513l11.75-11.75a1.75 1.75 0 0 0 0-2.475z`})})}),w=e=>{let t=a.useId();return a.createElement(O,{...e,instanceId:t})},T=0,E=typeof a.useId==`function`?void 0:class extends a.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++T}`})}render(){return a.createElement(O,{...this.props.iconProps,instanceId:this.state.instanceId})}},D=a.forwardRef((e,t)=>E?a.createElement(E,{iconProps:{...e,svgRef:t}}):a.createElement(w,{...e,svgRef:t}));D.displayName=`CentralIconBase`;var O=({children:e,size:t=24,ariaLabel:n,color:r,ariaHidden:i,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??i??!0,y=v===!0||v===`true`,b=s??n,x=u?u(g??m??`icon`):e;return a.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r,...d}},b&&!y&&a.createElement(`title`,null,b),_?a.createElement(a.Fragment,null,a.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},a.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),a.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),a.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},k=a.memo(a.forwardRef((e,t)=>a.createElement(D,{...e,ref:t,ariaLabel:`text-1`,maskId:`round-outlined-radius-2-stroke-1.5-IconText1`},a.createElement(`path`,{d:`M3.75 6.25V3.75H12H20.25V6.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),a.createElement(`path`,{d:`M12 20.25V3.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),a.createElement(`path`,{d:`M9.75 20.25H12H14.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{C as n,x as r,k as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./jsx-runtime-B-hcVAMW.js";var n=e(t(),1),r=e=>{let t=n.useId();return n.createElement(s,{...e,instanceId:t})},i=0,a=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++i}`})}render(){return n.createElement(s,{...this.props.iconProps,instanceId:this.state.instanceId})}},o=n.forwardRef((e,t)=>a?n.createElement(a,{iconProps:{...e,svgRef:t}}):n.createElement(r,{...e,svgRef:t}));o.displayName=`CentralIconBase`;var s=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},c=n.memo(n.forwardRef((e,t)=>n.createElement(o,{...e,ref:t,ariaLabel:`square-behind-square-1, copy 1, layers, pages`,maskId:`round-outlined-radius-2-stroke-1.5-IconSquareBehindSquare1`},n.createElement(`path`,{d:`M15.25 8.75V4C15.25 3.30964 14.6904 2.75 14 2.75H4C3.30964 2.75 2.75 3.30964 2.75 4V14C2.75 14.6904 3.30964 15.25 4 15.25H8.75M10 8.75H20C20.6904 8.75 21.25 9.30964 21.25 10V20C21.25 20.6904 20.6904 21.25 20 21.25H10C9.30964 21.25 8.75 20.6904 8.75 20V10C8.75 9.30964 9.30964 8.75 10 8.75Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})))),l=e=>{let t=n.useId();return n.createElement(p,{...e,instanceId:t})},u=0,d=typeof n.useId==`function`?void 0:class extends n.Component{state={};componentDidMount(){this.setState({instanceId:`legacy-${++u}`})}render(){return n.createElement(p,{...this.props.iconProps,instanceId:this.state.instanceId})}},f=n.forwardRef((e,t)=>d?n.createElement(d,{iconProps:{...e,svgRef:t}}):n.createElement(l,{...e,svgRef:t}));f.displayName=`CentralIconBase`;var p=({children:e,size:t=24,ariaLabel:r,color:i,ariaHidden:a,"aria-hidden":o,"aria-label":s,role:c,svgRef:l,renderShapes:u,style:d,mode:f=`masked`,maskId:p,instanceId:m,...h})=>{let g=m?`${p}-${m}`:p,_=f!==`raw`&&!!p,v=o??a??!0,y=v===!0||v===`true`,b=s??r,x=u?u(g??m??`icon`):e;return n.createElement(`svg`,{...h,ref:l,"aria-hidden":v,"aria-label":s,role:c??(y?void 0:`img`),width:typeof t==`number`?`${t}px`:t,height:typeof t==`number`?`${t}px`:t,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{color:i,...d}},b&&!y&&n.createElement(`title`,null,b),_?n.createElement(n.Fragment,null,n.createElement(`mask`,{id:g,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`},n.createElement(`rect`,{width:`24`,height:`24`,fill:`#000`}),n.createElement(`g`,{fill:`none`,style:{color:`#fff`}},x)),n.createElement(`rect`,{width:`24`,height:`24`,fill:`currentColor`,mask:`url(#${g})`})):x)},m=n.memo(n.forwardRef((e,t)=>n.createElement(f,{...e,ref:t,ariaLabel:`trash-can, delete, remove, garbage, waste`,maskId:`round-outlined-radius-2-stroke-1.5-IconTrashCan`},n.createElement(`path`,{d:`M4.75 6.5L5.65512 19.3901C5.72868 20.4377 6.6 21.25 7.6502 21.25H16.3498C17.4 21.25 18.2713 20.4377 18.3449 19.3901L19.25 6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M10 10.5V16.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M14 10.5V16.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M3.25 5.75H20.75`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),n.createElement(`path`,{d:`M8.5246 5.58289C8.73079 3.84652 10.2081 2.5 12 2.5C13.7919 2.5 15.2692 3.84652 15.4754 5.58289`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}))));export{c as n,m as t};
|