@dynamicforms/vuetify-inputs 0.6.2 → 0.6.4
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.
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
*/function ft(t){return he(t.licenseKey)?t:lt(t,[mt])}const re="Lock from Vue integration (@ckeditor/ckeditor5-vue)",pt=300,vt=e.defineComponent({name:"CKEditor",__name:"ckeditor",props:e.mergeModels({editor:{},config:{default:()=>({})},tagName:{default:"div"},disabled:{type:Boolean,default:!1},disableTwoWayDataBinding:{type:Boolean,default:!1}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:e.mergeModels(["ready","destroy","blur","focus","input","update:modelValue"],["update:modelValue"]),setup(t,{expose:n,emit:o}){const a=e.useModel(t,"modelValue"),l=t,i=o,u=e.ref(),p=e.ref(),s=e.ref();n({instance:p,lastEditorData:s}),e.watch(a,m=>{p.value&&m!==s.value&&p.value.data.set(m)}),e.watch(()=>l.disabled,m=>{m?p.value.enableReadOnlyMode(re):p.value.disableReadOnlyMode(re)});function f(){const m=window.CKEDITOR_VERSION;if(!m)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[w]=m.split(".").map(Number);w>=42||m.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function y(m){const w=b.debounce(d=>{if(l.disableTwoWayDataBinding)return;const T=s.value=m.data.get();i("update:modelValue",T,d,m),i("input",T,d,m)},pt,{leading:!0});m.model.document.on("change:data",w),m.editing.view.document.on("focus",d=>{i("focus",d,m)}),m.editing.view.document.on("blur",d=>{i("blur",d,m)})}return f(),e.onMounted(()=>{const m=ft(Object.assign({},l.config));a.value&&(m.initialData=a.value),l.editor.create(u.value,m).then(w=>{p.value=e.markRaw(w),y(w),a.value!==m.initialData&&w.data.set(a.value),l.disabled&&w.enableReadOnlyMode(re),i("ready",w)}).catch(w=>{console.error(w)})}),e.onBeforeUnmount(()=>{p.value&&(p.value.destroy(),p.value=void 0),i("destroy")}),(m,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.tagName),{ref_key:"element",ref:u},null,512))}});/**
|
|
41
41
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
42
42
|
* For licensing, see LICENSE.md.
|
|
43
|
-
*//* istanbul ignore if -- @preserve */if(!fe.version||!fe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const ht={install(t){t.component("Ckeditor",vt)}};function yt(t){return t.one!==void 0}const bt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function gt(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const wt=(t,n,o)=>{let a="",l="present";o!=null&&o.addSuffix&&(o.comparison&&o.comparison>0?(l="future",a="čez "):(l="past",a="pred "));const i=bt[t];if(typeof i=="string")a+=i;else{const u=gt(n);yt(i)?a+=i[u].replace("{{count}}",String(n)):a+=i[l][u].replace("{{count}}",String(n))}return a};function ie(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const kt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Ct={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Bt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jt={date:ie({formats:kt,defaultWidth:"full"}),time:ie({formats:Ct,defaultWidth:"full"}),dateTime:ie({formats:Bt,defaultWidth:"full"})},Tt={lastWeek:t=>{switch(t.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:t=>{switch(t.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Pt=(t,n,o,a)=>{const l=Tt[t];return typeof l=="function"?l(n):l};function Y(t){return(n,o)=>{const a=o!=null&&o.context?String(o.context):"standalone";let l;if(a==="formatting"&&t.formattingValues){const u=t.defaultFormattingWidth||t.defaultWidth,p=o!=null&&o.width?String(o.width):u;l=t.formattingValues[p]||t.formattingValues[u]}else{const u=t.defaultWidth,p=o!=null&&o.width?String(o.width):t.defaultWidth;l=t.values[p]||t.values[u]}const i=t.argumentCallback?t.argumentCallback(n):n;return l[i]}}const Dt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},Nt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},_t={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},St={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},It={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},xt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},At={ordinalNumber:(t,n)=>Number(t)+".",era:Y({values:Dt,defaultWidth:"wide"}),quarter:Y({values:Nt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Y({values:_t,defaultWidth:"wide"}),day:Y({values:St,defaultWidth:"wide"}),dayPeriod:Y({values:It,defaultWidth:"wide",formattingValues:xt,defaultFormattingWidth:"wide"})};function Q(t){return(n,o={})=>{const a=o.width,l=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=n.match(l);if(!i)return null;const u=i[0],p=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(p)?$t(p,m=>m.test(u)):Mt(p,m=>m.test(u));let f;f=t.valueCallback?t.valueCallback(s):s,f=o.valueCallback?o.valueCallback(f):f;const y=n.slice(u.length);return{value:f,rest:y}}}function Mt(t,n){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return o}function $t(t,n){for(let o=0;o<t.length;o++)if(n(t[o]))return o}function Et(t){return(n,o={})=>{const a=n.match(t.matchPattern);if(!a)return null;const l=a[0],i=n.match(t.parsePattern);if(!i)return null;let u=t.valueCallback?t.valueCallback(i[0]):i[0];u=o.valueCallback?o.valueCallback(u):u;const p=n.slice(l.length);return{value:u,rest:p}}}const Lt=/^(\d+)\./i,Rt=/\d+/i,Ut={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},zt={any:[/^pr/i,/^(po|na[sš]em)/i]},Ot={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},Ft={any:[/1/i,/2/i,/3/i,/4/i]},Wt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},qt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ht={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},Kt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},Xt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},Gt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},Yt={ordinalNumber:Et({matchPattern:Lt,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Q({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any"}),quarter:Q({matchPatterns:Ot,defaultMatchWidth:"wide",parsePatterns:Ft,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Q({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Q({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:wt,formatLong:jt,formatRelative:Pt,localize:At,match:Yt,options:{weekStartsOn:1,firstWeekContainsDate:1}},ye={dateTimeLocale:e.ref(Qt),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}},O=e.defineComponent({__name:"df-label",props:{data:{},label:{},allowWrap:{type:Boolean}},setup(t){const n=t,o=e.computed(()=>n.data?n.data.label:n.label.text);return(a,l)=>{const i=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-label",{"allow-wrap":a.allowWrap}])},[a.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:a.label.icon,size:"1.25em"},null,8,["name"])):a.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(i,{key:1,class:"icon",src:a.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.label.iconComponent),{key:2,src:a.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),o.value instanceof e.unref(M.MdString)?(e.openBlock(),e.createBlock(e.unref(ee),{key:1,class:"markdown",source:o.value.toString()},null,8,["source"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.value),1)],64))],2)}}}),se=Symbol("vuetifyInputsSettingsKey");class be{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const U={enabled:void 0,clearable:!0};function R(t,n){const o=e.inject(se,{}),a=e.ref(null),l=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?a.value:t.modelValue},set(C){t.control&&(t.control.value=C),t.modelValue===void 0&&(a.value=C),n("update:modelValue",C)}});if(t.control&&!(t.control instanceof M.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.computed({get(){return t.control.touched},set(C){t.control.touched=C}}),u=t.control?i:e.ref(!1),p=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(C=>new M.ValidationErrorRenderContent(C))),f=e.computed(()=>u.value&&s.value.length>0?" ":void 0),y=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),m=e.computed(()=>t.control?t.control.visibility:t.visibility||M.DisplayMode.FULL),w=e.computed(()=>b.isString(t.label||"")?new be(t.label||""):t.label),d=e.computed(()=>t.placeholder||""),T=e.computed(()=>t.helpText||""),P=e.computed(()=>t.hint||""),k=e.computed(()=>t.cssClass||""),g=e.computed(()=>{var C,B,$;return($=(B=(C=t.density)!=null?C:e.inject("field-density",null))!=null?B:o.defaultDensity)!=null?$:"default"}),I=e.computed(()=>g.value==="inline"?"default":g.value),A=e.computed(()=>{var C,B,$;return($=(B=(C=t.variant)!=null?C:e.inject("field-variant",null))!=null?B:o.defaultVariant)!=null?$:"underlined"});return{value:l,valid:p,enabled:y,errors:s,visibility:m,label:w,touched:u,density:g.value,densityClass:e.computed(()=>`df-density-${g.value}`),vuetifyBindings:e.computed(()=>{var C;return S({name:(C=t.control)==null?void 0:C.fieldName,class:k.value,density:I.value,variant:A.value,label:w.value.text,messages:f.value,errorMessages:f.value,readonly:!y.value,disabled:!y.value,placeholder:d.value,"persistent-placeholder":!b.isEmpty(d.value),hint:P.value,persistentHint:!0,hideDetails:"auto",helpText:T.value},t.passthroughAttrs||{})})}}const F=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const n=t,o=()=>{if(n.message!==" ")return e.h("span",{class:n.classes},n.message);const a=[];return n.errors.forEach(l=>{switch(l.componentName){case"template":a.push(e.h("div",{class:n.classes},l.componentBody));break;case"vue-markdown":a.push(e.h(ee,{class:[n.classes,"df-messages-widget-markdown"],source:l.componentBindings.source}));break;default:a.push(e.h(l.componentName,E(S({class:n.classes},l.componentBindings),{innerHTML:l.componentBody})));break}}),a};return(a,l)=>(e.openBlock(),e.createBlock(o))}}),Zt={class:"d-flex w-100 df-style-resetting"},te=e.defineComponent({__name:"input-base",props:{control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{},loading:{type:Boolean}},emits:["update:modelValue","click:clear","blur"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,value:u,touched:p,visibility:s,vuetifyBindings:f}=R(o,a),y=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(u))),m=e.ref(!1);function w(d){m.value=d,d||(p.value=!0,a("blur"))}return(d,T)=>{const P=e.resolveComponent("v-field"),k=e.resolveComponent("v-input");return e.unref(s)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(k,{key:0,name:e.unref(f).name,density:e.unref(f).density,hint:e.unref(f).hint,"persistent-hint":e.unref(f).persistentHint,"hide-details":e.unref(f).hideDetails,"error-messages":e.unref(f).errorMessages,class:e.normalizeClass([d.cssClass,{"d-none":e.unref(s)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(M.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:g})=>[e.createVNode(F,{message:g,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(P,{variant:e.unref(f).variant,density:e.unref(f).density,label:e.unref(f).label,disabled:e.unref(f).disabled,clearable:y.value,"persistent-clear":!0,dirty:!!e.unref(u),active:m.value,loading:d.loading,"onClick:clear":T[0]||(T[0]=g=>a("click:clear")),"onUpdate:focused":T[1]||(T[1]=g=>w(g))},e.createSlots({label:e.withCtx(g=>[e.createVNode(O,{data:g,label:e.unref(i)},null,8,["data","label"])]),default:e.withCtx(g=>[e.createElementVNode("div",Zt,[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps(g)))])]),loader:e.withCtx(g=>[e.renderSlot(d.$slots,"loader",e.normalizeProps(e.guardReactiveProps(g)))]),_:2},[d.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["variant","density","label","disabled","clearable","dirty","active","loading"])]),_:2},[d.$slots.prepend?{name:"prepend",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["name","density","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),K={Yes:"Yes",No:"No",Close:"Close"};function Jt(t){Object.keys(K).forEach(n=>{K[n]=t(n)})}r.ActionDisplayStyle=(t=>(t[t.BUTTON=0]="BUTTON",t[t.TEXT=1]="TEXT",t))(r.ActionDisplayStyle||{});const ce=0;(t=>{function n(l){return l.toUpperCase()==="BUTTON"?0:l.toUpperCase()==="TEXT"?1:ce}t.fromString=n;function o(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)?i:ce}t.fromAny=o;function a(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)}t.isDefined=a})(r.ActionDisplayStyle||(r.ActionDisplayStyle={})),Object.freeze(r.ActionDisplayStyle);const ue=["xs","sm","md","lg","xl"];class ge{constructor(n){Ee(this,"_value");this._value=this.cleanBreakpoint(n,!0),n&&ue.forEach(o=>{const a=this.cleanBreakpoint(n[o]);a&&(this._value[o]=a)})}getOptionsForBreakpoint(n){const o=this.cleanBreakpoint(this._value),a=Object.keys(o);for(const l of ue){const i=this._value[l];for(const u of a)(i==null?void 0:i[u])!=null&&(o[u]=i[u]);if(l===n)break}return o}}function we(t){return t.xlAndUp.value?"xl":t.lgAndUp.value?"lg":t.mdAndUp.value?"md":t.smAndUp.value?"sm":"xs"}function ke(){const t=le.useDisplay();return e.computed(()=>we(t))}class Ce extends ge{cleanBreakpoint(n,o=!1){if((!n||!b.isObjectLike(n))&&!o)return null;const a={};return o&&(a.renderAs=r.ActionDisplayStyle.BUTTON,a.showLabel=!0,a.showIcon=!0),n&&(n.renderAs!=null&&(a.renderAs=r.ActionDisplayStyle.fromAny(n.renderAs)),b.isString(n.label)&&(a.label=n.label),b.isString(n.icon)&&(a.icon=n.icon),b.isBoolean(n.showLabel)&&(a.showLabel=n.showLabel),b.isBoolean(n.showIcon)&&(a.showIcon=n.showIcon)),Object.keys(a).length?a:null}}class Z extends M.Action{static create(n){return super.create(n)}getBreakpointValue(n){return e.computed(()=>{const a=new Ce(this.value).getOptionsForBreakpoint(n.value);return{name:a.name,label:a.showLabel?a.label:void 0,icon:a.showIcon?a.icon:void 0,renderAs:a.renderAs,showLabel:b.isString(a.label)&&!b.isEmpty(a.label)?a.showLabel:!1,showIcon:b.isString(a.icon)&&!b.isEmpty(a.icon)?a.showIcon:!1}})}get name(){return this.value.name}get label(){return this.value.showLabel?this.value.label:void 0}get showLabel(){return b.isString(this.value.label)&&!b.isEmpty(this.value.label)?this.value.showLabel:!1}get icon(){return this.value.showIcon?this.value.icon:void 0}get showIcon(){return b.isString(this.value.icon)&&!b.isEmpty(this.value.icon)?this.value.showIcon:!1}get renderAs(){return this.value.renderAs}static closeAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"close",label:K.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static yesAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"yes",label:K.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static noAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"no",label:K.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}}const Vt={key:1,style:{width:"0.5rem"}},en={key:2},Be=e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const n=t,o=ke(),a=e.computed(()=>e.unref(n.actions)),l=e.computed(()=>a.value.map(i=>S({action:i},e.unref(i.getBreakpointValue(o)))));return(i,u)=>{const p=e.resolveComponent("v-btn");return a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end df-actions",{"button-group":i.showAsGroup==="grouped"||i.showAsGroup==="grouped-no-borders","with-border":i.showAsGroup==="grouped"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,f)=>(e.openBlock(),e.createBlock(p,{key:f,variant:s.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(y=>s.action.execute(y),["stop"])},{default:e.withCtx(()=>[s.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:s.icon},null,8,["name"])):e.createCommentVNode("",!0),s.icon&&s.label?(e.openBlock(),e.createElementBlock("span",Vt)):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",en,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),je=e.defineComponent({__name:"df-checkbox",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),y=e.computed(()=>o.allowNull&&s.value==null),m=e.computed({get(){return s.value},set(){}});function w(){const d=b.clone(s.value);d===!0?s.value=o.allowNull?null:!1:s.value=d===!1}return(d,T)=>{const P=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(P,e.mergeProps({modelValue:m.value,"onUpdate:modelValue":T[0]||(T[0]=k=>m.value=k)},e.unref(f),{density:"compact",class:e.unref(l),indeterminate:y.value,"false-value":!1,"true-value":!0,onChange:w,onBlur:T[1]||(T[1]=k=>p.value=!0)}),{label:e.withCtx(k=>[e.createVNode(e.unref(O),{"allow-wrap":!0,data:k,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:k})=>[e.createVNode(e.unref(F),{message:k,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","class","indeterminate"])}}}),Te=e.defineComponent({__name:"df-color",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),y=e.ref(!1),m=e.computed(()=>[w=>o.control||!w&&o.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(w)?!0:"Not a valid hex string."]);return(w,d)=>{const T=e.resolveComponent("v-color-picker"),P=e.resolveComponent("v-menu"),k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":d[2]||(d[2]=g=>e.isRef(s)?s.value=g:null)},e.unref(f),{class:e.unref(l),clearable:w.allowNull,type:"text",rules:m.value,onBlur:d[3]||(d[3]=g=>p.value=!0)}),{label:e.withCtx(g=>[e.createVNode(e.unref(O),{data:g,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:g})=>[e.createVNode(e.unref(F),{message:g,errors:e.unref(i)},null,8,["message","errors"])]),"prepend-inner":e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{width:"24px",height:"24px","border-radius":"4px",border:"1px solid #ccc"},{backgroundColor:e.unref(s)}])},null,4)]),default:e.withCtx(()=>[e.createVNode(P,{modelValue:y.value,"onUpdate:modelValue":d[1]||(d[1]=g=>y.value=g),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=g=>e.isRef(s)?s.value=g:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","class","clearable","rules"])}}}),Pe=e.defineComponent({__name:"df-datetime",props:e.mergeDefaults({inputType:{},displayFormatDate:{},displayFormatTime:{},locale:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{inputType:"datetime",displayFormatDate:"P",displayFormatTime:"p"})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,l=e.computed(()=>{var h;return(h=o.locale)!=null?h:e.unref(ye.dateTimeLocale)}),i=e.computed(()=>{var h,c;return(c=(h=l.value.options)==null?void 0:h.weekStartsOn)!=null?c:1}),{densityClass:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{inputType:y,displayFormatDate:m,displayFormatTime:w}=e.toRefs(o),d=e.ref(""),T=e.computed({get(){return e.unref(d)==="date"},set(h){d.value=h?"date":""}}),P=e.computed({get(){return e.unref(d)==="time"},set(h){d.value=h?"time":""}}),k=h=>`${L.format(h,"yyyy-MM-dd")}T${L.format(h,"HH:mm")}:00`,g=e.ref(null);function I(h,c){if(h==null)g.value=null;else if(c===-1)if(e.unref(y)==="time")g.value=k(new Date),I(`T${h}`,1);else{const x=k(new Date(h));I(x,0),I(x,1)}else{g.value==null&&(g.value=k(new Date));const x=g.value.split(/[TZ]/g),z=h.split(/[TZ]/g);x[c]=z[c],g.value=k(new Date(`${x[0]}T${x[1].split(".")[0]}`)),e.unref(y)==="date"?s.value=x[0]:e.unref(y)==="time"?s.value=x[1]:s.value=e.unref(g)+L.format(new Date,"XXX")}}e.watch(s,h=>I(h,-1),{immediate:!0});const A=e.computed({get(){const h=e.unref(g);if(h==null)return null;const c=new Date(h);return Number.isNaN(c.getTime())?null:c},set(h){I(k(h),0)}}),C=e.computed({get(){const h=e.unref(g);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){I(`T${h}`,1)}}),B=e.computed({get(){const h=e.unref(A);return h==null?"":L.format(h,e.unref(m),{locale:l.value})},set(h){try{const c=L.parse(h,e.unref(m),new Date,{locale:l.value});I(k(c),0)}catch(c){console.error(c)}}}),$=e.computed({get(){const h=e.unref(A);return h==null?"":L.format(h,e.unref(w),{locale:l.value})},set(h){const c=h.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(c==null)return;let x=b.toNumber(c[1]);const z=b.toNumber(c[2]);b.isNaN(x)||b.isNaN(z)||(c[3]&&c[3].toLowerCase()==="pm"&&x<13&&(x+=12),I(`T${x.toString().padStart(2,"0")}:${z.toString().padStart(2,"0")}:00`,1))}});return(h,c)=>{const x=e.resolveComponent("v-date-picker"),z=e.resolveComponent("v-confirm-edit"),J=e.resolveComponent("v-menu"),V=e.resolveComponent("v-text-field"),D=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(o,{class:e.unref(u),clearable:h.clearable,"onClick:clear":c[14]||(c[14]=N=>s.value=null),onBlur:c[15]||(c[15]=N=>p.value=!0)}),{default:e.withCtx(N=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 ml-4 df-input-wrapper",h.density])},[["date","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:B.value,"onUpdate:modelValue":c[4]||(c[4]=j=>B.value=j),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-date`},h.passthroughAttrs,{onClick:c[5]||(c[5]=j=>d.value="date"),onKeydown:c[6]||(c[6]=e.withKeys(j=>d.value="date",["space"])),onFocus:j=>N.focus(),onBlur:j=>N.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:T.value,"onUpdate:modelValue":c[3]||(c[3]=j=>T.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:A.value,"onUpdate:modelValue":c[0]||(c[0]=j=>A.value=j),onCancel:c[1]||(c[1]=j=>d.value=""),onSave:c[2]||(c[2]=j=>d.value="")},{default:e.withCtx(({model:j,actions:H})=>[e.createVNode(x,{modelValue:j.value,"onUpdate:modelValue":_=>j.value=_,"hide-header":!0,"first-day-of-week":i.value,"show-adjacent-months":!0,"show-week":!0},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H)))]),_:2},1032,["modelValue","onUpdate:modelValue","first-day-of-week"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0),["time","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:$.value,"onUpdate:modelValue":c[11]||(c[11]=j=>$.value=j),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-time`},h.passthroughAttrs,{onClick:c[12]||(c[12]=j=>d.value="time"),onKeydown:c[13]||(c[13]=e.withKeys(j=>d.value="time",["space"])),onFocus:j=>N.focus(),onBlur:j=>N.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:P.value,"onUpdate:modelValue":c[10]||(c[10]=j=>P.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:C.value,"onUpdate:modelValue":c[7]||(c[7]=j=>C.value=j),onCancel:c[8]||(c[8]=j=>d.value=""),onSave:c[9]||(c[9]=j=>d.value="")},{default:e.withCtx(({model:j,actions:H})=>[e.createVNode(D,{modelValue:j.value,"onUpdate:modelValue":_=>j.value=_,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H)))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)],2)]),_:1},16,["class","clearable"])}}}),De=e.defineComponent({__name:"df-file",props:e.mergeDefaults({comms:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},U),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,touched:i,value:u,vuetifyBindings:p}=R(o,a),s=e.ref(null),f=e.ref(null),y=e.ref(0),m=e.ref(Math.round(Math.random()*1e3)),w=e.ref(),d=e.computed(()=>f.value&&y.value<100),T=e.computed(()=>!w.value&&u.value?o.modelValue:"");function P(){s.value&&window.clearInterval(s.value)}function k(){P(),s.value=window.setInterval(()=>{u.value&&o.comms.touch(u.value)},60*1e3)}e.onBeforeUnmount(()=>P()),e.watch(u,C=>{C?k():P()});function g(){return ae(this,null,function*(){u.value&&(yield o.comms.delete(u.value)),u.value=null,y.value=0,m.value=Math.round(Math.random()*1e3),f.value=null,w.value=null,P()})}function I(C){return ae(this,null,function*(){y.value=-1,f.value=C;try{u.value=yield o.comms.upload(C,(B,$)=>{y.value=Math.round(B*100/$)}),y.value=100,k()}catch(B){throw y.value=0,f.value=null,m.value=Math.round(Math.random()*1e3),w.value=null,B}})}function A(C){C&&(Array.isArray(C)?console.error("Uploading multiple files not supported right now"):I(C))}return(C,B)=>{const $=e.resolveComponent("v-progress-linear"),h=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(E(S({},o),{loading:d.value}),{class:e.unref(l),clearable:"","onClick:clear":g,onBlur:B[1]||(B[1]=c=>i.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(e.unref(W.CachedIcon),{name:"mdi-paperclip"})]),loader:e.withCtx(()=>[f.value&&y.value<100?(e.openBlock(),e.createBlock($,{key:0,"model-value":y.value,indeterminate:y.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(c=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative df-input-wrapper",C.density])},[e.createVNode(h,e.mergeProps({modelValue:w.value,"onUpdate:modelValue":B[0]||(B[0]=x=>w.value=x),label:T.value,density:"compact",variant:"plain",readonly:e.unref(p).readonly,disabled:e.unref(p).disabled,name:e.unref(p).name,"hide-details":!0,"show-size":!0,multiple:!1,style:f.value&&y.value<100?"visibility: hidden":"",clearable:!1},C.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":A,onFocus:x=>c.focus(),onBlur:x=>c.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])],2)]),_:1},16,["class"])}}}),Ne=e.defineComponent({__name:"df-input",props:e.mergeDefaults({inputType:{},precision:{},step:{},min:{},max:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{inputType:"text",precision:null,step:void 0,min:void 0,max:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{inputType:y,max:m,min:w,precision:d,step:T}=e.toRefs(o),P=e.computed(()=>y.value==="number"),k=e.computed(()=>P.value?{min:e.unref(w),max:e.unref(m),precision:e.unref(d),step:e.unref(T)}:{});return(g,I)=>{const A=e.resolveComponent("v-text-field"),C=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-input-container",e.unref(l)])},[P.value?(e.openBlock(),e.createBlock(C,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":I[2]||(I[2]=B=>e.isRef(s)?s.value=B:null)},S(S({},e.unref(f)),k.value),{density:"compact","control-variant":"stacked"}),{label:e.withCtx(B=>[e.createVNode(e.unref(O),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(F),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue"])):(e.openBlock(),e.createBlock(A,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":I[0]||(I[0]=B=>e.isRef(s)?s.value=B:null)},e.unref(f),{type:e.unref(y),onBlur:I[1]||(I[1]=B=>p.value=!0)}),{label:e.withCtx(B=>[e.createVNode(e.unref(O),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(F),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","type"]))],2)}}}),tn={class:"editor-container"},nn={class:"editor-container__editor"},on={ref:"editorElement"},an=e.defineComponent({__name:"ck-editor-custom",props:{modelValue:{default:""},minHeight:{default:"7em"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:n,emit:o}){e.useCssVars(m=>({"5f8a2e8c":m.minHeight}));const a=o,l=e.ref(!1),i=v.ClassicEditor,u={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},p=[v.AccessibilityHelp,v.Alignment,v.AutoImage,v.AutoLink,v.Autosave,v.BalloonToolbar,v.BlockQuote,v.Bold,v.CloudServices,v.Essentials,v.GeneralHtmlSupport,v.Heading,v.HorizontalLine,v.ImageBlock,v.ImageCaption,v.ImageInline,v.ImageInsertViaUrl,v.ImageResize,v.ImageStyle,v.ImageToolbar,v.ImageUpload,v.Indent,v.IndentBlock,v.Italic,v.Link,v.List,v.Autoformat,v.MediaEmbed,v.Paragraph,v.PasteFromMarkdownExperimental,v.PasteFromOffice,v.SelectAll,v.Style,v.Table,v.TableCellProperties,v.TableColumnResize,v.TableProperties,v.TableToolbar,v.Undo,v.TextTransformation,v.Base64UploadAdapter],f={toolbar:u,plugins:p,balloonToolbar:["bold","italic","|","link","|","bulletedList","numberedList"],heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},htmlSupport:{allow:[{name:/^.*$/,styles:!0,attributes:!0,classes:!0}]},image:{toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","resizeImage"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"https://",decorators:{toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},placeholder:"",style:{definitions:[{name:"Article category",element:"h3",classes:["category"]},{name:"Title",element:"h2",classes:["document-title"]},{name:"Subtitle",element:"h3",classes:["document-subtitle"]},{name:"Info box",element:"p",classes:["info-box"]},{name:"Side quote",element:"blockquote",classes:["side-quote"]},{name:"Marker",element:"span",classes:["marker"]},{name:"Spoiler",element:"span",classes:["spoiler"]},{name:"Code (dark)",element:"pre",classes:["fancy-code","fancy-code-dark"]},{name:"Code (bright)",element:"pre",classes:["fancy-code","fancy-code-bright"]}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]}};e.onMounted(()=>{l.value=!0});const y=m=>{};return n({onEditorReady:y}),(m,w)=>{const d=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",on,[l.value?(e.openBlock(),e.createBlock(d,{key:0,"model-value":m.modelValue,editor:e.unref(i),config:f,disabled:m.disabled,style:e.normalizeStyle(`min-height: ${m.minHeight}`),onReady:y,"onUpdate:modelValue":w[0]||(w[0]=T=>a("update:modelValue",T))},null,8,["model-value","editor","disabled","style"])):e.createCommentVNode("",!0)],512)])])}}}),_e=e.defineComponent({__name:"df-rtf-editor",props:e.mergeDefaults({minHeight:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,value:i,vuetifyBindings:u}=R(o,a);return(p,s)=>(e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(o,{class:["ck-editor-custom",e.unref(l)]}),{default:e.withCtx(f=>[e.createVNode(an,e.mergeProps({ref:"$editor",modelValue:e.unref(i),"onUpdate:modelValue":s[0]||(s[0]=y=>e.isRef(i)?i.value=y:null),class:{"mt-6":!!p.label},"min-height":p.minHeight,disabled:e.unref(u).disabled,placeholder:"dfsjghdf"},p.passthroughAttrs,{onFocusin:y=>f.focus(),onFocusout:y=>f.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16,["class"]))}});function ln(t){return t.map(n=>({value:n.id,title:n.text,icon:n.icon}))}function q(t,n){var o;return t==null||b.isArray(t)&&t.length===0?null:n?b.castArray(t):b.isArray(t)?(o=b.first(t))!=null?o:null:t}function ne(t,n){if(n==null)return[];const o=b.castArray(n);return t.filter(a=>o.some(l=>l===a.id))}function oe(t,n,o,a,l){var u;const i=q(t,o);if(i==null){n.value=o?[]:null;return}if(o)a?n.value=i:n.value=ne(l,i).map(p=>p.id);else if(a)n.value=i;else{const p=b.first(ne(l,i));n.value=(u=p==null?void 0:p.id)!=null?u:null}}const rn={key:0,class:"me-1"},Se=e.defineComponent({__name:"df-select",props:e.mergeDefaults({choices:{},multiple:{type:Boolean},allowTags:{type:Boolean},allowNull:{type:Boolean},fetchChoices:{type:Function},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{choices:void 0,multiple:!1,allowTags:!1,allowNull:!0,fetchChoices:void 0})),emits:["update:modelValueDisplay","update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,{choices:a,multiple:l,allowTags:i,allowNull:u,cssClass:p,visibility:s}=e.toRefs(o),f=n,{densityClass:y,errors:m,label:w,touched:d,value:T,vuetifyBindings:P}=R(o,f),k=e.ref(null),g=e.ref(!1),I=e.ref([]),A=e.computed(()=>e.unref(g)?e.unref(I):e.unref(a)||[]),C=e.ref(!1),B=e.computed(()=>ln(A.value));B.value&&o.fetchChoices!==void 0&&console.warn("Both options and fetchChoices are set. Only one of them should be set.");function $(D){f("update:modelValueDisplay",ne(A.value,D))}let h=!1;function c(D){h=!0,T.value=D,e.nextTick(()=>{h=!1})}e.watch(k,D=>{P.value.readonly||e.nextTick(()=>{const N=q(D,l.value);$(N),c(N)})},{deep:!0}),e.watch(T,D=>{if(!h){const N=q(D,l.value);oe(N,k,l.value,!1,A.value)}},{deep:!0});function x(){if(P.value.readonly||i.value)return;const D=q(k.value,l.value);oe(D,k,l.value,!1,A.value),c(D)}function z(D){let N;l.value&&Array.isArray(k.value)?N=q(k.value.filter(j=>j!==D),l.value):N=null,oe(N,k,l.value,!1,A.value),c(N)}function J(D,N){return ae(this,null,function*(){if(!(a.value||o.fetchChoices===void 0)){C.value=!0;try{const j=ne(A.value,q(k.value,l.value)),H=yield o.fetchChoices(D,N);I.value=b.unionBy([...j,...H],"id"),g.value=!0}finally{C.value=!1}}})}function V(){let D=T.value;!u.value&&D==null&&B.value.length&&(D=B.value[0].value),D=q(D,l.value),oe(D,k,l.value,i.value,A.value),$(D),c(D)}return V(),o.fetchChoices!==void 0&&J(void 0,T.value).then(()=>{V()}),(D,N)=>{const j=e.resolveComponent("v-chip"),H=e.resolveComponent("v-list-item");return e.unref(s)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:k.value,"onUpdate:modelValue":N[0]||(N[0]=_=>k.value=_),class:[e.unref(p),e.unref(y),{"d-none":e.unref(s)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(M.DisplayMode).INVISIBLE}],items:B.value,"return-object":!1},e.unref(P),{label:e.unref(P).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(u)||e.unref(l)&&k.value.length>1,clearable:e.unref(u),multiple:e.unref(l),loading:C.value,"hide-selected":!1,"aria-describedby":e.unref(P).helpText?`${e.unref(P).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":N[1]||(N[1]=_=>J(_,void 0)),"onUpdate:modelValue":x,"onClick:clear":N[2]||(N[2]=_=>k.value=null),onBlur:N[3]||(N[3]=_=>d.value=!0)}),e.createSlots({chip:e.withCtx(({item:_})=>[(e.openBlock(),e.createBlock(j,{key:_.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(l)?"tonal":"text",closable:e.unref(l),"onClick:close":X=>z(_.value)},{prepend:e.withCtx(()=>{var X;return[(X=_.raw)!=null&&X.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,class:"me-1",name:_.raw.icon},null,8,["name"])):e.createCommentVNode("",!0)]}),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"text-body-1":!e.unref(l)})},e.toDisplayString(_.title),3)]),_:2},1032,["variant","closable","onClick:close"]))]),label:e.withCtx(_=>[e.createVNode(e.unref(O),{data:_,label:e.unref(w)},null,8,["data","label"])]),item:e.withCtx(({props:_,item:X})=>[e.createVNode(H,e.normalizeProps(e.guardReactiveProps(_)),{prepend:e.withCtx(()=>{var Me;return[(Me=X.raw)!=null&&Me.icon?(e.openBlock(),e.createElementBlock("span",rn,[e.createVNode(e.unref(W.CachedIcon),{class:"action-icon",name:X.raw.icon},null,8,["name"])])):e.createCommentVNode("",!0)]}),_:2},1040)]),message:e.withCtx(({message:_})=>[e.createVNode(e.unref(F),{message:_,errors:e.unref(m)},null,8,["message","errors"])]),_:2},[D.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(_=>[e.renderSlot(D.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(_)))]),key:"0"}:void 0,D.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(_=>[e.renderSlot(D.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(_)))]),key:"1"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),Ie=e.defineComponent({__name:"df-text-area",props:e.mergeDefaults({rows:{},maxRows:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{cssClass:y,visibility:m}=e.toRefs(o);return(w,d)=>{const T=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-textarea-container",e.unref(l)])},[e.unref(m)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(T,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=P=>e.isRef(s)?s.value=P:null),class:[e.unref(y),{"d-none":e.unref(m)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(m)===e.unref(M.DisplayMode).INVISIBLE}],rows:w.rows,"auto-grow":(w.maxRows||0)>0,"max-rows":w.maxRows},e.unref(f),{onBlur:d[1]||(d[1]=P=>p.value=!0)}),{label:e.withCtx(P=>[e.createVNode(e.unref(O),{data:P,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:P})=>[e.createVNode(e.unref(F),{message:P,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)],2)}}}),xe=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Be,DfCheckbox:je,DfColor:Te,DfDateTime:Pe,DfFile:De,DfInput:Ne,DfRtfEditor:_e,DfSelect:Se,DfTextArea:Ie},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:G.VAutocomplete,VBtn:Le.VBtn,VCheckbox:Re.VCheckbox,VChip:Ue.VChip,VCol:me.VCol,VColorPicker:Oe.VColorPicker,VCombobox:ze.VCombobox,VConfirmEdit:Fe.VConfirmEdit,VDatePicker:We.VDatePicker,VField:qe.VField,VFileInput:He.VFileInput,VIcon:Ke.VIcon,VImg:Xe.VImg,VInput:Ge.VInput,VListItem:Ye.VListItem,VMenu:Qe.VMenu,VNumberInput:Ze.VNumberInput,VProgressLinear:Je.VProgressLinear,VRow:me.VRow,VSelect:Ve.VSelect,VSwitch:et.VSwitch,VTextField:nt.VTextField,VTextarea:tt.VTextarea,VTimePicker:ot.VTimePicker},Symbol.toStringTag,{value:"Module"})),sn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cn={install:(t,n)=>{var o,a;t.use(ht),t.provide(se,n!=null?n:{}),(o=n==null?void 0:n.registerComponents)!=null&&o&&Object.entries(xe).map(([l,i])=>t.component(l,i)),(a=n==null?void 0:n.registerVuetifyComponents)!=null&&a&&Object.entries(Ae).map(([l,i])=>t.component(l,i))}};r.Action=Z,r.DateTimeLocaleConfig=ye,r.DfActions=Be,r.DfCheckbox=je,r.DfColor=Te,r.DfDateTime=Pe,r.DfFile=De,r.DfInput=Ne,r.DfInputComponentProps=sn,r.DfInputComponents=xe,r.DfLabel=O,r.DfRtfEditor=_e,r.DfSelect=Se,r.DfTextArea=Ie,r.DynamicFormsInputs=cn,r.InputBase=te,r.Label=be,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Ce,r.ResponsiveRenderOptions=ge,r.VuetifyComponents=Ae,r.defaultBaseProps=U,r.defaultDisplayStyle=ce,r.getBreakpointName=we,r.responsiveBreakpoints=ue,r.translatableStrings=K,r.translateStrings=Jt,r.useBreakpoint=ke,r.useInputBase=R,r.vuetifyInputsSettingsKey=se,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
43
|
+
*//* istanbul ignore if -- @preserve */if(!fe.version||!fe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const ht={install(t){t.component("Ckeditor",vt)}};function yt(t){return t.one!==void 0}const bt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function gt(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const wt=(t,n,o)=>{let a="",l="present";o!=null&&o.addSuffix&&(o.comparison&&o.comparison>0?(l="future",a="čez "):(l="past",a="pred "));const i=bt[t];if(typeof i=="string")a+=i;else{const u=gt(n);yt(i)?a+=i[u].replace("{{count}}",String(n)):a+=i[l][u].replace("{{count}}",String(n))}return a};function ie(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const kt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Ct={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Bt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jt={date:ie({formats:kt,defaultWidth:"full"}),time:ie({formats:Ct,defaultWidth:"full"}),dateTime:ie({formats:Bt,defaultWidth:"full"})},Tt={lastWeek:t=>{switch(t.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:t=>{switch(t.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Pt=(t,n,o,a)=>{const l=Tt[t];return typeof l=="function"?l(n):l};function Y(t){return(n,o)=>{const a=o!=null&&o.context?String(o.context):"standalone";let l;if(a==="formatting"&&t.formattingValues){const u=t.defaultFormattingWidth||t.defaultWidth,p=o!=null&&o.width?String(o.width):u;l=t.formattingValues[p]||t.formattingValues[u]}else{const u=t.defaultWidth,p=o!=null&&o.width?String(o.width):t.defaultWidth;l=t.values[p]||t.values[u]}const i=t.argumentCallback?t.argumentCallback(n):n;return l[i]}}const Dt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},Nt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},_t={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},St={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},It={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},xt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},At={ordinalNumber:(t,n)=>Number(t)+".",era:Y({values:Dt,defaultWidth:"wide"}),quarter:Y({values:Nt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Y({values:_t,defaultWidth:"wide"}),day:Y({values:St,defaultWidth:"wide"}),dayPeriod:Y({values:It,defaultWidth:"wide",formattingValues:xt,defaultFormattingWidth:"wide"})};function Q(t){return(n,o={})=>{const a=o.width,l=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=n.match(l);if(!i)return null;const u=i[0],p=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(p)?$t(p,m=>m.test(u)):Mt(p,m=>m.test(u));let f;f=t.valueCallback?t.valueCallback(s):s,f=o.valueCallback?o.valueCallback(f):f;const y=n.slice(u.length);return{value:f,rest:y}}}function Mt(t,n){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return o}function $t(t,n){for(let o=0;o<t.length;o++)if(n(t[o]))return o}function Et(t){return(n,o={})=>{const a=n.match(t.matchPattern);if(!a)return null;const l=a[0],i=n.match(t.parsePattern);if(!i)return null;let u=t.valueCallback?t.valueCallback(i[0]):i[0];u=o.valueCallback?o.valueCallback(u):u;const p=n.slice(l.length);return{value:u,rest:p}}}const Lt=/^(\d+)\./i,Rt=/\d+/i,Ut={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},zt={any:[/^pr/i,/^(po|na[sš]em)/i]},Ot={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},Ft={any:[/1/i,/2/i,/3/i,/4/i]},Wt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},qt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ht={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},Kt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},Xt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},Gt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},Yt={ordinalNumber:Et({matchPattern:Lt,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Q({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any"}),quarter:Q({matchPatterns:Ot,defaultMatchWidth:"wide",parsePatterns:Ft,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Q({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Q({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:wt,formatLong:jt,formatRelative:Pt,localize:At,match:Yt,options:{weekStartsOn:1,firstWeekContainsDate:1}},ye={dateTimeLocale:e.ref(Qt),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}},O=e.defineComponent({__name:"df-label",props:{data:{},label:{},allowWrap:{type:Boolean}},setup(t){const n=t,o=e.computed(()=>n.data?n.data.label:n.label.text);return(a,l)=>{const i=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-label",{"allow-wrap":a.allowWrap}])},[a.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:a.label.icon,size:"1.25em"},null,8,["name"])):a.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(i,{key:1,class:"icon",src:a.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.label.iconComponent),{key:2,src:a.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),o.value instanceof e.unref(M.MdString)?(e.openBlock(),e.createBlock(e.unref(ee),{key:1,class:"markdown",source:o.value.toString(),options:o.value.options,plugins:o.value.plugins},null,8,["source","options","plugins"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.value),1)],64))],2)}}}),se=Symbol("vuetifyInputsSettingsKey");class be{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const U={enabled:void 0,clearable:!0};function R(t,n){const o=e.inject(se,{}),a=e.ref(null),l=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?a.value:t.modelValue},set(C){t.control&&(t.control.value=C),t.modelValue===void 0&&(a.value=C),n("update:modelValue",C)}});if(t.control&&!(t.control instanceof M.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.computed({get(){return t.control.touched},set(C){t.control.touched=C}}),u=t.control?i:e.ref(!1),p=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(C=>new M.ValidationErrorRenderContent(C))),f=e.computed(()=>u.value&&s.value.length>0?" ":void 0),y=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),m=e.computed(()=>t.control?t.control.visibility:t.visibility||M.DisplayMode.FULL),w=e.computed(()=>b.isString(t.label||"")?new be(t.label||""):t.label),d=e.computed(()=>t.placeholder||""),T=e.computed(()=>t.helpText||""),P=e.computed(()=>t.hint||""),k=e.computed(()=>t.cssClass||""),g=e.computed(()=>{var C,B,$;return($=(B=(C=t.density)!=null?C:e.inject("field-density",null))!=null?B:o.defaultDensity)!=null?$:"default"}),I=e.computed(()=>g.value==="inline"?"default":g.value),A=e.computed(()=>{var C,B,$;return($=(B=(C=t.variant)!=null?C:e.inject("field-variant",null))!=null?B:o.defaultVariant)!=null?$:"underlined"});return{value:l,valid:p,enabled:y,errors:s,visibility:m,label:w,touched:u,density:g.value,densityClass:e.computed(()=>`df-density-${g.value}`),vuetifyBindings:e.computed(()=>{var C;return S({name:(C=t.control)==null?void 0:C.fieldName,class:k.value,density:I.value,variant:A.value,label:w.value.text,messages:f.value,errorMessages:f.value,readonly:!y.value,disabled:!y.value,placeholder:d.value,"persistent-placeholder":!b.isEmpty(d.value),hint:P.value,persistentHint:!0,hideDetails:"auto",helpText:T.value},t.passthroughAttrs||{})})}}const F=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const n=t,o=()=>{if(n.message!==" ")return e.h("span",{class:n.classes},n.message);const a=[];return n.errors.forEach(l=>{switch(l.componentName){case"template":a.push(e.h("div",{class:n.classes},l.componentBody));break;case"vue-markdown":{const i=l.componentBindings;a.push(e.h(ee,{class:[n.classes,"df-messages-widget-markdown"],source:i.source,options:i.options,plugins:i.plugins}));break}default:a.push(e.h(l.componentName,E(S({class:n.classes},l.componentBindings),{innerHTML:l.componentBody})));break}}),a};return(a,l)=>(e.openBlock(),e.createBlock(o))}}),Zt={class:"d-flex w-100 df-style-resetting"},te=e.defineComponent({__name:"input-base",props:{control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{},loading:{type:Boolean}},emits:["update:modelValue","click:clear","blur"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,value:u,touched:p,visibility:s,vuetifyBindings:f}=R(o,a),y=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(u))),m=e.ref(!1);function w(d){m.value=d,d||(p.value=!0,a("blur"))}return(d,T)=>{const P=e.resolveComponent("v-field"),k=e.resolveComponent("v-input");return e.unref(s)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(k,{key:0,name:e.unref(f).name,density:e.unref(f).density,hint:e.unref(f).hint,"persistent-hint":e.unref(f).persistentHint,"hide-details":e.unref(f).hideDetails,"error-messages":e.unref(f).errorMessages,class:e.normalizeClass([d.cssClass,{"d-none":e.unref(s)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(M.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:g})=>[e.createVNode(F,{message:g,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(P,{variant:e.unref(f).variant,density:e.unref(f).density,label:e.unref(f).label,disabled:e.unref(f).disabled,clearable:y.value,"persistent-clear":!0,dirty:!!e.unref(u),active:m.value,loading:d.loading,"onClick:clear":T[0]||(T[0]=g=>a("click:clear")),"onUpdate:focused":T[1]||(T[1]=g=>w(g))},e.createSlots({label:e.withCtx(g=>[e.createVNode(O,{data:g,label:e.unref(i)},null,8,["data","label"])]),default:e.withCtx(g=>[e.createElementVNode("div",Zt,[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps(g)))])]),loader:e.withCtx(g=>[e.renderSlot(d.$slots,"loader",e.normalizeProps(e.guardReactiveProps(g)))]),_:2},[d.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["variant","density","label","disabled","clearable","dirty","active","loading"])]),_:2},[d.$slots.prepend?{name:"prepend",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["name","density","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),K={Yes:"Yes",No:"No",Close:"Close"};function Jt(t){Object.keys(K).forEach(n=>{K[n]=t(n)})}r.ActionDisplayStyle=(t=>(t[t.BUTTON=0]="BUTTON",t[t.TEXT=1]="TEXT",t))(r.ActionDisplayStyle||{});const ce=0;(t=>{function n(l){return l.toUpperCase()==="BUTTON"?0:l.toUpperCase()==="TEXT"?1:ce}t.fromString=n;function o(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)?i:ce}t.fromAny=o;function a(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)}t.isDefined=a})(r.ActionDisplayStyle||(r.ActionDisplayStyle={})),Object.freeze(r.ActionDisplayStyle);const ue=["xs","sm","md","lg","xl"];class ge{constructor(n){Ee(this,"_value");this._value=this.cleanBreakpoint(n,!0),n&&ue.forEach(o=>{const a=this.cleanBreakpoint(n[o]);a&&(this._value[o]=a)})}getOptionsForBreakpoint(n){const o=this.cleanBreakpoint(this._value),a=Object.keys(o);for(const l of ue){const i=this._value[l];for(const u of a)(i==null?void 0:i[u])!=null&&(o[u]=i[u]);if(l===n)break}return o}}function we(t){return t.xlAndUp.value?"xl":t.lgAndUp.value?"lg":t.mdAndUp.value?"md":t.smAndUp.value?"sm":"xs"}function ke(){const t=le.useDisplay();return e.computed(()=>we(t))}class Ce extends ge{cleanBreakpoint(n,o=!1){if((!n||!b.isObjectLike(n))&&!o)return null;const a={};return o&&(a.renderAs=r.ActionDisplayStyle.BUTTON,a.showLabel=!0,a.showIcon=!0),n&&(n.renderAs!=null&&(a.renderAs=r.ActionDisplayStyle.fromAny(n.renderAs)),b.isString(n.label)&&(a.label=n.label),b.isString(n.icon)&&(a.icon=n.icon),b.isBoolean(n.showLabel)&&(a.showLabel=n.showLabel),b.isBoolean(n.showIcon)&&(a.showIcon=n.showIcon)),Object.keys(a).length?a:null}}class Z extends M.Action{static create(n){return super.create(n)}getBreakpointValue(n){return e.computed(()=>{const a=new Ce(this.value).getOptionsForBreakpoint(n.value);return{name:a.name,label:a.showLabel?a.label:void 0,icon:a.showIcon?a.icon:void 0,renderAs:a.renderAs,showLabel:b.isString(a.label)&&!b.isEmpty(a.label)?a.showLabel:!1,showIcon:b.isString(a.icon)&&!b.isEmpty(a.icon)?a.showIcon:!1}})}get name(){return this.value.name}get label(){return this.value.showLabel?this.value.label:void 0}get showLabel(){return b.isString(this.value.label)&&!b.isEmpty(this.value.label)?this.value.showLabel:!1}get icon(){return this.value.showIcon?this.value.icon:void 0}get showIcon(){return b.isString(this.value.icon)&&!b.isEmpty(this.value.icon)?this.value.showIcon:!1}get renderAs(){return this.value.renderAs}static closeAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"close",label:K.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static yesAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"yes",label:K.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static noAction(n){var a;const o=E(S({},n!=null?n:{}),{value:{name:"no",label:K.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}}const Vt={key:1,style:{width:"0.5rem"}},en={key:2},Be=e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const n=t,o=ke(),a=e.computed(()=>e.unref(n.actions)),l=e.computed(()=>a.value.map(i=>S({action:i},e.unref(i.getBreakpointValue(o)))));return(i,u)=>{const p=e.resolveComponent("v-btn");return a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end df-actions",{"button-group":i.showAsGroup==="grouped"||i.showAsGroup==="grouped-no-borders","with-border":i.showAsGroup==="grouped"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,f)=>(e.openBlock(),e.createBlock(p,{key:f,variant:s.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(y=>s.action.execute(y),["stop"])},{default:e.withCtx(()=>[s.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:s.icon},null,8,["name"])):e.createCommentVNode("",!0),s.icon&&s.label?(e.openBlock(),e.createElementBlock("span",Vt)):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",en,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),je=e.defineComponent({__name:"df-checkbox",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),y=e.computed(()=>o.allowNull&&s.value==null),m=e.computed({get(){return s.value},set(){}});function w(){const d=b.clone(s.value);d===!0?s.value=o.allowNull?null:!1:s.value=d===!1}return(d,T)=>{const P=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(P,e.mergeProps({modelValue:m.value,"onUpdate:modelValue":T[0]||(T[0]=k=>m.value=k)},e.unref(f),{density:"compact",class:e.unref(l),indeterminate:y.value,"false-value":!1,"true-value":!0,onChange:w,onBlur:T[1]||(T[1]=k=>p.value=!0)}),{label:e.withCtx(k=>[e.createVNode(e.unref(O),{"allow-wrap":!0,data:k,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:k})=>[e.createVNode(e.unref(F),{message:k,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","class","indeterminate"])}}}),Te=e.defineComponent({__name:"df-color",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),y=e.ref(!1),m=e.computed(()=>[w=>o.control||!w&&o.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(w)?!0:"Not a valid hex string."]);return(w,d)=>{const T=e.resolveComponent("v-color-picker"),P=e.resolveComponent("v-menu"),k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":d[2]||(d[2]=g=>e.isRef(s)?s.value=g:null)},e.unref(f),{class:e.unref(l),clearable:w.allowNull,type:"text",rules:m.value,onBlur:d[3]||(d[3]=g=>p.value=!0)}),{label:e.withCtx(g=>[e.createVNode(e.unref(O),{data:g,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:g})=>[e.createVNode(e.unref(F),{message:g,errors:e.unref(i)},null,8,["message","errors"])]),"prepend-inner":e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{width:"24px",height:"24px","border-radius":"4px",border:"1px solid #ccc"},{backgroundColor:e.unref(s)}])},null,4)]),default:e.withCtx(()=>[e.createVNode(P,{modelValue:y.value,"onUpdate:modelValue":d[1]||(d[1]=g=>y.value=g),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=g=>e.isRef(s)?s.value=g:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","class","clearable","rules"])}}}),Pe=e.defineComponent({__name:"df-datetime",props:e.mergeDefaults({inputType:{},displayFormatDate:{},displayFormatTime:{},locale:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{inputType:"datetime",displayFormatDate:"P",displayFormatTime:"p"})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,l=e.computed(()=>{var h;return(h=o.locale)!=null?h:e.unref(ye.dateTimeLocale)}),i=e.computed(()=>{var h,c;return(c=(h=l.value.options)==null?void 0:h.weekStartsOn)!=null?c:1}),{densityClass:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{inputType:y,displayFormatDate:m,displayFormatTime:w}=e.toRefs(o),d=e.ref(""),T=e.computed({get(){return e.unref(d)==="date"},set(h){d.value=h?"date":""}}),P=e.computed({get(){return e.unref(d)==="time"},set(h){d.value=h?"time":""}}),k=h=>`${L.format(h,"yyyy-MM-dd")}T${L.format(h,"HH:mm")}:00`,g=e.ref(null);function I(h,c){if(h==null)g.value=null;else if(c===-1)if(e.unref(y)==="time")g.value=k(new Date),I(`T${h}`,1);else{const x=k(new Date(h));I(x,0),I(x,1)}else{g.value==null&&(g.value=k(new Date));const x=g.value.split(/[TZ]/g),z=h.split(/[TZ]/g);x[c]=z[c],g.value=k(new Date(`${x[0]}T${x[1].split(".")[0]}`)),e.unref(y)==="date"?s.value=x[0]:e.unref(y)==="time"?s.value=x[1]:s.value=e.unref(g)+L.format(new Date,"XXX")}}e.watch(s,h=>I(h,-1),{immediate:!0});const A=e.computed({get(){const h=e.unref(g);if(h==null)return null;const c=new Date(h);return Number.isNaN(c.getTime())?null:c},set(h){I(k(h),0)}}),C=e.computed({get(){const h=e.unref(g);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){I(`T${h}`,1)}}),B=e.computed({get(){const h=e.unref(A);return h==null?"":L.format(h,e.unref(m),{locale:l.value})},set(h){try{const c=L.parse(h,e.unref(m),new Date,{locale:l.value});I(k(c),0)}catch(c){console.error(c)}}}),$=e.computed({get(){const h=e.unref(A);return h==null?"":L.format(h,e.unref(w),{locale:l.value})},set(h){const c=h.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(c==null)return;let x=b.toNumber(c[1]);const z=b.toNumber(c[2]);b.isNaN(x)||b.isNaN(z)||(c[3]&&c[3].toLowerCase()==="pm"&&x<13&&(x+=12),I(`T${x.toString().padStart(2,"0")}:${z.toString().padStart(2,"0")}:00`,1))}});return(h,c)=>{const x=e.resolveComponent("v-date-picker"),z=e.resolveComponent("v-confirm-edit"),J=e.resolveComponent("v-menu"),V=e.resolveComponent("v-text-field"),D=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(o,{class:e.unref(u),clearable:h.clearable,"onClick:clear":c[14]||(c[14]=N=>s.value=null),onBlur:c[15]||(c[15]=N=>p.value=!0)}),{default:e.withCtx(N=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 ml-4 df-input-wrapper",h.density])},[["date","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:B.value,"onUpdate:modelValue":c[4]||(c[4]=j=>B.value=j),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-date`},h.passthroughAttrs,{onClick:c[5]||(c[5]=j=>d.value="date"),onKeydown:c[6]||(c[6]=e.withKeys(j=>d.value="date",["space"])),onFocus:j=>N.focus(),onBlur:j=>N.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:T.value,"onUpdate:modelValue":c[3]||(c[3]=j=>T.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:A.value,"onUpdate:modelValue":c[0]||(c[0]=j=>A.value=j),onCancel:c[1]||(c[1]=j=>d.value=""),onSave:c[2]||(c[2]=j=>d.value="")},{default:e.withCtx(({model:j,actions:H})=>[e.createVNode(x,{modelValue:j.value,"onUpdate:modelValue":_=>j.value=_,"hide-header":!0,"first-day-of-week":i.value,"show-adjacent-months":!0,"show-week":!0},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H)))]),_:2},1032,["modelValue","onUpdate:modelValue","first-day-of-week"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0),["time","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:$.value,"onUpdate:modelValue":c[11]||(c[11]=j=>$.value=j),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-time`},h.passthroughAttrs,{onClick:c[12]||(c[12]=j=>d.value="time"),onKeydown:c[13]||(c[13]=e.withKeys(j=>d.value="time",["space"])),onFocus:j=>N.focus(),onBlur:j=>N.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:P.value,"onUpdate:modelValue":c[10]||(c[10]=j=>P.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:C.value,"onUpdate:modelValue":c[7]||(c[7]=j=>C.value=j),onCancel:c[8]||(c[8]=j=>d.value=""),onSave:c[9]||(c[9]=j=>d.value="")},{default:e.withCtx(({model:j,actions:H})=>[e.createVNode(D,{modelValue:j.value,"onUpdate:modelValue":_=>j.value=_,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H)))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)],2)]),_:1},16,["class","clearable"])}}}),De=e.defineComponent({__name:"df-file",props:e.mergeDefaults({comms:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},U),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,touched:i,value:u,vuetifyBindings:p}=R(o,a),s=e.ref(null),f=e.ref(null),y=e.ref(0),m=e.ref(Math.round(Math.random()*1e3)),w=e.ref(),d=e.computed(()=>f.value&&y.value<100),T=e.computed(()=>!w.value&&u.value?o.modelValue:"");function P(){s.value&&window.clearInterval(s.value)}function k(){P(),s.value=window.setInterval(()=>{u.value&&o.comms.touch(u.value)},60*1e3)}e.onBeforeUnmount(()=>P()),e.watch(u,C=>{C?k():P()});function g(){return ae(this,null,function*(){u.value&&(yield o.comms.delete(u.value)),u.value=null,y.value=0,m.value=Math.round(Math.random()*1e3),f.value=null,w.value=null,P()})}function I(C){return ae(this,null,function*(){y.value=-1,f.value=C;try{u.value=yield o.comms.upload(C,(B,$)=>{y.value=Math.round(B*100/$)}),y.value=100,k()}catch(B){throw y.value=0,f.value=null,m.value=Math.round(Math.random()*1e3),w.value=null,B}})}function A(C){C&&(Array.isArray(C)?console.error("Uploading multiple files not supported right now"):I(C))}return(C,B)=>{const $=e.resolveComponent("v-progress-linear"),h=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(E(S({},o),{loading:d.value}),{class:e.unref(l),clearable:"","onClick:clear":g,onBlur:B[1]||(B[1]=c=>i.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(e.unref(W.CachedIcon),{name:"mdi-paperclip"})]),loader:e.withCtx(()=>[f.value&&y.value<100?(e.openBlock(),e.createBlock($,{key:0,"model-value":y.value,indeterminate:y.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(c=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative df-input-wrapper",C.density])},[e.createVNode(h,e.mergeProps({modelValue:w.value,"onUpdate:modelValue":B[0]||(B[0]=x=>w.value=x),label:T.value,density:"compact",variant:"plain",readonly:e.unref(p).readonly,disabled:e.unref(p).disabled,name:e.unref(p).name,"hide-details":!0,"show-size":!0,multiple:!1,style:f.value&&y.value<100?"visibility: hidden":"",clearable:!1},C.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":A,onFocus:x=>c.focus(),onBlur:x=>c.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])],2)]),_:1},16,["class"])}}}),Ne=e.defineComponent({__name:"df-input",props:e.mergeDefaults({inputType:{},precision:{},step:{},min:{},max:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{inputType:"text",precision:null,step:void 0,min:void 0,max:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{inputType:y,max:m,min:w,precision:d,step:T}=e.toRefs(o),P=e.computed(()=>y.value==="number"),k=e.computed(()=>P.value?{min:e.unref(w),max:e.unref(m),precision:e.unref(d),step:e.unref(T)}:{});return(g,I)=>{const A=e.resolveComponent("v-text-field"),C=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-input-container",e.unref(l)])},[P.value?(e.openBlock(),e.createBlock(C,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":I[2]||(I[2]=B=>e.isRef(s)?s.value=B:null)},S(S({},e.unref(f)),k.value),{density:"compact","control-variant":"stacked"}),{label:e.withCtx(B=>[e.createVNode(e.unref(O),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(F),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue"])):(e.openBlock(),e.createBlock(A,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":I[0]||(I[0]=B=>e.isRef(s)?s.value=B:null)},e.unref(f),{type:e.unref(y),onBlur:I[1]||(I[1]=B=>p.value=!0)}),{label:e.withCtx(B=>[e.createVNode(e.unref(O),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(F),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","type"]))],2)}}}),tn={class:"editor-container"},nn={class:"editor-container__editor"},on={ref:"editorElement"},an=e.defineComponent({__name:"ck-editor-custom",props:{modelValue:{default:""},minHeight:{default:"7em"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:n,emit:o}){e.useCssVars(m=>({"5f8a2e8c":m.minHeight}));const a=o,l=e.ref(!1),i=v.ClassicEditor,u={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},p=[v.AccessibilityHelp,v.Alignment,v.AutoImage,v.AutoLink,v.Autosave,v.BalloonToolbar,v.BlockQuote,v.Bold,v.CloudServices,v.Essentials,v.GeneralHtmlSupport,v.Heading,v.HorizontalLine,v.ImageBlock,v.ImageCaption,v.ImageInline,v.ImageInsertViaUrl,v.ImageResize,v.ImageStyle,v.ImageToolbar,v.ImageUpload,v.Indent,v.IndentBlock,v.Italic,v.Link,v.List,v.Autoformat,v.MediaEmbed,v.Paragraph,v.PasteFromMarkdownExperimental,v.PasteFromOffice,v.SelectAll,v.Style,v.Table,v.TableCellProperties,v.TableColumnResize,v.TableProperties,v.TableToolbar,v.Undo,v.TextTransformation,v.Base64UploadAdapter],f={toolbar:u,plugins:p,balloonToolbar:["bold","italic","|","link","|","bulletedList","numberedList"],heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},htmlSupport:{allow:[{name:/^.*$/,styles:!0,attributes:!0,classes:!0}]},image:{toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","resizeImage"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"https://",decorators:{toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},placeholder:"",style:{definitions:[{name:"Article category",element:"h3",classes:["category"]},{name:"Title",element:"h2",classes:["document-title"]},{name:"Subtitle",element:"h3",classes:["document-subtitle"]},{name:"Info box",element:"p",classes:["info-box"]},{name:"Side quote",element:"blockquote",classes:["side-quote"]},{name:"Marker",element:"span",classes:["marker"]},{name:"Spoiler",element:"span",classes:["spoiler"]},{name:"Code (dark)",element:"pre",classes:["fancy-code","fancy-code-dark"]},{name:"Code (bright)",element:"pre",classes:["fancy-code","fancy-code-bright"]}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]}};e.onMounted(()=>{l.value=!0});const y=m=>{};return n({onEditorReady:y}),(m,w)=>{const d=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",on,[l.value?(e.openBlock(),e.createBlock(d,{key:0,"model-value":m.modelValue,editor:e.unref(i),config:f,disabled:m.disabled,style:e.normalizeStyle(`min-height: ${m.minHeight}`),onReady:y,"onUpdate:modelValue":w[0]||(w[0]=T=>a("update:modelValue",T))},null,8,["model-value","editor","disabled","style"])):e.createCommentVNode("",!0)],512)])])}}}),_e=e.defineComponent({__name:"df-rtf-editor",props:e.mergeDefaults({minHeight:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,value:i,vuetifyBindings:u}=R(o,a);return(p,s)=>(e.openBlock(),e.createBlock(e.unref(te),e.mergeProps(o,{class:["ck-editor-custom",e.unref(l)]}),{default:e.withCtx(f=>[e.createVNode(an,e.mergeProps({ref:"$editor",modelValue:e.unref(i),"onUpdate:modelValue":s[0]||(s[0]=y=>e.isRef(i)?i.value=y:null),class:{"mt-6":!!p.label},"min-height":p.minHeight,disabled:e.unref(u).disabled,placeholder:"dfsjghdf"},p.passthroughAttrs,{onFocusin:y=>f.focus(),onFocusout:y=>f.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16,["class"]))}});function ln(t){return t.map(n=>({value:n.id,title:n.text,icon:n.icon}))}function q(t,n){var o;return t==null||b.isArray(t)&&t.length===0?null:n?b.castArray(t):b.isArray(t)?(o=b.first(t))!=null?o:null:t}function ne(t,n){if(n==null)return[];const o=b.castArray(n);return t.filter(a=>o.some(l=>l===a.id))}function oe(t,n,o,a,l){var u;const i=q(t,o);if(i==null){n.value=o?[]:null;return}if(o)a?n.value=i:n.value=ne(l,i).map(p=>p.id);else if(a)n.value=i;else{const p=b.first(ne(l,i));n.value=(u=p==null?void 0:p.id)!=null?u:null}}const rn={key:0,class:"me-1"},Se=e.defineComponent({__name:"df-select",props:e.mergeDefaults({choices:{},multiple:{type:Boolean},allowTags:{type:Boolean},allowNull:{type:Boolean},fetchChoices:{type:Function},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{choices:void 0,multiple:!1,allowTags:!1,allowNull:!0,fetchChoices:void 0})),emits:["update:modelValueDisplay","update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,{choices:a,multiple:l,allowTags:i,allowNull:u,cssClass:p,visibility:s}=e.toRefs(o),f=n,{densityClass:y,errors:m,label:w,touched:d,value:T,vuetifyBindings:P}=R(o,f),k=e.ref(null),g=e.ref(!1),I=e.ref([]),A=e.computed(()=>e.unref(g)?e.unref(I):e.unref(a)||[]),C=e.ref(!1),B=e.computed(()=>ln(A.value));B.value&&o.fetchChoices!==void 0&&console.warn("Both options and fetchChoices are set. Only one of them should be set.");function $(D){f("update:modelValueDisplay",ne(A.value,D))}let h=!1;function c(D){h=!0,T.value=D,e.nextTick(()=>{h=!1})}e.watch(k,D=>{P.value.readonly||e.nextTick(()=>{const N=q(D,l.value);$(N),c(N)})},{deep:!0}),e.watch(T,D=>{if(!h){const N=q(D,l.value);oe(N,k,l.value,!1,A.value)}},{deep:!0});function x(){if(P.value.readonly||i.value)return;const D=q(k.value,l.value);oe(D,k,l.value,!1,A.value),c(D)}function z(D){let N;l.value&&Array.isArray(k.value)?N=q(k.value.filter(j=>j!==D),l.value):N=null,oe(N,k,l.value,!1,A.value),c(N)}function J(D,N){return ae(this,null,function*(){if(!(a.value||o.fetchChoices===void 0)){C.value=!0;try{const j=ne(A.value,q(k.value,l.value)),H=yield o.fetchChoices(D,N);I.value=b.unionBy([...j,...H],"id"),g.value=!0}finally{C.value=!1}}})}function V(){let D=T.value;!u.value&&D==null&&B.value.length&&(D=B.value[0].value),D=q(D,l.value),oe(D,k,l.value,i.value,A.value),$(D),c(D)}return V(),o.fetchChoices!==void 0&&J(void 0,T.value).then(()=>{V()}),(D,N)=>{const j=e.resolveComponent("v-chip"),H=e.resolveComponent("v-list-item");return e.unref(s)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:k.value,"onUpdate:modelValue":N[0]||(N[0]=_=>k.value=_),class:[e.unref(p),e.unref(y),{"d-none":e.unref(s)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(M.DisplayMode).INVISIBLE}],items:B.value,"return-object":!1},e.unref(P),{label:e.unref(P).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(u)||e.unref(l)&&k.value.length>1,clearable:e.unref(u),multiple:e.unref(l),loading:C.value,"hide-selected":!1,"aria-describedby":e.unref(P).helpText?`${e.unref(P).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":N[1]||(N[1]=_=>J(_,void 0)),"onUpdate:modelValue":x,"onClick:clear":N[2]||(N[2]=_=>k.value=null),onBlur:N[3]||(N[3]=_=>d.value=!0)}),e.createSlots({chip:e.withCtx(({item:_})=>[(e.openBlock(),e.createBlock(j,{key:_.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(l)?"tonal":"text",closable:e.unref(l),"onClick:close":X=>z(_.value)},{prepend:e.withCtx(()=>{var X;return[(X=_.raw)!=null&&X.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,class:"me-1",name:_.raw.icon},null,8,["name"])):e.createCommentVNode("",!0)]}),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"text-body-1":!e.unref(l)})},e.toDisplayString(_.title),3)]),_:2},1032,["variant","closable","onClick:close"]))]),label:e.withCtx(_=>[e.createVNode(e.unref(O),{data:_,label:e.unref(w)},null,8,["data","label"])]),item:e.withCtx(({props:_,item:X})=>[e.createVNode(H,e.normalizeProps(e.guardReactiveProps(_)),{prepend:e.withCtx(()=>{var Me;return[(Me=X.raw)!=null&&Me.icon?(e.openBlock(),e.createElementBlock("span",rn,[e.createVNode(e.unref(W.CachedIcon),{class:"action-icon",name:X.raw.icon},null,8,["name"])])):e.createCommentVNode("",!0)]}),_:2},1040)]),message:e.withCtx(({message:_})=>[e.createVNode(e.unref(F),{message:_,errors:e.unref(m)},null,8,["message","errors"])]),_:2},[D.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(_=>[e.renderSlot(D.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(_)))]),key:"0"}:void 0,D.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(_=>[e.renderSlot(D.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(_)))]),key:"1"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),Ie=e.defineComponent({__name:"df-text-area",props:e.mergeDefaults({rows:{},maxRows:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},E(S({},U),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=R(o,a),{cssClass:y,visibility:m}=e.toRefs(o);return(w,d)=>{const T=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-textarea-container",e.unref(l)])},[e.unref(m)!==e.unref(M.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(T,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=P=>e.isRef(s)?s.value=P:null),class:[e.unref(y),{"d-none":e.unref(m)===e.unref(M.DisplayMode).HIDDEN,invisible:e.unref(m)===e.unref(M.DisplayMode).INVISIBLE}],rows:w.rows,"auto-grow":(w.maxRows||0)>0,"max-rows":w.maxRows},e.unref(f),{onBlur:d[1]||(d[1]=P=>p.value=!0)}),{label:e.withCtx(P=>[e.createVNode(e.unref(O),{data:P,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:P})=>[e.createVNode(e.unref(F),{message:P,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)],2)}}}),xe=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Be,DfCheckbox:je,DfColor:Te,DfDateTime:Pe,DfFile:De,DfInput:Ne,DfRtfEditor:_e,DfSelect:Se,DfTextArea:Ie},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:G.VAutocomplete,VBtn:Le.VBtn,VCheckbox:Re.VCheckbox,VChip:Ue.VChip,VCol:me.VCol,VColorPicker:Oe.VColorPicker,VCombobox:ze.VCombobox,VConfirmEdit:Fe.VConfirmEdit,VDatePicker:We.VDatePicker,VField:qe.VField,VFileInput:He.VFileInput,VIcon:Ke.VIcon,VImg:Xe.VImg,VInput:Ge.VInput,VListItem:Ye.VListItem,VMenu:Qe.VMenu,VNumberInput:Ze.VNumberInput,VProgressLinear:Je.VProgressLinear,VRow:me.VRow,VSelect:Ve.VSelect,VSwitch:et.VSwitch,VTextField:nt.VTextField,VTextarea:tt.VTextarea,VTimePicker:ot.VTimePicker},Symbol.toStringTag,{value:"Module"})),sn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cn={install:(t,n)=>{var o,a;t.use(ht),t.provide(se,n!=null?n:{}),(o=n==null?void 0:n.registerComponents)!=null&&o&&Object.entries(xe).map(([l,i])=>t.component(l,i)),(a=n==null?void 0:n.registerVuetifyComponents)!=null&&a&&Object.entries(Ae).map(([l,i])=>t.component(l,i))}};r.Action=Z,r.DateTimeLocaleConfig=ye,r.DfActions=Be,r.DfCheckbox=je,r.DfColor=Te,r.DfDateTime=Pe,r.DfFile=De,r.DfInput=Ne,r.DfInputComponentProps=sn,r.DfInputComponents=xe,r.DfLabel=O,r.DfRtfEditor=_e,r.DfSelect=Se,r.DfTextArea=Ie,r.DynamicFormsInputs=cn,r.InputBase=te,r.Label=be,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Ce,r.ResponsiveRenderOptions=ge,r.VuetifyComponents=Ae,r.defaultBaseProps=U,r.defaultDisplayStyle=ce,r.getBreakpointName=we,r.responsiveBreakpoints=ue,r.translatableStrings=K,r.translateStrings=Jt,r.useBreakpoint=ke,r.useInputBase=R,r.vuetifyInputsSettingsKey=se,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
44
44
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.umd.cjs.map
|