@koumoul/vjsf 2.5.2 → 2.7.1
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/CONTRIBUTE.md +1 -1
- package/dist/main.js +1 -1
- package/lib/VJsfNoDeps.js +8 -2
- package/lib/mixins/SelectProperty.js +7 -6
- package/lib/mixins/SimpleProperty.js +27 -1
- package/package.json +3 -3
package/CONTRIBUTE.md
CHANGED
|
@@ -22,7 +22,7 @@ Run a local development server:
|
|
|
22
22
|
|
|
23
23
|
This simply opens the documentation site in a local web server that will watch your edits to the source code both of the library and of the documentation and its examples.
|
|
24
24
|
|
|
25
|
-
Please note that you can open a single example in a lighter page by replacing the # by a slash in the URL (for example http://localhost:
|
|
25
|
+
Please note that you can open a single example in a lighter page by replacing the # by a slash in the URL (for example http://localhost:3133/examples#basic => http://localhost:3133/examples/basic).
|
|
26
26
|
|
|
27
27
|
An additionnal "Development" group of examples is visible, please add in this group examples that do not need to be presented to the users but has some value for maintainers.
|
|
28
28
|
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VJsf=t():e.VJsf=t()}(this,(function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19)}([function(e,t,r){!function(e){"use strict";var t="function"==typeof WeakSet,r=Object.keys;function i(e,t){e&&"object"==typeof e&&t.add(e)}function n(e,t,r,i){for(var n,s=e.length,o=0;o<s;o++)if(r((n=e[o])[0],t[0],i)&&r(n[1],t[1],i))return!0;return!1}function s(e,t,r,i){for(var n=e.length,s=0;s<n;s++)if(r(e[s],t,i))return!0;return!1}function o(e,t){return e===t||e!=e&&t!=t}function l(e){return e.constructor===Object||null==e.constructor}function a(e){return!!e&&"function"==typeof e.then}function u(e){return!(!e||!e.$$typeof)}function c(){return Object.create({_values:[],add:function(e){this._values.push(e)},has:function(e){return-1!==this._values.indexOf(e)}})}var f=t?function(){return new WeakSet}:c;function h(e){return function(t){var r=e||t;return function(e,t,n){void 0===n&&(n=f());var s=n.has(e),o=n.has(t);return s||o?s&&o:(i(e,n),i(t,n),r(e,t,n))}}}function p(e){var t=new Array(e.size),r=0;return e.forEach((function(e,i){t[r++]=[i,e]})),t}function m(e){var t=new Array(e.size),r=0;return e.forEach((function(e){t[r++]=e})),t}var d="_owner",y=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function v(e,t,i,n){var s,o=r(e),l=o.length;if(r(t).length!==l)return!1;for(var a=0;a<l;a++){if(s=o[a],!y(t,s))return!1;if(s===d&&u(e)){if(!u(t))return!1}else if(!i(e[s],t[s],n))return!1}return!0}var b=Array.isArray,g="function"==typeof Map,O="function"==typeof Set,S="object";function x(e){var t="function"==typeof e?e(r):r;function r(e,r,i){if(o(e,r))return!0;if(e&&r&&typeof e===S&&typeof r===S){if(l(e)&&l(r))return v(e,r,t,i);var u=b(e),c=b(r);if(u||c)return u===c&&function(e,t,r,i){var n=e.length;if(t.length!==n)return!1;for(var s=0;s<n;s++)if(!r(e[s],t[s],i))return!1;return!0}(e,r,t,i);var f=e instanceof Date,h=r instanceof Date;if(f||h)return f===h&&o(e.getTime(),r.getTime());var d=e instanceof RegExp,y=r instanceof RegExp;if(d||y)return d===y&&function(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}(e,r);if(a(e)||a(r))return e===r;if(g){var x=e instanceof Map,j=r instanceof Map;if(x||j)return x===j&&function(e,t,r,i){if(e.size!==t.size)return!1;for(var s=p(e),o=p(t),l=s.length,a=0;a<l;a++)if(!n(o,s[a],r,i)||!n(s,o[a],r,i))return!1;return!0}(e,r,t,i)}if(O){var P=e instanceof Set,w=r instanceof Set;if(P||w)return P===w&&function(e,t,r,i){if(e.size!==t.size)return!1;for(var n=m(e),o=m(t),l=n.length,a=0;a<l;a++)if(!s(o,n[a],r,i)||!s(n,o[a],r,i))return!1;return!0}(e,r,t,i)}return v(e,r,t,i)}return!1}return r}var j=x(),P=x((function(){return o})),w=x(h()),k=x(h(o));e.circularDeepEqual=w,e.circularShallowEqual=k,e.createCustomEqual=x,e.deepEqual=j,e.sameValueZeroEqual=o,e.shallowEqual=P,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,r){(function(t){var r;r=function(){"use strict";var e=Function.prototype.toString,r=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,a=Object.prototype,u=a.hasOwnProperty,c=a.propertyIsEnumerable,f="function"==typeof o,h="function"==typeof WeakMap,p=function(){if(h)return new WeakMap;var e=r({has:function(t){return!!~e._keys.indexOf(t)},set:function(t,r){e._keys.push(t),e._values.push(r)},get:function(t){return e._values[e._keys.indexOf(t)]}});return e._keys=[],e._values=[],e},m=function(t,i){if(!t.constructor)return r(null);var n=t.constructor,s=t.__proto__||l(t);if(n===i.Object)return s===i.Object.prototype?{}:r(s);if(~e.call(n).indexOf("[native code]"))try{return new n}catch(e){}return r(s)},d=function(e,t,r,i){var n=m(e,t);for(var s in i.set(e,n),e)u.call(e,s)&&(n[s]=r(e[s],i));if(f){var l=o(e),a=l.length;if(a)for(var h=0,p=void 0;h<a;h++)p=l[h],c.call(e,p)&&(n[p]=r(e[p],i))}return n},y=function(e,t,r,l){var a=m(e,t);l.set(e,a);var u=f?s(e).concat(o(e)):s(e),c=u.length;if(c)for(var h=0,p=void 0,d=void 0;h<c;h++)if("callee"!==(p=u[h])&&"caller"!==p)if(d=n(e,p)){d.get||d.set||(d.value=r(e[p],l));try{i(a,p,d)}catch(e){a[p]=d.value}}else a[p]=r(e[p],l);return a},v=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},b=Array.isArray,g="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:void(console&&console.error&&console.error('Unable to locate global object, returning "this".'));function O(e,t){var r=!(!t||!t.isStrict),i=t&&t.realm||g,n=r?y:d,s=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var o,l=e.constructor;if(l===i.Object)return n(e,i,s,t);if(b(e)){if(r)return y(e,i,s,t);var a=e.length;o=new l,t.set(e,o);for(var u=0;u<a;u++)o[u]=s(e[u],t);return o}if(e instanceof i.Date)return new l(e.getTime());if(e instanceof i.RegExp)return(o=new l(e.source,e.flags||v(e))).lastIndex=e.lastIndex,o;if(i.Map&&e instanceof i.Map)return o=new l,t.set(e,o),e.forEach((function(e,r){o.set(r,s(e,t))})),o;if(i.Set&&e instanceof i.Set)return o=new l,t.set(e,o),e.forEach((function(e){o.add(s(e,t))})),o;if(i.Blob&&e instanceof i.Blob)return e.slice(0,e.size,e.type);if(i.Buffer&&i.Buffer.isBuffer(e))return o=i.Buffer.allocUnsafe?i.Buffer.allocUnsafe(e.length):new l(e.length),t.set(e,o),e.copy(o),o;if(i.ArrayBuffer){if(i.ArrayBuffer.isView(e))return o=new l(e.buffer.slice(0)),t.set(e,o),o;if(e instanceof i.ArrayBuffer)return o=e.slice(0),t.set(e,o),o}return"function"==typeof e.then||e instanceof Error||i.WeakMap&&e instanceof i.WeakMap||i.WeakSet&&e instanceof i.WeakSet?e:n(e,i,s,t)};return s(e,p())}return O.default=O,O.strict=function(e,t){return O(e,{isStrict:!0,realm:t?t.realm:void 0})},O},e.exports=r()}).call(this,r(5))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return n})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return o}));var i={locale:"en",rootDisplay:"",objectContainerClass:"",sectionsClass:"pl-2 pt-2",sectionsTitlesClasses:["title","subtitle-1","subtitle-2"],arrayItemsTitlesClasses:["title","subtitle-1","subtitle-2"],childrenClass:"",fieldProps:{},fieldColProps:{cols:12},readOnlyFieldProps:{hideDetails:!0},textFieldProps:{},textareaProps:{filled:!0},numberProps:{},sliderProps:{},checkboxProps:{},switchProps:{},comboboxProps:{},selectProps:{},fileInputProps:{},radioGroupProps:{},radioItemProps:{},tabsProps:{grow:!0},expansionPanelsProps:{mandatory:!0},dialogProps:{maxWidth:500},dialogCardProps:{},colorPickerProps:{},timePickerProps:{},datePickerProps:{scrollable:!0},arrayItemCardProps:{},arrayItemColProps:{cols:12},stepperProps:{},verticalStepperProps:{},tooltipProps:{left:!0,openOnHover:!1,openOnClick:!0},removeAdditionalProperties:!0,disableAll:!1,hideReadOnly:!1,deleteReadOnly:!1,filesAsDataUrl:!1,hideTooltips:!1,disableSorting:!1,context:{},rules:{},initialValidation:"defined",idPrefix:"",markdownit:{},editMode:"dialog",arrayOperations:["create","update","delete"],autofocus:!1,httpOptions:{},selectAll:!1,autoFixArrayItems:!0,useValidator:!1,evalMethod:"propertyExpr"},n={en:{required:"This information is required",noData:"No matching value found",search:"Search...",minimum:"The value must be greater than or equal to {minimum}",exclusiveMinimum:"The value must be greater than {exclusiveMinimum}",maximum:"The value must be lower than or equal to {maximum}",exclusiveMaximum:"The value must be lower than {exclusiveMaximum}",minLength:"{minLength} characters minimum",maxLength:"{maxLength} characters maximum",minItems:"No less than {minItems} items",maxItems:"No more than {maxItems} items",pattern:"The expected pattern is not satisfied",mdeLink1:"[Link title",mdeLink2:"](link url)",mdeImg1:"",mdeTable1:"",mdeTable2:"\n\n| Column 1 | Column 2 | ColoColumnnne 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n",bold:"Bold",italic:"Italic",heading:"Title",quote:"Quote",unorderedList:"Unordered list",orderedList:"Ordered list",createLink:"Create a link",insertImage:"Insert an image",createTable:"Create a table",preview:"Aperçu du rendu",mdeGuide:"Documentation de la syntaxe",undo:"Undo",redo:"Redo",selectAll:"Select all"},fr:{required:"Cette information est obligatoire",noData:"Aucun élément correspondant",search:"Recherchez...",minimum:"La valeur doit être supérieure ou égale à {minimum}",exclusiveMinimum:"La valeur doit être supérieure {exclusiveMinimum}",maximum:"La valeur doit être inférieure ou égale à {maximum}",exclusiveMaximum:"La valeur doit être inférieure à {exclusiveMaximum}",minLength:"{minLength} caractères minimum",maxLength:"{maxLength} caractères maximum",minItems:"Au moins {minItems} éléments",maxItems:"Au plus {maxItems} éléments",pattern:"Le format attendu n'est pas respecté",mdeLink1:"[titre du lien",mdeLink2:"](adresse du lien)",mdeImg1:"",mdeTable1:"",mdeTable2:"\n\n| Colonne 1 | Colonne 2 | Colonne 3 |\n| -------- | -------- | -------- |\n| Texte | Texte | Texte |\n\n",bold:"Gras",italic:"Italique",heading:"Titre",quote:"Citation",unorderedList:"Liste à puce",orderedList:"Liste numérotée",createLink:"Créer un lien",insertImage:"Insérer une image",createTable:"Créer un tableau",preview:"Preview",mdeGuide:"Syntax documentation",undo:"Défaire",redo:"Refaire",selectAll:"Tout sélectionner"},es:{required:"Esta información es requerida",noData:"No se encontraron valores coincidentes",search:"Buscar...",minimum:"El valor debe ser mayor o igual que {mínimo}",exclusiveMinimum:"El valor debe ser mayor que {minimum}",maximum:"El valor debe ser menor o igual a {maximum}",exclusiveMaximum:"El valor debe ser inferior a {maximum}",minLength:"{minLength} caracteres mínimo",maxLength:"{maxLength} caractères máximo",minItems:"Al menos {minItems} articulos",maxItems:"Hasta {maxItems} articulos",pattern:"El formato esperado no se respeta",selectAll:"Seleccionar todo"},de:{required:"Diese Informationen sind erforderlich",noData:"Keine passenden Artikel",search:"Suche...",minimum:"Der Wert muss größer oder gleich {Minimum} sein",exclusiveMinimum:"Der Wert muss größer als {exclusiveMinimum} sein",maximum:"Der Wert muss kleiner oder gleich {Maximum} sein",exclusiveMaximum:"Der Wert muss kleiner als {maximum} sein",minLength:"Mindestens {minLength} Zeichen",maxLength:"Maximal {maxLength} Zeichen",minItems:"Mindestens {minItems} Elemente",maxItems:"Bis zu {maxItems} Artikel",pattern:"Das erwartete Format wird nicht eingehalten",selectAll:"Wählen Sie Alle"},ar:{required:"هذه المعلومة مطلوبة",noData:"لم يتم العثور على قيمة",search:"جاري البحث...",minimum:"{exclusiveMinimum} القيمة يجب أن تكون أكبر من",exclusiveMinimum:"{exclusiveMinimum} القيمة يجب أن تكون أكبر من",maximum:"{maximum} القيمة يجب أن تكون أقل من",exclusiveMaximum:"{exclusiveMaximum} القيمة يجب أن تكون أقل من",minLength:"{minLength} الحد الأدنى للحروف المطلوبة هو",maxLength:"{maxLength} الحد الأقصى للحروف المطلوبة هو",minItems:"قطع {minItems} لا يمكن اختيار أقل من ",maxItems:"قطع {maxItems} لا يمكن اختيار أكثر من ",pattern:"لا يوجد تشابه مع النموذج المطلوب",selectAll:"اختر الكل"},tr:{required:"Zorunlu alan",noData:"Bilgi yok",search:"Arıyor...",minimum:"Değer {minimum} dan büyük olmalı",exclusiveMinimum:"Değer {exclusiveMinimum} dan büyük olmalı",maximum:"Değer, {maximum} değerinden küçük veya ona eşit olmalıdır",exclusiveMaximum:"Değer {maximum} dan küçük olmalı",minLength:"{minLength} asgari karakter sayısı",maxLength:"{maxLength} azami karakter sayısı",minItems:"En az seçenek sayısı {minItems}",maxItems:"En çok seçenek sayısı {maxItems}",pattern:"İstenilen paten tutmuyor",selectAll:"Hepsini seç"},nl:{required:"Deze informatie is vereist",noData:"Geen overeenkomstig resultaat gevonden",search:"Zoeken...",minimum:"De waarde moet groter zijn dan of gelijk zijn aan {minimum}",exclusiveMinimum:"Waarde moet meer zijn dan {exclusiveMinimum}",maximum:"De waarde moet lager zijn dan of gelijk zijn aan {maximum}",exclusiveMaximum:"Waarde moet minder zijn dan {maximum}",minLength:"Minimaal {minLength} tekens",maxLength:"Maximaal {maxLength} tekens",minItems:"Minimaal {minItems} antwoorden",maxItems:"Maximaal {maxItems} antwoorden",pattern:"Invoer voldoet niet aan verwachte patroon",selectAll:"Selecteer alles"}},s={time:function(e,t){var r=new Date("".concat((new Date).toISOString().split("T")[0],"T").concat(e));return new Date(r.getTime()+6e4*r.getTimezoneOffset()).toLocaleTimeString(t)},date:function(e,t){var r=new Date(e);return new Date(r.getTime()+6e4*r.getTimezoneOffset()).toLocaleDateString(t)},"date-time":function(e,t){return new Date(e).toLocaleString(t)}},o={mdiSvg:{calendar:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",clock:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",add:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",delete:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},mdi:{calendar:"mdi-calendar",clock:"mdi-clock",info:"mdi-information",add:"mdi-plus",edit:"mdi-pencil",delete:"mdi-delete"},md:{calendar:"event",clock:"clock",info:"info",add:"add",edit:"create",delete:"delete"},fa:{calendar:"fa-calendar",clock:"fa-clock",info:"fa-info",add:"fa-plus",edit:"fa-edit",delete:"fa-trash"}}},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a={};t.a=a;var u=function(e){return Object.keys(e||{}).map((function(t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e[t],{key:t})}))},c=function(e,t){e.required=e.required.concat(t.required||[]),e.properties=e.properties.concat(u(t.properties)),t.oneOf&&(e.oneOf=(e.oneOf||[]).concat(t.oneOf)),t.allOf&&(e.allOf=(e.allOf||[]).concat(t.allOf))};a.prepareFullSchema=function(e,t,r){var i=n()(e);if(i.pattern&&(i.patternRegexp=new RegExp(i.pattern)),!i.type&&i.properties&&(i.type="object"),!i.type){var o=i.anyOf||i.oneOf||i.allOf,l=o&&o.find((function(e){return!!e.type}));l&&(i.type=l.type)}if(Array.isArray(i.type)&&(i.nullable=i.type.includes("null"),i.type=i.type.find((function(e){return"null"!==e})),i.nullable&&i.enum&&(i.enum=i.enum.filter((function(e){return null!==e})))),i.items&&Array.isArray(i.items)&&i.items.forEach((function(e,t){e.key=""+t})),i.enum&&1===i.enum.length&&(i.const=i.enum[0],delete i.enum),"object"!==i.type)return i;if(i.properties=u(i.properties),i.required=i.required||[],i.dependencies=i.dependencies||{},i.dependencies&&Object.keys(i.dependencies).forEach((function(e){var r=i.dependencies[e];if(t){var n=function(e,t){for(var r=t.split("."),i=0;i<r.length&&![null,void 0].includes(e);i++)e=e[r[i]];return e}(t,e);[null,void 0,!1].includes(n)||Array.isArray(n)&&0===n.length||"object"===s(n)&&0===Object.keys(n).length||c(i,r)}})),i.if)if(r.validator){var a=r.validator(i.if)(t);!a&&i.then&&c(i,i.then),a&&i.else&&c(i,i.else)}else console.error("v-jsf - The conditional if/then/else syntax requires the ajv or other validator option.");return i}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(e,t,r,s,l){var a=[];if(s&&a.push((function(e){return null!=e&&""!==e||r.messages.required})),"array"===t.type&&void 0!==t.minItems){var u=r.messages.minItems.replace("{minItems}",t.minItems.toLocaleString(r.locale));a.push((function(e){return!e||e.length>=t.minItems||u}))}if("array"===t.type&&void 0!==t.maxItems){var c=r.messages.maxItems.replace("{maxItems}",t.maxItems.toLocaleString(r.locale));a.push((function(e){return!e||e.length<=t.maxItems||c}))}if("string"===t.type&&void 0!==t.minLength){var f=r.messages.minLength.replace("{minLength}",t.minLength.toLocaleString(r.locale));a.push((function(e){return null==e||e.length>=t.minLength||f}))}if("string"===t.type&&void 0!==t.maxLength){var h=r.messages.maxLength.replace("{maxLength}",t.maxLength.toLocaleString(r.locale));a.push((function(e){return null==e||e.length<=t.maxLength||h}))}if("string"===t.type&&void 0!==t.patternRegexp){var p=r.messages.pattern.replace("{pattern}",t.pattern);a.push((function(e){return null==e||!!e.match(t.patternRegexp)||p}))}if(["number","integer"].includes(t.type)&&void 0!==t.maximum){var m=r.messages.maximum.replace("{maximum}",t.maximum.toLocaleString(r.locale));a.push((function(e){return null==e||e<=t.maximum||m}))}if(["number","integer"].includes(t.type)&&void 0!==t.exclusiveMaximum){var d=r.messages.exclusiveMaximum.replace("{exclusiveMaximum}",t.exclusiveMaximum.toLocaleString(r.locale));a.push((function(e){return null==e||e<t.exclusiveMaximum||d}))}if(["number","integer"].includes(t.type)&&void 0!==t.minimum){var y=r.messages.minimum.replace("{minimum}",t.minimum.toLocaleString(r.locale));a.push((function(e){return null==e||e>=t.minimum||y}))}if(["number","integer"].includes(t.type)&&void 0!==t.exclusiveMinimum){var v=r.messages.exclusiveMinimum.replace("{exclusiveMinimum}",t.exclusiveMinimum.toLocaleString(r.locale));a.push((function(e){return null==e||e>t.exclusiveMinimum||v}))}t.enum&&a.push((function(e){return null==e||!!t.enum.find((function(t){return Object(i.deepEqual)(t,e)}))||""})),"array"===t.type&&t.items.enum&&a.push((function(e){return null==e||!e.find((function(e){return!t.items.enum.find((function(t){return Object(i.deepEqual)(t,e)}))}))||""})),l&&"array"!==t.type&&a.push((function(e){return null==e||!!t.oneOf.find((function(t){return Object(i.deepEqual)(t.const,e)}))||""})),l&&"array"===t.type&&a.push((function(e){return null==e||!e.find((function(e){return!t.items.oneOf.find((function(t){return Object(i.deepEqual)(t.const,e)}))}))||""})),r.validator&&r.useValidator&&a.push(o(e,r.validator));var b=(t["x-rules"]||[]).map((function(e){if("string"==typeof e){var t=r.rules&&r.rules[e];return t||console.error("rule ".concat(e," is referenced but not define in options")),t}console.error("rule should be a string, received ".concat(n(e)))})).filter((function(e){return!!e}));return a.concat(b)},o=function(e,t,r){var i=t(e);return function(e){if(null==e)return!0;var t=i(e);return!t||t}}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function i(e){this._maxSize=e,this.clear()}i.prototype.clear=function(){this._size=0,this._values=Object.create(null)},i.prototype.get=function(e){return this._values[e]},i.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,s=/^\d+$/,o=/^\d/,l=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new i(512),c=new i(512),f=new i(512);function h(e){return u.get(e)||u.set(e,p(e).map((function(e){return e.replace(a,"$2")})))}function p(e){return e.match(n)}function m(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!m(e)&&(function(e){return e.match(o)&&!e.match(s)}(e)||function(e){return l.test(e)}(e))}e.exports={Cache:i,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,(function(e,r){for(var i=0,n=t.length,s=e;i<n-1;){var o=t[i];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;s=s[t[i++]]}s[t[i]]=r}))},getter:function(e,t){var r=h(e);return f.get(e)||f.set(e,(function(e){for(var i=0,n=r.length;i<n;){if(null==e&&t)return;e=e[r[i++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(m(t)||s.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var i,n,s,o,l=e.length;for(n=0;n<l;n++)(i=e[n])&&(d(i)&&(i='"'+i+'"'),o=m(i),s=!o&&/^\d+$/.test(i),t.call(r,i,o,s,n,e))}(Array.isArray(e)?e:p(e),t,r)}}},function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=r(6),s={cache:{},extendtoken:"$extend",reftoken:"$ref",pathtoken:"#",debug:!1,clone:function(e){var t,r;if(null===e||"object"!==i(e)||"function"==typeof e)return e;for(t in r=e.constructor(),e)r[t]=s.clone(e[t]);return r},findIds:function(e,t){var r,n,o,l;for(n in r=!1,o={},e)l=e[n],null!=e.id&&(r=e.id),r&&"id"!==n&&(o[n]=l),"object"===i(l)&&s.findIds(l,t);if(r)return t[r]=o,o},get_json_pointer:function(e,t,r){var i,o;i=e.replace(/\\\//,"#SLASH#").replace(/\//g,".").replace(/#SLASH#/,"/"),Object.keys(r).forEach((function(e){i=i.replace(e,r[e])})),"."===(i=i.replace(new RegExp("^"+s.pathtoken),""))[0]&&(i=i.substr(1,i.length-1));try{s.debug&&console.log("evaluating '"+i+"'"),o=n.getter(i)(t)}catch(e){console.error(e),o=""}return o},replace:function(e,t,r,n){var o,l,a,u,c,f;for(o in c=[],e)f=e[o],s.debug&&"string"==typeof l&&console.log("checking "+o),null!=f&&null!=f[s.reftoken]?(l=f[s.reftoken],s.debug&&"string"==typeof l&&console.log("checking "+o+" -> "+l),Object.keys(f).length>1&&console.error("json-ref-lite error: object '"+o+"' contains reference as well as other properties..ignoring properties"),Array.isArray(l)?l=s.replace(l,t,r,n):null!=t[l]?e[o]=t[l]:String(l).match(new RegExp("^"+s.pathtoken))&&(s.debug&&console.log("checking "+l+" pathtoken"),e[o]=s.get_json_pointer(l,r,n)),null!=(null!=(a=e[o])?a.length:void 0)&&0===(null!=(u=e[o])?u.length:void 0)&&s.debug?c.push(console.log(l+" reference not found")):c.push(void 0)):"object"===i(f)?c.push(s.replace(f,t,r,n)):c.push(void 0);return c},extend:function(e,t){var r,n,o,l,a,u;if("object"===i(e)){for(r in o=[],e){if(u=e[r],r===s.extendtoken&&null!=u[s.reftoken]){for(l in n=s.get_json_pointer(u[s.reftoken],e,t),u)a=u[l],l!==s.reftoken&&(n[l]=a);delete e[r]}"object"===i(u)?o.push(u=s.extend(u)):o.push(void 0)}return o}},resolve:function(e,t){var r;return r={},s.findIds(e,r),s.debug&&Object.keys(r).length&&console.dir(r),s.replace(e,r,e,t),e},evaluate:function(e,t,r){var n,o,l;for(n in null==r&&(r=s.evaluateStr),o=s.clone(e))"string"==typeof(l=o[n])&&(e[n]=r(l,t)),"object"===i(l)&&(e[n]=s.evaluate(l,t));return e},evaluateStr:function(e,t){if("string"!=typeof e)return e;if("{"!==e[0]||"}"!==e[e.length-1])return e.replace(/(\{)(.*?)(\})/g,(function(e,r,i){var o;if(o="",null==t||null==i)return o;if(null!=t[i]&&"function"==typeof t[i])o=t[i]();else if(null!=t[i])o=t[i];else{try{i=i.replace(new RegExp("^"+s.pathtoken+"/"),"").replace(/\//g,"."),o=n.getter(i)(t)}catch(e){err=e,o=""}null==o&&(o="")}return s.evaluateStr(o,t),o}));try{return n.getter(e.replace(/^{/,"").replace(/}$/,""))(t)}catch(e){return null}}};t.a=s},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={data:function(){return{currentOneOf:null,currentTab:null,showCurrentOneOf:!0,subModels:{},currentStep:1,steps:[]}},computed:{isObjectContainer:function(){if(this.debug("compute isObjectContainer"),this.fullSchema)return!("object"!==this.fullSchema.type&&!Array.isArray(this.fullSchema.items))&&(!this.isSelectProp&&!this.isFileProp)},subSchemas:function(){if(this.debug("compute subSchemas"),this.fullSchema)return this.fullSchema.oneOf||this.fullSchema.anyOf},subSchemasConstProp:function(){if(this.debug("compute subSchemasConstProp"),this.subSchemas){var e=this.subSchemas[0].properties,t=Object.keys(e).find((function(t){return!!e[t].const}));if(t)return l({},e[t],{key:t,htmlDescription:this.fullOptions.memMarkdown(e[t].description)})}},subSchemasRequired:function(){var e=this;return this.debug("compute subSchemasRequired"),!(!this.subSchemas||!this.subSchemasConstProp)&&(!!this.fullSchema.oneOf||(!!(this.fullSchema.anyOf&&this.fullSchema.required&&this.fullSchema.required.find((function(t){return t===e.oneOfConstProp.key})))||void 0))},subSchemasRules:function(){var e=this;if(this.debug("compute subSchemasRules"),this.fullSchema){var t=[];return this.subSchemasRequired&&t.push((function(t){return null!=t&&""!==t||e.fullOptions.messages.required})),t}}},watch:{currentOneOf:function(e,t){var r=this;this.debug("watched currentOneOf"),this.showCurrentOneOf=!1,this.$nextTick((function(){r.showCurrentOneOf=!0,r.currentOneOf?r.input(r.fixProperties(r.value),!1,!1):r.$set(r.subModels,"currentOneOf",{}),r.triggerChangeCurrentOneOf&&r.$nextTick((function(){r.triggerChangeCurrentOneOf=!1,r.change()}))}))},subModels:{handler:function(){this.debug("watched subModels"),this.input(this.fixProperties(this.value),!1,!1)},deep:!0}},methods:{isSection:function(e,t){return!!e&&(!!e.title&&(!(e["x-fromUrl"]||e["x-fromData"]||e.contentMediaType||"file"===e["x-display"])&&(!!e.allOf||(!(!t||!e.anyOf&&!e.oneOf)||!(!e.properties&&!Array.isArray(e.items))))))},initObjectContainer:function(e){var t=this;"object"===this.fullSchema.type&&(this.fullSchema.allOf&&this.fullSchema.allOf.forEach((function(r,i){t.$set(t.subModels,"allOf-"+i,n()(e))})),this.currentOneOf=null,this.subSchemas&&!this.currentOneOf&&this.subSchemasConstProp&&(e&&e[this.subSchemasConstProp.key]?this.currentOneOf=this.subSchemas.find((function(r){return r.properties[t.subSchemasConstProp.key].const===e[t.subSchemasConstProp.key]})):this.fullSchema.default&&(this.currentOneOf=this.subSchemas.find((function(e){return e.properties[t.subSchemasConstProp.key].const===t.fullSchema.default[t.subSchemasConstProp.key]})))),this.currentOneOf?this.$set(this.subModels,"currentOneOf",n()(e)):this.$set(this.subModels,"currentOneOf",{}))},renderStepperStep:function(e,t,r,i,n,s){if(i){var o=r||t.key,l=this.dedupChildrenWithValidatedErrors.includes(o);return[e("v-stepper-step",{props:{step:n,editable:n<this.currentStep,complete:n<this.currentStep,rules:[function(){return!l}]}},[t.title]),s?null:e("v-divider")]}},renderSection:function(e,t,r,i,n,s){var o=this;if(i){var l=r||t.key,a="section-"+l;return"hidden"===t["x-display"]||t.readOnly&&this.fullOptions.hideReadOnly?[i]:"expansion-panels"===this.display?[e("v-expansion-panel",{key:a},[e("v-expansion-panel-header",{class:{"error--text":this.dedupChildrenWithValidatedErrors.includes(l)}},[t.title]),e("v-expansion-panel-content",{props:{eager:!0}},[i])])]:"tabs"===this.display?[e("v-tab",{key:a,props:{href:"#tab-".concat(this.fullOptions.idPrefix).concat(this.dashKey,"-").concat(l)}},[e("span",{class:{"error--text":this.dedupChildrenWithValidatedErrors.includes(l)}},[t.title])]),e("v-tab-item",{key:a,props:{value:"tab-".concat(this.fullOptions.idPrefix).concat(this.dashKey,"-").concat(l),eager:!0}},[e("v-card",{props:{tile:!0,flat:!0}},[e("v-card-text",[i])])])]:"stepper"===this.display||"vertical-stepper"===this.display?[e("v-stepper-content",{key:a,props:{step:n,eager:!0}},[e("v-card",{props:{tile:!0,flat:!0}},[e("v-card-text",{class:{"pa-0":!0}},[i]),s?null:e("v-card-actions",{class:{"px-0":!0}},[e("v-btn",{props:{color:"primary"},on:{click:function(){console.log(i),i.componentInstance.validate(!0)&&(o.currentStep+=1)}}},"continue")])])])]:[e("v-row",{key:a,class:"ma-0 ".concat(this.fullOptions.sectionsClass)},[e("span",{class:"py-2 "+(this.fullOptions.sectionsTitlesClasses[this.sectionDepth]||this.fullOptions.sectionsTitlesClasses[this.fullOptions.sectionsTitlesClasses.length-1])},["".concat(t.title," ")]),i])]}},renderChildProp:function(e,t,r,i,o){var a,u=this;this.objectContainerChildrenCount+=1,a=r?this.subModels:Array.isArray(this.value)?s(this.value):l({},this.value);var c=r||t.key,f=a[c];return void 0===(f=this.fixValueType(f,t))&&(f=this.defaultValue(t),void 0!==t.default&&(f=n()(t.default)),null!=f&&(this.$set(a,c,f),r||this.input(a,!1,!1))),e("v-jsf",{props:{schema:l({readOnly:this.fullSchema.readOnly},t),value:f,modelRoot:this.modelRoot||this.value,modelKey:c,parentKey:"".concat(this.fullKey,"."),required:o||!(!this.fullSchema.required||!this.fullSchema.required.includes(t.key)),options:l({},this.fullOptions,{autofocus:this.fullOptions.autofocus&&1===this.objectContainerChildrenCount}),optionsRoot:this.initialOptions,sectionDepth:i},class:this.fullOptions.childrenClass,scopedSlots:this.childScopedSlots(t.key),key:c,on:{error:function(e){return u.$emit("error",e)},input:function(e){void 0===e?Array.isArray(a)&&parseInt(c)<a.length-1?u.$set(a,c,e):u.$delete(a,c):u.$set(a,c,e),r||u.input(a,!1,!1)},change:function(e){return u.change(!1)}}},this.childSlots(e,t.key))},renderObjectContainer:function(e){var t=this;if(this.isObjectContainer){if([void 0,null].includes(this.value))return[];var r=[];this.objectContainerChildrenCount=0;var i=[];this.fullSchema.properties&&this.fullSchema.properties.forEach((function(n){t.isSection(n)?i.push({schema:n,subModelKey:null,forceRequired:!1}):r.push(t.renderChildProp(e,n,null,t.sectionDepth,!1))})),Array.isArray(this.fullSchema.items)&&this.fullSchema.items.forEach((function(n,s){var o=t.value.length>s||t.fullSchema.minItems&&t.fullSchema.minItems>s;t.isSection(n)?i.push({schema:n,subModelKey:null,forceRequired:o}):r.push(t.renderChildProp(e,n,null,t.sectionDepth,o))})),this.fullSchema.allOf&&this.fullSchema.allOf.forEach((function(n,s){var o=l({},n,{type:"object",key:""+s});t.isSection(n,!0)?i.push({schema:o,subModelKey:"allOf-"+s,forceRequired:!1}):r.push(t.renderChildProp(e,o,"allOf-"+s,t.sectionDepth))}));var n=[],s=[];if(i.forEach((function(r,o){var l=t.renderChildProp(e,r.schema,r.subModelKey,t.sectionDepth+1,r.forceRequired);n=n.concat(t.renderSection(e,r.schema,r.subModelKey,l,o+1,o===i.length-1)),"stepper"!==t.display&&"vertical-stepper"!==t.display||(s=s.concat(t.renderStepperStep(e,r.schema,r.subModelKey,l,o+1,o===i.length-1)))})),"expansion-panels"===this.display&&n.length){var o=l({},this.fullOptions.expansionPanelsProps,{},this.fullSchema["x-props"]);n=[e("v-expansion-panels",{props:o},n)]}if("tabs"===this.display&&n.length){var a=l({},this.fullOptions.tabsProps,{},this.fullSchema["x-props"]);this.currentTab&&this.dedupChildrenWithValidatedErrors.includes(this.currentTab)&&(a.sliderColor="error"),n=[e("v-tabs",{props:a,on:{change:function(e){t.currentTab=e.split("-").pop()}}},n)]}if("stepper"===this.display&&n.length){var u=l({},this.fullOptions.stepperProps,{},this.fullSchema["x-props"],{value:this.currentStep});n=[e("v-stepper",{props:u,style:"width: 100%;",on:{change:function(e){t.currentStep=e}}},[e("v-stepper-header",{},s),e("v-stepper-items",{},n)])]}if("vertical-stepper"===this.display&&n.length){for(var c=l({},this.fullOptions.verticalStepperProps,{},this.fullSchema["x-props"],{vertical:!0,value:this.currentStep}),f=[],h=0;h<n.length;h++)f.push(s[2*h]),f.push(n[h]);n=[e("v-stepper",{props:c,style:"width: 100%;",on:{change:function(e){t.currentStep=e}}},f)]}if(this.subSchemas&&this.subSchemas.length){var p=l({},this.commonFieldProps,{},this.subSchemasConstProp&&this.subSchemasConstProp["x-props"]||{},{disabled:this.disabled||this.subSchemasConstProp&&this.subSchemasConstProp.readOnly,value:this.currentOneOf,label:this.subSchemasConstProp&&this.subSchemasConstProp.title||this.fullSchema.title,items:this.subSchemas.filter((function(e){return!e["x-if"]||!!t.getFromExpr(e["x-if"])})).filter((function(e){return e.properties&&e.properties[t.subSchemasConstProp.key]})),required:this.subSchemasRequired,clearable:!this.subSchemasRequired,itemValue:function(e){return e.properties[t.subSchemasConstProp.key].const},itemText:function(e){return e.title||e.properties[t.subSchemasConstProp.key].const},rules:this.subSchemasRules,returnObject:!0}),m={input:function(e){t.currentOneOf=e,t.triggerChangeCurrentOneOf=!0}};r.push(e("v-select",{props:p,on:m},[this.renderTooltip(e,"append-outer")])),this.currentOneOf&&this.showCurrentOneOf&&r.push(this.renderChildProp(e,l({},this.currentOneOf,{type:"object",title:null}),"currentOneOf",this.sectionDepth+1))}return[e("v-row",{class:"ma-0 ".concat(this.fullOptions.objectContainerClass)},[this.localRuleError&&!this.dedupChildrenWithValidatedErrors.length&&e("v-col",{props:{cols:12},class:{"px-0":!0,"error--text":!0}},this.localRuleError),this.fullSchema.description&&!this.subSchemasConstProp&&e("v-col",{props:{cols:12},class:{"pa-0":!0},domProps:{innerHTML:this.htmlDescription}})].concat(r).concat(n))]}},childSlots:function(e,t){var r=this;return Object.keys(this.$slots).filter((function(e){return e.startsWith("".concat(t,"."))||e.startsWith("".concat(t,"-"))})).map((function(i){var n=i.startsWith("".concat(t,"."))?i.replace("".concat(t,"."),""):i.replace("".concat(t,"-"),"");return e("template",{slot:n},r.$slots[i])}))},childScopedSlots:function(e){var t=this;return Object.keys(this.$scopedSlots).filter((function(t){return t.startsWith("custom-")||t.startsWith("".concat(e,"."))||t.startsWith("".concat(e,"-"))||t===e})).reduce((function(r,i){var n="default";return i.startsWith("".concat(e,"."))&&(n=i.replace("".concat(e,"."),"")),i.startsWith("".concat(e,"-"))&&(n=i.replace("".concat(e,"-"),"")),i.startsWith("custom-")&&(n=i),r[n]=t.$scopedSlots[i],r}),{})}}}},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(e){var t=""+e;return 1===t.length?"0"+t:t},l=function(e){var t=new Date,r=e[0].split("-");t.setFullYear(Number(r[0])),t.setMonth(Number(r[1])-1),t.setDate(Number(r[2]));var i=e[1].split(":");return t.setHours(Number(i[0]||"00")),t.setMinutes(Number(i[1]||"00")),t.setSeconds(0),function(e){var t,r=e.getTimezoneOffset(),i="".concat(o(parseInt(Math.abs(r/60))),":").concat(o(Math.abs(r%60)));return t=r<0?"+".concat(i):r>0?"-".concat(i):"Z","".concat(e.getFullYear(),"-").concat(o(e.getMonth()+1),"-").concat(o(e.getDate()),"T").concat(o(e.getHours()),":").concat(o(e.getMinutes()),":").concat(o(e.getSeconds())).concat(t)}(t)};t.a={data:function(){return{dateProp:{tab:"tab-date",menu:!1,parts:[null,null],lastValue:null}}},methods:{renderDateProp:function(e){var t=this;if("string"===this.fullSchema.type&&["date","date-time","time"].includes(this.fullSchema.format)){var r,i,s,a=this.fullOptions.icons.calendar;if("time"===this.fullSchema.format)r=e("v-time-picker",{props:n({},this.fullOptions.timePickerProps,{locale:this.fullOptions.locale,value:(s=this.value,s?s.slice(0,5):"")}),on:{input:function(e){return t.input(function(e){return e+":00Z"}(e))},change:function(){return t.change()}}}),a=this.fullOptions.icons.clock;else if("date"===this.fullSchema.format)r=e("v-date-picker",{props:n({},this.fullOptions.datePickerProps,{locale:this.fullOptions.locale,value:this.value}),on:{input:function(e){t.input(e),t.dateProp.menu=!1},change:function(){return t.change()}}});else{this.value!==this.dateProp.lastValue&&(this.dateProp.parts=(i=new Date(this.value),["".concat(i.getFullYear(),"-").concat(o(i.getMonth()+1),"-").concat(o(i.getDate())),"".concat(o(i.getHours()),":").concat(o(i.getMinutes()))])),this.dateProp.lastValue=this.value;var u=function(){if(t.dateProp.parts[1]){var e=l(t.dateProp.parts);t.input(e),t.change()}},c=[e("v-tab",{props:{href:"#tab-date"}},[e("v-icon",[this.fullOptions.icons.calendar])]),e("v-tab",{props:{href:"#tab-time",disabled:!this.dateProp.parts[0]}},[e("v-icon",[this.fullOptions.icons.clock])]),e("v-tab-item",{props:{value:"tab-date"}},[e("v-date-picker",{props:n({},this.fullOptions.datePickerProps,{locale:this.fullOptions.locale,value:this.dateProp.parts[0]}),on:{input:function(e){t.dateProp.parts[0]=e,t.dateProp.tab="tab-time",u()}}})]),e("v-tab-item",{props:{value:"tab-time"}},[e("v-time-picker",{props:n({},this.fullOptions.timePickerProps,{locale:this.fullOptions.locale,value:this.dateProp.parts[1]}),on:{input:function(e){t.dateProp.parts[1]=e,u()}}})])];r=e("v-tabs",{props:{grow:!0,value:this.dateProp.tab},on:{input:function(e){t.dateProp.tab=e}},class:"vjsf-date-time"},c)}var f={activator:function(r){var i=r.on;return e("v-text-field",{props:n({},t.commonFieldProps,{value:t.formattedValue,clearable:!t.required,readonly:!0,prependIcon:a}),on:n({},i,{input:function(e){return t.input(e)},change:function(e){return t.change()}})},[t.renderTooltip(e,"append-outer")])}};return[e("v-menu",{scopedSlots:f,props:{value:this.dateProp.menu,disabled:this.disabled,closeOnContentClick:!1,nudgeRight:40,transition:"scale-transition",offsetY:!0,fullWidth:!0,minWidth:"290px"},on:{input:function(e){t.dateProp.menu=e,t.dateProp.tab="tab-date"}}},[r])]}}}}},function(e,t,r){"use strict";var i=r(4),n=r(3);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isSimpleProp:function(){return"string"===this.fullSchema.type||["number","integer"].includes(this.fullSchema.type)||"boolean"===this.fullSchema.type||"array"===this.fullSchema.type&&this.fullSchema.items&&["string","number","integer"].includes(this.fullSchema.items.type)}},methods:{parseNumber:function(e,t){return(t+="")?"-"===t?null:"integer"===this.fullSchema.type?parseInt(t,10):parseFloat(t):null},renderSimpleProp:function(e){var t=this;if(this.isSimpleProp){var r,a=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.commonFieldProps),u={},c=s(this.renderPropSlots(e)),f={input:function(e){return t.input(e)},change:function(e){return t.change()}},h={},p="append-outer";if("string"===this.fullSchema.type&&("textarea"===this.display||this.fullSchema.maxLength&&this.fullSchema.maxLength>1e3&&"single-line"!==this.display?(r="v-textarea",Object.assign(a,this.fullOptions.textareaProps),u.class="v-text-field--box v-text-field--enclosed"):(r="v-text-field",Object.assign(a,this.fullOptions.textFieldProps),"password"===this.display&&(a.type="password"))),["number","integer"].includes(this.fullSchema.type)&&("slider"===this.display?(r="v-slider",Object.assign(a,this.fullOptions.sliderProps)):(r="v-text-field",Object.assign(a,this.fullOptions.textFieldProps),Object.assign(a,this.fullOptions.numberProps)),a.type="number",void 0!==this.fullSchema.minimum&&(a.min=this.fullSchema.minimum),void 0!==this.fullSchema.maximum&&(a.max=this.fullSchema.maximum),a.step=this.fullSchema["x-step"]||("integer"===this.fullSchema.type?1:.01),f.input=function(e){return t.input(t.parseNumber(t.fullSchema.type,e))}),"boolean"===this.fullSchema.type&&(p="append","switch"===this.display?(r="v-switch",Object.assign(a,this.fullOptions.switchProps)):(r="v-checkbox",Object.assign(a,this.fullOptions.checkboxProps)),f.change=function(e){t.input(e||!1),t.change()}),"array"===this.fullSchema.type&&["string","number","integer"].includes(this.fullSchema.items.type)){r="v-combobox",Object.assign(a,this.fullOptions.comboboxProps),a.chips=!0,a.multiple=!0,a.appendIcon="",a.type="string",a.validateOnBlur=!0;var m=Object(i.a)(this.fullSchema.items,n.a.prepareFullSchema(this.fullSchema.items,null,this.fullOptions),this.fullOptions);a.rules=a.rules.concat([function(e){return e.map((function(e){var t=m.find((function(t){return"string"==typeof t(e)}));return t&&t(e)})).find((function(e){return!!e}))||!0}]),"string"!==this.fullSchema.items.type&&(a.type="number",f.input=function(e){var r=e.map((function(e){return t.parseNumber(t.fullSchema.items.type,e)})).filter((function(e){return!isNaN(e)}));t.input(r)}),h.selection=function(r){var i=m.find((function(e){return"string"==typeof e(r.item)}));return e("v-chip",{props:{close:!0,color:i?"error":"default"},on:{"click:close":function(){var e=s(t.value);e.splice(r.index,1),t.input(e),t.change()}}},r.item)}}return this.htmlDescription&&c.push(this.renderTooltip(e,p)),(r=this.customTag?this.customTag:r)?[e(r,{props:a,domProps:u,on:f,scopedSlots:h},c)]:null}}}}},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(e){return new Promise((function(t){var r=new FileReader;r.onload=function(){return t(r.result)},r.readAsDataURL(e)}))},l=function(e,t,r){var i,n;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(i=e,!("string"===t.type||t.properties&&t.properties.data&&"string"===t.properties.data.type)){s.next=6;break}return s.next=4,regeneratorRuntime.awrap(o(e));case 4:n=s.sent,i=r?n:n.split(";base64,")[1];case 6:if("string"!==t.type){s.next=8;break}return s.abrupt("return",i);case 8:return s.abrupt("return",{name:e.name,lastModified:new Date(e.lastModified).toISOString(),size:e.size,type:e.type,data:i});case 9:case"end":return s.stop()}}))};t.a={computed:{isFileProp:function(){if(this.fullSchema)return!("string"!==this.fullSchema.type||!this.fullSchema.contentMediaType&&"file"!==this.display)||(!("array"!==this.fullSchema.type||!this.fullSchema.items||"string"!==this.fullSchema.items.type||!this.fullSchema.items.contentMediaType&&"file"!==this.display&&"file"!==this.fullSchema.items["x-display"])||(!("object"!==this.fullSchema.type||!this.fullSchema.contentMediaType&&"file"!==this.display)||!("array"!==this.fullSchema.type||!this.fullSchema.items||"object"!==this.fullSchema.items.type||!this.fullSchema.items.contentMediaType&&"file"!==this.display&&"file"!==this.fullSchema.items["x-display"])))}},watch:{isFileProp:function(){this.isFileProp&&!this.fullSchema.writeOnly&&console.warn("File property should always be used with writeOnly attribute. Files are uploaded but not read in existing data.")}},methods:{renderFileProp:function(e){var t=this;if(this.isFileProp){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.commonFieldProps,{},this.fullOptions.fileInputProps);delete r.value;var o={};this.fullSchema.contentMediaType&&(o.accept=this.fullSchema.contentMediaType),this.fullSchema.items&&this.fullSchema.items.contentMediaType&&(o.accept=this.fullSchema.items.contentMediaType),"array"===this.fullSchema.type&&(o.multiple=!0);var a=i(this.renderPropSlots(e)),u={change:function(e){var r,i;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if("array"!==t.fullSchema.type){n.next=8;break}return n.next=3,regeneratorRuntime.awrap(Promise.all(e.map((function(e){return l(e,t.fullSchema.items,t.fullOptions.filesAsDataUrl)}))));case 3:r=n.sent,t.input(r),t.change(),n.next=13;break;case 8:return n.next=10,regeneratorRuntime.awrap(l(e,t.resolvedSchema,t.fullOptions.filesAsDataUrl));case 10:i=n.sent,t.input(i),t.change();case 13:case"end":return n.stop()}}))}};return this.htmlDescription&&a.push(this.renderTooltip(e,"append-outer")),[e("v-file-input",{props:r,attrs:o,on:u,scopedSlots:this.$scopedSlots},a)]}}}}},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isColorProp:function(){return"string"===this.resolvedSchema.type&&("hexcolor"===this.resolvedSchema.format||"color-picker"===this.display)}},methods:{renderColorProp:function(e){var t=this;if(this.isColorProp){var r=[this.renderTooltip(e,"append")];return r.push(e("v-menu",{props:{closeOnContentClick:!1,closeOneClick:!0,direction:"bottom",offsetY:!0},scopedSlots:{activator:function(r){var i=r.on;return e("div",{on:i,style:"background-color: ".concat(t.value,";margin-left: 10px;"),class:t.value?"color-picker-trigger":"color-picker-trigger color-picker-trigger-empty"})},default:function(){return e("v-color-picker",{props:n({flat:!0},t.fullOptions.colorPickerProps,{},t.fullSchema["x-props"],{value:t.value||""}),on:{input:function(e){t.input(e),t.change()}}})}}})),[e("v-input",{props:n({value:this.value,name:this.fullKey,label:this.label,required:this.required,rules:this.rules,disabled:this.disabled},this.fullOptions.fieldProps)},r)]}}}}},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.a={data:function(){return{editabledArrayProp:{currentDialog:null,editItem:null,editedItems:{}}}},computed:{isEditableArray:function(){if(this.debug("compute isEditableArray"),"array"===this.resolvedSchema.type&&this.resolvedSchema.items&&"object"===this.resolvedSchema.items.type)return!0},readonlyItemSchema:function(){var e=this;if(this.debug("compute readonlyItemSchema"),this.fullSchema&&this.fullSchema.items){var t=n()(this.fullSchema.items);return t.readOnly=!0,this.itemTitle&&(t.properties&&t.properties[this.itemTitle]&&"object"===u(t.properties[this.itemTitle])&&(t.properties[this.itemTitle]["x-style"]="display: none;"),t.oneOf&&t.oneOf.forEach((function(t){t.properties[e.itemTitle]&&(t.properties[e.itemTitle]["x-style"]="display: none;")})),this.fullSchema.items.allOf&&t.allOf.forEach((function(t){t.properties[e.itemTitle]&&(t.properties[e.itemTitle]["x-style"]="display: none;")}))),t}}},methods:{renderArrayItemModal:function(e,t,r){var i,n=this,o=-1===r;this.editabledArrayProp.currentDialog===r&&(i=this.renderArrayItemEdit(e,r));var a={activator:function(){return n.renderArrayItemEditButton(e,t,r)}},u=function(){i.componentInstance.resetValidation(),n.editabledArrayProp.currentDialog=null},c={};return this.fullOptions.dialogProps.persistent||(c["click:outside"]=u),e("v-dialog",{props:l({},this.fullOptions.dialogProps,{value:this.editabledArrayProp.currentDialog===r,closeOnContentClick:!1}),scopedSlots:a,on:c},[e("v-card",{props:this.fullOptions.dialogCardProps},[e("v-card-title",this.itemTitle&&t[this.itemTitle]),e("v-card-text",[i]),e("v-card-actions",[e("v-spacer"),e("v-btn",{props:{text:!0},on:{click:u},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"--dialog-cancel-button"},class:{"vjsf-array-dialog-cancel-button":!0}},"cancel"),e("v-btn",{props:{color:"primary"},on:{click:function(){if(i.componentInstance.validate(!0)){var e=s(n.value);o?(n.editabledArrayProp.editedItems[n.value.length]=!0,e.push(n.editabledArrayProp.editItem)):(n.editabledArrayProp.editedItems[r]=!0,n.$set(e,r,l({},n.editabledArrayProp.editItem))),n.input(e),n.change(),n.shouldValidate=!0,n.editabledArrayProp.currentDialog=null}}},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"--dialog-ok-button"},class:{"vjsf-array-dialog-ok-button":!0}},"ok")])])])},renderArrayItemRO:function(e,t,r){var i=this,n="item-".concat(r),o={props:{schema:this.readonlyItemSchema,value:t,modelRoot:this.modelRoot||this.value,modelKey:n,parentKey:"".concat(this.fullKey,"."),options:l({},this.fullOptions,{hideReadOnly:!1}),optionsRoot:this.initialOptions,sectionDepth:this.sectionDepth+1,separateValidation:!1},ref:n,scopedSlots:this.childScopedSlots(this.fullSchema.key)};return this.options.autoFixArrayItems&&(o.on={input:function(e){if(!i.editabledArrayProp.editedItems[r]){var t=s(i.value);t[r]=e,i.input(t)}}}),e("v-jsf",o,this.childSlots(e,this.fullSchema.key))},renderArrayItemEditButton:function(e,t,r,i){var o=this,l=-1===r,a=i||l;return e("v-btn",{on:{click:function(){if(l&&"inline"===o.fullOptions.editMode){var e=n()(t),i=s(o.value);i.push(e),o.editabledArrayProp.currentDialog=i.length-1,o.editabledArrayProp.editItem=e,o.input(i),o.change()}else o.editabledArrayProp.currentDialog===r?(o.editabledArrayProp.editItem=null,o.editabledArrayProp.currentDialog=null,o.change()):(o.editabledArrayProp.editItem=n()(t),o.editabledArrayProp.currentDialog=r,"inline"===o.fullOptions.editMode&&o.$nextTick((function(){return o.childrenInputs["item-".concat(r)].validate(!0)})))}},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"-"+(l?"-add":r+"--edit")+"-button"},class:{"vjsf-array-add-button":!0,"ml-3":l},props:{icon:!a,fab:a,small:l,"x-small":i,color:"primary",depressed:i}},[e("v-icon",l?this.fullOptions.icons.add:this.fullOptions.icons.edit)])},renderArrayItemEdit:function(e,t){var r=this,i=l({},this.fullOptions,{autofocus:!0});return this.fullOptions.idPrefix.endsWith("--dialog--")||(i.idPrefix=this.fullOptions.idPrefix+"--dialog--"),e("v-jsf",{props:{schema:this.fullSchema.items,value:this.editabledArrayProp.editItem,modelRoot:this.modelRoot||this.value,modelKey:"item-".concat(t),parentKey:"".concat(this.fullKey,"."),options:i,optionsRoot:this.initialOptions,sectionDepth:this.sectionDepth+1,separateValidation:"inline"!==this.fullOptions.editMode},scopedSlots:this.childScopedSlots(this.fullSchema.key),ref:"item-"+t,on:{error:function(e){return r.$emit("error",e)},input:function(e){if(r.editabledArrayProp.editItem=e,"inline"===r.fullOptions.editMode){var i=s(r.value);r.$set(i,t,e),r.input(i)}},change:function(){"inline"===r.fullOptions.editMode&&r.change()}}},this.childSlots(e,this.fullSchema.key))},renderEditableArray:function(e){var t=this;if(this.isEditableArray){var r=[];if(!this.disabled&&!this.fromUrl&&!this.fullSchema.fromData&&this.fullOptions.arrayOperations.includes("create")){var i=this.fullSchema.items.default||this.defaultValue(this.fullSchema.items);"inline"===this.fullOptions.editMode?r.push(this.renderArrayItemEditButton(e,i,-1)):r.push(this.renderArrayItemModal(e,i,-1))}var n,s=e("v-input",{class:"mt-2 pr-1",props:{label:this.label,rules:this.rules,value:this.value,validateOnBlur:!this.shouldValidate,hideDetails:"auto"}},r);if(this.value&&this.value.length){var o=this.value.filter((function(e){return!!e})).map((function(r,i){var n,o,a="inline"===t.fullOptions.editMode&&t.editabledArrayProp.currentDialog===i;!t.disabled&&t.fullOptions.arrayOperations.includes("update")&&(n="inline"===t.fullOptions.editMode?t.renderArrayItemEditButton(e,r,i,a):t.renderArrayItemModal(e,r,i)),t.disabled||t.fromUrl||t.fullSchema.fromData||!t.fullOptions.arrayOperations.includes("delete")||(o=e("v-btn",{props:{icon:!0,color:"warning",disabled:a},attrs:{id:t.fullOptions.idPrefix+t.dashKey+"-"+i+"--delete-button"},class:{"vjsf-array-delete-button":!0},on:{click:function(){var e=t.value.filter((function(e){return e!==r}));t.input(e),t.change(),t.shouldValidate=!0,s.componentInstance.validate()}}},[e("v-icon",t.fullOptions.icons.delete)]));var u,c,f,h=e("v-card-actions",{class:"pa-0"},[e("v-spacer"),n,o]);a?(u=t.renderArrayItemEdit(e,i),f="item-edit-"+i):(u=t.renderArrayItemRO(e,r,i),f=t.cached("item-key-".concat(i),{item:r},(function(){return t.debug("new RO item key",i),"".concat(i,"-").concat((new Date).getTime())})),t.fullOptions.disableSorting||(c="cursor: move;"));var p="py-2 pr-2 "+t.fullOptions.arrayItemsTitlesClasses[t.sectionDepth]||!1,m=[e("v-card-title",{props:{primaryTitle:!0},class:p},[t.itemTitle&&r[t.itemTitle],e("v-spacer"),h]),e("v-card-text",[u])],d=t.dedupChildrenWithValidatedErrors.includes("item-".concat(i));m=a?[e("v-alert",{props:{color:d?"error":"primary","colored-border":!0,border:"left"},class:"pa-0 pl-2 ma-0"},m)]:d?[e("v-alert",{props:{color:"error",outlined:!0},class:"pa-0 ma-0"},m)]:[e("v-alert",{props:{color:"default",outlined:!0},class:"pa-0 ma-0 vjsf-invisible-alert"},m)];var y=[];return a&&y.push({name:"click-outside",value:{handler:function(){t.editabledArrayProp.currentDialog===i&&"inline"===t.fullOptions.editMode&&(t.editabledArrayProp.editItem=null,t.editabledArrayProp.currentDialog=null,t.change())},include:t.getOpenDependentElements}}),e("v-col",{props:t.fullOptions.arrayItemColProps,class:"pa-2",key:f},[e("v-card",{props:l({},t.fullOptions.arrayItemCardProps),style:c,directives:y},m)])}));n=this.fullOptions.disableSorting?e("v-row",{class:"pt-2"},o):e("draggable",{props:{value:this.value},class:"row pt-2",on:{input:function(e){t.editabledArrayProp.editItem=null,t.editabledArrayProp.currentDialog=null,t.input(e),t.change(),t.shouldValidate=!0}}},o)}return[s,n]}}}}},function(e,t,r){"use strict";(function(e){function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isMarkdownProp:function(){if(this.fullSchema)return"markdown"===this.fullSchema["x-display"]}},methods:{renderMarkdownProp:function(e){var t=this;if(this.isMarkdownProp){var r=[this.renderTooltip(e,"append")];return this.disabled?r.push(e("v-card",{props:{flat:!0},class:"px-0"},[e("v-card-text",{domProps:{innerHTML:this.fullOptions.markdown(this.value)},class:"px-0 py-1"})])):(r.push(e("v-card",{props:{outlined:!0}},[e("textarea",{attrs:{id:"".concat(this.fullOptions.idPrefix).concat(this.dashKey,"--easymde")}})])),this.$nextTick((function(){return t.initEasyMDE()}))),[e("v-input",{props:i({value:this.value,name:this.fullKey,label:this.label,required:this.required,rules:this.rules,disabled:this.disabled},this.fullOptions.fieldProps),class:"vjsf-markdown-input"},r)]}},initEasyMDE:function(){var t=this;if(!this.easymde)if(e.EasyMDE){var r=e.EasyMDE,i={element:this.$el.querySelector("textarea"),initialValue:this.value,renderingConfig:{},status:!1,autoDownloadFontAwesome:!1,spellChecker:!1,minHeight:"300px",insertTexts:{link:[this.fullOptions.messages.mdeLink1,this.fullOptions.messages.mdeLink2],image:[this.fullOptions.messages.mdeImg1,this.fullOptions.messages.mdeImg2],table:[this.fullOptions.messages.mdeTable1,this.fullOptions.messages.mdeTable2],horizontalRule:["","\n\n-----\n\n"]},toolbar:[{name:"bold",action:r.toggleBold,className:"mdi mdi-format-bold",title:this.fullOptions.messages.bold},{name:"italic",action:r.toggleItalic,className:"mdi mdi-format-italic",title:this.fullOptions.messages.italic},{name:"heading",action:r.toggleHeadingSmaller,className:"mdi mdi-format-title",title:this.fullOptions.messages.heading},"|",{name:"quote",action:r.toggleBlockquote,className:"mdi mdi-format-quote-open",title:this.fullOptions.messages.quote},{name:"unordered-list",action:r.toggleUnorderedList,className:"mdi mdi-format-list-bulleted",title:this.fullOptions.messages.unorderedList},{name:"ordered-list",action:r.toggleOrderedList,className:"mdi mdi-format-list-numbered",title:this.fullOptions.messages.orderedList},"|",{name:"link",action:r.drawLink,className:"mdi mdi-link",title:this.fullOptions.messages.createLink},{name:"image",action:r.drawImage,className:"mdi mdi-image",title:this.fullOptions.messages.insertImage},{name:"table",action:r.drawTable,className:"mdi mdi-table",title:this.fullOptions.messages.createTable},"|",{name:"preview",action:r.togglePreview,className:"mdi mdi-eye accent--text",title:this.fullOptions.messages.preview,noDisable:!0},"|",{name:"undo",action:r.undo,className:"mdi mdi-undo",title:this.fullOptions.messages.undo,noDisable:!0},{name:"redo",action:r.redo,className:"mdi mdi-redo",title:this.fullOptions.messages.redo,noDisable:!0},"|",{name:"guide",action:"https://simplemde.com/markdown-guide",className:"mdi mdi-help-circle success--text",title:this.fullOptions.messages.mdeGuide,noDisable:!0}]};this.easymde=new r(i);var n=!1;this.easymde.codemirror.on("change",(function(){n=!0,t.input(t.easymde.value())})),this.easymde.codemirror.on("blur",(function(){t.blurTimeout=setTimeout((function(){n&&t.change(),n=!1}),500)})),this.easymde.codemirror.on("focus",(function(){clearTimeout(t.blurTimeout)}))}else console.error("VJSF requires EasyMDE to be available to handle the markdown format.")}}}}).call(this,r(5))},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={data:function(){return{tooltip:{maxWidth:200}}},mounted:function(){this.htmlDescription&&this.$el&&this.$el.getBoundingClientRect&&(this.tooltip.maxWidth=this.$el.getBoundingClientRect().left-80)},methods:{renderTooltip:function(e,t){var r=this;if(this.htmlDescription&&!this.fullOptions.hideTooltips)return e("v-tooltip",{slot:t,props:n({contentClass:"vjsf-tooltip"},this.fullOptions.tooltipProps),scopedSlots:{activator:function(t){var i=t.on,n=t.attrs;return r.fullOptions.tooltipProps.openOnClick&&delete i.focus,e("v-btn",{on:i,attrs:n,props:{icon:!0,retainFocusOnClick:!0},style:"pointer-events: auto"},[e("v-icon",{},r.fullOptions.icons.info)])}}},[e("div",{style:"max-width: ".concat(this.tooltip.maxWidth,"px"),domProps:{innerHTML:this.htmlDescription}})])}}}},function(e,t,r){"use strict";var i=r(0);t.a={inject:["form"],provide:function(){return{form:{register:this.register,unregister:this.unregister,fastForwardEvent:this.fastForwardEvent}}},props:{separateValidation:{type:Boolean,default:!1}},data:function(){return{inputs:[],validated:!1,shouldValidate:!1,dedupChildrenWithValidatedErrors:[]}},computed:{childrenInputs:function(){return this.debug("compute childrenInputs"),this.inputs.reduce((function(e,t,r){return e[t.modelKey||r]=t,e}),{})},hasError:function(){return this.debug("compute hasError"),!!this.inputs.find((function(e){return e.hasError}))||!!this.localRuleError},hasValidatedError:function(){return this.debug("compute hasValidatedError"),!!this.inputs.find((function(e){return e.hasValidatedError||e.hasError&&(e.validated||e.shouldValidate)}))||this.localRuleError&&(this.validated||this.shouldValidate)},childrenWithValidatedErrors:function(){var e=this;return this.debug("compute childrenWithValidatedErrors"),Object.keys(this.childrenInputs).filter((function(t){return!!e.childrenInputs[t].hasValidatedError}))},localRuleError:function(){var e=this;if(!this.validated||!this.rules||!this.rules.length)return!1;var t=this.rules.find((function(t){return"string"==typeof t(e.value)}));return t&&t(this.value)}},watch:{childrenWithValidatedErrors:function(){var e=this;this.$nextTick((function(){Object(i.deepEqual)(e.childrenWithValidatedErrors,e.dedupChildrenWithValidatedErrors)||(e.debug("set dedupChildrenWithValidatedErrors",JSON.stringify(e.childrenWithValidatedErrors)),e.dedupChildrenWithValidatedErrors=e.childrenWithValidatedErrors)}))}},created:function(){this.separateValidation||this.form&&this.form.register(this)},beforeDestroy:function(){this.separateValidation||this.form&&this.form.unregister(this)},methods:{register:function(e){this.debug("register",e.modelKey),this.validated&&e.validate(!0),this.inputs.push(e)},unregister:function(e){this.debug("unregister",e.modelKey),this.inputs=this.inputs.filter((function(t){return t._uid!==e._uid}))},validate:function(e){this.validated=!0;var t=this.inputs.map((function(t,r){return{valid:t.validate(e),key:t.modelKey||r}}));return this.debug("validate children inputs",t),!t.find((function(e){return!e.valid}))},reset:function(){this.inputs.forEach((function(e){return e.reset()}))},resetValidation:function(){this.shouldValidate=!1,this.validated=!1,this.inputs.forEach((function(e){return e.resetValidation()}))},initValidation:function(){var e=this.fullOptions.initialValidation;"all"!==e||this.modelRoot||this.validate(!0),"defined"===e&&this.initiallyDefined&&!this.isObjectContainer&&this.validate(!0)},fastForwardEvent:function(e,t){"root"===this.fullKey?this.$emit(e,t):this.form.fastForwardEvent(e,t)}}}},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.a={name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(e){if(!e)for(var t=this.getOpenDependents(),r=0;r<t.length;r++)t[r].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?function e(t){for(var r=[],n=0;n<t.length;n++){var s=t[n];s.isActive&&s.isDependent?r.push(s):r.push.apply(r,i(e(s.$children)))}return r}(this.$children):[]},getOpenDependentElements:function(){for(var e=[],t=this.getOpenDependents(),r=0;r<t.length;r++)e.push.apply(e,i(t[r].getClickableDependentElements()));return e},getClickableDependentElements:function(){var e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push.apply(e,i(this.getOpenDependentElements())),e}}}},function(e,t,r){"use strict";var i=r(0);function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l={},a=l;l.getSelectItems=function(e,t,r,i){var n=[];if(e)if("object"===t.type&&t.properties&&Object.keys(t.properties).length||"array"===t.type&&t.items&&"object"===t.items.type&&t.items.properties&&Object.keys(t.items.properties).length){var l=t.properties?t.properties.map((function(e){return e.key})):Object.keys(t.items.properties);e.forEach((function(e){var r={};l.forEach((function(i){void 0!==e[i]&&(r[i]=e[i],"string"===(t.properties?t.properties.find((function(e){return e.key===i})):t.items.properties[i]).type&&(r[i]=""+r[i]))})),n.push(r)}))}else e.forEach((function(e){if("object"===o(e))n.push(e);else{var t=s({},r,e);i&&(t[i]=e),n.push(t)}}));else;return n};var u=function(e,t,r){return![null,void 0].includes(e)&&(![null,void 0].includes(t)&&Object(i.deepEqual)(e[r],t[r]))};function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}l.fillSelectItems=function(e,t,r,i,n){if(t)if("array"===e.type)t.map((function(e){return e})).reverse().forEach((function(e){var t=n?e:s({},i,e);r.find((function(e){return u(e,t,i)}))||r.push(t)}));else{var o=n?t:s({},i,t);r.find((function(e){return u(e,o,i)}))||r.push(o)}},l.fillList=function(e,t,r,i){if(t)return r.length?(t=n(t),r.forEach((function(e){t.find((function(t){return u(e,t,i)}))||t.push(e)})),t.forEach((function(e,n){r.find((function(t){return u(t,e,i)}))||(t[n]=null)})),t.filter((function(e){return!!e}))):[]};var m=r(20),d=r(21);t.a={data:function(){return{rawSelectItems:null,selectItems:[],q:"",fromUrlParams:{}}},computed:{isSelectProp:function(){if(this.fullSchema)return"list"!==this.display&&(!!this.fullSchema.enum||(!("array"!==this.fullSchema.type||!this.fullSchema.items||!this.fullSchema.items.enum)||(!!this.oneOfSelect||(!!this.examplesSelect||(!!this.fromUrl||!!this.fromData)))))},oneOfSelect:function(){if(this.fullSchema)return!("array"!==this.fullSchema.type||!this.fullSchema.items||!["string","integer","number"].includes(this.fullSchema.items.type)||!this.fullSchema.items.oneOf&&!this.fullSchema.items.anyOf)||(!!(["string","integer","number"].includes(this.fullSchema.type)&&this.fullSchema.oneOf&&this.fullSchema.oneOf[0]&&void 0!==this.fullSchema.oneOf[0].const)||!!(["string","integer","number"].includes(this.fullSchema.type)&&this.fullSchema.anyOf&&this.fullSchema.anyOf[0]&&void 0!==this.fullSchema.anyOf[0].const))},examplesSelect:function(){if(this.fullSchema)return!!("array"===this.fullSchema.type&&this.fullSchema.items&&["string","integer","number"].includes(this.fullSchema.items.type)&&this.fullSchema.items.examples)||!(!["string","integer","number"].includes(this.fullSchema.type)||!this.fullSchema.examples)},fromUrl:function(){if(this.fullSchema)return this.fullSchema["x-fromUrl"]},fromUrlWithQuery:function(){if(this.fullSchema)return!(!this.fullSchema["x-fromUrl"]||-1===this.fullSchema["x-fromUrl"].indexOf("{q}"))},fromUrlKeys:function(){if(this.fullSchema)return this.fullSchema["x-fromUrl"]?m(this.fullSchema["x-fromUrl"],/\{(.*?)\}/g).toArray().filter((function(e){return"q"!==e})):null},fromData:function(){if(this.fullSchema)return this.fullSchema["x-fromData"]},itemKey:function(){if(this.fullSchema)return this.fullSchema["x-itemKey"]||"key"},itemTitle:function(){if(this.fullSchema)return this.fullSchema["x-itemTitle"]||"title"},itemIcon:function(){if(this.fullSchema)return this.fullSchema["x-itemIcon"]||("icon"===this.display?this.itemKey:null)},returnObject:function(){if(this.fullSchema)return"object"===this.fullSchema.type||this.fullSchema.items&&"object"===this.fullSchema.items.type}},watch:{q:function(){this.value&&this.value[this.itemTitle]===this.q||this.fetchSelectItems()},rawSelectItems:{handler:function(){this.updateSelectItems()}}},methods:{initSelectProp:function(e){var t=this;if(this.fromUrlWithQuery&&e&&void 0!==e[this.itemTitle]&&(this.q=e[this.itemTitle]),this.fromUrl&&(this.fetchSelectItems(),this.openEndedSelect="v-combobox"===this.customTag||"combobox"===this.fullSchema["x-display"]),("array"===this.fullSchema.type&&this.fullSchema.items&&this.fullSchema.items.enum||this.fullSchema.enum)&&(this.rawSelectItems="array"===this.fullSchema.type?this.fullSchema.items.enum:this.fullSchema.enum),this.oneOfSelect){var r="array"===this.fullSchema.type?this.fullSchema.items:this.fullSchema,i=r.anyOf||r.oneOf;this.openEndedSelect=r.anyOf&&!!r.anyOf.find((function(e){return!e.const&&!e.enum})),this.rawSelectItems=i.filter((function(e){return!e["x-if"]||!!t.getFromExpr(e["x-if"])})).filter((function(e){return!!e.const||!!e.enum})).map((function(e){var r;return h({},e,(p(r={},t.itemKey,e.const||e.enum&&e.enum[0]),p(r,t.itemTitle,e.title),r))}))}if(this.examplesSelect){var n="array"===this.fullSchema.type&&this.fullSchema.items.examples||this.fullSchema.examples;this.openEndedSelect=!0,this.rawSelectItems=n.map((function(e){var r;return p(r={},t.itemKey,e),p(r,t.itemTitle,e),r}))}this.fullSchema["x-fromData"]&&(this.openEndedSelect="v-combobox"===this.customTag||"combobox"===this.fullSchema["x-display"],this.$watch((function(){return t.getFromExpr(t.fullSchema["x-fromData"])}),(function(e){t.rawSelectItems=e}),{immediate:!0})),this.fromUrlKeys&&this.fromUrlKeys.forEach((function(e){t.$watch((function(){return t.getFromExpr(e)}),(function(r){t.fromUrlParams[e]=r,t.fetchSelectItems()}),{immediate:!0})}))},fetchSelectItems:function(){var e=this;if(!this.fullOptions.httpLib)return console.error("No http lib found to perform ajax request"),this.$emit("error","No http lib found to perform ajax request");this.debouncedFetch=this.debouncedFetch||d((function(){var t=e.fullSchema["x-fromUrl"].replace("{q}",e.q||""),r=!0,i=!1,n=void 0;try{for(var s,o=e.fromUrlKeys[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var l=s.value;if(void 0===e.fromUrlParams[l])return;t=t.replace("{".concat(l,"}"),e.fromUrlParams[l])}}catch(e){i=!0,n=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw n}}e.loading=!0,e.fullOptions.httpLib.get(t,e.fullOptions.httpOptions).then((function(r){var i=r.data||r.body,n=e.fullSchema["x-itemsProp"]?i[e.fullSchema["x-itemsProp"]]:i;if(!Array.isArray(n))throw new Error("Result of http fetch ".concat(t," is not an array"));e.rawSelectItems=n,e.loading=!1})).catch((function(t){console.error(t),e.$emit("error",t.message),e.loading=!1}))}),250),this.debouncedFetch()},updateSelectItems:function(){var e=a.getSelectItems(this.rawSelectItems,this.fullSchema,this.itemKey,this.itemIcon);"list"===this.display&&this.rawSelectItems&&this.input(a.fillList(this.fullSchema,this.value,e,this.itemKey)),a.fillSelectItems(this.fullSchema,this.value,e,this.itemKey,this.returnObject),Object(i.deepEqual)(e,this.selectItems)||(this.selectItems=e)},renderSelectIcon:function(e,t){if(this.itemIcon){var r=t[this.itemIcon];if(r){var i=e("v-icon",null,r);return r.startsWith("http://")||r.startsWith("https://")?i=e("img",{domProps:{src:r},style:"height:100%;width:100%;"}):(r.startsWith("<?xml")||r.startsWith("<svg"))&&(i=e("div",{domProps:{innerHTML:r}})),e("v-avatar",{props:{tile:!0,size:20},class:"mr-2"},[i])}}},renderSelectCheckbox:function(e,t){if("array"===this.fullSchema.type&&!this.itemIcon)return e("v-list-item-action",[e("v-checkbox",{props:{inputValue:t}})])},renderSelectItem:function(e,t){return e("v-list-item-content",[e("v-list-item-title",t[this.itemTitle]||t[this.itemKey])])},renderSelectionControlItem:function(e,t){var r=this,i={change:function(e){r.input(e),r.change()}},n={label:t[this.itemTitle]||t[this.itemKey],value:t[this.itemKey],inputValue:this.value,multiple:"array"===this.fullSchema.type,hideDetails:!0};return e("v-".concat(this.display),{props:n,on:i,class:"pb-1"})},renderSelectionControlGroup:function(e){var t=this,r={change:function(e){t.input(e),t.change()}},i=h({},this.commonFieldProps,{multiple:"array"===this.fullSchema.type,label:null}),n=e("legend",{class:"v-label theme--".concat(this.theme.isDark?"dark":"light"," ").concat(this.hasError?"error--text":"")},this.commonFieldProps.label),s=this.selectItems.map((function(r){return t.renderSelectionControlItem(e,r)}));return[e("v-input",{props:i,on:r,class:"v-input--selection-controls v-input--radio-group v-input--radio-group--column"},[e("div",{class:"v-input--radio-group__input"},[n].concat(c(s))),this.renderTooltip(e,"append")])]},renderRadioItem:function(e,t){var r=t[this.itemTitle]||t[this.itemKey],i=t[this.itemKey];return e("v-radio",{props:h({},this.fullOptions.radioItemProps,{label:r,value:i})})},renderRadioGroup:function(e){var t=this,r=h({},this.commonFieldProps,{},this.fullOptions.radioGroupProps);return[e("v-radio-group",{props:r,on:{change:function(e){t.input(e),t.change()}}},[].concat(c(this.selectItems.map((function(r){return t.renderRadioItem(e,r)}))),[this.renderTooltip(e,"append")]))]},renderSelectProp:function(e){var t=this;if(this.isSelectProp){if("radio"===this.display){if("array"!==this.fullSchema.type)return this.renderRadioGroup(e);console.error("radio display is not available for arrays, use checkbox or switch")}if(["checkbox","switch"].includes(this.display))return this.renderSelectionControlGroup(e);var r={input:function(e){return t.input(e)},change:function(e){return t.change()}},i={selection:function(r){var i,n;t.openEndedSelect?(i=(t.selectItems||[]).find((function(e){return e[t.itemKey]===r.item})))||(p(n={},t.itemKey,r.item),p(n,t.itemTitle,r.item),i=n):i=r.item;var s=i[t.itemTitle]||i[t.itemKey];return"array"===t.fullSchema.type&&r.index!==t.value.length-1&&(s+=", "),e("div",{class:{"v-select__selection":!0,"v-select__selection--comma":!0,"v-select__selection--disabled":t.disabled}},[t.renderSelectIcon(e,i),e("span",{domProps:{innerHTML:s},class:"mt-1"})])},item:function(r){return[t.renderSelectIcon(e,r.item),t.renderSelectCheckbox(e,r.attrs.inputValue),t.renderSelectItem(e,r.item)]}},n="v-select",s=h({},this.commonFieldProps,{},this.fullOptions.selectProps,{validateOnBlur:!0,clearable:!this.required,multiple:"array"===this.fullSchema.type,itemValue:this.itemKey,itemText:this.itemTitle,items:this.selectItems||[],returnObject:!!this.returnObject,loading:this.loading});(this.fromUrlWithQuery||this.rawSelectItems&&this.rawSelectItems.length>20)&&(n="v-autocomplete",s.noDataText=this.fullOptions.messages.noData,s.placeholder=this.fullOptions.messages.search,this.fromUrlWithQuery?(s.filter=function(){return!0},s.searchInput=this.q,r["update:search-input"]=function(e){t.q=e}):s.filter=function(e,r){return(e[t.itemTitle]||e[t.itemKey]).toLowerCase().includes(r.toLowerCase())}),this.openEndedSelect&&(n="v-combobox"),n=this.customTag?this.customTag:n;var o=c(this.renderPropSlots(e));if("v-select"===n&&s.multiple&&this.fullOptions.selectAll){var l=s.items.length===this.value.length;o.push(e("template",{slot:"prepend-item"},[e("v-list-item",[e("v-list-item-action",[e("v-checkbox",{props:{value:l},on:{click:function(){l?t.input([]):t.input(s.items.map((function(e){return t.returnObject?e:e[t.itemKey]}))),t.change()}}})]),e("v-list-item-content",[e("v-list-item-title",this.fullOptions.messages.selectAll)])]),e("v-divider")]))}return this.htmlDescription&&o.push(this.renderTooltip(e,"append-outer")),[e(n,{props:s,on:r,scopedSlots:i},o)]}}}}},function(e,t,r){"use strict";r.r(t),function(e){var i=r(1),n=r.n(i),s=r(0),o=r(7),l=r(3),a=r(2),u=r(4),c=r(8),f=r(9),h=r(10),p=r(11),m=r(12),d=r(18),y=r(13),v=r(14),b=r(15),g=r(16),O=r(17);function S(e,t,r){return(S=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var n=new(Function.bind.apply(e,i));return r&&x(n,r.prototype),n}).apply(null,arguments)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],i=!0,n=!1,s=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(n)throw s}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D=r(6),A=e.navigator&&e.navigator.cookieEnabled&&e.localStorage&&e.localStorage.debug,M={};t.default={name:"VJsf",mixins:[c.a,h.a,f.a,m.a,d.a,p.a,y.a,v.a,b.a,g.a,O.a],inject:["theme"],props:{schema:{type:Object,required:!0},value:{required:!0},options:{type:Object},optionsRoot:{type:Object},modelRoot:{type:[Object,Array,String,Number,Boolean]},modelKey:{type:[String,Number],default:"root"},parentKey:{type:String,default:""},required:{type:Boolean,default:!1},sectionDepth:{type:Number,default:0}},data:function(){return{loading:!1,fullSchema:null}},computed:{initialOptions:function(){return"root"===this.fullKey?this.options||{}:this.optionsRoot},fullOptions:function(){var t=this;this.debug("compute fullOptions");var r="undefined"!=typeof window&&window||void 0!==e&&e||{},i=Object.assign({},a.a,this.options||{},this.resolvedSchema["x-options"]||{});if(i.markdown=i.markdown||r.markdownit&&function(e){return e?r.markdownit(i.markdownit).render(e):""}||function(e){return e||""},i.memMarkdown=i.memMarkdown||function(e){t._vjsf_markdown=t._vjsf_markdown||{};var r=e+"";return t._vjsf_markdown[r]=t._vjsf_markdown[r]||i.markdown(e),t._vjsf_markdown[r]},i.httpLib=i.httpLib||this.axios||this.$http||this.$axios||r.axios,!i.validator){var n=i.ajvLocalize||r.ajvLocalize,s=i.ajvAddFormats||r.ajvAddFormats,o=!!n&&i.locale&&n[i.locale],l=i.ajv;if(!l){var u=i.Ajv||r.Ajv||r.ajv7&&r.ajv7.default||r.ajv2019&&r.ajv2019.default;u&&(l=new u(o?{allErrors:!0,messages:!1,strict:!1}:{strict:!1}),s&&s(l),l.addFormat("hexcolor",/^#[0-9A-Fa-f]{6,8}$/))}l&&(i.validator=function(e){var t=l.compile(e);return function(e){if(!t(e))return o&&n[i.locale](t.errors),l.errorsText(t.errors,{dataVar:""})}})}var c=this.$vuetify.icons&&this.$vuetify.icons.iconfont||"mdi";if(!i.defaultIcons){for(var f={},h=0,p=Object.entries(this.$vuetify.icons.values);h<p.length;h++){var m=w(p[h],2),d=m[0],y=m[1];f[d]=y.props?y.props.name:y}i.defaultIcons=I({},a.c[c],{},f),i.icons=I({},i.defaultIcons,{},i.icons)}return i.messages=I({},a.d[i.locale]||a.d.en,{},i.messages),i.formats=I({},a.b,{},i.formats),i.deleteReadOnly&&(i.hideReadOnly=!0),i},resolvedSchema:function(){return"root"===this.modelKey?(this.debug("compute resolvedSchema"),o.a.resolve(this.schema,{"~$locale~":this.options&&this.options.locale||"en"})):this.schema},htmlDescription:function(){return this.debug("compute htmlDescription"),this.fullOptions.markdown(this.fullSchema&&this.fullSchema.description)},fullKey:function(){return(this.parentKey+this.modelKey).replace("root.","")},label:function(){if(this.fullSchema)return this.fullSchema.title||("string"==typeof this.modelKey?this.modelKey:"")},display:function(){if(this.fullSchema)return"root"===this.modelKey&&this.fullOptions.rootDisplay?this.fullOptions.rootDisplay:this.fullSchema["x-display"]},customTag:function(){if(this.fullSchema)return this.fullSchema["x-tag"]},rules:function(){if(this.debug("compute rules"),this.fullSchema)return Object(u.a)(this.schema,this.fullSchema,this.fullOptions,this.required,this.isOneOfSelect)},disabled:function(){if(this.fullSchema)return this.fullOptions.disableAll||this.fullSchema.readOnly},slotName:function(){if(this.fullSchema)return this.fullSchema["x-display"]&&this.fullSchema["x-display"].startsWith("custom-")?this.fullSchema["x-display"]:this.fullKey},slotParams:function(){var e=this;if(this.debug("compute slotParams"),this.fullSchema)return{value:this.value,modelKey:this.modelKey,schema:this.schema,fullKey:this.fullKey,fullSchema:this.fullSchema,label:this.label,disabled:this.disabled,required:this.required,rules:this.rules,options:this.fullOptions,htmlDescription:this.htmlDescription,on:{input:function(t){return e.input(t instanceof Event?t.target.value:t)},change:function(){return e.change()}}}},dashKey:function(){return this.fullKey.replace(/\./g,"-")},commonFieldProps:function(){if(this.debug("compute commonFieldProps"),this.fullSchema)return I({value:this.value,inputValue:this.value,label:this.label,name:this.fullKey,id:this.fullOptions.idPrefix+this.dashKey,disabled:this.disabled,rules:this.rules,required:this.required,autofocus:this.fullOptions.autofocus},this.fullSchema.readOnly?this.fullOptions.readOnlyFieldProps:{},{},this.fullOptions.fieldProps,{},this.fullSchema["x-props"])},propertyClass:function(){if(this.fullSchema)return"vjsf-property vjsf-property-".concat(this.dashKey," pa-0 ").concat(this.fullSchema["x-class"]||""," ").concat(this.fullSchema.readOnly?"read-only":"").replace(/ {2}/g," ").trim()},xSlots:function(){if(this.fullSchema)return I({},this.fullSchema["x-slots"])},formattedValue:function(){if(this.fullSchema)return this.value&&this.fullSchema.format&&this.fullOptions.formats[this.fullSchema.format]&&this.fullOptions.formats[this.fullSchema.format](this.value,this.fullOptions.locale)}},watch:{fullSchema:{handler:function(){this.fullSchema&&(this.initFromSchema(),this.initValidation(),this.updateSelectItems())}}},mounted:function(){var e=this;M[this.fullKey]=(M[this.fullKey]||0)+1,this.debug("mounted",M[this.fullKey]);var t="resolvedSchema";(this.resolvedSchema.dependencies||this.resolvedSchema.if)&&(t=function(e){return[e.resolvedSchema,e.value]}),this.$watch(t,(function(){var t=l.a.prepareFullSchema(e.resolvedSchema,e.value,e.fullOptions);Object(s.deepEqual)(t,e.fullSchema)?e.debug("fullSchema no change detected"):(e.debug("fullSchema changed"),e.fullSchema=t)}),{immediate:!0,deep:!0})},render:function(e){if(this.renderInc=(this.renderInc||0)+1,this.debug("render",this.renderInc),!(!this.fullSchema||void 0!==this.fullSchema.const||"hidden"===this.display||this.fullSchema.readOnly&&this.fullOptions.hideReadOnly)&&(!this.fullSchema["x-if"]||this.getFromExpr(this.fullSchema["x-if"]))){var t=[];if(this.$scopedSlots.before?t.push(this.$scopedSlots.before(this.slotParams)):this.$slots.before?this.$slots.before.forEach((function(e){return t.push(e)})):this.xSlots.before&&t.push(e("div",{domProps:{innerHTML:this.fullOptions.memMarkdown(this.xSlots.before)}})),this.$scopedSlots.default)t.push(this.$scopedSlots.default(this.slotParams));else if(this.fullSchema["x-display"]&&this.fullSchema["x-display"]&&this.$scopedSlots[this.fullSchema["x-display"]])t.push(this.$scopedSlots[this.fullSchema["x-display"]](this.slotParams));else{(this.renderDateProp(e)||this.renderColorProp(e)||this.renderSelectProp(e)||this.renderFileProp(e)||this.renderMarkdownProp(e)||this.renderSimpleProp(e)||this.renderObjectContainer(e)||this.renderEditableArray(e)||[]).forEach((function(e){return t.push(e)}))}this.$scopedSlots.after?t.push(this.$scopedSlots.after(this.slotParams)):this.$slots.after?this.$slots.after.forEach((function(e){return t.push(e)})):this.xSlots.after&&t.push(e("div",{domProps:{innerHTML:this.fullOptions.memMarkdown(this.xSlots.after)}}));var r=I({},this.fullOptions.fieldColProps);return this.fullSchema["x-cols"]&&("object"===P(this.fullSchema["x-cols"])?r=I({},r,{},this.fullSchema["x-cols"]):r.cols=this.fullSchema["x-cols"]),e("v-col",{props:r,class:this.propertyClass,style:this.fullSchema["x-style"]||""},t)}},methods:{debug:function(e,t){"*"!==A&&A!==this.fullKey||console.log("[".concat(this.fullKey,"] ").concat(e),t||"")},cached:function(e,t,r){return this._vjsf_cache=this._vjsf_cache||{},this._vjsf_cache[e]&&Object(s.deepEqual)(this._vjsf_cache[e].params,t)||(this._vjsf_cache[e]={params:n()(t),value:r()}),this._vjsf_cache[e].value},getFromExpr:function(e){var t,r={modelRoot:this.modelRoot,root:this.modelRoot,model:this.value,value:this.value,context:this.options.context};return this._vjsf_getters=this._vjsf_getters||{},"newFunction"===this.initialOptions.evalMethod?(this._vjsf_getters[e]=this._vjsf_getters[e]||S(Function,j(Object.keys(r)).concat(["return ".concat(e)])),(t=this._vjsf_getters)[e].apply(t,j(Object.values(r)))):(e=this.prefixExpr(e),this._vjsf_getters[e]=this._vjsf_getters[e]||D.getter(e,!0),this._vjsf_getters[e](r))},prefixExpr:function(e){return e.startsWith("context.")||e.startsWith("model.")||e.startsWith("value.")||e.startsWith("modelRoot.")||e.startsWith("root.")?e:this.modelRoot?"root."+e:"model."+e},renderPropSlots:function(e){var t=this,r=[];return Object.keys(this.xSlots).forEach((function(i){r.push(e("div",{slot:i,domProps:{innerHTML:t.fullOptions.memMarkdown(t.xSlots[i])}}))})),Object.keys(this.$slots).forEach((function(i){r.push(e("template",{slot:i},t.$slots[i]))})),r},change:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.changed&&this.$nextTick((function(){e.updateSelectItems(),t&&e.fastForwardEvent("change-child",{fullKey:e.fullKey,value:e.value}),e.$emit("change",e.value),e.changed=!1}))},input:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];null==e||""===e?this.fullSchema.nullable?null!==this.value?(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:null,oldValue:this.value}),this.$emit("input",null)):t&&(r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:null,oldValue:this.value}),this.$emit("input",null)):void 0!==this.value&&(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:void 0,oldValue:this.value}),this.$emit("input",void 0)):Object(s.deepEqual)(e,this.value)||(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:e,oldValue:this.value}),this.$emit("input",e))},fixValueType:function(e,t){return[null,void 0].includes(e)?e:"string"===t.type&&"string"!=typeof e||"integer"===t.type&&"number"!=typeof e||"number"===t.type&&"number"!=typeof e||"boolean"===t.type&&"boolean"!=typeof e||"array"===t.type&&!Array.isArray(e)||"object"===t.type&&("object"!==P(e)||Array.isArray(e))?void 0:e},defaultValue:function(e){if(!e.readOnly||!this.fullOptions.deleteReadOnly)return"object"!==e.type||e["x-fromUrl"]||e["x-fromData"]||e.enum?"array"===e.type?[]:null:{}},fixProperties:function(e){var t=this;return this.debug("fixProperties"),"object"===this.fullSchema.type&&e&&(this.fullSchema.properties&&this.fullSchema.properties.length||Object.keys(this.subModels).length&&!this.fullSchema["x-fromData"]&&!this.fullSchema["x-fromUrl"])?(e=I({},e),(this.fullOptions.removeAdditionalProperties||!1===this.fullSchema.additionalProperties)&&Object.keys(e).forEach((function(r){(t.fullSchema.properties||[]).find((function(e){return e.key===r}))||delete e[r]})),Object.keys(this.subModels).forEach((function(r){Object.keys(t.subModels[r]).forEach((function(i){var n=t.fullSchema.properties.find((function(e){return e.key===i}));n&&n.const||e[i]!==t.subModels[r][i]&&(e[i]=t.subModels[r][i])}))})),e):e},initFromSchema:function(){if(this.debug("initFromSchema"),this.initiallyDefined=void 0!==this.value&&null!==this.value,"array"===this.fullSchema.type&&(this.initiallyDefined=!(!this.value||!this.value.length)),"object"===this.fullSchema.type&&(this.initiallyDefined=!(!this.value||!Object.keys(this.value).length)),this.fullSchema.readOnly&&this.fullOptions.deleteReadOnly)return this.input(void 0);var e=this.value;return"object"===this.fullSchema.type&&[void 0,null].includes(e)&&!this.isSelectProp&&(e={}),void 0!==this.fullSchema.const&&(e=this.fullSchema.const),this.initSelectProp(e),this.initObjectContainer(e),"array"===this.fullSchema.type&&(e=this.value.filter((function(e){return![void 0,null].includes(e)}))),this.input(this.fixProperties(e),!0)}}}}.call(this,r(5))},function(e,t,r){"use strict";e.exports=function(e,t){return{input:e,regex:t,next:function(){var e=this.nextRaw();if(e)for(var t=1;t<e.length;t++)if(e[t])return e[t];return null},nextRaw:function(){return this.regex.exec(this.input)},toArray:function(){for(var e=[],t=null;t=this.next();)e.push(t);return e},reset:function(e){return this.regex.lastIndex=e||0}}}},function(e,t){function r(e,t,r){var i,n,s,o,l;function a(){var u=Date.now()-o;u<t&&u>=0?i=setTimeout(a,t-u):(i=null,r||(l=e.apply(s,n),s=n=null))}null==t&&(t=100);var u=function(){s=this,n=arguments,o=Date.now();var u=r&&!i;return i||(i=setTimeout(a,t)),u&&(l=e.apply(s,n),s=n=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(s,n),s=n=null,clearTimeout(i),i=null)},u}r.debounce=r,e.exports=r}])}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VJsf=t():e.VJsf=t()}(this,(function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=19)}([function(e,t,r){!function(e){"use strict";var t="function"==typeof WeakSet,r=Object.keys;function i(e,t){e&&"object"==typeof e&&t.add(e)}function n(e,t,r,i){for(var n,s=e.length,o=0;o<s;o++)if(r((n=e[o])[0],t[0],i)&&r(n[1],t[1],i))return!0;return!1}function s(e,t,r,i){for(var n=e.length,s=0;s<n;s++)if(r(e[s],t,i))return!0;return!1}function o(e,t){return e===t||e!=e&&t!=t}function a(e){return e.constructor===Object||null==e.constructor}function l(e){return!!e&&"function"==typeof e.then}function u(e){return!(!e||!e.$$typeof)}function c(){return Object.create({_values:[],add:function(e){this._values.push(e)},has:function(e){return-1!==this._values.indexOf(e)}})}var h=t?function(){return new WeakSet}:c;function f(e){return function(t){var r=e||t;return function(e,t,n){void 0===n&&(n=h());var s=n.has(e),o=n.has(t);return s||o?s&&o:(i(e,n),i(t,n),r(e,t,n))}}}function p(e){var t=new Array(e.size),r=0;return e.forEach((function(e,i){t[r++]=[i,e]})),t}function m(e){var t=new Array(e.size),r=0;return e.forEach((function(e){t[r++]=e})),t}var d="_owner",y=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function v(e,t,i,n){var s,o=r(e),a=o.length;if(r(t).length!==a)return!1;for(var l=0;l<a;l++){if(s=o[l],!y(t,s))return!1;if(s===d&&u(e)){if(!u(t))return!1}else if(!i(e[s],t[s],n))return!1}return!0}var b=Array.isArray,g="function"==typeof Map,O="function"==typeof Set,S="object";function x(e){var t="function"==typeof e?e(r):r;function r(e,r,i){if(o(e,r))return!0;if(e&&r&&typeof e===S&&typeof r===S){if(a(e)&&a(r))return v(e,r,t,i);var u=b(e),c=b(r);if(u||c)return u===c&&function(e,t,r,i){var n=e.length;if(t.length!==n)return!1;for(var s=0;s<n;s++)if(!r(e[s],t[s],i))return!1;return!0}(e,r,t,i);var h=e instanceof Date,f=r instanceof Date;if(h||f)return h===f&&o(e.getTime(),r.getTime());var d=e instanceof RegExp,y=r instanceof RegExp;if(d||y)return d===y&&function(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}(e,r);if(l(e)||l(r))return e===r;if(g){var x=e instanceof Map,j=r instanceof Map;if(x||j)return x===j&&function(e,t,r,i){if(e.size!==t.size)return!1;for(var s=p(e),o=p(t),a=s.length,l=0;l<a;l++)if(!n(o,s[l],r,i)||!n(s,o[l],r,i))return!1;return!0}(e,r,t,i)}if(O){var P=e instanceof Set,w=r instanceof Set;if(P||w)return P===w&&function(e,t,r,i){if(e.size!==t.size)return!1;for(var n=m(e),o=m(t),a=n.length,l=0;l<a;l++)if(!s(o,n[l],r,i)||!s(n,o[l],r,i))return!1;return!0}(e,r,t,i)}return v(e,r,t,i)}return!1}return r}var j=x(),P=x((function(){return o})),w=x(f()),k=x(f(o));e.circularDeepEqual=w,e.circularShallowEqual=k,e.createCustomEqual=x,e.deepEqual=j,e.sameValueZeroEqual=o,e.shallowEqual=P,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,r){(function(t){var r;r=function(){"use strict";var e=Function.prototype.toString,r=Object.create,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,h="function"==typeof o,f="function"==typeof WeakMap,p=function(){if(f)return new WeakMap;var e=r({has:function(t){return!!~e._keys.indexOf(t)},set:function(t,r){e._keys.push(t),e._values.push(r)},get:function(t){return e._values[e._keys.indexOf(t)]}});return e._keys=[],e._values=[],e},m=function(t,i){if(!t.constructor)return r(null);var n=t.constructor,s=t.__proto__||a(t);if(n===i.Object)return s===i.Object.prototype?{}:r(s);if(~e.call(n).indexOf("[native code]"))try{return new n}catch(e){}return r(s)},d=function(e,t,r,i){var n=m(e,t);for(var s in i.set(e,n),e)u.call(e,s)&&(n[s]=r(e[s],i));if(h){var a=o(e),l=a.length;if(l)for(var f=0,p=void 0;f<l;f++)p=a[f],c.call(e,p)&&(n[p]=r(e[p],i))}return n},y=function(e,t,r,a){var l=m(e,t);a.set(e,l);var u=h?s(e).concat(o(e)):s(e),c=u.length;if(c)for(var f=0,p=void 0,d=void 0;f<c;f++)if("callee"!==(p=u[f])&&"caller"!==p)if(d=n(e,p)){d.get||d.set||(d.value=r(e[p],a));try{i(l,p,d)}catch(e){l[p]=d.value}}else l[p]=r(e[p],a);return l},v=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},b=Array.isArray,g="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:void(console&&console.error&&console.error('Unable to locate global object, returning "this".'));function O(e,t){var r=!(!t||!t.isStrict),i=t&&t.realm||g,n=r?y:d,s=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var o,a=e.constructor;if(a===i.Object)return n(e,i,s,t);if(b(e)){if(r)return y(e,i,s,t);var l=e.length;o=new a,t.set(e,o);for(var u=0;u<l;u++)o[u]=s(e[u],t);return o}if(e instanceof i.Date)return new a(e.getTime());if(e instanceof i.RegExp)return(o=new a(e.source,e.flags||v(e))).lastIndex=e.lastIndex,o;if(i.Map&&e instanceof i.Map)return o=new a,t.set(e,o),e.forEach((function(e,r){o.set(r,s(e,t))})),o;if(i.Set&&e instanceof i.Set)return o=new a,t.set(e,o),e.forEach((function(e){o.add(s(e,t))})),o;if(i.Blob&&e instanceof i.Blob)return e.slice(0,e.size,e.type);if(i.Buffer&&i.Buffer.isBuffer(e))return o=i.Buffer.allocUnsafe?i.Buffer.allocUnsafe(e.length):new a(e.length),t.set(e,o),e.copy(o),o;if(i.ArrayBuffer){if(i.ArrayBuffer.isView(e))return o=new a(e.buffer.slice(0)),t.set(e,o),o;if(e instanceof i.ArrayBuffer)return o=e.slice(0),t.set(e,o),o}return"function"==typeof e.then||e instanceof Error||i.WeakMap&&e instanceof i.WeakMap||i.WeakSet&&e instanceof i.WeakSet?e:n(e,i,s,t)};return s(e,p())}return O.default=O,O.strict=function(e,t){return O(e,{isStrict:!0,realm:t?t.realm:void 0})},O},e.exports=r()}).call(this,r(5))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return n})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return o}));var i={locale:"en",rootDisplay:"",objectContainerClass:"",sectionsClass:"pl-2 pt-2",sectionsTitlesClasses:["title","subtitle-1","subtitle-2"],arrayItemsTitlesClasses:["title","subtitle-1","subtitle-2"],childrenClass:"",fieldProps:{},fieldColProps:{cols:12},readOnlyFieldProps:{hideDetails:!0},textFieldProps:{},textareaProps:{filled:!0},numberProps:{},sliderProps:{},checkboxProps:{},switchProps:{},comboboxProps:{},selectProps:{},fileInputProps:{},radioGroupProps:{},radioItemProps:{},tabsProps:{grow:!0},expansionPanelsProps:{mandatory:!0},dialogProps:{maxWidth:500},dialogCardProps:{},colorPickerProps:{},timePickerProps:{},datePickerProps:{scrollable:!0},arrayItemCardProps:{},arrayItemColProps:{cols:12},stepperProps:{},verticalStepperProps:{},tooltipProps:{left:!0,openOnHover:!1,openOnClick:!0},removeAdditionalProperties:!0,disableAll:!1,hideReadOnly:!1,deleteReadOnly:!1,filesAsDataUrl:!1,hideTooltips:!1,disableSorting:!1,context:{},rules:{},initialValidation:"defined",idPrefix:"",markdownit:{},editMode:"dialog",arrayOperations:["create","update","delete"],autofocus:!1,httpOptions:{},selectAll:!1,autoFixArrayItems:!0,useValidator:!1,evalMethod:"propertyExpr"},n={en:{required:"This information is required",noData:"No matching value found",search:"Search...",minimum:"The value must be greater than or equal to {minimum}",exclusiveMinimum:"The value must be greater than {exclusiveMinimum}",maximum:"The value must be lower than or equal to {maximum}",exclusiveMaximum:"The value must be lower than {exclusiveMaximum}",minLength:"{minLength} characters minimum",maxLength:"{maxLength} characters maximum",minItems:"No less than {minItems} items",maxItems:"No more than {maxItems} items",pattern:"The expected pattern is not satisfied",mdeLink1:"[Link title",mdeLink2:"](link url)",mdeImg1:"",mdeTable1:"",mdeTable2:"\n\n| Column 1 | Column 2 | ColoColumnnne 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n",bold:"Bold",italic:"Italic",heading:"Title",quote:"Quote",unorderedList:"Unordered list",orderedList:"Ordered list",createLink:"Create a link",insertImage:"Insert an image",createTable:"Create a table",preview:"Aperçu du rendu",mdeGuide:"Documentation de la syntaxe",undo:"Undo",redo:"Redo",selectAll:"Select all"},fr:{required:"Cette information est obligatoire",noData:"Aucun élément correspondant",search:"Recherchez...",minimum:"La valeur doit être supérieure ou égale à {minimum}",exclusiveMinimum:"La valeur doit être supérieure {exclusiveMinimum}",maximum:"La valeur doit être inférieure ou égale à {maximum}",exclusiveMaximum:"La valeur doit être inférieure à {exclusiveMaximum}",minLength:"{minLength} caractères minimum",maxLength:"{maxLength} caractères maximum",minItems:"Au moins {minItems} éléments",maxItems:"Au plus {maxItems} éléments",pattern:"Le format attendu n'est pas respecté",mdeLink1:"[titre du lien",mdeLink2:"](adresse du lien)",mdeImg1:"",mdeTable1:"",mdeTable2:"\n\n| Colonne 1 | Colonne 2 | Colonne 3 |\n| -------- | -------- | -------- |\n| Texte | Texte | Texte |\n\n",bold:"Gras",italic:"Italique",heading:"Titre",quote:"Citation",unorderedList:"Liste à puce",orderedList:"Liste numérotée",createLink:"Créer un lien",insertImage:"Insérer une image",createTable:"Créer un tableau",preview:"Preview",mdeGuide:"Syntax documentation",undo:"Défaire",redo:"Refaire",selectAll:"Tout sélectionner"},es:{required:"Esta información es requerida",noData:"No se encontraron valores coincidentes",search:"Buscar...",minimum:"El valor debe ser mayor o igual que {mínimo}",exclusiveMinimum:"El valor debe ser mayor que {minimum}",maximum:"El valor debe ser menor o igual a {maximum}",exclusiveMaximum:"El valor debe ser inferior a {maximum}",minLength:"{minLength} caracteres mínimo",maxLength:"{maxLength} caractères máximo",minItems:"Al menos {minItems} articulos",maxItems:"Hasta {maxItems} articulos",pattern:"El formato esperado no se respeta",selectAll:"Seleccionar todo"},de:{required:"Diese Informationen sind erforderlich",noData:"Keine passenden Artikel",search:"Suche...",minimum:"Der Wert muss größer oder gleich {Minimum} sein",exclusiveMinimum:"Der Wert muss größer als {exclusiveMinimum} sein",maximum:"Der Wert muss kleiner oder gleich {Maximum} sein",exclusiveMaximum:"Der Wert muss kleiner als {maximum} sein",minLength:"Mindestens {minLength} Zeichen",maxLength:"Maximal {maxLength} Zeichen",minItems:"Mindestens {minItems} Elemente",maxItems:"Bis zu {maxItems} Artikel",pattern:"Das erwartete Format wird nicht eingehalten",selectAll:"Wählen Sie Alle"},ar:{required:"هذه المعلومة مطلوبة",noData:"لم يتم العثور على قيمة",search:"جاري البحث...",minimum:"{exclusiveMinimum} القيمة يجب أن تكون أكبر من",exclusiveMinimum:"{exclusiveMinimum} القيمة يجب أن تكون أكبر من",maximum:"{maximum} القيمة يجب أن تكون أقل من",exclusiveMaximum:"{exclusiveMaximum} القيمة يجب أن تكون أقل من",minLength:"{minLength} الحد الأدنى للحروف المطلوبة هو",maxLength:"{maxLength} الحد الأقصى للحروف المطلوبة هو",minItems:"قطع {minItems} لا يمكن اختيار أقل من ",maxItems:"قطع {maxItems} لا يمكن اختيار أكثر من ",pattern:"لا يوجد تشابه مع النموذج المطلوب",selectAll:"اختر الكل"},tr:{required:"Zorunlu alan",noData:"Bilgi yok",search:"Arıyor...",minimum:"Değer {minimum} dan büyük olmalı",exclusiveMinimum:"Değer {exclusiveMinimum} dan büyük olmalı",maximum:"Değer, {maximum} değerinden küçük veya ona eşit olmalıdır",exclusiveMaximum:"Değer {maximum} dan küçük olmalı",minLength:"{minLength} asgari karakter sayısı",maxLength:"{maxLength} azami karakter sayısı",minItems:"En az seçenek sayısı {minItems}",maxItems:"En çok seçenek sayısı {maxItems}",pattern:"İstenilen paten tutmuyor",selectAll:"Hepsini seç"},nl:{required:"Deze informatie is vereist",noData:"Geen overeenkomstig resultaat gevonden",search:"Zoeken...",minimum:"De waarde moet groter zijn dan of gelijk zijn aan {minimum}",exclusiveMinimum:"Waarde moet meer zijn dan {exclusiveMinimum}",maximum:"De waarde moet lager zijn dan of gelijk zijn aan {maximum}",exclusiveMaximum:"Waarde moet minder zijn dan {maximum}",minLength:"Minimaal {minLength} tekens",maxLength:"Maximaal {maxLength} tekens",minItems:"Minimaal {minItems} antwoorden",maxItems:"Maximaal {maxItems} antwoorden",pattern:"Invoer voldoet niet aan verwachte patroon",selectAll:"Selecteer alles"}},s={time:function(e,t){var r=new Date("".concat((new Date).toISOString().split("T")[0],"T").concat(e));return new Date(r.getTime()+6e4*r.getTimezoneOffset()).toLocaleTimeString(t)},date:function(e,t){var r=new Date(e);return new Date(r.getTime()+6e4*r.getTimezoneOffset()).toLocaleDateString(t)},"date-time":function(e,t){return new Date(e).toLocaleString(t)}},o={mdiSvg:{calendar:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",clock:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",add:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",delete:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},mdi:{calendar:"mdi-calendar",clock:"mdi-clock",info:"mdi-information",add:"mdi-plus",edit:"mdi-pencil",delete:"mdi-delete"},md:{calendar:"event",clock:"clock",info:"info",add:"add",edit:"create",delete:"delete"},fa:{calendar:"fa-calendar",clock:"fa-clock",info:"fa-info",add:"fa-plus",edit:"fa-edit",delete:"fa-trash"}}},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={};t.a=l;var u=function(e){return Object.keys(e||{}).map((function(t){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e[t],{key:t})}))},c=function(e,t){e.required=e.required.concat(t.required||[]),e.properties=e.properties.concat(u(t.properties)),t.oneOf&&(e.oneOf=(e.oneOf||[]).concat(t.oneOf)),t.allOf&&(e.allOf=(e.allOf||[]).concat(t.allOf))};l.prepareFullSchema=function(e,t,r){var i=n()(e);if(i.pattern&&(i.patternRegexp=new RegExp(i.pattern)),!i.type&&i.properties&&(i.type="object"),!i.type){var o=i.anyOf||i.oneOf||i.allOf,a=o&&o.find((function(e){return!!e.type}));a&&(i.type=a.type)}if(Array.isArray(i.type)&&(i.nullable=i.type.includes("null"),i.type=i.type.find((function(e){return"null"!==e})),i.nullable&&i.enum&&(i.enum=i.enum.filter((function(e){return null!==e})))),i.items&&Array.isArray(i.items)&&i.items.forEach((function(e,t){e.key=""+t})),i.enum&&1===i.enum.length&&(i.const=i.enum[0],delete i.enum),"object"!==i.type)return i;if(i.properties=u(i.properties),i.required=i.required||[],i.dependencies=i.dependencies||{},i.dependencies&&Object.keys(i.dependencies).forEach((function(e){var r=i.dependencies[e];if(t){var n=function(e,t){for(var r=t.split("."),i=0;i<r.length&&![null,void 0].includes(e);i++)e=e[r[i]];return e}(t,e);[null,void 0,!1].includes(n)||Array.isArray(n)&&0===n.length||"object"===s(n)&&0===Object.keys(n).length||c(i,r)}})),i.if)if(r.validator){var l=r.validator(i.if)(t);!l&&i.then&&c(i,i.then),l&&i.else&&c(i,i.else)}else console.error("v-jsf - The conditional if/then/else syntax requires the ajv or other validator option.");return i}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r(0);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(e,t,r,s,a){var l=[];if(s&&l.push((function(e){return null!=e&&""!==e||r.messages.required})),"array"===t.type&&void 0!==t.minItems){var u=r.messages.minItems.replace("{minItems}",t.minItems.toLocaleString(r.locale));l.push((function(e){return!e||e.length>=t.minItems||u}))}if("array"===t.type&&void 0!==t.maxItems){var c=r.messages.maxItems.replace("{maxItems}",t.maxItems.toLocaleString(r.locale));l.push((function(e){return!e||e.length<=t.maxItems||c}))}if("string"===t.type&&void 0!==t.minLength){var h=r.messages.minLength.replace("{minLength}",t.minLength.toLocaleString(r.locale));l.push((function(e){return null==e||e.length>=t.minLength||h}))}if("string"===t.type&&void 0!==t.maxLength){var f=r.messages.maxLength.replace("{maxLength}",t.maxLength.toLocaleString(r.locale));l.push((function(e){return null==e||e.length<=t.maxLength||f}))}if("string"===t.type&&void 0!==t.patternRegexp){var p=r.messages.pattern.replace("{pattern}",t.pattern);l.push((function(e){return null==e||!!e.match(t.patternRegexp)||p}))}if(["number","integer"].includes(t.type)&&void 0!==t.maximum){var m=r.messages.maximum.replace("{maximum}",t.maximum.toLocaleString(r.locale));l.push((function(e){return null==e||e<=t.maximum||m}))}if(["number","integer"].includes(t.type)&&void 0!==t.exclusiveMaximum){var d=r.messages.exclusiveMaximum.replace("{exclusiveMaximum}",t.exclusiveMaximum.toLocaleString(r.locale));l.push((function(e){return null==e||e<t.exclusiveMaximum||d}))}if(["number","integer"].includes(t.type)&&void 0!==t.minimum){var y=r.messages.minimum.replace("{minimum}",t.minimum.toLocaleString(r.locale));l.push((function(e){return null==e||e>=t.minimum||y}))}if(["number","integer"].includes(t.type)&&void 0!==t.exclusiveMinimum){var v=r.messages.exclusiveMinimum.replace("{exclusiveMinimum}",t.exclusiveMinimum.toLocaleString(r.locale));l.push((function(e){return null==e||e>t.exclusiveMinimum||v}))}t.enum&&l.push((function(e){return null==e||!!t.enum.find((function(t){return Object(i.deepEqual)(t,e)}))||""})),"array"===t.type&&t.items.enum&&l.push((function(e){return null==e||!e.find((function(e){return!t.items.enum.find((function(t){return Object(i.deepEqual)(t,e)}))}))||""})),a&&"array"!==t.type&&l.push((function(e){return null==e||!!t.oneOf.find((function(t){return Object(i.deepEqual)(t.const,e)}))||""})),a&&"array"===t.type&&l.push((function(e){return null==e||!e.find((function(e){return!t.items.oneOf.find((function(t){return Object(i.deepEqual)(t.const,e)}))}))||""})),r.validator&&r.useValidator&&l.push(o(e,r.validator));var b=(t["x-rules"]||[]).map((function(e){if("string"==typeof e){var t=r.rules&&r.rules[e];return t||console.error("rule ".concat(e," is referenced but not define in options")),t}console.error("rule should be a string, received ".concat(n(e)))})).filter((function(e){return!!e}));return l.concat(b)},o=function(e,t,r){var i=t(e);return function(e){if(null==e)return!0;var t=i(e);return!t||t}}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function i(e){this._maxSize=e,this.clear()}i.prototype.clear=function(){this._size=0,this._values=Object.create(null)},i.prototype.get=function(e){return this._values[e]},i.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,s=/^\d+$/,o=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new i(512),c=new i(512),h=new i(512);function f(e){return u.get(e)||u.set(e,p(e).map((function(e){return e.replace(l,"$2")})))}function p(e){return e.match(n)}function m(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!m(e)&&(function(e){return e.match(o)&&!e.match(s)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:i,split:p,normalizePath:f,setter:function(e){var t=f(e);return c.get(e)||c.set(e,(function(e,r){for(var i=0,n=t.length,s=e;i<n-1;){var o=t[i];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;s=s[t[i++]]}s[t[i]]=r}))},getter:function(e,t){var r=f(e);return h.get(e)||h.set(e,(function(e){for(var i=0,n=r.length;i<n;){if(null==e&&t)return;e=e[r[i++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(m(t)||s.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var i,n,s,o,a=e.length;for(n=0;n<a;n++)(i=e[n])&&(d(i)&&(i='"'+i+'"'),o=m(i),s=!o&&/^\d+$/.test(i),t.call(r,i,o,s,n,e))}(Array.isArray(e)?e:p(e),t,r)}}},function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=r(6),s={cache:{},extendtoken:"$extend",reftoken:"$ref",pathtoken:"#",debug:!1,clone:function(e){var t,r;if(null===e||"object"!==i(e)||"function"==typeof e)return e;for(t in r=e.constructor(),e)r[t]=s.clone(e[t]);return r},findIds:function(e,t){var r,n,o,a;for(n in r=!1,o={},e)a=e[n],null!=e.id&&(r=e.id),r&&"id"!==n&&(o[n]=a),"object"===i(a)&&s.findIds(a,t);if(r)return t[r]=o,o},get_json_pointer:function(e,t,r){var i,o;i=e.replace(/\\\//,"#SLASH#").replace(/\//g,".").replace(/#SLASH#/,"/"),Object.keys(r).forEach((function(e){i=i.replace(e,r[e])})),"."===(i=i.replace(new RegExp("^"+s.pathtoken),""))[0]&&(i=i.substr(1,i.length-1));try{s.debug&&console.log("evaluating '"+i+"'"),o=n.getter(i)(t)}catch(e){console.error(e),o=""}return o},replace:function(e,t,r,n){var o,a,l,u,c,h;for(o in c=[],e)h=e[o],s.debug&&"string"==typeof a&&console.log("checking "+o),null!=h&&null!=h[s.reftoken]?(a=h[s.reftoken],s.debug&&"string"==typeof a&&console.log("checking "+o+" -> "+a),Object.keys(h).length>1&&console.error("json-ref-lite error: object '"+o+"' contains reference as well as other properties..ignoring properties"),Array.isArray(a)?a=s.replace(a,t,r,n):null!=t[a]?e[o]=t[a]:String(a).match(new RegExp("^"+s.pathtoken))&&(s.debug&&console.log("checking "+a+" pathtoken"),e[o]=s.get_json_pointer(a,r,n)),null!=(null!=(l=e[o])?l.length:void 0)&&0===(null!=(u=e[o])?u.length:void 0)&&s.debug?c.push(console.log(a+" reference not found")):c.push(void 0)):"object"===i(h)?c.push(s.replace(h,t,r,n)):c.push(void 0);return c},extend:function(e,t){var r,n,o,a,l,u;if("object"===i(e)){for(r in o=[],e){if(u=e[r],r===s.extendtoken&&null!=u[s.reftoken]){for(a in n=s.get_json_pointer(u[s.reftoken],e,t),u)l=u[a],a!==s.reftoken&&(n[a]=l);delete e[r]}"object"===i(u)?o.push(u=s.extend(u)):o.push(void 0)}return o}},resolve:function(e,t){var r;return r={},s.findIds(e,r),s.debug&&Object.keys(r).length&&console.dir(r),s.replace(e,r,e,t),e},evaluate:function(e,t,r){var n,o,a;for(n in null==r&&(r=s.evaluateStr),o=s.clone(e))"string"==typeof(a=o[n])&&(e[n]=r(a,t)),"object"===i(a)&&(e[n]=s.evaluate(a,t));return e},evaluateStr:function(e,t){if("string"!=typeof e)return e;if("{"!==e[0]||"}"!==e[e.length-1])return e.replace(/(\{)(.*?)(\})/g,(function(e,r,i){var o;if(o="",null==t||null==i)return o;if(null!=t[i]&&"function"==typeof t[i])o=t[i]();else if(null!=t[i])o=t[i];else{try{i=i.replace(new RegExp("^"+s.pathtoken+"/"),"").replace(/\//g,"."),o=n.getter(i)(t)}catch(e){err=e,o=""}null==o&&(o="")}return s.evaluateStr(o,t),o}));try{return n.getter(e.replace(/^{/,"").replace(/}$/,""))(t)}catch(e){return null}}};t.a=s},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={data:function(){return{currentOneOf:null,currentTab:null,showCurrentOneOf:!0,subModels:{},currentStep:1,steps:[]}},computed:{isObjectContainer:function(){if(this.debug("compute isObjectContainer"),this.fullSchema)return!("object"!==this.fullSchema.type&&!Array.isArray(this.fullSchema.items))&&(!this.isSelectProp&&!this.isFileProp)},subSchemas:function(){if(this.debug("compute subSchemas"),this.fullSchema)return this.fullSchema.oneOf||this.fullSchema.anyOf},subSchemasConstProp:function(){if(this.debug("compute subSchemasConstProp"),this.subSchemas){var e=this.subSchemas[0].properties,t=Object.keys(e).find((function(t){return!!e[t].const}));if(t)return a({},e[t],{key:t,htmlDescription:this.fullOptions.memMarkdown(e[t].description)})}},subSchemasRequired:function(){var e=this;return this.debug("compute subSchemasRequired"),!(!this.subSchemas||!this.subSchemasConstProp)&&(!!this.fullSchema.oneOf||(!!(this.fullSchema.anyOf&&this.fullSchema.required&&this.fullSchema.required.find((function(t){return t===e.oneOfConstProp.key})))||void 0))},subSchemasRules:function(){var e=this;if(this.debug("compute subSchemasRules"),this.fullSchema){var t=[];return this.subSchemasRequired&&t.push((function(t){return null!=t&&""!==t||e.fullOptions.messages.required})),t}}},watch:{currentOneOf:function(e,t){var r=this;this.debug("watched currentOneOf"),this.showCurrentOneOf=!1,this.$nextTick((function(){r.showCurrentOneOf=!0,r.currentOneOf?r.input(r.fixProperties(r.value),!1,!1):r.$set(r.subModels,"currentOneOf",{}),r.triggerChangeCurrentOneOf&&r.$nextTick((function(){r.triggerChangeCurrentOneOf=!1,r.change()}))}))},subModels:{handler:function(){this.debug("watched subModels"),this.input(this.fixProperties(this.value),!1,!1)},deep:!0}},methods:{isSection:function(e,t){return!!e&&(!!e.title&&(!(e["x-fromUrl"]||e["x-fromData"]||e.contentMediaType||"file"===e["x-display"])&&(!!e.allOf||(!(!t||!e.anyOf&&!e.oneOf)||!(!e.properties&&!Array.isArray(e.items))))))},initObjectContainer:function(e){var t=this;"object"===this.fullSchema.type&&(this.fullSchema.allOf&&this.fullSchema.allOf.forEach((function(r,i){t.$set(t.subModels,"allOf-"+i,n()(e))})),this.currentOneOf=null,this.subSchemas&&!this.currentOneOf&&this.subSchemasConstProp&&(e&&e[this.subSchemasConstProp.key]?this.currentOneOf=this.subSchemas.find((function(r){return r.properties[t.subSchemasConstProp.key].const===e[t.subSchemasConstProp.key]})):this.fullSchema.default&&(this.currentOneOf=this.subSchemas.find((function(e){return e.properties[t.subSchemasConstProp.key].const===t.fullSchema.default[t.subSchemasConstProp.key]})))),this.currentOneOf?this.$set(this.subModels,"currentOneOf",n()(e)):this.$set(this.subModels,"currentOneOf",{}))},renderStepperStep:function(e,t,r,i,n,s){if(i){var o=r||t.key,a=this.dedupChildrenWithValidatedErrors.includes(o);return[e("v-stepper-step",{props:{step:n,editable:n<this.currentStep,complete:n<this.currentStep,rules:[function(){return!a}]}},[t.title]),s?null:e("v-divider")]}},renderSection:function(e,t,r,i,n,s){var o=this;if(i){var a=r||t.key,l="section-"+a;return"hidden"===t["x-display"]||t.readOnly&&this.fullOptions.hideReadOnly?[i]:"expansion-panels"===this.display?[e("v-expansion-panel",{key:l},[e("v-expansion-panel-header",{class:{"error--text":this.dedupChildrenWithValidatedErrors.includes(a)}},[t.title]),e("v-expansion-panel-content",{props:{eager:!0}},[i])])]:"tabs"===this.display?[e("v-tab",{key:l,props:{href:"#tab-".concat(this.fullOptions.idPrefix).concat(this.dashKey,"-").concat(a)}},[e("span",{class:{"error--text":this.dedupChildrenWithValidatedErrors.includes(a)}},[t.title])]),e("v-tab-item",{key:l,props:{value:"tab-".concat(this.fullOptions.idPrefix).concat(this.dashKey,"-").concat(a),eager:!0}},[e("v-card",{props:{tile:!0,flat:!0}},[e("v-card-text",[i])])])]:"stepper"===this.display||"vertical-stepper"===this.display?[e("v-stepper-content",{key:l,props:{step:n,eager:!0}},[e("v-card",{props:{tile:!0,flat:!0}},[e("v-card-text",{class:{"pa-0":!0}},[i]),s?null:e("v-card-actions",{class:{"px-0":!0}},[e("v-btn",{props:{color:"primary"},on:{click:function(){console.log(i),i.componentInstance.validate(!0)&&(o.currentStep+=1)}}},"continue")])])])]:[e("v-row",{key:l,class:"ma-0 ".concat(this.fullOptions.sectionsClass)},[e("span",{class:"py-2 "+(this.fullOptions.sectionsTitlesClasses[this.sectionDepth]||this.fullOptions.sectionsTitlesClasses[this.fullOptions.sectionsTitlesClasses.length-1])},["".concat(t.title," ")]),i])]}},renderChildProp:function(e,t,r,i,o){var l,u=this;this.objectContainerChildrenCount+=1,l=r?this.subModels:Array.isArray(this.value)?s(this.value):a({},this.value);var c=r||t.key,h=l[c];return void 0===(h=this.fixValueType(h,t))&&(h=this.defaultValue(t),void 0!==t.default&&(h=n()(t.default)),null!=h&&(this.$set(l,c,h),r||this.input(l,!1,!1))),e("v-jsf",{props:{schema:a({readOnly:this.fullSchema.readOnly},t),value:h,modelRoot:this.modelRoot||this.value,modelKey:c,parentKey:"".concat(this.fullKey,"."),required:o||!(!this.fullSchema.required||!this.fullSchema.required.includes(t.key)),options:a({},this.fullOptions,{autofocus:this.fullOptions.autofocus&&1===this.objectContainerChildrenCount}),optionsRoot:this.initialOptions,sectionDepth:i},class:this.fullOptions.childrenClass,scopedSlots:this.childScopedSlots(t.key),key:c,on:{error:function(e){return u.$emit("error",e)},input:function(e){void 0===e?Array.isArray(l)&&parseInt(c)<l.length-1?u.$set(l,c,e):u.$delete(l,c):u.$set(l,c,e),r||u.input(l,!1,!1)},change:function(e){return u.change(!1)}}},this.childSlots(e,t.key))},renderObjectContainer:function(e){var t=this;if(this.isObjectContainer){if([void 0,null].includes(this.value))return[];var r=[];this.objectContainerChildrenCount=0;var i=[];this.fullSchema.properties&&this.fullSchema.properties.forEach((function(n){t.isSection(n)?i.push({schema:n,subModelKey:null,forceRequired:!1}):r.push(t.renderChildProp(e,n,null,t.sectionDepth,!1))})),Array.isArray(this.fullSchema.items)&&this.fullSchema.items.forEach((function(n,s){var o=t.value.length>s||t.fullSchema.minItems&&t.fullSchema.minItems>s;t.isSection(n)?i.push({schema:n,subModelKey:null,forceRequired:o}):r.push(t.renderChildProp(e,n,null,t.sectionDepth,o))})),this.fullSchema.allOf&&this.fullSchema.allOf.forEach((function(n,s){var o=a({},n,{type:"object",key:""+s});t.isSection(n,!0)?i.push({schema:o,subModelKey:"allOf-"+s,forceRequired:!1}):r.push(t.renderChildProp(e,o,"allOf-"+s,t.sectionDepth))}));var n=[],s=[];if(i.forEach((function(r,o){var a=t.renderChildProp(e,r.schema,r.subModelKey,t.sectionDepth+1,r.forceRequired);n=n.concat(t.renderSection(e,r.schema,r.subModelKey,a,o+1,o===i.length-1)),"stepper"!==t.display&&"vertical-stepper"!==t.display||(s=s.concat(t.renderStepperStep(e,r.schema,r.subModelKey,a,o+1,o===i.length-1)))})),"expansion-panels"===this.display&&n.length){var o=a({},this.fullOptions.expansionPanelsProps,{},this.fullSchema["x-props"]);n=[e("v-expansion-panels",{props:o},n)]}if("tabs"===this.display&&n.length){var l=a({},this.fullOptions.tabsProps,{},this.fullSchema["x-props"]);this.currentTab&&this.dedupChildrenWithValidatedErrors.includes(this.currentTab)&&(l.sliderColor="error"),n=[e("v-tabs",{props:l,on:{change:function(e){t.currentTab=e.split("-").pop()}}},n)]}if("stepper"===this.display&&n.length){var u=a({},this.fullOptions.stepperProps,{},this.fullSchema["x-props"],{value:this.currentStep});n=[e("v-stepper",{props:u,style:"width: 100%;",on:{change:function(e){t.currentStep=e}}},[e("v-stepper-header",{},s),e("v-stepper-items",{},n)])]}if("vertical-stepper"===this.display&&n.length){for(var c=a({},this.fullOptions.verticalStepperProps,{},this.fullSchema["x-props"],{vertical:!0,value:this.currentStep}),h=[],f=0;f<n.length;f++)h.push(s[2*f]),h.push(n[f]);n=[e("v-stepper",{props:c,style:"width: 100%;",on:{change:function(e){t.currentStep=e}}},h)]}if(this.subSchemas&&this.subSchemas.length){var p=a({},this.commonFieldProps,{},this.subSchemasConstProp&&this.subSchemasConstProp["x-props"]||{},{disabled:this.disabled||this.subSchemasConstProp&&this.subSchemasConstProp.readOnly,value:this.currentOneOf,label:this.subSchemasConstProp&&this.subSchemasConstProp.title||this.fullSchema.title,items:this.subSchemas.filter((function(e){return!e["x-if"]||!!t.getFromExpr(e["x-if"])})).filter((function(e){return e.properties&&e.properties[t.subSchemasConstProp.key]})),required:this.subSchemasRequired,clearable:!this.subSchemasRequired,itemValue:function(e){return e.properties[t.subSchemasConstProp.key].const},itemText:function(e){return e.title||e.properties[t.subSchemasConstProp.key].const},rules:this.subSchemasRules,returnObject:!0}),m={input:function(e){t.currentOneOf=e,t.triggerChangeCurrentOneOf=!0}};r.push(e("v-select",{props:p,on:m},[this.renderTooltip(e,"append-outer")])),this.currentOneOf&&this.showCurrentOneOf&&r.push(this.renderChildProp(e,a({},this.currentOneOf,{type:"object",title:null}),"currentOneOf",this.sectionDepth+1))}return[e("v-row",{class:"ma-0 ".concat(this.fullOptions.objectContainerClass)},[this.localRuleError&&!this.dedupChildrenWithValidatedErrors.length&&e("v-col",{props:{cols:12},class:{"px-0":!0,"error--text":!0}},this.localRuleError),this.fullSchema.description&&!this.subSchemasConstProp&&e("v-col",{props:{cols:12},class:{"pa-0":!0},domProps:{innerHTML:this.htmlDescription}})].concat(r).concat(n))]}},childSlots:function(e,t){var r=this;return Object.keys(this.$slots).filter((function(e){return e.startsWith("".concat(t,"."))||e.startsWith("".concat(t,"-"))})).map((function(i){var n=i.startsWith("".concat(t,"."))?i.replace("".concat(t,"."),""):i.replace("".concat(t,"-"),"");return e("template",{slot:n},r.$slots[i])}))},childScopedSlots:function(e){var t=this;return Object.keys(this.$scopedSlots).filter((function(t){return t.startsWith("custom-")||t.startsWith("".concat(e,"."))||t.startsWith("".concat(e,"-"))||t===e})).reduce((function(r,i){var n="default";return i.startsWith("".concat(e,"."))&&(n=i.replace("".concat(e,"."),"")),i.startsWith("".concat(e,"-"))&&(n=i.replace("".concat(e,"-"),"")),i.startsWith("custom-")&&(n=i),r[n]=t.$scopedSlots[i],r}),{})}}}},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(e){var t=""+e;return 1===t.length?"0"+t:t},a=function(e){var t=new Date,r=e[0].split("-");t.setFullYear(Number(r[0])),t.setMonth(Number(r[1])-1),t.setDate(Number(r[2]));var i=e[1].split(":");return t.setHours(Number(i[0]||"00")),t.setMinutes(Number(i[1]||"00")),t.setSeconds(0),function(e){var t,r=e.getTimezoneOffset(),i="".concat(o(parseInt(Math.abs(r/60))),":").concat(o(Math.abs(r%60)));return t=r<0?"+".concat(i):r>0?"-".concat(i):"Z","".concat(e.getFullYear(),"-").concat(o(e.getMonth()+1),"-").concat(o(e.getDate()),"T").concat(o(e.getHours()),":").concat(o(e.getMinutes()),":").concat(o(e.getSeconds())).concat(t)}(t)};t.a={data:function(){return{dateProp:{tab:"tab-date",menu:!1,parts:[null,null],lastValue:null}}},methods:{renderDateProp:function(e){var t=this;if("string"===this.fullSchema.type&&["date","date-time","time"].includes(this.fullSchema.format)){var r,i,s,l=this.fullOptions.icons.calendar;if("time"===this.fullSchema.format)r=e("v-time-picker",{props:n({},this.fullOptions.timePickerProps,{locale:this.fullOptions.locale,value:(s=this.value,s?s.slice(0,5):"")}),on:{input:function(e){return t.input(function(e){return e+":00Z"}(e))},change:function(){return t.change()}}}),l=this.fullOptions.icons.clock;else if("date"===this.fullSchema.format)r=e("v-date-picker",{props:n({},this.fullOptions.datePickerProps,{locale:this.fullOptions.locale,value:this.value}),on:{input:function(e){t.input(e),t.dateProp.menu=!1},change:function(){return t.change()}}});else{this.value!==this.dateProp.lastValue&&(this.dateProp.parts=(i=new Date(this.value),["".concat(i.getFullYear(),"-").concat(o(i.getMonth()+1),"-").concat(o(i.getDate())),"".concat(o(i.getHours()),":").concat(o(i.getMinutes()))])),this.dateProp.lastValue=this.value;var u=function(){if(t.dateProp.parts[1]){var e=a(t.dateProp.parts);t.input(e),t.change()}},c=[e("v-tab",{props:{href:"#tab-date"}},[e("v-icon",[this.fullOptions.icons.calendar])]),e("v-tab",{props:{href:"#tab-time",disabled:!this.dateProp.parts[0]}},[e("v-icon",[this.fullOptions.icons.clock])]),e("v-tab-item",{props:{value:"tab-date"}},[e("v-date-picker",{props:n({},this.fullOptions.datePickerProps,{locale:this.fullOptions.locale,value:this.dateProp.parts[0]}),on:{input:function(e){t.dateProp.parts[0]=e,t.dateProp.tab="tab-time",u()}}})]),e("v-tab-item",{props:{value:"tab-time"}},[e("v-time-picker",{props:n({},this.fullOptions.timePickerProps,{locale:this.fullOptions.locale,value:this.dateProp.parts[1]}),on:{input:function(e){t.dateProp.parts[1]=e,u()}}})])];r=e("v-tabs",{props:{grow:!0,value:this.dateProp.tab},on:{input:function(e){t.dateProp.tab=e}},class:"vjsf-date-time"},c)}var h={activator:function(r){var i=r.on;return e("v-text-field",{props:n({},t.commonFieldProps,{value:t.formattedValue,clearable:!t.required,readonly:!0,prependIcon:l}),on:n({},i,{input:function(e){return t.input(e)},change:function(e){return t.change()}})},[t.renderTooltip(e,"append-outer")])}};return[e("v-menu",{scopedSlots:h,props:{value:this.dateProp.menu,disabled:this.disabled,closeOnContentClick:!1,nudgeRight:40,transition:"scale-transition",offsetY:!0,fullWidth:!0,minWidth:"290px"},on:{input:function(e){t.dateProp.menu=e,t.dateProp.tab="tab-date"}}},[r])]}}}}},function(e,t,r){"use strict";var i=r(4),n=r(3);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isSimpleProp:function(){return"string"===this.fullSchema.type||["number","integer"].includes(this.fullSchema.type)||"boolean"===this.fullSchema.type||"array"===this.fullSchema.type&&this.fullSchema.items&&["string","number","integer"].includes(this.fullSchema.items.type)}},methods:{parseNumber:function(e,t){return(t+="")?"-"===t?null:"integer"===this.fullSchema.type?parseInt(t,10):parseFloat(t):null},renderSimpleProp:function(e){var t=this;if(this.isSimpleProp){var r,l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.commonFieldProps),u={},c=s(this.renderPropSlots(e)),h={input:function(e){return t.input(e)},change:function(e){return t.change()}},f={},p="append-outer";if("string"!==this.fullSchema.type||this.separator||("textarea"===this.display||this.fullSchema.maxLength&&this.fullSchema.maxLength>1e3&&"single-line"!==this.display?(r="v-textarea",Object.assign(l,this.fullOptions.textareaProps),u.class="v-text-field--box v-text-field--enclosed"):(r="v-text-field",Object.assign(l,this.fullOptions.textFieldProps),"password"===this.display&&(l.type="password"))),"string"===this.fullSchema.type&&this.separator&&(r="v-combobox",Object.assign(l,this.fullOptions.comboboxProps),l.chips=!0,l.multiple=!0,l.appendIcon="",l.type="string",l.validateOnBlur=!0,f.selection=function(r){return e("v-chip",{props:{close:!0},on:{"click:close":function(){var e=t.value?t.value.split(t.separator):[];e.splice(r.index,1),t.input(e),t.change()}}},r.item)}),["number","integer"].includes(this.fullSchema.type)&&("slider"===this.display?(r="v-slider",Object.assign(l,this.fullOptions.sliderProps)):(r="v-text-field",Object.assign(l,this.fullOptions.textFieldProps),Object.assign(l,this.fullOptions.numberProps)),l.type="number",void 0!==this.fullSchema.minimum&&(l.min=this.fullSchema.minimum),void 0!==this.fullSchema.maximum&&(l.max=this.fullSchema.maximum),l.step=this.fullSchema["x-step"]||("integer"===this.fullSchema.type?1:.01),h.input=function(e){return t.input(t.parseNumber(t.fullSchema.type,e))}),"boolean"===this.fullSchema.type&&(p="append","switch"===this.display?(r="v-switch",Object.assign(l,this.fullOptions.switchProps)):(r="v-checkbox",Object.assign(l,this.fullOptions.checkboxProps)),h.change=function(e){t.input(e||!1),t.change()}),"array"===this.fullSchema.type&&["string","number","integer"].includes(this.fullSchema.items.type)){r="v-combobox",Object.assign(l,this.fullOptions.comboboxProps),l.chips=!0,l.multiple=!0,l.appendIcon="",l.type="string",l.validateOnBlur=!0;var m=Object(i.a)(this.fullSchema.items,n.a.prepareFullSchema(this.fullSchema.items,null,this.fullOptions),this.fullOptions);l.rules=l.rules.concat([function(e){return e.map((function(e){var t=m.find((function(t){return"string"==typeof t(e)}));return t&&t(e)})).find((function(e){return!!e}))||!0}]),"string"!==this.fullSchema.items.type&&(l.type="number",h.input=function(e){var r=e.map((function(e){return t.parseNumber(t.fullSchema.items.type,e)})).filter((function(e){return!isNaN(e)}));t.input(r)}),f.selection=function(r){var i=m.find((function(e){return"string"==typeof e(r.item)}));return e("v-chip",{props:{close:!0,color:i?"error":"default"},on:{"click:close":function(){var e=s(t.value);e.splice(r.index,1),t.input(e),t.change()}}},r.item)}}return this.htmlDescription&&c.push(this.renderTooltip(e,p)),(r=this.customTag?this.customTag:r)?[e(r,{props:l,domProps:u,on:h,scopedSlots:f},c)]:null}}}}},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(e){return new Promise((function(t){var r=new FileReader;r.onload=function(){return t(r.result)},r.readAsDataURL(e)}))},a=function(e,t,r){var i,n;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:if(i=e,!("string"===t.type||t.properties&&t.properties.data&&"string"===t.properties.data.type)){s.next=6;break}return s.next=4,regeneratorRuntime.awrap(o(e));case 4:n=s.sent,i=r?n:n.split(";base64,")[1];case 6:if("string"!==t.type){s.next=8;break}return s.abrupt("return",i);case 8:return s.abrupt("return",{name:e.name,lastModified:new Date(e.lastModified).toISOString(),size:e.size,type:e.type,data:i});case 9:case"end":return s.stop()}}))};t.a={computed:{isFileProp:function(){if(this.fullSchema)return!("string"!==this.fullSchema.type||!this.fullSchema.contentMediaType&&"file"!==this.display)||(!("array"!==this.fullSchema.type||!this.fullSchema.items||"string"!==this.fullSchema.items.type||!this.fullSchema.items.contentMediaType&&"file"!==this.display&&"file"!==this.fullSchema.items["x-display"])||(!("object"!==this.fullSchema.type||!this.fullSchema.contentMediaType&&"file"!==this.display)||!("array"!==this.fullSchema.type||!this.fullSchema.items||"object"!==this.fullSchema.items.type||!this.fullSchema.items.contentMediaType&&"file"!==this.display&&"file"!==this.fullSchema.items["x-display"])))}},watch:{isFileProp:function(){this.isFileProp&&!this.fullSchema.writeOnly&&console.warn("File property should always be used with writeOnly attribute. Files are uploaded but not read in existing data.")}},methods:{renderFileProp:function(e){var t=this;if(this.isFileProp){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.commonFieldProps,{},this.fullOptions.fileInputProps);delete r.value;var o={};this.fullSchema.contentMediaType&&(o.accept=this.fullSchema.contentMediaType),this.fullSchema.items&&this.fullSchema.items.contentMediaType&&(o.accept=this.fullSchema.items.contentMediaType),"array"===this.fullSchema.type&&(o.multiple=!0);var l=i(this.renderPropSlots(e)),u={change:function(e){var r,i;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if("array"!==t.fullSchema.type){n.next=8;break}return n.next=3,regeneratorRuntime.awrap(Promise.all(e.map((function(e){return a(e,t.fullSchema.items,t.fullOptions.filesAsDataUrl)}))));case 3:r=n.sent,t.input(r),t.change(),n.next=13;break;case 8:return n.next=10,regeneratorRuntime.awrap(a(e,t.resolvedSchema,t.fullOptions.filesAsDataUrl));case 10:i=n.sent,t.input(i),t.change();case 13:case"end":return n.stop()}}))}};return this.htmlDescription&&l.push(this.renderTooltip(e,"append-outer")),[e("v-file-input",{props:r,attrs:o,on:u,scopedSlots:this.$scopedSlots},l)]}}}}},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isColorProp:function(){return"string"===this.resolvedSchema.type&&("hexcolor"===this.resolvedSchema.format||"color-picker"===this.display)}},methods:{renderColorProp:function(e){var t=this;if(this.isColorProp){var r=[this.renderTooltip(e,"append")];return r.push(e("v-menu",{props:{closeOnContentClick:!1,closeOneClick:!0,direction:"bottom",offsetY:!0},scopedSlots:{activator:function(r){var i=r.on;return e("div",{on:i,style:"background-color: ".concat(t.value,";margin-left: 10px;"),class:t.value?"color-picker-trigger":"color-picker-trigger color-picker-trigger-empty"})},default:function(){return e("v-color-picker",{props:n({flat:!0},t.fullOptions.colorPickerProps,{},t.fullSchema["x-props"],{value:t.value||""}),on:{input:function(e){t.input(e),t.change()}}})}}})),[e("v-input",{props:n({value:this.value,name:this.fullKey,label:this.label,required:this.required,rules:this.rules,disabled:this.disabled},this.fullOptions.fieldProps)},r)]}}}}},function(e,t,r){"use strict";var i=r(1),n=r.n(i);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.a={data:function(){return{editabledArrayProp:{currentDialog:null,editItem:null,editedItems:{}}}},computed:{isEditableArray:function(){if(this.debug("compute isEditableArray"),"array"===this.resolvedSchema.type&&this.resolvedSchema.items&&"object"===this.resolvedSchema.items.type)return!0},readonlyItemSchema:function(){var e=this;if(this.debug("compute readonlyItemSchema"),this.fullSchema&&this.fullSchema.items){var t=n()(this.fullSchema.items);return t.readOnly=!0,this.itemTitle&&(t.properties&&t.properties[this.itemTitle]&&"object"===u(t.properties[this.itemTitle])&&(t.properties[this.itemTitle]["x-style"]="display: none;"),t.oneOf&&t.oneOf.forEach((function(t){t.properties[e.itemTitle]&&(t.properties[e.itemTitle]["x-style"]="display: none;")})),this.fullSchema.items.allOf&&t.allOf.forEach((function(t){t.properties[e.itemTitle]&&(t.properties[e.itemTitle]["x-style"]="display: none;")}))),t}}},methods:{renderArrayItemModal:function(e,t,r){var i,n=this,o=-1===r;this.editabledArrayProp.currentDialog===r&&(i=this.renderArrayItemEdit(e,r));var l={activator:function(){return n.renderArrayItemEditButton(e,t,r)}},u=function(){i.componentInstance.resetValidation(),n.editabledArrayProp.currentDialog=null},c={};return this.fullOptions.dialogProps.persistent||(c["click:outside"]=u),e("v-dialog",{props:a({},this.fullOptions.dialogProps,{value:this.editabledArrayProp.currentDialog===r,closeOnContentClick:!1}),scopedSlots:l,on:c},[e("v-card",{props:this.fullOptions.dialogCardProps},[e("v-card-title",this.itemTitle&&t[this.itemTitle]),e("v-card-text",[i]),e("v-card-actions",[e("v-spacer"),e("v-btn",{props:{text:!0},on:{click:u},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"--dialog-cancel-button"},class:{"vjsf-array-dialog-cancel-button":!0}},"cancel"),e("v-btn",{props:{color:"primary"},on:{click:function(){if(i.componentInstance.validate(!0)){var e=s(n.value);o?(n.editabledArrayProp.editedItems[n.value.length]=!0,e.push(n.editabledArrayProp.editItem)):(n.editabledArrayProp.editedItems[r]=!0,n.$set(e,r,a({},n.editabledArrayProp.editItem))),n.input(e),n.change(),n.shouldValidate=!0,n.editabledArrayProp.currentDialog=null}}},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"--dialog-ok-button"},class:{"vjsf-array-dialog-ok-button":!0}},"ok")])])])},renderArrayItemRO:function(e,t,r){var i=this,n="item-".concat(r),o={props:{schema:this.readonlyItemSchema,value:t,modelRoot:this.modelRoot||this.value,modelKey:n,parentKey:"".concat(this.fullKey,"."),options:a({},this.fullOptions,{hideReadOnly:!1}),optionsRoot:this.initialOptions,sectionDepth:this.sectionDepth+1,separateValidation:!1},ref:n,scopedSlots:this.childScopedSlots(this.fullSchema.key)};return this.options.autoFixArrayItems&&(o.on={input:function(e){if(!i.editabledArrayProp.editedItems[r]){var t=s(i.value);t[r]=e,i.input(t)}}}),e("v-jsf",o,this.childSlots(e,this.fullSchema.key))},renderArrayItemEditButton:function(e,t,r,i){var o=this,a=-1===r,l=i||a;return e("v-btn",{on:{click:function(){if(a&&"inline"===o.fullOptions.editMode){var e=n()(t),i=s(o.value);i.push(e),o.editabledArrayProp.currentDialog=i.length-1,o.editabledArrayProp.editItem=e,o.input(i),o.change()}else o.editabledArrayProp.currentDialog===r?(o.editabledArrayProp.editItem=null,o.editabledArrayProp.currentDialog=null,o.change()):(o.editabledArrayProp.editItem=n()(t),o.editabledArrayProp.currentDialog=r,"inline"===o.fullOptions.editMode&&o.$nextTick((function(){return o.childrenInputs["item-".concat(r)].validate(!0)})))}},attrs:{id:this.fullOptions.idPrefix+this.dashKey+"-"+(a?"-add":r+"--edit")+"-button"},class:{"vjsf-array-add-button":!0,"ml-3":a},props:{icon:!l,fab:l,small:a,"x-small":i,color:"primary",depressed:i}},[e("v-icon",a?this.fullOptions.icons.add:this.fullOptions.icons.edit)])},renderArrayItemEdit:function(e,t){var r=this,i=a({},this.fullOptions,{autofocus:!0});return this.fullOptions.idPrefix.endsWith("--dialog--")||(i.idPrefix=this.fullOptions.idPrefix+"--dialog--"),e("v-jsf",{props:{schema:this.fullSchema.items,value:this.editabledArrayProp.editItem,modelRoot:this.modelRoot||this.value,modelKey:"item-".concat(t),parentKey:"".concat(this.fullKey,"."),options:i,optionsRoot:this.initialOptions,sectionDepth:this.sectionDepth+1,separateValidation:"inline"!==this.fullOptions.editMode},scopedSlots:this.childScopedSlots(this.fullSchema.key),ref:"item-"+t,on:{error:function(e){return r.$emit("error",e)},input:function(e){if(r.editabledArrayProp.editItem=e,"inline"===r.fullOptions.editMode){var i=s(r.value);r.$set(i,t,e),r.input(i)}},change:function(){"inline"===r.fullOptions.editMode&&r.change()}}},this.childSlots(e,this.fullSchema.key))},renderEditableArray:function(e){var t=this;if(this.isEditableArray){var r=[];if(!this.disabled&&!this.fromUrl&&!this.fullSchema.fromData&&this.fullOptions.arrayOperations.includes("create")){var i=this.fullSchema.items.default||this.defaultValue(this.fullSchema.items);"inline"===this.fullOptions.editMode?r.push(this.renderArrayItemEditButton(e,i,-1)):r.push(this.renderArrayItemModal(e,i,-1))}var n,s=e("v-input",{class:"mt-2 pr-1",props:{label:this.label,rules:this.rules,value:this.value,validateOnBlur:!this.shouldValidate,hideDetails:"auto"}},r);if(this.value&&this.value.length){var o=this.value.filter((function(e){return!!e})).map((function(r,i){var n,o,l="inline"===t.fullOptions.editMode&&t.editabledArrayProp.currentDialog===i;!t.disabled&&t.fullOptions.arrayOperations.includes("update")&&(n="inline"===t.fullOptions.editMode?t.renderArrayItemEditButton(e,r,i,l):t.renderArrayItemModal(e,r,i)),t.disabled||t.fromUrl||t.fullSchema.fromData||!t.fullOptions.arrayOperations.includes("delete")||(o=e("v-btn",{props:{icon:!0,color:"warning",disabled:l},attrs:{id:t.fullOptions.idPrefix+t.dashKey+"-"+i+"--delete-button"},class:{"vjsf-array-delete-button":!0},on:{click:function(){var e=t.value.filter((function(e){return e!==r}));t.input(e),t.change(),t.shouldValidate=!0,s.componentInstance.validate()}}},[e("v-icon",t.fullOptions.icons.delete)]));var u,c,h,f=e("v-card-actions",{class:"pa-0"},[e("v-spacer"),n,o]);l?(u=t.renderArrayItemEdit(e,i),h="item-edit-"+i):(u=t.renderArrayItemRO(e,r,i),h=t.cached("item-key-".concat(i),{item:r},(function(){return t.debug("new RO item key",i),"".concat(i,"-").concat((new Date).getTime())})),t.fullOptions.disableSorting||(c="cursor: move;"));var p="py-2 pr-2 "+t.fullOptions.arrayItemsTitlesClasses[t.sectionDepth]||!1,m=[e("v-card-title",{props:{primaryTitle:!0},class:p},[t.itemTitle&&r[t.itemTitle],e("v-spacer"),f]),e("v-card-text",[u])],d=t.dedupChildrenWithValidatedErrors.includes("item-".concat(i));m=l?[e("v-alert",{props:{color:d?"error":"primary","colored-border":!0,border:"left"},class:"pa-0 pl-2 ma-0"},m)]:d?[e("v-alert",{props:{color:"error",outlined:!0},class:"pa-0 ma-0"},m)]:[e("v-alert",{props:{color:"default",outlined:!0},class:"pa-0 ma-0 vjsf-invisible-alert"},m)];var y=[];return l&&y.push({name:"click-outside",value:{handler:function(){t.editabledArrayProp.currentDialog===i&&"inline"===t.fullOptions.editMode&&(t.editabledArrayProp.editItem=null,t.editabledArrayProp.currentDialog=null,t.change())},include:t.getOpenDependentElements}}),e("v-col",{props:t.fullOptions.arrayItemColProps,class:"pa-2",key:h},[e("v-card",{props:a({},t.fullOptions.arrayItemCardProps),style:c,directives:y},m)])}));n=this.fullOptions.disableSorting?e("v-row",{class:"pt-2"},o):e("draggable",{props:{value:this.value},class:"row pt-2",on:{input:function(e){t.editabledArrayProp.editItem=null,t.editabledArrayProp.currentDialog=null,t.input(e),t.change(),t.shouldValidate=!0}}},o)}return[s,n]}}}}},function(e,t,r){"use strict";(function(e){function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={computed:{isMarkdownProp:function(){if(this.fullSchema)return"markdown"===this.fullSchema["x-display"]}},methods:{renderMarkdownProp:function(e){var t=this;if(this.isMarkdownProp){var r=[this.renderTooltip(e,"append")];return this.disabled?r.push(e("v-card",{props:{flat:!0},class:"px-0"},[e("v-card-text",{domProps:{innerHTML:this.fullOptions.markdown(this.value)},class:"px-0 py-1"})])):(r.push(e("v-card",{props:{outlined:!0}},[e("textarea",{attrs:{id:"".concat(this.fullOptions.idPrefix).concat(this.dashKey,"--easymde")}})])),this.$nextTick((function(){return t.initEasyMDE()}))),[e("v-input",{props:i({value:this.value,name:this.fullKey,label:this.label,required:this.required,rules:this.rules,disabled:this.disabled},this.fullOptions.fieldProps),class:"vjsf-markdown-input"},r)]}},initEasyMDE:function(){var t=this;if(!this.easymde)if(e.EasyMDE){var r=e.EasyMDE,i={element:this.$el.querySelector("textarea"),initialValue:this.value,renderingConfig:{},status:!1,autoDownloadFontAwesome:!1,spellChecker:!1,minHeight:"300px",insertTexts:{link:[this.fullOptions.messages.mdeLink1,this.fullOptions.messages.mdeLink2],image:[this.fullOptions.messages.mdeImg1,this.fullOptions.messages.mdeImg2],table:[this.fullOptions.messages.mdeTable1,this.fullOptions.messages.mdeTable2],horizontalRule:["","\n\n-----\n\n"]},toolbar:[{name:"bold",action:r.toggleBold,className:"mdi mdi-format-bold",title:this.fullOptions.messages.bold},{name:"italic",action:r.toggleItalic,className:"mdi mdi-format-italic",title:this.fullOptions.messages.italic},{name:"heading",action:r.toggleHeadingSmaller,className:"mdi mdi-format-title",title:this.fullOptions.messages.heading},"|",{name:"quote",action:r.toggleBlockquote,className:"mdi mdi-format-quote-open",title:this.fullOptions.messages.quote},{name:"unordered-list",action:r.toggleUnorderedList,className:"mdi mdi-format-list-bulleted",title:this.fullOptions.messages.unorderedList},{name:"ordered-list",action:r.toggleOrderedList,className:"mdi mdi-format-list-numbered",title:this.fullOptions.messages.orderedList},"|",{name:"link",action:r.drawLink,className:"mdi mdi-link",title:this.fullOptions.messages.createLink},{name:"image",action:r.drawImage,className:"mdi mdi-image",title:this.fullOptions.messages.insertImage},{name:"table",action:r.drawTable,className:"mdi mdi-table",title:this.fullOptions.messages.createTable},"|",{name:"preview",action:r.togglePreview,className:"mdi mdi-eye accent--text",title:this.fullOptions.messages.preview,noDisable:!0},"|",{name:"undo",action:r.undo,className:"mdi mdi-undo",title:this.fullOptions.messages.undo,noDisable:!0},{name:"redo",action:r.redo,className:"mdi mdi-redo",title:this.fullOptions.messages.redo,noDisable:!0},"|",{name:"guide",action:"https://simplemde.com/markdown-guide",className:"mdi mdi-help-circle success--text",title:this.fullOptions.messages.mdeGuide,noDisable:!0}]};this.easymde=new r(i);var n=!1;this.easymde.codemirror.on("change",(function(){n=!0,t.input(t.easymde.value())})),this.easymde.codemirror.on("blur",(function(){t.blurTimeout=setTimeout((function(){n&&t.change(),n=!1}),500)})),this.easymde.codemirror.on("focus",(function(){clearTimeout(t.blurTimeout)}))}else console.error("VJSF requires EasyMDE to be available to handle the markdown format.")}}}}).call(this,r(5))},function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.a={data:function(){return{tooltip:{maxWidth:200}}},mounted:function(){this.htmlDescription&&this.$el&&this.$el.getBoundingClientRect&&(this.tooltip.maxWidth=this.$el.getBoundingClientRect().left-80)},methods:{renderTooltip:function(e,t){var r=this;if(this.htmlDescription&&!this.fullOptions.hideTooltips)return e("v-tooltip",{slot:t,props:n({contentClass:"vjsf-tooltip"},this.fullOptions.tooltipProps),scopedSlots:{activator:function(t){var i=t.on,n=t.attrs;return r.fullOptions.tooltipProps.openOnClick&&delete i.focus,e("v-btn",{on:i,attrs:n,props:{icon:!0,retainFocusOnClick:!0},style:"pointer-events: auto"},[e("v-icon",{},r.fullOptions.icons.info)])}}},[e("div",{style:"max-width: ".concat(this.tooltip.maxWidth,"px"),domProps:{innerHTML:this.htmlDescription}})])}}}},function(e,t,r){"use strict";var i=r(0);t.a={inject:["form"],provide:function(){return{form:{register:this.register,unregister:this.unregister,fastForwardEvent:this.fastForwardEvent}}},props:{separateValidation:{type:Boolean,default:!1}},data:function(){return{inputs:[],validated:!1,shouldValidate:!1,dedupChildrenWithValidatedErrors:[]}},computed:{childrenInputs:function(){return this.debug("compute childrenInputs"),this.inputs.reduce((function(e,t,r){return e[t.modelKey||r]=t,e}),{})},hasError:function(){return this.debug("compute hasError"),!!this.inputs.find((function(e){return e.hasError}))||!!this.localRuleError},hasValidatedError:function(){return this.debug("compute hasValidatedError"),!!this.inputs.find((function(e){return e.hasValidatedError||e.hasError&&(e.validated||e.shouldValidate)}))||this.localRuleError&&(this.validated||this.shouldValidate)},childrenWithValidatedErrors:function(){var e=this;return this.debug("compute childrenWithValidatedErrors"),Object.keys(this.childrenInputs).filter((function(t){return!!e.childrenInputs[t].hasValidatedError}))},localRuleError:function(){var e=this;if(!this.validated||!this.rules||!this.rules.length)return!1;var t=this.rules.find((function(t){return"string"==typeof t(e.value)}));return t&&t(this.value)}},watch:{childrenWithValidatedErrors:function(){var e=this;this.$nextTick((function(){Object(i.deepEqual)(e.childrenWithValidatedErrors,e.dedupChildrenWithValidatedErrors)||(e.debug("set dedupChildrenWithValidatedErrors",JSON.stringify(e.childrenWithValidatedErrors)),e.dedupChildrenWithValidatedErrors=e.childrenWithValidatedErrors)}))}},created:function(){this.separateValidation||this.form&&this.form.register(this)},beforeDestroy:function(){this.separateValidation||this.form&&this.form.unregister(this)},methods:{register:function(e){this.debug("register",e.modelKey),this.validated&&e.validate(!0),this.inputs.push(e)},unregister:function(e){this.debug("unregister",e.modelKey),this.inputs=this.inputs.filter((function(t){return t._uid!==e._uid}))},validate:function(e){this.validated=!0;var t=this.inputs.map((function(t,r){return{valid:t.validate(e),key:t.modelKey||r}}));return this.debug("validate children inputs",t),!t.find((function(e){return!e.valid}))},reset:function(){this.inputs.forEach((function(e){return e.reset()}))},resetValidation:function(){this.shouldValidate=!1,this.validated=!1,this.inputs.forEach((function(e){return e.resetValidation()}))},initValidation:function(){var e=this.fullOptions.initialValidation;"all"!==e||this.modelRoot||this.validate(!0),"defined"===e&&this.initiallyDefined&&!this.isObjectContainer&&this.validate(!0)},fastForwardEvent:function(e,t){"root"===this.fullKey?this.$emit(e,t):this.form.fastForwardEvent(e,t)}}}},function(e,t,r){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.a={name:"dependent",data:function(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive:function(e){if(!e)for(var t=this.getOpenDependents(),r=0;r<t.length;r++)t[r].isActive=!1}},methods:{getOpenDependents:function(){return this.closeDependents?function e(t){for(var r=[],n=0;n<t.length;n++){var s=t[n];s.isActive&&s.isDependent?r.push(s):r.push.apply(r,i(e(s.$children)))}return r}(this.$children):[]},getOpenDependentElements:function(){for(var e=[],t=this.getOpenDependents(),r=0;r<t.length;r++)e.push.apply(e,i(t[r].getClickableDependentElements()));return e},getClickableDependentElements:function(){var e=[this.$el];return this.$refs.content&&e.push(this.$refs.content),this.overlay&&e.push(this.overlay.$el),e.push.apply(e,i(this.getOpenDependentElements())),e}}}},function(e,t,r){"use strict";var i=r(0);function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a={},l=a;a.getSelectItems=function(e,t,r,i){var n=[];if(e)if("object"===t.type&&t.properties&&Object.keys(t.properties).length||"array"===t.type&&t.items&&"object"===t.items.type&&t.items.properties&&Object.keys(t.items.properties).length){var a=t.properties?t.properties.map((function(e){return e.key})):Object.keys(t.items.properties);e.forEach((function(e){var r={};a.forEach((function(i){void 0!==e[i]&&(r[i]=e[i],"string"===(t.properties?t.properties.find((function(e){return e.key===i})):t.items.properties[i]).type&&(r[i]=""+r[i]))})),n.push(r)}))}else e.forEach((function(e){if("object"===o(e))n.push(e);else{var t=s({},r,e);i&&(t[i]=e),n.push(t)}}));else;return n};var u=function(e,t,r){return![null,void 0].includes(e)&&(![null,void 0].includes(t)&&Object(i.deepEqual)(e[r],t[r]))};function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}a.fillSelectItems=function(e,t,r,i,n){if(t)if("array"===e.type)t.map((function(e){return e})).reverse().forEach((function(e){var t=n?e:s({},i,e);r.find((function(e){return u(e,t,i)}))||r.push(t)}));else{var o=n?t:s({},i,t);r.find((function(e){return u(e,o,i)}))||r.push(o)}},a.fillList=function(e,t,r,i){if(t)return r.length?(t=n(t),r.forEach((function(e){t.find((function(t){return u(e,t,i)}))||t.push(e)})),t.forEach((function(e,n){r.find((function(t){return u(t,e,i)}))||(t[n]=null)})),t.filter((function(e){return!!e}))):[]};var m=r(20),d=r(21);t.a={data:function(){return{rawSelectItems:null,selectItems:[],q:"",fromUrlParams:{}}},computed:{isSelectProp:function(){if(this.fullSchema)return"list"!==this.display&&(!!this.fullSchema.enum||(!("array"!==this.fullSchema.type||!this.fullSchema.items||!this.fullSchema.items.enum)||(!!this.oneOfSelect||(!!this.examplesSelect||(!!this.fromUrl||!!this.fromData)))))},oneOfSelect:function(){if(this.fullSchema)return!("array"!==this.fullSchema.type||!this.fullSchema.items||!["string","integer","number"].includes(this.fullSchema.items.type)||!this.fullSchema.items.oneOf&&!this.fullSchema.items.anyOf)||(!!(["string","integer","number"].includes(this.fullSchema.type)&&this.fullSchema.oneOf&&this.fullSchema.oneOf[0]&&void 0!==this.fullSchema.oneOf[0].const)||!!(["string","integer","number"].includes(this.fullSchema.type)&&this.fullSchema.anyOf&&this.fullSchema.anyOf[0]&&void 0!==this.fullSchema.anyOf[0].const))},examplesSelect:function(){if(this.fullSchema)return!!("array"===this.fullSchema.type&&this.fullSchema.items&&["string","integer","number"].includes(this.fullSchema.items.type)&&this.fullSchema.items.examples)||!(!["string","integer","number"].includes(this.fullSchema.type)||!this.fullSchema.examples)},fromUrl:function(){if(this.fullSchema)return this.fullSchema["x-fromUrl"]},fromUrlWithQuery:function(){if(this.fullSchema)return!(!this.fullSchema["x-fromUrl"]||-1===this.fullSchema["x-fromUrl"].indexOf("{q}"))},fromUrlKeys:function(){if(this.fullSchema)return this.fullSchema["x-fromUrl"]?m(this.fullSchema["x-fromUrl"],/\{(.*?)\}/g).toArray().filter((function(e){return"q"!==e})):null},fromData:function(){if(this.fullSchema)return this.fullSchema["x-fromData"]},itemKey:function(){if(this.fullSchema)return this.fullSchema["x-itemKey"]||"key"},itemTitle:function(){if(this.fullSchema)return this.fullSchema["x-itemTitle"]||"title"},itemIcon:function(){if(this.fullSchema)return this.fullSchema["x-itemIcon"]||("icon"===this.display?this.itemKey:null)},returnObject:function(){if(this.fullSchema)return"object"===this.fullSchema.type||this.fullSchema.items&&"object"===this.fullSchema.items.type}},watch:{q:function(){this.value&&this.value[this.itemTitle]===this.q||this.fetchSelectItems()},rawSelectItems:{handler:function(){this.updateSelectItems()}}},methods:{initSelectProp:function(e){var t=this;if(this.fromUrlWithQuery&&e&&void 0!==e[this.itemTitle]&&(this.q=e[this.itemTitle]),this.fromUrl&&(this.fetchSelectItems(),this.openEndedSelect="v-combobox"===this.customTag||"combobox"===this.fullSchema["x-display"]),("array"===this.fullSchema.type&&this.fullSchema.items&&this.fullSchema.items.enum||this.fullSchema.enum)&&(this.rawSelectItems="array"===this.fullSchema.type?this.fullSchema.items.enum:this.fullSchema.enum),this.oneOfSelect){var r="array"===this.fullSchema.type?this.fullSchema.items:this.fullSchema,i=r.anyOf||r.oneOf;this.openEndedSelect=r.anyOf&&!!r.anyOf.find((function(e){return!e.const&&!e.enum})),this.rawSelectItems=i.filter((function(e){return!e["x-if"]||!!t.getFromExpr(e["x-if"])})).filter((function(e){return!!e.const||!!e.enum})).map((function(e){var r;return f({},e,(p(r={},t.itemKey,e.const||e.enum&&e.enum[0]),p(r,t.itemTitle,e.title),r))}))}if(this.examplesSelect){var n="array"===this.fullSchema.type&&this.fullSchema.items.examples||this.fullSchema.examples;this.openEndedSelect=!0,this.rawSelectItems=n.map((function(e){var r;return p(r={},t.itemKey,e),p(r,t.itemTitle,e),r}))}this.fullSchema["x-fromData"]&&(this.openEndedSelect="v-combobox"===this.customTag||"combobox"===this.fullSchema["x-display"],this.$watch((function(){return t.getFromExpr(t.fullSchema["x-fromData"])}),(function(e){t.rawSelectItems=e}),{immediate:!0})),this.fromUrlKeys&&this.fromUrlKeys.forEach((function(e){t.$watch((function(){return t.getFromExpr(e)}),(function(r){t.fromUrlParams[e]=r,t.fetchSelectItems()}),{immediate:!0})}))},fetchSelectItems:function(){var e=this;if(!this.fullOptions.httpLib)return console.error("No http lib found to perform ajax request"),this.$emit("error","No http lib found to perform ajax request");this.debouncedFetch=this.debouncedFetch||d((function(){var t=e.fullSchema["x-fromUrl"].replace("{q}",encodeURIComponent(e.q||"")),r=!0,i=!1,n=void 0;try{for(var s,o=e.fromUrlKeys[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var a=s.value;if(void 0===e.fromUrlParams[a])return;t=t.replace("{".concat(a,"}"),e.fromUrlParams[a])}}catch(e){i=!0,n=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw n}}e.loading=!0,e.fullOptions.httpLib.get(t,e.fullOptions.httpOptions).then((function(r){var i=r.data||r.body,n=e.fullSchema["x-itemsProp"]?i[e.fullSchema["x-itemsProp"]]:i;if(!Array.isArray(n))throw new Error("Result of http fetch ".concat(t," is not an array"));e.rawSelectItems=n,e.loading=!1})).catch((function(t){console.error(t),e.$emit("error",t.message),e.loading=!1}))}),250),this.debouncedFetch()},updateSelectItems:function(){var e=l.getSelectItems(this.rawSelectItems,this.fullSchema,this.itemKey,this.itemIcon);"list"===this.display&&this.rawSelectItems&&this.input(l.fillList(this.fullSchema,this.value,e,this.itemKey)),l.fillSelectItems(this.fullSchema,this.value,e,this.itemKey,this.returnObject),Object(i.deepEqual)(e,this.selectItems)||(this.selectItems=e)},renderSelectIcon:function(e,t){if(this.itemIcon){var r=t[this.itemIcon];if(r){var i=e("v-icon",null,r);return r.startsWith("http://")||r.startsWith("https://")?i=e("img",{domProps:{src:r},style:"height:100%;width:100%;"}):(r.startsWith("<?xml")||r.startsWith("<svg"))&&(i=e("div",{domProps:{innerHTML:r}})),e("v-avatar",{props:{tile:!0,size:20},class:"mr-2"},[i])}}},renderSelectCheckbox:function(e,t){if("array"===this.fullSchema.type&&!this.itemIcon)return e("v-list-item-action",[e("v-checkbox",{props:{inputValue:t}})])},renderSelectItem:function(e,t){return e("v-list-item-content",[e("v-list-item-title",t[this.itemTitle]||t[this.itemKey])])},renderSelectionControlItem:function(e,t){var r=this,i={change:function(e){r.input(e),r.change()}},n={label:t[this.itemTitle]||t[this.itemKey],value:t[this.itemKey],inputValue:this.separator&&"string"==typeof this.value?this.value.split(this.separator):this.value,multiple:"array"===this.fullSchema.type||!!this.separator,hideDetails:!0};return e("v-".concat(this.display),{props:n,on:i,class:"pb-1"})},renderSelectionControlGroup:function(e){var t=this,r={change:function(e){t.input(e),t.change()}},i=f({},this.commonFieldProps,{multiple:"array"===this.fullSchema.type||!!this.separator,label:null}),n=e("legend",{class:"v-label theme--".concat(this.theme.isDark?"dark":"light"," ").concat(this.hasError?"error--text":"")},this.commonFieldProps.label),s=this.selectItems.map((function(r){return t.renderSelectionControlItem(e,r)}));return[e("v-input",{props:i,on:r,class:"v-input--selection-controls v-input--radio-group v-input--radio-group--column"},[e("div",{class:"v-input--radio-group__input"},[n].concat(c(s))),this.renderTooltip(e,"append")])]},renderRadioItem:function(e,t){var r=t[this.itemTitle]||t[this.itemKey],i=t[this.itemKey];return e("v-radio",{props:f({},this.fullOptions.radioItemProps,{label:r,value:i})})},renderRadioGroup:function(e){var t=this,r=f({},this.commonFieldProps,{},this.fullOptions.radioGroupProps);return[e("v-radio-group",{props:r,on:{change:function(e){t.input(e),t.change()}}},[].concat(c(this.selectItems.map((function(r){return t.renderRadioItem(e,r)}))),[this.renderTooltip(e,"append")]))]},renderSelectProp:function(e){var t=this;if(this.isSelectProp){if("radio"===this.display){if("array"!==this.fullSchema.type&&!this.separator)return this.renderRadioGroup(e);console.error("radio display is not available for arrays, use checkbox or switch")}if(["checkbox","switch"].includes(this.display))return this.renderSelectionControlGroup(e);var r={input:function(e){return t.input(e)},change:function(e){return t.change()}},i={selection:function(r){var i,n;t.openEndedSelect?(i=(t.selectItems||[]).find((function(e){return e[t.itemKey]===r.item})))||(p(n={},t.itemKey,r.item),p(n,t.itemTitle,r.item),i=n):i=r.item;var s=i[t.itemTitle]||i[t.itemKey];return"array"===t.fullSchema.type&&r.index!==t.value.length-1&&(s+=", "),t.separator&&t.commonFieldProps.value&&r.index!==t.commonFieldProps.value.length-1&&(s+=", "),e("div",{class:{"v-select__selection":!0,"v-select__selection--comma":!0,"v-select__selection--disabled":t.disabled}},[t.renderSelectIcon(e,i),e("span",{domProps:{innerHTML:s},class:"mt-1"})])},item:function(r){return[t.renderSelectIcon(e,r.item),t.renderSelectCheckbox(e,r.attrs.inputValue),t.renderSelectItem(e,r.item)]}},n="v-select",s=f({},this.commonFieldProps,{},this.fullOptions.selectProps,{validateOnBlur:!0,clearable:!this.required,multiple:"array"===this.fullSchema.type||!!this.separator,itemValue:this.itemKey,itemText:this.itemTitle,items:this.selectItems||[],returnObject:!!this.returnObject,loading:this.loading});(this.fromUrlWithQuery||this.rawSelectItems&&this.rawSelectItems.length>20)&&(n="v-autocomplete",s.noDataText=this.fullOptions.messages.noData,s.placeholder=this.fullOptions.messages.search,this.fromUrlWithQuery?(s.filter=function(){return!0},s.searchInput=this.q,r["update:search-input"]=function(e){t.q=e}):s.filter=function(e,r){return(e[t.itemTitle]||e[t.itemKey]).toLowerCase().includes(r.toLowerCase())}),this.openEndedSelect&&(n="v-combobox"),n=this.customTag?this.customTag:n;var o=c(this.renderPropSlots(e));if("v-select"===n&&s.multiple&&this.fullOptions.selectAll){var a=s.items.length===this.value.length;o.push(e("template",{slot:"prepend-item"},[e("v-list-item",[e("v-list-item-action",[e("v-checkbox",{props:{value:a},on:{click:function(){a?t.input([]):t.input(s.items.map((function(e){return t.returnObject?e:e[t.itemKey]}))),t.change()}}})]),e("v-list-item-content",[e("v-list-item-title",this.fullOptions.messages.selectAll)])]),e("v-divider")]))}return this.htmlDescription&&o.push(this.renderTooltip(e,"append-outer")),[e(n,{props:s,on:r,scopedSlots:i},o)]}}}}},function(e,t,r){"use strict";r.r(t),function(e){var i=r(1),n=r.n(i),s=r(0),o=r(7),a=r(3),l=r(2),u=r(4),c=r(8),h=r(9),f=r(10),p=r(11),m=r(12),d=r(18),y=r(13),v=r(14),b=r(15),g=r(16),O=r(17);function S(e,t,r){return(S=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var n=new(Function.bind.apply(e,i));return r&&x(n,r.prototype),n}).apply(null,arguments)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],i=!0,n=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,s=e}finally{try{i||null==a.return||a.return()}finally{if(n)throw s}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=r(6),D=e.navigator&&e.navigator.cookieEnabled&&e.localStorage&&e.localStorage.debug,M={};t.default={name:"VJsf",mixins:[c.a,f.a,h.a,m.a,d.a,p.a,y.a,v.a,b.a,g.a,O.a],inject:["theme"],props:{schema:{type:Object,required:!0},value:{required:!0},options:{type:Object},optionsRoot:{type:Object},modelRoot:{type:[Object,Array,String,Number,Boolean]},modelKey:{type:[String,Number],default:"root"},parentKey:{type:String,default:""},required:{type:Boolean,default:!1},sectionDepth:{type:Number,default:0}},data:function(){return{loading:!1,fullSchema:null}},computed:{initialOptions:function(){return"root"===this.fullKey?this.options||{}:this.optionsRoot},fullOptions:function(){var t=this;this.debug("compute fullOptions");var r="undefined"!=typeof window&&window||void 0!==e&&e||{},i=Object.assign({},l.a,this.options||{},this.resolvedSchema["x-options"]||{});if(i.markdown=i.markdown||r.markdownit&&function(e){return e?r.markdownit(i.markdownit).render(e):""}||function(e){return e||""},i.memMarkdown=i.memMarkdown||function(e){t._vjsf_markdown=t._vjsf_markdown||{};var r=e+"";return t._vjsf_markdown[r]=t._vjsf_markdown[r]||i.markdown(e),t._vjsf_markdown[r]},i.httpLib=i.httpLib||this.axios||this.$http||this.$axios||r.axios,!i.validator){var n=i.ajvLocalize||r.ajvLocalize,s=i.ajvAddFormats||r.ajvAddFormats,o=!!n&&i.locale&&n[i.locale],a=i.ajv;if(!a){var u=i.Ajv||r.Ajv||r.ajv7&&r.ajv7.default||r.ajv2019&&r.ajv2019.default;u&&(a=new u(o?{allErrors:!0,messages:!1,strict:!1}:{strict:!1}),s&&s(a),a.addFormat("hexcolor",/^#[0-9A-Fa-f]{6,8}$/))}a&&(i.validator=function(e){var t=a.compile(e);return function(e){if(!t(e))return o&&n[i.locale](t.errors),a.errorsText(t.errors,{dataVar:""})}})}var c=this.$vuetify.icons&&this.$vuetify.icons.iconfont||"mdi";if(!i.defaultIcons){for(var h={},f=0,p=Object.entries(this.$vuetify.icons.values);f<p.length;f++){var m=w(p[f],2),d=m[0],y=m[1];h[d]=y.props?y.props.name:y}i.defaultIcons=I({},l.c[c],{},h),i.icons=I({},i.defaultIcons,{},i.icons)}return i.messages=I({},l.d[i.locale]||l.d.en,{},i.messages),i.formats=I({},l.b,{},i.formats),i.deleteReadOnly&&(i.hideReadOnly=!0),i},resolvedSchema:function(){return"root"===this.modelKey?(this.debug("compute resolvedSchema"),o.a.resolve(this.schema,{"~$locale~":this.options&&this.options.locale||"en"})):this.schema},htmlDescription:function(){return this.debug("compute htmlDescription"),this.fullOptions.markdown(this.fullSchema&&this.fullSchema.description)},fullKey:function(){return(this.parentKey+this.modelKey).replace("root.","")},label:function(){if(this.fullSchema)return this.fullSchema.title||("string"==typeof this.modelKey?this.modelKey:"")},display:function(){if(this.fullSchema)return"root"===this.modelKey&&this.fullOptions.rootDisplay?this.fullOptions.rootDisplay:this.fullSchema["x-display"]},customTag:function(){if(this.fullSchema)return this.fullSchema["x-tag"]},rules:function(){if(this.debug("compute rules"),this.fullSchema)return Object(u.a)(this.schema,this.fullSchema,this.fullOptions,this.required,this.isOneOfSelect)},disabled:function(){if(this.fullSchema)return this.fullOptions.disableAll||this.fullSchema.readOnly},separator:function(){if(this.fullSchema||"string"===this.fullSchema.type)return this.fullSchema.separator||this.fullSchema["x-separator"]},slotName:function(){if(this.fullSchema)return this.fullSchema["x-display"]&&this.fullSchema["x-display"].startsWith("custom-")?this.fullSchema["x-display"]:this.fullKey},slotParams:function(){var e=this;if(this.debug("compute slotParams"),this.fullSchema)return{value:this.value,modelKey:this.modelKey,schema:this.schema,fullKey:this.fullKey,fullSchema:this.fullSchema,label:this.label,disabled:this.disabled,required:this.required,rules:this.rules,options:this.fullOptions,htmlDescription:this.htmlDescription,on:{input:function(t){return e.input(t instanceof Event?t.target.value:t)},change:function(){return e.change()}}}},dashKey:function(){return this.fullKey.replace(/\./g,"-")},commonFieldProps:function(){if(this.debug("compute commonFieldProps"),this.fullSchema){var e=this.separator&&"string"==typeof this.value?this.value.split(this.separator):this.value;return I({value:e,inputValue:e,label:this.label,name:this.fullKey,id:this.fullOptions.idPrefix+this.dashKey,disabled:this.disabled,rules:this.rules,required:this.required,autofocus:this.fullOptions.autofocus},this.fullSchema.readOnly?this.fullOptions.readOnlyFieldProps:{},{},this.fullOptions.fieldProps,{},this.fullSchema["x-props"])}},propertyClass:function(){if(this.fullSchema)return"vjsf-property vjsf-property-".concat(this.dashKey," pa-0 ").concat(this.fullSchema["x-class"]||""," ").concat(this.fullSchema.readOnly?"read-only":"").replace(/ {2}/g," ").trim()},xSlots:function(){if(this.fullSchema)return I({},this.fullSchema["x-slots"])},formattedValue:function(){if(this.fullSchema)return this.value&&this.fullSchema.format&&this.fullOptions.formats[this.fullSchema.format]&&this.fullOptions.formats[this.fullSchema.format](this.value,this.fullOptions.locale)}},watch:{fullSchema:{handler:function(){this.fullSchema&&(this.initFromSchema(),this.initValidation(),this.updateSelectItems())}}},mounted:function(){var e=this;M[this.fullKey]=(M[this.fullKey]||0)+1,this.debug("mounted",M[this.fullKey]);var t="resolvedSchema";(this.resolvedSchema.dependencies||this.resolvedSchema.if)&&(t=function(e){return[e.resolvedSchema,e.value]}),this.$watch(t,(function(){var t=a.a.prepareFullSchema(e.resolvedSchema,e.value,e.fullOptions);Object(s.deepEqual)(t,e.fullSchema)?e.debug("fullSchema no change detected"):(e.debug("fullSchema changed"),e.fullSchema=t)}),{immediate:!0,deep:!0})},render:function(e){if(this.renderInc=(this.renderInc||0)+1,this.debug("render",this.renderInc),!(!this.fullSchema||void 0!==this.fullSchema.const||"hidden"===this.display||this.fullSchema.readOnly&&this.fullOptions.hideReadOnly)&&(!this.fullSchema["x-if"]||this.getFromExpr(this.fullSchema["x-if"]))){var t=[];if(this.$scopedSlots.before?t.push(this.$scopedSlots.before(this.slotParams)):this.$slots.before?this.$slots.before.forEach((function(e){return t.push(e)})):this.xSlots.before&&t.push(e("div",{domProps:{innerHTML:this.fullOptions.memMarkdown(this.xSlots.before)}})),this.$scopedSlots.default)t.push(this.$scopedSlots.default(this.slotParams));else if(this.fullSchema["x-display"]&&this.fullSchema["x-display"]&&this.$scopedSlots[this.fullSchema["x-display"]])t.push(this.$scopedSlots[this.fullSchema["x-display"]](this.slotParams));else{(this.renderDateProp(e)||this.renderColorProp(e)||this.renderSelectProp(e)||this.renderFileProp(e)||this.renderMarkdownProp(e)||this.renderSimpleProp(e)||this.renderObjectContainer(e)||this.renderEditableArray(e)||[]).forEach((function(e){return t.push(e)}))}this.$scopedSlots.after?t.push(this.$scopedSlots.after(this.slotParams)):this.$slots.after?this.$slots.after.forEach((function(e){return t.push(e)})):this.xSlots.after&&t.push(e("div",{domProps:{innerHTML:this.fullOptions.memMarkdown(this.xSlots.after)}}));var r=I({},this.fullOptions.fieldColProps);return this.fullSchema["x-cols"]&&("object"===P(this.fullSchema["x-cols"])?r=I({},r,{},this.fullSchema["x-cols"]):r.cols=this.fullSchema["x-cols"]),e("v-col",{props:r,class:this.propertyClass,style:this.fullSchema["x-style"]||""},t)}},methods:{debug:function(e,t){"*"!==D&&D!==this.fullKey||console.log("[".concat(this.fullKey,"] ").concat(e),t||"")},cached:function(e,t,r){return this._vjsf_cache=this._vjsf_cache||{},this._vjsf_cache[e]&&Object(s.deepEqual)(this._vjsf_cache[e].params,t)||(this._vjsf_cache[e]={params:n()(t),value:r()}),this._vjsf_cache[e].value},getFromExpr:function(e){var t,r={modelRoot:this.modelRoot,root:this.modelRoot,model:this.value,value:this.value,context:this.options.context};return this._vjsf_getters=this._vjsf_getters||{},"newFunction"===this.initialOptions.evalMethod?(this._vjsf_getters[e]=this._vjsf_getters[e]||S(Function,j(Object.keys(r)).concat(["return ".concat(e)])),(t=this._vjsf_getters)[e].apply(t,j(Object.values(r)))):(e=this.prefixExpr(e),this._vjsf_getters[e]=this._vjsf_getters[e]||A.getter(e,!0),this._vjsf_getters[e](r))},prefixExpr:function(e){return e.startsWith("context.")||e.startsWith("model.")||e.startsWith("value.")||e.startsWith("modelRoot.")||e.startsWith("root.")?e:this.modelRoot?"root."+e:"model."+e},renderPropSlots:function(e){var t=this,r=[];return Object.keys(this.xSlots).forEach((function(i){r.push(e("div",{slot:i,domProps:{innerHTML:t.fullOptions.memMarkdown(t.xSlots[i])}}))})),Object.keys(this.$slots).forEach((function(i){r.push(e("template",{slot:i},t.$slots[i]))})),r},change:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.changed&&this.$nextTick((function(){e.updateSelectItems(),t&&e.fastForwardEvent("change-child",{fullKey:e.fullKey,value:e.value}),e.$emit("change",e.value),e.changed=!1}))},input:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Array.isArray(e)&&this.separator&&(e=e.join(this.separator)),null==e||""===e?this.fullSchema.nullable?null!==this.value?(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:null,oldValue:this.value}),this.$emit("input",null)):t&&(r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:null,oldValue:this.value}),this.$emit("input",null)):void 0!==this.value&&(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:void 0,oldValue:this.value}),this.$emit("input",void 0)):Object(s.deepEqual)(e,this.value)||(this.changed=!0,r&&this.fastForwardEvent("input-child",{fullKey:this.fullKey,value:e,oldValue:this.value}),this.$emit("input",e))},fixValueType:function(e,t){return[null,void 0].includes(e)?e:"string"===t.type&&"string"!=typeof e||"integer"===t.type&&"number"!=typeof e||"number"===t.type&&"number"!=typeof e||"boolean"===t.type&&"boolean"!=typeof e||"array"===t.type&&!Array.isArray(e)||"object"===t.type&&("object"!==P(e)||Array.isArray(e))?void 0:e},defaultValue:function(e){if(!e.readOnly||!this.fullOptions.deleteReadOnly)return"object"!==e.type||e["x-fromUrl"]||e["x-fromData"]||e.enum?"array"===e.type?[]:null:{}},fixProperties:function(e){var t=this;return this.debug("fixProperties"),"object"===this.fullSchema.type&&e&&(this.fullSchema.properties&&this.fullSchema.properties.length||Object.keys(this.subModels).length&&!this.fullSchema["x-fromData"]&&!this.fullSchema["x-fromUrl"])?(e=I({},e),(this.fullOptions.removeAdditionalProperties||!1===this.fullSchema.additionalProperties)&&Object.keys(e).forEach((function(r){(t.fullSchema.properties||[]).find((function(e){return e.key===r}))||delete e[r]})),Object.keys(this.subModels).forEach((function(r){Object.keys(t.subModels[r]).forEach((function(i){var n=t.fullSchema.properties.find((function(e){return e.key===i}));n&&n.const||e[i]!==t.subModels[r][i]&&(e[i]=t.subModels[r][i])}))})),e):e},initFromSchema:function(){if(this.debug("initFromSchema"),this.initiallyDefined=void 0!==this.value&&null!==this.value,"array"===this.fullSchema.type&&(this.initiallyDefined=!(!this.value||!this.value.length)),"object"===this.fullSchema.type&&(this.initiallyDefined=!(!this.value||!Object.keys(this.value).length)),this.fullSchema.readOnly&&this.fullOptions.deleteReadOnly)return this.input(void 0);var e=this.value;return"object"===this.fullSchema.type&&[void 0,null].includes(e)&&!this.isSelectProp&&(e={}),void 0!==this.fullSchema.const&&(e=this.fullSchema.const),this.initSelectProp(e),this.initObjectContainer(e),"array"===this.fullSchema.type&&(e=this.value.filter((function(e){return![void 0,null].includes(e)}))),this.input(this.fixProperties(e),!0)}}}}.call(this,r(5))},function(e,t,r){"use strict";e.exports=function(e,t){return{input:e,regex:t,next:function(){var e=this.nextRaw();if(e)for(var t=1;t<e.length;t++)if(e[t])return e[t];return null},nextRaw:function(){return this.regex.exec(this.input)},toArray:function(){for(var e=[],t=null;t=this.next();)e.push(t);return e},reset:function(e){return this.regex.lastIndex=e||0}}}},function(e,t){function r(e,t,r){var i,n,s,o,a;function l(){var u=Date.now()-o;u<t&&u>=0?i=setTimeout(l,t-u):(i=null,r||(a=e.apply(s,n),s=n=null))}null==t&&(t=100);var u=function(){s=this,n=arguments,o=Date.now();var u=r&&!i;return i||(i=setTimeout(l,t)),u&&(a=e.apply(s,n),s=n=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=e.apply(s,n),s=n=null,clearTimeout(i),i=null)},u}r.debounce=r,e.exports=r}])}));
|
package/lib/VJsfNoDeps.js
CHANGED
|
@@ -159,6 +159,10 @@ export default {
|
|
|
159
159
|
if (!this.fullSchema) return
|
|
160
160
|
return this.fullOptions.disableAll || this.fullSchema.readOnly
|
|
161
161
|
},
|
|
162
|
+
separator() {
|
|
163
|
+
if (!this.fullSchema && this.fullSchema.type !== 'string') return
|
|
164
|
+
return this.fullSchema.separator || this.fullSchema['x-separator']
|
|
165
|
+
},
|
|
162
166
|
slotName() {
|
|
163
167
|
if (!this.fullSchema) return
|
|
164
168
|
return this.fullSchema['x-display'] && this.fullSchema['x-display'].startsWith('custom-') ? this.fullSchema['x-display'] : this.fullKey
|
|
@@ -191,9 +195,10 @@ export default {
|
|
|
191
195
|
commonFieldProps() {
|
|
192
196
|
this.debug('compute commonFieldProps')
|
|
193
197
|
if (!this.fullSchema) return
|
|
198
|
+
const value = this.separator && typeof this.value === 'string' ? this.value.split(this.separator) : this.value
|
|
194
199
|
return {
|
|
195
|
-
value
|
|
196
|
-
inputValue:
|
|
200
|
+
value,
|
|
201
|
+
inputValue: value,
|
|
197
202
|
label: this.label,
|
|
198
203
|
name: this.fullKey,
|
|
199
204
|
id: this.fullOptions.idPrefix + this.dashKey,
|
|
@@ -380,6 +385,7 @@ export default {
|
|
|
380
385
|
})
|
|
381
386
|
},
|
|
382
387
|
input(value, initial = false, fastForward = true) {
|
|
388
|
+
if (Array.isArray(value) && this.separator) value = value.join(this.separator)
|
|
383
389
|
// this.debug('input', JSON.stringify([this.value, value]))
|
|
384
390
|
if (value === null || value === undefined || value === '') {
|
|
385
391
|
if (this.fullSchema.nullable) {
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
return this.$emit('error', 'No http lib found to perform ajax request')
|
|
141
141
|
}
|
|
142
142
|
this.debouncedFetch = this.debouncedFetch || debounce(() => {
|
|
143
|
-
let url = this.fullSchema['x-fromUrl'].replace('{q}', this.q || '')
|
|
143
|
+
let url = this.fullSchema['x-fromUrl'].replace('{q}', encodeURIComponent(this.q || ''))
|
|
144
144
|
for (const key of this.fromUrlKeys) {
|
|
145
145
|
// URL parameters are incomplete
|
|
146
146
|
if (this.fromUrlParams[key] === undefined) return
|
|
@@ -210,8 +210,8 @@ export default {
|
|
|
210
210
|
const props = {
|
|
211
211
|
label,
|
|
212
212
|
value,
|
|
213
|
-
inputValue: this.value,
|
|
214
|
-
multiple: this.fullSchema.type === 'array',
|
|
213
|
+
inputValue: this.separator && typeof this.value === 'string' ? this.value.split(this.separator) : this.value,
|
|
214
|
+
multiple: this.fullSchema.type === 'array' || !!this.separator,
|
|
215
215
|
hideDetails: true
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
226
226
|
}
|
|
227
227
|
const props = {
|
|
228
228
|
...this.commonFieldProps,
|
|
229
|
-
multiple: this.fullSchema.type === 'array',
|
|
229
|
+
multiple: this.fullSchema.type === 'array' || !!this.separator,
|
|
230
230
|
label: null
|
|
231
231
|
}
|
|
232
232
|
// imitate a radio-group, but with checkboxes and switches
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
|
|
263
263
|
// radio cannot be applied on an array
|
|
264
264
|
if (this.display === 'radio') {
|
|
265
|
-
if (this.fullSchema.type === 'array') {
|
|
265
|
+
if (this.fullSchema.type === 'array' || this.separator) {
|
|
266
266
|
console.error('radio display is not available for arrays, use checkbox or switch')
|
|
267
267
|
} else {
|
|
268
268
|
return this.renderRadioGroup(h)
|
|
@@ -289,6 +289,7 @@ export default {
|
|
|
289
289
|
}
|
|
290
290
|
let text = item[this.itemTitle] || item[this.itemKey]
|
|
291
291
|
if (this.fullSchema.type === 'array' && data.index !== this.value.length - 1) text += ', '
|
|
292
|
+
if (this.separator && this.commonFieldProps.value && data.index !== this.commonFieldProps.value.length - 1) text += ', '
|
|
292
293
|
return h('div', {
|
|
293
294
|
class: { 'v-select__selection': true, 'v-select__selection--comma': true, 'v-select__selection--disabled': this.disabled }
|
|
294
295
|
}, [
|
|
@@ -314,7 +315,7 @@ export default {
|
|
|
314
315
|
...this.fullOptions.selectProps,
|
|
315
316
|
validateOnBlur: true, // without this we sometimes get a weird infinite render loop
|
|
316
317
|
clearable: !this.required,
|
|
317
|
-
multiple: this.fullSchema.type === 'array',
|
|
318
|
+
multiple: this.fullSchema.type === 'array' || !!this.separator,
|
|
318
319
|
itemValue: this.itemKey,
|
|
319
320
|
itemText: this.itemTitle,
|
|
320
321
|
items: this.selectItems || [],
|
|
@@ -31,7 +31,8 @@ export default {
|
|
|
31
31
|
const scopedSlots = {}
|
|
32
32
|
let tooltipSlot = 'append-outer'
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
// simple string
|
|
35
|
+
if (this.fullSchema.type === 'string' && !this.separator) {
|
|
35
36
|
if (this.display === 'textarea' || (this.fullSchema.maxLength && this.fullSchema.maxLength > 1000 && this.display !== 'single-line')) {
|
|
36
37
|
tag = 'v-textarea'
|
|
37
38
|
Object.assign(props, this.fullOptions.textareaProps)
|
|
@@ -43,6 +44,31 @@ export default {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
// multivalued string with separator
|
|
48
|
+
if (this.fullSchema.type === 'string' && this.separator) {
|
|
49
|
+
tag = 'v-combobox'
|
|
50
|
+
Object.assign(props, this.fullOptions.comboboxProps)
|
|
51
|
+
props.chips = true
|
|
52
|
+
props.multiple = true
|
|
53
|
+
props.appendIcon = ''
|
|
54
|
+
props.type = 'string'
|
|
55
|
+
props.validateOnBlur = true
|
|
56
|
+
|
|
57
|
+
scopedSlots.selection = slotProps => {
|
|
58
|
+
const onClose = () => {
|
|
59
|
+
const value = this.value ? this.value.split(this.separator) : []
|
|
60
|
+
value.splice(slotProps.index, 1)
|
|
61
|
+
this.input(value)
|
|
62
|
+
this.change()
|
|
63
|
+
}
|
|
64
|
+
return h('v-chip', {
|
|
65
|
+
props: { close: true },
|
|
66
|
+
on: { 'click:close': onClose }
|
|
67
|
+
}, slotProps.item)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// simple boolean
|
|
46
72
|
if (['number', 'integer'].includes(this.fullSchema.type)) {
|
|
47
73
|
if (this.display === 'slider') {
|
|
48
74
|
tag = 'v-slider'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"postpublish": "gh-pages-multi deploy -v -s doc/dist -t latest",
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"test-update": "jest --updateSnapshot",
|
|
14
|
-
"dev": "nuxt doc",
|
|
15
|
-
"doc-dev": "nuxt doc",
|
|
14
|
+
"dev": "nuxt doc --port 3133",
|
|
15
|
+
"doc-dev": "nuxt doc --port 3133",
|
|
16
16
|
"doc-start": "nuxt build doc && nuxt start doc",
|
|
17
17
|
"doc-build": "BASE=/vuetify-jsonschema-form/latest/ nuxt generate doc",
|
|
18
18
|
"doc-master": "BASE=/vuetify-jsonschema-form/master/ nuxt generate doc && gh-pages-multi deploy -v -s doc/dist -t master"
|