@koumoul/vjsf 2.7.3 → 2.9.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/.nvmrc +1 -1
- package/dist/main.js +1 -1
- package/lib/VJsfNoDeps.js +11 -1
- package/lib/mixins/SelectProperty.js +34 -28
- package/lib/mixins/SimpleProperty.js +1 -1
- package/lib/utils/json-refs.js +20 -12
- package/lib/utils/options.js +1 -0
- package/lib/utils/select.js +33 -10
- package/package.json +5 -4
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v16.13.0
|
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 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.default?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}])}));
|
|
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(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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 n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},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 n(e,t){e&&"object"==typeof e&&t.add(e)}function i(e,t,r,n){for(var i,o=e.length,s=0;s<o;s++)if(r((i=e[s])[0],t[0],n)&&r(i[1],t[1],n))return!0;return!1}function o(e,t,r,n){for(var i=e.length,o=0;o<i;o++)if(r(e[o],t,n))return!0;return!1}function s(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 f=t?function(){return new WeakSet}:c;function h(e){return function(t){var r=e||t;return function(e,t,i){void 0===i&&(i=f());var o=i.has(e),s=i.has(t);return o||s?o&&s:(n(e,i),n(t,i),r(e,t,i))}}}function p(e){var t=new Array(e.size),r=0;return e.forEach((function(e,n){t[r++]=[n,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,n,i){var o,s=r(e),a=s.length;if(r(t).length!==a)return!1;for(var l=0;l<a;l++){if(o=s[l],!y(t,o))return!1;if(o===d&&u(e)){if(!u(t))return!1}else if(!n(e[o],t[o],i))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,n){if(s(e,r))return!0;if(e&&r&&typeof e===S&&typeof r===S){if(a(e)&&a(r))return v(e,r,t,n);var u=b(e),c=b(r);if(u||c)return u===c&&function(e,t,r,n){var i=e.length;if(t.length!==i)return!1;for(var o=0;o<i;o++)if(!r(e[o],t[o],n))return!1;return!0}(e,r,t,n);var f=e instanceof Date,h=r instanceof Date;if(f||h)return f===h&&s(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,n){if(e.size!==t.size)return!1;for(var o=p(e),s=p(t),a=o.length,l=0;l<a;l++)if(!i(s,o[l],r,n)||!i(o,s[l],r,n))return!1;return!0}(e,r,t,n)}if(O){var P=e instanceof Set,w=r instanceof Set;if(P||w)return P===w&&function(e,t,r,n){if(e.size!==t.size)return!1;for(var i=m(e),s=m(t),a=i.length,l=0;l<a;l++)if(!o(s,i[l],r,n)||!o(i,s[l],r,n))return!1;return!0}(e,r,t,n)}return v(e,r,t,n)}return!1}return r}var j=x(),P=x((function(){return s})),w=x(h()),k=x(h(s));e.circularDeepEqual=w,e.circularShallowEqual=k,e.createCustomEqual=x,e.deepEqual=j,e.sameValueZeroEqual=s,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,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,a=Object.getPrototypeOf,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,f="function"==typeof s,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,n){if(!t.constructor)return r(null);var i=t.constructor,o=t.__proto__||a(t);if(i===n.Object)return o===n.Object.prototype?{}:r(o);if(~e.call(i).indexOf("[native code]"))try{return new i}catch(e){}return r(o)},d=function(e,t,r,n){var i=m(e,t);for(var o in n.set(e,i),e)u.call(e,o)&&(i[o]=r(e[o],n));if(f){var a=s(e),l=a.length;if(l)for(var h=0,p=void 0;h<l;h++)p=a[h],c.call(e,p)&&(i[p]=r(e[p],n))}return i},y=function(e,t,r,a){var l=m(e,t);a.set(e,l);var u=f?o(e).concat(s(e)):o(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=i(e,p)){d.get||d.set||(d.value=r(e[p],a));try{n(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),n=t&&t.realm||g,i=r?y:d,o=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var s,a=e.constructor;if(a===n.Object)return i(e,n,o,t);if(b(e)){if(r)return y(e,n,o,t);var l=e.length;s=new a,t.set(e,s);for(var u=0;u<l;u++)s[u]=o(e[u],t);return s}if(e instanceof n.Date)return new a(e.getTime());if(e instanceof n.RegExp)return(s=new a(e.source,e.flags||v(e))).lastIndex=e.lastIndex,s;if(n.Map&&e instanceof n.Map)return s=new a,t.set(e,s),e.forEach((function(e,r){s.set(r,o(e,t))})),s;if(n.Set&&e instanceof n.Set)return s=new a,t.set(e,s),e.forEach((function(e){s.add(o(e,t))})),s;if(n.Blob&&e instanceof n.Blob)return e.slice(0,e.size,e.type);if(n.Buffer&&n.Buffer.isBuffer(e))return s=n.Buffer.allocUnsafe?n.Buffer.allocUnsafe(e.length):new a(e.length),t.set(e,s),e.copy(s),s;if(n.ArrayBuffer){if(n.ArrayBuffer.isView(e))return s=new a(e.buffer.slice(0)),t.set(e,s),s;if(e instanceof n.ArrayBuffer)return s=e.slice(0),t.set(e,s),s}return"function"==typeof e.then||e instanceof Error||n.WeakMap&&e instanceof n.WeakMap||n.WeakSet&&e instanceof n.WeakSet?e:i(e,n,o,t)};return o(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 n})),r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s}));var n={locale:"en",defaultLocale:"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"},i={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"}},o={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)}},s={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 n=r(1),i=r.n(n);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)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(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}var u={};t.a=u;var c=function(e){return Object.keys(e||{}).map((function(t){return a(a({},e[t]),{},{key:t})}))},f=function(e,t){e.required=e.required.concat(t.required||[]),e.properties=e.properties.concat(c(t.properties)),t.oneOf&&(e.oneOf=(e.oneOf||[]).concat(t.oneOf)),t.allOf&&(e.allOf=(e.allOf||[]).concat(t.allOf))};u.prepareFullSchema=function(e,t,r){var n=i()(e);if(n.pattern&&(n.patternRegexp=new RegExp(n.pattern)),!n.type&&n.properties&&(n.type="object"),!n.type){var s=n.anyOf||n.oneOf||n.allOf,a=s&&s.find((function(e){return!!e.type}));a&&(n.type=a.type)}if(Array.isArray(n.type)&&(n.nullable=n.type.includes("null"),n.type=n.type.find((function(e){return"null"!==e})),n.nullable&&n.enum&&(n.enum=n.enum.filter((function(e){return null!==e})))),n.items&&Array.isArray(n.items)&&n.items.forEach((function(e,t){e.key=""+t})),n.enum&&1===n.enum.length&&(n.const=n.enum[0],delete n.enum),"object"!==n.type)return n;if(n.properties=c(n.properties),n.required=n.required||[],n.dependencies=n.dependencies||{},n.dependencies&&Object.keys(n.dependencies).forEach((function(e){var r=n.dependencies[e];if(t){var i=function(e,t){for(var r=t.split("."),n=0;n<r.length&&![null,void 0].includes(e);n++)e=e[r[n]];return e}(t,e);[null,void 0,!1].includes(i)||Array.isArray(i)&&0===i.length||"object"===o(i)&&0===Object.keys(i).length||f(n,r)}})),n.if)if(r.validator){var l=r.validator(n.if)(t);!l&&n.then&&f(n,n.then),l&&n.else&&f(n,n.else)}else console.error("v-jsf - The conditional if/then/else syntax requires the ajv or other validator option.");return n}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);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 o=function(e,t,r,o,a){var l=[];if(o&&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 f=r.messages.minLength.replace("{minLength}",t.minLength.toLocaleString(r.locale));l.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));l.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);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(n.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(n.deepEqual)(t,e)}))}))||""})),a&&"array"!==t.type&&l.push((function(e){return null==e||!!t.oneOf.find((function(t){return Object(n.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(n.deepEqual)(t.const,e)}))}))||""})),r.validator&&r.useValidator&&l.push(s(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(i(e)))})).filter((function(e){return!!e}));return l.concat(b)},s=function(e,t,r){var n=t(e);return function(e){if(null==e)return!0;var t=n(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 n(e){this._maxSize=e,this.clear()}n.prototype.clear=function(){this._size=0,this._values=Object.create(null)},n.prototype.get=function(e){return this._values[e]},n.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,s=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new n(512),c=new n(512),f=new n(512);function h(e){return u.get(e)||u.set(e,p(e).map((function(e){return e.replace(l,"$2")})))}function p(e){return e.match(i)}function m(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function d(e){return!m(e)&&(function(e){return e.match(s)&&!e.match(o)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:n,split:p,normalizePath:h,setter:function(e){var t=h(e);return c.get(e)||c.set(e,(function(e,r){for(var n=0,i=t.length,o=e;n<i-1;){var s=t[n];if("__proto__"===s||"constructor"===s||"prototype"===s)return e;o=o[t[n++]]}o[t[n]]=r}))},getter:function(e,t){var r=h(e);return f.get(e)||f.set(e,(function(e){for(var n=0,i=r.length;n<i;){if(null==e&&t)return;e=e[r[n++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(m(t)||o.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var n,i,o,s,a=e.length;for(i=0;i<a;i++)(n=e[i])&&(d(n)&&(n='"'+n+'"'),s=m(n),o=!s&&/^\d+$/.test(n),t.call(r,n,s,o,i,e))}(Array.isArray(e)?e:p(e),t,r)}}},function(e,t,r){"use strict";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 i=r(6),o={cache:{},extendtoken:"$extend",reftoken:"$ref",pathtoken:"#",debug:!1,clone:function(e){var t,r;if(null===e||"object"!==n(e)||"function"==typeof e)return e;for(t in r=e.constructor(),e)r[t]=o.clone(e[t]);return r},findIds:function(e,t){var r,i,s,a;for(i in r=!1,s={},e)a=e[i],null!=e.id&&(r=e.id),r&&"id"!==i&&(s[i]=a),"object"===n(a)&&o.findIds(a,t);if(r)return t[r]=s,s},get_json_pointer:function(e,t,r){var n;"."===(n=(n=e.replace(/\\\//,"#SLASH#").replace(/\//g,".").replace(/#SLASH#/,"/")).replace(new RegExp("^"+o.pathtoken),""))[0]&&(n=n.substr(1,n.length-1));var s,a=[n];Object.keys(r).forEach((function(e){(Array.isArray(r[e])?r[e]:[r[e]]).forEach((function(t){a.forEach((function(r){r.includes(e)&&a.push(r.replace(e,t))}))}))}));for(var l=0,u=a;l<u.length;l++){var c=u[l];o.debug&&console.log("evaluating '"+n+"'");try{var f=i.getter(c)(t);if(f)return f}catch(e){s=e}}return s&&console.error(s),""},replace:function(e,t,r,i){var s,a,l,u,c,f;for(s in c=[],e)f=e[s],o.debug&&"string"==typeof a&&console.log("checking "+s),null!=f&&null!=f[o.reftoken]?(a=f[o.reftoken],o.debug&&"string"==typeof a&&console.log("checking "+s+" -> "+a),Object.keys(f).length>1&&console.error("json-ref-lite error: object '"+s+"' contains reference as well as other properties..ignoring properties"),Array.isArray(a)?a=o.replace(a,t,r,i):null!=t[a]?e[s]=t[a]:String(a).match(new RegExp("^"+o.pathtoken))&&(o.debug&&console.log("checking "+a+" pathtoken"),e[s]=o.get_json_pointer(a,r,i)),null!=(null!=(l=e[s])?l.length:void 0)&&0===(null!=(u=e[s])?u.length:void 0)&&o.debug?c.push(console.log(a+" reference not found")):c.push(void 0)):"object"===n(f)?c.push(o.replace(f,t,r,i)):c.push(void 0);return c},extend:function(e,t){var r,i,s,a,l,u;if("object"===n(e)){for(r in s=[],e){if(u=e[r],r===o.extendtoken&&null!=u[o.reftoken]){for(a in i=o.get_json_pointer(u[o.reftoken],e,t),u)l=u[a],a!==o.reftoken&&(i[a]=l);delete e[r]}"object"===n(u)?s.push(u=o.extend(u)):s.push(void 0)}return s}},resolve:function(e,t){var r;return r={},o.findIds(e,r),o.debug&&Object.keys(r).length&&console.dir(r),o.replace(e,r,e,t),e},evaluate:function(e,t,r){var i,s,a;for(i in null==r&&(r=o.evaluateStr),s=o.clone(e))"string"==typeof(a=s[i])&&(e[i]=r(a,t)),"object"===n(a)&&(e[i]=o.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,n){var s;if(s="",null==t||null==n)return s;if(null!=t[n]&&"function"==typeof t[n])s=t[n]();else if(null!=t[n])s=t[n];else{try{n=n.replace(new RegExp("^"+o.pathtoken+"/"),"").replace(/\//g,"."),s=i.getter(n)(t)}catch(e){err=e,s=""}null==s&&(s="")}return o.evaluateStr(s,t),s}));try{return i.getter(e.replace(/^{/,"").replace(/}$/,""))(t)}catch(e){return null}}};t.a=o},function(e,t,r){"use strict";var n=r(1),i=r.n(n);function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(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(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,n){t.$set(t.subModels,"allOf-"+n,i()(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",i()(e)):this.$set(this.subModels,"currentOneOf",{}))},renderStepperStep:function(e,t,r,n,i,o){if(n){var s=r||t.key,a=this.dedupChildrenWithValidatedErrors.includes(s);return[e("v-stepper-step",{props:{step:i,editable:i<this.currentStep,complete:i<this.currentStep,rules:[function(){return!a}]}},[t.title]),o?null:e("v-divider")]}},renderSection:function(e,t,r,n,i,o){var s=this;if(n){var a=r||t.key,l="section-"+a;return"hidden"===t["x-display"]||t.readOnly&&this.fullOptions.hideReadOnly?[n]:"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}},[n])])]:"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",[n])])])]:"stepper"===this.display||"vertical-stepper"===this.display?[e("v-stepper-content",{key:l,props:{step:i,eager:!0}},[e("v-card",{props:{tile:!0,flat:!0}},[e("v-card-text",{class:{"pa-0":!0}},[n]),o?null:e("v-card-actions",{class:{"px-0":!0}},[e("v-btn",{props:{color:"primary"},on:{click:function(){console.log(n),n.componentInstance.validate(!0)&&(s.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," ")]),n])]}},renderChildProp:function(e,t,r,n,s){var a,u=this;this.objectContainerChildrenCount+=1,a=r?this.subModels:Array.isArray(this.value)?o(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=i()(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:s||!(!this.fullSchema.required||!this.fullSchema.required.includes(t.key)),options:l(l({},this.fullOptions),{},{autofocus:this.fullOptions.autofocus&&1===this.objectContainerChildrenCount}),optionsRoot:this.initialOptions,sectionDepth:n},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 n=[];this.fullSchema.properties&&this.fullSchema.properties.forEach((function(i){t.isSection(i)?n.push({schema:i,subModelKey:null,forceRequired:!1}):r.push(t.renderChildProp(e,i,null,t.sectionDepth,!1))})),Array.isArray(this.fullSchema.items)&&this.fullSchema.items.forEach((function(i,o){var s=t.value.length>o||t.fullSchema.minItems&&t.fullSchema.minItems>o;t.isSection(i)?n.push({schema:i,subModelKey:null,forceRequired:s}):r.push(t.renderChildProp(e,i,null,t.sectionDepth,s))})),this.fullSchema.allOf&&this.fullSchema.allOf.forEach((function(i,o){var s=l(l({},i),{},{type:"object",key:""+o});t.isSection(i,!0)?n.push({schema:s,subModelKey:"allOf-"+o,forceRequired:!1}):r.push(t.renderChildProp(e,s,"allOf-"+o,t.sectionDepth))}));var i=[],o=[];if(n.forEach((function(r,s){var a=t.renderChildProp(e,r.schema,r.subModelKey,t.sectionDepth+1,r.forceRequired);i=i.concat(t.renderSection(e,r.schema,r.subModelKey,a,s+1,s===n.length-1)),"stepper"!==t.display&&"vertical-stepper"!==t.display||(o=o.concat(t.renderStepperStep(e,r.schema,r.subModelKey,a,s+1,s===n.length-1)))})),"expansion-panels"===this.display&&i.length){var s=l(l({},this.fullOptions.expansionPanelsProps),this.fullSchema["x-props"]);i=[e("v-expansion-panels",{props:s},i)]}if("tabs"===this.display&&i.length){var a=l(l({},this.fullOptions.tabsProps),this.fullSchema["x-props"]);this.currentTab&&this.dedupChildrenWithValidatedErrors.includes(this.currentTab)&&(a.sliderColor="error"),i=[e("v-tabs",{props:a,on:{change:function(e){t.currentTab=e.split("-").pop()}}},i)]}if("stepper"===this.display&&i.length){var u=l(l(l({},this.fullOptions.stepperProps),this.fullSchema["x-props"]),{},{value:this.currentStep});i=[e("v-stepper",{props:u,style:"width: 100%;",on:{change:function(e){t.currentStep=e}}},[e("v-stepper-header",{},o),e("v-stepper-items",{},i)])]}if("vertical-stepper"===this.display&&i.length){for(var c=l(l(l({},this.fullOptions.verticalStepperProps),this.fullSchema["x-props"]),{},{vertical:!0,value:this.currentStep}),f=[],h=0;h<i.length;h++)f.push(o[2*h]),f.push(i[h]);i=[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(l(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(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(i))]}},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(n){var i=n.startsWith("".concat(t,"."))?n.replace("".concat(t,"."),""):n.replace("".concat(t,"-"),"");return e("template",{slot:i},r.$slots[n])}))},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,n){var i="default";return n.startsWith("".concat(e,"."))&&(i=n.replace("".concat(e,"."),"")),n.startsWith("".concat(e,"-"))&&(i=n.replace("".concat(e,"-"),"")),n.startsWith("custom-")&&(i=n),r[i]=t.$scopedSlots[n],r}),{})}}}},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(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){o(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}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=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 n=e[1].split(":");return t.setHours(Number(n[0]||"00")),t.setMinutes(Number(n[1]||"00")),t.setSeconds(0),function(e){var t,r=e.getTimezoneOffset(),n="".concat(s(parseInt(Math.abs(r/60))),":").concat(s(Math.abs(r%60)));return t=r<0?"+".concat(n):r>0?"-".concat(n):"Z","".concat(e.getFullYear(),"-").concat(s(e.getMonth()+1),"-").concat(s(e.getDate()),"T").concat(s(e.getHours()),":").concat(s(e.getMinutes()),":").concat(s(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,n,o,l=this.fullOptions.icons.calendar;if("time"===this.fullSchema.format)r=e("v-time-picker",{props:i(i({},this.fullOptions.timePickerProps),{},{locale:this.fullOptions.locale,value:(o=this.value,o?o.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:i(i({},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=(n=new Date(this.value),["".concat(n.getFullYear(),"-").concat(s(n.getMonth()+1),"-").concat(s(n.getDate())),"".concat(s(n.getHours()),":").concat(s(n.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:i(i({},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:i(i({},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 n=r.on;return e("v-text-field",{props:i(i({},t.commonFieldProps),{},{value:t.formattedValue,clearable:!t.required,readonly:!0,prependIcon:l}),on:i(i({},n),{},{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 n=r(4),i=r(3);function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}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,s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.commonFieldProps),u={},c=o(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||this.separator||("textarea"===this.display||this.fullSchema.maxLength&&this.fullSchema.maxLength>1e3&&"single-line"!==this.display?(r="v-textarea",Object.assign(s,this.fullOptions.textareaProps),u.class="v-text-field--box v-text-field--enclosed"):(r="v-text-field",Object.assign(s,this.fullOptions.textFieldProps),"password"===this.display&&(s.type="password"))),"string"===this.fullSchema.type&&this.separator&&(r="v-combobox",Object.assign(s,this.fullOptions.comboboxProps),s.chips=!0,s.multiple=!0,s.appendIcon="",s.type="string",s.validateOnBlur=!0,h.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(s,this.fullOptions.sliderProps)):(r="v-text-field",Object.assign(s,this.fullOptions.textFieldProps),Object.assign(s,this.fullOptions.numberProps)),s.type="number",void 0!==this.fullSchema.minimum&&(s.min=this.fullSchema.minimum),void 0!==this.fullSchema.maximum&&(s.max=this.fullSchema.maximum),s.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(s,this.fullOptions.switchProps)):(r="v-checkbox",Object.assign(s,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(s,this.fullOptions.comboboxProps),s.chips=!0,s.multiple=!0,s.appendIcon="",s.type="string",s.validateOnBlur=!0;var m=Object(n.a)(this.fullSchema.items,i.a.prepareFullSchema(this.fullSchema.items,null,this.fullOptions),this.fullOptions);s.rules=s.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&&(s.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 n=m.find((function(e){return"string"==typeof e(r.item)}));return e("v-chip",{props:{close:!0,color:n?"error":"default"},on:{"click:close":function(){var e=o(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:s,domProps:u,on:f,scopedSlots:h,directives:this.directives},c)]:null}}}}},function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(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 l(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){l(o,n,i,s,a,"next",e)}function a(e){l(o,n,i,s,a,"throw",e)}s(void 0)}))}}var c=function(e){return new Promise((function(t){var r=new FileReader;r.onload=function(){return t(r.result)},r.readAsDataURL(e)}))},f=function(){var e=u(regeneratorRuntime.mark((function e(t,r,n){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t,!("string"===r.type||r.properties&&r.properties.data&&"string"===r.properties.data.type)){e.next=6;break}return e.next=4,c(t);case 4:o=e.sent,i=n?o:o.split(";base64,")[1];case 6:if("string"!==r.type){e.next=8;break}return e.abrupt("return",i);case 8:return e.abrupt("return",{name:t.name,lastModified:new Date(t.lastModified).toISOString(),size:t.size,type:t.type,data:i});case 9:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}();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=s(s({},this.commonFieldProps),this.fullOptions.fileInputProps);delete r.value;var i={};this.fullSchema.contentMediaType&&(i.accept=this.fullSchema.contentMediaType),this.fullSchema.items&&this.fullSchema.items.contentMediaType&&(i.accept=this.fullSchema.items.contentMediaType),"array"===this.fullSchema.type&&(i.multiple=!0);var o,a=n(this.renderPropSlots(e)),l={change:(o=u(regeneratorRuntime.mark((function e(r){var n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("array"!==t.fullSchema.type){e.next=8;break}return e.next=3,Promise.all(r.map((function(e){return f(e,t.fullSchema.items,t.fullOptions.filesAsDataUrl)})));case 3:n=e.sent,t.input(n),t.change(),e.next=13;break;case 8:return e.next=10,f(r,t.resolvedSchema,t.fullOptions.filesAsDataUrl);case 10:i=e.sent,t.input(i),t.change();case 13:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})};return this.htmlDescription&&a.push(this.renderTooltip(e,"append-outer")),[e("v-file-input",{props:r,attrs:i,on:l,scopedSlots:this.$scopedSlots},a)]}}}}},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(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){o(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}function o(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 n=r.on;return e("div",{on:n,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:i(i(i({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:i({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 n=r(1),i=r.n(n);function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return(c="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=i()(this.fullSchema.items);return t.readOnly=!0,this.itemTitle&&(t.properties&&t.properties[this.itemTitle]&&"object"===c(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 n,i=this,s=-1===r;this.editabledArrayProp.currentDialog===r&&(n=this.renderArrayItemEdit(e,r));var a={activator:function(){return i.renderArrayItemEditButton(e,t,r)}},u=function(){n.componentInstance.resetValidation(),i.editabledArrayProp.currentDialog=null},c={};return this.fullOptions.dialogProps.persistent||(c["click:outside"]=u),e("v-dialog",{props:l(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",[n]),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(n.componentInstance.validate(!0)){var e=o(i.value);s?(i.editabledArrayProp.editedItems[i.value.length]=!0,e.push(i.editabledArrayProp.editItem)):(i.editabledArrayProp.editedItems[r]=!0,i.$set(e,r,l({},i.editabledArrayProp.editItem))),i.input(e),i.change(),i.shouldValidate=!0,i.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 n=this,i="item-".concat(r),s={props:{schema:this.readonlyItemSchema,value:t,modelRoot:this.modelRoot||this.value,modelKey:i,parentKey:"".concat(this.fullKey,"."),options:l(l({},this.fullOptions),{},{hideReadOnly:!1}),optionsRoot:this.initialOptions,sectionDepth:this.sectionDepth+1,separateValidation:!1},ref:i,scopedSlots:this.childScopedSlots(this.fullSchema.key)};return this.options.autoFixArrayItems&&(s.on={input:function(e){if(!n.editabledArrayProp.editedItems[r]){var t=o(n.value);t[r]=e,n.input(t)}}}),e("v-jsf",s,this.childSlots(e,this.fullSchema.key))},renderArrayItemEditButton:function(e,t,r,n){var s=this,a=-1===r,l=n||a;return e("v-btn",{on:{click:function(){if(a&&"inline"===s.fullOptions.editMode){var e=i()(t),n=o(s.value);n.push(e),s.editabledArrayProp.currentDialog=n.length-1,s.editabledArrayProp.editItem=e,s.input(n),s.change()}else s.editabledArrayProp.currentDialog===r?(s.editabledArrayProp.editItem=null,s.editabledArrayProp.currentDialog=null,s.change()):(s.editabledArrayProp.editItem=i()(t),s.editabledArrayProp.currentDialog=r,"inline"===s.fullOptions.editMode&&s.$nextTick((function(){return s.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":n,color:"primary",depressed:n}},[e("v-icon",a?this.fullOptions.icons.add:this.fullOptions.icons.edit)])},renderArrayItemEdit:function(e,t){var r=this,n=l(l({},this.fullOptions),{},{autofocus:!0});return this.fullOptions.idPrefix.endsWith("--dialog--")||(n.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:n,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 n=o(r.value);r.$set(n,t,e),r.input(n)}},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 n=this.fullSchema.items.default||this.defaultValue(this.fullSchema.items);"inline"===this.fullOptions.editMode?r.push(this.renderArrayItemEditButton(e,n,-1)):r.push(this.renderArrayItemModal(e,n,-1))}var i,o=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 s=this.value.filter((function(e){return!!e})).map((function(r,n){var i,s,a="inline"===t.fullOptions.editMode&&t.editabledArrayProp.currentDialog===n;!t.disabled&&t.fullOptions.arrayOperations.includes("update")&&(i="inline"===t.fullOptions.editMode?t.renderArrayItemEditButton(e,r,n,a):t.renderArrayItemModal(e,r,n)),t.disabled||t.fromUrl||t.fullSchema.fromData||!t.fullOptions.arrayOperations.includes("delete")||(s=e("v-btn",{props:{icon:!0,color:"warning",disabled:a},attrs:{id:t.fullOptions.idPrefix+t.dashKey+"-"+n+"--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,o.componentInstance.validate()}}},[e("v-icon",t.fullOptions.icons.delete)]));var u,c,f,h=e("v-card-actions",{class:"pa-0"},[e("v-spacer"),i,s]);a?(u=t.renderArrayItemEdit(e,n),f="item-edit-"+n):(u=t.renderArrayItemRO(e,r,n),f=t.cached("item-key-".concat(n),{item:r},(function(){return t.debug("new RO item key",n),"".concat(n,"-").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(n));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===n&&"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)])}));i=this.fullOptions.disableSorting?e("v-row",{class:"pt-2"},s):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}}},s)}return[o,i]}}}}},function(e,t,r){"use strict";(function(e){function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(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:n({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,n={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(n);var i=!1;this.easymde.codemirror.on("change",(function(){i=!0,t.input(t.easymde.value())})),this.easymde.codemirror.on("blur",(function(){t.blurTimeout=setTimeout((function(){i&&t.change(),i=!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 n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(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){o(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}function o(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:i({contentClass:"vjsf-tooltip"},this.fullOptions.tooltipProps),scopedSlots:{activator:function(t){var n=t.on,i=t.attrs;return r.fullOptions.tooltipProps.openOnClick&&delete n.focus,e("v-btn",{on:n,attrs:i,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 n=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(n.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 n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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=[],i=0;i<t.length;i++){var o=t[i];o.isActive&&o.isDependent?r.push(o):r.push.apply(r,n(e(o.$children)))}return r}(this.$children):[]},getOpenDependentElements:function(){for(var e=[],t=this.getOpenDependents(),r=0;r<t.length;r++)e.push.apply(e,n(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,n(this.getOpenDependentElements())),e}}}},function(e,t,r){"use strict";var n=r(0);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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)}function c(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){c(o,n,i,s,a,"next",e)}function a(e){c(o,n,i,s,a,"throw",e)}s(void 0)}))}}var h={},p=h;h.fetchRawItems=function(){var e=f(regeneratorRuntime.mark((function e(t,r,n,i){var o,s,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.replace("{q}",encodeURIComponent(i||"")),e.next=3,t.httpLib.get(o,t.httpOptions);case 3:if(s=e.sent,a=s.data||s.body,l=r["x-itemsProp"]?a[r["x-itemsProp"]]:a,Array.isArray(l)){e.next=8;break}throw new Error("Result of http fetch ".concat(o," is not an array"));case 8:return e.abrupt("return",l);case 9:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),h.getSelectItems=function(e,t,r,n){var i=[];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 o=t.properties?t.properties.map((function(e){return e.key})):Object.keys(t.items.properties);e.forEach((function(e){var r={};o.forEach((function(n){void 0!==e[n]&&(r[n]=e[n],"string"===(t.properties?t.properties.find((function(e){return e.key===n})):t.items.properties[n]).type&&(r[n]=""+r[n]))})),i.push(r)}))}else e.forEach((function(e){if("object"===u(e))i.push(e);else{var t=l({},r,e);n&&(t[n]=e),i.push(t)}}));else;return i};var m=function(e,t,r){return![null,void 0].includes(e)&&(![null,void 0].includes(t)&&Object(n.deepEqual)(e[r],t[r]))},d=[],y=function(){var e=f(regeneratorRuntime.mark((function e(t,r,i,o,s){var a,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=d.find((function(e){return Object(n.deepEqual)(e.key,[i,o,s])})))){e.next=3;break}return e.abrupt("return",a.result||s);case 3:return e.next=5,h.fetchRawItems(t,r,o,s[i]);case 5:return l=e.sent,u=l.find((function(e){return m(e,s,i)})),d.push({key:[i,o,s],result:u}),e.abrupt("return",u||s);case 9:case"end":return e.stop()}}),e)})));return function(t,r,n,i,o){return e.apply(this,arguments)}}();function v(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(n,i)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){b(o,n,i,s,a,"next",e)}function a(e){b(o,n,i,s,a,"throw",e)}s(void 0)}))}}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(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){x(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 x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}h.fillSelectItems=function(){var e=f(regeneratorRuntime.mark((function e(t,r,n,i,s,a,u,c){var f,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:if(!Array.isArray(n)){e.next=21;break}f=o(n.map((function(e){return e})).reverse()),e.prev=4,p=regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=h.value,c||(n=l({},s,n)),i.find((function(e){return m(e,n,s)}))){e.next=8;break}if(c||!u){e.next=7;break}return e.next=6,y(t,r,s,u,n);case 6:n=e.sent;case 7:i.push(n);case 8:case"end":return e.stop()}}),e)})),f.s();case 7:if((h=f.n()).done){e.next=11;break}return e.delegateYield(p(),"t0",9);case 9:e.next=7;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),f.e(e.t1);case 16:return e.prev=16,f.f(),e.finish(16);case 19:e.next=28;break;case 21:if(c||(n=l({},s,n)),i.find((function(e){return m(e,n,s)}))){e.next=28;break}if(c||!u){e.next=27;break}return e.next=26,y(t,r,s,u,n);case 26:n=e.sent;case 27:i.push(n);case 28:case"end":return e.stop()}}),e,null,[[4,13,16,19]])})));return function(t,r,n,i,o,s,a,l){return e.apply(this,arguments)}}(),h.fillList=function(e,t,r,n){if(t)return r.length?(t=i(t),r.forEach((function(e){t.find((function(t){return m(e,t,n)}))||t.push(e)})),t.forEach((function(e,i){r.find((function(t){return m(t,e,n)}))||(t[i]=null)})),t.filter((function(e){return!!e}))):[]};var w=r(20),k=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)},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"]?w(this.fullSchema["x-fromUrl"],/\{(.*?)\}/g).toArray().filter((function(e){return"q"!==e})):null},fromUrl:function(){if(this.fullSchema){var e=this.fullSchema["x-fromUrl"];if(e){var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=j(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(this.fromUrlKeys);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(void 0===this.fromUrlParams[n])return;e=e.replace("{".concat(n,"}"),this.fromUrlParams[n])}}catch(e){r.e(e)}finally{r.f()}return e}}},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,n=r.anyOf||r.oneOf;this.openEndedSelect=r.anyOf&&!!r.anyOf.find((function(e){return!e.const&&!e.enum})),this.rawSelectItems=n.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 S(S({},e),{},(x(r={},t.itemKey,e.const||e.enum&&e.enum[0]),x(r,t.itemTitle,e.title),r))}))}if(this.examplesSelect){var i="array"===this.fullSchema.type&&this.fullSchema.items.examples||this.fullSchema.examples;this.openEndedSelect=!0,this.rawSelectItems=i.map((function(e){var r;return x(r={},t.itemKey,e),x(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.$set(t.fromUrlParams,e,r),t.fetchSelectItems()}),{immediate:!0})}))},fetchSelectItems:function(){var e=this;if(this.fromUrl){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||k(g(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,p.fetchRawItems(e.fullOptions,e.fullSchema,e.fromUrl,e.q);case 4:e.rawSelectItems=t.sent,t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0),e.$emit("error",t.t0.message);case 11:e.loading=!1;case 12:case"end":return t.stop()}}),t,null,[[1,7]])}))),250),this.debouncedFetch()}},updateSelectItems:function(){var e=this;return g(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=p.getSelectItems(e.rawSelectItems,e.fullSchema,e.itemKey,e.itemIcon),"list"===e.display&&e.rawSelectItems&&e.input(p.fillList(e.fullSchema,e.value,r,e.itemKey)),e.loading=!0,t.next=5,p.fillSelectItems(e.fullOptions,e.fullSchema,e.separator&&"string"==typeof e.value?e.value.split(e.separator):e.value,r,e.itemKey,e.itemTitle,e.fromUrlWithQuery&&e.fromUrl,e.returnObject);case 5:e.loading=!1,Object(n.deepEqual)(r,e.selectItems)||(e.selectItems=r);case 7:case"end":return t.stop()}}),t)})))()},renderSelectIcon:function(e,t){if(this.itemIcon){var r=t[this.itemIcon];if(r){var n=e("v-icon",null,r);return r.startsWith("http://")||r.startsWith("https://")?n=e("img",{domProps:{src:r},style:"height:100%;width:100%;"}):(r.startsWith("<?xml")||r.startsWith("<svg"))&&(n=e("div",{domProps:{innerHTML:r}})),e("v-avatar",{props:{tile:!0,size:20},class:"mr-2"},[n])}}},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,n={change:function(e){r.input(e),r.change()}},i={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:i,on:n,class:"pb-1"})},renderSelectionControlGroup:function(e){var t=this,r={change:function(e){t.input(e),t.change()}},n=S(S({},this.commonFieldProps),{},{multiple:"array"===this.fullSchema.type||!!this.separator,label:null}),i=e("legend",{class:"v-label theme--".concat(this.theme.isDark?"dark":"light"," ").concat(this.hasError?"error--text":"")},this.commonFieldProps.label),o=this.selectItems.map((function(r){return t.renderSelectionControlItem(e,r)}));return[e("v-input",{props:n,on:r,class:"v-input--selection-controls v-input--radio-group v-input--radio-group--column"},[e("div",{class:"v-input--radio-group__input"},[i].concat(v(o))),this.renderTooltip(e,"append")])]},renderRadioItem:function(e,t){var r=t[this.itemTitle]||t[this.itemKey],n=t[this.itemKey];return e("v-radio",{props:S(S({},this.fullOptions.radioItemProps),{},{label:r,value:n})})},renderRadioGroup:function(e){var t=this,r=S(S({},this.commonFieldProps),this.fullOptions.radioGroupProps);return[e("v-radio-group",{props:r,on:{change:function(e){t.input(e),t.change()}}},[].concat(v(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()}},n={selection:function(r){var n,i;t.openEndedSelect?(n=(t.selectItems||[]).find((function(e){return e[t.itemKey]===r.item})))||(x(i={},t.itemKey,r.item),x(i,t.itemTitle,r.item),n=i):n=r.item;var o=n[t.itemTitle]||n[t.itemKey];return"array"===t.fullSchema.type&&r.index!==t.value.length-1&&(o+=", "),t.separator&&t.commonFieldProps.value&&r.index!==t.commonFieldProps.value.length-1&&(o+=", "),e("div",{class:{"v-select__selection":!0,"v-select__selection--comma":!0,"v-select__selection--disabled":t.disabled}},[t.renderSelectIcon(e,n),e("span",{domProps:{innerHTML:o},class:"mt-1"})])},item:function(r){return[t.renderSelectIcon(e,r.item),t.renderSelectCheckbox(e,r.attrs.inputValue),t.renderSelectItem(e,r.item)]}},i="v-select",o=S(S(S({},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)&&(i="v-autocomplete",o.noDataText=this.fullOptions.messages.noData,o.placeholder=this.fullOptions.messages.search,this.fromUrlWithQuery?(o.filter=function(){return!0},o.searchInput=this.q,r["update:search-input"]=function(e){t.q=e}):o.filter=function(e,r){return(e[t.itemTitle]||e[t.itemKey]).toLowerCase().includes(r.toLowerCase())}),this.openEndedSelect&&(i="v-combobox"),i=this.customTag?this.customTag:i;var s=v(this.renderPropSlots(e));if("v-select"===i&&o.multiple&&this.fullOptions.selectAll){var a=o.items.length===this.value.length;s.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(o.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&&s.push(this.renderTooltip(e,"append-outer")),[e(i,{props:o,on:r,scopedSlots:n},s)]}}}}},function(e,t,r){"use strict";r.r(t),function(e){var n=r(1),i=r.n(n),o=r(0),s=r(7),a=r(3),l=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&x(i,r.prototype),i}).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))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}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){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var M=r(6),C=e.navigator&&e.navigator.cookieEnabled&&e.localStorage&&e.localStorage.debug,T={};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||{},n=Object.assign({},l.a,this.options||{},this.resolvedSchema["x-options"]||{});if(n.markdown=n.markdown||r.markdownit&&function(e){return e?r.markdownit(n.markdownit).render(e):""}||function(e){return e||""},n.memMarkdown=n.memMarkdown||function(e){t._vjsf_markdown=t._vjsf_markdown||{};var r=e+"";return t._vjsf_markdown[r]=t._vjsf_markdown[r]||n.markdown(e),t._vjsf_markdown[r]},n.httpLib=n.httpLib||this.axios||this.$http||this.$axios||r.axios,!n.validator){var i=n.ajvLocalize||r.ajvLocalize,o=n.ajvAddFormats||r.ajvAddFormats,s=!!i&&n.locale&&i[n.locale],a=n.ajv;if(!a){var u=n.Ajv||r.Ajv||r.ajv7&&r.ajv7.default||r.ajv2019&&r.ajv2019.default;u&&(a=new u(s?{allErrors:!0,messages:!1,strict:!1}:{strict:!1}),o&&o(a),a.addFormat("hexcolor",/^#[0-9A-Fa-f]{6,8}$/))}a&&(n.validator=function(e){var t=a.compile(e);return function(e){if(!t(e))return s&&i[n.locale](t.errors),a.errorsText(t.errors,{dataVar:""})}})}var c=this.$vuetify.icons&&this.$vuetify.icons.iconfont||"mdi";if(!n.defaultIcons){for(var f={},h=0,p=Object.entries(this.$vuetify.icons.values);h<p.length;h++){var m=A(p[h],2),d=m[0],y=m[1];f[d]=y.props?y.props.name:y}n.defaultIcons=k(k({},l.c[c]),f),n.icons=k(k({},n.defaultIcons),n.icons)}return n.messages=k(k({},l.d[n.locale]||l.d.en),n.messages),n.formats=k(k({},l.b),n.formats),n.deleteReadOnly&&(n.hideReadOnly=!0),n},resolvedSchema:function(){if("root"===this.modelKey){this.debug("compute resolvedSchema");var e=this.options||{},t=e.locale||e.defaultLocale||"en",r=e.defaultLocale||"en";return s.a.resolve(this.schema,{"~$locale~":t===r?t:[t,r]})}return 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 k(k(k({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 k({},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)},directives:function(){if(this.fullSchema)return this.fullSchema["x-directives"]}},watch:{fullSchema:{handler:function(){this.fullSchema&&(this.initFromSchema(),this.initValidation(),this.updateSelectItems())}}},mounted:function(){var e=this;T[this.fullKey]=(T[this.fullKey]||0)+1,this.debug("mounted",T[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(o.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=k({},this.fullOptions.fieldColProps);return this.fullSchema["x-cols"]&&("object"===P(this.fullSchema["x-cols"])?r=k(k({},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){"*"!==C&&C!==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(o.deepEqual)(this._vjsf_cache[e].params,t)||(this._vjsf_cache[e]={params:i()(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]||M.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(n){r.push(e("div",{slot:n,domProps:{innerHTML:t.fullOptions.memMarkdown(t.xSlots[n])}}))})),Object.keys(this.$slots).forEach((function(n){r.push(e("template",{slot:n},t.$slots[n]))})),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.default?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(o.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=k({},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(n){var i=t.fullSchema.properties.find((function(e){return e.key===n}));i&&i.const||e[n]!==t.subModels[r][n]&&(e[n]=t.subModels[r][n])}))})),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 n,i,o,s,a;function l(){var u=Date.now()-s;u<t&&u>=0?n=setTimeout(l,t-u):(n=null,r||(a=e.apply(o,i),o=i=null))}null==t&&(t=100);var u=function(){o=this,i=arguments,s=Date.now();var u=r&&!n;return n||(n=setTimeout(l,t)),u&&(a=e.apply(o,i),o=i=null),a};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(a=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},u}r.debounce=r,e.exports=r}])}));
|
package/lib/VJsfNoDeps.js
CHANGED
|
@@ -126,7 +126,13 @@ export default {
|
|
|
126
126
|
resolvedSchema() {
|
|
127
127
|
if (this.modelKey === 'root') {
|
|
128
128
|
this.debug('compute resolvedSchema')
|
|
129
|
-
|
|
129
|
+
const options = this.options || {}
|
|
130
|
+
const locale = options.locale || options.defaultLocale || 'en'
|
|
131
|
+
const defaultLocale = options.defaultLocale || 'en'
|
|
132
|
+
return jrefs.resolve(
|
|
133
|
+
this.schema,
|
|
134
|
+
{ '~$locale~': locale === defaultLocale ? locale : [locale, defaultLocale] }
|
|
135
|
+
)
|
|
130
136
|
} else {
|
|
131
137
|
return this.schema
|
|
132
138
|
}
|
|
@@ -223,6 +229,10 @@ export default {
|
|
|
223
229
|
formattedValue() {
|
|
224
230
|
if (!this.fullSchema) return
|
|
225
231
|
return this.value && this.fullSchema.format && this.fullOptions.formats[this.fullSchema.format] && this.fullOptions.formats[this.fullSchema.format](this.value, this.fullOptions.locale)
|
|
232
|
+
},
|
|
233
|
+
directives() {
|
|
234
|
+
if (!this.fullSchema) return
|
|
235
|
+
return this.fullSchema['x-directives']
|
|
226
236
|
}
|
|
227
237
|
},
|
|
228
238
|
watch: {
|
|
@@ -37,10 +37,6 @@ export default {
|
|
|
37
37
|
if (['string', 'integer', 'number'].includes(this.fullSchema.type) && this.fullSchema.examples) return true
|
|
38
38
|
return false
|
|
39
39
|
},
|
|
40
|
-
fromUrl() {
|
|
41
|
-
if (!this.fullSchema) return
|
|
42
|
-
return this.fullSchema['x-fromUrl']
|
|
43
|
-
},
|
|
44
40
|
fromUrlWithQuery() {
|
|
45
41
|
if (!this.fullSchema) return
|
|
46
42
|
return !!(this.fullSchema['x-fromUrl'] && this.fullSchema['x-fromUrl'].indexOf('{q}') !== -1)
|
|
@@ -51,6 +47,17 @@ export default {
|
|
|
51
47
|
if (!this.fullSchema['x-fromUrl']) return null
|
|
52
48
|
return matchAll(this.fullSchema['x-fromUrl'], /\{(.*?)\}/g).toArray().filter(key => key !== 'q')
|
|
53
49
|
},
|
|
50
|
+
fromUrl() {
|
|
51
|
+
if (!this.fullSchema) return
|
|
52
|
+
let url = this.fullSchema['x-fromUrl']
|
|
53
|
+
if (!url) return
|
|
54
|
+
for (const key of this.fromUrlKeys) {
|
|
55
|
+
// URL parameters are incomplete
|
|
56
|
+
if (this.fromUrlParams[key] === undefined) return
|
|
57
|
+
else url = url.replace(`{${key}}`, this.fromUrlParams[key])
|
|
58
|
+
}
|
|
59
|
+
return url
|
|
60
|
+
},
|
|
54
61
|
fromData() {
|
|
55
62
|
if (!this.fullSchema) return
|
|
56
63
|
return this.fullSchema['x-fromData']
|
|
@@ -128,49 +135,48 @@ export default {
|
|
|
128
135
|
if (this.fromUrlKeys) {
|
|
129
136
|
this.fromUrlKeys.forEach(key => {
|
|
130
137
|
this.$watch(() => this.getFromExpr(key), (val) => {
|
|
131
|
-
this.fromUrlParams
|
|
138
|
+
this.$set(this.fromUrlParams, key, val)
|
|
132
139
|
this.fetchSelectItems()
|
|
133
140
|
}, { immediate: true })
|
|
134
141
|
})
|
|
135
142
|
}
|
|
136
143
|
},
|
|
137
144
|
fetchSelectItems() {
|
|
145
|
+
if (!this.fromUrl) return
|
|
138
146
|
if (!this.fullOptions.httpLib) {
|
|
139
147
|
console.error('No http lib found to perform ajax request')
|
|
140
148
|
return this.$emit('error', 'No http lib found to perform ajax request')
|
|
141
149
|
}
|
|
142
|
-
this.debouncedFetch = this.debouncedFetch || debounce(() => {
|
|
143
|
-
let url = this.fullSchema['x-fromUrl'].replace('{q}', encodeURIComponent(this.q || ''))
|
|
144
|
-
for (const key of this.fromUrlKeys) {
|
|
145
|
-
// URL parameters are incomplete
|
|
146
|
-
if (this.fromUrlParams[key] === undefined) return
|
|
147
|
-
else url = url.replace(`{${key}}`, this.fromUrlParams[key])
|
|
148
|
-
}
|
|
150
|
+
this.debouncedFetch = this.debouncedFetch || debounce(async () => {
|
|
149
151
|
this.loading = true
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this.loading = false
|
|
158
|
-
})
|
|
159
|
-
.catch(err => {
|
|
160
|
-
console.error(err)
|
|
161
|
-
this.$emit('error', err.message)
|
|
162
|
-
this.loading = false
|
|
163
|
-
})
|
|
152
|
+
try {
|
|
153
|
+
this.rawSelectItems = await selectUtils.fetchRawItems(this.fullOptions, this.fullSchema, this.fromUrl, this.q)
|
|
154
|
+
} catch (err) {
|
|
155
|
+
console.error(err)
|
|
156
|
+
this.$emit('error', err.message)
|
|
157
|
+
}
|
|
158
|
+
this.loading = false
|
|
164
159
|
}, 250)
|
|
165
160
|
this.debouncedFetch()
|
|
166
161
|
},
|
|
167
|
-
updateSelectItems() {
|
|
162
|
+
async updateSelectItems() {
|
|
168
163
|
const selectItems = selectUtils.getSelectItems(this.rawSelectItems, this.fullSchema, this.itemKey, this.itemIcon)
|
|
169
164
|
if (this.display === 'list' && this.rawSelectItems) {
|
|
170
165
|
this.input(selectUtils.fillList(this.fullSchema, this.value, selectItems, this.itemKey))
|
|
171
166
|
}
|
|
172
167
|
|
|
173
|
-
|
|
168
|
+
this.loading = true
|
|
169
|
+
await selectUtils.fillSelectItems(
|
|
170
|
+
this.fullOptions,
|
|
171
|
+
this.fullSchema,
|
|
172
|
+
this.separator && typeof this.value === 'string' ? this.value.split(this.separator) : this.value,
|
|
173
|
+
selectItems,
|
|
174
|
+
this.itemKey,
|
|
175
|
+
this.itemTitle,
|
|
176
|
+
this.fromUrlWithQuery && this.fromUrl,
|
|
177
|
+
this.returnObject
|
|
178
|
+
)
|
|
179
|
+
this.loading = false
|
|
174
180
|
|
|
175
181
|
// we check for actual differences in order to prevent infinite loops
|
|
176
182
|
if (!deepEqual(selectItems, this.selectItems)) {
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
|
|
155
155
|
tag = this.customTag ? this.customTag : tag
|
|
156
156
|
|
|
157
|
-
return tag ? [h(tag, { props, domProps, on, scopedSlots }, children)] : null
|
|
157
|
+
return tag ? [h(tag, { props, domProps, on, scopedSlots, directives: this.directives }, children)] : null
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
package/lib/utils/json-refs.js
CHANGED
|
@@ -42,25 +42,33 @@ jrefs.findIds = function(json, ids) {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
jrefs.get_json_pointer = function(ref, root, replacements) {
|
|
45
|
-
var evalstr
|
|
45
|
+
var evalstr
|
|
46
46
|
evalstr = ref.replace(/\\\//, '#SLASH#').replace(/\//g, '.').replace(/#SLASH#/, '/')
|
|
47
|
-
Object.keys(replacements).forEach(key => {
|
|
48
|
-
evalstr = evalstr.replace(key, replacements[key])
|
|
49
|
-
})
|
|
50
47
|
evalstr = evalstr.replace(new RegExp('^' + jrefs.pathtoken), '')
|
|
51
48
|
if (evalstr[0] === '.') {
|
|
52
49
|
evalstr = evalstr.substr(1, evalstr.length - 1)
|
|
53
50
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
var combinations = [evalstr]
|
|
52
|
+
Object.keys(replacements).forEach(key => {
|
|
53
|
+
const values = Array.isArray(replacements[key]) ? replacements[key] : [replacements[key]]
|
|
54
|
+
values.forEach(value => {
|
|
55
|
+
combinations.forEach(c => {
|
|
56
|
+
if (c.includes(key)) combinations.push(c.replace(key, value))
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
var error
|
|
61
|
+
for (const combination of combinations) {
|
|
62
|
+
if (jrefs.debug) console.log("evaluating '" + evalstr + "'")
|
|
63
|
+
try {
|
|
64
|
+
var result = expr.getter(combination)(root)
|
|
65
|
+
if (result) return result
|
|
66
|
+
} catch (err) {
|
|
67
|
+
error = err
|
|
57
68
|
}
|
|
58
|
-
result = expr.getter(evalstr)(root)
|
|
59
|
-
} catch (error) {
|
|
60
|
-
console.error(error)
|
|
61
|
-
result = ''
|
|
62
69
|
}
|
|
63
|
-
|
|
70
|
+
if (error) console.error(error)
|
|
71
|
+
return ''
|
|
64
72
|
}
|
|
65
73
|
jrefs.replace = function(json, ids, root, replacements) {
|
|
66
74
|
var k, ref, ref1, ref2, results, v
|
package/lib/utils/options.js
CHANGED
package/lib/utils/select.js
CHANGED
|
@@ -4,6 +4,15 @@ import { deepEqual } from 'fast-equals'
|
|
|
4
4
|
const selectUtils = {}
|
|
5
5
|
export default selectUtils
|
|
6
6
|
|
|
7
|
+
selectUtils.fetchRawItems = async (fullOptions, fullSchema, fromUrl, q) => {
|
|
8
|
+
const url = fromUrl.replace('{q}', encodeURIComponent(q || ''))
|
|
9
|
+
const res = await fullOptions.httpLib.get(url, fullOptions.httpOptions)
|
|
10
|
+
const body = res.data || res.body
|
|
11
|
+
const items = fullSchema['x-itemsProp'] ? body[fullSchema['x-itemsProp']] : body
|
|
12
|
+
if (!Array.isArray(items)) throw new Error(`Result of http fetch ${url} is not an array`)
|
|
13
|
+
return items
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
// from raw data to items usable in select components
|
|
8
17
|
selectUtils.getSelectItems = (rawSelectItems, fullSchema, itemKey, itemIcon) => {
|
|
9
18
|
const selectItems = []
|
|
@@ -47,20 +56,34 @@ const matchItem = (selectItem, item, itemKey) => {
|
|
|
47
56
|
return deepEqual(selectItem[itemKey], item[itemKey])
|
|
48
57
|
}
|
|
49
58
|
|
|
59
|
+
// TODO: this is not very rigorous because we have no way of knowing that the stored value will be properly
|
|
60
|
+
// matched with a simple "q" params.. but it kinda gets the job done.. let's think about it some more at some point in the future
|
|
61
|
+
const missingValuesCache = []
|
|
62
|
+
const fetchMissingValue = async (fullOptions, fullSchema, itemKey, fromUrl, value) => {
|
|
63
|
+
const valueFromCache = missingValuesCache.find(cv => deepEqual(cv.key, [itemKey, fromUrl, value]))
|
|
64
|
+
if (valueFromCache) return valueFromCache.result || value
|
|
65
|
+
const rawItems = await selectUtils.fetchRawItems(fullOptions, fullSchema, fromUrl, value[itemKey])
|
|
66
|
+
const result = rawItems.find(item => matchItem(item, value, itemKey))
|
|
67
|
+
missingValuesCache.push({ key: [itemKey, fromUrl, value], result })
|
|
68
|
+
return result || value
|
|
69
|
+
}
|
|
70
|
+
|
|
50
71
|
// add the current value to the select items so that they can be displayed
|
|
51
|
-
selectUtils.fillSelectItems = (fullSchema, value, selectItems, itemKey, returnObject) => {
|
|
72
|
+
selectUtils.fillSelectItems = async (fullOptions, fullSchema, value, selectItems, itemKey, itemTitle, fromUrl, returnObject) => {
|
|
52
73
|
if (!value) return
|
|
53
|
-
if (
|
|
54
|
-
value.map(item => item).reverse()
|
|
55
|
-
|
|
56
|
-
if (!selectItems.find(selectItem => matchItem(selectItem,
|
|
57
|
-
|
|
74
|
+
if (Array.isArray(value)) {
|
|
75
|
+
for (let val of value.map(item => item).reverse()) {
|
|
76
|
+
if (!returnObject) val = { [itemKey]: val }
|
|
77
|
+
if (!selectItems.find(selectItem => matchItem(selectItem, val, itemKey))) {
|
|
78
|
+
if (!returnObject && fromUrl) val = await fetchMissingValue(fullOptions, fullSchema, itemKey, fromUrl, val)
|
|
79
|
+
selectItems.push(val)
|
|
58
80
|
}
|
|
59
|
-
}
|
|
81
|
+
}
|
|
60
82
|
} else {
|
|
61
|
-
|
|
62
|
-
if (!selectItems.find(selectItem => matchItem(selectItem,
|
|
63
|
-
|
|
83
|
+
if (!returnObject) value = { [itemKey]: value }
|
|
84
|
+
if (!selectItems.find(selectItem => matchItem(selectItem, value, itemKey))) {
|
|
85
|
+
if (!returnObject && fromUrl) value = await fetchMissingValue(fullOptions, fullSchema, itemKey, fromUrl, value)
|
|
86
|
+
selectItems.push(value)
|
|
64
87
|
}
|
|
65
88
|
}
|
|
66
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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": {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@koumoul/data-fair-search-widget": "^0.3.0",
|
|
67
67
|
"@koumoul/gh-pages-multi": "^0.6.0",
|
|
68
68
|
"@mdi/font": "^3.8.95",
|
|
69
|
-
"@nuxtjs/axios": "^5.
|
|
70
|
-
"@nuxtjs/vuetify": "^1.
|
|
69
|
+
"@nuxtjs/axios": "^5.13.6",
|
|
70
|
+
"@nuxtjs/vuetify": "^1.12.3",
|
|
71
71
|
"@toast-ui/vue-editor": "^2.5.1",
|
|
72
72
|
"@vue/test-utils": "^1.0.3",
|
|
73
73
|
"axios": "^0.21.1",
|
|
@@ -92,11 +92,12 @@
|
|
|
92
92
|
"jest": "^26.1.0",
|
|
93
93
|
"jest-serializer-vue": "^2.0.2",
|
|
94
94
|
"mini-css-extract-plugin": "^0.8.0",
|
|
95
|
-
"nuxt": "^2.
|
|
95
|
+
"nuxt": "^2.15.3",
|
|
96
96
|
"random-words": "^1.1.0",
|
|
97
97
|
"sanitize-html": "^2.3.0",
|
|
98
98
|
"stringify-object": "^3.3.0",
|
|
99
99
|
"tiptap-vuetify": "^2.24.0",
|
|
100
|
+
"v-mask": "^2.3.0",
|
|
100
101
|
"vue-axios": "^2.1.5",
|
|
101
102
|
"vue-cropperjs": "^4.2.0",
|
|
102
103
|
"vue-jest": "^3.0.5",
|