| @@ -1,5 +1,5 @@ | ||
| 1 | -var E=(e,s,a)=>{if(!s.has(e))throw TypeError("Cannot "+a)};var l=(e,s,a)=>(E(e,s,"read from private field"),a?a.call(e):s.get(e)),I=(e,s,a)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,a)},T=(e,s,a,t)=>(E(e,s,"write to private field"),t?t.call(e,a):s.set(e,a),a);import{d as O}from"./index6.js?ver=2.11.0";import{b3 as z,bV as H,b7 as P,b4 as S,b8 as b,az as B}from"./vendor.js?ver=2.11.0";import{j as D,k as G,s as M,d as V,l as K}from"./todoList.js?ver=2.11.0";import{y as U,R as _,z as q,A as J,B as A,L as C,C as v,D as Q,E as W,G as X,I as Y,K as R,M as Z,N as x}from"./milkdown.js?ver=2.11.0";import"./vue.js?ver=2.11.0";import"./dayjs.js?ver=2.11.0";import"./fcom-utils.js?ver=2.11.0";const F=({ctx:e,hide:s,show:a,config:t})=>{var h,p,y,k,w;const c=H();P(()=>{c()},[a]);const n=o=>m=>{m.preventDefault(),e&&o(e),c()},i=o=>{if(!e)return!1;const m=e.get(C),{state:{doc:u,selection:$}}=m;return u.rangeHasMark($.from,$.to,o)};return S`<host> | |
| 1 | +var E=(e,s,a)=>{if(!s.has(e))throw TypeError("Cannot "+a)};var l=(e,s,a)=>(E(e,s,"read from private field"),a?a.call(e):s.get(e)),I=(e,s,a)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,a)},T=(e,s,a,t)=>(E(e,s,"write to private field"),t?t.call(e,a):s.set(e,a),a);import{d as O}from"./index6.js?ver=2.10.01";import{b3 as z,bV as H,b7 as P,b4 as S,b8 as b,az as B}from"./vendor.js?ver=2.10.01";import{j as D,k as G,s as M,d as V,l as K}from"./todoList.js?ver=2.10.01";import{y as U,R as _,z as q,A as J,B as A,L as C,C as v,D as Q,E as W,G as X,I as Y,K as R,M as Z,N as x}from"./milkdown.js?ver=2.10.01";import"./vue.js?ver=2.10.01";import"./dayjs.js?ver=2.10.01";import"./fcom-utils.js?ver=2.10.01";const F=({ctx:e,hide:s,show:a,config:t})=>{var h,p,y,k,w;const c=H();P(()=>{c()},[a]);const n=o=>m=>{m.preventDefault(),e&&o(e),c()},i=o=>{if(!e)return!1;const m=e.get(C),{state:{doc:u,selection:$}}=m;return u.rangeHasMark($.from,$.to,o)};return S`<host> | |
| 2 | 2 | <button |
| 3 | 3 | class=${b("toolbar-item",e&&i(U.type(e))&&"active")} |
| 4 | 4 | onmousedown=${n(o=>{o.get(v).call(Q.key)})} |
| 5 | 5 | > |