@dynamicforms/vuetify-inputs 0.5.9 → 0.5.11
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.
- package/dist/{style.css → dynamicforms-vuetify-inputs.css} +2 -2
- package/dist/dynamicforms-vuetify-inputs.js +545 -527
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +10 -10
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/package.json +7 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),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","@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["@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,
|
|
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,z,A,ae,le,M,v,X,Ee,Re,Oe,Ue,Fe,ze,We,qe,He,me,Ke,Xe,Ge,Ye,Qe,Ze,Je,Ve,et,tt,nt,ot){"use strict";var yn=Object.defineProperty,gn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var de=(r,e,b)=>e in r?yn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:b}):r[e]=b,N=(r,e)=>{for(var b in e||(e={}))kn.call(e,b)&&de(r,b,e[b]);if(Me)for(var b of Me(e))Cn.call(e,b)&&de(r,b,e[b]);return r},$=(r,e)=>gn(r,wn(e));var Le=(r,e,b)=>de(r,typeof e!="symbol"?e+"":e,b);var oe=(r,e,b)=>new Promise((z,A)=>{var ae=v=>{try{M(b.next(v))}catch(X){A(X)}},le=v=>{try{M(b.throw(v))}catch(X){A(X)}},M=v=>v.done?z(v.value):Promise.resolve(v.value).then(ae,le);M((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
|
*//**
|
|
@@ -7,19 +7,19 @@
|
|
|
7
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 lt(t,n){const o=t.extraPlugins||[];return $(
|
|
10
|
+
*/function lt(t,n){const o=t.extraPlugins||[];return $(N({},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
|
|
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
|
|
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 it(t){if(!
|
|
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 st(t){if(
|
|
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
25
|
*/function ct(){const{CKEDITOR_VERSION:t,CKEDITOR:n}=window;return rt(t)?{source:n?"cdn":"npm",version:t}:null}/**
|
|
@@ -28,17 +28,17 @@
|
|
|
28
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
|
|
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 dt(t,n){return function(a){
|
|
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
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 ft(t){return
|
|
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,m=e.ref(),s=e.ref(),p=e.ref();n({instance:s,lastEditorData:p}),e.watch(a,c=>{s.value&&c!==p.value&&s.value.data.set(c)}),e.watch(()=>l.disabled,c=>{c?s.value.enableReadOnlyMode(re):s.value.disableReadOnlyMode(re)});function f(){const c=window.CKEDITOR_VERSION;if(!c)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[d]=c.split(".").map(Number);d>=42||c.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function B(c){const d=b.debounce(g=>{if(l.disableTwoWayDataBinding)return;const w=p.value=c.data.get();i("update:modelValue",w,g,c),i("input",w,g,c)},pt,{leading:!0});c.model.document.on("change:data",d),c.editing.view.document.on("focus",g=>{i("focus",g,c)}),c.editing.view.document.on("blur",g=>{i("blur",g,c)})}return f(),e.onMounted(()=>{const c=ft(Object.assign({},l.config));a.value&&(c.initialData=a.value),l.editor.create(m.value,c).then(d=>{s.value=e.markRaw(d),B(d),a.value!==c.initialData&&d.data.set(a.value),l.disabled&&d.enableReadOnlyMode(re),i("ready",d)}).catch(d=>{console.error(d)})}),e.onBeforeUnmount(()=>{s.value&&(s.value.destroy(),s.value=void 0),i("destroy")}),(c,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.tagName),{ref_key:"element",ref:m},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(!pe.version||!pe.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 se(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}function G(t){return(n,o)=>{const a=o!=null&&o.context?String(o.context):"standalone";let l;if(a==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,s=o!=null&&o.width?String(o.width):f;l=t.formattingValues[s]||t.formattingValues[f]}else{const f=t.defaultWidth,s=o!=null&&o.width?String(o.width):t.defaultWidth;l=t.values[s]||t.values[f]}const i=t.argumentCallback?t.argumentCallback(n):n;return l[i]}}function Y(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 f=i[0],s=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],b=Array.isArray(s)?yt(s,c=>c.test(f)):bt(s,c=>c.test(f));let u;u=t.valueCallback?t.valueCallback(b):b,u=o.valueCallback?o.valueCallback(u):u;const B=n.slice(f.length);return{value:u,rest:B}}}function bt(t,n){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return o}function yt(t,n){for(let o=0;o<t.length;o++)if(n(t[o]))return o}function gt(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 f=t.valueCallback?t.valueCallback(i[0]):i[0];f=o.valueCallback?o.valueCallback(f):f;const s=n.slice(l.length);return{value:f,rest:s}}}function wt(t){return t.one!==void 0}const kt={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 Ct(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const Bt=(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=kt[t];if(typeof i=="string")a+=i;else{const f=Ct(n);wt(i)?a+=i[f].replace("{{count}}",String(n)):a+=i[l][f].replace("{{count}}",String(n))}return a},_t={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},jt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Tt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Pt={date:se({formats:_t,defaultWidth:"full"}),time:se({formats:jt,defaultWidth:"full"}),dateTime:se({formats:Tt,defaultWidth:"full"})},Dt={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"},Nt=(t,n,o,a)=>{const l=Dt[t];return typeof l=="function"?l(n):l},St={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},It={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},xt={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"]},At={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"]},$t={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č"}},Mt={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,n)=>Number(t)+".",era:G({values:St,defaultWidth:"wide"}),quarter:G({values:It,defaultWidth:"wide",argumentCallback:t=>t-1}),month:G({values:xt,defaultWidth:"wide"}),day:G({values:At,defaultWidth:"wide"}),dayPeriod:G({values:$t,defaultWidth:"wide",formattingValues:Mt,defaultFormattingWidth:"wide"})},Et=/^(\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},Ot={any:[/^pr/i,/^(po|na[sš]em)/i]},zt={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:gt({matchPattern:Et,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Y({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:Y({matchPatterns:zt,defaultMatchWidth:"wide",parsePatterns:Ft,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Y({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Y({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:Bt,formatLong:Pt,formatRelative:Nt,localize:Lt,match:Yt,options:{weekStartsOn:1,firstWeekContainsDate:1}},ye={dateTimeLocale:e.ref(Qt),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}},Zt={class:"label"},Jt=e.defineComponent({__name:"df-label",props:{data:{},label:{}},setup(t){return(n,o)=>{const a=e.resolveComponent("v-icon"),l=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",Zt,[n.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(a,{key:0,icon:n.label.icon,size:"1.25em"},null,8,["icon"])):n.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(l,{key:1,class:"icon",src:n.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.label.iconComponent),{key:2,src:n.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.data?n.data.label:n.label.text),1)])}}}),Q=(t,n)=>{const o=t.__vccOpts||t;for(const[a,l]of n)o[a]=l;return o},z=Q(Jt,[["__scopeId","data-v-0034f29f"]]),ce=Symbol("vuetifyInputsSettingsKey");class ge{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const R={enabled:void 0,clearable:!0};function L(t,n){const o=e.inject(ce,{}),a=e.ref(null),l=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?a.value:t.modelValue},set(y){t.control&&(t.control.value=y),t.modelValue===void 0&&(a.value=y),n("update:modelValue",y)}});if(t.control&&!(t.control instanceof A.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.computed({get(){return t.control.touched},set(y){t.control.touched=y}}),f=t.control?i:e.ref(!1),s=e.computed(()=>t.control?t.control.valid:!0),b=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(y=>new A.ValidationErrorRenderContent(y))),u=e.computed(()=>f.value&&b.value.length>0?" ":void 0),B=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),c=e.computed(()=>t.control?t.control.visibility:t.visibility||A.DisplayMode.FULL),m=e.computed(()=>v.isString(t.label||"")?new ge(t.label||""):t.label),g=e.computed(()=>t.placeholder||""),w=e.computed(()=>t.helpText||""),k=e.computed(()=>t.hint||""),_=e.computed(()=>t.cssClass||"");return{value:l,valid:s,enabled:B,errors:b,visibility:c,label:m,touched:f,vuetifyBindings:e.computed(()=>{var y,I;return D({name:(y=t.control)==null?void 0:y.fieldName,class:_.value,density:"default",variant:(I=o.defaultVariant)!=null?I:"underlined",label:m.value.text,messages:u.value,errorMessages:u.value,readonly:!B.value,disabled:!B.value,placeholder:g.value,"persistent-placeholder":!v.isEmpty(g.value),hint:k.value,persistentHint:!0,hideDetails:"auto",helpText:w.value},t.passthroughAttrs||{})})}}const F=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const n=t,o=()=>{if(n.message!==" ")return e.h("span",{class:n.classes},n.message);const a=[];return n.errors.forEach(l=>{switch(l.componentName){case"template":a.push(e.h("div",{class:n.classes},l.componentBody));break;case"vue-markdown":a.push(e.h(te,{class:[n.classes,"df-messages-widget-markdown"],source:l.componentBindings.source}));break;default:a.push(e.h(l.componentName,$(D({class:n.classes},l.componentBindings),{innerHTML:l.componentBody})));break}}),a};return(a,l)=>(e.openBlock(),e.createBlock(o))}}),Vt={class:"d-flex w-100 style-resetting"},ne=Q(e.defineComponent({__name:"input-base",props:{control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},loading:{type:Boolean}},emits:["update:modelValue","click:clear","blur"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,value:f,touched:s,visibility:b,vuetifyBindings:u}=L(o,a),B=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(f))),c=e.ref(!1);function m(g){c.value=g,g||(s.value=!0,a("blur"))}return(g,w)=>{const k=e.resolveComponent("v-field"),_=e.resolveComponent("v-input");return e.unref(b)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(_,{key:0,name:e.unref(u).name,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([g.cssClass,{"d-none":e.unref(b)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(b)===e.unref(A.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:y})=>[e.createVNode(F,{message:y,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(k,{variant:e.unref(u).variant,label:e.unref(u).label,disabled:e.unref(u).disabled,clearable:B.value,"persistent-clear":!0,dirty:!!e.unref(f),active:c.value,loading:g.loading,"onClick:clear":w[0]||(w[0]=y=>a("click:clear")),"onUpdate:focused":w[1]||(w[1]=y=>m(y))},e.createSlots({default:e.withCtx(y=>[e.createElementVNode("div",Vt,[e.renderSlot(g.$slots,"default",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)])]),loader:e.withCtx(y=>[e.renderSlot(g.$slots,"loader",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(y=>[e.createVNode(z,{data:y,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0,g.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(y=>[e.renderSlot(g.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),key:"1"}:void 0]),1032,["variant","label","disabled","clearable","dirty","active","loading"])]),_:2},[g.$slots.prepend?{name:"prepend",fn:e.withCtx(y=>[e.renderSlot(g.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),key:"0"}:void 0]),1032,["name","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-7ba7207d"]]),H={Yes:"Yes",No:"No",Close:"Close"};function en(t){Object.keys(H).forEach(n=>{H[n]=t(n)})}r.ActionDisplayStyle=(t=>(t[t.BUTTON=0]="BUTTON",t[t.TEXT=1]="TEXT",t))(r.ActionDisplayStyle||{});const ue=0;(t=>{function n(l){return l.toUpperCase()==="BUTTON"?0:l.toUpperCase()==="TEXT"?1:ue}t.fromString=n;function o(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)?i:ue}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 de=["xs","sm","md","lg","xl"];class we{constructor(n){Ee(this,"_value");this._value=this.cleanBreakpoint(n,!0),n&&de.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 de){const i=this._value[l];for(const f of a)(i==null?void 0:i[f])!=null&&(o[f]=i[f]);if(l===n)break}return o}}function ke(t){return t.xlAndUp.value?"xl":t.lgAndUp.value?"lg":t.mdAndUp.value?"md":t.smAndUp.value?"sm":"xs"}function Ce(){const t=re.useDisplay();return e.computed(()=>ke(t))}class Be extends we{cleanBreakpoint(n,o=!1){if((!n||!v.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)),v.isString(n.label)&&(a.label=n.label),v.isString(n.icon)&&(a.icon=n.icon),v.isBoolean(n.showLabel)&&(a.showLabel=n.showLabel),v.isBoolean(n.showIcon)&&(a.showIcon=n.showIcon)),Object.keys(a).length?a:null}}class Z extends A.Action{static create(n){return super.create(n)}getBreakpointValue(n){return e.computed(()=>{const a=new Be(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:v.isString(a.label)&&!v.isEmpty(a.label)?a.showLabel:!1,showIcon:v.isString(a.icon)&&!v.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 v.isString(this.value.label)&&!v.isEmpty(this.value.label)?this.value.showLabel:!1}get icon(){return this.value.showIcon?this.value.icon:void 0}get showIcon(){return v.isString(this.value.icon)&&!v.isEmpty(this.value.icon)?this.value.showIcon:!1}get renderAs(){return this.value.renderAs}static closeAction(n){var a;const o=$(D({},n!=null?n:{}),{value:{name:"close",label:H.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=D(D({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static yesAction(n){var a;const o=$(D({},n!=null?n:{}),{value:{name:"yes",label:H.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=D(D({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static noAction(n){var a;const o=$(D({},n!=null?n:{}),{value:{name:"no",label:H.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=D(D({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}}const tn={key:1,style:{width:".5rem"}},nn={key:2},_e=Q(e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const n=t,o=Ce(),a=e.computed(()=>e.unref(n.actions)),l=e.computed(()=>a.value.map(i=>D({action:i},e.unref(i.getBreakpointValue(o)))));return(i,f)=>{const s=e.resolveComponent("v-icon"),b=e.resolveComponent("v-btn");return a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end",{"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,(u,B)=>(e.openBlock(),e.createBlock(b,{key:B,variant:u.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(c=>u.action.execute(c),["stop"])},{default:e.withCtx(()=>[u.icon?(e.openBlock(),e.createBlock(s,{key:0,size:"24",icon:u.icon},null,8,["icon"])):e.createCommentVNode("",!0),u.icon&&u.label?(e.openBlock(),e.createElementBlock("span",tn)):e.createCommentVNode("",!0),u.label?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(u.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-3502f34e"]]),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:{}},$(D({},R),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:f,value:s,vuetifyBindings:b}=L(o,a),u=e.computed(()=>o.allowNull&&s.value==null),B=e.computed({get(){return s.value},set(){}});function c(){const m=v.clone(s.value);m===!0?s.value=o.allowNull?null:!1:s.value=m===!1}return(m,g)=>{const w=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(w,e.mergeProps({modelValue:B.value,"onUpdate:modelValue":g[0]||(g[0]=k=>B.value=k)},e.unref(b),{density:"compact",indeterminate:u.value,"false-value":!1,"true-value":!0,onChange:c,onBlur:g[1]||(g[1]=k=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:k})=>[e.createVNode(e.unref(F),{message:k,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(k=>[e.createVNode(e.unref(z),{data:k,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","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:{}},$(D({},R),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:f,value:s,vuetifyBindings:b}=L(o,a),u=e.ref(!1),B=e.computed(()=>[c=>o.control||!c&&o.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(c)?!0:"Not a valid hex string."]);return(c,m)=>{const g=e.resolveComponent("v-color-picker"),w=e.resolveComponent("v-menu"),k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":m[2]||(m[2]=_=>e.isRef(s)?s.value=_:null)},e.unref(b),{clearable:c.allowNull,type:"text",rules:B.value,onBlur:m[3]||(m[3]=_=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:_})=>[e.createVNode(e.unref(F),{message:_,errors:e.unref(l)},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(w,{modelValue:u.value,"onUpdate:modelValue":m[1]||(m[1]=_=>u.value=_),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=_=>e.isRef(s)?s.value=_:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(_=>[e.createVNode(e.unref(z),{data:_,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","clearable","rules"])}}}),on={class:"d-flex w-100 pt-5 pl-2 pb-1"},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:{}},$(D({},R),{inputType:"datetime",displayFormatDate:"P",displayFormatTime:"p"})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,l=e.computed(()=>{var p;return(p=o.locale)!=null?p:e.unref(ye.dateTimeLocale)}),i=e.computed(()=>{var p,d;return(d=(p=l.value.options)==null?void 0:p.weekStartsOn)!=null?d:1}),{touched:f,value:s,vuetifyBindings:b}=L(o,a),{inputType:u,displayFormatDate:B,displayFormatTime:c}=e.toRefs(o),m=e.ref(""),g=e.computed({get(){return e.unref(m)==="date"},set(p){m.value=p?"date":""}}),w=e.computed({get(){return e.unref(m)==="time"},set(p){m.value=p?"time":""}}),k=p=>`${O.format(p,"yyyy-MM-dd")}T${O.format(p,"HH:mm")}:00`,_=e.ref(null);function y(p,d){if(p==null)_.value=null;else if(d===-1)if(e.unref(u)==="time")_.value=k(new Date),y(`T${p}`,1);else{const N=k(new Date(p));y(N,0),y(N,1)}else{_.value==null&&(_.value=k(new Date));const N=_.value.split(/[TZ]/g),M=p.split(/[TZ]/g);N[d]=M[d],_.value=k(new Date(`${N[0]}T${N[1].split(".")[0]}`)),e.unref(u)==="date"?s.value=N[0]:e.unref(u)==="time"?s.value=N[1]:s.value=e.unref(_)+O.format(new Date,"XXX")}}e.watch(s,p=>y(p,-1),{immediate:!0});const I=e.computed({get(){const p=e.unref(_);if(p==null)return null;const d=new Date(p);return Number.isNaN(d.getTime())?null:d},set(p){y(k(p),0)}}),x=e.computed({get(){const p=e.unref(_);return p==null?"":p.split(/[TZ]/g)[1].split(".")[0]},set(p){y(`T${p}`,1)}}),T=e.computed({get(){const p=e.unref(I);return p==null?"":O.format(p,e.unref(B),{locale:l.value})},set(p){try{const d=O.parse(p,e.unref(B),new Date,{locale:l.value});y(k(d),0)}catch(d){console.error(d)}}}),U=e.computed({get(){const p=e.unref(I);return p==null?"":O.format(p,e.unref(c),{locale:l.value})},set(p){const d=p.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(d==null)return;let N=v.toNumber(d[1]);const M=v.toNumber(d[2]);v.isNaN(N)||v.isNaN(M)||(d[3]&&d[3].toLowerCase()==="pm"&&N<13&&(N+=12),y(`T${N.toString().padStart(2,"0")}:${M.toString().padStart(2,"0")}:00`,1))}});return(p,d)=>{const N=e.resolveComponent("v-date-picker"),M=e.resolveComponent("v-confirm-edit"),J=e.resolveComponent("v-menu"),V=e.resolveComponent("v-text-field"),j=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps(o,{clearable:p.clearable,"onClick:clear":d[14]||(d[14]=P=>s.value=null),onBlur:d[15]||(d[15]=P=>f.value=!0)}),{default:e.withCtx(P=>[e.createElementVNode("div",on,[["date","datetime"].includes(e.unref(u))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:T.value,"onUpdate:modelValue":d[4]||(d[4]=C=>T.value=C),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(b).readonly,disabled:e.unref(b).disabled,name:`${e.unref(b).name}-date`},p.passthroughAttrs,{onClick:d[5]||(d[5]=C=>m.value="date"),onKeydown:d[6]||(d[6]=e.withKeys(C=>m.value="date",["space"])),onFocus:C=>P.focus(),onBlur:C=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:g.value,"onUpdate:modelValue":d[3]||(d[3]=C=>g.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:I.value,"onUpdate:modelValue":d[0]||(d[0]=C=>I.value=C),onCancel:d[1]||(d[1]=C=>m.value=""),onSave:d[2]||(d[2]=C=>m.value="")},{default:e.withCtx(({model:C,actions:q})=>[e.createVNode(N,{modelValue:C.value,"onUpdate:modelValue":ee=>C.value=ee,"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(q)))]),_:2},1032,["modelValue","onUpdate:modelValue","first-day-of-week"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},1040,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0),["time","datetime"].includes(e.unref(u))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:U.value,"onUpdate:modelValue":d[11]||(d[11]=C=>U.value=C),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(b).readonly,disabled:e.unref(b).disabled,name:`${e.unref(b).name}-time`},p.passthroughAttrs,{onClick:d[12]||(d[12]=C=>m.value="time"),onKeydown:d[13]||(d[13]=e.withKeys(C=>m.value="time",["space"])),onFocus:C=>P.focus(),onBlur:C=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:w.value,"onUpdate:modelValue":d[10]||(d[10]=C=>w.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:x.value,"onUpdate:modelValue":d[7]||(d[7]=C=>x.value=C),onCancel:d[8]||(d[8]=C=>m.value=""),onSave:d[9]||(d[9]=C=>m.value="")},{default:e.withCtx(({model:C,actions:q})=>[e.createVNode(j,{modelValue:C.value,"onUpdate:modelValue":ee=>C.value=ee,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q)))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},1040,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)])]),_:1},16,["clearable"])}}}),an={class:"d-flex w-100 pt-5 pl-2 pb-1",style:{position:"relative"}},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:{}},R),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{touched:l,value:i,vuetifyBindings:f}=L(o,a),s=e.ref(null),b=e.ref(null),u=e.ref(0),B=e.ref(Math.round(Math.random()*1e3)),c=e.ref(),m=e.computed(()=>b.value&&u.value<100),g=e.computed(()=>!c.value&&i.value?o.modelValue:"");function w(){s.value&&window.clearInterval(s.value)}function k(){w(),s.value=window.setInterval(()=>{i.value&&o.comms.touch(i.value)},60*1e3)}e.onBeforeUnmount(()=>w()),e.watch(i,x=>{x?k():w()});function _(){return le(this,null,function*(){i.value&&(yield o.comms.delete(i.value)),i.value=null,u.value=0,B.value=Math.round(Math.random()*1e3),b.value=null,c.value=null,w()})}function y(x){return le(this,null,function*(){u.value=-1,b.value=x;try{i.value=yield o.comms.upload(x,(T,U)=>{u.value=Math.round(T*100/U)}),u.value=100,k()}catch(T){throw u.value=0,b.value=null,B.value=Math.round(Math.random()*1e3),c.value=null,T}})}function I(x){x&&(Array.isArray(x)?console.error("Uploading multiple files not supported right now"):y(x))}return(x,T)=>{const U=e.resolveComponent("v-icon"),p=e.resolveComponent("v-progress-linear"),d=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps($(D({},o),{loading:m.value}),{clearable:"","onClick:clear":_,onBlur:T[1]||(T[1]=N=>l.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(U,{icon:"$file"})]),loader:e.withCtx(()=>[b.value&&u.value<100?(e.openBlock(),e.createBlock(p,{key:0,"model-value":u.value,indeterminate:u.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(N=>[e.createElementVNode("div",an,[e.createVNode(d,e.mergeProps({modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=M=>c.value=M),label:g.value,density:"compact",variant:"plain",readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:e.unref(f).name,"hide-details":!0,"show-size":!0,multiple:!1,style:b.value&&u.value<100?"visibility: hidden":"",clearable:!1},x.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":I,onFocus:M=>N.focus(),onBlur:M=>N.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])])]),_:1},16)}}}),ln={class:"container"},rn=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:{}},$(D({},R),{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,{errors:l,label:i,touched:f,value:s,vuetifyBindings:b}=L(o,a),{inputType:u,max:B,min:c,precision:m,step:g}=e.toRefs(o),w=e.computed(()=>u.value==="number"),k=e.computed(()=>w.value?{min:e.unref(c),max:e.unref(B),precision:e.unref(m),step:e.unref(g)}:{});return(_,y)=>{const I=e.resolveComponent("v-text-field"),x=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",ln,[w.value?(e.openBlock(),e.createBlock(x,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":y[2]||(y[2]=T=>e.isRef(s)?s.value=T:null)},D(D({},e.unref(b)),k.value),{density:"compact","control-variant":"stacked"}),e.createSlots({message:e.withCtx(({message:T})=>[e.createVNode(e.unref(F),{message:T,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(T=>[e.createVNode(e.unref(z),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue"])):(e.openBlock(),e.createBlock(I,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":y[0]||(y[0]=T=>e.isRef(s)?s.value=T:null)},e.unref(b),{type:e.unref(u),onBlur:y[1]||(y[1]=T=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:T})=>[e.createVNode(e.unref(F),{message:T,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(T=>[e.createVNode(e.unref(z),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","type"]))])}}}),Ne=Q(rn,[["__scopeId","data-v-a3a9a978"]]),sn={class:"editor-container"},cn={class:"editor-container__editor"},un={ref:"editorElement"},dn=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(c=>({"3d4d5a06":c.minHeight}));const a=o,l=e.ref(!1),i=h.ClassicEditor,f={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},s=[h.AccessibilityHelp,h.Alignment,h.AutoImage,h.AutoLink,h.Autosave,h.BalloonToolbar,h.BlockQuote,h.Bold,h.CloudServices,h.Essentials,h.GeneralHtmlSupport,h.Heading,h.HorizontalLine,h.ImageBlock,h.ImageCaption,h.ImageInline,h.ImageInsertViaUrl,h.ImageResize,h.ImageStyle,h.ImageToolbar,h.ImageUpload,h.Indent,h.IndentBlock,h.Italic,h.Link,h.List,h.Autoformat,h.MediaEmbed,h.Paragraph,h.PasteFromMarkdownExperimental,h.PasteFromOffice,h.SelectAll,h.Style,h.Table,h.TableCellProperties,h.TableColumnResize,h.TableProperties,h.TableToolbar,h.Undo,h.TextTransformation,h.Base64UploadAdapter],u={toolbar:f,plugins:s,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:"Type or paste your content here!",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 B=c=>{};return n({onEditorReady:B}),(c,m)=>{const g=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",cn,[e.createElementVNode("div",un,[l.value?(e.openBlock(),e.createBlock(g,{key:0,"model-value":c.modelValue,editor:e.unref(i),config:u,disabled:c.disabled,style:e.normalizeStyle(`min-height: ${c.minHeight}`),onReady:B,"onUpdate:modelValue":m[0]||(m[0]=w=>a("update:modelValue",w))},null,8,["model-value","editor","disabled","style"])):e.createCommentVNode("",!0)],512)])])}}}),Se=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:{}},$(D({},R),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{value:l,vuetifyBindings:i}=L(o,a);return(f,s)=>(e.openBlock(),e.createBlock(e.unref(ne),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(b=>[e.createVNode(dn,e.mergeProps({ref:"$editor",modelValue:e.unref(l),"onUpdate:modelValue":s[0]||(s[0]=u=>e.isRef(l)?l.value=u:null),class:{"mt-8":!!f.label},"min-height":f.minHeight,disabled:e.unref(i).disabled},f.passthroughAttrs,{onFocusin:u=>b.focus(),onFocusout:u=>b.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16))}});function mn(t){return t.map(n=>({value:n.id,title:n.text,icon:n.icon}))}function W(t,n){var o;return t==null||v.isArray(t)&&t.length===0?null:n?v.castArray(t):v.isArray(t)?(o=v.first(t))!=null?o:null:t}function oe(t,n){if(n==null)return[];const o=v.castArray(n);return t.filter(a=>o.some(l=>l===a.id))}function ae(t,n,o,a,l){var f;const i=W(t,o);if(i==null){n.value=o?[]:null;return}if(o)a?n.value=i:n.value=oe(l,i).map(s=>s.id);else if(a)n.value=i;else{const s=v.first(oe(l,i));n.value=(f=s==null?void 0:s.id)!=null?f:null}}const fn={key:0,class:"me-1"},Ie=e.defineComponent({__name:"df-select",props:e.mergeDefaults({choices:{},multiple:{type:Boolean},allowTags:{type:Boolean},allowNull:{type:Boolean},fetchChoices:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{}},$(D({},R),{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:f,cssClass:s,visibility:b}=e.toRefs(o),u=n,{errors:B,label:c,touched:m,value:g,vuetifyBindings:w}=L(o,u),k=e.ref(null),_=e.ref(!1),y=e.ref([]),I=e.computed(()=>e.unref(_)?e.unref(y):e.unref(a)||[]),x=e.ref(!1),T=e.computed(()=>mn(I.value));function U(j){u("update:modelValueDisplay",oe(I.value,j))}let p=!1;function d(j){p=!0,g.value=j,e.nextTick(()=>{p=!1})}e.watch(k,j=>{w.value.readonly||e.nextTick(()=>{const P=W(j,l.value);U(P),d(P)})},{deep:!0}),e.watch(g,j=>{if(!p){const P=W(j,l.value);ae(P,k,l.value,!1,I.value)}},{deep:!0});function N(){if(w.value.readonly||i.value)return;const j=W(k.value,l.value);ae(j,k,l.value,!1,I.value),d(j)}function M(j){let P;l.value&&Array.isArray(k.value)?P=W(k.value.filter(C=>C!==j),l.value):P=null,ae(P,k,l.value,!1,I.value),d(P)}function J(j,P){return le(this,null,function*(){if(!(a.value||o.fetchChoices===void 0)){x.value=!0;try{const C=oe(I.value,W(k.value,l.value)),q=yield o.fetchChoices(j,P);y.value=v.unionBy([...C,...q],"id"),_.value=!0}finally{x.value=!1}}})}function V(){let j=g.value;!f.value&&j==null&&T.value.length&&(j=T.value[0].value),j=W(j,l.value),ae(j,k,l.value,i.value,I.value),U(j),d(j)}return V(),o.fetchChoices!==void 0&&J(void 0,g.value).then(()=>{V()}),(j,P)=>{const C=e.resolveComponent("v-icon"),q=e.resolveComponent("v-chip"),ee=e.resolveComponent("v-list-item");return e.unref(b)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:k.value,"onUpdate:modelValue":P[0]||(P[0]=S=>k.value=S),class:[e.unref(s),{"d-none":e.unref(b)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(b)===e.unref(A.DisplayMode).INVISIBLE}],items:T.value,"return-object":!1},e.unref(w),{label:e.unref(w).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(f)||e.unref(l)&&k.value.length>1,clearable:e.unref(f),multiple:e.unref(l),loading:x.value,"hide-selected":!1,"aria-describedby":e.unref(w).helpText?`${e.unref(w).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":P[1]||(P[1]=S=>J(S,void 0)),"onUpdate:modelValue":N,"onClick:clear":P[2]||(P[2]=S=>k.value=null),onBlur:P[3]||(P[3]=S=>m.value=!0)}),e.createSlots({chip:e.withCtx(({item:S})=>[(e.openBlock(),e.createBlock(q,{key:S.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(l)?"tonal":"text",closable:e.unref(l),"onClick:close":K=>M(S.value)},{prepend:e.withCtx(()=>{var K;return[(K=S.raw)!=null&&K.icon?(e.openBlock(),e.createBlock(C,{key:0,size:"24",class:"me-1",icon:S.raw.icon},null,8,["icon"])):e.createCommentVNode("",!0)]}),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"text-body-1":!e.unref(l)})},e.toDisplayString(S.title),3)]),_:2},1032,["variant","closable","onClick:close"]))]),item:e.withCtx(({props:S,item:K})=>[e.createVNode(ee,e.normalizeProps(e.guardReactiveProps(S)),{prepend:e.withCtx(()=>{var Me;return[(Me=K.raw)!=null&&Me.icon?(e.openBlock(),e.createElementBlock("span",fn,[e.createVNode(C,{class:"action-icon",icon:K.raw.icon},null,8,["icon"])])):e.createCommentVNode("",!0)]}),_:2},1040)]),message:e.withCtx(({message:S})=>[e.createVNode(e.unref(F),{message:S,errors:e.unref(B)},null,8,["message","errors"])]),_:2},[e.unref(c).icon?{name:"label",fn:e.withCtx(S=>[e.createVNode(e.unref(z),{data:S,label:e.unref(c)},null,8,["data","label"])]),key:"0"}:void 0,j.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(S=>[e.renderSlot(j.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(S)))]),key:"1"}:void 0,j.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(S=>[e.renderSlot(j.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(S)))]),key:"2"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),pn={class:"container"},vn=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:{}},$(D({},R),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:f,value:s,vuetifyBindings:b}=L(o,a),{cssClass:u,visibility:B}=e.toRefs(o);return(c,m)=>{const g=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",pn,[e.unref(B)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(g,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=w=>e.isRef(s)?s.value=w:null),class:[e.unref(u),{"d-none":e.unref(B)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(B)===e.unref(A.DisplayMode).INVISIBLE}],rows:c.rows,"auto-grow":(c.maxRows||0)>0,"max-rows":c.maxRows},e.unref(b),{onBlur:m[1]||(m[1]=w=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:w})=>[e.createVNode(e.unref(F),{message:w,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(w=>[e.createVNode(e.unref(z),{data:w,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)])}}}),xe=Q(vn,[["__scopeId","data-v-b2f125f8"]]),Ae=Object.freeze(Object.defineProperty({__proto__:null,DfActions:_e,DfCheckbox:je,DfColor:Te,DfDateTime:Pe,DfFile:De,DfInput:Ne,DfRtfEditor:Se,DfSelect:Ie,DfTextArea:xe},Symbol.toStringTag,{value:"Module"})),$e=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:E.VAutocomplete,VBtn:X.VBtn,VCheckbox:Re.VCheckbox,VChip:Ue.VChip,VCol:fe.VCol,VColorPicker:ze.VColorPicker,VCombobox:Oe.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:fe.VRow,VSelect:Ve.VSelect,VSwitch:et.VSwitch,VTextField:nt.VTextField,VTextarea:tt.VTextarea,VTimePicker:ot.VTimePicker},Symbol.toStringTag,{value:"Module"})),hn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bn={install:(t,n)=>{var o,a;t.use(ht),t.provide(ce,n!=null?n:{}),(o=n==null?void 0:n.registerComponents)!=null&&o&&Object.entries(Ae).map(([l,i])=>t.component(l,i)),(a=n==null?void 0:n.registerVuetifyComponents)!=null&&a&&Object.entries($e).map(([l,i])=>t.component(l,i))}};r.Action=Z,r.DateTimeLocaleConfig=ye,r.DfActions=_e,r.DfCheckbox=je,r.DfColor=Te,r.DfDateTime=Pe,r.DfFile=De,r.DfInput=Ne,r.DfInputComponentProps=hn,r.DfInputComponents=Ae,r.DfLabel=z,r.DfRtfEditor=Se,r.DfSelect=Ie,r.DfTextArea=xe,r.DynamicFormsInputs=bn,r.InputBase=ne,r.Label=ge,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Be,r.ResponsiveRenderOptions=we,r.VuetifyComponents=$e,r.defaultBaseProps=R,r.defaultDisplayStyle=ue,r.getBreakpointName=ke,r.responsiveBreakpoints=de,r.translatableStrings=H,r.translateStrings=en,r.useBreakpoint=Ce,r.useInputBase=L,r.vuetifyInputsSettingsKey=ce,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
|
43
|
+
*//* istanbul ignore if -- @preserve */if(!fe.version||!fe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const ht={install(t){t.component("Ckeditor",vt)}};function bt(t){return t.one!==void 0}const yt={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=yt[t];if(typeof i=="string")a+=i;else{const m=gt(n);bt(i)?a+=i[m].replace("{{count}}",String(n)):a+=i[l][m].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}}"},_t={date:ie({formats:kt,defaultWidth:"full"}),time:ie({formats:Ct,defaultWidth:"full"}),dateTime:ie({formats:Bt,defaultWidth:"full"})},jt={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"},Tt=(t,n,o,a)=>{const l=jt[t];return typeof l=="function"?l(n):l};function G(t){return(n,o)=>{const a=o!=null&&o.context?String(o.context):"standalone";let l;if(a==="formatting"&&t.formattingValues){const m=t.defaultFormattingWidth||t.defaultWidth,s=o!=null&&o.width?String(o.width):m;l=t.formattingValues[s]||t.formattingValues[m]}else{const m=t.defaultWidth,s=o!=null&&o.width?String(o.width):t.defaultWidth;l=t.values[s]||t.values[m]}const i=t.argumentCallback?t.argumentCallback(n):n;return l[i]}}const Pt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},Dt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},Nt={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"]},It={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"]},St={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:G({values:Pt,defaultWidth:"wide"}),quarter:G({values:Dt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:G({values:Nt,defaultWidth:"wide"}),day:G({values:It,defaultWidth:"wide"}),dayPeriod:G({values:St,defaultWidth:"wide",formattingValues:xt,defaultFormattingWidth:"wide"})};function Y(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 m=i[0],s=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(s)?Mt(s,c=>c.test(m)):$t(s,c=>c.test(m));let f;f=t.valueCallback?t.valueCallback(p):p,f=o.valueCallback?o.valueCallback(f):f;const B=n.slice(m.length);return{value:f,rest:B}}}function $t(t,n){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return o}function Mt(t,n){for(let o=0;o<t.length;o++)if(n(t[o]))return o}function Lt(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 m=t.valueCallback?t.valueCallback(i[0]):i[0];m=o.valueCallback?o.valueCallback(m):m;const s=n.slice(l.length);return{value:m,rest:s}}}const Et=/^(\d+)\./i,Rt=/\d+/i,Ot={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},Ut={any:[/^pr/i,/^(po|na[sš]em)/i]},Ft={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},zt={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:Lt({matchPattern:Et,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Y({matchPatterns:Ot,defaultMatchWidth:"wide",parsePatterns:Ut,defaultParseWidth:"any"}),quarter:Y({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Y({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Y({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:wt,formatLong:_t,formatRelative:Tt,localize:At,match:Yt,options:{weekStartsOn:1,firstWeekContainsDate:1}},be={dateTimeLocale:e.ref(Qt),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}},Zt={class:"label"},Jt=e.defineComponent({__name:"df-label",props:{data:{},label:{}},setup(t){return(n,o)=>{const a=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",Zt,[n.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(e.unref(z.CachedIcon),{key:0,name:n.label.icon,size:"1.25em"},null,8,["name"])):n.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(a,{key:1,class:"icon",src:n.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.label.iconComponent),{key:2,src:n.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.data?n.data.label:n.label.text),1)])}}}),Q=(t,n)=>{const o=t.__vccOpts||t;for(const[a,l]of n)o[a]=l;return o},U=Q(Jt,[["__scopeId","data-v-6d63a202"]]),se=Symbol("vuetifyInputsSettingsKey");class ye{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const E={enabled:void 0,clearable:!0};function L(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(y){t.control&&(t.control.value=y),t.modelValue===void 0&&(a.value=y),n("update:modelValue",y)}});if(t.control&&!(t.control instanceof A.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.computed({get(){return t.control.touched},set(y){t.control.touched=y}}),m=t.control?i:e.ref(!1),s=e.computed(()=>t.control?t.control.valid:!0),p=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(y=>new A.ValidationErrorRenderContent(y))),f=e.computed(()=>m.value&&p.value.length>0?" ":void 0),B=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),c=e.computed(()=>t.control?t.control.visibility:t.visibility||A.DisplayMode.FULL),d=e.computed(()=>b.isString(t.label||"")?new ye(t.label||""):t.label),g=e.computed(()=>t.placeholder||""),w=e.computed(()=>t.helpText||""),k=e.computed(()=>t.hint||""),_=e.computed(()=>t.cssClass||"");return{value:l,valid:s,enabled:B,errors:p,visibility:c,label:d,touched:m,vuetifyBindings:e.computed(()=>{var y,S;return N({name:(y=t.control)==null?void 0:y.fieldName,class:_.value,density:"default",variant:(S=o.defaultVariant)!=null?S:"underlined",label:d.value.text,messages:f.value,errorMessages:f.value,readonly:!B.value,disabled:!B.value,placeholder:g.value,"persistent-placeholder":!b.isEmpty(g.value),hint:k.value,persistentHint:!0,hideDetails:"auto",helpText:w.value},t.passthroughAttrs||{})})}}const F=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const n=t,o=()=>{if(n.message!==" ")return e.h("span",{class:n.classes},n.message);const a=[];return n.errors.forEach(l=>{switch(l.componentName){case"template":a.push(e.h("div",{class:n.classes},l.componentBody));break;case"vue-markdown":a.push(e.h(ae,{class:[n.classes,"df-messages-widget-markdown"],source:l.componentBindings.source}));break;default:a.push(e.h(l.componentName,$(N({class:n.classes},l.componentBindings),{innerHTML:l.componentBody})));break}}),a};return(a,l)=>(e.openBlock(),e.createBlock(o))}}),Vt={class:"d-flex w-100 style-resetting"},ee=Q(e.defineComponent({__name:"input-base",props:{control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},loading:{type:Boolean}},emits:["update:modelValue","click:clear","blur"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,value:m,touched:s,visibility:p,vuetifyBindings:f}=L(o,a),B=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(m))),c=e.ref(!1);function d(g){c.value=g,g||(s.value=!0,a("blur"))}return(g,w)=>{const k=e.resolveComponent("v-field"),_=e.resolveComponent("v-input");return e.unref(p)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(_,{key:0,name:e.unref(f).name,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([g.cssClass,{"d-none":e.unref(p)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(A.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:y})=>[e.createVNode(F,{message:y,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(k,{variant:e.unref(f).variant,label:e.unref(f).label,disabled:e.unref(f).disabled,clearable:B.value,"persistent-clear":!0,dirty:!!e.unref(m),active:c.value,loading:g.loading,"onClick:clear":w[0]||(w[0]=y=>a("click:clear")),"onUpdate:focused":w[1]||(w[1]=y=>d(y))},e.createSlots({default:e.withCtx(y=>[e.createElementVNode("div",Vt,[e.renderSlot(g.$slots,"default",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)])]),loader:e.withCtx(y=>[e.renderSlot(g.$slots,"loader",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(y=>[e.createVNode(U,{data:y,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0,g.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(y=>[e.renderSlot(g.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),key:"1"}:void 0]),1032,["variant","label","disabled","clearable","dirty","active","loading"])]),_:2},[g.$slots.prepend?{name:"prepend",fn:e.withCtx(y=>[e.renderSlot(g.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(y)),void 0,!0)]),key:"0"}:void 0]),1032,["name","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-3689b7f9"]]),H={Yes:"Yes",No:"No",Close:"Close"};function en(t){Object.keys(H).forEach(n=>{H[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){Le(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 m of a)(i==null?void 0:i[m])!=null&&(o[m]=i[m]);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 A.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=$(N({},n!=null?n:{}),{value:{name:"close",label:H.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=N(N({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static yesAction(n){var a;const o=$(N({},n!=null?n:{}),{value:{name:"yes",label:H.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=N(N({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}static noAction(n){var a;const o=$(N({},n!=null?n:{}),{value:{name:"no",label:H.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=N(N({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),Z.create(o)}}const tn={key:1,style:{width:"0.5rem"}},nn={key:2},Be=Q(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=>N({action:i},e.unref(i.getBreakpointValue(o)))));return(i,m)=>{const s=e.resolveComponent("v-btn");return a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end",{"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,(p,f)=>(e.openBlock(),e.createBlock(s,{key:f,variant:p.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(B=>p.action.execute(B),["stop"])},{default:e.withCtx(()=>[p.icon?(e.openBlock(),e.createBlock(e.unref(z.CachedIcon),{key:0,name:p.icon},null,8,["name"])):e.createCommentVNode("",!0),p.icon&&p.label?(e.openBlock(),e.createElementBlock("span",tn)):e.createCommentVNode("",!0),p.label?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(p.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-554a12b4"]]),_e=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:{}},$(N({},E),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:m,value:s,vuetifyBindings:p}=L(o,a),f=e.computed(()=>o.allowNull&&s.value==null),B=e.computed({get(){return s.value},set(){}});function c(){const d=b.clone(s.value);d===!0?s.value=o.allowNull?null:!1:s.value=d===!1}return(d,g)=>{const w=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(w,e.mergeProps({modelValue:B.value,"onUpdate:modelValue":g[0]||(g[0]=k=>B.value=k)},e.unref(p),{density:"compact",indeterminate:f.value,"false-value":!1,"true-value":!0,onChange:c,onBlur:g[1]||(g[1]=k=>m.value=!0)}),e.createSlots({message:e.withCtx(({message:k})=>[e.createVNode(e.unref(F),{message:k,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(k=>[e.createVNode(e.unref(U),{data:k,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","indeterminate"])}}}),je=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:{}},$(N({},E),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:m,value:s,vuetifyBindings:p}=L(o,a),f=e.ref(!1),B=e.computed(()=>[c=>o.control||!c&&o.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(c)?!0:"Not a valid hex string."]);return(c,d)=>{const g=e.resolveComponent("v-color-picker"),w=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]=_=>e.isRef(s)?s.value=_:null)},e.unref(p),{clearable:c.allowNull,type:"text",rules:B.value,onBlur:d[3]||(d[3]=_=>m.value=!0)}),e.createSlots({message:e.withCtx(({message:_})=>[e.createVNode(e.unref(F),{message:_,errors:e.unref(l)},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(w,{modelValue:f.value,"onUpdate:modelValue":d[1]||(d[1]=_=>f.value=_),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=_=>e.isRef(s)?s.value=_:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(_=>[e.createVNode(e.unref(U),{data:_,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","clearable","rules"])}}}),on={class:"d-flex w-100 pt-5 pl-2 pb-1"},Te=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:{}},$(N({},E),{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(be.dateTimeLocale)}),i=e.computed(()=>{var h,u;return(u=(h=l.value.options)==null?void 0:h.weekStartsOn)!=null?u:1}),{touched:m,value:s,vuetifyBindings:p}=L(o,a),{inputType:f,displayFormatDate:B,displayFormatTime:c}=e.toRefs(o),d=e.ref(""),g=e.computed({get(){return e.unref(d)==="date"},set(h){d.value=h?"date":""}}),w=e.computed({get(){return e.unref(d)==="time"},set(h){d.value=h?"time":""}}),k=h=>`${M.format(h,"yyyy-MM-dd")}T${M.format(h,"HH:mm")}:00`,_=e.ref(null);function y(h,u){if(h==null)_.value=null;else if(u===-1)if(e.unref(f)==="time")_.value=k(new Date),y(`T${h}`,1);else{const I=k(new Date(h));y(I,0),y(I,1)}else{_.value==null&&(_.value=k(new Date));const I=_.value.split(/[TZ]/g),O=h.split(/[TZ]/g);I[u]=O[u],_.value=k(new Date(`${I[0]}T${I[1].split(".")[0]}`)),e.unref(f)==="date"?s.value=I[0]:e.unref(f)==="time"?s.value=I[1]:s.value=e.unref(_)+M.format(new Date,"XXX")}}e.watch(s,h=>y(h,-1),{immediate:!0});const S=e.computed({get(){const h=e.unref(_);if(h==null)return null;const u=new Date(h);return Number.isNaN(u.getTime())?null:u},set(h){y(k(h),0)}}),x=e.computed({get(){const h=e.unref(_);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){y(`T${h}`,1)}}),j=e.computed({get(){const h=e.unref(S);return h==null?"":M.format(h,e.unref(B),{locale:l.value})},set(h){try{const u=M.parse(h,e.unref(B),new Date,{locale:l.value});y(k(u),0)}catch(u){console.error(u)}}}),R=e.computed({get(){const h=e.unref(S);return h==null?"":M.format(h,e.unref(c),{locale:l.value})},set(h){const u=h.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(u==null)return;let I=b.toNumber(u[1]);const O=b.toNumber(u[2]);b.isNaN(I)||b.isNaN(O)||(u[3]&&u[3].toLowerCase()==="pm"&&I<13&&(I+=12),y(`T${I.toString().padStart(2,"0")}:${O.toString().padStart(2,"0")}:00`,1))}});return(h,u)=>{const I=e.resolveComponent("v-date-picker"),O=e.resolveComponent("v-confirm-edit"),J=e.resolveComponent("v-menu"),V=e.resolveComponent("v-text-field"),T=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(ee),e.mergeProps(o,{clearable:h.clearable,"onClick:clear":u[14]||(u[14]=P=>s.value=null),onBlur:u[15]||(u[15]=P=>m.value=!0)}),{default:e.withCtx(P=>[e.createElementVNode("div",on,[["date","datetime"].includes(e.unref(f))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:j.value,"onUpdate:modelValue":u[4]||(u[4]=C=>j.value=C),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(p).readonly,disabled:e.unref(p).disabled,name:`${e.unref(p).name}-date`},h.passthroughAttrs,{onClick:u[5]||(u[5]=C=>d.value="date"),onKeydown:u[6]||(u[6]=e.withKeys(C=>d.value="date",["space"])),onFocus:C=>P.focus(),onBlur:C=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:g.value,"onUpdate:modelValue":u[3]||(u[3]=C=>g.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:S.value,"onUpdate:modelValue":u[0]||(u[0]=C=>S.value=C),onCancel:u[1]||(u[1]=C=>d.value=""),onSave:u[2]||(u[2]=C=>d.value="")},{default:e.withCtx(({model:C,actions:q})=>[e.createVNode(I,{modelValue:C.value,"onUpdate:modelValue":D=>C.value=D,"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(q)))]),_: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(f))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:R.value,"onUpdate:modelValue":u[11]||(u[11]=C=>R.value=C),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(p).readonly,disabled:e.unref(p).disabled,name:`${e.unref(p).name}-time`},h.passthroughAttrs,{onClick:u[12]||(u[12]=C=>d.value="time"),onKeydown:u[13]||(u[13]=e.withKeys(C=>d.value="time",["space"])),onFocus:C=>P.focus(),onBlur:C=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:w.value,"onUpdate:modelValue":u[10]||(u[10]=C=>w.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:x.value,"onUpdate:modelValue":u[7]||(u[7]=C=>x.value=C),onCancel:u[8]||(u[8]=C=>d.value=""),onSave:u[9]||(u[9]=C=>d.value="")},{default:e.withCtx(({model:C,actions:q})=>[e.createVNode(T,{modelValue:C.value,"onUpdate:modelValue":D=>C.value=D,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q)))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)])]),_:1},16,["clearable"])}}}),an={class:"d-flex w-100 pt-5 pl-2 pb-1",style:{position:"relative"}},Pe=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:{}},E),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{touched:l,value:i,vuetifyBindings:m}=L(o,a),s=e.ref(null),p=e.ref(null),f=e.ref(0),B=e.ref(Math.round(Math.random()*1e3)),c=e.ref(),d=e.computed(()=>p.value&&f.value<100),g=e.computed(()=>!c.value&&i.value?o.modelValue:"");function w(){s.value&&window.clearInterval(s.value)}function k(){w(),s.value=window.setInterval(()=>{i.value&&o.comms.touch(i.value)},60*1e3)}e.onBeforeUnmount(()=>w()),e.watch(i,x=>{x?k():w()});function _(){return oe(this,null,function*(){i.value&&(yield o.comms.delete(i.value)),i.value=null,f.value=0,B.value=Math.round(Math.random()*1e3),p.value=null,c.value=null,w()})}function y(x){return oe(this,null,function*(){f.value=-1,p.value=x;try{i.value=yield o.comms.upload(x,(j,R)=>{f.value=Math.round(j*100/R)}),f.value=100,k()}catch(j){throw f.value=0,p.value=null,B.value=Math.round(Math.random()*1e3),c.value=null,j}})}function S(x){x&&(Array.isArray(x)?console.error("Uploading multiple files not supported right now"):y(x))}return(x,j)=>{const R=e.resolveComponent("v-progress-linear"),h=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ee),e.mergeProps($(N({},o),{loading:d.value}),{clearable:"","onClick:clear":_,onBlur:j[1]||(j[1]=u=>l.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(e.unref(z.CachedIcon),{name:"mdi-paperclip"})]),loader:e.withCtx(()=>[p.value&&f.value<100?(e.openBlock(),e.createBlock(R,{key:0,"model-value":f.value,indeterminate:f.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(u=>[e.createElementVNode("div",an,[e.createVNode(h,e.mergeProps({modelValue:c.value,"onUpdate:modelValue":j[0]||(j[0]=I=>c.value=I),label:g.value,density:"compact",variant:"plain",readonly:e.unref(m).readonly,disabled:e.unref(m).disabled,name:e.unref(m).name,"hide-details":!0,"show-size":!0,multiple:!1,style:p.value&&f.value<100?"visibility: hidden":"",clearable:!1},x.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":S,onFocus:I=>u.focus(),onBlur:I=>u.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])])]),_:1},16)}}}),ln={class:"container"},rn=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:{}},$(N({},E),{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,{errors:l,label:i,touched:m,value:s,vuetifyBindings:p}=L(o,a),{inputType:f,max:B,min:c,precision:d,step:g}=e.toRefs(o),w=e.computed(()=>f.value==="number"),k=e.computed(()=>w.value?{min:e.unref(c),max:e.unref(B),precision:e.unref(d),step:e.unref(g)}:{});return(_,y)=>{const S=e.resolveComponent("v-text-field"),x=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",ln,[w.value?(e.openBlock(),e.createBlock(x,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":y[2]||(y[2]=j=>e.isRef(s)?s.value=j:null)},N(N({},e.unref(p)),k.value),{density:"compact","control-variant":"stacked"}),e.createSlots({message:e.withCtx(({message:j})=>[e.createVNode(e.unref(F),{message:j,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(j=>[e.createVNode(e.unref(U),{data:j,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue"])):(e.openBlock(),e.createBlock(S,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":y[0]||(y[0]=j=>e.isRef(s)?s.value=j:null)},e.unref(p),{type:e.unref(f),onBlur:y[1]||(y[1]=j=>m.value=!0)}),e.createSlots({message:e.withCtx(({message:j})=>[e.createVNode(e.unref(F),{message:j,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(j=>[e.createVNode(e.unref(U),{data:j,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","type"]))])}}}),De=Q(rn,[["__scopeId","data-v-3937c3c8"]]),sn={class:"editor-container"},cn={class:"editor-container__editor"},un={ref:"editorElement"},dn=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(c=>({"5f8a2e8c":c.minHeight}));const a=o,l=e.ref(!1),i=v.ClassicEditor,m={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},s=[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:m,plugins:s,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 B=c=>{};return n({onEditorReady:B}),(c,d)=>{const g=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",cn,[e.createElementVNode("div",un,[l.value?(e.openBlock(),e.createBlock(g,{key:0,"model-value":c.modelValue,editor:e.unref(i),config:f,disabled:c.disabled,style:e.normalizeStyle(`min-height: ${c.minHeight}`),onReady:B,"onUpdate:modelValue":d[0]||(d[0]=w=>a("update:modelValue",w))},null,8,["model-value","editor","disabled","style"])):e.createCommentVNode("",!0)],512)])])}}}),Ne=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:{}},$(N({},E),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{value:l,vuetifyBindings:i}=L(o,a);return(m,s)=>(e.openBlock(),e.createBlock(e.unref(ee),e.mergeProps(o,{class:"ck-editor-custom"}),{default:e.withCtx(p=>[e.createVNode(dn,e.mergeProps({ref:"$editor",modelValue:e.unref(l),"onUpdate:modelValue":s[0]||(s[0]=f=>e.isRef(l)?l.value=f:null),class:{"mt-6":!!m.label},"min-height":m.minHeight,disabled:e.unref(i).disabled,placeholder:"dfsjghdf"},m.passthroughAttrs,{onFocusin:f=>p.focus(),onFocusout:f=>p.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16))}});function mn(t){return t.map(n=>({value:n.id,title:n.text,icon:n.icon}))}function W(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 te(t,n){if(n==null)return[];const o=b.castArray(n);return t.filter(a=>o.some(l=>l===a.id))}function ne(t,n,o,a,l){var m;const i=W(t,o);if(i==null){n.value=o?[]:null;return}if(o)a?n.value=i:n.value=te(l,i).map(s=>s.id);else if(a)n.value=i;else{const s=b.first(te(l,i));n.value=(m=s==null?void 0:s.id)!=null?m:null}}const fn={key:0,class:"me-1"},Ie=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:{}},$(N({},E),{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:m,cssClass:s,visibility:p}=e.toRefs(o),f=n,{errors:B,label:c,touched:d,value:g,vuetifyBindings:w}=L(o,f),k=e.ref(null),_=e.ref(!1),y=e.ref([]),S=e.computed(()=>e.unref(_)?e.unref(y):e.unref(a)||[]),x=e.ref(!1),j=e.computed(()=>mn(S.value));j.value&&o.fetchChoices!==void 0&&console.warn("Both options and fetchChoices are set. Only one of them should be set.");function R(T){f("update:modelValueDisplay",te(S.value,T))}let h=!1;function u(T){h=!0,g.value=T,e.nextTick(()=>{h=!1})}e.watch(k,T=>{w.value.readonly||e.nextTick(()=>{const P=W(T,l.value);R(P),u(P)})},{deep:!0}),e.watch(g,T=>{if(!h){const P=W(T,l.value);ne(P,k,l.value,!1,S.value)}},{deep:!0});function I(){if(w.value.readonly||i.value)return;const T=W(k.value,l.value);ne(T,k,l.value,!1,S.value),u(T)}function O(T){let P;l.value&&Array.isArray(k.value)?P=W(k.value.filter(C=>C!==T),l.value):P=null,ne(P,k,l.value,!1,S.value),u(P)}function J(T,P){return oe(this,null,function*(){if(!(a.value||o.fetchChoices===void 0)){x.value=!0;try{const C=te(S.value,W(k.value,l.value)),q=yield o.fetchChoices(T,P);y.value=b.unionBy([...C,...q],"id"),_.value=!0}finally{x.value=!1}}})}function V(){let T=g.value;!m.value&&T==null&&j.value.length&&(T=j.value[0].value),T=W(T,l.value),ne(T,k,l.value,i.value,S.value),R(T),u(T)}return V(),o.fetchChoices!==void 0&&J(void 0,g.value).then(()=>{V()}),(T,P)=>{const C=e.resolveComponent("v-chip"),q=e.resolveComponent("v-list-item");return e.unref(p)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:k.value,"onUpdate:modelValue":P[0]||(P[0]=D=>k.value=D),class:[e.unref(s),{"d-none":e.unref(p)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(A.DisplayMode).INVISIBLE}],items:j.value,"return-object":!1},e.unref(w),{label:e.unref(w).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(m)||e.unref(l)&&k.value.length>1,clearable:e.unref(m),multiple:e.unref(l),loading:x.value,"hide-selected":!1,"aria-describedby":e.unref(w).helpText?`${e.unref(w).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":P[1]||(P[1]=D=>J(D,void 0)),"onUpdate:modelValue":I,"onClick:clear":P[2]||(P[2]=D=>k.value=null),onBlur:P[3]||(P[3]=D=>d.value=!0)}),e.createSlots({chip:e.withCtx(({item:D})=>[(e.openBlock(),e.createBlock(C,{key:D.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(l)?"tonal":"text",closable:e.unref(l),"onClick:close":K=>O(D.value)},{prepend:e.withCtx(()=>{var K;return[(K=D.raw)!=null&&K.icon?(e.openBlock(),e.createBlock(e.unref(z.CachedIcon),{key:0,class:"me-1",name:D.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(D.title),3)]),_:2},1032,["variant","closable","onClick:close"]))]),item:e.withCtx(({props:D,item:K})=>[e.createVNode(q,e.normalizeProps(e.guardReactiveProps(D)),{prepend:e.withCtx(()=>{var $e;return[($e=K.raw)!=null&&$e.icon?(e.openBlock(),e.createElementBlock("span",fn,[e.createVNode(e.unref(z.CachedIcon),{class:"action-icon",name:K.raw.icon},null,8,["name"])])):e.createCommentVNode("",!0)]}),_:2},1040)]),message:e.withCtx(({message:D})=>[e.createVNode(e.unref(F),{message:D,errors:e.unref(B)},null,8,["message","errors"])]),_:2},[e.unref(c).icon?{name:"label",fn:e.withCtx(D=>[e.createVNode(e.unref(U),{data:D,label:e.unref(c)},null,8,["data","label"])]),key:"0"}:void 0,T.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(D=>[e.renderSlot(T.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(D)))]),key:"1"}:void 0,T.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(D=>[e.renderSlot(T.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(D)))]),key:"2"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),pn={class:"container"},vn=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:{}},$(N({},E),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,touched:m,value:s,vuetifyBindings:p}=L(o,a),{cssClass:f,visibility:B}=e.toRefs(o);return(c,d)=>{const g=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",pn,[e.unref(B)!==e.unref(A.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(g,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=w=>e.isRef(s)?s.value=w:null),class:[e.unref(f),{"d-none":e.unref(B)===e.unref(A.DisplayMode).HIDDEN,invisible:e.unref(B)===e.unref(A.DisplayMode).INVISIBLE}],rows:c.rows,"auto-grow":(c.maxRows||0)>0,"max-rows":c.maxRows},e.unref(p),{onBlur:d[1]||(d[1]=w=>m.value=!0)}),e.createSlots({message:e.withCtx(({message:w})=>[e.createVNode(e.unref(F),{message:w,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(w=>[e.createVNode(e.unref(U),{data:w,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)])}}}),Se=Q(vn,[["__scopeId","data-v-d9284a00"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Be,DfCheckbox:_e,DfColor:je,DfDateTime:Te,DfFile:Pe,DfInput:De,DfRtfEditor:Ne,DfSelect:Ie,DfTextArea:Se},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:X.VAutocomplete,VBtn:Ee.VBtn,VCheckbox:Re.VCheckbox,VChip:Oe.VChip,VCol:me.VCol,VColorPicker:Fe.VColorPicker,VCombobox:Ue.VCombobox,VConfirmEdit:ze.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"})),hn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),bn={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=be,r.DfActions=Be,r.DfCheckbox=_e,r.DfColor=je,r.DfDateTime=Te,r.DfFile=Pe,r.DfInput=De,r.DfInputComponentProps=hn,r.DfInputComponents=xe,r.DfLabel=U,r.DfRtfEditor=Ne,r.DfSelect=Ie,r.DfTextArea=Se,r.DynamicFormsInputs=bn,r.InputBase=ee,r.Label=ye,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Ce,r.ResponsiveRenderOptions=ge,r.VuetifyComponents=Ae,r.defaultBaseProps=E,r.defaultDisplayStyle=ce,r.getBreakpointName=we,r.responsiveBreakpoints=ue,r.translatableStrings=H,r.translateStrings=en,r.useBreakpoint=ke,r.useInputBase=L,r.vuetifyInputsSettingsKey=se,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
44
44
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.umd.cjs.map
|