@appscode/ui-builder
Version:
## Motivation
15 lines (13 loc) • 42.1 kB
JavaScript
import{k as e,aj as t,V as n,ak as r,e as i,m as o,g as a,h as l,ad as s,j as u,af as c,ae as d,n as m}from"./wrapper-5d451278.js";import"./es.array.concat-bc6da240.js";import"./index-ba66ec6f.js";import{_ as f,r as p}from"./stickyContent-c27d9838.js";import{l as h}from"./index-f7c726f7.js";import"./es.function.name-b20a5f0c.js";import{_ as b}from"./SingleStepForm-e4a2064c.js";var v=e((function(e,t){e.exports=function(){function e(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */(null==t&&n.path)}},n.exports),n.exports}var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)},n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function i(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(e){return this instanceof a?(this.v=e,this):new a(e)}var l=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=Object.freeze({__proto__:null,__extends:function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},get __assign(){return n},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},__decorate:function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},__createBinding:r,__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)},__values:i,__read:o,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r},__await:a,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},l("next"),l("throw"),l("return"),r[Symbol.asyncIterator]=function(){return this},r;function l(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:a(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=i(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return l(t,e),t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),u=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),c=e((function(e,t){function n(e,t,n){let r="",i=e,o=0,a=-1;for(;(a=i.indexOf(t))>-1;)r+=e.substring(o,o+a)+n,i=i.substring(a+t.length,i.length),o+=a+t.length;return i.length>0&&(r+=e.substring(e.length-i.length,e.length)),r}function r(e){let t=-1;const r=e.length,i=new Array(r);for(;++t<r;)"string"==typeof e[t]?i[t]=n(n(decodeURIComponent(e[t]),"~1","/"),"~0","~"):i[t]=e[t];return i}function i(e){let t=-1;const r=e.length,i=new Array(r);for(;++t<r;)"string"==typeof e[t]?i[t]=encodeURIComponent(n(n(e[t],"~","~0"),"/","~1")):i[t]=e[t];return i}function o(e){let t=-1;const r=e.length,i=new Array(r);for(;++t<r;)"string"==typeof e[t]?i[t]=n(n(e[t],"~1","/"),"~0","~"):i[t]=e[t];return i}function a(e){let t=-1;const r=e.length,i=new Array(r);for(;++t<r;)"string"==typeof e[t]?i[t]=n(n(e[t],"~","~0"),"/","~1"):i[t]=e[t];return i}function l(e){if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length)return[];if("/"!==e[0])throw new ReferenceError("Invalid JSON Pointer syntax. Non-empty pointer must begin with a solidus `/`.");return o(e.substring(1).split("/"))}function s(e){if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length||"#"!==e[0])throw new ReferenceError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(1===e.length)return[];if("/"!==e[1])throw new ReferenceError("Invalid JSON Pointer syntax.");return r(e.substring(2).split("/"))}function u(e,t){if("number"==typeof t)return t;const n=t.length;if(!n)return-1;let r=0;if(1===n&&"-"===t[0])return Array.isArray(e)?e.length:0;for(;++r<n;)if(t[r]<"0"||t[r]>"9")return-1;return parseInt(t,10)}function c(e){return(null==e?void 0:e.length)>0&&"#"===e[0]}function d(e){return c(e)?s:l}Object.defineProperty(t,"__esModule",{value:!0}),t.decodePtrInit=t.pickDecoder=t.looksLikeFragment=t.unsetValueAtPath=t.setValueAtPath=t.compilePointerDereference=t.toArrayIndexReference=t.encodeUriFragmentIdentifier=t.decodeUriFragmentIdentifier=t.encodePointer=t.decodePointer=t.encodePointerSegments=t.decodePointerSegments=t.encodeFragmentSegments=t.decodeFragmentSegments=t.replace=void 0,t.replace=n,t.decodeFragmentSegments=r,t.encodeFragmentSegments=i,t.decodePointerSegments=o,t.encodePointerSegments=a,t.decodePointer=l,t.encodePointer=function(e){if(!e||e&&!Array.isArray(e))throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"":"/".concat(a(e).join("/"))},t.decodeUriFragmentIdentifier=s,t.encodeUriFragmentIdentifier=function(e){if(!e||e&&!Array.isArray(e))throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"#":"#/".concat(i(e).join("/"))},t.toArrayIndexReference=u,t.compilePointerDereference=function(e){let t="if (typeof(it) !== 'undefined'";return 0===e.length?e=>e:(t=e.reduce((t,r,i)=>t+" && \n\ttypeof((it = it['"+n(e[i]+"","\\","\\\\")+"'])) !== 'undefined'","if (typeof(it) !== 'undefined'"),t+=") {\n\treturn it;\n }",new Function("it",t))},t.setValueAtPath=function(e,t,n,r=!1){if(0===n.length)throw new Error("Cannot set the root object; assign it directly.");if(void 0===e)throw new TypeError("Cannot set values on undefined");let i=e;const o=n.length,a=n.length-1;let l,s,c,d=-1;for(;++d<o;)if(l=n[d],Array.isArray(i)){if("-"===l&&d===a)return void i.push(t);if(c=u(i,l),i.length>c){if(d===a){s=i[c],i[c]=t;break}i=i[c]}else if(d===a&&c===i.length){if(r)return void i.push(t)}else r&&(i=i[c]=d===a?t:{})}else{if(void 0===i[l]){if(r){if(d===a)return void(i[l]=t);if(-1!==u(i[l],n[d+1])){i=i[l]=[];continue}i=i[l]={};continue}return}if(d===a){s=i[l],i[l]=t;break}i=i[l]}return s},t.unsetValueAtPath=function(e,t){if(0===t.length)throw new Error("Cannot unset the root object; assign it directly.");if(void 0===e)throw new TypeError("Cannot unset values on undefined");let n=e;const r=t.length,i=t.length-1;let o,a,l,s=-1;for(;++s<r;)if(o=t[s],Array.isArray(n)){if(l=u(n,o),l>=n.length)return;if(s===i){a=n[l],delete n[l];break}n=n[l]}else{if(void 0===n[o])return;if(s===i){a=n[o],delete n[o];break}n=n[o]}return a},t.looksLikeFragment=c,t.pickDecoder=d,t.decodePtrInit=function(e){return Array.isArray(e)?e.slice(0):d(e)(e)}})),d=e((function(e,t){function n(e){return"object"==typeof e&&null!==e}function r(e){return n(e)&&!d.isReference(e)}function i(e,t,i){const o=new Map,a=[{obj:e,path:[]}];for(;a.length;){const{obj:e,path:l}=a.shift();if(t(i(l),e),r(e))if(o.set(e,new s(c.encodeUriFragmentIdentifier(l))),Array.isArray(e)){let t=-1;const r=e.length;for(;++t<r;){const r=e[t];n(r)&&o.has(r)?a.push({obj:new d(o.get(r)),path:l.concat([t+""])}):a.push({obj:r,path:l.concat([t+""])})}}else{const t=Object.keys(e),r=t.length;let i=-1;for(;++i<r;){const r=e[t[i]];n(r)&&o.has(r)?a.push({obj:new d(o.get(r)),path:l.concat(t[i])}):a.push({obj:r,path:l.concat(t[i])})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.JsonReference=t.JsonPointer=void 0;const o=Symbol("pointer"),a=Symbol("fragmentId"),l=Symbol("getter");class s{constructor(e){this.path=c.decodePtrInit(e)}static create(e){return new s(e)}static has(e,t){return("string"==typeof t||Array.isArray(t))&&(t=new s(t)),t.has(e)}static get(e,t){return("string"==typeof t||Array.isArray(t))&&(t=new s(t)),t.get(e)}static set(e,t,n,r=!1){return("string"==typeof t||Array.isArray(t))&&(t=new s(t)),t.set(e,n,r)}static unset(e,t){return("string"==typeof t||Array.isArray(t))&&(t=new s(t)),t.unset(e)}static decode(e){return c.pickDecoder(e)(e)}static visit(e,t,n=!1){i(e,t,n?c.encodeUriFragmentIdentifier:c.encodePointer)}static listPointers(e){const t=[];return i(e,(e,n)=>{t.push({pointer:e,value:n})},c.encodePointer),t}static listFragmentIds(e){const t=[];return i(e,(e,n)=>{t.push({fragmentId:e,value:n})},c.encodeUriFragmentIdentifier),t}static flatten(e,t=!1){const n={};return i(e,(e,t)=>{n[e]=t},t?c.encodeUriFragmentIdentifier:c.encodePointer),n}static map(e,t=!1){const n=new Map;return i(e,n.set.bind(n),t?c.encodeUriFragmentIdentifier:c.encodePointer),n}get(e){return this[l]||(this[l]=c.compilePointerDereference(this.path)),this[l](e)}set(e,t,n=!1){return c.setValueAtPath(e,t,this.path,n)}unset(e){return c.unsetValueAtPath(e,this.path)}has(e){return void 0!==this.get(e)}concat(e){return new s(this.path.concat(e instanceof s?e.path:c.decodePtrInit(e)))}get pointer(){return void 0===this[o]&&(this[o]=c.encodePointer(this.path)),this[o]}get uriFragmentIdentifier(){return this[a]||(this[a]=c.encodeUriFragmentIdentifier(this.path)),this[a]}toString(){return this.pointer}}t.JsonPointer=s;const u=Symbol("pointer");class d{constructor(e){this[u]=e instanceof s?e:new s(e),this.$ref=this[u].uriFragmentIdentifier}static isReference(e){if(!e)return!1;const t=e;return"string"==typeof t.$ref&&"function"==typeof t.resolve}resolve(e){return this[u].get(e)}pointer(){return this[u]}toString(){return this.$ref}}t.JsonReference=d})),m=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),s.__exportStar(u,t),s.__exportStar(c,t),s.__exportStar(d,t)}));function f(e,t,n){return Array.isArray(e)?e.map(t):n()}return function(e,t){return t.reduce((e,t)=>function(e,t){if(!e)return e;const{$ref:n}=t;if(n)return f(e,e=>"#/"===n?e:m.JsonPointer.get(e,n),()=>"#/"===n?e:m.JsonPointer.get(e,n));{function r(e){const n={};return Object.keys(t).forEach(r=>{const i=t[r].$ref||{};let o="";o="#"===r.charAt(0)?"#/"===r?e:m.JsonPointer.get(e,r):r,n[o]="#/"===i?e:m.JsonPointer.get(e,i)}),n}return f(e,e=>r(e),()=>r(e))}}(e,t),e)}}()})),y={components:{ValidationObserver:n,ValidationProvider:r},methods:{getRuleString:function(e,t,n){var r="";return this.required&&(r+="input"===e||"select"===e||"array"===e?"required":"requiredOb"),t&&(r+=r?"|":"",r+="max_value:".concat(t)),n&&(r+=r?"|":"",r+="min_value:".concat(n)),r}}},g=m({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isDataFetching?[n("ub-loader-element")]:e._e(),e._v(" "),[e.resolvedIfResponse?n("div",{class:e.element.customClass},["tabs"===e.element.type?n("ub-tab-select",{attrs:{schema:e.schema,tabs:e.element.tabs},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}}):"input"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("input",e.element.maxValue,e.element.minValue),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-simple-input",{attrs:{label:e.element.label,schema:e.schema,computedResponse:e.computedResponse,"hide-value":e.element.hideValue,required:e.required,disabled:e.disabled,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,2669889316)}):"textarea"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("input"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-simple-textarea",{attrs:{label:e.element.label,disabled:e.disabled,schema:e.schema,computedResponse:e.computedResponse,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,313067635)}):"editor"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("input"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-code-editor",{attrs:{label:e.element.label,disabled:e.disabled,schema:e.schema,computedResponse:e.computedResponse,language:e.element.language,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,2916615485)}):"select"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("select"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-simple-select-box",{attrs:{label:e.element.label,"add-new-button":e.resolveAddNewButton,options:e.element.options||e.modifiedApiResponse||[],computedResponse:e.computedResponse,schema:e.schema,required:e.required,disabled:e.disabled,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"allow-user-defined-option":e.element.allowUserDefinedOption,"context-object":e.ctx,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,3215372322)}):"multiselect"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("select"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-multi-select-box",{attrs:{label:e.element.label,"add-new-button":e.resolveAddNewButton,options:e.element.options||e.modifiedApiResponse||[],computedResponse:e.computedResponse,schema:e.schema,required:e.required,disabled:e.disabled,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"allow-user-defined-option":e.element.allowUserDefinedOption,"context-object":e.ctx,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,2513122981)}):"anchor"===e.element.type?n("ub-anchor-element",{attrs:{disabled:e.disabled,label:e.element.label,url:e.resolveHrefUrl,target:e.element.target}}):"checkbox"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("array"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-check-radio",{attrs:{label:e.element.label,method:"checkbox",identifier:e.identifier,options:e.element.options||e.modifiedApiResponse,computedResponse:e.computedResponse,"has-description":e.element.hasDescription,disabled:e.disabled,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx,schema:e.schema,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,4074527587)}):"radio"===e.element.type?n("validation-provider",{attrs:{rules:e.getRuleString("select"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-check-radio",{attrs:{label:e.element.label,method:"radio",identifier:e.identifier,options:e.element.options||e.modifiedApiResponse,computedResponse:e.computedResponse,"has-description":e.element.hasDescription,disabled:e.disabled,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx,schema:e.schema,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,2602335457)}):"configure-options"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("array"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-configure-options",{attrs:{label:e.element.label,identifier:e.identifier,options:e.element.options||e.modifiedApiResponse,"has-description":e.element.hasDescription,"has-dependencies":e.element.hasDependencies,owner:e.element.owner,cluster:e.element.cluster,disabled:e.disabled,schema:e.schema,required:e.required,errors:r,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,3343060139)}):"switch"===e.element.type?n("ub-simple-switch",{attrs:{identifier:e.identifier,computedResponse:e.computedResponse,label:e.element.label,disabled:e.disabled,schema:e.schema},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}}):"key-value-input-form"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("object"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-key-value-input-form",{attrs:{label:e.element.label,ui:e.element,"is-array":e.element.isArray,disabled:e.disabled,schema:e.schema,"whole-schema":e.wholeSchema,computedResponse:e.computedResponse,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"new-item-validator":e.element.newItemValidator,"context-object":e.ctx,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,3459644913)}):"key-text-area-input-form"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("object"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-key-text-area-input-form",{attrs:{label:e.element.label,ui:e.element,"is-array":e.element.isArray,disabled:e.disabled,schema:e.schema,"whole-schema":e.wholeSchema,computedResponse:e.computedResponse,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,3702100475)}):"list-input-form"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("array"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-list-input-form",{attrs:{label:e.element.label,ui:e.element,disabled:e.disabled,"reusable-element-ctx":e.reusableElementCtx,schema:e.schema,"whole-schema":e.wholeSchema,computedResponse:e.computedResponse,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx,required:e.required,errors:r},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,459512313)}):"single-step-form-array"===e.element.type?n("validation-provider",{attrs:{mode:"eager",rules:e.getRuleString("array"),name:e.elementLabelText,slim:""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.errors;return[n("ub-single-step-form-array",{attrs:{label:e.element.label,ui:e.element,"reusable-element-ctx":e.reusableElementCtx,disabled:e.disabled,schema:e.schema,"whole-schema":e.wholeSchema,computedResponse:e.computedResponse,"new-item-validator":e.element.newItemValidator,"individual-item-disability-checker":e.resolveIndividualItemDisablityChecker,"context-object":e.ctx,"add-form-label":e.element.addFormLabel,"table-contents":e.element.tableContents,required:e.required,errors:r,"hide-form":e.element.hideForm,"chart-url":e.chartUrl,"is-create-disabled":e.element.isCreateDisabled},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})]}}],null,!1,4031132140)}):"label-element"===e.element.type?n("ub-label-element",{attrs:{label:e.element.label,"custom-class":e.element.customClass}}):"reusable-element"===e.element.type?n("ub-reusable-element",{attrs:{label:e.element.label,"show-label":e.element.show_label,disabled:e.disabled,ui:e.element,"reusable-element-ctx":e.calcReusableElementCtx(),"parent-discriminator":Object.assign({},e.deepClonedDiscriminator,{$isParentSingleStepFormArray:e.isParentSingleStepFormArray}),schema:e.schema,"whole-schema":e.wholeSchema,"whole-model":e.wholeModel,"context-object":e.ctx,"hide-form":e.element.hideForm,"chart-url":e.chartUrl},on:{"update-model-value":e.updateModelValueEvent},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}}):n("ub-single-step-form",{attrs:{label:e.element.label,"show-label":e.element.show_label,disabled:e.disabled,ui:e.element,"reusable-element-ctx":e.reusableElementCtx,"parent-discriminator":Object.assign({},e.discriminator,{$isParentSingleStepFormArray:e.isParentSingleStepFormArray}),schema:e.schema,"whole-schema":e.wholeSchema,"whole-model":e.wholeModel,"context-object":e.ctx,"toggle-option":e.element.toggleOption,"hide-form":e.element.hideForm,"chart-url":e.chartUrl},on:{"update-model-value":e.updateModelValueEvent},model:{value:e.modelValue,callback:function(t){e.modelValue=t},expression:"modelValue"}})],1):e._e()]],2)},staticRenderFns:[]},void 0,{name:"ub-form-element",mixins:[y],components:{UbTabSelect:function(){return import("./TabSelect-9bb5bbe4.js").then((function(e){return e.default}))},UbSimpleInput:function(){return import("./SimpleInput-c2395e0b.js").then((function(e){return e.default}))},UbSimpleTextarea:function(){return import("./SimpleTextarea-35a5fa7d.js").then((function(e){return e.default}))},UbSimpleSelectBox:function(){return import("./SimpleSelectBox-bd5490b7.js").then((function(e){return e.default}))},UbAnchorElement:function(){return import("./AnchorElement-e94cbaa8.js").then((function(e){return e.default}))},UbCheckRadio:function(){return import("./CheckRadio-4265d885.js").then((function(e){return e.default}))},UbSimpleSwitch:function(){return import("./SimpleSwitch-17b7bae6.js").then((function(e){return e.default}))},UbCodeEditor:function(){return import("./CodeEditor-5f2f0251.js").then((function(e){return e.default}))},UbKeyValueInputForm:function(){return import("./KeyValueInputForm-15b0bda2.js").then((function(e){return e.default}))},UbListInputForm:function(){return import("./ListInputForm-46160ddf.js").then((function(e){return e.default}))},UbLabelElement:function(){return import("./LabelElement-d1b528f2.js").then((function(e){return e.default}))},UbConfigureOptions:function(){return import("./ConfigureOptions-5ff4b36a.js").then((function(e){return e.default}))},UbMultiSelectBox:function(){return import("./MultiSelectBox-770e3ebb.js").then((function(e){return e.default}))},UbLoaderElement:function(){return import("./LoaderElement-e5105f7b.js").then((function(e){return e.default}))},UbSingleStepFormArray:function(){return import("./SingleStepFormArray-4c21aac5.js").then((function(e){return e.S})).then((function(e){return e.default}))},UbSingleStepForm:function(){return import("./SingleStepForm-e4a2064c.js").then((function(e){return e.S})).then((function(e){return e.default}))},UbKeyTextAreaInputForm:function(){return import("./KeyTextAreaInputForm-fe57d6df.js").then((function(e){return e.default}))},UbReusableElement:function(){return import("./ReusableElement-b3b5dbcb.js").then((function(e){return e.default}))}},props:{element:{type:Object,default:function(){return{}}},schema:{type:Object,default:function(){return{}}},wholeSchema:{type:Object,default:function(){return{}}},value:{type:null,default:""},wholeModel:{type:null,default:""},discriminator:{type:Object,default:function(){return{}}},disabledProp:{type:Boolean,default:!1},reusableElementCtx:{type:Object,default:function(){return{}}},chartUrl:{type:String,default:""}},data:function(){return{apiResponse:null,computedResponse:null,dependencies:{},resolvedIfResponse:!1,resolvedDisabilityResponse:null,required:null,pendingStatus:{apiCall:!1,computed:!1,disabilityChecking:!1},unWatchers:{}}},destroyed:function(){Object.values(this.unWatchers).forEach((function(e){e()}))},computed:i(i({},o({modelJson:"wizard/model",uiJson:"wizard/ui",store$get:"wizard/store$get",functions:"wizard/functions"})),{},{deepClonedDiscriminator:function(){return i({},a(this.discriminator))},isParentSingleStepFormArray:function(){return(this.discriminator||{}).$isParentSingleStepFormArray||this.$parent&&this.$parent.$parent&&this.$parent.$parent.$options&&"ub-single-step-form-array"===this.$parent.$parent.$options.name},ctx:function(){var e=this;return{model:this.getPrefixedModel(this.modelJson),elementSchema:a(this.schema),rootSchema:a(this.wholeSchema),rootModel:a(this.wholeModel),elementUi:a(this.element),rootUi:a(this.uiJson),discriminator:a(this.discriminator),axios:this.$axios,qs:h,getValue:l,setDiscriminatorValue:this.setDiscriminatorValue,commit:function(t,n){return e.commitWithContext(t,n)},watchDependency:this.watchDependency,loadLocalFile:this.loadLocalFile,loadLocalJsModule:this.loadLocalJsModule,storeGet:this.store$get,updateModelValue:this.updateModelValue,route:this.$route,reusableElementCtx:{alias:this.reusableElementCtx.alias||"",dataContext:a(this.reusableElementCtx.dataContext||{}),functionCallbacks:this.reusableElementCtx.functionCallbacks||{}}}},keepEmpty:function(){return this.element.keepEmpty||!1},disabled:function(){return this.disabledProp||!0===this.element.disabled||this.resolvedDisabilityResponse},identifier:function(){return"".concat(this.element.schema&&(this.element.schema.$model||this.element.schema.$ref||"identifier"),"-").concat(JSON.stringify((new Date).valueOf()))},isDataFetching:function(){return Object.values(this.pendingStatus).reduce((function(e,t){return e||t}),!1)},resolveCondition:function(){if(this.element.if)if("object"===s(this.element.if))try{var e=this.element.if,t=e.params,n=e.expression,r=this.varaibleDeclaringString(t);return new Function(r+"return ".concat(n))()}catch(e){console.log(e)}else{JSON.stringify(this.dependencies);try{var i=this.element.if,o=new Date;return"".concat(i,"::").concat(o.getTime())}catch(e){console.log(e)}}return!0},resolveComputed:function(){if(this.element.computed){JSON.stringify(this.dependencies);var e=this.element.computed,t=new Date;return"".concat(e,"::").concat(t.getTime())}return null},resolvedDisability:function(){if("string"==typeof this.element.disabled){JSON.stringify(this.dependencies);var e=this.element.disabled,t=new Date;return"".concat(e,"::").concat(t.getTime())}return this.element.disabled},resolvedRequirements:function(){if("string"==typeof this.element.required){JSON.stringify(this.dependencies);var e=this.element.required,t=new Date;return"".concat(e,"::").concat(t.getTime())}return"boolean"==typeof this.element.required?this.element.required:this.isRequired(this.element.schema)},resolveIndividualItemDisablityChecker:function(){if(this.element.individualItemDisabilityCheck){JSON.stringify(this.dependencies);var e=this.element.individualItemDisabilityCheck,t=new Date;return"".concat(e,"::").concat(t.getTime())}return null},resolveAPIUrlorFunc:function(){if(this.element.fetch){if("object"===s(this.element.fetch)){var e=this.element.fetch,t=e.params,n=e.path;return new Function("".concat(this.varaibleDeclaringString(t),"return `").concat(n,"`"))()}JSON.stringify(this.dependencies);var r=this.element.fetch,i=new Date;return"".concat(r,"::").concat(i.getTime())}return null},resolveHrefUrl:function(){if(this.element.url){var e=this.element.url,t=e.params,n=e.path;return new Function("".concat(this.varaibleDeclaringString(t),"return `").concat(n,"`"))()}return null},resolveAddNewButton:function(){if(this.element.add_new_button){var e=this.element.add_new_button.url,t=e.params,n=e.path,r=new Function("".concat(this.varaibleDeclaringString(t),"return `").concat(n,"`"));return i(i({},this.element.add_new_button),{},{url:r()})}},modifiedApiResponse:function(){try{var e=(this.element.fetch||{}).filters;return e?v(this.apiResponse,e):this.apiResponse}catch(e){return console.log(e),e}},modelValue:{get:function(){return null===this.value||void 0===this.value?"":this.decode(this.value)},set:function(e){this.$emit("input",this.encode(e))}},elementLabelText:function(){var e;return this.$ubt((null===(e=this.element.label)||void 0===e?void 0:e.text)||"label")}}),watch:{resolveComputed:{immediate:!0,handler:function(e){var t=this;return f(p.mark((function n(){var r;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e||!e.includes("::")){n.next=9;break}return r=e.split("::").shift(),t.pendingStatus.computed=!0,n.next=5,t.performFuncCall(r);case 5:t.computedResponse=n.sent,t.pendingStatus.computed=!1,n.next=10;break;case 9:t.computedResponse=null;case 10:case"end":return n.stop()}}),n)})))()}},resolveAPIUrlorFunc:{immediate:!0,handler:function(e){var t=this;return f(p.mark((function n(){var r;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e){n.next=15;break}if(!e.includes("::")){n.next=10;break}return r=e.split("::").shift(),t.pendingStatus.apiCall=!0,n.next=6,t.performFuncCall(r);case 6:t.apiResponse=n.sent,t.pendingStatus.apiCall=!1,n.next=15;break;case 10:return t.pendingStatus.apiCall=!0,n.next=13,t.performApiCall(e);case 13:t.apiResponse=n.sent,t.pendingStatus.apiCall=!1;case 15:case"end":return n.stop()}}),n)})))()}},resolveCondition:{immediate:!0,handler:function(e){var t=this;return f(p.mark((function n(){var r;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e||"string"!=typeof e||!e.includes("::")){n.next=7;break}return r=e.split("::").shift(),n.next=4,t.performFuncCall(r);case 4:t.resolvedIfResponse=n.sent,n.next=8;break;case 7:t.resolvedIfResponse=e;case 8:case"end":return n.stop()}}),n)})))()}},resolvedDisability:{immediate:!0,handler:function(e){var t=this;return f(p.mark((function n(){var r;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e||"string"!=typeof e||!e.includes("::")){n.next=9;break}return r=e.split("::").shift(),t.pendingStatus.disabilityChecking=!0,n.next=5,t.performFuncCall(r);case 5:t.resolvedDisabilityResponse=n.sent,t.pendingStatus.disabilityChecking=!1,n.next=10;break;case 9:t.resolvedDisabilityResponse=e;case 10:case"end":return n.stop()}}),n)})))()}},resolvedRequirements:{immediate:!0,handler:function(e){var t=this;return f(p.mark((function n(){var r;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e||"string"!=typeof e||!e.includes("::")){n.next=7;break}return r=e.split("::").shift(),n.next=4,t.performFuncCall(r);case 4:t.required=n.sent,n.next=8;break;case 7:t.required=e;case 8:case"end":return n.stop()}}),n)})))()}},keepEmpty:{immediate:!0,handler:function(e){if(e){var t,n=(null===(t=this.element)||void 0===t?void 0:t.schema).$ref,r=n&&n.split("#")[1]||"",i=r&&r.replace(/\/properties/g,"")||"";this.$store.commit("wizard/keepEmptyModel$update",{path:i,value:!0,force:!0})}}},modelValue:{deep:!0,handler:function(){var e=this;return f(p.mark((function t(){return p.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.executeOnChange();case 2:case"end":return t.stop()}}),t)})))()}}},methods:{varaibleDeclaringString:function(e){var t=this,n="";return e&&Object.keys(e).forEach((function(r){var i="",o=e[r].$ref;if(o){var s=o.split("#"),u=b(s,2),c=u[0],d=u[1];"model"===c?i=l(a(t.modelJson),d):"discriminator"===c?i=l(t.discriminator,d):"store"===c&&(i=t.store$get(d))}else i=e[r];"string"==typeof i&&(i="'".concat(i,"'")),n+="const ".concat(r," = ").concat(i||"''",";")})),n},getPostData:function(e){return new Function("".concat(this.varaibleDeclaringString(e),"return {").concat(Object.keys(e).join(","),"}"))()},performApiCall:function(e){var t=this;return f(p.mark((function n(){var r,i,o,a,l,s,u,c;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,r=t.element.fetch,i=r.method,o=r.data,a={},"get"!==i){n.next=9;break}return n.next=6,t.$axios.get(e);case 6:a=n.sent,n.next=35;break;case 9:if("post"!==i){n.next=24;break}if(l=o.type,s=o.params,u=t.getPostData(s),"application/json"!==l){n.next=18;break}return n.next=15,t.$axios.post(e,u);case 15:a=n.sent,n.next=22;break;case 18:if("application/x-www-form-urlencoded"!==l){n.next=22;break}return n.next=21,t.$axios.post(e,h.stringify(u),{headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 21:a=n.sent;case 22:n.next=35;break;case 24:if("load"!==i){n.next=35;break}return n.prev=25,n.next=28,t.loadLocalFile(e);case 28:return c=n.sent,n.abrupt("return",c);case 32:return n.prev=32,n.t0=n.catch(25),n.abrupt("return",n.t0);case 35:return n.abrupt("return",a.data);case 38:n.prev=38,n.t1=n.catch(0),console.log(n.t1);case 41:case"end":return n.stop()}}),n,null,[[0,38],[25,32]])})))()},loadLocalFile:function(e){return f(p.mark((function t(){var n;return p.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,import("@/assets/wizard-resources/"+e.replace(/^\//,""));case 3:return n=t.sent,t.abrupt("return",n.default);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},loadLocalJsModule:function(e){return f(p.mark((function t(){var n;return p.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,import("@/assets/wizard-resources/"+e.replace(/^\//,""));case 3:return n=t.sent,t.abrupt("return",n);case 7:throw t.prev=7,t.t0=t.catch(0),console.log(t.t0),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))()},performFuncCall:function(e){var t=this;return f(p.mark((function n(){var r,i,o,a,s;return p.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,r=e.split("|"),i=r.shift(),o=u(r),void 0!==(a=l(t.functions,i))){n.next=9;break}throw new Error('function "'.concat(i,'" not declared in your functions.js file'));case 9:return n.next=11,a.apply(void 0,[t.ctx].concat(u(o)));case 11:return s=n.sent,n.abrupt("return",s);case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(0),console.log(n.t0);case 18:case"end":return n.stop()}}),n,null,[[0,15]])})))()},watchDependency:function(e){var t=this,n=e.split("#"),r=b(n,2),i=r[0],o=r[1],a="",l="";"model"===i?(a+="modelJson",l=this.updatePathWithPrefix(o)):"discriminator"===i?(a+="discriminator",l=o):"rootModel"===i?(a="wholeModel",l=o):"data"===i&&(a="reusableElementCtx.dataContext",l=o);var s=a+l.replace(/\//g,"."),u=this.$watch(s,(function(n){var r=t.dependencies[e]||"";JSON.stringify(r)!==JSON.stringify(n)&&t.$set(t.dependencies,e,n)}),{deep:!0,immediate:!0});this.$set(this.unWatchers,e,u)},executeOnChange:function(){var e=this;return f(p.mark((function t(){var n;return p.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=e.element.onChange)){t.next=4;break}return t.next=4,e.performFuncCall(n);case 4:case"end":return t.stop()}}),t)})))()},encode:function(e){var t=this.element.encoder;return t?l(this.functions,t)(this.ctx,e):e},decode:function(e){var t=this.element.decoder;return t?l(this.functions,t)(this.ctx,e):e},updateModelValueEvent:function(e){this.$emit("update-model-value",e)},updateModelValue:function(e,t,n){this.$emit("update-model-value",{path:e,isDelete:t,value:n})},isEmptyValue:function(e){var t=this;if(e&&"object"===s(e)){if(Array.isArray(e))return!e.length||e.reduce((function(e,n){return e&&t.isEmptyValue(n)}),!0);var n=Object.keys(e);return!n.length||n.reduce((function(n,r){return n&&t.isEmptyValue(e[r])}),!0)}return null==e||""===e},getNonRequiredParentValue:function(e){var t=e.split("/"),n=t.slice(-1);if(t.length<=3)return!0;if("items"===n[0]){t.pop();var r="".concat(t.join("/"),"/type").split("#")[1];return"array"===(c(this.wholeSchema,"#".concat(r))||"")}var i=t.pop();t.pop();var o="".concat(t.join("/"),"/required").split("#")[1];if((c(this.wholeSchema,"#".concat(o))||[]).includes(i))return this.getNonRequiredParentValue(t.join("/"));var a="".concat(t.join("/"),"/properties/").concat(i).replace(/\/properties/g,"").split("#")[1];return!this.isEmptyValue(l(this.modelJson,a))},isRequired:function(e){if(e){var t=e.$ref;if(t){var n=t.split("/"),r=n.pop();n.pop();var i="".concat(n.join("/"),"/required").split("#"),o=b(i,2),a=o[0],l=o[1],s=!0,u=[];return a?"schema"===a?(u=c(this.wholeSchema,"#".concat(l))||[],s=this.getNonRequiredParentValue(n.join("/"))):"discriminator"===a&&(u=c(this.discriminator,"#".concat(l))||[]):u=c(this.wholeSchema,"#".concat(l))||[],u.includes(r)&&s}return!1}return!1},calcReusableElementCtx:function(){var e=(this.reusableElementCtx||{}).alias,t=(this.element&&this.element.schema||{}).$ref,n=t&&t.split("#")[1]||"";return i(i({},this.reusableElementCtx),{},{alias:"".concat(e||"").concat(e?"/":"").concat(this.element.alias),prefixPath:n&&n.replace(/\/properties/g,"")||"",chart:this.element.chart||{}})},getPrefixedModel:function(e){var t=(this.reusableElementCtx||{}).prefixPath;return a(t?l(e,t):e)},updatePathWithPrefix:function(e){var t=(this.reusableElementCtx||{}).prefixPath;if(t){var n=t.trim().replace(/^#?\/|\/$/g,""),r=e.trim().replace(/^#?\/|\/$/g,"");return"/".concat(n,"/").concat(r)}return e},commitWithContext:function(e,t){if("wizard/model$update"===e)return this.$store.commit(e,i(i({},t),{},{path:this.updatePathWithPrefix(t.path)}));if("wizard/model$delete"===e)return this.$store.commit(e,this.updatePathWithPrefix(t));if("wizard/showSteps$set"===e||"wizard/showSteps$update"===e)return this.$store.commit(e,t);throw Error("Mutation ".concat(e," can not be called from function js"))},setDiscriminatorValue:function(e,t){d(this.discriminator,e,t,!1)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),w=Object.freeze({__proto__:null,default:g});export{w as F,y as v};