@dynamicforms/vuetify-inputs 0.6.3 → 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.
@@ -1,45 +1,44 @@
1
- (function(p,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),require("vue-cached-icon"),require("@dynamicforms/vue-forms"),require("vue-markdown-render"),require("vuetify"),require("date-fns"),require("ckeditor5"),require("vuetify/components/VAutocomplete"),require("vuetify/components/VBtn"),require("vuetify/components/VCheckbox"),require("vuetify/components/VChip"),require("vuetify/components/VCombobox"),require("vuetify/components/VColorPicker"),require("vuetify/components/VConfirmEdit"),require("vuetify/components/VDatePicker"),require("vuetify/components/VField"),require("vuetify/components/VFileInput"),require("vuetify/components/VGrid"),require("vuetify/components/VIcon"),require("vuetify/components/VImg"),require("vuetify/components/VInput"),require("vuetify/components/VList"),require("vuetify/components/VMenu"),require("vuetify/components/VNumberInput"),require("vuetify/components/VProgressLinear"),require("vuetify/components/VSelect"),require("vuetify/components/VSwitch"),require("vuetify/components/VTextarea"),require("vuetify/components/VTextField"),require("vuetify/components/VTimePicker")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-cached-icon","@dynamicforms/vue-forms","vue-markdown-render","vuetify","date-fns","ckeditor5","vuetify/components/VAutocomplete","vuetify/components/VBtn","vuetify/components/VCheckbox","vuetify/components/VChip","vuetify/components/VCombobox","vuetify/components/VColorPicker","vuetify/components/VConfirmEdit","vuetify/components/VDatePicker","vuetify/components/VField","vuetify/components/VFileInput","vuetify/components/VGrid","vuetify/components/VIcon","vuetify/components/VImg","vuetify/components/VInput","vuetify/components/VList","vuetify/components/VMenu","vuetify/components/VNumberInput","vuetify/components/VProgressLinear","vuetify/components/VSelect","vuetify/components/VSwitch","vuetify/components/VTextarea","vuetify/components/VTextField","vuetify/components/VTimePicker"],e):(p=typeof globalThis!="undefined"?globalThis:p||self,e((p["dynamicforms-vuetify-inputs"]=p["dynamicforms-vuetify-inputs"]||{},p["dynamicforms-vuetify-inputs"]["[name]"]={}),p.vue,p["lodash-es"],p["vue-cached-icon"],p["@dynamicforms/vue-forms"],p["vue-markdown-render"],p.vuetify,p["date-fns"],p.ckeditor5,p["vuetify/components/VAutocomplete"],p["vuetify/components/VBtn"],p["vuetify/components/VCheckbox"],p["vuetify/components/VChip"],p["vuetify/components/VCombobox"],p["vuetify/components/VColorPicker"],p["vuetify/components/VConfirmEdit"],p["vuetify/components/VDatePicker"],p["vuetify/components/VField"],p["vuetify/components/VFileInput"],p["vuetify/components/VGrid"],p["vuetify/components/VIcon"],p["vuetify/components/VImg"],p["vuetify/components/VInput"],p["vuetify/components/VList"],p["vuetify/components/VMenu"],p["vuetify/components/VNumberInput"],p["vuetify/components/VProgressLinear"],p["vuetify/components/VSelect"],p["vuetify/components/VSwitch"],p["vuetify/components/VTextarea"],p["vuetify/components/VTextField"],p["vuetify/components/VTimePicker"]))})(this,(function(p,e,D,W,O,te,ae,R,C,Y,qe,We,He,Ke,Xe,Ge,Ye,Qe,Ze,ve,Je,Ve,et,tt,nt,ot,lt,rt,at,it,st,ct){"use strict";var Cn=Object.defineProperty,Bn=Object.defineProperties;var Dn=Object.getOwnPropertyDescriptors;var ze=Object.getOwnPropertySymbols;var _n=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable;var pe=(p,e,D)=>e in p?Cn(p,e,{enumerable:!0,configurable:!0,writable:!0,value:D}):p[e]=D,x=(p,e)=>{for(var D in e||(e={}))_n.call(e,D)&&pe(p,D,e[D]);if(ze)for(var D of ze(e))jn.call(e,D)&&pe(p,D,e[D]);return p},M=(p,e)=>Bn(p,Dn(e));var Fe=(p,e,D)=>pe(p,typeof e!="symbol"?e+"":e,D);var re=(p,e,D)=>new Promise((W,O)=>{var te=C=>{try{R(D.next(C))}catch(Y){O(Y)}},ae=C=>{try{R(D.throw(C))}catch(Y){O(Y)}},R=C=>C.done?W(C.value):Promise.resolve(C.value).then(te,ae);R((D=D.apply(p,e)).next())});function ut(t){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(l,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return l.default=t,Object.freeze(l)}const he=ut(e);/**
1
+ (function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),require("vue-cached-icon"),require("@dynamicforms/vue-forms"),require("vue-markdown-render"),require("vuetify"),require("date-fns"),require("ckeditor5"),require("vuetify/components/VAutocomplete"),require("vuetify/components/VBtn"),require("vuetify/components/VCheckbox"),require("vuetify/components/VChip"),require("vuetify/components/VCombobox"),require("vuetify/components/VColorPicker"),require("vuetify/components/VConfirmEdit"),require("vuetify/components/VDatePicker"),require("vuetify/components/VField"),require("vuetify/components/VFileInput"),require("vuetify/components/VGrid"),require("vuetify/components/VIcon"),require("vuetify/components/VImg"),require("vuetify/components/VInput"),require("vuetify/components/VList"),require("vuetify/components/VMenu"),require("vuetify/components/VNumberInput"),require("vuetify/components/VProgressLinear"),require("vuetify/components/VSelect"),require("vuetify/components/VSwitch"),require("vuetify/components/VTextarea"),require("vuetify/components/VTextField"),require("vuetify/components/VTimePicker")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-cached-icon","@dynamicforms/vue-forms","vue-markdown-render","vuetify","date-fns","ckeditor5","vuetify/components/VAutocomplete","vuetify/components/VBtn","vuetify/components/VCheckbox","vuetify/components/VChip","vuetify/components/VCombobox","vuetify/components/VColorPicker","vuetify/components/VConfirmEdit","vuetify/components/VDatePicker","vuetify/components/VField","vuetify/components/VFileInput","vuetify/components/VGrid","vuetify/components/VIcon","vuetify/components/VImg","vuetify/components/VInput","vuetify/components/VList","vuetify/components/VMenu","vuetify/components/VNumberInput","vuetify/components/VProgressLinear","vuetify/components/VSelect","vuetify/components/VSwitch","vuetify/components/VTextarea","vuetify/components/VTextField","vuetify/components/VTimePicker"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e((r["dynamicforms-vuetify-inputs"]=r["dynamicforms-vuetify-inputs"]||{},r["dynamicforms-vuetify-inputs"]["[name]"]={}),r.vue,r["lodash-es"],r["vue-cached-icon"],r["@dynamicforms/vue-forms"],r["vue-markdown-render"],r.vuetify,r["date-fns"],r.ckeditor5,r["vuetify/components/VAutocomplete"],r["vuetify/components/VBtn"],r["vuetify/components/VCheckbox"],r["vuetify/components/VChip"],r["vuetify/components/VCombobox"],r["vuetify/components/VColorPicker"],r["vuetify/components/VConfirmEdit"],r["vuetify/components/VDatePicker"],r["vuetify/components/VField"],r["vuetify/components/VFileInput"],r["vuetify/components/VGrid"],r["vuetify/components/VIcon"],r["vuetify/components/VImg"],r["vuetify/components/VInput"],r["vuetify/components/VList"],r["vuetify/components/VMenu"],r["vuetify/components/VNumberInput"],r["vuetify/components/VProgressLinear"],r["vuetify/components/VSelect"],r["vuetify/components/VSwitch"],r["vuetify/components/VTextarea"],r["vuetify/components/VTextField"],r["vuetify/components/VTimePicker"]))})(this,(function(r,e,b,W,M,ee,le,L,v,G,Le,Re,Ue,ze,Oe,Fe,We,qe,He,me,Ke,Xe,Ge,Ye,Qe,Ze,Je,Ve,et,tt,nt,ot){"use strict";var un=Object.defineProperty,dn=Object.defineProperties;var mn=Object.getOwnPropertyDescriptors;var $e=Object.getOwnPropertySymbols;var fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable;var de=(r,e,b)=>e in r?un(r,e,{enumerable:!0,configurable:!0,writable:!0,value:b}):r[e]=b,S=(r,e)=>{for(var b in e||(e={}))fn.call(e,b)&&de(r,b,e[b]);if($e)for(var b of $e(e))pn.call(e,b)&&de(r,b,e[b]);return r},E=(r,e)=>dn(r,mn(e));var Ee=(r,e,b)=>de(r,typeof e!="symbol"?e+"":e,b);var ae=(r,e,b)=>new Promise((W,M)=>{var ee=v=>{try{L(b.next(v))}catch(G){M(G)}},le=v=>{try{L(b.throw(v))}catch(G){M(G)}},L=v=>v.done?W(v.value):Promise.resolve(v.value).then(ee,le);L((b=b.apply(r,e)).next())});function at(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const fe=at(e);/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  *//**
5
5
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
6
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
- */new Array(256).fill("").map((t,l)=>("0"+l.toString(16)).slice(-2));/**
7
+ */new Array(256).fill("").map((t,n)=>("0"+n.toString(16)).slice(-2));/**
8
8
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
9
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
- */function dt(t,l){const a=t.extraPlugins||[];return M(x({},t),{extraPlugins:[...a,...l.filter(o=>!a.includes(o))]})}/**
10
+ */function lt(t,n){const o=t.extraPlugins||[];return E(S({},t),{extraPlugins:[...o,...n.filter(a=>!o.includes(a))]})}/**
11
11
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12
12
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13
- */function ye(t){return!!t&&/^\d+\.\d+\.\d+/.test(t)}/**
13
+ */function pe(t){return!!t&&/^\d+\.\d+\.\d+/.test(t)}/**
14
14
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
15
15
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
16
- */function ge(t){return t?["nightly","alpha","internal","nightly-","staging"].some(l=>t.includes(l)):!1}function mt(t){return ye(t)||ge(t)}/**
16
+ */function ve(t){return t?["nightly","alpha","internal","nightly-","staging"].some(n=>t.includes(n)):!1}function rt(t){return pe(t)||ve(t)}/**
17
17
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
18
18
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
19
- */function ft(t){if(!ye(t))throw new Error(`Invalid semantic version: ${t||"<blank>"}.`);const[l,a,o]=t.split(".");return{major:Number.parseInt(l,10),minor:Number.parseInt(a,10),patch:Number.parseInt(o,10)}}/**
19
+ */function it(t){if(!pe(t))throw new Error(`Invalid semantic version: ${t||"<blank>"}.`);const[n,o,a]=t.split(".");return{major:Number.parseInt(n,10),minor:Number.parseInt(o,10),patch:Number.parseInt(a,10)}}/**
20
20
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21
21
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
- */function pt(t){if(ge(t))return 3;const{major:l}=ft(t);switch(!0){case l>=44:return 3;case l>=38:return 2;default:return 1}}/**
22
+ */function st(t){if(ve(t))return 3;const{major:n}=it(t);switch(!0){case n>=44:return 3;case n>=38:return 2;default:return 1}}/**
23
23
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
24
24
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
25
- */function vt(){const{CKEDITOR_VERSION:t,CKEDITOR:l}=window;return mt(t)?{source:l?"cdn":"npm",version:t}:null}/**
25
+ */function ct(){const{CKEDITOR_VERSION:t,CKEDITOR:n}=window;return rt(t)?{source:n?"cdn":"npm",version:t}:null}/**
26
26
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
27
27
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
28
- */function ht(){const t=vt();return t?pt(t.version):null}/**
28
+ */function ut(){const t=ct();return t?st(t.version):null}/**
29
29
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
30
30
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
31
- */function be(t,l){switch(l||(l=ht()||void 0),l){case 1:case 2:return t===void 0;case 3:return t==="GPL";default:return!1}}/**
31
+ */function he(t,n){switch(n||(n=ut()||void 0),n){case 1:case 2:return t===void 0;case 3:return t==="GPL";default:return!1}}/**
32
32
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
33
33
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
34
- */function yt(t,l){return function(o){be(o.config.get("licenseKey"))||o.on("collectUsageData",(m,{setUsageData:n})=>{n(`integration.${t}`,l)})}}/**
34
+ */function dt(t,n){return function(a){he(a.config.get("licenseKey"))||a.on("collectUsageData",(l,{setUsageData:i})=>{i(`integration.${t}`,n)})}}/**
35
35
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
36
36
  * For licensing, see LICENSE.md.
37
- */const gt=yt("vue",{version:"7.3.0",frameworkVersion:e.version});/**
37
+ */const mt=dt("vue",{version:"7.3.0",frameworkVersion:e.version});/**
38
38
  * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
39
39
  * For licensing, see LICENSE.md.
40
- */function bt(t){return be(t.licenseKey)?t:dt(t,[gt])}const ie="Lock from Vue integration (@ckeditor/ckeditor5-vue)",wt=300,kt=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:l,emit:a}){const o=e.useModel(t,"modelValue"),m=t,n=a,r=e.ref(),i=e.ref(),s=e.ref();l({instance:i,lastEditorData:s}),e.watch(o,d=>{i.value&&d!==s.value&&i.value.data.set(d)}),e.watch(()=>m.disabled,d=>{d?i.value.enableReadOnlyMode(ie):i.value.disableReadOnlyMode(ie)});function u(){const d=window.CKEDITOR_VERSION;if(!d)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[b]=d.split(".").map(Number);b>=42||d.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function c(d){const b=D.debounce(f=>{if(m.disableTwoWayDataBinding)return;const g=s.value=d.data.get();n("update:modelValue",g,f,d),n("input",g,f,d)},wt,{leading:!0});d.model.document.on("change:data",b),d.editing.view.document.on("focus",f=>{n("focus",f,d)}),d.editing.view.document.on("blur",f=>{n("blur",f,d)})}return u(),e.onMounted(()=>{const d=bt(Object.assign({},m.config));o.value&&(d.initialData=o.value),m.editor.create(r.value,d).then(b=>{i.value=e.markRaw(b),c(b),o.value!==d.initialData&&b.data.set(o.value),m.disabled&&b.enableReadOnlyMode(ie),n("ready",b)}).catch(b=>{console.error(b)})}),e.onBeforeUnmount(()=>{i.value&&(i.value.destroy(),i.value=void 0),n("destroy")}),(d,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.tagName),{ref_key:"element",ref:r},null,512))}});/**
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(!he.version||!he.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 Ct={install(t){t.component("Ckeditor",kt)}};function Bt(t){return t.one!==void 0}const Dt={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 _t(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const jt=(t,l,a)=>{let o="",m="present";a!=null&&a.addSuffix&&(a.comparison&&a.comparison>0?(m="future",o="čez "):(m="past",o="pred "));const n=Dt[t];if(typeof n=="string")o+=n;else{const r=_t(l);Bt(n)?o+=n[r].replace("{{count}}",String(l)):o+=n[m][r].replace("{{count}}",String(l))}return o};function se(t){return(l={})=>{const a=l.width?String(l.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}const Tt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Pt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},At={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},St={date:se({formats:Tt,defaultWidth:"full"}),time:se({formats:Pt,defaultWidth:"full"}),dateTime:se({formats:At,defaultWidth:"full"})},It={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"},xt=(t,l,a,o)=>{const m=It[t];return typeof m=="function"?m(l):m};function Q(t){return(l,a)=>{const o=a!=null&&a.context?String(a.context):"standalone";let m;if(o==="formatting"&&t.formattingValues){const r=t.defaultFormattingWidth||t.defaultWidth,i=a!=null&&a.width?String(a.width):r;m=t.formattingValues[i]||t.formattingValues[r]}else{const r=t.defaultWidth,i=a!=null&&a.width?String(a.width):t.defaultWidth;m=t.values[i]||t.values[r]}const n=t.argumentCallback?t.argumentCallback(l):l;return m[n]}}const Nt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},Et={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},Ot={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"]},Mt={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"]},Rt={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č"}},$t={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"}},Lt={ordinalNumber:(t,l)=>Number(t)+".",era:Q({values:Nt,defaultWidth:"wide"}),quarter:Q({values:Et,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Q({values:Ot,defaultWidth:"wide"}),day:Q({values:Mt,defaultWidth:"wide"}),dayPeriod:Q({values:Rt,defaultWidth:"wide",formattingValues:$t,defaultFormattingWidth:"wide"})};function Z(t){return(l,a={})=>{const o=a.width,m=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],n=l.match(m);if(!n)return null;const r=n[0],i=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(i)?zt(i,d=>d.test(r)):Ut(i,d=>d.test(r));let u;u=t.valueCallback?t.valueCallback(s):s,u=a.valueCallback?a.valueCallback(u):u;const c=l.slice(r.length);return{value:u,rest:c}}}function Ut(t,l){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&l(t[a]))return a}function zt(t,l){for(let a=0;a<t.length;a++)if(l(t[a]))return a}function Ft(t){return(l,a={})=>{const o=l.match(t.matchPattern);if(!o)return null;const m=o[0],n=l.match(t.parsePattern);if(!n)return null;let r=t.valueCallback?t.valueCallback(n[0]):n[0];r=a.valueCallback?a.valueCallback(r):r;const i=l.slice(m.length);return{value:r,rest:i}}}const qt=/^(\d+)\./i,Wt=/\d+/i,Ht={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},Kt={any:[/^pr/i,/^(po|na[sš]em)/i]},Xt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},Gt={any:[/1/i,/2/i,/3/i,/4/i]},Yt={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]},Zt={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},Jt={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]},Vt={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},en={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}},tn={ordinalNumber:Ft({matchPattern:qt,parsePattern:Wt,valueCallback:t=>parseInt(t,10)}),era:Z({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),quarter:Z({matchPatterns:Xt,defaultMatchWidth:"wide",parsePatterns:Gt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Z({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Qt,defaultParseWidth:"wide"}),day:Z({matchPatterns:Zt,defaultMatchWidth:"wide",parsePatterns:Jt,defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:Vt,defaultMatchWidth:"any",parsePatterns:en,defaultParseWidth:"any"})},nn={code:"sl",formatDistance:jt,formatLong:St,formatRelative:xt,localize:Lt,match:tn,options:{weekStartsOn:1,firstWeekContainsDate:1}},we={dateTimeLocale:e.ref(nn),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}};function on(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var L={},ke;function ln(){if(ke)return L;ke=1,L.getAttrs=function(n,r,i){const s=/[^\t\n\f />"'=]/,f=[];let g="",h="",y=!0,v=!1;for(let j=r+i.leftDelimiter.length;j<n.length;j++){if(n.slice(j,j+i.rightDelimiter.length)===i.rightDelimiter){g!==""&&f.push([g,h]);break}const k=n.charAt(j);if(k==="="&&y){y=!1;continue}if(k==="."&&g===""){n.charAt(j+1)==="."?(g="css-module",j+=1):g="class",y=!1;continue}if(k==="#"&&g===""){g="id",y=!1;continue}if(k==='"'&&h===""&&!v){v=!0;continue}if(k==='"'&&v){v=!1;continue}if(k===" "&&!v){if(g==="")continue;f.push([g,h]),g="",h="",y=!0;continue}if(!(y&&k.search(s)===-1)){if(y){g+=k;continue}h+=k}}if(i.allowedAttributes&&i.allowedAttributes.length){const j=i.allowedAttributes;return f.filter(function(k){const _=k[0];function T(E){return _===E||E instanceof RegExp&&E.test(_)}return j.some(T)})}return f},L.addAttrs=function(n,r){for(let i=0,s=n.length;i<s;++i){const u=n[i][0];u==="class"?r.attrJoin("class",n[i][1]):u==="css-module"?r.attrJoin("css-module",n[i][1]):r.attrPush(n[i])}return r},L.hasDelimiters=function(n,r){if(!n)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(i){const s=r.leftDelimiter.length+1+r.rightDelimiter.length;if(!i||typeof i!="string"||i.length<s)return!1;function u(h){const y=h.charAt(r.leftDelimiter.length)===".",v=h.charAt(r.leftDelimiter.length)==="#";return y||v?h.length>=s+1:h.length>=s}let c,d,b,f;const g=s-r.rightDelimiter.length;switch(n){case"start":b=i.slice(0,r.leftDelimiter.length),c=b===r.leftDelimiter?0:-1,d=c===-1?-1:i.indexOf(r.rightDelimiter,g),f=i.charAt(d+r.rightDelimiter.length),f&&r.rightDelimiter.indexOf(f)!==-1&&(d=-1);break;case"end":c=i.lastIndexOf(r.leftDelimiter),d=c===-1?-1:i.indexOf(r.rightDelimiter,c+g),d=d===i.length-r.rightDelimiter.length?d:-1;break;case"only":b=i.slice(0,r.leftDelimiter.length),c=b===r.leftDelimiter?0:-1,b=i.slice(i.length-r.rightDelimiter.length),d=b===r.rightDelimiter?i.length-r.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return c!==-1&&d!==-1&&u(i.substring(c,d+r.rightDelimiter.length))}},L.removeDelimiter=function(n,r){const i=t(r.leftDelimiter),s=t(r.rightDelimiter),u=new RegExp("[ \\n]?"+i+"[^"+i+s+"]+"+s+"$"),c=n.search(u);return c!==-1?n.slice(0,c):n};function t(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}L.escapeRegExp=t,L.getMatchingOpeningToken=function(n,r){if(n[r].type==="softbreak")return!1;if(n[r].nesting===0)return n[r];const i=n[r].level,s=n[r].type.replace("_close","_open");for(;r>=0;--r)if(n[r].type===s&&n[r].level===i)return n[r];return!1};const l=/[&<>"]/,a=/[&<>"]/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function m(n){return o[n]}return L.escapeHtml=function(n){return l.test(n)?n.replace(a,m):n},L}var ce,Ce;function rn(){if(Ce)return ce;Ce=1;const t=ln();ce=o=>{const m=new RegExp("^ {0,3}[-*_]{3,} ?"+t.escapeRegExp(o.leftDelimiter)+"[^"+t.escapeRegExp(o.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:t.hasDelimiters("end",o)}],transform:(n,r)=>{const i=n[r],s=i.info.lastIndexOf(o.leftDelimiter),u=t.getAttrs(i.info,s,o);t.addAttrs(u,i),i.info=t.removeDelimiter(i.info,o)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:n=>n==="image"||n==="code_inline"},{shift:0,type:"text",content:t.hasDelimiters("start",o)}]}],transform:(n,r,i)=>{const s=n[r].children[i],u=s.content.indexOf(o.rightDelimiter),c=n[r].children[i-1],d=t.getAttrs(s.content,0,o);t.addAttrs(d,c),s.content.length===u+o.rightDelimiter.length?n[r].children.splice(i,1):s.content=s.content.slice(u+o.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:t.hasDelimiters("only",o)}],transform:(n,r)=>{const i=n[r+2],s=t.getMatchingOpeningToken(n,r),u=t.getAttrs(i.content,0,o);t.addAttrs(u,s),n.splice(r+1,3)}},{name:"tables thead metadata",tests:[{shift:0,type:"tr_close"},{shift:1,type:"thead_close"},{shift:2,type:"tbody_open"}],transform:(n,r)=>{const i=t.getMatchingOpeningToken(n,r),s=n[r-1];let u=0,c=r;for(;--c;){if(n[c]===i){n[c-1].meta=Object.assign({},n[c+2].meta,{colsnum:u});break}u+=(n[c].level===s.level&&n[c].type===s.type)>>0}n[r+2].meta=Object.assign({},n[r+2].meta,{colsnum:u})}},{name:"tables tbody calculate",tests:[{shift:0,type:"tbody_close",hidden:!1}],transform:(n,r)=>{let i=r-2;for(;i>0&&n[--i].type!=="tbody_open";);const s=n[i].meta.colsnum>>0;if(s<2)return;const u=n[r].level+2;for(let c=i;c<r;c++){if(n[c].level>u)continue;const d=n[c],b=d.hidden?0:d.attrGet("rowspan")>>0,f=d.hidden?0:d.attrGet("colspan")>>0;if(b>1){let g=s-(f>0?f:1);for(let h=c,y=b;y>1;h++)n[h].type=="tr_open"&&(n[h].meta=Object.assign({},n[h].meta),n[h].meta&&n[h].meta.colsnum&&(g-=1),n[h].meta.colsnum=g,y--)}if(d.type=="tr_open"&&d.meta&&d.meta.colsnum){const g=d.meta.colsnum;for(let h=c,y=0;h<r;h++){if(n[h].type=="td_open")y+=1;else if(n[h].type=="tr_close")break;y>g&&(n[h].hidden||a(n[h]))}}if(f>1){const g=[];let h=c+3,y=s;for(let k=c;k>i;k--)if(n[k].type=="tr_open"){y=n[k].meta&&n[k].meta.colsnum||y;break}else n[k].type==="td_open"&&g.unshift(k);for(let k=c+2;k<r;k++)if(n[k].type=="tr_close"){h=k;break}else n[k].type=="td_open"&&g.push(k);const v=g.indexOf(c);let j=y-v;j=j>f?f:j,f>j&&d.attrSet("colspan",j+"");for(let k=g.slice(y+1-s-j)[0];k<h;k++)n[k].hidden||a(n[k])}}}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:t.hasDelimiters("start",o)}]}],transform:(n,r,i)=>{const s=n[r].children[i],u=s.content,c=t.getAttrs(u,0,o),d=t.getMatchingOpeningToken(n[r].children,i-1);t.addAttrs(c,d),s.content=u.slice(u.indexOf(o.rightDelimiter)+o.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:t.hasDelimiters("only",o)}]}],transform:(n,r,i)=>{const u=n[r].children[i].content,c=t.getAttrs(u,0,o);let d=r-2;for(;n[d-1]&&n[d-1].type!=="ordered_list_open"&&n[d-1].type!=="bullet_list_open";)d--;t.addAttrs(c,n[d-1]),n[r].children=n[r].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:n=>n==="bullet_list_close"||n==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:t.hasDelimiters("only",o),children:n=>n.length===1},{shift:3,type:"paragraph_close"}],transform:(n,r)=>{const s=n[r+2].content,u=t.getAttrs(s,0,o),c=t.getMatchingOpeningToken(n,r);t.addAttrs(u,c),n.splice(r+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:t.hasDelimiters("end",o)}]}],transform:(n,r,i)=>{const s=n[r].children[i],u=s.content,c=t.getAttrs(u,u.lastIndexOf(o.leftDelimiter),o);t.addAttrs(c,n[r-2]);const d=u.slice(0,u.lastIndexOf(o.leftDelimiter));s.content=l(d)!==" "?d:d.slice(0,-1)}},{name:`
44
- {.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:t.hasDelimiters("only",o)}]}],transform:(n,r,i)=>{const s=n[r].children[i],u=t.getAttrs(s.content,0,o);let c=r+1;for(;n[c+1]&&n[c+1].nesting===-1;)c++;const d=t.getMatchingOpeningToken(n,c);t.addAttrs(u,d),n[r].children=n[r].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:n=>n.length===1,content:n=>n.match(m)!==null},{shift:2,type:"paragraph_close"}],transform:(n,r)=>{const i=n[r];i.type="hr",i.tag="hr",i.nesting=0;const s=n[r+1].content,u=s.lastIndexOf(o.leftDelimiter),c=t.getAttrs(s,u,o);t.addAttrs(c,i),i.markup=s,n.splice(r+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:t.hasDelimiters("end",o),type:n=>n!=="code_inline"&&n!=="math_inline"}]}],transform:(n,r,i)=>{const s=n[r].children[i],u=s.content,c=t.getAttrs(u,u.lastIndexOf(o.leftDelimiter),o);let d=r+1;do if(n[d]&&n[d].nesting===-1)break;while(d++<n.length);const b=t.getMatchingOpeningToken(n,d);t.addAttrs(c,b);const f=u.slice(0,u.lastIndexOf(o.leftDelimiter));s.content=l(f)!==" "?f:f.slice(0,-1)}}]};function l(o){return o.slice(-1)[0]}function a(o){o.hidden=!0,o.children&&o.children.forEach(m=>(m.content="",a(m),void 0))}return ce}var ue,Be;function an(){if(Be)return ue;Be=1;const t=rn(),l={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};ue=function(s,u){let c=Object.assign({},l);c=Object.assign(c,u);const d=t(c);function b(f){const g=f.tokens;for(let h=0;h<g.length;h++)for(let y=0;y<d.length;y++){const v=d[y];let j=null;if(v.tests.every(_=>{const T=a(g,h,_);return T.j!==null&&(j=T.j),T.match}))try{v.transform(g,h,j),(v.name==="inline attributes"||v.name==="inline nesting 0")&&y--}catch(_){console.error(`markdown-it-attrs: Error in pattern '${v.name}': ${_.message}`),console.error(_.stack)}}}s.core.ruler.before("linkify","curly_attributes",b)};function a(i,s,u){const c={match:!1,j:null},d=u.shift!==void 0?s+u.shift:u.position;if(u.shift!==void 0&&d<0)return c;const b=n(i,d);if(b===void 0)return c;for(const f of Object.keys(u))if(!(f==="shift"||f==="position")){if(b[f]===void 0)return c;if(f==="children"&&o(u.children)){if(b.children.length===0)return c;let g;const h=u.children,y=b.children;if(h.every(v=>v.position!==void 0)){if(g=h.every(v=>a(y,v.position,v).match),g){const v=r(h).position;c.j=v>=0?v:y.length+v}}else for(let v=0;v<y.length;v++)if(g=h.every(j=>a(y,v,j).match),g){c.j=v;break}if(g===!1)return c;continue}switch(typeof u[f]){case"boolean":case"number":case"string":if(b[f]!==u[f])return c;break;case"function":if(!u[f](b[f]))return c;break;case"object":if(m(u[f])){if(u[f].every(h=>h(b[f]))===!1)return c;break}default:throw new Error(`Unknown type of pattern test (key: ${f}). Test should be of type boolean, number, string, function or array of functions.`)}}return c.match=!0,c}function o(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="object")}function m(i){return Array.isArray(i)&&i.length&&i.every(s=>typeof s=="function")}function n(i,s){return s>=0?i[s]:i[i.length+s]}function r(i){return i.slice(-1)[0]||{}}return ue}var sn=an();const cn=on(sn),F=e.defineComponent({__name:"df-label",props:{data:{},label:{},allowWrap:{type:Boolean}},setup(t){const l=t,a=e.computed(()=>l.data?l.data.label:l.label.text);return(o,m)=>{const n=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-label",{"allow-wrap":o.allowWrap}])},[o.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:o.label.icon,size:"1.25em"},null,8,["name"])):o.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(n,{key:1,class:"icon",src:o.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.label.iconComponent),{key:2,src:o.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),a.value instanceof e.unref(O.MdString)?(e.openBlock(),e.createBlock(e.unref(te),{key:1,class:"markdown",source:a.value.toString(),plugins:[e.unref(cn)]},null,8,["source","plugins"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(a.value),1)],64))],2)}}}),de=Symbol("vuetifyInputsSettingsKey");class De{constructor(l,a,o="v-icon"){this.text=l,this.icon=a,this.iconComponent=o}}const U={enabled:void 0,clearable:!0};function $(t,l){const a=e.inject(de,{}),o=e.ref(null),m=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?o.value:t.modelValue},set(_){t.control&&(t.control.value=_),t.modelValue===void 0&&(o.value=_),l("update:modelValue",_)}});if(t.control&&!(t.control instanceof O.FieldBase))throw new Error("control prop is not a vue-form control instance");const n=e.computed({get(){return t.control.touched},set(_){t.control.touched=_}}),r=t.control?n:e.ref(!1),i=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(_=>new O.ValidationErrorRenderContent(_))),u=e.computed(()=>r.value&&s.value.length>0?" ":void 0),c=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),d=e.computed(()=>t.control?t.control.visibility:t.visibility||O.DisplayMode.FULL),b=e.computed(()=>D.isString(t.label||"")?new De(t.label||""):t.label),f=e.computed(()=>t.placeholder||""),g=e.computed(()=>t.helpText||""),h=e.computed(()=>t.hint||""),y=e.computed(()=>t.cssClass||""),v=e.computed(()=>{var _,T,E;return(E=(T=(_=t.density)!=null?_:e.inject("field-density",null))!=null?T:a.defaultDensity)!=null?E:"default"}),j=e.computed(()=>v.value==="inline"?"default":v.value),k=e.computed(()=>{var _,T,E;return(E=(T=(_=t.variant)!=null?_:e.inject("field-variant",null))!=null?T:a.defaultVariant)!=null?E:"underlined"});return{value:m,valid:i,enabled:c,errors:s,visibility:d,label:b,touched:r,density:v.value,densityClass:e.computed(()=>`df-density-${v.value}`),vuetifyBindings:e.computed(()=>{var _;return x({name:(_=t.control)==null?void 0:_.fieldName,class:y.value,density:j.value,variant:k.value,label:b.value.text,messages:u.value,errorMessages:u.value,readonly:!c.value,disabled:!c.value,placeholder:f.value,"persistent-placeholder":!D.isEmpty(f.value),hint:h.value,persistentHint:!0,hideDetails:"auto",helpText:g.value},t.passthroughAttrs||{})})}}const q=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const l=t,a=()=>{if(l.message!==" ")return e.h("span",{class:l.classes},l.message);const o=[];return l.errors.forEach(m=>{switch(m.componentName){case"template":o.push(e.h("div",{class:l.classes},m.componentBody));break;case"vue-markdown":o.push(e.h(te,{class:[l.classes,"df-messages-widget-markdown"],source:m.componentBindings.source}));break;default:o.push(e.h(m.componentName,M(x({class:l.classes},m.componentBindings),{innerHTML:m.componentBody})));break}}),o};return(o,m)=>(e.openBlock(),e.createBlock(a))}}),un={class:"d-flex w-100 df-style-resetting"},ne=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:l}){const a=t,o=l,{errors:m,label:n,value:r,touched:i,visibility:s,vuetifyBindings:u}=$(a,o),c=e.computed(()=>!!(e.unref(a.clearable)&&e.unref(r))),d=e.ref(!1);function b(f){d.value=f,f||(i.value=!0,o("blur"))}return(f,g)=>{const h=e.resolveComponent("v-field"),y=e.resolveComponent("v-input");return e.unref(s)!==e.unref(O.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(y,{key:0,name:e.unref(u).name,density:e.unref(u).density,hint:e.unref(u).hint,"persistent-hint":e.unref(u).persistentHint,"hide-details":e.unref(u).hideDetails,"error-messages":e.unref(u).errorMessages,class:e.normalizeClass([f.cssClass,{"d-none":e.unref(s)===e.unref(O.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(O.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:v})=>[e.createVNode(q,{message:v,errors:e.unref(m)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(h,{variant:e.unref(u).variant,density:e.unref(u).density,label:e.unref(u).label,disabled:e.unref(u).disabled,clearable:c.value,"persistent-clear":!0,dirty:!!e.unref(r),active:d.value,loading:f.loading,"onClick:clear":g[0]||(g[0]=v=>o("click:clear")),"onUpdate:focused":g[1]||(g[1]=v=>b(v))},e.createSlots({label:e.withCtx(v=>[e.createVNode(F,{data:v,label:e.unref(n)},null,8,["data","label"])]),default:e.withCtx(v=>[e.createElementVNode("div",un,[e.renderSlot(f.$slots,"default",e.normalizeProps(e.guardReactiveProps(v)))])]),loader:e.withCtx(v=>[e.renderSlot(f.$slots,"loader",e.normalizeProps(e.guardReactiveProps(v)))]),_:2},[f.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(v=>[e.renderSlot(f.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(v)))]),key:"0"}:void 0]),1032,["variant","density","label","disabled","clearable","dirty","active","loading"])]),_:2},[f.$slots.prepend?{name:"prepend",fn:e.withCtx(v=>[e.renderSlot(f.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(v)))]),key:"0"}:void 0]),1032,["name","density","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),X={Yes:"Yes",No:"No",Close:"Close"};function dn(t){Object.keys(X).forEach(l=>{X[l]=t(l)})}p.ActionDisplayStyle=(t=>(t[t.BUTTON=0]="BUTTON",t[t.TEXT=1]="TEXT",t))(p.ActionDisplayStyle||{});const me=0;(t=>{function l(m){return m.toUpperCase()==="BUTTON"?0:m.toUpperCase()==="TEXT"?1:me}t.fromString=l;function a(m){const n=typeof m=="number"?m:t.fromString(m);return Object.values(t).includes(n)?n:me}t.fromAny=a;function o(m){const n=typeof m=="number"?m:t.fromString(m);return Object.values(t).includes(n)}t.isDefined=o})(p.ActionDisplayStyle||(p.ActionDisplayStyle={})),Object.freeze(p.ActionDisplayStyle);const fe=["xs","sm","md","lg","xl"];class _e{constructor(l){Fe(this,"_value");this._value=this.cleanBreakpoint(l,!0),l&&fe.forEach(a=>{const o=this.cleanBreakpoint(l[a]);o&&(this._value[a]=o)})}getOptionsForBreakpoint(l){const a=this.cleanBreakpoint(this._value),o=Object.keys(a);for(const m of fe){const n=this._value[m];for(const r of o)(n==null?void 0:n[r])!=null&&(a[r]=n[r]);if(m===l)break}return a}}function je(t){return t.xlAndUp.value?"xl":t.lgAndUp.value?"lg":t.mdAndUp.value?"md":t.smAndUp.value?"sm":"xs"}function Te(){const t=ae.useDisplay();return e.computed(()=>je(t))}class Pe extends _e{cleanBreakpoint(l,a=!1){if((!l||!D.isObjectLike(l))&&!a)return null;const o={};return a&&(o.renderAs=p.ActionDisplayStyle.BUTTON,o.showLabel=!0,o.showIcon=!0),l&&(l.renderAs!=null&&(o.renderAs=p.ActionDisplayStyle.fromAny(l.renderAs)),D.isString(l.label)&&(o.label=l.label),D.isString(l.icon)&&(o.icon=l.icon),D.isBoolean(l.showLabel)&&(o.showLabel=l.showLabel),D.isBoolean(l.showIcon)&&(o.showIcon=l.showIcon)),Object.keys(o).length?o:null}}class J extends O.Action{static create(l){return super.create(l)}getBreakpointValue(l){return e.computed(()=>{const o=new Pe(this.value).getOptionsForBreakpoint(l.value);return{name:o.name,label:o.showLabel?o.label:void 0,icon:o.showIcon?o.icon:void 0,renderAs:o.renderAs,showLabel:D.isString(o.label)&&!D.isEmpty(o.label)?o.showLabel:!1,showIcon:D.isString(o.icon)&&!D.isEmpty(o.icon)?o.showIcon:!1}})}get name(){return this.value.name}get label(){return this.value.showLabel?this.value.label:void 0}get showLabel(){return D.isString(this.value.label)&&!D.isEmpty(this.value.label)?this.value.showLabel:!1}get icon(){return this.value.showIcon?this.value.icon:void 0}get showIcon(){return D.isString(this.value.icon)&&!D.isEmpty(this.value.icon)?this.value.showIcon:!1}get renderAs(){return this.value.renderAs}static closeAction(l){var o;const a=M(x({},l!=null?l:{}),{value:{name:"close",label:X.Close,icon:"close-outline",renderAs:p.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return a.value=x(x({},a.value),(o=l==null?void 0:l.value)!=null?o:{}),J.create(a)}static yesAction(l){var o;const a=M(x({},l!=null?l:{}),{value:{name:"yes",label:X.Yes,icon:"thumbs-up-outline",renderAs:p.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return a.value=x(x({},a.value),(o=l==null?void 0:l.value)!=null?o:{}),J.create(a)}static noAction(l){var o;const a=M(x({},l!=null?l:{}),{value:{name:"no",label:X.No,icon:"thumbs-down-outline",renderAs:p.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return a.value=x(x({},a.value),(o=l==null?void 0:l.value)!=null?o:{}),J.create(a)}}const mn={key:1,style:{width:"0.5rem"}},fn={key:2},Ae=e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const l=t,a=Te(),o=e.computed(()=>e.unref(l.actions)),m=e.computed(()=>o.value.map(n=>x({action:n},e.unref(n.getBreakpointValue(a)))));return(n,r)=>{const i=e.resolveComponent("v-btn");return o.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end df-actions",{"button-group":n.showAsGroup==="grouped"||n.showAsGroup==="grouped-no-borders","with-border":n.showAsGroup==="grouped"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(s,u)=>(e.openBlock(),e.createBlock(i,{key:u,variant:s.renderAs===e.unref(p.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:n.buttonSize,onClick:e.withModifiers(c=>s.action.execute(c),["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",mn)):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",fn,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),Se=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:{}},M(x({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,{densityClass:m,errors:n,label:r,touched:i,value:s,vuetifyBindings:u}=$(a,o),c=e.computed(()=>a.allowNull&&s.value==null),d=e.computed({get(){return s.value},set(){}});function b(){const f=D.clone(s.value);f===!0?s.value=a.allowNull?null:!1:s.value=f===!1}return(f,g)=>{const h=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(h,e.mergeProps({modelValue:d.value,"onUpdate:modelValue":g[0]||(g[0]=y=>d.value=y)},e.unref(u),{density:"compact",class:e.unref(m),indeterminate:c.value,"false-value":!1,"true-value":!0,onChange:b,onBlur:g[1]||(g[1]=y=>i.value=!0)}),{label:e.withCtx(y=>[e.createVNode(e.unref(F),{"allow-wrap":!0,data:y,label:e.unref(r)},null,8,["data","label"])]),message:e.withCtx(({message:y})=>[e.createVNode(e.unref(q),{message:y,errors:e.unref(n)},null,8,["message","errors"])]),_:1},16,["modelValue","class","indeterminate"])}}}),Ie=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:{}},M(x({},U),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,{densityClass:m,errors:n,label:r,touched:i,value:s,vuetifyBindings:u}=$(a,o),c=e.ref(!1),d=e.computed(()=>[b=>a.control||!b&&a.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(b)?!0:"Not a valid hex string."]);return(b,f)=>{const g=e.resolveComponent("v-color-picker"),h=e.resolveComponent("v-menu"),y=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(y,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":f[2]||(f[2]=v=>e.isRef(s)?s.value=v:null)},e.unref(u),{class:e.unref(m),clearable:b.allowNull,type:"text",rules:d.value,onBlur:f[3]||(f[3]=v=>i.value=!0)}),{label:e.withCtx(v=>[e.createVNode(e.unref(F),{data:v,label:e.unref(r)},null,8,["data","label"])]),message:e.withCtx(({message:v})=>[e.createVNode(e.unref(q),{message:v,errors:e.unref(n)},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(h,{modelValue:c.value,"onUpdate:modelValue":f[1]||(f[1]=v=>c.value=v),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(s),"onUpdate:modelValue":f[0]||(f[0]=v=>e.isRef(s)?s.value=v:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","class","clearable","rules"])}}}),xe=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:{}},M(x({},U),{inputType:"datetime",displayFormatDate:"P",displayFormatTime:"p"})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,m=e.computed(()=>{var B;return(B=a.locale)!=null?B:e.unref(we.dateTimeLocale)}),n=e.computed(()=>{var B,w;return(w=(B=m.value.options)==null?void 0:B.weekStartsOn)!=null?w:1}),{densityClass:r,touched:i,value:s,vuetifyBindings:u}=$(a,o),{inputType:c,displayFormatDate:d,displayFormatTime:b}=e.toRefs(a),f=e.ref(""),g=e.computed({get(){return e.unref(f)==="date"},set(B){f.value=B?"date":""}}),h=e.computed({get(){return e.unref(f)==="time"},set(B){f.value=B?"time":""}}),y=B=>`${R.format(B,"yyyy-MM-dd")}T${R.format(B,"HH:mm")}:00`,v=e.ref(null);function j(B,w){if(B==null)v.value=null;else if(w===-1)if(e.unref(c)==="time")v.value=y(new Date),j(`T${B}`,1);else{const N=y(new Date(B));j(N,0),j(N,1)}else{v.value==null&&(v.value=y(new Date));const N=v.value.split(/[TZ]/g),z=B.split(/[TZ]/g);N[w]=z[w],v.value=y(new Date(`${N[0]}T${N[1].split(".")[0]}`)),e.unref(c)==="date"?s.value=N[0]:e.unref(c)==="time"?s.value=N[1]:s.value=e.unref(v)+R.format(new Date,"XXX")}}e.watch(s,B=>j(B,-1),{immediate:!0});const k=e.computed({get(){const B=e.unref(v);if(B==null)return null;const w=new Date(B);return Number.isNaN(w.getTime())?null:w},set(B){j(y(B),0)}}),_=e.computed({get(){const B=e.unref(v);return B==null?"":B.split(/[TZ]/g)[1].split(".")[0]},set(B){j(`T${B}`,1)}}),T=e.computed({get(){const B=e.unref(k);return B==null?"":R.format(B,e.unref(d),{locale:m.value})},set(B){try{const w=R.parse(B,e.unref(d),new Date,{locale:m.value});j(y(w),0)}catch(w){console.error(w)}}}),E=e.computed({get(){const B=e.unref(k);return B==null?"":R.format(B,e.unref(b),{locale:m.value})},set(B){const w=B.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(w==null)return;let N=D.toNumber(w[1]);const z=D.toNumber(w[2]);D.isNaN(N)||D.isNaN(z)||(w[3]&&w[3].toLowerCase()==="pm"&&N<13&&(N+=12),j(`T${N.toString().padStart(2,"0")}:${z.toString().padStart(2,"0")}:00`,1))}});return(B,w)=>{const N=e.resolveComponent("v-date-picker"),z=e.resolveComponent("v-confirm-edit"),V=e.resolveComponent("v-menu"),ee=e.resolveComponent("v-text-field"),A=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps(a,{class:e.unref(r),clearable:B.clearable,"onClick:clear":w[14]||(w[14]=S=>s.value=null),onBlur:w[15]||(w[15]=S=>i.value=!0)}),{default:e.withCtx(S=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 ml-4 df-input-wrapper",B.density])},[["date","datetime"].includes(e.unref(c))?(e.openBlock(),e.createBlock(ee,e.mergeProps({key:0,modelValue:T.value,"onUpdate:modelValue":w[4]||(w[4]=P=>T.value=P),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(u).readonly,disabled:e.unref(u).disabled,name:`${e.unref(u).name}-date`},B.passthroughAttrs,{onClick:w[5]||(w[5]=P=>f.value="date"),onKeydown:w[6]||(w[6]=e.withKeys(P=>f.value="date",["space"])),onFocus:P=>S.focus(),onBlur:P=>S.blur()}),{default:e.withCtx(()=>[e.createVNode(V,{modelValue:g.value,"onUpdate:modelValue":w[3]||(w[3]=P=>g.value=P),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:k.value,"onUpdate:modelValue":w[0]||(w[0]=P=>k.value=P),onCancel:w[1]||(w[1]=P=>f.value=""),onSave:w[2]||(w[2]=P=>f.value="")},{default:e.withCtx(({model:P,actions:K})=>[e.createVNode(N,{modelValue:P.value,"onUpdate:modelValue":I=>P.value=I,"hide-header":!0,"first-day-of-week":n.value,"show-adjacent-months":!0,"show-week":!0},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K)))]),_: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(c))?(e.openBlock(),e.createBlock(ee,e.mergeProps({key:1,modelValue:E.value,"onUpdate:modelValue":w[11]||(w[11]=P=>E.value=P),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(u).readonly,disabled:e.unref(u).disabled,name:`${e.unref(u).name}-time`},B.passthroughAttrs,{onClick:w[12]||(w[12]=P=>f.value="time"),onKeydown:w[13]||(w[13]=e.withKeys(P=>f.value="time",["space"])),onFocus:P=>S.focus(),onBlur:P=>S.blur()}),{default:e.withCtx(()=>[e.createVNode(V,{modelValue:h.value,"onUpdate:modelValue":w[10]||(w[10]=P=>h.value=P),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:_.value,"onUpdate:modelValue":w[7]||(w[7]=P=>_.value=P),onCancel:w[8]||(w[8]=P=>f.value=""),onSave:w[9]||(w[9]=P=>f.value="")},{default:e.withCtx(({model:P,actions:K})=>[e.createVNode(A,{modelValue:P.value,"onUpdate:modelValue":I=>P.value=I,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K)))]),_: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"])}}}),Ne=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:l}){const a=t,o=l,{densityClass:m,touched:n,value:r,vuetifyBindings:i}=$(a,o),s=e.ref(null),u=e.ref(null),c=e.ref(0),d=e.ref(Math.round(Math.random()*1e3)),b=e.ref(),f=e.computed(()=>u.value&&c.value<100),g=e.computed(()=>!b.value&&r.value?a.modelValue:"");function h(){s.value&&window.clearInterval(s.value)}function y(){h(),s.value=window.setInterval(()=>{r.value&&a.comms.touch(r.value)},60*1e3)}e.onBeforeUnmount(()=>h()),e.watch(r,_=>{_?y():h()});function v(){return re(this,null,function*(){r.value&&(yield a.comms.delete(r.value)),r.value=null,c.value=0,d.value=Math.round(Math.random()*1e3),u.value=null,b.value=null,h()})}function j(_){return re(this,null,function*(){c.value=-1,u.value=_;try{r.value=yield a.comms.upload(_,(T,E)=>{c.value=Math.round(T*100/E)}),c.value=100,y()}catch(T){throw c.value=0,u.value=null,d.value=Math.round(Math.random()*1e3),b.value=null,T}})}function k(_){_&&(Array.isArray(_)?console.error("Uploading multiple files not supported right now"):j(_))}return(_,T)=>{const E=e.resolveComponent("v-progress-linear"),B=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps(M(x({},a),{loading:f.value}),{class:e.unref(m),clearable:"","onClick:clear":v,onBlur:T[1]||(T[1]=w=>n.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(e.unref(W.CachedIcon),{name:"mdi-paperclip"})]),loader:e.withCtx(()=>[u.value&&c.value<100?(e.openBlock(),e.createBlock(E,{key:0,"model-value":c.value,indeterminate:c.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(w=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative df-input-wrapper",_.density])},[e.createVNode(B,e.mergeProps({modelValue:b.value,"onUpdate:modelValue":T[0]||(T[0]=N=>b.value=N),label:g.value,density:"compact",variant:"plain",readonly:e.unref(i).readonly,disabled:e.unref(i).disabled,name:e.unref(i).name,"hide-details":!0,"show-size":!0,multiple:!1,style:u.value&&c.value<100?"visibility: hidden":"",clearable:!1},_.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":k,onFocus:N=>w.focus(),onBlur:N=>w.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])],2)]),_:1},16,["class"])}}}),Ee=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:{}},M(x({},U),{inputType:"text",precision:null,step:void 0,min:void 0,max:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,{densityClass:m,errors:n,label:r,touched:i,value:s,vuetifyBindings:u}=$(a,o),{inputType:c,max:d,min:b,precision:f,step:g}=e.toRefs(a),h=e.computed(()=>c.value==="number"),y=e.computed(()=>h.value?{min:e.unref(b),max:e.unref(d),precision:e.unref(f),step:e.unref(g)}:{});return(v,j)=>{const k=e.resolveComponent("v-text-field"),_=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-input-container",e.unref(m)])},[h.value?(e.openBlock(),e.createBlock(_,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":j[2]||(j[2]=T=>e.isRef(s)?s.value=T:null)},x(x({},e.unref(u)),y.value),{density:"compact","control-variant":"stacked"}),{label:e.withCtx(T=>[e.createVNode(e.unref(F),{data:T,label:e.unref(r)},null,8,["data","label"])]),message:e.withCtx(({message:T})=>[e.createVNode(e.unref(q),{message:T,errors:e.unref(n)},null,8,["message","errors"])]),_:1},16,["modelValue"])):(e.openBlock(),e.createBlock(k,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":j[0]||(j[0]=T=>e.isRef(s)?s.value=T:null)},e.unref(u),{type:e.unref(c),onBlur:j[1]||(j[1]=T=>i.value=!0)}),{label:e.withCtx(T=>[e.createVNode(e.unref(F),{data:T,label:e.unref(r)},null,8,["data","label"])]),message:e.withCtx(({message:T})=>[e.createVNode(e.unref(q),{message:T,errors:e.unref(n)},null,8,["message","errors"])]),_:1},16,["modelValue","type"]))],2)}}}),pn={class:"editor-container"},vn={class:"editor-container__editor"},hn={ref:"editorElement"},yn=e.defineComponent({__name:"ck-editor-custom",props:{modelValue:{default:""},minHeight:{default:"7em"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:l,emit:a}){e.useCssVars(d=>({"5f8a2e8c":d.minHeight}));const o=a,m=e.ref(!1),n=C.ClassicEditor,r={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},i=[C.AccessibilityHelp,C.Alignment,C.AutoImage,C.AutoLink,C.Autosave,C.BalloonToolbar,C.BlockQuote,C.Bold,C.CloudServices,C.Essentials,C.GeneralHtmlSupport,C.Heading,C.HorizontalLine,C.ImageBlock,C.ImageCaption,C.ImageInline,C.ImageInsertViaUrl,C.ImageResize,C.ImageStyle,C.ImageToolbar,C.ImageUpload,C.Indent,C.IndentBlock,C.Italic,C.Link,C.List,C.Autoformat,C.MediaEmbed,C.Paragraph,C.PasteFromMarkdownExperimental,C.PasteFromOffice,C.SelectAll,C.Style,C.Table,C.TableCellProperties,C.TableColumnResize,C.TableProperties,C.TableToolbar,C.Undo,C.TextTransformation,C.Base64UploadAdapter],u={toolbar:r,plugins:i,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(()=>{m.value=!0});const c=d=>{};return l({onEditorReady:c}),(d,b)=>{const f=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",pn,[e.createElementVNode("div",vn,[e.createElementVNode("div",hn,[m.value?(e.openBlock(),e.createBlock(f,{key:0,"model-value":d.modelValue,editor:e.unref(n),config:u,disabled:d.disabled,style:e.normalizeStyle(`min-height: ${d.minHeight}`),onReady:c,"onUpdate:modelValue":b[0]||(b[0]=g=>o("update:modelValue",g))},null,8,["model-value","editor","disabled","style"])):e.createCommentVNode("",!0)],512)])])}}}),Oe=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:{}},M(x({},U),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,{densityClass:m,value:n,vuetifyBindings:r}=$(a,o);return(i,s)=>(e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps(a,{class:["ck-editor-custom",e.unref(m)]}),{default:e.withCtx(u=>[e.createVNode(yn,e.mergeProps({ref:"$editor",modelValue:e.unref(n),"onUpdate:modelValue":s[0]||(s[0]=c=>e.isRef(n)?n.value=c:null),class:{"mt-6":!!i.label},"min-height":i.minHeight,disabled:e.unref(r).disabled,placeholder:"dfsjghdf"},i.passthroughAttrs,{onFocusin:c=>u.focus(),onFocusout:c=>u.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16,["class"]))}});function gn(t){return t.map(l=>({value:l.id,title:l.text,icon:l.icon}))}function H(t,l){var a;return t==null||D.isArray(t)&&t.length===0?null:l?D.castArray(t):D.isArray(t)?(a=D.first(t))!=null?a:null:t}function oe(t,l){if(l==null)return[];const a=D.castArray(l);return t.filter(o=>a.some(m=>m===o.id))}function le(t,l,a,o,m){var r;const n=H(t,a);if(n==null){l.value=a?[]:null;return}if(a)o?l.value=n:l.value=oe(m,n).map(i=>i.id);else if(o)l.value=n;else{const i=D.first(oe(m,n));l.value=(r=i==null?void 0:i.id)!=null?r:null}}const bn={key:0,class:"me-1"},Me=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:{}},M(x({},U),{choices:void 0,multiple:!1,allowTags:!1,allowNull:!0,fetchChoices:void 0})),emits:["update:modelValueDisplay","update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,{choices:o,multiple:m,allowTags:n,allowNull:r,cssClass:i,visibility:s}=e.toRefs(a),u=l,{densityClass:c,errors:d,label:b,touched:f,value:g,vuetifyBindings:h}=$(a,u),y=e.ref(null),v=e.ref(!1),j=e.ref([]),k=e.computed(()=>e.unref(v)?e.unref(j):e.unref(o)||[]),_=e.ref(!1),T=e.computed(()=>gn(k.value));T.value&&a.fetchChoices!==void 0&&console.warn("Both options and fetchChoices are set. Only one of them should be set.");function E(A){u("update:modelValueDisplay",oe(k.value,A))}let B=!1;function w(A){B=!0,g.value=A,e.nextTick(()=>{B=!1})}e.watch(y,A=>{h.value.readonly||e.nextTick(()=>{const S=H(A,m.value);E(S),w(S)})},{deep:!0}),e.watch(g,A=>{if(!B){const S=H(A,m.value);le(S,y,m.value,!1,k.value)}},{deep:!0});function N(){if(h.value.readonly||n.value)return;const A=H(y.value,m.value);le(A,y,m.value,!1,k.value),w(A)}function z(A){let S;m.value&&Array.isArray(y.value)?S=H(y.value.filter(P=>P!==A),m.value):S=null,le(S,y,m.value,!1,k.value),w(S)}function V(A,S){return re(this,null,function*(){if(!(o.value||a.fetchChoices===void 0)){_.value=!0;try{const P=oe(k.value,H(y.value,m.value)),K=yield a.fetchChoices(A,S);j.value=D.unionBy([...P,...K],"id"),v.value=!0}finally{_.value=!1}}})}function ee(){let A=g.value;!r.value&&A==null&&T.value.length&&(A=T.value[0].value),A=H(A,m.value),le(A,y,m.value,n.value,k.value),E(A),w(A)}return ee(),a.fetchChoices!==void 0&&V(void 0,g.value).then(()=>{ee()}),(A,S)=>{const P=e.resolveComponent("v-chip"),K=e.resolveComponent("v-list-item");return e.unref(s)!==e.unref(O.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:y.value,"onUpdate:modelValue":S[0]||(S[0]=I=>y.value=I),class:[e.unref(i),e.unref(c),{"d-none":e.unref(s)===e.unref(O.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(O.DisplayMode).INVISIBLE}],items:T.value,"return-object":!1},e.unref(h),{label:e.unref(h).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(r)||e.unref(m)&&y.value.length>1,clearable:e.unref(r),multiple:e.unref(m),loading:_.value,"hide-selected":!1,"aria-describedby":e.unref(h).helpText?`${e.unref(h).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":S[1]||(S[1]=I=>V(I,void 0)),"onUpdate:modelValue":N,"onClick:clear":S[2]||(S[2]=I=>y.value=null),onBlur:S[3]||(S[3]=I=>f.value=!0)}),e.createSlots({chip:e.withCtx(({item:I})=>[(e.openBlock(),e.createBlock(P,{key:I.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(m)?"tonal":"text",closable:e.unref(m),"onClick:close":G=>z(I.value)},{prepend:e.withCtx(()=>{var G;return[(G=I.raw)!=null&&G.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,class:"me-1",name:I.raw.icon},null,8,["name"])):e.createCommentVNode("",!0)]}),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"text-body-1":!e.unref(m)})},e.toDisplayString(I.title),3)]),_:2},1032,["variant","closable","onClick:close"]))]),label:e.withCtx(I=>[e.createVNode(e.unref(F),{data:I,label:e.unref(b)},null,8,["data","label"])]),item:e.withCtx(({props:I,item:G})=>[e.createVNode(K,e.normalizeProps(e.guardReactiveProps(I)),{prepend:e.withCtx(()=>{var Ue;return[(Ue=G.raw)!=null&&Ue.icon?(e.openBlock(),e.createElementBlock("span",bn,[e.createVNode(e.unref(W.CachedIcon),{class:"action-icon",name:G.raw.icon},null,8,["name"])])):e.createCommentVNode("",!0)]}),_:2},1040)]),message:e.withCtx(({message:I})=>[e.createVNode(e.unref(q),{message:I,errors:e.unref(d)},null,8,["message","errors"])]),_:2},[A.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(I=>[e.renderSlot(A.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(I)))]),key:"0"}:void 0,A.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(I=>[e.renderSlot(A.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(I)))]),key:"1"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),Re=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:{}},M(x({},U),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:l}){const a=t,o=l,{densityClass:m,errors:n,label:r,touched:i,value:s,vuetifyBindings:u}=$(a,o),{cssClass:c,visibility:d}=e.toRefs(a);return(b,f)=>{const g=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-textarea-container",e.unref(m)])},[e.unref(d)!==e.unref(O.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(g,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":f[0]||(f[0]=h=>e.isRef(s)?s.value=h:null),class:[e.unref(c),{"d-none":e.unref(d)===e.unref(O.DisplayMode).HIDDEN,invisible:e.unref(d)===e.unref(O.DisplayMode).INVISIBLE}],rows:b.rows,"auto-grow":(b.maxRows||0)>0,"max-rows":b.maxRows},e.unref(u),{onBlur:f[1]||(f[1]=h=>i.value=!0)}),{label:e.withCtx(h=>[e.createVNode(e.unref(F),{data:h,label:e.unref(r)},null,8,["data","label"])]),message:e.withCtx(({message:h})=>[e.createVNode(e.unref(q),{message:h,errors:e.unref(n)},null,8,["message","errors"])]),_:1},16,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)],2)}}}),$e=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Ae,DfCheckbox:Se,DfColor:Ie,DfDateTime:xe,DfFile:Ne,DfInput:Ee,DfRtfEditor:Oe,DfSelect:Me,DfTextArea:Re},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:Y.VAutocomplete,VBtn:qe.VBtn,VCheckbox:We.VCheckbox,VChip:He.VChip,VCol:ve.VCol,VColorPicker:Xe.VColorPicker,VCombobox:Ke.VCombobox,VConfirmEdit:Ge.VConfirmEdit,VDatePicker:Ye.VDatePicker,VField:Qe.VField,VFileInput:Ze.VFileInput,VIcon:Je.VIcon,VImg:Ve.VImg,VInput:et.VInput,VListItem:tt.VListItem,VMenu:nt.VMenu,VNumberInput:ot.VNumberInput,VProgressLinear:lt.VProgressLinear,VRow:ve.VRow,VSelect:rt.VSelect,VSwitch:at.VSwitch,VTextField:st.VTextField,VTextarea:it.VTextarea,VTimePicker:ct.VTimePicker},Symbol.toStringTag,{value:"Module"})),wn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),kn={install:(t,l)=>{var a,o;t.use(Ct),t.provide(de,l!=null?l:{}),(a=l==null?void 0:l.registerComponents)!=null&&a&&Object.entries($e).map(([m,n])=>t.component(m,n)),(o=l==null?void 0:l.registerVuetifyComponents)!=null&&o&&Object.entries(Le).map(([m,n])=>t.component(m,n))}};p.Action=J,p.DateTimeLocaleConfig=we,p.DfActions=Ae,p.DfCheckbox=Se,p.DfColor=Ie,p.DfDateTime=xe,p.DfFile=Ne,p.DfInput=Ee,p.DfInputComponentProps=wn,p.DfInputComponents=$e,p.DfLabel=F,p.DfRtfEditor=Oe,p.DfSelect=Me,p.DfTextArea=Re,p.DynamicFormsInputs=kn,p.InputBase=ne,p.Label=De,p.MessagesWidget=q,p.ResponsiveActionRenderOptions=Pe,p.ResponsiveRenderOptions=_e,p.VuetifyComponents=Le,p.defaultBaseProps=U,p.defaultDisplayStyle=me,p.getBreakpointName=je,p.responsiveBreakpoints=fe,p.translatableStrings=X,p.translateStrings=dn,p.useBreakpoint=Te,p.useInputBase=$,p.vuetifyInputsSettingsKey=de,Object.defineProperty(p,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"})}));
45
44
  //# sourceMappingURL=dynamicforms-vuetify-inputs.umd.cjs.map