@ditojs/admin 0.268.0 → 0.269.0

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.
@@ -1,5 +1,5 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("codeflask"),require("@ditojs/ui"),require("tiptap-commands"),require("vuedraggable"),require("tinycolor2"),require("vue-router"),require("@ditojs/utils"),require("vue-multiselect"),require("vue-upload-component"),require("vue"),require("tiptap"),require("filesize-parser"),require("vue-color"),require("vue-notification"),require("vue-js-modal"),require("nanoid"),require("axios"),require("tiptap-extensions"),require("filesize")):"function"===typeof define&&define.amd?define(["codeflask","@ditojs/ui","tiptap-commands","vuedraggable","tinycolor2","vue-router","@ditojs/utils","vue-multiselect","vue-upload-component","vue","tiptap","filesize-parser","vue-color","vue-notification","vue-js-modal","nanoid","axios","tiptap-extensions","filesize"],e):"object"===typeof exports?exports["dito-admin"]=e(require("codeflask"),require("@ditojs/ui"),require("tiptap-commands"),require("vuedraggable"),require("tinycolor2"),require("vue-router"),require("@ditojs/utils"),require("vue-multiselect"),require("vue-upload-component"),require("vue"),require("tiptap"),require("filesize-parser"),require("vue-color"),require("vue-notification"),require("vue-js-modal"),require("nanoid"),require("axios"),require("tiptap-extensions"),require("filesize")):t["dito-admin"]=e(t["Codeflask"],t["@ditojs/ui"],t["TiptapCommands"],t["Vuedraggable"],t["Tinycolor2"],t["VueRouter"],t["@ditojs/utils"],t["VueMultiselect"],t["VueUploadComponent"],t["Vue"],t["Tiptap"],t["FilesizeParser"],t["VueColor"],t["VueNotification"],t["VueJsModal"],t["Nanoid"],t["Axios"],t["TiptapExtensions"],t["Filesize"])})("undefined"!==typeof self?self:this,(function(t,e,o,i,n,a,r,s,l,d,c,u,p,h,m,b,f,g,v){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s="1c25")}({"03e2":function(t,e,o){var i=o("a861");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("41e3412c",i,!0,{sourceMap:!1,shadowMode:!1})},"0446":function(t,e,o){var i=o("da06"),n=o("5bb7"),a=o("7d53"),r=a("iterator");t.exports=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||n[i(t)]}},"0635":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-tabs{margin-left:auto}.dito-tabs a{display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;background:#c7c7c7;padding:11px 12px;margin-left:6px;border-top-left-radius:4px;border-top-right-radius:4px}.dito-tabs a:hover{background:#fff}.dito-tabs a.dito-active,.dito-tabs a:active{background:#ededed}",""]),t.exports=e},"083f":function(t,e,o){var i=o("7526"),n=o("cfd1"),a=o("eba0"),r=o("7d53"),s=r("toPrimitive");t.exports=function(t,e){if(!i(t)||n(t))return t;var o,r=t[s];if(void 0!==r){if(void 0===e&&(e="default"),o=r.call(t,e),!i(o)||n(o))return o;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},"0d98":function(t,e,o){"use strict";o("6eff")},"0e93":function(t,e){t.exports=!1},"0ebd":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-errors{position:absolute;z-index:1}.dito-errors ul{margin-top:1px;color:#ff3860}",""]),t.exports=e},"0ed3":function(t,e,o){"use strict";function i(t,e){for(var o=[],i={},n=0;n<e.length;n++){var a=e[n],r=a[0],s=a[1],l=a[2],d=a[3],c={id:t+":"+n,css:s,media:l,sourceMap:d};i[r]?i[r].parts.push(c):o.push(i[r]={id:r,parts:[c]})}return o}o.r(e),o.d(e,"default",(function(){return m}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},r=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,o,n){d=o,u=n||{};var r=i(t,e);return b(r),function(e){for(var o=[],n=0;n<r.length;n++){var s=r[n],l=a[s.id];l.refs--,o.push(l)}e?(r=i(t,e),b(r)):r=[];for(n=0;n<o.length;n++){l=o[n];if(0===l.refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete a[l.id]}}}}function b(t){for(var e=0;e<t.length;e++){var o=t[e],i=a[o.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](o.parts[n]);for(;n<o.parts.length;n++)i.parts.push(g(o.parts[n]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{var r=[];for(n=0;n<o.parts.length;n++)r.push(g(o.parts[n]));a[o.id]={id:o.id,refs:1,parts:r}}}}function f(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function g(t){var e,o,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i)}if(h){var n=l++;i=s||(s=f()),e=y.bind(null,i,n,!1),o=y.bind(null,i,n,!0)}else i=f(),e=x.bind(null,i),o=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else o()}}var v=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function y(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,n);else{var a=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function x(t,e){var o=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute(p,e.id),n&&(o+="\n/*# sourceURL="+n.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=o;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}},1239:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-markup button,.dito-markup:disabled button{opacity:.6;pointer-events:none}.dito-markup{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-markup{border-color:#ff3860}.dito-disabled.dito-markup,.dito-markup:disabled{color:grey;pointer-events:none;cursor:text}.dito-markup{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-markup::-webkit-input-placeholder{color:grey}.dito-markup::-moz-placeholder{color:grey}.dito-markup::placeholder{color:grey}.dito-focus.dito-markup,.dito-focus.dito-markup .dito-inherit-focus,.dito-markup:focus,.dito-markup:focus-within,.dito-markup:focus-within .dito-inherit-focus,.dito-markup:focus .dito-inherit-focus{border-color:#3898ff}.dito-markup .dito-resize{top:0;left:0;margin:auto;content:\"\";background:currentColor;-webkit-mask:none no-repeat center content-box;mask:none no-repeat center content-box;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22L22 8M16 22l6-6'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22L22 8M16 22l6-6'/%3E%3C/svg%3E\")}.dito-markup{position:relative}.dito-markup .dito-resize{position:absolute;top:unset;left:unset;right:0;bottom:0;width:1em;height:1em}.dito-markup .ProseMirror{height:100%;outline:none}.dito-markup .dito-markup-editor{overflow-y:scroll;margin-right:-6px;padding-right:6px}.dito-markup .dito-buttons-toolbar{margin:3px 0}.dito-markup blockquote,.dito-markup h1,.dito-markup h2,.dito-markup h3,.dito-markup ol,.dito-markup p,.dito-markup pre,.dito-markup ul{margin:1rem 0}.dito-markup blockquote:first-child,.dito-markup h1:first-child,.dito-markup h2:first-child,.dito-markup h3:first-child,.dito-markup ol:first-child,.dito-markup p:first-child,.dito-markup pre:first-child,.dito-markup ul:first-child{margin-top:0}.dito-markup blockquote:last-child,.dito-markup h1:last-child,.dito-markup h2:last-child,.dito-markup h3:last-child,.dito-markup ol:last-child,.dito-markup p:last-child,.dito-markup pre:last-child,.dito-markup ul:last-child{margin-bottom:0}.dito-markup h1,.dito-markup h2,.dito-markup h3{font-weight:700}.dito-markup h1{font-size:1.4rem}.dito-markup h2{font-size:1.2rem}.dito-markup ul{list-style:disc}.dito-markup code{font-family:Menlo,Consolas,Monaco,Vera Mono,Andale Mono,Ubuntu Mono,monospace}.dito-markup pre{padding:.7rem 1rem;border-radius:4px;background:#2e2e2e;color:#fff;overflow-x:auto}.dito-markup pre code{display:block}.dito-markup p code{display:inline-block;padding:0 .3rem;border-radius:4px;background:#e0e0e0}.dito-markup a{pointer-events:none;cursor:default;color:#00f;text-decoration:underline}.dito-markup ol,.dito-markup ul{padding-left:2rem}.dito-markup li>ol,.dito-markup li>p,.dito-markup li>ul{margin:0}.dito-markup blockquote{border-left:3px solid #e0e0e0;padding-left:1rem;font-style:italic}.dito-markup blockquote p{margin:0}",""]),t.exports=e},1523:function(t,e,o){"use strict";o("6cc4")},1564:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-checkbox{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}",""]),t.exports=e},"157c":function(t,e,o){var i=o("7526");t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},"17f1":function(t,e,o){var i=o("9a69");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("0f604100",i,!0,{sourceMap:!1,shadowMode:!1})},"184f":function(t,e,o){"use strict";o("4555")},"185a":function(t,e,o){var i=o("d4cb"),n=o("e129"),a=o("9618"),r=o("378c"),s=o("feca"),l=o("f1a7"),d=o("7c3f"),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=r(t),e=s(e),d)try{return c(t,e)}catch(o){}if(l(t,e))return a(!n.f.call(t,e),t[e])}},"1a7c":function(t,e,o){var i=o("2259");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("2f466bb2",i,!0,{sourceMap:!1,shadowMode:!1})},"1aec":function(t,e,o){"use strict";o("5b87")},"1b9a":function(t,e,o){"use strict";o("d2ad")},"1c10":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{difference:function(t){var e=r(this),o=new(l(e,a("Set")))(e),i=s(o["delete"]);return d(t,(function(t){i.call(o,t)})),o}})},"1c25":function(t,e,o){"use strict";o.r(e);var i={};if(o.r(i),o.d(i,"creditcard",(function(){return nt})),o.d(i,"decimals",(function(){return at})),o.d(i,"email",(function(){return rt})),o.d(i,"hostname",(function(){return st})),o.d(i,"domain",(function(){return lt})),o.d(i,"integer",(function(){return dt})),o.d(i,"max",(function(){return ct})),o.d(i,"min",(function(){return ut})),o.d(i,"password",(function(){return pt})),o.d(i,"range",(function(){return ht})),o.d(i,"required",(function(){return mt})),o.d(i,"url",(function(){return bt})),"undefined"!==typeof window){var n=window.document.currentScript,a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(o.p=a[1])}var r=o("8bbf"),s=o.n(r),l=o("b327"),d=o.n(l),c=o("6389"),u=o.n(c),p=o("afe5"),h=o.n(p),m=o("cebe"),b=o.n(m),f=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-root"},[o("modals-container"),o("notifications",{ref:"notifications",staticClass:"dito-notifications",attrs:{position:"top right",classes:"dito-notification"}}),o("dito-menu"),o("main",{staticClass:"dito-page dito-scroll-parent"},[o("dito-header",{attrs:{spinner:t.options.spinner,isLoading:t.isLoading}},[t.user?o("dito-account"):t.allowLogin?o("a",{staticClass:"dito-login",on:{click:function(e){return t.rootComponent.login()}}},[o("span",[t._v("Login")])]):t._e()],1),o("router-view")],1)],1)},g=[],v={title:"",routeComponents:[],user:null,loadCache:{},activeLabel:null,clipboardData:null},y=(o("3f64"),o("6a2a"));function x(t,e){return t?`${t}/${e}`:e}function w(t){const e=Object(y["parseDataPath"])(t);return null==e||e.pop(),e}function _(t,e=!1){return e?w(t):Object(y["parseDataPath"])(t)}function k(t,e=!1){return Object(y["normalizeDataPath"])(_(t,e))}function C(t,e=!1){const o=_(t,e);if(o){let t;do{t=o.pop()}while(null!=t&&Object(y["isInteger"])(+t));if(null!=t)return o}return null}function O(t,e=!1){return Object(y["normalizeDataPath"])(C(t,e))}function j(t,e,o=!1){const i=_(e,o);return i?Object(y["getValueAtDataPath"])(t,i):null}function P(t,e,o=!1){const i=C(e,o);return i?Object(y["getValueAtDataPath"])(t,i):null}function S(t){const e=Object(y["parseDataPath"])(t);return e[e.length-1]}function D(t){const e=S(t);return null==e||Object(y["isInteger"])(+e)?null:e}function E(t){const e=S(t),o=null==e?null:+e;return Object(y["isInteger"])(o)?o:null}let $=0;function M(t,e="id"){t[e]="@"+ ++$}function B(t){return/^@/.test(t)}function V(t,e="id"){return null!=(null==t?void 0:t[e])&&1===Object.keys(t).length}const L=new WeakMap;function q(t,e,o){const i=L.get(t),n=i[e];return void 0!==n||i.hasOwnProperty(e)?n:Object(y["isFunction"])(o)?o():o}function R(t,e,o){L.get(t)[e]=o}class F{constructor(t,e){var o;e=e?Object(y["isFunction"])(e)?e():{...e}:{},null!=(o=e).nested||(o.nested=!0),e.component=t;const i=Object.setPrototypeOf(e,t);L.set(this,i)}static get(t,e){return e instanceof F?e:new F(t,e)}get nested(){return q(this,"nested",!0)}get value(){return q(this,"value",void 0)}get dataPath(){return q(this,"dataPath","")}get name(){return q(this,"name",()=>D(this.dataPath))}get index(){return q(this,"index",()=>E(this.dataPath))}get itemDataPath(){return k(this.dataPath,this.nested)}get parentItemDataPath(){return O(this.dataPath,this.nested)}get itemIndex(){return E(this.itemDataPath)}get parentItemIndex(){return E(this.parentItemDataPath)}get item(){return q(this,"data",()=>j(this.rootItem,this.dataPath,this.nested))}get parentItem(){const t=P(this.rootItem,this.dataPath,this.nested)||null;return t!==this.item?t:null}get rootItem(){return q(this,"rootData",null)}get processedItem(){return q(this,"processedData",null)}get clipboardItem(){return q(this,"clipboardData",null)}get user(){return q(this,"user",null)}get api(){return q(this,"api",null)}get views(){return q(this,"views",null)}get itemLabel(){return q(this,"itemLabel",null)}get formLabel(){return q(this,"formLabel",null)}get component(){return q(this,"component",null)}get schemaComponent(){return q(this,"schemaComponent",null)}get formComponent(){return q(this,"formComponent",null)}get viewComponent(){return q(this,"viewComponent",null)}get dialogComponent(){return q(this,"dialogComponent",null)}get panelComponent(){return q(this,"panelComponent",null)}get resourceComponent(){return q(this,"resourceComponent",null)}get sourceComponent(){return q(this,"sourceComponent",null)}get option(){return q(this,"option",void 0)}get options(){return q(this,"options",void 0)}get query(){return q(this,"query",void 0)}get error(){return q(this,"error",void 0)}get wasNotified(){return q(this,"wasNotified",!1)}get request(){return t=>this.component.request(t)}get format(){return(t,e)=>this.component.format(t,e)}get navigate(){return t=>this.component.navigate(t)}get download(){return t=>this.component.download(t)}get getResourceUrl(){return t=>this.component.getResourceUrl(t)}get notify(){return t=>{this.component.notify(t),R(this,"wasNotified",!0)}}}var z={data(){return{$events:null}},methods:{on(t,e){if(Object(y["isArray"])(t))for(const o of t)this.on(o,e);else if(Object(y["isPlainObject"])(t))for(const o in t)this.on(o,t[o]);else{const o=this.$events||(this.$events=Object.create(null)),{callbacks:i}=o[t]||(o[t]={callbacks:[],queue:[]});i.push(e)}return this},once(t,e){const o=(...i)=>(this.off(t,o),e.apply(this,i));return o.callback=e,this.on(t,o)},off(t,e){if(arguments.length)if(Object(y["isArray"])(t))for(const i of t)this.off(i,e);else if(Object(y["isPlainObject"])(t))for(const i in t)this.off(i,t[i]);else{var o;const i=null==(o=this.$events)?void 0:o[t];if(i)if(e){const{callbacks:t}=i,o=t.findIndex(t=>t===e||t.callback===e);-1!==o&&t.splice(o,1)}else delete this.$events[t]}else delete this.$events;return this},emit(t,...e){var o;const i=null==(o=this.$events)?void 0:o[t];if(i){const{queue:o,callbacks:n}=i;return new Promise(i=>{const a=async()=>{const e=o.shift();if(e){let o;for(const a of n)try{const t=await a.apply(this,e.args);void 0!==t&&(o=t)}catch(i){console.error(`Error during event handler for '${t}':`,i)}e.resolve(o),a()}};o.push({args:e,resolve:i}),1===o.length&&a()})}},hasListeners(t){if(Object(y["isArray"])(t)){for(const e of t)if(!this.hasListeners(e))return!1;return t.length>0}var e;return!(null==(e=this.$events)||!e[t])},delegate(t,e){if(e)if(Object(y["isArray"])(t))for(const o of t)this.delegate(o,e);else this.on(t,(...o)=>e.emit(t,...o));return this}}};const T={Boolean:y["isBoolean"],Number:y["isNumber"],String:y["isString"],Date:y["isDate"],Array:y["isArray"],Object:y["isObject"],RegExp:y["isRegExp"],Function:y["isFunction"]},I=t=>!!t,A=t=>+t,N=t=>String(t),U=t=>Object(y["isDate"])(t)?t:new Date(t),H=t=>Object(y["isArray"])(t)?t:Object(y["isString"])(t)?t.split(","):Object(y["asArray"])(t),W=t=>Object(y["isObject"])(t)?t:!0===t?{}:null,K=t=>Object(y["isRegExp"])(t)?t:new RegExp(t),Y={Boolean:I,Number:A,String:N,Date:U,Array:H,Object:W,RegExp:K};function J(t,e){if(t&&null!=e)for(const i of t){var o;if(null!=(o=T[i.name])&&o.call(T,e))return!0}return!1}function Q(t,e){const o=t&&Y[t.name||t];return o?o(e):e}function G(t){return!!X(t.resource)}function X(t,e={}){var o;const{parent:i,...n}=e;return t=Object(y["isObject"])(t)?{...n,...t}:Object(y["isString"])(t)?{...n,path:t}:null,!t||void 0===i||void 0!==t.parent||null!=(o=t.path)&&o.startsWith("/")||(t.parent=i,t.path||(t.path=".")),t}function Z(t,e){return null!=t&&"collection"===(null==e?void 0:e.type)?{type:"member",...Object(y["pickBy"])(e,(t,e)=>["method","path","parent"].includes(e)),id:""+t}:null}o("b198"),o("b9d5"),o("1c10"),o("ea92"),o("45e1"),o("e100"),o("395c"),o("8296"),o("b5c9"),o("9baa"),o("3326"),o("ddef"),o("8de5"),o("2653"),o("76fe"),o("b980");const tt=new Set;function et(t){tt.has(t)||(tt.add(t),console.warn(t))}var ot={mixins:[z],inject:["api","$verbs","$views","$isPopulated","$schemaComponent","$routeComponent","$dataComponent","$sourceComponent","$resourceComponent","$dialogComponent","$panelComponent"],provide(){return this.providesData?{$dataComponent:()=>this}:{}},data(){return{appState:v,overrides:null}},computed:{sourceSchema(){var t;return null==(t=this.meta)?void 0:t.schema},user(){return v.user},verbs(){return this.$verbs()},views(){return this.$views()},isPopulated(){return this.$isPopulated()},locale(){return this.api.locale},context(){return new F(this,{nested:!1})},rootComponent(){return this.$root.$children[0]},schemaComponent(){return this.$schemaComponent()},routeComponent(){return this.$routeComponent()},formComponent(){const t=this.routeComponent;return null!=t&&t.isForm?t:null},viewComponent(){const t=this.routeComponent;return null!=t&&t.isView?t:null},dataComponent(){return this.providesData?this:this.$dataComponent()},sourceComponent(){return this.$sourceComponent()},resourceComponent(){return this.$resourceComponent()},dialogComponent(){return this.$dialogComponent()},panelComponent(){return this.$panelComponent()},parentSchemaComponent(){var t;return null==(t=this.schemaComponent)?void 0:t.$parent.schemaComponent},parentRouteComponent(){var t;return null==(t=this.routeComponent)?void 0:t.$parent.routeComponent},parentFormComponent(){var t;return null==(t=this.formComponent)?void 0:t.$parent.formComponent},rootData(){var t;return null==(t=this.dataComponent)?void 0:t.data}},beforeCreate(){this.$uid=++it},methods:{getStore(t){return this.store[t]},setStore(t,e){return this.$set(this.store,t,e)},getChildStore(t){return this.getStore(t)||this.setStore(t,{})},getSchemaValue(t,{type:e,default:o,schema:i=this.schema,callback:n=!0}={}){const a=e&&Object(y["asArray"])(e);let r=i?Object(y["isArray"])(t)?Object(y["getValueAtDataPath"])(i,t,()=>{}):i[t]:void 0;if(void 0===r&&void 0!==o)return n&&Object(y["isFunction"])(o)&&!J(a,o)&&(o=o.call(this,this.context)),o;if(J(a,r))return r;if(n&&Object(y["isFunction"])(r)&&(r=r.call(this,this.context)),a&&null!=r&&!J(a,r))for(const s of a){const t=Q(s,r);if(t!==r)return t}return r},getLabel(t,e){return t?this.getSchemaValue("label",{type:String,schema:t})||Object(y["labelize"])(e||t.name):Object(y["labelize"])(e)||""},labelize:y["labelize"],getButtonAttributes(t,e){const o=this.verbs[t]||t;return{class:"dito-button-"+o,title:(null==e?void 0:e.text)||Object(y["labelize"])(o)}},getDragOptions(t,e=!1){return{animation:150,disabled:!t,handle:".dito-button-drag",dragClass:"dito-drag-active",chosenClass:"dito-drag-chosen",ghostClass:"dito-drag-ghost",fallbackClass:"dito-drag-fallback",forceFallback:e}},getQueryLink(t){return{query:t,hash:this.$route.hash}},shouldRender(t=null){return!!t&&this.getSchemaValue("if",{type:Boolean,default:!0,schema:t})},showDialog({components:t,buttons:e,data:o,settings:i={width:480,height:"auto",clickToClose:!1}}){return new Promise((n,a)=>{this.$modal.show(we.component("dito-dialog"),{components:t,buttons:e,data:o,promise:{resolve:n,reject:a}},i)})},getResourcePath(t){var e;(t=X(t),void 0===t.parent)&&(t.parent=null==(e=this.dataComponent)?void 0:e.resource);return this.api.resources.any(X(t))},getResourceUrl(t){const e=this.getResourcePath(t);let o=null;if(e){o=`${this.api.url.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`;const{query:i}=t;if(i){const t=Object.entries(i).map(([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`);o=`${o}?${t.join("&")}`}}return o},async sendRequest({method:t,url:e,resource:o,data:i,params:n,internal:a}){e=e||this.getResourcePath(o),t=t||(null==o?void 0:o.method);const r=!a&&this.api.isApiRequest(e);r&&await this.rootComponent.ensureUser();const s=await this.api.request({method:t,url:e,data:i,params:n});return r&&"patch"===t&&Object(y["equals"])(o,Z(this.user.id,this.api.users))&&await this.rootComponent.fetchUser(),s},request({cache:t,...e}){const o=t&&{global:this.appState,local:this.dataComponent}[t],i=null==o?void 0:o.loadCache,n=i&&`${e.method||"get"} ${e.url} ${JSON.stringify(e.params||"")} ${JSON.stringify(e.data||"")}`;if(i&&n in i)return i[n];const a=this.sendRequest(e).then(t=>t.data).catch(t=>{var e;const o=null==(e=t.response)?void 0:e.data;throw o?Object.assign(new Error(o.message),o):t});return i&&(i[n]=a),a},load(t){return et("load() is deprecated. Use request() instead."),this.request(t)},format(t,{locale:e=this.api.locale,defaults:o=this.api.formats,...i}={}){return Object(y["format"])(t,{locale:e,defaults:o,...i})},async navigate(t){return new Promise(e=>{this.$router.push(t,()=>e(!0),()=>e(!1))})},download(t={}){Object(y["isString"])(t)&&(t={url:t});const{url:e,filename:o}=t,i=document.createElement("a");i.href=e,o&&(i.download=o);const{body:n}=document;n.appendChild(i),i.click(),n.removeChild(i)},notify(t){this.rootComponent.notify(t)},closeNotifications(){this.rootComponent.closeNotifications()},setupSchemaFields(){this.setupMethods(),this.setupComputed(),this.setupEvents()},setupMethods(){for(const[t,e]of Object.entries(this.schema.methods||{}))Object(y["isFunction"])(e)?this[t]=e:console.error(`Invalid method definition: ${t}: ${e}`)},setupComputed(){for(const[t,e]of Object.entries(this.schema.computed||{})){const o=Object(y["isFunction"])(e)?{get:e}:Object(y["isObject"])(e)&&Object(y["isFunction"])(e.get)?e:null;o?Object.defineProperty(this,t,o):console.error(`Invalid computed property definition: ${t}: ${e}`)}},setupEvents(){const{watch:t,events:e}=this.schema;if(t){const e=Object(y["isFunction"])(t)?t.call(this):t;Object(y["isObject"])(e)&&this.$nextTick(()=>{for(const[t,o]of Object.entries(e)){const e=this.schemaComponent.getComponentByName(t)?"data."+t:t;this.$watch(e,o)}})}const o=(t,e,o)=>{Object(y["isFunction"])(o)?this.on(Object(y["hyphenate"])(e),o):console.error(`Invalid event definition: ${t}: ${o}`)};if(e)for(const[i,n]of Object.entries(e))o(i,i,n);for(const[i,n]of Object.entries(this.schema))/^on[A-Z]/.test(i)&&o(i,i.slice(2),n)},async emitEvent(t,{context:e=null,parent:o=null}={}){const i=this.hasListeners(t),n=null==o?void 0:o.hasListeners(t);if(i||n){["load","change"].includes(t)&&await this.$nextTick();const a=()=>e=F.get(this,e),r=i?await this.emit(t,a()):void 0;return n&&!1!==r&&o.emit(t,a()),r}},emitSchemaEvent(t,e){return this.schemaComponent.emitEvent(t,e)}}};let it=0;const nt={validate:t=>Object(y["isCreditCard"])(t),message:"is invalid"},at={validate:(t,e)=>{const o="*"===e?"+":`{1,${e}}`;return new RegExp(`^[-+]?\\d*(\\.\\d${o})?$`).test(t)},message:(t,e)=>`must be numeric and may contain ${e&&"*"!==e?e:""} decimal points`},rt={validate:t=>Object(y["isEmail"])(t),message:"must be a valid email"},st={validate:t=>Object(y["isHostname"])(t),message:"is not a host name"},lt={validate:t=>Object(y["isDomain"])(t),message:"is not a domain"},dt={validate:t=>Object(y["isInteger"])(t),message:"must be whole number"},ct={validate:(t,e)=>t<=e,message(t,e){return`must be ${e} or less`}},ut={validate:(t,e)=>t>=e,message(t,e){return`must be ${e} or more`}},pt={validate:()=>!0},ht={validate:(t,[e,o])=>t>=e&&t<=o,message(t,[e,o]){return`must be between ${e} and ${o}`}},mt={validate:(t,e,{password:o})=>null!=t&&""!==t||o&&void 0===t,message:"is required",nullish:!0},bt={validate:t=>Object(y["isUrl"])(t),message:"is not a valid URL"};var ft={data(){return{isTouched:!1,isDirty:!1,isValidated:!1,isValid:!1,errors:null}},computed:{events(){return{focus:()=>{this.isTouched=!0},blur:()=>{this.validate()},change:()=>{this.markDirty()},input:()=>{this.markDirty()}}}},methods:{resetValidation(){this.isTouched=!1,this.isDirty=!1,this.isValidated=!1,this.isValid=!1,this.clearErrors()},validate(t=!0){let e=!0;t&&this.clearErrors();const{value:o}=this;for(const[n,a]of Object.entries(this.validations)){const r=i[n];if(r&&(r.nullish||null!=o)){const{validate:i,message:n}=r;if(!i(o,a,this.validations)&&(e=!1,t)){const t=Object(y["isFunction"])(n)?n(o,a,this):n;this.addError(t,!0)}}}return t&&(this.isValidated=!0,this.isValid=e),e},verify(){return this.validate(!1)},markDirty(){this.isDirty=!0,this.isValidated=!1,this.isValid=!1,this.clearErrors()},addError(t,e=!1){if(this.errors||(this.errors=[]),e){const e=this.label||this.placeholder||this.name;t=`The ${e} field ${t}.`}this.errors.push(t),this.$emit("errors",this.errors)},showValidationErrors(t,e){this.errors=[];for(const{message:o}of t)this.addError(o,!0);return e&&this.focus(),!0},getErrors(){return this.errors?[...this.errors]:null},clearErrors(){this.errors=null,this.$emit("errors",this.errors)}}};function gt(t,{type:e,default:o,get:i,set:n,callback:a=!0}={}){Object(y["isString"])(t)&&t.includes(".")&&(t=Object(y["parseDataPath"])(t));const r=Object(y["normalizeDataPath"])(t);return{get(){const n=!i||i.length>0?this.overrides&&r in this.overrides?this.overrides[r]:this.getSchemaValue(t,{type:e,default:o,callback:a}):void 0;return i?i.call(this,n):n},set(t){n?n.call(this,t):(this.overrides||(this.overrides={}),this.$set(this.overrides,r,t))}}}function vt(t,{default:e,get:o,set:i}={}){return{get(){let i=this.getStore(t);return void 0===i&&void 0!==e&&(i=Object(y["isFunction"])(e)?e.call(this,this.context):e,this[t]=i,this.getStore(t)),o?o.call(this,i):i},set(e){i&&void 0===(e=i.call(this,e))||this.setStore(t,e)}}}const yt=new WeakMap;let xt=0;function wt(t,e){let o=yt.get(t);return o||(o=o=e||"@"+ ++xt,yt.set(t,o)),o}var _t=o("c8e8");class kt{constructor(){this.graph={},this.references={}}set(t,e,o){t=Object(y["parseDataPath"])(t);let i=this.graph;for(const r of t){var n,a;const t=Object(y["isInteger"])(+r)?"*":r;i=null!=(a=(n=i)[t])?a:n[t]={}}i.$settings={...o,...i.$settings,...e}}addSource(t,e){this.set(t,{type:"source",schema:e},{related:!1})}setSourceRelated(t){this.set(t,{related:!0,reference:this.getReferencePrefix(t)})}addRelation(t,e,o){this.set(t,{type:"relation",schema:o,internal:!!e,reference:this.getReferencePrefix(e)})}getReferencePrefix(t){var e,o;return t?null!=(o=(e=this.references)[t])?o:e[t]=Object(_t["nanoid"])(6):null}flatten(){const t=e=>{const o=[];for(const[i,{$settings:n,...a}]of Object.entries(e)){n&&o.push([i,n]);for(const[e,n]of t(a))o.push([`${i}/${e}`,n])}return o};return t(this.graph)}process(t,e,{target:o}){const i="clipboard"===o;i&&delete e[t.idKey||"id"];for(const[n,a]of this.flatten()){const{type:t,schema:o,internal:r,related:s,reference:l}=a,d="source"===t,c="relation"===t;if(d||c&&r){const t=Object(y["getValueAtDataPath"])(e,n,()=>null),a=i&&d&&!s,u=i&&(c&&r||d&&s);for(const e of Object(y["asArray"])(t).flat()){const t=d&&o.idKey||c&&o.relateBy||"id";let n=null==e?void 0:e[t];if(null!=n&&(a&&delete e[t],u||B(n))){B(n)&&(n=n.slice(1));const o=i?t:d?"#id":"#ref",a=i?"@"+n:l?`${l}-${n}`:n;e[o]=a,o!==t&&delete e[t]}}}}return e}}const Ct={},Ot={};function jt(t,e){Ct[t]=e}function Pt(t,e=!1){const o=Ct[t]||null;if(!o&&!e&&!Ot[t])throw Ot[t]=!0,new Error(`Unknown Dito component type: '${t}'`);return o}function St(t,e){const o=[...Object.values((null==t?void 0:t.tabs)||{}),t];for(const i of o)if(i){const t=e(i);if(void 0!==t)return t}}function Dt(t,e){return St(t,t=>{for(const[o,i]of Object.entries(t.components||{})){const t=e(i,o);if(void 0!==t)return t}})}function Et(t,e){return!0===Dt(t,(t,o)=>!!e(t,o)||void 0)}async function $t(t){let e=Object(y["isFunction"])(t)?t():t;return Object(y["isPromise"])(e)&&(e=await e),{...e}}async function Mt(t,e,o,i,n){const a=[];Vt(e,o,i),zt(o)?await Bt(e,o,i,a,0):await Lt(e,o,a,1),n.push({path:"/"+o.path,children:a,component:t,meta:{api:e,schema:o}})}function Bt(t,e,o,i,n){var a;return e.level=n,null==(a=de(e))||null==a.processSchema?void 0:a.processSchema(t,e,o,i,n)}function Vt(t,e,o){e.name=o,e.path=e.path||t.normalizePath(o)}async function Lt(t,e,o,i){const n=[];Dt(e,(e,a)=>{n.push(Bt(t,e,a,o,i))}),await Promise.all(n)}async function qt(t,e,o){let{form:i,forms:n,components:a}=e;n?n=e.forms=await Ft(n):i?i=e.form=await Rt(i):a&&Object(y["isObject"])(a)&&(i={components:a}),n||(n={default:i});const r=[];for(const s of Object.values(n))await Lt(t,s,r,o+1);return r}async function Rt(t){if(Object(y["isFunction"])(t)&&(t=t()),Object(y["isPromise"])(t)&&(t=await t),t&&!("components"in t)){const e=Object.keys(t)[0];t=t[e],t&&"default"!==e&&(t.name=e)}return t}async function Ft(t){const e=await Promise.all(Object.values(t).map(Rt));return Object.keys(t).reduce((t,o,i)=>(t[o]=e[i],t),{})}function zt(t){return!!t.type}function Tt(t){return Object(y["isObject"])(t)&&!!(t.form||t.forms||t.components)}function It(t){return Object.keys((null==t?void 0:t.forms)||{}).length>1}function At(t,e){const{view:o}=t,i=o&&e.views[o];return i?Tt(i)?i:St(i,t=>{var e;const i=null==(e=t.components)?void 0:e[o];if(Tt(i))return i}):null}function Nt(t,e){const o=At(t,e);return o?0===o.level?"/"+o.path:`/${o.path}/${o.path}`:null}function Ut(t,e,o){const i=At(t,e);if(i)t=i;else if(t.view)throw new Error(`Unknown view: '${t.view}'`);let{form:n,forms:a,components:r,compact:s}=t;if(!n&&!a){if(!r)return{};n={components:r,compact:s}}return a||(a={default:n}),Object.fromEntries(Object.entries(a).map(([t,i])=>{var n;return Object(y["isFunction"])(i.components)&&(i={...i,components:i.components(e)}),[t,null!=(n=null==o?void 0:o(i))?n:i]}))}function Ht(t,e){return t[null==e?void 0:e.type]||t.default||null}function Wt(t,e,o){return Ht(Ut(t,o),e)}function Kt(t){return!1!==t.label}function Yt(t){return!!t.compact}function Jt(t){return!(!t.inlined&&!t.components)}function Qt(t){var e;return!(!t.nested&&!0!==(null==(e=de(t))?void 0:e.defaultNested))}function Gt(t){var e;return!(null==(e=de(t))||!e.omitPadding)}function Xt(t){var e;const o=t.default,i=void 0!==o?o:null==(e=de(t))?void 0:e.defaultValue;return Object(y["isFunction"])(i)?i(t):Object(y["clone"])(i)}function Zt(t){const e=de(t);return!!(null!=e&&e.excludeValue||null!=e&&null!=e.ignoreMissingValue&&e.ignoreMissingValue(t))}function te(t){const e=t=>Object.values(t||{}).some(Kt);return e(t.components)||Object.values(t.tabs||{}).some(e)}function ee(t,e={},o){const i={component:o,rootData:e},n=(t,e,o)=>{o in e||Zt(t)||(e[o]=Xt(t))};return ae(t,e,null,null,n,null,i)}function oe(t,e,o,i,{component:n=null,rootData:a=(null==n?void 0:n.rootData)}={}){const{compute:r}=t;if(r){const t=r(F.get(n,{value:e[o],name:o,data:e,dataPath:i,rootData:a}));void 0!==t&&s.a.set(e,o,t)}return o in e||Zt(t)||s.a.set(e,o,Xt(t)),e[o]}function ie(t,e,o){if(o.schemaOnly){const o={},{idKey:i="id",orderKey:n}=t,a=e[i];return void 0!==a&&(o[i]=a),It(t)&&(o.type=e.type),n&&(o[n]=e[n]),o}return{...e}}function ne(t,e,o,i,{component:n,schemaOnly:a,target:r}={}){const s={component:n,schemaOnly:a,target:r,rootData:o},l=ie(e,o,s),d=new kt,c=(t,e,o,i,n)=>{let a=oe(t,e,o,i,s);if(Object(y["isArray"])(a)){const{wrapPrimitives:e,orderKey:o,idKey:i="id"}=t;a=e?a.map(t=>({[e]:t})):[...a],o&&"clipboard"===r&&a.sort((t,e)=>{const o=null==t?void 0:t[i],n=null==e?void 0:e[i];return null==o||B(o)?1:null==n||B(n)?-1:o-n})}n[o]=a},u=(t,e,o,i,a)=>{const{wrapPrimitives:r,exclude:l,process:c}=t;let u=a[o];const p=de(t),h=()=>F.get(n,{value:u,name:o,data:e,dataPath:i,rootData:s.rootData,processedData:a});if(r&&Object(y["isArray"])(u)&&(u=u.map(t=>t[r])),c&&(u=c(h())),null!=p&&p.excludeValue||!0===l||Object(y["isFunction"])(l)&&l(h()))delete a[o];else{const e=null==p?void 0:p.processValue;e&&(u=e(t,u,i,d)),a[o]=u}};return ae(t,o,i,l,c,u,s),d.process(e,l,s)}function ae(t,e,o,i,n,a,r){const s=t=>{const s=(t,e)=>null!=t?x(t,e):null;if(t)for(const[l,d]of Object.entries(t))if(Qt(d)){const t=s(o,l),c=(o,l=null)=>{var c;const u=null!==l?s(t,l):t,p=F.get(r.component,{data:e,value:o,dataPath:u,index:l,rootData:r.rootData}),h=(null==(c=de(d))?void 0:c.getFormSchemasForProcessing)||Ut,m=h(d,p),b=Ht(m,o);if(b){const t=i?ie(d,o,r):null;return ae(b,o,u,t,n,a,r)}return{...o}};null==n||n(d,e,l,t,i);let u=i?i[l]:e[l];null!=u&&Tt(d)&&(u=Object(y["isArray"])(u)?i?u.map(c):u.forEach(c):c(u),i&&(i[l]=u)),null==a||a(d,e,l,t,i)}else ae(d,e,o,i,n,a,r)};if(s(t.components),t.tabs)for(const l of Object.values(t.tabs))s(l.components);for(const l of he(t,o))s(l.schema.components);return i||e}function re(t,e){const o=(t,o)=>t.length>0?t.reduce((t,i)=>{const n=o(i);return n&&(t[n.name]=n&&e?{...e,...n}:n),t},{}):null;return Object(y["isArray"])(t)?o(t,t=>Object(y["isObject"])(t)?t:{name:Object(y["camelize"])(t,!1)}):Object(y["isObject"])(t)?o(Object.entries(t),([t,e])=>Object(y["isObject"])(e)?{name:t,...e}:Object(y["isString"])(e)?{name:t,label:e}:null):null}function se(t){return re(t,{type:"button"})}function le(t){return Object(y["isObject"])(t)?t.type:t}function de(t){var e,o;return null!=(e=null==(o=Pt(le(t),!0))?void 0:o.options)?e:null}function ce(t){var e,o;return null!=(e=null==(o=de(t))||null==o.getSourceType?void 0:o.getSourceType(le(t)))?e:null}function ue(t,e){return t?{schema:t,dataPath:t.name?x(e,t.name):e}:null}function pe(t,e,o=[]){if(t)for(const[i,n]of Object.entries(t)){const t=ue(n,x(e,i));t&&o.push(t)}return o}function he(t,e,o=null){var i;const n=null==(i=de(t))||null==i.getPanelSchema?void 0:i.getPanelSchema(t,e,o),a=n?[ue(n,e)]:[];return pe(t.panels,e,a),a}function me(t){return"object"===ce(t)}function be(t){return"list"===ce(t)}function fe(t,e){const o=e[t.idKey||"id"];return null!=o?String(o):void 0}function ge(t,e){return wt(e,fe(t,e))}var ve={mixins:[ft],inject:["tabComponent"],props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Object,Array],required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},single:{type:Boolean,default:!1},nested:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{parsedValue:null,focused:!1}},computed:{name(){return this.schema.name},type(){return this.schema.type},component(){return this.resolveTypeComponent(this.schema.component)},context(){return new F(this,{nested:this.nested})},value:{get(){const t=oe(this.schema,this.data,this.name,this.dataPath,{component:this}),{format:e}=this.schema;return e?e.call(this,new F(this,{value:t})):t},set(t){const{parse:e}=this.schema;this.parsedValue=e?e.call(this,new F(this,{value:t})):t,this.$set(this.data,this.name,this.parsedValue)}},item(){return j(this.rootItem,this.dataPath,this.nested)},parentItem(){return P(this.rootItem,this.dataPath,this.nested)},rootItem(){return this.rootData},processedItem(){const{schemaComponent:t}=this;return j(t.processedItem,this.dataPath.slice(t.dataPath.length),this.nested)},label:gt("label",{type:[String,Boolean],get(t){return Object(y["isString"])(t)?t:!1!==t&&this.$options.generateLabel?this.getLabel(this.schema):null}}),width:gt("width",{type:[String,Number]}),visible:gt("visible",{type:Boolean,default(){return this.typeOptions.defaultVisible}}),exclude:gt("exclude",{type:Boolean,default:!1}),required:gt("required",{type:Boolean,default:!1}),readonly:gt("readonly",{type:Boolean,default:!1}),autofocus:gt("autofocus",{type:Boolean,default:!1}),clearable:gt("clearable",{type:Boolean,default:!1}),placeholder:gt("placeholder",{type:String}),autocomplete:gt("autocomplete",{type:String}),attributes(){const{nativeField:t,textField:e}=this.$options,o={disabled:this.disabled};return t&&(o.name=this.name,this.label&&(o.title=this.label),o.readonly=this.readonly,o.autofocus=this.autofocus,e&&(o.placeholder=this.placeholder,o.autocomplete=this.autocomplete)),o},listeners(){const t=this.getListeners(),{events:e={}}=this.schema;if(e)for(const o of Object.keys(e))t[o]||(t[o]=()=>this.emitEvent(o));return t},validations(){const t={...this.getValidations()};this.required&&(t.required=!0);for(const[e,o]of Object.entries(this.schema.rules||{}))void 0===o?delete t[e]:t[e]=o;return t},providesData(){return!1},showClearButton(){return this.clearable&&null!=this.value}},created(){this._register(!0),this.setupSchemaFields()},beforeDestroy(){this._register(!1)},methods:{_register(t){this.nested&&(this.schemaComponent._registerComponent(this,t),this[t?"on":"off"](this.events))},getListeners(){return{focus:this.onFocus,blur:this.onBlur,input:this.onInput,change:this.onChange}},getValidations(){return null},focus(){var t;this.schemaComponent.focus(),null==(t=this.tabComponent)||t.focus();const[e]=Object(y["asArray"])(this.$refs.element);e&&this.$nextTick(()=>{var t,o;(e.focus(),this.disabled)&&(null==(t=(o=e.$el||e).scrollIntoView)||t.call(o))})},clear(){this.value=null,this.onChange()},onFocus(){this.focused=!0,this.emitEvent("focus")},onBlur(){this.focused=!1,this.emitEvent("blur")},onInput(){this.emitEvent("input")},onChange(){this.emitEvent("change",{context:void 0!==this.parsedValue?{value:this.parsedValue}:null,parent:this.schemaComponent})}}};const ye={},xe=s.a.extend({components:ye,mixins:[ot],methods:{getTypeComponent:Pt,resolveComponent(t,e=[]){return t?async()=>{var o;let i=Object(y["isFunction"])(t)?await t():Object(y["isPromise"])(t)?await t:t;return i=(null==(o=i)?void 0:o.default)||i,i.mixins=e,i.components=ye,i}:t},resolveDitoComponent(t){return this.resolveComponent(t,[ot])},resolveTypeComponent(t){return this.resolveComponent(t,[ot,ve])}}});xe.component=function(t,e){if(e){e={name:t,...e};const o=this.extend(e);return ye[t]=o,o}return ye[t]||s.a.component(t)};var we=xe;class _e{hasRole(...t){if(this.roles)for(const e of t)if(this.roles.includes(e))return!0;return!1}}var ke=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isLastRoute?t.shouldRender(t.viewSchema)?o("div",{staticClass:"dito-view dito-scroll-parent"},[o("dito-schema",{staticClass:"dito-scroll",attrs:{schema:t.viewSchema,data:t.data,meta:t.meta,store:t.getChildStore(t.name),disabled:t.isLoading,generateLabels:!1,menuHeader:!0}})],1):t._e():o("router-view",{key:t.name})},Ce=[],Oe={provide(){return{$schemaParentComponent:()=>this}},data(){return{schemaComponents:[]}},computed:{mainSchemaComponent(){return this.schemaComponents[0]}},methods:{_registerSchemaComponent(t,e){const{schemaComponents:o}=this;e?o.push(t):o.splice(o.indexOf(t),1)}}},je={mixins:[Oe],computed:{errors(){return this.schemaComponents.reduce((t,{errors:e})=>e&&t?t.concat(e):e,null)},isTouched(){return this.schemaComponents.some(t=>t.isTouched)},isDirty(){return this.schemaComponents.some(t=>t.isDirty)},isValid(){return this.schemaComponents.every(t=>t.isValid)},isValidated(){return this.schemaComponents.every(t=>t.isValid)}},methods:{validateAll(t,e=!0){return this.schemaComponents.every(o=>o.validateAll(t,e))},verifyAll(t){return this.schemaComponents.every(e=>e.verifyAll(t))},resetValidation(){this.schemaComponents.forEach(t=>t.resetValidation())},clearErrors(){this.schemaComponents.forEach(t=>t.clearErrors())},showValidationErrors(t,e){this.schemaComponents.forEach(o=>o.showValidationErrors(t,e))}}},Pe={mixins:[je],provide(){return{$routeComponent:()=>this}},beforeRouteUpdate(t,e,o){this.beforeRouteChange(t,e,o)},beforeRouteLeave(t,e,o){this.beforeRouteChange(t,e,o)},data(){return{reload:!1,store:{},loadCache:{}}},computed:{routeComponent(){return this},routeRecord(){return this.$route.matched[this.$vnode.data.routerViewDepth]},isLastRoute(){const{matched:t}=this.$route;return this.routeRecord===t[t.length-1]},isLastUnnestedRoute(){const{matched:t}=this.$route;for(let e=t.length-1;e>=0;e--){const o=t[e];if(!o.meta.nested)return this.routeRecord===o}return!1},isNestedRoute(){return this.meta.nested},meta(){var t;return null==(t=this.routeRecord)?void 0:t.meta},path(){return this.getRoutePath(this.routeRecord.path)},label(){return this.getLabel(this.schema)},breadcrumb(){const{breadcrumb:t}=this.schema||{};return t||`${this.breadcrumbPrefix} ${this.label}`},breadcrumbPrefix(){return""},param(){var t;return this.$route.params[null==(t=this.meta)?void 0:t.param]||null},doesMutate(){return!1}},created(){this.appState.routeComponents.push(this)},destroyed(){const{routeComponents:t}=this.appState;t.splice(t.indexOf(this),1)},methods:{beforeRouteChange(t,e,o){let i=!0;const n=e.path.startsWith(this.path)&&!t.path.startsWith(this.path)&&e.path!==t.path&&(this.isFullRouteChange(t,e)||t.path.length<=e.path.length);n&&(this.doesMutate?i=this.isValidated||this.validateAll():this.isDirty&&(i=window.confirm(`You have unsaved changes. Do you really want to ${this.verbs.cancel}?`))),o(i)},getRoutePath(t){return this.$route.path.split("/").slice(0,t.split("/").length).join("/")},getChildPath(t){return`${this.path}/${t}`},isFullRouteChange(t,e){const o=this.path.match(/^(\/[^/]*)/)[1];return!Object(y["getCommonPrefix"])(t.path,e.path).startsWith(o)}}},Se=we.component("dito-view",{mixins:[Pe],provide(){return{$sourceComponent:()=>{var t;return(null==(t=this.mainComponent)?void 0:t.sourceComponent)||null},$resourceComponent:()=>{var t;return(null==(t=this.mainComponent)?void 0:t.resourceComponent)||null}}},data(){return{isView:!0,isLoading:!1,data:{}}},computed:{schema(){return this.meta.schema},name(){return this.schema.name},isSingleComponentView(){return zt(this.schema)},mainComponent(){return this.mainSchemaComponent.getComponentByDataPath(this.name)},viewSchema(){const{schema:t}=this;return this.isSingleComponentView?{name:t.name,components:{[t.name]:{...t,label:!1}}}:t},providesData(){return Et(this.viewSchema,t=>G(t))}},watch:{$route(t,e){this.isFullRouteChange(t,e)&&(this.isLoading=!1,this.data={})}},methods:{setData(t){this.data=t},getChildPath(t){return this.isSingleComponentView?this.path:`${this.path}/${t}`},setLoading(t){this.isLoading=!!t}}}),De=Se;function Ee(t,e,o,i,n,a,r,s){var l,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=l):n&&(l=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:d}}var $e=Ee(De,ke,Ce,!1,null,null,null),Me=$e.exports,Be=o("2214"),Ve={data(){return{domHandlers:[]}},beforeDestroy(){for(const{remove:t}of this.domHandlers)t();this.domHandlers=[]},methods:{domOn(t,e,o){const i=Object(Be["addEvents"])(t,Object(y["isObject"])(e)?e:{[e]:o});return this.domHandlers.push(i),i}}},Le=we.component("dito-root",{mixins:[Ve],provide(){return{$views:()=>this.resolvedViews}},props:{unresolvedViews:{type:[Object,Function,Promise],required:!0},options:{type:Object,default:()=>({})}},data(){return{resolvedViews:{},allowLogin:!1,loadingCount:0}},computed:{notifications(){return this.$refs.notifications},isLoading(){return this.loadingCount>0}},created(){this.appState.title=document.title||"Dito.js Admin",this.appState.routeComponents=[]},async mounted(){this.domOn(document,{click:t=>{t.target.closest(".dito-label")||(this.appState.activeLabel=null)},keyup:t=>{"Tab"===t.code&&(this.appState.activeLabel=null)}});try{this.allowLogin=!1,await this.fetchUser()?await this.resolveViews():await this.login()}catch(t){console.error(t)}this.allowLogin=!0},methods:{notify({type:t="info",title:e,text:o}={}){e||(e={warning:"Warning",error:"Error",info:"Information",success:"Success"}[t]||"Notification"),o=`<p>${Object(y["asArray"])(o).join("</p> <p>")}</p>`.replace(/\n|\r\n|\r/g,"<br>");const i={warning:"warn",error:"error",info:"log",success:"log"}[t]||"error";console[i](Object(y["stripTags"])(o));const{notifications:n=!0}=this.api;if(n){const{durationFactor:i=20}=n,a=(40+o.length+e.length)*i;this.$notify({type:t,title:e,text:o,duration:a})}},closeNotifications(){this.notifications.destroyAll()},registerLoading(t){this.loadingCount+=t?1:-1},async login(){this.allowLogin=!0;const t=await this.showDialog({components:{username:{type:"text",autofocus:!0},password:{type:"password"}},buttons:{cancel:{},login:{type:"submit"}}});if(t)try{const e=await this.sendRequest({resource:this.api.users.login,data:t,internal:!0});this.setUser(e.data.user),await this.resolveViews()}catch(i){var e,o;const t=null==(e=i.response)||null==(o=e.data)?void 0:o.error;this.notify({type:"error",title:"Authentication Error",text:t||i}),t||console.error(i,i.response),this.login()}},navigateHome(){return this.navigate("/")},async logout(){try{const t=await this.sendRequest({resource:this.api.users.logout,internal:!0});t.data.success&&(this.setUser(null),this.navigateHome())}catch(t){console.error(t)}},async fetchUser(){let t=null;try{const e=await this.sendRequest({resource:this.api.users.session,internal:!0});t=e.data.user||null}catch(e){this.notify({type:"error",title:"Authentication Error",text:e})}return this.setUser(t),t},setUser(t){this.appState.user=t&&Object.setPrototypeOf(t,_e.prototype),t||(this.resolvedViews={},this.navigateHome())},async ensureUser(){await this.fetchUser()||await this.login()},async resolveViews(){try{this.resolvedViews=await $t(this.unresolvedViews)}catch(o){return o.request||console.error(o),this.login()}const t=[],e=[];for(const[i,n]of Object.entries(this.resolvedViews))e.push(Mt(Me,this.api,n,i,t));await Promise.all(e);for(const i of t)this.$router.addRoute(i)}}}),qe=Le,Re=(o("1523"),Ee(qe,f,g,!1,null,null,null)),Fe=Re.exports,ze=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("nav",{staticClass:"dito-menu dito-scroll-parent"},[o("h1",[t._v(t._s(t.appState.title))]),o("ul",{staticClass:"dito-scroll"},t._l(t.views,(function(e){return o("li",[t.shouldRender(e)?o("router-link",{staticClass:"dito-link",attrs:{to:"/"+e.path,"active-class":"dito-active"}},[t._v(t._s(t.getLabel(e)))]):t._e()],1)})),0)])},Te=[],Ie=we.component("dito-menu",{}),Ae=Ie,Ne=(o("7b69"),Ee(Ae,ze,Te,!1,null,null,null)),Ue=(Ne.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("nav",{staticClass:"dito-header"},[o("div",{staticClass:"dito-trail"},[o("ul",t._l(t.trail,(function(e,i){return o("li",[i===t.trail.length-1?[o("span",{class:t.getBreadcrumbClass(e)},[t._v(t._s(e.breadcrumb))])]:o("router-link",{staticClass:"dito-breadcrumb",attrs:{to:e.path}},[o("span",{class:t.getBreadcrumbClass(e)},[t._v(t._s(e.breadcrumb))])])],2)})),0),t.isLoading?o("spinner",{staticClass:"dito-spinner"}):t._e()],1),t._t("default")],2)}),He=[],We=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"v-spinner"},[o("div",{staticClass:"v-pulse v-pulse1",style:[t.spinnerStyle,t.spinnerDelay1]}),o("div",{staticClass:"v-pulse v-pulse2",style:[t.spinnerStyle,t.spinnerDelay2]}),o("div",{staticClass:"v-pulse v-pulse3",style:[t.spinnerStyle,t.spinnerDelay3]})])},Ke=[],Ye={name:"PulseLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}},Je=Ye,Qe=(o("30ad"),Ee(Je,We,Ke,!1,null,null,null)),Ge=Qe.exports;const Xe=we.component("spinner",Ge);var Ze=we.component("dito-header",{props:{spinner:{type:Object,default:null},isLoading:{type:Boolean,default:!1}},computed:{trail(){return this.appState.routeComponents.filter(t=>!!t.routeRecord)}},created(){const{size:t="8px",color:e="#999"}=this.spinner||{},{props:o}=Xe.options;o.size.default=t,o.color.default=e},methods:{getBreadcrumbClass(t){return{"dito-dirty":t.isDirty}}}}),to=Ze,eo=(o("fd70"),Ee(to,Ue,He,!1,null,null,null)),oo=(eo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-account"},[o("a",{on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown()}}},[o("span",[t._v(t._s(t.user.username))])]),o("ul",{staticClass:"dito-pulldown",class:{"dito-open":t.pulldown.open}},t._l(t.items,(function(e,i){return o("li",[o("a",{on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown(i)},mouseup:function(e){return t.onPulldownMouseUp(i)}}},[t._v(t._s(e))])])})),0)])}),io=[],no={mixins:[Ve],data(){return{pulldown:{open:!1,startTime:0,checkTime:!0,events:{mousedown:()=>{this.setPulldownOpen(!1),this.pulldown.handlers.remove()},mouseup:()=>{this.onPulldownMouseUp(null)&&this.pulldown.handlers.remove()}},handlers:null}}},methods:{onPulldownMouseDown(t){t?this.checkTime=!1:(this.setPulldownOpen(!0),this.checkTime=!0)},onPulldownMouseUp(t){const{startTime:e}=this.pulldown;if(!this.checkTime||e&&Date.now()-e>250)return this.setPulldownOpen(!1),t&&this.onPulldownSelect(t),!0},onPulldownSelect(){},setPulldownOpen(t){this.pulldown.open=t,this.pulldown.startTime=t?Date.now():0,t&&(this.pulldown.handlers=this.domOn(document,this.pulldown.events))}}},ao=we.component("dito-account",{mixins:[no],data(){return{items:{settings:"Settings",logout:"Logout"}}},methods:{onPulldownSelect(t){switch(t){case"logout":this.rootComponent.logout();break;case"settings":console.info("TODO: Implement Settings");break}}}}),ro=ao,so=(o("c4c0"),Ee(ro,oo,io,!1,null,null,null)),lo=(so.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("form",{staticClass:"dito-dialog",on:{submit:function(t){t.preventDefault()}}},[o("dito-schema",{staticClass:"dito-scroll",attrs:{schema:t.schema,data:t.dialogData}},[o("dito-buttons",{staticClass:"dito-buttons-large",attrs:{slot:"buttons",buttons:t.buttonSchemas,data:t.dialogData},slot:"buttons"})],1)],1)}),co=[],uo=we.component("dito-dialog",{provide(){return{$dialogComponent:()=>this}},props:{components:{type:Object,required:!0},buttons:{type:Object,required:!0},promise:{type:Object,required:!0},data:{type:Object,default:()=>({})}},data(){const t=Object(y["clone"])(this.data);for(const e in this.components)e in t||(t[e]=null);return{windowEvents:null,dialogData:t}},computed:{dialogComponent(){return this},name(){return this.$parent.name},schema(){return{components:this.components}},buttonSchemas(){return Object.entries(se(this.buttons)).reduce((t,[e,o])=>{const{type:i,events:n}=o;if(!n){const t="submit"===i?()=>this.accept():"cancel"===e?()=>this.cancel():null;t&&(o={...o,events:{click:t}})}return t[e]=o,t},{})},hasCancel(){return Object.keys(this.buttonSchemas).includes("cancel")}},mounted(){this.windowEvents=Object(Be["addEvents"])(window,{keyup:()=>{27===event.keyCode&&this.cancel()}})},destroyed(){this.windowEvents.remove()},methods:{hide(){this.$modal.hide(this.name)},resolve(t){this.promise.resolve(t),this.hide()},reject(t){this.promise.reject(t),this.hide()},accept(){this.resolve(this.dialogData)},cancel(){this.hasCancel&&this.resolve(null)}}}),po=uo,ho=(o("ff0e"),Ee(po,lo,co,!1,null,null,null)),mo=(ho.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.content?o(t.options.tag||t.tag,{tag:"component",class:t.classes,style:t.styles},[t._v(t._s(t.options.text))]):t._e()}),bo=[],fo=we.component("dito-element",{props:{tag:{type:String,default:"span"},content:{type:[String,Object]}},computed:{options(){const{content:t}=this;return Object(y["isObject"])(t)?t:{text:t}},classes(){return{...this.$attrs.class,...go(this.options.class)}},styles(){return{...this.$attrs.style,...go(this.options.style)}}}});function go(t){return Object(y["asArray"])(t).reduce((t,e)=>(Object(y["isString"])(e)?t[e]=!0:Object(y["isObject"])(e)&&Object.assign(t,e),t),{})}var vo=fo,yo=Ee(vo,mo,bo,!1,null,null,null),xo=(yo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.text||t.collapsible?o(t.tag,t._g({tag:"component",staticClass:"dito-label",class:{"dito-active":t.isActive}},t.listeners),[t.collapsible?o("div",{staticClass:"dito-chevron",class:{"dito-opened":!t.collapsed}}):t._e(),t._l(t.prefixes,(function(t,e){return o("dito-element",{key:"prefix-"+e,staticClass:"dito-label-prefix",attrs:{tag:"span",content:t}})})),o("label",{attrs:{for:t.dataPath},domProps:{innerHTML:t._s(t.text)}}),t._l(t.suffixes,(function(t,e){return o("dito-element",{key:"suffix-"+e,staticClass:"dito-label-suffix",attrs:{tag:"span",content:t}})})),t._t("edit-buttons")],2):t._e()}),wo=[],_o=we.component("dito-label",{props:{label:{type:[String,Object],default:null},dataPath:{type:String,default:null},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1}},computed:{tag(){return this.collapsible?"a":"div"},text(){const{label:t}=this;return Object(y["isObject"])(t)?null==t?void 0:t.text:t},prefixes(){var t;return Object(y["asArray"])(null==(t=this.label)?void 0:t.prefix)},suffixes(){var t;return Object(y["asArray"])(null==(t=this.label)?void 0:t.suffix)},listeners(){return{...this.collapsible&&{click:this.onClick}}},isActive(){return this.appState.activeLabel===this}},methods:{onClick(){this.appState.activeLabel=this,this.$emit("expand",this.collapsed)}}}),ko=_o,Co=(o("75ca"),Ee(ko,xo,wo,!1,null,null,null)),Oo=(Co.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-schema"},[o("div",{staticClass:"dito-schema-content"},[t.hasLabel||t.hasTabs||t.clipboard?o("div",{staticClass:"dito-schema-header",class:{"dito-schema-menu-header":t.menuHeader}},[t.hasLabel?o("dito-label",{attrs:{label:t.label,dataPath:t.dataPath,collapsible:t.collapsible,collapsed:!t.opened},on:{expand:t.onExpand},scopedSlots:t._u([t.inlined?{key:"edit-buttons",fn:function(){return[t._t("edit-buttons")]},proxy:!0}:null],null,!0)}):t._e(),t.tabs?o("dito-tabs",{attrs:{tabs:t.tabs,selectedTab:t.selectedTab}}):t._e(),o("dito-clipboard",{attrs:{clipboard:t.clipboard,dataPath:t.dataPath,data:t.data}})],1):t._e(),t._l(t.tabs,(function(e,i){return t.hasTabs?o("dito-components",{key:i,ref:"tabs",refInFor:!0,staticClass:"dito-components-tab",attrs:{visible:t.selectedTab===i,tab:i,schema:e,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:!t.inlined&&!t.hasMainComponents,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e()})),o("transition-height",{attrs:{enabled:t.inlined}},[t.hasMainComponents&&t.opened?o("dito-components",{ref:"components",staticClass:"dito-components-main",attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:!t.inlined&&!t.hasTabs,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e()],1),!t.inlined&&t.isPopulated?t._t("buttons"):t._e()],2),t.inlined?[t.hasLabel?t._e():t._t("edit-buttons")]:t._e(),[t.isPopulated&&t.panelSchemas.length>0?o("dito-panels",{attrs:{panels:t.panelSchemas,data:t.data,meta:t.meta,store:t.store,disabled:t.disabled}}):t._e()]],2)}),jo=[],Po={methods:{getItemFormSchema:Wt,getItemUid:ge,getItemId(t,e,o=null){return this.isTransient&&null!==o?String(o):fe(t,e)},getItemDataPath(t,e){let{dataPath:o}=this;return t!==this.schema&&(o=x(o,t.name)),null!=e&&(o=x(o,e)),o},findItemIdIndex(t,e,o){const i=this.isTransient?o:null==e?void 0:e.findIndex((e,i)=>this.getItemId(t,e,i)===o);return-1!==i?i:null},getItemLabel(t,e,{index:o=null,extended:i=!1,asObject:n=!1}={}){const{itemLabel:a}=t;if(!e||!i&&!1===a)return null;let r;const s=()=>r||(r=this.getItemDataPath(t,o));let l;const d=()=>l||(l=this.getLabel(Wt(t,e,this.context)));let c,u,p;if(Object(y["isFunction"])(a)){const t=a.call(this,new F(this,{nested:!1,data:e,value:e,index:o,get dataPath(){return s()},get formLabel(){return d()}}));Object(y["isObject"])(t)?({text:c,prefix:u,suffix:p}=t):c=t,i=!1}else{const{columns:o}=t,i=Object(y["isString"])(a)&&a||be(t)&&o&&Object.keys(o)[0]||"name";c=e[i]}const h=!!c;if(c=c||"",c||(i=!0,be(t)&&null!==o&&(c=""+(o+1))),i){const t=d();t&&(c=`${t} ${h?`'${c}'`:c}`)}return n?{text:c,prefix:u,suffix:p}:c}}},So=we.component("dito-schema",{components:{TransitionHeight:Be["TransitionHeight"]},mixins:[Po],provide(){return{$schemaComponent:()=>this}},inject:["$schemaParentComponent"],props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:Object,default:null},meta:{type:Object,default:()=>({})},store:{type:Object,default:()=>({})},label:{type:[String,Object],default:null},inlined:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},generateLabels:{type:Boolean,default:!0},hasOwnData:{type:Boolean,default:!1},menuHeader:{type:Boolean,default:!1}},data(){const{data:t}=this.schema;return{...t&&Object(y["isFunction"])(t)?t.call(this,this.context):t,containersRegistry:{},componentsRegistry:{},panelsRegistry:{}}},computed:{schemaComponent(){return this},parentSchemaComponent(){return this.hasOwnData?null:this.$parent.schemaComponent},panelSchemas(){const t=pe(this.schema.panels,"");for(const e of Object.values(this.containersRegistry))t.push(...e.panelSchemas);return t},tabs(){return re(this.schema.tabs)},selectedTab(){var t,e;const o=(null==(t=this.$route.hash)?void 0:t.slice(1))||null,i=o&&this.shouldRender(this.tabs[o])?o:(null==(e=this.defaultTab)?void 0:e.name)||null;return i!==o&&this.$router.replace({hash:i}),i},defaultTab(){if(this.tabs){let t=null;for(const e of Object.values(this.tabs)){const{defaultTab:o}=e;if(Object(y["isFunction"])(o)?o.call(this,this.context):o)return e;t||(t=e)}return t}},clipboard(){var t;return null==(t=this.schema)?void 0:t.clipboard},processedData(){return this.processData({target:"server",schemaOnly:!0})},clipboardData(){return{$schema:this.schema.name,...this.processData({target:"clipboard",schemaOnly:!0})}},item(){return this.data},rootItem(){return this.rootData},processedItem(){return this.processedData},clipboardItem(){return this.clipboardData},parentItem(){return P(this.rootData,this.dataPath,!1)},formLabel(){return this.getLabel(this.getItemFormSchema(this.sourceSchema,this.data,this.context))},isDirty(){return this.someComponent(t=>t.isDirty)},isTouched(){return this.someComponent(t=>t.isTouched)},isValid(){return this.everyComponent(t=>t.isValid)},isValidated(){return this.everyComponent(t=>t.isValidated)},hasData(){return!!this.data},hasLabel(){return!!this.label||this.collapsible},hasTabs(){return!this.inlined&&!!this.tabs},hasMainComponents(){const{components:t}=this.schema;return!!t&&Object.keys(t).length>0},opened:vt("opened",{default(){return!this.collapsed}}),containersByDataPath(){return this._listEntriesByDataPath(this.containersRegistry)},componentsByDataPath(){return this._listEntriesByDataPath(this.componentsRegistry)},panelsByDataPath(){return this._listEntriesByDataPath(this.panelsRegistry)}},created(){this._register(!0),this.setupSchemaFields(),this.delegate("change",this.parentSchemaComponent),this.emitEvent("initialize")},beforeDestroy(){this.emitEvent("destroy"),this._register(!1)},methods:{getComponentsByDataPath(t,e){return this._getEntriesByDataPath(this.componentsByDataPath,t,e)},getComponentByDataPath(t,e){return this.getComponentsByDataPath(t,e)[0]||null},getComponentsByName(t,e){return this._getEntriesByName(this.componentsByDataPath,t,e)},getComponentByName(t,e){return this.getComponentsByName(t,e)[0]||null},getComponents(t,e){return this._getEntries(this.componentsByDataPath,t,e)},getComponent(t,e){return this.getComponents(t,e)[0]||null},getPanelsByDataPath(t,e){return this._getEntriesByDataPath(this.panelsByDataPath,t,e)},getPanelByDataPath(t,e){return this.getPanelsByDataPath(t,e)[0]||null},getPanels(t,e){return this._getEntries(this.panelsByDataPath,t,e)},getPanel(t,e){return this.getPanels(t,e)[0]||null},someComponent(t){return this.isPopulated&&Object.values(this.componentsRegistry).some(t)},everyComponent(t){return this.isPopulated&&Object.values(this.componentsRegistry).every(t)},onExpand(t){this.emitEvent("expand",{context:{expand:t}}),(!this.opened||t||this.validateAll())&&(this.opened=t)},onChange(){this.emitEvent("change")},resetValidation(){for(const t of Object.values(this.componentsRegistry))t.resetValidation()},clearErrors(){for(const t of Object.values(this.componentsRegistry))t.clearErrors()},focus(){var t;null==(t=this.parentSchemaComponent)||t.focus(),this.opened=!0},validateAll(t,e=!0){const{componentsByDataPath:o}=this;let i;if(t){const e=Object(y["isFunction"])(t)?t:Object(y["isRegExp"])(t)?e=>t.test(e):null;i=e?Object.keys(o).filter(e):Object(y["isArray"])(t)?t:[t]}e&&this.clearErrors();let n=!0,a=!0;i||(i=Object.keys(o));for(const r of i){const t=this.getComponentsByDataPath(r);for(const o of t)o.validate(e)||(e&&a&&o.focus(),a=!1,n=!1)}return e&&!n&&this.notifyErrors(),n},verifyAll(t){return this.validateAll(t,!1)},async showValidationErrors(t,e){this.clearErrors();let o=!0;const i=[];for(const[n,a]of Object.entries(t)){const r=this.hasOwnData?x(this.dataPath,n):n,s=Object(y["parseDataPath"])(r);let l=!1;const d=this.getComponentsByDataPath(s);for(const t of d)t.showValidationErrors(a,o&&e)&&(l=!0,o=!1);if(!l){const n=s.pop();while(s.length>0){const i=this.getComponentsByDataPath(s);for(const n of i)if(await(null==n.navigateToComponent?void 0:n.navigateToComponent(r,i=>{let n=!1;for(const a of i){const i=t[a.dataPath];i&&a.showValidationErrors(i,o&&e)&&(n=!0,o=!1)}return n})))return;s.pop()}const l=Object(y["labelize"])(n);for(const t of a){const e=l?"The field "+l:"The "+this.formLabel;i.push(`${e} ${t.message}`)}}o=!1}o||this.notifyErrors(i.join("\n"))},notifyErrors(t){this.notify({type:"error",title:"Validation Errors",text:t||"Please correct the highlighted errors."})},resetData(){Object.assign(this.data,ee(this.schema,{},this)),this.clearErrors()},setData(t){for(const e in t)if(e in this.data){this.$set(this.data,e,t[e]);for(const t of this.getComponentsByName(e))t.markDirty()}},filterData(t){const e={};for(const[o,i]of Object.entries(t)){if(Object(y["isArray"])(i)||Object(y["isObject"])(i)){const t=this.getComponentsByName(o);if(t.some(t=>t.providesData))continue}e[o]=i}return e},processData({target:t="clipboard",schemaOnly:e=!0}={}){return ne(this.schema,this.sourceSchema,this.data,this.dataPath,{component:this,schemaOnly:e,target:t})},_register(t){var e;null==(e=this.$schemaParentComponent())||e._registerSchemaComponent(this,t)},_registerContainer(t,e){this._registerEntry(this.containersRegistry,t,e)},_registerComponent(t,e){var o;this._registerEntry(this.componentsRegistry,t,e),null==(o=this.parentSchemaComponent)||o._registerComponent(t,e)},_registerPanel(t,e){this._registerEntry(this.panelsRegistry,t,e)},_registerEntry(t,e,o){const i=e.$uid;o?this.$set(t,i,e):this.$delete(t,i)},_listEntriesByDataPath(t){return Object.values(t).reduce((t,e)=>{const{dataPath:o}=e,i=t[o]||(t[o]=[]);return i.push(e),t},{})},_getEntries(t,e,o){return Object(y["normalizeDataPath"])(e).startsWith(this.dataPath)?this._getEntriesByDataPath(t,e,o):this._getEntriesByName(t,e,o)},_getEntriesByDataPath(t,e,o){return this._filterEntries(t[Object(y["normalizeDataPath"])(e)]||[],o)},_getEntriesByName(t,e,o){return this._filterEntries(t[x(this.dataPath,e)]||[],o)},_filterEntries(t,e){return e?t.filter(e):t}}}),Do=So,Eo=(o("dd36"),Ee(Do,Oo,jo,!1,null,null,null)),$o=(Eo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-schema",{staticClass:"dito-schema-inlined",class:{"dito-schema-compact":t.isCompact},attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,label:t.isCompact?null:t.label,inlined:!0,disabled:t.disabled,collapsed:t.collapsed,collapsible:t.collapsible},scopedSlots:t._u([{key:"edit-buttons",fn:function(){return[t.deletable||t.draggable||t.editable?o("dito-edit-buttons",{attrs:{deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.editPath,schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store},on:{delete:function(e){return t.$emit("delete")}}}):t._e()]},proxy:!0}])})}),Mo=[],Bo=we.component("dito-schema-inlined",{props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},label:{type:[String,Object],default:null},disabled:{type:Boolean,required:!0},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editPath:{type:String,default:null}},computed:{isCompact(){return Yt(this.schema)},hasLabel(){return!this.isCompact&&!!this.label}}}),Vo=Bo,Lo=(o("3ceb"),Ee(Vo,$o,Mo,!1,null,null,null)),qo=(Lo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isPopulated&&t.componentSchemas.length>0?o("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"dito-components"},[t._l(t.componentSchemas,(function(e){var i=e.schema,n=e.dataPath,a=e.nestedDataPath,r=e.nested,s=e.store;return["before"===i.break?o("div",{staticClass:"dito-break"}):t._e(),t.shouldRender(i)?o("dito-component-container",{key:a,attrs:{schema:i,dataPath:n,data:t.data,meta:t.meta,store:s,single:t.isSingleComponent,nested:r,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e(),"after"===i.break?o("div",{staticClass:"dito-break"}):t._e()]}))],2):t._e()}),Ro=[],Fo=we.component("dito-components",{provide(){return{tabComponent:this.tabComponent}},props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:Object,default:null},meta:{type:Object,required:!0},store:{type:Object,required:!0},tab:{type:String,default:null},single:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},generateLabels:{type:Boolean,default:!0}},computed:{tabComponent(){return this.tab?this:null},componentSchemas(){var t,e;const o=null==(t=this.sourceSchema)?void 0:t.wrapPrimitives;return Object.entries((null==(e=this.schema)?void 0:e.components)||{}).map(([t,e])=>{e.name=t;const i=Qt(e),n=x(this.dataPath,t);return{schema:e,dataPath:i&&!o?n:this.dataPath,nestedDataPath:n,nested:i,store:i?this.getChildStore(t):this.store}})},panelSchemas(){return this.componentSchemas.reduce((t,{schema:e,nestedDataPath:o})=>{for(const i of he(e,o,this.schemaComponent))t.push({...i,tabComponent:this.tabComponent});return t},[])},isSingleComponent(){return this.single&&1===this.componentSchemas.length}},created(){this._register(!0)},beforeDestroy(){this._register(!1)},methods:{_register(t){this.schemaComponent._registerContainer(this,t)},focus(){this.tab&&this.$router.push({hash:this.tab})}}}),zo=Fo,To=(o("dda4"),Ee(zo,qo,Ro,!1,null,null,null)),Io=(To.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.buttonSchemas||t.$slots.default?o("div",t._g({staticClass:"dito-buttons"},t.$listeners),[t._l(t.buttonSchemas,(function(e,i){return t.shouldRender(e)?o("dito-button-container",{key:i,attrs:{schema:e,dataPath:i,data:t.data,meta:t.meta,store:t.getChildStore(e.name),disabled:t.disabled,generateLabels:!1}}):t._e()})),t._l(t.$slots.default,(function(e){return e.tag?o("div",{staticClass:"dito-button-container"},[o("dito-vnode",{attrs:{node:e}})],1):t._e()}))],2):t._e()}),Ao=[],No=we.component("dito-buttons",{provide:{tabComponent:null},props:{buttons:{type:Object,default:null},dataPath:{type:String,default:""},data:{type:[Object,Array],default:null},meta:{type:Object,default:()=>({})},store:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},computed:{buttonSchemas(){const{dataPath:t,buttons:e}=this;return e?Object.values(e).reduce((e,o)=>(e[x(t,o.name)]=o,e),{}):null}}}),Uo=No,Ho=Ee(Uo,Io,Ao,!1,null,null,null),Wo=(Ho.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-buttons",{staticClass:"dito-edit-buttons dito-buttons-round",attrs:{buttons:t.buttons,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store},on:{click:function(t){t.stopPropagation()}}},[t.isDraggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.isEditable?o("router-link",t._b({staticClass:"dito-button",attrs:{to:{path:t.editPath},append:""}},"router-link",t.getButtonAttributes(t.verbs.edit),!1)):t._e(),t.isCreatable?o("dito-create-button",{attrs:{schema:t.schema,path:t.createPath,verb:t.verbs.create,text:t.createButtonText}}):t._e(),t.isDeletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){return t.$emit("delete")}}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()],1)}),Ko=[],Yo=we.component("dito-edit-buttons",{props:{draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editPath:{type:String,default:null},createPath:{type:String,default:null},buttons:{type:Object,default:null},schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Object,Array],default:null},meta:{type:Object,required:!0},store:{type:Object,required:!0}},computed:{formLabel(){return this.getLabel(this.schema.form)},isDraggable(){return this.hasOption("draggable")},isEditable(){return this.hasOption("editable")&&!!this.editPath},isCreatable(){return this.hasOption("creatable")&&!!this.createPath},isDeletable(){return this.hasOption("deletable")},createButtonText(){var t;return(null==(t=this.schema.creatable)?void 0:t.label)||this.formLabel&&`${Object(y["capitalize"])(this.verbs.create)} ${this.formLabel}`||null}},methods:{hasOption(t){return!(!this[t]||!1===this.schema[t])}}}),Jo=Yo,Qo=(o("7f8e"),Ee(Jo,Wo,Ko,!1,null,null,null)),Go=(Qo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.componentVisible,expression:"componentVisible"}],class:t.containerClass,style:t.containerStyle},[t.label?o("dito-label",{class:t.componentClass,attrs:{label:t.label,dataPath:t.labelDataPath}}):t._e(),o(t.getTypeComponent(t.schema.type),{tag:"component",staticClass:"dito-component",class:t.componentClass,attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:t.single,nested:t.nested,disabled:t.componentDisabled},on:{errors:t.onErrors}}),o("dito-errors",{attrs:{errors:t.errors}})],1)}),Xo=[];function Zo(t){const e=Object(y["isString"])(t)&&t.match(/^\s*([+-]?\d+)\s*\/\s*([+-]?\d+)\s*$/);if(e){const[,t,o]=e;return parseFloat(t)/parseFloat(o)}return parseFloat(t)}var ti,ei,oi,ii,ni,ai,ri=we.component("dito-component-container",{props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:[Object,Array],required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},single:{type:Boolean,default:!1},nested:{type:Boolean,default:!0},disabled:{type:Boolean,required:!0},generateLabels:{type:Boolean,default:!0}},data(){return{errors:null}},computed:{context(){return new F(this,{nested:this.nested})},typeOptions(){return de(this.schema)||{}},hasLabel(){const{schema:t}=this,{label:e}=t;return!1!==e&&(!!e||this.typeOptions.generateLabel&&this.generateLabels)},label(){return this.hasLabel?this.getLabel(this.schema):null},labelDataPath(){return this.nested?this.dataPath:null},componentWidth:gt("width",{type:[String,Number],default(){return this.typeOptions.defaultWidth},get(t){return void 0===t?1:Object(y["isString"])(t)?t.match(/^\s*[<>]?\s*(.*)$/)[1]:t}}),componentWidthOperator:gt("width",{type:String,get(t){return Object(y["isString"])(t)&&t.match(/^\s*([<>]?)/)[1]||null}}),componentVisible:gt("visible",{type:Boolean,default(){return this.typeOptions.defaultVisible}}),componentDisabled:gt("disabled",{type:Boolean,default:!1,get(t){return t||this.disabled}}),containerClass(){const{class:t}=this.schema;return{[this.$options.name]:!0,"dito-single":this.single,"dito-omit-padding":Gt(this.schema),...Object(y["isString"])(t)?{[t]:!0}:t}},componentBasis(){const t=this.componentWidth,e=[null,"auto","fill"].includes(t)?"auto":/%$/.test(t)?parseFloat(t):/[a-z]/.test(t)?t:100*Zo(t);return Object(y["isNumber"])(e)?e+"%":e},containerStyle(){const t=">"===this.componentWidthOperator||"fill"===this.componentWidth,e="<"===this.componentWidthOperator;return{flex:`${t?1:0} ${e?1:0} ${this.componentBasis}`}},componentClass(){const t="auto"===this.componentBasis;return{"dito-single":this.single,"dito-disabled":this.componentDisabled,"dito-width-fill":!t||"fill"===this.componentWidth,"dito-width-auto":t,"dito-has-errors":!!this.errors}}},methods:{onErrors(t){this.errors=t}}}),si=ri,li=(o("626c"),Ee(si,Go,Xo,!1,null,null,null)),di=li.exports,ci=di.component("dito-button-container",{computed:{width(){return this.schema.width},containerStyle(){return{"flex-basis":this.percentage&&this.percentage+"%"}}}}),ui=ci,pi=Ee(ui,ti,ei,!1,null,null,null),hi=(pi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-create-button"},[t.showPulldown?[o("button",{staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{type:"button",title:t.labelize(t.verb)},on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown()}}},[t._v(t._s(t.text))]),o("ul",{staticClass:"dito-pulldown",class:{"dito-open":t.pulldown.open}},t._l(t.forms,(function(e,i){return o("li",[t.isCreatable(e)?o("a",{class:"dito-type-"+i,on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown(i)},mouseup:function(e){return t.onPulldownMouseUp(i)}}},[t._v(t._s(t.getLabel(e)))]):t._e()])})),0)]:o("button",{staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{type:t.isInlined?"button":"submit",title:t.labelize(t.verb)},on:{click:function(e){return t.createItem(t.forms.default)}}},[t._v(t._s(t.text))])],2)}),mi=[],bi=we.component("dito-create-button",{mixins:[no],props:{schema:{type:Object,required:!0},path:{type:String,required:!0},verb:{type:String,required:!0},text:{type:String,default:null}},computed:{forms(){return Ut(this.schema,this.context)},isInlined(){return Jt(this.schema)},showPulldown(){return Object.keys(this.forms).length>1||!this.forms.default}},methods:{isCreatable(t){return!1!==t.creatable},createItem(t,e=null){if(!this.isCreatable(t))throw new Error("Not allowed to create item for given form");this.isInlined?this.sourceComponent.createItem(t,e):this.$router.push({path:this.path+"/create",query:{type:e},append:!0})},onPulldownSelect(t){this.createItem(this.forms[t],t),this.setPulldownOpen(!1)}}}),fi=bi,gi=(o("c592"),Ee(fi,hi,mi,!1,null,null,null)),vi=(gi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(t.panelTag,{directives:[{name:"show",rawName:"v-show",value:t.visible&&(!t.tabComponent||t.tabComponent.visible),expression:"visible && (!tabComponent || tabComponent.visible)"}],tag:"component",staticClass:"dito-panel",on:{submit:function(t){t.preventDefault()}}},[o("label",{staticClass:"dito-panel-title"},[t._v(t._s(t.getLabel(t.schema)))]),o("dito-schema",{staticClass:"dito-panel-schema",attrs:{schema:t.panelSchema,dataPath:t.panelDataPath,data:t.panelData,meta:t.meta,store:t.store,disabled:t.disabled,hasOwnData:t.hasOwnData}},[o("dito-buttons",{attrs:{slot:"buttons",buttons:t.buttonSchemas,dataPath:t.panelDataPath,data:t.panelData,meta:t.meta,store:t.store,disabled:t.disabled},slot:"buttons"})],1)],1)}),yi=[],xi=we.component("dito-panel",{mixins:[je],provide(){return{$panelComponent:()=>this}},props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},disabled:{type:Boolean,required:!0},tabComponent:{type:we,default:null}},data(){return{ownData:null}},computed:{panelComponent(){return this},buttonSchemas(){return se(this.schema.buttons)},target(){return this.schema.target||this.dataPath},hasOwnData(){return!!this.ownData},panelData(){return this.ownData||this.data},panelSchema(){if(this.hasOwnData)return this.schema;{const{data:t,...e}=this.schema;return e}},panelTag(){return this.hasOwnData?"form":"div"},panelDataPath(){return this.hasOwnData?this.dataPath:this.schemaComponent.dataPath},visible:gt("visible",{type:Boolean,default:!0})},created(){this._register(!0);const{data:t}=this.schema;t&&(this.ownData=Object(y["isFunction"])(t)?t.call(this,this.context):t)},beforeDestroy(){this._register(!1)},methods:{_register(t){this.schemaComponent._registerPanel(this,t)}}}),wi=xi,_i=(o("e2c2"),Ee(wi,vi,yi,!1,null,null,null)),ki=(_i.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-panels"},t._l(t.panels,(function(e){var i=e.schema,n=e.dataPath,a=e.tabComponent;return t.shouldRender(i)?o("dito-panel",{key:t.getPanelKey(n,a),attrs:{schema:i,dataPath:n,data:t.data,meta:t.meta,store:t.getChildStore(i.name),disabled:null!=i.disabled?i.disabled:t.disabled,tabComponent:a}}):t._e()})),1)}),Ci=[],Oi=we.component("dito-panels",{props:{panels:{type:Array,default:null},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},disabled:{type:Boolean,required:!0}},methods:{getPanelKey(t,e){return e?`${e.tab}_${t}`:t}}}),ji=Oi,Pi=(o("8153"),Ee(ji,ki,Ci,!1,null,null,null)),Si=(Pi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tabs"},t._l(t.tabs,(function(e,i){return t.shouldRender(e)?o("router-link",{key:i,staticClass:"dito-link",attrs:{to:{hash:i},"active-class":"dito-active"}},[t._v(t._s(t.getLabel(e,i)))]):t._e()})),1)}),Di=[],Ei=we.component("dito-tabs",{props:{tabs:{type:Object,default:null},selectedTab:{type:String,default:null}}}),$i=Ei,Mi=(o("fb0b"),Ee($i,Si,Di,!1,null,null,null)),Bi=(Mi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.clipboard?o("div",{staticClass:"dito-clipboard dito-buttons dito-buttons-round"},[o("button",{ref:"copyData",staticClass:"dito-button dito-button-copy",attrs:{type:"button",title:"Copy Data",disabled:!t.copyEnabled},on:{click:t.onCopy}}),o("button",{staticClass:"dito-button dito-button-paste",attrs:{type:"button",title:"Paste Data",disabled:!t.pasteEnabled},on:{click:t.onPaste}})]):t._e()}),Vi=[],Li=we.component("dito-clipboard",{mixins:[Ve],props:{clipboard:{type:[Boolean,Object],default:!1},dataPath:{type:String,required:!0},data:{type:[Object,Array],default:null}},data(){return{copyEnabled:!1,pasteEnabled:!1,fixClipboard:!0}},computed:{clipboardOptions(){return Object(y["isObject"])(this.clipboard)?this.clipboard:{}},copyData(){const{copy:t}=this.clipboardOptions;return t?e=>t.call(this,new F(this,{clipboardData:e})):t=>Object(y["clone"])(t)},pasteData(){const{paste:t}=this.clipboardOptions;return t?e=>t.call(this,new F(this,{clipboardData:e})):t=>t}},mounted(){this.domOn(document,{copy:this.checkClipboard}),this.domOn(window,{focus:this.checkClipboard}),this.$watch("data",{immediate:!0,handler:(t,e)=>{t!==e&&this.checkClipboard()}})},methods:{async getClipboardData(t){var e;let{clipboardData:o}=this.appState;try{var i;const t=await(null==(i=navigator.clipboard)||null==i.readText?void 0:i.readText());var n;if(this.fixClipboard&&t)await(null==(n=navigator.clipboard)||null==n.writeText?void 0:n.writeText(t)),this.fixClipboard=!1;t&&(o=JSON.parse(t))}catch(s){t&&(console.error(s,s.name,s.message),"SyntaxError"===s.name&&alert(y["deindent"]`
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("codeflask"),require("@ditojs/ui"),require("tiptap-commands"),require("vuedraggable"),require("tinycolor2"),require("vue-router"),require("@ditojs/utils"),require("vue-multiselect"),require("vue-upload-component"),require("vue"),require("tiptap"),require("filesize-parser"),require("vue-color"),require("vue-notification"),require("vue-js-modal"),require("nanoid"),require("axios"),require("tiptap-extensions"),require("filesize")):"function"===typeof define&&define.amd?define(["codeflask","@ditojs/ui","tiptap-commands","vuedraggable","tinycolor2","vue-router","@ditojs/utils","vue-multiselect","vue-upload-component","vue","tiptap","filesize-parser","vue-color","vue-notification","vue-js-modal","nanoid","axios","tiptap-extensions","filesize"],e):"object"===typeof exports?exports["dito-admin"]=e(require("codeflask"),require("@ditojs/ui"),require("tiptap-commands"),require("vuedraggable"),require("tinycolor2"),require("vue-router"),require("@ditojs/utils"),require("vue-multiselect"),require("vue-upload-component"),require("vue"),require("tiptap"),require("filesize-parser"),require("vue-color"),require("vue-notification"),require("vue-js-modal"),require("nanoid"),require("axios"),require("tiptap-extensions"),require("filesize")):t["dito-admin"]=e(t["Codeflask"],t["@ditojs/ui"],t["TiptapCommands"],t["Vuedraggable"],t["Tinycolor2"],t["VueRouter"],t["@ditojs/utils"],t["VueMultiselect"],t["VueUploadComponent"],t["Vue"],t["Tiptap"],t["FilesizeParser"],t["VueColor"],t["VueNotification"],t["VueJsModal"],t["Nanoid"],t["Axios"],t["TiptapExtensions"],t["Filesize"])})("undefined"!==typeof self?self:this,(function(t,e,o,i,n,a,r,s,l,d,c,u,p,h,m,b,f,g,v){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s="1c25")}({"004f":function(t,e,o){var i=o("c42f"),n=o("4912");t.exports=function(t){if(i(t))return t;throw TypeError(n(t)+" is not a constructor")}},"03e2":function(t,e,o){var i=o("a861");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("41e3412c",i,!0,{sourceMap:!1,shadowMode:!1})},"0446":function(t,e,o){var i=o("da06"),n=o("60de"),a=o("5bb7"),r=o("7d53"),s=r("iterator");t.exports=function(t){if(void 0!=t)return n(t,s)||n(t,"@@iterator")||a[i(t)]}},"0635":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-tabs{margin-left:auto}.dito-tabs a{display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;background:#c7c7c7;padding:11px 12px;margin-left:6px;border-top-left-radius:4px;border-top-right-radius:4px}.dito-tabs a:hover{background:#fff}.dito-tabs a.dito-active,.dito-tabs a:active{background:#ededed}",""]),t.exports=e},"083f":function(t,e,o){var i=o("7526"),n=o("cfd1"),a=o("60de"),r=o("eba0"),s=o("7d53"),l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||n(t))return t;var o,s=a(t,l);if(s){if(void 0===e&&(e="default"),o=s.call(t,e),!i(o)||n(o))return o;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),r(t,e)}},"0d98":function(t,e,o){"use strict";o("6eff")},"0e93":function(t,e){t.exports=!1},"0ebd":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-errors{position:absolute;z-index:1}.dito-errors ul{margin-top:1px;color:#ff3860}",""]),t.exports=e},"0ed3":function(t,e,o){"use strict";function i(t,e){for(var o=[],i={},n=0;n<e.length;n++){var a=e[n],r=a[0],s=a[1],l=a[2],d=a[3],c={id:t+":"+n,css:s,media:l,sourceMap:d};i[r]?i[r].parts.push(c):o.push(i[r]={id:r,parts:[c]})}return o}o.r(e),o.d(e,"default",(function(){return m}));var n="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},r=n&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,d=!1,c=function(){},u=null,p="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,o,n){d=o,u=n||{};var r=i(t,e);return b(r),function(e){for(var o=[],n=0;n<r.length;n++){var s=r[n],l=a[s.id];l.refs--,o.push(l)}e?(r=i(t,e),b(r)):r=[];for(n=0;n<o.length;n++){l=o[n];if(0===l.refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete a[l.id]}}}}function b(t){for(var e=0;e<t.length;e++){var o=t[e],i=a[o.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](o.parts[n]);for(;n<o.parts.length;n++)i.parts.push(g(o.parts[n]));i.parts.length>o.parts.length&&(i.parts.length=o.parts.length)}else{var r=[];for(n=0;n<o.parts.length;n++)r.push(g(o.parts[n]));a[o.id]={id:o.id,refs:1,parts:r}}}}function f(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function g(t){var e,o,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(d)return c;i.parentNode.removeChild(i)}if(h){var n=l++;i=s||(s=f()),e=y.bind(null,i,n,!1),o=y.bind(null,i,n,!0)}else i=f(),e=x.bind(null,i),o=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else o()}}var v=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function y(t,e,o,i){var n=o?"":i.css;if(t.styleSheet)t.styleSheet.cssText=v(e,n);else{var a=document.createTextNode(n),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function x(t,e){var o=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),u.ssrId&&t.setAttribute(p,e.id),n&&(o+="\n/*# sourceURL="+n.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=o;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}},1239:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-markup button,.dito-markup:disabled button{opacity:.6;pointer-events:none}.dito-markup{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-markup{border-color:#ff3860}.dito-disabled.dito-markup,.dito-markup:disabled{color:grey;pointer-events:none;cursor:text}.dito-markup{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-markup::-webkit-input-placeholder{color:grey}.dito-markup::-moz-placeholder{color:grey}.dito-markup::placeholder{color:grey}.dito-focus.dito-markup,.dito-focus.dito-markup .dito-inherit-focus,.dito-markup:focus,.dito-markup:focus-within,.dito-markup:focus-within .dito-inherit-focus,.dito-markup:focus .dito-inherit-focus{border-color:#3898ff}.dito-markup .dito-resize{top:0;left:0;margin:auto;content:\"\";background:currentColor;-webkit-mask:none no-repeat center content-box;mask:none no-repeat center content-box;-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22L22 8M16 22l6-6'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 22L22 8M16 22l6-6'/%3E%3C/svg%3E\")}.dito-markup{position:relative}.dito-markup .dito-resize{position:absolute;top:unset;left:unset;right:0;bottom:0;width:1em;height:1em}.dito-markup .ProseMirror{height:100%;outline:none}.dito-markup .dito-markup-editor{overflow-y:scroll;margin-right:-6px;padding-right:6px}.dito-markup .dito-buttons-toolbar{margin:3px 0}.dito-markup blockquote,.dito-markup h1,.dito-markup h2,.dito-markup h3,.dito-markup ol,.dito-markup p,.dito-markup pre,.dito-markup ul{margin:1rem 0}.dito-markup blockquote:first-child,.dito-markup h1:first-child,.dito-markup h2:first-child,.dito-markup h3:first-child,.dito-markup ol:first-child,.dito-markup p:first-child,.dito-markup pre:first-child,.dito-markup ul:first-child{margin-top:0}.dito-markup blockquote:last-child,.dito-markup h1:last-child,.dito-markup h2:last-child,.dito-markup h3:last-child,.dito-markup ol:last-child,.dito-markup p:last-child,.dito-markup pre:last-child,.dito-markup ul:last-child{margin-bottom:0}.dito-markup h1,.dito-markup h2,.dito-markup h3{font-weight:700}.dito-markup h1{font-size:1.4rem}.dito-markup h2{font-size:1.2rem}.dito-markup ul{list-style:disc}.dito-markup code{font-family:Menlo,Consolas,Monaco,Vera Mono,Andale Mono,Ubuntu Mono,monospace}.dito-markup pre{padding:.7rem 1rem;border-radius:4px;background:#2e2e2e;color:#fff;overflow-x:auto}.dito-markup pre code{display:block}.dito-markup p code{display:inline-block;padding:0 .3rem;border-radius:4px;background:#e0e0e0}.dito-markup a{pointer-events:none;cursor:default;color:#00f;text-decoration:underline}.dito-markup ol,.dito-markup ul{padding-left:2rem}.dito-markup li>ol,.dito-markup li>p,.dito-markup li>ul{margin:0}.dito-markup blockquote{border-left:3px solid #e0e0e0;padding-left:1rem;font-style:italic}.dito-markup blockquote p{margin:0}",""]),t.exports=e},1523:function(t,e,o){"use strict";o("6cc4")},1564:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-checkbox{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}",""]),t.exports=e},"157c":function(t,e,o){var i=o("7526");t.exports=function(t){if(i(t))return t;throw TypeError(String(t)+" is not an object")}},"17f1":function(t,e,o){var i=o("9a69");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("0f604100",i,!0,{sourceMap:!1,shadowMode:!1})},"184f":function(t,e,o){"use strict";o("4555")},"185a":function(t,e,o){var i=o("d4cb"),n=o("e129"),a=o("9618"),r=o("378c"),s=o("feca"),l=o("f1a7"),d=o("7c3f"),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=r(t),e=s(e),d)try{return c(t,e)}catch(o){}if(l(t,e))return a(!n.f.call(t,e),t[e])}},"1a7c":function(t,e,o){var i=o("2259");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("2f466bb2",i,!0,{sourceMap:!1,shadowMode:!1})},"1aec":function(t,e,o){"use strict";o("5b87")},"1b9a":function(t,e,o){"use strict";o("d2ad")},"1c10":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{difference:function(t){var e=s(this),o=new(l(e,a("Set")))(e),i=r(o["delete"]);return d(t,(function(t){i.call(o,t)})),o}})},"1c25":function(t,e,o){"use strict";o.r(e);var i={};if(o.r(i),o.d(i,"creditcard",(function(){return nt})),o.d(i,"decimals",(function(){return at})),o.d(i,"email",(function(){return rt})),o.d(i,"hostname",(function(){return st})),o.d(i,"domain",(function(){return lt})),o.d(i,"integer",(function(){return dt})),o.d(i,"max",(function(){return ct})),o.d(i,"min",(function(){return ut})),o.d(i,"password",(function(){return pt})),o.d(i,"range",(function(){return ht})),o.d(i,"required",(function(){return mt})),o.d(i,"url",(function(){return bt})),"undefined"!==typeof window){var n=window.document.currentScript,a=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(o.p=a[1])}var r=o("8bbf"),s=o.n(r),l=o("b327"),d=o.n(l),c=o("6389"),u=o.n(c),p=o("afe5"),h=o.n(p),m=o("cebe"),b=o.n(m),f=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-root"},[o("modals-container"),o("notifications",{ref:"notifications",staticClass:"dito-notifications",attrs:{position:"top right",classes:"dito-notification"}}),o("dito-menu"),o("main",{staticClass:"dito-page dito-scroll-parent"},[o("dito-header",{attrs:{spinner:t.options.spinner,isLoading:t.isLoading}},[t.user?o("dito-account"):t.allowLogin?o("a",{staticClass:"dito-login",on:{click:function(e){return t.rootComponent.login()}}},[o("span",[t._v("Login")])]):t._e()],1),o("router-view")],1)],1)},g=[],v={title:"",routeComponents:[],user:null,loadCache:{},activeLabel:null,clipboardData:null},y=(o("3f64"),o("6a2a"));function x(t,e){return t?`${t}/${e}`:e}function w(t){const e=Object(y["parseDataPath"])(t);return null==e||e.pop(),e}function _(t,e=!1){return e?w(t):Object(y["parseDataPath"])(t)}function k(t,e=!1){return Object(y["normalizeDataPath"])(_(t,e))}function C(t,e=!1){const o=_(t,e);if(o){let t;do{t=o.pop()}while(null!=t&&Object(y["isInteger"])(+t));if(null!=t)return o}return null}function O(t,e=!1){return Object(y["normalizeDataPath"])(C(t,e))}function j(t,e,o=!1){const i=_(e,o);return i?Object(y["getValueAtDataPath"])(t,i):null}function P(t,e,o=!1){const i=C(e,o);return i?Object(y["getValueAtDataPath"])(t,i):null}function S(t){const e=Object(y["parseDataPath"])(t);return e[e.length-1]}function D(t){const e=S(t);return null==e||Object(y["isInteger"])(+e)?null:e}function E(t){const e=S(t),o=null==e?null:+e;return Object(y["isInteger"])(o)?o:null}let $=0;function M(t,e="id"){t[e]="@"+ ++$}function B(t){return/^@/.test(t)}function V(t,e="id"){return null!=(null==t?void 0:t[e])&&1===Object.keys(t).length}const L=new WeakMap;function F(t,e,o){const i=L.get(t),n=i[e];return void 0!==n||i.hasOwnProperty(e)?n:Object(y["isFunction"])(o)?o():o}function R(t,e,o){L.get(t)[e]=o}class q{constructor(t,e){var o;e=e?Object(y["isFunction"])(e)?e():{...e}:{},null!=(o=e).nested||(o.nested=!0),e.component=t;const i=Object.setPrototypeOf(e,t);L.set(this,i)}static get(t,e){return e instanceof q?e:new q(t,e)}get nested(){return F(this,"nested",!0)}get value(){return F(this,"value",void 0)}get dataPath(){return F(this,"dataPath","")}get name(){return F(this,"name",()=>D(this.dataPath))}get index(){return F(this,"index",()=>E(this.dataPath))}get itemDataPath(){return k(this.dataPath,this.nested)}get parentItemDataPath(){return O(this.dataPath,this.nested)}get itemIndex(){return E(this.itemDataPath)}get parentItemIndex(){return E(this.parentItemDataPath)}get item(){return F(this,"data",()=>j(this.rootItem,this.dataPath,this.nested))}get parentItem(){const t=P(this.rootItem,this.dataPath,this.nested)||null;return t!==this.item?t:null}get rootItem(){return F(this,"rootData",null)}get processedItem(){return F(this,"processedData",null)}get clipboardItem(){return F(this,"clipboardData",null)}get user(){return F(this,"user",null)}get api(){return F(this,"api",null)}get views(){return F(this,"views",null)}get itemLabel(){return F(this,"itemLabel",null)}get formLabel(){return F(this,"formLabel",null)}get component(){return F(this,"component",null)}get schemaComponent(){return F(this,"schemaComponent",null)}get formComponent(){return F(this,"formComponent",null)}get viewComponent(){return F(this,"viewComponent",null)}get dialogComponent(){return F(this,"dialogComponent",null)}get panelComponent(){return F(this,"panelComponent",null)}get resourceComponent(){return F(this,"resourceComponent",null)}get sourceComponent(){return F(this,"sourceComponent",null)}get option(){return F(this,"option",void 0)}get options(){return F(this,"options",void 0)}get query(){return F(this,"query",void 0)}get error(){return F(this,"error",void 0)}get wasNotified(){return F(this,"wasNotified",!1)}get request(){return t=>this.component.request(t)}get format(){return(t,e)=>this.component.format(t,e)}get navigate(){return t=>this.component.navigate(t)}get download(){return t=>this.component.download(t)}get getResourceUrl(){return t=>this.component.getResourceUrl(t)}get notify(){return t=>{this.component.notify(t),R(this,"wasNotified",!0)}}}var z={data(){return{$events:null}},methods:{on(t,e){if(Object(y["isArray"])(t))for(const o of t)this.on(o,e);else if(Object(y["isPlainObject"])(t))for(const o in t)this.on(o,t[o]);else{const o=this.$events||(this.$events=Object.create(null)),{callbacks:i}=o[t]||(o[t]={callbacks:[],queue:[]});i.push(e)}return this},once(t,e){const o=(...i)=>(this.off(t,o),e.apply(this,i));return o.callback=e,this.on(t,o)},off(t,e){if(arguments.length)if(Object(y["isArray"])(t))for(const i of t)this.off(i,e);else if(Object(y["isPlainObject"])(t))for(const i in t)this.off(i,t[i]);else{var o;const i=null==(o=this.$events)?void 0:o[t];if(i)if(e){const{callbacks:t}=i,o=t.findIndex(t=>t===e||t.callback===e);-1!==o&&t.splice(o,1)}else delete this.$events[t]}else delete this.$events;return this},emit(t,...e){var o;const i=null==(o=this.$events)?void 0:o[t];if(i){const{queue:o,callbacks:n}=i;return new Promise(i=>{const a=async()=>{const e=o.shift();if(e){let o;for(const a of n)try{const t=await a.apply(this,e.args);void 0!==t&&(o=t)}catch(i){console.error(`Error during event handler for '${t}':`,i)}e.resolve(o),a()}};o.push({args:e,resolve:i}),1===o.length&&a()})}},hasListeners(t){if(Object(y["isArray"])(t)){for(const e of t)if(!this.hasListeners(e))return!1;return t.length>0}var e;return!(null==(e=this.$events)||!e[t])},delegate(t,e){if(e)if(Object(y["isArray"])(t))for(const o of t)this.delegate(o,e);else this.on(t,(...o)=>e.emit(t,...o));return this}}};const T={Boolean:y["isBoolean"],Number:y["isNumber"],String:y["isString"],Date:y["isDate"],Array:y["isArray"],Object:y["isObject"],RegExp:y["isRegExp"],Function:y["isFunction"]},I=t=>!!t,A=t=>+t,N=t=>String(t),U=t=>Object(y["isDate"])(t)?t:new Date(t),H=t=>Object(y["isArray"])(t)?t:Object(y["isString"])(t)?t.split(","):Object(y["asArray"])(t),W=t=>Object(y["isObject"])(t)?t:!0===t?{}:null,K=t=>Object(y["isRegExp"])(t)?t:new RegExp(t),Y={Boolean:I,Number:A,String:N,Date:U,Array:H,Object:W,RegExp:K};function G(t,e){if(t&&null!=e)for(const i of t){var o;if(null!=(o=T[i.name])&&o.call(T,e))return!0}return!1}function J(t,e){const o=t&&Y[t.name||t];return o?o(e):e}function Q(t){return!!X(t.resource)}function X(t,e={}){var o;const{parent:i,...n}=e;return t=Object(y["isObject"])(t)?{...n,...t}:Object(y["isString"])(t)?{...n,path:t}:null,!t||void 0===i||void 0!==t.parent||null!=(o=t.path)&&o.startsWith("/")||(t.parent=i,t.path||(t.path=".")),t}function Z(t,e){return null!=t&&"collection"===(null==e?void 0:e.type)?{type:"member",...Object(y["pickBy"])(e,(t,e)=>["method","path","parent"].includes(e)),id:""+t}:null}o("b198"),o("b9d5"),o("1c10"),o("ea92"),o("45e1"),o("e100"),o("395c"),o("8296"),o("b5c9"),o("9baa"),o("3326"),o("ddef"),o("8de5"),o("2653"),o("76fe"),o("b980");const tt=new Set;function et(t){tt.has(t)||(tt.add(t),console.warn(t))}var ot={mixins:[z],inject:["api","$verbs","$views","$isPopulated","$schemaComponent","$routeComponent","$dataComponent","$sourceComponent","$resourceComponent","$dialogComponent","$panelComponent","$tabComponent"],provide(){return this.providesData?{$dataComponent:()=>this}:{}},data(){return{appState:v,overrides:null}},computed:{sourceSchema(){var t;return null==(t=this.meta)?void 0:t.schema},user(){return v.user},verbs(){return this.$verbs()},views(){return this.$views()},isPopulated(){return this.$isPopulated()},locale(){return this.api.locale},context(){return new q(this,{nested:!1})},rootComponent(){return this.$root.$children[0]},schemaComponent(){return this.$schemaComponent()},routeComponent(){return this.$routeComponent()},formComponent(){const t=this.routeComponent;return null!=t&&t.isForm?t:null},viewComponent(){const t=this.routeComponent;return null!=t&&t.isView?t:null},dataComponent(){return this.providesData?this:this.$dataComponent()},sourceComponent(){return this.$sourceComponent()},resourceComponent(){return this.$resourceComponent()},dialogComponent(){return this.$dialogComponent()},panelComponent(){return this.$panelComponent()},tabComponent(){return this.$tabComponent()},parentSchemaComponent(){var t;return null==(t=this.schemaComponent)?void 0:t.$parent.schemaComponent},parentRouteComponent(){var t;return null==(t=this.routeComponent)?void 0:t.$parent.routeComponent},parentFormComponent(){var t;return null==(t=this.formComponent)?void 0:t.$parent.formComponent},rootData(){var t;return null==(t=this.dataComponent)?void 0:t.data}},beforeCreate(){this.$uid=++it},methods:{getStore(t){return this.store[t]},setStore(t,e){return this.$set(this.store,t,e)},getChildStore(t){return this.getStore(t)||this.setStore(t,{})},getSchemaValue(t,{type:e,default:o,schema:i=this.schema,callback:n=!0}={}){const a=e&&Object(y["asArray"])(e);let r=i?Object(y["isArray"])(t)?Object(y["getValueAtDataPath"])(i,t,()=>{}):i[t]:void 0;if(void 0===r&&void 0!==o)return n&&Object(y["isFunction"])(o)&&!G(a,o)&&(o=o.call(this,this.context)),o;if(G(a,r))return r;if(n&&Object(y["isFunction"])(r)&&(r=r.call(this,this.context)),a&&null!=r&&!G(a,r))for(const s of a){const t=J(s,r);if(t!==r)return t}return r},getLabel(t,e){return t?this.getSchemaValue("label",{type:String,schema:t})||Object(y["labelize"])(e||t.name):Object(y["labelize"])(e)||""},labelize:y["labelize"],getButtonAttributes(t,e){const o=this.verbs[t]||t;return{class:"dito-button-"+o,title:(null==e?void 0:e.text)||Object(y["labelize"])(o)}},getDragOptions(t,e=!1){return{animation:150,disabled:!t,handle:".dito-button-drag",dragClass:"dito-drag-active",chosenClass:"dito-drag-chosen",ghostClass:"dito-drag-ghost",fallbackClass:"dito-drag-fallback",forceFallback:e}},getQueryLink(t){return{query:t,hash:this.$route.hash}},shouldRender(t=null){return!!t&&this.getSchemaValue("if",{type:Boolean,default:!0,schema:t})},showDialog({components:t,buttons:e,data:o,settings:i={width:480,height:"auto",clickToClose:!1}}){return new Promise((n,a)=>{this.$modal.show(we.component("dito-dialog"),{components:t,buttons:e,data:o,promise:{resolve:n,reject:a}},i)})},getResourcePath(t){var e;(t=X(t),void 0===t.parent)&&(t.parent=null==(e=this.dataComponent)?void 0:e.resource);return this.api.resources.any(X(t))},getResourceUrl(t){const e=this.getResourcePath(t);let o=null;if(e){o=`${this.api.url.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`;const{query:i}=t;if(i){const t=Object.entries(i).map(([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`);o=`${o}?${t.join("&")}`}}return o},async sendRequest({method:t,url:e,resource:o,data:i,params:n,internal:a}){e=e||this.getResourcePath(o),t=t||(null==o?void 0:o.method);const r=!a&&this.api.isApiRequest(e);r&&await this.rootComponent.ensureUser();const s=await this.api.request({method:t,url:e,data:i,params:n});return r&&"patch"===t&&Object(y["equals"])(o,Z(this.user.id,this.api.users))&&await this.rootComponent.fetchUser(),s},request({cache:t,...e}){const o=t&&{global:this.appState,local:this.dataComponent}[t],i=null==o?void 0:o.loadCache,n=i&&`${e.method||"get"} ${e.url} ${JSON.stringify(e.params||"")} ${JSON.stringify(e.data||"")}`;if(i&&n in i)return i[n];const a=this.sendRequest(e).then(t=>t.data).catch(t=>{var e;const o=null==(e=t.response)?void 0:e.data;throw o?Object.assign(new Error(o.message),o):t});return i&&(i[n]=a),a},load(t){return et("load() is deprecated. Use request() instead."),this.request(t)},format(t,{locale:e=this.api.locale,defaults:o=this.api.formats,...i}={}){return Object(y["format"])(t,{locale:e,defaults:o,...i})},async navigate(t){return new Promise(e=>{this.$router.push(t,()=>e(!0),()=>e(!1))})},download(t={}){Object(y["isString"])(t)&&(t={url:t});const{url:e,filename:o}=t,i=document.createElement("a");i.href=e,o&&(i.download=o);const{body:n}=document;n.appendChild(i),i.click(),n.removeChild(i)},notify(t){this.rootComponent.notify(t)},closeNotifications(){this.rootComponent.closeNotifications()},setupSchemaFields(){this.setupMethods(),this.setupComputed(),this.setupEvents()},setupMethods(){for(const[t,e]of Object.entries(this.schema.methods||{}))Object(y["isFunction"])(e)?this[t]=e:console.error(`Invalid method definition: ${t}: ${e}`)},setupComputed(){for(const[t,e]of Object.entries(this.schema.computed||{})){const o=Object(y["isFunction"])(e)?{get:e}:Object(y["isObject"])(e)&&Object(y["isFunction"])(e.get)?e:null;o?Object.defineProperty(this,t,o):console.error(`Invalid computed property definition: ${t}: ${e}`)}},setupEvents(){const{watch:t,events:e}=this.schema;if(t){const e=Object(y["isFunction"])(t)?t.call(this):t;Object(y["isObject"])(e)&&this.$nextTick(()=>{for(const[t,o]of Object.entries(e)){const e=this.schemaComponent.getComponentByName(t)?"data."+t:t;this.$watch(e,o)}})}const o=(t,e,o)=>{Object(y["isFunction"])(o)?this.on(Object(y["hyphenate"])(e),o):console.error(`Invalid event definition: ${t}: ${o}`)};if(e)for(const[i,n]of Object.entries(e))o(i,i,n);for(const[i,n]of Object.entries(this.schema))/^on[A-Z]/.test(i)&&o(i,i.slice(2),n)},async emitEvent(t,{context:e=null,parent:o=null}={}){const i=this.hasListeners(t),n=null==o?void 0:o.hasListeners(t);if(i||n){["load","change"].includes(t)&&await this.$nextTick();const a=()=>e=q.get(this,e),r=i?await this.emit(t,a()):void 0;return n&&!1!==r&&o.emit(t,a()),r}},emitSchemaEvent(t,e){return this.schemaComponent.emitEvent(t,e)}}};let it=0;const nt={validate:t=>Object(y["isCreditCard"])(t),message:"is invalid"},at={validate:(t,e)=>{const o="*"===e?"+":`{1,${e}}`;return new RegExp(`^[-+]?\\d*(\\.\\d${o})?$`).test(t)},message:(t,e)=>`must be numeric and may contain ${e&&"*"!==e?e:""} decimal points`},rt={validate:t=>Object(y["isEmail"])(t),message:"must be a valid email"},st={validate:t=>Object(y["isHostname"])(t),message:"is not a host name"},lt={validate:t=>Object(y["isDomain"])(t),message:"is not a domain"},dt={validate:t=>Object(y["isInteger"])(t),message:"must be whole number"},ct={validate:(t,e)=>t<=e,message(t,e){return`must be ${e} or less`}},ut={validate:(t,e)=>t>=e,message(t,e){return`must be ${e} or more`}},pt={validate:()=>!0},ht={validate:(t,[e,o])=>t>=e&&t<=o,message(t,[e,o]){return`must be between ${e} and ${o}`}},mt={validate:(t,e,{password:o})=>null!=t&&""!==t||o&&void 0===t,message:"is required",nullish:!0},bt={validate:t=>Object(y["isUrl"])(t),message:"is not a valid URL"};var ft={data(){return{isTouched:!1,isDirty:!1,isValidated:!1,isValid:!1,errors:null}},computed:{events(){return{focus:()=>{this.isTouched=!0},blur:()=>{this.validate()},change:()=>{this.markDirty()},input:()=>{this.markDirty()}}}},methods:{resetValidation(){this.isTouched=!1,this.isDirty=!1,this.isValidated=!1,this.isValid=!1,this.clearErrors()},validate(t=!0){let e=!0;t&&this.clearErrors();const{value:o}=this;for(const[n,a]of Object.entries(this.validations)){const r=i[n];if(r&&(r.nullish||null!=o)){const{validate:i,message:n}=r;if(!i(o,a,this.validations)&&(e=!1,t)){const t=Object(y["isFunction"])(n)?n(o,a,this):n;this.addError(t,!0)}}}return t&&(this.isValidated=!0,this.isValid=e),e},verify(){return this.validate(!1)},markDirty(){this.isDirty=!0,this.isValidated=!1,this.isValid=!1,this.clearErrors()},addError(t,e=!1){if(this.errors||(this.errors=[]),e){const e=this.label||this.placeholder||this.name;t=`The ${e} field ${t}.`}this.errors.push(t),this.$emit("errors",this.errors)},showValidationErrors(t,e){this.errors=[];for(const{message:o}of t)this.addError(o,!0);return e&&this.focus(),!0},getErrors(){return this.errors?[...this.errors]:null},clearErrors(){this.errors=null,this.$emit("errors",this.errors)}}};function gt(t,{type:e,default:o,get:i,set:n,callback:a=!0}={}){Object(y["isString"])(t)&&t.includes(".")&&(t=Object(y["parseDataPath"])(t));const r=Object(y["normalizeDataPath"])(t);return{get(){const n=!i||i.length>0?this.overrides&&r in this.overrides?this.overrides[r]:this.getSchemaValue(t,{type:e,default:o,callback:a}):void 0;return i?i.call(this,n):n},set(t){n?n.call(this,t):(this.overrides||(this.overrides={}),this.$set(this.overrides,r,t))}}}function vt(t,{default:e,get:o,set:i}={}){return{get(){let i=this.getStore(t);return void 0===i&&void 0!==e&&(i=Object(y["isFunction"])(e)?e.call(this,this.context):e,this[t]=i,this.getStore(t)),o?o.call(this,i):i},set(e){i&&void 0===(e=i.call(this,e))||this.setStore(t,e)}}}const yt=new WeakMap;let xt=0;function wt(t,e){let o=yt.get(t);return o||(o=o=e||"@"+ ++xt,yt.set(t,o)),o}var _t=o("c8e8");class kt{constructor(){this.graph={},this.references={}}set(t,e,o){t=Object(y["parseDataPath"])(t);let i=this.graph;for(const r of t){var n,a;const t=Object(y["isInteger"])(+r)?"*":r;i=null!=(a=(n=i)[t])?a:n[t]={}}i.$settings={...o,...i.$settings,...e}}addSource(t,e){this.set(t,{type:"source",schema:e},{related:!1})}setSourceRelated(t){this.set(t,{related:!0,reference:this.getReferencePrefix(t)})}addRelation(t,e,o){this.set(t,{type:"relation",schema:o,internal:!!e,reference:this.getReferencePrefix(e)})}getReferencePrefix(t){var e,o;return t?null!=(o=(e=this.references)[t])?o:e[t]=Object(_t["nanoid"])(6):null}flatten(){const t=e=>{const o=[];for(const[i,{$settings:n,...a}]of Object.entries(e)){n&&o.push([i,n]);for(const[e,n]of t(a))o.push([`${i}/${e}`,n])}return o};return t(this.graph)}process(t,e,{target:o}){const i="clipboard"===o;i&&delete e[t.idKey||"id"];for(const[n,a]of this.flatten()){const{type:t,schema:o,internal:r,related:s,reference:l}=a,d="source"===t,c="relation"===t;if(d||c&&r){const t=Object(y["getValueAtDataPath"])(e,n,()=>null),a=i&&d&&!s,u=i&&(c&&r||d&&s);for(const e of Object(y["asArray"])(t).flat()){const t=d&&o.idKey||c&&o.relateBy||"id";let n=null==e?void 0:e[t];if(null!=n&&(a&&delete e[t],u||B(n))){B(n)&&(n=n.slice(1));const o=i?t:d?"#id":"#ref",a=i?"@"+n:l?`${l}-${n}`:n;e[o]=a,o!==t&&delete e[t]}}}}return e}}const Ct={},Ot={};function jt(t,e){Ct[t]=e}function Pt(t,e=!1){const o=Ct[t]||null;if(!o&&!e&&!Ot[t])throw Ot[t]=!0,new Error(`Unknown Dito component type: '${t}'`);return o}function St(t,e){const o=[...Object.values((null==t?void 0:t.tabs)||{}),t];for(const i of o)if(i){const t=e(i);if(void 0!==t)return t}}function Dt(t,e){return St(t,t=>{for(const[o,i]of Object.entries(t.components||{})){const t=e(i,o);if(void 0!==t)return t}})}function Et(t,e){return!0===Dt(t,(t,o)=>!!e(t,o)||void 0)}async function $t(t){let e=Object(y["isFunction"])(t)?t():t;return Object(y["isPromise"])(e)&&(e=await e),{...e}}async function Mt(t,e,o,i,n){const a=[];Vt(e,o,i),zt(o)?await Bt(e,o,i,a,0):await Lt(e,o,a,1),n.push({path:"/"+o.path,children:a,component:t,meta:{api:e,schema:o}})}function Bt(t,e,o,i,n){var a;return e.level=n,null==(a=de(e))||null==a.processSchema?void 0:a.processSchema(t,e,o,i,n)}function Vt(t,e,o){e.name=o,e.path=e.path||t.normalizePath(o)}async function Lt(t,e,o,i){const n=[];Dt(e,(e,a)=>{n.push(Bt(t,e,a,o,i))}),await Promise.all(n)}async function Ft(t,e,o){let{form:i,forms:n,components:a}=e;n?n=e.forms=await qt(n):i?i=e.form=await Rt(i):a&&Object(y["isObject"])(a)&&(i={components:a}),n||(n={default:i});const r=[];for(const s of Object.values(n))await Lt(t,s,r,o+1);return r}async function Rt(t){if(Object(y["isFunction"])(t)&&(t=t()),Object(y["isPromise"])(t)&&(t=await t),t&&!("components"in t)){const e=Object.keys(t)[0];t=t[e],t&&"default"!==e&&(t.name=e)}return t}async function qt(t){const e=await Promise.all(Object.values(t).map(Rt));return Object.keys(t).reduce((t,o,i)=>(t[o]=e[i],t),{})}function zt(t){return!!t.type}function Tt(t){return Object(y["isObject"])(t)&&!!(t.form||t.forms||t.components)}function It(t){return Object.keys((null==t?void 0:t.forms)||{}).length>1}function At(t,e){const{view:o}=t,i=o&&e.views[o];return i?Tt(i)?i:St(i,t=>{var e;const i=null==(e=t.components)?void 0:e[o];if(Tt(i))return i}):null}function Nt(t,e){const o=At(t,e);return o?0===o.level?"/"+o.path:`/${o.path}/${o.path}`:null}function Ut(t,e,o){const i=At(t,e);if(i)t=i;else if(t.view)throw new Error(`Unknown view: '${t.view}'`);let{form:n,forms:a,components:r,compact:s}=t;if(!n&&!a){if(!r)return{};n={components:r,compact:s}}return a||(a={default:n}),Object.fromEntries(Object.entries(a).map(([t,i])=>{var n;return Object(y["isFunction"])(i.components)&&(i={...i,components:i.components(e)}),[t,null!=(n=null==o?void 0:o(i))?n:i]}))}function Ht(t,e){return t[null==e?void 0:e.type]||t.default||null}function Wt(t,e,o){return Ht(Ut(t,o),e)}function Kt(t){return!1!==t.label}function Yt(t){return!!t.compact}function Gt(t){return!(!t.inlined&&!t.components)}function Jt(t){var e;return!(!t.nested&&!0!==(null==(e=de(t))?void 0:e.defaultNested))}function Qt(t){var e;return!(null==(e=de(t))||!e.omitPadding)}function Xt(t){var e;const o=t.default,i=void 0!==o?o:null==(e=de(t))?void 0:e.defaultValue;return Object(y["isFunction"])(i)?i(t):Object(y["clone"])(i)}function Zt(t){const e=de(t);return!!(null!=e&&e.excludeValue||null!=e&&null!=e.ignoreMissingValue&&e.ignoreMissingValue(t))}function te(t){const e=t=>Object.values(t||{}).some(Kt);return e(t.components)||Object.values(t.tabs||{}).some(e)}function ee(t,e={},o){const i={component:o,rootData:e},n=(t,e,o)=>{o in e||Zt(t)||(e[o]=Xt(t))};return ae(t,e,null,null,n,null,i)}function oe(t,e,o,i,{component:n=null,rootData:a=(null==n?void 0:n.rootData)}={}){const{compute:r}=t;if(r){const t=r(q.get(n,{value:e[o],name:o,data:e,dataPath:i,rootData:a}));void 0!==t&&s.a.set(e,o,t)}return o in e||Zt(t)||s.a.set(e,o,Xt(t)),e[o]}function ie(t,e,o){if(o.schemaOnly){const o={},{idKey:i="id",orderKey:n}=t,a=e[i];return void 0!==a&&(o[i]=a),It(t)&&(o.type=e.type),n&&(o[n]=e[n]),o}return{...e}}function ne(t,e,o,i,{component:n,schemaOnly:a,target:r}={}){const s={component:n,schemaOnly:a,target:r,rootData:o},l=ie(e,o,s),d=new kt,c=(t,e,o,i,n)=>{let a=oe(t,e,o,i,s);if(Object(y["isArray"])(a)){const{wrapPrimitives:e,orderKey:o,idKey:i="id"}=t;a=e?a.map(t=>({[e]:t})):[...a],o&&"clipboard"===r&&a.sort((t,e)=>{const o=null==t?void 0:t[i],n=null==e?void 0:e[i];return null==o||B(o)?1:null==n||B(n)?-1:o-n})}n[o]=a},u=(t,e,o,i,a)=>{const{wrapPrimitives:r,exclude:l,process:c}=t;let u=a[o];const p=de(t),h=()=>q.get(n,{value:u,name:o,data:e,dataPath:i,rootData:s.rootData,processedData:a});if(r&&Object(y["isArray"])(u)&&(u=u.map(t=>t[r])),c&&(u=c(h())),null!=p&&p.excludeValue||!0===l||Object(y["isFunction"])(l)&&l(h()))delete a[o];else{const e=null==p?void 0:p.processValue;e&&(u=e(t,u,i,d)),a[o]=u}};return ae(t,o,i,l,c,u,s),d.process(e,l,s)}function ae(t,e,o,i,n,a,r){const s=t=>{const s=(t,e)=>null!=t?x(t,e):null;if(t)for(const[l,d]of Object.entries(t))if(Jt(d)){const t=s(o,l),c=(o,l=null)=>{var c;const u=null!==l?s(t,l):t,p=q.get(r.component,{data:e,value:o,dataPath:u,index:l,rootData:r.rootData}),h=(null==(c=de(d))?void 0:c.getFormSchemasForProcessing)||Ut,m=h(d,p),b=Ht(m,o);if(b){const t=i?ie(d,o,r):null;return ae(b,o,u,t,n,a,r)}return{...o}};null==n||n(d,e,l,t,i);let u=i?i[l]:e[l];null!=u&&Tt(d)&&(u=Object(y["isArray"])(u)?i?u.map(c):u.forEach(c):c(u),i&&(i[l]=u)),null==a||a(d,e,l,t,i)}else ae(d,e,o,i,n,a,r)};if(s(t.components),t.tabs)for(const l of Object.values(t.tabs))s(l.components);for(const l of he(t,o))s(l.schema.components);return i||e}function re(t,e){const o=(t,o)=>t.length>0?t.reduce((t,i)=>{const n=o(i);return n&&(t[n.name]=n&&e?{...e,...n}:n),t},{}):null;return Object(y["isArray"])(t)?o(t,t=>Object(y["isObject"])(t)?t:{name:Object(y["camelize"])(t,!1)}):Object(y["isObject"])(t)?o(Object.entries(t),([t,e])=>Object(y["isObject"])(e)?{name:t,...e}:Object(y["isString"])(e)?{name:t,label:e}:null):null}function se(t){return re(t,{type:"button"})}function le(t){return Object(y["isObject"])(t)?t.type:t}function de(t){var e,o;return null!=(e=null==(o=Pt(le(t),!0))?void 0:o.options)?e:null}function ce(t){var e,o;return null!=(e=null==(o=de(t))||null==o.getSourceType?void 0:o.getSourceType(le(t)))?e:null}function ue(t,e,o){return t?{schema:t,dataPath:t.name?x(e,t.name):e,tabComponent:o}:null}function pe(t,e,o,i=[]){if(t)for(const[n,a]of Object.entries(t)){const t=ue(a,x(e,n),o);t&&i.push(t)}return i}function he(t,e,o=null,i=null){var n;const a=null==(n=de(t))||null==n.getPanelSchema?void 0:n.getPanelSchema(t,e,o),r=a?[ue(a,e,i)]:[];return pe(t.panels,e,i,r),r}function me(t){return"object"===ce(t)}function be(t){return"list"===ce(t)}function fe(t,e){const o=e[t.idKey||"id"];return null!=o?String(o):void 0}function ge(t,e){return wt(e,fe(t,e))}var ve={mixins:[ft],props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Object,Array],required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},single:{type:Boolean,default:!1},nested:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data(){return{parsedValue:null,focused:!1}},computed:{name(){return this.schema.name},type(){return this.schema.type},component(){return this.resolveTypeComponent(this.schema.component)},context(){return new q(this,{nested:this.nested})},value:{get(){const t=oe(this.schema,this.data,this.name,this.dataPath,{component:this}),{format:e}=this.schema;return e?e.call(this,new q(this,{value:t})):t},set(t){const{parse:e}=this.schema;this.parsedValue=e?e.call(this,new q(this,{value:t})):t,this.$set(this.data,this.name,this.parsedValue)}},item(){return j(this.rootItem,this.dataPath,this.nested)},parentItem(){return P(this.rootItem,this.dataPath,this.nested)},rootItem(){return this.rootData},processedItem(){const{schemaComponent:t}=this;return j(t.processedItem,this.dataPath.slice(t.dataPath.length),this.nested)},label:gt("label",{type:[String,Boolean],get(t){return Object(y["isString"])(t)?t:!1!==t&&this.$options.generateLabel?this.getLabel(this.schema):null}}),width:gt("width",{type:[String,Number]}),visible:gt("visible",{type:Boolean,default(){return this.typeOptions.defaultVisible}}),exclude:gt("exclude",{type:Boolean,default:!1}),required:gt("required",{type:Boolean,default:!1}),readonly:gt("readonly",{type:Boolean,default:!1}),autofocus:gt("autofocus",{type:Boolean,default:!1}),clearable:gt("clearable",{type:Boolean,default:!1}),placeholder:gt("placeholder",{type:String}),autocomplete:gt("autocomplete",{type:String}),attributes(){const{nativeField:t,textField:e}=this.$options,o={disabled:this.disabled};return t&&(o.name=this.name,this.label&&(o.title=this.label),o.readonly=this.readonly,o.autofocus=this.autofocus,e&&(o.placeholder=this.placeholder,o.autocomplete=this.autocomplete)),o},listeners(){const t=this.getListeners(),{events:e={}}=this.schema;if(e)for(const o of Object.keys(e))t[o]||(t[o]=()=>this.emitEvent(o));return t},validations(){const t={...this.getValidations()};this.required&&(t.required=!0);for(const[e,o]of Object.entries(this.schema.rules||{}))void 0===o?delete t[e]:t[e]=o;return t},providesData(){return!1},showClearButton(){return this.clearable&&null!=this.value}},created(){this._register(!0),this.setupSchemaFields()},beforeDestroy(){this._register(!1)},methods:{_register(t){this.nested&&(this.schemaComponent._registerComponent(this,t),this[t?"on":"off"](this.events))},getListeners(){return{focus:this.onFocus,blur:this.onBlur,input:this.onInput,change:this.onChange}},getValidations(){return null},focusElement(){const[t]=Object(y["asArray"])(this.$refs.element);t&&this.$nextTick(()=>{var e,o;(t.focus(),this.disabled)&&(null==(e=(o=t.$el||t).scrollIntoView)||e.call(o))})},focus(){var t;this.schemaComponent.focus(),null==(t=this.tabComponent)||t.focus(),this.focusElement()},clear(){this.value=null,this.onChange()},onFocus(){this.focused=!0,this.emitEvent("focus")},onBlur(){this.focused=!1,this.emitEvent("blur")},onInput(){this.emitEvent("input")},onChange(){this.emitEvent("change",{context:void 0!==this.parsedValue?{value:this.parsedValue}:null,parent:this.schemaComponent})}}};const ye={},xe=s.a.extend({components:ye,mixins:[ot],methods:{getTypeComponent:Pt,resolveComponent(t,e=[]){return t?async()=>{var o;let i=Object(y["isFunction"])(t)?await t():Object(y["isPromise"])(t)?await t:t;return i=(null==(o=i)?void 0:o.default)||i,i.mixins=e,i.components=ye,i}:t},resolveDitoComponent(t){return this.resolveComponent(t,[ot])},resolveTypeComponent(t){return this.resolveComponent(t,[ot,ve])}}});xe.component=function(t,e){if(e){e={name:t,...e};const o=this.extend(e);return ye[t]=o,o}return ye[t]||s.a.component(t)};var we=xe;class _e{hasRole(...t){if(this.roles)for(const e of t)if(this.roles.includes(e))return!0;return!1}}var ke=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isLastRoute?t.shouldRender(t.viewSchema)?o("div",{staticClass:"dito-view dito-scroll-parent"},[o("dito-schema",{staticClass:"dito-scroll",attrs:{schema:t.viewSchema,data:t.data,meta:t.meta,store:t.getChildStore(t.name),disabled:t.isLoading,generateLabels:!1,menuHeader:!0}})],1):t._e():o("router-view",{key:t.name})},Ce=[],Oe={provide(){return{$schemaParentComponent:()=>this}},data(){return{schemaComponents:[]}},computed:{mainSchemaComponent(){return this.schemaComponents[0]}},methods:{_registerSchemaComponent(t,e){const{schemaComponents:o}=this;e?o.push(t):o.splice(o.indexOf(t),1)}}},je={mixins:[Oe],computed:{errors(){return this.schemaComponents.reduce((t,{errors:e})=>e&&t?t.concat(e):e,null)},isTouched(){return this.schemaComponents.some(t=>t.isTouched)},isDirty(){return this.schemaComponents.some(t=>t.isDirty)},isValid(){return this.schemaComponents.every(t=>t.isValid)},isValidated(){return this.schemaComponents.every(t=>t.isValid)}},methods:{validateAll(t,e=!0){return this.schemaComponents.every(o=>o.validateAll(t,e))},verifyAll(t){return this.schemaComponents.every(e=>e.verifyAll(t))},resetValidation(){this.schemaComponents.forEach(t=>t.resetValidation())},clearErrors(){this.schemaComponents.forEach(t=>t.clearErrors())},showValidationErrors(t,e){this.schemaComponents.forEach(o=>o.showValidationErrors(t,e))}}},Pe={mixins:[je],provide(){return{$routeComponent:()=>this}},beforeRouteUpdate(t,e,o){this.beforeRouteChange(t,e,o)},beforeRouteLeave(t,e,o){this.beforeRouteChange(t,e,o)},data(){return{reload:!1,store:{},loadCache:{}}},computed:{routeComponent(){return this},routeRecord(){return this.$route.matched[this.$vnode.data.routerViewDepth]},isLastRoute(){const{matched:t}=this.$route;return this.routeRecord===t[t.length-1]},isLastUnnestedRoute(){const{matched:t}=this.$route;for(let e=t.length-1;e>=0;e--){const o=t[e];if(!o.meta.nested)return this.routeRecord===o}return!1},isNestedRoute(){return this.meta.nested},meta(){var t;return null==(t=this.routeRecord)?void 0:t.meta},path(){return this.getRoutePath(this.routeRecord.path)},label(){return this.getLabel(this.schema)},breadcrumb(){const{breadcrumb:t}=this.schema||{};return t||`${this.breadcrumbPrefix} ${this.label}`},breadcrumbPrefix(){return""},param(){var t;return this.$route.params[null==(t=this.meta)?void 0:t.param]||null},doesMutate(){return!1}},created(){this.appState.routeComponents.push(this)},destroyed(){const{routeComponents:t}=this.appState;t.splice(t.indexOf(this),1)},methods:{beforeRouteChange(t,e,o){let i=!0;const n=e.path.startsWith(this.path)&&!t.path.startsWith(this.path)&&e.path!==t.path&&(this.isFullRouteChange(t,e)||t.path.length<=e.path.length);n&&(this.doesMutate?i=this.isValidated||this.validateAll():this.isDirty&&(i=window.confirm(`You have unsaved changes. Do you really want to ${this.verbs.cancel}?`))),o(i)},getRoutePath(t){return this.$route.path.split("/").slice(0,t.split("/").length).join("/")},getChildPath(t){return`${this.path}/${t}`},isFullRouteChange(t,e){const o=this.path.match(/^(\/[^/]*)/)[1];return!Object(y["getCommonPrefix"])(t.path,e.path).startsWith(o)}}},Se=we.component("dito-view",{mixins:[Pe],provide(){return{$sourceComponent:()=>{var t;return(null==(t=this.mainComponent)?void 0:t.sourceComponent)||null},$resourceComponent:()=>{var t;return(null==(t=this.mainComponent)?void 0:t.resourceComponent)||null}}},data(){return{isView:!0,isLoading:!1,data:{}}},computed:{schema(){return this.meta.schema},name(){return this.schema.name},isSingleComponentView(){return zt(this.schema)},mainComponent(){return this.mainSchemaComponent.getComponentByDataPath(this.name)},viewSchema(){const{schema:t}=this;return this.isSingleComponentView?{name:t.name,components:{[t.name]:{...t,label:!1}}}:t},providesData(){return Et(this.viewSchema,t=>Q(t))}},watch:{$route(t,e){this.isFullRouteChange(t,e)&&(this.isLoading=!1,this.data={})}},methods:{setData(t){this.data=t},getChildPath(t){return this.isSingleComponentView?this.path:`${this.path}/${t}`},setLoading(t){this.isLoading=!!t}}}),De=Se;function Ee(t,e,o,i,n,a,r,s){var l,d="function"===typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),a&&(d._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=l):n&&(l=s?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:d}}var $e=Ee(De,ke,Ce,!1,null,null,null),Me=$e.exports,Be=o("2214"),Ve={data(){return{domHandlers:[]}},beforeDestroy(){for(const{remove:t}of this.domHandlers)t();this.domHandlers=[]},methods:{domOn(t,e,o){const i=Object(Be["addEvents"])(t,Object(y["isObject"])(e)?e:{[e]:o});return this.domHandlers.push(i),i}}},Le=we.component("dito-root",{mixins:[Ve],provide(){return{$views:()=>this.resolvedViews}},props:{unresolvedViews:{type:[Object,Function,Promise],required:!0},options:{type:Object,default:()=>({})}},data(){return{resolvedViews:{},allowLogin:!1,loadingCount:0}},computed:{notifications(){return this.$refs.notifications},isLoading(){return this.loadingCount>0}},created(){this.appState.title=document.title||"Dito.js Admin",this.appState.routeComponents=[]},async mounted(){this.domOn(document,{click:t=>{t.target.closest(".dito-label")||(this.appState.activeLabel=null)},keyup:t=>{"Tab"===t.code&&(this.appState.activeLabel=null)}});try{this.allowLogin=!1,await this.fetchUser()?await this.resolveViews():await this.login()}catch(t){console.error(t)}this.allowLogin=!0},methods:{notify({type:t="info",title:e,text:o}={}){e||(e={warning:"Warning",error:"Error",info:"Information",success:"Success"}[t]||"Notification"),o=`<p>${Object(y["asArray"])(o).join("</p> <p>")}</p>`.replace(/\n|\r\n|\r/g,"<br>");const i={warning:"warn",error:"error",info:"log",success:"log"}[t]||"error";console[i](Object(y["stripTags"])(o));const{notifications:n=!0}=this.api;if(n){const{durationFactor:i=20}=n,a=(40+o.length+e.length)*i;this.$notify({type:t,title:e,text:o,duration:a})}},closeNotifications(){this.notifications.destroyAll()},registerLoading(t){this.loadingCount+=t?1:-1},async login(){this.allowLogin=!0;const t=await this.showDialog({components:{username:{type:"text",autofocus:!0},password:{type:"password"}},buttons:{cancel:{},login:{type:"submit"}}});if(t)try{const e=await this.sendRequest({resource:this.api.users.login,data:t,internal:!0});this.setUser(e.data.user),await this.resolveViews()}catch(i){var e,o;const t=null==(e=i.response)||null==(o=e.data)?void 0:o.error;this.notify({type:"error",title:"Authentication Error",text:t||i}),t||console.error(i,i.response),this.login()}},navigateHome(){return this.navigate("/")},async logout(){try{const t=await this.sendRequest({resource:this.api.users.logout,internal:!0});t.data.success&&(this.setUser(null),this.navigateHome())}catch(t){console.error(t)}},async fetchUser(){let t=null;try{const e=await this.sendRequest({resource:this.api.users.session,internal:!0});t=e.data.user||null}catch(e){this.notify({type:"error",title:"Authentication Error",text:e})}return this.setUser(t),t},setUser(t){this.appState.user=t&&Object.setPrototypeOf(t,_e.prototype),t||(this.resolvedViews={},this.navigateHome())},async ensureUser(){await this.fetchUser()||await this.login()},async resolveViews(){try{this.resolvedViews=await $t(this.unresolvedViews)}catch(o){return o.request||console.error(o),this.login()}const t=[],e=[];for(const[i,n]of Object.entries(this.resolvedViews))e.push(Mt(Me,this.api,n,i,t));await Promise.all(e);for(const i of t)this.$router.addRoute(i)}}}),Fe=Le,Re=(o("1523"),Ee(Fe,f,g,!1,null,null,null)),qe=Re.exports,ze=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("nav",{staticClass:"dito-menu dito-scroll-parent"},[o("h1",[t._v(t._s(t.appState.title))]),o("ul",{staticClass:"dito-scroll"},t._l(t.views,(function(e){return o("li",[t.shouldRender(e)?o("router-link",{staticClass:"dito-link",attrs:{to:"/"+e.path,"active-class":"dito-active"}},[t._v(t._s(t.getLabel(e)))]):t._e()],1)})),0)])},Te=[],Ie=we.component("dito-menu",{}),Ae=Ie,Ne=(o("7b69"),Ee(Ae,ze,Te,!1,null,null,null)),Ue=(Ne.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("nav",{staticClass:"dito-header"},[o("div",{staticClass:"dito-trail"},[o("ul",t._l(t.trail,(function(e,i){return o("li",[i===t.trail.length-1?[o("span",{class:t.getBreadcrumbClass(e)},[t._v(t._s(e.breadcrumb))])]:o("router-link",{staticClass:"dito-breadcrumb",attrs:{to:e.path}},[o("span",{class:t.getBreadcrumbClass(e)},[t._v(t._s(e.breadcrumb))])])],2)})),0),t.isLoading?o("spinner",{staticClass:"dito-spinner"}):t._e()],1),t._t("default")],2)}),He=[],We=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"v-spinner"},[o("div",{staticClass:"v-pulse v-pulse1",style:[t.spinnerStyle,t.spinnerDelay1]}),o("div",{staticClass:"v-pulse v-pulse2",style:[t.spinnerStyle,t.spinnerDelay2]}),o("div",{staticClass:"v-pulse v-pulse3",style:[t.spinnerStyle,t.spinnerDelay3]})])},Ke=[],Ye={name:"PulseLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}},Ge=Ye,Je=(o("30ad"),Ee(Ge,We,Ke,!1,null,null,null)),Qe=Je.exports;const Xe=we.component("spinner",Qe);var Ze=we.component("dito-header",{props:{spinner:{type:Object,default:null},isLoading:{type:Boolean,default:!1}},computed:{trail(){return this.appState.routeComponents.filter(t=>!!t.routeRecord)}},created(){const{size:t="8px",color:e="#999"}=this.spinner||{},{props:o}=Xe.options;o.size.default=t,o.color.default=e},methods:{getBreadcrumbClass(t){return{"dito-dirty":t.isDirty}}}}),to=Ze,eo=(o("fd70"),Ee(to,Ue,He,!1,null,null,null)),oo=(eo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-account"},[o("a",{on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown()}}},[o("span",[t._v(t._s(t.user.username))])]),o("ul",{staticClass:"dito-pulldown",class:{"dito-open":t.pulldown.open}},t._l(t.items,(function(e,i){return o("li",[o("a",{on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown(i)},mouseup:function(e){return t.onPulldownMouseUp(i)}}},[t._v(t._s(e))])])})),0)])}),io=[],no={mixins:[Ve],data(){return{pulldown:{open:!1,startTime:0,checkTime:!0,events:{mousedown:()=>{this.setPulldownOpen(!1),this.pulldown.handlers.remove()},mouseup:()=>{this.onPulldownMouseUp(null)&&this.pulldown.handlers.remove()}},handlers:null}}},methods:{onPulldownMouseDown(t){t?this.checkTime=!1:(this.setPulldownOpen(!0),this.checkTime=!0)},onPulldownMouseUp(t){const{startTime:e}=this.pulldown;if(!this.checkTime||e&&Date.now()-e>250)return this.setPulldownOpen(!1),t&&this.onPulldownSelect(t),!0},onPulldownSelect(){},setPulldownOpen(t){this.pulldown.open=t,this.pulldown.startTime=t?Date.now():0,t&&(this.pulldown.handlers=this.domOn(document,this.pulldown.events))}}},ao=we.component("dito-account",{mixins:[no],data(){return{items:{settings:"Settings",logout:"Logout"}}},methods:{onPulldownSelect(t){switch(t){case"logout":this.rootComponent.logout();break;case"settings":console.info("TODO: Implement Settings");break}}}}),ro=ao,so=(o("c4c0"),Ee(ro,oo,io,!1,null,null,null)),lo=(so.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("form",{staticClass:"dito-dialog",on:{submit:function(t){t.preventDefault()}}},[o("dito-schema",{staticClass:"dito-scroll",attrs:{schema:t.schema,data:t.dialogData}},[o("dito-buttons",{staticClass:"dito-buttons-large",attrs:{slot:"buttons",buttons:t.buttonSchemas,data:t.dialogData},slot:"buttons"})],1)],1)}),co=[],uo=we.component("dito-dialog",{provide(){return{$dialogComponent:()=>this}},props:{components:{type:Object,required:!0},buttons:{type:Object,required:!0},promise:{type:Object,required:!0},data:{type:Object,default:()=>({})}},data(){const t=Object(y["clone"])(this.data);for(const e in this.components)e in t||(t[e]=null);return{windowEvents:null,dialogData:t}},computed:{dialogComponent(){return this},name(){return this.$parent.name},schema(){return{components:this.components}},buttonSchemas(){return Object.entries(se(this.buttons)).reduce((t,[e,o])=>{const{type:i,events:n}=o;if(!n){const t="submit"===i?()=>this.accept():"cancel"===e?()=>this.cancel():null;t&&(o={...o,events:{click:t}})}return t[e]=o,t},{})},hasCancel(){return Object.keys(this.buttonSchemas).includes("cancel")}},mounted(){this.windowEvents=Object(Be["addEvents"])(window,{keyup:()=>{27===event.keyCode&&this.cancel()}})},destroyed(){this.windowEvents.remove()},methods:{hide(){this.$modal.hide(this.name)},resolve(t){this.promise.resolve(t),this.hide()},reject(t){this.promise.reject(t),this.hide()},accept(){this.resolve(this.dialogData)},cancel(){this.hasCancel&&this.resolve(null)}}}),po=uo,ho=(o("ff0e"),Ee(po,lo,co,!1,null,null,null)),mo=(ho.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.content?o(t.options.tag||t.tag,{tag:"component",class:t.classes,style:t.styles},[t._v(t._s(t.options.text))]):t._e()}),bo=[],fo=we.component("dito-element",{props:{tag:{type:String,default:"span"},content:{type:[String,Object]}},computed:{options(){const{content:t}=this;return Object(y["isObject"])(t)?t:{text:t}},classes(){return{...this.$attrs.class,...go(this.options.class)}},styles(){return{...this.$attrs.style,...go(this.options.style)}}}});function go(t){return Object(y["asArray"])(t).reduce((t,e)=>(Object(y["isString"])(e)?t[e]=!0:Object(y["isObject"])(e)&&Object.assign(t,e),t),{})}var vo=fo,yo=Ee(vo,mo,bo,!1,null,null,null),xo=(yo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.text||t.collapsible?o(t.tag,t._g({tag:"component",staticClass:"dito-label",class:{"dito-active":t.isActive}},t.listeners),[t.collapsible?o("div",{staticClass:"dito-chevron",class:{"dito-opened":!t.collapsed}}):t._e(),t._l(t.prefixes,(function(t,e){return o("dito-element",{key:"prefix-"+e,staticClass:"dito-label-prefix",attrs:{tag:"span",content:t}})})),o("label",{attrs:{for:t.dataPath},domProps:{innerHTML:t._s(t.text)}}),t._l(t.suffixes,(function(t,e){return o("dito-element",{key:"suffix-"+e,staticClass:"dito-label-suffix",attrs:{tag:"span",content:t}})})),t._t("edit-buttons")],2):t._e()}),wo=[],_o=we.component("dito-label",{props:{label:{type:[String,Object],default:null},dataPath:{type:String,default:null},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1}},computed:{tag(){return this.collapsible?"a":"div"},text(){const{label:t}=this;return Object(y["isObject"])(t)?null==t?void 0:t.text:t},prefixes(){var t;return Object(y["asArray"])(null==(t=this.label)?void 0:t.prefix)},suffixes(){var t;return Object(y["asArray"])(null==(t=this.label)?void 0:t.suffix)},listeners(){return{...this.collapsible&&{click:this.onClick}}},isActive(){return this.appState.activeLabel===this}},methods:{onClick(){this.appState.activeLabel=this,this.$emit("expand",this.collapsed)}}}),ko=_o,Co=(o("75ca"),Ee(ko,xo,wo,!1,null,null,null)),Oo=(Co.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-schema"},[o("div",{staticClass:"dito-schema-content"},[t.hasLabel||t.hasTabs||t.clipboard?o("div",{staticClass:"dito-schema-header",class:{"dito-schema-menu-header":t.menuHeader}},[t.hasLabel?o("dito-label",{attrs:{label:t.label,dataPath:t.dataPath,collapsible:t.collapsible,collapsed:!t.opened},on:{expand:t.onExpand},scopedSlots:t._u([t.inlined?{key:"edit-buttons",fn:function(){return[t._t("edit-buttons")]},proxy:!0}:null],null,!0)}):t._e(),t.tabs?o("dito-tabs",{attrs:{tabs:t.tabs,selectedTab:t.selectedTab}}):t._e(),o("dito-clipboard",{attrs:{clipboard:t.clipboard,dataPath:t.dataPath,data:t.data}})],1):t._e(),t._l(t.tabs,(function(e,i){return t.hasTabs?o("dito-pane",{key:i,ref:"tabs",refInFor:!0,staticClass:"dito-pane-tab",attrs:{visible:t.selectedTab===i,tab:i,schema:e,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:!t.inlined&&!t.hasMainPane,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e()})),o("transition-height",{attrs:{enabled:t.inlined}},[t.hasMainPane&&t.opened?o("dito-pane",{ref:"components",staticClass:"dito-pane-main",attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:!t.inlined&&!t.hasTabs,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e()],1),!t.inlined&&t.isPopulated?t._t("buttons"):t._e()],2),t.inlined?[t.hasLabel?t._e():t._t("edit-buttons")]:t.isPopulated?[o("dito-panels",{attrs:{panels:t.panelSchemas,data:t.data,meta:t.meta,store:t.store,disabled:t.disabled}})]:t._e()],2)}),jo=[],Po={methods:{getItemFormSchema:Wt,getItemUid:ge,getItemId(t,e,o=null){return this.isTransient&&null!==o?String(o):fe(t,e)},getItemDataPath(t,e){let{dataPath:o}=this;return t!==this.schema&&(o=x(o,t.name)),null!=e&&(o=x(o,e)),o},findItemIdIndex(t,e,o){const i=this.isTransient?o:null==e?void 0:e.findIndex((e,i)=>this.getItemId(t,e,i)===o);return-1!==i?i:null},getItemLabel(t,e,{index:o=null,extended:i=!1,asObject:n=!1}={}){const{itemLabel:a}=t;if(!e||!i&&!1===a)return null;let r;const s=()=>r||(r=this.getItemDataPath(t,o));let l;const d=()=>l||(l=this.getLabel(Wt(t,e,this.context)));let c,u,p;if(Object(y["isFunction"])(a)){const t=a.call(this,new q(this,{nested:!1,data:e,value:e,index:o,get dataPath(){return s()},get formLabel(){return d()}}));Object(y["isObject"])(t)?({text:c,prefix:u,suffix:p}=t):c=t,i=!1}else{const{columns:o}=t,i=Object(y["isString"])(a)&&a||be(t)&&o&&Object.keys(o)[0]||"name";c=e[i]}const h=!!c;if(c=c||"",c||(i=!0,be(t)&&null!==o&&(c=""+(o+1))),i){const t=d();t&&(c=`${t} ${h?`'${c}'`:c}`)}return n?{text:c,prefix:u,suffix:p}:c}}},So=we.component("dito-schema",{components:{TransitionHeight:Be["TransitionHeight"]},mixins:[Po],provide(){return{$schemaComponent:()=>this}},inject:["$schemaParentComponent"],props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:Object,default:null},meta:{type:Object,default:()=>({})},store:{type:Object,default:()=>({})},label:{type:[String,Object],default:null},inlined:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},generateLabels:{type:Boolean,default:!0},hasOwnData:{type:Boolean,default:!1},menuHeader:{type:Boolean,default:!1}},data(){const{data:t}=this.schema;return{...t&&Object(y["isFunction"])(t)?t.call(this,this.context):t,componentsRegistry:{},panesRegistry:{},panelsRegistry:{}}},computed:{schemaComponent(){return this},parentSchemaComponent(){return this.hasOwnData?null:this.$parent.schemaComponent},panelSchemas(){const t=pe(this.schema.panels,"");for(const e of this.panes)t.push(...e.panelSchemas);return t},tabs(){return re(this.schema.tabs)},selectedTab(){var t,e;const o=(null==(t=this.$route.hash)?void 0:t.slice(1))||null,i=o&&this.shouldRender(this.tabs[o])?o:(null==(e=this.defaultTab)?void 0:e.name)||null;return i!==o&&this.$router.replace({hash:i}),i},defaultTab(){if(this.tabs){let t=null;for(const e of Object.values(this.tabs)){const{defaultTab:o}=e;if(Object(y["isFunction"])(o)?o.call(this,this.context):o)return e;t||(t=e)}return t}},clipboard(){var t;return null==(t=this.schema)?void 0:t.clipboard},processedData(){return this.processData({target:"server",schemaOnly:!0})},clipboardData(){return{$schema:this.schema.name,...this.processData({target:"clipboard",schemaOnly:!0})}},item(){return this.data},rootItem(){return this.rootData},processedItem(){return this.processedData},clipboardItem(){return this.clipboardData},parentItem(){return P(this.rootData,this.dataPath,!1)},formLabel(){return this.getLabel(this.getItemFormSchema(this.sourceSchema,this.data,this.context))},isDirty(){return this.someComponent(t=>t.isDirty)},isTouched(){return this.someComponent(t=>t.isTouched)},isValid(){return this.everyComponent(t=>t.isValid)},isValidated(){return this.everyComponent(t=>t.isValidated)},hasData(){return!!this.data},hasLabel(){return!!this.label||this.collapsible},hasTabs(){return!this.inlined&&!!this.tabs},hasMainPane(){const{components:t}=this.schema;return!!t&&Object.keys(t).length>0},opened:vt("opened",{default(){return!this.collapsed}}),components(){return Object.values(this.componentsRegistry)},panes(){return Object.values(this.panesRegistry)},panels(){return Object.values(this.panelsRegistry)},componentsByDataPath(){return this._listEntriesByDataPath(this.componentsRegistry)},panesByDataPath(){return this._listEntriesByDataPath(this.panesRegistry)},panelsByDataPath(){return this._listEntriesByDataPath(this.panelsRegistry)}},created(){this._register(!0),this.setupSchemaFields(),this.delegate("change",this.parentSchemaComponent),this.emitEvent("initialize")},beforeDestroy(){this.emitEvent("destroy"),this._register(!1)},methods:{getComponentsByDataPath(t,e){return this._getEntriesByDataPath(this.componentsByDataPath,t,e)},getComponentByDataPath(t,e){return this.getComponentsByDataPath(t,e)[0]||null},getComponentsByName(t,e){return this._getEntriesByName(this.componentsByDataPath,t,e)},getComponentByName(t,e){return this.getComponentsByName(t,e)[0]||null},getComponents(t,e){return this._getEntries(this.componentsByDataPath,t,e)},getComponent(t,e){return this.getComponents(t,e)[0]||null},getPanelsByDataPath(t,e){return this._getEntriesByDataPath(this.panelsByDataPath,t,e)},getPanelByDataPath(t,e){return this.getPanelsByDataPath(t,e)[0]||null},getPanels(t,e){return this._getEntries(this.panelsByDataPath,t,e)},getPanel(t,e){return this.getPanels(t,e)[0]||null},someComponent(t){return this.isPopulated&&this.components.some(t)},everyComponent(t){return this.isPopulated&&this.components.every(t)},onExpand(t){this.emitEvent("expand",{context:{expand:t}}),(!this.opened||t||this.validateAll())&&(this.opened=t)},onChange(){this.emitEvent("change")},resetValidation(){for(const t of this.components)t.resetValidation()},clearErrors(){for(const t of this.components)t.clearErrors()},focus(){var t;null==(t=this.parentSchemaComponent)||t.focus(),this.opened=!0},validateAll(t,e=!0){const{componentsByDataPath:o}=this;let i;if(t){const e=Object(y["isFunction"])(t)?t:Object(y["isRegExp"])(t)?e=>t.test(e):null;i=e?Object.keys(o).filter(e):Object(y["isArray"])(t)?t:[t]}e&&this.clearErrors();let n=!0,a=!0;i||(i=Object.keys(o));for(const r of i){const t=this.getComponentsByDataPath(r);for(const o of t)o.validate(e)||(e&&a&&o.focus(),a=!1,n=!1)}return e&&!n&&this.notifyErrors(),n},verifyAll(t){return this.validateAll(t,!1)},async showValidationErrors(t,e){this.clearErrors();let o=!0;const i=[];for(const[n,a]of Object.entries(t)){const r=this.hasOwnData?x(this.dataPath,n):n,s=Object(y["parseDataPath"])(r);let l=!1;const d=this.getComponentsByDataPath(s);for(const t of d)t.showValidationErrors(a,o&&e)&&(l=!0,o=!1);if(!l){const n=s.pop();while(s.length>0){const i=this.getComponentsByDataPath(s);for(const n of i)if(await(null==n.navigateToComponent?void 0:n.navigateToComponent(r,i=>{let n=!1;for(const a of i){const i=t[a.dataPath];i&&a.showValidationErrors(i,o&&e)&&(n=!0,o=!1)}return n})))return;s.pop()}const l=Object(y["labelize"])(n);for(const t of a){const e=l?"The field "+l:"The "+this.formLabel;i.push(`${e} ${t.message}`)}}o=!1}o||this.notifyErrors(i.join("\n"))},notifyErrors(t){this.notify({type:"error",title:"Validation Errors",text:t||"Please correct the highlighted errors."})},resetData(){Object.assign(this.data,ee(this.schema,{},this)),this.clearErrors()},setData(t){for(const e in t)if(e in this.data){this.$set(this.data,e,t[e]);for(const t of this.getComponentsByName(e))t.markDirty()}},filterData(t){const e={};for(const[o,i]of Object.entries(t)){if(Object(y["isArray"])(i)||Object(y["isObject"])(i)){const t=this.getComponentsByName(o);if(t.some(t=>t.providesData))continue}e[o]=i}return e},processData({target:t="clipboard",schemaOnly:e=!0}={}){return ne(this.schema,this.sourceSchema,this.data,this.dataPath,{component:this,schemaOnly:e,target:t})},_register(t){var e;null==(e=this.$schemaParentComponent())||e._registerSchemaComponent(this,t)},_registerComponent(t,e){var o;this._registerEntry(this.componentsRegistry,t,e),null==(o=this.parentSchemaComponent)||o._registerComponent(t,e)},_registerPane(t,e){this._registerEntry(this.panesRegistry,t,e)},_registerPanel(t,e){this._registerEntry(this.panelsRegistry,t,e)},_registerEntry(t,e,o){const i=e.$uid;o?this.$set(t,i,e):this.$delete(t,i)},_listEntriesByDataPath(t){return Object.values(t).reduce((t,e)=>{const{dataPath:o}=e,i=t[o]||(t[o]=[]);return i.push(e),t},{})},_getEntries(t,e,o){return Object(y["normalizeDataPath"])(e).startsWith(this.dataPath)?this._getEntriesByDataPath(t,e,o):this._getEntriesByName(t,e,o)},_getEntriesByDataPath(t,e,o){return this._filterEntries(t[Object(y["normalizeDataPath"])(e)]||[],o)},_getEntriesByName(t,e,o){return this._filterEntries(t[x(this.dataPath,e)]||[],o)},_filterEntries(t,e){return e?t.filter(e):t}}}),Do=So,Eo=(o("dd36"),Ee(Do,Oo,jo,!1,null,null,null)),$o=(Eo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-schema",{staticClass:"dito-schema-inlined",class:{"dito-schema-compact":t.isCompact},attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,label:t.isCompact?null:t.label,inlined:!0,disabled:t.disabled,collapsed:t.collapsed,collapsible:t.collapsible},scopedSlots:t._u([{key:"edit-buttons",fn:function(){return[t.deletable||t.draggable||t.editable?o("dito-edit-buttons",{attrs:{deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.editPath,schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store},on:{delete:function(e){return t.$emit("delete")}}}):t._e()]},proxy:!0}])})}),Mo=[],Bo=we.component("dito-schema-inlined",{props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},label:{type:[String,Object],default:null},disabled:{type:Boolean,required:!0},collapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editPath:{type:String,default:null}},computed:{isCompact(){return Yt(this.schema)},hasLabel(){return!this.isCompact&&!!this.label}}}),Vo=Bo,Lo=(o("3ceb"),Ee(Vo,$o,Mo,!1,null,null,null)),Fo=(Lo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isPopulated&&t.componentSchemas.length>0?o("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"dito-pane"},[t._l(t.componentSchemas,(function(e){var i=e.schema,n=e.dataPath,a=e.nestedDataPath,r=e.nested,s=e.store;return["before"===i.break?o("div",{staticClass:"dito-break"}):t._e(),t.shouldRender(i)?o("dito-container",{key:a,attrs:{schema:i,dataPath:n,data:t.data,meta:t.meta,store:s,single:t.isSingleComponent,nested:r,disabled:t.disabled,generateLabels:t.generateLabels}}):t._e(),"after"===i.break?o("div",{staticClass:"dito-break"}):t._e()]}))],2):t._e()}),Ro=[],qo=we.component("dito-pane",{provide(){return{$tabComponent:()=>this.tabComponent}},props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:Object,default:null},meta:{type:Object,required:!0},store:{type:Object,required:!0},tab:{type:String,default:null},single:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},generateLabels:{type:Boolean,default:!0}},computed:{tabComponent(){return this.tab?this:this.$tabComponent()},componentSchemas(){var t,e;const o=null==(t=this.sourceSchema)?void 0:t.wrapPrimitives;return Object.entries((null==(e=this.schema)?void 0:e.components)||{}).map(([t,e])=>{e.name=t;const i=Jt(e),n=x(this.dataPath,t);return{schema:e,dataPath:i&&!o?n:this.dataPath,nestedDataPath:n,nested:i,store:i?this.getChildStore(t):this.store}})},panelSchemas(){return this.componentSchemas.flatMap(({schema:t,nestedDataPath:e})=>he(t,e,this.schemaComponent,this.tabComponent))},isSingleComponent(){return this.single&&1===this.componentSchemas.length}},created(){this._register(!0)},beforeDestroy(){this._register(!1)},methods:{_register(t){this.schemaComponent._registerPane(this,t)},focus(){this.tab&&this.$router.push({hash:this.tab})}}}),zo=qo,To=(o("6f72"),Ee(zo,Fo,Ro,!1,null,null,null)),Io=(To.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.componentVisible,expression:"componentVisible"}],staticClass:"dito-container",class:t.containerClass,style:t.containerStyle},[t.label?o("dito-label",{class:t.componentClass,attrs:{label:t.label,dataPath:t.labelDataPath}}):t._e(),o(t.getTypeComponent(t.schema.type),{tag:"component",staticClass:"dito-component",class:t.componentClass,attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,single:t.single,nested:t.nested,disabled:t.componentDisabled},on:{errors:t.onErrors}}),o("dito-errors",{attrs:{errors:t.errors}})],1)}),Ao=[];function No(t){const e=Object(y["isString"])(t)&&t.match(/^\s*([+-]?\d+)\s*\/\s*([+-]?\d+)\s*$/);if(e){const[,t,o]=e;return parseFloat(t)/parseFloat(o)}return parseFloat(t)}var Uo,Ho,Wo,Ko,Yo=we.component("dito-container",{props:{schema:{type:Object,required:!0},dataPath:{type:String,default:""},data:{type:[Object,Array],required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},single:{type:Boolean,default:!1},nested:{type:Boolean,default:!0},disabled:{type:Boolean,required:!0},generateLabels:{type:Boolean,default:!0}},data(){return{errors:null}},computed:{context(){return new q(this,{nested:this.nested})},typeOptions(){return de(this.schema)||{}},hasLabel(){const{schema:t}=this,{label:e}=t;return!1!==e&&(!!e||this.typeOptions.generateLabel&&this.generateLabels)},label(){return this.hasLabel?this.getLabel(this.schema):null},labelDataPath(){return this.nested?this.dataPath:null},componentWidth:gt("width",{type:[String,Number],default(){return this.typeOptions.defaultWidth},get(t){return void 0===t?1:Object(y["isString"])(t)?t.match(/^\s*[<>]?\s*(.*)$/)[1]:t}}),componentWidthOperator:gt("width",{type:String,get(t){return Object(y["isString"])(t)&&t.match(/^\s*([<>]?)/)[1]||null}}),componentVisible:gt("visible",{type:Boolean,default(){return this.typeOptions.defaultVisible}}),componentDisabled:gt("disabled",{type:Boolean,default:!1,get(t){return t||this.disabled}}),containerClass(){const{class:t}=this.schema;return{"dito-single":this.single,"dito-omit-padding":Qt(this.schema),...Object(y["isString"])(t)?{[t]:!0}:t}},componentBasis(){const t=this.componentWidth,e=[null,"auto","fill"].includes(t)?"auto":/%$/.test(t)?parseFloat(t):/[a-z]/.test(t)?t:100*No(t);return Object(y["isNumber"])(e)?e+"%":e},containerStyle(){const t=">"===this.componentWidthOperator||"fill"===this.componentWidth,e="<"===this.componentWidthOperator;return{flex:`${t?1:0} ${e?1:0} ${this.componentBasis}`}},componentClass(){const t="auto"===this.componentBasis;return{"dito-single":this.single,"dito-disabled":this.componentDisabled,"dito-width-fill":!t||"fill"===this.componentWidth,"dito-width-auto":t,"dito-has-errors":!!this.errors}}},methods:{onErrors(t){this.errors=t}}}),Go=Yo,Jo=(o("af1e"),Ee(Go,Io,Ao,!1,null,null,null)),Qo=(Jo.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tabs"},t._l(t.tabs,(function(e,i){return t.shouldRender(e)?o("router-link",{key:i,staticClass:"dito-link",attrs:{to:{hash:i},"active-class":"dito-active"}},[t._v(t._s(t.getLabel(e,i)))]):t._e()})),1)}),Xo=[],Zo=we.component("dito-tabs",{props:{tabs:{type:Object,default:null},selectedTab:{type:String,default:null}}}),ti=Zo,ei=(o("fb0b"),Ee(ti,Qo,Xo,!1,null,null,null)),oi=(ei.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(t.panelTag,{directives:[{name:"show",rawName:"v-show",value:t.visible&&(!t.panelTabComponent||t.panelTabComponent.visible),expression:"visible && (!panelTabComponent || panelTabComponent.visible)"}],tag:"component",staticClass:"dito-panel",on:{submit:function(t){t.preventDefault()}}},[o("label",{staticClass:"dito-panel-title"},[t._v(t._s(t.getLabel(t.schema)))]),o("dito-schema",{staticClass:"dito-panel-schema",attrs:{schema:t.panelSchema,dataPath:t.panelDataPath,data:t.panelData,meta:t.meta,store:t.store,disabled:t.disabled,hasOwnData:t.hasOwnData}},[o("dito-buttons",{attrs:{slot:"buttons",buttons:t.buttonSchemas,dataPath:t.panelDataPath,data:t.panelData,meta:t.meta,store:t.store,disabled:t.disabled},slot:"buttons"})],1)],1)}),ii=[],ni=we.component("dito-panel",{mixins:[je],provide(){return{$panelComponent:()=>this,$tabComponent:()=>this.panelTabComponent}},props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},disabled:{type:Boolean,required:!0},panelTabComponent:{type:we,default:null}},data(){return{ownData:null}},computed:{panelComponent(){return this},tabComponent(){return this.panelTabComponent},buttonSchemas(){return se(this.schema.buttons)},target(){return this.schema.target||this.dataPath},hasOwnData(){return!!this.ownData},panelData(){return this.ownData||this.data},panelSchema(){if(this.hasOwnData)return this.schema;{const{data:t,...e}=this.schema;return e}},panelTag(){return this.hasOwnData?"form":"div"},panelDataPath(){return this.hasOwnData?this.dataPath:this.schemaComponent.dataPath},visible:gt("visible",{type:Boolean,default:!0})},created(){this._register(!0);const{data:t}=this.schema;t&&(this.ownData=Object(y["isFunction"])(t)?t.call(this,this.context):t)},beforeDestroy(){this._register(!1)},methods:{_register(t){this.schemaComponent._registerPanel(this,t)}}}),ai=ni,ri=(o("e2c2"),Ee(ai,oi,ii,!1,null,null,null)),si=(ri.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.panels.length>0?o("div",{staticClass:"dito-panels"},t._l(t.panels,(function(e){var i=e.schema,n=e.dataPath,a=e.tabComponent;return t.shouldRender(i)?o("dito-panel",{key:t.getPanelKey(n,a),attrs:{schema:i,dataPath:n,data:t.data,meta:t.meta,store:t.getChildStore(i.name),disabled:null!=i.disabled?i.disabled:t.disabled,panelTabComponent:a}}):t._e()})),1):t._e()}),li=[],di=we.component("dito-panels",{props:{panels:{type:Array,default:null},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},disabled:{type:Boolean,required:!0}},methods:{getPanelKey(t,e){return e?`${e.tab}_${t}`:t}}}),ci=di,ui=(o("8153"),Ee(ci,si,li,!1,null,null,null)),pi=(ui.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.buttonSchemas||t.$slots.default?o("div",t._g({staticClass:"dito-buttons"},t.$listeners),[t._l(t.buttonSchemas,(function(e,i){return t.shouldRender(e)?o("dito-container",{key:i,attrs:{schema:e,dataPath:i,data:t.data,meta:t.meta,store:t.getChildStore(e.name),disabled:t.disabled,generateLabels:!1}}):t._e()})),t._l(t.$slots.default,(function(e){return e.tag?o("div",{staticClass:"dito-container"},[o("dito-vnode",{attrs:{node:e}})],1):t._e()}))],2):t._e()}),hi=[],mi=we.component("dito-buttons",{provide:{$tabComponent:()=>null},props:{buttons:{type:Object,default:null},dataPath:{type:String,default:""},data:{type:[Object,Array],default:null},meta:{type:Object,default:()=>({})},store:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},computed:{buttonSchemas(){const{dataPath:t,buttons:e}=this;return e?Object.values(e).reduce((e,o)=>(e[x(t,o.name)]=o,e),{}):null}}}),bi=mi,fi=Ee(bi,pi,hi,!1,null,null,null),gi=(fi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-buttons",{staticClass:"dito-edit-buttons dito-buttons-round",attrs:{buttons:t.buttons,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store},on:{click:function(t){t.stopPropagation()}}},[t.isDraggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.isEditable?o("router-link",t._b({staticClass:"dito-button",attrs:{to:{path:t.editPath},append:""}},"router-link",t.getButtonAttributes(t.verbs.edit),!1)):t._e(),t.isCreatable?o("dito-create-button",{attrs:{schema:t.schema,path:t.createPath,verb:t.verbs.create,text:t.createButtonText}}):t._e(),t.isDeletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){return t.$emit("delete")}}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()],1)}),vi=[],yi=we.component("dito-edit-buttons",{props:{draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editPath:{type:String,default:null},createPath:{type:String,default:null},buttons:{type:Object,default:null},schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Object,Array],default:null},meta:{type:Object,required:!0},store:{type:Object,required:!0}},computed:{formLabel(){return this.getLabel(this.schema.form)},isDraggable(){return this.hasOption("draggable")},isEditable(){return this.hasOption("editable")&&!!this.editPath},isCreatable(){return this.hasOption("creatable")&&!!this.createPath},isDeletable(){return this.hasOption("deletable")},createButtonText(){var t;return(null==(t=this.schema.creatable)?void 0:t.label)||this.formLabel&&`${Object(y["capitalize"])(this.verbs.create)} ${this.formLabel}`||null}},methods:{hasOption(t){return!(!this[t]||!1===this.schema[t])}}}),xi=yi,wi=(o("7f8e"),Ee(xi,gi,vi,!1,null,null,null)),_i=(wi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-create-button"},[t.showPulldown?[o("button",{staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{type:"button",title:t.labelize(t.verb)},on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown()}}},[t._v(t._s(t.text))]),o("ul",{staticClass:"dito-pulldown",class:{"dito-open":t.pulldown.open}},t._l(t.forms,(function(e,i){return o("li",[t.isCreatable(e)?o("a",{class:"dito-type-"+i,on:{mousedown:function(e){return e.stopPropagation(),t.onPulldownMouseDown(i)},mouseup:function(e){return t.onPulldownMouseUp(i)}}},[t._v(t._s(t.getLabel(e)))]):t._e()])})),0)]:o("button",{staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{type:t.isInlined?"button":"submit",title:t.labelize(t.verb)},on:{click:function(e){return t.createItem(t.forms.default)}}},[t._v(t._s(t.text))])],2)}),ki=[],Ci=we.component("dito-create-button",{mixins:[no],props:{schema:{type:Object,required:!0},path:{type:String,required:!0},verb:{type:String,required:!0},text:{type:String,default:null}},computed:{forms(){return Ut(this.schema,this.context)},isInlined(){return Gt(this.schema)},showPulldown(){return Object.keys(this.forms).length>1||!this.forms.default}},methods:{isCreatable(t){return!1!==t.creatable},createItem(t,e=null){if(!this.isCreatable(t))throw new Error("Not allowed to create item for given form");this.isInlined?this.sourceComponent.createItem(t,e):this.$router.push({path:this.path+"/create",query:{type:e},append:!0})},onPulldownSelect(t){this.createItem(this.forms[t],t),this.setPulldownOpen(!1)}}}),Oi=Ci,ji=(o("c592"),Ee(Oi,_i,ki,!1,null,null,null)),Pi=(ji.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.clipboard?o("div",{staticClass:"dito-clipboard dito-buttons dito-buttons-round"},[o("button",{ref:"copyData",staticClass:"dito-button dito-button-copy",attrs:{type:"button",title:"Copy Data",disabled:!t.copyEnabled},on:{click:t.onCopy}}),o("button",{staticClass:"dito-button dito-button-paste",attrs:{type:"button",title:"Paste Data",disabled:!t.pasteEnabled},on:{click:t.onPaste}})]):t._e()}),Si=[],Di=we.component("dito-clipboard",{mixins:[Ve],props:{clipboard:{type:[Boolean,Object],default:!1},dataPath:{type:String,required:!0},data:{type:[Object,Array],default:null}},data(){return{copyEnabled:!1,pasteEnabled:!1,fixClipboard:!0}},computed:{clipboardOptions(){return Object(y["isObject"])(this.clipboard)?this.clipboard:{}},copyData(){const{copy:t}=this.clipboardOptions;return t?e=>t.call(this,new q(this,{clipboardData:e})):t=>Object(y["clone"])(t)},pasteData(){const{paste:t}=this.clipboardOptions;return t?e=>t.call(this,new q(this,{clipboardData:e})):t=>t}},mounted(){this.domOn(document,{copy:this.checkClipboard}),this.domOn(window,{focus:this.checkClipboard}),this.$watch("data",{immediate:!0,handler:(t,e)=>{t!==e&&this.checkClipboard()}})},methods:{async getClipboardData(t){var e;let{clipboardData:o}=this.appState;try{var i;const t=await(null==(i=navigator.clipboard)||null==i.readText?void 0:i.readText());var n;if(this.fixClipboard&&t)await(null==(n=navigator.clipboard)||null==n.writeText?void 0:n.writeText(t)),this.fixClipboard=!1;t&&(o=JSON.parse(t))}catch(s){t&&(console.error(s,s.name,s.message),"SyntaxError"===s.name&&alert(y["deindent"]`
2
2
  The data in the clipboard appears to be malformed:
3
3
  ${s.message}
4
- `))}const{$schema:a,...r}=o||{};return a===(null==(e=this.schemaComponent)?void 0:e.schema.name)?r:null},async checkClipboard(){this.copyEnabled=!!this.data,this.pasteEnabled=!!await this.getClipboardData(!1)},async onCopy(){var t;let e=null==(t=this.schemaComponent)?void 0:t.clipboardData;try{e=e&&this.copyData(e),this.appState.clipboardData=e;try{var o;const t=JSON.stringify(e,null,2);await(null==(o=navigator.clipboard)||null==o.writeText?void 0:o.writeText(t)),await this.checkClipboard()}catch(i){console.error(i,i.name,i.message)}}catch(n){console.error(n),alert(n.message)}},async onPaste(){let t=await this.getClipboardData(!0);try{t=t&&this.pasteData(t),t&&this.schemaComponent.setData(t)}catch(e){console.error(e),alert(e.message)}}}}),qi=Li,Ri=Ee(qi,Bi,Vi,!1,null,null,null),Fi=(Ri.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-form dito-scroll-parent",class:{"dito-form-nested":t.isNestedRoute}},[t.isLastUnnestedRoute||t.isNestedRoute?t._e():o("router-view",{directives:[{name:"show",rawName:"v-show",value:!t.isActive,expression:"!isActive"}]}),o(t.isNestedRoute?"div":"form",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],tag:"component",staticClass:"dito-scroll",on:{submit:function(t){t.preventDefault()}}},[o("dito-schema",{attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,disabled:t.isLoading,selectedTab:t.selectedTab,menuHeader:!0}},[o("dito-buttons",{staticClass:"dito-buttons-round dito-buttons-main dito-buttons-large",attrs:{slot:"buttons",buttons:t.buttonSchemas,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,disabled:t.isLoading},slot:"buttons"})],1)],1)],1)}),zi=[],Ti={data(){return{isLoading:!1}},methods:{setLoading(t,{updateRoot:e=!1,updateView:o=!1}={}){!this.isLoading^!t&&(this.isLoading=!!t,e&&this.rootComponent.registerLoading(t),o&&this.viewComponent.setLoading(this.isLoading))}}},Ii={mixins:[Po,Ti],provide(){return{$resourceComponent:()=>this,$verbs:()=>this.verbs,$isPopulated:()=>this.hasData}},data(){return{loadedData:null}},computed:{resourceComponent(){return this},resource(){return this.getResource()},providesData(){return!!this.resource},linksToView(){return!1},isTransient(){const t=this.formComponent;return!this.providesData&&!this.linksToView||t&&(t.isTransient||t.isCreating)},transientNote(){return this.isTransient&&"<b>Note</b>: the parent still needs to be saved in order to persist this change."},shouldLoad(){return!this.isTransient&&!this.isLoading},hasData(){return!!this.loadedData},verbs(){return this.getVerbs()},paginationRange(){const{paginate:t}=this.sourceSchema;if(this.isListSource&&t){const{page:e=0}=this.query||{},o=e*t;return[o,o+t-1]}},queryParams(){const t=this.paginationRange,{page:e,...o}=this.query||{};return{...o,...t&&{range:t.join(",")}}}},created(){(this.providesData||this.isCreating)&&this.setupData()},methods:{getResource(){var t,e,o;return X(null==(t=this.sourceSchema)?void 0:t.resource,{type:"collection",parent:null!=(e=null==(o=this.parentFormComponent)?void 0:o.resource)?e:null})},getVerbs(){const t=this.$verbs();return this.isTransient?{...t,create:"add",created:"added",save:"apply",saved:"applied",delete:"remove",deleted:"removed"}:t},clearData(){this.loadedData=null},setData(t){this.loadedData=t},setupData(){this.ensureData()},ensureData(){this.shouldLoad&&(this.hasData?this.reloadData():this.loadData(!0))},reloadData(){this.loadData(!1)},loadData(t){this.isTransient||(t&&this.clearData(),this.requestData())},createData(t,e){return ee(t,e?{type:e}:{},this)},requestData(){const t=this.queryParams;this.handleRequest({method:"get",params:t},(t,e)=>{if(t){if(e){var o;const{data:t}=e;if("FilterValidation"===(null==t?void 0:t.type)&&null!=(o=this.onFilterErrors)&&o.call(this,t.errors))return!0;if(this.isUnauthorizedError(e))return!0}}else this.setData(e.data),this.emitSchemaEvent("load")})},isValidationError(t){return 400===(null==t?void 0:t.status)},isUnauthorizedError(t){return 401===(null==t?void 0:t.status)},async handleRequest({method:t,resource:e=this.resource,data:o,params:i},n){const a={updateRoot:!0,updateView:this.isInView};this.setLoading(!0,a);const r={method:t,resource:e,data:o,params:i};try{const t=await this.sendRequest(r);n(null,t)}catch(s){const{response:t}=s;if(!n(s,t)){const e=null==t?void 0:t.data;e&&Object(y["isString"])(e.type)?this.notify({type:"error",title:Object(y["labelize"])(e.type),text:e.message||s}):this.notify({type:"error",title:"Request Error",text:s})}}this.setLoading(!1,a)},getPayloadData(t,e){return["post","patch"].includes(e)&&(t.getSchemaValue(["resource","data"])||t.processedItem)},async submit(t){const e=X(t.schema.resource,{parent:this.resource});if(e){const{method:o}=e,i=this.getPayloadData(t,o);return this.submitResource(t,e,o,i)}return!1},async submitResource(t,e,o,i,{setData:n=!1,onSuccess:a,onError:r,notifySuccess:s=(()=>this.notify({type:"success",title:"Request Successful",text:"Request was successfully sent."})),notifyError:l=(t=>this.notify({type:"error",title:"Request Error",text:["Unable to send request"+(t?":":""),(null==t?void 0:t.message)||t]}))}={}){return new Promise(d=>{this.handleRequest({method:o,data:i,resource:e},async(e,o)=>{const i=null==o?void 0:o.data;if(e){const n=this.isValidationError(o)&&i.errors;if(n)await this.showValidationErrors(n,!0);else{const o=Object(y["isObject"])(i)?i:e;null==r||r(o),await this.emitButtonEvent(t,"error",{notify:l,error:o})}d(!1)}else n&&i&&this.setData(i),null==a||a(),await this.emitButtonEvent(t,"success",{notify:s}),d(!0)})})},async emitButtonEvent(t,e,{notify:o,error:i}){const n=new F(t,{nested:!1,data:this.data,itemLabel:this.itemLabel,error:i}),a=await t.emitEvent(e,{context:n});return o&&void 0===a&&!n.wasNotified&&o(i),a}}},Ai=we.component("dito-form",{mixins:[Pe,Ii],data(){return{createdData:null,clonedData:void 0,sourceKey:null,isForm:!0}},computed:{verbs(){const t=this.getVerbs(),{isCreating:e,providesData:o}=this;return{...t,submit:e?t.create:t.save,submitted:e?t.created:t.saved,cancel:o?t.cancel:t.close,cancelled:o?t.cancelled:t.closed}},schema(){return this.getItemFormSchema(this.sourceSchema,this.data||{type:this.type},this.context)||{}},buttonSchemas(){return se(Object(y["merge"])({cancel:{type:"button",events:{click:()=>this.cancel()}},submit:!this.doesMutate&&{type:"submit",closeForm:!0,events:{click:({component:t})=>t.submit()}}},this.schema.buttons))},isActive(){return this.isLastRoute||this.isLastUnnestedRoute},isTransient(){return!this.providesData},isCreating(){return"create"===this.param},isDirty(){var t;return!this.doesMutate&&!(null==(t=this.mainSchemaComponent)||!t.isDirty)},selectedTab(){var t;return(null==(t=this.mainSchemaComponent)?void 0:t.selectedTab)||null},doesMutate(){return this.sourceSchema.mutate},type(){return this.$route.query.type},itemId(){var t;return this.isCreating?null:null!=(t=this.param)?t:null},method(){return this.isCreating?"post":"patch"},resource(){const t=this.getResource();return Z(this.itemId,t)||t},breadcrumbPrefix(){return Object(y["capitalize"])(this.isCreating?this.verbs.create:this.verbs.edit)},data(){return this.createdData||this.loadedData||this.inheritedData||null},dataPath(){return this.getDataPathFrom(this.dataComponent)},sourceData(){let{data:t}=this.parentRouteComponent;if(t){const e=Object(y["parseDataPath"])(this.getDataPathFrom(this.parentRouteComponent)),o=this.routeRecord.path.split("/"),i=o.slice(o.length-e.length);this.sourceKey=null;const n=e[e.length-1];me(this.sourceSchema)&&"create"===n&&e.length--;for(let a=0,r=e.length;a<r&&t;a++){const o=e[a],n=/^:id/.test(i[a])?"create"===o?null:this.findItemIdIndex(this.sourceSchema,t,o):o;a===r-1?this.sourceKey=n:t=t[n]}}return t},inheritedData(){if(this.isTransient&&void 0===this.clonedData&&this.sourceData&&null!==this.sourceKey){let t=this.sourceData[this.sourceKey];return this.doesMutate||(this.clonedData=t=Object(y["clone"])(t)),null===t&&!this.isCreating&&me(this.sourceSchema)&&this.$router.push({path:"create",append:!0}),t}return this.clonedData},hasData(){return!!this.data},itemLabel(){return this.getItemLabel(this.sourceSchema,this.data,{extended:!0})}},watch:{sourceData:"clearClonedData",create:"setupData"},methods:{emitSchemaEvent(t,e){return this.mainSchemaComponent.emitEvent(t,e)},getDataPathFrom(t){return this.api.denormalizePath(this.path.slice((t.isView?0:t.path.length)+1))},setupData(){this.isCreating?this.createdData=this.createdData||this.createData(this.schema,this.type):this.ensureData()},setSourceData(t){if(this.sourceData&&null!==this.sourceKey){const{mainSchemaComponent:e}=this;return this.$set(this.sourceData,this.sourceKey,e.filterData(t)),e.onChange(),!0}return!1},addSourceData(t){var e;return me(this.sourceSchema)?this.setSourceData(t):!(null==(e=this.sourceData)||!e.push(t))},clearData(){this.setData(null)},setData(t){this.isTransient?this.setSourceData(t):(this.createdData=null,this.loadedData=t)},clearClonedData(t,e){t!==e&&(this.clonedData=void 0)},async cancel(){return this.close()},async close(){return this.navigate(this.parentRouteComponent.path)},getSubmitVerb(t=!0){return this.isCreating?t?"create":"created":t?"submit":"submitted"},async submit(t,{validate:e=!0,closeForm:o=!1}={}){if(e&&!this.validateAll())return!1;const i=t=>this.verbs[this.getSubmitVerb(t)],n=X(t.schema.resource,{parent:this.resource}),a=n||this.resource,r=(null==a?void 0:a.method)||this.method,s=this.getPayloadData(t,r);let l;if(l=!n&&this.isTransient?await this.submitTransient(t,a,r,s,{onSuccess:()=>this.emitSchemaEvent(this.getSubmitVerb()),onError:t=>this.emitSchemaEvent("error",{context:{error:t}}),notifySuccess:()=>{const t=i(!1);this.notify({type:"info",title:this.isCreating?"Item "+Object(y["capitalize"])(t):"Change "+Object(y["capitalize"])(t),text:[this.isCreating?`${this.itemLabel} was ${t}.`:`Changes to ${this.itemLabel} were ${t}.`,this.transientNote]})},notifyError:()=>{const t=i(!0);this.notify({type:"error",title:"Request Error",text:`Unable to ${t} ${this.itemLabel}.`})}}):await this.submitResource(t,a,r,s,{setData:!0,onSuccess:()=>this.emitSchemaEvent(this.getSubmitVerb()),onError:t=>this.emitSchemaEvent("error",{context:{error:t}}),notifySuccess:()=>{const t=i(!1);this.notify({type:"success",title:"Successfully "+Object(y["capitalize"])(t),text:`${this.itemLabel} was ${t}.`})},notifyError:t=>{const e=i(!0);this.notify({type:"error",title:"Request Error",text:[`Unable to ${e} ${this.itemLabel}${t?":":""}`,(null==t?void 0:t.message)||t]})}}),l)if(this.resetValidation(),o||t.closeForm)this.close();else if(this.isCreating){const t=this.getItemId(this.schema,this.data);this.$router.replace({path:"../"+t,append:!0})}return l},async submitTransient(t,e,o,i,{onSuccess:n,onError:a,notifySuccess:r,notifyError:s}){const l=this.isCreating?this.addSourceData(i):this.setSourceData(i);if(l)null==n||n(),await this.emitButtonEvent(t,"success",{notify:r});else{const e="Could not submit transient item";null==a||a(e),await this.emitButtonEvent(t,"error",{notify:s,error:e})}return l}}}),Ni=Ai,Ui=Ee(Ni,Fi,zi,!1,null,null,null),Hi=Ui.exports,Wi=Hi.component("dito-form-nested",{}),Ki=Wi,Yi=(o("0d98"),Ee(Ki,oi,ii,!1,null,null,null)),Ji=(Yi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.errors?o("div",{staticClass:"dito-errors"},[o("ul",t._l(t.errors,(function(e){return o("li",[t._v(t._s(e))])})),0)]):t._e()}),Qi=[],Gi=we.component("dito-errors",{props:{errors:{type:Array,default:null}}}),Xi=Gi,Zi=(o("491f"),Ee(Xi,Ji,Qi,!1,null,null,null)),tn=(Zi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-scopes"},t._l(t.scopes,(function(e,i){return o("router-link",{key:i,attrs:{to:t.getScopeLink(e),custom:""},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.navigate;return[o("button",{staticClass:"dito-button",class:{"dito-selected":e.name===t.query.scope},attrs:{type:"button",title:e.hint||t.getLabel(e)},on:{click:n}},[t._v(t._s(t.getLabel(e)))])]}}],null,!0)})})),1)}),en=[],on=we.component("dito-scopes",{props:{query:{type:Object,required:!0},scopes:{type:Object,required:!0}},methods:{getScopeLink(t){const e={...this.query,scope:t.name};return e.page&&(e.page=0),this.getQueryLink(e)}}}),nn=on,an=(o("f1b0"),Ee(nn,tn,en,!1,null,null,null)),rn=(an.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("pagination",{attrs:{pageSize:t.limit,total:t.total,page:t.page},on:{"update:page":function(e){t.page=e}}})}),sn=[],ln=we.component("dito-pagination",{components:{Pagination:Be["Pagination"]},props:{query:{type:Object,required:!0},limit:{type:Number,required:!0},total:{type:Number,required:!0}},computed:{page:{get(){return(+this.query.page||0)+1},set(t){this.page!==t&&this.$router.push(this.getQueryLink({...this.query,page:t-1}))}}}}),dn=ln,cn=Ee(dn,rn,sn,!1,null,null,null),un=(cn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tree-item",class:{"dito-dragging":t.dragging,"dito-active":t.active},style:t.level>0&&{"--level":t.level},attrs:{id:t.dataPath}},[t.label?o("div",{staticClass:"dito-tree-header"},[t.numEntries?o("div",{staticClass:"dito-tree-branch",on:{click:function(e){e.stopPropagation(),t.opened=!t.opened}}},[t.numEntries?o("div",{staticClass:"dito-chevron",class:{"dito-opened":t.opened}}):t._e(),o("div",{staticClass:"dito-tree-label",domProps:{innerHTML:t._s(t.label)}}),t.details?o("div",{staticClass:"dito-tree-info"},[t._v(t._s(t.details))]):t._e()]):o("div",{staticClass:"dito-tree-leaf"},[o("div",{staticClass:"dito-tree-label",domProps:{innerHTML:t._s(t.label)}})]),t.hasEditButtons?o("div",{staticClass:"dito-buttons dito-buttons-small"},[t.draggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.editable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:t.onEdit}},"button",t.getButtonAttributes(t.verbs.edit),!1)):t._e(),t.deletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:t.onDelete}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()]):t._e()]):t._e(),t.properties?o("table",{directives:[{name:"show",rawName:"v-show",value:t.opened,expression:"opened"}],staticClass:"dito-properties"},t._l(t.properties,(function(e){return o("tr",[o("td",[!1!==e.label?o("dito-label",{attrs:{dataPath:t.getPropertyDataPath(e),label:t.getLabel(e)}}):t._e()],1),o("dito-table-cell",{attrs:{cell:e,schema:e,dataPath:t.getPropertyDataPath(e),data:t.data,meta:t.nestedMeta,store:t.store,disabled:t.disabled}})],1)})),0):t._e(),t.childrenSchema?o("vue-draggable",t._b({directives:[{name:"show",rawName:"v-show",value:t.opened,expression:"opened"}],attrs:{list:t.updateOrder(t.childrenSchema,t.childrenList)},on:{start:t.onStartDrag,end:function(e){return t.onEndDrag(e,t.childrenSchema)}}},"vue-draggable",t.getDragOptions(t.childrenDraggable,!0),!1),t._l(t.childrenItems,(function(e,i){return o("dito-tree-item",{key:t.getItemUid(t.childrenSchema,e.data),attrs:{schema:t.childrenSchema,dataPath:t.getItemDataPath(t.childrenSchema,i),data:e.data,path:e.path,open:e.open,active:e.active,draggable:t.childrenDraggable,label:t.getItemLabel(t.childrenSchema,e.data,{index:i}),level:t.level+1}})})),1):t._e()],1)}),pn=[],hn=o("289a"),mn=o.n(hn),bn={mixins:[Po],data(){return{dragging:!1}},methods:{onStartDrag(){this.dragging=!0},onEndDrag({oldIndex:t,newIndex:e}){this.dragging=!1,t!==e&&this.onChange()},updateOrder(t,e,o){const{orderKey:i}=t;if(i){const t=(null==o?void 0:o[0])||0;for(let o=0;o<e.length;o++)e[o][i]=o+t}return e}}},fn=we.component("dito-tree-item",{components:{VueDraggable:mn.a},mixins:[bn],inject:["container"],props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Array,Object],default:null},path:{type:String,default:""},open:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},label:{type:String,default:null},level:{type:Number,default:0}},data(){return{opened:this.open||this.schema.open}},computed:{meta(){return this.container.meta},store(){return this.container.store},disabled(){return this.container.disabled},nestedMeta(){return{...this.meta,schema:this.schema}},properties(){return re(this.schema.properties)},childrenSchema(){return this.schema.children},childrenList(){var t;const e=null==(t=this.childrenSchema)?void 0:t.name;return e&&this.data[e]},childrenDraggable(){var t;return(null==(t=this.childrenList)?void 0:t.length)>1&&this.getSchemaValue("draggable",{type:Boolean,default:!1,schema:this.childrenSchema})},numChildren(){var t;return(null==(t=this.childrenList)?void 0:t.length)||0},numProperties(){var t;return(null==(t=this.properties)?void 0:t.length)||0},numEntries(){return this.numProperties+this.numChildren},childrenItems(){const{childrenSchema:t}=this;if(t){var e;const{editPath:o}=this.container,i=!this.path&&t.open;return(null==(e=this.childrenList)?void 0:e.map((e,n)=>{const a=t.path&&`${this.path}/${t.path}/${n}`,r=i||o.startsWith(a)&&a.length<o.length,s=o===a;return{data:e,path:a,open:r,active:s}}))||[]}},details(){const{numChildren:t}=this;return t&&`${t} ${1===t?"item":"items"}`},hasEditButtons(){return this.draggable||this.editable||this.deletable},creatable:gt("creatable",{type:Boolean,default:!1,get(t){return t&&Tt(this.schema)}}),editable:gt("editable",{type:Boolean,default:!1,get(t){return t&&Tt(this.schema)}}),deletable:gt("deletable",{type:Boolean,default:!1})},methods:{getPropertyDataPath(t){return x(this.dataPath,t.name)},onEdit(){this.$router.push({path:`${this.container.path}${this.path}`,query:this.$route.query})},onDelete(){},onChange(){this.container.onChange()}}}),gn=fn,vn=(o("af74"),Ee(gn,un,pn,!1,null,null,null)),yn=(vn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("thead",{staticClass:"dito-table-head"},[o("tr",[t._l(t.columns,(function(e,i){return o("th",{class:t.getColumnClass(e)},[e.sortable?o("router-link",{attrs:{to:t.getSortLink(e),custom:""},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.navigate;return[o("button",{staticClass:"dito-button",class:t.getSortClass(e),attrs:{type:"button"},on:{click:n}},[o("div",{staticClass:"dito-order-arrows"}),o("span",[t._v(t._s(t.getLabel(e)))])])]}}],null,!0)}):o("span",[t._v(t._s(t.getLabel(e)))])],1)})),t.hasEditButtons?o("th",[o("span")]):t._e()],2)])}),xn=[],wn=we.component("dito-table-head",{props:{query:{type:Object,required:!0},columns:{type:Object,required:!0},hasEditButtons:{type:Boolean,required:!0}},computed:{sort(){const t=(this.query.order||"").split(/\s+/);return{name:t[0],order:t[1]}}},methods:{getColumnClass(t){return"dito-column-"+Object(y["hyphenate"])(t.name)},getSortClass(t){return this.sort.name===t.name?"dito-selected dito-order-"+this.sort.order:null},getSortLink(t){const e=this.sort.name===t.name&&"asc"===this.sort.order?"desc":"asc";return this.getQueryLink({...this.query,order:`${t.name} ${e}`})}}}),_n=wn,kn=(o("f4aa"),Ee(_n,yn,xn,!1,null,null,null)),Cn=(kn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("td",{class:t.cell.class,style:t.cell.style},[t.component?o(t.component,{tag:"component",attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,nested:t.nested,disabled:t.disabled}}):o("span",{domProps:{innerHTML:t._s(t.renderCell(t.data))}})],1)}),On=[],jn=we.component("dito-table-cell",{props:{cell:{type:Object,required:!0},schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},nested:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{component(){return this.resolveTypeComponent(this.cell.component)}},methods:{renderCell(t){const{name:e,render:o}=this.cell,i=t[e];return o?o.call(this,new F(this,{name:e,value:i,data:t,dataPath:x(this.dataPath,e)})):Object(y["escapeHtml"])(i)}}}),Pn=jn,Sn=Ee(Pn,Cn,On,!1,null,null,null),Dn=(Sn.exports,we.component("dito-vnode",{functional:!0,render:(t,e)=>e.props.node})),En=Dn,$n=Ee(En,ni,ai,!1,null,null,null),Mn=($n.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",t._g(t._b({ref:"element",staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{id:t.dataPath,type:t.type,title:t.text}},"button",t.attributes,!1),t.listeners),[t._v(t._s(t.text))])}),Bn=[];const Vn=we.extend({mixins:[ve],nativeField:!1,textField:!1,defaultValue:null,defaultNested:!0,defaultVisible:!0,generateLabel:!0,excludeValue:!1,ignoreMissingValue:null,omitPadding:!1});Vn.register=function(t,e={}){t=Object(y["asArray"])(t);const o=this.component("dito-type-"+t[0],e);for(const i of t)jt(i,o);return o},Vn.get=Pt;var Ln=Vn,qn=Ln.register(["button","submit"],{defaultValue:()=>{},excludeValue:!0,defaultWidth:"auto",computed:{verb(){return this.verbs[this.name]||this.name},text:gt("text",{type:String,get(t){return t||Object(y["labelize"])(this.verb)}}),closeForm:gt("closeForm",{type:Boolean,default:!1})},methods:{getListeners(){return{focus:this.onFocus,blur:this.onBlur,click:this.onClick}},async submit(t){var e;return null==(e=this.resourceComponent)?void 0:e.submit(this,t)},async onClick(){const t=await this.emitEvent("click",{parent:this.schemaComponent});void 0===t&&G(this.schema)&&await this.submit()}}}),Rn=qn,Fn=Ee(Rn,Mn,Bn,!1,null,null,null),zn=(Fn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"element",staticClass:"dito-checkbox",attrs:{id:t.dataPath,type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var o=t.value,i=e.target,n=!!i.checked;if(Array.isArray(o)){var a=null,r=t._i(o,a);i.checked?r<0&&(t.value=o.concat([a])):r>-1&&(t.value=o.slice(0,r).concat(o.slice(r+1)))}else t.value=n}}},"input",t.attributes,!1),t.listeners))}),Tn=[],In=Ln.register("checkbox",{nativeField:!0}),An=In,Nn=(o("1b9a"),Ee(An,zn,Tn,!1,null,null,null)),Un=(Nn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",{staticClass:"dito-checkboxes",class:"dito-layout-"+(t.schema.layout||"vertical"),attrs:{id:t.dataPath}},t._l(t.options,(function(e){return o("li",[o("label",[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedOptions,expression:"selectedOptions"}],ref:"element",refInFor:!0,staticClass:"dito-checkbox",attrs:{type:"checkbox"},domProps:{value:t.getValueForOption(e),checked:Array.isArray(t.selectedOptions)?t._i(t.selectedOptions,t.getValueForOption(e))>-1:t.selectedOptions},on:{change:function(o){var i=t.selectedOptions,n=o.target,a=!!n.checked;if(Array.isArray(i)){var r=t.getValueForOption(e),s=t._i(i,r);n.checked?s<0&&(t.selectedOptions=i.concat([r])):s>-1&&(t.selectedOptions=i.slice(0,s).concat(i.slice(s+1)))}else t.selectedOptions=a}}},"input",t.attributes,!1),t.listeners)),t._v(t._s(t.getLabelForOption(e)))])])})),0)}),Hn=[],Wn={mixins:[Ti],data(){return{isLoading:!1,asyncDataEntries:{}}},methods:{handleDataSchema(t,e,{resolveCounter:o=1,...i}={}){var n;Object(y["isObject"])(t)||(t={data:t});let{data:a,dataPath:r=null}=t;const s=this.asyncDataEntries[e]||this.$set(this.asyncDataEntries,e,{dependencyFunction:null,resolveCounter:0,resolvedData:null,resolving:!1});if(null==(n=s.dependencyFunction)||n.call(this,this.context),s.resolveCounter>0){const{resolvedData:t}=s;return 0===--s.resolveCounter&&(s.resolvedData=null),t}if(s.resolving)a=null;else if(a){if(Object(y["isFunction"])(a)){const t=a.call(this,this.context);Object(y["isFunction"])(t)?(s.dependencyFunction=a,a=t.call(this,this.context)):a=t}Object(y["isPromise"])(a)&&(s.resolving=!0,this.resolveData(a,i).then(t=>{s.resolveCounter=o,s.resolvedData=t,s.resolving=!1}),a=null)}else r&&(a=Object(y["getValueAtDataPath"])(this.rootData,Object(y["normalizeDataPath"])(`${this.dataPath}/${r}`)));return a},async resolveData(t,e={}){this.setLoading(!0,e);let o=null;try{o=await(Object(y["isFunction"])(t)?t():t)}catch(i){this.addError(i.message||i)}return this.setLoading(!1,e),o}}},Kn={mixins:[Wn],data(){return{hasOptions:!1}},computed:{selectedValue:{get(){const t=t=>this.relate?this.hasOption(t)?this.getValueForOption(t):null:t,e=Object(y["isArray"])(this.value)?this.value.map(t).filter(t=>null!==t):t(this.value);return this.relate&&this.hasOptions&&(null===e&&null!==this.value||V(this.value))&&(this.selectedValue=e),e},set(t){const e=t=>this.relate?this.getOptionForValue(t):t;this.value=Object(y["isArray"])(t)?t.map(e):e(t)}},selectedOption(){return this.getOptionForValue(this.selectedValue)},options(){var t;const e=null!=(t=this.handleDataSchema(this.schema.options,"options",{resolveCounter:1}))?t:[];if(!Object(y["isArray"])(e))throw new Error("Invalid options data, should be array: "+e);return this.hasOptions=e.length>0,this.processOptions(e)},activeOptions(){return this.options},relate:gt("relate",{type:Boolean,default:!1,callback:!1}),groupBy:gt("groupBy",{type:String,default:null}),optionLabel:gt("options.label",{type:[String,Function],default:null,get(t){return t||this.getOptionKey("label")||null}}),optionValue:gt("options.value",{type:[String,Function],default:null,get(t){return t||this.relate&&"id"||this.getOptionKey("value")||null}}),searchFilter:gt("search",{type:[Object,Function],default:null,get(t){if(t){const{filter:e,debounce:o}=Object(y["isFunction"])(t)?{filter:t}:t;return o?Object(y["debounceAsync"])(e,o):e}}}),groupByLabel(){return this.groupBy?"label":null},groupByOptions(){return this.groupBy?"options":null}},methods:{getOptionKey(t){const[e]=this.activeOptions;return Object(y["isObject"])(e)&&t in e?t:null},processOptions(t){if(t.length){if(this.relate)for(const e of t)"id"in e||M(e,"id");if(this.groupBy){const e={};t=t.reduce((t,o)=>{const i=o[this.groupBy];let n=e[i];return n||(n=e[i]={[this.groupByLabel]:i,[this.groupByOptions]:[]},t.push(n)),n.options.push(o),t},[])}}return t},hasOption(t){return!!this.getOptionForValue(this.getValueForOption(t))},getOptionForValue(t){const e=(t,o,i)=>{for(const n of t)if(i){const t=e(n.options,o,null);if(t)return t}else if(o===this.getValueForOption(n))return n};return this.optionValue?e(this.activeOptions,t,this.groupBy):t},getValueForOption(t){const{optionValue:e}=this;return Object(y["isString"])(e)?null==t?void 0:t[e]:Object(y["isFunction"])(e)?e.call(this,new F(this,{option:t})):t},getLabelForOption(t){const{optionLabel:e}=this;return Object(y["isString"])(e)?null==t?void 0:t[e]:Object(y["isFunction"])(e)?e.call(this,new F(this,{option:t})):Object(y["labelize"])(""+t)}},processValue(t,e,o,i){if(t.relate){var n;const a=null==(n=t.options)?void 0:n.dataPath,r=a?Object(y["normalizeDataPath"])(`${o}/${a}`):null;i.addRelation(o,r,t),r&&i.setSourceRelated(r);const s=t=>t?{id:t.id}:t;e=Object(y["isArray"])(e)?e.map(s):s(e)}return e}},Yn=Ln.register("checkboxes",{mixins:[Kn],nativeField:!0,defaultValue:[],computed:{selectedOptions:{get(){return(this.selectedValue||[]).filter(t=>t)},set(t){this.selectedValue=t||[]}}}}),Jn=Yn,Qn=(o("d10f"),Ee(Jn,Un,Hn,!1,null,null,null)),Gn=(Qn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"code",staticClass:"dito-code",style:t.style,attrs:{id:t.dataPath}})}),Xn=[],Zn=o("1f57"),ta=o.n(Zn),ea=Ln.register("code",{mixins:[Ve],computed:{lines(){return this.schema.lines||3},style(){return`height: calc(${this.lines}em * var(--line-height))`}},mounted(){const t=new ta.a(this.$refs.code,{language:this.schema.language||"javascript",tabSize:this.schema.indentSize||2,lineNumbers:!1});let e=!1,o=!1,i=!1;const n=()=>{!this.focused&&e&&(e=!1,this.onChange())},a=()=>this.onFocus(),r=()=>{this.onBlur(),n()};this.domOn(this.$refs.code.querySelector("textarea"),{focus:a,blur:r});const s=e=>{e!==t.code&&(i=!0,t.updateCode(e))},l=t=>{t!==this.value&&(o=!0,this.value=t,e=!0,n())};t.onUpdate(t=>{i?i=!1:l(t)}),this.$watch("value",t=>{o?o=!1:s(t||"")}),s(this.value||"")},methods:{focus(){var t;null==(t=this.$el.querySelector("textarea"))||t.focus()}}}),oa=ea,ia=(o("184f"),Ee(oa,Gn,Xn,!1,null,null,null)),na=(ia.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("trigger",{staticClass:"dito-color",attrs:{trigger:"click",show:t.showPopup},on:{"update:show":function(e){t.showPopup=e}}},[o("div",{staticClass:"dito-input",class:{"dito-focus":t.showPopup},attrs:{slot:"trigger"},slot:"trigger"},[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.hexValue,expression:"hexValue"}],ref:"element",attrs:{id:t.dataPath,type:"input",size:"8"},domProps:{value:t.hexValue},on:{input:function(e){e.target.composing||(t.hexValue=e.target.value)}}},"input",t.attributes,!1),t.listeners)),t.value?o("div",{staticClass:"dito-color-preview dito-inherit-focus"},[o("div",{style:{background:"#"+(t.hexValue||"00000000")}})]):t._e(),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}}):t._e()]),o("sketch-picker",{staticClass:"dito-color-picker",attrs:{slot:"popup","disable-alpha":!t.alpha,"disable-fields":!t.inputs,"preset-colors":t.presets},slot:"popup",model:{value:t.colorValue,callback:function(e){t.colorValue=e},expression:"colorValue"}})],1)}),aa=[],ra=o("4d89"),sa=o.n(ra),la=o("a672"),da=Ln.register("color",{components:{Trigger:Be["Trigger"],SketchPicker:la["Sketch"]},data(){return{showPopup:!1,convertedHexValue:null}},computed:{colorValue:{get(){return this.value||{}},set(t){const e=this.colorFormat,o={hex:(null==t?void 0:t.a)<1?"hex8":"hex",rgb:"rgba"}[e]||e;this.value=o?t[o]:sa()(t).toString(e)}},hexValue:{get(){if(null==this.value)this.convertedHexValue=null;else if(!this.focused){const t=sa()(this.value);t.isValid()&&(this.convertedHexValue=t.toString(t.getAlpha()<1?"hex8":"hex6").slice(1).toUpperCase())}return this.convertedHexValue},set(t){this.convertedHexValue=t}},colorFormat:gt("format",{type:String,default:"hex"}),alpha:gt("alpha",{type:Boolean,default:!1}),inputs:gt("inputs",{type:Boolean,default:!0}),presets:gt("presets",{type:Array,default:["#ffffff","#c3c3c3","#7f7f7f","#000000","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#b97a57","#ffaec9","#ffc90e","#00000000"]})},watch:{focused(t){if(!t&&this.convertedHexValue){const t=sa()("#"+this.convertedHexValue);null!=t&&t.isValid()&&(this.value=t.toString(this.colorFormat),this.onChange())}}}}),ca=da,ua=(o("a94f"),Ee(ca,na,aa,!1,null,null,null)),pa=(ua.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(t.component,t._b({tag:"component"},"component",t.$props,!1))}),ha=[],ma=Ln.register("component",{defaultValue:()=>{},ignoreMissingValue:t=>!("default"in t)}),ba=ma,fa=Ee(ba,pa,ha,!1,null,null,null),ga=(fa.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input",{ref:"element",staticClass:"dito-text dito-input",attrs:{id:t.dataPath,name:t.name,type:"text",disabled:t.disabled,readonly:!0},domProps:{value:t.value}})}),va=[],ya=Ln.register(["computed","data","hidden"],{mixins:[Wn],defaultValue:()=>{},defaultVisible:!1,computed:{value:{get(){const{schema:t}=this;if(t.data||t.dataPath){const e=this.handleDataSchema(t,"schema",{resolveCounter:2});this.$set(this.data,this.name,e)}return ve.computed.value.get.call(this)},set(t){ve.computed.value.set.call(this,t)}}}}),xa=ya,wa=Ee(xa,ga,va,!1,null,null,null),_a=(wa.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-date"},[o(t.getComponent(t.type),t._g(t._b({ref:"element",tag:"component",attrs:{id:t.dataPath,locale:t.locale,dateFormat:Object.assign({},t.api.formats.date,t.dateFormat)},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}},"component",t.attributes,!1),t.listeners))],1)}),ka=[],Ca=Ln.register(["date","datetime","time"],{components:{DatePicker:Be["DatePicker"],TimePicker:Be["TimePicker"],DateTimePicker:Be["DateTimePicker"]},nativeField:!0,textField:!0,computed:{dateValue:{get(){const{value:t}=this;return t?new Date(t):t},set(t){this.value=t}},dateFormat:gt("dateFormat",{type:Object,default:null})},methods:{getComponent(t){return{date:"date-picker",time:"time-picker",datetime:"date-time-picker"}[t]}},processValue(t,e){return Object(y["isDate"])(e)?e.toISOString():e}}),Oa=Ca,ja=Ee(Oa,_a,ka,!1,null,null,null),Pa=(ja.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isReady?o("div",{staticClass:"dito-list",class:t.schema.class,style:t.schema.style,attrs:{id:t.dataPath}},[o("div",{staticClass:"dito-navigation"},[t.scopes?o("dito-scopes",{attrs:{query:t.query,scopes:t.scopes}}):t.paginate?o("div",{staticClass:"dito-spacer"}):t._e(),t.paginate?o("dito-pagination",{attrs:{query:t.query,limit:t.paginate,total:t.total||0}}):t._e()],1),o("table",{staticClass:"dito-table",class:{"dito-table-separators":t.isInlined,"dito-table-larger-padding":t.hasEditButtons&&!t.isInlined,"dito-table-alternate-colors":!t.isInlined,"dito-table-even-count":t.hasEvenCount}},[t.columns?o("dito-table-head",{attrs:{query:t.query,columns:t.columns,hasEditButtons:t.hasEditButtons}}):t._e(),o("vue-draggable",t._b({attrs:{tag:"tbody",list:t.updateOrder(t.sourceSchema,t.listData,t.paginationRange)},on:{start:t.onStartDrag,end:t.onEndDrag}},"vue-draggable",t.getDragOptions(t.draggable),!1),t._l(t.listData,(function(e,i){return o("tr",{key:t.getItemUid(t.schema,e),attrs:{id:t.getDataPath(i)}},[t.columns?t._l(t.columns,(function(n){return o("dito-table-cell",{key:n.name,class:t.getCellClass(n),attrs:{cell:n,schema:t.schema,dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.store,nested:!1,disabled:t.disabled||t.isLoading}})})):[o("td",[t.isInlined?o("dito-schema-inlined",{attrs:{label:t.getItemLabel(t.schema,e,{index:i,asObject:!0}),schema:t.getItemFormSchema(t.schema,e,t.context),dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.getChildStore(i),disabled:t.disabled||t.isLoading,collapsed:t.collapsed,collapsible:t.collapsible,deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.getEditPath(e,i)},on:{delete:function(o){return t.deleteItem(e,i)}}}):t.component?o(t.component,{tag:"component",attrs:{dataPath:t.getDataPath(i),data:e,nested:!1}}):t.render?o("span",{domProps:{innerHTML:t._s(t.render(t.getContext(e,i)))}}):o("span",{domProps:{innerHTML:t._s(t.getItemLabel(t.schema,e,{index:i}))}})],1)],t.hasCellEditButtons?o("td",{staticClass:"dito-cell-edit-buttons"},[o("dito-edit-buttons",{attrs:{deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.getEditPath(e,i),schema:t.getItemFormSchema(t.schema,e,t.context),dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.getChildStore(i)},on:{delete:function(o){return t.deleteItem(e,i)}}})],1):t._e()],2)})),0),t.hasListButtons&&!t.single?o("tfoot",[o("tr",[o("td",{staticClass:"dito-cell-edit-buttons",attrs:{colspan:t.numColumns}},[o("dito-edit-buttons",{attrs:{creatable:t.creatable,createPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.listData,meta:t.meta,store:t.store}})],1)])]):t._e()],1),t.hasListButtons&&t.single?o("dito-edit-buttons",{staticClass:"dito-buttons-main dito-buttons-large",attrs:{creatable:t.creatable,createPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.listData,meta:t.meta,store:t.store}}):t._e()],1):t._e()}),Sa=[],Da={mixins:[Ii,Oe],defaultValue(t){return be(t)?[]:null},provide(){return{$sourceComponent:()=>this}},data(){return{wrappedPrimitives:null,unwrappingPrimitives:!1,ignoreRouteChange:!1}},computed:{sourceComponent(){return this},isObjectSource(){return me(this.type)},isListSource(){return be(this.type)},hasData(){return!!this.value},isReady(){return this.hasData||!this.providesData},isInView(){return!!this.viewComponent},wrapPrimitives(){return this.schema.wrapPrimitives},listData:{get(){let t=this.value;t=this.isObjectSource?null!=t?[t]:[]:this.unwrapListData(t)||t,t=t||[];const{wrapPrimitives:e}=this;return e?(this.unwrappingPrimitives?this.unwrappingPrimitives=!1:this.wrappedPrimitives=t.map(t=>({[e]:t})),this.wrappedPrimitives):t},set(t){this.wrapPrimitives?this.wrappedPrimitives=t:this.value=this.isObjectSource?t&&t.length>0?t[0]:null:t}},objectData:{get(){return this.listData[0]||null},set(t){this.listData=t?[t]:[]}},sourceSchema(){return this.schema},path(){return this.routeComponent.getChildPath(this.schema.path)},defaultQuery(){const{defaultOrder:t}=this;return t?{order:t}:{}},query:vt("query",{get(t){return{...this.defaultQuery,...t}},set(t){var e;const{scope:o=(null==(e=this.defaultScope)?void 0:e.name),page:i=this.schema.page}=this.query;return t={...this.query,...null!=o&&{scope:o},...null!=i&&{page:i},...t},Object(y["equals"])(t,this.$route.query)||(this.ignoreRouteChange=!0,this.$router.replace({query:t,hash:this.$route.hash})),t}}),total:vt("total"),columns(){return re(this.schema.columns)},scopes(){return re(this.schema.scopes)},defaultScope(){if(this.scopes){let t=null;for(const e of Object.values(this.scopes)){if(e.defaultScope)return e;t||(t=e)}return t}},defaultOrder(){if(this.columns)for(const t of Object.values(this.columns)){const{defaultSort:e}=t;if(e){const o=Object(y["isString"])(e)?e:"asc";return`${t.name} ${o}`}}},nestedMeta(){return{...this.meta,schema:this.schema}},forms(){return Object.values(Ut(this.schema,this.context))},view(){return At(this.schema,this.context)},linksToView(){return!!this.view},buttonSchemas(){return se(this.schema.buttons)},hasLabels(){return this.forms.some(te)},isCompact(){return this.forms.every(Yt)},isInlined(){return Jt(this.schema)},paginate:gt("paginate",{type:Number}),render:gt("render",{type:Function,default:null}),creatable:gt("creatable",{type:Boolean,default:!1,get(t){return!(!t||!Tt(this.schema))&&(!this.isObjectSource||!this.value)}}),editable:gt("editable",{type:Boolean,default:!1,get(t){return t&&!this.isInlined}}),deletable:gt("deletable",{type:Boolean,default:!1}),draggable:gt("draggable",{type:Boolean,default:!1,get(t){return this.isListSource&&this.listData.length>1&&t}}),collapsible:gt("collapsible",{type:Boolean,default:null,get(t){return this.isInlined&&!!(null!=t?t:null!==this.collapsed)}}),collapsed:gt("collapsed",{type:Boolean,default:null})},watch:{$route(t,e){this.ignoreRouteChange?this.ignoreRouteChange=!1:e.path===t.path&&e.hash===t.hash&&(this.query=t.query,this.loadData(!1))},wrappedPrimitives:{deep:!0,handler(t,e){const{wrapPrimitives:o}=this;o&&null!==e&&(this.unwrappingPrimitives=!0,this.value=t.map(t=>t[o]))}}},methods:{setupData(){this.query=this.$route.query,this.ensureData()},clearData(){this.total=0,this.value=null},setData(t){!t||this.isListSource&&Object(y["isArray"])(t)||this.isObjectSource&&Object(y["isObject"])(t)?this.value=t:this.unwrapListData(t)||Object(y["isObject"])(t)&&this.isInView&&this.viewComponent.setData(t)},unwrapListData(t){if(this.isListSource&&Object(y["isObject"])(t)&&Object(y["isNumber"])(t.total)&&Object(y["isArray"])(t.results))return this.total=t.total,this.value=t.results,this.value},createItem(t,e){const o=this.createData(t,e);return this.isObjectSource?this.objectData=o:this.listData.push(o),this.collapsible&&this.$nextTick(()=>this.openSchemaComponent(-1)),this.onChange(),o},removeItem(t){if(this.isObjectSource)this.objectData=null,this.onChange();else{const{listData:e}=this,o=e&&e.indexOf(t);o>=0&&(e.splice(o,1),this.onChange())}},deleteItem(t,e){const o=t&&this.getItemLabel(this.schema,t,{index:e,extended:!0}),i=()=>this.notify({type:this.isTransient?"info":"success",title:"Successfully Removed",text:[`${o} was ${this.verbs.deleted}.`,this.transientNote]});if(t&&window.confirm(`Do you really want to ${this.verbs.delete} ${o}?`))if(this.isTransient)this.removeItem(t),i();else{const e=this.getItemId(this.schema,t),o=Z(e,this.resource);o&&this.handleRequest({method:"delete",resource:o},e=>{e||(this.removeItem(t),i()),this.reloadData()})}},getSchemaComponent(t){const{schemaComponents:e}=this,{length:o}=e;return e[(t%o+o)%o]},openSchemaComponent(t){const e=this.getSchemaComponent(t);e&&(e.opened=!0)},async navigateToComponent(t,e){if(this.collapsible){var o;const n=t.startsWith(this.dataPath)&&null!=(o=Object(y["parseDataPath"])(t.slice(this.dataPath.length+1))[0])?o:null;if(null!==n&&Object(y["isNumber"])(+n)){const o=this.getSchemaComponent(+n);if(o){var i;const{opened:n}=o;o.opened=!0,await this.$nextTick();const a=o.getComponentsByDataPath(t);if(a.length>0&&(null==(i=null==e?void 0:e(a))||i))return!0;o.opened=n}}}return this.navigateToRouteComponent(t,e)},navigateToRouteComponent(t,e){return new Promise((o,i)=>{const n=()=>{var t;const{routeComponents:i}=this.appState,n=i[i.length-1];o(null==(t=null==e?void 0:e([n]))||t)},a=Object(y["parseDataPath"])(t);while(a.length>0){const t=this.routeComponent.getChildPath(this.api.normalizePath(Object(y["normalizeDataPath"])(a))),{matched:e}=this.$router.match(t);e.length&&(this.$route.path===t?n():this.$router.push({path:t},()=>this.$nextTick(n),i)),a.pop()}o(!1)})}},async processSchema(t,e,o,i,n,a=!1,r=!1,s=null){Vt(t,e,o);const l=Jt(e);if(l&&e.resource)throw new Error("Lists with nested forms cannot load data from their own resources");const d="id"+(n+1),c={api:t,schema:e},u={...c,flatten:r,nested:a,param:d},p=await qt(t,e,n);if(s&&await s(p,n+1),Tt(e)&&!l){const t=(t,e)=>e?t?`${t}/:${e}`:":"+e:t,o=0===n?"":e.path,s={path:t(o,be(e)&&d),component:we.component(a?"dito-form-nested":"dito-form"),meta:u};me(e)&&i.push({...s,path:t(o,d)}),o&&i.push({path:o,redirect:".",meta:c});const[l,h]=p.reduce((t,e)=>(t[e.meta.flatten?0:1].push(e),t),[[],[]]);if(h.length&&(s.children=h),i.push(s),l.length)for(const e of l)i.push({...e.redirect?e:s,path:`${s.path}/${e.path}`,meta:{...e.meta,flatten:r}})}},processValue(t,e,o,i){return i.addSource(o,t),e}};const Ea={text(t){const e=[{label:"contains",value:"contains"},{label:"equals",value:"equals"},{label:"starts with",value:"starts-with"},{label:"ends with",value:"ends-with"}];return{operator:t.operators?{type:"select",options:Object(y["isArray"])(t.operators)?e.filter(e=>t.operators.includes(e.value)):e,width:"40%"}:null,text:{type:"text",width:t.operators?"60%":"fill"}}},"date-range"(){const t={day:"2-digit",month:"2-digit",year:"numeric"};return{from:{type:"datetime",width:"50%",dateFormat:t},to:{type:"datetime",width:"50%",dateFormat:t}}}};function $a(t,e,o){const i={label:"Filters",name:"$filters",target:e,disabled:!1,data(){return La(i,o.query)},components:Ma(t),buttons:{clear:{text:"Clear",events:{click({schemaComponent:t}){t.resetData(),t.applyFilters()}}},filter:{type:"submit",text:"Filter",events:{click({schemaComponent:t}){t.applyFilters()}}}},methods:{applyFilters(){o.query={...o.query,filter:Va(this.schema,this.data),page:void 0}}}};return i}function Ma(t){const e={};for(const i of Object.values(t||{})){var o;const{filter:t,...n}=i,a=t?null==(o=Ea[t])?void 0:o.call(Ea,i):i.components;if(!a)throw new Error(`Invalid filter '${i.name}': Unknown filter type '${t}'.`);n.components={};for(const[e,o]of Object.entries(a))if(o){const t=o.label||Object(y["labelize"])(o.name||e);n.components[e]={...o,label:!1,placeholder:t}}e[i.name]={label:n.label,type:"object",default:()=>({}),form:n,inlined:!0}}return e}function Ba(t,e){var o;const i=t.components[e];return null==i||null==(o=i.form)?void 0:o.components}function Va(t,e){const o=[];for(const i in e){const n=e[i];if(n){const e=Object.keys(Ba(t,i)).map(t=>{var e;return null!=(e=n[t])?e:null});e.some(t=>null!==t)&&o.push(`${i}:${e.map(JSON.stringify).join(",")}`)}}return o.length?o:void 0}function La(t,e){const o={};if(e)for(const a of Object(y["asArray"])(e.filter)){const[,t,e]=a.match(/^(\w+):(.*)$/);try{o[t]=Object(y["asArray"])(JSON.parse(`[${e}]`))}catch(n){}}const i={};for(const a in t.components){const e={},n=o[a];if(n){const o=Ba(t,a);if(o){let t=0;for(const i in o)e[i]=n[t++]}}i[a]=e}return i}var qa=Ln.register("list",{components:{VueDraggable:mn.a},mixins:[Da,bn],getSourceType(t){return t},getPanelSchema(t,e,o){const{filters:i}=t;if(i){const t=()=>o.getComponentByDataPath(e,t=>"list"===t.type);return $a(re(i),e,{get query(){var e;return null==(e=t())?void 0:e.query},set query(e){const o=t();if(o){const t=t=>Object(y["pickBy"])(t,t=>void 0!==t);Object(y["equals"])(t(e),t(o.query))||(o.query=e,o.loadData(!1))}}})}},computed:{hasListButtons(){return!(!this.buttonSchemas&&!this.creatable)},hasEditButtons(){const{listData:t}=this;return t.length>0&&(this.editable||this.deletable||this.draggable)},hasCellEditButtons(){return!this.isInlined&&this.hasEditButtons},hasEvenCount(){return!(this.listData.length%2)},numColumns(){return(this.columns?Object.keys(this.columns).length:1)+(this.hasCellEditButtons?1:0)}},methods:{getDataPath(t){return x(this.dataPath,t)},getEditPath(t,e){if(this.editable){const o=Nt(this.schema,this.context)||this.path,i=this.getItemId(this.schema,t,e);return`${o}/${i}`}return null},getCellClass(t){return"dito-cell-"+Object(y["hyphenate"])(t.name)},getContext(t,e){return new F(this,{data:t,value:t,index:e,dataPath:this.getDataPath(e)})},onFilterErrors(t){const e=x(this.dataPath,"$filters"),o=this.schemaComponent.getPanelByDataPath(e);if(o)return o.showValidationErrors(t,!0),!0}}}),Ra=qa,Fa=(o("a466"),Ee(Ra,Pa,Sa,!1,null,null,null)),za=(Fa.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-label",{staticClass:"dito-label-component",attrs:{label:t.value,dataPath:t.dataPath}})}),Ta=[],Ia=Ln.register("label",{generateLabel:!1}),Aa=Ia,Na=(o("6a1c"),Ee(Aa,za,Ta,!1,null,null,null)),Ua=(Na.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-markup",attrs:{id:t.dataPath}},[o("editor-menu-bar",{staticClass:"dito-markup-toolbar",attrs:{editor:t.editor}},[t.groupedButtons.length>0?o("div",{staticClass:"dito-buttons dito-buttons-toolbar"},t._l(t.groupedButtons,(function(e){return o("div",{staticClass:"dito-button-group"},t._l(e,(function(t){t.name;var e=t.icon,i=t.isActive,n=t.onClick;return o("button",{staticClass:"dito-button",class:{"dito-active":i},on:{click:n}},[o("icon",{attrs:{name:e}})],1)})),0)})),0):t._e()]),o("editor-content",{ref:"editor",staticClass:"dito-markup-editor",style:t.styles,attrs:{editor:t.editor}}),t.resizable?o("div",{staticClass:"dito-resize",on:{mousedown:function(e){return e.stopPropagation(),e.preventDefault(),t.onDragResize.apply(null,arguments)}}}):t._e()],1)}),Ha=[],Wa=o("916c"),Ka=o("23df"),Ya=o("e326"),Ja=Ln.register("markup",{components:{EditorContent:Wa["EditorContent"],EditorMenuBar:Wa["EditorMenuBar"],Icon:Be["Icon"]},mixins:[Ve],data(){return{editor:null,height:null}},computed:{lines(){return this.schema.lines||10},styles(){return{height:this.height||`calc(${this.lines}em * var(--line-height))`}},markButtons(){return this.getButtons("marks",{bold:!0,italic:!0,underline:!0,strike:!0,small:!0,code:!0,link:{onClick:t=>this.onClickLink(t)}})},basicNodeButtons(){return this.getButtons("nodes",{paragraph:{ignoreActive:()=>this.otherNodeButtons.some(t=>t.isActive)},heading:{attr:"level",values:[1,2,3,4,5,6]}})},otherNodeButtons(){return this.getButtons("nodes",{bulletList:!0,orderedList:!0,blockquote:!0,codeBlock:!0})},toolButtons(){return this.getButtons("tools",{undo:!0,redo:!0})},groupedButtons(){const{markButtons:t,basicNodeButtons:e,otherNodeButtons:o,toolButtons:i}=this;return[t,e,o,i].filter(t=>t.length>0)},parseOptions(){return{preserveWhitespace:{collapse:!1,preserve:!0,"preserve-all":"full"}[this.whitespace]}},editorOptions(){return{editable:!this.readyonly,autoFocus:this.autofocus,disableInputRules:!this.enableRules.input,disablePasteRules:!this.enableRules.paste,parseOptions:this.parseOptions}},resizable:gt("resizable",{type:Boolean,default:!1}),whitespace:gt("whitespace",{type:String,default:"collapse"}),enableRules:gt("enableRules",{type:[Object,Boolean],default:!1,get(t){return Object(y["isObject"])(t)?t:{input:!!t,paste:!!t}}})},watch:{readyonly:"updateEditorOptions",autofocus:"updateEditorOptions",enableRules:"updateEditorOptions"},created(){let t=!1,e=!1;const o=()=>{!this.focused&&t&&(t=!1,this.onChange())},i=()=>this.onFocus(),n=()=>{this.onBlur(),o()},a=Object(y["debounce"])(i=>{e=!0,this.value=i(),t=!0,o()},100),r=({getHTML:t})=>{a(t),this.onInput()};this.$watch("value",t=>{e?e=!1:this.editor.setContent(t,!1,this.parseOptions)}),this.editor=new Wa["Editor"]({...this.editorOptions,onFocus:i,onBlur:n,onUpdate:r,extensions:this.createExtensions(),content:this.value||""})},beforeDestroy(){this.editor.destroy()},methods:{onDragResize(t){const e=({clientX:t,clientY:e})=>({x:t,y:e});let o=e(t).y,i=parseFloat(getComputedStyle(this.$refs.editor.$el).height);const n=t=>{const{y:n}=e(t);i+=n-o,o=n,this.height=Math.max(i,0)+"px"},a=this.domOn(document,{mousemove:n,mouseup(t){n(t),a.remove()}})},updateEditorOptions(){this.editor.setOptions(this.editorOptions)},async onClickLink(t){const e=await this.showDialog({components:{href:{type:"url",label:"Link",autofocus:!0},title:{type:"text",label:"Title"}},buttons:{cancel:{},apply:{type:"submit"},remove:{events:{click({dialogComponent:t}){t.resolve({href:null,title:null})}}}},data:this.editor.getMarkAttrs("link")});if(e){let{href:i,title:n}=e;if(i)try{new URL(i)}catch(o){i="http://"+i}t({href:i,title:n})}},createExtensions(){const{marks:t={},nodes:e={},tools:o={}}=this.schema;return[t.bold&&new Ya["Bold"],t.italic&&new Ya["Italic"],t.underline&&new Ya["Underline"],t.strike&&new Ya["Strike"],t.small&&new Qa,t.code&&new Ya["Code"],t.link&&new Ga,e.blockquote&&new Ya["Blockquote"],e.codeBlock&&new Ya["CodeBlock"],new Ya["HardBreak"],e.heading&&new Ya["Heading"]({levels:e.heading}),e.horizontalRule&&new Ya["HorizontalRule"],(e.orderedList||e.bulletList)&&new Ya["ListItem"],e.bulletList&&new Ya["BulletList"],e.orderedList&&new Ya["OrderedList"],o.history&&new Ya["History"]].filter(t=>!!t)},getButtons(t,e){const o=[],i=({name:t,icon:e,attrs:i,ignoreActive:n,onClick:a})=>{const r=this.editor.isActive[t],s=this.editor.commands[t];o.push({name:t,icon:e,isActive:(null==r?void 0:r(i))&&(null==n||!n()),onClick:()=>a?a(s,i):s(i)})},n=this.schema[t];if(n)for(const[a,r]of Object.entries(e)){const t=["undo","redo"].includes(a)?"history":a,e=n[t],o=Object(y["underscore"])(a),s=Object(y["hyphenate"])(a);if(e)if(!0===r)i({name:o,icon:s});else if(Object(y["isObject"])(r)){const{attr:t,values:n,ignoreActive:a,onClick:l}=r;if(t){if(Object(y["isArray"])(n)&&Object(y["isArray"])(e))for(const r of n)e.includes(r)&&i({name:o,icon:`${s}-${r}`,attrs:{[t]:r},ignoreActive:a,onClick:l})}else i({name:o,icon:s,ignoreActive:a,onClick:l})}}return o},focus(){var t,e;null==(t=(e=this.$el).scrollIntoView)||t.call(e),this.editor.focus()}}});class Qa extends Wa["Mark"]{get name(){return"small"}get schema(){return{parseDOM:[{tag:"small"}],toDOM:()=>["small",0]}}commands({type:t}){return()=>Object(Ka["toggleMark"])(t)}}class Ga extends Ya["Link"]{get schema(){return{attrs:{href:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a",getAttrs:t=>({href:t.getAttribute("href"),title:t.getAttribute("title")})}],toDOM:t=>["a",t.attrs,0]}}}var Xa,Za,tr=Ja,er=(o("7507"),Ee(tr,Ua,Ha,!1,null,null,null)),or=(er.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-multiselect",class:{"dito-multiselect-single":!t.multiple,"dito-multiselect-multiple":t.multiple}},[o("vue-multiselect",t._g(t._b({ref:"element",attrs:{"show-labels":!1,placeholder:t.placeholder,"tag-placeholder":"Press enter to add new tag",options:t.populate&&t.activeOptions||[],"custom-label":t.getLabelForOption,"track-by":t.optionValue,"group-label":t.groupByLabel,"group-values":t.groupByOptions,multiple:t.multiple,taggable:t.taggable,searchable:t.searchable,"internal-search":!t.searchFilter,"preserve-search":!!t.searchFilter,"clear-on-select":!t.searchFilter,"close-on-select":!t.stayOpen,loading:t.isLoading},on:{open:function(e){t.populate=!0},tag:t.onAddTag,"search-change":t.onSearchChange},model:{value:t.selectedOptions,callback:function(e){t.selectedOptions=e},expression:"selectedOptions"}},"vue-multiselect",t.attributes,!1),t.listeners)),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:t.clear}}):t._e()],1)}),ir=[],nr=o("6c45"),ar=o.n(nr),rr=(o("7a87"),Ln.register("multiselect",{components:{VueMultiselect:ar.a},mixins:[Kn],data(){return{searchedOptions:null,populate:!1}},computed:{selectedOptions:{get(){return this.multiple?(this.selectedValue||[]).map(t=>this.getOptionForValue(t)||this.addTagOption(t)).filter(t=>t):this.selectedOption},set(t){this.selectedValue=this.multiple?(t||[]).map(t=>this.getValueForOption(t)):this.getValueForOption(t)}},activeOptions(){return this.searchedOptions||this.options},multiple:gt("multiple",{type:Boolean,default:!1}),searchable:gt("searchable",{type:Boolean,default:!1}),taggable:gt("taggable",{type:Boolean,default:!1}),stayOpen:gt("stayOpen",{type:Boolean,default:!1}),placeholder(){const{placeholder:t,searchable:e,taggable:o}=this.schema;return t||(e&&o?"Search or add a tag":e?"Select or search entry":void 0)}},mounted(){this.autofocus&&this.focus()},methods:{getListeners(){return{focus:this.onFocus,blur:this.onBlur,input:this.onChange}},addTagOption(t){if(this.taggable){const{optionLabel:e,optionValue:o}=this,i=e&&o?{[e]:t,[o]:t}:t;return this.options.push(i),i}},focus(){this.$refs.element.activate()},onAddTag(t){const e=this.addTagOption(t);e&&this.value.push(this.getValueForOption(e))},async onSearchChange(t){this.searchFilter&&(t?(this.searchedOptions=[],this.searchedOptions=await this.resolveData(()=>this.searchFilter(new F(this,{query:t})))):this.searchedOptions=null)}}})),sr=rr,lr=(o("8386"),Ee(sr,or,ir,!1,null,null,null)),dr=(lr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input-field",t._g(t._b({ref:"element",staticClass:"dito-number",attrs:{id:t.dataPath,type:"number",min:t.min,max:t.max,step:t.stepValue},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners))}),cr=[],ur={computed:{inputValue:{get(){return null!==this.value?this.value:""},set(t){this.value=""!==t?this.isInteger?parseInt(t,10):parseFloat(t):null}},isInteger(){return!1},stepValue(){return null!=this.step||this.isInteger?this.step:"any"},decimals:gt("decimals",{type:Number}),step:gt("step",{type:Number,get(t){return this.isInteger&&null!=t?Math.ceil(t):t}}),min:gt("min",{type:Number,get(t){var e;return t=void 0===t?null==(e=this.getSchemaValue("range",{type:Array}))?void 0:e[0]:t,this.isInteger&&null!=t?Math.floor(t):t}}),max:gt("max",{type:Number,get(t){var e;return t=void 0===t?null==(e=this.getSchemaValue("range",{type:Array}))?void 0:e[1]:t,this.isInteger&&null!=t?Math.ceil(t):t}}),range:gt("range",{type:Array,get(){const{min:t,max:e}=this;return null!=t&&null!=e?[t,e]:void 0},set(t){Object(y["isArray"])(t)&&([this.min,this.max]=t)}})},methods:{getValidations(){const t={},{range:e,min:o,max:i,decimals:n,step:a}=this;if(e?t.range=e:(null!=o&&(t.min=o),null!=i&&(t.max=i)),null!=n)t.decimals=n;else if(a){const e=((""+a).split(".")[1]||"").length;e>0?t.decimals=e:t.integer=!0}return this.isInteger&&(t.integer=!0),t}}},pr=Ln.register(["number","integer"],{components:{InputField:Be["InputField"]},mixins:[ur],nativeField:!0,textField:!0,computed:{isInteger(){return"integer"===this.type}}}),hr=pr,mr=(o("710d"),Ee(hr,dr,cr,!1,null,null,null)),br=(mr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isReady?o("div",{staticClass:"dito-object",class:t.schema.class,style:t.schema.style,attrs:{id:t.dataPath}},[t.objectData?o("div",{staticClass:"dito-object-content"},[t.isInlined?o("dito-schema-inlined",{attrs:{schema:t.getItemFormSchema(t.schema,t.objectData,t.context),dataPath:t.dataPath,data:t.objectData,meta:t.nestedMeta,store:t.store,disabled:t.disabled||t.isLoading,collapsed:t.collapsed,collapsible:t.collapsible}}):t.component?o(t.component,{tag:"component",attrs:{dataPath:t.dataPath,data:t.objectData,nested:!1}}):t.render?o("span",{domProps:{innerHTML:t._s(t.render(t.getContext()))}}):o("span",{domProps:{innerHTML:t._s(t.getItemLabel(t.schema,t.objectData))}})],1):t._e(),o("dito-edit-buttons",{attrs:{creatable:t.creatable,deletable:t.objectData&&t.deletable,editable:t.objectData&&t.editable,createPath:t.path,editPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.objectData,path:t.path,meta:t.meta,store:t.store},on:{delete:function(e){return t.deleteItem(t.objectData)}}})],1):t._e()}),fr=[],gr=Ln.register("object",{mixins:[Da],getSourceType(t){return t},methods:{getContext(){return new F(this,{data:this.objectData})}}}),vr=gr,yr=(o("d20f"),Ee(vr,br,fr,!1,null,null,null)),xr=(yr.exports,Ln.register("panel",{defaultValue:()=>{},excludeValue:!0,generateLabel:!1,omitPadding:!0,getPanelSchema(t){const{name:e,...o}=t;return o}})),wr=xr,_r=Ee(wr,Xa,Za,!1,null,null,null),kr=(_r.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("progress",t._g(t._b({ref:"element",staticClass:"dito-progress",attrs:{id:t.dataPath,max:t.progressMax},domProps:{value:t.progressValue}},"progress",t.attributes,!1),t.listeners))}),Cr=[],Or=Ln.register("progress",{mixins:[ur],computed:{progressValue(){let{value:t,range:e,step:o}=this;return null!==t?(e&&(t-=e[0]),o&&(t=Math.round(t/o)*o)):t="",t},progressMax(){const{range:t}=this;if(t)return t[1]-t[0]}}}),jr=Or,Pr=Ee(jr,kr,Cr,!1,null,null,null),Sr=(Pr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",{staticClass:"dito-radio-buttons",class:"dito-layout-"+(t.schema.layout||"vertical"),attrs:{id:t.dataPath}},t._l(t.options,(function(e){return o("li",[o("label",[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],ref:"element",refInFor:!0,staticClass:"dito-radio-button",attrs:{type:"radio"},domProps:{value:t.getValueForOption(e),checked:t._q(t.selectedValue,t.getValueForOption(e))},on:{change:function(o){t.selectedValue=t.getValueForOption(e)}}},"input",t.attributes,!1),t.listeners)),t._v(t._s(t.getLabelForOption(e)))])])})),0)}),Dr=[],Er=Ln.register("radio",{mixins:[Kn],nativeField:!0}),$r=Er,Mr=(o("a8c9"),Ee($r,Sr,Dr,!1,null,null,null)),Br=(Mr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-section",class:{"dito-section-labelled":!!t.schema.label}},[o("dito-components",{staticClass:"dito-section-components",attrs:{schema:t.getItemFormSchema(t.schema,t.item,t.context),dataPath:t.dataPath,data:t.item,meta:t.meta,store:t.store,disabled:t.disabled}})],1)}),Vr=[],Lr=Ln.register("section",{defaultValue:()=>{},ignoreMissingValue:t=>!t.nested&&!("default"in t),defaultNested:!1,generateLabel:!1,omitFlexGrow:!0,computed:{item(){return this.nested?this.value:this.data}},methods:{getItemFormSchema:Wt}}),qr=Lr,Rr=(o("94f5"),Ee(qr,Br,Vr,!1,null,null,null)),Fr=(Rr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-select"},[o("select",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],ref:"element",attrs:{id:t.dataPath},on:{mousedown:function(e){t.populate=!0},focus:function(e){t.populate=!0},change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedValue=e.target.multiple?o:o[0]}}},"select",t.attributes,!1),t.listeners),[t.populate?[t._l(t.options,(function(e){return[t.groupBy?o("optgroup",{attrs:{label:e[t.groupByLabel]}},t._l(e[t.groupByOptions],(function(e){return o("option",{domProps:{value:t.getValueForOption(e)}},[t._v(t._s(t.getLabelForOption(e)))])})),0):o("option",{domProps:{value:t.getValueForOption(e)}},[t._v(t._s(t.getLabelForOption(e)))])]}))]:t.selectedOption?[o("option",{domProps:{value:t.selectedValue}},[t._v(t._s(t.getLabelForOption(t.selectedOption)))])]:t._e()],2),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:t.clear}}):t._e()])}),zr=[],Tr=Ln.register("select",{mixins:[Kn],nativeField:!0,data(){return{populate:!0}}}),Ir=Tr,Ar=(o("33266"),Ee(Ir,Fr,zr,!1,null,null,null)),Nr=(Ar.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-slider"},[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"element",staticClass:"dito-range",attrs:{id:t.dataPath,type:"range",min:t.min,max:t.max,step:t.stepValue},domProps:{value:t.inputValue},on:{__r:function(e){t.inputValue=e.target.value}}},"input",t.attributes,!1),t.listeners)),t.input?o("input-field",t._g(t._b({staticClass:"dito-number",attrs:{type:"number",min:t.min,max:t.max,step:t.stepValue},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners)):t._e()],1)}),Ur=[],Hr=Ln.register("slider",{components:{InputField:Be["InputField"]},mixins:[ur],nativeField:!0,computed:{input:gt("input",{type:Boolean,default:!0})}}),Wr=Hr,Kr=(o("ebae"),Ee(Wr,Nr,Ur,!1,null,null,null)),Yr=(Kr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("switch-button",t._g(t._b({ref:"element",staticClass:"dito-switch",attrs:{id:t.dataPath,sync:!0,labels:t.labels},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},"switch-button",t.attributes,!1),t.listeners))}),Jr=[],Qr=Ln.register("switch",{defaultValue:!1,defaultWidth:"auto",components:{SwitchButton:Be["SwitchButton"]},computed:{labels(){return this.schema.labels}}}),Gr=Qr,Xr=(o("1aec"),Ee(Gr,Yr,Jr,!1,null,null,null)),Zr=(Xr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input-field",t._g(t._b({ref:"element",staticClass:"dito-text",attrs:{id:t.dataPath,type:t.inputType},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners))}),ts=[];const es="****************";var os=Ln.register(["text","email","url","hostname","domain","tel","password","creditcard"],{components:{InputField:Be["InputField"]},nativeField:!0,textField:!0,ignoreMissingValue:t=>"password"===t.type,computed:{inputType(){return{creditcard:"text",hostname:"text",domain:"text"}[this.type]||this.type},inputValue:{get(){return"password"!==this.type||void 0!==this.value||this.focused?this.value:es},set(t){this.value=t}}},methods:{getValidations(){const t={email:"email",url:"url",hostname:"hostname",domain:"domain",password:"password",creditcard:"creditcard"}[this.type];return t?{[t]:!0}:{}}}}),is=os,ns=Ee(is,Zr,ts,!1,null,null,null),as=(ns.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"element",staticClass:"dito-textarea dito-input",class:{"dito-resizable":t.resizable},attrs:{id:t.dataPath,rows:t.lines},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}},"textarea",t.attributes,!1),t.listeners))}),rs=[],ss=Ln.register("textarea",{nativeField:!0,textField:!0,computed:{lines(){return this.schema.lines||4},resizable:gt("resizable",{type:Boolean,default:!1})}}),ls=ss,ds=(o("a8e3"),Ee(ls,as,rs,!1,null,null,null)),cs=(ds.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tree-list"},[t.scopes?o("dito-scopes",{attrs:{query:t.query,scopes:t.scopes}}):t._e(),o("div",{staticClass:"dito-tree-panel"},[o("dito-tree-item",{attrs:{schema:t.treeSchema,dataPath:t.treeDataPath,data:t.treeData,draggable:t.draggable,open:!0}}),t.hasEditableForms?o("div",{staticClass:"dito-tree-form-container"},[o("router-view")],1):t._e()],1)],1)}),us=[],ps=Ln.register(["tree-list","tree-object"],{mixins:[Da],provide(){return{container:this}},getSourceType(t){return"tree-object"===t?"object":"list"},computed:{path(){var t;return null==(t=this.formComponent)?void 0:t.path},editPath(){var t;return this.$route.path.slice(null==(t=this.path)?void 0:t.length)},treeData(){return this.isListSource?{[this.name]:this.value}:this.value},treeDataPath(){return this.isListSource?this.dataPath.slice(0,this.dataPath.length-this.name.length):this.dataPath},treeSchema(){return this.isListSource?{children:{name:this.name,...this.schema}}:this.schema},hasEditableForms(){const t=e=>Tt(e)&&(this.getSchemaValue("editable",{type:Boolean,default:!1,schema:e})||e.children&&t(e.children));return t(this.schema)}},async processSchema(t,e,o,i,n,a=!0,r=!1,s=null){return Da.processSchema(t,e,o,i,n,a,r,(o,i)=>{const{children:n}=e;if(n)return n.type="tree-list",this.processSchema(t,n,n.name,o,i,a,!0,s)})},getFormSchemasForProcessing(t,e){const{children:o}=t;return Ut(t,e,o?t=>({...t,components:{...t.components,[o.name]:o}}):null)}}),hs=ps,ms=(o("7d86"),Ee(hs,cs,us,!1,null,null,null)),bs=(ms.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-upload"},[o("table",{staticClass:"dito-table dito-table-separators dito-table-background"},[t._m(0),o("vue-draggable",t._b({attrs:{tag:"tbody",list:t.files},on:{start:t.onStartDrag,end:t.onEndDrag}},"vue-draggable",t.getDragOptions(t.draggable),!1),t._l(t.files,(function(e,i){return o("tr",{key:e.key},[o("td",{domProps:{innerHTML:t._s(t.renderFile(e,i))}}),o("td",[t._v(t._s(t._f("formatFileSize")(e.size)))]),o("td",[e.upload?[e.upload.error?[t._v("Error: "+t._s(e.upload.error))]:e.upload.active?[t._v("Uploading...")]:e.upload.success?[t._v("Uploaded")]:t._e()]:[t._v("Stored")]],2),o("td",{staticClass:"dito-cell-edit-buttons"},[o("div",{staticClass:"dito-buttons dito-buttons-round"},[t.draggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.deletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:function(o){return t.deleteFile(e,i)}}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()])])])})),0),o("tfoot",[o("tr",[o("td",{attrs:{colspan:4}},[o("div",{staticClass:"dito-upload-footer"},[t.isUploadActive?o("progress",{staticClass:"dito-progress",attrs:{max:"100"},domProps:{value:t.uploadProgress}}):t._e(),o("div",{staticClass:"dito-buttons dito-buttons-round"},[t.isUploadActive?o("button",{staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.upload.active=!1}}},[t._v("Cancel All")]):t.isUploadReady?o("button",{staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.upload.active=!0}}},[t._v("Upload All")]):t._e(),o("vue-upload",{ref:"upload",staticClass:"dito-button dito-button-add-upload",attrs:{"input-id":t.dataPath,name:t.dataPath,disabled:t.disabled,"post-action":t.uploadPath,extensions:t.extensions,accept:t.accept,multiple:t.multiple,size:t.maxSize,title:"Upload Files"},on:{"input-filter":t.inputFilter,"input-file":t.inputFile},model:{value:t.uploads,callback:function(e){t.uploads=e},expression:"uploads"}})],1)])])])])],1)])}),fs=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("thead",{staticClass:"dito-table-head"},[o("tr",[o("th",[o("span",[t._v("Name")])]),o("th",[o("span",[t._v("Size")])]),o("th",[o("span",[t._v("Status")])]),o("th",[o("span")])])])}],gs=o("80d0"),vs=o.n(gs),ys=o("9cdb"),xs=o.n(ys),ws=o("ffa8"),_s=o.n(ws);function ks(t){return _s()(t,{base:10})}var Cs=Ln.register("upload",{components:{VueUpload:vs.a,VueDraggable:mn.a},filters:{formatFileSize:ks},mixins:[bn],data(){return{uploads:[]}},computed:{upload(){return this.$refs.upload},files(){return Os(this.value)},multiple:gt("multiple",{type:Boolean,default:!1,callback:!1}),extensions:gt("extensions",{type:[Array,String,RegExp]}),accept:gt("accept",{type:Array,get(t){return Object(y["isArray"])(t)?t.join(","):t}}),maxSize:gt("maxSize",{type:[String,Number],get(t){return t?xs()(t):void 0}}),draggable:gt("draggable",{type:Boolean,default:!1,get(t){return t&&this.files.length>1}}),deletable:gt("deletable",{type:Boolean,default:!1}),isUploadReady(){return this.uploads.length&&!(this.upload.active||this.upload.uploaded)},isUploadActive(){return this.uploads.length&&this.upload.active},uploadProgress(){return this.uploads.reduce((t,e)=>t+e.progress,0)/this.uploads.length},uploadPath(){return this.getResourceUrl({type:"upload",path:this.api.normalizePath(this.dataPath)})}},methods:{renderFile(t,e){const{render:o}=this.schema;return o?o.call(this,new F(this,{value:t,data:this.files,index:e,dataPath:x(this.dataPath,e)})):Object(y["escapeHtml"])(t.name)},deleteFile(t,e){const{name:o}=t;t&&window.confirm(`Do you really want to ${this.verbs.remove} ${o}?`)&&(this.multiple?this.value.splice(e,1):this.value=null,t.upload&&this.upload.remove(t.upload),this.onChange(),this.notify({type:"info",title:"Successfully Removed",text:`${o} was ${this.verbs.deleted}.`}))},getFileIndex(t){return this.multiple&&this.value?this.value.findIndex(e=>e.id===t.id):-1},addFile(t){this.multiple?this.value?this.value.push(t):this.value=[t]:this.value=t},replaceFile(t,e){if(this.multiple){const o=this.getFileIndex(t);o>=0&&(e?this.$set(this.value,o,e):this.value.splice(o,1))}else this.value=e},removeFile(t){this.replaceFile(t,null)},inputFile(t,e){if(t&&!e){const{id:e,name:o,size:i}=t;this.addFile({id:e,name:o,size:i,upload:t})}if(t&&e){const{success:e,error:o}=t;if(e){const e=t.response[0];e?(e.upload=t,this.replaceFile(t,e)):this.removeFile(t)}else if(o){const e={abort:"Upload aborted",denied:"Upload denied",extension:"Unsupported file-type: "+t.name,network:"Network error encountered during upload",server:"Server error occurred during upload",size:"File is too large: "+ks(t.size),timeout:"Timeout occurred during upload"}[o]||`Unknown File Upload Error: '${o}'`;this.notify({type:"error",title:"File Upload Error",text:e}),this.removeFile(t)}}},inputFilter(t){var e;const o=null==t?void 0:t.xhr;null!=(e=this.api.cors)&&e.credentials&&o&&!o.withCredentials&&(o.withCredentials=!0)}},processValue(t,e){const o=Os(e).map(({upload:t,...e})=>!t||t.success?e:null).filter(t=>t);return t.multiple?o:o[0]||null}});function Os(t){return t?Object(y["asArray"])(t):[]}var js=Cs,Ps=(o("a6de"),Ee(js,bs,fs,!1,null,null,null)),Ss=(Ps.exports,["create","created","save","saved","submit","submitted","delete","deleted","edit","edited","close","closed","cancel","cancelled","drag","dragged"].reduce((t,e)=>(t[e]=e,t),{}));s.a.config.productionTip=!1,s.a.use(u.a),s.a.use(d.a,{dynamic:!0}),s.a.use(h.a);class Ds{constructor(t,{module:e,dito:o={},api:i,views:n={},...a}={}){var r,l,d;null==e||null==(r=e.hot)||r.accept(),this.el=t,this.api=i=Object(y["merge"])({base:"/"},o.api,i),this.options=a,(l=i).locale||(l.locale="en-US"),i.formats=Object(y["merge"])({},y["defaultFormats"],i.formats),(d=i).request||(d.request=t=>this.request(t)),i.normalizePath=i.normalizePath||i.normalizePaths?y["hyphenate"]:t=>t,i.denormalizePath=i.denormalizePath||i.normalizePaths?y["camelize"]:t=>t;const c=i.users=X(i.users,{type:"collection"})||{};c.login=X(c.login||"login",{method:"post",parent:c}),c.logout=X(c.logout||"logout",{method:"post",parent:c}),c.session=X(c.session||"session",{method:"get",parent:c}),i.resources={any(t){const e=this[null==t?void 0:t.type]||this.default;return t&&e.call(this,t)},default(t){const e=this.any(t.parent);return e?`${e}/${t.path}`:t.path},collection(t){return this.default(t)},member(t){return`${t.path}/${t.id}`},upload(t){return`${this.collection(t.parent)}/upload/${t.path}`},...i.resources},i.headers={"Content-Type":"application/json",...i.headers},i.isApiRequest=i.isApiRequest||function(t){return!Object(y["isAbsoluteUrl"])(t)||t.startsWith(i.url)},Object(y["isString"])(t)&&(t=document.querySelector(t)),this.root=new s.a({el:t,router:new u.a({mode:"history",base:o.base,linkActiveClass:"",linkExactActiveClass:""}),components:{DitoRoot:Fe},provide:{api:i,$verbs:()=>Ss,$views:()=>{},$isPopulated:()=>!0,$schemaComponent:()=>null,$schemaParentComponent:()=>null,$routeComponent:()=>null,$dataComponent:()=>null,$sourceComponent:()=>null,$resourceComponent:()=>null,$dialogComponent:()=>null,$panelComponent:()=>null},render:e=>e(Fe,{attrs:{id:t.id},props:{unresolvedViews:n,options:a}})})}register(t,e){return Ln.register(t,e)}request({url:t,method:e="get",data:o=null,params:i=null,headers:n=null}){var a;const r=this.api.isApiRequest(t);return b.a.request({url:t,method:e,params:i,...o&&{data:o},baseURL:r?this.api.url:null,headers:{...r&&this.api.headers,...n},withCredentials:r&&!(null==(a=this.api.cors)||!a.credentials)})}}e["default"]=Ds},"1d8a":function(t,e){var o=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++o+i).toString(36)}},"1f57":function(e,o){e.exports=t},"1f5e":function(t,e,o){var i=o("378c"),n=o("b495"),a=o("9a0f"),r=function(t){return function(e,o,r){var s,l=i(e),d=n(l.length),c=a(r,d);if(t&&o!=o){while(d>c)if(s=l[c++],s!=s)return!0}else for(;d>c;c++)if((t||c in l)&&l[c]===o)return t||c||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},2117:function(t,e,o){var i=o("8697");t.exports=function(t,e,o){if(i(t),void 0===e)return t;switch(o){case 0:return function(){return t.call(e)};case 1:return function(o){return t.call(e,o)};case 2:return function(o,i){return t.call(e,o,i)};case 3:return function(o,i,n){return t.call(e,o,i,n)}}return function(){return t.apply(e,arguments)}}},2214:function(t,o){t.exports=e},2259:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,"input[type=number]:not([step])::-webkit-inner-spin-button,input[type=number]:not([step])::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",""]),t.exports=e},"23df":function(t,e){t.exports=o},2402:function(t,e){e.f=Object.getOwnPropertySymbols},2653:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{some:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return l(o,(function(t,o){if(i(t,t,e))return o()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},2766:function(t,e,o){var i=o("a8e0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("c7fc901c",i,!0,{sourceMap:!1,shadowMode:!1})},"289a":function(t,e){t.exports=i},2964:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-switch .dito-switch-label{font-size:11px}",""]),t.exports=e},2969:function(t,e,o){var i=o("0635");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("416d665e",i,!0,{sourceMap:!1,shadowMode:!1})},3011:function(t,e,o){var i=o("8b0f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("db2a7566",i,!0,{sourceMap:!1,shadowMode:!1})},"30ad":function(t,e,o){"use strict";o("4047")},3185:function(t,e,o){var i=o("0ebd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("07f681be",i,!0,{sourceMap:!1,shadowMode:!1})},3326:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("bad4"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{join:function(t){var e=a(this),o=r(e),i=void 0===t?",":String(t),n=[];return s(o,n.push,{that:n,IS_ITERATOR:!0}),n.join(i)}})},33266:function(t,e,o){"use strict";o("cdda")},"332c":function(t,e,o){var i=o("4cdd"),n=o("1d8a"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},"378c":function(t,e,o){var i=o("83a6"),n=o("730c");t.exports=function(t){return i(n(t))}},"37cd":function(t,e,o){var i=o("7b5f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("3ec82b84",i,!0,{sourceMap:!1,shadowMode:!1})},"37d1":function(t,e,o){var i=o("730c");t.exports=function(t){return Object(i(t))}},"395c":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{intersection:function(t){var e=r(this),o=new(l(e,a("Set"))),i=s(e.has),n=s(o.add);return d(t,(function(t){i.call(e,t)&&n.call(o,t)})),o}})},"3a52":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-code:disabled button,.dito-disabled.dito-code button{opacity:.6;pointer-events:none}.dito-code{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;background:#fff}.dito-has-errors.dito-code{border-color:#ff3860}.dito-code:disabled,.dito-disabled.dito-code{color:grey;pointer-events:none;cursor:text}.dito-code{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-code::-webkit-input-placeholder{color:grey}.dito-code::-moz-placeholder{color:grey}.dito-code::placeholder{color:grey}.dito-code:focus,.dito-code:focus-within,.dito-code:focus-within .dito-inherit-focus,.dito-code:focus .dito-inherit-focus,.dito-focus.dito-code,.dito-focus.dito-code .dito-inherit-focus{border-color:#3898ff}.dito-code{position:relative;padding:3px 6px}.dito-code.dito-width-fill{width:auto}.dito-code .codeflask{background:none;top:0;left:0}.dito-code .codeflask__pre,.dito-code .codeflask__textarea{padding:3px 6px}.dito-code .codeflask__code,.dito-code .codeflask__lines,.dito-code .codeflask__textarea{font-family:Menlo,Consolas,Monaco,Vera Mono,Andale Mono,Ubuntu Mono,monospace;font-size:var(--font-size);line-height:var(--line-height)}.dito-code .codeflask__lines{padding:3px 6px}",""]),t.exports=e},"3ab0":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,"@-webkit-keyframes v-pulseStretchDelay{0%,80%{transform:scale(1);-webkit-opacity:1;opacity:1}45%{transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{transform:scale(1);-webkit-opacity:1;opacity:1}45%{transform:scale(.1);-webkit-opacity:.7;opacity:.7}}",""]),t.exports=e},"3c03":function(t,e,o){var i=o("acde");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("7e85f289",i,!0,{sourceMap:!1,shadowMode:!1})},"3c10":function(t,e,o){"use strict";function i(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"===typeof btoa){var a=n(i),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[o].concat(r).concat([a]).join("\n")}return[o].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(o," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,i){"string"===typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(n[r]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&n[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),e.push(l))}},e}},"3cd4":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-textarea{display:block;resize:none;min-height:calc(1em*var(--line-height) + 6px)}.dito-textarea.dito-resizable{resize:vertical}",""]),t.exports=e},"3ceb":function(t,e,o){"use strict";o("03e2")},"3cec":function(t,e,o){var i=o("7d53"),n=i("toStringTag"),a={};a[n]="z",t.exports="[object z]"===String(a)},"3d3b":function(t,e,o){var i=o("eeb2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("a59fd444",i,!0,{sourceMap:!1,shadowMode:!1})},"3d5e":function(t,e,o){var i=o("a1c0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("782188be",i,!0,{sourceMap:!1,shadowMode:!1})},"3e34":function(t,e,o){var i=o("f498");t.exports=function(t,e){try{Object.defineProperty(i,t,{value:e,configurable:!0,writable:!0})}catch(o){i[t]=e}return e}},"3eeb":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-section.dito-section-labelled{border:1px solid #c7c7c7;border-radius:4px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box}",""]),t.exports=e},"3f5a":function(t,e,o){var i=o("157c"),n=o("0446");t.exports=function(t,e){var o=arguments.length<2?n(t):e;if("function"!=typeof o)throw TypeError(String(t)+" is not iterable");return i(o.call(t))}},"3f64":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("926e");i({target:"WeakMap",proto:!0,real:!0,forced:n},{deleteAll:function(){return a.apply(this,arguments)}})},4047:function(t,e,o){var i=o("3ab0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("f567a61e",i,!0,{sourceMap:!1,shadowMode:!1})},"433a":function(t,e,o){var i=o("157c"),n=o("8697"),a=o("7d53"),r=a("species");t.exports=function(t,e){var o,a=i(t).constructor;return void 0===a||void 0==(o=i(a)[r])?e:n(o)}},"43ad":function(t,e,o){var i=o("e97b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("0de66904",i,!0,{sourceMap:!1,shadowMode:!1})},4555:function(t,e,o){var i=o("3a52");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("598333af",i,!0,{sourceMap:!1,shadowMode:!1})},"45e1":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("2117"),d=o("433a"),c=o("bad4"),u=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{filter:function(t){var e=r(this),o=c(e),i=l(t,arguments.length>1?arguments[1]:void 0,3),n=new(d(e,a("Set"))),p=s(n.add);return u(o,(function(t){i(t,t,e)&&p.call(n,t)}),{IS_ITERATOR:!0}),n}})},"491f":function(t,e,o){"use strict";o("3185")},"4a0f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-label-component{display:-webkit-box;display:flex;height:2em}",""]),t.exports=e},"4cdd":function(t,e,o){var i=o("0e93"),n=o("c607");(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"4d89":function(t,e){t.exports=n},"4db4":function(t,e,o){var i=o("e7a0");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4fed":function(t,e,o){var i,n,a=o("f498"),r=o("64e4"),s=a.process,l=a.Deno,d=s&&s.versions||l&&l.version,c=d&&d.v8;c?(i=c.split("."),n=i[0]<4?1:i[0]+i[1]):r&&(i=r.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/),i&&(n=i[1]))),t.exports=n&&+n},5428:function(t,e,o){var i=o("f498"),n=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?n(i[t]):i[t]&&i[t][e]}},"57c3":function(t,e,o){var i=o("db6b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("ef9eca04",i,!0,{sourceMap:!1,shadowMode:!1})},"58b1":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-radio-buttons label{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}.dito-radio-buttons .dito-radio-button{margin-right:6px}",""]),t.exports=e},"5b12":function(t,e,o){var i=o("d4cb"),n=o("abdf"),a=o("9618");t.exports=i?function(t,e,o){return n.f(t,e,a(1,o))}:function(t,e,o){return t[e]=o,t}},"5b87":function(t,e,o){var i=o("2964");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("566198fd",i,!0,{sourceMap:!1,shadowMode:!1})},"5bb7":function(t,e){t.exports={}},"5bd3":function(t,e,o){var i=o("1239");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("acbfca36",i,!0,{sourceMap:!1,shadowMode:!1})},"5f9a":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-form-nested,.dito-form-nested .dito-scroll{overflow:visible}",""]),t.exports=e},"626c":function(t,e,o){"use strict";o("b5a7")},"62d2":function(t,e,o){var i=o("4a0f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("1165da2e",i,!0,{sourceMap:!1,shadowMode:!1})},6389:function(t,e){t.exports=a},"64e4":function(t,e,o){var i=o("5428");t.exports=i("navigator","userAgent")||""},"65d0":function(t,e,o){var i=o("c91c"),n=o("b17e"),a=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,a)}},"6a1c":function(t,e,o){"use strict";o("62d2")},"6a2a":function(t,e){t.exports=r},"6a61":function(t,e){var o={}.toString;t.exports=function(t){return o.call(t).slice(8,-1)}},"6b1d":function(t,e,o){var i=o("f498"),n=o("185a").f,a=o("5b12"),r=o("b8ba"),s=o("3e34"),l=o("b634"),d=o("ebac");t.exports=function(t,e){var o,c,u,p,h,m,b=t.target,f=t.global,g=t.stat;if(c=f?i:g?i[b]||s(b,{}):(i[b]||{}).prototype,c)for(u in e){if(h=e[u],t.noTargetGet?(m=n(c,u),p=m&&m.value):p=c[u],o=d(f?u:b+(g?".":"#")+u,t.forced),!o&&void 0!==p){if(typeof h===typeof p)continue;l(h,p)}(t.sham||p&&p.sham)&&a(h,"sham",!0),r(c,u,h,t)}}},"6c45":function(t,e){t.exports=s},"6cc4":function(t,e,o){var i=o("829f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("271663de",i,!0,{sourceMap:!1,shadowMode:!1})},"6eff":function(t,e,o){var i=o("5f9a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("201f18be",i,!0,{sourceMap:!1,shadowMode:!1})},"710d":function(t,e,o){"use strict";o("1a7c")},7297:function(t,e,o){var i=o("f498"),n=o("df6f"),a=i.WeakMap;t.exports="function"===typeof a&&/native code/.test(n(a))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7373:function(t,e,o){var i=o("8c56");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("57752104",i,!0,{sourceMap:!1,shadowMode:!1})},"74f6":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-edit-buttons{cursor:default;-webkit-box-flex:0;flex:none}",""]),t.exports=e},7507:function(t,e,o){"use strict";o("5bd3")},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"75ca":function(t,e,o){"use strict";o("17f1")},"76fe":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:function(t){var e=r(this),o=new(l(e,a("Set")))(e),i=s(o["delete"]),n=s(o.add);return d(t,(function(t){i.call(o,t)||n.call(o,t)})),o}})},"775e":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-panels{max-width:360px;min-width:180px}",""]),t.exports=e},7922:function(t,e,o){var i=o("f8bd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("882ec1c0",i,!0,{sourceMap:!1,shadowMode:!1})},"7a87":function(t,e,o){var i=o("fe6f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("2f7c5111",i,!0,{sourceMap:!1,shadowMode:!1})},"7b5f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-scopes{white-space:nowrap;display:-webkit-box;display:flex}.dito-scopes .dito-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0;min-width:3em;-webkit-box-flex:0;flex:0 1 auto}.dito-scopes .dito-button:first-child{border-top-left-radius:1em;border-bottom-left-radius:1em;padding-left:1em}.dito-scopes .dito-button:last-child{border-top-right-radius:1em;border-bottom-right-radius:1em;padding-right:1em}.dito-scopes .dito-button+.dito-button{margin-left:-1px}.dito-scopes .dito-button:focus{z-index:1}",""]),t.exports=e},"7b69":function(t,e,o){"use strict";o("3d5e")},"7c3f":function(t,e,o){var i=o("d4cb"),n=o("72df"),a=o("f2bf");t.exports=!i&&!n((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(i){"object"===typeof window&&(o=window)}t.exports=o},"7d53":function(t,e,o){var i=o("f498"),n=o("4cdd"),a=o("f1a7"),r=o("1d8a"),s=o("e7a0"),l=o("4db4"),d=n("wks"),c=i.Symbol,u=l?c:c&&c.withoutSetter||r;t.exports=function(t){return a(d,t)&&(s||"string"==typeof d[t])||(s&&a(c,t)?d[t]=c[t]:d[t]=u("Symbol."+t)),d[t]}},"7d86":function(t,e,o){"use strict";o("3011")},"7f8e":function(t,e,o){"use strict";o("96af")},"80d0":function(t,e){t.exports=l},8153:function(t,e,o){"use strict";o("ba18")},8296:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("8697"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:function(t){var e=a(this),o=r(e.has);return!s(t,(function(t,i){if(!0===o.call(e,t))return i()}),{INTERRUPTED:!0}).stopped}})},"829f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-button-overlay.dito-button-clear:before,.dito-buttons-round .dito-button-add-upload:before,.dito-buttons-round .dito-button-copy:empty:before,.dito-buttons-round .dito-button-delete:empty:before,.dito-buttons-round .dito-button-drag:empty:before,.dito-buttons-round .dito-button-edit:empty:before,.dito-buttons-round .dito-button-paste:empty:before,.dito-buttons-round .dito-button-remove:empty:before,.dito-buttons-small .dito-button-add-upload:before,.dito-buttons-small .dito-button-copy:empty:before,.dito-buttons-small .dito-button-delete:empty:before,.dito-buttons-small .dito-button-drag:empty:before,.dito-buttons-small .dito-button-edit:empty:before,.dito-buttons-small .dito-button-paste:empty:before,.dito-buttons-small .dito-button-remove:empty:before{width:1em;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;content:\"\";background:currentColor;-webkit-mask:none no-repeat center content-box;mask:none no-repeat center content-box}.dito-buttons-round .dito-button-add-upload:before,.dito-buttons-small .dito-button-add-upload:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20'/%3E%3C/svg%3E\")}.dito-button-overlay.dito-button-clear:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-copy:empty:before,.dito-buttons-small .dito-button-copy:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-drag:empty:before,.dito-buttons-small .dito-button-drag:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l7-7 7 7M5 16l7 7 7-7'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l7-7 7 7M5 16l7 7 7-7'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-edit:empty:before,.dito-buttons-small .dito-button-edit:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16L16 2l4 4L6 20M14 4l4 4'/%3E%3Cpath fill='%23000' d='M6 20H2v-4z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16L16 2l4 4L6 20M14 4l4 4'/%3E%3Cpath fill='%23000' d='M6 20H2v-4z'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-paste:empty:before,.dito-buttons-small .dito-button-paste:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-delete:empty:before,.dito-buttons-round .dito-button-remove:empty:before,.dito-buttons-small .dito-button-delete:empty:before,.dito-buttons-small .dito-button-remove:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E\")}button,h1,h2,h3,h4,h5,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}a{color:inherit;text-decoration:none}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:none}a::-moz-focus-inner,a::-moz-focus-outer,button::-moz-focus-inner,button::-moz-focus-outer,input::-moz-focus-inner,input::-moz-focus-outer,select::-moz-focus-inner,select::-moz-focus-outer,textarea::-moz-focus-inner,textarea::-moz-focus-outer{border:none}select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--color-text,#000)}ul{list-style:none;padding:0}ul,ul li{margin:0}table{border-spacing:0}a,button{cursor:pointer}label,label *{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}:root{--font-size:13px;--line-height:1.38462;--color-text:#0a0a0a;font-size:var(--font-size);line-height:var(--line-height);color:var(--color-text);background:#ededed;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100%}.dito-button .dito-order-arrows{display:inline-block;width:6px;padding-left:6px}.dito-button .dito-order-arrows:before{-webkit-transform:rotate(135deg);transform:rotate(135deg);top:0;bottom:0;bottom:3px}.dito-button .dito-order-arrows:after,.dito-button .dito-order-arrows:before{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:\"\";width:4px;height:4px;pointer-events:none;margin:auto}.dito-button .dito-order-arrows:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);top:0;bottom:0;top:3px}.dito-button.dito-order-asc .dito-order-arrows:before{bottom:0}.dito-button.dito-order-asc .dito-order-arrows:after,.dito-button.dito-order-desc .dito-order-arrows:before{display:none}.dito-button.dito-order-desc .dito-order-arrows:after{top:0}.dito-button-create:empty:before{content:\"Create\"}.dito-button-add:empty:before{content:\"Add\"}.dito-button-delete:empty:before{content:\"Delete\"}.dito-button-remove:empty:before{content:\"Remove\"}.dito-button-edit:empty:before{content:\"Edit\"}.dito-button-save:empty:before{content:\"Save\"}.dito-button-apply:empty:before{content:\"Apply\"}.dito-button-login:empty:before{content:\"Login\"}.dito-button-ok:empty:before{content:\"OK\"}.dito-button-cancel:empty:before{content:\"Cancel\"}.dito-button-close:empty:before{content:\"Close\"}.dito-button-drag:empty:before{content:\"Drag\"}.dito-button-copy:empty:before{content:\"Copy\"}.dito-button-paste:empty:before{content:\"Paste\"}.dito-button-drag{cursor:-webkit-grab;cursor:grab}.dito-button-drag:active{cursor:-webkit-grabbing;cursor:grabbing}.dito-buttons.dito-buttons-large{--button-margin:3px;font-size:14px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-pack:center;justify-content:center}.dito-buttons.dito-buttons-large .dito-button-container{margin-top:16px}.dito-buttons.dito-buttons-large .dito-button{border-radius:2em;padding:.3em .9em}.dito-buttons.dito-buttons-main{position:sticky;bottom:0;width:100%;align-self:flex-end;z-index:500;padding-bottom:16px;margin-bottom:-16px;margin-top:32px;-webkit-box-shadow:0 -16px 16px -16px rgba(10,10,10,.25);box-shadow:0 -16px 16px -16px rgba(10,10,10,.25);background:#ededed}.dito-button-overlay{position:absolute;right:1px;top:1px;bottom:1px;border:0;border-radius:4px;cursor:pointer}.dito-button-overlay.dito-button-clear{width:2em;z-index:1;background:#fff;display:none}.dito-component:hover>*>*>.dito-button-overlay.dito-button-clear,.dito-component:hover>*>.dito-button-overlay.dito-button-clear,.dito-component:hover>.dito-button-overlay.dito-button-clear{display:block}.dito-button-overlay.dito-button-clear:before{color:grey}.dito-button-overlay.dito-button-clear:hover:before{color:#0a0a0a}ul.dito-pulldown{display:none;position:absolute;top:0;z-index:1000;border-radius:.5em;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}ul.dito-pulldown.dito-open{display:block}ul.dito-pulldown li{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}ul.dito-pulldown li a{display:block;text-align:center;padding:.5em 1em;line-height:1;background:#e0e0e0}ul.dito-pulldown li a:hover{background:#3898ff;color:#fff}ul.dito-pulldown li:first-child a{border-top-left-radius:.5em;border-top-right-radius:.5em}ul.dito-pulldown li:last-child a{border-bottom-left-radius:.5em;border-bottom-right-radius:.5em}.dito-layout-vertical{display:table}.dito-layout-horizontal,.dito-layout-vertical>*{display:table-row}.dito-layout-horizontal>*{display:table-cell}.dito-layout-horizontal>*+*{padding-left:6px}.dito-scroll{-webkit-box-flex:1;flex:1;max-height:100%;overflow-x:hidden;overflow-y:auto}.dito-scroll-parent{-webkit-box-flex:1;flex:1;display:-webkit-box;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-flow:column;overflow:hidden}.dito-drag-fallback{-webkit-filter:drop-shadow(0 2px 4px rgba(10,10,10,.25));filter:drop-shadow(0 2px 4px rgba(10,10,10,.25))}.dito-drag-fallback,.dito-drag-fallback td{display:-webkit-box;display:flex}.dito-drag-fallback>*,.dito-drag-fallback td>*{-webkit-box-flex:1;flex:1}table.dito-table{--separator-width:1px;width:100%;height:-webkit-min-content;height:-moz-min-content;height:min-content;border-radius:4px}table.dito-table>tbody>tr,table.dito-table>tfoot>tr{vertical-align:baseline}table.dito-table>tbody>tr>td,table.dito-table>tfoot>tr>td{padding:6px 0 6px 6px;background:#ededed}table.dito-table>tbody>tr>td:last-child,table.dito-table>tfoot>tr>td:last-child{padding-right:6px}table.dito-table>tbody>tr>td.dito-cell-edit-buttons,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons{width:1%}table.dito-table>tbody>tr>td.dito-cell-edit-buttons,table.dito-table>tbody>tr>td.dito-cell-edit-buttons .dito-button,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons .dito-button{vertical-align:top}table.dito-table.dito-table-larger-padding td:not(.dito-cell-edit-buttons){padding:9px 0 9px 9px}table.dito-table.dito-table-separators>tbody:not(:empty)+tfoot>tr>td,table.dito-table.dito-table-separators>tbody>tr+tr>td{border-top:var(--separator-width) solid #c7c7c7}table.dito-table.dito-table-alternate-colors.dito-table-even-count>tfoot>tr>td,table.dito-table.dito-table-alternate-colors>tbody>tr:nth-child(odd)>td,table.dito-table.dito-table-background>tbody>tr>td,table.dito-table.dito-table-background>tfoot>tr>td{background:#fff}table.dito-table>thead>tr>th>*{-webkit-box-sizing:content-box;box-sizing:content-box}table.dito-table>thead>tr>th>:not(:focus){border-style:solid;border-color:#c7c7c7}table.dito-table>thead>tr>th>*{border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px}table.dito-table>thead>tr>th:first-child>*{border-top-width:1px;border-left-width:1px;border-top-left-radius:4px}table.dito-table>thead>tr>th:last-child>*{border-top-width:1px;border-right-width:1px;border-top-right-radius:4px}table.dito-table>thead>tr>th+th>*{margin-left:-1px}table.dito-table>thead>tr>th+th>:focus{z-index:1}table.dito-table>tbody>tr>td{border:0;border-style:solid;border-color:#c7c7c7}table.dito-table>tbody>tr>td:first-child{border-left-width:1px}table.dito-table>tbody>tr>td:last-child{border-right-width:1px}table.dito-table>tbody:first-child:empty+tfoot>tr>td,table.dito-table>tbody:first-child>tr:first-child>td{border-top-width:1px}table.dito-table>tbody:first-child:empty+tfoot>tr>td:first-child,table.dito-table>tbody:first-child>tr:first-child>td:first-child{border-top-width:1px;border-left-width:1px;border-top-left-radius:4px}table.dito-table>tbody:first-child:empty+tfoot>tr>td:last-child,table.dito-table>tbody:first-child>tr:first-child>td:last-child{border-top-width:1px;border-right-width:1px;border-top-right-radius:4px}table.dito-table>tbody:last-child>tr:last-child>td{border-bottom-width:1px}table.dito-table>tbody:last-child>tr:last-child>td:first-child{border-bottom-width:1px;border-left-width:1px;border-bottom-left-radius:4px}table.dito-table>tbody:last-child>tr:last-child>td:last-child{border-bottom-width:1px;border-right-width:1px;border-bottom-right-radius:4px}table.dito-table>tfoot>tr>td{border-width:0;border-style:solid;border-color:#c7c7c7;border-bottom-width:1px}table.dito-table>tfoot>tr>td:first-child{border-bottom-width:1px;border-left-width:1px;border-bottom-left-radius:4px}table.dito-table>tfoot>tr>td:last-child{border-bottom-width:1px;border-right-width:1px;border-bottom-right-radius:4px}.dito-form-nested table.dito-table,table.dito-table table.dito-table{margin:0}.dito-notifications .dito-notification{padding:8px;margin:12px 12px 0;font-size:inherit;color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}.dito-notifications .dito-notification .notification-title{font-weight:700;padding-bottom:8px}.dito-notifications .dito-notification .notification-content p{margin:0}.dito-notifications .dito-notification .notification-content p+p{margin-top:8px}.dito-notifications .dito-notification,.dito-notifications .dito-notification.info{background:#52a5ff;color:#fff;border-left:12px solid #057eff}.dito-notifications .dito-notification.success{background:#32dc6e;color:#fff;border-left:12px solid #1ca64c}.dito-notifications .dito-notification.warning{background:#ffd561;color:#fff;border-left:12px solid #ffc014}.dito-notifications .dito-notification.error{background:#ff5274;color:#fff;border-left:12px solid #ff0537}.dito-notifications .vue-notification-wrapper{overflow:visible}.dito-root{height:100%;display:-webkit-box;display:flex}.dito-root .dito-page{background:#ededed}.dito-root .dito-page>.dito-form,.dito-root .dito-page>.dito-view{margin-top:-42px;padding-top:42px}",""]),t.exports=e},"82e8":function(t,e,o){var i=o("a7b7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("08cd8651",i,!0,{sourceMap:!1,shadowMode:!1})},8380:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-color .dito-input{display:block;position:relative}.dito-color .dito-input input{-webkit-box-sizing:border-box;box-sizing:border-box;font-variant-numeric:tabular-nums;padding-right:24px}.dito-color .dito-button-clear{margin-right:24px}.dito-color .dito-color-picker{margin:2px 0;border:1px solid #c7c7c7;border-radius:4px;background:#fff;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}.dito-color .dito-color-preview{background:repeating-conic-gradient(transparent 0 25%,#eee 0 50%) 0 0/24px 24px;border-left:1px solid #c7c7c7}.dito-color .dito-color-preview,.dito-color .dito-color-preview div{position:absolute;width:24px;top:0;right:0;bottom:0;border-top-right-radius:3px;border-bottom-right-radius:3px}",""]),t.exports=e},8386:function(t,e,o){"use strict";o("3c03")},"83a6":function(t,e,o){var i=o("72df"),n=o("6a61"),a="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==n(t)?a.call(t,""):Object(t)}:Object},8597:function(t,e,o){"use strict";var i=o("157c"),n=o("8697");t.exports=function(){for(var t=i(this),e=n(t.add),o=0,a=arguments.length;o<a;o++)e.call(t,arguments[o]);return t}},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8b0f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-tree-list button,.dito-tree-list:disabled button{opacity:.6;pointer-events:none}.dito-tree-list{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-tree-list{border-color:#ff3860}.dito-disabled.dito-tree-list,.dito-tree-list:disabled{color:grey;pointer-events:none;cursor:text}.dito-tree-list .dito-tree-panel{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-tree-list .dito-tree-panel>.dito-tree-item{-webkit-box-flex:1;flex:1 1 25%}.dito-tree-list .dito-tree-panel>.dito-tree-form-container{-webkit-box-flex:0;flex:0 1 75%;align-self:stretch;background:#ededed;border-left:1px solid #c7c7c7;border-top-right-radius:3px;border-bottom-right-radius:3px;margin:-3px -6px;margin-left:6px}",""]),t.exports=e},"8bb2":function(t,e){var o=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:o)(t)}},"8bbf":function(t,e){t.exports=d},"8c56":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-schema{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:flex;min-height:100%}.dito-schema>.dito-schema-content{-webkit-box-flex:1;flex:1 1 100%;display:grid;grid-template-rows:-webkit-min-content;grid-template-rows:min-content;max-width:900px;padding:16px}.dito-schema>.dito-schema-content>:only-child{grid-row-end:none}.dito-schema>.dito-buttons,.dito-schema>.dito-panels{-webkit-box-flex:1;flex:1 1 0%}.dito-schema>.dito-buttons{margin-left:6px}.dito-schema>.dito-panels{padding:16px 16px 16px 0}.dito-schema .dito-components-tab+.dito-components-main:before{display:block;content:"";width:100%;border-bottom:1px solid #c7c7c7;margin:16px 3px 3px}.dito-schema-header{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-schema-header .dito-clipboard,.dito-schema-header .dito-tabs{display:-webkit-box;display:flex;align-self:flex-end}.dito-schema-header .dito-clipboard:only-child{margin-left:auto}.dito-schema-header .dito-clipboard .dito-button{margin:0 0 6px 6px}.dito-schema-header.dito-schema-menu-header{position:absolute;height:42px;padding:0 16px;max-width:900px;top:0;left:0;right:0;z-index:1000;pointer-events:none}.dito-schema-header.dito-schema-menu-header .dito-buttons,.dito-schema-header.dito-schema-menu-header .dito-tabs{pointer-events:auto;line-height:1;font-size:14px}.dito-schema-header button.dito-label{width:100%;z-index:1}',""]),t.exports=e},"8de5":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("8697"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{reduce:function(t){var e=a(this),o=s(e),i=arguments.length<2,n=i?void 0:arguments[1];if(r(t),l(o,(function(o){i?(i=!1,n=o):n=t(n,o,o,e)}),{IS_ITERATOR:!0}),i)throw TypeError("Reduce of empty set with no initial value");return n}})},"916c":function(t,e){t.exports=c},"926e":function(t,e,o){"use strict";var i=o("157c"),n=o("8697");t.exports=function(){for(var t,e=i(this),o=n(e["delete"]),a=!0,r=0,s=arguments.length;r<s;r++)t=o.call(e,arguments[r]),a=a&&t;return!!a}},"94f5":function(t,e,o){"use strict";o("fa4f")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"96af":function(t,e,o){var i=o("74f6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("6b539d46",i,!0,{sourceMap:!1,shadowMode:!1})},"9a0f":function(t,e,o){var i=o("8bb2"),n=Math.max,a=Math.min;t.exports=function(t,e){var o=i(t);return o<0?n(o+e,0):a(o,e)}},"9a69":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-label{--label-padding:0;display:-webkit-box;display:flex;position:relative;-webkit-box-align:center;align-items:center;padding:var(--label-padding);margin:0 0 3px 0}.dito-label label{display:inline;cursor:inherit;font-weight:700;white-space:nowrap}.dito-label .dito-label-prefix:nth-last-child(2),.dito-label .dito-label-suffix:nth-last-child(2),.dito-label label:nth-last-child(2){-webkit-box-flex:1;flex:1 1 auto}.dito-label .dito-label-prefix:after,.dito-label .dito-label-suffix:after,.dito-label label:after{content:" "}.dito-label .dito-label-prefix,.dito-label .dito-label-suffix{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dito-label .dito-buttons{margin:calc(var(--label-padding)*-1);margin-left:0;padding:var(--label-padding)}.dito-label.dito-width-fill{width:100%}.dito-label.dito-width-fill label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;max-width:100%}.dito-label.dito-width-fill:after{content:" "}a.dito-label:hover .dito-chevron{color:#2e2e2e}a.dito-label:focus:not(:active):not(.dito-active) .dito-chevron{-webkit-text-stroke:1px #3898ff}.dito-schema-compact>.dito-schema-content>.dito-components>.dito-component-container>.dito-label:not(.dito-label-component){display:inline-block}',""]),t.exports=e},"9baa":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("8697"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:function(t){var e=a(this),o=r(e.has);return!s(t,(function(t,i){if(!1===o.call(e,t))return i()}),{INTERRUPTED:!0}).stopped}})},"9cdb":function(t,e){t.exports=u},"9e1e":function(t,e,o){var i=o("3cd4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("32921789",i,!0,{sourceMap:!1,shadowMode:!1})},a03e:function(t,e,o){var i=o("5428"),n=o("65d0"),a=o("2402"),r=o("157c");t.exports=i("Reflect","ownKeys")||function(t){var e=n.f(r(t)),o=a.f;return o?e.concat(o(t)):e}},a1c0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-menu{-webkit-box-flex:initial;flex:initial;font-size:14px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-menu ul{background:#e0e0e0;border-right:1px solid #c7c7c7}.dito-menu a,.dito-menu h1{display:block}.dito-menu h1{font-weight:700;background:#2e2e2e;border-right:1px solid #141414;color:#fff}.dito-menu .dito-link,.dito-menu h1{padding:14px 16px;line-height:1}.dito-menu .dito-link.dito-active{color:#fff;background:#3898ff}.dito-link:focus:not(:active):not(.dito-active){-webkit-box-shadow:0 0 0 1px #3898ff;box-shadow:0 0 0 1px #3898ff}",""]),t.exports=e},a2b3:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-slider button,.dito-slider:disabled button{opacity:.6;pointer-events:none}.dito-slider{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-slider{border-color:#ff3860}.dito-disabled.dito-slider,.dito-slider:disabled{color:grey;pointer-events:none;cursor:text}.dito-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-slider::-webkit-input-placeholder{color:grey}.dito-slider::-moz-placeholder{color:grey}.dito-slider::placeholder{color:grey}.dito-focus.dito-slider,.dito-focus.dito-slider .dito-inherit-focus,.dito-slider:focus,.dito-slider:focus-within,.dito-slider:focus-within .dito-inherit-focus,.dito-slider:focus .dito-inherit-focus{border-color:#3898ff}.dito-slider{display:-webkit-box;display:flex}.dito-slider .dito-range{-webkit-box-flex:1;flex:auto;height:calc(1em*var(--line-height))}.dito-slider .dito-number{border:0;padding:0;text-align:right;font-variant-numeric:tabular-nums}",""]),t.exports=e},a466:function(t,e,o){"use strict";o("82e8")},a672:function(t,e){t.exports=p},a6de:function(t,e,o){"use strict";o("a782")},a782:function(t,e,o){var i=o("d4b0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("00bcc797",i,!0,{sourceMap:!1,shadowMode:!1})},a7b7:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-list{position:relative}.dito-list .dito-navigation{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;padding-bottom:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-list .dito-navigation:empty{display:none}.dito-list .dito-navigation .dito-pagination,.dito-list .dito-navigation .dito-scopes{display:-webkit-box;display:flex;-webkit-box-flex:0;flex:0 1 auto;min-width:0}.dito-list.dito-single{display:grid;grid-template-rows:-webkit-min-content;grid-template-rows:min-content;height:100%}",""]),t.exports=e},a861:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-schema-inlined>.dito-schema-content{padding:0}.dito-schema-inlined>.dito-schema-content>.dito-schema-header{margin:-6px}.dito-schema-inlined>.dito-schema-content>.dito-schema-header .dito-label{--label-padding:6px;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:900px}.dito-schema-inlined>.dito-schema-content>.dito-schema-header+.dito-components{min-height:6px}",""]),t.exports=e},a8a1:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-object{display:-webkit-box;display:flex;border:1px solid #c7c7c7;border-radius:4px;margin:0;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box}.dito-object .dito-object-content{-webkit-box-flex:0;flex:0 1 100%}.dito-object>.dito-buttons{-webkit-box-flex:1;flex:1 0 0%;margin-left:6px}",""]),t.exports=e},a8c9:function(t,e,o){"use strict";o("da97")},a8e0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-account{position:relative}.dito-account .dito-pulldown{top:.5em}",""]),t.exports=e},a8e3:function(t,e,o){"use strict";o("9e1e")},a94f:function(t,e,o){"use strict";o("add8")},aaba:function(t,e,o){var i=o("157c");t.exports=function(t,e,o){var n,a;i(t);try{if(n=t["return"],void 0===n){if("throw"===e)throw o;return o}n=n.call(t)}catch(r){a=!0,n=r}if("throw"===e)throw o;if(a)throw n;return i(n),o}},abc8:function(t,e,o){var i=o("a2b3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("7bbbfd57",i,!0,{sourceMap:!1,shadowMode:!1})},abdf:function(t,e,o){var i=o("d4cb"),n=o("7c3f"),a=o("157c"),r=o("feca"),s=Object.defineProperty;e.f=i?s:function(t,e,o){if(a(t),e=r(e),a(o),n)try{return s(t,e,o)}catch(i){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},acde:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-multiselect{position:relative}.dito-multiselect .multiselect{font-size:inherit;min-height:inherit;color:#0a0a0a}.dito-multiselect .multiselect__tags{font-size:inherit;overflow:auto;min-height:inherit;padding:0 2em 0 0;padding-bottom:2px}.dito-multiselect .multiselect__tag{float:left;margin:2px 0 0 2px;border-radius:1em;padding:3px 1.8em 3px .8em;line-height:1.1em}.dito-multiselect .multiselect__tags-wrap{overflow:auto;line-height:0}.dito-multiselect .multiselect__input,.dito-multiselect .multiselect__placeholder,.dito-multiselect .multiselect__single{font-size:inherit;line-height:inherit;min-height:0;margin:0 0 1px 0;padding:3px 6px!important;padding-bottom:0!important;background:none}.dito-multiselect .multiselect__input::-webkit-input-placeholder{color:grey}.dito-multiselect .multiselect__input::-moz-placeholder{color:grey}.dito-multiselect .multiselect__input::placeholder,.dito-multiselect .multiselect__placeholder{color:grey}.dito-multiselect .multiselect--active .multiselect__placeholder{display:inline-block;visibility:hidden}.dito-multiselect .multiselect__select,.dito-multiselect .multiselect__spinner{padding:0;top:1px;right:1px;bottom:1px;height:inherit;border-radius:4px}.dito-multiselect .multiselect__select{width:0;margin-right:1em}.dito-multiselect .multiselect__select:before{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:"";width:.5em;height:.5em;pointer-events:none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin:auto;top:0;bottom:0;bottom:2px;right:-.25em}.dito-multiselect .multiselect__spinner{width:2em}.dito-multiselect .multiselect__spinner:after,.dito-multiselect .multiselect__spinner:before{border-width:3px;border-top-color:#3898ff;top:0;right:0;bottom:0;left:0;margin:auto}.dito-multiselect .multiselect__option{min-height:unset;height:unset;line-height:1.1em;padding:3px 6px}.dito-multiselect .multiselect__option:after{padding:3px 6px;line-height:1.1em}.dito-multiselect .multiselect__option--highlight:after{diplay:block;position:absolute;background:transparent;color:#fff}.dito-multiselect .multiselect__option--disabled{background:none;color:grey}.dito-multiselect .multiselect__tag-icon{background:none;border-radius:1em;font-weight:inherit;line-height:1.4em;width:1.8em}.dito-multiselect .multiselect__tag-icon:after{color:#fff;font-size:1.3em}.dito-multiselect .multiselect__tag-icon:hover:after{color:#0a0a0a}.dito-multiselect .multiselect__option--selected{background:#b3d7ff;color:#0a0a0a;font-weight:400}.dito-multiselect .multiselect__option--selected.multiselect__option--highlight{color:#fff}.dito-multiselect .multiselect__option--highlight,.dito-multiselect .multiselect__tag{background:#3898ff;color:#fff}.dito-multiselect .multiselect__content-wrapper,.dito-multiselect .multiselect__tags{border:1px solid #c7c7c7;border-radius:4px}.dito-multiselect.dito-multiselect-single{--input-width:100%}.dito-multiselect.dito-multiselect-multiple{--input-width:auto}.dito-multiselect .multiselect--active .multiselect__input,.dito-multiselect .multiselect--active .multiselect__single{width:var(--input-width)!important}.dito-multiselect .multiselect--active .multiselect__tags{border-color:#3898ff;border-bottom-left-radius:0;border-bottom-right-radius:0}.dito-multiselect .multiselect--active .multiselect__content-wrapper{border:1px solid #3898ff;border-top-color:#c7c7c7;margin:-1px 0 0;border-top-left-radius:0;border-top-right-radius:0}.dito-multiselect .multiselect--active.multiselect--above .multiselect__tags{border-radius:4px;border-top-left-radius:0;border-top-right-radius:0}.dito-multiselect .multiselect--active.multiselect--above .multiselect__content-wrapper{border:1px solid #3898ff;border-bottom-color:#c7c7c7;margin:0 0 -1px;border-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}.dito-multiselect.dito-has-errors .multiselect__tags{border-color:#ff3860}.dito-multiselect .dito-button-clear{width:2em}',""]),t.exports=e},add8:function(t,e,o){var i=o("8380");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("8165a1ee",i,!0,{sourceMap:!1,shadowMode:!1})},af74:function(t,e,o){"use strict";o("43ad")},afe5:function(t,e){t.exports=h},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b198:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("8597");i({target:"Set",proto:!0,real:!0,forced:n},{addAll:function(){return a.apply(this,arguments)}})},b327:function(t,e){t.exports=m},b495:function(t,e,o){var i=o("8bb2"),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},b578:function(t,e,o){var i=o("157c"),n=o("c965"),a=o("b495"),r=o("2117"),s=o("3f5a"),l=o("0446"),d=o("aaba"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,o){var u,p,h,m,b,f,g,v=o&&o.that,y=!(!o||!o.AS_ENTRIES),x=!(!o||!o.IS_ITERATOR),w=!(!o||!o.INTERRUPTED),_=r(e,v,1+y+w),k=function(t){return u&&d(u,"normal",t),new c(!0,t)},C=function(t){return y?(i(t),w?_(t[0],t[1],k):_(t[0],t[1])):w?_(t,k):_(t)};if(x)u=t;else{if(p=l(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(n(p)){for(h=0,m=a(t.length);m>h;h++)if(b=C(t[h]),b&&b instanceof c)return b;return new c(!1)}u=s(t,p)}f=u.next;while(!(g=f.call(u)).done){try{b=C(g.value)}catch(O){d(u,"throw",O)}if("object"==typeof b&&b&&b instanceof c)return b}return new c(!1)}},b5a7:function(t,e,o){var i=o("caca");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("04d07bde",i,!0,{sourceMap:!1,shadowMode:!1})},b5c9:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("3f5a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:function(t){var e=l(this),o=r(t),i=o.has;return"function"!=typeof i&&(o=new(a("Set"))(t),i=s(o.has)),!d(e,(function(t,e){if(!1===i.call(o,t))return e()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},b634:function(t,e,o){var i=o("f1a7"),n=o("a03e"),a=o("185a"),r=o("abdf");t.exports=function(t,e){for(var o=n(e),s=r.f,l=a.f,d=0;d<o.length;d++){var c=o[d];i(t,c)||s(t,c,l(e,c))}}},b8ba:function(t,e,o){var i=o("f498"),n=o("5b12"),a=o("f1a7"),r=o("3e34"),s=o("df6f"),l=o("cdcd"),d=l.get,c=l.enforce,u=String(String).split("String");(t.exports=function(t,e,o,s){var l,d=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof o&&("string"!=typeof e||a(o,"name")||n(o,"name",e),l=c(o),l.source||(l.source=u.join("string"==typeof e?e:""))),t!==i?(d?!h&&t[e]&&(p=!0):delete t[e],p?t[e]=o:n(t,e,o)):p?t[e]=o:r(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&d(this).source||s(this)}))},b980:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{union:function(t){var e=r(this),o=new(l(e,a("Set")))(e);return d(t,s(o.add),{that:o}),o}})},b9d5:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("926e");i({target:"Set",proto:!0,real:!0,forced:n},{deleteAll:function(){return a.apply(this,arguments)}})},ba18:function(t,e,o){var i=o("775e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("a0340784",i,!0,{sourceMap:!1,shadowMode:!1})},bad4:function(t,e){t.exports=function(t){return Set.prototype.values.call(t)}},c4c0:function(t,e,o){"use strict";o("2766")},c592:function(t,e,o){"use strict";o("d566")},c607:function(t,e,o){var i=o("f498"),n=o("3e34"),a="__core-js_shared__",r=i[a]||n(a,{});t.exports=r},c8e8:function(t,e){t.exports=b},c91c:function(t,e,o){var i=o("f1a7"),n=o("378c"),a=o("1f5e").indexOf,r=o("d687");t.exports=function(t,e){var o,s=n(t),l=0,d=[];for(o in s)!i(r,o)&&i(s,o)&&d.push(o);while(e.length>l)i(s,o=e[l++])&&(~a(d,o)||d.push(o));return d}},c965:function(t,e,o){var i=o("7d53"),n=o("5bb7"),a=i("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[a]===t)}},caca:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-component-container{align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;padding:6px 3px}.dito-component-container.dito-omit-padding,.dito-component-container:empty{padding:0}.dito-component-container.dito-omit-padding>.dito-label{margin:6px 3px 0}.dito-component-container.dito-single{height:100%}.dito-component.dito-width-fill{width:100%}.dito-component.dito-width-fill.dito-checkbox,.dito-component.dito-width-fill.dito-radio-button{display:inline-block;width:auto}",""]),t.exports=e},cd5a:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-checkboxes label{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}.dito-checkboxes .dito-checkbox{margin-right:6px}",""]),t.exports=e},cdcd:function(t,e,o){var i,n,a,r=o("7297"),s=o("f498"),l=o("7526"),d=o("5b12"),c=o("f1a7"),u=o("c607"),p=o("332c"),h=o("d687"),m="Object already initialized",b=s.WeakMap,f=function(t){return a(t)?n(t):i(t,{})},g=function(t){return function(e){var o;if(!l(e)||(o=n(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}};if(r||u.state){var v=u.state||(u.state=new b),y=v.get,x=v.has,w=v.set;i=function(t,e){if(x.call(v,t))throw new TypeError(m);return e.facade=t,w.call(v,t,e),e},n=function(t){return y.call(v,t)||{}},a=function(t){return x.call(v,t)}}else{var _=p("state");h[_]=!0,i=function(t,e){if(c(t,_))throw new TypeError(m);return e.facade=t,d(t,_,e),e},n=function(t){return c(t,_)?t[_]:{}},a=function(t){return c(t,_)}}t.exports={set:i,get:n,has:a,enforce:f,getterFor:g}},cdda:function(t,e,o){var i=o("e18a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("1bdd06e6",i,!0,{sourceMap:!1,shadowMode:!1})},cebe:function(t,e){t.exports=f},cfd1:function(t,e,o){var i=o("5428"),n=o("4db4");t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return"function"==typeof e&&Object(t)instanceof e}},d0a1:function(t,e,o){var i=o("cd5a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("5aae5f12",i,!0,{sourceMap:!1,shadowMode:!1})},d10f:function(t,e,o){"use strict";o("d0a1")},d20f:function(t,e,o){"use strict";o("f2f0")},d2ad:function(t,e,o){var i=o("1564");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("785eaf5b",i,!0,{sourceMap:!1,shadowMode:!1})},d4b0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-upload .dito-table tr{vertical-align:middle}.dito-upload .dito-button-add-upload{padding:0}.dito-upload .dito-button-add-upload>*{position:absolute;cursor:pointer}.dito-upload .dito-upload-footer{display:-webkit-box;display:flex;-webkit-box-pack:end;justify-content:flex-end;-webkit-box-align:center;align-items:center}.dito-upload .dito-upload-footer .dito-progress{-webkit-box-flex:1;flex:auto;margin-right:6px}",""]),t.exports=e},d4cb:function(t,e,o){var i=o("72df");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d566:function(t,e,o){var i=o("f39e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("91144d44",i,!0,{sourceMap:!1,shadowMode:!1})},d687:function(t,e){t.exports={}},da06:function(t,e,o){var i=o("3cec"),n=o("6a61"),a=o("7d53"),r=a("toStringTag"),s="Arguments"==n(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(o){}};t.exports=i?n:function(t){var e,o,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=l(e=Object(t),r))?o:s?n(e):"Object"==(i=n(e))&&"function"==typeof e.callee?"Arguments":i}},da97:function(t,e,o){var i=o("58b1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("72c6ac09",i,!0,{sourceMap:!1,shadowMode:!1})},db6b:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-header{background:#0a0a0a;font-size:14px;line-height:1;z-index:1000;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-header span{display:inline-block;padding:14px 16px;color:#fff}.dito-header .dito-trail{-webkit-box-sizing:border-box;box-sizing:border-box;height:3em;width:100%;max-width:916px}.dito-header .dito-trail,.dito-header .dito-trail ul{display:-webkit-box;display:flex}.dito-header .dito-trail a{position:relative;display:block;padding-right:.4em}.dito-header .dito-trail a:hover{color:#999}.dito-header .dito-trail a:after,.dito-header .dito-trail a:before{position:absolute;content:"";width:1px;height:1.2em;right:-1px;background:#474747}.dito-header .dito-trail a:before{top:50%;-webkit-transform:rotate(33deg);transform:rotate(33deg);-webkit-transform-origin:top;transform-origin:top}.dito-header .dito-trail a:after{bottom:50%;-webkit-transform:rotate(-33deg);transform:rotate(-33deg);-webkit-transform-origin:bottom;transform-origin:bottom}.dito-header .dito-spinner{margin-top:14px}.dito-header .dito-dirty:after{content:"";display:inline-block;background-color:#fff;width:8px;height:8px;margin:2px;margin-left:.5em;border-radius:100%}.dito-header .dito-account,.dito-header .dito-login{position:absolute;top:0;cursor:pointer}.dito-header .dito-account{left:932px}',""]),t.exports=e},dd36:function(t,e,o){"use strict";o("7373")},dda4:function(t,e,o){"use strict";o("de0d")},ddef:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("157c"),s=o("8697"),l=o("2117"),d=o("433a"),c=o("bad4"),u=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{map:function(t){var e=r(this),o=c(e),i=l(t,arguments.length>1?arguments[1]:void 0,3),n=new(d(e,a("Set"))),p=s(n.add);return u(o,(function(t){p.call(n,i(t,t,e))}),{IS_ITERATOR:!0}),n}})},de0d:function(t,e,o){var i=o("e13f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("3787e91e",i,!0,{sourceMap:!1,shadowMode:!1})},df6f:function(t,e,o){var i=o("c607"),n=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return n.call(t)}),t.exports=i.inspectSource},e100:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{find:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return l(o,(function(t,o){if(i(t,t,e))return o(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},e129:function(t,e,o){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},e13f:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-components{display:-webkit-box;display:flex;position:relative;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;align-content:flex-start;-webkit-box-align:baseline;align-items:baseline;margin:-6px -3px;max-width:906px;-webkit-box-flex:0%;flex:0%}.dito-components.dito-components-main{-webkit-box-flex:100%;flex:100%}.dito-schema-header:not(.dito-schema-menu-header)+.dito-components{margin-top:0}.dito-component-container.dito-omit-padding>.dito-components{margin:0;max-width:unset}.dito-components .dito-break{-webkit-box-flex:100%;flex:100%;height:0}",""]),t.exports=e},e18a:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-select{display:inline-block;position:relative}.dito-select select{padding-right:2em}.dito-select.dito-width-fill select{width:100%}.dito-select:after{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:"";width:.5em;height:.5em;pointer-events:none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin:auto;top:0;bottom:0;bottom:2px;right:calc(.75em + 1px)}.dito-select.dito-disabled:after{border-color:#c7c7c7}',""]),t.exports=e},e2c2:function(t,e,o){"use strict";o("7922")},e326:function(t,e){t.exports=g},e7a0:function(t,e,o){var i=o("4fed"),n=o("72df");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},e84a:function(t,e,o){var i=o("fc34");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("77d28d34",i,!0,{sourceMap:!1,shadowMode:!1})},e97b:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-tree-item{--chevron-indent:1.2em}.dito-tree-item>.dito-tree-header>.dito-tree-branch,.dito-tree-item>.dito-tree-header>.dito-tree-leaf{padding-left:calc(var(--chevron-indent)*(var(--level, 1) - 1))}.dito-tree-item .dito-tree-branch{cursor:pointer}.dito-tree-item .dito-tree-header{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-tree-item .dito-tree-branch,.dito-tree-item .dito-tree-leaf{display:-webkit-box;display:flex;-webkit-box-flex:1;flex:auto;position:relative;margin:1px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-tree-item .dito-tree-info,.dito-tree-item .dito-tree-label{white-space:nowrap}.dito-tree-item .dito-tree-info{padding-left:.35em;color:rgba(10,10,10,.2)}.dito-tree-item .dito-buttons{display:-webkit-box;display:flex;visibility:hidden;height:100%;margin-left:1em;margin:1px 0 1px 1em}.dito-tree-item .dito-tree-header:hover>.dito-buttons{visibility:visible}.dito-tree-item.dito-dragging .dito-tree-header>.dito-buttons{visibility:hidden}.dito-tree-item.dito-active>.dito-tree-header{background:#3898ff;padding:0 6px;margin:0 -6px}.dito-tree-item.dito-active>.dito-tree-header>*>.dito-tree-label,.dito-tree-item.dito-active>.dito-tree-header>.dito-tree-branch>.dito-chevron:before{color:#fff}.dito-tree-item .dito-properties{display:block;margin-left:1.2em}.dito-tree-item .dito-properties>tr{vertical-align:baseline}.dito-tree-item .dito-properties .dito-label{margin:0}.dito-tree-item .dito-properties .dito-label:after{content:": "}',""]),t.exports=e},ea92:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{every:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return!l(o,(function(t,o){if(!i(t,t,e))return o()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},eba0:function(t,e,o){var i=o("7526");t.exports=function(t,e){var o,n;if("string"===e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;if("function"==typeof(o=t.valueOf)&&!i(n=o.call(t)))return n;if("string"!==e&&"function"==typeof(o=t.toString)&&!i(n=o.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},ebac:function(t,e,o){var i=o("72df"),n=/#|\.prototype\./,a=function(t,e){var o=s[r(t)];return o==d||o!=l&&("function"==typeof e?i(e):!!e)},r=a.normalize=function(t){return String(t).replace(n,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",d=a.POLYFILL="P";t.exports=a},ebae:function(t,e,o){"use strict";o("abc8")},eeb2:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".v--modal-overlay{z-index:2000}",""]),t.exports=e},f1a7:function(t,e,o){var i=o("37d1"),n={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return n.call(i(t),e)}},f1b0:function(t,e,o){"use strict";o("37cd")},f2bf:function(t,e,o){var i=o("f498"),n=o("7526"),a=i.document,r=n(a)&&n(a.createElement);t.exports=function(t){return r?a.createElement(t):{}}},f2f0:function(t,e,o){var i=o("a8a1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("34cb2813",i,!0,{sourceMap:!1,shadowMode:!1})},f39e:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-create-button{position:relative}.dito-create-button .dito-pulldown{right:0}",""]),t.exports=e},f498:function(t,e,o){(function(e){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,o("7d15"))},f4aa:function(t,e,o){"use strict";o("e84a")},f8bd:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-panel{margin-bottom:16px}.dito-panel .dito-panel-title{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding:3px 6px;background:#e0e0e0;border:1px solid #c7c7c7;border-top-left-radius:4px;border-top-right-radius:4px}.dito-panel .dito-panel-schema{font-size:11px;background:#ededed;border:1px solid #c7c7c7;border-top:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.dito-panel .dito-panel-schema>.dito-schema-content{padding:3px 6px}.dito-panel .dito-panel-schema>.dito-schema-content>.dito-buttons{--button-margin:6px;padding:3px 0}.dito-panel .dito-panel-schema .dito-object{border:0;padding:0}.dito-panel .dito-panel-schema .dito-label{margin:0}.dito-panel .dito-panel-schema .dito-label label{font-weight:400}.dito-panel .dito-panel-schema .dito-components{margin:0 -3px}.dito-panel .dito-panel-schema .dito-component-container{padding:3px}",""]),t.exports=e},fa4f:function(t,e,o){var i=o("3eeb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("9d67ebee",i,!0,{sourceMap:!1,shadowMode:!1})},fb0b:function(t,e,o){"use strict";o("2969")},fc34:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-table-head{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-table-head tr th{padding:0;font-weight:400;text-align:left;white-space:nowrap}.dito-table-head tr th .dito-button{padding:0;width:100%;text-align:inherit;border-radius:0}.dito-table-head tr th span{display:inline-block;padding:3px 6px}.dito-table-head tr th span:empty:after{content:" "}.dito-table-head tr th>span{display:block}',""]),t.exports=e},fd70:function(t,e,o){"use strict";o("57c3")},fe6f:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:48px;height:35px;background:#fff;display:block}.multiselect__spinner:after,.multiselect__spinner:before{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border:2px solid transparent;border-top-color:#41b883;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{-webkit-animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__spinner:after{-webkit-animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input:-ms-input-placeholder{color:#35495e}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:normal;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\D7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#369a6e}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{min-height:40px;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;border-radius:5px;border:1px solid #e8e8e8}.multiselect__current,.multiselect__select{line-height:16px;box-sizing:border-box;display:block;margin:0;text-decoration:none;cursor:pointer}.multiselect__select{position:absolute;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;text-align:center;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 0;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{right:auto;left:1px}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{right:auto;left:0}[dir=rtl] .multiselect__clear{right:auto;left:12px}[dir=rtl] .multiselect__spinner{right:auto;left:1px}@-webkit-keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}',""]),t.exports=e},feca:function(t,e,o){var i=o("083f"),n=o("cfd1");t.exports=function(t){var e=i(t,"string");return n(e)?e:String(e)}},ff0e:function(t,e,o){"use strict";o("3d3b")},ffa8:function(t,e){t.exports=v}})}));
4
+ `))}const{$schema:a,...r}=o||{};return a===(null==(e=this.schemaComponent)?void 0:e.schema.name)?r:null},async checkClipboard(){this.copyEnabled=!!this.data,this.pasteEnabled=!!await this.getClipboardData(!1)},async onCopy(){var t;let e=null==(t=this.schemaComponent)?void 0:t.clipboardData;try{e=e&&this.copyData(e),this.appState.clipboardData=e;try{var o;const t=JSON.stringify(e,null,2);await(null==(o=navigator.clipboard)||null==o.writeText?void 0:o.writeText(t)),await this.checkClipboard()}catch(i){console.error(i,i.name,i.message)}}catch(n){console.error(n),alert(n.message)}},async onPaste(){let t=await this.getClipboardData(!0);try{t=t&&this.pasteData(t),t&&this.schemaComponent.setData(t)}catch(e){console.error(e),alert(e.message)}}}}),Ei=Di,$i=Ee(Ei,Pi,Si,!1,null,null,null),Mi=($i.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-form dito-scroll-parent",class:{"dito-form-nested":t.isNestedRoute}},[t.isLastUnnestedRoute||t.isNestedRoute?t._e():o("router-view",{directives:[{name:"show",rawName:"v-show",value:!t.isActive,expression:"!isActive"}]}),o(t.isNestedRoute?"div":"form",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],tag:"component",staticClass:"dito-scroll",on:{submit:function(t){t.preventDefault()}}},[o("dito-schema",{attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,disabled:t.isLoading,menuHeader:!0}},[o("dito-buttons",{staticClass:"dito-buttons-round dito-buttons-main dito-buttons-large",attrs:{slot:"buttons",buttons:t.buttonSchemas,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,disabled:t.isLoading},slot:"buttons"})],1)],1)],1)}),Bi=[],Vi={data(){return{isLoading:!1}},methods:{setLoading(t,{updateRoot:e=!1,updateView:o=!1}={}){!this.isLoading^!t&&(this.isLoading=!!t,e&&this.rootComponent.registerLoading(t),o&&this.viewComponent.setLoading(this.isLoading))}}},Li={mixins:[Po,Vi],provide(){return{$resourceComponent:()=>this,$verbs:()=>this.verbs,$isPopulated:()=>this.hasData}},data(){return{loadedData:null}},computed:{resourceComponent(){return this},resource(){return this.getResource()},providesData(){return!!this.resource},linksToView(){return!1},isTransient(){const t=this.formComponent;return!this.providesData&&!this.linksToView||t&&(t.isTransient||t.isCreating)},transientNote(){return this.isTransient&&"<b>Note</b>: the parent still needs to be saved in order to persist this change."},shouldLoad(){return!this.isTransient&&!this.isLoading},hasData(){return!!this.loadedData},verbs(){return this.getVerbs()},paginationRange(){const{paginate:t}=this.sourceSchema;if(this.isListSource&&t){const{page:e=0}=this.query||{},o=e*t;return[o,o+t-1]}},queryParams(){const t=this.paginationRange,{page:e,...o}=this.query||{};return{...o,...t&&{range:t.join(",")}}}},created(){(this.providesData||this.isCreating)&&this.setupData()},methods:{getResource(){var t,e,o;return X(null==(t=this.sourceSchema)?void 0:t.resource,{type:"collection",parent:null!=(e=null==(o=this.parentFormComponent)?void 0:o.resource)?e:null})},getVerbs(){const t=this.$verbs();return this.isTransient?{...t,create:"add",created:"added",save:"apply",saved:"applied",delete:"remove",deleted:"removed"}:t},clearData(){this.loadedData=null},setData(t){this.loadedData=t},setupData(){this.ensureData()},ensureData(){this.shouldLoad&&(this.hasData?this.reloadData():this.loadData(!0))},reloadData(){this.loadData(!1)},loadData(t){this.isTransient||(t&&this.clearData(),this.requestData())},createData(t,e){return ee(t,e?{type:e}:{},this)},requestData(){const t=this.queryParams;this.handleRequest({method:"get",params:t},(t,e)=>{if(t){if(e){var o;const{data:t}=e;if("FilterValidation"===(null==t?void 0:t.type)&&null!=(o=this.onFilterErrors)&&o.call(this,t.errors))return!0;if(this.isUnauthorizedError(e))return!0}}else this.setData(e.data),this.emitSchemaEvent("load")})},isValidationError(t){return 400===(null==t?void 0:t.status)},isUnauthorizedError(t){return 401===(null==t?void 0:t.status)},async handleRequest({method:t,resource:e=this.resource,data:o,params:i},n){const a={updateRoot:!0,updateView:this.isInView};this.setLoading(!0,a);const r={method:t,resource:e,data:o,params:i};try{const t=await this.sendRequest(r);n(null,t)}catch(s){const{response:t}=s;if(!n(s,t)){const e=null==t?void 0:t.data;e&&Object(y["isString"])(e.type)?this.notify({type:"error",title:Object(y["labelize"])(e.type),text:e.message||s}):this.notify({type:"error",title:"Request Error",text:s})}}this.setLoading(!1,a)},getPayloadData(t,e){return["post","patch"].includes(e)&&(t.getSchemaValue(["resource","data"])||t.processedItem)},async submit(t){const e=X(t.schema.resource,{parent:this.resource});if(e){const{method:o}=e,i=this.getPayloadData(t,o);return this.submitResource(t,e,o,i)}return!1},async submitResource(t,e,o,i,{setData:n=!1,onSuccess:a,onError:r,notifySuccess:s=(()=>this.notify({type:"success",title:"Request Successful",text:"Request was successfully sent."})),notifyError:l=(t=>this.notify({type:"error",title:"Request Error",text:["Unable to send request"+(t?":":""),(null==t?void 0:t.message)||t]}))}={}){return new Promise(d=>{this.handleRequest({method:o,data:i,resource:e},async(e,o)=>{const i=null==o?void 0:o.data;if(e){const n=this.isValidationError(o)&&i.errors;if(n)await this.showValidationErrors(n,!0);else{const o=Object(y["isObject"])(i)?i:e;null==r||r(o),await this.emitButtonEvent(t,"error",{notify:l,error:o})}d(!1)}else n&&i&&this.setData(i),null==a||a(),await this.emitButtonEvent(t,"success",{notify:s}),d(!0)})})},async emitButtonEvent(t,e,{notify:o,error:i}){const n=new q(t,{nested:!1,data:this.data,itemLabel:this.itemLabel,error:i}),a=await t.emitEvent(e,{context:n});return o&&void 0===a&&!n.wasNotified&&o(i),a}}},Fi=we.component("dito-form",{mixins:[Pe,Li],data(){return{createdData:null,clonedData:void 0,sourceKey:null,isForm:!0}},computed:{verbs(){const t=this.getVerbs(),{isCreating:e,providesData:o}=this;return{...t,submit:e?t.create:t.save,submitted:e?t.created:t.saved,cancel:o?t.cancel:t.close,cancelled:o?t.cancelled:t.closed}},schema(){return this.getItemFormSchema(this.sourceSchema,this.data||{type:this.type},this.context)||{}},buttonSchemas(){return se(Object(y["merge"])({cancel:{type:"button",events:{click:()=>this.cancel()}},submit:!this.doesMutate&&{type:"submit",closeForm:!0,events:{click:({component:t})=>t.submit()}}},this.schema.buttons))},isActive(){return this.isLastRoute||this.isLastUnnestedRoute},isTransient(){return!this.providesData},isCreating(){return"create"===this.param},isDirty(){var t;return!this.doesMutate&&!(null==(t=this.mainSchemaComponent)||!t.isDirty)},selectedTab(){var t;return(null==(t=this.mainSchemaComponent)?void 0:t.selectedTab)||null},doesMutate(){return this.sourceSchema.mutate},type(){return this.$route.query.type},itemId(){var t;return this.isCreating?null:null!=(t=this.param)?t:null},method(){return this.isCreating?"post":"patch"},resource(){const t=this.getResource();return Z(this.itemId,t)||t},breadcrumbPrefix(){return Object(y["capitalize"])(this.isCreating?this.verbs.create:this.verbs.edit)},data(){return this.createdData||this.loadedData||this.inheritedData||null},dataPath(){return this.getDataPathFrom(this.dataComponent)},sourceData(){let{data:t}=this.parentRouteComponent;if(t){const e=Object(y["parseDataPath"])(this.getDataPathFrom(this.parentRouteComponent)),o=this.routeRecord.path.split("/"),i=o.slice(o.length-e.length);this.sourceKey=null;const n=e[e.length-1];me(this.sourceSchema)&&"create"===n&&e.length--;for(let a=0,r=e.length;a<r&&t;a++){const o=e[a],n=/^:id/.test(i[a])?"create"===o?null:this.findItemIdIndex(this.sourceSchema,t,o):o;a===r-1?this.sourceKey=n:t=t[n]}}return t},inheritedData(){if(this.isTransient&&void 0===this.clonedData&&this.sourceData&&null!==this.sourceKey){let t=this.sourceData[this.sourceKey];return this.doesMutate||(this.clonedData=t=Object(y["clone"])(t)),null===t&&!this.isCreating&&me(this.sourceSchema)&&this.$router.push({path:"create",append:!0}),t}return this.clonedData},hasData(){return!!this.data},itemLabel(){return this.getItemLabel(this.sourceSchema,this.data,{extended:!0})}},watch:{sourceData:"clearClonedData",create:"setupData"},methods:{emitSchemaEvent(t,e){return this.mainSchemaComponent.emitEvent(t,e)},getDataPathFrom(t){return this.api.denormalizePath(this.path.slice((t.isView?0:t.path.length)+1))},setupData(){this.isCreating?this.createdData=this.createdData||this.createData(this.schema,this.type):this.ensureData()},setSourceData(t){if(this.sourceData&&null!==this.sourceKey){const{mainSchemaComponent:e}=this;return this.$set(this.sourceData,this.sourceKey,e.filterData(t)),e.onChange(),!0}return!1},addSourceData(t){var e;return me(this.sourceSchema)?this.setSourceData(t):!(null==(e=this.sourceData)||!e.push(t))},clearData(){this.setData(null)},setData(t){this.isTransient?this.setSourceData(t):(this.createdData=null,this.loadedData=t)},clearClonedData(t,e){t!==e&&(this.clonedData=void 0)},async cancel(){return this.close()},async close(){return this.navigate(this.parentRouteComponent.path)},getSubmitVerb(t=!0){return this.isCreating?t?"create":"created":t?"submit":"submitted"},async submit(t,{validate:e=!0,closeForm:o=!1}={}){if(e&&!this.validateAll())return!1;const i=t=>this.verbs[this.getSubmitVerb(t)],n=X(t.schema.resource,{parent:this.resource}),a=n||this.resource,r=(null==a?void 0:a.method)||this.method,s=this.getPayloadData(t,r);let l;if(l=!n&&this.isTransient?await this.submitTransient(t,a,r,s,{onSuccess:()=>this.emitSchemaEvent(this.getSubmitVerb()),onError:t=>this.emitSchemaEvent("error",{context:{error:t}}),notifySuccess:()=>{const t=i(!1);this.notify({type:"info",title:this.isCreating?"Item "+Object(y["capitalize"])(t):"Change "+Object(y["capitalize"])(t),text:[this.isCreating?`${this.itemLabel} was ${t}.`:`Changes to ${this.itemLabel} were ${t}.`,this.transientNote]})},notifyError:()=>{const t=i(!0);this.notify({type:"error",title:"Request Error",text:`Unable to ${t} ${this.itemLabel}.`})}}):await this.submitResource(t,a,r,s,{setData:!0,onSuccess:()=>this.emitSchemaEvent(this.getSubmitVerb()),onError:t=>this.emitSchemaEvent("error",{context:{error:t}}),notifySuccess:()=>{const t=i(!1);this.notify({type:"success",title:"Successfully "+Object(y["capitalize"])(t),text:`${this.itemLabel} was ${t}.`})},notifyError:t=>{const e=i(!0);this.notify({type:"error",title:"Request Error",text:[`Unable to ${e} ${this.itemLabel}${t?":":""}`,(null==t?void 0:t.message)||t]})}}),l)if(this.resetValidation(),o||t.closeForm)this.close();else if(this.isCreating){const t=this.getItemId(this.schema,this.data);this.$router.replace({path:"../"+t,append:!0})}return l},async submitTransient(t,e,o,i,{onSuccess:n,onError:a,notifySuccess:r,notifyError:s}){const l=this.isCreating?this.addSourceData(i):this.setSourceData(i);if(l)null==n||n(),await this.emitButtonEvent(t,"success",{notify:r});else{const e="Could not submit transient item";null==a||a(e),await this.emitButtonEvent(t,"error",{notify:s,error:e})}return l}}}),Ri=Fi,qi=Ee(Ri,Mi,Bi,!1,null,null,null),zi=qi.exports,Ti=zi.component("dito-form-nested",{}),Ii=Ti,Ai=(o("0d98"),Ee(Ii,Uo,Ho,!1,null,null,null)),Ni=(Ai.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.errors?o("div",{staticClass:"dito-errors"},[o("ul",t._l(t.errors,(function(e){return o("li",[t._v(t._s(e))])})),0)]):t._e()}),Ui=[],Hi=we.component("dito-errors",{props:{errors:{type:Array,default:null}}}),Wi=Hi,Ki=(o("491f"),Ee(Wi,Ni,Ui,!1,null,null,null)),Yi=(Ki.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-scopes"},t._l(t.scopes,(function(e,i){return o("router-link",{key:i,attrs:{to:t.getScopeLink(e),custom:""},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.navigate;return[o("button",{staticClass:"dito-button",class:{"dito-selected":e.name===t.query.scope},attrs:{type:"button",title:e.hint||t.getLabel(e)},on:{click:n}},[t._v(t._s(t.getLabel(e)))])]}}],null,!0)})})),1)}),Gi=[],Ji=we.component("dito-scopes",{props:{query:{type:Object,required:!0},scopes:{type:Object,required:!0}},methods:{getScopeLink(t){const e={...this.query,scope:t.name};return e.page&&(e.page=0),this.getQueryLink(e)}}}),Qi=Ji,Xi=(o("f1b0"),Ee(Qi,Yi,Gi,!1,null,null,null)),Zi=(Xi.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("pagination",{attrs:{pageSize:t.limit,total:t.total,page:t.page},on:{"update:page":function(e){t.page=e}}})}),tn=[],en=we.component("dito-pagination",{components:{Pagination:Be["Pagination"]},props:{query:{type:Object,required:!0},limit:{type:Number,required:!0},total:{type:Number,required:!0}},computed:{page:{get(){return(+this.query.page||0)+1},set(t){this.page!==t&&this.$router.push(this.getQueryLink({...this.query,page:t-1}))}}}}),on=en,nn=Ee(on,Zi,tn,!1,null,null,null),an=(nn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tree-item",class:{"dito-dragging":t.dragging,"dito-active":t.active},style:t.level>0&&{"--level":t.level},attrs:{id:t.dataPath}},[t.label?o("div",{staticClass:"dito-tree-header"},[t.numEntries?o("div",{staticClass:"dito-tree-branch",on:{click:function(e){e.stopPropagation(),t.opened=!t.opened}}},[t.numEntries?o("div",{staticClass:"dito-chevron",class:{"dito-opened":t.opened}}):t._e(),o("div",{staticClass:"dito-tree-label",domProps:{innerHTML:t._s(t.label)}}),t.details?o("div",{staticClass:"dito-tree-info"},[t._v(t._s(t.details))]):t._e()]):o("div",{staticClass:"dito-tree-leaf"},[o("div",{staticClass:"dito-tree-label",domProps:{innerHTML:t._s(t.label)}})]),t.hasEditButtons?o("div",{staticClass:"dito-buttons dito-buttons-small"},[t.draggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.editable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:t.onEdit}},"button",t.getButtonAttributes(t.verbs.edit),!1)):t._e(),t.deletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:t.onDelete}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()]):t._e()]):t._e(),t.properties?o("table",{directives:[{name:"show",rawName:"v-show",value:t.opened,expression:"opened"}],staticClass:"dito-properties"},t._l(t.properties,(function(e){return o("tr",[o("td",[!1!==e.label?o("dito-label",{attrs:{dataPath:t.getPropertyDataPath(e),label:t.getLabel(e)}}):t._e()],1),o("dito-table-cell",{attrs:{cell:e,schema:e,dataPath:t.getPropertyDataPath(e),data:t.data,meta:t.nestedMeta,store:t.store,disabled:t.disabled}})],1)})),0):t._e(),t.childrenSchema?o("vue-draggable",t._b({directives:[{name:"show",rawName:"v-show",value:t.opened,expression:"opened"}],attrs:{list:t.updateOrder(t.childrenSchema,t.childrenList)},on:{start:t.onStartDrag,end:function(e){return t.onEndDrag(e,t.childrenSchema)}}},"vue-draggable",t.getDragOptions(t.childrenDraggable,!0),!1),t._l(t.childrenItems,(function(e,i){return o("dito-tree-item",{key:t.getItemUid(t.childrenSchema,e.data),attrs:{schema:t.childrenSchema,dataPath:t.getItemDataPath(t.childrenSchema,i),data:e.data,path:e.path,open:e.open,active:e.active,draggable:t.childrenDraggable,label:t.getItemLabel(t.childrenSchema,e.data,{index:i}),level:t.level+1}})})),1):t._e()],1)}),rn=[],sn=o("289a"),ln=o.n(sn),dn={mixins:[Po],data(){return{dragging:!1}},methods:{onStartDrag(){this.dragging=!0},onEndDrag({oldIndex:t,newIndex:e}){this.dragging=!1,t!==e&&this.onChange()},updateOrder(t,e,o){const{orderKey:i}=t;if(i){const t=(null==o?void 0:o[0])||0;for(let o=0;o<e.length;o++)e[o][i]=o+t}return e}}},cn=we.component("dito-tree-item",{components:{VueDraggable:ln.a},mixins:[dn],inject:["container"],props:{schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:[Array,Object],default:null},path:{type:String,default:""},open:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},label:{type:String,default:null},level:{type:Number,default:0}},data(){return{opened:this.open||this.schema.open}},computed:{meta(){return this.container.meta},store(){return this.container.store},disabled(){return this.container.disabled},nestedMeta(){return{...this.meta,schema:this.schema}},properties(){return re(this.schema.properties)},childrenSchema(){return this.schema.children},childrenList(){var t;const e=null==(t=this.childrenSchema)?void 0:t.name;return e&&this.data[e]},childrenDraggable(){var t;return(null==(t=this.childrenList)?void 0:t.length)>1&&this.getSchemaValue("draggable",{type:Boolean,default:!1,schema:this.childrenSchema})},numChildren(){var t;return(null==(t=this.childrenList)?void 0:t.length)||0},numProperties(){var t;return(null==(t=this.properties)?void 0:t.length)||0},numEntries(){return this.numProperties+this.numChildren},childrenItems(){const{childrenSchema:t}=this;if(t){var e;const{editPath:o}=this.container,i=!this.path&&t.open;return(null==(e=this.childrenList)?void 0:e.map((e,n)=>{const a=t.path&&`${this.path}/${t.path}/${n}`,r=i||o.startsWith(a)&&a.length<o.length,s=o===a;return{data:e,path:a,open:r,active:s}}))||[]}},details(){const{numChildren:t}=this;return t&&`${t} ${1===t?"item":"items"}`},hasEditButtons(){return this.draggable||this.editable||this.deletable},creatable:gt("creatable",{type:Boolean,default:!1,get(t){return t&&Tt(this.schema)}}),editable:gt("editable",{type:Boolean,default:!1,get(t){return t&&Tt(this.schema)}}),deletable:gt("deletable",{type:Boolean,default:!1})},methods:{getPropertyDataPath(t){return x(this.dataPath,t.name)},onEdit(){this.$router.push({path:`${this.container.path}${this.path}`,query:this.$route.query})},onDelete(){},onChange(){this.container.onChange()}}}),un=cn,pn=(o("af74"),Ee(un,an,rn,!1,null,null,null)),hn=(pn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("thead",{staticClass:"dito-table-head"},[o("tr",[t._l(t.columns,(function(e,i){return o("th",{class:t.getColumnClass(e)},[e.sortable?o("router-link",{attrs:{to:t.getSortLink(e),custom:""},scopedSlots:t._u([{key:"default",fn:function(i){var n=i.navigate;return[o("button",{staticClass:"dito-button",class:t.getSortClass(e),attrs:{type:"button"},on:{click:n}},[o("div",{staticClass:"dito-order-arrows"}),o("span",[t._v(t._s(t.getLabel(e)))])])]}}],null,!0)}):o("span",[t._v(t._s(t.getLabel(e)))])],1)})),t.hasEditButtons?o("th",[o("span")]):t._e()],2)])}),mn=[],bn=we.component("dito-table-head",{props:{query:{type:Object,required:!0},columns:{type:Object,required:!0},hasEditButtons:{type:Boolean,required:!0}},computed:{sort(){const t=(this.query.order||"").split(/\s+/);return{name:t[0],order:t[1]}}},methods:{getColumnClass(t){return"dito-column-"+Object(y["hyphenate"])(t.name)},getSortClass(t){return this.sort.name===t.name?"dito-selected dito-order-"+this.sort.order:null},getSortLink(t){const e=this.sort.name===t.name&&"asc"===this.sort.order?"desc":"asc";return this.getQueryLink({...this.query,order:`${t.name} ${e}`})}}}),fn=bn,gn=(o("f4aa"),Ee(fn,hn,mn,!1,null,null,null)),vn=(gn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("td",{class:t.cell.class,style:t.cell.style},[t.component?o(t.component,{tag:"component",attrs:{schema:t.schema,dataPath:t.dataPath,data:t.data,meta:t.meta,store:t.store,nested:t.nested,disabled:t.disabled}}):o("span",{domProps:{innerHTML:t._s(t.renderCell(t.data))}})],1)}),yn=[],xn=we.component("dito-table-cell",{props:{cell:{type:Object,required:!0},schema:{type:Object,required:!0},dataPath:{type:String,required:!0},data:{type:Object,required:!0},meta:{type:Object,required:!0},store:{type:Object,required:!0},nested:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},computed:{component(){return this.resolveTypeComponent(this.cell.component)}},methods:{renderCell(t){const{name:e,render:o}=this.cell,i=t[e];return o?o.call(this,new q(this,{name:e,value:i,data:t,dataPath:x(this.dataPath,e)})):Object(y["escapeHtml"])(i)}}}),wn=xn,_n=Ee(wn,vn,yn,!1,null,null,null),kn=(_n.exports,we.component("dito-vnode",{functional:!0,render:(t,e)=>e.props.node})),Cn=kn,On=Ee(Cn,Wo,Ko,!1,null,null,null),jn=(On.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",t._g(t._b({ref:"element",staticClass:"dito-button",class:"dito-button-"+t.verb,attrs:{id:t.dataPath,type:t.type,title:t.text}},"button",t.attributes,!1),t.listeners),[t._v(t._s(t.text))])}),Pn=[];const Sn=we.extend({mixins:[ve],nativeField:!1,textField:!1,defaultValue:null,defaultNested:!0,defaultVisible:!0,generateLabel:!0,excludeValue:!1,ignoreMissingValue:null,omitPadding:!1});Sn.register=function(t,e={}){t=Object(y["asArray"])(t);const o=this.component("dito-type-"+t[0],e);for(const i of t)jt(i,o);return o},Sn.get=Pt;var Dn=Sn,En=Dn.register(["button","submit"],{defaultValue:()=>{},excludeValue:!0,defaultWidth:"auto",computed:{verb(){return this.verbs[this.name]||this.name},text:gt("text",{type:String,get(t){return t||Object(y["labelize"])(this.verb)}}),closeForm:gt("closeForm",{type:Boolean,default:!1})},methods:{getListeners(){return{focus:this.onFocus,blur:this.onBlur,click:this.onClick}},async submit(t){var e;return null==(e=this.resourceComponent)?void 0:e.submit(this,t)},async onClick(){const t=await this.emitEvent("click",{parent:this.schemaComponent});void 0===t&&Q(this.schema)&&await this.submit()}}}),$n=En,Mn=Ee($n,jn,Pn,!1,null,null,null),Bn=(Mn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"element",staticClass:"dito-checkbox",attrs:{id:t.dataPath,type:"checkbox"},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{change:function(e){var o=t.value,i=e.target,n=!!i.checked;if(Array.isArray(o)){var a=null,r=t._i(o,a);i.checked?r<0&&(t.value=o.concat([a])):r>-1&&(t.value=o.slice(0,r).concat(o.slice(r+1)))}else t.value=n}}},"input",t.attributes,!1),t.listeners))}),Vn=[],Ln=Dn.register("checkbox",{nativeField:!0}),Fn=Ln,Rn=(o("1b9a"),Ee(Fn,Bn,Vn,!1,null,null,null)),qn=(Rn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",{staticClass:"dito-checkboxes",class:"dito-layout-"+(t.schema.layout||"vertical"),attrs:{id:t.dataPath}},t._l(t.options,(function(e){return o("li",[o("label",[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedOptions,expression:"selectedOptions"}],ref:"element",refInFor:!0,staticClass:"dito-checkbox",attrs:{type:"checkbox"},domProps:{value:t.getValueForOption(e),checked:Array.isArray(t.selectedOptions)?t._i(t.selectedOptions,t.getValueForOption(e))>-1:t.selectedOptions},on:{change:function(o){var i=t.selectedOptions,n=o.target,a=!!n.checked;if(Array.isArray(i)){var r=t.getValueForOption(e),s=t._i(i,r);n.checked?s<0&&(t.selectedOptions=i.concat([r])):s>-1&&(t.selectedOptions=i.slice(0,s).concat(i.slice(s+1)))}else t.selectedOptions=a}}},"input",t.attributes,!1),t.listeners)),t._v(t._s(t.getLabelForOption(e)))])])})),0)}),zn=[],Tn={mixins:[Vi],data(){return{isLoading:!1,asyncDataEntries:{}}},methods:{handleDataSchema(t,e,{resolveCounter:o=1,...i}={}){var n;Object(y["isObject"])(t)||(t={data:t});let{data:a,dataPath:r=null}=t;const s=this.asyncDataEntries[e]||this.$set(this.asyncDataEntries,e,{dependencyFunction:null,resolveCounter:0,resolvedData:null,resolving:!1});if(null==(n=s.dependencyFunction)||n.call(this,this.context),s.resolveCounter>0){const{resolvedData:t}=s;return 0===--s.resolveCounter&&(s.resolvedData=null),t}if(s.resolving)a=null;else if(a){if(Object(y["isFunction"])(a)){const t=a.call(this,this.context);Object(y["isFunction"])(t)?(s.dependencyFunction=a,a=t.call(this,this.context)):a=t}Object(y["isPromise"])(a)&&(s.resolving=!0,this.resolveData(a,i).then(t=>{s.resolveCounter=o,s.resolvedData=t,s.resolving=!1}),a=null)}else r&&(a=Object(y["getValueAtDataPath"])(this.rootData,Object(y["normalizeDataPath"])(`${this.dataPath}/${r}`)));return a},async resolveData(t,e={}){this.setLoading(!0,e);let o=null;try{o=await(Object(y["isFunction"])(t)?t():t)}catch(i){this.addError(i.message||i)}return this.setLoading(!1,e),o}}},In={mixins:[Tn],data(){return{hasOptions:!1}},computed:{selectedValue:{get(){const t=t=>this.relate?this.hasOption(t)?this.getValueForOption(t):null:t,e=Object(y["isArray"])(this.value)?this.value.map(t).filter(t=>null!==t):t(this.value);return this.relate&&this.hasOptions&&(null===e&&null!==this.value||V(this.value))&&(this.selectedValue=e),e},set(t){const e=t=>this.relate?this.getOptionForValue(t):t;this.value=Object(y["isArray"])(t)?t.map(e):e(t)}},selectedOption(){return this.getOptionForValue(this.selectedValue)},options(){var t;const e=null!=(t=this.handleDataSchema(this.schema.options,"options",{resolveCounter:1}))?t:[];if(!Object(y["isArray"])(e))throw new Error("Invalid options data, should be array: "+e);return this.hasOptions=e.length>0,this.processOptions(e)},activeOptions(){return this.options},relate:gt("relate",{type:Boolean,default:!1,callback:!1}),groupBy:gt("groupBy",{type:String,default:null}),optionLabel:gt("options.label",{type:[String,Function],default:null,get(t){return t||this.getOptionKey("label")||null}}),optionValue:gt("options.value",{type:[String,Function],default:null,get(t){return t||this.relate&&"id"||this.getOptionKey("value")||null}}),searchFilter:gt("search",{type:[Object,Function],default:null,get(t){if(t){const{filter:e,debounce:o}=Object(y["isFunction"])(t)?{filter:t}:t;return o?Object(y["debounceAsync"])(e,o):e}}}),groupByLabel(){return this.groupBy?"label":null},groupByOptions(){return this.groupBy?"options":null}},methods:{getOptionKey(t){const[e]=this.activeOptions;return Object(y["isObject"])(e)&&t in e?t:null},processOptions(t){if(t.length){if(this.relate)for(const e of t)"id"in e||M(e,"id");if(this.groupBy){const e={};t=t.reduce((t,o)=>{const i=o[this.groupBy];let n=e[i];return n||(n=e[i]={[this.groupByLabel]:i,[this.groupByOptions]:[]},t.push(n)),n.options.push(o),t},[])}}return t},hasOption(t){return!!this.getOptionForValue(this.getValueForOption(t))},getOptionForValue(t){const e=(t,o,i)=>{for(const n of t)if(i){const t=e(n.options,o,null);if(t)return t}else if(o===this.getValueForOption(n))return n};return this.optionValue?e(this.activeOptions,t,this.groupBy):t},getValueForOption(t){const{optionValue:e}=this;return Object(y["isString"])(e)?null==t?void 0:t[e]:Object(y["isFunction"])(e)?e.call(this,new q(this,{option:t})):t},getLabelForOption(t){const{optionLabel:e}=this;return Object(y["isString"])(e)?null==t?void 0:t[e]:Object(y["isFunction"])(e)?e.call(this,new q(this,{option:t})):Object(y["labelize"])(""+t)}},processValue(t,e,o,i){if(t.relate){var n;const a=null==(n=t.options)?void 0:n.dataPath,r=a?Object(y["normalizeDataPath"])(`${o}/${a}`):null;i.addRelation(o,r,t),r&&i.setSourceRelated(r);const s=t=>t?{id:t.id}:t;e=Object(y["isArray"])(e)?e.map(s):s(e)}return e}},An=Dn.register("checkboxes",{mixins:[In],nativeField:!0,defaultValue:[],computed:{selectedOptions:{get(){return(this.selectedValue||[]).filter(t=>t)},set(t){this.selectedValue=t||[]}}}}),Nn=An,Un=(o("d10f"),Ee(Nn,qn,zn,!1,null,null,null)),Hn=(Un.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"code",staticClass:"dito-code",style:t.style,attrs:{id:t.dataPath}})}),Wn=[],Kn=o("1f57"),Yn=o.n(Kn),Gn=Dn.register("code",{mixins:[Ve],computed:{lines(){return this.schema.lines||3},style(){return`height: calc(${this.lines}em * var(--line-height))`}},mounted(){const t=new Yn.a(this.$refs.code,{language:this.schema.language||"javascript",tabSize:this.schema.indentSize||2,lineNumbers:!1});let e=!1,o=!1,i=!1;const n=()=>{!this.focused&&e&&(e=!1,this.onChange())},a=()=>this.onFocus(),r=()=>{this.onBlur(),n()};this.domOn(this.$refs.code.querySelector("textarea"),{focus:a,blur:r});const s=e=>{e!==t.code&&(i=!0,t.updateCode(e))},l=t=>{t!==this.value&&(o=!0,this.value=t,e=!0,n())};t.onUpdate(t=>{i?i=!1:l(t)}),this.$watch("value",t=>{o?o=!1:s(t||"")}),s(this.value||"")},methods:{focusElement(){var t;null==(t=this.$el.querySelector("textarea"))||t.focus()}}}),Jn=Gn,Qn=(o("184f"),Ee(Jn,Hn,Wn,!1,null,null,null)),Xn=(Qn.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("trigger",{staticClass:"dito-color",attrs:{trigger:"click",show:t.showPopup},on:{"update:show":function(e){t.showPopup=e}}},[o("div",{staticClass:"dito-input",class:{"dito-focus":t.showPopup},attrs:{slot:"trigger"},slot:"trigger"},[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.hexValue,expression:"hexValue"}],ref:"element",attrs:{id:t.dataPath,type:"input",size:"8"},domProps:{value:t.hexValue},on:{input:function(e){e.target.composing||(t.hexValue=e.target.value)}}},"input",t.attributes,!1),t.listeners)),t.value?o("div",{staticClass:"dito-color-preview dito-inherit-focus"},[o("div",{style:{background:"#"+(t.hexValue||"00000000")}})]):t._e(),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}}):t._e()]),o("sketch-picker",{staticClass:"dito-color-picker",attrs:{slot:"popup","disable-alpha":!t.alpha,"disable-fields":!t.inputs,"preset-colors":t.presets},slot:"popup",model:{value:t.colorValue,callback:function(e){t.colorValue=e},expression:"colorValue"}})],1)}),Zn=[],ta=o("4d89"),ea=o.n(ta),oa=o("a672"),ia=Dn.register("color",{components:{Trigger:Be["Trigger"],SketchPicker:oa["Sketch"]},data(){return{showPopup:!1,convertedHexValue:null}},computed:{colorValue:{get(){return this.value||{}},set(t){const e=this.colorFormat,o={hex:(null==t?void 0:t.a)<1?"hex8":"hex",rgb:"rgba"}[e]||e;this.value=o?t[o]:ea()(t).toString(e)}},hexValue:{get(){if(null==this.value)this.convertedHexValue=null;else if(!this.focused){const t=ea()(this.value);t.isValid()&&(this.convertedHexValue=t.toString(t.getAlpha()<1?"hex8":"hex6").slice(1).toUpperCase())}return this.convertedHexValue},set(t){this.convertedHexValue=t}},colorFormat:gt("format",{type:String,default:"hex"}),alpha:gt("alpha",{type:Boolean,default:!1}),inputs:gt("inputs",{type:Boolean,default:!0}),presets:gt("presets",{type:Array,default:["#ffffff","#c3c3c3","#7f7f7f","#000000","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4","#b97a57","#ffaec9","#ffc90e","#00000000"]})},watch:{focused(t){if(!t&&this.convertedHexValue){const t=ea()("#"+this.convertedHexValue);null!=t&&t.isValid()&&(this.value=t.toString(this.colorFormat),this.onChange())}}}}),na=ia,aa=(o("a94f"),Ee(na,Xn,Zn,!1,null,null,null)),ra=(aa.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(t.component,t._b({tag:"component"},"component",t.$props,!1))}),sa=[],la=Dn.register("component",{defaultValue:()=>{},ignoreMissingValue:t=>!("default"in t)}),da=la,ca=Ee(da,ra,sa,!1,null,null,null),ua=(ca.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input",{ref:"element",staticClass:"dito-text dito-input",attrs:{id:t.dataPath,name:t.name,type:"text",disabled:t.disabled,readonly:!0},domProps:{value:t.value}})}),pa=[],ha=Dn.register(["computed","data","hidden"],{mixins:[Tn],defaultValue:()=>{},defaultVisible:!1,computed:{value:{get(){const{schema:t}=this;if(t.data||t.dataPath){const e=this.handleDataSchema(t,"schema",{resolveCounter:2});this.$set(this.data,this.name,e)}return ve.computed.value.get.call(this)},set(t){ve.computed.value.set.call(this,t)}}}}),ma=ha,ba=Ee(ma,ua,pa,!1,null,null,null),fa=(ba.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-date"},[o(t.getComponent(t.type),t._g(t._b({ref:"element",tag:"component",attrs:{id:t.dataPath,locale:t.locale,dateFormat:Object.assign({},t.api.formats.date,t.dateFormat)},model:{value:t.dateValue,callback:function(e){t.dateValue=e},expression:"dateValue"}},"component",t.attributes,!1),t.listeners))],1)}),ga=[],va=Dn.register(["date","datetime","time"],{components:{DatePicker:Be["DatePicker"],TimePicker:Be["TimePicker"],DateTimePicker:Be["DateTimePicker"]},nativeField:!0,textField:!0,computed:{dateValue:{get(){const{value:t}=this;return t?new Date(t):t},set(t){this.value=t}},dateFormat:gt("dateFormat",{type:Object,default:null})},methods:{getComponent(t){return{date:"date-picker",time:"time-picker",datetime:"date-time-picker"}[t]}},processValue(t,e){return Object(y["isDate"])(e)?e.toISOString():e}}),ya=va,xa=Ee(ya,fa,ga,!1,null,null,null),wa=(xa.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isReady?o("div",{staticClass:"dito-list",class:t.schema.class,style:t.schema.style,attrs:{id:t.dataPath}},[o("div",{staticClass:"dito-navigation"},[t.scopes?o("dito-scopes",{attrs:{query:t.query,scopes:t.scopes}}):t.paginate?o("div",{staticClass:"dito-spacer"}):t._e(),t.paginate?o("dito-pagination",{attrs:{query:t.query,limit:t.paginate,total:t.total||0}}):t._e()],1),o("table",{staticClass:"dito-table",class:{"dito-table-separators":t.isInlined,"dito-table-larger-padding":t.hasEditButtons&&!t.isInlined,"dito-table-alternate-colors":!t.isInlined,"dito-table-even-count":t.hasEvenCount}},[t.columns?o("dito-table-head",{attrs:{query:t.query,columns:t.columns,hasEditButtons:t.hasEditButtons}}):t._e(),o("vue-draggable",t._b({attrs:{tag:"tbody",list:t.updateOrder(t.sourceSchema,t.listData,t.paginationRange)},on:{start:t.onStartDrag,end:t.onEndDrag}},"vue-draggable",t.getDragOptions(t.draggable),!1),t._l(t.listData,(function(e,i){return o("tr",{key:t.getItemUid(t.schema,e),attrs:{id:t.getDataPath(i)}},[t.columns?t._l(t.columns,(function(n){return o("dito-table-cell",{key:n.name,class:t.getCellClass(n),attrs:{cell:n,schema:t.schema,dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.store,nested:!1,disabled:t.disabled||t.isLoading}})})):[o("td",[t.isInlined?o("dito-schema-inlined",{attrs:{label:t.getItemLabel(t.schema,e,{index:i,asObject:!0}),schema:t.getItemFormSchema(t.schema,e,t.context),dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.getChildStore(i),disabled:t.disabled||t.isLoading,collapsed:t.collapsed,collapsible:t.collapsible,deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.getEditPath(e,i)},on:{delete:function(o){return t.deleteItem(e,i)}}}):t.component?o(t.component,{tag:"component",attrs:{dataPath:t.getDataPath(i),data:e,nested:!1}}):t.render?o("span",{domProps:{innerHTML:t._s(t.render(t.getContext(e,i)))}}):o("span",{domProps:{innerHTML:t._s(t.getItemLabel(t.schema,e,{index:i}))}})],1)],t.hasCellEditButtons?o("td",{staticClass:"dito-cell-edit-buttons"},[o("dito-edit-buttons",{attrs:{deletable:t.deletable,draggable:t.draggable,editable:t.editable,editPath:t.getEditPath(e,i),schema:t.getItemFormSchema(t.schema,e,t.context),dataPath:t.getDataPath(i),data:e,meta:t.nestedMeta,store:t.getChildStore(i)},on:{delete:function(o){return t.deleteItem(e,i)}}})],1):t._e()],2)})),0),t.hasListButtons&&!t.single?o("tfoot",[o("tr",[o("td",{staticClass:"dito-cell-edit-buttons",attrs:{colspan:t.numColumns}},[o("dito-edit-buttons",{attrs:{creatable:t.creatable,createPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.listData,meta:t.meta,store:t.store}})],1)])]):t._e()],1),t.hasListButtons&&t.single?o("dito-edit-buttons",{staticClass:"dito-buttons-main dito-buttons-large",attrs:{creatable:t.creatable,createPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.listData,meta:t.meta,store:t.store}}):t._e()],1):t._e()}),_a=[],ka={mixins:[Li,Oe],defaultValue(t){return be(t)?[]:null},provide(){return{$sourceComponent:()=>this}},data(){return{wrappedPrimitives:null,unwrappingPrimitives:!1,ignoreRouteChange:!1}},computed:{sourceComponent(){return this},isObjectSource(){return me(this.type)},isListSource(){return be(this.type)},hasData(){return!!this.value},isReady(){return this.hasData||!this.providesData},isInView(){return!!this.viewComponent},wrapPrimitives(){return this.schema.wrapPrimitives},listData:{get(){let t=this.value;t=this.isObjectSource?null!=t?[t]:[]:this.unwrapListData(t)||t,t=t||[];const{wrapPrimitives:e}=this;return e?(this.unwrappingPrimitives?this.unwrappingPrimitives=!1:this.wrappedPrimitives=t.map(t=>({[e]:t})),this.wrappedPrimitives):t},set(t){this.wrapPrimitives?this.wrappedPrimitives=t:this.value=this.isObjectSource?t&&t.length>0?t[0]:null:t}},objectData:{get(){return this.listData[0]||null},set(t){this.listData=t?[t]:[]}},sourceSchema(){return this.schema},path(){return this.routeComponent.getChildPath(this.schema.path)},defaultQuery(){const{defaultOrder:t}=this;return t?{order:t}:{}},query:vt("query",{get(t){return{...this.defaultQuery,...t}},set(t){var e;const{scope:o=(null==(e=this.defaultScope)?void 0:e.name),page:i=this.schema.page}=this.query;return t={...this.query,...null!=o&&{scope:o},...null!=i&&{page:i},...t},Object(y["equals"])(t,this.$route.query)||(this.ignoreRouteChange=!0,this.$router.replace({query:t,hash:this.$route.hash})),t}}),total:vt("total"),columns(){return re(this.schema.columns)},scopes(){return re(this.schema.scopes)},defaultScope(){if(this.scopes){let t=null;for(const e of Object.values(this.scopes)){if(e.defaultScope)return e;t||(t=e)}return t}},defaultOrder(){if(this.columns)for(const t of Object.values(this.columns)){const{defaultSort:e}=t;if(e){const o=Object(y["isString"])(e)?e:"asc";return`${t.name} ${o}`}}},nestedMeta(){return{...this.meta,schema:this.schema}},forms(){return Object.values(Ut(this.schema,this.context))},view(){return At(this.schema,this.context)},linksToView(){return!!this.view},buttonSchemas(){return se(this.schema.buttons)},hasLabels(){return this.forms.some(te)},isCompact(){return this.forms.every(Yt)},isInlined(){return Gt(this.schema)},paginate:gt("paginate",{type:Number}),render:gt("render",{type:Function,default:null}),creatable:gt("creatable",{type:Boolean,default:!1,get(t){return!(!t||!Tt(this.schema))&&(!this.isObjectSource||!this.value)}}),editable:gt("editable",{type:Boolean,default:!1,get(t){return t&&!this.isInlined}}),deletable:gt("deletable",{type:Boolean,default:!1}),draggable:gt("draggable",{type:Boolean,default:!1,get(t){return this.isListSource&&this.listData.length>1&&t}}),collapsible:gt("collapsible",{type:Boolean,default:null,get(t){return this.isInlined&&!!(null!=t?t:null!==this.collapsed)}}),collapsed:gt("collapsed",{type:Boolean,default:null})},watch:{$route(t,e){this.ignoreRouteChange?this.ignoreRouteChange=!1:e.path===t.path&&e.hash===t.hash&&(this.query=t.query,this.loadData(!1))},wrappedPrimitives:{deep:!0,handler(t,e){const{wrapPrimitives:o}=this;o&&null!==e&&(this.unwrappingPrimitives=!0,this.value=t.map(t=>t[o]))}}},methods:{setupData(){this.query=this.$route.query,this.ensureData()},clearData(){this.total=0,this.value=null},setData(t){!t||this.isListSource&&Object(y["isArray"])(t)||this.isObjectSource&&Object(y["isObject"])(t)?this.value=t:this.unwrapListData(t)||Object(y["isObject"])(t)&&this.isInView&&this.viewComponent.setData(t)},unwrapListData(t){if(this.isListSource&&Object(y["isObject"])(t)&&Object(y["isNumber"])(t.total)&&Object(y["isArray"])(t.results))return this.total=t.total,this.value=t.results,this.value},createItem(t,e){const o=this.createData(t,e);return this.isObjectSource?this.objectData=o:this.listData.push(o),this.collapsible&&this.$nextTick(()=>this.openSchemaComponent(-1)),this.onChange(),o},removeItem(t){if(this.isObjectSource)this.objectData=null,this.onChange();else{const{listData:e}=this,o=e&&e.indexOf(t);o>=0&&(e.splice(o,1),this.onChange())}},deleteItem(t,e){const o=t&&this.getItemLabel(this.schema,t,{index:e,extended:!0}),i=()=>this.notify({type:this.isTransient?"info":"success",title:"Successfully Removed",text:[`${o} was ${this.verbs.deleted}.`,this.transientNote]});if(t&&window.confirm(`Do you really want to ${this.verbs.delete} ${o}?`))if(this.isTransient)this.removeItem(t),i();else{const e=this.getItemId(this.schema,t),o=Z(e,this.resource);o&&this.handleRequest({method:"delete",resource:o},e=>{e||(this.removeItem(t),i()),this.reloadData()})}},getSchemaComponent(t){const{schemaComponents:e}=this,{length:o}=e;return e[(t%o+o)%o]},openSchemaComponent(t){const e=this.getSchemaComponent(t);e&&(e.opened=!0)},async navigateToComponent(t,e){if(this.collapsible){var o;const n=t.startsWith(this.dataPath)?this.isListSource?null!=(o=Object(y["parseDataPath"])(t.slice(this.dataPath.length+1))[0])?o:null:0:null;if(null!==n&&Object(y["isNumber"])(+n)){const o=this.getSchemaComponent(+n);if(o){var i;const{opened:n}=o;n||(o.opened=!0,await this.$nextTick());const a=o.getComponentsByDataPath(t);if(a.length>0&&(null==(i=null==e?void 0:e(a))||i))return!0;o.opened=n}}}return this.navigateToRouteComponent(t,e)},navigateToRouteComponent(t,e){return new Promise((o,i)=>{const n=()=>{var t;const{routeComponents:i}=this.appState,n=i[i.length-1];o(null==(t=null==e?void 0:e([n]))||t)},a=Object(y["parseDataPath"])(t);while(a.length>0){const t=this.routeComponent.getChildPath(this.api.normalizePath(Object(y["normalizeDataPath"])(a))),{matched:e}=this.$router.match(t);e.length&&(this.$route.path===t?n():this.$router.push({path:t},()=>this.$nextTick(n),i)),a.pop()}o(!1)})}},async processSchema(t,e,o,i,n,a=!1,r=!1,s=null){Vt(t,e,o);const l=Gt(e);if(l&&e.resource)throw new Error("Lists with nested forms cannot load data from their own resources");const d="id"+(n+1),c={api:t,schema:e},u={...c,flatten:r,nested:a,param:d},p=await Ft(t,e,n);if(s&&await s(p,n+1),Tt(e)&&!l){const t=(t,e)=>e?t?`${t}/:${e}`:":"+e:t,o=0===n?"":e.path,s={path:t(o,be(e)&&d),component:we.component(a?"dito-form-nested":"dito-form"),meta:u};me(e)&&i.push({...s,path:t(o,d)}),o&&i.push({path:o,redirect:".",meta:c});const[l,h]=p.reduce((t,e)=>(t[e.meta.flatten?0:1].push(e),t),[[],[]]);if(h.length&&(s.children=h),i.push(s),l.length)for(const e of l)i.push({...e.redirect?e:s,path:`${s.path}/${e.path}`,meta:{...e.meta,flatten:r}})}},processValue(t,e,o,i){return i.addSource(o,t),e}};const Ca={text(t){const e=[{label:"contains",value:"contains"},{label:"equals",value:"equals"},{label:"starts with",value:"starts-with"},{label:"ends with",value:"ends-with"}];return{operator:t.operators?{type:"select",options:Object(y["isArray"])(t.operators)?e.filter(e=>t.operators.includes(e.value)):e,width:"40%"}:null,text:{type:"text",width:t.operators?"60%":"fill"}}},"date-range"(){const t={day:"2-digit",month:"2-digit",year:"numeric"};return{from:{type:"datetime",width:"50%",dateFormat:t},to:{type:"datetime",width:"50%",dateFormat:t}}}};function Oa(t,e,o){const i={label:"Filters",name:"$filters",target:e,disabled:!1,data(){return Da(i,o.query)},components:ja(t),buttons:{clear:{text:"Clear",events:{click({schemaComponent:t}){t.resetData(),t.applyFilters()}}},filter:{type:"submit",text:"Filter",events:{click({schemaComponent:t}){t.applyFilters()}}}},methods:{applyFilters(){o.query={...o.query,filter:Sa(this.schema,this.data),page:void 0}}}};return i}function ja(t){const e={};for(const i of Object.values(t||{})){var o;const{filter:t,...n}=i,a=t?null==(o=Ca[t])?void 0:o.call(Ca,i):i.components;if(!a)throw new Error(`Invalid filter '${i.name}': Unknown filter type '${t}'.`);n.components={};for(const[e,o]of Object.entries(a))if(o){const t=o.label||Object(y["labelize"])(o.name||e);n.components[e]={...o,label:!1,placeholder:t}}e[i.name]={label:n.label,type:"object",default:()=>({}),form:n,inlined:!0}}return e}function Pa(t,e){var o;const i=t.components[e];return null==i||null==(o=i.form)?void 0:o.components}function Sa(t,e){const o=[];for(const i in e){const n=e[i];if(n){const e=Object.keys(Pa(t,i)).map(t=>{var e;return null!=(e=n[t])?e:null});e.some(t=>null!==t)&&o.push(`${i}:${e.map(JSON.stringify).join(",")}`)}}return o.length?o:void 0}function Da(t,e){const o={};if(e)for(const a of Object(y["asArray"])(e.filter)){const[,t,e]=a.match(/^(\w+):(.*)$/);try{o[t]=Object(y["asArray"])(JSON.parse(`[${e}]`))}catch(n){}}const i={};for(const a in t.components){const e={},n=o[a];if(n){const o=Pa(t,a);if(o){let t=0;for(const i in o)e[i]=n[t++]}}i[a]=e}return i}var Ea=Dn.register("list",{components:{VueDraggable:ln.a},mixins:[ka,dn],getSourceType(t){return t},getPanelSchema(t,e,o){const{filters:i}=t;if(i){const t=()=>o.getComponentByDataPath(e,t=>"list"===t.type);return Oa(re(i),e,{get query(){var e;return null==(e=t())?void 0:e.query},set query(e){const o=t();if(o){const t=t=>Object(y["pickBy"])(t,t=>void 0!==t);Object(y["equals"])(t(e),t(o.query))||(o.query=e,o.loadData(!1))}}})}},computed:{hasListButtons(){return!(!this.buttonSchemas&&!this.creatable)},hasEditButtons(){const{listData:t}=this;return t.length>0&&(this.editable||this.deletable||this.draggable)},hasCellEditButtons(){return!this.isInlined&&this.hasEditButtons},hasEvenCount(){return!(this.listData.length%2)},numColumns(){return(this.columns?Object.keys(this.columns).length:1)+(this.hasCellEditButtons?1:0)}},methods:{getDataPath(t){return x(this.dataPath,t)},getEditPath(t,e){if(this.editable){const o=Nt(this.schema,this.context)||this.path,i=this.getItemId(this.schema,t,e);return`${o}/${i}`}return null},getCellClass(t){return"dito-cell-"+Object(y["hyphenate"])(t.name)},getContext(t,e){return new q(this,{data:t,value:t,index:e,dataPath:this.getDataPath(e)})},onFilterErrors(t){const e=x(this.dataPath,"$filters"),o=this.schemaComponent.getPanelByDataPath(e);if(o)return o.showValidationErrors(t,!0),!0}}}),$a=Ea,Ma=(o("a466"),Ee($a,wa,_a,!1,null,null,null)),Ba=(Ma.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("dito-label",{staticClass:"dito-label-component",attrs:{label:t.value,dataPath:t.dataPath}})}),Va=[],La=Dn.register("label",{generateLabel:!1}),Fa=La,Ra=(o("6a1c"),Ee(Fa,Ba,Va,!1,null,null,null)),qa=(Ra.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-markup",attrs:{id:t.dataPath}},[o("editor-menu-bar",{staticClass:"dito-markup-toolbar",attrs:{editor:t.editor}},[t.groupedButtons.length>0?o("div",{staticClass:"dito-buttons dito-buttons-toolbar"},t._l(t.groupedButtons,(function(e){return o("div",{staticClass:"dito-button-group"},t._l(e,(function(t){t.name;var e=t.icon,i=t.isActive,n=t.onClick;return o("button",{staticClass:"dito-button",class:{"dito-active":i},on:{click:n}},[o("icon",{attrs:{name:e}})],1)})),0)})),0):t._e()]),o("editor-content",{ref:"editor",staticClass:"dito-markup-editor",style:t.styles,attrs:{editor:t.editor}}),t.resizable?o("div",{staticClass:"dito-resize",on:{mousedown:function(e){return e.stopPropagation(),e.preventDefault(),t.onDragResize.apply(null,arguments)}}}):t._e()],1)}),za=[],Ta=o("916c"),Ia=o("23df"),Aa=o("e326"),Na=Dn.register("markup",{components:{EditorContent:Ta["EditorContent"],EditorMenuBar:Ta["EditorMenuBar"],Icon:Be["Icon"]},mixins:[Ve],data(){return{editor:null,height:null}},computed:{lines(){return this.schema.lines||10},styles(){return{height:this.height||`calc(${this.lines}em * var(--line-height))`}},markButtons(){return this.getButtons("marks",{bold:!0,italic:!0,underline:!0,strike:!0,small:!0,code:!0,link:{onClick:t=>this.onClickLink(t)}})},basicNodeButtons(){return this.getButtons("nodes",{paragraph:{ignoreActive:()=>this.otherNodeButtons.some(t=>t.isActive)},heading:{attr:"level",values:[1,2,3,4,5,6]}})},otherNodeButtons(){return this.getButtons("nodes",{bulletList:!0,orderedList:!0,blockquote:!0,codeBlock:!0})},toolButtons(){return this.getButtons("tools",{undo:!0,redo:!0})},groupedButtons(){const{markButtons:t,basicNodeButtons:e,otherNodeButtons:o,toolButtons:i}=this;return[t,e,o,i].filter(t=>t.length>0)},parseOptions(){return{preserveWhitespace:{collapse:!1,preserve:!0,"preserve-all":"full"}[this.whitespace]}},editorOptions(){return{editable:!this.readyonly,autoFocus:this.autofocus,disableInputRules:!this.enableRules.input,disablePasteRules:!this.enableRules.paste,parseOptions:this.parseOptions}},resizable:gt("resizable",{type:Boolean,default:!1}),whitespace:gt("whitespace",{type:String,default:"collapse"}),enableRules:gt("enableRules",{type:[Object,Boolean],default:!1,get(t){return Object(y["isObject"])(t)?t:{input:!!t,paste:!!t}}})},watch:{readyonly:"updateEditorOptions",autofocus:"updateEditorOptions",enableRules:"updateEditorOptions"},created(){let t=!1,e=!1;const o=()=>{!this.focused&&t&&(t=!1,this.onChange())},i=()=>this.onFocus(),n=()=>{this.onBlur(),o()},a=Object(y["debounce"])(i=>{e=!0,this.value=i(),t=!0,o()},100),r=({getHTML:t})=>{a(t),this.onInput()};this.$watch("value",t=>{e?e=!1:this.editor.setContent(t,!1,this.parseOptions)}),this.editor=new Ta["Editor"]({...this.editorOptions,onFocus:i,onBlur:n,onUpdate:r,extensions:this.createExtensions(),content:this.value||""})},beforeDestroy(){this.editor.destroy()},methods:{onDragResize(t){const e=({clientX:t,clientY:e})=>({x:t,y:e});let o=e(t).y,i=parseFloat(getComputedStyle(this.$refs.editor.$el).height);const n=t=>{const{y:n}=e(t);i+=n-o,o=n,this.height=Math.max(i,0)+"px"},a=this.domOn(document,{mousemove:n,mouseup(t){n(t),a.remove()}})},updateEditorOptions(){this.editor.setOptions(this.editorOptions)},async onClickLink(t){const e=await this.showDialog({components:{href:{type:"url",label:"Link",autofocus:!0},title:{type:"text",label:"Title"}},buttons:{cancel:{},apply:{type:"submit"},remove:{events:{click({dialogComponent:t}){t.resolve({href:null,title:null})}}}},data:this.editor.getMarkAttrs("link")});if(e){let{href:i,title:n}=e;if(i)try{new URL(i)}catch(o){i="http://"+i}t({href:i,title:n})}},createExtensions(){const{marks:t={},nodes:e={},tools:o={}}=this.schema;return[t.bold&&new Aa["Bold"],t.italic&&new Aa["Italic"],t.underline&&new Aa["Underline"],t.strike&&new Aa["Strike"],t.small&&new Ua,t.code&&new Aa["Code"],t.link&&new Ha,e.blockquote&&new Aa["Blockquote"],e.codeBlock&&new Aa["CodeBlock"],new Aa["HardBreak"],e.heading&&new Aa["Heading"]({levels:e.heading}),e.horizontalRule&&new Aa["HorizontalRule"],(e.orderedList||e.bulletList)&&new Aa["ListItem"],e.bulletList&&new Aa["BulletList"],e.orderedList&&new Aa["OrderedList"],o.history&&new Aa["History"]].filter(t=>!!t)},getButtons(t,e){const o=[],i=({name:t,icon:e,attrs:i,ignoreActive:n,onClick:a})=>{const r=this.editor.isActive[t],s=this.editor.commands[t];o.push({name:t,icon:e,isActive:(null==r?void 0:r(i))&&(null==n||!n()),onClick:()=>a?a(s,i):s(i)})},n=this.schema[t];if(n)for(const[a,r]of Object.entries(e)){const t=["undo","redo"].includes(a)?"history":a,e=n[t],o=Object(y["underscore"])(a),s=Object(y["hyphenate"])(a);if(e)if(!0===r)i({name:o,icon:s});else if(Object(y["isObject"])(r)){const{attr:t,values:n,ignoreActive:a,onClick:l}=r;if(t){if(Object(y["isArray"])(n)&&Object(y["isArray"])(e))for(const r of n)e.includes(r)&&i({name:o,icon:`${s}-${r}`,attrs:{[t]:r},ignoreActive:a,onClick:l})}else i({name:o,icon:s,ignoreActive:a,onClick:l})}}return o},focusElement(){var t,e;null==(t=(e=this.$el).scrollIntoView)||t.call(e),this.editor.focus()}}});class Ua extends Ta["Mark"]{get name(){return"small"}get schema(){return{parseDOM:[{tag:"small"}],toDOM:()=>["small",0]}}commands({type:t}){return()=>Object(Ia["toggleMark"])(t)}}class Ha extends Aa["Link"]{get schema(){return{attrs:{href:{default:null},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a",getAttrs:t=>({href:t.getAttribute("href"),title:t.getAttribute("title")})}],toDOM:t=>["a",t.attrs,0]}}}var Wa,Ka,Ya=Na,Ga=(o("7507"),Ee(Ya,qa,za,!1,null,null,null)),Ja=(Ga.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-multiselect",class:{"dito-multiselect-single":!t.multiple,"dito-multiselect-multiple":t.multiple}},[o("vue-multiselect",t._g(t._b({ref:"element",attrs:{"show-labels":!1,placeholder:t.placeholder,"tag-placeholder":"Press enter to add new tag",options:t.populate&&t.activeOptions||[],"custom-label":t.getLabelForOption,"track-by":t.optionValue,"group-label":t.groupByLabel,"group-values":t.groupByOptions,multiple:t.multiple,taggable:t.taggable,searchable:t.searchable,"internal-search":!t.searchFilter,"preserve-search":!!t.searchFilter,"clear-on-select":!t.searchFilter,"close-on-select":!t.stayOpen,loading:t.isLoading},on:{open:function(e){t.populate=!0},tag:t.onAddTag,"search-change":t.onSearchChange},model:{value:t.selectedOptions,callback:function(e){t.selectedOptions=e},expression:"selectedOptions"}},"vue-multiselect",t.attributes,!1),t.listeners)),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:t.clear}}):t._e()],1)}),Qa=[],Xa=o("6c45"),Za=o.n(Xa),tr=(o("7a87"),Dn.register("multiselect",{components:{VueMultiselect:Za.a},mixins:[In],data(){return{searchedOptions:null,populate:!1}},computed:{selectedOptions:{get(){return this.multiple?(this.selectedValue||[]).map(t=>this.getOptionForValue(t)||this.addTagOption(t)).filter(t=>t):this.selectedOption},set(t){this.selectedValue=this.multiple?(t||[]).map(t=>this.getValueForOption(t)):this.getValueForOption(t)}},activeOptions(){return this.searchedOptions||this.options},multiple:gt("multiple",{type:Boolean,default:!1}),searchable:gt("searchable",{type:Boolean,default:!1}),taggable:gt("taggable",{type:Boolean,default:!1}),stayOpen:gt("stayOpen",{type:Boolean,default:!1}),placeholder(){const{placeholder:t,searchable:e,taggable:o}=this.schema;return t||(e&&o?"Search or add a tag":e?"Select or search entry":void 0)}},mounted(){this.autofocus&&this.focus()},methods:{getListeners(){return{focus:this.onFocus,blur:this.onBlur,input:this.onChange}},addTagOption(t){if(this.taggable){const{optionLabel:e,optionValue:o}=this,i=e&&o?{[e]:t,[o]:t}:t;return this.options.push(i),i}},focusElement(){this.$refs.element.activate()},onAddTag(t){const e=this.addTagOption(t);e&&this.value.push(this.getValueForOption(e))},async onSearchChange(t){this.searchFilter&&(t?(this.searchedOptions=[],this.searchedOptions=await this.resolveData(()=>this.searchFilter(new q(this,{query:t})))):this.searchedOptions=null)}}})),er=tr,or=(o("8386"),Ee(er,Ja,Qa,!1,null,null,null)),ir=(or.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input-field",t._g(t._b({ref:"element",staticClass:"dito-number",attrs:{id:t.dataPath,type:"number",min:t.min,max:t.max,step:t.stepValue},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners))}),nr=[],ar={computed:{inputValue:{get(){return null!==this.value?this.value:""},set(t){this.value=""!==t?this.isInteger?parseInt(t,10):parseFloat(t):null}},isInteger(){return!1},stepValue(){return null!=this.step||this.isInteger?this.step:"any"},decimals:gt("decimals",{type:Number}),step:gt("step",{type:Number,get(t){return this.isInteger&&null!=t?Math.ceil(t):t}}),min:gt("min",{type:Number,get(t){var e;return t=void 0===t?null==(e=this.getSchemaValue("range",{type:Array}))?void 0:e[0]:t,this.isInteger&&null!=t?Math.floor(t):t}}),max:gt("max",{type:Number,get(t){var e;return t=void 0===t?null==(e=this.getSchemaValue("range",{type:Array}))?void 0:e[1]:t,this.isInteger&&null!=t?Math.ceil(t):t}}),range:gt("range",{type:Array,get(){const{min:t,max:e}=this;return null!=t&&null!=e?[t,e]:void 0},set(t){Object(y["isArray"])(t)&&([this.min,this.max]=t)}})},methods:{getValidations(){const t={},{range:e,min:o,max:i,decimals:n,step:a}=this;if(e?t.range=e:(null!=o&&(t.min=o),null!=i&&(t.max=i)),null!=n)t.decimals=n;else if(a){const e=((""+a).split(".")[1]||"").length;e>0?t.decimals=e:t.integer=!0}return this.isInteger&&(t.integer=!0),t}}},rr=Dn.register(["number","integer"],{components:{InputField:Be["InputField"]},mixins:[ar],nativeField:!0,textField:!0,computed:{isInteger(){return"integer"===this.type}}}),sr=rr,lr=(o("710d"),Ee(sr,ir,nr,!1,null,null,null)),dr=(lr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.isReady?o("div",{staticClass:"dito-object",class:t.schema.class,style:t.schema.style,attrs:{id:t.dataPath}},[t.objectData?o("div",{staticClass:"dito-object-content"},[t.isInlined?o("dito-schema-inlined",{attrs:{schema:t.getItemFormSchema(t.schema,t.objectData,t.context),dataPath:t.dataPath,data:t.objectData,meta:t.nestedMeta,store:t.store,disabled:t.disabled||t.isLoading,collapsed:t.collapsed,collapsible:t.collapsible}}):t.component?o(t.component,{tag:"component",attrs:{dataPath:t.dataPath,data:t.objectData,nested:!1}}):t.render?o("span",{domProps:{innerHTML:t._s(t.render(t.getContext()))}}):o("span",{domProps:{innerHTML:t._s(t.getItemLabel(t.schema,t.objectData))}})],1):t._e(),o("dito-edit-buttons",{attrs:{creatable:t.creatable,deletable:t.objectData&&t.deletable,editable:t.objectData&&t.editable,createPath:t.path,editPath:t.path,buttons:t.buttonSchemas,schema:t.schema,dataPath:t.dataPath,data:t.objectData,path:t.path,meta:t.meta,store:t.store},on:{delete:function(e){return t.deleteItem(t.objectData)}}})],1):t._e()}),cr=[],ur=Dn.register("object",{mixins:[ka],getSourceType(t){return t},methods:{getContext(){return new q(this,{data:this.objectData})}}}),pr=ur,hr=(o("d20f"),Ee(pr,dr,cr,!1,null,null,null)),mr=(hr.exports,Dn.register("panel",{defaultValue:()=>{},excludeValue:!0,generateLabel:!1,omitPadding:!0,getPanelSchema(t){const{name:e,...o}=t;return o}})),br=mr,fr=Ee(br,Wa,Ka,!1,null,null,null),gr=(fr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("progress",t._g(t._b({ref:"element",staticClass:"dito-progress",attrs:{id:t.dataPath,max:t.progressMax},domProps:{value:t.progressValue}},"progress",t.attributes,!1),t.listeners))}),vr=[],yr=Dn.register("progress",{mixins:[ar],computed:{progressValue(){let{value:t,range:e,step:o}=this;return null!==t?(e&&(t-=e[0]),o&&(t=Math.round(t/o)*o)):t="",t},progressMax(){const{range:t}=this;if(t)return t[1]-t[0]}}}),xr=yr,wr=Ee(xr,gr,vr,!1,null,null,null),_r=(wr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",{staticClass:"dito-radio-buttons",class:"dito-layout-"+(t.schema.layout||"vertical"),attrs:{id:t.dataPath}},t._l(t.options,(function(e){return o("li",[o("label",[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],ref:"element",refInFor:!0,staticClass:"dito-radio-button",attrs:{type:"radio"},domProps:{value:t.getValueForOption(e),checked:t._q(t.selectedValue,t.getValueForOption(e))},on:{change:function(o){t.selectedValue=t.getValueForOption(e)}}},"input",t.attributes,!1),t.listeners)),t._v(t._s(t.getLabelForOption(e)))])])})),0)}),kr=[],Cr=Dn.register("radio",{mixins:[In],nativeField:!0}),Or=Cr,jr=(o("a8c9"),Ee(Or,_r,kr,!1,null,null,null)),Pr=(jr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-section",class:{"dito-section-labelled":!!t.schema.label}},[o("dito-pane",{staticClass:"dito-section-pane",attrs:{schema:t.getItemFormSchema(t.schema,t.item,t.context),dataPath:t.dataPath,data:t.item,meta:t.meta,store:t.store,disabled:t.disabled}})],1)}),Sr=[],Dr=Dn.register("section",{defaultValue:()=>{},ignoreMissingValue:t=>!t.nested&&!("default"in t),defaultNested:!1,generateLabel:!1,omitFlexGrow:!0,computed:{item(){return this.nested?this.value:this.data}},methods:{getItemFormSchema:Wt}}),Er=Dr,$r=(o("94f5"),Ee(Er,Pr,Sr,!1,null,null,null)),Mr=($r.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-select"},[o("select",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],ref:"element",attrs:{id:t.dataPath},on:{mousedown:function(e){t.populate=!0},focus:function(e){t.populate=!0},change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedValue=e.target.multiple?o:o[0]}}},"select",t.attributes,!1),t.listeners),[t.populate?[t._l(t.options,(function(e){return[t.groupBy?o("optgroup",{attrs:{label:e[t.groupByLabel]}},t._l(e[t.groupByOptions],(function(e){return o("option",{domProps:{value:t.getValueForOption(e)}},[t._v(t._s(t.getLabelForOption(e)))])})),0):o("option",{domProps:{value:t.getValueForOption(e)}},[t._v(t._s(t.getLabelForOption(e)))])]}))]:t.selectedOption?[o("option",{domProps:{value:t.selectedValue}},[t._v(t._s(t.getLabelForOption(t.selectedOption)))])]:t._e()],2),t.showClearButton?o("button",{staticClass:"dito-button-clear dito-button-overlay",attrs:{disabled:t.disabled},on:{click:t.clear}}):t._e()])}),Br=[],Vr=Dn.register("select",{mixins:[In],nativeField:!0,data(){return{populate:!0}}}),Lr=Vr,Fr=(o("33266"),Ee(Lr,Mr,Br,!1,null,null,null)),Rr=(Fr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-slider"},[o("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"element",staticClass:"dito-range",attrs:{id:t.dataPath,type:"range",min:t.min,max:t.max,step:t.stepValue},domProps:{value:t.inputValue},on:{__r:function(e){t.inputValue=e.target.value}}},"input",t.attributes,!1),t.listeners)),t.input?o("input-field",t._g(t._b({staticClass:"dito-number",attrs:{type:"number",min:t.min,max:t.max,step:t.stepValue},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners)):t._e()],1)}),qr=[],zr=Dn.register("slider",{components:{InputField:Be["InputField"]},mixins:[ar],nativeField:!0,computed:{input:gt("input",{type:Boolean,default:!0})}}),Tr=zr,Ir=(o("ebae"),Ee(Tr,Rr,qr,!1,null,null,null)),Ar=(Ir.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("switch-button",t._g(t._b({ref:"element",staticClass:"dito-switch",attrs:{id:t.dataPath,sync:!0,labels:t.labels},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},"switch-button",t.attributes,!1),t.listeners))}),Nr=[],Ur=Dn.register("switch",{defaultValue:!1,defaultWidth:"auto",components:{SwitchButton:Be["SwitchButton"]},computed:{labels(){return this.schema.labels}}}),Hr=Ur,Wr=(o("1aec"),Ee(Hr,Ar,Nr,!1,null,null,null)),Kr=(Wr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("input-field",t._g(t._b({ref:"element",staticClass:"dito-text",attrs:{id:t.dataPath,type:t.inputType},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},"input-field",t.attributes,!1),t.listeners))}),Yr=[];const Gr="****************";var Jr=Dn.register(["text","email","url","hostname","domain","tel","password","creditcard"],{components:{InputField:Be["InputField"]},nativeField:!0,textField:!0,ignoreMissingValue:t=>"password"===t.type,computed:{inputType(){return{creditcard:"text",hostname:"text",domain:"text"}[this.type]||this.type},inputValue:{get(){return"password"!==this.type||void 0!==this.value||this.focused?this.value:Gr},set(t){this.value=t}}},methods:{getValidations(){const t={email:"email",url:"url",hostname:"hostname",domain:"domain",password:"password",creditcard:"creditcard"}[this.type];return t?{[t]:!0}:{}}}}),Qr=Jr,Xr=Ee(Qr,Kr,Yr,!1,null,null,null),Zr=(Xr.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],ref:"element",staticClass:"dito-textarea dito-input",class:{"dito-resizable":t.resizable},attrs:{id:t.dataPath,rows:t.lines},domProps:{value:t.value},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}},"textarea",t.attributes,!1),t.listeners))}),ts=[],es=Dn.register("textarea",{nativeField:!0,textField:!0,computed:{lines(){return this.schema.lines||4},resizable:gt("resizable",{type:Boolean,default:!1})}}),os=es,is=(o("a8e3"),Ee(os,Zr,ts,!1,null,null,null)),ns=(is.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-tree-list"},[t.scopes?o("dito-scopes",{attrs:{query:t.query,scopes:t.scopes}}):t._e(),o("div",{staticClass:"dito-tree-panel"},[o("dito-tree-item",{attrs:{schema:t.treeSchema,dataPath:t.treeDataPath,data:t.treeData,draggable:t.draggable,open:!0}}),t.hasEditableForms?o("div",{staticClass:"dito-tree-form-container"},[o("router-view")],1):t._e()],1)],1)}),as=[],rs=Dn.register(["tree-list","tree-object"],{mixins:[ka],provide(){return{container:this}},getSourceType(t){return"tree-object"===t?"object":"list"},computed:{path(){var t;return null==(t=this.formComponent)?void 0:t.path},editPath(){var t;return this.$route.path.slice(null==(t=this.path)?void 0:t.length)},treeData(){return this.isListSource?{[this.name]:this.value}:this.value},treeDataPath(){return this.isListSource?this.dataPath.slice(0,this.dataPath.length-this.name.length):this.dataPath},treeSchema(){return this.isListSource?{children:{name:this.name,...this.schema}}:this.schema},hasEditableForms(){const t=e=>Tt(e)&&(this.getSchemaValue("editable",{type:Boolean,default:!1,schema:e})||e.children&&t(e.children));return t(this.schema)}},async processSchema(t,e,o,i,n,a=!0,r=!1,s=null){return ka.processSchema(t,e,o,i,n,a,r,(o,i)=>{const{children:n}=e;if(n)return n.type="tree-list",this.processSchema(t,n,n.name,o,i,a,!0,s)})},getFormSchemasForProcessing(t,e){const{children:o}=t;return Ut(t,e,o?t=>({...t,components:{...t.components,[o.name]:o}}):null)}}),ss=rs,ls=(o("7d86"),Ee(ss,ns,as,!1,null,null,null)),ds=(ls.exports,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"dito-upload"},[o("table",{staticClass:"dito-table dito-table-separators dito-table-background"},[t._m(0),o("vue-draggable",t._b({attrs:{tag:"tbody",list:t.files},on:{start:t.onStartDrag,end:t.onEndDrag}},"vue-draggable",t.getDragOptions(t.draggable),!1),t._l(t.files,(function(e,i){return o("tr",{key:e.key},[o("td",{domProps:{innerHTML:t._s(t.renderFile(e,i))}}),o("td",[t._v(t._s(t._f("formatFileSize")(e.size)))]),o("td",[e.upload?[e.upload.error?[t._v("Error: "+t._s(e.upload.error))]:e.upload.active?[t._v("Uploading...")]:e.upload.success?[t._v("Uploaded")]:t._e()]:[t._v("Stored")]],2),o("td",{staticClass:"dito-cell-edit-buttons"},[o("div",{staticClass:"dito-buttons dito-buttons-round"},[t.draggable?o("a",t._b({staticClass:"dito-button"},"a",t.getButtonAttributes(t.verbs.drag),!1)):t._e(),t.deletable?o("button",t._b({staticClass:"dito-button",attrs:{type:"button"},on:{click:function(o){return t.deleteFile(e,i)}}},"button",t.getButtonAttributes(t.verbs.delete),!1)):t._e()])])])})),0),o("tfoot",[o("tr",[o("td",{attrs:{colspan:4}},[o("div",{staticClass:"dito-upload-footer"},[t.isUploadActive?o("progress",{staticClass:"dito-progress",attrs:{max:"100"},domProps:{value:t.uploadProgress}}):t._e(),o("div",{staticClass:"dito-buttons dito-buttons-round"},[t.isUploadActive?o("button",{staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.upload.active=!1}}},[t._v("Cancel All")]):t.isUploadReady?o("button",{staticClass:"dito-button",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.upload.active=!0}}},[t._v("Upload All")]):t._e(),o("vue-upload",{ref:"upload",staticClass:"dito-button dito-button-add-upload",attrs:{"input-id":t.dataPath,name:t.dataPath,disabled:t.disabled,"post-action":t.uploadPath,extensions:t.extensions,accept:t.accept,multiple:t.multiple,size:t.maxSize,title:"Upload Files"},on:{"input-filter":t.inputFilter,"input-file":t.inputFile},model:{value:t.uploads,callback:function(e){t.uploads=e},expression:"uploads"}})],1)])])])])],1)])}),cs=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("thead",{staticClass:"dito-table-head"},[o("tr",[o("th",[o("span",[t._v("Name")])]),o("th",[o("span",[t._v("Size")])]),o("th",[o("span",[t._v("Status")])]),o("th",[o("span")])])])}],us=o("80d0"),ps=o.n(us),hs=o("9cdb"),ms=o.n(hs),bs=o("ffa8"),fs=o.n(bs);function gs(t){return fs()(t,{base:10})}var vs=Dn.register("upload",{components:{VueUpload:ps.a,VueDraggable:ln.a},filters:{formatFileSize:gs},mixins:[dn],data(){return{uploads:[]}},computed:{upload(){return this.$refs.upload},files(){return ys(this.value)},multiple:gt("multiple",{type:Boolean,default:!1,callback:!1}),extensions:gt("extensions",{type:[Array,String,RegExp]}),accept:gt("accept",{type:Array,get(t){return Object(y["isArray"])(t)?t.join(","):t}}),maxSize:gt("maxSize",{type:[String,Number],get(t){return t?ms()(t):void 0}}),draggable:gt("draggable",{type:Boolean,default:!1,get(t){return t&&this.files.length>1}}),deletable:gt("deletable",{type:Boolean,default:!1}),isUploadReady(){return this.uploads.length&&!(this.upload.active||this.upload.uploaded)},isUploadActive(){return this.uploads.length&&this.upload.active},uploadProgress(){return this.uploads.reduce((t,e)=>t+e.progress,0)/this.uploads.length},uploadPath(){return this.getResourceUrl({type:"upload",path:this.api.normalizePath(this.dataPath)})}},methods:{renderFile(t,e){const{render:o}=this.schema;return o?o.call(this,new q(this,{value:t,data:this.files,index:e,dataPath:x(this.dataPath,e)})):Object(y["escapeHtml"])(t.name)},deleteFile(t,e){const{name:o}=t;t&&window.confirm(`Do you really want to ${this.verbs.remove} ${o}?`)&&(this.multiple?this.value.splice(e,1):this.value=null,t.upload&&this.upload.remove(t.upload),this.onChange(),this.notify({type:"info",title:"Successfully Removed",text:`${o} was ${this.verbs.deleted}.`}))},getFileIndex(t){return this.multiple&&this.value?this.value.findIndex(e=>e.id===t.id):-1},addFile(t){this.multiple?this.value?this.value.push(t):this.value=[t]:this.value=t},replaceFile(t,e){if(this.multiple){const o=this.getFileIndex(t);o>=0&&(e?this.$set(this.value,o,e):this.value.splice(o,1))}else this.value=e},removeFile(t){this.replaceFile(t,null)},inputFile(t,e){if(t&&!e){const{id:e,name:o,size:i}=t;this.addFile({id:e,name:o,size:i,upload:t})}if(t&&e){const{success:e,error:o}=t;if(e){const e=t.response[0];e?(e.upload=t,this.replaceFile(t,e)):this.removeFile(t)}else if(o){const e={abort:"Upload aborted",denied:"Upload denied",extension:"Unsupported file-type: "+t.name,network:"Network error encountered during upload",server:"Server error occurred during upload",size:"File is too large: "+gs(t.size),timeout:"Timeout occurred during upload"}[o]||`Unknown File Upload Error: '${o}'`;this.notify({type:"error",title:"File Upload Error",text:e}),this.removeFile(t)}}},inputFilter(t){var e;const o=null==t?void 0:t.xhr;null!=(e=this.api.cors)&&e.credentials&&o&&!o.withCredentials&&(o.withCredentials=!0)}},processValue(t,e){const o=ys(e).map(({upload:t,...e})=>!t||t.success?e:null).filter(t=>t);return t.multiple?o:o[0]||null}});function ys(t){return t?Object(y["asArray"])(t):[]}var xs=vs,ws=(o("a6de"),Ee(xs,ds,cs,!1,null,null,null)),_s=(ws.exports,["create","created","save","saved","submit","submitted","delete","deleted","edit","edited","close","closed","cancel","cancelled","drag","dragged"].reduce((t,e)=>(t[e]=e,t),{}));s.a.config.productionTip=!1,s.a.use(u.a),s.a.use(d.a,{dynamic:!0}),s.a.use(h.a);class ks{constructor(t,{module:e,dito:o={},api:i,views:n={},...a}={}){var r,l,d;null==e||null==(r=e.hot)||r.accept(),this.el=t,this.api=i=Object(y["merge"])({base:"/"},o.api,i),this.options=a,(l=i).locale||(l.locale="en-US"),i.formats=Object(y["merge"])({},y["defaultFormats"],i.formats),(d=i).request||(d.request=t=>this.request(t)),i.normalizePath=i.normalizePath||i.normalizePaths?y["hyphenate"]:t=>t,i.denormalizePath=i.denormalizePath||i.normalizePaths?y["camelize"]:t=>t;const c=i.users=X(i.users,{type:"collection"})||{};c.login=X(c.login||"login",{method:"post",parent:c}),c.logout=X(c.logout||"logout",{method:"post",parent:c}),c.session=X(c.session||"session",{method:"get",parent:c}),i.resources={any(t){const e=this[null==t?void 0:t.type]||this.default;return t&&e.call(this,t)},default(t){const e=this.any(t.parent);return e?`${e}/${t.path}`:t.path},collection(t){return this.default(t)},member(t){return`${t.path}/${t.id}`},upload(t){return`${this.collection(t.parent)}/upload/${t.path}`},...i.resources},i.headers={"Content-Type":"application/json",...i.headers},i.isApiRequest=i.isApiRequest||function(t){return!Object(y["isAbsoluteUrl"])(t)||t.startsWith(i.url)},Object(y["isString"])(t)&&(t=document.querySelector(t)),this.root=new s.a({el:t,router:new u.a({mode:"history",base:o.base,linkActiveClass:"",linkExactActiveClass:""}),components:{DitoRoot:qe},provide:{api:i,$verbs:()=>_s,$views:()=>{},$isPopulated:()=>!0,$schemaComponent:()=>null,$schemaParentComponent:()=>null,$routeComponent:()=>null,$dataComponent:()=>null,$sourceComponent:()=>null,$resourceComponent:()=>null,$dialogComponent:()=>null,$panelComponent:()=>null,$tabComponent:()=>null},render:e=>e(qe,{attrs:{id:t.id},props:{unresolvedViews:n,options:a}})})}register(t,e){return Dn.register(t,e)}request({url:t,method:e="get",data:o=null,params:i=null,headers:n=null}){var a;const r=this.api.isApiRequest(t);return b.a.request({url:t,method:e,params:i,...o&&{data:o},baseURL:r?this.api.url:null,headers:{...r&&this.api.headers,...n},withCredentials:r&&!(null==(a=this.api.cors)||!a.credentials)})}}e["default"]=ks},"1d8a":function(t,e){var o=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++o+i).toString(36)}},"1f57":function(e,o){e.exports=t},"1f5e":function(t,e,o){var i=o("378c"),n=o("b495"),a=o("9a0f"),r=function(t){return function(e,o,r){var s,l=i(e),d=n(l.length),c=a(r,d);if(t&&o!=o){while(d>c)if(s=l[c++],s!=s)return!0}else for(;d>c;c++)if((t||c in l)&&l[c]===o)return t||c||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},2117:function(t,e,o){var i=o("63d3");t.exports=function(t,e,o){if(i(t),void 0===e)return t;switch(o){case 0:return function(){return t.call(e)};case 1:return function(o){return t.call(e,o)};case 2:return function(o,i){return t.call(e,o,i)};case 3:return function(o,i,n){return t.call(e,o,i,n)}}return function(){return t.apply(e,arguments)}}},2214:function(t,o){t.exports=e},2259:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,"input[type=number]:not([step])::-webkit-inner-spin-button,input[type=number]:not([step])::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",""]),t.exports=e},"23df":function(t,e){t.exports=o},2402:function(t,e){e.f=Object.getOwnPropertySymbols},2653:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{some:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return l(o,(function(t,o){if(i(t,t,e))return o()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},2766:function(t,e,o){var i=o("a8e0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("c7fc901c",i,!0,{sourceMap:!1,shadowMode:!1})},"289a":function(t,e){t.exports=i},2964:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-switch .dito-switch-label{font-size:11px}",""]),t.exports=e},2969:function(t,e,o){var i=o("0635");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("416d665e",i,!0,{sourceMap:!1,shadowMode:!1})},3011:function(t,e,o){var i=o("8b0f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("db2a7566",i,!0,{sourceMap:!1,shadowMode:!1})},"30ad":function(t,e,o){"use strict";o("4047")},3185:function(t,e,o){var i=o("0ebd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("07f681be",i,!0,{sourceMap:!1,shadowMode:!1})},3326:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("bad4"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{join:function(t){var e=a(this),o=r(e),i=void 0===t?",":String(t),n=[];return s(o,n.push,{that:n,IS_ITERATOR:!0}),n.join(i)}})},33266:function(t,e,o){"use strict";o("cdda")},"332c":function(t,e,o){var i=o("4cdd"),n=o("1d8a"),a=i("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},"378c":function(t,e,o){var i=o("83a6"),n=o("730c");t.exports=function(t){return i(n(t))}},"37cd":function(t,e,o){var i=o("7b5f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("3ec82b84",i,!0,{sourceMap:!1,shadowMode:!1})},"37d1":function(t,e,o){var i=o("730c");t.exports=function(t){return Object(i(t))}},"395c":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{intersection:function(t){var e=s(this),o=new(l(e,a("Set"))),i=r(e.has),n=r(o.add);return d(t,(function(t){i.call(e,t)&&n.call(o,t)})),o}})},"3a52":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-code:disabled button,.dito-disabled.dito-code button{opacity:.6;pointer-events:none}.dito-code{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;background:#fff}.dito-has-errors.dito-code{border-color:#ff3860}.dito-code:disabled,.dito-disabled.dito-code{color:grey;pointer-events:none;cursor:text}.dito-code{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-code::-webkit-input-placeholder{color:grey}.dito-code::-moz-placeholder{color:grey}.dito-code::placeholder{color:grey}.dito-code:focus,.dito-code:focus-within,.dito-code:focus-within .dito-inherit-focus,.dito-code:focus .dito-inherit-focus,.dito-focus.dito-code,.dito-focus.dito-code .dito-inherit-focus{border-color:#3898ff}.dito-code{position:relative;padding:3px 6px}.dito-code.dito-width-fill{width:auto}.dito-code .codeflask{background:none;top:0;left:0}.dito-code .codeflask__pre,.dito-code .codeflask__textarea{padding:3px 6px}.dito-code .codeflask__code,.dito-code .codeflask__lines,.dito-code .codeflask__textarea{font-family:Menlo,Consolas,Monaco,Vera Mono,Andale Mono,Ubuntu Mono,monospace;font-size:var(--font-size);line-height:var(--line-height)}.dito-code .codeflask__lines{padding:3px 6px}",""]),t.exports=e},"3ab0":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,"@-webkit-keyframes v-pulseStretchDelay{0%,80%{transform:scale(1);-webkit-opacity:1;opacity:1}45%{transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{transform:scale(1);-webkit-opacity:1;opacity:1}45%{transform:scale(.1);-webkit-opacity:.7;opacity:.7}}",""]),t.exports=e},"3c03":function(t,e,o){var i=o("acde");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("7e85f289",i,!0,{sourceMap:!1,shadowMode:!1})},"3c10":function(t,e,o){"use strict";function i(t,e){var o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"===typeof btoa){var a=n(i),r=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[o].concat(r).concat([a]).join("\n")}return[o].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(o," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o})).join("")},e.i=function(t,o,i){"string"===typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var a=0;a<this.length;a++){var r=this[a][0];null!=r&&(n[r]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&n[l[0]]||(o&&(l[2]?l[2]="".concat(o," and ").concat(l[2]):l[2]=o),e.push(l))}},e}},"3cd4":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-textarea{display:block;resize:none;min-height:calc(1em*var(--line-height) + 6px)}.dito-textarea.dito-resizable{resize:vertical}",""]),t.exports=e},"3ce8":function(t,e){t.exports=function(t){return"function"===typeof t}},"3ceb":function(t,e,o){"use strict";o("03e2")},"3cec":function(t,e,o){var i=o("7d53"),n=i("toStringTag"),a={};a[n]="z",t.exports="[object z]"===String(a)},"3d3b":function(t,e,o){var i=o("eeb2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("a59fd444",i,!0,{sourceMap:!1,shadowMode:!1})},"3d5e":function(t,e,o){var i=o("a1c0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("782188be",i,!0,{sourceMap:!1,shadowMode:!1})},"3e34":function(t,e,o){var i=o("f498");t.exports=function(t,e){try{Object.defineProperty(i,t,{value:e,configurable:!0,writable:!0})}catch(o){i[t]=e}return e}},"3eeb":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-section.dito-section-labelled{border:1px solid #c7c7c7;border-radius:4px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box}",""]),t.exports=e},"3f5a":function(t,e,o){var i=o("63d3"),n=o("157c"),a=o("0446");t.exports=function(t,e){var o=arguments.length<2?a(t):e;if(i(o))return n(o.call(t));throw TypeError(String(t)+" is not iterable")}},"3f64":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("926e");i({target:"WeakMap",proto:!0,real:!0,forced:n},{deleteAll:function(){return a.apply(this,arguments)}})},4047:function(t,e,o){var i=o("3ab0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("f567a61e",i,!0,{sourceMap:!1,shadowMode:!1})},"433a":function(t,e,o){var i=o("157c"),n=o("004f"),a=o("7d53"),r=a("species");t.exports=function(t,e){var o,a=i(t).constructor;return void 0===a||void 0==(o=i(a)[r])?e:n(o)}},"43ad":function(t,e,o){var i=o("e97b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("0de66904",i,!0,{sourceMap:!1,shadowMode:!1})},4555:function(t,e,o){var i=o("3a52");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("598333af",i,!0,{sourceMap:!1,shadowMode:!1})},"45e1":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("2117"),d=o("433a"),c=o("bad4"),u=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{filter:function(t){var e=s(this),o=c(e),i=l(t,arguments.length>1?arguments[1]:void 0,3),n=new(d(e,a("Set"))),p=r(n.add);return u(o,(function(t){i(t,t,e)&&p.call(n,t)}),{IS_ITERATOR:!0}),n}})},4912:function(t,e){t.exports=function(t){try{return String(t)}catch(e){return"Object"}}},"491f":function(t,e,o){"use strict";o("3185")},"4a0f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-label-component{display:-webkit-box;display:flex;height:2em}",""]),t.exports=e},"4cdd":function(t,e,o){var i=o("0e93"),n=o("c607");(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.0",mode:i?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"4d89":function(t,e){t.exports=n},"4db4":function(t,e,o){var i=o("e7a0");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4fed":function(t,e,o){var i,n,a=o("f498"),r=o("64e4"),s=a.process,l=a.Deno,d=s&&s.versions||l&&l.version,c=d&&d.v8;c?(i=c.split("."),n=i[0]<4?1:i[0]+i[1]):r&&(i=r.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/),i&&(n=i[1]))),t.exports=n&&+n},5428:function(t,e,o){var i=o("f498"),n=o("3ce8"),a=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(i[t]):i[t]&&i[t][e]}},"57c3":function(t,e,o){var i=o("db6b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("ef9eca04",i,!0,{sourceMap:!1,shadowMode:!1})},"58b1":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-radio-buttons label{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}.dito-radio-buttons .dito-radio-button{margin-right:6px}",""]),t.exports=e},"5b12":function(t,e,o){var i=o("d4cb"),n=o("abdf"),a=o("9618");t.exports=i?function(t,e,o){return n.f(t,e,a(1,o))}:function(t,e,o){return t[e]=o,t}},"5b87":function(t,e,o){var i=o("2964");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("566198fd",i,!0,{sourceMap:!1,shadowMode:!1})},"5bb7":function(t,e){t.exports={}},"5bd3":function(t,e,o){var i=o("1239");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("acbfca36",i,!0,{sourceMap:!1,shadowMode:!1})},"5f9a":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-form-nested,.dito-form-nested .dito-scroll{overflow:visible}",""]),t.exports=e},"60de":function(t,e,o){var i=o("63d3");t.exports=function(t,e){var o=t[e];return null==o?void 0:i(o)}},"62d2":function(t,e,o){var i=o("4a0f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("1165da2e",i,!0,{sourceMap:!1,shadowMode:!1})},6389:function(t,e){t.exports=a},"63d3":function(t,e,o){var i=o("3ce8"),n=o("4912");t.exports=function(t){if(i(t))return t;throw TypeError(n(t)+" is not a function")}},"64e4":function(t,e,o){var i=o("5428");t.exports=i("navigator","userAgent")||""},"65d0":function(t,e,o){var i=o("c91c"),n=o("b17e"),a=n.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,a)}},"6a1c":function(t,e,o){"use strict";o("62d2")},"6a2a":function(t,e){t.exports=r},"6a61":function(t,e){var o={}.toString;t.exports=function(t){return o.call(t).slice(8,-1)}},"6b1d":function(t,e,o){var i=o("f498"),n=o("185a").f,a=o("5b12"),r=o("b8ba"),s=o("3e34"),l=o("b634"),d=o("ebac");t.exports=function(t,e){var o,c,u,p,h,m,b=t.target,f=t.global,g=t.stat;if(c=f?i:g?i[b]||s(b,{}):(i[b]||{}).prototype,c)for(u in e){if(h=e[u],t.noTargetGet?(m=n(c,u),p=m&&m.value):p=c[u],o=d(f?u:b+(g?".":"#")+u,t.forced),!o&&void 0!==p){if(typeof h===typeof p)continue;l(h,p)}(t.sham||p&&p.sham)&&a(h,"sham",!0),r(c,u,h,t)}}},"6c45":function(t,e){t.exports=s},"6cc4":function(t,e,o){var i=o("829f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("271663de",i,!0,{sourceMap:!1,shadowMode:!1})},"6eff":function(t,e,o){var i=o("5f9a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("201f18be",i,!0,{sourceMap:!1,shadowMode:!1})},"6f72":function(t,e,o){"use strict";o("c6b2")},"710d":function(t,e,o){"use strict";o("1a7c")},7297:function(t,e,o){var i=o("f498"),n=o("3ce8"),a=o("df6f"),r=i.WeakMap;t.exports=n(r)&&/native code/.test(a(r))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7373:function(t,e,o){var i=o("8c56");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("57752104",i,!0,{sourceMap:!1,shadowMode:!1})},"74f6":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-edit-buttons{cursor:default;-webkit-box-flex:0;flex:none}",""]),t.exports=e},7507:function(t,e,o){"use strict";o("5bd3")},7526:function(t,e,o){var i=o("3ce8");t.exports=function(t){return"object"===typeof t?null!==t:i(t)}},"75ca":function(t,e,o){"use strict";o("17f1")},"76fe":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:function(t){var e=s(this),o=new(l(e,a("Set")))(e),i=r(o["delete"]),n=r(o.add);return d(t,(function(t){i.call(o,t)||n.call(o,t)})),o}})},"775e":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-panels{max-width:360px;min-width:180px}",""]),t.exports=e},7922:function(t,e,o){var i=o("f8bd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("882ec1c0",i,!0,{sourceMap:!1,shadowMode:!1})},"79e6":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-pane{display:-webkit-box;display:flex;position:relative;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;align-content:flex-start;-webkit-box-align:baseline;align-items:baseline;margin:-6px -3px;max-width:906px;-webkit-box-flex:0%;flex:0%}.dito-pane.dito-pane-main{-webkit-box-flex:100%;flex:100%}.dito-schema-header:not(.dito-schema-menu-header)+.dito-pane{margin-top:0}.dito-container.dito-omit-padding>.dito-pane{margin:0;max-width:unset}.dito-pane .dito-break{-webkit-box-flex:100%;flex:100%;height:0}",""]),t.exports=e},"7a87":function(t,e,o){var i=o("fe6f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("2f7c5111",i,!0,{sourceMap:!1,shadowMode:!1})},"7b5f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-scopes{white-space:nowrap;display:-webkit-box;display:flex}.dito-scopes .dito-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0;min-width:3em;-webkit-box-flex:0;flex:0 1 auto}.dito-scopes .dito-button:first-child{border-top-left-radius:1em;border-bottom-left-radius:1em;padding-left:1em}.dito-scopes .dito-button:last-child{border-top-right-radius:1em;border-bottom-right-radius:1em;padding-right:1em}.dito-scopes .dito-button+.dito-button{margin-left:-1px}.dito-scopes .dito-button:focus{z-index:1}",""]),t.exports=e},"7b69":function(t,e,o){"use strict";o("3d5e")},"7c3f":function(t,e,o){var i=o("d4cb"),n=o("72df"),a=o("f2bf");t.exports=!i&&!n((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(i){"object"===typeof window&&(o=window)}t.exports=o},"7d53":function(t,e,o){var i=o("f498"),n=o("4cdd"),a=o("f1a7"),r=o("1d8a"),s=o("e7a0"),l=o("4db4"),d=n("wks"),c=i.Symbol,u=l?c:c&&c.withoutSetter||r;t.exports=function(t){return a(d,t)&&(s||"string"==typeof d[t])||(s&&a(c,t)?d[t]=c[t]:d[t]=u("Symbol."+t)),d[t]}},"7d86":function(t,e,o){"use strict";o("3011")},"7f8e":function(t,e,o){"use strict";o("96af")},"80d0":function(t,e){t.exports=l},8153:function(t,e,o){"use strict";o("ba18")},8296:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("63d3"),r=o("157c"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:function(t){var e=r(this),o=a(e.has);return!s(t,(function(t,i){if(!0===o.call(e,t))return i()}),{INTERRUPTED:!0}).stopped}})},"829f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-button-overlay.dito-button-clear:before,.dito-buttons-round .dito-button-add-upload:before,.dito-buttons-round .dito-button-copy:empty:before,.dito-buttons-round .dito-button-delete:empty:before,.dito-buttons-round .dito-button-drag:empty:before,.dito-buttons-round .dito-button-edit:empty:before,.dito-buttons-round .dito-button-paste:empty:before,.dito-buttons-round .dito-button-remove:empty:before,.dito-buttons-small .dito-button-add-upload:before,.dito-buttons-small .dito-button-copy:empty:before,.dito-buttons-small .dito-button-delete:empty:before,.dito-buttons-small .dito-button-drag:empty:before,.dito-buttons-small .dito-button-edit:empty:before,.dito-buttons-small .dito-button-paste:empty:before,.dito-buttons-small .dito-button-remove:empty:before{width:1em;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;content:\"\";background:currentColor;-webkit-mask:none no-repeat center content-box;mask:none no-repeat center content-box}.dito-buttons-round .dito-button-add-upload:before,.dito-buttons-small .dito-button-add-upload:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M2 12h20'/%3E%3C/svg%3E\")}.dito-button-overlay.dito-button-clear:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-copy:empty:before,.dito-buttons-small .dito-button-copy:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-drag:empty:before,.dito-buttons-small .dito-button-drag:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l7-7 7 7M5 16l7 7 7-7'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l7-7 7 7M5 16l7 7 7-7'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-edit:empty:before,.dito-buttons-small .dito-button-edit:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16L16 2l4 4L6 20M14 4l4 4'/%3E%3Cpath fill='%23000' d='M6 20H2v-4z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 16L16 2l4 4L6 20M14 4l4 4'/%3E%3Cpath fill='%23000' d='M6 20H2v-4z'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-paste:empty:before,.dito-buttons-small .dito-button-paste:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3C/svg%3E\")}.dito-buttons-round .dito-button-delete:empty:before,.dito-buttons-round .dito-button-remove:empty:before,.dito-buttons-small .dito-button-delete:empty:before,.dito-buttons-small .dito-button-remove:empty:before{-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMinYMid' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E\")}button,h1,h2,h3,h4,h5,input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}a{color:inherit;text-decoration:none}a:focus,button:focus,input:focus,select:focus,textarea:focus{outline:none}a::-moz-focus-inner,a::-moz-focus-outer,button::-moz-focus-inner,button::-moz-focus-outer,input::-moz-focus-inner,input::-moz-focus-outer,select::-moz-focus-inner,select::-moz-focus-outer,textarea::-moz-focus-inner,textarea::-moz-focus-outer{border:none}select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--color-text,#000)}ul{list-style:none;padding:0}ul,ul li{margin:0}table{border-spacing:0}a,button{cursor:pointer}label,label *{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}:root{--font-size:13px;--line-height:1.38462;--color-text:#0a0a0a;font-size:var(--font-size);line-height:var(--line-height);color:var(--color-text);background:#ededed;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;overflow-x:hidden;max-width:100%}.dito-button .dito-order-arrows{display:inline-block;width:6px;padding-left:6px}.dito-button .dito-order-arrows:before{-webkit-transform:rotate(135deg);transform:rotate(135deg);top:0;bottom:0;bottom:3px}.dito-button .dito-order-arrows:after,.dito-button .dito-order-arrows:before{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:\"\";width:4px;height:4px;pointer-events:none;margin:auto}.dito-button .dito-order-arrows:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);top:0;bottom:0;top:3px}.dito-button.dito-order-asc .dito-order-arrows:before{bottom:0}.dito-button.dito-order-asc .dito-order-arrows:after,.dito-button.dito-order-desc .dito-order-arrows:before{display:none}.dito-button.dito-order-desc .dito-order-arrows:after{top:0}.dito-button-create:empty:before{content:\"Create\"}.dito-button-add:empty:before{content:\"Add\"}.dito-button-delete:empty:before{content:\"Delete\"}.dito-button-remove:empty:before{content:\"Remove\"}.dito-button-edit:empty:before{content:\"Edit\"}.dito-button-save:empty:before{content:\"Save\"}.dito-button-apply:empty:before{content:\"Apply\"}.dito-button-login:empty:before{content:\"Login\"}.dito-button-ok:empty:before{content:\"OK\"}.dito-button-cancel:empty:before{content:\"Cancel\"}.dito-button-close:empty:before{content:\"Close\"}.dito-button-drag:empty:before{content:\"Drag\"}.dito-button-copy:empty:before{content:\"Copy\"}.dito-button-paste:empty:before{content:\"Paste\"}.dito-button-drag{cursor:-webkit-grab;cursor:grab}.dito-button-drag:active{cursor:-webkit-grabbing;cursor:grabbing}.dito-buttons.dito-buttons-large{--button-margin:3px;font-size:14px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-pack:center;justify-content:center}.dito-buttons.dito-buttons-large .dito-container{margin-top:16px}.dito-buttons.dito-buttons-large .dito-button{border-radius:2em;padding:.3em .9em}.dito-buttons.dito-buttons-main{position:sticky;bottom:0;width:100%;align-self:flex-end;z-index:500;padding-bottom:16px;margin-bottom:-16px;margin-top:32px;-webkit-box-shadow:0 -16px 16px -16px rgba(10,10,10,.25);box-shadow:0 -16px 16px -16px rgba(10,10,10,.25);background:#ededed}.dito-button-overlay{position:absolute;right:1px;top:1px;bottom:1px;border:0;border-radius:4px;cursor:pointer}.dito-button-overlay.dito-button-clear{width:2em;z-index:1;background:#fff;display:none}.dito-component:hover>*>*>.dito-button-overlay.dito-button-clear,.dito-component:hover>*>.dito-button-overlay.dito-button-clear,.dito-component:hover>.dito-button-overlay.dito-button-clear{display:block}.dito-button-overlay.dito-button-clear:before{color:grey}.dito-button-overlay.dito-button-clear:hover:before{color:#0a0a0a}ul.dito-pulldown{display:none;position:absolute;top:0;z-index:1000;border-radius:.5em;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}ul.dito-pulldown.dito-open{display:block}ul.dito-pulldown li{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}ul.dito-pulldown li a{display:block;text-align:center;padding:.5em 1em;line-height:1;background:#e0e0e0}ul.dito-pulldown li a:hover{background:#3898ff;color:#fff}ul.dito-pulldown li:first-child a{border-top-left-radius:.5em;border-top-right-radius:.5em}ul.dito-pulldown li:last-child a{border-bottom-left-radius:.5em;border-bottom-right-radius:.5em}.dito-layout-vertical{display:table}.dito-layout-horizontal,.dito-layout-vertical>*{display:table-row}.dito-layout-horizontal>*{display:table-cell}.dito-layout-horizontal>*+*{padding-left:6px}.dito-scroll{-webkit-box-flex:1;flex:1;max-height:100%;overflow-x:hidden;overflow-y:auto}.dito-scroll-parent{-webkit-box-flex:1;flex:1;display:-webkit-box;display:flex;position:relative;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-flow:column;overflow:hidden}.dito-drag-fallback{-webkit-filter:drop-shadow(0 2px 4px rgba(10,10,10,.25));filter:drop-shadow(0 2px 4px rgba(10,10,10,.25))}.dito-drag-fallback,.dito-drag-fallback td{display:-webkit-box;display:flex}.dito-drag-fallback>*,.dito-drag-fallback td>*{-webkit-box-flex:1;flex:1}table.dito-table{--separator-width:1px;width:100%;height:-webkit-min-content;height:-moz-min-content;height:min-content;border-radius:4px}table.dito-table>tbody>tr,table.dito-table>tfoot>tr{vertical-align:baseline}table.dito-table>tbody>tr>td,table.dito-table>tfoot>tr>td{padding:6px 0 6px 6px;background:#ededed}table.dito-table>tbody>tr>td:last-child,table.dito-table>tfoot>tr>td:last-child{padding-right:6px}table.dito-table>tbody>tr>td.dito-cell-edit-buttons,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons{width:1%}table.dito-table>tbody>tr>td.dito-cell-edit-buttons,table.dito-table>tbody>tr>td.dito-cell-edit-buttons .dito-button,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons,table.dito-table>tfoot>tr>td.dito-cell-edit-buttons .dito-button{vertical-align:top}table.dito-table.dito-table-larger-padding td:not(.dito-cell-edit-buttons){padding:9px 0 9px 9px}table.dito-table.dito-table-separators>tbody:not(:empty)+tfoot>tr>td,table.dito-table.dito-table-separators>tbody>tr+tr>td{border-top:var(--separator-width) solid #c7c7c7}table.dito-table.dito-table-alternate-colors.dito-table-even-count>tfoot>tr>td,table.dito-table.dito-table-alternate-colors>tbody>tr:nth-child(odd)>td,table.dito-table.dito-table-background>tbody>tr>td,table.dito-table.dito-table-background>tfoot>tr>td{background:#fff}table.dito-table>thead>tr>th>*{-webkit-box-sizing:content-box;box-sizing:content-box}table.dito-table>thead>tr>th>:not(:focus){border-style:solid;border-color:#c7c7c7}table.dito-table>thead>tr>th>*{border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px}table.dito-table>thead>tr>th:first-child>*{border-top-width:1px;border-left-width:1px;border-top-left-radius:4px}table.dito-table>thead>tr>th:last-child>*{border-top-width:1px;border-right-width:1px;border-top-right-radius:4px}table.dito-table>thead>tr>th+th>*{margin-left:-1px}table.dito-table>thead>tr>th+th>:focus{z-index:1}table.dito-table>tbody>tr>td{border:0;border-style:solid;border-color:#c7c7c7}table.dito-table>tbody>tr>td:first-child{border-left-width:1px}table.dito-table>tbody>tr>td:last-child{border-right-width:1px}table.dito-table>tbody:first-child:empty+tfoot>tr>td,table.dito-table>tbody:first-child>tr:first-child>td{border-top-width:1px}table.dito-table>tbody:first-child:empty+tfoot>tr>td:first-child,table.dito-table>tbody:first-child>tr:first-child>td:first-child{border-top-width:1px;border-left-width:1px;border-top-left-radius:4px}table.dito-table>tbody:first-child:empty+tfoot>tr>td:last-child,table.dito-table>tbody:first-child>tr:first-child>td:last-child{border-top-width:1px;border-right-width:1px;border-top-right-radius:4px}table.dito-table>tbody:last-child>tr:last-child>td{border-bottom-width:1px}table.dito-table>tbody:last-child>tr:last-child>td:first-child{border-bottom-width:1px;border-left-width:1px;border-bottom-left-radius:4px}table.dito-table>tbody:last-child>tr:last-child>td:last-child{border-bottom-width:1px;border-right-width:1px;border-bottom-right-radius:4px}table.dito-table>tfoot>tr>td{border-width:0;border-style:solid;border-color:#c7c7c7;border-bottom-width:1px}table.dito-table>tfoot>tr>td:first-child{border-bottom-width:1px;border-left-width:1px;border-bottom-left-radius:4px}table.dito-table>tfoot>tr>td:last-child{border-bottom-width:1px;border-right-width:1px;border-bottom-right-radius:4px}.dito-form-nested table.dito-table,table.dito-table table.dito-table{margin:0}.dito-notifications .dito-notification{padding:8px;margin:12px 12px 0;font-size:inherit;color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}.dito-notifications .dito-notification .notification-title{font-weight:700;padding-bottom:8px}.dito-notifications .dito-notification .notification-content p{margin:0}.dito-notifications .dito-notification .notification-content p+p{margin-top:8px}.dito-notifications .dito-notification,.dito-notifications .dito-notification.info{background:#52a5ff;color:#fff;border-left:12px solid #057eff}.dito-notifications .dito-notification.success{background:#32dc6e;color:#fff;border-left:12px solid #1ca64c}.dito-notifications .dito-notification.warning{background:#ffd561;color:#fff;border-left:12px solid #ffc014}.dito-notifications .dito-notification.error{background:#ff5274;color:#fff;border-left:12px solid #ff0537}.dito-notifications .vue-notification-wrapper{overflow:visible}.dito-root{height:100%;display:-webkit-box;display:flex}.dito-root .dito-page{background:#ededed}.dito-root .dito-page>.dito-form,.dito-root .dito-page>.dito-view{margin-top:-42px;padding-top:42px}",""]),t.exports=e},"82e8":function(t,e,o){var i=o("a7b7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("08cd8651",i,!0,{sourceMap:!1,shadowMode:!1})},8380:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-color .dito-input{display:block;position:relative}.dito-color .dito-input input{-webkit-box-sizing:border-box;box-sizing:border-box;font-variant-numeric:tabular-nums;padding-right:24px}.dito-color .dito-button-clear{margin-right:24px}.dito-color .dito-color-picker{margin:2px 0;border:1px solid #c7c7c7;border-radius:4px;background:#fff;-webkit-box-shadow:0 2px 6px 0 rgba(10,10,10,.25);box-shadow:0 2px 6px 0 rgba(10,10,10,.25)}.dito-color .dito-color-preview{background:repeating-conic-gradient(transparent 0 25%,#eee 0 50%) 0 0/24px 24px;border-left:1px solid #c7c7c7}.dito-color .dito-color-preview,.dito-color .dito-color-preview div{position:absolute;width:24px;top:0;right:0;bottom:0;border-top-right-radius:3px;border-bottom-right-radius:3px}",""]),t.exports=e},8386:function(t,e,o){"use strict";o("3c03")},"83a6":function(t,e,o){var i=o("72df"),n=o("6a61"),a="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==n(t)?a.call(t,""):Object(t)}:Object},8597:function(t,e,o){"use strict";var i=o("63d3"),n=o("157c");t.exports=function(){for(var t=n(this),e=i(t.add),o=0,a=arguments.length;o<a;o++)e.call(t,arguments[o]);return t}},"8b0f":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-tree-list button,.dito-tree-list:disabled button{opacity:.6;pointer-events:none}.dito-tree-list{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-tree-list{border-color:#ff3860}.dito-disabled.dito-tree-list,.dito-tree-list:disabled{color:grey;pointer-events:none;cursor:text}.dito-tree-list .dito-tree-panel{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-tree-list .dito-tree-panel>.dito-tree-item{-webkit-box-flex:1;flex:1 1 25%}.dito-tree-list .dito-tree-panel>.dito-tree-form-container{-webkit-box-flex:0;flex:0 1 75%;align-self:stretch;background:#ededed;border-left:1px solid #c7c7c7;border-top-right-radius:3px;border-bottom-right-radius:3px;margin:-3px -6px;margin-left:6px}",""]),t.exports=e},"8bb2":function(t,e){var o=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:o)(t)}},"8bbf":function(t,e){t.exports=d},"8c56":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-schema{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:flex;min-height:100%}.dito-schema>.dito-schema-content{-webkit-box-flex:1;flex:1 1 100%;display:grid;grid-template-rows:-webkit-min-content;grid-template-rows:min-content;max-width:900px;padding:16px}.dito-schema>.dito-schema-content>:only-child{grid-row-end:none}.dito-schema>.dito-buttons,.dito-schema>.dito-panels{-webkit-box-flex:1;flex:1 1 0%}.dito-schema>.dito-buttons{margin-left:6px}.dito-schema>.dito-panels{padding:16px 16px 16px 0}.dito-schema .dito-pane-tab+.dito-pane-main:before{display:block;content:"";width:100%;border-bottom:1px solid #c7c7c7;margin:16px 3px 3px}.dito-schema-header{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-schema-header .dito-clipboard,.dito-schema-header .dito-tabs{display:-webkit-box;display:flex;align-self:flex-end}.dito-schema-header .dito-clipboard:only-child{margin-left:auto}.dito-schema-header .dito-clipboard .dito-button{margin:0 0 6px 6px}.dito-schema-header.dito-schema-menu-header{position:absolute;height:42px;padding:0 16px;max-width:900px;top:0;left:0;right:0;z-index:1000;pointer-events:none}.dito-schema-header.dito-schema-menu-header .dito-buttons,.dito-schema-header.dito-schema-menu-header .dito-tabs{pointer-events:auto;line-height:1;font-size:14px}.dito-schema-header button.dito-label{width:100%;z-index:1}',""]),t.exports=e},"8de5":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("63d3"),r=o("157c"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{reduce:function(t){var e=r(this),o=s(e),i=arguments.length<2,n=i?void 0:arguments[1];if(a(t),l(o,(function(o){i?(i=!1,n=o):n=t(n,o,o,e)}),{IS_ITERATOR:!0}),i)throw TypeError("Reduce of empty set with no initial value");return n}})},"916c":function(t,e){t.exports=c},"926e":function(t,e,o){"use strict";var i=o("63d3"),n=o("157c");t.exports=function(){for(var t,e=n(this),o=i(e["delete"]),a=!0,r=0,s=arguments.length;r<s;r++)t=o.call(e,arguments[r]),a=a&&t;return!!a}},"94f5":function(t,e,o){"use strict";o("fa4f")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"96af":function(t,e,o){var i=o("74f6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("6b539d46",i,!0,{sourceMap:!1,shadowMode:!1})},"96c9":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-container{align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;padding:6px 3px}.dito-container.dito-omit-padding,.dito-container:empty{padding:0}.dito-container.dito-omit-padding>.dito-label{margin:6px 3px 0}.dito-container.dito-single{height:100%}.dito-component.dito-width-fill{width:100%}.dito-component.dito-width-fill.dito-checkbox,.dito-component.dito-width-fill.dito-radio-button{display:inline-block;width:auto}",""]),t.exports=e},"9a0f":function(t,e,o){var i=o("8bb2"),n=Math.max,a=Math.min;t.exports=function(t,e){var o=i(t);return o<0?n(o+e,0):a(o,e)}},"9a69":function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-label{--label-padding:0;display:-webkit-box;display:flex;position:relative;-webkit-box-align:center;align-items:center;padding:var(--label-padding);margin:0 0 3px 0}.dito-label label{display:inline;cursor:inherit;font-weight:700;white-space:nowrap}.dito-label .dito-label-prefix:nth-last-child(2),.dito-label .dito-label-suffix:nth-last-child(2),.dito-label label:nth-last-child(2){-webkit-box-flex:1;flex:1 1 auto}.dito-label .dito-label-prefix:after,.dito-label .dito-label-suffix:after,.dito-label label:after{content:" "}.dito-label .dito-label-prefix,.dito-label .dito-label-suffix{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dito-label .dito-buttons{margin:calc(var(--label-padding)*-1);margin-left:0;padding:var(--label-padding)}.dito-label.dito-width-fill{width:100%}.dito-label.dito-width-fill label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;max-width:100%}.dito-label.dito-width-fill:after{content:" "}a.dito-label:hover .dito-chevron{color:#2e2e2e}a.dito-label:focus:not(:active):not(.dito-active) .dito-chevron{-webkit-text-stroke:1px #3898ff}.dito-schema-compact>.dito-schema-content>.dito-pane>.dito-container>.dito-label:not(.dito-label-component){display:inline-block}',""]),t.exports=e},"9baa":function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("63d3"),r=o("157c"),s=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:function(t){var e=r(this),o=a(e.has);return!s(t,(function(t,i){if(!1===o.call(e,t))return i()}),{INTERRUPTED:!0}).stopped}})},"9cdb":function(t,e){t.exports=u},"9e1e":function(t,e,o){var i=o("3cd4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("32921789",i,!0,{sourceMap:!1,shadowMode:!1})},a03e:function(t,e,o){var i=o("5428"),n=o("65d0"),a=o("2402"),r=o("157c");t.exports=i("Reflect","ownKeys")||function(t){var e=n.f(r(t)),o=a.f;return o?e.concat(o(t)):e}},a1c0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-menu{-webkit-box-flex:initial;flex:initial;font-size:14px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-menu ul{background:#e0e0e0;border-right:1px solid #c7c7c7}.dito-menu a,.dito-menu h1{display:block}.dito-menu h1{font-weight:700;background:#2e2e2e;border-right:1px solid #141414;color:#fff}.dito-menu .dito-link,.dito-menu h1{padding:14px 16px;line-height:1}.dito-menu .dito-link.dito-active{color:#fff;background:#3898ff}.dito-link:focus:not(:active):not(.dito-active){-webkit-box-shadow:0 0 0 1px #3898ff;box-shadow:0 0 0 1px #3898ff}",""]),t.exports=e},a2b3:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-disabled.dito-slider button,.dito-slider:disabled button{opacity:.6;pointer-events:none}.dito-slider{border:1px solid #c7c7c7;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:3px 6px;background:#fff}.dito-has-errors.dito-slider{border-color:#ff3860}.dito-disabled.dito-slider,.dito-slider:disabled{color:grey;pointer-events:none;cursor:text}.dito-slider{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dito-slider::-webkit-input-placeholder{color:grey}.dito-slider::-moz-placeholder{color:grey}.dito-slider::placeholder{color:grey}.dito-focus.dito-slider,.dito-focus.dito-slider .dito-inherit-focus,.dito-slider:focus,.dito-slider:focus-within,.dito-slider:focus-within .dito-inherit-focus,.dito-slider:focus .dito-inherit-focus{border-color:#3898ff}.dito-slider{display:-webkit-box;display:flex}.dito-slider .dito-range{-webkit-box-flex:1;flex:auto;height:calc(1em*var(--line-height))}.dito-slider .dito-number{border:0;padding:0;text-align:right;font-variant-numeric:tabular-nums}",""]),t.exports=e},a466:function(t,e,o){"use strict";o("82e8")},a672:function(t,e){t.exports=p},a6de:function(t,e,o){"use strict";o("a782")},a782:function(t,e,o){var i=o("d4b0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("00bcc797",i,!0,{sourceMap:!1,shadowMode:!1})},a7b7:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-list{position:relative}.dito-list .dito-navigation{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;padding-bottom:8px;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-list .dito-navigation:empty{display:none}.dito-list .dito-navigation .dito-pagination,.dito-list .dito-navigation .dito-scopes{display:-webkit-box;display:flex;-webkit-box-flex:0;flex:0 1 auto;min-width:0}.dito-list.dito-single{display:grid;grid-template-rows:-webkit-min-content;grid-template-rows:min-content;height:100%}",""]),t.exports=e},a861:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-schema-inlined>.dito-schema-content{padding:0}.dito-schema-inlined>.dito-schema-content>.dito-schema-header{margin:-6px}.dito-schema-inlined>.dito-schema-content>.dito-schema-header .dito-label{--label-padding:6px;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:900px}.dito-schema-inlined>.dito-schema-content>.dito-schema-header+.dito-pane{min-height:6px}",""]),t.exports=e},a8a1:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-object{display:-webkit-box;display:flex;border:1px solid #c7c7c7;border-radius:4px;margin:0;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box}.dito-object .dito-object-content{-webkit-box-flex:0;flex:0 1 100%}.dito-object>.dito-buttons{-webkit-box-flex:1;flex:1 0 0%;margin-left:6px}",""]),t.exports=e},a8c9:function(t,e,o){"use strict";o("da97")},a8e0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-account{position:relative}.dito-account .dito-pulldown{top:.5em}",""]),t.exports=e},a8e3:function(t,e,o){"use strict";o("9e1e")},a94f:function(t,e,o){"use strict";o("add8")},aaba:function(t,e,o){var i=o("157c"),n=o("60de");t.exports=function(t,e,o){var a,r;i(t);try{if(a=n(t,"return"),!a){if("throw"===e)throw o;return o}a=a.call(t)}catch(s){r=!0,a=s}if("throw"===e)throw o;if(r)throw a;return i(a),o}},abc8:function(t,e,o){var i=o("a2b3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("7bbbfd57",i,!0,{sourceMap:!1,shadowMode:!1})},abdf:function(t,e,o){var i=o("d4cb"),n=o("7c3f"),a=o("157c"),r=o("feca"),s=Object.defineProperty;e.f=i?s:function(t,e,o){if(a(t),e=r(e),a(o),n)try{return s(t,e,o)}catch(i){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},acde:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-multiselect{position:relative}.dito-multiselect .multiselect{font-size:inherit;min-height:inherit;color:#0a0a0a}.dito-multiselect .multiselect__tags{font-size:inherit;overflow:auto;min-height:inherit;padding:0 2em 0 0;padding-bottom:2px}.dito-multiselect .multiselect__tag{float:left;margin:2px 0 0 2px;border-radius:1em;padding:3px 1.8em 3px .8em;line-height:1.1em}.dito-multiselect .multiselect__tags-wrap{overflow:auto;line-height:0}.dito-multiselect .multiselect__input,.dito-multiselect .multiselect__placeholder,.dito-multiselect .multiselect__single{font-size:inherit;line-height:inherit;min-height:0;margin:0 0 1px 0;padding:3px 6px!important;padding-bottom:0!important;background:none}.dito-multiselect .multiselect__input::-webkit-input-placeholder{color:grey}.dito-multiselect .multiselect__input::-moz-placeholder{color:grey}.dito-multiselect .multiselect__input::placeholder,.dito-multiselect .multiselect__placeholder{color:grey}.dito-multiselect .multiselect--active .multiselect__placeholder{display:inline-block;visibility:hidden}.dito-multiselect .multiselect__select,.dito-multiselect .multiselect__spinner{padding:0;top:1px;right:1px;bottom:1px;height:inherit;border-radius:4px}.dito-multiselect .multiselect__select{width:0;margin-right:1em}.dito-multiselect .multiselect__select:before{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:"";width:.5em;height:.5em;pointer-events:none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin:auto;top:0;bottom:0;bottom:2px;right:-.25em}.dito-multiselect .multiselect__spinner{width:2em}.dito-multiselect .multiselect__spinner:after,.dito-multiselect .multiselect__spinner:before{border-width:3px;border-top-color:#3898ff;top:0;right:0;bottom:0;left:0;margin:auto}.dito-multiselect .multiselect__option{min-height:unset;height:unset;line-height:1.1em;padding:3px 6px}.dito-multiselect .multiselect__option:after{padding:3px 6px;line-height:1.1em}.dito-multiselect .multiselect__option--highlight:after{diplay:block;position:absolute;background:transparent;color:#fff}.dito-multiselect .multiselect__option--disabled{background:none;color:grey}.dito-multiselect .multiselect__tag-icon{background:none;border-radius:1em;font-weight:inherit;line-height:1.4em;width:1.8em}.dito-multiselect .multiselect__tag-icon:after{color:#fff;font-size:1.3em}.dito-multiselect .multiselect__tag-icon:hover:after{color:#0a0a0a}.dito-multiselect .multiselect__option--selected{background:#b3d7ff;color:#0a0a0a;font-weight:400}.dito-multiselect .multiselect__option--selected.multiselect__option--highlight{color:#fff}.dito-multiselect .multiselect__option--highlight,.dito-multiselect .multiselect__tag{background:#3898ff;color:#fff}.dito-multiselect .multiselect__content-wrapper,.dito-multiselect .multiselect__tags{border:1px solid #c7c7c7;border-radius:4px}.dito-multiselect.dito-multiselect-single{--input-width:100%}.dito-multiselect.dito-multiselect-multiple{--input-width:auto}.dito-multiselect .multiselect--active .multiselect__input,.dito-multiselect .multiselect--active .multiselect__single{width:var(--input-width)!important}.dito-multiselect .multiselect--active .multiselect__tags{border-color:#3898ff;border-bottom-left-radius:0;border-bottom-right-radius:0}.dito-multiselect .multiselect--active .multiselect__content-wrapper{border:1px solid #3898ff;border-top-color:#c7c7c7;margin:-1px 0 0;border-top-left-radius:0;border-top-right-radius:0}.dito-multiselect .multiselect--active.multiselect--above .multiselect__tags{border-radius:4px;border-top-left-radius:0;border-top-right-radius:0}.dito-multiselect .multiselect--active.multiselect--above .multiselect__content-wrapper{border:1px solid #3898ff;border-bottom-color:#c7c7c7;margin:0 0 -1px;border-radius:4px;border-bottom-left-radius:0;border-bottom-right-radius:0}.dito-multiselect.dito-has-errors .multiselect__tags{border-color:#ff3860}.dito-multiselect .dito-button-clear{width:2em}',""]),t.exports=e},add8:function(t,e,o){var i=o("8380");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("8165a1ee",i,!0,{sourceMap:!1,shadowMode:!1})},af1e:function(t,e,o){"use strict";o("b86b")},af74:function(t,e,o){"use strict";o("43ad")},afe5:function(t,e){t.exports=h},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b198:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("8597");i({target:"Set",proto:!0,real:!0,forced:n},{addAll:function(){return a.apply(this,arguments)}})},b327:function(t,e){t.exports=m},b495:function(t,e,o){var i=o("8bb2"),n=Math.min;t.exports=function(t){return t>0?n(i(t),9007199254740991):0}},b578:function(t,e,o){var i=o("157c"),n=o("c965"),a=o("b495"),r=o("2117"),s=o("3f5a"),l=o("0446"),d=o("aaba"),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,o){var u,p,h,m,b,f,g,v=o&&o.that,y=!(!o||!o.AS_ENTRIES),x=!(!o||!o.IS_ITERATOR),w=!(!o||!o.INTERRUPTED),_=r(e,v,1+y+w),k=function(t){return u&&d(u,"normal",t),new c(!0,t)},C=function(t){return y?(i(t),w?_(t[0],t[1],k):_(t[0],t[1])):w?_(t,k):_(t)};if(x)u=t;else{if(p=l(t),!p)throw TypeError(String(t)+" is not iterable");if(n(p)){for(h=0,m=a(t.length);m>h;h++)if(b=C(t[h]),b&&b instanceof c)return b;return new c(!1)}u=s(t,p)}f=u.next;while(!(g=f.call(u)).done){try{b=C(g.value)}catch(O){d(u,"throw",O)}if("object"==typeof b&&b&&b instanceof c)return b}return new c(!1)}},b5c9:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("3ce8"),l=o("157c"),d=o("3f5a"),c=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:function(t){var e=d(this),o=l(t),i=o.has;return s(i)||(o=new(a("Set"))(t),i=r(o.has)),!c(e,(function(t,e){if(!1===i.call(o,t))return e()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},b634:function(t,e,o){var i=o("f1a7"),n=o("a03e"),a=o("185a"),r=o("abdf");t.exports=function(t,e){for(var o=n(e),s=r.f,l=a.f,d=0;d<o.length;d++){var c=o[d];i(t,c)||s(t,c,l(e,c))}}},b86b:function(t,e,o){var i=o("96c9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("394516cc",i,!0,{sourceMap:!1,shadowMode:!1})},b8ba:function(t,e,o){var i=o("f498"),n=o("3ce8"),a=o("f1a7"),r=o("5b12"),s=o("3e34"),l=o("df6f"),d=o("cdcd"),c=o("d331").CONFIGURABLE,u=d.get,p=d.enforce,h=String(String).split("String");(t.exports=function(t,e,o,l){var d,u=!!l&&!!l.unsafe,m=!!l&&!!l.enumerable,b=!!l&&!!l.noTargetGet,f=l&&void 0!==l.name?l.name:e;n(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(o,"name")||c&&o.name!==f)&&r(o,"name",f),d=p(o),d.source||(d.source=h.join("string"==typeof f?f:""))),t!==i?(u?!b&&t[e]&&(m=!0):delete t[e],m?t[e]=o:r(t,e,o)):m?t[e]=o:s(e,o)})(Function.prototype,"toString",(function(){return n(this)&&u(this).source||l(this)}))},b980:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("433a"),d=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{union:function(t){var e=s(this),o=new(l(e,a("Set")))(e);return d(t,r(o.add),{that:o}),o}})},b9d5:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("926e");i({target:"Set",proto:!0,real:!0,forced:n},{deleteAll:function(){return a.apply(this,arguments)}})},ba18:function(t,e,o){var i=o("775e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("a0340784",i,!0,{sourceMap:!1,shadowMode:!1})},bad4:function(t,e){t.exports=function(t){return Set.prototype.values.call(t)}},c42f:function(t,e,o){var i=o("72df"),n=o("3ce8"),a=o("da06"),r=o("5428"),s=o("df6f"),l=[],d=r("Reflect","construct"),c=/^\s*(?:class|function)\b/,u=c.exec,p=!c.exec((function(){})),h=function(t){if(!n(t))return!1;try{return d(Object,l,t),!0}catch(e){return!1}},m=function(t){if(!n(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!u.call(c,s(t))};t.exports=!d||i((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?m:h},c4c0:function(t,e,o){"use strict";o("2766")},c592:function(t,e,o){"use strict";o("d566")},c607:function(t,e,o){var i=o("f498"),n=o("3e34"),a="__core-js_shared__",r=i[a]||n(a,{});t.exports=r},c6b2:function(t,e,o){var i=o("79e6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("28556a1e",i,!0,{sourceMap:!1,shadowMode:!1})},c8e8:function(t,e){t.exports=b},c91c:function(t,e,o){var i=o("f1a7"),n=o("378c"),a=o("1f5e").indexOf,r=o("d687");t.exports=function(t,e){var o,s=n(t),l=0,d=[];for(o in s)!i(r,o)&&i(s,o)&&d.push(o);while(e.length>l)i(s,o=e[l++])&&(~a(d,o)||d.push(o));return d}},c965:function(t,e,o){var i=o("7d53"),n=o("5bb7"),a=i("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[a]===t)}},cd5a:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-checkboxes label{height:2em;line-height:2em;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center}.dito-checkboxes .dito-checkbox{margin-right:6px}",""]),t.exports=e},cdcd:function(t,e,o){var i,n,a,r=o("7297"),s=o("f498"),l=o("7526"),d=o("5b12"),c=o("f1a7"),u=o("c607"),p=o("332c"),h=o("d687"),m="Object already initialized",b=s.WeakMap,f=function(t){return a(t)?n(t):i(t,{})},g=function(t){return function(e){var o;if(!l(e)||(o=n(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return o}};if(r||u.state){var v=u.state||(u.state=new b),y=v.get,x=v.has,w=v.set;i=function(t,e){if(x.call(v,t))throw new TypeError(m);return e.facade=t,w.call(v,t,e),e},n=function(t){return y.call(v,t)||{}},a=function(t){return x.call(v,t)}}else{var _=p("state");h[_]=!0,i=function(t,e){if(c(t,_))throw new TypeError(m);return e.facade=t,d(t,_,e),e},n=function(t){return c(t,_)?t[_]:{}},a=function(t){return c(t,_)}}t.exports={set:i,get:n,has:a,enforce:f,getterFor:g}},cdda:function(t,e,o){var i=o("e18a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("1bdd06e6",i,!0,{sourceMap:!1,shadowMode:!1})},cebe:function(t,e){t.exports=f},cfd1:function(t,e,o){var i=o("3ce8"),n=o("5428"),a=o("4db4");t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&Object(t)instanceof e}},d0a1:function(t,e,o){var i=o("cd5a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("5aae5f12",i,!0,{sourceMap:!1,shadowMode:!1})},d10f:function(t,e,o){"use strict";o("d0a1")},d20f:function(t,e,o){"use strict";o("f2f0")},d2ad:function(t,e,o){var i=o("1564");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("785eaf5b",i,!0,{sourceMap:!1,shadowMode:!1})},d331:function(t,e,o){var i=o("d4cb"),n=o("f1a7"),a=Function.prototype,r=i&&Object.getOwnPropertyDescriptor,s=n(a,"name"),l=s&&"something"===function(){}.name,d=s&&(!i||i&&r(a,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},d4b0:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-upload .dito-table tr{vertical-align:middle}.dito-upload .dito-button-add-upload{padding:0}.dito-upload .dito-button-add-upload>*{position:absolute;cursor:pointer}.dito-upload .dito-upload-footer{display:-webkit-box;display:flex;-webkit-box-pack:end;justify-content:flex-end;-webkit-box-align:center;align-items:center}.dito-upload .dito-upload-footer .dito-progress{-webkit-box-flex:1;flex:auto;margin-right:6px}",""]),t.exports=e},d4cb:function(t,e,o){var i=o("72df");t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d566:function(t,e,o){var i=o("f39e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("91144d44",i,!0,{sourceMap:!1,shadowMode:!1})},d687:function(t,e){t.exports={}},da06:function(t,e,o){var i=o("3cec"),n=o("3ce8"),a=o("6a61"),r=o("7d53"),s=r("toStringTag"),l="Arguments"==a(function(){return arguments}()),d=function(t,e){try{return t[e]}catch(o){}};t.exports=i?a:function(t){var e,o,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=d(e=Object(t),s))?o:l?a(e):"Object"==(i=a(e))&&n(e.callee)?"Arguments":i}},da97:function(t,e,o){var i=o("58b1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("72c6ac09",i,!0,{sourceMap:!1,shadowMode:!1})},db6b:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-header{background:#0a0a0a;font-size:14px;line-height:1;z-index:1000;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-header span{display:inline-block;padding:14px 16px;color:#fff}.dito-header .dito-trail{-webkit-box-sizing:border-box;box-sizing:border-box;height:3em;width:100%;max-width:916px}.dito-header .dito-trail,.dito-header .dito-trail ul{display:-webkit-box;display:flex}.dito-header .dito-trail a{position:relative;display:block;padding-right:.4em}.dito-header .dito-trail a:hover{color:#999}.dito-header .dito-trail a:after,.dito-header .dito-trail a:before{position:absolute;content:"";width:1px;height:1.2em;right:-1px;background:#474747}.dito-header .dito-trail a:before{top:50%;-webkit-transform:rotate(33deg);transform:rotate(33deg);-webkit-transform-origin:top;transform-origin:top}.dito-header .dito-trail a:after{bottom:50%;-webkit-transform:rotate(-33deg);transform:rotate(-33deg);-webkit-transform-origin:bottom;transform-origin:bottom}.dito-header .dito-spinner{margin-top:14px}.dito-header .dito-dirty:after{content:"";display:inline-block;background-color:#fff;width:8px;height:8px;margin:2px;margin-left:.5em;border-radius:100%}.dito-header .dito-account,.dito-header .dito-login{position:absolute;top:0;cursor:pointer}.dito-header .dito-account{left:932px}',""]),t.exports=e},dd36:function(t,e,o){"use strict";o("7373")},ddef:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("5428"),r=o("63d3"),s=o("157c"),l=o("2117"),d=o("433a"),c=o("bad4"),u=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{map:function(t){var e=s(this),o=c(e),i=l(t,arguments.length>1?arguments[1]:void 0,3),n=new(d(e,a("Set"))),p=r(n.add);return u(o,(function(t){p.call(n,i(t,t,e))}),{IS_ITERATOR:!0}),n}})},df6f:function(t,e,o){var i=o("3ce8"),n=o("c607"),a=Function.toString;i(n.inspectSource)||(n.inspectSource=function(t){return a.call(t)}),t.exports=n.inspectSource},e100:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{find:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return l(o,(function(t,o){if(i(t,t,e))return o(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},e129:function(t,e,o){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,a=n&&!i.call({1:2},1);e.f=a?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},e18a:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-select{display:inline-block;position:relative}.dito-select select{padding-right:2em}.dito-select.dito-width-fill select{width:100%}.dito-select:after{position:absolute;border:1px solid #3898ff;border-right:0;border-top:0;content:"";width:.5em;height:.5em;pointer-events:none;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin:auto;top:0;bottom:0;bottom:2px;right:calc(.75em + 1px)}.dito-select.dito-disabled:after{border-color:#c7c7c7}',""]),t.exports=e},e2c2:function(t,e,o){"use strict";o("7922")},e326:function(t,e){t.exports=g},e7a0:function(t,e,o){var i=o("4fed"),n=o("72df");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},e84a:function(t,e,o){var i=o("fc34");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("77d28d34",i,!0,{sourceMap:!1,shadowMode:!1})},e97b:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-tree-item{--chevron-indent:1.2em}.dito-tree-item>.dito-tree-header>.dito-tree-branch,.dito-tree-item>.dito-tree-header>.dito-tree-leaf{padding-left:calc(var(--chevron-indent)*(var(--level, 1) - 1))}.dito-tree-item .dito-tree-branch{cursor:pointer}.dito-tree-item .dito-tree-header{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between}.dito-tree-item .dito-tree-branch,.dito-tree-item .dito-tree-leaf{display:-webkit-box;display:flex;-webkit-box-flex:1;flex:auto;position:relative;margin:1px 0;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-tree-item .dito-tree-info,.dito-tree-item .dito-tree-label{white-space:nowrap}.dito-tree-item .dito-tree-info{padding-left:.35em;color:rgba(10,10,10,.2)}.dito-tree-item .dito-buttons{display:-webkit-box;display:flex;visibility:hidden;height:100%;margin-left:1em;margin:1px 0 1px 1em}.dito-tree-item .dito-tree-header:hover>.dito-buttons{visibility:visible}.dito-tree-item.dito-dragging .dito-tree-header>.dito-buttons{visibility:hidden}.dito-tree-item.dito-active>.dito-tree-header{background:#3898ff;padding:0 6px;margin:0 -6px}.dito-tree-item.dito-active>.dito-tree-header>*>.dito-tree-label,.dito-tree-item.dito-active>.dito-tree-header>.dito-tree-branch>.dito-chevron:before{color:#fff}.dito-tree-item .dito-properties{display:block;margin-left:1.2em}.dito-tree-item .dito-properties>tr{vertical-align:baseline}.dito-tree-item .dito-properties .dito-label{margin:0}.dito-tree-item .dito-properties .dito-label:after{content:": "}',""]),t.exports=e},ea92:function(t,e,o){"use strict";var i=o("6b1d"),n=o("0e93"),a=o("157c"),r=o("2117"),s=o("bad4"),l=o("b578");i({target:"Set",proto:!0,real:!0,forced:n},{every:function(t){var e=a(this),o=s(e),i=r(t,arguments.length>1?arguments[1]:void 0,3);return!l(o,(function(t,o){if(!i(t,t,e))return o()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},eba0:function(t,e,o){var i=o("3ce8"),n=o("7526");t.exports=function(t,e){var o,a;if("string"===e&&i(o=t.toString)&&!n(a=o.call(t)))return a;if(i(o=t.valueOf)&&!n(a=o.call(t)))return a;if("string"!==e&&i(o=t.toString)&&!n(a=o.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},ebac:function(t,e,o){var i=o("72df"),n=o("3ce8"),a=/#|\.prototype\./,r=function(t,e){var o=l[s(t)];return o==c||o!=d&&(n(e)?i(e):!!e)},s=r.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=r.data={},d=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},ebae:function(t,e,o){"use strict";o("abc8")},eeb2:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".v--modal-overlay{z-index:2000}",""]),t.exports=e},f1a7:function(t,e,o){var i=o("37d1"),n={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return n.call(i(t),e)}},f1b0:function(t,e,o){"use strict";o("37cd")},f2bf:function(t,e,o){var i=o("f498"),n=o("7526"),a=i.document,r=n(a)&&n(a.createElement);t.exports=function(t){return r?a.createElement(t):{}}},f2f0:function(t,e,o){var i=o("a8a1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("34cb2813",i,!0,{sourceMap:!1,shadowMode:!1})},f39e:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-create-button{position:relative}.dito-create-button .dito-pulldown{right:0}",""]),t.exports=e},f498:function(t,e,o){(function(e){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,o("7d15"))},f4aa:function(t,e,o){"use strict";o("e84a")},f8bd:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,".dito-panel{margin-bottom:16px}.dito-panel .dito-panel-title{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding:3px 6px;background:#e0e0e0;border:1px solid #c7c7c7;border-top-left-radius:4px;border-top-right-radius:4px}.dito-panel .dito-panel-schema{font-size:11px;background:#ededed;border:1px solid #c7c7c7;border-top:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.dito-panel .dito-panel-schema>.dito-schema-content{padding:3px 6px}.dito-panel .dito-panel-schema>.dito-schema-content>.dito-buttons{--button-margin:6px;padding:3px 0}.dito-panel .dito-panel-schema .dito-object{border:0;padding:0}.dito-panel .dito-panel-schema .dito-label{margin:0}.dito-panel .dito-panel-schema .dito-label label{font-weight:400}.dito-panel .dito-panel-schema .dito-pane{margin:0 -3px}.dito-panel .dito-panel-schema .dito-container{padding:3px}",""]),t.exports=e},fa4f:function(t,e,o){var i=o("3eeb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("0ed3").default;n("9d67ebee",i,!0,{sourceMap:!1,shadowMode:!1})},fb0b:function(t,e,o){"use strict";o("2969")},fc34:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'.dito-table-head{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.dito-table-head tr th{padding:0;font-weight:400;text-align:left;white-space:nowrap}.dito-table-head tr th .dito-button{padding:0;width:100%;text-align:inherit;border-radius:0}.dito-table-head tr th span{display:inline-block;padding:3px 6px}.dito-table-head tr th span:empty:after{content:" "}.dito-table-head tr th>span{display:block}',""]),t.exports=e},fd70:function(t,e,o){"use strict";o("57c3")},fe6f:function(t,e,o){var i=o("3c10");e=i(!1),e.push([t.i,'fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:48px;height:35px;background:#fff;display:block}.multiselect__spinner:after,.multiselect__spinner:before{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border:2px solid transparent;border-top-color:#41b883;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{-webkit-animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__spinner:after{-webkit-animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input:-ms-input-placeholder{color:#35495e}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:normal;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\D7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#369a6e}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{min-height:40px;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;border-radius:5px;border:1px solid #e8e8e8}.multiselect__current,.multiselect__select{line-height:16px;box-sizing:border-box;display:block;margin:0;text-decoration:none;cursor:pointer}.multiselect__select{position:absolute;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;text-align:center;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 0;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{right:auto;left:1px}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{right:auto;left:0}[dir=rtl] .multiselect__clear{right:auto;left:12px}[dir=rtl] .multiselect__spinner{right:auto;left:1px}@-webkit-keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}',""]),t.exports=e},feca:function(t,e,o){var i=o("083f"),n=o("cfd1");t.exports=function(t){var e=i(t,"string");return n(e)?e:String(e)}},ff0e:function(t,e,o){"use strict";o("3d3b")},ffa8:function(t,e){t.exports=v}})}));
5
5
  //# sourceMappingURL=dito-admin.umd.min.js.map