@dynamicforms/vuetify-inputs 0.5.6 → 0.5.7
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/dynamicforms-vuetify-inputs.js +681 -682
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +6 -6
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),require("vue-ionicon"),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/labs/VTimePicker")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-ionicon","@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/labs/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-ionicon"],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/labs/VTimePicker"]))})(this,function(r,e,b,X,x,le,
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),require("vue-ionicon"),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/labs/VTimePicker")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-ionicon","@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/labs/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-ionicon"],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/labs/VTimePicker"]))})(this,function(r,e,b,X,x,ae,le,L,v,G,Ee,Re,Ue,Oe,Fe,ze,We,qe,He,me,Ke,Xe,Ge,Ye,Qe,Ze,Je,Ve,et,tt,nt,ot){"use strict";var gn=Object.defineProperty,wn=Object.defineProperties;var kn=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable;var de=(r,e,b)=>e in r?gn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:b}):r[e]=b,N=(r,e)=>{for(var b in e||(e={}))Cn.call(e,b)&&de(r,b,e[b]);if(Me)for(var b of Me(e))Bn.call(e,b)&&de(r,b,e[b]);return r},$=(r,e)=>wn(r,kn(e));var Le=(r,e,b)=>de(r,typeof e!="symbol"?e+"":e,b);var oe=(r,e,b)=>new Promise((X,x)=>{var ae=v=>{try{L(b.next(v))}catch(G){x(G)}},le=v=>{try{L(b.throw(v))}catch(G){x(G)}},L=v=>v.done?X(v.value):Promise.resolve(v.value).then(ae,le);L((b=b.apply(r,e)).next())});function at(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const fe=at(e);/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*//**
|
|
@@ -7,7 +7,7 @@
|
|
|
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
|
|
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
13
|
*/function pe(t){return!!t&&/^\d+\.\d+\.\d+/.test(t)}/**
|
|
@@ -16,7 +16,7 @@
|
|
|
16
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(!pe(t))throw new Error(`Invalid semantic version: ${t||"<blank>"}.`);const[n,o,
|
|
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
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}}/**
|
|
@@ -31,14 +31,14 @@
|
|
|
31
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(
|
|
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 he(t.licenseKey)?t:
|
|
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,f=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 d(){const c=window.CKEDITOR_VERSION;if(!c)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[m]=c.split(".").map(Number);m>=42||c.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function _(c){const m=b.debounce(y=>{if(l.disableTwoWayDataBinding)return;const g=p.value=c.data.get();i("update:modelValue",g,y,c),i("input",g,y,c)},pt,{leading:!0});c.model.document.on("change:data",m),c.editing.view.document.on("focus",y=>{i("focus",y,c)}),c.editing.view.document.on("blur",y=>{i("blur",y,c)})}return d(),e.onMounted(()=>{const c=ft(Object.assign({},l.config));a.value&&(c.initialData=a.value),l.editor.create(f.value,c).then(m=>{s.value=e.markRaw(m),_(m),a.value!==c.initialData&&m.data.set(a.value),l.disabled&&m.enableReadOnlyMode(re),i("ready",m)}).catch(m=>{console.error(m)})}),e.onBeforeUnmount(()=>{s.value&&(s.value.destroy(),s.value=void 0),i("destroy")}),(c,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.tagName),{ref_key:"element",ref:f},null,512))}});/**
|
|
41
41
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
42
42
|
* For licensing, see LICENSE.md.
|
|
43
|
-
*//* istanbul ignore if -- @preserve */if(!fe.version||!fe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const ht={install(t){t.component("Ckeditor",vt)}};function ie(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}function Y(t){return(n,o)=>{const l=o!=null&&o.context?String(o.context):"standalone";let a;if(l==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,s=o!=null&&o.width?String(o.width):f;a=t.formattingValues[s]||t.formattingValues[f]}else{const f=t.defaultWidth,s=o!=null&&o.width?String(o.width):t.defaultWidth;a=t.values[s]||t.values[f]}const i=t.argumentCallback?t.argumentCallback(n):n;return a[i]}}function Q(t){return(n,o={})=>{const l=o.width,a=l&&t.matchPatterns[l]||t.matchPatterns[t.defaultMatchWidth],i=n.match(a);if(!i)return null;const f=i[0],s=l&&t.parsePatterns[l]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(s)?yt(s,c=>c.test(f)):bt(s,c=>c.test(f));let d;d=t.valueCallback?t.valueCallback(p):p,d=o.valueCallback?o.valueCallback(d):d;const _=n.slice(f.length);return{value:d,rest:_}}}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 l=n.match(t.matchPattern);if(!l)return null;const a=l[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(a.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 l="",a="present";o!=null&&o.addSuffix&&(o.comparison&&o.comparison>0?(a="future",l="čez "):(a="past",l="pred "));const i=kt[t];if(typeof i=="string")l+=i;else{const f=Ct(n);wt(i)?l+=i[f].replace("{{count}}",String(n)):l+=i[a][f].replace("{{count}}",String(n))}return l},_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:ie({formats:_t,defaultWidth:"full"}),time:ie({formats:jt,defaultWidth:"full"}),dateTime:ie({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"},St=(t,n,o,l)=>{const a=Dt[t];return typeof a=="function"?a(n):a},Nt={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"}},Et={ordinalNumber:(t,n)=>Number(t)+".",era:Y({values:Nt,defaultWidth:"wide"}),quarter:Y({values:It,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Y({values:xt,defaultWidth:"wide"}),day:Y({values:At,defaultWidth:"wide"}),dayPeriod:Y({values:$t,defaultWidth:"wide",formattingValues:Mt,defaultFormattingWidth:"wide"})},Lt=/^(\d+)\./i,Rt=/\d+/i,Ut={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},Ot={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:gt({matchPattern:Lt,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Q({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:Q({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Q({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Q({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:Bt,formatLong:Pt,formatRelative:St,localize:Et,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 l=e.resolveComponent("v-icon"),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(l,{key:0,icon:n.label.icon,size:"1.25em"},null,8,["icon"])):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)])}}}),z=(t,n)=>{const o=t.__vccOpts||t;for(const[l,a]of n)o[l]=a;return o},O=z(Jt,[["__scopeId","data-v-0034f29f"]]),se=Symbol("vuetifyInputsSettingsKey");class ye{constructor(n,o,l="v-icon"){this.text=n,this.icon=o,this.iconComponent=l}}const R={enabled:void 0,clearable:!0};function L(t,n){const o=e.inject(se,{}),l=e.ref(null),a=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?l.value:t.modelValue},set(C){t.control&&(t.control.value=C),t.modelValue===void 0&&(l.value=C),n("update:modelValue",C)}});if(t.control&&!(t.control instanceof x.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.ref(!1),f=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(C=>new x.ValidationErrorRenderContent(C))),p=e.computed(()=>i.value&&s.value.length>0?" ":void 0),d=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),_=e.computed(()=>t.control?t.control.visibility:t.visibility||x.DisplayMode.FULL),c=e.computed(()=>b.isString(t.label||"")?new ye(t.label||""):t.label),m=e.computed(()=>t.placeholder||""),y=e.computed(()=>t.helpText||""),g=e.computed(()=>t.hint||""),w=e.computed(()=>t.cssClass||"");return{value:a,valid:f,enabled:d,errors:s,visibility:_,label:c,touched:i,vuetifyBindings:e.computed(()=>{var C,k;return S({name:(C=t.control)==null?void 0:C.fieldName,class:w.value,density:"default",variant:(k=o.defaultVariant)!=null?k:"underlined",label:c.value.text,messages:p.value,errorMessages:p.value,readonly:!d.value,disabled:!d.value,placeholder:m.value,"persistent-placeholder":!b.isEmpty(m.value),hint:g.value,persistentHint:!0,hideDetails:"auto",helpText:y.value},t.passthroughAttrs||{})})}}const Vt={key:0,class:"custom-error-display text-error"},en={key:0},tn={key:1},F=z(e.defineComponent({__name:"messages-widget",props:{errors:{},message:{}},setup(t){return(n,o)=>n.message===" "?(e.openBlock(),e.createElementBlock("div",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.errors,(l,a)=>{var i;return e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass({"first-error":a===0,"last-error":a===n.errors.length-1})},[l.componentName==="template"?(e.openBlock(),e.createElementBlock("div",en,e.toDisplayString(l.componentBody),1)):l.componentName==="vue-markdown"?(e.openBlock(),e.createBlock(e.unref(le),{key:1,source:(i=l.componentBindings)==null?void 0:i.source},null,8,["source"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.componentName),e.mergeProps({key:2,ref_for:!0},l.componentBindings),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.componentBody),1)]),_:2},1040))],2)}),128))])):(e.openBlock(),e.createElementBlock("span",tn,e.toDisplayString(n.message),1))}}),[["__scopeId","data-v-ff7a8b63"]]),nn={class:"d-flex w-100 style-resetting"},ee=z(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,l=n,{errors:a,label:i,value:f,touched:s,visibility:p,vuetifyBindings:d}=L(o,l),_=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(f))),c=e.ref(!1);function m(y){c.value=y,y||(s.value=!0,l("blur"))}return(y,g)=>{const w=e.resolveComponent("v-field"),C=e.resolveComponent("v-input");return e.unref(p)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(C,{key:0,name:e.unref(d).name,hint:e.unref(d).hint,"persistent-hint":e.unref(d).persistentHint,"hide-details":e.unref(d).hideDetails,"error-messages":e.unref(d).errorMessages,class:e.normalizeClass([y.cssClass,{"d-none":e.unref(p)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(x.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:k})=>[e.createVNode(F,{message:k,errors:e.unref(a)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(w,{variant:e.unref(d).variant,label:e.unref(d).label,disabled:e.unref(d).disabled,clearable:_.value,"persistent-clear":!0,dirty:!!e.unref(f),active:c.value,loading:y.loading,"onClick:clear":g[0]||(g[0]=k=>l("click:clear")),"onUpdate:focused":g[1]||(g[1]=k=>m(k))},e.createSlots({default:e.withCtx(k=>[e.createElementVNode("div",nn,[e.renderSlot(y.$slots,"default",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)])]),loader:e.withCtx(k=>[e.renderSlot(y.$slots,"loader",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(k=>[e.createVNode(O,{data:k,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0,y.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(k=>[e.renderSlot(y.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)]),key:"1"}:void 0]),1032,["variant","label","disabled","clearable","dirty","active","loading"])]),_:2},[y.$slots.prepend?{name:"prepend",fn:e.withCtx(k=>[e.renderSlot(y.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(k)),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 on(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(a){return a.toUpperCase()==="BUTTON"?0:a.toUpperCase()==="TEXT"?1:ce}t.fromString=n;function o(a){const i=typeof a=="number"?a:t.fromString(a);return Object.values(t).includes(i)?i:ce}t.fromAny=o;function l(a){const i=typeof a=="number"?a:t.fromString(a);return Object.values(t).includes(i)}t.isDefined=l})(r.ActionDisplayStyle||(r.ActionDisplayStyle={})),Object.freeze(r.ActionDisplayStyle);const ue=["xs","sm","md","lg","xl"];class ge{constructor(n){Ee(this,"_value");this._value=this.cleanBreakpoint(n,!0),n&&ue.forEach(o=>{const l=this.cleanBreakpoint(n[o]);l&&(this._value[o]=l)})}getOptionsForBreakpoint(n){const o=this.cleanBreakpoint(this._value),l=Object.keys(o);for(const a of ue){const i=this._value[a];for(const f of l)(i==null?void 0:i[f])!=null&&(o[f]=i[f]);if(a===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=ae.useDisplay();return e.computed(()=>we(t))}class Ce extends ge{cleanBreakpoint(n,o=!1){if((!n||!b.isObjectLike(n))&&!o)return null;const l={};return o&&(l.renderAs=r.ActionDisplayStyle.BUTTON,l.showLabel=!0,l.showIcon=!0),n&&(n.renderAs!=null&&(l.renderAs=r.ActionDisplayStyle.fromAny(n.renderAs)),b.isString(n.label)&&(l.label=n.label),b.isString(n.icon)&&(l.icon=n.icon),b.isBoolean(n.showLabel)&&(l.showLabel=n.showLabel),b.isBoolean(n.showIcon)&&(l.showIcon=n.showIcon)),Object.keys(l).length?l:null}}class Z extends x.Action{static create(n){return super.create(n)}getBreakpointValue(n){return e.computed(()=>{const l=new Ce(this.value).getOptionsForBreakpoint(n.value);return{name:l.name,label:l.showLabel?l.label:void 0,icon:l.showIcon?l.icon:void 0,renderAs:l.renderAs,showLabel:b.isString(l.label)&&!b.isEmpty(l.label)?l.showLabel:!1,showIcon:b.isString(l.icon)&&!b.isEmpty(l.icon)?l.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 l;const o=M(S({},n!=null?n:{}),{value:{name:"close",label:H.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(l=n==null?void 0:n.value)!=null?l:{}),Z.create(o)}static yesAction(n){var l;const o=M(S({},n!=null?n:{}),{value:{name:"yes",label:H.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(l=n==null?void 0:n.value)!=null?l:{}),Z.create(o)}static noAction(n){var l;const o=M(S({},n!=null?n:{}),{value:{name:"no",label:H.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=S(S({},o.value),(l=n==null?void 0:n.value)!=null?l:{}),Z.create(o)}}const ln={key:1,style:{width:".5rem"}},an={key:2},Be=z(e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const n=t,o=ke(),l=e.computed(()=>e.unref(n.actions)),a=e.computed(()=>l.value.map(i=>S({action:i},e.unref(i.getBreakpointValue(o)))));return(i,f)=>{const s=e.resolveComponent("v-btn");return l.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(a.value,(p,d)=>(e.openBlock(),e.createBlock(s,{key:d,variant:p.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(_=>p.action.execute(_),["stop"])},{default:e.withCtx(()=>[p.icon?(e.openBlock(),e.createBlock(e.unref(X),{key:0,class:"action-icon",name:p.icon},null,8,["name"])):e.createCommentVNode("",!0),p.icon&&p.label?(e.openBlock(),e.createElementBlock("span",ln)):e.createCommentVNode("",!0),p.label?(e.openBlock(),e.createElementBlock("span",an,e.toDisplayString(p.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-7f811834"]]),_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:{}},M(S({},R),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,{errors:a,label:i,touched:f,value:s,vuetifyBindings:p}=L(o,l),d=e.computed(()=>o.allowNull&&s.value==null),_=e.computed({get(){return s.value},set(){}});function c(){const m=b.clone(s.value);m===!0?s.value=o.allowNull?null:!1:s.value=m===!1}return(m,y)=>{const g=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(g,e.mergeProps({modelValue:_.value,"onUpdate:modelValue":y[0]||(y[0]=w=>_.value=w)},e.unref(p),{density:"compact",indeterminate:d.value,"false-value":!1,"true-value":!0,onChange:c,onBlur:y[1]||(y[1]=w=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:w})=>[e.createVNode(e.unref(F),{message:w,errors:e.unref(a)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(w=>[e.createVNode(e.unref(O),{data:w,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:{}},M(S({},R),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,{errors:a,label:i,touched:f,value:s,vuetifyBindings:p}=L(o,l),d=e.ref(!1),_=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 y=e.resolveComponent("v-color-picker"),g=e.resolveComponent("v-menu"),w=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(w,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":m[2]||(m[2]=C=>e.isRef(s)?s.value=C:null)},e.unref(p),{clearable:c.allowNull,type:"text",rules:_.value,onBlur:m[3]||(m[3]=C=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:C})=>[e.createVNode(e.unref(F),{message:C,errors:e.unref(a)},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(g,{modelValue:d.value,"onUpdate:modelValue":m[1]||(m[1]=C=>d.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=C=>e.isRef(s)?s.value=C:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(C=>[e.createVNode(e.unref(O),{data:C,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","clearable","rules"])}}}),rn={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:{}},M(S({},R),{inputType:"datetime",displayFormatDate:"P",displayFormatTime:"p"})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,a=e.computed(()=>{var h;return(h=o.locale)!=null?h:e.unref(be.dateTimeLocale)}),i=e.computed(()=>{var h,u;return(u=(h=a.value.options)==null?void 0:h.weekStartsOn)!=null?u:1}),{touched:f,value:s,vuetifyBindings:p}=L(o,l),{inputType:d,displayFormatDate:_,displayFormatTime:c}=e.toRefs(o),m=e.ref(""),y=e.computed({get(){return e.unref(m)==="date"},set(h){m.value=h?"date":""}}),g=e.computed({get(){return e.unref(m)==="time"},set(h){m.value=h?"time":""}}),w=h=>`${E.format(h,"yyyy-MM-dd")}T${E.format(h,"HH:mm")}:00`,C=e.ref(null);function k(h,u){if(h==null)C.value=null;else if(u===-1)if(e.unref(d)==="time")C.value=w(new Date),k(`T${h}`,1);else{const N=w(new Date(h));k(N,0),k(N,1)}else{C.value==null&&(C.value=w(new Date));const N=C.value.split(/[TZ]/g),$=h.split(/[TZ]/g);N[u]=$[u],C.value=w(new Date(`${N[0]}T${N[1].split(".")[0]}`)),e.unref(d)==="date"?s.value=N[0]:e.unref(d)==="time"?s.value=N[1]:s.value=e.unref(C)+E.format(new Date,"XXX")}}e.watch(s,h=>k(h,-1),{immediate:!0});const A=e.computed({get(){const h=e.unref(C);if(h==null)return null;const u=new Date(h);return Number.isNaN(u.getTime())?null:u},set(h){k(w(h),0)}}),I=e.computed({get(){const h=e.unref(C);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){k(`T${h}`,1)}}),T=e.computed({get(){const h=e.unref(A);return h==null?"":E.format(h,e.unref(_),{locale:a.value})},set(h){try{const u=E.parse(h,e.unref(_),new Date,{locale:a.value});k(w(u),0)}catch(u){console.error(u)}}}),U=e.computed({get(){const h=e.unref(A);return h==null?"":E.format(h,e.unref(c),{locale:a.value})},set(h){const u=h.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(u==null)return;let N=b.toNumber(u[1]);const $=b.toNumber(u[2]);b.isNaN(N)||b.isNaN($)||(u[3]&&u[3].toLowerCase()==="pm"&&N<13&&(N+=12),k(`T${N.toString().padStart(2,"0")}:${$.toString().padStart(2,"0")}:00`,1))}});return(h,u)=>{const N=e.resolveComponent("v-date-picker"),$=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(ee),e.mergeProps(o,{clearable:h.clearable,"onClick:clear":u[14]||(u[14]=P=>s.value=null),onBlur:u[15]||(u[15]=P=>f.value=!0)}),{default:e.withCtx(P=>[e.createElementVNode("div",rn,[["date","datetime"].includes(e.unref(d))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:T.value,"onUpdate:modelValue":u[4]||(u[4]=B=>T.value=B),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]=B=>m.value="date"),onKeydown:u[6]||(u[6]=e.withKeys(B=>m.value="date",["space"])),onFocus:B=>P.focus(),onBlur:B=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:y.value,"onUpdate:modelValue":u[3]||(u[3]=B=>y.value=B),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:A.value,"onUpdate:modelValue":u[0]||(u[0]=B=>A.value=B),onCancel:u[1]||(u[1]=B=>m.value=""),onSave:u[2]||(u[2]=B=>m.value="")},{default:e.withCtx(({model:B,actions:q})=>[e.createVNode(N,{modelValue:B.value,"onUpdate:modelValue":D=>B.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"])]),_:2},1040,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0),["time","datetime"].includes(e.unref(d))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:U.value,"onUpdate:modelValue":u[11]||(u[11]=B=>U.value=B),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]=B=>m.value="time"),onKeydown:u[13]||(u[13]=e.withKeys(B=>m.value="time",["space"])),onFocus:B=>P.focus(),onBlur:B=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:g.value,"onUpdate:modelValue":u[10]||(u[10]=B=>g.value=B),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode($,{modelValue:I.value,"onUpdate:modelValue":u[7]||(u[7]=B=>I.value=B),onCancel:u[8]||(u[8]=B=>m.value=""),onSave:u[9]||(u[9]=B=>m.value="")},{default:e.withCtx(({model:B,actions:q})=>[e.createVNode(j,{modelValue:B.value,"onUpdate:modelValue":D=>B.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"])]),_:2},1040,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)])]),_:1},16,["clearable"])}}}),sn={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:{}},R),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,{touched:a,value:i,vuetifyBindings:f}=L(o,l),s=e.ref(null),p=e.ref(null),d=e.ref(0),_=e.ref(Math.round(Math.random()*1e3)),c=e.ref(),m=e.computed(()=>p.value&&d.value<100),y=e.computed(()=>!c.value&&i.value?o.modelValue:"");function g(){s.value&&window.clearInterval(s.value)}function w(){g(),s.value=window.setInterval(()=>{i.value&&o.comms.touch(i.value)},60*1e3)}e.onBeforeUnmount(()=>g()),e.watch(i,I=>{I?w():g()});function C(){return oe(this,null,function*(){i.value&&(yield o.comms.delete(i.value)),i.value=null,d.value=0,_.value=Math.round(Math.random()*1e3),p.value=null,c.value=null,g()})}function k(I){return oe(this,null,function*(){d.value=-1,p.value=I;try{i.value=yield o.comms.upload(I,(T,U)=>{d.value=Math.round(T*100/U)}),d.value=100,w()}catch(T){throw d.value=0,p.value=null,_.value=Math.round(Math.random()*1e3),c.value=null,T}})}function A(I){I&&(Array.isArray(I)?console.error("Uploading multiple files not supported right now"):k(I))}return(I,T)=>{const U=e.resolveComponent("v-icon"),h=e.resolveComponent("v-progress-linear"),u=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ee),e.mergeProps(M(S({},o),{loading:m.value}),{clearable:"","onClick:clear":C,onBlur:T[1]||(T[1]=N=>a.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(U,{icon:"$file"})]),loader:e.withCtx(()=>[p.value&&d.value<100?(e.openBlock(),e.createBlock(h,{key:0,"model-value":d.value,indeterminate:d.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(N=>[e.createElementVNode("div",sn,[e.createVNode(u,e.mergeProps({modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=$=>c.value=$),label:y.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:p.value&&d.value<100?"visibility: hidden":"",clearable:!1},I.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":A,onFocus:$=>N.focus(),onBlur:$=>N.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])])]),_:1},16)}}}),cn={class:"container"},un=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:{}},M(S({},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,l=n,{errors:a,label:i,touched:f,value:s,vuetifyBindings:p}=L(o,l),{inputType:d,max:_,min:c,precision:m,step:y}=e.toRefs(o),g=e.computed(()=>d.value==="number"),w=e.computed(()=>g.value?{min:e.unref(c),max:e.unref(_),precision:e.unref(m),step:e.unref(y)}:{});return(C,k)=>{const A=e.resolveComponent("v-text-field"),I=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",cn,[g.value?(e.openBlock(),e.createBlock(I,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":k[2]||(k[2]=T=>e.isRef(s)?s.value=T:null)},S(S({},e.unref(p)),w.value),{density:"compact","control-variant":"stacked"}),e.createSlots({message:e.withCtx(({message:T})=>[e.createVNode(e.unref(F),{message:T,errors:e.unref(a)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(T=>[e.createVNode(e.unref(O),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue"])):(e.openBlock(),e.createBlock(A,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":k[0]||(k[0]=T=>e.isRef(s)?s.value=T:null)},e.unref(p),{type:e.unref(d),onBlur:k[1]||(k[1]=T=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:T})=>[e.createVNode(e.unref(F),{message:T,errors:e.unref(a)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(T=>[e.createVNode(e.unref(O),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","type"]))])}}}),De=z(un,[["__scopeId","data-v-a3a9a978"]]),dn={class:"editor-container"},mn={class:"editor-container__editor"},fn={ref:"editorElement"},pn=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 l=o,a=e.ref(!1),i=v.ClassicEditor,f={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],d={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(()=>{a.value=!0});const _=c=>{};return n({onEditorReady:_}),(c,m)=>{const y=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",mn,[e.createElementVNode("div",fn,[a.value?(e.openBlock(),e.createBlock(y,{key:0,"model-value":c.modelValue,editor:e.unref(i),config:d,disabled:c.disabled,style:e.normalizeStyle(`min-height: ${c.minHeight}`),onReady:_,"onUpdate:modelValue":m[0]||(m[0]=g=>l("update:modelValue",g))},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:{}},M(S({},R),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,{value:a,vuetifyBindings:i}=L(o,l);return(f,s)=>(e.openBlock(),e.createBlock(e.unref(ee),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(p=>[e.createVNode(pn,e.mergeProps({ref:"$editor",modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(a)?a.value=d:null),class:{"mt-8":!!f.label},"min-height":f.minHeight,disabled:e.unref(i).disabled},f.passthroughAttrs,{onFocusin:d=>p.focus(),onFocusout:d=>p.blur()}),null,16,["modelValue","class","min-height","disabled","onFocusin","onFocusout"])]),_:1},16))}});function vn(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(l=>o.some(a=>a===l.id))}function ne(t,n,o,l,a){var f;const i=W(t,o);if(i==null){n.value=o?[]:null;return}if(o)l?n.value=i:n.value=te(a,i).map(s=>s.id);else if(l)n.value=i;else{const s=b.first(te(a,i));n.value=(f=s==null?void 0:s.id)!=null?f:null}}const hn={key:0,class:"me-1"},bn=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:{}},M(S({},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:l,multiple:a,allowTags:i,allowNull:f,cssClass:s,visibility:p}=e.toRefs(o),d=n,{errors:_,label:c,touched:m,value:y,vuetifyBindings:g}=L(o,d),w=e.ref(null),C=e.ref(!1),k=e.ref([]),A=e.computed(()=>e.unref(C)?e.unref(k):e.unref(l)||[]),I=e.ref(!1),T=e.computed(()=>vn(A.value));function U(j){d("update:modelValueDisplay",te(A.value,j))}let h=!1;function u(j){h=!0,y.value=j,e.nextTick(()=>{h=!1})}e.watch(w,j=>{g.value.readonly||e.nextTick(()=>{const P=W(j,a.value);U(P),u(P)})},{deep:!0}),e.watch(y,j=>{if(!h){const P=W(j,a.value);ne(P,w,a.value,!1,A.value)}},{deep:!0});function N(){if(g.value.readonly||i.value)return;const j=W(w.value,a.value);ne(j,w,a.value,!1,A.value),u(j)}function $(j){let P;a.value&&Array.isArray(w.value)?P=W(w.value.filter(B=>B!==j),a.value):P=null,ne(P,w,a.value,!1,A.value),u(P)}function J(j,P){return oe(this,null,function*(){if(!(l.value||o.fetchChoices===void 0)){I.value=!0;try{const B=te(A.value,W(w.value,a.value)),q=yield o.fetchChoices(j,P);k.value=b.unionBy([...B,...q],"id"),C.value=!0}finally{I.value=!1}}})}function V(){let j=y.value;!f.value&&j==null&&T.value.length&&(j=T.value[0].value),j=W(j,a.value),ne(j,w,a.value,i.value,A.value),U(j),u(j)}return V(),o.fetchChoices!==void 0&&J(void 0,y.value).then(()=>{V()}),(j,P)=>{const B=e.resolveComponent("v-chip"),q=e.resolveComponent("v-list-item");return e.unref(p)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:w.value,"onUpdate:modelValue":P[0]||(P[0]=D=>w.value=D),class:[e.unref(s),{"d-none":e.unref(p)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(x.DisplayMode).INVISIBLE}],items:T.value,"return-object":!1},e.unref(g),{label:e.unref(g).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(f)||e.unref(a)&&w.value.length>1,clearable:e.unref(f),multiple:e.unref(a),loading:I.value,"hide-selected":!1,"aria-describedby":e.unref(g).helpText?`${e.unref(g).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":P[1]||(P[1]=D=>J(D,void 0)),"onUpdate:modelValue":N,"onClick:clear":P[2]||(P[2]=D=>w.value=null),onBlur:P[3]||(P[3]=D=>m.value=!0)}),e.createSlots({chip:e.withCtx(({item:D})=>[(e.openBlock(),e.createBlock(B,{key:D.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(a)?"tonal":"text",closable:e.unref(a),"onClick:close":K=>$(D.value)},{prepend:e.withCtx(()=>{var K;return[(K=D.raw)!=null&&K.icon?(e.openBlock(),e.createBlock(e.unref(X),{key:0,class:"me-1 action-icon d-inline-block",name:D.raw.icon},null,8,["name"])):e.createCommentVNode("",!0)]}),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"text-body-1":!e.unref(a)})},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",hn,[e.createVNode(e.unref(X),{class:"action-icon d-inline-block",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(_)},null,8,["message","errors"])]),_:2},[e.unref(c).icon?{name:"label",fn:e.withCtx(D=>[e.createVNode(e.unref(O),{data:D,label:e.unref(c)},null,8,["data","label"])]),key:"0"}:void 0,j.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(D=>[e.renderSlot(j.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"1"}:void 0,j.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(D=>[e.renderSlot(j.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"2"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),Ne=z(bn,[["__scopeId","data-v-928dac22"]]),yn={class:"container"},gn=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:{}},M(S({},R),{rows:void 0,maxRows:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,l=n,{errors:a,label:i,touched:f,value:s,vuetifyBindings:p}=L(o,l),{cssClass:d,visibility:_}=e.toRefs(o);return(c,m)=>{const y=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",yn,[e.unref(_)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=g=>e.isRef(s)?s.value=g:null),class:[e.unref(d),{"d-none":e.unref(_)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(_)===e.unref(x.DisplayMode).INVISIBLE}],rows:c.rows,"auto-grow":(c.maxRows||0)>0,"max-rows":c.maxRows},e.unref(p),{onBlur:m[1]||(m[1]=g=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:g})=>[e.createVNode(e.unref(F),{message:g,errors:e.unref(a)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(g=>[e.createVNode(e.unref(O),{data:g,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)])}}}),Ie=z(gn,[["__scopeId","data-v-b2f125f8"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Be,DfCheckbox:_e,DfColor:je,DfDateTime:Te,DfFile:Pe,DfInput:De,DfRtfEditor:Se,DfSelect:Ne,DfTextArea:Ie},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:G.VAutocomplete,VBtn:Le.VBtn,VCheckbox:Re.VCheckbox,VChip:Ue.VChip,VCol:me.VCol,VColorPicker:Fe.VColorPicker,VCombobox:Oe.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"})),wn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),kn={install:(t,n)=>{var o,l;t.use(ht),t.provide(se,n!=null?n:{}),(o=n==null?void 0:n.registerComponents)!=null&&o&&Object.entries(xe).map(([a,i])=>t.component(a,i)),(l=n==null?void 0:n.registerVuetifyComponents)!=null&&l&&Object.entries(Ae).map(([a,i])=>t.component(a,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=wn,r.DfInputComponents=xe,r.DfLabel=O,r.DfRtfEditor=Se,r.DfSelect=Ne,r.DfTextArea=Ie,r.DynamicFormsInputs=kn,r.InputBase=ee,r.Label=ye,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Ce,r.ResponsiveRenderOptions=ge,r.VuetifyComponents=Ae,r.defaultBaseProps=R,r.defaultDisplayStyle=ce,r.getBreakpointName=we,r.responsiveBreakpoints=ue,r.translatableStrings=H,r.translateStrings=on,r.useBreakpoint=ke,r.useInputBase=L,r.vuetifyInputsSettingsKey=se,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
|
43
|
+
*//* istanbul ignore if -- @preserve */if(!fe.version||!fe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const ht={install(t){t.component("Ckeditor",vt)}};function ie(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}function Y(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 Q(t){return(n,o={})=>{const a=o.width,l=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=n.match(l);if(!i)return null;const f=i[0],s=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],p=Array.isArray(s)?yt(s,c=>c.test(f)):bt(s,c=>c.test(f));let d;d=t.valueCallback?t.valueCallback(p):p,d=o.valueCallback?o.valueCallback(d):d;const _=n.slice(f.length);return{value:d,rest:_}}}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:ie({formats:_t,defaultWidth:"full"}),time:ie({formats:jt,defaultWidth:"full"}),dateTime:ie({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:Y({values:St,defaultWidth:"wide"}),quarter:Y({values:It,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Y({values:xt,defaultWidth:"wide"}),day:Y({values:At,defaultWidth:"wide"}),dayPeriod:Y({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]},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:gt({matchPattern:Et,parsePattern:Rt,valueCallback:t=>parseInt(t,10)}),era:Q({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:Q({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:zt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Q({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Q({matchPatterns:Ht,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:Xt,defaultMatchWidth:"any",parsePatterns:Gt,defaultParseWidth:"any"})},Qt={code:"sl",formatDistance:Bt,formatLong:Pt,formatRelative:Nt,localize:Lt,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-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},O=q(Jt,[["__scopeId","data-v-0034f29f"]]),se=Symbol("vuetifyInputsSettingsKey");class ye{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const R={enabled:void 0,clearable:!0};function E(t,n){const o=e.inject(se,{}),a=e.ref(null),l=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?a.value:t.modelValue},set(C){t.control&&(t.control.value=C),t.modelValue===void 0&&(a.value=C),n("update:modelValue",C)}});if(t.control&&!(t.control instanceof x.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.ref(!1),f=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(C=>new x.ValidationErrorRenderContent(C))),p=e.computed(()=>i.value&&s.value.length>0?" ":void 0),d=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),_=e.computed(()=>t.control?t.control.visibility:t.visibility||x.DisplayMode.FULL),c=e.computed(()=>b.isString(t.label||"")?new ye(t.label||""):t.label),m=e.computed(()=>t.placeholder||""),y=e.computed(()=>t.helpText||""),g=e.computed(()=>t.hint||""),w=e.computed(()=>t.cssClass||"");return{value:l,valid:f,enabled:d,errors:s,visibility:_,label:c,touched:i,vuetifyBindings:e.computed(()=>{var C,k;return N({name:(C=t.control)==null?void 0:C.fieldName,class:w.value,density:"default",variant:(k=o.defaultVariant)!=null?k:"underlined",label:c.value.text,messages:p.value,errorMessages:p.value,readonly:!d.value,disabled:!d.value,placeholder:m.value,"persistent-placeholder":!b.isEmpty(m.value),hint:g.value,persistentHint:!0,hideDetails:"auto",helpText:y.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:f,touched:s,visibility:p,vuetifyBindings:d}=E(o,a),_=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(f))),c=e.ref(!1);function m(y){c.value=y,y||(s.value=!0,a("blur"))}return(y,g)=>{const w=e.resolveComponent("v-field"),C=e.resolveComponent("v-input");return e.unref(p)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(C,{key:0,name:e.unref(d).name,hint:e.unref(d).hint,"persistent-hint":e.unref(d).persistentHint,"hide-details":e.unref(d).hideDetails,"error-messages":e.unref(d).errorMessages,class:e.normalizeClass([y.cssClass,{"d-none":e.unref(p)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(x.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:k})=>[e.createVNode(F,{message:k,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(w,{variant:e.unref(d).variant,label:e.unref(d).label,disabled:e.unref(d).disabled,clearable:_.value,"persistent-clear":!0,dirty:!!e.unref(f),active:c.value,loading:y.loading,"onClick:clear":g[0]||(g[0]=k=>a("click:clear")),"onUpdate:focused":g[1]||(g[1]=k=>m(k))},e.createSlots({default:e.withCtx(k=>[e.createElementVNode("div",Vt,[e.renderSlot(y.$slots,"default",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)])]),loader:e.withCtx(k=>[e.renderSlot(y.$slots,"loader",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(k=>[e.createVNode(O,{data:k,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0,y.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(k=>[e.renderSlot(y.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(k)),void 0,!0)]),key:"1"}:void 0]),1032,["variant","label","disabled","clearable","dirty","active","loading"])]),_:2},[y.$slots.prepend?{name:"prepend",fn:e.withCtx(k=>[e.renderSlot(y.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(k)),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 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 f of a)(i==null?void 0:i[f])!=null&&(o[f]=i[f]);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 x.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:".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,f)=>{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,d)=>(e.openBlock(),e.createBlock(s,{key:d,variant:p.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(_=>p.action.execute(_),["stop"])},{default:e.withCtx(()=>[p.icon?(e.openBlock(),e.createBlock(e.unref(X),{key:0,class:"action-icon",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-7f811834"]]),_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({},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:p}=E(o,a),d=e.computed(()=>o.allowNull&&s.value==null),_=e.computed({get(){return s.value},set(){}});function c(){const m=b.clone(s.value);m===!0?s.value=o.allowNull?null:!1:s.value=m===!1}return(m,y)=>{const g=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(g,e.mergeProps({modelValue:_.value,"onUpdate:modelValue":y[0]||(y[0]=w=>_.value=w)},e.unref(p),{density:"compact",indeterminate:d.value,"false-value":!1,"true-value":!0,onChange:c,onBlur:y[1]||(y[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(O),{data:w,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({},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:p}=E(o,a),d=e.ref(!1),_=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 y=e.resolveComponent("v-color-picker"),g=e.resolveComponent("v-menu"),w=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(w,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":m[2]||(m[2]=C=>e.isRef(s)?s.value=C:null)},e.unref(p),{clearable:c.allowNull,type:"text",rules:_.value,onBlur:m[3]||(m[3]=C=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:C})=>[e.createVNode(e.unref(F),{message:C,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(g,{modelValue:d.value,"onUpdate:modelValue":m[1]||(m[1]=C=>d.value=C),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=C=>e.isRef(s)?s.value=C:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(C=>[e.createVNode(e.unref(O),{data:C,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({},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 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:f,value:s,vuetifyBindings:p}=E(o,a),{inputType:d,displayFormatDate:_,displayFormatTime:c}=e.toRefs(o),m=e.ref(""),y=e.computed({get(){return e.unref(m)==="date"},set(h){m.value=h?"date":""}}),g=e.computed({get(){return e.unref(m)==="time"},set(h){m.value=h?"time":""}}),w=h=>`${L.format(h,"yyyy-MM-dd")}T${L.format(h,"HH:mm")}:00`,C=e.ref(null);function k(h,u){if(h==null)C.value=null;else if(u===-1)if(e.unref(d)==="time")C.value=w(new Date),k(`T${h}`,1);else{const S=w(new Date(h));k(S,0),k(S,1)}else{C.value==null&&(C.value=w(new Date));const S=C.value.split(/[TZ]/g),M=h.split(/[TZ]/g);S[u]=M[u],C.value=w(new Date(`${S[0]}T${S[1].split(".")[0]}`)),e.unref(d)==="date"?s.value=S[0]:e.unref(d)==="time"?s.value=S[1]:s.value=e.unref(C)+L.format(new Date,"XXX")}}e.watch(s,h=>k(h,-1),{immediate:!0});const A=e.computed({get(){const h=e.unref(C);if(h==null)return null;const u=new Date(h);return Number.isNaN(u.getTime())?null:u},set(h){k(w(h),0)}}),I=e.computed({get(){const h=e.unref(C);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){k(`T${h}`,1)}}),T=e.computed({get(){const h=e.unref(A);return h==null?"":L.format(h,e.unref(_),{locale:l.value})},set(h){try{const u=L.parse(h,e.unref(_),new Date,{locale:l.value});k(w(u),0)}catch(u){console.error(u)}}}),U=e.computed({get(){const h=e.unref(A);return h==null?"":L.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 S=b.toNumber(u[1]);const M=b.toNumber(u[2]);b.isNaN(S)||b.isNaN(M)||(u[3]&&u[3].toLowerCase()==="pm"&&S<13&&(S+=12),k(`T${S.toString().padStart(2,"0")}:${M.toString().padStart(2,"0")}:00`,1))}});return(h,u)=>{const S=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(ee),e.mergeProps(o,{clearable:h.clearable,"onClick:clear":u[14]||(u[14]=P=>s.value=null),onBlur:u[15]||(u[15]=P=>f.value=!0)}),{default:e.withCtx(P=>[e.createElementVNode("div",on,[["date","datetime"].includes(e.unref(d))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:0,modelValue:T.value,"onUpdate:modelValue":u[4]||(u[4]=B=>T.value=B),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]=B=>m.value="date"),onKeydown:u[6]||(u[6]=e.withKeys(B=>m.value="date",["space"])),onFocus:B=>P.focus(),onBlur:B=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:y.value,"onUpdate:modelValue":u[3]||(u[3]=B=>y.value=B),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:A.value,"onUpdate:modelValue":u[0]||(u[0]=B=>A.value=B),onCancel:u[1]||(u[1]=B=>m.value=""),onSave:u[2]||(u[2]=B=>m.value="")},{default:e.withCtx(({model:B,actions:W})=>[e.createVNode(S,{modelValue:B.value,"onUpdate:modelValue":D=>B.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(W)))]),_: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(d))?(e.openBlock(),e.createBlock(V,e.mergeProps({key:1,modelValue:U.value,"onUpdate:modelValue":u[11]||(u[11]=B=>U.value=B),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]=B=>m.value="time"),onKeydown:u[13]||(u[13]=e.withKeys(B=>m.value="time",["space"])),onFocus:B=>P.focus(),onBlur:B=>P.blur()}),{default:e.withCtx(()=>[e.createVNode(J,{modelValue:g.value,"onUpdate:modelValue":u[10]||(u[10]=B=>g.value=B),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:I.value,"onUpdate:modelValue":u[7]||(u[7]=B=>I.value=B),onCancel:u[8]||(u[8]=B=>m.value=""),onSave:u[9]||(u[9]=B=>m.value="")},{default:e.withCtx(({model:B,actions:W})=>[e.createVNode(j,{modelValue:B.value,"onUpdate:modelValue":D=>B.value=D,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W)))]),_: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"}},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:{}},R),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{touched:l,value:i,vuetifyBindings:f}=E(o,a),s=e.ref(null),p=e.ref(null),d=e.ref(0),_=e.ref(Math.round(Math.random()*1e3)),c=e.ref(),m=e.computed(()=>p.value&&d.value<100),y=e.computed(()=>!c.value&&i.value?o.modelValue:"");function g(){s.value&&window.clearInterval(s.value)}function w(){g(),s.value=window.setInterval(()=>{i.value&&o.comms.touch(i.value)},60*1e3)}e.onBeforeUnmount(()=>g()),e.watch(i,I=>{I?w():g()});function C(){return oe(this,null,function*(){i.value&&(yield o.comms.delete(i.value)),i.value=null,d.value=0,_.value=Math.round(Math.random()*1e3),p.value=null,c.value=null,g()})}function k(I){return oe(this,null,function*(){d.value=-1,p.value=I;try{i.value=yield o.comms.upload(I,(T,U)=>{d.value=Math.round(T*100/U)}),d.value=100,w()}catch(T){throw d.value=0,p.value=null,_.value=Math.round(Math.random()*1e3),c.value=null,T}})}function A(I){I&&(Array.isArray(I)?console.error("Uploading multiple files not supported right now"):k(I))}return(I,T)=>{const U=e.resolveComponent("v-icon"),h=e.resolveComponent("v-progress-linear"),u=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ee),e.mergeProps($(N({},o),{loading:m.value}),{clearable:"","onClick:clear":C,onBlur:T[1]||(T[1]=S=>l.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(U,{icon:"$file"})]),loader:e.withCtx(()=>[p.value&&d.value<100?(e.openBlock(),e.createBlock(h,{key:0,"model-value":d.value,indeterminate:d.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(S=>[e.createElementVNode("div",an,[e.createVNode(u,e.mergeProps({modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=M=>c.value=M),label:y.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:p.value&&d.value<100?"visibility: hidden":"",clearable:!1},I.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":A,onFocus:M=>S.focus(),onBlur:M=>S.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({},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:p}=E(o,a),{inputType:d,max:_,min:c,precision:m,step:y}=e.toRefs(o),g=e.computed(()=>d.value==="number"),w=e.computed(()=>g.value?{min:e.unref(c),max:e.unref(_),precision:e.unref(m),step:e.unref(y)}:{});return(C,k)=>{const A=e.resolveComponent("v-text-field"),I=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",ln,[g.value?(e.openBlock(),e.createBlock(I,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":k[2]||(k[2]=T=>e.isRef(s)?s.value=T:null)},N(N({},e.unref(p)),w.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(O),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue"])):(e.openBlock(),e.createBlock(A,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":k[0]||(k[0]=T=>e.isRef(s)?s.value=T:null)},e.unref(p),{type:e.unref(d),onBlur:k[1]||(k[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(O),{data:T,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","type"]))])}}}),De=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=v.ClassicEditor,f={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],d={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 _=c=>{};return n({onEditorReady:_}),(c,m)=>{const y=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",sn,[e.createElementVNode("div",cn,[e.createElementVNode("div",un,[l.value?(e.openBlock(),e.createBlock(y,{key:0,"model-value":c.modelValue,editor:e.unref(i),config:d,disabled:c.disabled,style:e.normalizeStyle(`min-height: ${c.minHeight}`),onReady:_,"onUpdate:modelValue":m[0]||(m[0]=g=>a("update:modelValue",g))},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({},R),{minHeight:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{value:l,vuetifyBindings:i}=E(o,a);return(f,s)=>(e.openBlock(),e.createBlock(e.unref(ee),e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(p=>[e.createVNode(dn,e.mergeProps({ref:"$editor",modelValue:e.unref(l),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(l)?l.value=d:null),class:{"mt-8":!!f.label},"min-height":f.minHeight,disabled:e.unref(i).disabled},f.passthroughAttrs,{onFocusin:d=>p.focus(),onFocusout:d=>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 z(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 f;const i=z(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=(f=s==null?void 0:s.id)!=null?f:null}}const fn={key:0,class:"me-1"},pn=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:{}},$(N({},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:p}=e.toRefs(o),d=n,{errors:_,label:c,touched:m,value:y,vuetifyBindings:g}=E(o,d),w=e.ref(null),C=e.ref(!1),k=e.ref([]),A=e.computed(()=>e.unref(C)?e.unref(k):e.unref(a)||[]),I=e.ref(!1),T=e.computed(()=>mn(A.value));function U(j){d("update:modelValueDisplay",te(A.value,j))}let h=!1;function u(j){h=!0,y.value=j,e.nextTick(()=>{h=!1})}e.watch(w,j=>{g.value.readonly||e.nextTick(()=>{const P=z(j,l.value);U(P),u(P)})},{deep:!0}),e.watch(y,j=>{if(!h){const P=z(j,l.value);ne(P,w,l.value,!1,A.value)}},{deep:!0});function S(){if(g.value.readonly||i.value)return;const j=z(w.value,l.value);ne(j,w,l.value,!1,A.value),u(j)}function M(j){let P;l.value&&Array.isArray(w.value)?P=z(w.value.filter(B=>B!==j),l.value):P=null,ne(P,w,l.value,!1,A.value),u(P)}function J(j,P){return oe(this,null,function*(){if(!(a.value||o.fetchChoices===void 0)){I.value=!0;try{const B=te(A.value,z(w.value,l.value)),W=yield o.fetchChoices(j,P);k.value=b.unionBy([...B,...W],"id"),C.value=!0}finally{I.value=!1}}})}function V(){let j=y.value;!f.value&&j==null&&T.value.length&&(j=T.value[0].value),j=z(j,l.value),ne(j,w,l.value,i.value,A.value),U(j),u(j)}return V(),o.fetchChoices!==void 0&&J(void 0,y.value).then(()=>{V()}),(j,P)=>{const B=e.resolveComponent("v-chip"),W=e.resolveComponent("v-list-item");return e.unref(p)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)?"v-combobox":"v-autocomplete"),e.mergeProps({key:0,modelValue:w.value,"onUpdate:modelValue":P[0]||(P[0]=D=>w.value=D),class:[e.unref(s),{"d-none":e.unref(p)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(p)===e.unref(x.DisplayMode).INVISIBLE}],items:T.value,"return-object":!1},e.unref(g),{label:e.unref(g).label,chips:"","auto-select-first":!0,"closable-chips":e.unref(f)||e.unref(l)&&w.value.length>1,clearable:e.unref(f),multiple:e.unref(l),loading:I.value,"hide-selected":!1,"aria-describedby":e.unref(g).helpText?`${e.unref(g).name}-help`:null,"menu-props":{maxHeight:"400"},"hide-details":"auto","onUpdate:search":P[1]||(P[1]=D=>J(D,void 0)),"onUpdate:modelValue":S,"onClick:clear":P[2]||(P[2]=D=>w.value=null),onBlur:P[3]||(P[3]=D=>m.value=!0)}),e.createSlots({chip:e.withCtx(({item:D})=>[(e.openBlock(),e.createBlock(B,{key:D.value,label:"",size:"small",class:"d-flex align-middle",variant:e.unref(l)?"tonal":"text",closable:e.unref(l),"onClick:close":K=>M(D.value)},{prepend:e.withCtx(()=>{var K;return[(K=D.raw)!=null&&K.icon?(e.openBlock(),e.createBlock(e.unref(X),{key:0,class:"me-1 action-icon d-inline-block",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(W,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(X),{class:"action-icon d-inline-block",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(_)},null,8,["message","errors"])]),_:2},[e.unref(c).icon?{name:"label",fn:e.withCtx(D=>[e.createVNode(e.unref(O),{data:D,label:e.unref(c)},null,8,["data","label"])]),key:"0"}:void 0,j.$slots["append-inner"]?{name:"append-inner",fn:e.withCtx(D=>[e.renderSlot(j.$slots,"append-inner",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"1"}:void 0,j.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(D=>[e.renderSlot(j.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(D)),void 0,!0)]),key:"2"}:void 0]),1040,["modelValue","class","items","label","closable-chips","clearable","multiple","loading","aria-describedby"])):e.createCommentVNode("",!0)}}}),Se=q(pn,[["__scopeId","data-v-928dac22"]]),vn={class:"container"},hn=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({},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:p}=E(o,a),{cssClass:d,visibility:_}=e.toRefs(o);return(c,m)=>{const y=e.resolveComponent("v-textarea");return e.openBlock(),e.createElementBlock("div",vn,[e.unref(_)!==e.unref(x.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":m[0]||(m[0]=g=>e.isRef(s)?s.value=g:null),class:[e.unref(d),{"d-none":e.unref(_)===e.unref(x.DisplayMode).HIDDEN,invisible:e.unref(_)===e.unref(x.DisplayMode).INVISIBLE}],rows:c.rows,"auto-grow":(c.maxRows||0)>0,"max-rows":c.maxRows},e.unref(p),{onBlur:m[1]||(m[1]=g=>f.value=!0)}),e.createSlots({message:e.withCtx(({message:g})=>[e.createVNode(e.unref(F),{message:g,errors:e.unref(l)},null,8,["message","errors"])]),_:2},[e.unref(i).icon?{name:"label",fn:e.withCtx(g=>[e.createVNode(e.unref(O),{data:g,label:e.unref(i)},null,8,["data","label"])]),key:"0"}:void 0]),1040,["modelValue","class","rows","auto-grow","max-rows"])):e.createCommentVNode("",!0)])}}}),Ie=q(hn,[["__scopeId","data-v-b2f125f8"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,DfActions:Be,DfCheckbox:_e,DfColor:je,DfDateTime:Te,DfFile:Pe,DfInput:De,DfRtfEditor:Ne,DfSelect:Se,DfTextArea:Ie},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null,VAutocomplete:G.VAutocomplete,VBtn:Ee.VBtn,VCheckbox:Re.VCheckbox,VChip:Ue.VChip,VCol:me.VCol,VColorPicker:Fe.VColorPicker,VCombobox:Oe.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"})),bn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),yn={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=bn,r.DfInputComponents=xe,r.DfLabel=O,r.DfRtfEditor=Ne,r.DfSelect=Se,r.DfTextArea=Ie,r.DynamicFormsInputs=yn,r.InputBase=ee,r.Label=ye,r.MessagesWidget=F,r.ResponsiveActionRenderOptions=Ce,r.ResponsiveRenderOptions=ge,r.VuetifyComponents=Ae,r.defaultBaseProps=R,r.defaultDisplayStyle=ce,r.getBreakpointName=we,r.responsiveBreakpoints=ue,r.translatableStrings=H,r.translateStrings=en,r.useBreakpoint=ke,r.useInputBase=E,r.vuetifyInputsSettingsKey=se,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
|
44
44
|
//# sourceMappingURL=dynamicforms-vuetify-inputs.umd.cjs.map
|