|
|
|
var V=Object.create;var x=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var D=n=>x(n,"__esModule",{value:!0});var Y=(n,t)=>{D(n);for(var i in t)x(n,i,{get:t[i],enumerable:!0})},Z=(n,t,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Q(t))!X.call(n,e)&&e!=="default"&&x(n,e,{get:()=>t[e],enumerable:!(i=J(t,e))||i.enumerable});return n},v=n=>Z(D(x(n!=null?V(W(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);Y(exports,{default:()=>N});var B=v(require("obsidian"));var d=v(require("obsidian"));var G=v(require("obsidian"));var y=v(require("obsidian"));var C=v(require("obsidian"));var M=["add-note-glyph","any-key","audio-file","blocks","bold-glyph","box-glyph","bracket-glyph","broken-link","bullet-list-glyph","bullet-list","calendar-glyph","calendar-with-checkmark","check-in-circle","check-small","checkbox-glyph","checkmark","clock-glyph","clock","cloud","code-glyph","command-glyph","compress-glyph","create-new","cross-in-box","cross","crossed-star","dice-glyph","dice","document","documents","dot-network","double-down-arrow-glyph","double-up-arrow-glyph","down-arrow-with-tail","down-chevron-glyph","down-curly-arrow-glyph","duplicate-glyph","enlarge-glyph","enter","exit-fullscreen","expand-vertically","file-explorer-glyph","filled-pin","folder","forward-arrow","fullscreen","gear","github-glyph","go-to-file","graph-glyph","hashtag","heading-glyph","help","highlight-glyph","horizontal-split","image-file","image-glyph","import-glyph","indent-glyph","info","install","italic-glyph","keyboard-glyph","languages","left-arrow-with-tail","left-arrow","left-chevron-glyph","lines-of-text","link-glyph","link","links-coming-in","links-going-out","logo-crystal","magnifying-glass","merge-files-glyph","merge-files","microphone-filled","microphone","minus-with-circle","navigate-glyph","note-glyph","number-list-glyph","open-elsewhere-glyph","open-vault","pane-layout","paper-plane-glyph","paper-plane","paste-text","paste","paused","pdf-file","pencil","percent-sign-glyph","pin","play-audio-glyph","plus-minus-glyph","plus-with-circle","popup-open","presentation-glyph","presentation","price-tag-glyph","question-mark-glyph","quote-glyph","reading-glasses","redo-glyph","reset","restore-file-glyph","right-arrow-with-tail","right-arrow","right-chevron-glyph","right-triangle","run-command","scissors-glyph","scissors","search-glyph","search","select-all-text","sheets-in-box","split","stacked-levels","star-glyph","star-list","star","stop-audio-glyph","strikethrough-glyph","switch","sync-small","sync","tag-glyph","three-horizontal-bars","tomorrow-glyph","trash","two-blank-pages","undo-glyph","unindent-glyph","up-and-down-arrows","up-arrow-with-tail","up-chevron-glyph","up-curly-arrow-glyph","uppercase-lowercase-a","vault","vertical-split","vertical-three-dots","wand-glyph","wand","workspace-glyph","wrench-screwdriver-glyph","yesterday-glyph"],u="page-header-button",w="titlebar-button",T="titlebar-center",E=[w,u];function ee(n){return n.includes(":")?n.split(":")[1].trim():n}function q(){let n=24;return C.Platform.isMobile?n=24:C.Platform.isDesktop&&(n=18),n}function k(n,t,i,e,l,s="a"){let c=ee(n),o=l.concat([t]),a=createEl(s,{cls:o,attr:{"aria-label-position":"bottom","aria-label":c}});return(0,C.setIcon)(a,i,e),a}function S(n){for(let t=n.length;t>=0;t--)n[t]&&n[t].remove()}function L(n,t,i){let e=n.getElementsByClassName(`${i} ${u} ${t}`);e[0]&&e[0].remove()}function H(){return document.getElementsByClassName("titlebar-text")[0].getText()}function h(n){let t=document.getElementsByClassName(`${u} ${T}`)[0];t!==void 0&&(t.classList.remove(u,T),t.addClass("titlebar-text"),t.innerHTML=n)}function f(){let t=P().getElementsByClassName(`${u} ${w}`);S(t)}function O(){let n=document.getElementsByClassName("titlebar-text")[0];return n.classList.remove("titlebar-text"),n.addClasses([u,T]),n.innerHTML="",n}function _(){let n=[];app.workspace.iterateAllLeaves(t=>{n.push(t.view.container
|