На заливку

This commit is contained in:
iriska-gri committed 2023-12-26 16:46:03 +03:00
1 parent 2f9be281e2
commit f636f863d9
73 files changed
+77 -56

No files matched your search

+1
View File
@@ -0,0 +1 @@
import{p as D,a2 as W,a6 as q,a7 as z,a9 as J,a$ as Se,am as pe,c as f,b as $,ad as Q,G as y,i as P,s as V,e as I,bF as w,r as b,aa as j,l as X,d as be,h as ke,m as Y,a1 as _,bn as F,ai as we,a3 as Ae,aH as Ce,aj as Ve,ak as Pe,bo as Ie,a5 as Me,bc as Oe,bp as Le,bs as De,w as Be,an as Ne,bq as xe,b4 as Re,aK as Te,ao as Ge,ap as $e,bG as je,O as _e,bl as Fe,bt as He,$ as H,bu as E,V as K,as as U}from"./index-8873ba18.js";const Ee=D({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...W(),...q()},"VDivider"),tt=z()({name:"VDivider",props:Ee(),setup(e,r){let{attrs:l}=r;const{themeClasses:t}=J(e),{textColorClasses:a,textColorStyles:n}=Se(pe(e,"color")),s=f(()=>{const u={};return e.length&&(u[e.vertical?"maxHeight":"maxWidth"]=$(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=$(e.thickness)),u});return Q(()=>y("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},t.value,a.value,e.class],style:[s.value,n.value,e.style],"aria-orientation":!l.role||l.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${l.role||"separator"}`},null)),{}}}),L=Symbol.for("vuetify:list");function nt(){const e=P(L,{hasPrepend:V(!1),updateHasPrepend:()=>null}),r={hasPrepend:V(!1),updateHasPrepend:l=>{l&&(r.hasPrepend.value=l)}};return I(L,r),e}function Ke(){return P(L,null)}const Ue={open:e=>{let{id:r,value:l,opened:t,parents:a}=e;if(l){const n=new Set;n.add(r);let s=a.get(r);for(;s!=null;)n.add(s),s=a.get(s);return n}else return t.delete(r),t},select:()=>null},Z={open:e=>{let{id:r,value:l,opened:t,parents:a}=e;if(l){let n=a.get(r);for(t.add(r);n!=null&&n!==r;)t.add(n),n=a.get(n);return t}else t.delete(r);return t},select:()=>null},We={open:Z.open,select:e=>{let{id:r,value:l,opened:t,parents:a}=e;if(!l)return t;const n=[];let s=a.get(r);for(;s!=null;)n.push(s),s=a.get(s);return new Set(n)}},B=e=>{const r={select:l=>{let{id:t,value:a,selected:n}=l;if(t=w(t),e&&!a){const s=Array.from(n.entries()).reduce((u,h)=>{let[S,m]=h;return m==="on"?[...u,S]:u},[]);if(s.length===1&&s[0]===t)return n}return n.set(t,a?"on":"off"),n},in:(l,t,a)=>{let n=new Map;for(const s of l||[])n=r.select({id:s,value:!0,selected:new Map(n),children:t,parents:a});return n},out:l=>{const t=[];for(const[a,n]of l.entries())n==="on"&&t.push(a);return t}};return r},ee=e=>{const r=B(e);return{select:t=>{let{selected:a,id:n,...s}=t;n=w(n);const u=a.has(n)?new Map([[n,a.get(n)]]):new Map;return r.select({...s,id:n,selected:u})},in:(t,a,n)=>{let s=new Map;return t!=null&&t.length&&(s=r.in(t.slice(0,1),a,n)),s},out:(t,a,n)=>r.out(t,a,n)}},qe=e=>{const r=B(e);return{select:t=>{let{id:a,selected:n,children:s,...u}=t;return a=w(a),s.has(a)?n:r.select({id:a,selected:n,children:s,...u})},in:r.in,out:r.out}},ze=e=>{const r=ee(e);return{select:t=>{let{id:a,selected:n,children:s,...u}=t;return a=w(a),s.has(a)?n:r.select({id:a,selected:n,children:s,...u})},in:r.in,out:r.out}},Je=e=>{const r={select:l=>{let{id:t,value:a,selected:n,children:s,parents:u}=l;t=w(t);const h=new Map(n),S=[t];for(;S.length;){const i=S.shift();n.set(i,a?"on":"off"),s.has(i)&&S.push(...s.get(i))}let m=u.get(t);for(;m;){const i=s.get(m),o=i.every(c=>n.get(c)==="on"),d=i.every(c=>!n.has(c)||n.get(c)==="off");n.set(m,o?"on":d?"off":"indeterminate"),m=u.get(m)}return e&&!a&&Array.from(n.entries()).reduce((o,d)=>{let[c,p]=d;return p==="on"?[...o,c]:o},[]).length===0?h:n},in:(l,t,a)=>{let n=new Map;for(const s of l||[])n=r.select({id:s,value:!0,selected:new Map(n),children:t,parents:a});return n},out:(l,t)=>{const a=[];for(const[n,s]of l.entries())s==="on"&&!t.has(n)&&a.push(n);return a}};return r},A=Symbol.for("vuetify:nested"),te={id:V(),root:{register:()=>null,unregister:()=>null,parents:b(new Map),children:b(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:b(new Set),selected:b(new Map),selectedValues:b([])}},at=D({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),lt=e=>{let r=!1;const l=b(new Map),t=b(new Map),a=j(e,"opened",e.opened,i=>new Set(i),i=>[...i.values()]),n=f(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return ze(e.mandatory);case"leaf":return qe(e.mandatory);case"independent":return B(e.mandatory);case"single-independent":return ee(e.mandatory);case"classic":default:return Je(e.mandatory)}}),s=f(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return We;case"single":return Ue;case"multiple":default:return Z}}),u=j(e,"selected",e.selected,i=>n.value.in(i,l.value,t.value),i=>n.value.out(i,l.value,t.value));X(()=>{r=!0});function h(i){const o=[];let d=i;for(;d!=null;)o.unshift(d),d=t.value.get(d);return o}const S=be("nested"),m={id:V(),root:{opened:a,selected:u,selectedValues:f(()=>{const i=[];for(const[o,d]of u.value.entries())d==="on"&&i.push(o);return i}),register:(i,o,d)=>{o&&i!==o&Line truncated