@jxsuite/studio 10.4.0 → 10.6.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/data/locales/en/elements.json +434 -0
- package/data/webdata.json +116 -139
- package/dist/chunks/2020-rqm7qrje.js +4 -0
- package/dist/chunks/adapter-cyy8vbcx.js +4 -0
- package/dist/chunks/add-new-flow-8cgtejv2.js +4 -0
- package/dist/chunks/{cf-account-picker-xb8vvt2h.js → cf-account-picker-v3qd2dhw.js} +3 -3
- package/dist/chunks/cf-settings-1fnw874z.js +4 -0
- package/dist/chunks/{color-area-h8dbasp1.js → color-area-frd9y9q6.js} +2 -2
- package/dist/chunks/color-field-rebpbe33.js +4 -0
- package/dist/chunks/{color-slider-nz2mrzky.js → color-slider-6bzmk3s7.js} +2 -2
- package/dist/chunks/color-t2bnnj8y.js +4 -0
- package/dist/chunks/{combobox-6hs00996.js → combobox-c49x7gf1.js} +3 -3
- package/dist/chunks/components-y8yhdd7d.js +4 -0
- package/dist/chunks/content-source-9e7qvmsf.js +4 -0
- package/dist/chunks/convert-to-repeater-pd2w4z21.js +4 -0
- package/dist/chunks/editor-mb9jzdrw.js +4 -0
- package/dist/chunks/entry-commands-at0wnx3f.js +4 -0
- package/dist/chunks/extension-sections-4z9qq0gh.js +4 -0
- package/dist/chunks/file-ops-dtdvjmza.js +4 -0
- package/dist/chunks/files-8pf70854.js +4 -0
- package/dist/chunks/format-host-fd3m2y2a.js +4 -0
- package/dist/chunks/fs-events-hrk29vcv.js +4 -0
- package/dist/chunks/grid-open-bh74v82z.js +4 -0
- package/dist/chunks/{grid-view-2f03wcgw.js → grid-view-a51mgzmq.js} +17 -17
- package/dist/chunks/{icons-gb967qc8.js → icons-qp8fn1k8.js} +2 -2
- package/dist/chunks/{iframe-entry-btck0e9s.js → iframe-entry-mpwe5pwk.js} +4 -4
- package/dist/chunks/{iframe-entry-2x9bn5ng.js → iframe-entry-msd43x9h.js} +4 -4
- package/dist/chunks/iframe-entry-rt8jz5t8.js +5 -0
- package/dist/chunks/{iframe-entry-b5qgggyp.js → iframe-entry-v40cr813.js} +4 -4
- package/dist/chunks/iframe-host-q0s0wwy3.js +4 -0
- package/dist/chunks/{image-bake-4afr4y6a.js → image-bake-q9ajdjsj.js} +3 -3
- package/dist/chunks/{image-editor-x7t8jbjn.js → image-editor-ke9std9b.js} +3 -3
- package/dist/chunks/index-57ang7ma.js +4 -0
- package/dist/chunks/index-eytr7av4.js +17 -0
- package/dist/chunks/{index-yjrfeks8.js → index-x495reff.js} +3 -3
- package/dist/chunks/{javascript-hy2mws8v.js → javascript-qe34bvaz.js} +3 -3
- package/dist/chunks/jsonMode-m8rseh31.js +13 -0
- package/dist/chunks/jx-validate-bbd1mary.js +4 -0
- package/dist/chunks/layers-panel-wcjtdqsa.js +4 -0
- package/dist/chunks/layers-yscpys6q.js +4 -0
- package/dist/chunks/{listbox-7gka1h86.js → listbox-tktzq5xj.js} +2 -2
- package/dist/chunks/lit-html-qm5wbhqz.js +4 -0
- package/dist/chunks/media-library-2hfff88g.js +4 -0
- package/dist/chunks/media-open-4pb05cne.js +4 -0
- package/dist/chunks/media-picker-bzktmmwr.js +4 -0
- package/dist/chunks/menu-xc3cbgsd.js +4 -0
- package/dist/chunks/{monaco-binding-a51py33c.js → monaco-binding-7t38arh9.js} +3 -3
- package/dist/chunks/monaco-buffer-3vz94c9f.js +4 -0
- package/dist/chunks/monaco-setup-fstdew02.js +4 -0
- package/dist/chunks/notify-gbdcckrh.js +4 -0
- package/dist/chunks/parse-fpdzgk4c.js +4 -0
- package/dist/chunks/platform-9g72gdqr.js +4 -0
- package/dist/chunks/popover-cnmsav6b.js +4 -0
- package/dist/chunks/publish-panel-91x1cb5d.js +4 -0
- package/dist/chunks/publish-quick-e2dmf7eg.js +4 -0
- package/dist/chunks/publish-workspace-1x8mnzrj.js +4 -0
- package/dist/chunks/quick-search-2m4y6p1x.js +4 -0
- package/dist/chunks/references-yg1g9rwx.js +4 -0
- package/dist/chunks/right-panel-7mfyhzrk.js +4 -0
- package/dist/chunks/source-control-rrc4jgp5.js +4 -0
- package/dist/chunks/{split-m5rwn31z.js → split-d15yencd.js} +2 -2
- package/dist/chunks/studio-0jhhznxy.js +9 -0
- package/dist/chunks/studio-0nb57pjg.js +7 -0
- package/dist/chunks/{studio-s24mhq0z.js → studio-0wa4wv4s.js} +4 -4
- package/dist/chunks/studio-0z8kp4xk.js +5 -0
- package/dist/chunks/{studio-g0hxtcga.js → studio-18gc5t3v.js} +4 -4
- package/dist/chunks/{studio-4fnb5648.js → studio-1b79rpcb.js} +4 -4
- package/dist/chunks/studio-211q5j7m.js +4 -0
- package/dist/chunks/studio-213pyfxh.js +16 -0
- package/dist/chunks/studio-2b1smjvp.js +5 -0
- package/dist/chunks/{studio-nwf0c32p.js → studio-2v6tc9jp.js} +4 -4
- package/dist/chunks/studio-30j0wz99.js +5 -0
- package/dist/chunks/studio-3kmqhwtt.js +5 -0
- package/dist/chunks/studio-44drsmhw.js +5 -0
- package/dist/chunks/{studio-2pk7kc7z.js → studio-495b6f2r.js} +4 -4
- package/dist/chunks/{studio-jma2q8r9.js → studio-4gthb2fd.js} +4 -4
- package/dist/chunks/{studio-0gvvqj3h.js → studio-4xadhxj1.js} +4 -4
- package/dist/chunks/{studio-nvcn2ykc.js → studio-52mzbxqm.js} +4 -4
- package/dist/chunks/{studio-v7a7yb5w.js → studio-56mmnsw8.js} +7 -7
- package/dist/chunks/studio-59hz8f4r.js +5 -0
- package/dist/chunks/{studio-sce30r7b.js → studio-5k9mfafh.js} +3 -3
- package/dist/chunks/{studio-rr00ex23.js → studio-5qez462c.js} +6 -6
- package/dist/chunks/studio-6tnpg0vx.js +5 -0
- package/dist/chunks/studio-6w8mt734.js +6 -0
- package/dist/chunks/studio-7hm04x5z.js +5 -0
- package/dist/chunks/studio-8atmfjjm.js +7 -0
- package/dist/chunks/{studio-wmjmsw0p.js → studio-8n99z71s.js} +4 -4
- package/dist/chunks/studio-8vmad6x2.js +5 -0
- package/dist/chunks/studio-93p5k4r4.js +5 -0
- package/dist/chunks/{studio-2x972v58.js → studio-9gb0m81w.js} +4 -4
- package/dist/chunks/studio-a4ymg4vd.js +5 -0
- package/dist/chunks/studio-anc8067x.js +5 -0
- package/dist/chunks/{studio-2e4hry72.js → studio-dbdt67kr.js} +5 -5
- package/dist/chunks/studio-dbex091t.js +5 -0
- package/dist/chunks/{studio-amaz545p.js → studio-dj8ctxey.js} +4 -4
- package/dist/chunks/{studio-k2evngrj.js → studio-ed9bz68j.js} +5 -5
- package/dist/chunks/{studio-4bgvvzhv.js → studio-fe2d1fp5.js} +4 -4
- package/dist/chunks/{studio-45mj4jqe.js → studio-fgp4cyy3.js} +4 -4
- package/dist/chunks/studio-ft706q02.js +5 -0
- package/dist/chunks/studio-g79s1dyg.js +6 -0
- package/dist/chunks/{studio-pj216fmn.js → studio-gahswxp4.js} +4 -4
- package/dist/chunks/studio-gbqc12bk.js +5 -0
- package/dist/chunks/studio-gxphbetb.js +6 -0
- package/dist/chunks/studio-hdf01j7q.js +7 -0
- package/dist/chunks/studio-hf259xzd.js +48 -0
- package/dist/chunks/studio-jbva4wxw.js +5 -0
- package/dist/chunks/studio-jj9gf1qc.js +5 -0
- package/dist/chunks/studio-jsjg3mjv.js +5 -0
- package/dist/chunks/studio-jtvb8hd7.js +5 -0
- package/dist/chunks/{studio-g9brbewz.js → studio-kp4vzrct.js} +4 -4
- package/dist/chunks/studio-kpx02gaa.js +7 -0
- package/dist/chunks/{studio-3na1r48j.js → studio-kv1728ex.js} +8 -8
- package/dist/chunks/studio-m25ry0mf.js +5 -0
- package/dist/chunks/studio-mcbwmkyh.js +5 -0
- package/dist/chunks/studio-meajkr51.js +5 -0
- package/dist/chunks/studio-mkjrjpr2.js +6 -0
- package/dist/chunks/{studio-eqcddvc2.js → studio-mr084886.js} +201 -201
- package/dist/chunks/studio-mrb10hv3.js +5 -0
- package/dist/chunks/{studio-0939t1q1.js → studio-nhpg405j.js} +4 -4
- package/dist/chunks/studio-nsec0hxm.js +64 -0
- package/dist/chunks/{studio-xx3r3sb0.js → studio-nv0mh0p5.js} +4 -4
- package/dist/chunks/studio-pafmb06w.js +5 -0
- package/dist/chunks/{studio-pm17wdc4.js → studio-pgftd79b.js} +4 -4
- package/dist/chunks/{studio-4zd6an2b.js → studio-pk961xgz.js} +4 -4
- package/dist/chunks/studio-pzbr7g05.js +5 -0
- package/dist/chunks/studio-qcc5hsw2.js +10 -0
- package/dist/chunks/studio-qfq58c8n.js +5 -0
- package/dist/chunks/studio-qvb2jr83.js +5 -0
- package/dist/chunks/studio-r85zw6ay.js +5 -0
- package/dist/chunks/studio-s0kwce5w.js +9 -0
- package/dist/chunks/studio-s6ymkf3q.js +14 -0
- package/dist/chunks/{studio-0x6f3nk9.js → studio-s7p5ccxa.js} +4 -4
- package/dist/chunks/{studio-1410q5dw.js → studio-s9jjap3x.js} +4 -4
- package/dist/chunks/{studio-evq47j2z.js → studio-t5hde1ws.js} +4 -4
- package/dist/chunks/studio-vj9yv897.js +5 -0
- package/dist/chunks/studio-wmak8xjw.js +5 -0
- package/dist/chunks/{studio-bnc50f9h.js → studio-wqsmvtqj.js} +4 -4
- package/dist/chunks/studio-x3z3rhej.js +5 -0
- package/dist/chunks/{studio-bg8pzprg.js → studio-xb55kpmy.js} +4 -4
- package/dist/chunks/studio-xxtdajmv.js +12 -0
- package/dist/chunks/studio-xxttcym1.js +5 -0
- package/dist/chunks/{studio-90zkgne5.js → studio-y2zsnzye.js} +7 -7
- package/dist/chunks/{studio-3qr08sxq.js → studio-y3tjh2xb.js} +3 -3
- package/dist/chunks/studio-y4f1rdsj.js +5 -0
- package/dist/chunks/studio-ybkd5w8k.js +5 -0
- package/dist/chunks/{studio-tpxcryf2.js → studio-yetr4gg1.js} +4 -4
- package/dist/chunks/studio-z295anhs.js +6 -0
- package/dist/chunks/studio-z89e6wpg.js +9 -0
- package/dist/chunks/{studio-5tet77de.js → studio-zbwr6prc.js} +3 -3
- package/dist/chunks/{studio-daksw8kh.js → studio-zdbsv5q2.js} +4 -4
- package/dist/chunks/{studio-abh9kfdh.js → studio-zvthj8hg.js} +4 -4
- package/dist/chunks/toast-2kn2vrn4.js +4 -0
- package/dist/chunks/{toast-host-g3r2s0kn.js → toast-host-3rxeyj3d.js} +3 -3
- package/dist/chunks/{tooltip-dj1pvgz7.js → tooltip-ghkxkasp.js} +3 -3
- package/dist/chunks/{tree-j0ebwr5s.js → tree-vw4nc63s.js} +2 -2
- package/dist/chunks/tsMode-7gngmamr.js +14 -0
- package/dist/chunks/workspace-gv0hxgsm.js +4 -0
- package/dist/chunks/workspace-home-j7e0mjy5.js +4 -0
- package/dist/chunks/{ws-client-arz2qsy9.js → ws-client-vs11sxc5.js} +3 -3
- package/dist/iframe-entry.js +14 -14
- package/dist/manifest.json +84 -83
- package/dist/studio.js +99 -98
- package/dist/workers/ts.worker.js +3 -3
- package/package.json +12 -12
- package/src/browse/library-layouts.ts +9 -12
- package/src/browse/library-pane.ts +22 -16
- package/src/browse/library-source.ts +3 -4
- package/src/browse/preview-style.ts +2 -1
- package/src/canvas/canvas-live-render.ts +2 -5
- package/src/canvas/canvas-page-context.ts +5 -0
- package/src/canvas/canvas-render.ts +6 -1
- package/src/canvas/iframe-drop.ts +84 -1
- package/src/canvas/iframe-entry.ts +9 -6
- package/src/canvas/iframe-render.ts +13 -0
- package/src/collab/collab-session.ts +2 -2
- package/src/commands/levels.ts +1 -1
- package/src/content/entry-commands.ts +32 -27
- package/src/content/entry-editor.ts +46 -44
- package/src/content/entry-inspector.ts +15 -12
- package/src/content/entry-model.ts +3 -3
- package/src/content/entry-summaries.ts +5 -5
- package/src/content/hold-state.ts +172 -0
- package/src/content/page-summaries.ts +10 -14
- package/src/create/add-new-flow.ts +2 -1
- package/src/editor/convert-targets.ts +2 -23
- package/src/editor/inline-edit.ts +6 -1
- package/src/editor/repeater-scope.ts +333 -74
- package/src/editor/slash-menu.ts +35 -17
- package/src/files/files.ts +18 -0
- package/src/format/format-choices.ts +5 -5
- package/src/format/format-host.ts +35 -3
- package/src/grid/redirects-grid.ts +4 -4
- package/src/grid/sources/content-source.ts +42 -66
- package/src/locale/element-names.ts +131 -0
- package/src/panels/block-action-bar.ts +3 -4
- package/src/panels/dnd.ts +3 -1
- package/src/panels/elements-panel.ts +93 -36
- package/src/panels/events-panel.ts +6 -2
- package/src/panels/formula-workspace.ts +9 -0
- package/src/panels/imports-panel.ts +3 -2
- package/src/panels/navigator-panels.ts +10 -10
- package/src/panels/panel-registry.ts +3 -3
- package/src/panels/properties-panel.ts +127 -35
- package/src/panels/site-panel.ts +2 -1
- package/src/panels/statement-editor.ts +4 -0
- package/src/panels/style-panel.ts +2 -1
- package/src/panels/styles-panel.ts +2 -2
- package/src/panels/tab-strip.ts +29 -26
- package/src/platforms/cloud.ts +5 -2
- package/src/services/ai-command-tools.ts +2 -1
- package/src/services/ai-project-tools.ts +21 -8
- package/src/services/ai-tools.ts +5 -5
- package/src/services/ai-write-report.ts +22 -4
- package/src/services/context-manager.ts +110 -2
- package/src/services/document-assistant.ts +2 -2
- package/src/services/harness/chat-reducer.ts +9 -4
- package/src/services/jxn-language.ts +110 -0
- package/src/services/model-uri.ts +3 -0
- package/src/services/monaco-setup.ts +6 -2
- package/src/services/render-critic.ts +234 -12
- package/src/services/tool-executor.ts +16 -8
- package/src/settings/contributed-section.ts +2 -1
- package/src/settings/extension-commands.ts +2 -1
- package/src/settings/general-settings.ts +2 -2
- package/src/settings/settings-document.ts +5 -5
- package/src/shell.ts +1 -1
- package/src/studio.ts +28 -11
- package/src/style/variables-view.ts +2 -2
- package/src/surfaces/collections-panel.json +1 -1
- package/src/surfaces/collections-panel.ts +1 -1
- package/src/surfaces/entry-editor.json +10 -10
- package/src/surfaces/entry-editor.ts +22 -19
- package/src/surfaces/entry-inspector.json +11 -11
- package/src/surfaces/entry-inspector.ts +17 -10
- package/src/surfaces/panel-elements.json +466 -206
- package/src/surfaces/panel-elements.ts +61 -25
- package/src/surfaces/tab-strip.json +5 -5
- package/src/surfaces/tab-strip.ts +2 -2
- package/src/tabs/project-config.ts +13 -13
- package/src/tabs/tab.ts +7 -2
- package/src/types.ts +13 -2
- package/src/ui/expression-editor.ts +10 -5
- package/src/ui/schema-form.ts +18 -1
- package/src/utils/edit-display.ts +27 -1
- package/src/view.ts +9 -2
- package/src/workspace/tab-workspace.ts +2 -2
- package/src/workspace/workspace-back.ts +2 -2
- package/dist/chunks/2020-906vx2dq.js +0 -4
- package/dist/chunks/adapter-hnvad61x.js +0 -4
- package/dist/chunks/add-new-flow-v0pm96mr.js +0 -4
- package/dist/chunks/cf-settings-mkbcz4z2.js +0 -4
- package/dist/chunks/color-04361ttk.js +0 -4
- package/dist/chunks/color-field-qv5r2b16.js +0 -4
- package/dist/chunks/components-w5zqwva1.js +0 -4
- package/dist/chunks/content-source-g38w0d3f.js +0 -4
- package/dist/chunks/convert-to-repeater-r8sfxjjm.js +0 -4
- package/dist/chunks/editor-wvf5e6j9.js +0 -4
- package/dist/chunks/entry-commands-t13dyw3c.js +0 -4
- package/dist/chunks/extension-sections-vjzw46xb.js +0 -4
- package/dist/chunks/file-ops-1sghzgcr.js +0 -4
- package/dist/chunks/files-zrqtgt41.js +0 -4
- package/dist/chunks/format-host-9gy76erh.js +0 -4
- package/dist/chunks/fs-events-45rhg3me.js +0 -4
- package/dist/chunks/grid-open-t4fq6bbm.js +0 -4
- package/dist/chunks/iframe-entry-42hpmwz5.js +0 -5
- package/dist/chunks/iframe-host-9aq8ze3q.js +0 -4
- package/dist/chunks/index-f9qr7kzh.js +0 -4
- package/dist/chunks/jsonMode-vj30te2h.js +0 -13
- package/dist/chunks/jx-validate-r4ax11e3.js +0 -4
- package/dist/chunks/layers-m49nmwvx.js +0 -4
- package/dist/chunks/layers-panel-zr92pwdp.js +0 -4
- package/dist/chunks/lit-html-k2mb9k0r.js +0 -4
- package/dist/chunks/media-library-j74rt0w4.js +0 -4
- package/dist/chunks/media-open-mypr0k6b.js +0 -4
- package/dist/chunks/media-picker-pemtbsjv.js +0 -4
- package/dist/chunks/menu-d2jxpgma.js +0 -4
- package/dist/chunks/monaco-buffer-pa0g6ax7.js +0 -4
- package/dist/chunks/monaco-setup-0hw9f835.js +0 -4
- package/dist/chunks/notify-bwehrp7q.js +0 -4
- package/dist/chunks/parse-hee7ne9b.js +0 -4
- package/dist/chunks/platform-kv0k65cy.js +0 -4
- package/dist/chunks/popover-9tf4cjrk.js +0 -4
- package/dist/chunks/publish-panel-vg1n880b.js +0 -4
- package/dist/chunks/publish-quick-4fwngwrw.js +0 -4
- package/dist/chunks/publish-workspace-jv4w2bx2.js +0 -4
- package/dist/chunks/quick-search-nh29rt8a.js +0 -4
- package/dist/chunks/references-vqyr5s9x.js +0 -4
- package/dist/chunks/right-panel-3ws9f2w0.js +0 -4
- package/dist/chunks/source-control-h3hcs5gy.js +0 -4
- package/dist/chunks/studio-0khd8xtx.js +0 -4
- package/dist/chunks/studio-1ctnw3xv.js +0 -5
- package/dist/chunks/studio-1ks5d9y4.js +0 -5
- package/dist/chunks/studio-1y9mab9m.js +0 -5
- package/dist/chunks/studio-2kpxm0eh.js +0 -7
- package/dist/chunks/studio-2zz4qbv9.js +0 -5
- package/dist/chunks/studio-3pz4t5a2.js +0 -5
- package/dist/chunks/studio-4f7thq0p.js +0 -5
- package/dist/chunks/studio-61rg2cz5.js +0 -5
- package/dist/chunks/studio-7rrdbvex.js +0 -5
- package/dist/chunks/studio-9c6cbq2c.js +0 -4
- package/dist/chunks/studio-9dq7rwc7.js +0 -5
- package/dist/chunks/studio-9gr7xs9r.js +0 -6
- package/dist/chunks/studio-a88ej93p.js +0 -7
- package/dist/chunks/studio-acer0g8w.js +0 -5
- package/dist/chunks/studio-az3wvyh2.js +0 -5
- package/dist/chunks/studio-brh8d2pr.js +0 -5
- package/dist/chunks/studio-c2fa783p.js +0 -9
- package/dist/chunks/studio-cfnn70h1.js +0 -5
- package/dist/chunks/studio-cqxj4fcy.js +0 -5
- package/dist/chunks/studio-cw11h078.js +0 -5
- package/dist/chunks/studio-dn56z7sn.js +0 -5
- package/dist/chunks/studio-egnjpyde.js +0 -9
- package/dist/chunks/studio-ejrypvmq.js +0 -5
- package/dist/chunks/studio-frc16j8v.js +0 -10
- package/dist/chunks/studio-gnazwtv3.js +0 -5
- package/dist/chunks/studio-hfqpfmpk.js +0 -5
- package/dist/chunks/studio-hh394phe.js +0 -5
- package/dist/chunks/studio-j0zf5x2x.js +0 -5
- package/dist/chunks/studio-j5fcp6gj.js +0 -5
- package/dist/chunks/studio-jd1qb1st.js +0 -7
- package/dist/chunks/studio-k0xzrse2.js +0 -64
- package/dist/chunks/studio-k1xqrgm5.js +0 -5
- package/dist/chunks/studio-k3we3kqb.js +0 -5
- package/dist/chunks/studio-knsjyx7n.js +0 -5
- package/dist/chunks/studio-mrjtnm62.js +0 -5
- package/dist/chunks/studio-n9qba0gx.js +0 -5
- package/dist/chunks/studio-nzemfbkk.js +0 -14
- package/dist/chunks/studio-pwctzka3.js +0 -16
- package/dist/chunks/studio-q80fg1d6.js +0 -12
- package/dist/chunks/studio-q9hx2qp0.js +0 -5
- package/dist/chunks/studio-qrzmfaf6.js +0 -5
- package/dist/chunks/studio-r6mx7vm5.js +0 -7
- package/dist/chunks/studio-swedpd82.js +0 -5
- package/dist/chunks/studio-tmfcn347.js +0 -6
- package/dist/chunks/studio-v5wktj6f.js +0 -5
- package/dist/chunks/studio-vpevkfxw.js +0 -5
- package/dist/chunks/studio-wqfaqw4m.js +0 -5
- package/dist/chunks/studio-xpx91fby.js +0 -6
- package/dist/chunks/studio-xva3hzkv.js +0 -5
- package/dist/chunks/studio-z3fztxrp.js +0 -9
- package/dist/chunks/studio-z9453ypn.js +0 -6
- package/dist/chunks/toast-w11qpkyz.js +0 -4
- package/dist/chunks/tsMode-jg1dtphj.js +0 -14
- package/dist/chunks/workspace-6ztqcrsh.js +0 -4
- package/dist/chunks/workspace-home-rse9h8a0.js +0 -4
- package/src/content/draft-state.ts +0 -108
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{X}from"./studio-9c6cbq2c.js";import{p}from"./studio-4fnb5648.js";import{w}from"./studio-sce30r7b.js";import"./studio-5tet77de.js";import{Jt,Ut,Nh}from"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import{sn,nt,dt}from"./studio-tpxcryf2.js";import{ae}from"./studio-wqfaqw4m.js";import{jt,Aa,lr,Oa}from"./studio-q9hx2qp0.js";import{jn,Wt,ln,go}from"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import{zS}from"./studio-frc16j8v.js";import"./studio-4zd6an2b.js";import"./studio-hh394phe.js";import"./studio-bnc50f9h.js";import"./studio-xpx91fby.js";import"./studio-g9brbewz.js";import{Co,ic}from"./studio-pwctzka3.js";import"./studio-rr00ex23.js";import"./studio-v7a7yb5w.js";import"./studio-r6mx7vm5.js";import"./studio-1ks5d9y4.js";import{ds,Jc,Ta,Ys}from"./studio-61rg2cz5.js";import"./studio-1410q5dw.js";import"./studio-3pz4t5a2.js";import{oh,Gb}from"./studio-xva3hzkv.js";import{Ne,ev}from"./studio-n9qba0gx.js";import"./studio-90zkgne5.js";import"./studio-hfqpfmpk.js";import"./studio-mrjtnm62.js";import"./studio-2zz4qbv9.js";import"./studio-jma2q8r9.js";import"./studio-k2evngrj.js";import{$S,TT,Ow,NS,_i}from"./studio-a88ej93p.js";import"./studio-daksw8kh.js";import"./studio-s24mhq0z.js";import"./studio-cqxj4fcy.js";import"./studio-k1wvtp03.js";import{wm}from"./studio-amaz545p.js";import"./studio-4bgvvzhv.js";import"./studio-z3fztxrp.js";import"./studio-pj216fmn.js";import{bE,tw}from"./studio-jd1qb1st.js";import{xb,xw,Ws,Pc,pS,vm,_w,fS,QE,ol,mS,Hu,gS,oN,eT,ym,_b,tT,nT,iT,rN,sN,bS}from"./studio-cw11h078.js";import{rb}from"./studio-az3wvyh2.js";import{cb,Id,Rd}from"./studio-2kpxm0eh.js";import{aw,kE}from"./studio-brh8d2pr.js";import"./studio-z9453ypn.js";import{Vl}from"./studio-1ctnw3xv.js";import{PT,Bw}from"./studio-qrzmfaf6.js";import"./studio-9gr7xs9r.js";import"./studio-acer0g8w.js";import{C,wn}from"./studio-4f7thq0p.js";import{Ve,vt,E,R}from"./studio-9dq7rwc7.js";import{g}from"./studio-3qr08sxq.js";import{n,v}from"./studio-k3we3kqb.js";var T={$schema:"https://jxsuite.com/schema/v1",$id:"StudioAddNew",$description:"Add new: the one dialog that creates a page, a collection, a template, a component, a collection entry or an upload (`specs/studio.md` §9.1.1). One `jx-dialog`, so the platform owns modality, Escape, the backdrop and focus restoration. The kinds run down the left as a radiogroup and the chosen kind's name and options fill the right; the line above the buttons is the derived result, the same `deriveCreation` the write performs, so what it says is what is written. Nothing here composes a path, judges a name or knows a format: `create/add-new-flow.ts` keeps every decision and hands this document rows that are already strings, flags that are already booleans and a refusal that is already a sentence.",tagName:"jx-dialog",$props:{headline:"Add new",confirmLabel:{$ref:"#/state/cta"},confirmDisabled:{$ref:"#/state/blocked"},cancelLabel:"Cancel",size:"lg"},attributes:{part:"add-new","data-kind":"${state.kind}"},onconfirm:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},ondragover:{$prototype:"Function",body:[{preventDefault:!0}]},ondrop:{$prototype:"Function",body:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/drop"},value:[{$ref:"event#/dataTransfer/files"}]}]},style:{$description:"The board's two columns in the kit's scale. The kinds take a fixed gutter so the right side does not move under the reader as they switch kinds, and the options column scrolls on its own so a long template list never pushes the result line and the buttons off the dialog. No part here is named `field`, `label`, `body`, `error`, `text` or `actions`: the kit is light DOM, and `jx-textfield`, `jx-select` and `jx-dialog` each draw internal nodes under those names inside this same tree.",'& [part="sheet"]':{display:"flex",gap:"var(--jx-space-5)",minHeight:"360px"},'& [part="kinds-column"]':{flex:"0 0 208px",display:"flex",flexDirection:"column",gap:"var(--jx-space-3)",borderRight:"1px solid var(--border)",paddingRight:"var(--jx-space-3)"},'& [part="kinds"]':{display:"flex",flexDirection:"column",alignItems:"stretch",gap:"var(--jx-space-1)"},'& [part="kind"]':{display:"block"},'& [part="kind"] > [part="control"]':{$description:"A kind is a row with its own two lines, so the button's box stretches across the gutter and starts its content at the left edge rather than centring an icon.",width:"100%",height:"auto",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"start",padding:"var(--jx-space-2) var(--jx-space-3)",gap:"var(--jx-space-3)"},'& [part="kind-text"]':{display:"flex",flexDirection:"column",gap:"2px"},'& [part="kind-name"]':{fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="kind-hint"], & [part="choice-note"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)",whiteSpace:"normal"},'& [part="chord-note"], & [part="note"], & [part="kind-intro"], & [part="drop-summary"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="chord-note"]':{marginTop:"auto"},'& [part="detail"]':{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"var(--jx-space-4)",maxHeight:"60vh",overflowY:"auto"},'& [part="options"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-3)"},'& [part="name-slot"], & [part="options-slot"], & [part="url-slot"], & [part="own-page-slot"], & [part="copy-slot"], & [part="locale-slot"], & [part="localized-slot"]':{$description:"Branch hosts are structure rather than layout: `display: contents` puts what they carry straight into the column, so one gap rule spaces every row whether it is drawn or not.",display:"contents"},'& [part="group-label"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="url-row"], & [part="pattern-row"]':{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"var(--jx-space-2)"},'& [part="url-label"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="route"], & [part="pattern"]':{fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)",color:"var(--fg)"},'& [part="start-row"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)"},'& [part="start-from"], & [part="wrap-in"], & [part="component-start"]':{display:"flex",flexWrap:"wrap",gap:"var(--jx-space-2)"},'& [part="choice-card"] > [part="control"]':{$description:"A choice is a card with a name and a note, as the board draws it: its own two lines inside one radio, so the reader hears one name and sees both.",minWidth:"132px",height:"auto",flexDirection:"column",alignItems:"flex-start",textAlign:"start",padding:"var(--jx-space-2) var(--jx-space-3)",gap:"2px"},'& [part="choice-name"]':{display:"block",fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="choice-note"]':{display:"block"},'& [part="presets"]':{display:"flex",flexWrap:"wrap",gap:"var(--jx-space-2)"},'& [part="drop"]':{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--jx-space-2)",minHeight:"200px",padding:"var(--jx-space-5)",border:"1px dashed var(--border)",borderRadius:"var(--radius)",textAlign:"center"},'& [part="drop"][data-drop="true"]':{borderColor:"var(--accent)",background:"var(--accent-10)"},'& [part="drop-title"]':{margin:"0",fontSize:"var(--jx-text-md)",color:"var(--fg)"},'& [part="browse"]':{display:"inline-flex",alignItems:"center",gap:"var(--jx-space-2)",padding:"var(--jx-space-1) var(--jx-space-3)",border:"1px solid var(--border)",borderRadius:"var(--radius)",color:"var(--fg)",cursor:"pointer"},'& [part="browse"]:focus-within':{outline:"var(--jx-focus-ring)",outlineOffset:"2px"},'& [part="browse-input"]':{$description:"Visually hidden, never `display: none`: the input is the control, and a hidden-from-layout one cannot take focus from the keyboard. The label around it is what is drawn and what is clicked.",position:"absolute",width:"1px",height:"1px",opacity:"0",overflow:"hidden"},'& [part="saved"]':{margin:"0",paddingTop:"var(--jx-space-3)",borderTop:"1px solid var(--border)",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)",overflowWrap:"anywhere"}},children:[{tagName:"div",attributes:{part:"sheet"},children:[{tagName:"div",attributes:{part:"kinds-column"},children:[{tagName:"jx-action-group",attributes:{part:"kinds"},$props:{selects:"single",label:"What to create",orientation:"vertical",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/kinds"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"kind","data-kind":"${$map.item.id}"},$props:{label:{$ref:"$map/item/label"},icon:{$ref:"$map/item/icon"},checked:{$ref:"$map/item/checked"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickKind"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",attributes:{part:"kind-text"},children:[{tagName:"span",attributes:{part:"kind-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"kind-hint"},textContent:"${$map.item.hint}"}]}]}}]},{tagName:"p",attributes:{part:"chord-note"},textContent:"${state.chordNote}"}]},{tagName:"section",attributes:{part:"detail","aria-label":"${state.kindLabel}"},children:[{tagName:"p",attributes:{part:"kind-intro"},textContent:"${state.kindHint}"},{tagName:"div",attributes:{part:"name-slot",role:"none"},$switch:{$ref:"#/state/named"},cases:{true:{tagName:"jx-field",attributes:{part:"name-row"},$props:{span:!0,label:{$ref:"#/state/nameLabel"},invalid:{$ref:"#/state/invalid"}},children:[{tagName:"jx-textfield",attributes:{part:"name"},$props:{value:{$ref:"#/state/name"},placeholder:{$ref:"#/state/placeholder"},invalid:{$ref:"#/state/invalid"},error:{$ref:"#/state/error"},required:!0,autocomplete:"off"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setName"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"options-slot",role:"none"},$switch:{$ref:"#/state/kind"},cases:{page:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"div",attributes:{part:"locale-slot",role:"none"},$switch:{$ref:"#/state/localeShown"},cases:{true:{tagName:"jx-field",attributes:{part:"locale-row"},$props:{span:!0,label:"Language"},children:[{tagName:"jx-select",attributes:{part:"locale"},$props:{size:"sm",label:"Language",options:{$ref:"#/state/localeOptions"},value:{$ref:"#/state/locale"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickLocale"},value:[{$ref:"event#/target/value"}]}]}}]}}},{tagName:"div",attributes:{part:"url-row"},children:[{tagName:"span",attributes:{part:"url-label"},textContent:"URL"},{tagName:"code",attributes:{part:"route"},textContent:"${state.route}"},{tagName:"jx-action-button",attributes:{part:"edit-url"},$props:{label:"Edit URL",toggles:!0,selected:{$ref:"#/state/editingUrl"},size:"sm"},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/toggleUrl"},value:[]}]},children:[{tagName:"span",textContent:"Edit"}]}]},{tagName:"div",attributes:{part:"url-slot",role:"none"},$switch:{$ref:"#/state/editingUrl"},cases:{true:{tagName:"jx-field",attributes:{part:"url-row-field"},$props:{span:!0,label:"URL"},children:[{tagName:"jx-textfield",attributes:{part:"url"},$props:{size:"sm",mono:!0,value:{$ref:"#/state/url"},placeholder:"/pricing"},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setUrl"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"start-row"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Start from"},{tagName:"jx-action-group",attributes:{part:"start-from"},$props:{selects:"single",label:"Start from",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/startChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickStart"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]}]}]},collection:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Each ${state.itemNoun} has"},{tagName:"jx-action-group",attributes:{part:"presets"},$props:{selects:"multiple",label:"Fields",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/presets"},key:{$ref:"$map/item/id"},map:{tagName:"jx-action-button",attributes:{part:"preset","data-preset":"${$map.item.id}"},$props:{label:{$ref:"$map/item/label"},toggles:!0,selected:{$ref:"$map/item/selected"},quiet:!1,size:"sm",icon:{$ref:"$map/item/icon"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/togglePreset"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",textContent:"${$map.item.label}"}]}}]},{tagName:"p",attributes:{part:"note"},textContent:"You can add or change fields later."},{tagName:"div",attributes:{part:"localized-slot",role:"none"},$switch:{$ref:"#/state/localizable"},cases:{true:{tagName:"jx-checkbox",attributes:{part:"localized"},$props:{checked:{$ref:"#/state/localized"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setLocalized"},value:[{$ref:"event#/target/checked"}]}]},children:[{tagName:"span",textContent:"One folder per language (${state.localeSummary})"}]}}},{tagName:"jx-checkbox",attributes:{part:"own-page"},$props:{checked:{$ref:"#/state/ownPage"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setOwnPage"},value:[{$ref:"event#/target/checked"}]}]},children:[{tagName:"span",textContent:"Give each ${state.itemNoun} its own page"}]},{tagName:"div",attributes:{part:"own-page-slot",role:"none"},$switch:{$ref:"#/state/ownPage"},cases:{true:{tagName:"div",attributes:{part:"pattern-row"},children:[{tagName:"span",attributes:{part:"url-label"},textContent:"at"},{tagName:"code",attributes:{part:"pattern"},textContent:"${state.pattern}"},{tagName:"span",attributes:{part:"url-label"},textContent:"using"},{tagName:"jx-select",attributes:{part:"page-template"},$props:{size:"sm",label:"Template for each page",options:{$ref:"#/state/templateOptions"},value:{$ref:"#/state/pageTemplate"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickPageTemplate"},value:[{$ref:"event#/target/value"}]}]}}]}}}]},template:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Wrap it in"},{tagName:"jx-action-group",attributes:{part:"wrap-in"},$props:{selects:"single",label:"Wrap it in",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/wrapChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickWrap"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]},{tagName:"p",attributes:{part:"note"},textContent:"Pages placed in this template fill its Content area. You can add more named areas later."}]},component:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"p",attributes:{part:"group-label"},textContent:"Start from"},{tagName:"jx-action-group",attributes:{part:"component-start"},$props:{selects:"single",label:"Start from",compact:!1},children:[{$prototype:"Array",items:{$ref:"#/state/componentChoices"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"choice-card","data-value":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickComponentStart"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]},{tagName:"div",attributes:{part:"copy-slot",role:"none"},$switch:{$ref:"#/state/copying"},cases:{true:{tagName:"jx-field",attributes:{part:"copy-row"},$props:{span:!0,label:"Copy of"},children:[{tagName:"jx-select",attributes:{part:"copy-of"},$props:{size:"sm",label:"Component to copy",options:{$ref:"#/state/copyOptions"},value:{$ref:"#/state/copyOf"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickCopy"},value:[{$ref:"event#/target/value"}]}]}}]}}},{tagName:"p",attributes:{part:"note"},textContent:"It appears under Components in the Site panel, ready to drag onto any page."}]},entry:{tagName:"div",attributes:{part:"options",role:"none"},children:[{tagName:"jx-field",attributes:{part:"collection-row"},$props:{span:!0,label:"Collection"},children:[{tagName:"jx-select",attributes:{part:"collection"},$props:{size:"sm",label:"Collection",options:{$ref:"#/state/collectionOptions"},value:{$ref:"#/state/collection"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickCollection"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"div",attributes:{part:"locale-slot",role:"none"},$switch:{$ref:"#/state/localeShown"},cases:{true:{tagName:"jx-field",attributes:{part:"locale-row"},$props:{span:!0,label:"Language"},children:[{tagName:"jx-select",attributes:{part:"locale"},$props:{size:"sm",label:"Language",options:{$ref:"#/state/localeOptions"},value:{$ref:"#/state/locale"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickLocale"},value:[{$ref:"event#/target/value"}]}]}}]}}}]},media:{tagName:"div",attributes:{part:"drop","data-drop":"${state.dropActive}"},ondragover:{$prototype:"Function",body:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/dragOver"},value:[]}]},ondragleave:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/dragOut"},value:[]}]},children:[{tagName:"jx-icon",attributes:{part:"drop-glyph"},$props:{name:"upload-simple"}},{tagName:"p",attributes:{part:"drop-title"},textContent:"Drop images, video or documents"},{tagName:"label",attributes:{part:"browse"},children:[{tagName:"input",attributes:{part:"browse-input",type:"file",multiple:!0,accept:"${state.uploadAccept}"},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/choose"},value:[{$ref:"event#/target"}]}]}},{tagName:"span",textContent:"Browse files"}]},{tagName:"p",attributes:{part:"drop-summary"},textContent:"${state.fileSummary}"}]}}}]}]},{tagName:"p",attributes:{part:"saved","aria-live":"polite"},textContent:"${state.saved}"}]};E("add-new",T);function z(e){return{...e,blocked:!e.canConfirm,invalid:e.error!=="",named:e.kind!=="media"}}function D(e){let t=document.createElement("div");t.style.pointerEvents="auto",t.setAttribute(Ve,vt("dialog","add-new")),e.layer.append(t);let r=!1,o=()=>{if(r)return;r=!0,e.actions.closed()},l=()=>r,{actions:a}=e,d=g({...z(e.view),choose:a.choose,closed:o,confirm:a.confirm,dragOut:a.dragOut,dragOver:a.dragOver,drop:a.drop,pickCollection:a.pickCollection,pickComponentStart:a.pickComponentStart,pickCopy:a.pickCopy,pickKind:a.pickKind,pickLocale:a.pickLocale,pickPageTemplate:a.pickPageTemplate,pickStart:a.pickStart,pickWrap:a.pickWrap,setName:(m)=>{d.name=m,a.setName(m)},setLocalized:a.setLocalized,setOwnPage:a.setOwnPage,setUrl:(m)=>{d.url=m,a.setUrl(m)},toggleUrl:a.toggleUrl,togglePreset:a.togglePreset}),f=null,u=()=>{setTimeout(()=>{let m=f?.root;if(r||!(m instanceof HTMLElement))return;let c=m.querySelector('jx-textfield[part="name"]');if(c)Nh(c,"all")},0)},b=R("add-new",d,t).then(async(m)=>{f=m;let c=m.root;if(l())return m.dispose(),c;if(await sn(c),l())return c;if(Jt(c),d.named)u();return c});return{close(){let m=f?.root;if(m instanceof HTMLElement)Ut(m);f?.dispose(),f=null,t.remove(),o()},host:t,ready:b,update(m){Object.assign(d,z(m))}}}var x="Add new";async function W(){return(await bE()).map((t)=>({name:t.name,ref:t.path})).toSorted((t,r)=>t.name.localeCompare(r.name))}function _(){for(let e of $S("page")){if(e.ext===".json")continue;let t=Aa(e.ext,"serialize");if(t)return{ext:e.ext,name:t.name}}return null}function B(){let e=lr(),t=e?.extensions[0];return e&&t?{ext:t,name:e.name}:null}function J(){return ln(C?.projectConfig??{}).i18n}async function V(e){let t={},{i18n:r}=ln(C?.projectConfig??{});for(let o of await zS(e)){let l=jn(go(o,r));if(l!==null)t[l]=o}return t}async function L(){await jt().catch(()=>{});let e=await Promise.all(Bw().map(async(t)=>{let r={dir:t.dir,ext:t.ext,formatName:bS(t),name:t.name,schema:t.schema};if(_b(t))r.localeDirs=await V(t);return r}));return{i18n:J(),article:_(),collections:e,componentTags:Ne.map((t)=>t.tagName),copyableTags:Ne.filter((t)=>I(t)).map((t)=>t.tagName),contentFormat:B(),declaredContent:PT(),defaultLayout:C?.projectConfig?.defaults?.layout??null,hasSelection:aw()!==null,layouts:await W()}}function I(e){let{path:t}=e;return n(t)&&e.source!=="npm"&&t.endsWith(".json")}async function Y(){let e=new Map;for(let t of Ne){let{path:r}=t;if(!I(t)||!n(r))continue;try{let o=JSON.parse(await p().readFile(r));if(v(o))e.set(t.tagName,o)}catch{}}return e}function U(e,t){let r=e.trim();if(r===Ws||r==="none"||r==="")return Ws;if(r===Pc)return Pc;let o=ol(r);return t.find((a)=>ol(a.ref)===o||ol(a.ref)===`layouts/${o}`||ol(a.ref)===`layouts/${o}.json`||a.name.toLowerCase()===r.toLowerCase())?.ref??null}function G(e,t){let r={};if(e.collection!==void 0)r.collection=e.collection;if(e.locale!==void 0){if(ym(e.locale,t)===null){let o=t.i18n?.locales??[];throw RangeError(`command "file.new" argument "locale": "${e.locale}" is not a language this `+`project declares — declared: ${o.length===0?"none":o.join(", ")}`)}r.locale=e.locale}if(e.template!==void 0){let o=U(e.template,t.layouts);if(o===null){let l=t.layouts.map((a)=>ol(a.ref));throw RangeError(`command "file.new" argument "template": "${e.template}" names no template — `+`declared: ${[Ws,Pc,...l].join(", ")}`)}if(e.kind==="collection")r.pageTemplate=o===Pc?Ws:o;else if(e.kind==="template")r.startFrom=o===Ws||o===Pc?"":o;else r.startFrom=o}return r}async function Q(e){if(e.format===null)return Co(e.doc,null);return Oa(e.format,e.doc,{frontmatter:e.frontmatter??!0,mode:"roundtrip"})}async function F(e,t,r=!1){for(let o of rN(iT(e)))await Promise.all(o.map(async(l)=>{if(!r&&t.has(l))return;t.set(l,sN(l,t)?new Set:await Ow(l))}))}function S(e){if(rb(e),Rd(),e.some((t)=>t.startsWith("pages/")))Gb(),cb();TT(e).then((t)=>{if(t)Rd(),wn("leftPanel")})}async function P(e,t,r){let o;try{o=await Q(t)}catch(l){throw w.error(`Could not prepare ${e}.`,{detail:X(l),path:e,source:x}),Error(`could not prepare ${e}`,{cause:l})}if(await NS(e,o,{quiet:r,source:x})===null)throw Error(`could not write ${e}`)}async function Z(e){let t=e.config,r=C?.projectConfig?.content,o=v(r)?{...r}:{};if(o[t.name]=t.entry,!(await ic({content:o})).ok)return null;let a=["project.json"],d=[];for(let u of[{body:e.content,path:e.path},...e.extraWrites])try{await P(u.path,u.body,!0),a.push(u.path)}catch{d.push(u.path)}if(d.length===0)w.success(`Created the ${t.name} collection`);else w.warn(`Created the ${t.name} collection, but ${d.join(" and ")} could not be written.`,{source:x});S(a),wm(t.name),nt("content.showCollection",{collection:t.name},x);let f={kind:"collection",path:`content/${t.name}`,wrote:a};if(e.route!==void 0)f.route=e.route;return f}async function M(e,t,r){if(e.kind==="media"){let l=await Ys(r,{dir:Ta,only:"media"});if(l.length===0)return null;let a=l.map((d)=>d.path);return S(a),nt("media.browse",{select:l[0].path},x),{kind:"media",path:Ta,wrote:a}}if(e.kind==="collection")return Z(e);let o={kind:e.kind,path:e.path,wrote:[e.path]};if(e.route!==void 0)o.route=e.route;if(e.tag!==void 0)o.tag=e.tag;if(e.kind==="component"&&t.startFrom===pS){let l=await kE(e.tag);if(l===null)return null;return S([l]),await _i(l),o}try{await P(e.path,e.content,!1)}catch{return null}switch(S([e.path]),e.kind){case"component":{ev(e.path,e.content.doc),await _i(e.path);break}case"template":{tw(),await _i(e.path);break}case"entry":{if(t.collection!==void 0)wm(t.collection);await Vl(e.path);break}default:await _i(e.path)}return o}async function Je(e){let t=e.kind??"page";if(t==="media")throw RangeError('command "file.new": Media is uploaded, not named; run file.new { kind: "media" } with no name to open the upload drop zone.');let r=await L(),o=G({...e,kind:t},r);if(t==="entry"&&o.collection===void 0&&r.collections.length===1)o.collection=r.collections[0].name;let l=tT(t,e.name,o,r),a=new Map;await F(l,a,!0);let d=nT(l,e.name,o,r,(u)=>a.get(u));if(d!=="")throw RangeError(`command "file.new": ${d}`);let f=await M(l,o,[]);if(f===null)throw Error(`file.new could not create ${l.path}; the reason is in Problems.`);return f}async function Ye(e){let t=await L(),r=t.collections.find((u)=>u.name===e);if(!r)return w.error(`"${e}" is not a collection this project declares.`,{source:x}),null;let o=`pages/${ds(e)||e}`,l=`${o}/[slug].json`;if((await Ow(o)).has("[slug].json"))return w.error(`${l} already exists.`,{detail:"Open it in Design and point its $paths at this collection, or rename it first.",path:l,source:x}),null;let d=oN(r.schema,r.formatName!==null),f=eT(e,d,mS(Hu(t),t),t);try{await P(l,{doc:f,format:null},!1)}catch{return null}return S([l]),l}function j(e){switch(e.kind){case"page":{let t={startFrom:e.pageStart};if(e.editingUrl)t.url=e.url;if(e.locale!=="")t.locale=e.locale;return t}case"template":return{startFrom:e.wrap};case"component":{let t={startFrom:e.componentStart};if(e.componentStart===vm&&e.copyOf!=="")t.copyOf=e.copyOf;return t}case"collection":return{fields:e.fields,localized:e.localized,ownPage:e.ownPage,pageTemplate:e.pageTemplate};case"entry":{let t={};if(e.collection!=="")t.collection=e.collection;if(e.locale!=="")t.locale=e.locale;return t}default:return{files:e.files.length}}}function y(e,t,r,o,l=""){return{checked:e===o?"true":"false",disabled:l!=="",label:t,note:r,reason:l,value:e}}function q(e,t){let r=t.layouts.map((o)=>y(o.ref,o.name,t.defaultLayout!==null&&ol(o.ref)===ol(t.defaultLayout)?"the site's default":"a template",e.pageStart));if(t.article!==null)r.push(y(Pc,"Article","mostly writing",e.pageStart));return r.push(y(Ws,"Blank","no template",e.pageStart)),r}function ee(){let e=aw();if(!e)return"nothing selected";let r=1+(Array.isArray(e.node.children)?e.node.children.length:0);return r===1?"1 element":`${r} elements`}function te(){let e=ae()?.keymap,t=e?.bindingsFor("file.new")??[];if(!e||t.length===0)return"";let[r,...o]=t.map((l)=>e.format(l));return o.length===0?`${r} opens this anywhere.`:`${r} opens this in the desktop app, ${o.join(" or ")} anywhere.`}function O(e,t,r,o){let l=xw[e.kind],a=xb.filter((s)=>s!=="entry"||t.collections.length>0).map((s)=>({checked:s===e.kind?"true":"false",hint:xw[s].hint,icon:xw[s].icon,id:s,label:xw[s].label})),d=r.config?.name??"",f=oh(d===""?"items":d),u=t.i18n?.locales??[],b=t.collections.find((s)=>s.name===e.collection),m=u.length>0&&(e.kind==="page"||e.kind==="entry"&&b!==void 0&&_b(b)),c=[...t.layouts.map((s)=>({label:s.name,value:s.ref})),{label:"No template",value:Ws}];return{canConfirm:o===""&&!e.busy,chordNote:te(),collection:e.collection,collectionOptions:t.collections.map((s)=>({label:Id(s.name),value:s.name})),componentChoices:[y("blank","Blank","an empty block",e.componentStart),y(pS,"Current selection",ee(),e.componentStart,t.hasSelection===!0?"":"Select an element on the canvas first."),y(vm,"Copy of…","an existing one",e.componentStart,(t.copyableTags??[]).length>0?"":"This project has no components of its own to copy yet.")],copyOf:e.copyOf,copyOptions:[...t.componentDocs?.keys()??[]].map((s)=>({label:`<${s}>`,value:s})),copying:e.componentStart===vm,cta:l.cta,dropActive:e.dropActive?"true":"false",editingUrl:e.editingUrl,error:e.touched||e.kind==="media"?e.kind==="media"?"":o:"",fileSummary:e.files.length===0?"":e.files.map((s)=>s.name).join(", "),itemNoun:f,kind:e.kind,kindHint:l.hint,kindLabel:l.label,kinds:a,locale:e.locale,localeOptions:u.map((s)=>({label:Wt(s),value:s})),localeShown:m,localeSummary:u.join(", "),localizable:u.length>0,localized:e.localized,name:e.name,nameLabel:l.nameLabel,ownPage:e.ownPage,pageTemplate:e.pageTemplate,pattern:r.route??`/${d===""?"items":d}/:slug`,placeholder:l.placeholder,presets:_w.filter((s)=>s!=="richText"||t.contentFormat!==null).map((s)=>{let N=e.fields.includes(s);return{icon:N?"check":"plus",id:s,label:fS[s].label,selected:N}}),route:r.route===void 0||r.route===""?"/":r.route,saved:r.saved,startChoices:q(e,t),templateOptions:c,uploadAccept:Jc(),url:e.url,wrapChoices:[...t.layouts.map((s)=>y(s.ref,s.name,"keeps its frame around this one",e.wrap)),y("","Nothing","a fresh frame",e.wrap)]}}function oe(e,t){let r=e.kind??"page";return r==="entry"&&t.collections.length===0?"page":r}var A=null;function Ge(e={}){if(A)return A.done;let t,r=new Promise((l)=>{t=l}),o={done:r,handle:null};return A=o,ne(e,t,o),r}async function ne(e,t,r){let o=await L(),l=new Map,a={busy:!1,collection:e.collection??o.collections[0]?.name??"",locale:ym(e.locale,o)??o.i18n?.defaultLocale??"",localized:o.i18n!==null&&o.i18n!==void 0,componentStart:"blank",copyOf:"",dropActive:!1,editingUrl:!1,fields:[...QE],files:[],kind:oe(e,o),name:e.name??"",ownPage:!0,pageStart:gS(o,ym(e.locale,o)??o.i18n?.defaultLocale??""),pageTemplate:Hu(o),templateChosen:e.template!==void 0,touched:(e.name??"")!=="",url:"",wrap:Hu(o)===Ws?"":Hu(o)};if(e.template!==void 0){let i=U(e.template,o.layouts);if(i!==null)a.pageStart=i,a.pageTemplate=i===Pc?Ws:i,a.wrap=i===Ws||i===Pc?"":i}if(o.contentFormat===null)a.fields=a.fields.filter((i)=>i!=="richText");let d=!1,f=null,u=()=>tT(a.kind,a.name,j(a),o),b=(i)=>nT(i,a.name,j(a),o,(h)=>l.get(h)),m=()=>{let i=u();if(r.handle?.update(O(a,o,i,b(i))),iT(i).some((h)=>!l.has(h)))F(i,l).then(()=>{if(!d){let h=u();r.handle?.update(O(a,o,h,b(h)))}})},c=(i)=>{i(),m()},s=async()=>{if(a.busy)return;a.touched=!0;let i=u();if(await F(i,l,!0),b(i)!==""){m();return}a.busy=!0,m();try{f=await M(i,j(a),a.files)}catch(k){w.error("Could not create it.",{detail:X(k),source:x}),f=null}if(a.busy=!1,f===null){m();return}r.handle?.close()},N=u(),K=D({actions:{choose:(i)=>{let h=[...i.files??[]];i.value="",c(()=>{a.files=[...a.files,...h]})},closed:()=>{if(d)return;d=!0,A=null,r.handle?.close(),t(f)},confirm:()=>{s()},dragOut:()=>{c(()=>{a.dropActive=!1})},dragOver:()=>{if(!a.dropActive)c(()=>{a.dropActive=!0})},drop:(i)=>{c(()=>{a.dropActive=!1;let h=i?[...i]:[];if(h.length>0)a.kind="media";a.files=[...a.files,...h]})},pickCollection:(i)=>{c(()=>{a.collection=i})},pickComponentStart:(i)=>{if(c(()=>{a.componentStart=i}),i===vm&&o.componentDocs===void 0)Y().then((h)=>{if(o.componentDocs=h,a.copyOf==="")a.copyOf=h.keys().next().value??"";if(!d)m()})},pickLocale:(i)=>{c(()=>{if(a.locale=i,!a.templateChosen)a.pageStart=gS(o,i)})},setLocalized:(i)=>{c(()=>{a.localized=i})},pickCopy:(i)=>{c(()=>{a.copyOf=i})},pickKind:(i)=>{c(()=>{a.kind=i})},pickPageTemplate:(i)=>{c(()=>{a.pageTemplate=i})},pickStart:(i)=>{c(()=>{a.pageStart=i,a.templateChosen=!0})},pickWrap:(i)=>{c(()=>{a.wrap=i})},setName:(i)=>{c(()=>{a.name=i,a.touched=!0})},setOwnPage:(i)=>{c(()=>{a.ownPage=i})},setUrl:(i)=>{c(()=>{a.url=i,a.touched=!0})},toggleUrl:()=>{c(()=>{if(!a.editingUrl)a.url=u().route??"/";a.editingUrl=!a.editingUrl})},togglePreset:(i)=>{c(()=>{let h=_w.find((k)=>k===i);if(h===void 0)return;a.fields=a.fields.includes(h)?a.fields.filter((k)=>k!==h):[...a.fields,h]})}},layer:dt("dialog"),view:O(a,o,N,b(N))});r.handle=K,m()}export{Ye as addCollectionPage,Je as createDirect,Ge as openAddNew};
|
|
2
|
-
|
|
3
|
-
//# debugId=9639025723575D4864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=add-new-flow-v0pm96mr.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{hb,AE,OE,dF,ME}from"./studio-k1xqrgm5.js";import"./studio-g9brbewz.js";import"./studio-sce30r7b.js";import"./studio-4fnb5648.js";export{ME as clearCfConnection,OE as getCfAccountId,hb as getCfToken,dF as setCfAccountId,AE as setCfToken};
|
|
2
|
-
|
|
3
|
-
//# debugId=B9CE9137D6E3A82B64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=cf-settings-mkbcz4z2.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{o,m,h,K,d,g,T,H,N,B,O,_,V,M,ee}from"./iframe-entry-btck0e9s.js";export{m as ARROW_SIGN,o as clamp,V as contrastRatio,g as formatHex,O as formatOklch,H as hsvToRgb,ee as inkOn,B as oklchToSrgb,d as parseColor,K as parseHex,M as preferredInk,_ as relativeLuminance,T as rgbToHsv,h as snapToStep,N as srgbToOklch};
|
|
2
|
-
|
|
3
|
-
//# debugId=A19EC30F547D156964756E2164756E21
|
|
4
|
-
//# sourceMappingURL=color-04361ttk.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{d,g,T,H,N,O,M}from"./iframe-entry-btck0e9s.js";import{a,f}from"./iframe-entry-b5qgggyp.js";import{t}from"./iframe-entry-42hpmwz5.js";var E="jx-color-field",m=0,L=new WeakMap;function x(e){let n=e.currentTarget;return n instanceof HTMLElement&&n.localName===E?n:null}function y(e){let n=e.currentTarget??e.target;return n instanceof Element?n.closest(E):null}function F(e){return e.querySelector('[part="picker"]')}function S(e){return H({a:e.alpha===!0?Number(e.opacity)/100:1,h:Number(e.hue),s:Number(e.saturation),v:Number(e.brightness)})}function c(e,...n){for(let r of n)e.dispatchEvent(new Event(r,{bubbles:!0}))}function C(e,n){let r={...n,a:1};e.solid=g(r),e.ink=M(r)}function s(e){let n=S(e);e.value=e.format==="oklch"?O(N(n)):g(n),e.text=e.value,e.invalid=!1,C(e,n)}function v(e){let n=d(String(e.value??""))??d(String(e.resolved??""));if(e.invalid=!1,e.text=String(e.value??""),!n)return;if(C(e,n),g(n)===g(S(e)))return;let r=T(n);if(e.saturation=Number(r.s.toFixed(2)),e.brightness=Number(r.v.toFixed(2)),e.opacity=Number((r.a*100).toFixed(2)),r.s>0&&r.v>0)e.hue=Number(r.h.toFixed(2))}var k="[data-jx-channel]";function w(e){let{target:n}=e;return n instanceof Element?n.closest(k):null}function h(e){let{target:n}=e;return n!==null&&"value"in n?String(n.value??""):""}function P(e,n,r){let o=x(n);if(!o||n.target===o)return;let i=w(n),l=i?.dataset.jxChannel;if(!i||!l)return;if(n.stopPropagation(),l==="text"){let u=h(n);e.text=u;let b=d(u);if(r==="input"){e.invalid=!1;return}if(!b){e.invalid=u!=="";return}p(e,b),s(e),c(o,"input","change");return}if(l==="system"||l==="palette"){let u=d(h(n));if(!u)return;p(e,{...u,a:e.alpha===!0?Number(e.opacity)/100:1})}else if(l==="area")e.saturation=Number(i.saturation),e.brightness=Number(i.brightness);else if(l==="hue")e.hue=Number(i.value);else if(l==="opacity")e.opacity=Number(i.value);else return;s(e),c(o,r)}function p(e,n){let r=T(n);if(e.saturation=Number(r.s.toFixed(2)),e.brightness=Number(r.v.toFixed(2)),e.alpha===!0)e.opacity=Number((r.a*100).toFixed(2));if(r.s>0&&r.v>0)e.hue=Number(r.h.toFixed(2))}function V(e,n){P(e,n,"input")}function B(e,n){P(e,n,"change")}function q(e,n){let r=y(n),o=r?F(r):null;if(!r||!o||e.disabled===!0)return;if(e.expanded===!0){f(o);return}let i=r.getBoundingClientRect();o.x=Math.round(i.left),o.y=Math.round(i.bottom),a(o,n.currentTarget instanceof Element?n.currentTarget:r)}function G(e){return e===!0&&t(R())}function R(){return globalThis.EyeDropper}function I(e,n){let r=y(n),o=R();if(!r||!o||e.disabled===!0)return Promise.resolve();return new o().open().then((i)=>{let l=d(String(i?.sRGBHex??""));if(!l)return;p(e,l),s(e),c(r,"input","change")}).catch(()=>{})}function J(e,n){let r=x(n);if(!r)return;L.set(e,r),m+=1,e.uid=`jx-color-field-${m}`,v(e),new MutationObserver(()=>{v(e)}).observe(r,{attributeFilter:["data-resolved","data-value"],attributes:!0});let i=F(r);if(i)i.addEventListener("toggle",(l)=>{e.expanded="newState"in l&&l.newState==="open"})}export{G as eyeDropperAvailable,I as onEyeDropper,B as onFieldChange,V as onFieldInput,J as onFieldMount,q as onOpenPicker,v as syncFromValue};
|
|
2
|
-
|
|
3
|
-
//# debugId=6B348FD8E6E232B364756E2164756E21
|
|
4
|
-
//# sourceMappingURL=color-field-qv5r2b16.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ne,wx,Ea,ev,Uc,qc}from"./studio-n9qba0gx.js";import"./studio-4fnb5648.js";export{wx as _componentRegistryLoaded,Uc as buildComponentInstance,Ne as componentRegistry,qc as computeRelativePath,Ea as loadComponentRegistry,ev as noteComponentSaved};
|
|
2
|
-
|
|
3
|
-
//# debugId=AB580B225AC82FEB64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=components-w5zqwva1.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Rb,BS,zS,Db,VT,UT,qT}from"./studio-frc16j8v.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{BS as collectionDirs,Rb as collectionInfo,zS as collectionSourceDirs,UT as createCollectionSource,qT as createPagesSource,Db as listCollectionEntryIds,VT as reloadDraftAwareGrids};
|
|
2
|
-
|
|
3
|
-
//# debugId=F2D54FA9607F75D364756E2164756E21
|
|
4
|
-
//# sourceMappingURL=content-source-g38w0d3f.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Oe,Z,h}from"./studio-knsjyx7n.js";import"./studio-sce30r7b.js";import"./studio-swedpd82.js";import"./studio-4fnb5648.js";import"./studio-q9hx2qp0.js";import"./studio-nvcn2ykc.js";import"./studio-5tet77de.js";import{Jt,Ut,Nh}from"./studio-nzemfbkk.js";import{sn,dt}from"./studio-tpxcryf2.js";import"./studio-wqfaqw4m.js";import"./studio-9c6cbq2c.js";import{Wl}from"./studio-tmfcn347.js";import"./studio-cqxj4fcy.js";import"./studio-k1wvtp03.js";import"./studio-r6mx7vm5.js";import"./studio-g9brbewz.js";import"./studio-pwctzka3.js";import"./studio-n9qba0gx.js";import"./studio-hh394phe.js";import"./studio-1ks5d9y4.js";import"./studio-xva3hzkv.js";import"./studio-90zkgne5.js";import"./studio-pj216fmn.js";import"./studio-daksw8kh.js";import"./studio-4bgvvzhv.js";import"./studio-4zd6an2b.js";import"./studio-bnc50f9h.js";import"./studio-61rg2cz5.js";import{Gw}from"./studio-9gr7xs9r.js";import"./studio-acer0g8w.js";import{rr,Vt,zi}from"./studio-4f7thq0p.js";import{oe}from"./studio-v5wktj6f.js";import{Ve,vt,E,R}from"./studio-9dq7rwc7.js";import{g}from"./studio-3qr08sxq.js";import{v,Kv}from"./studio-k3we3kqb.js";var m={$schema:"https://jxsuite.com/schema/v1",$id:"StudioConvertRepeater",$description:'Repeat…: the dialog that turns the selected element into an `$prototype: "Array"` template. One `jx-dialog`, so the platform owns modality, Escape, the backdrop and focus restoration — which is what retired the `sp-dialog-wrapper` this surface used to open through its bare `open` attribute, and the hand-rolled `requestAnimationFrame` focus move that had to follow it. Three questions in one form: which state definition holds the items, and optionally which function filters and which sorts. The name field appears only when the answer to the first is "Create new…", because a definition that already exists needs no name. Nothing here knows what makes a definition an array — `editor/convert-to-repeater.ts` asks the plugin schemas, keeps the refusals and writes the repeater — and it hands over rows that are already strings.',tagName:"jx-dialog",$props:{headline:"Repeat…",confirmLabel:"Create Repeater",cancelLabel:"Cancel",size:"sm"},attributes:{part:"convert-repeater"},onconfirm:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},style:{$description:"There is no stylesheet to transcribe: the lit version carried one inline `display:flex;flex-direction:column;gap:12px` on a wrapper div and nothing else, because `sp-field-label` and `sp-dialog-wrapper` drew the rest. Both of those are gone — the label is `jx-field`'s, which actually NAMES the control it wraps rather than sitting beside it, and the box is the dialog's — so the whole of this block is the one gap that separated the rows, said in the kit's scale instead of in the twelve pixels somebody typed.",'& [part="form"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-4)"},'& [part="new-slot"], & [part="functions-slot"], & [part="functions"]':{$description:"A branch host and the pair inside it are structure rather than layout: `display: contents` puts the rows they carry straight into the form's own column, so one gap rule spaces every row whether it is drawn or not.",display:"contents"}},children:[{tagName:"div",attributes:{part:"form"},children:[{tagName:"jx-field",attributes:{part:"source-row"},$props:{span:!0,label:"Items source"},children:[{tagName:"jx-select",attributes:{part:"source"},$props:{size:"sm",options:{$ref:"#/state/sourceOptions"},value:{$ref:"#/state/source"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickSource"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"div",attributes:{part:"new-slot",role:"none"},$switch:{$ref:"#/state/creating"},cases:{true:{tagName:"jx-field",attributes:{part:"new-row"},$props:{span:!0,label:"New definition name",invalid:{$ref:"#/state/invalid"}},children:[{tagName:"jx-textfield",attributes:{part:"new-name"},$props:{size:"sm",placeholder:"myItems",value:{$ref:"#/state/newName"},invalid:{$ref:"#/state/invalid"},error:{$ref:"#/state/error"}},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setName"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"functions-slot",role:"none"},$switch:{$ref:"#/state/hasFunctions"},cases:{true:{tagName:"div",attributes:{part:"functions",role:"none"},children:[{tagName:"jx-field",attributes:{part:"filter-row"},$props:{span:!0,label:"Filter (optional)"},children:[{tagName:"jx-select",attributes:{part:"filter"},$props:{size:"sm",options:{$ref:"#/state/functionOptions"},value:{$ref:"#/state/filter"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickFilter"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"jx-field",attributes:{part:"sort-row"},$props:{span:!0,label:"Sort (optional)"},children:[{tagName:"jx-select",attributes:{part:"sort"},$props:{size:"sm",options:{$ref:"#/state/functionOptions"},value:{$ref:"#/state/sort"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickSort"},value:[{$ref:"event#/target/value"}]}]}}]}]}}}]}]};E("convert-repeater",m);var f="__new__";function y(r){return{...r,creating:r.source===f,functionOptions:[{label:"None",value:""},...r.functions.map((o)=>({label:o,value:o}))],hasFunctions:r.functions.length>0,invalid:r.error!=="",sourceOptions:[...r.sources.map((o)=>({label:o,value:o})),{label:"Create new…",value:f}]}}function w(r){let o=document.createElement("div");o.style.pointerEvents="auto",o.setAttribute(Ve,vt("dialog","convert-repeater")),r.layer.append(o);let l=!1,i=()=>{if(l)return;l=!0,r.onClosed()},e=()=>l,s=g({...y(r.view),closed:i,confirm:()=>{r.onConfirm()},pickFilter:(t)=>{s.filter=t,r.onPickFilter(t)},pickSort:(t)=>{s.sort=t,r.onPickSort(t)},pickSource:(t)=>{s.source=t,r.onPickSource(t)},setName:(t)=>{s.newName=t,r.onName(t)}}),c=null,p=()=>{setTimeout(()=>{let t=c?.root;if(l||!(t instanceof HTMLElement))return;let a=t.querySelector('jx-textfield[part="new-name"]');if(a)Nh(a,"all")},0)},u=R("convert-repeater",s,o).then(async(t)=>{c=t;let a=t.root;if(e())return t.dispose(),a;if(await sn(a),e())return a;if(Jt(a),s.creating)p();return a});return{close(){let t=c?.root;if(t instanceof HTMLElement)Ut(t);c?.dispose(),c=null,o.remove(),i()},host:o,ready:u,update(t){let a=y(t),n=a.creating&&!s.creating,d=a.error!==""&&a.error===s.error;if(Object.assign(s,d?{...a,error:""}:a),d){let b=a.error;queueMicrotask(()=>{s.error=b})}if(n)p()}}}var C=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;async function B(){let r=h.value,o=Oe(r?.session.selection);if(!r||!o||o.length<2)return;if(!oe(r.doc.document,o))return;let i=r.doc.document.state||{},e=await N(i);if(!e)return;Z(r,(s)=>{let c=s.doc.document;if(e.newDef){if(!c.state)c.state={};c.state[e.newDef.name]={default:[],type:"array"}}let p=Vt(o);if(!p)return;let u=zi(o),t=oe(c,p);if(!t?.children)return;let a=rr(t)[u],n={$prototype:"Array",items:e.items,map:a};if(e.filter)n.filter=e.filter;if(e.sort)n.sort=e.sort;t.children[u]=n})}async function S(r){let o=Object.entries(r).filter(([,i])=>v(i)&&(i.type==="array"||Array.isArray(i.default)||i.$prototype==="Array")).map(([i])=>i),l=h.value?.documentPath;for(let[i,e]of Object.entries(r)){if(!Kv(e)||!e.$prototype||e.$prototype==="Array")continue;if(o.includes(i))continue;if((await Gw({...e.$src!=null&&{$src:e.$src},$prototype:e.$prototype},{...l!=null&&{documentPath:l}}))?.returns?.type==="array")o.push(i)}return o}async function N(r){let o=await S(r),l=Object.entries(r).filter(([,i])=>Wl(i)==="function").map(([i])=>i);return new Promise((i)=>{let e={error:"",filter:"",functions:l,newName:"",sort:"",source:o[0]??f,sources:o},s=!1,c=(n)=>{if(s)return;s=!0,a.close(),i(n)},p=(n)=>{e.error=n,a.update(e)},u=()=>({...e.filter&&{filter:{$ref:`#/state/${e.filter}`}},...e.sort&&{sort:{$ref:`#/state/${e.sort}`}}}),t=()=>{if(e.source!==f){c({items:{$ref:`#/state/${e.source}`},...u()});return}let n=e.newName.trim();if(!n){p("Enter a name for the new state definition.");return}if(r[n]){p(`"${n}" already exists.`);return}if(!C.test(n)){p("Invalid identifier name.");return}c({items:{$ref:`#/state/${n}`},...u(),newDef:{name:n}})},a=w({layer:dt("dialog"),onClosed:()=>c(null),onConfirm:t,onName:(n)=>{e.newName=n,e.error="",a.update(e)},onPickFilter:(n)=>{e.filter=n,a.update(e)},onPickSort:(n)=>{e.sort=n,a.update(e)},onPickSource:(n)=>{e.source=n,e.error="",a.update(e)},view:e})})}export{B as convertToRepeater};
|
|
2
|
-
|
|
3
|
-
//# debugId=2E1274CCF8D2A5F064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=convert-to-repeater-r8sfxjjm.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{eF,tm,tF,nF,iF,hp,oF,rF,wa,C_,Ed,sF,Un,xe}from"./studio-eqcddvc2.js";export{eF as CancellationTokenSource,tm as Emitter,tF as KeyCode,nF as KeyMod,wa as MarkerSeverity,C_ as MarkerTag,iF as Position,hp as Range,oF as Selection,rF as SelectionDirection,sF as Token,Ed as Uri,Un as editor,xe as languages};
|
|
2
|
-
|
|
3
|
-
//# debugId=46ABB4AB57AE889864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=editor-wvf5e6j9.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{bS,fF,oT}from"./studio-cw11h078.js";import"./studio-amaz545p.js";import"./studio-s24mhq0z.js";import"./studio-1ctnw3xv.js";import"./studio-z3fztxrp.js";import"./studio-cqxj4fcy.js";import"./studio-4bgvvzhv.js";import"./studio-qrzmfaf6.js";import"./studio-daksw8kh.js";import"./studio-frc16j8v.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";import"./studio-k1wvtp03.js";export{fF as createEntry,bS as entryFormatName,oT as registerContentCommands};
|
|
2
|
-
|
|
3
|
-
//# debugId=8E1975D2E5C4E26A64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=entry-commands-t13dyw3c.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import"./studio-4fnb5648.js";import{jt,od,ou}from"./studio-q9hx2qp0.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-nvcn2ykc.js";import"./studio-nzemfbkk.js";import"./studio-cqxj4fcy.js";import"./studio-5tet77de.js";import{Zs,dt}from"./studio-tpxcryf2.js";import"./studio-wqfaqw4m.js";import"./studio-daksw8kh.js";import"./studio-k1wvtp03.js";import"./studio-1y9mab9m.js";import{_N,SN,ql,CN}from"./studio-nwf0c32p.js";import"./studio-g9brbewz.js";import"./studio-pwctzka3.js";import{bT}from"./studio-gnazwtv3.js";import{FS,jN,jT,BT}from"./studio-2zz4qbv9.js";import"./studio-4zd6an2b.js";import"./studio-hh394phe.js";import"./studio-bnc50f9h.js";import"./studio-xpx91fby.js";import"./studio-rr00ex23.js";import"./studio-v7a7yb5w.js";import"./studio-r6mx7vm5.js";import"./studio-frc16j8v.js";import"./studio-1ks5d9y4.js";import"./studio-61rg2cz5.js";import"./studio-1410q5dw.js";import"./studio-3pz4t5a2.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-90zkgne5.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-acer0g8w.js";import{E,R}from"./studio-9dq7rwc7.js";import{g}from"./studio-3qr08sxq.js";import{n,_}from"./studio-k3we3kqb.js";var h={$schema:"https://jxsuite.com/schema/v1",$id:"StudioDataActions",$description:"The actions row a data-domain settings section grows: test a connection, push the schema, open the rows as a grid. It is an ISLAND inside `surfaces/settings-contributed.json` — the generic contributed-section renderer stays extension-agnostic and draws an empty host, and `panels/data-grid.ts` mounts this into it — which is the seam that lets the data surface contribute verbs without the settings machinery learning what a connection is.",tagName:"div",attributes:{part:"data-actions"},style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"var(--jx-space-2)",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",'& [part="result"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="result"][data-ok="false"]':{color:"var(--danger)"},'& [part="result"][data-ok="true"]':{color:"var(--success, var(--accent))"}},children:[{tagName:"span",attributes:{part:"test-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/testState"},cases:{shown:{tagName:"jx-button",attributes:{part:"test"},$props:{variant:"secondary",size:"sm",disabled:{$ref:"#/state/testDisabled"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/test"},value:[]}]},children:[{tagName:"span",textContent:"${state.testLabel}"}]}}},{tagName:"jx-button",attributes:{part:"push"},$props:{variant:"secondary",size:"sm"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/push"},value:[]}]},children:[{tagName:"span",textContent:"Push Schema"}]},{tagName:"jx-button",attributes:{part:"grid"},$props:{variant:"secondary",size:"sm"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openGrid"},value:[]}]},children:[{tagName:"span",textContent:"Open Data Grid"}]},{tagName:"span",attributes:{part:"result-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/resultState"},cases:{shown:{$description:"The last test's verdict, and a live region because it arrives after the press that asked for it.",tagName:"span",attributes:{part:"result",role:"status","data-ok":"${state.resultOk}",title:"${state.resultTitle}"},textContent:"${state.resultText}"}}}]};E("data-actions",h);function S(t,e){t.testState=e.testState,t.testLabel=e.testLabel,t.testDisabled=e.testDisabled,t.resultState=e.resultState,t.resultOk=e.resultOk,t.resultText=e.resultText,t.resultTitle=e.resultTitle}function y(t,e,o){let a=g({openGrid:o.openGrid,push:o.push,resultOk:"false",resultState:"hidden",resultText:"",resultTitle:"",test:o.test,testDisabled:!1,testLabel:"Test Connection",testState:"hidden"});S(a,e);let s=null,l=!1,r=R("data-actions",a,t).then((i)=>{let d=i.root;if(l)return i.dispose(),d;return s=i,d});return{dispose(){l=!0,s?.dispose(),s=null},ready:r,update:(i)=>S(a,i)}}var b={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPushPlan",$description:"What pushing the schema would do, or what it did. The dry run is the whole point of the surface: a push rewrites a live database's shape, so the plan is read before the apply, and the confirm dialog around this document is the one that gates it. The ISLAND of `ui/layers.ts`'s confirm dialog rather than a dialog of its own (studio-ui-guidelines.md §12.5).",tagName:"div",attributes:{part:"plan"},style:{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)",minWidth:"0",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",color:"var(--fg)",'& [part="steps"]':{margin:"0",padding:"0",listStyle:"none",display:"flex",flexDirection:"column",gap:"2px",maxHeight:"40vh",overflowY:"auto"},'& [part="step"]':{fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)",padding:"2px var(--jx-space-2)",borderLeft:"2px solid var(--border)"},'& [part="step"][data-kind="drop"]':{borderLeftColor:"var(--danger)"},'& [part="step"][data-kind="create"]':{borderLeftColor:"var(--success, var(--accent))"},'& [part="warning"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--warning, var(--fg-dim))"},'& [part="failure"]':{$description:'`failure` rather than `error`: every kit field draws a permanent, empty `[part="error"]` of its own, and the kit is light DOM, so a rule on that name here would reach any field the plan ever holds.',margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--danger)"}},children:[{tagName:"ul",attributes:{part:"steps"},children:[{$prototype:"Array",items:{$ref:"#/state/steps"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"step","data-kind":"${$map.item.kind}"},textContent:"${$map.item.summary}"}}]},{$prototype:"Array",items:{$ref:"#/state/warnings"},key:{$ref:"$map/item/key"},map:{tagName:"p",attributes:{part:"warning"},textContent:"${$map.item.text}"}},{$prototype:"Array",items:{$ref:"#/state/errors"},key:{$ref:"$map/item/key"},map:{tagName:"p",attributes:{part:"failure",role:"alert"},textContent:"${$map.item.text}"}}]};E("push-plan",b);function x(t,e){let o=g({errors:e.errors,steps:e.steps,warnings:e.warnings}),a=null,s=!1,l=R("push-plan",o,t).then((r)=>{if(s)r.dispose();else a=r;return r.root});return{dispose(){s=!0,a?.dispose(),a=null},ready:l,update(r){o.steps=r.steps,o.warnings=r.warnings,o.errors=r.errors}}}var u=null;function v(){let t=u;u=null,t?.plan?.dispose(),t?.handle.close()}function P(t,e){return t.map((o,a)=>({key:`${e}:${a}`,text:o}))}function k(t){let e=t.phase==="done"?t.result:t.dryRun;return{errors:P(e?.errors??[],"error"),steps:(e?.plan??[]).map((o,a)=>({key:`${o.kind}:${a}`,kind:o.kind,summary:o.summary})),warnings:P(e?.warnings??[],"warning")}}function L(t){if(t.phase==="loading")return"Compiling plan…";if(t.phase==="applying")return"Applying…";if(t.phase==="done")return t.result?.applied?"Schema applied.":"Push failed.";let e=t.dryRun?.plan.length??0,o=t.dryRun?.errors?.length??0;return e===0&&o===0?"Nothing to push — the schema is up to date.":""}function f(){let t=u;if(!t)return;let e=t.phase==="confirm"&&(t.dryRun?.plan.length??0)>0;t.handle.update({cancelLabel:t.phase==="done"?"Close":"Cancel",confirmLabel:e?"Apply":"",message:L(t)}),t.plan?.update(k(t))}async function H(t,e){if(u)return;let o={connection:t,dryRun:null,onDone:e,phase:"loading",plan:null,result:null},a=Zs({cancelLabel:"Cancel",confirmLabel:"",headline:t?`Push Schema — ${t}`:"Push Schema",island:(i)=>{o.plan=x(i,k(o))},layer:dt("dialog"),message:"Compiling plan…",onCancel:v,onClosed:()=>{if(u===o)v()},onConfirm:()=>{N()},region:"data/push"}),s=Object.assign(o,{handle:a});u=s;let l={dryRun:!0};if(t!==void 0)l.connection=t;let r=await jT(l);if(u!==s)return;s.dryRun=r,s.phase="confirm",f()}async function N(){let t=u;if(!t)return;t.phase="applying",f();let e=await jT(t.connection===void 0?{}:{connection:t.connection});if(u!==t)return;t.result=e,t.phase="done",f(),t.onDone()}var c={pushing:!1,testResult:null,testing:null},D=new Map;function w(t,e){let{testResult:o}=c;return{resultOk:o?.ok?"true":"false",resultState:o?"shown":"hidden",resultText:o?`${o.connection}: ${o.ok?"connected":o.error??"failed"}`:"",resultTitle:o?.error??"",testDisabled:!e||c.testing!==null,testLabel:c.testing?"Testing…":"Test Connection",testState:t==="connections"?"shown":"hidden"}}function A(t){if(t!=="connections"&&t!=="data"||!FS())return null;return(e,o)=>O(e,t,o)}async function j(t,e){c.testing=t,c.testResult=null,e();let o=await jN(t);c.testing=null,c.testResult={...o,connection:t},e()}function O(t,e,o){let{rerender:a,selected:s}=o,l=D.get(t);if(l){l.update(w(e,s));return}let r=()=>e==="connections"?o.selected??void 0:void 0;D.set(t,y(t,w(e,s),{openGrid:()=>{BT()},push:()=>{H(r(),a)},test:()=>{let i=o.selected;if(i)j(i,a)}}))}var V=100;function G(t){let e=t.studio?.settings;if(!e)return null;let{key:o}=t.project,a=e.layout??"form",s=t.entrySchema??{},l=a==="map"?_(s.additionalProperties)?s.additionalProperties:{}:s,r=e.label??t.project.title??o,i={};if(e.entry!==void 0)i.entry=e.entry;if(e.layout!==void 0)i.layout=e.layout;return{contribution:{entrySchema:l,key:o,settings:i,title:r},group:SN(e.group)?e.group:_N,icon:e.icon,intro:n(e.intro)?e.intro:void 0,key:o,label:r,order:e.order??V}}var m=new Set,p=null;function ut(){return p??Promise.resolve()}function ct(){return p??=M().finally(()=>{p=null}),p}async function M(){let[t]=await Promise.all([od(),jt()]),e=new Set;for(let o of t)for(let a of o.contributions){let s=G(a);if(!s)continue;let{contribution:l}=s;ql({group:s.group,icon:s.icon,intro:s.intro,key:s.key,label:s.label,order:s.order,render:(r)=>{let i=A(s.key),d={formats:ou()};if(i!==null)d.actions=i;bT(r,l,d)}}),e.add(s.key)}for(let o of m)if(!e.has(o))CN(o);m.clear();for(let o of e)m.add(o)}export{ut as extensionSectionsReady,ct as syncExtensionSettingsSections};
|
|
2
|
-
|
|
3
|
-
//# debugId=E70DCEEBD046713B64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=extension-sections-vjzw46xb.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{GN,Fr,KT,vF,JT,Ip,YT,Ab,Ob}from"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{Ab as confirmFileDelete,YT as exportFile,vF as openFile,KT as parseCollabSource,GN as parseFormatSource,Fr as parseSourceForPath,Ob as renamePromptMessage,Ip as saveFile,JT as setDocumentSavedListener};
|
|
2
|
-
|
|
3
|
-
//# debugId=E2BEBE96F17F6E2864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=file-ops-1sghzgcr.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{rl,Em,TT,LT,VP,$T,IT,RT,DS,UP,Ib,DT,qP,GP,NT,ON,KP,JP,Ow,NS,AS,Mw,Tm,YP,Pw,OS,_i,MS,AT,OT,Lm,MT,ZP,XP}from"./studio-a88ej93p.js";import"./studio-qrzmfaf6.js";import"./studio-2zz4qbv9.js";import"./studio-daksw8kh.js";import"./studio-frc16j8v.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-mrjtnm62.js";import"./studio-k2evngrj.js";import"./studio-jma2q8r9.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{qP as FILE_ROW_HEIGHT,NT as canMoveInto,Pw as commitRename,JP as createFileIn,DS as findHomePage,RT as initProjectRepo,GP as isFileDrag,OS as listRenameSiblings,Ow as listTakenNames,rl as loadDirectory,$T as loadProject,Em as loadProjectDirectories,ZP as mountFilesPanel,Mw as notifyMoveOutcome,MS as openFileInPane,_i as openFileInTab,UP as openHomePage,Ib as openLastSessionOrHome,IT as openProject,Tm as parentDirOf,KP as pickAndUploadTo,TT as refreshProjectDirectoriesFor,MT as registerFilesPanel,AT as reloadCleanTab,Lm as reloadFileInTab,OT as reloadTabsIfChanged,AS as renameStatus,DT as setSessionWorkspaceShow,VP as setShowIgnoredFiles,YP as settleRename,LT as showIgnoredFiles,XP as unmountFilesPanel,ON as uploadFilesToDir,NS as writeNewFile};
|
|
2
|
-
|
|
3
|
-
//# debugId=111BEFF0F4BA348F64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=files-zrqtgt41.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{jt,Ih,od,Dv,l0,sc,ou,Aa,Wi,lf,fn,wl,Nv,lr,AI,Oa,OI}from"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";export{lr as defaultContentFormat,wl as documentExtensions,Aa as formatByExtension,Wi as formatByName,fn as formatForPath,AI as formatParse,Oa as formatSerialize,l0 as getExtensionCatalog,Dv as getExtensions,ou as getFormats,od as loadExtensions,jt as loadFormats,lf as noFormatError,sc as refreshExtensionUi,Ih as refreshFormats,Nv as routedPageExtensions,OI as splitFormatDocument};
|
|
2
|
-
|
|
3
|
-
//# debugId=0F1A7F7E2811057864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=format-host-9gy76erh.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Ls,Ud,tI}from"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-nvcn2ykc.js";export{Ud as isRecentLocal,Ls as markLocalMutation,tI as startFsSync};
|
|
2
|
-
|
|
3
|
-
//# debugId=013F41851DCDF49064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=fs-events-45rhg3me.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{HT,BN,HS,BT,zT}from"./studio-2zz4qbv9.js";import"./studio-frc16j8v.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{BN as openCollectionGrid,HT as openCsvGridTab,BT as openGridSourcePicker,HS as openPagesGrid,zT as registerGridCommands};
|
|
2
|
-
|
|
3
|
-
//# debugId=D02FED0E1E7282FF64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=grid-open-t4fq6bbm.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
function e(o){return typeof o==="string"}function i(o){return typeof o==="number"}function x(o){return typeof o==="boolean"}function t(o){return typeof o==="function"}function n(o){return typeof o==="object"&&o!==null}function s(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}function r(o){return s(o)&&typeof o.$ref==="string"}function v(o){return s(o)&&o.$prototype==="Function"}function b(o){return s(o)&&s(o.$expression)}function j(o){return b(o)&&Array.isArray(o.parameters)&&o.parameters.length>0}function k(o){return v(o)&&Array.isArray(o.body)}function R(o){return s(o)&&typeof o.$prototype==="string"&&o.$prototype!=="Function"}function D(o){return s(o)&&o.timing==="server"&&typeof o.$src==="string"&&typeof o.$export==="string"&&!o.$prototype}function S(o){return s(o)&&o.$prototype==="Array"}function l(o){return s(o)}function c(o){return typeof o==="string"&&o.includes("${")}function I(o){return/\breturn\b[^\S\n]*(?![;}\s]|$)/.test(o)}function F(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}function Z(o){return r(o)||v(o)||b(o)}function W(o){if(!o)return[];return o.map((f)=>e(f)?f:f.name)}function p(o){return typeof o==="string"}function J(o){if(typeof o!=="object"||o===null||Array.isArray(o)||!s(o.$expression))return!1;let f=o.$expression;if(f.operator==="?:")return typeof f.value==="string"&&typeof f.initial==="string";if(f.operator==="switch")return s(f.cases)&&Object.values(f.cases).every((a)=>e(a))&&typeof f.default==="string";return!1}function y(o){if(p(o))return[o];if(!J(o))return[];let f=o.$expression;if(f.operator==="?:")return[...new Set([f.value,f.initial])];return[...new Set([...Object.values(f.cases),f.default])]}function u(o){return p(o)?o:y(o).join("|")}function w(o){return o.startsWith("#")}
|
|
2
|
-
export{e,i,x,t,n,s,r,v,b,j,k,R,D,S,l,c,I,F,Z,W,J,u,w};
|
|
3
|
-
|
|
4
|
-
//# debugId=5648629906EEF91B64756E2164756E21
|
|
5
|
-
//# sourceMappingURL=iframe-entry-42hpmwz5.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{o$,r$,s$,a$,DC,Yb,Zb,NC,tc,l$,c$,d$,Xb,QP,yF,u$,Vc,gx,bx,h$,p$,f$,m$,g$,b$,v$,y$,w$,x$,_$,S$,AC,C$,Qb,k$,E$,T$,L$,$$,I$,vx,R$,nc,D$,dh,N$,yx,OC}from"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1ks5d9y4.js";export{u$ as adoptCanvasPreviewMode,r$ as allowAutoRequestsOnNextRender,Zb as beginDragSession,l$ as canvasIdleBlockers,d$ as canvasPointAt,bx as clearDropIndicator,yx as commitActiveEditSession,NC as currentDragSession,C$ as dragHostTab,gx as endDragSession,a$ as flushCanvasEdits,OC as getEditBarAnchorRect,nc as getEditSnapshot,tc as hostDragGeometry,DC as hostForCanvas,v$ as isCaretActive,Yb as liveDragHostAt,yF as measureInCanvas,k$ as mountIframeCanvas,E$ as mountStylebookCanvas,R$ as panToStylebookTag,c$ as pointerAnchor,dh as postApplyFormat,T$ as postColorSchemeToLiveHosts,S$ as postDialogOpen,Vc as postDragMessage,L$ as postLocaleToLiveHosts,N$ as postOpenSlash,AC as postPatchToHosts,_$ as postPopoverOpen,$$ as postRedefineElementToLiveHosts,I$ as postSiteStyleToLiveHosts,vx as postStyleUpdateToStylebookHosts,Qb as releaseCanvasHosts,s$ as requestCanvasEval,Xb as revealCanvasPath,QP as revealCanvasPathIn,o$ as sawIframeDragOver,g$ as setCanvasContextMenuHandler,w$ as setCanvasPointerDownHandler,m$ as setCanvasSlashHandler,f$ as setFileDropHandler,x$ as setIframePatchEscalation,p$ as setInsertZoneClickHandler,D$ as setKeymapSource,h$ as setNativeDragEnterHandler,b$ as setStylebookHitHandler,y$ as setToolbarRefresh};
|
|
2
|
-
|
|
3
|
-
//# debugId=4D45A8DE30CBB6C764756E2164756E21
|
|
4
|
-
//# sourceMappingURL=iframe-host-9aq8ze3q.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{OR,MR,PR,FR,jR,Tu,HR,Xg,BR,nm,zR,im,CP,E_,qk,kP,EP,TP,LP,Lu,$P,IP,RP,Gk,Kk,DP,NP,AP,OP,Jk,MP}from"./studio-0khd8xtx.js";import{Td,T_,Qg,PP,qR,GR,KR,JR,eb,Xk,Qk}from"./studio-3na1r48j.js";import{Vs,bF}from"./studio-j0zf5x2x.js";import{Ce,oe,Ov,Mv}from"./studio-v5wktj6f.js";export{jR as COLLAB_SCHEMA_VERSION,Lu as CollabPathError,eb as EnvelopeError,GR as FRAME_AWARENESS,JR as FRAME_CONTROL,KR as FRAME_DOC_CLOSE,qR as FRAME_DOC_SYNC,MR as FRONTMATTER_KEY,EP as LOCAL_ORIGIN,OR as META_KEY,TP as MIRROR_ORIGIN,Jk as PRESENCE_PALETTE,LP as SEED_ORIGIN,FR as SOURCE_KEY,PR as STRUCTURE_KEY,PP as UndoManager,Td as YDoc,DP as acquireSourceCanonical,Mv as applyDocOpToDoc,$P as applyDocOpsToY,Gk as canonicalOf,Kk as canonicalRevOf,Ov as childArray,Ce as cloneValue,MP as colorForKey,Qg as createAbsolutePositionFromRelativePosition,T_ as createRelativePositionFromTypeIndex,Qk as decodeFrame,Vs as deepEqual,bF as diffDocs,Xk as encodeFrame,HR as frontmatterMap,oe as getNodeAtPath,OP as isSourceReconciler,Tu as metaMap,AP as otherSourceEditors,NP as releaseSourceCanonical,RP as replaceYStructure,E_ as resolveYPath,kP as seedStructure,BR as sourceText,Xg as structureMap,nm as toYChildren,zR as toYNode,qk as updateSourceText,CP as yDocToJson,IP as yEventsToDocOps,im as yValueToJson};
|
|
2
|
-
|
|
3
|
-
//# debugId=94CCAD635D2A7C1964756E2164756E21
|
|
4
|
-
//# sourceMappingURL=index-f9qr7kzh.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{hp,wa,Ed,Un,xe}from"./studio-eqcddvc2.js";import{_0}from"./studio-egnjpyde.js";import"./studio-k0xzrse2.js";var Ve=120000;class G{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30000),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){if(this._worker)this._worker.dispose(),this._worker=null;this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;if(Date.now()-this._lastUsedTime>Ve)this._stopWorker()}_getClient(){if(this._lastUsedTime=Date.now(),!this._client)this._worker=_0({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("json.worker.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy();return this._client}getLanguageServiceWorker(...o){let t;return this._getClient().then((n)=>{t=n}).then((n)=>{if(this._worker)return this._worker.withSyncedResources(o)}).then((n)=>t)}}var yo;(function(o){function t(n){return typeof n==="string"}o.is=t})(yo||(yo={}));var Z;(function(o){function t(n){return typeof n==="string"}o.is=t})(Z||(Z={}));var Mo;(function(o){o.MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647;function t(n){return typeof n==="number"&&o.MIN_VALUE<=n&&n<=o.MAX_VALUE}o.is=t})(Mo||(Mo={}));var R;(function(o){o.MIN_VALUE=0,o.MAX_VALUE=2147483647;function t(n){return typeof n==="number"&&o.MIN_VALUE<=n&&n<=o.MAX_VALUE}o.is=t})(R||(R={}));var A;(function(o){function t(i,e){if(i===Number.MAX_VALUE)i=R.MAX_VALUE;if(e===Number.MAX_VALUE)e=R.MAX_VALUE;return{line:i,character:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.uinteger(e.line)&&c.uinteger(e.character)}o.is=n})(A||(A={}));var h;(function(o){function t(i,e,r,a){if(c.uinteger(i)&&c.uinteger(e)&&c.uinteger(r)&&c.uinteger(a))return{start:A.create(i,e),end:A.create(r,a)};else if(A.is(i)&&A.is(e))return{start:i,end:e};else throw Error(`Range#create called with invalid arguments[${i}, ${e}, ${r}, ${a}]`)}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&A.is(e.start)&&A.is(e.end)}o.is=n})(h||(h={}));var W;(function(o){function t(i,e){return{uri:i,range:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&(c.string(e.uri)||c.undefined(e.uri))}o.is=n})(W||(W={}));var Lo;(function(o){function t(i,e,r,a){return{targetUri:i,targetRange:e,targetSelectionRange:r,originSelectionRange:a}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.targetRange)&&c.string(e.targetUri)&&h.is(e.targetSelectionRange)&&(h.is(e.originSelectionRange)||c.undefined(e.originSelectionRange))}o.is=n})(Lo||(Lo={}));var X;(function(o){function t(i,e,r,a){return{red:i,green:e,blue:r,alpha:a}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.numberRange(e.red,0,1)&&c.numberRange(e.green,0,1)&&c.numberRange(e.blue,0,1)&&c.numberRange(e.alpha,0,1)}o.is=n})(X||(X={}));var Ao;(function(o){function t(i,e){return{range:i,color:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&X.is(e.color)}o.is=n})(Ao||(Ao={}));var zo;(function(o){function t(i,e,r){return{label:i,textEdit:e,additionalTextEdits:r}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.string(e.label)&&(c.undefined(e.textEdit)||B.is(e))&&(c.undefined(e.additionalTextEdits)||c.typedArray(e.additionalTextEdits,B.is))}o.is=n})(zo||(zo={}));var S;(function(o){o.Comment="comment",o.Imports="imports",o.Region="region"})(S||(S={}));var Io;(function(o){function t(i,e,r,a,d,p){let s={startLine:i,endLine:e};if(c.defined(r))s.startCharacter=r;if(c.defined(a))s.endCharacter=a;if(c.defined(d))s.kind=d;if(c.defined(p))s.collapsedText=p;return s}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.uinteger(e.startLine)&&c.uinteger(e.startLine)&&(c.undefined(e.startCharacter)||c.uinteger(e.startCharacter))&&(c.undefined(e.endCharacter)||c.uinteger(e.endCharacter))&&(c.undefined(e.kind)||c.string(e.kind))}o.is=n})(Io||(Io={}));var J;(function(o){function t(i,e){return{location:i,message:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&W.is(e.location)&&c.string(e.message)}o.is=n})(J||(J={}));var T;(function(o){o.Error=1,o.Warning=2,o.Information=3,o.Hint=4})(T||(T={}));var To;(function(o){o.Unnecessary=1,o.Deprecated=2})(To||(To={}));var jo;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&c.string(i.href)}o.is=t})(jo||(jo={}));var H;(function(o){function t(i,e,r,a,d,p){let s={range:i,message:e};if(c.defined(r))s.severity=r;if(c.defined(a))s.code=a;if(c.defined(d))s.source=d;if(c.defined(p))s.relatedInformation=p;return s}o.create=t;function n(i){var e;let r=i;return c.defined(r)&&h.is(r.range)&&c.string(r.message)&&(c.number(r.severity)||c.undefined(r.severity))&&(c.integer(r.code)||c.string(r.code)||c.undefined(r.code))&&(c.undefined(r.codeDescription)||c.string((e=r.codeDescription)===null||e===void 0?void 0:e.href))&&(c.string(r.source)||c.undefined(r.source))&&(c.undefined(r.relatedInformation)||c.typedArray(r.relatedInformation,J.is))}o.is=n})(H||(H={}));var D;(function(o){function t(i,e,...r){let a={title:i,command:e};if(c.defined(r)&&r.length>0)a.arguments=r;return a}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.title)&&c.string(e.command)}o.is=n})(D||(D={}));var B;(function(o){function t(r,a){return{range:r,newText:a}}o.replace=t;function n(r,a){return{range:{start:r,end:r},newText:a}}o.insert=n;function i(r){return{range:r,newText:""}}o.del=i;function e(r){let a=r;return c.objectLiteral(a)&&c.string(a.newText)&&h.is(a.range)}o.is=e})(B||(B={}));var K;(function(o){function t(i,e,r){let a={label:i};if(e!==void 0)a.needsConfirmation=e;if(r!==void 0)a.description=r;return a}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&c.string(e.label)&&(c.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(c.string(e.description)||e.description===void 0)}o.is=n})(K||(K={}));var E;(function(o){function t(n){let i=n;return c.string(i)}o.is=t})(E||(E={}));var So;(function(o){function t(r,a,d){return{range:r,newText:a,annotationId:d}}o.replace=t;function n(r,a,d){return{range:{start:r,end:r},newText:a,annotationId:d}}o.insert=n;function i(r,a){return{range:r,newText:"",annotationId:a}}o.del=i;function e(r){let a=r;return B.is(a)&&(K.is(a.annotationId)||E.is(a.annotationId))}o.is=e})(So||(So={}));var oo;(function(o){function t(i,e){return{textDocument:i,edits:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&ro.is(e.textDocument)&&Array.isArray(e.edits)}o.is=n})(oo||(oo={}));var eo;(function(o){function t(i,e,r){let a={kind:"create",uri:i};if(e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0))a.options=e;if(r!==void 0)a.annotationId=r;return a}o.create=t;function n(i){let e=i;return e&&e.kind==="create"&&c.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||c.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||c.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(eo||(eo={}));var io;(function(o){function t(i,e,r,a){let d={kind:"rename",oldUri:i,newUri:e};if(r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0))d.options=r;if(a!==void 0)d.annotationId=a;return d}o.create=t;function n(i){let e=i;return e&&e.kind==="rename"&&c.string(e.oldUri)&&c.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||c.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||c.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(io||(io={}));var to;(function(o){function t(i,e,r){let a={kind:"delete",uri:i};if(e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0))a.options=e;if(r!==void 0)a.annotationId=r;return a}o.create=t;function n(i){let e=i;return e&&e.kind==="delete"&&c.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||c.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||c.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||E.is(e.annotationId))}o.is=n})(to||(to={}));var no;(function(o){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every((e)=>{if(c.string(e.kind))return eo.is(e)||io.is(e)||to.is(e);else return oo.is(e)}))}o.is=t})(no||(no={}));var Do;(function(o){function t(i){return{uri:i}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)}o.is=n})(Do||(Do={}));var Bo;(function(o){function t(i,e){return{uri:i,version:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&c.integer(e.version)}o.is=n})(Bo||(Bo={}));var ro;(function(o){function t(i,e){return{uri:i,version:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&(e.version===null||c.integer(e.version))}o.is=n})(ro||(ro={}));var Eo;(function(o){function t(i,e,r,a){return{uri:i,languageId:e,version:r,text:a}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.string(e.uri)&&c.string(e.languageId)&&c.integer(e.version)&&c.string(e.text)}o.is=n})(Eo||(Eo={}));var ao;(function(o){o.PlainText="plaintext",o.Markdown="markdown";function t(n){let i=n;return i===o.PlainText||i===o.Markdown}o.is=t})(ao||(ao={}));var C;(function(o){function t(n){let i=n;return c.objectLiteral(n)&&ao.is(i.kind)&&c.string(i.value)}o.is=t})(C||(C={}));var f;(function(o){o.Text=1,o.Method=2,o.Function=3,o.Constructor=4,o.Field=5,o.Variable=6,o.Class=7,o.Interface=8,o.Module=9,o.Property=10,o.Unit=11,o.Value=12,o.Enum=13,o.Keyword=14,o.Snippet=15,o.Color=16,o.File=17,o.Reference=18,o.Folder=19,o.EnumMember=20,o.Constant=21,o.Struct=22,o.Event=23,o.Operator=24,o.TypeParameter=25})(f||(f={}));var V;(function(o){o.PlainText=1,o.Snippet=2})(V||(V={}));var qo;(function(o){o.Deprecated=1})(qo||(qo={}));var No;(function(o){function t(i,e,r){return{newText:i,insert:e,replace:r}}o.create=t;function n(i){let e=i;return e&&c.string(e.newText)&&h.is(e.insert)&&h.is(e.replace)}o.is=n})(No||(No={}));var Fo;(function(o){o.asIs=1,o.adjustIndentation=2})(Fo||(Fo={}));var Co;(function(o){function t(n){let i=n;return i&&(c.string(i.detail)||i.detail===void 0)&&(c.string(i.description)||i.description===void 0)}o.is=t})(Co||(Co={}));var Oo;(function(o){function t(n){return{label:n}}o.create=t})(Oo||(Oo={}));var _o;(function(o){function t(n,i){return{items:n?n:[],isIncomplete:!!i}}o.create=t})(_o||(_o={}));var U;(function(o){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}o.fromPlainText=t;function n(i){let e=i;return c.string(e)||c.objectLiteral(e)&&c.string(e.language)&&c.string(e.value)}o.is=n})(U||(U={}));var Ro;(function(o){function t(n){let i=n;return!!i&&c.objectLiteral(i)&&(C.is(i.contents)||U.is(i.contents)||c.typedArray(i.contents,U.is))&&(n.range===void 0||h.is(n.range))}o.is=t})(Ro||(Ro={}));var Wo;(function(o){function t(n,i){return i?{label:n,documentation:i}:{label:n}}o.create=t})(Wo||(Wo={}));var Ho;(function(o){function t(n,i,...e){let r={label:n};if(c.defined(i))r.documentation=i;if(c.defined(e))r.parameters=e;else r.parameters=[];return r}o.create=t})(Ho||(Ho={}));var q;(function(o){o.Text=1,o.Read=2,o.Write=3})(q||(q={}));var Vo;(function(o){function t(n,i){let e={range:n};if(c.number(i))e.kind=i;return e}o.create=t})(Vo||(Vo={}));var b;(function(o){o.File=1,o.Module=2,o.Namespace=3,o.Package=4,o.Class=5,o.Method=6,o.Property=7,o.Field=8,o.Constructor=9,o.Enum=10,o.Interface=11,o.Function=12,o.Variable=13,o.Constant=14,o.String=15,o.Number=16,o.Boolean=17,o.Array=18,o.Object=19,o.Key=20,o.Null=21,o.EnumMember=22,o.Struct=23,o.Event=24,o.Operator=25,o.TypeParameter=26})(b||(b={}));var Uo;(function(o){o.Deprecated=1})(Uo||(Uo={}));var Po;(function(o){function t(n,i,e,r,a){let d={name:n,kind:i,location:{uri:r,range:e}};if(a)d.containerName=a;return d}o.create=t})(Po||(Po={}));var Yo;(function(o){function t(n,i,e,r){return r!==void 0?{name:n,kind:i,location:{uri:e,range:r}}:{name:n,kind:i,location:{uri:e}}}o.create=t})(Yo||(Yo={}));var Qo;(function(o){function t(i,e,r,a,d,p){let s={name:i,detail:e,kind:r,range:a,selectionRange:d};if(p!==void 0)s.children=p;return s}o.create=t;function n(i){let e=i;return e&&c.string(e.name)&&c.number(e.kind)&&h.is(e.range)&&h.is(e.selectionRange)&&(e.detail===void 0||c.string(e.detail))&&(e.deprecated===void 0||c.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}o.is=n})(Qo||(Qo={}));var Go;(function(o){o.Empty="",o.QuickFix="quickfix",o.Refactor="refactor",o.RefactorExtract="refactor.extract",o.RefactorInline="refactor.inline",o.RefactorRewrite="refactor.rewrite",o.Source="source",o.SourceOrganizeImports="source.organizeImports",o.SourceFixAll="source.fixAll"})(Go||(Go={}));var P;(function(o){o.Invoked=1,o.Automatic=2})(P||(P={}));var Zo;(function(o){function t(i,e,r){let a={diagnostics:i};if(e!==void 0&&e!==null)a.only=e;if(r!==void 0&&r!==null)a.triggerKind=r;return a}o.create=t;function n(i){let e=i;return c.defined(e)&&c.typedArray(e.diagnostics,H.is)&&(e.only===void 0||c.typedArray(e.only,c.string))&&(e.triggerKind===void 0||e.triggerKind===P.Invoked||e.triggerKind===P.Automatic)}o.is=n})(Zo||(Zo={}));var Xo;(function(o){function t(i,e,r){let a={title:i},d=!0;if(typeof e==="string")d=!1,a.kind=e;else if(D.is(e))a.command=e;else a.edit=e;if(d&&r!==void 0)a.kind=r;return a}o.create=t;function n(i){let e=i;return e&&c.string(e.title)&&(e.diagnostics===void 0||c.typedArray(e.diagnostics,H.is))&&(e.kind===void 0||c.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||D.is(e.command))&&(e.isPreferred===void 0||c.boolean(e.isPreferred))&&(e.edit===void 0||no.is(e.edit))}o.is=n})(Xo||(Xo={}));var Jo;(function(o){function t(i,e){let r={range:i};if(c.defined(e))r.data=e;return r}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(e.range)&&(c.undefined(e.command)||D.is(e.command))}o.is=n})(Jo||(Jo={}));var $o;(function(o){function t(i,e){return{tabSize:i,insertSpaces:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&c.uinteger(e.tabSize)&&c.boolean(e.insertSpaces)}o.is=n})($o||($o={}));var Ko;(function(o){function t(i,e,r){return{range:i,target:e,data:r}}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(e.range)&&(c.undefined(e.target)||c.string(e.target))}o.is=n})(Ko||(Ko={}));var oe;(function(o){function t(i,e){return{range:i,parent:e}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&h.is(e.range)&&(e.parent===void 0||o.is(e.parent))}o.is=n})(oe||(oe={}));var ee;(function(o){o.namespace="namespace",o.type="type",o.class="class",o.enum="enum",o.interface="interface",o.struct="struct",o.typeParameter="typeParameter",o.parameter="parameter",o.variable="variable",o.property="property",o.enumMember="enumMember",o.event="event",o.function="function",o.method="method",o.macro="macro",o.keyword="keyword",o.modifier="modifier",o.comment="comment",o.string="string",o.number="number",o.regexp="regexp",o.operator="operator",o.decorator="decorator"})(ee||(ee={}));var ie;(function(o){o.declaration="declaration",o.definition="definition",o.readonly="readonly",o.static="static",o.deprecated="deprecated",o.abstract="abstract",o.async="async",o.modification="modification",o.documentation="documentation",o.defaultLibrary="defaultLibrary"})(ie||(ie={}));var te;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId==="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]==="number")}o.is=t})(te||(te={}));var ne;(function(o){function t(i,e){return{range:i,text:e}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&c.string(e.text)}o.is=n})(ne||(ne={}));var re;(function(o){function t(i,e,r){return{range:i,variableName:e,caseSensitiveLookup:r}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&c.boolean(e.caseSensitiveLookup)&&(c.string(e.variableName)||e.variableName===void 0)}o.is=n})(re||(re={}));var ae;(function(o){function t(i,e){return{range:i,expression:e}}o.create=t;function n(i){let e=i;return e!==void 0&&e!==null&&h.is(e.range)&&(c.string(e.expression)||e.expression===void 0)}o.is=n})(ae||(ae={}));var ce;(function(o){function t(i,e){return{frameId:i,stoppedLocation:e}}o.create=t;function n(i){let e=i;return c.defined(e)&&h.is(i.stoppedLocation)}o.is=n})(ce||(ce={}));var co;(function(o){o.Type=1,o.Parameter=2;function t(n){return n===1||n===2}o.is=t})(co||(co={}));var so;(function(o){function t(i){return{value:i}}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&(e.tooltip===void 0||c.string(e.tooltip)||C.is(e.tooltip))&&(e.location===void 0||W.is(e.location))&&(e.command===void 0||D.is(e.command))}o.is=n})(so||(so={}));var de;(function(o){function t(i,e,r){let a={position:i,label:e};if(r!==void 0)a.kind=r;return a}o.create=t;function n(i){let e=i;return c.objectLiteral(e)&&A.is(e.position)&&(c.string(e.label)||c.typedArray(e.label,so.is))&&(e.kind===void 0||co.is(e.kind))&&e.textEdits===void 0||c.typedArray(e.textEdits,B.is)&&(e.tooltip===void 0||c.string(e.tooltip)||C.is(e.tooltip))&&(e.paddingLeft===void 0||c.boolean(e.paddingLeft))&&(e.paddingRight===void 0||c.boolean(e.paddingRight))}o.is=n})(de||(de={}));var se;(function(o){function t(n){return{kind:"snippet",value:n}}o.createSnippet=t})(se||(se={}));var le;(function(o){function t(n,i,e,r){return{insertText:n,filterText:i,range:e,command:r}}o.create=t})(le||(le={}));var ue;(function(o){function t(n){return{items:n}}o.create=t})(ue||(ue={}));var pe;(function(o){o.Invoked=0,o.Automatic=1})(pe||(pe={}));var ge;(function(o){function t(n,i){return{range:n,text:i}}o.create=t})(ge||(ge={}));var me;(function(o){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}o.create=t})(me||(me={}));var he;(function(o){function t(n){let i=n;return c.objectLiteral(i)&&Z.is(i.uri)&&c.string(i.name)}o.is=t})(he||(he={}));var fe;(function(o){function t(r,a,d,p){return new be(r,a,d,p)}o.create=t;function n(r){let a=r;return c.defined(a)&&c.string(a.uri)&&(c.undefined(a.languageId)||c.string(a.languageId))&&c.uinteger(a.lineCount)&&c.func(a.getText)&&c.func(a.positionAt)&&c.func(a.offsetAt)?!0:!1}o.is=n;function i(r,a){let d=r.getText(),p=e(a,(m,u)=>{let v=m.range.start.line-u.range.start.line;if(v===0)return m.range.start.character-u.range.start.character;return v}),s=d.length;for(let m=p.length-1;m>=0;m--){let u=p[m],v=r.offsetAt(u.range.start),g=r.offsetAt(u.range.end);if(g<=s)d=d.substring(0,v)+u.newText+d.substring(g,d.length);else throw Error("Overlapping edit");s=v}return d}o.applyEdits=i;function e(r,a){if(r.length<=1)return r;let d=r.length/2|0,p=r.slice(0,d),s=r.slice(d);e(p,a),e(s,a);let m=0,u=0,v=0;while(m<p.length&&u<s.length)if(a(p[m],s[u])<=0)r[v++]=p[m++];else r[v++]=s[u++];while(m<p.length)r[v++]=p[m++];while(u<s.length)r[v++]=s[u++];return r}})(fe||(fe={}));class be{constructor(o,t,n,i){this._uri=o,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(o){if(o){let t=this.offsetAt(o.start),n=this.offsetAt(o.end);return this._content.substring(t,n)}return this._content}update(o,t){this._content=o.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let o=[],t=this._content,n=!0;for(let i=0;i<t.length;i++){if(n)o.push(i),n=!1;let e=t.charAt(i);if(n=e==="\r"||e===`
|
|
2
|
-
`,e==="\r"&&i+1<t.length&&t.charAt(i+1)===`
|
|
3
|
-
`)i++}if(n&&t.length>0)o.push(t.length);this._lineOffsets=o}return this._lineOffsets}positionAt(o){o=Math.max(Math.min(o,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(i===0)return A.create(0,o);while(n<i){let r=Math.floor((n+i)/2);if(t[r]>o)i=r;else n=r+1}let e=n-1;return A.create(e,o-t[e])}offsetAt(o){let t=this.getLineOffsets();if(o.line>=t.length)return this._content.length;else if(o.line<0)return 0;let n=t[o.line],i=o.line+1<t.length?t[o.line+1]:this._content.length;return Math.max(Math.min(n+o.character,i),n)}get lineCount(){return this.getLineOffsets().length}}var c;(function(o){let t=Object.prototype.toString;function n(g){return typeof g<"u"}o.defined=n;function i(g){return typeof g>"u"}o.undefined=i;function e(g){return g===!0||g===!1}o.boolean=e;function r(g){return t.call(g)==="[object String]"}o.string=r;function a(g){return t.call(g)==="[object Number]"}o.number=a;function d(g,I,Q){return t.call(g)==="[object Number]"&&I<=g&&g<=Q}o.numberRange=d;function p(g){return t.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}o.integer=p;function s(g){return t.call(g)==="[object Number]"&&0<=g&&g<=2147483647}o.uinteger=s;function m(g){return t.call(g)==="[object Function]"}o.func=m;function u(g){return g!==null&&typeof g==="object"}o.objectLiteral=u;function v(g,I){return Array.isArray(g)&&g.every(I)}o.typedArray=v})(c||(c={}));class lo{constructor(o,t,n){this._languageId=o,this._worker=t,this._disposables=[],this._listener=Object.create(null);let i=(r)=>{let a=r.getLanguageId();if(a!==this._languageId)return;let d;this._listener[r.uri.toString()]=r.onDidChangeContent(()=>{window.clearTimeout(d),d=window.setTimeout(()=>this._doValidate(r.uri,a),500)}),this._doValidate(r.uri,a)},e=(r)=>{Un.setModelMarkers(r,this._languageId,[]);let a=r.uri.toString(),d=this._listener[a];if(d)d.dispose(),delete this._listener[a]};this._disposables.push(Un.onDidCreateModel(i)),this._disposables.push(Un.onWillDisposeModel(e)),this._disposables.push(Un.onDidChangeModelLanguage((r)=>{e(r.model),i(r.model)})),this._disposables.push(n((r)=>{Un.getModels().forEach((a)=>{if(a.getLanguageId()===this._languageId)e(a),i(a)})})),this._disposables.push({dispose:()=>{Un.getModels().forEach(e);for(let r in this._listener)this._listener[r].dispose()}}),Un.getModels().forEach(i)}dispose(){this._disposables.forEach((o)=>o&&o.dispose()),this._disposables.length=0}_doValidate(o,t){this._worker(o).then((n)=>n.doValidation(o.toString())).then((n)=>{let i=n.map((r)=>Pe(o,r)),e=Un.getModel(o);if(e&&e.getLanguageId()===t)Un.setModelMarkers(e,t,i)}).then(void 0,(n)=>{console.error(n)})}}function Ue(o){switch(o){case T.Error:return wa.Error;case T.Warning:return wa.Warning;case T.Information:return wa.Info;case T.Hint:return wa.Hint;default:return wa.Info}}function Pe(o,t){let n=typeof t.code==="number"?String(t.code):t.code;return{severity:Ue(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}class uo{constructor(o,t){this._worker=o,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.doComplete(e.toString(),z(t))).then((r)=>{if(!r)return;let a=o.getWordUntilPosition(t),d=new hp(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn),p=r.items.map((s)=>{let m={label:s.label,insertText:s.insertText||s.label,sortText:s.sortText,filterText:s.filterText,documentation:s.documentation,detail:s.detail,command:Ge(s.command),range:d,kind:Qe(s.kind)};if(s.textEdit){if(Ye(s.textEdit))m.range={insert:x(s.textEdit.insert),replace:x(s.textEdit.replace)};else m.range=x(s.textEdit.range);m.insertText=s.textEdit.newText}if(s.additionalTextEdits)m.additionalTextEdits=s.additionalTextEdits.map(N);if(s.insertTextFormat===V.Snippet)m.insertTextRules=xe.CompletionItemInsertTextRule.InsertAsSnippet;return m});return{isIncomplete:r.isIncomplete,suggestions:p}})}}function z(o){if(!o)return;return{character:o.column-1,line:o.lineNumber-1}}function po(o){if(!o)return;return{start:{line:o.startLineNumber-1,character:o.startColumn-1},end:{line:o.endLineNumber-1,character:o.endColumn-1}}}function x(o){if(!o)return;return new hp(o.start.line+1,o.start.character+1,o.end.line+1,o.end.character+1)}function Ye(o){return typeof o.insert<"u"&&typeof o.replace<"u"}function Qe(o){let t=xe.CompletionItemKind;switch(o){case f.Text:return t.Text;case f.Method:return t.Method;case f.Function:return t.Function;case f.Constructor:return t.Constructor;case f.Field:return t.Field;case f.Variable:return t.Variable;case f.Class:return t.Class;case f.Interface:return t.Interface;case f.Module:return t.Module;case f.Property:return t.Property;case f.Unit:return t.Unit;case f.Value:return t.Value;case f.Enum:return t.Enum;case f.Keyword:return t.Keyword;case f.Snippet:return t.Snippet;case f.Color:return t.Color;case f.File:return t.File;case f.Reference:return t.Reference}return t.Property}function N(o){if(!o)return;return{range:x(o.range),text:o.newText}}function Ge(o){return o&&o.command==="editor.action.triggerSuggest"?{id:o.command,title:o.title,arguments:o.arguments}:void 0}class go{constructor(o){this._worker=o}provideHover(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.doHover(i.toString(),z(t))).then((e)=>{if(!e)return;return{range:x(e.range),contents:Xe(e.contents)}})}}function Ze(o){return o&&typeof o==="object"&&typeof o.kind==="string"}function ve(o){if(typeof o==="string")return{value:o};if(Ze(o)){if(o.kind==="plaintext")return{value:o.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")};return{value:o.value}}return{value:"```"+o.language+`
|
|
4
|
-
`+o.value+"\n```\n"}}function Xe(o){if(!o)return;if(Array.isArray(o))return o.map(ve);return[ve(o)]}class we{constructor(o){this._worker=o}provideDocumentHighlights(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.findDocumentHighlights(i.toString(),z(t))).then((e)=>{if(!e)return;return e.map((r)=>({range:x(r.range),kind:Je(r.kind)}))})}}function Je(o){switch(o){case q.Read:return xe.DocumentHighlightKind.Read;case q.Write:return xe.DocumentHighlightKind.Write;case q.Text:return xe.DocumentHighlightKind.Text}return xe.DocumentHighlightKind.Text}class ke{constructor(o){this._worker=o}provideDefinition(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.findDefinition(i.toString(),z(t))).then((e)=>{if(!e)return;return[ye(e)]})}}function ye(o){return{uri:Ed.parse(o.uri),range:x(o.range)}}class Me{constructor(o){this._worker=o}provideReferences(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.findReferences(e.toString(),z(t))).then((r)=>{if(!r)return;return r.map(ye)})}}class Le{constructor(o){this._worker=o}provideRenameEdits(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.doRename(e.toString(),z(t),n)).then((r)=>$e(r))}}function $e(o){if(!o||!o.changes)return;let t=[];for(let n in o.changes){let i=Ed.parse(n);for(let e of o.changes[n])t.push({resource:i,versionId:void 0,textEdit:{range:x(e.range),text:e.newText}})}return{edits:t}}class mo{constructor(o){this._worker=o}provideDocumentSymbols(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentSymbols(n.toString())).then((i)=>{if(!i)return;return i.map((e)=>{if(Ke(e))return Ae(e);return{name:e.name,detail:"",containerName:e.containerName,kind:ze(e.kind),range:x(e.location.range),selectionRange:x(e.location.range),tags:[]}})})}}function Ke(o){return"children"in o}function Ae(o){return{name:o.name,detail:o.detail??"",kind:ze(o.kind),range:x(o.range),selectionRange:x(o.selectionRange),tags:o.tags??[],children:(o.children??[]).map((t)=>Ae(t))}}function ze(o){let t=xe.SymbolKind;switch(o){case b.File:return t.File;case b.Module:return t.Module;case b.Namespace:return t.Namespace;case b.Package:return t.Package;case b.Class:return t.Class;case b.Method:return t.Method;case b.Property:return t.Property;case b.Field:return t.Field;case b.Constructor:return t.Constructor;case b.Enum:return t.Enum;case b.Interface:return t.Interface;case b.Function:return t.Function;case b.Variable:return t.Variable;case b.Constant:return t.Constant;case b.String:return t.String;case b.Number:return t.Number;case b.Boolean:return t.Boolean;case b.Array:return t.Array}return t.Function}class Ie{constructor(o){this._worker=o}provideLinks(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentLinks(n.toString())).then((i)=>{if(!i)return;return{links:i.map((e)=>({range:x(e.range),url:e.target}))}})}}class ho{constructor(o){this._worker=o}provideDocumentFormattingEdits(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.format(i.toString(),null,Te(t)).then((r)=>{if(!r||r.length===0)return;return r.map(N)}))}}class fo{constructor(o){this._worker=o,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(o,t,n,i){let e=o.uri;return this._worker(e).then((r)=>r.format(e.toString(),po(t),Te(n)).then((a)=>{if(!a||a.length===0)return;return a.map(N)}))}}function Te(o){return{tabSize:o.tabSize,insertSpaces:o.insertSpaces}}class bo{constructor(o){this._worker=o}provideDocumentColors(o,t){let n=o.uri;return this._worker(n).then((i)=>i.findDocumentColors(n.toString())).then((i)=>{if(!i)return;return i.map((e)=>({color:e.color,range:x(e.range)}))})}provideColorPresentations(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getColorPresentations(i.toString(),t.color,po(t.range))).then((e)=>{if(!e)return;return e.map((r)=>{let a={label:r.label};if(r.textEdit)a.textEdit=N(r.textEdit);if(r.additionalTextEdits)a.additionalTextEdits=r.additionalTextEdits.map(N);return a})})}}class vo{constructor(o){this._worker=o}provideFoldingRanges(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getFoldingRanges(i.toString(),t)).then((e)=>{if(!e)return;return e.map((r)=>{let a={start:r.startLine+1,end:r.endLine+1};if(typeof r.kind<"u")a.kind=oi(r.kind);return a})})}}function oi(o){switch(o){case S.Comment:return xe.FoldingRangeKind.Comment;case S.Imports:return xe.FoldingRangeKind.Imports;case S.Region:return xe.FoldingRangeKind.Region}return}class wo{constructor(o){this._worker=o}provideSelectionRanges(o,t,n){let i=o.uri;return this._worker(i).then((e)=>e.getSelectionRanges(i.toString(),t.map(z))).then((e)=>{if(!e)return;return e.map((r)=>{let a=[];while(r)a.push({range:x(r.range)}),r=r.parent;return a})})}}function Y(o,t=!1){let n=o.length,i=0,e="",r=0,a=16,d=0,p=0,s=0,m=0,u=0;function v(l,k){let L=0,y=0;while(L<l){let w=o.charCodeAt(i);if(w>=48&&w<=57)y=y*16+w-48;else if(w>=65&&w<=70)y=y*16+w-65+10;else if(w>=97&&w<=102)y=y*16+w-97+10;else break;i++,L++}if(L<l)y=-1;return y}function g(l){i=l,e="",r=0,a=16,u=0}function I(){let l=i;if(o.charCodeAt(i)===48)i++;else{i++;while(i<o.length&&F(o.charCodeAt(i)))i++}if(i<o.length&&o.charCodeAt(i)===46)if(i++,i<o.length&&F(o.charCodeAt(i))){i++;while(i<o.length&&F(o.charCodeAt(i)))i++}else return u=3,o.substring(l,i);let k=i;if(i<o.length&&(o.charCodeAt(i)===69||o.charCodeAt(i)===101)){if(i++,i<o.length&&o.charCodeAt(i)===43||o.charCodeAt(i)===45)i++;if(i<o.length&&F(o.charCodeAt(i))){i++;while(i<o.length&&F(o.charCodeAt(i)))i++;k=i}else u=3}return o.substring(l,k)}function Q(){let l="",k=i;while(!0){if(i>=n){l+=o.substring(k,i),u=2;break}let L=o.charCodeAt(i);if(L===34){l+=o.substring(k,i),i++;break}if(L===92){if(l+=o.substring(k,i),i++,i>=n){u=2;break}switch(o.charCodeAt(i++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
5
|
-
`;break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:let w=v(4);if(w>=0)l+=String.fromCharCode(w);else u=4;break;default:u=5}k=i;continue}if(L>=0&&L<=31)if(O(L)){l+=o.substring(k,i),u=2;break}else u=6;i++}return l}function ko(){if(e="",u=0,r=i,p=d,m=s,i>=n)return r=n,a=17;let l=o.charCodeAt(i);if(xo(l)){do i++,e+=String.fromCharCode(l),l=o.charCodeAt(i);while(xo(l));return a=15}if(O(l)){if(i++,e+=String.fromCharCode(l),l===13&&o.charCodeAt(i)===10)i++,e+=`
|
|
6
|
-
`;return d++,s=i,a=14}switch(l){case 123:return i++,a=1;case 125:return i++,a=2;case 91:return i++,a=3;case 93:return i++,a=4;case 58:return i++,a=6;case 44:return i++,a=5;case 34:return i++,e=Q(),a=10;case 47:let k=i-1;if(o.charCodeAt(i+1)===47){i+=2;while(i<n){if(O(o.charCodeAt(i)))break;i++}return e=o.substring(k,i),a=12}if(o.charCodeAt(i+1)===42){i+=2;let L=n-1,y=!1;while(i<L){let w=o.charCodeAt(i);if(w===42&&o.charCodeAt(i+1)===47){i+=2,y=!0;break}if(i++,O(w)){if(w===13&&o.charCodeAt(i)===10)i++;d++,s=i}}if(!y)i++,u=1;return e=o.substring(k,i),a=13}return e+=String.fromCharCode(l),i++,a=16;case 45:if(e+=String.fromCharCode(l),i++,i===n||!F(o.charCodeAt(i)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e+=I(),a=11;default:while(i<n&&We(l))i++,l=o.charCodeAt(i);if(r!==i){switch(e=o.substring(r,i),e){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return e+=String.fromCharCode(l),i++,a=16}}function We(l){if(xo(l)||O(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function He(){let l;do l=ko();while(l>=12&&l<=15);return l}return{setPosition:g,getPosition:()=>i,scan:t?He:ko,getToken:()=>a,getTokenValue:()=>e,getTokenOffset:()=>r,getTokenLength:()=>i-r,getTokenStartLine:()=>p,getTokenStartCharacter:()=>r-m,getTokenError:()=>u}}function xo(o){return o===32||o===9}function O(o){return o===10||o===13}function F(o){return o>=48&&o<=57}var je;(function(o){o[o.lineFeed=10]="lineFeed",o[o.carriageReturn=13]="carriageReturn",o[o.space=32]="space",o[o._0=48]="_0",o[o._1=49]="_1",o[o._2=50]="_2",o[o._3=51]="_3",o[o._4=52]="_4",o[o._5=53]="_5",o[o._6=54]="_6",o[o._7=55]="_7",o[o._8=56]="_8",o[o._9=57]="_9",o[o.a=97]="a",o[o.b=98]="b",o[o.c=99]="c",o[o.d=100]="d",o[o.e=101]="e",o[o.f=102]="f",o[o.g=103]="g",o[o.h=104]="h",o[o.i=105]="i",o[o.j=106]="j",o[o.k=107]="k",o[o.l=108]="l",o[o.m=109]="m",o[o.n=110]="n",o[o.o=111]="o",o[o.p=112]="p",o[o.q=113]="q",o[o.r=114]="r",o[o.s=115]="s",o[o.t=116]="t",o[o.u=117]="u",o[o.v=118]="v",o[o.w=119]="w",o[o.x=120]="x",o[o.y=121]="y",o[o.z=122]="z",o[o.A=65]="A",o[o.B=66]="B",o[o.C=67]="C",o[o.D=68]="D",o[o.E=69]="E",o[o.F=70]="F",o[o.G=71]="G",o[o.H=72]="H",o[o.I=73]="I",o[o.J=74]="J",o[o.K=75]="K",o[o.L=76]="L",o[o.M=77]="M",o[o.N=78]="N",o[o.O=79]="O",o[o.P=80]="P",o[o.Q=81]="Q",o[o.R=82]="R",o[o.S=83]="S",o[o.T=84]="T",o[o.U=85]="U",o[o.V=86]="V",o[o.W=87]="W",o[o.X=88]="X",o[o.Y=89]="Y",o[o.Z=90]="Z",o[o.asterisk=42]="asterisk",o[o.backslash=92]="backslash",o[o.closeBrace=125]="closeBrace",o[o.closeBracket=93]="closeBracket",o[o.colon=58]="colon",o[o.comma=44]="comma",o[o.dot=46]="dot",o[o.doubleQuote=34]="doubleQuote",o[o.minus=45]="minus",o[o.openBrace=123]="openBrace",o[o.openBracket=91]="openBracket",o[o.plus=43]="plus",o[o.slash=47]="slash",o[o.formFeed=12]="formFeed",o[o.tab=9]="tab"})(je||(je={}));var ei=Array(20).fill(0).map((o,t)=>" ".repeat(t));var ii={" ":{"\n":Array(200).fill(0).map((o,t)=>`
|
|
7
|
-
`+" ".repeat(t)),"\r":Array(200).fill(0).map((o,t)=>"\r"+" ".repeat(t)),"\r\n":Array(200).fill(0).map((o,t)=>`\r
|
|
8
|
-
`+" ".repeat(t))},"\t":{"\n":Array(200).fill(0).map((o,t)=>`
|
|
9
|
-
`+"\t".repeat(t)),"\r":Array(200).fill(0).map((o,t)=>"\r"+"\t".repeat(t)),"\r\n":Array(200).fill(0).map((o,t)=>`\r
|
|
10
|
-
`+"\t".repeat(t))}};var Se;(function(o){o.DEFAULT={allowTrailingComma:!1}})(Se||(Se={}));var qe=Y,De;(function(o){o[o.None=0]="None",o[o.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=2]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",o[o.InvalidUnicode=4]="InvalidUnicode",o[o.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",o[o.InvalidCharacter=6]="InvalidCharacter"})(De||(De={}));var Be;(function(o){o[o.OpenBraceToken=1]="OpenBraceToken",o[o.CloseBraceToken=2]="CloseBraceToken",o[o.OpenBracketToken=3]="OpenBracketToken",o[o.CloseBracketToken=4]="CloseBracketToken",o[o.CommaToken=5]="CommaToken",o[o.ColonToken=6]="ColonToken",o[o.NullKeyword=7]="NullKeyword",o[o.TrueKeyword=8]="TrueKeyword",o[o.FalseKeyword=9]="FalseKeyword",o[o.StringLiteral=10]="StringLiteral",o[o.NumericLiteral=11]="NumericLiteral",o[o.LineCommentTrivia=12]="LineCommentTrivia",o[o.BlockCommentTrivia=13]="BlockCommentTrivia",o[o.LineBreakTrivia=14]="LineBreakTrivia",o[o.Trivia=15]="Trivia",o[o.Unknown=16]="Unknown",o[o.EOF=17]="EOF"})(Be||(Be={}));var Ee;(function(o){o[o.InvalidSymbol=1]="InvalidSymbol",o[o.InvalidNumberFormat=2]="InvalidNumberFormat",o[o.PropertyNameExpected=3]="PropertyNameExpected",o[o.ValueExpected=4]="ValueExpected",o[o.ColonExpected=5]="ColonExpected",o[o.CommaExpected=6]="CommaExpected",o[o.CloseBraceExpected=7]="CloseBraceExpected",o[o.CloseBracketExpected=8]="CloseBracketExpected",o[o.EndOfFileExpected=9]="EndOfFileExpected",o[o.InvalidCommentToken=10]="InvalidCommentToken",o[o.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=12]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",o[o.InvalidUnicode=14]="InvalidUnicode",o[o.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",o[o.InvalidCharacter=16]="InvalidCharacter"})(Ee||(Ee={}));function Ce(o){return{getInitialState:()=>new _(null,null,!1,null),tokenize:(t,n)=>pi(o,t,n)}}var Ne="delimiter.bracket.json",Fe="delimiter.array.json",ti="delimiter.colon.json",ni="delimiter.comma.json",ri="keyword.json",ai="keyword.json",ci="string.value.json",di="number.json",si="string.key.json",li="comment.block.json",ui="comment.line.json";class j{constructor(o,t){this.parent=o,this.type=t}static pop(o){if(o)return o.parent;return null}static push(o,t){return new j(o,t)}static equals(o,t){if(!o&&!t)return!0;if(!o||!t)return!1;while(o&&t){if(o===t)return!0;if(o.type!==t.type)return!1;o=o.parent,t=t.parent}return!0}}class _{constructor(o,t,n,i){this._state=o,this.scanError=t,this.lastWasColon=n,this.parents=i}clone(){return new _(this._state,this.scanError,this.lastWasColon,this.parents)}equals(o){if(o===this)return!0;if(!o||!(o instanceof _))return!1;return this.scanError===o.scanError&&this.lastWasColon===o.lastWasColon&&j.equals(this.parents,o.parents)}getStateData(){return this._state}setStateData(o){this._state=o}}function pi(o,t,n,i=0){let e=0,r=!1;switch(n.scanError){case 2:t='"'+t,e=1;break;case 1:t="/*"+t,e=2;break}let a=qe(t),{lastWasColon:d,parents:p}=n,s={tokens:[],endState:n.clone()};while(!0){let m=i+a.getPosition(),u="",v=a.scan();if(v===17)break;if(m===i+a.getPosition())throw Error("Scanner did not advance, next 3 characters are: "+t.substr(a.getPosition(),3));if(r)m-=e;switch(r=e>0,v){case 1:p=j.push(p,0),u=Ne,d=!1;break;case 2:p=j.pop(p),u=Ne,d=!1;break;case 3:p=j.push(p,1),u=Fe,d=!1;break;case 4:p=j.pop(p),u=Fe,d=!1;break;case 6:u=ti,d=!0;break;case 5:u=ni,d=!1;break;case 8:case 9:u=ri,d=!1;break;case 7:u=ai,d=!1;break;case 10:let I=(p?p.type:0)===1;u=d||I?ci:si,d=!1;break;case 11:u=di,d=!1;break}switch(v){case 12:u=ui;break;case 13:u=li;break}s.endState=new _(n.getStateData(),a.getTokenError(),d,p),s.tokens.push({startIndex:m,scopes:u})}return s}var M;function Sa(){return new Promise((o,t)=>{if(!M)return t("JSON not registered!");o(M)})}class _e extends lo{constructor(o,t,n){super(o,t,n.onDidChange);this._disposables.push(Un.onWillDisposeModel((i)=>{this._resetSchema(i.uri)})),this._disposables.push(Un.onDidChangeModelLanguage((i)=>{this._resetSchema(i.model.uri)}))}_resetSchema(o){this._worker().then((t)=>{t.resetSchema(o.toString())})}}function Da(o){let t=[],n=[],i=new G(o);t.push(i),M=(...a)=>i.getLanguageServiceWorker(...a);function e(){let{languageId:a,modeConfiguration:d}=o;if(Re(n),d.documentFormattingEdits)n.push(xe.registerDocumentFormattingEditProvider(a,new ho(M)));if(d.documentRangeFormattingEdits)n.push(xe.registerDocumentRangeFormattingEditProvider(a,new fo(M)));if(d.completionItems)n.push(xe.registerCompletionItemProvider(a,new uo(M,[" ",":",'"'])));if(d.hovers)n.push(xe.registerHoverProvider(a,new go(M)));if(d.documentSymbols)n.push(xe.registerDocumentSymbolProvider(a,new mo(M)));if(d.tokens)n.push(xe.setTokensProvider(a,Ce(!0)));if(d.colors)n.push(xe.registerColorProvider(a,new bo(M)));if(d.foldingRanges)n.push(xe.registerFoldingRangeProvider(a,new vo(M)));if(d.diagnostics)n.push(new _e(a,M,o));if(d.selectionRanges)n.push(xe.registerSelectionRangeProvider(a,new wo(M)))}e(),t.push(xe.setLanguageConfiguration(o.languageId,gi));let r=o.modeConfiguration;return o.onDidChange((a)=>{if(a.modeConfiguration!==r)r=a.modeConfiguration,e()}),t.push(Oe(n)),Oe(t)}function Oe(o){return{dispose:()=>Re(o)}}function Re(o){while(o.length)o.pop().dispose()}var gi={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{uo as CompletionAdapter,ke as DefinitionAdapter,lo as DiagnosticsAdapter,bo as DocumentColorAdapter,ho as DocumentFormattingEditProvider,we as DocumentHighlightAdapter,Ie as DocumentLinkAdapter,fo as DocumentRangeFormattingEditProvider,mo as DocumentSymbolAdapter,vo as FoldingRangeAdapter,go as HoverAdapter,Me as ReferenceAdapter,Le as RenameAdapter,wo as SelectionRangeAdapter,G as WorkerManager,z as fromPosition,po as fromRange,Sa as getWorker,Da as setupMode,x as toRange,N as toTextEdit};
|
|
11
|
-
|
|
12
|
-
//# debugId=47E1D0049F70175C64756E2164756E21
|
|
13
|
-
//# sourceMappingURL=jsonMode-vj30te2h.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{dt,Z$,sv,X$,qo,qC,Fn,Xs,av,Q$}from"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-wqfaqw4m.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";export{av as clearLayerSlot,Xs as getLayerSlot,Z$ as initLayers,sv as isModalOpen,X$ as isPopoverOpen,dt as layerHost,Q$ as overlayIdleBlockers,qo as showConfirmDialog,Fn as showPromptDialog,qC as showSaveDiscardDialog};
|
|
2
|
-
|
|
3
|
-
//# debugId=3A2D2E15C323255164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=layers-m49nmwvx.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{FP,aE}from"./studio-2e4hry72.js";import"./studio-c2fa783p.js";import"./studio-brh8d2pr.js";import"./studio-tmfcn347.js";import"./studio-pj216fmn.js";import"./studio-z9453ypn.js";import"./studio-s24mhq0z.js";import"./studio-cqxj4fcy.js";import"./studio-4bgvvzhv.js";import"./studio-daksw8kh.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";import"./studio-k1wvtp03.js";export{aE as registerLayersPanel,FP as startLayerTitleEdit};
|
|
2
|
-
|
|
3
|
-
//# debugId=1DEF1039169B2F4664756E2164756E21
|
|
4
|
-
//# sourceMappingURL=layers-panel-zr92pwdp.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{uF,wb,eN,tN,nN,cS,vw,JE,YE,HP,hF,BP,dS,pF,ZE}from"./studio-2x972v58.js";import"./studio-z9453ypn.js";import"./studio-4bgvvzhv.js";import"./studio-daksw8kh.js";import"./studio-hfqpfmpk.js";import"./studio-9gr7xs9r.js";import"./studio-jma2q8r9.js";import"./studio-v7a7yb5w.js";import"./studio-3pz4t5a2.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-r6mx7vm5.js";import"./studio-xva3hzkv.js";import"./studio-n9qba0gx.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-90zkgne5.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{uF as MEDIA_HOME_MODE,HP as applyMediaBrowse,dS as closeMediaPickDialog,eN as deleteMediaFile,vw as detachMediaLibrary,nN as duplicateMediaFile,YE as focusMediaHome,cS as mediaLibraryMounted,pF as openMediaPickDialog,tN as renameMediaFile,JE as renderMediaLibrary,BP as requestMediaReplace,hF as requestMediaUpload,ZE as resetMediaLibrary,wb as selectedEntry};
|
|
2
|
-
|
|
3
|
-
//# debugId=A648DC532C10E52F64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-library-j74rt0w4.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{jb,EL,Zu,XS,QS,eC,tC}from"./studio-jma2q8r9.js";import"./studio-3pz4t5a2.js";import"./studio-61rg2cz5.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1410q5dw.js";import"./studio-1ks5d9y4.js";export{QS as canDuplicateMedia,XS as canEditImage,jb as isViewableMedia,EL as mediaTabModes,eC as mediaWriteRefused,tC as openImageEditor,Zu as openMediaTab};
|
|
2
|
-
|
|
3
|
-
//# debugId=0A4822103275CB6764756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-open-mypr0k6b.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{kT,ET,Gu,Dw,zP,ES,WP,TS,Kl,Cm}from"./studio-4bgvvzhv.js";import"./studio-61rg2cz5.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-bnc50f9h.js";import"./studio-4zd6an2b.js";import"./studio-acer0g8w.js";import"./studio-wqfaqw4m.js";import"./studio-hh394phe.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";import"./studio-1ks5d9y4.js";export{Dw as invalidateMediaCache,kT as isMediaScanPath,Kl as mountMediaPicker,ET as onProjectMediaChange,zP as openFullMediaPicker,TS as pickAndUpload,Gu as projectMediaFiles,ES as showMediaPickerPopover,Cm as unmountMediaPicker,WP as uploadAndAssign};
|
|
2
|
-
|
|
3
|
-
//# debugId=B84851BAAA8670E864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=media-picker-pemtbsjv.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{p,y,a,E}from"./iframe-entry-b5qgggyp.js";import{t}from"./iframe-entry-42hpmwz5.js";var M="jx-menu-item",s="jx-menu",L="inline-end span-block-end";function g(e){let n=e.currentTarget;return n instanceof HTMLElement&&n.localName===s?n:null}function H(e,n){return n instanceof Element&&n.closest(s)===e}function c(e,n={}){let o=[...e.querySelectorAll(M)].filter((r)=>r.closest(s)===e);return n.includeDisabled?o:o.filter((r)=>r.getAttribute("aria-disabled")!=="true")}function b(e){for(let n of e.querySelectorAll(s))if(n.parentElement?.closest(M)===e)return n;return null}function f(e){return e.parentElement?.closest(M)??null}function h(e){let n=e;for(;;){let o=f(n),r=o?.closest(s);if(!o||!(r instanceof HTMLElement))return n;n=r}}function w(e){return e.open===!0}function R(e,n){if(!w(e))a(e,n??null)}function m(e){if(w(e)&&t(e.hidePopover))e.hidePopover()}function i(e,n){if(e.length===0)return null;let o=(n%e.length+e.length)%e.length;for(let[l,u]of e.entries())u.tabIndex=l===o?0:-1;let r=e[o];return r.focus(),r}function S(e,n){return e.findIndex((o)=>o===n||n instanceof Node&&o.contains(n))}function T(e,n={}){let o=b(e);if(!o)return null;let r=e.getBoundingClientRect();if(o.x=Math.round(r.right)-2,o.y=Math.round(r.top)-4,e.expanded=!0,R(o,e),n.focus)i(c(o),0);return o}function x(e,n=null){for(let o of c(e,{includeDisabled:!0})){if(o===n)continue;let r=b(o);if(r)m(r)}}function k(e){return e.querySelector('[part="label"]')?.textContent??e.textContent}function A(e,n,o){let r=e.map((l)=>k(l).trim().toLowerCase());for(let l=1;l<=r.length;l++){let u=(n+l)%r.length;if(r[u].startsWith(o))return u}return-1}function O(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey?e.key.toLowerCase():null}function K(e,n){let o=g(n);if(!o||!H(o,n.target))return;let r=c(o),l=S(r,n.target);switch(n.key){case"ArrowDown":{i(r,l+1);break}case"ArrowUp":{i(r,l===-1?-1:l-1);break}case"Home":{i(r,0);break}case"End":{i(r,-1);break}case"Enter":case" ":{r[l]?.click();break}case"ArrowRight":{let u=r[l];if(!u||!b(u))return;x(o,u),T(u,{focus:!0});break}case"ArrowLeft":{let u=f(o);if(!u)return;m(o),u.focus();break}case"Escape":{let u=f(o);m(o),u?.focus();break}case"Tab":{m(h(o));break}default:{let u=O(n);if(u===null)return;let d=A(r,l,u);if(d===-1)return;i(r,d)}}n.preventDefault(),n.stopPropagation()}function P(e,n){let o=g(n);if(!o)return;let r="newState"in n&&n.newState==="open",l=String(e.placement??"")||(f(o)?L:"");e.area=l;let u="source"in n?n.source:null,d=u instanceof Element?u:y(o);e.anchored=r&&l!==""&&d!==null&&!C(o)}function I(e,n){let o=g(n);if(!o)return;let r="newState"in n&&n.newState==="open";e.open=r;let l=f(o);if(!r){if(x(o),l)l.expanded=!1;return}if(!(e.anchored===!0&&p()))E(e,o,{flipAgainst:l?.closest(s)??null,floor:N(o)});if(!o.contains(document.activeElement))i(c(o),0)}function C(e){return Number(h(e).floor??0)>0}function N(e){let n=Number(h(e).floor??0);return n>0?n:window.innerHeight}function U(e){if(e.contains(document.activeElement))return;let n=e;for(;;){let r=c(n,{includeDisabled:!0}).map((l)=>b(l)).find((l)=>l!==null&&w(l));if(!r)break;n=r}let o=f(n);if(c(n).length===0&&o){m(n),o.focus();return}i(c(n),0)}function q(e,n){let o=g(n);if(!o||!(n.target instanceof Element))return;let r=n.target.closest(M);if(!r||r.closest(s)!==o)return;let l=b(r);if(x(o,r),l&&!w(l)&&r.getAttribute("aria-disabled")!=="true")T(r)}export{L as SUBMENU_PLACEMENT,E as clampIntoViewport,U as ensureCaret,i as focusRow,m as hideMenu,P as onMenuBeforeToggle,K as onMenuKeydown,q as onMenuPointerOver,I as onMenuToggle,T as openSubmenu,f as parentRowOf,h as rootMenuOf,c as rowsOf,R as showMenu,b as submenuOf};
|
|
2
|
-
|
|
3
|
-
//# debugId=75513AE9CBFF72A264756E2164756E21
|
|
4
|
-
//# sourceMappingURL=menu-d2jxpgma.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Xp,Ev,Tv,TI,tu,Qp,nu,ef}from"./studio-swedpd82.js";import"./studio-sce30r7b.js";export{Xp as BUFFER_COMMIT,tu as bufferIsLive,Qp as bufferMovedOn,Ev as bufferWrites,TI as cancelBufferWrites,Tv as commitBufferWrites,nu as commitTabBuffers,ef as tabBufferUnsaved};
|
|
2
|
-
|
|
3
|
-
//# debugId=B96956989D3A87F864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=monaco-buffer-pa0g6ax7.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{tm,xe}from"./studio-eqcddvc2.js";import{ud}from"./studio-k0xzrse2.js";import"./studio-k1wvtp03.js";import{S0,C0}from"./studio-wmjmsw0p.js";import{k0}from"./studio-abh9kfdh.js";import{n,v}from"./studio-k3we3kqb.js";import{ce}from"./studio-0939t1q1.js";var y="__monacoFindWidgetTabIndexPatchApplied",m="__monacoFindWidgetOriginalTabIndex";function z(o,e){let i=o?._domNode;if(!i)return;let a=i.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(let r of a){if(!(r instanceof HTMLElement))continue;if(e){if(!(m in r.dataset))continue;let t=r.dataset[m];if(t==="")r.removeAttribute("tabindex");else r.tabIndex=Number(t);delete r.dataset[m]}else{if(!(m in r.dataset))r.dataset[m]=r.getAttribute("tabindex")??"";r.tabIndex=-1}}}if(!ud[y]){let o=ud.prototype._reveal,e=ud.prototype._hide;ud.prototype._reveal=function(...i){o.apply(this,i),z(this,!0)},ud.prototype._hide=function(...i){e.apply(this,i),z(this,!1)},ud[y]=!0}class L{constructor(o,e,i){this._onDidChange=new tm,this._languageId=o,this.setDiagnosticsOptions(e),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(this)}}var T={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},E={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},b=new L("json",T,E);function F(){return ce("vj30te2h"),import("./jsonMode-vj30te2h.js")}xe.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});xe.onLanguage("json",()=>{F().then((o)=>o.setupMode(b))});var C={},f={};class x{static getOrCreate(o){if(!f[o])f[o]=new x(o);return f[o]}constructor(o){this._languageId=o,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,i)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=i})}load(){if(!this._loadingTriggered)this._loadingTriggered=!0,C[this._languageId].loader().then((o)=>this._lazyLoadPromiseResolve(o),(o)=>this._lazyLoadPromiseReject(o));return this._lazyLoadPromise}}function M(o){let e=o.id;C[e]=o,xe.register(o);let i=x.getOrCreate(e);xe.registerTokensProviderFactory(e,{create:async()=>(await i.load()).language}),xe.onLanguageEncountered(e,async()=>{let a=await i.load();xe.setLanguageConfiguration(e,a.conf)})}M({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>(ce("hy2mws8v"),import("./javascript-hy2mws8v.js"))});var W=["additionalItems","additionalProperties","contains","contentSchema","else","if","items","not","propertyNames","then","unevaluatedItems","unevaluatedProperties"],O=["$defs","definitions","dependencies","dependentSchemas","patternProperties","properties"],D=["allOf","anyOf","oneOf","prefixItems"];function P(o){return o.replaceAll("~","~0").replaceAll("/","~1")}function*S(o,e){for(let i of W){let a=o[i];if(Array.isArray(a)){for(let[r,t]of a.entries())if(v(t))yield[t,`${e}/${i}/${r}`]}else if(v(a))yield[a,`${e}/${i}`]}for(let i of O){let a=o[i];if(!v(a))continue;for(let[r,t]of Object.entries(a))if(v(t))yield[t,`${e}/${i}/${P(r)}`]}for(let i of D){let a=o[i];if(!Array.isArray(a))continue;for(let[r,t]of a.entries())if(v(t))yield[t,`${e}/${i}/${r}`]}}function _(o,e){let i=o.replace(/^[a-zA-Z][a-zA-Z\d+.-]*:/,"");if(i.startsWith("//")){let t=i.indexOf("/",2);i=t===-1?"":i.slice(t+1)}i=i.replace(/^schema\//,"");let a=i.split(/[^a-zA-Z0-9]+/).filter(Boolean).join("-")||"resource",r=a;for(let t=2;e.has(r);t+=1)r=`${a}-${t}`;return e.add(r),r}function w(o){let e=structuredClone(o);if(v(e.$defs)){let t=new Set(Object.keys(e.$defs).filter((c)=>!h(c))),l={};for(let[c,d]of Object.entries(e.$defs)){let s=v(d)&&n(d.$id)?d.$id:c;l[h(c)?_(s,t):c]=d}e.$defs=l}let i=new Map,a=(t,l)=>{let{$id:c}=t;if(n(c)&&h(c)&&!i.has(c))i.set(c,l);for(let[d,s]of S(t,l))a(d,s)};a(e,"#");let r=(t,l)=>{let c=l,{$id:d}=t;if(n(d)&&h(d)){if(c=i.get(d)??l,c!=="#")delete t.$id}let s=t.$ref;if(n(s)){let p=s.indexOf("#"),k=p===-1?s:s.slice(0,p),g=p===-1?"":s.slice(p+1);if(k===""){if(g.startsWith("/"))t.$ref=`${c}${g}`}else{let u=i.get(k);if(u!==void 0)t.$ref=g?`${u}${g}`:u}}for(let[p]of S(t,c))r(p,c)};return r(e,"#"),e}function h(o){return/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(o)}var q="editor.worker.js",J=new Map([["editorWorkerService",q],["javascript","ts.worker.js"],["json","json.worker.js"],["typescript","ts.worker.js"]]);function U(o){let e=J.get(o)??q;return k0(`workers/${e}`)}self.MonacoEnvironment={getWorker(o,e){return new Worker(U(e),{type:"module"})}};var A=typeof document>"u"?void 0:document.fonts;if(A?.ready)A.ready.then(async()=>{let o=await (ce("wvf5e6j9"),import("./editor-wvf5e6j9.js"));o.editor.remeasureFonts()});var V=["pages/*.json","pages/**/*.json","layouts/*.json","layouts/**/*.json","components/*.json","components/**/*.json","elements/*.json","elements/**/*.json"],N="file:///project.schema.json",G="file:///document.schema.json";function j(o,e){b.setDiagnosticsOptions({allowComments:!1,schemas:[{fileMatch:V,schema:o,uri:"https://jxsuite.com/schema/v1"},{fileMatch:["project.json"],schema:e,uri:"https://jxsuite.com/schema/project/v1"},{schema:e,uri:N},{schema:o,uri:G}],validate:!0})}var B=w(S0),I=w(C0);j(B,I);function Nn(o){let{document:e,project:i}=o??{};if(!e&&!i)return!1;return j(e??B,i??I),!0}export{Nn as applyProjectSchemas};
|
|
2
|
-
|
|
3
|
-
//# debugId=12DC824246E4FA3864756E2164756E21
|
|
4
|
-
//# sourceMappingURL=monaco-setup-0hw9f835.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{cf,MI,Av,PI,p,ye}from"./studio-4fnb5648.js";export{cf as canOpenProject,p as getPlatform,ye as hasPlatform,Av as launcherSignal,PI as platformInFlight,MI as registerPlatform};
|
|
2
|
-
|
|
3
|
-
//# debugId=509DCA5761680E4064756E2164756E21
|
|
4
|
-
//# sourceMappingURL=platform-kv0k65cy.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{p,y,a,f,U,te,ne,re,E}from"./iframe-entry-b5qgggyp.js";export{y as anchorOf,E as clampIntoViewport,f as close,U as measureAnchor,te as onBeforeToggle,ne as onToggle,re as onTransitionEnd,a as openAt,p as supportsAnchorPositioning};
|
|
2
|
-
|
|
3
|
-
//# debugId=F14E8DF808BCB21164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=popover-9tf4cjrk.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{NE,cF}from"./studio-evq47j2z.js";import"./studio-k1xqrgm5.js";import"./studio-rr00ex23.js";import"./studio-xpx91fby.js";import"./studio-pwctzka3.js";import"./studio-g9brbewz.js";import"./studio-tpxcryf2.js";import"./studio-5tet77de.js";import"./studio-wqfaqw4m.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-q9hx2qp0.js";import"./studio-4fnb5648.js";import"./studio-9dq7rwc7.js";import"./studio-nzemfbkk.js";import"./studio-nvcn2ykc.js";export{cF as openPublishPanel,NE as seedPublishConnected};
|
|
2
|
-
|
|
3
|
-
//# debugId=6D2766BA78F44CA364756E2164756E21
|
|
4
|
-
//# sourceMappingURL=publish-panel-vg1n880b.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import"./studio-9c6cbq2c.js";import"./studio-sce30r7b.js";import"./studio-wqfaqw4m.js";import"./studio-g9brbewz.js";import"./studio-4fnb5648.js";import{Cx,u}from"./studio-pwctzka3.js";import"./studio-knsjyx7n.js";import"./studio-swedpd82.js";import"./studio-q9hx2qp0.js";import"./studio-nvcn2ykc.js";import"./studio-5tet77de.js";import{Jt,Ut}from"./studio-nzemfbkk.js";import{sn,nt,dt}from"./studio-tpxcryf2.js";import"./studio-xpx91fby.js";import"./studio-rr00ex23.js";import"./studio-v7a7yb5w.js";import"./studio-r6mx7vm5.js";import"./studio-1ks5d9y4.js";import"./studio-4zd6an2b.js";import"./studio-hh394phe.js";import"./studio-bnc50f9h.js";import"./studio-61rg2cz5.js";import"./studio-jma2q8r9.js";import"./studio-1410q5dw.js";import"./studio-3pz4t5a2.js";import"./studio-k2evngrj.js";import{eL,YS}from"./studio-mrjtnm62.js";import"./studio-n9qba0gx.js";import"./studio-xva3hzkv.js";import"./studio-90zkgne5.js";import{hw,hm,pm,fb,BD,pw}from"./studio-xx3r3sb0.js";import"./studio-acer0g8w.js";import{Ve,vt,E,R}from"./studio-9dq7rwc7.js";import{me,te,g}from"./studio-3qr08sxq.js";var h={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPublishQuick",$description:"Quick publish (studio.md §22.8): the dialog the chevron beside the Publish workspace tab opens. The count, a short list of what changed, the destination, the summary that becomes the commit message, and the checks in one line; Publish now takes every change to the destination, and Review all opens the Publish workspace on Review changes instead. One `jx-dialog`, so the platform owns modality, Escape and focus restoration. `publish/publish-quick.ts` keeps every decision, and the words of the destinations and the checks are the same `publish/publish-changes.ts` hands Review changes, so the two cannot disagree about what a button does.",tagName:"jx-dialog",$props:{headline:"Publish",confirmLabel:"Publish now",confirmDisabled:{$ref:"#/state/blocked"},secondaryLabel:"Review all",cancelLabel:"Cancel",size:"md"},attributes:{part:"publish-quick","data-destination":"${state.destination}"},onconfirm:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]},onsecondary:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/reviewAll"},value:[]}]},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},style:{'& [part="sheet"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-3)",minWidth:"0"},'& [part="count"]':{margin:"0",fontWeight:"600"},'& [part="change-list"]':{margin:"0",padding:"0",listStyle:"none",display:"flex",flexDirection:"column",gap:"var(--jx-space-1)"},'& [part="change"]':{display:"flex",alignItems:"baseline",gap:"var(--jx-space-2)",minWidth:"0"},'& [part="change-tag"]':{$description:"NEW, EDIT, DELETED, as the board draws them: a word rather than git's letter, because this dialog is read by someone who has never seen a status column.",flex:"none",minWidth:"52px",fontSize:"var(--jx-text-xs)",fontWeight:"700",letterSpacing:"0.04em",color:"var(--signal)"},'& [part="change"][data-status="A"] > [part="change-tag"], & [part="change"][data-status="U"] > [part="change-tag"]':{color:"var(--success)"},'& [part="change"][data-status="D"] > [part="change-tag"]':{color:"var(--danger)"},'& [part="change-name"]':{minWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'& [part="change-dir"], & [part="more"], & [part="choice-note"], & [part="blocker"]':{color:"var(--fg-dim)",fontSize:"var(--jx-text-sm)"},'& [part="more"], & [part="blocker"]':{margin:"0"},'& [part="destinations"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)"},'& [part="destination-card"] > [part="control"]':{$description:"The same card Review changes draws for the same choice: a name and a sentence inside one radio.",width:"100%",height:"auto",flexDirection:"column",alignItems:"flex-start",textAlign:"start",padding:"var(--jx-space-2) var(--jx-space-3)",gap:"2px",whiteSpace:"normal"},'& [part="choice-name"]':{display:"block",fontWeight:"600"},'& [part="choice-note"]':{display:"block"},'& [part="checks-line"]':{display:"flex",alignItems:"center",gap:"var(--jx-space-2)",margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="checks-line"][data-state="done"] > [part="checks-icon"]':{color:"var(--success)"},'& [part="checks-line"][data-state="open"] > [part="checks-icon"]':{color:"var(--warning)"}},children:[{tagName:"div",attributes:{part:"sheet"},children:[{tagName:"p",attributes:{part:"count"},textContent:"${state.countLine}"},{tagName:"div",attributes:{part:"list-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/listState"},cases:{listed:{tagName:"ul",attributes:{part:"change-list"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"change","data-status":"${$map.item.status}",title:"${$map.item.path}"},children:[{tagName:"span",attributes:{part:"change-tag"},textContent:"${$map.item.tag}"},{tagName:"span",attributes:{part:"change-name"},textContent:"${$map.item.name}"},{tagName:"span",attributes:{part:"change-dir"},textContent:"${$map.item.dir}"}]}}]}}},{tagName:"div",attributes:{part:"more-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasMore"},cases:{true:{tagName:"p",attributes:{part:"more"},textContent:"${state.more}"}}},{tagName:"jx-action-group",attributes:{part:"destinations"},$props:{selects:"single",label:"Destination",compact:!1,orientation:"vertical"},children:[{$prototype:"Array",items:{$ref:"#/state/destinations"},key:{$ref:"$map/item/value"},map:{tagName:"jx-action-button",attributes:{part:"destination-card","data-destination":"${$map.item.value}"},$props:{label:{$ref:"$map/item/label"},checked:{$ref:"$map/item/checked"},disabled:{$ref:"$map/item/disabled"},hint:{$ref:"$map/item/reason"},quiet:!1},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickDestination"},value:[{$ref:"$map/item/value"}]}]},children:[{tagName:"span",attributes:{part:"choice-name"},textContent:"${$map.item.label}"},{tagName:"span",attributes:{part:"choice-note"},textContent:"${$map.item.note}"}]}}]},{tagName:"jx-field",attributes:{part:"summary-field"},$props:{label:"Summary",span:!0},children:[{tagName:"jx-textfield",attributes:{part:"summary"},$props:{size:"sm",placeholder:"Describe what changed",value:{$ref:"#/state/summary"}},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/editSummary"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"p",attributes:{part:"checks-line","data-state":"${state.checksState}"},children:[{tagName:"jx-icon",attributes:{part:"checks-icon"},$props:{name:{$ref:"#/state/checksIcon"}}},{tagName:"span",attributes:{part:"checks-text"},textContent:"${state.checksLine}"}]},{tagName:"div",attributes:{part:"blocker-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasBlocker"},cases:{true:{tagName:"p",attributes:{part:"blocker"},textContent:"${state.blocker}"}}}]}]};E("publish-quick",h);function m(e){let a=document.createElement("div");a.style.pointerEvents="auto",a.setAttribute(Ve,vt("dialog","publish-quick")),e.layer.append(a);let t=!1,r=()=>{if(t)return;t=!0,e.actions.closed()},c=()=>t,{actions:s}=e,l=g({...e.view,closed:r,confirm:s.confirm,editSummary:(i)=>{l.summary=i,s.editSummary(i)},pickDestination:s.pickDestination,reviewAll:s.reviewAll}),o=null,k=R("publish-quick",l,a).then(async(i)=>{o=i;let p=i.root;if(c())return i.dispose(),p;if(await sn(p),!c())Jt(p);return p});return{close(){let i=o?.root;if(i instanceof HTMLElement)Ut(i);o?.dispose(),o=null,a.remove(),r()},host:a,ready:k,update(i){Object.assign(l,i)}}}var d=4;function v(e){let{dir:a,key:t,name:r,path:c,status:s}=YS(e);return{dir:a,key:t,name:r,path:c,status:s,tag:eL(s)}}function f(){let e=u.git.status?.files??[],a=u.publish.destination,t=hm(a),r=fb(),c=r.some((o)=>o.state!=="done"),s=u.git.error||pm(t,!0),l=e.length-d;return{blocked:pm(t,!0)!=="",blocker:s,checksIcon:c?"warning-circle":"check",checksLine:BD(r),checksState:c?"open":"done",countLine:e.length===0?"Nothing to publish":`${e.length} ${e.length===1?"change":"changes"} ready`,destination:t,destinations:hw(a),hasBlocker:s!=="",hasMore:l>0,listState:e.length>0?"listed":"empty",more:l>0?`+ ${l} more`:"",rows:e.slice(0,d).map((o)=>v(o)),summary:u.git.commitMessage}}var n=null;function b(){let e=n;if(n=null,e)e.scope.stop(),e.handle.close()}function F(){if(n)return n.handle;u.git.error=null;let e=m({actions:{closed:()=>{if(n?.handle===e)n.scope.stop(),n=null},confirm:()=>{pw(hm(u.publish.destination),{includeAll:!0}).then((t)=>{if(t)b()})},editSummary:(t)=>{u.git.commitMessage=t},pickDestination:(t)=>{if(Cx(t))u.publish.destination=t},reviewAll:()=>{b(),nt("publish.open",{tab:"review"},"Publish")}},layer:dt("dialog"),view:f()}),a=me();return a.run(()=>{te(()=>{e.update(f())})}),n={handle:e,scope:a},e}export{F as openQuickPublish};
|
|
2
|
-
|
|
3
|
-
//# debugId=CF7402AD333E1DE164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=publish-quick-4fwngwrw.js.map
|