hesabixCore/public_html/webui/assets/style-964d1d14.js

2 lines
20 KiB
JavaScript
Raw Normal View History

2025-03-21 14:20:43 +03:30
import{ap as Re,r as N,O as r,n as K,j as Me,a8 as Ee,m as Ie,G as ue,q as Fe,a as X,o as w,s as B,b as be,w as P,y as $,_ as xe,x as Y,c as H,F as qe,W as we,C as Ve,e as se,v as J,A as U,aa as S,u as ze,ab as Ge,t as Ue,T as We,aq as V}from"./vendor-adef9cb4.js";var Ye=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Te=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))Ke.call(t,n)&&Te(e,n,t[n]);if(Oe)for(var n of Oe(t))He.call(t,n)&&Te(e,n,t[n]);return e},ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e==null}var g=Je,Se=1/0,Xe=17976931348623157e292,Ne=0/0,Qe="[object Symbol]",Ze=/^\s+|\s+$/g,_e=/^[-+]0x[0-9a-f]+$/i,et=/^0b[01]+$/i,tt=/^0o[0-7]+$/i,nt=parseInt,rt=Object.prototype,ot=rt.toString;function je(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function at(e){return!!e&&typeof e=="object"}function st(e){return typeof e=="symbol"||at(e)&&ot.call(e)==Qe}function lt(e){if(!e)return e===0?e:0;if(e=dt(e),e===Se||e===-Se){var t=e<0?-1:1;return t*Xe}return e===e?e:0}function ut(e){var t=lt(e),n=t%1;return t===t?n?t-n:t:0}function dt(e){if(typeof e=="number")return e;if(st(e))return Ne;if(je(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=je(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Ze,"");var n=et.test(e);return n||tt.test(e)?nt(e.slice(2),n?2:8):_e.test(e)?Ne:+e}var it=ut;const de=8,ct="disabled",vt="focused",ft="draggable",pt="droppable",gt="node-over",ht="node-in",bt="node-under",yt="0 0 123.958 123.959",kt="M117.979,28.017h-112c-5.3,0-8,6.4-4.2,10.2l56,56c2.3,2.3,6.1,2.3,8.401,0l56-56C125.979,34.417,123.279,28.017,117.979,28.017z",mt="M38.217,1.779c-3.8-3.8-10.2-1.1-10.2,4.2v112c0,5.3,6.4,8,10.2,4.2l56-56c2.3-2.301,2.3-6.101,0-8.401L38.217,1.779z",De="black";function ye(e){return{type:"shape",width:de,height:de,viewBox:yt,stroke:De,fill:De,draw:e,name:null,src:null,alt:null,style:null,class:null}}const Q={roots:[],padding:16,editable:!1,editing:null,checkboxes:!1,dragAndDrop:!1,keyboardNavigation:!1,openedIcon:ye(kt),closedIcon:ye(mt)};function Ct(e){const t=ue("state"),n=t.config,o=t.nodes,u=N(e.depth),s=N(e.parentId),c=r(()=>{const v=[];if(g(s.value)&&n.value.roots&&u.value===0){for(const p of n.value.roots)l(p,v);return v}if(!g(s.value)){const p=o.value[s.value];if(p&&p.children&&p.children.length>0)for(const k of p.children)l(k,v);return v}return[]}),l=(v,p)=>{o.value[v]&&(o.value[v].id=v,o.value[v].parent=s.value,p.push(o.value[v]))},a=r(()=>new Date().valueOf()),b=r(()=>{if(u.value===0)return 0;if(g(n.value.padding))return Q.padding;const v=it(n.value.padding);return v>=0?v:0}),y=r(()=>({"padding-left":`${b.value}px`,"list-style":"none"}));return{id:a,level:c,padding:b,style:y}}var Z=(e,t)=>{for(const[n,o]of t)e[n]=o;return e};const It={components:{TreeNode:Re(()=>Promise.resolve().then(function(){return bn}))},props:{depth:{required:!0,type:Number,default:null},parentId:{type:String,default:null}},setup(e){return I({},Ct(e))}},wt=["id"];function Ot(e,t,n,o,u,s){const c=X("TreeNode");return w(),B("ul",{class:"tree-level",id:e.id,style:Y(e.style)},[(w(!0),B(qe,null,Ve(e.level,(l,a)=>(w(),H(c,{key:l.id,node:l,depth:n.depth,index:a,"parent-id":n.parentId},{"loading-slot":P(b=>[$(e.$slots,"loading-slot",{node:b.node})]),"before-input":P(b=>[$(e.$slots,"before-input",{node:b.node})]),"after-input":P(b=>[$(e.$slots,"after-input",{node:b.node})]),_:2},1032,["node","depth","index","parent-id"]))),128))],12,wt)}var Ae=Z(It,[["render",Ot]]),Tt=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:Ae}),St=1/0,Nt="[object Symbol]",jt=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Dt=typeof self=="object"&&self&&self.Object===Object&&self,Lt=jt||Dt||Function("return this")(),$t=Object.prototype,Bt=0,Pt=$t.toString,Le=Lt.Symbol,$e=Le?Le.prototype:void 0,Be=$e?$e.toString:void 0;function Rt(e){if(typeof e=="string")return e;if(Ft(e))return B