@dynamicforms/vuetify-inputs
Version:
Visual components for data entry using @dynamicforms/vue-forms
43 lines • 59.7 kB
JavaScript
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("lodash-es"),require("vue-cached-icon"),require("@dynamicforms/vue-forms"),require("vue-markdown-render"),require("vuetify"),require("date-fns"),require("ckeditor5"),require("vuetify/components/VAutocomplete"),require("vuetify/components/VBtn"),require("vuetify/components/VCheckbox"),require("vuetify/components/VChip"),require("vuetify/components/VCombobox"),require("vuetify/components/VColorPicker"),require("vuetify/components/VConfirmEdit"),require("vuetify/components/VDatePicker"),require("vuetify/components/VField"),require("vuetify/components/VFileInput"),require("vuetify/components/VGrid"),require("vuetify/components/VIcon"),require("vuetify/components/VImg"),require("vuetify/components/VInput"),require("vuetify/components/VList"),require("vuetify/components/VMenu"),require("vuetify/components/VNumberInput"),require("vuetify/components/VProgressLinear"),require("vuetify/components/VSelect"),require("vuetify/components/VSwitch"),require("vuetify/components/VTextarea"),require("vuetify/components/VTextField"),require("vuetify/components/VTimePicker")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","vue-cached-icon","@dynamicforms/vue-forms","vue-markdown-render","vuetify","date-fns","ckeditor5","vuetify/components/VAutocomplete","vuetify/components/VBtn","vuetify/components/VCheckbox","vuetify/components/VChip","vuetify/components/VCombobox","vuetify/components/VColorPicker","vuetify/components/VConfirmEdit","vuetify/components/VDatePicker","vuetify/components/VField","vuetify/components/VFileInput","vuetify/components/VGrid","vuetify/components/VIcon","vuetify/components/VImg","vuetify/components/VInput","vuetify/components/VList","vuetify/components/VMenu","vuetify/components/VNumberInput","vuetify/components/VProgressLinear","vuetify/components/VSelect","vuetify/components/VSwitch","vuetify/components/VTextarea","vuetify/components/VTextField","vuetify/components/VTimePicker"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e((r["dynamicforms-vuetify-inputs"]=r["dynamicforms-vuetify-inputs"]||{},r["dynamicforms-vuetify-inputs"]["[name]"]={}),r.vue,r["lodash-es"],r["vue-cached-icon"],r["@dynamicforms/vue-forms"],r["vue-markdown-render"],r.vuetify,r["date-fns"],r.ckeditor5,r["vuetify/components/VAutocomplete"],r["vuetify/components/VBtn"],r["vuetify/components/VCheckbox"],r["vuetify/components/VChip"],r["vuetify/components/VCombobox"],r["vuetify/components/VColorPicker"],r["vuetify/components/VConfirmEdit"],r["vuetify/components/VDatePicker"],r["vuetify/components/VField"],r["vuetify/components/VFileInput"],r["vuetify/components/VGrid"],r["vuetify/components/VIcon"],r["vuetify/components/VImg"],r["vuetify/components/VInput"],r["vuetify/components/VList"],r["vuetify/components/VMenu"],r["vuetify/components/VNumberInput"],r["vuetify/components/VProgressLinear"],r["vuetify/components/VSelect"],r["vuetify/components/VSwitch"],r["vuetify/components/VTextarea"],r["vuetify/components/VTextField"],r["vuetify/components/VTimePicker"]))})(this,(function(r,e,b,W,E,te,re,R,v,G,Re,Ue,ze,Oe,Fe,He,We,qe,Ke,fe,Xe,Ge,Ye,Qe,Ze,Je,Ve,et,tt,nt,ot,at){"use strict";var mn=Object.defineProperty,fn=Object.defineProperties;var pn=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var vn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable;var me=(r,e,b)=>e in r?mn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:b}):r[e]=b,_=(r,e)=>{for(var b in e||(e={}))vn.call(e,b)&&me(r,b,e[b]);if(Le)for(var b of Le(e))hn.call(e,b)&&me(r,b,e[b]);return r},$=(r,e)=>fn(r,pn(e));var $e=(r,e,b)=>me(r,typeof e!="symbol"?e+"":e,b);var le=(r,e,b)=>new Promise((W,E)=>{var te=v=>{try{R(b.next(v))}catch(G){E(G)}},re=v=>{try{R(b.throw(v))}catch(G){E(G)}},R=v=>v.done?W(v.value):Promise.resolve(v.value).then(te,re);R((b=b.apply(r,e)).next())});function lt(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 pe=lt(e);/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*//**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/new Array(256).fill("").map((t,n)=>("0"+n.toString(16)).slice(-2));/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function rt(t,n){const o=t.extraPlugins||[];return $(_({},t),{extraPlugins:[...o,...n.filter(a=>!o.includes(a))]})}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ve(t){return!!t&&/^\d+\.\d+\.\d+/.test(t)}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function he(t){return t?["nightly","alpha","internal","nightly-","staging"].some(n=>t.includes(n)):!1}function it(t){return ve(t)||he(t)}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function st(t){if(!ve(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)}}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ct(t){if(he(t))return 3;const{major:n}=st(t);switch(!0){case n>=44:return 3;case n>=38:return 2;default:return 1}}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ut(){const{CKEDITOR_VERSION:t,CKEDITOR:n}=window;return it(t)?{source:n?"cdn":"npm",version:t}:null}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function dt(){const t=ut();return t?ct(t.version):null}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ye(t,n){switch(n||(n=dt()||void 0),n){case 1:case 2:return t===void 0;case 3:return t==="GPL";default:return!1}}/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function mt(t,n){return function(a){ye(a.config.get("licenseKey"))||a.on("collectUsageData",(l,{setUsageData:i})=>{i(`integration.${t}`,n)})}}/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/const ft=mt("vue",{version:"7.3.0",frameworkVersion:e.version});/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/function pt(t){return ye(t.licenseKey)?t:rt(t,[ft])}const ie="Lock from Vue integration (@ckeditor/ckeditor5-vue)",vt=300,ht=e.defineComponent({name:"CKEditor",__name:"ckeditor",props:e.mergeModels({editor:{},config:{default:()=>({})},tagName:{default:"div"},disabled:{type:Boolean,default:!1},disableTwoWayDataBinding:{type:Boolean,default:!1}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:e.mergeModels(["ready","destroy","blur","focus","input","update:modelValue"],["update:modelValue"]),setup(t,{expose:n,emit:o}){const a=e.useModel(t,"modelValue"),l=t,i=o,u=e.ref(),p=e.ref(),s=e.ref();n({instance:p,lastEditorData:s}),e.watch(a,m=>{p.value&&m!==s.value&&p.value.data.set(m)}),e.watch(()=>l.disabled,m=>{m?p.value.enableReadOnlyMode(ie):p.value.disableReadOnlyMode(ie)});function f(){const m=window.CKEDITOR_VERSION;if(!m)return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');const[w]=m.split(".").map(Number);w>=42||m.startsWith("0.0.0")||console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.")}function y(m){const w=b.debounce(d=>{if(l.disableTwoWayDataBinding)return;const T=s.value=m.data.get();i("update:modelValue",T,d,m),i("input",T,d,m)},vt,{leading:!0});m.model.document.on("change:data",w),m.editing.view.document.on("focus",d=>{i("focus",d,m)}),m.editing.view.document.on("blur",d=>{i("blur",d,m)})}return f(),e.onMounted(()=>{const m=pt(Object.assign({},l.config));a.value&&(m.initialData=a.value),l.editor.create(u.value,m).then(w=>{p.value=e.markRaw(w),y(w),a.value!==m.initialData&&w.data.set(a.value),l.disabled&&w.enableReadOnlyMode(ie),i("ready",w)}).catch(w=>{console.error(w)})}),e.onBeforeUnmount(()=>{p.value&&(p.value.destroy(),p.value=void 0),i("destroy")}),(m,w)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.tagName),{ref_key:"element",ref:u},null,512))}});/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*//* istanbul ignore if -- @preserve */if(!pe.version||!pe.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const yt={install(t){t.component("Ckeditor",ht)}};function bt(t){return t.one!==void 0}const gt={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 wt(t){switch(t%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const kt=(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=gt[t];if(typeof i=="string")a+=i;else{const u=wt(n);bt(i)?a+=i[u].replace("{{count}}",String(n)):a+=i[l][u].replace("{{count}}",String(n))}return a};function se(t){return(n={})=>{const o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const Ct={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Bt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Tt={date:se({formats:Ct,defaultWidth:"full"}),time:se({formats:Bt,defaultWidth:"full"}),dateTime:se({formats:jt,defaultWidth:"full"})},Pt={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"},Dt=(t,n,o,a)=>{const l=Pt[t];return typeof l=="function"?l(n):l};function Y(t){return(n,o)=>{const a=o!=null&&o.context?String(o.context):"standalone";let l;if(a==="formatting"&&t.formattingValues){const u=t.defaultFormattingWidth||t.defaultWidth,p=o!=null&&o.width?String(o.width):u;l=t.formattingValues[p]||t.formattingValues[u]}else{const u=t.defaultWidth,p=o!=null&&o.width?String(o.width):t.defaultWidth;l=t.values[p]||t.values[u]}const i=t.argumentCallback?t.argumentCallback(n):n;return l[i]}}const St={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},Nt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},_t={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},It={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},xt={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č"}},At={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"}},Mt={ordinalNumber:(t,n)=>Number(t)+".",era:Y({values:St,defaultWidth:"wide"}),quarter:Y({values:Nt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Y({values:_t,defaultWidth:"wide"}),day:Y({values:It,defaultWidth:"wide"}),dayPeriod:Y({values:xt,defaultWidth:"wide",formattingValues:At,defaultFormattingWidth:"wide"})};function Q(t){return(n,o={})=>{const a=o.width,l=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=n.match(l);if(!i)return null;const u=i[0],p=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(p)?Lt(p,m=>m.test(u)):Et(p,m=>m.test(u));let f;f=t.valueCallback?t.valueCallback(s):s,f=o.valueCallback?o.valueCallback(f):f;const y=n.slice(u.length);return{value:f,rest:y}}}function Et(t,n){for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return o}function Lt(t,n){for(let o=0;o<t.length;o++)if(n(t[o]))return o}function $t(t){return(n,o={})=>{const a=n.match(t.matchPattern);if(!a)return null;const l=a[0],i=n.match(t.parsePattern);if(!i)return null;let u=t.valueCallback?t.valueCallback(i[0]):i[0];u=o.valueCallback?o.valueCallback(u):u;const p=n.slice(l.length);return{value:u,rest:p}}}const Rt=/^(\d+)\./i,Ut=/\d+/i,zt={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},Ht={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]},Kt={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},Xt={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]},Gt={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},Yt={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}},Qt={ordinalNumber:$t({matchPattern:Rt,parsePattern:Ut,valueCallback:t=>parseInt(t,10)}),era:Q({matchPatterns:zt,defaultMatchWidth:"wide",parsePatterns:Ot,defaultParseWidth:"any"}),quarter:Q({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:Ht,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Q({matchPatterns:Wt,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"wide"}),day:Q({matchPatterns:Kt,defaultMatchWidth:"wide",parsePatterns:Xt,defaultParseWidth:"any"}),dayPeriod:Q({matchPatterns:Gt,defaultMatchWidth:"any",parsePatterns:Yt,defaultParseWidth:"any"})},Zt={code:"sl",formatDistance:kt,formatLong:Tt,formatRelative:Dt,localize:Mt,match:Qt,options:{weekStartsOn:1,firstWeekContainsDate:1}},be={dateTimeLocale:e.ref(Zt),setDateTimeLocale(t){e.isRef(t)?this.dateTimeLocale=t:this.dateTimeLocale.value=t}},F=e.defineComponent({__name:"df-label",props:{data:{},label:{},allowWrap:{type:Boolean}},setup(t){const n=t,o=e.computed(()=>n.data?n.data.label:n.label.text);return(a,l)=>{const i=e.resolveComponent("v-img");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-label",{"allow-wrap":a.allowWrap}])},[a.label.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.label.iconComponent==="v-icon"?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:a.label.icon,size:"1.25em"},null,8,["name"])):a.label.iconComponent==="v-img"?(e.openBlock(),e.createBlock(i,{key:1,class:"icon",src:a.label.icon},null,8,["src"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.label.iconComponent),{key:2,src:a.label.icon},null,8,["src"]))],64)):e.createCommentVNode("",!0),o.value instanceof e.unref(E.MdString)?(e.openBlock(),e.createBlock(e.unref(te),{key:1,class:"markdown",source:o.value.toString(),options:o.value.options,plugins:o.value.plugins},null,8,["source","options","plugins"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(o.value),1)],64))],2)}}}),ce=Symbol("vuetifyInputsSettingsKey");class ge{constructor(n,o,a="v-icon"){this.text=n,this.icon=o,this.iconComponent=a}}const z={enabled:void 0,clearable:!0};function U(t,n){const o=e.inject(ce,{}),a=e.ref(null),l=e.computed({get(){return t.control?t.control.value:t.modelValue===void 0?a.value:t.modelValue},set(C){t.control&&(t.control.value=C),t.modelValue===void 0&&(a.value=C),n("update:modelValue",C)}});if(t.control&&!(t.control instanceof E.FieldBase))throw new Error("control prop is not a vue-form control instance");const i=e.computed({get(){return t.control.touched},set(C){t.control.touched=C}}),u=t.control?i:e.ref(!1),p=e.computed(()=>t.control?t.control.valid:!0),s=e.computed(()=>t.control?t.control.errors:(t.errors||[]).map(C=>new E.ValidationErrorRenderContent(C))),f=e.computed(()=>u.value&&s.value.length>0?" ":void 0),y=e.computed(()=>t.control?t.control.enabled:t.enabled!==!1),m=e.computed(()=>t.control?t.control.visibility:t.visibility||E.DisplayMode.FULL),w=e.computed(()=>b.isString(t.label||"")?new ge(t.label||""):t.label),d=e.computed(()=>t.placeholder||""),T=e.computed(()=>t.helpText||""),P=e.computed(()=>t.hint||""),k=e.computed(()=>t.cssClass||""),g=e.computed(()=>{var C,B,L;return(L=(B=(C=t.density)!=null?C:e.inject("field-density",null))!=null?B:o.defaultDensity)!=null?L:"default"}),x=e.computed(()=>g.value==="inline"?"default":g.value),M=e.computed(()=>{var C,B,L;return(L=(B=(C=t.variant)!=null?C:e.inject("field-variant",null))!=null?B:o.defaultVariant)!=null?L:"underlined"});return{value:l,valid:p,enabled:y,errors:s,visibility:m,label:w,touched:u,density:g.value,densityClass:e.computed(()=>`df-density-${g.value}`),vuetifyBindings:e.computed(()=>{var C;return _({name:(C=t.control)==null?void 0:C.fieldName,class:k.value,density:x.value,variant:M.value,label:w.value.text,messages:f.value,errorMessages:f.value,readonly:!y.value,disabled:!y.value,placeholder:d.value,"persistent-placeholder":!b.isEmpty(d.value),hint:P.value,persistentHint:!0,hideDetails:"auto",helpText:T.value},t.passthroughAttrs||{})})}}const H=e.defineComponent({__name:"messages-widget",props:{errors:{},message:{},classes:{default:"text-error"}},setup(t){const n=t,o=()=>{if(n.message!==" ")return e.h("span",{class:n.classes},n.message);const a=[];return n.errors.forEach(l=>{switch(l.componentName){case"template":a.push(e.h("div",{class:n.classes},l.componentBody));break;case"vue-markdown":{const i=l.componentBindings;a.push(e.h(te,{class:[n.classes,"df-messages-widget-markdown"],source:i.source,options:i.options,plugins:i.plugins}));break}default:a.push(e.h(l.componentName,$(_({class:n.classes},l.componentBindings),{innerHTML:l.componentBody})));break}}),a};return(a,l)=>(e.openBlock(),e.createBlock(o))}}),Jt={class:"d-flex w-100 df-style-resetting"},ne=e.defineComponent({__name:"input-base",props:{control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{},loading:{type:Boolean}},emits:["update:modelValue","click:clear","blur"],setup(t,{emit:n}){const o=t,a=n,{errors:l,label:i,value:u,touched:p,visibility:s,vuetifyBindings:f}=U(o,a),y=e.computed(()=>!!(e.unref(o.clearable)&&e.unref(u))),m=e.ref(!1);function w(d){m.value=d,d||(p.value=!0,a("blur"))}return(d,T)=>{const P=e.resolveComponent("v-field"),k=e.resolveComponent("v-input");return e.unref(s)!==e.unref(E.DisplayMode).SUPPRESS?(e.openBlock(),e.createBlock(k,{key:0,name:e.unref(f).name,density:e.unref(f).density,hint:e.unref(f).hint,"persistent-hint":e.unref(f).persistentHint,"hide-details":e.unref(f).hideDetails,"error-messages":e.unref(f).errorMessages,class:e.normalizeClass([d.cssClass,{"d-none":e.unref(s)===e.unref(E.DisplayMode).HIDDEN,invisible:e.unref(s)===e.unref(E.DisplayMode).INVISIBLE}])},e.createSlots({message:e.withCtx(({message:g})=>[e.createVNode(H,{message:g,errors:e.unref(l)},null,8,["message","errors"])]),default:e.withCtx(()=>[e.createVNode(P,{variant:e.unref(f).variant,density:e.unref(f).density,label:e.unref(f).label,disabled:e.unref(f).disabled,clearable:y.value,"persistent-clear":!0,dirty:!!e.unref(u),active:m.value,loading:d.loading,"onClick:clear":T[0]||(T[0]=g=>a("click:clear")),"onUpdate:focused":T[1]||(T[1]=g=>w(g))},e.createSlots({label:e.withCtx(g=>[e.createVNode(F,{data:g,label:e.unref(i)},null,8,["data","label"])]),default:e.withCtx(g=>[e.createElementVNode("div",Jt,[e.renderSlot(d.$slots,"default",e.normalizeProps(e.guardReactiveProps(g)))])]),loader:e.withCtx(g=>[e.renderSlot(d.$slots,"loader",e.normalizeProps(e.guardReactiveProps(g)))]),_:2},[d.$slots["prepend-inner"]?{name:"prepend-inner",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend-inner",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["variant","density","label","disabled","clearable","dirty","active","loading"])]),_:2},[d.$slots.prepend?{name:"prepend",fn:e.withCtx(g=>[e.renderSlot(d.$slots,"prepend",e.normalizeProps(e.guardReactiveProps(g)))]),key:"0"}:void 0]),1032,["name","density","hint","persistent-hint","hide-details","error-messages","class"])):e.createCommentVNode("",!0)}}}),I={Yes:"Yes",No:"No",Close:"Close",Paragraph:"Paragraph",Heading1:"Heading 1",Heading2:"Heading 2",Heading3:"Heading 3",Heading4:"Heading 4",Heading5:"Heading 5",Heading6:"Heading 6",Downloadable:"Downloadable",ArticleCategory:"Article category",Title:"Title",Subtitle:"Subtitle",InfoBox:"Info box",SideQuote:"Side quote",Marker:"Marker",Spoiler:"Spoiler",CodeDark:"Code (dark)",CodeBright:"Code (bright)"};function Vt(t){Object.keys(I).forEach(n=>{const o=t(n);o!=null&&(I[n]=o)})}function en(t,n){Z.language=t,Z.translations=n}const Z={language:"en",translations:void 0};r.ActionDisplayStyle=(t=>(t[t.BUTTON=0]="BUTTON",t[t.TEXT=1]="TEXT",t))(r.ActionDisplayStyle||{});const ue=0;(t=>{function n(l){return l.toUpperCase()==="BUTTON"?0:l.toUpperCase()==="TEXT"?1:ue}t.fromString=n;function o(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)?i:ue}t.fromAny=o;function a(l){const i=typeof l=="number"?l:t.fromString(l);return Object.values(t).includes(i)}t.isDefined=a})(r.ActionDisplayStyle||(r.ActionDisplayStyle={})),Object.freeze(r.ActionDisplayStyle);const de=["xs","sm","md","lg","xl"];class we{constructor(n){$e(this,"_value");this._value=this.cleanBreakpoint(n,!0),n&&de.forEach(o=>{const a=this.cleanBreakpoint(n[o]);a&&(this._value[o]=a)})}getOptionsForBreakpoint(n){const o=this.cleanBreakpoint(this._value),a=Object.keys(o);for(const l of de){const i=this._value[l];for(const u of a)(i==null?void 0:i[u])!=null&&(o[u]=i[u]);if(l===n)break}return o}}function ke(t){return t.xlAndUp.value?"xl":t.lgAndUp.value?"lg":t.mdAndUp.value?"md":t.smAndUp.value?"sm":"xs"}function Ce(){const t=re.useDisplay();return e.computed(()=>ke(t))}class Be extends we{cleanBreakpoint(n,o=!1){if((!n||!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 J extends E.Action{static create(n){return super.create(n)}getBreakpointValue(n){return e.computed(()=>{const a=new Be(this.value).getOptionsForBreakpoint(n.value);return{name:a.name,label:a.showLabel?a.label:void 0,icon:a.showIcon?a.icon:void 0,renderAs:a.renderAs,showLabel: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!=null?n:{}),{value:{name:"close",label:I.Close,icon:"close-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=_(_({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),J.create(o)}static yesAction(n){var a;const o=$(_({},n!=null?n:{}),{value:{name:"yes",label:I.Yes,icon:"thumbs-up-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=_(_({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),J.create(o)}static noAction(n){var a;const o=$(_({},n!=null?n:{}),{value:{name:"no",label:I.No,icon:"thumbs-down-outline",renderAs:r.ActionDisplayStyle.BUTTON,showLabel:!0,showIcon:!0}});return o.value=_(_({},o.value),(a=n==null?void 0:n.value)!=null?a:{}),J.create(o)}}const tn={key:1,style:{width:"0.5rem"}},nn={key:2},je=e.defineComponent({__name:"df-actions",props:{actions:{},buttonSize:{default:"default"},showAsGroup:{default:"no"}},setup(t){const n=t,o=Ce(),a=e.computed(()=>e.unref(n.actions)),l=e.computed(()=>a.value.map(i=>_({action:i},e.unref(i.getBreakpointValue(o)))));return(i,u)=>{const p=e.resolveComponent("v-btn");return a.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["text-end df-actions",{"button-group":i.showAsGroup==="grouped"||i.showAsGroup==="grouped-no-borders","with-border":i.showAsGroup==="grouped"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,f)=>(e.openBlock(),e.createBlock(p,{key:f,variant:s.renderAs===e.unref(r.ActionDisplayStyle).BUTTON?"tonal":"text",elevation:0,size:i.buttonSize,onClick:e.withModifiers(y=>s.action.execute(y),["stop"])},{default:e.withCtx(()=>[s.icon?(e.openBlock(),e.createBlock(e.unref(W.CachedIcon),{key:0,name:s.icon},null,8,["name"])):e.createCommentVNode("",!0),s.icon&&s.label?(e.openBlock(),e.createElementBlock("span",tn)):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",nn,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0)]),_:2},1032,["variant","size","onClick"]))),128))],2)):e.createCommentVNode("",!0)}}}),Te=e.defineComponent({__name:"df-checkbox",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},$(_({},z),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=U(o,a),y=e.computed(()=>o.allowNull&&s.value==null),m=e.computed({get(){return s.value},set(){}});function w(){const d=b.clone(s.value);d===!0?s.value=o.allowNull?null:!1:s.value=d===!1}return(d,T)=>{const P=e.resolveComponent("v-checkbox");return e.openBlock(),e.createBlock(P,e.mergeProps({modelValue:m.value,"onUpdate:modelValue":T[0]||(T[0]=k=>m.value=k)},e.unref(f),{density:"compact",class:e.unref(l),indeterminate:y.value,"false-value":!1,"true-value":!0,onChange:w,onBlur:T[1]||(T[1]=k=>p.value=!0)}),{label:e.withCtx(k=>[e.createVNode(e.unref(F),{"allow-wrap":!0,data:k,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:k})=>[e.createVNode(e.unref(H),{message:k,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","class","indeterminate"])}}}),Pe=e.defineComponent({__name:"df-color",props:e.mergeDefaults({allowNull:{type:Boolean},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},$(_({},z),{allowNull:!1})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=U(o,a),y=e.ref(!1),m=e.computed(()=>[w=>o.control||!w&&o.allowNull||/^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(w)?!0:"Not a valid hex string."]);return(w,d)=>{const T=e.resolveComponent("v-color-picker"),P=e.resolveComponent("v-menu"),k=e.resolveComponent("v-text-field");return e.openBlock(),e.createBlock(k,e.mergeProps({modelValue:e.unref(s),"onUpdate:modelValue":d[2]||(d[2]=g=>e.isRef(s)?s.value=g:null)},e.unref(f),{class:e.unref(l),clearable:w.allowNull,type:"text",rules:m.value,onBlur:d[3]||(d[3]=g=>p.value=!0)}),{label:e.withCtx(g=>[e.createVNode(e.unref(F),{data:g,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:g})=>[e.createVNode(e.unref(H),{message:g,errors:e.unref(i)},null,8,["message","errors"])]),"prepend-inner":e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([{width:"24px",height:"24px","border-radius":"4px",border:"1px solid #ccc"},{backgroundColor:e.unref(s)}])},null,4)]),default:e.withCtx(()=>[e.createVNode(P,{modelValue:y.value,"onUpdate:modelValue":d[1]||(d[1]=g=>y.value=g),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=g=>e.isRef(s)?s.value=g:null),mode:"hexa"},null,8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","class","clearable","rules"])}}}),De=e.defineComponent({__name:"df-datetime",props:e.mergeDefaults({inputType:{},displayFormatDate:{},displayFormatTime:{},locale:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},$(_({},z),{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,c;return(c=(h=l.value.options)==null?void 0:h.weekStartsOn)!=null?c:1}),{densityClass:u,touched:p,value:s,vuetifyBindings:f}=U(o,a),{inputType:y,displayFormatDate:m,displayFormatTime:w}=e.toRefs(o),d=e.ref(""),T=e.computed({get(){return e.unref(d)==="date"},set(h){d.value=h?"date":""}}),P=e.computed({get(){return e.unref(d)==="time"},set(h){d.value=h?"time":""}}),k=h=>`${R.format(h,"yyyy-MM-dd")}T${R.format(h,"HH:mm")}:00`,g=e.ref(null);function x(h,c){if(h==null)g.value=null;else if(c===-1)if(e.unref(y)==="time")g.value=k(new Date),x(`T${h}`,1);else{const A=k(new Date(h));x(A,0),x(A,1)}else{g.value==null&&(g.value=k(new Date));const A=g.value.split(/[TZ]/g),O=h.split(/[TZ]/g);A[c]=O[c],g.value=k(new Date(`${A[0]}T${A[1].split(".")[0]}`)),e.unref(y)==="date"?s.value=A[0]:e.unref(y)==="time"?s.value=A[1]:s.value=e.unref(g)+R.format(new Date,"XXX")}}e.watch(s,h=>x(h,-1),{immediate:!0});const M=e.computed({get(){const h=e.unref(g);if(h==null)return null;const c=new Date(h);return Number.isNaN(c.getTime())?null:c},set(h){x(k(h),0)}}),C=e.computed({get(){const h=e.unref(g);return h==null?"":h.split(/[TZ]/g)[1].split(".")[0]},set(h){x(`T${h}`,1)}}),B=e.computed({get(){const h=e.unref(M);return h==null?"":R.format(h,e.unref(m),{locale:l.value})},set(h){try{const c=R.parse(h,e.unref(m),new Date,{locale:l.value});x(k(c),0)}catch(c){console.error(c)}}}),L=e.computed({get(){const h=e.unref(M);return h==null?"":R.format(h,e.unref(w),{locale:l.value})},set(h){const c=h.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);if(c==null)return;let A=b.toNumber(c[1]);const O=b.toNumber(c[2]);b.isNaN(A)||b.isNaN(O)||(c[3]&&c[3].toLowerCase()==="pm"&&A<13&&(A+=12),x(`T${A.toString().padStart(2,"0")}:${O.toString().padStart(2,"0")}:00`,1))}});return(h,c)=>{const A=e.resolveComponent("v-date-picker"),O=e.resolveComponent("v-confirm-edit"),V=e.resolveComponent("v-menu"),ee=e.resolveComponent("v-text-field"),D=e.resolveComponent("v-time-picker");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps(o,{class:e.unref(u),clearable:h.clearable,"onClick:clear":c[14]||(c[14]=S=>s.value=null),onBlur:c[15]||(c[15]=S=>p.value=!0)}),{default:e.withCtx(S=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 ml-4 df-input-wrapper",h.density])},[["date","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(ee,e.mergeProps({key:0,modelValue:B.value,"onUpdate:modelValue":c[4]||(c[4]=j=>B.value=j),style:{"flex-grow":"4"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-date`},h.passthroughAttrs,{onClick:c[5]||(c[5]=j=>d.value="date"),onKeydown:c[6]||(c[6]=e.withKeys(j=>d.value="date",["space"])),onFocus:j=>S.focus(),onBlur:j=>S.blur()}),{default:e.withCtx(()=>[e.createVNode(V,{modelValue:T.value,"onUpdate:modelValue":c[3]||(c[3]=j=>T.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:M.value,"onUpdate:modelValue":c[0]||(c[0]=j=>M.value=j),onCancel:c[1]||(c[1]=j=>d.value=""),onSave:c[2]||(c[2]=j=>d.value="")},{default:e.withCtx(({model:j,actions:K})=>[e.createVNode(A,{modelValue:j.value,"onUpdate:modelValue":N=>j.value=N,"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(K)))]),_:2},1032,["modelValue","onUpdate:modelValue","first-day-of-week"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0),["time","datetime"].includes(e.unref(y))?(e.openBlock(),e.createBlock(ee,e.mergeProps({key:1,modelValue:L.value,"onUpdate:modelValue":c[11]||(c[11]=j=>L.value=j),style:{"flex-grow":"3"},density:"compact",variant:"plain",clearable:!1,"hide-details":!0,readonly:e.unref(f).readonly,disabled:e.unref(f).disabled,name:`${e.unref(f).name}-time`},h.passthroughAttrs,{onClick:c[12]||(c[12]=j=>d.value="time"),onKeydown:c[13]||(c[13]=e.withKeys(j=>d.value="time",["space"])),onFocus:j=>S.focus(),onBlur:j=>S.blur()}),{default:e.withCtx(()=>[e.createVNode(V,{modelValue:P.value,"onUpdate:modelValue":c[10]||(c[10]=j=>P.value=j),"close-on-content-click":!1,activator:"parent"},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:C.value,"onUpdate:modelValue":c[7]||(c[7]=j=>C.value=j),onCancel:c[8]||(c[8]=j=>d.value=""),onSave:c[9]||(c[9]=j=>d.value="")},{default:e.withCtx(({model:j,actions:K})=>[e.createVNode(D,{modelValue:j.value,"onUpdate:modelValue":N=>j.value=N,"hide-header":!0,format:"24hr"},{actions:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(K)))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},16,["modelValue","readonly","disabled","name","onFocus","onBlur"])):e.createCommentVNode("",!0)],2)]),_:1},16,["class","clearable"])}}}),Se=e.defineComponent({__name:"df-file",props:e.mergeDefaults({comms:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},z),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,touched:i,value:u,vuetifyBindings:p}=U(o,a),s=e.ref(null),f=e.ref(null),y=e.ref(0),m=e.ref(Math.round(Math.random()*1e3)),w=e.ref(),d=e.computed(()=>f.value&&y.value<100),T=e.computed(()=>!w.value&&u.value?o.modelValue:"");function P(){s.value&&window.clearInterval(s.value)}function k(){P(),s.value=window.setInterval(()=>{u.value&&o.comms.touch(u.value)},60*1e3)}e.onBeforeUnmount(()=>P()),e.watch(u,C=>{C?k():P()});function g(){return le(this,null,function*(){u.value&&(yield o.comms.delete(u.value)),u.value=null,y.value=0,m.value=Math.round(Math.random()*1e3),f.value=null,w.value=null,P()})}function x(C){return le(this,null,function*(){y.value=-1,f.value=C;try{u.value=yield o.comms.upload(C,(B,L)=>{y.value=Math.round(B*100/L)}),y.value=100,k()}catch(B){throw y.value=0,f.value=null,m.value=Math.round(Math.random()*1e3),w.value=null,B}})}function M(C){C&&(Array.isArray(C)?console.error("Uploading multiple files not supported right now"):x(C))}return(C,B)=>{const L=e.resolveComponent("v-progress-linear"),h=e.resolveComponent("v-file-input");return e.openBlock(),e.createBlock(e.unref(ne),e.mergeProps($(_({},o),{loading:d.value}),{class:e.unref(l),clearable:"","onClick:clear":g,onBlur:B[1]||(B[1]=c=>i.value=!0)}),{"prepend-inner":e.withCtx(()=>[e.createVNode(e.unref(W.CachedIcon),{name:"mdi-paperclip"})]),loader:e.withCtx(()=>[f.value&&y.value<100?(e.openBlock(),e.createBlock(L,{key:0,"model-value":y.value,indeterminate:y.value===-1},null,8,["model-value","indeterminate"])):e.createCommentVNode("",!0)]),default:e.withCtx(c=>[e.createElementVNode("div",{class:e.normalizeClass(["d-flex w-100 position-relative df-input-wrapper",C.density])},[e.createVNode(h,e.mergeProps({modelValue:w.value,"onUpdate:modelValue":B[0]||(B[0]=A=>w.value=A),label:T.value,density:"compact",variant:"plain",readonly:e.unref(p).readonly,disabled:e.unref(p).disabled,name:e.unref(p).name,"hide-details":!0,"show-size":!0,multiple:!1,style:f.value&&y.value<100?"visibility: hidden":"",clearable:!1},C.passthroughAttrs,{"prepend-icon":"","onUpdate:modelValue":M,onFocus:A=>c.focus(),onBlur:A=>c.blur()}),null,16,["modelValue","label","readonly","disabled","name","style","onFocus","onBlur"])],2)]),_:1},16,["class"])}}}),Ne=e.defineComponent({__name:"df-input",props:e.mergeDefaults({inputType:{},precision:{},step:{},min:{},max:{},control:{},modelValue:{},label:{},errors:{},placeholder:{},helpText:{},hint:{},enabled:{type:Boolean},visibility:{},cssClass:{},clearable:{type:Boolean},passthroughAttrs:{},density:{},variant:{}},$(_({},z),{inputType:"text",precision:null,step:void 0,min:void 0,max:void 0})),emits:["update:modelValue","click:clear"],setup(t,{emit:n}){const o=t,a=n,{densityClass:l,errors:i,label:u,touched:p,value:s,vuetifyBindings:f}=U(o,a),{inputType:y,max:m,min:w,precision:d,step:T}=e.toRefs(o),P=e.computed(()=>y.value==="number"),k=e.computed(()=>P.value?{min:e.unref(w),max:e.unref(m),precision:e.unref(d),step:e.unref(T)}:{});return(g,x)=>{const M=e.resolveComponent("v-text-field"),C=e.resolveComponent("v-number-input");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["df-input-container",e.unref(l)])},[P.value?(e.openBlock(),e.createBlock(C,e.mergeProps({key:1,modelValue:e.unref(s),"onUpdate:modelValue":x[2]||(x[2]=B=>e.isRef(s)?s.value=B:null)},_(_({},e.unref(f)),k.value),{density:"compact","control-variant":"stacked"}),{label:e.withCtx(B=>[e.createVNode(e.unref(F),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(H),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue"])):(e.openBlock(),e.createBlock(M,e.mergeProps({key:0,modelValue:e.unref(s),"onUpdate:modelValue":x[0]||(x[0]=B=>e.isRef(s)?s.value=B:null)},e.unref(f),{type:e.unref(y),onBlur:x[1]||(x[1]=B=>p.value=!0)}),{label:e.withCtx(B=>[e.createVNode(e.unref(F),{data:B,label:e.unref(u)},null,8,["data","label"])]),message:e.withCtx(({message:B})=>[e.createVNode(e.unref(H),{message:B,errors:e.unref(i)},null,8,["message","errors"])]),_:1},16,["modelValue","type"]))],2)}}}),on={class:"editor-container"},an={class:"editor-container__editor"},ln={ref:"editorElement"},rn=e.defineComponent({__name:"ck-editor-custom",props:{modelValue:{default:""},minHeight:{default:"7em"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:n,emit:o}){e.useCssVars(m=>({"32dcdf6e":m.minHeight}));const a=o,l=e.ref(!1),i=v.ClassicEditor,u={items:["undo","redo","|","selectAll","|","heading","style","|","bold","italic","|","horizontalLine","link","mediaEmbed","insertTable","blockQuote","|","alignment","|","bulletedList","numberedList","outdent","indent","|","accessibilityHelp"],shouldNotGroupWhenFull:!1},p=[v.AccessibilityHelp,v.Alignment,v.AutoImage,v.AutoLink,v.Autosave,v.BalloonToolbar,v.BlockQuote,v.Bold,v.CloudServices,v.Essentials,v.GeneralHtmlSupport,v.Heading,v.HorizontalLine,v.ImageBlock,v.ImageCaption,v.ImageInline,v.ImageInsertViaUrl,v.ImageResize,v.ImageStyle,v.ImageToolbar,v.ImageUpload,v.Indent,v.IndentBlock,v.Italic,v.Link,v.List,v.Autoformat,v.MediaEmbed,v.Paragraph,v.PasteFromMarkdownExperimental,v.PasteFromOffice,v.SelectAll,v.Style,v.Table,v.TableCellProperties,v.TableColumnResize,v.TableProperties,v.TableToolbar,v.Undo,v.TextTransformation,v.Base64UploadAdapter],s={options:[{model:"paragraph",title:I.Paragraph,class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:I.Heading1,class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:I.Heading2,class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:I.Heading3,class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:I.Heading4,class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:I.Heading5,class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:I.Heading6,class:"ck-heading_heading6"}]},f={language:Z.language,toolbar:u,plugins:p,balloonToolbar:["bold","italic","|","link","|","bulletedList","numberedList"],heading:s,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:I.Downloadable,attributes:{download:"file"}}}},placeholder:"",style:{definitions:[{name:I.ArticleCategory,element:"h3",classes:["category"]},{name:I.Title,element:"h2",classes:["document-title"]},{name:I.Subtitle,element:"h3",classes:["document-subtitle"]},{name:I.InfoBox,element:"p",classes:["info-box"]},{name:I.SideQuote,element:"blockquote",classes:["side-quote"]},{name:I.Marker,element:"span",classes:["marker"]},{name:I.Spoiler,element:"span",classes:["spoiler"]},{name:I.CodeDark,element:"pre",classes:["fancy-code","fancy-code-dark"]},{name:I.CodeBright,element:"pre",classes:["fancy-code","fancy-code-bright"]}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]},translations:Z.translations};e.onMounted(()=>{l.value=!0});const y=m=>{};return n({onEditorReady:y}),(m,w)=>{const d=e.resolveComponent("ckeditor");return e.openBlock(),e.createElementBlock("div",on,[e.createElementVNode("div",an,[e.createElementVNode("div",ln,[l.value?(e.openBlock(),e.createBlock(d,{key:0,"model-value":m.modelValue,editor:e.unref(i),config:f,disabled:m.disabled,style:e.normalizeStyle(`min-height: ${m.minHeight}`),onReady:y,"onUpdate:modelValue":w[0]||(w[0]=T=>a("update:modelValue",T))},null,