@dativa-lv/lx-builders 2.1.11 → 2.2.3

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 +1 @@
1
- (function(Se,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@dativa-lv/lx-ui")):typeof define=="function"&&define.amd?define(["exports","vue","@dativa-lv/lx-ui"],t):(Se=typeof globalThis<"u"?globalThis:Se||self,t(Se.VueCarbonComponents={},Se.Vue,Se.lxUi))})(this,(function(Se,t,r){"use strict";let xt={};const ft=e=>{xt=e},yt=()=>xt,Ie=["a:not([disabled])","button:not([disabled])","input:not([disabled])","textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function ht(e){return e?[...e.matches(Ie.join(", "))&&!e.disabled&&e.offsetParent!==null?[e]:[],...e.querySelectorAll(Ie.join(", "))].filter(s=>!s.disabled&&s.offsetParent!==null):[]}function Ht(e,y){let s=y?e.nextElementSibling:e.previousElementSibling;for(;s;){const x=ht(s);if(x.length>0)return y?x[0]:x[x.length-1];s=y?s.nextElementSibling:s.previousElementSibling}return null}function Gt(e,y){let s=e.parentElement;for(;s&&s!==document.body;){let x=y?s.nextElementSibling:s.previousElementSibling;for(;x;){const n=ht(x);if(n.length>0)return y?n[0]:n[n.length-1];x=y?x.nextElementSibling:x.previousElementSibling}s=s.parentElement}return null}function Jt(e,y=!0){if(!e)return;const s=Array.from(document.querySelectorAll(Ie.join(", "))).filter(n=>!n.disabled&&n.offsetParent!==null),x=Ht(e,y)||Gt(e,y)||(y?s[0]:s[s.length-1]);x&&x.focus()}function Ee(e,y,s){let x=e??{};return s||(x=e?JSON.parse(JSON.stringify(e)):{}),Object.keys(y).forEach(n=>{typeof y[n]=="object"?x[n]=Ee(x[n],y[n],!0):x[n]===void 0&&(x[n]=y[n])}),x}const De=()=>({getGlobals:()=>{const y=yt();return y||null}});function gt(e,y){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);y&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,x)}return s}function Te(e){for(var y=1;y<arguments.length;y++){var s=arguments[y]!=null?arguments[y]:{};y%2?gt(Object(s),!0).forEach(function(x){Wt(e,x,s[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):gt(Object(s)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(s,x))})}return e}function Wt(e,y,s){return y in e?Object.defineProperty(e,y,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[y]=s,e}function kt(e){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((s,x)=>(y.includes(x)||(s[x]=t.unref(e[x])),s),{})}function He(e){return typeof e=="function"}function Qt(e){return t.isReactive(e)||t.isReadonly(e)}function bt(e,y,s){let x=e;const n=y.split(".");for(let S=0;S<n.length;S++){if(!x[n[S]])return s;x=x[n[S]]}return x}function _e(e,y,s){return t.computed(()=>e.some(x=>bt(y,x,{[s]:!1})[s]))}function St(e,y,s){return t.computed(()=>e.reduce((x,n)=>{const S=bt(y,n,{[s]:!1})[s]||[];return x.concat(S)},[]))}function Bt(e,y,s,x){return e.call(x,t.unref(y),t.unref(s),x)}function pt(e){return e.$valid!==void 0?!e.$valid:!e}function Yt(e,y,s,x,n,S,E){let{$lazy:f,$rewardEarly:k}=n,T=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],v=arguments.length>8?arguments[8]:void 0,M=arguments.length>9?arguments[9]:void 0,H=arguments.length>10?arguments[10]:void 0;const q=t.ref(!!x.value),z=t.ref(0);s.value=!1;const $=t.watch([y,x].concat(T,H),()=>{if(f&&!x.value||k&&!M.value&&!s.value)return;let C;try{C=Bt(e,y,v,E)}catch(D){C=Promise.reject(D)}z.value++,s.value=!!z.value,q.value=!1,Promise.resolve(C).then(D=>{z.value--,s.value=!!z.value,S.value=D,q.value=pt(D)}).catch(D=>{z.value--,s.value=!!z.value,S.value=D,q.value=!0})},{immediate:!0,deep:typeof y=="object"});return{$invalid:q,$unwatch:$}}function Zt(e,y,s,x,n,S,E,f){let{$lazy:k,$rewardEarly:T}=x;const v=()=>({}),M=t.computed(()=>{if(k&&!s.value||T&&!f.value)return!1;let H=!0;try{const q=Bt(e,y,E,S);n.value=q,H=pt(q)}catch(q){n.value=q}return H});return{$unwatch:v,$invalid:M}}function Xt(e,y,s,x,n,S,E,f,k,T,v){const M=t.ref(!1),H=e.$params||{},q=t.ref(null);let z,$;e.$async?{$invalid:z,$unwatch:$}=Yt(e.$validator,y,M,s,x,q,n,e.$watchTargets,k,T,v):{$invalid:z,$unwatch:$}=Zt(e.$validator,y,s,x,q,n,k,T);const C=e.$message;return{$message:He(C)?t.computed(()=>C(kt({$pending:M,$invalid:z,$params:kt(H),$model:y,$response:q,$validator:S,$propertyPath:f,$property:E}))):C||"",$params:H,$pending:M,$invalid:z,$response:q,$unwatch:$}}function Ut(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const y=t.unref(e),s=Object.keys(y),x={},n={},S={};let E=null;return s.forEach(f=>{const k=y[f];switch(!0){case He(k.$validator):x[f]=k;break;case He(k):x[f]={$validator:k};break;case f==="$validationGroups":E=k;break;case f.startsWith("$"):S[f]=k;break;default:n[f]=k}}),{rules:x,nestedValidators:n,config:S,validationGroups:E}}const It="__root";function _t(e,y,s,x,n,S,E,f,k){const T=Object.keys(e),v=x.get(n,e),M=t.ref(!1),H=t.ref(!1),q=t.ref(0);if(v){if(!v.$partial)return v;v.$unwatch(),M.value=v.$dirty.value}const z={$dirty:M,$path:n,$touch:()=>{M.value||(M.value=!0)},$reset:()=>{M.value&&(M.value=!1)},$commit:()=>{}};return T.length?(T.forEach($=>{z[$]=Xt(e[$],y,z.$dirty,S,E,$,s,n,k,H,q)}),z.$externalResults=t.computed(()=>f.value?[].concat(f.value).map(($,C)=>({$propertyPath:n,$property:s,$validator:"$externalResults",$uid:`${n}-externalResult-${C}`,$message:$,$params:{},$response:null,$pending:!1})):[]),z.$invalid=t.computed(()=>{const $=T.some(C=>t.unref(z[C].$invalid));return H.value=$,!!z.$externalResults.value.length||$}),z.$pending=t.computed(()=>T.some($=>t.unref(z[$].$pending))),z.$error=t.computed(()=>z.$dirty.value?z.$pending.value||z.$invalid.value:!1),z.$silentErrors=t.computed(()=>T.filter($=>t.unref(z[$].$invalid)).map($=>{const C=z[$];return t.reactive({$propertyPath:n,$property:s,$validator:$,$uid:`${n}-${$}`,$message:C.$message,$params:C.$params,$response:C.$response,$pending:C.$pending})}).concat(z.$externalResults.value)),z.$errors=t.computed(()=>z.$dirty.value?z.$silentErrors.value:[]),z.$unwatch=()=>T.forEach($=>{z[$].$unwatch()}),z.$commit=()=>{H.value=!0,q.value=Date.now()},x.set(n,e,z),z):(v&&x.set(n,e,z),z)}function el(e,y,s,x,n,S,E){const f=Object.keys(e);return f.length?f.reduce((k,T)=>(k[T]=et({validations:e[T],state:y,key:T,parentKey:s,resultsCache:x,globalConfig:n,instance:S,externalResults:E}),k),{}):{}}function tl(e,y,s){const x=t.computed(()=>[y,s].filter(z=>z).reduce((z,$)=>z.concat(Object.values(t.unref($))),[])),n=t.computed({get(){return e.$dirty.value||(x.value.length?x.value.every(z=>z.$dirty):!1)},set(z){e.$dirty.value=z}}),S=t.computed(()=>{const z=t.unref(e.$silentErrors)||[],$=x.value.filter(C=>(t.unref(C).$silentErrors||[]).length).reduce((C,D)=>C.concat(...D.$silentErrors),[]);return z.concat($)}),E=t.computed(()=>{const z=t.unref(e.$errors)||[],$=x.value.filter(C=>(t.unref(C).$errors||[]).length).reduce((C,D)=>C.concat(...D.$errors),[]);return z.concat($)}),f=t.computed(()=>x.value.some(z=>z.$invalid)||t.unref(e.$invalid)||!1),k=t.computed(()=>x.value.some(z=>t.unref(z.$pending))||t.unref(e.$pending)||!1),T=t.computed(()=>x.value.some(z=>z.$dirty)||x.value.some(z=>z.$anyDirty)||n.value),v=t.computed(()=>n.value?k.value||f.value:!1),M=()=>{e.$touch(),x.value.forEach(z=>{z.$touch()})},H=()=>{e.$commit(),x.value.forEach(z=>{z.$commit()})},q=()=>{e.$reset(),x.value.forEach(z=>{z.$reset()})};return x.value.length&&x.value.every(z=>z.$dirty)&&M(),{$dirty:n,$errors:E,$invalid:f,$anyDirty:T,$error:v,$pending:k,$touch:M,$reset:q,$silentErrors:S,$commit:H}}function et(e){let{validations:y,state:s,key:x,parentKey:n,childResults:S,resultsCache:E,globalConfig:f={},instance:k,externalResults:T}=e;const v=n?`${n}.${x}`:x,{rules:M,nestedValidators:H,config:q,validationGroups:z}=Ut(y),$=Te(Te({},f),q),C=x?t.computed(()=>{const oe=t.unref(s);return oe?t.unref(oe[x]):void 0}):s,D=Te({},t.unref(T)||{}),J=t.computed(()=>{const oe=t.unref(T);return x?oe?t.unref(oe[x]):void 0:oe}),Y=_t(M,C,x,E,v,$,k,J,s),Z=el(H,C,v,E,$,k,J),K={};z&&Object.entries(z).forEach(oe=>{let[A,u]=oe;K[A]={$invalid:_e(u,Z,"$invalid"),$error:_e(u,Z,"$error"),$pending:_e(u,Z,"$pending"),$errors:St(u,Z,"$errors"),$silentErrors:St(u,Z,"$silentErrors")}});const{$dirty:d,$errors:o,$invalid:te,$anyDirty:me,$error:ye,$pending:G,$touch:O,$reset:b,$silentErrors:j,$commit:le}=tl(Y,Z,S),ie=x?t.computed({get:()=>t.unref(C),set:oe=>{d.value=!0;const A=t.unref(s),u=t.unref(T);u&&(u[x]=D[x]),t.isRef(A[x])?A[x].value=oe:A[x]=oe}}):null;x&&$.$autoDirty&&t.watch(C,()=>{d.value||O();const oe=t.unref(T);oe&&(oe[x]=D[x])},{flush:"sync"});async function se(){return O(),$.$rewardEarly&&(le(),await t.nextTick()),await t.nextTick(),new Promise(oe=>{if(!G.value)return oe(!te.value);const A=t.watch(G,()=>{oe(!te.value),A()})})}function be(oe){return(S.value||{})[oe]}function xe(){t.isRef(T)?T.value=D:Object.keys(D).length===0?Object.keys(T).forEach(oe=>{delete T[oe]}):Object.assign(T,D)}return t.reactive(Te(Te(Te({},Y),{},{$model:ie,$dirty:d,$error:ye,$errors:o,$invalid:te,$anyDirty:me,$pending:G,$touch:O,$reset:b,$path:v||It,$silentErrors:j,$validate:se,$commit:le},S&&{$getResultsForChild:be,$clearExternalResults:xe,$validationGroups:K}),Z))}class ll{constructor(){this.storage=new Map}set(y,s,x){this.storage.set(y,{rules:s,result:x})}checkRulesValidity(y,s,x){const n=Object.keys(x),S=Object.keys(s);return S.length!==n.length||!S.every(f=>n.includes(f))?!1:S.every(f=>s[f].$params?Object.keys(s[f].$params).every(k=>t.unref(x[f].$params[k])===t.unref(s[f].$params[k])):!0)}get(y,s){const x=this.storage.get(y);if(!x)return;const{rules:n,result:S}=x,E=this.checkRulesValidity(y,s,n),f=S.$unwatch?S.$unwatch:()=>({});return E?S:{$dirty:S.$dirty,$partial:!0,$unwatch:f}}}const Ge={COLLECT_ALL:!0,COLLECT_NONE:!1},wt=Symbol("vuelidate#injectChildResults"),Ct=Symbol("vuelidate#removeChildResults");function nl(e){let{$scope:y,instance:s}=e;const x={},n=t.ref([]),S=t.computed(()=>n.value.reduce((v,M)=>(v[M]=t.unref(x[M]),v),{}));function E(v,M){let{$registerAs:H,$scope:q,$stopPropagation:z}=M;z||y===Ge.COLLECT_NONE||q===Ge.COLLECT_NONE||y!==Ge.COLLECT_ALL&&y!==q||(x[H]=v,n.value.push(H))}s.__vuelidateInjectInstances=[].concat(s.__vuelidateInjectInstances||[],E);function f(v){n.value=n.value.filter(M=>M!==v),delete x[v]}s.__vuelidateRemoveInstances=[].concat(s.__vuelidateRemoveInstances||[],f);const k=t.inject(wt,[]);t.provide(wt,s.__vuelidateInjectInstances);const T=t.inject(Ct,[]);return t.provide(Ct,s.__vuelidateRemoveInstances),{childResults:S,sendValidationResultsToParent:k,removeValidationResultsFromParent:T}}function At(e){return new Proxy(e,{get(y,s){return typeof y[s]=="object"?At(y[s]):t.computed(()=>y[s])}})}let Lt=0;function $t(e,y){var s;let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(x=e,e=void 0,y=void 0);let{$registerAs:n,$scope:S=Ge.COLLECT_ALL,$stopPropagation:E,$externalResults:f,currentVueInstance:k}=x;const T=k||((s=t.getCurrentInstance())===null||s===void 0?void 0:s.proxy),v=T?T.$options:{};n||(Lt+=1,n=`_vuelidate_${Lt}`);const M=t.ref({}),H=new ll,{childResults:q,sendValidationResultsToParent:z,removeValidationResultsFromParent:$}=T?nl({$scope:S,instance:T}):{childResults:t.ref({})};if(!e&&v.validations){const C=v.validations;y=t.ref({}),t.onBeforeMount(()=>{y.value=T,t.watch(()=>He(C)?C.call(y.value,new At(y.value)):C,D=>{M.value=et({validations:D,state:y,childResults:q,resultsCache:H,globalConfig:x,instance:T,externalResults:f||T.vuelidateExternalResults})},{immediate:!0})}),x=v.validationsConfig||x}else{const C=t.isRef(e)||Qt(e)?e:t.reactive(e||{});t.watch(C,D=>{M.value=et({validations:D,state:y,childResults:q,resultsCache:H,globalConfig:x,instance:T??{},externalResults:f})},{immediate:!0})}return T&&(z.forEach(C=>C(M,{$registerAs:n,$scope:S,$stopPropagation:E})),t.onBeforeUnmount(()=>$.forEach(C=>C(n)))),t.computed(()=>Te(Te({},t.unref(M.value)),q.value))}function Ot(e,y){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);y&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,x)}return s}function Re(e){for(var y=1;y<arguments.length;y++){var s=arguments[y]!=null?arguments[y]:{};y%2?Ot(Object(s),!0).forEach(function(x){al(e,x,s[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ot(Object(s)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(s,x))})}return e}function al(e,y,s){return y in e?Object.defineProperty(e,y,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[y]=s,e}function Je(e){return typeof e=="function"}function tt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function We(e){return Je(e.$validator)?Re({},e):{$validator:e}}function jt(e){return typeof e=="object"?e.$valid:e}function Tt(e){return e.$validator||e}function il(e,y){if(!tt(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!tt(y)&&!Je(y))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const s=We(y);return s.$params=Re(Re({},s.$params||{}),e),s}function ol(e,y){if(!Je(e)&&typeof t.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!tt(y)&&!Je(y))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const s=We(y);return s.$message=e,s}function rl(e){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const s=We(e);return Re(Re({},s),{},{$async:!0,$watchTargets:y})}function cl(e){return{$validator(y){for(var s=arguments.length,x=new Array(s>1?s-1:0),n=1;n<s;n++)x[n-1]=arguments[n];return t.unref(y).reduce((S,E,f)=>{const k=Object.entries(E).reduce((T,v)=>{let[M,H]=v;const q=e[M]||{},z=Object.entries(q).reduce(($,C)=>{let[D,J]=C;const Z=Tt(J).call(this,H,E,f,...x),K=jt(Z);if($.$data[D]=Z,$.$data.$invalid=!K||!!$.$data.$invalid,$.$data.$error=$.$data.$invalid,!K){let d=J.$message||"";const o=J.$params||{};typeof d=="function"&&(d=d({$pending:!1,$invalid:!K,$params:o,$model:H,$response:Z})),$.$errors.push({$property:M,$message:d,$params:o,$response:Z,$model:H,$pending:!1,$validator:D})}return{$valid:$.$valid&&K,$data:$.$data,$errors:$.$errors}},{$valid:!0,$data:{},$errors:[]});return T.$data[M]=z.$data,T.$errors[M]=z.$errors,{$valid:T.$valid&&z.$valid,$data:T.$data,$errors:T.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:S.$valid&&k.$valid,$data:S.$data.concat(k.$data),$errors:S.$errors.concat(k.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:y=>{let{$response:s}=y;return s?s.$errors.map(x=>Object.values(x).map(n=>n.map(S=>S.$message)).reduce((n,S)=>n.concat(S),[])):[]}}}const ze=e=>{if(e=t.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let y in e)return!0;return!1}return!!String(e).length},lt=e=>(e=t.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function Pe(){for(var e=arguments.length,y=new Array(e),s=0;s<e;s++)y[s]=arguments[s];return x=>(x=t.unref(x),!ze(x)||y.every(n=>(n.lastIndex=0,n.test(x))))}var ee=Object.freeze({__proto__:null,forEach:cl,len:lt,normalizeValidatorObject:We,regex:Pe,req:ze,unwrap:t.unref,unwrapNormalizedValidator:Tt,unwrapValidatorResponse:jt,withAsync:rl,withMessage:ol,withParams:il});Pe(/^[a-zA-Z]*$/),Pe(/^[a-zA-Z0-9]*$/),Pe(/^\d*(\.\d+)?$/),Pe(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i);function dl(e){return y=>!ze(y)||lt(y)<=t.unref(e)}function Qe(e){return{$validator:dl(e),$message:y=>{let{$params:s}=y;return`The maximum length allowed is ${s.max}`},$params:{max:e,type:"maxLength"}}}function sl(e){return y=>!ze(y)||lt(y)>=t.unref(e)}function Ye(e){return{$validator:sl(e),$message:y=>{let{$params:s}=y;return`This field should be at least ${s.min} characters long`},$params:{min:e,type:"minLength"}}}function ml(e){return typeof e=="string"&&(e=e.trim()),ze(e)}var Pt={$validator:ml,$message:"Value is required",$params:{type:"required"}};Pe(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i);function ul(e){return y=>!ze(y)||(!/\s/.test(y)||y instanceof Date)&&+y>=+t.unref(e)}function Et(e){return{$validator:ul(e),$message:y=>{let{$params:s}=y;return`The minimum value allowed is ${s.min}`},$params:{min:e,type:"minValue"}}}function xl(e){return y=>!ze(y)||(!/\s/.test(y)||y instanceof Date)&&+y<=+t.unref(e)}var Dt=(e=>({$validator:xl(e),$message:y=>{let{$params:s}=y;return`The maximum value allowed is ${s.max}`},$params:{max:e,type:"maxValue"}}));Pe(/(^[0-9]*$)|(^-[0-9]+$)/),Pe(/^[-]?\d*(\.\d+)?$/);const fl=[{displayType:"stack",types:["object"],component:"stack"},{displayType:"autoComplete",types:["string","array","object"],component:"autoComplete"},{displayType:"button",types:["string","object"],component:"button"},{displayType:"camera",types:["string"],component:"camera"},{displayType:"fileViewer",types:["string"],component:"fileViewer"},{displayType:"flag",types:["string","object"],component:"flag"},{displayType:"icon",types:["string","object"],component:"icon"},{displayType:"illustration",types:["string","object"],component:"illustration"},{displayType:"link",types:["string","object"],component:"link"},{displayType:"contentSwitcher",types:["string"],component:"contentSwitcher"},{displayType:"markdown",types:["string"],component:"markdownTextArea"},{displayType:"personDisplay",types:["string","object","array"],component:"personDisplay"},{displayType:"qr",types:["string","object"],component:"qr"},{displayType:"qrScanner",types:["object"],component:"qrScanner"},{displayType:"richTextDisplay",types:["string","object"],component:"richTextDisplay"},{displayType:"stateDisplay",types:["string","object"],component:"stateDisplay"},{displayType:"steps",types:["string"],component:"steps"},{displayType:"visualPicker",types:["string","array"],component:"visualPicker"},{displayType:"dayInput",types:["integer","object"],component:"dayInput"},{displayType:"drawPad",types:["string"],component:"drawPad"},{displayType:"logoDisplay",types:["string","object"],component:"logoDisplay"},{displayType:"dropDownMenu",types:["string","object"],component:"dropDownMenu"},{displayType:"numberSlider",types:["integer"],component:"numberSlider"},{displayType:"rating",types:["integer","number"],component:"rating"},{displayType:"checkbox",types:["boolean"],component:"checkbox"},{displayType:"dataVisualizer",types:["array","object"],component:"dataVisualizer"},{displayType:"file",types:["array"],component:"file"},{displayType:"text",types:["string"],component:"text"},{displayType:"dateTimeRange",types:["object"],component:"dateTimeRange"}];function yl(e,y){return y.includes(e?.type)}function zt(e,y={}){const s=e?.lx?.displayType;if(!s||(y?.excludedDisplayTypes||[]).includes(s))return null;const n=fl.find(S=>S.displayType===s);return n&&yl(e,n.types)?n.component:null}const U={__name:"FormBuilderListItem",props:{item:{type:Object,default:()=>({})},itemValue:{type:Object,default:()=>({})},itemName:{type:String,default:""},useStyles:{type:Boolean,default:!1}},setup(e){function y(n){let S="";return n?.lx?.stackRow&&(S+=`grid-row: ${n?.lx?.stackRow};`),n?.lx?.stackColumn&&(S+=`grid-column: ${n?.lx?.stackColumn};`),S}function s(n){return n?.type==="boolean"?"bool":n?.type==="array"?"array":n?.type==="string"&&n?.format==="date"?"date":n?.type==="string"&&(n?.format==="dateTime"||n?.format==="date-time")?"dateTime":"default"}function x(n,S,E){return r.lxFormatUtils.formatValue(S?.[E]||n?.lx?.value,s(n),n?.lx?.texts?{yes:n?.lx?.texts?.valueYes,no:n?.lx?.texts?.valueNo}:void 0)}return(n,S)=>e.itemValue?.lx?.displayType==="primaryText"?(t.openBlock(),t.createElementBlock("p",{key:0,class:"lx-primary",style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5)):e.itemValue?.lx?.displayType==="secondaryText"?(t.openBlock(),t.createElementBlock("p",{key:1,class:"lx-secondary",style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5)):e.itemValue?.lx?.displayType==="flag"?(t.openBlock(),t.createBlock(t.unref(r.LxFlag),{key:2,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,size:e.item?.[e.itemName]?.size||e.itemValue?.lx?.size,title:e.item?.[e.itemName]?.title||e.itemValue?.lx?.title,style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},null,8,["value","size","title","style"])):e.itemValue?.lx?.displayType==="stateDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxStateDisplay),{key:3,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,dictionary:e.item?.[e.itemName]?.dictionary||e.itemValue?.lx?.dictionary,style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},null,8,["value","dictionary","style"])):e.itemValue?.lx?.displayType==="personDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxPersonDisplay),{key:4,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,name:e.item?.[e.itemName]?.name||e.itemValue?.lx?.name,kind:e.item?.[e.itemName]?.kind||e.itemValue?.lx?.kind,size:e.item?.[e.itemName]?.size||e.itemValue?.lx?.size,variant:e.item?.[e.itemName]?.variant||e.itemValue?.lx?.variant,description:e.item?.[e.itemName]?.description||e.itemValue?.lx?.description,role:e.item?.[e.itemName]?.role||e.itemValue?.lx?.role,institution:e.item?.[e.itemName]?.institution||e.itemValue?.lx?.institution,icon:e.item?.[e.itemName]?.icon||e.itemValue?.lx?.icon,iconSet:e.item?.[e.itemName]?.iconSet||e.itemValue?.lx?.iconSet,idAttribute:e.item?.[e.itemName]?.idAttribute||e.itemValue?.lx?.idAttribute,nameAttribute:e.item?.[e.itemName]?.nameAttribute||e.itemValue?.lx?.nameAttribute,firstNameAttribute:e.item?.[e.itemName]?.firstNameAttribute||e.itemValue?.lx?.firstNameAttribute,lastNameAttribute:e.item?.[e.itemName]?.lastNameAttribute||e.itemValue?.lx?.lastNameAttribute,descriptionAttribute:e.item?.[e.itemName]?.descriptionAttribute||e.itemValue?.lx?.descriptionAttribute,roleAttribute:e.item?.[e.itemName]?.roleAttribute||e.itemValue?.lx?.roleAttribute,institutionAttribute:e.item?.[e.itemName]?.institutionAttribute||e.itemValue?.lx?.institutionAttribute,iconAttribute:e.item?.[e.itemName]?.iconAttribute||e.itemValue?.lx?.iconAttribute,iconSetAttribute:e.item?.[e.itemName]?.iconSetAttribute||e.itemValue?.lx?.iconSetAttribute,maxLength:e.item?.[e.itemName]?.maxLength||e.itemValue?.lx?.maxLength,texts:e.item?.[e.itemName]?.texts||e.itemValue?.lx?.texts,style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},null,8,["value","name","kind","size","variant","description","role","institution","icon","iconSet","idAttribute","nameAttribute","firstNameAttribute","lastNameAttribute","descriptionAttribute","roleAttribute","institutionAttribute","iconAttribute","iconSetAttribute","maxLength","texts","style"])):e.itemValue?.lx?.displayType==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxIcon),{key:5,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,iconSet:e.item?.[e.itemName]?.iconSet||e.itemValue?.lx?.iconSet,variant:e.item?.[e.itemName]?.variant||e.itemValue?.lx?.variant,customClass:e.item?.[e.itemName]?.customClass||e.itemValue?.lx?.customClass,animation:e.item?.[e.itemName]?.animation||e.itemValue?.lx?.animation,meaningful:e.item?.[e.itemName]?.meaningful||e.itemValue?.lx?.meaningful,title:e.item?.[e.itemName]?.title||e.itemValue?.lx?.title,desc:e.item?.[e.itemName]?.desc||e.itemValue?.lx?.desc,texts:e.item?.[e.itemName]?.texts||e.itemValue?.lx?.texts,style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},null,8,["value","iconSet","variant","customClass","animation","meaningful","title","desc","texts","style"])):(t.openBlock(),t.createElementBlock("p",{key:6,style:t.normalizeStyle(e.useStyles?y(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5))}},hl={class:"appendable-list-remove-button-wrapper"},gl={class:"appendable-list-remove"},kl={__name:"AppendableListSimple",props:{modelValue:{type:Array,default:null},readOnly:{type:Boolean,default:!1},columnCount:{type:Number,default:1},kind:{type:String,default:"default"},requiredMode:{type:String,default:"optional"},canAddItems:{type:Boolean,default:!0},texts:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:y}){const s=e,x=y,n=t.computed({get(){return s.modelValue},set(T){x("update:modelValue",T)}}),S={removeItem:"Dzēst ierakstu",addButtonLabel:"Pievienot ierakstu"},E=t.computed(()=>Ee(s.texts,S));function f(T){n.value.splice(T,1)}function k(){let T=[];s.modelValue&&(T=[...n.value]),T.push(""),n.value=T}return t.onMounted(()=>{n.value=s.modelValue}),(T,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lx-appendable-list lx-appendable-list-simple",[{"lx-appendable-list-compact":e.kind==="compact"}]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(M,H)=>(t.openBlock(),t.createElementBlock("div",{key:H,class:"lx-appendable-list-item"},[t.createVNode(t.unref(r.LxForm),{kind:"stripped",columnCount:e.columnCount,"required-mode":s.requiredMode},{default:t.withCtx(()=>[t.renderSlot(T.$slots,"customItem",t.mergeProps({ref_for:!0},{item:M,index:H}))]),_:2},1032,["columnCount","required-mode"]),t.createElementVNode("div",hl,[t.createElementVNode("div",gl,[e.readOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"remove-item",variant:"icon-only",label:E.value.removeItem,destructive:!0,kind:"ghost",onClick:q=>f(H)},null,8,["label","onClick"]))])])]))),128)),t.createElementVNode("div",null,[!e.readOnly&&e.canAddItems?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,kind:"tertiary",label:E.value.addButtonLabel,icon:"add-item",onClick:k},null,8,["label"])):t.createCommentVNode("",!0)])],2))}},bl={key:0},Sl={key:1},Bl={key:0},pl={key:1},wl={key:0},Cl={key:1},Al={key:2},Ll={key:7},$l={key:9},Ol={key:0},jl={key:11},Tl={key:0},Pl={key:0},El={key:0},Dl={key:1},zl={key:0},Vl={key:1},Ml={key:0},Fl={key:1},Nl={key:2},Rl={key:42,class:"lx-data"},Ne={__name:"FormBuilderItem",props:{id:{type:String,default:null},displaySchema:{type:Object,default:null},schema:{type:Object,default:null},modelValue:{type:Object,default:null},row:{type:Object,default:null},name:{type:String,default:null},readOnly:{type:Boolean,default:!1},vv:{type:Object,default:null},orderedObject:{type:Object,default:()=>{}},parentName:{type:String,default:null},validations:{type:Object,default:null},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:[],useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit","filterBuilderFilter"],setup(e,{emit:y}){const s=e,x=y,n=t.computed({get(){return s.modelValue?s.modelValue:{}},set(u){x("update:modelValue",u)}}),S=t.ref({}),E=t.ref({});function f(u){return u?.lx?.placeholder?u?.lx?.placeholder:Array.isArray(u?.examples)?u?.examples[0]:u?.examples}function k(u){return u?.readOnly===null||u?.readOnly===void 0?s.readOnly:u?.readOnly}function T(u,c){return!u&&c==="number"?"decimal":!u&&c==="string"?"default":u}function v(u){return u?.format!=="date"&&u?.format!=="time"&&u?.format!=="date-time"&&u?.format!=="year"&&u?.format!=="month"&&u?.format!=="month-year"&&u?.format!=="quarters"}function M(u){return u?.type==="string"&&u?.lx?.kind!=="multiline"&&!u?.lx?.variant&&v(u)&&!u?.enum||u?.type==="number"&&!u?.lx?.variant&&v(u)&&!u?.enum?"textInputDefault":u?.type==="string"&&u?.lx?.kind==="multiline"?"textArea":u?.type==="string"&&!v(u)?"dateTimePicker":""}function H(u){return u?.type==="array"&&u?.lx?.displayType==="list"?"arrayList":u?.type==="array"&&u?.lx?.displayType==="listModal"?"arrayListModal":u?.type==="array"&&u?.lx?.displayType==="table"?"arrayTable":u?.type==="array"&&u?.lx?.displayType==="tableModal"?"arrayTableModal":Array.isArray(u?.lx?.items)||u?.enum?"valuePicker":u?.items?.properties&&u?.type==="array"?"appendableList":u?.type==="array"&&u?.items?.type!=="object"&&u?.items?"smallAppendableList":""}function q(u,c){return u?.lx?.displayType==="map"&&u?.type==="object"?"map":u?.type==="object"&&n.value?.[c]!==void 0&&n.value?.[c]!==null&&u?.lx?.displayType==="modal"?"objectList":u?.type==="object"&&!n.value?.[c]&&u?.lx?.displayType==="modal"?"objectButton":u?.type==="object"&&n.value?.[c]!==void 0&&n.value?.[c]!==null?"dataBlock":""}function z(u){return zt(u,{excludedDisplayTypes:["stack"]})}function $(u,c,l=!1){if(u?.lx?.wrapper==="placeholder")return"lxPlaceholder";const a=z(u);return a||(M(u)==="textInputDefault"?"textInputDefault":M(u)==="textArea"?"textArea":M(u)==="dateTimePicker"?"dateTimePicker":u?.type==="integer"?"textInputInteger":u?.type==="boolean"?"toggle":(u?.type==="string"&&(u?.lx?.variant||u?.enum)||u?.type==="array")&&H(u)!==""?H(u):q(u,c)!==""?q(u,c):(c&&l&&r.lxDevUtils.log(`Property '${c}' couldn't be rendered`,De().getGlobals()?.environment,"warn"),"lxPlaceholder"))}const C=t.computed(()=>$(s.row,s.name,!0));function D(u,c,l,a){x("rowActionClick",u,c,s.parentName?`${s.parentName}.${l}`:l,a)}function J(u,c,l=void 0,a=void 0){x("emit",u,s.parentName?`${s.parentName}.${c}`:c,l,a)}function Y(u){const c=[];return u?.enum?.forEach(l=>{const a={id:l,name:l};c.push(a)}),c}function Z(u){delete n.value[u]}function K(u){const c={};Object.entries(s.displaySchema?.properties[u])?.forEach(([l])=>{c[l]=""}),n.value[u]=c}function d(u,c){n.value[c]||K(c),S.value[u].open()}function o(u,c){return u?.find(a=>a===c)?!0:null}function te(u,c,l,a=void 0){if(a&&a?.length>0)J(u,l);else if(u==="remove")if(s.displaySchema?.properties[l]?.lx?.idAttribute){const i=n.value[l].findIndex(h=>h[s.displaySchema?.properties[l]?.lx?.idAttribute]===c);i!==-1&&n.value[l].splice(i,1)}else{const i=n.value[l].findIndex(h=>h?.id===c);i!==-1&&n.value[l].splice(i,1)}}function me(u){n.value[u]||(n.value[u]=[]),n.value[u].push(E.value[`${s.id}-${u}`]),S.value[`${s.id}-${u}`].close()}function ye(u,c,l,a=void 0){if(a&&a?.length>0&&J(u,l),u==="click"){let i={};s.displaySchema?.properties[l]?.lx?.idAttribute?i=n.value[l].find(m=>m[s.displaySchema?.properties[l]?.lx?.idAttribute]===c):i=n.value[l].find(m=>m.id===c);const h=`${s.id}-${l}`;E.value[h]=i,S.value[h].open()}else u==="remove"&&te(u,c,l)}function G(u){const c=[];return u&&Object.entries(u)?.forEach(([l,a])=>{const i={};i.id=l,i.attributeName=l,i.name=a?.title,i.size=a?.size,i.kind=a?.kind,a.type==="string"?i.type="default":a.type==="integer"?i.type="number":a.type==="number"?i.type="decimal":a.type==="boolean"&&(i.type="bool"),i.type&&c.push(i)}),c}const O=t.ref(!1);function b(u){O.value=!0;const c=t.ref({}),l=`${s.id}-${u}`;E.value[l]=c,S.value[l].open()}function j(u,c,l,a,i=void 0){i&&i?.length>0?J("actionClick",a,u,c):(u==="open"&&ye("click",c,a),u==="remove"&&te(u,c,a))}const le=t.computed(()=>{if(s.validations?.[s.name])return!0;if(!s.vv?.value?.modelClone)return!1;if(s.parentName){const u=s.parentName.split(".");let c=s.vv.value.modelClone;return c=u.reduce((l,a)=>l?l[a]:void 0,c),c?.[s.name]?.$error}return s.vv.value.modelClone?.[s.name]?.$error}),ie=t.computed(()=>{if(s.validations?.[s.name])return s.validations?.[s.name];let u=null;if(!s.vv?.value?.modelClone)return null;if(s.parentName){const c=s.parentName.split(".");let l=s.vv.value.modelClone;return l=c.reduce((a,i)=>a?a[i]:void 0,l),l?.[s.name]?.$errors?.[0]?.$message}return u=s.vv.value.modelClone?.[s.name]?.$errors?.[0]?.$message,u});function se(u){return u?.lx?.hasCustomItems&&!u?.lx?.variant?.endsWith("-custom")?`${u?.lx?.variant||"default"}-custom`:u?.lx?.variant}const be=t.computed(()=>{const u=[{id:"saveElement",name:s.texts.saveElement,kind:"primary"}];return O.value?u:null});function xe(u,c){u==="saveElement"&&me(c)}const oe=t.computed(()=>s.builderOptions?.schemaPath?`${s.builderOptions?.schemaPath}.${s.name}`:s.name),A=t.computed(()=>({componentStack:s.builderOptions?.componentStack,schemaPath:oe.value,useRegistry:s.builderOptions?.useRegistry}));return(u,c)=>C.value==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.id}-${e.name}`,mask:T(e.displaySchema?.properties[e.name]?.lx?.mask,e.displaySchema?.properties[e.name]?.type),maxlength:e.displaySchema?.properties[e.name]?.maxLength,kind:e.displaySchema?.properties[e.name]?.lx?.kind,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,scale:e.displaySchema?.properties[e.name]?.lx?.scale,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,"convert-to-string":e.displaySchema?.properties[e.name]?.lx?.convertToString,placeholder:f(e.displaySchema?.properties[e.name]),signed:e.displaySchema?.properties[e.name]?.lx?.signed,readOnly:k(e.displaySchema?.properties[e.name]),invalid:le.value,"invalidation-message":ie.value,"custom-mask-value":e.displaySchema?.properties[e.name]?.lx?.customMaskValue,modelValue:n.value[e.name],"onUpdate:modelValue":c[0]||(c[0]=l=>n.value[e.name]=l),builderOptions:A.value,onKeyup:c[1]||(c[1]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","invalid","invalidation-message","custom-mask-value","modelValue","builderOptions"])):C.value==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.id}-${e.name}`,maxlength:e.displaySchema?.properties[e.name]?.maxLength,placeholder:f(e.displaySchema?.properties[e.name]),rows:e.displaySchema?.properties[e.name]?.lx?.rows,"dynamic-height":e.displaySchema?.properties[e.name]?.lx?.dynamicHeight,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),invalid:le.value,"invalidation-message":ie.value,modelValue:n.value[e.name],"onUpdate:modelValue":c[2]||(c[2]=l=>n.value[e.name]=l),builderOptions:A.value,onKeyup:c[3]||(c[3]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","invalid","invalidation-message","modelValue","builderOptions"])):C.value==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.format==="date-time"?"dateTime":e.displaySchema?.properties[e.name]?.format,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,"min-date":e.displaySchema?.properties[e.name]?.lx?.minDate,"max-date":e.displaySchema?.properties[e.name]?.lx?.maxDate,required:e.displaySchema?.properties[e.name]?.lx?.required,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,"time-adjust":e.displaySchema?.properties[e.name]?.lx?.timeAdjust,"clear-if-not-exact":e.displaySchema?.properties[e.name]?.lx?.clearIfNotExact,texts:e.displaySchema?.properties[e.name]?.lx?.texts,locale:e.displaySchema?.properties[e.name]?.lx?.locale,"special-dates":e.displaySchema?.properties[e.name]?.lx?.specialDates,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,variant:e.displaySchema?.properties[e.name]?.lx?.variant,cadenceOfMinutes:e.displaySchema?.properties[e.name]?.lx?.cadenceOfMinutes,cadenceOfSeconds:e.displaySchema?.properties[e.name]?.lx?.cadenceOfSeconds,readOnly:k(e.row),invalid:le.value,"invalidation-message":ie.value,builderOptions:A.value,modelValue:n.value[e.name],"onUpdate:modelValue":c[4]||(c[4]=l=>n.value[e.name]=l)},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","texts","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","readOnly","invalid","invalidation-message","builderOptions","modelValue"])):C.value==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.id}-${e.name}`,mask:"integer",maxlength:e.displaySchema?.properties[e.name]?.maxLength,kind:e.displaySchema?.properties[e.name]?.lx?.kind,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,scale:e.displaySchema?.properties[e.name]?.lx?.scale,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,"convert-to-string":e.displaySchema?.properties[e.name]?.lx?.convertToString,placeholder:f(e.displaySchema?.properties[e.name]),readOnly:k(e.displaySchema?.properties[e.name]),invalid:le.value,"invalidation-message":ie.value,modelValue:n.value[e.name],"onUpdate:modelValue":c[5]||(c[5]=l=>n.value[e.name]=l),builderOptions:A.value,onKeyup:c[6]||(c[6]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","invalid","invalidation-message","modelValue","builderOptions"])):C.value==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.id}-${e.name}`,size:e.displaySchema?.properties[e.name]?.lx?.size,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),invalid:le.value,"invalidation-message":ie.value,builderOptions:A.value,modelValue:n.value[e.name],"onUpdate:modelValue":c[7]||(c[7]=l=>n.value[e.name]=l)},{on:t.withCtx(()=>[e.row?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",bl,t.toDisplayString(e.row?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",Sl,"Jā"))]),off:t.withCtx(()=>[e.row?.lx?.labelOff?(t.openBlock(),t.createElementBlock("span",Bl,t.toDisplayString(e.row?.lx?.labelOff),1)):(t.openBlock(),t.createElementBlock("span",pl,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",wl,t.toDisplayString(e.row?.lx?.labelIndeterminate),1)):k(e.displaySchema?.properties[e.name])?(t.openBlock(),t.createElementBlock("span",Cl,c[57]||(c[57]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Al,"—"))]),_:1},8,["id","size","disabled","tooltip","readOnly","invalid","invalidation-message","builderOptions","modelValue"])):C.value==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.id}-${e.name}`,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",items:e.displaySchema?.properties[e.name]?.lx?.items||Y(e.displaySchema?.properties[e.name]),"id-attribute":e.displaySchema?.properties[e.name]?.lx?.idAttribute,"name-attribute":e.displaySchema?.properties[e.name]?.lx?.nameAttribute,"icon-attribute":e.displaySchema?.properties[e.name]?.lx?.iconAttribute,"icon-set-attribute":e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,"category-attribute":e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,"description-attribute":e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,variant:se(e.displaySchema?.properties[e.name]),"has-search":e.displaySchema?.properties[e.name]?.lx?.hasSearch,"always-as-array":e.displaySchema?.properties[e.name]?.lx?.alwaysAsArray,nullable:e.displaySchema?.properties[e.name]?.lx?.nullable,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,texts:e.displaySchema?.properties[e.name]?.lx?.texts,placeholder:f(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,readOnly:k(e.displaySchema?.properties[e.name]),"search-attributes":e.displaySchema?.properties[e.name]?.lx?.searchAttributes,"has-select-all":e.displaySchema?.properties[e.name]?.lx?.hasSelectAll,"read-only-render-type":e.displaySchema?.properties[e.name]?.lx?.readOnlyRenderType,invalid:le.value,"invalidation-message":ie.value,builderOptions:A.value,modelValue:n.value[e.name],"onUpdate:modelValue":c[8]||(c[8]=l=>n.value[e.name]=l)},t.createSlots({_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.customItems?.properties,(a,i)=>(t.openBlock(),t.createBlock(U,{key:i,itemValue:a,itemName:i,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.customItems?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V,item:l?.[i]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:l?.[i]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:a,itemName:i,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","search-attributes","has-select-all","read-only-render-type","invalid","invalidation-message","builderOptions","modelValue"])):C.value==="dataBlock"?(t.openBlock(),t.createBlock(t.unref(r.LxDataBlock),{key:6,expandable:!0,size:e.displaySchema?.properties[e.name]?.lx?.size,icon:e.displaySchema?.properties[e.name]?.lx?.icon,"icon-set":e.displaySchema?.properties[e.name]?.lx?.iconSet,name:n.value?.[e.name]?.[e.displaySchema?.properties?.[e.name]?.lx?.nameAttribute]||n.value?.[e.name]?.name,description:n.value?.[e.name]?.[e.displaySchema?.properties?.[e.name]?.lx?.descriptionAttribute]||n.value?.[e.name]?.description,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,class:"form-builder-data-block"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[$(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title||a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(i,h,m)=>D(h,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[$(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:T(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),$(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l)},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly"])):$(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format==="date-time"?"dateTime":l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||Y(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:se(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,"search-attributes":l?.lx?.searchAttributes,"has-select-all":l?.lx?.hasSelectAll,"read-only-render-type":l?.lx?.readOnlyRenderType,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(i=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createBlock(U,{key:m,itemValue:h,itemName:m,item:i,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(i=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:i?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:p,itemName:V,item:i?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:i},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","search-attributes","has-select-all","read-only-render-type","readOnly","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["size","icon","icon-set","name","description","uppercase","disabled","loading","busy"])):C.value==="objectButton"||C.value==="objectList"?(t.openBlock(),t.createElementBlock("div",Ll,[C.value==="objectList"?(t.openBlock(),t.createBlock(t.unref(r.LxListItem),{key:0,value:n.value[e.name],label:n.value[e.name][e.displaySchema?.properties[e.name].lx.nameAttribute]||n.value[e.name]?.name,description:n.value[e.name][e.displaySchema?.properties[e.name].lx.descriptionAttribute]||n.value[e.name]?.description,icon:"edit",clickable:!0,actionDefinitions:[{id:"remove",name:"remove",icon:"remove-item",destructive:!0}],onActionClick:c[9]||(c[9]=l=>Z(e.name)),onClick:c[10]||(c[10]=l=>d(`${e.id}-${e.name}`,e.name))},null,8,["value","label","description"])):t.createCommentVNode("",!0),C.value==="objectButton"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,label:e.texts?.addObject,icon:"add-item",kind:"ghost",onClick:c[11]||(c[11]=l=>d(`${e.id}-${e.name}`,e.name))},null,8,["label"])):t.createCommentVNode("",!0),t.createVNode(t.unref(r.LxModal),{id:`${e.id}-${e.name}`,ref:l=>S.value[`${e.id}-${e.name}`]=l},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[$(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(i,h,m)=>D(h,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[$(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:T(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),$(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format==="date-time"?"dateTime":l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||Y(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:se(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"search-attributes":l?.lx?.searchAttributes,"has-select-all":l?.lx?.hasSelectAll,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:n.value[e.name][a],"onUpdate:modelValue":i=>n.value[e.name][a]=i},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(i=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createBlock(U,{key:m,itemValue:h,itemName:m,item:i,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(i=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:i?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:p,itemName:V,item:i?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:i},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","search-attributes","has-select-all","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","actionDefinitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["id"])])):C.value==="arrayList"?(t.openBlock(),t.createBlock(t.unref(r.LxList),{key:8,items:n.value[e.name],actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"remove",title:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,hrefAttribute:e.displaySchema?.properties[e.name]?.lx?.hrefAttribute,groupAttribute:e.displaySchema?.properties[e.name]?.lx?.groupAttribute,clickableAttribute:e.displaySchema?.properties[e.name]?.lx?.clickableAttribute,iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,tooltipAttribute:e.displaySchema?.properties[e.name]?.lx?.tooltipAttribute,categoryAttribute:e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,orderAttribute:e.displaySchema?.properties[e.name]?.lx?.orderAttribute,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,groupDefinitions:e.displaySchema?.properties[e.name]?.lx?.groupDefinitions,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,kind:e.displaySchema?.properties[e.name]?.lx?.kind,emptyStateIcon:e.displaySchema?.properties[e.name]?.lx?.emptyStateIcon,listType:e.displaySchema?.properties[e.name]?.lx?.listType||"1",searchString:e.displaySchema?.properties[e.name]?.lx?.searchString,searchSide:e.displaySchema?.properties[e.name]?.lx?.searchSide,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,hideFilteredItems:e.displaySchema?.properties[e.name]?.lx?.hideFilteredItems,includeUnspecifiedGroups:e.displaySchema?.properties[e.name]?.lx?.includeUnspecifiedGroups,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:c[12]||(c[12]=(l,a)=>te(l,a,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions))},t.createSlots({_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,i)=>(t.openBlock(),t.createBlock(U,{key:i,itemValue:a,itemName:i,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V,item:l?.[i]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:l?.[i]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:a,itemName:i,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["items","actionDefinitions","idAttribute","nameAttribute","descriptionAttribute","hrefAttribute","groupAttribute","clickableAttribute","iconAttribute","iconSetAttribute","tooltipAttribute","categoryAttribute","orderAttribute","hasSearch","groupDefinitions","icon","iconSet","kind","emptyStateIcon","listType","searchString","searchSide","loading","busy","hideFilteredItems","includeUnspecifiedGroups","texts"])):C.value==="arrayListModal"?(t.openBlock(),t.createElementBlock("div",$l,[t.createVNode(t.unref(r.LxList),{items:n.value[e.name],actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"remove",title:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,hrefAttribute:e.displaySchema?.properties[e.name]?.lx?.hrefAttribute,groupAttribute:e.displaySchema?.properties[e.name]?.lx?.groupAttribute,clickableAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute||"name",iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,tooltipAttribute:e.displaySchema?.properties[e.name]?.lx?.tooltipAttribute,categoryAttribute:e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,orderAttribute:e.displaySchema?.properties[e.name]?.lx?.orderAttribute,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,groupDefinitions:e.displaySchema?.properties[e.name]?.lx?.groupDefinitions,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,kind:e.displaySchema?.properties[e.name]?.lx?.kind,emptyStateIcon:e.displaySchema?.properties[e.name]?.lx?.emptyStateIcon,listType:e.displaySchema?.properties[e.name]?.lx?.listType||"1",searchString:e.displaySchema?.properties[e.name]?.lx?.searchString,searchSide:e.displaySchema?.properties[e.name]?.lx?.searchSide,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,hideFilteredItems:e.displaySchema?.properties[e.name]?.lx?.hideFilteredItems,includeUnspecifiedGroup:e.displaySchema?.properties[e.name]?.lx?.includeUnspecifiedGroup,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:c[14]||(c[14]=(l,a)=>ye(l,a,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions))},t.createSlots({toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:c[13]||(c[13]=l=>b(e.name))},null,8,["label"]))]),_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,i)=>(t.openBlock(),t.createBlock(U,{key:i,itemValue:a,itemName:i,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V,item:l?.[i]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:l?.[i]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:a,itemName:i,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["items","actionDefinitions","idAttribute","nameAttribute","descriptionAttribute","hrefAttribute","groupAttribute","clickableAttribute","iconAttribute","iconSetAttribute","tooltipAttribute","categoryAttribute","orderAttribute","hasSearch","groupDefinitions","icon","iconSet","kind","emptyStateIcon","listType","searchString","searchSide","loading","busy","hideFilteredItems","includeUnspecifiedGroup","texts"]),t.createVNode(t.unref(r.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:be.value,onClose:c[15]||(c[15]=l=>O.value=!1),onActionClick:c[16]||(c[16]=l=>xe(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[$(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(i,h,m)=>D(h,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[$(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:T(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),$(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format==="date-time"?"dateTime":l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||Y(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:se(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(i=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createBlock(U,{key:m,itemValue:h,itemName:m,item:i,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(i=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:i?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:p,itemName:V,item:i?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:i},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):$(l,a)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:6,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},{customItem:t.withCtx(({item:i,index:h})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[$(m,p)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:m?.title?m?.title:p,rowSpan:m?.lx?.rowSpan,columnSpan:m?.lx?.columnSpan,required:o(e.row?.items?.required,p),inputId:`${e.name}-${p}-${h}`,"action-definitions":m?.lx?.actionDefinitions,onActionClick:(V,W,Q)=>D(W,Q,`${e.name}.${p}`,h)},{default:t.withCtx(()=>[$(m,p)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${p}-${h}`,mask:T(m?.lx?.mask,m?.type),maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),signed:m?.lx?.signed,readOnly:k(m),"custom-mask-value":m?.lx?.customMaskValue,modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):$(m,p)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${p}-${h}`,maxlength:m?.maxLength,placeholder:f(m),rows:m?.lx?.rows,"dynamic-height":m?.lx?.dynamicHeight,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${p}-${h}`,kind:m?.format==="date-time"?"dateTime":m?.format,placeholder:f(m),tooltip:m?.lx?.tooltip,"min-date":m?.lx?.minDate,"max-date":m?.lx?.maxDate,required:m?.lx?.required,disabled:m?.lx?.disabled,"time-adjust":m?.lx?.timeAdjust,"clear-if-not-exact":m?.lx?.clearIfNotExact,locale:m?.lx?.locale,"special-dates":m?.lx?.specialDates,dictionary:m?.lx?.dictionary,variant:m?.lx?.variant,cadenceOfMinutes:m?.lx?.cadenceOfMinutes,cadenceOfSeconds:m?.lx?.cadenceOfSeconds,texts:m?.lx?.texts,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${p}-${h}`,mask:"integer",maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${p}-${h}`,size:m?.lx?.size,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},{default:t.withCtx(()=>[m?.lx?.label?(t.openBlock(),t.createElementBlock("span",Ol,t.toDisplayString(m?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${p}-${h}`,selectionKind:m?.type==="array"?"multiple":"single",items:m?.lx?.items||Y(m),"id-attribute":m?.lx?.idAttribute,"name-attribute":m?.lx?.nameAttribute,"icon-attribute":m?.lx?.iconAttribute,"icon-set-attribute":m?.lx?.iconSetAttribute,"category-attribute":m?.lx?.categoryAttribute,"description-attribute":m?.lx?.descriptionAttribute,variant:se(m),"has-search":m?.lx?.hasSearch,"always-as-array":m?.lx?.alwaysAsArray,nullable:m?.lx?.nullable,tooltip:m?.lx?.tooltip,texts:m?.lx?.texts,placeholder:f(m),disabled:m?.lx?.disabled,readOnly:k(m),"has-select-all":m?.lx?.hasSelectAll,"search-attributes":m?.lx?.searchAttributes,"read-only-render-type":m?.lx?.readOnlyRenderType,modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},t.createSlots({_:2},[m?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(V=>[t.createVNode(t.unref(r.LxStack),{orientation:m?.lx?.stack?.orientation,kind:m?.lx?.stack?.kind,mode:m?.lx?.stack?.mode||"grid","horizontal-alignment":m?.lx?.stack?.horizontalAlignment,"vertical-alignment":m?.lx?.stack?.verticalAlignment,"horizontal-config":m?.lx?.stack?.horizontalConfig,"vertical-config":m?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:V,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:m?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(V=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(W,Q)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Q},[W?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:W?.lx?.orientation,kind:W?.lx?.kind,mode:W?.lx?.mode,"horizontal-alignment":W?.lx?.horizontalAlignment,"vertical-alignment":W?.lx?.verticalAlignment,"horizontal-config":W?.lx?.horizontalConfig,"vertical-config":W?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W?.properties,(re,Be)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Be},[re?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:re?.lx?.orientation,kind:re?.lx?.kind,mode:re?.lx?.mode,"horizontal-alignment":re?.lx?.horizontalAlignment,"vertical-alignment":re?.lx?.verticalAlignment,"horizontal-config":re?.lx?.horizontalConfig,"vertical-config":re?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re?.properties,(g,w)=>(t.openBlock(),t.createBlock(U,{key:w,itemValue:g,itemName:w,item:V?.[a]?.[Be]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:re,itemName:Be,item:V?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:W,itemName:Q,item:V},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","actionDefinitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["actionDefinitions"])])):C.value==="arrayTable"?(t.openBlock(),t.createBlock(t.unref(r.LxDataGrid),{key:10,items:n.value[e.name],label:e.displaySchema?.properties[e.name]?.lx?.label,description:e.displaySchema?.properties[e.name]?.lx?.description,columnDefinitions:G(e.displaySchema?.properties[e.name]?.items?.properties),scrollable:e.displaySchema?.properties[e.name]?.items?.properties?Object?.keys(e.displaySchema?.properties[e.name]?.items?.properties)?.length>4:null,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,skeletonRowCount:e.displaySchema?.properties[e.name]?.lx?.skeletonRowCount,showHeader:e.displaySchema?.properties[e.name]?.lx?.showHeader,showStatusBar:e.displaySchema?.properties[e.name]?.lx?.showStatusBar,showAllColumns:e.displaySchema?.properties[e.name]?.lx?.showAllColumns,hasSorting:e.displaySchema?.properties[e.name]?.lx?.hasSorting,sortingIgnoreEmpty:e.displaySchema?.properties[e.name]?.lx?.sortingIgnoreEmpty,itemsPerPage:e.displaySchema?.properties[e.name]?.lx?.itemsPerPage,totalItems:e.displaySchema?.properties[e.name]?.lx?.totalItems,sortingMode:e.displaySchema?.properties[e.name]?.lx?.sortingMode,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,defaultActionName:e.displaySchema?.properties[e.name]?.lx?.defaultActionName,toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:c[17]||(c[17]=(l,a,i)=>J("actionClick",e.name,l,a)),onToolbarActionClick:c[18]||(c[18]=l=>J("toolbarActionClick",e.name,l))},null,8,["items","label","description","columnDefinitions","scrollable","loading","busy","skeletonRowCount","showHeader","showStatusBar","showAllColumns","hasSorting","sortingIgnoreEmpty","itemsPerPage","totalItems","sortingMode","actionDefinitions","defaultActionName","toolbarActionDefinitions","texts"])):C.value==="arrayTableModal"?(t.openBlock(),t.createElementBlock("div",jl,[t.createVNode(t.unref(r.LxDataGrid),{items:n.value[e.name],label:e.displaySchema?.properties[e.name]?.lx?.label,description:e.displaySchema?.properties[e.name]?.lx?.description,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,columnDefinitions:G(e.displaySchema?.properties[e.name]?.items?.properties),scrollable:e.displaySchema?.properties[e.name]?.items?.properties?Object?.keys(e.displaySchema?.properties[e.name]?.items?.properties)?.length>4:null,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,skeletonRowCount:e.displaySchema?.properties[e.name]?.lx?.skeletonRowCount,showHeader:e.displaySchema?.properties[e.name]?.lx?.showHeader,showToolbar:e.displaySchema?.properties[e.name]?.lx?.showToolbar||!0,showStatusBar:e.displaySchema?.properties[e.name]?.lx?.showStatusBar,showAllColumns:e.displaySchema?.properties[e.name]?.lx?.showAllColumns,hasSorting:e.displaySchema?.properties[e.name]?.lx?.hasSorting,sortingIgnoreEmpty:e.displaySchema?.properties[e.name]?.lx?.sortingIgnoreEmpty,itemsPerPage:e.displaySchema?.properties[e.name]?.lx?.itemsPerPage,totalItems:e.displaySchema?.properties[e.name]?.lx?.totalItems,sortingMode:e.displaySchema?.properties[e.name]?.lx?.sortingMode,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"open",name:e.texts?.addElement,icon:"open"},{id:"remove",name:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],defaultActionName:e.displaySchema?.properties[e.name]?.lx?.defaultActionName||"open",toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:c[20]||(c[20]=(l,a,i)=>j(l,a,i,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions)),onToolbarActionClick:c[21]||(c[21]=l=>J("toolbarActionClick",e.name,l))},{toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:c[19]||(c[19]=l=>b(e.name))},null,8,["label"]))]),_:1},8,["items","label","description","idAttribute","columnDefinitions","scrollable","loading","busy","skeletonRowCount","showHeader","showToolbar","showStatusBar","showAllColumns","hasSorting","sortingIgnoreEmpty","itemsPerPage","totalItems","sortingMode","actionDefinitions","defaultActionName","toolbarActionDefinitions","texts"]),t.createVNode(t.unref(r.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:be.value,onClose:c[22]||(c[22]=l=>O.value=!1),onActionClick:c[23]||(c[23]=l=>xe(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[$(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(i,h,m)=>D(h,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[$(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:T(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),$(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format==="date-time"?"dateTime":l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||Y(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:se(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(i=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createBlock(U,{key:m,itemValue:h,itemName:m,item:i,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(i=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:i?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:p,itemName:V,item:i?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m,item:i},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):$(l,a)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:6,modelValue:E.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":i=>E.value[`${e.id}-${e.name}`][a]=i},{customItem:t.withCtx(({item:i,index:h})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[$(m,p)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:m?.title?m?.title:p,rowSpan:m?.lx?.rowSpan,columnSpan:m?.lx?.columnSpan,required:o(e.row?.items?.required,p),inputId:`${e.name}-${p}-${h}`,"action-definitions":m?.lx?.actionDefinitions,onActionClick:(V,W,Q)=>D(W,Q,`${e.name}.${p}`,h)},{default:t.withCtx(()=>[$(m,p)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${p}-${h}`,mask:T(m?.lx?.mask,m?.type),maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),signed:m?.lx?.signed,readOnly:k(m),"custom-mask-value":m?.lx?.customMaskValue,modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):$(m,p)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${p}-${h}`,maxlength:m?.maxLength,placeholder:f(m),rows:m?.lx?.rows,"dynamic-height":m?.lx?.dynamicHeight,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${p}-${h}`,kind:m?.format==="date-time"?"dateTime":m?.format,placeholder:f(m),tooltip:m?.lx?.tooltip,"min-date":m?.lx?.minDate,"max-date":m?.lx?.maxDate,required:m?.lx?.required,disabled:m?.lx?.disabled,"time-adjust":m?.lx?.timeAdjust,"clear-if-not-exact":m?.lx?.clearIfNotExact,locale:m?.lx?.locale,"special-dates":m?.lx?.specialDates,dictionary:m?.lx?.dictionary,variant:m?.lx?.variant,cadenceOfMinutes:m?.lx?.cadenceOfMinutes,cadenceOfSeconds:m?.lx?.cadenceOfSeconds,texts:m?.lx?.texts,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${p}-${h}`,mask:"integer",maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${p}-${h}`,size:m?.lx?.size,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},{default:t.withCtx(()=>[m?.lx?.label?(t.openBlock(),t.createElementBlock("span",Tl,t.toDisplayString(m?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(m,p)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${p}-${h}`,selectionKind:m?.type==="array"?"multiple":"single",items:m?.lx?.items||Y(m),"id-attribute":m?.lx?.idAttribute,"name-attribute":m?.lx?.nameAttribute,"icon-attribute":m?.lx?.iconAttribute,"icon-set-attribute":m?.lx?.iconSetAttribute,"category-attribute":m?.lx?.categoryAttribute,"description-attribute":m?.lx?.descriptionAttribute,variant:se(m),"has-search":m?.lx?.hasSearch,"always-as-array":m?.lx?.alwaysAsArray,nullable:m?.lx?.nullable,tooltip:m?.lx?.tooltip,texts:m?.lx?.texts,placeholder:f(m),disabled:m?.lx?.disabled,readOnly:k(m),"has-select-all":m?.lx?.hasSelectAll,"search-attributes":m?.lx?.searchAttributes,"read-only-render-type":m?.lx?.readOnlyRenderType,modelValue:i[p],"onUpdate:modelValue":V=>i[p]=V},t.createSlots({_:2},[m?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(V=>[t.createVNode(t.unref(r.LxStack),{orientation:m?.lx?.stack?.orientation,kind:m?.lx?.stack?.kind,mode:m?.lx?.stack?.mode||"grid","horizontal-alignment":m?.lx?.stack?.horizontalAlignment,"vertical-alignment":m?.lx?.stack?.verticalAlignment,"horizontal-config":m?.lx?.stack?.horizontalConfig,"vertical-config":m?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(W,Q)=>(t.openBlock(),t.createBlock(U,{key:Q,itemValue:W,itemName:Q,item:V,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:m?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(V=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(W,Q)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Q},[W?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:W?.lx?.orientation,kind:W?.lx?.kind,mode:W?.lx?.mode,"horizontal-alignment":W?.lx?.horizontalAlignment,"vertical-alignment":W?.lx?.verticalAlignment,"horizontal-config":W?.lx?.horizontalConfig,"vertical-config":W?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W?.properties,(re,Be)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Be},[re?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:re?.lx?.orientation,kind:re?.lx?.kind,mode:re?.lx?.mode,"horizontal-alignment":re?.lx?.horizontalAlignment,"vertical-alignment":re?.lx?.verticalAlignment,"horizontal-config":re?.lx?.horizontalConfig,"vertical-config":re?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re?.properties,(g,w)=>(t.openBlock(),t.createBlock(U,{key:w,itemValue:g,itemName:w,item:V?.[a]?.[Be]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:re,itemName:Be,item:V?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:W,itemName:Q,item:V},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["actionDefinitions"])])):C.value==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:12,modelValue:n.value[e.name],"onUpdate:modelValue":c[24]||(c[24]=l=>n.value[e.name]=l),readOnly:k(e.displaySchema?.properties[e.name]),expandable:e.displaySchema?.properties[e.name]?.lx?.expandable,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,columnCount:e.displaySchema?.properties[e.name]?.lx?.columnCount,kind:e.displaySchema?.properties[e.name]?.lx?.kind,requiredMode:e.displaySchema?.properties[e.name]?.lx?.requiredMode,canAddItems:e.displaySchema?.properties[e.name]?.lx?.canAddItems,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,defaultExpanded:e.displaySchema?.properties[e.name]?.lx?.defaultExpanded,expandedAttribute:e.displaySchema?.properties[e.name]?.lx?.expandedAttribute,texts:e.displaySchema?.properties[e.name]?.lx?.texts},{customItem:t.withCtx(({item:l,index:a})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.orderedObject?.[e.name]?.items?.properties,(i,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h},[$(i,h)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:i?.title?i?.title:h,rowSpan:i?.lx?.rowSpan,columnSpan:i?.lx?.columnSpan,required:o(e.row?.items?.required,h),inputId:`${e.name}-${h}-${a}`,"action-definitions":i?.lx?.actionDefinitions,onActionClick:(m,p,V)=>D(p,V,`${e.name}.${h}`,a)},{default:t.withCtx(()=>[$(i,h)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${h}-${a}`,mask:T(i?.lx?.mask,i?.type),maxlength:i?.maxLength,kind:i?.lx?.kind,tooltip:i?.lx?.tooltip,scale:i?.lx?.scale,disabled:i?.lx?.disabled,uppercase:i?.lx?.uppercase,"convert-to-string":i?.lx?.convertToString,placeholder:f(i),signed:i?.lx?.signed,readOnly:k(i),"custom-mask-value":i?.lx?.customMaskValue,modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):$(i,h)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${h}-${a}`,maxlength:i?.maxLength,placeholder:f(i),rows:i?.lx?.rows,"dynamic-height":i?.lx?.dynamicHeight,disabled:i?.lx?.disabled,tooltip:i?.lx?.tooltip,readOnly:k(i),modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(i,h)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${h}-${a}`,kind:i?.format==="date-time"?"dateTime":i?.format,placeholder:f(i),tooltip:i?.lx?.tooltip,"min-date":i?.lx?.minDate,"max-date":i?.lx?.maxDate,required:i?.lx?.required,disabled:i?.lx?.disabled,"time-adjust":i?.lx?.timeAdjust,"clear-if-not-exact":i?.lx?.clearIfNotExact,locale:i?.lx?.locale,"special-dates":i?.lx?.specialDates,dictionary:i?.lx?.dictionary,variant:i?.lx?.variant,cadenceOfMinutes:i?.lx?.cadenceOfMinutes,cadenceOfSeconds:i?.lx?.cadenceOfSeconds,texts:i?.lx?.texts,readOnly:k(i),modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):$(i,h)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${h}-${a}`,mask:"integer",maxlength:i?.maxLength,kind:i?.lx?.kind,tooltip:i?.lx?.tooltip,scale:i?.lx?.scale,disabled:i?.lx?.disabled,uppercase:i?.lx?.uppercase,"convert-to-string":i?.lx?.convertToString,placeholder:f(i),readOnly:k(i),modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):$(i,h)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${h}-${a}`,size:i?.lx?.size,disabled:i?.lx?.disabled,tooltip:i?.lx?.tooltip,readOnly:k(i),modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},{default:t.withCtx(()=>[i?.lx?.label?(t.openBlock(),t.createElementBlock("span",Pl,t.toDisplayString(i?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(i,h)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${h}-${a}`,selectionKind:i?.type==="array"?"multiple":"single",items:i?.lx?.items||Y(i),"id-attribute":i?.lx?.idAttribute,"name-attribute":i?.lx?.nameAttribute,"icon-attribute":i?.lx?.iconAttribute,"icon-set-attribute":i?.lx?.iconSetAttribute,"category-attribute":i?.lx?.categoryAttribute,"description-attribute":i?.lx?.descriptionAttribute,variant:se(i),"has-search":i?.lx?.hasSearch,"always-as-array":i?.lx?.alwaysAsArray,nullable:i?.lx?.nullable,tooltip:i?.lx?.tooltip,texts:i?.lx?.texts,placeholder:f(i),disabled:i?.lx?.disabled,readOnly:k(i),"has-select-all":i?.lx?.hasSelectAll,"search-attributes":i?.lx?.searchAttributes,"read-only-render-type":i?.lx?.readOnlyRenderType,modelValue:l[h],"onUpdate:modelValue":m=>l[h]=m},t.createSlots({_:2},[i?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(m=>[t.createVNode(t.unref(r.LxStack),{orientation:i?.lx?.stack?.orientation,kind:i?.lx?.stack?.kind,mode:i?.lx?.stack?.mode||"grid","horizontal-alignment":i?.lx?.stack?.horizontalAlignment,"vertical-alignment":i?.lx?.stack?.verticalAlignment,"horizontal-config":i?.lx?.stack?.horizontalConfig,"vertical-config":i?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.lx?.customItems?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V,item:m,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:i?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(m=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.lx?.customItems?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(W,Q)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Q},[W?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:W?.lx?.orientation,kind:W?.lx?.kind,mode:W?.lx?.mode,"horizontal-alignment":W?.lx?.horizontalAlignment,"vertical-alignment":W?.lx?.verticalAlignment,"horizontal-config":W?.lx?.horizontalConfig,"vertical-config":W?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W?.properties,(re,Be)=>(t.openBlock(),t.createBlock(U,{key:Be,itemValue:re,itemName:Be,item:m?.[V]?.[Q]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:W,itemName:Q,item:m?.[V]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:p,itemName:V,item:m},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["modelValue","readOnly","expandable","nameAttribute","columnCount","kind","requiredMode","canAddItems","uppercase","defaultExpanded","expandedAttribute","texts"])):C.value==="smallAppendableList"?(t.openBlock(),t.createBlock(kl,{key:13,modelValue:n.value[e.name],"onUpdate:modelValue":c[25]||(c[25]=l=>n.value[e.name]=l),readOnly:k(e.displaySchema?.properties[e.name]),columnCount:e.displaySchema?.properties[e.name]?.lx?.columnCount,kind:e.displaySchema?.properties[e.name]?.lx?.kind||"compact",requiredMode:e.displaySchema?.properties[e.name]?.lx?.requiredMode,canAddItems:e.displaySchema?.properties[e.name]?.lx?.canAddItems,texts:e.displaySchema?.properties[e.name]?.lx?.texts},{customItem:t.withCtx(({index:l})=>[$(e.row?.items,e.name)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,hideLabel:!0,rowSpan:e.row?.items?.lx?.rowSpan,columnSpan:e.row?.items?.lx?.columnSpan,actionDefinitions:e.row?.items?.lx?.actionDefinitions,onActionClick:(a,i,h)=>D(i,h,e.name,l)},{default:t.withCtx(()=>[$(e.row?.items,e.name)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:T(e.row?.items?.lx?.mask,e.row?.items?.type),maxlength:e.row?.items?.maxLength,kind:e.row?.items?.lx?.kind,tooltip:e.row?.items?.lx?.tooltip,scale:e.row?.items?.lx?.scale,disabled:e.row?.items?.lx?.disabled,uppercase:e.row?.items?.lx?.uppercase,"convert-to-string":e.row?.items?.lx?.convertToString,placeholder:f(e.row?.items),signed:e.row?.items?.lx?.signed,readOnly:k(e.row?.items),"custom-mask-value":e.row?.items?.lx?.customMaskValue,modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):$(e.row?.items,e.name)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:1,mask:"integer",maxlength:e.row?.items?.maxLength,kind:e.row?.items?.lx?.kind,tooltip:e.row?.items?.lx?.tooltip,scale:e.row?.items?.lx?.scale,disabled:e.row?.items?.lx?.disabled,uppercase:e.row?.items?.lx?.uppercase,"convert-to-string":e.row?.items?.lx?.convertToString,placeholder:f(e.row?.items),signed:e.row?.items?.lx?.signed,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):$(e.row?.items,e.name)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:2,size:e.row?.items?.lx?.size,disabled:e.row?.items?.lx?.disabled,tooltip:e.row?.items?.lx?.tooltip,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},{on:t.withCtx(()=>[e.row?.items?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",El,t.toDisplayString(e.row?.items?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",Dl,"Jā"))]),off:t.withCtx(()=>[e.row?.items?.lx?.labelOff?(t.openBlock(),t.createElementBlock("span",zl,t.toDisplayString(e.row?.items?.lx?.labelOff),1)):(t.openBlock(),t.createElementBlock("span",Vl,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.items?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",Ml,t.toDisplayString(e.row?.items?.lx?.labelIndeterminate),1)):k(e.row?.items)?(t.openBlock(),t.createElementBlock("span",Fl,c[58]||(c[58]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Nl,"—"))]),_:2},1032,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):$(e.row?.items,e.name)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:3,kind:e.row?.items?.format==="date-time"?"dateTime":e.row?.items?.format,tooltip:e.row?.items?.lx?.tooltip,placeholder:f(e.row?.items),"min-date":e.row?.items?.lx?.minDate,"max-date":e.row?.items?.lx?.maxDate,required:e.row?.items?.lx?.required,disabled:e.row?.items?.lx?.disabled,"time-adjust":e.row?.items?.lx?.timeAdjust,"clear-if-not-exact":e.row?.items?.lx?.clearIfNotExact,locale:e.row?.items?.lx?.locale,"special-dates":e.row?.items?.lx?.specialDates,dictionary:e.row?.items?.lx?.dictionary,cadenceOfMinutes:e.row?.items?.lx?.cadenceOfMinutes,cadenceOfSeconds:e.row?.items?.lx?.cadenceOfSeconds,variant:e.row?.items?.lx?.variant,texts:e.row?.items?.lx?.texts,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["kind","tooltip","placeholder","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","cadenceOfMinutes","cadenceOfSeconds","variant","texts","readOnly","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["rowSpan","columnSpan","actionDefinitions","onActionClick"]))]),_:1},8,["modelValue","readOnly","columnCount","kind","requiredMode","canAddItems","texts"])):C.value==="autoComplete"?(t.openBlock(),t.createBlock(t.unref(r.LxAutoComplete),{key:14,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,groupId:e.displaySchema?.properties[e.name]?.lx?.groupId,queryMinLength:e.displaySchema?.properties[e.name]?.lx?.queryMinLength,queryMaxLength:e.displaySchema?.properties[e.name]?.lx?.queryMaxLength,queryDebounce:e.displaySchema?.properties[e.name]?.lx?.queryDebounce,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:le.value,"invalidation-message":ie.value,loading:e.displaySchema?.properties[e.name]?.lx?.loading,hasDetails:e.displaySchema?.properties[e.name]?.lx?.hasDetails,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",detailMode:e.displaySchema?.properties[e.name]?.lx?.detailMode,preloadedItems:e.displaySchema?.properties[e.name]?.lx?.preloadedItems,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,hasSelectAll:e.displaySchema?.properties[e.name]?.lx?.hasSelectAll,texts:e.displaySchema?.properties[e.name]?.lx?.texts,searchAttributes:e.displaySchema?.properties[e.name]?.lx?.searchAttributes,enableAdditionalText:e.displaySchema?.properties[e.name]?.lx?.enableAdditionalText,modelValue:n.value[e.name],"onUpdate:modelValue":c[26]||(c[26]=l=>n.value[e.name]=l),builderOptions:A.value,onOpenDetails:c[27]||(c[27]=l=>J("openDetails",e.name,l))},null,8,["id","items","idAttribute","nameAttribute","dictionary","groupId","queryMinLength","queryMaxLength","queryDebounce","placeholder","tooltip","readOnly","disabled","invalid","invalidation-message","loading","hasDetails","selectionKind","detailMode","preloadedItems","labelId","hasSelectAll","texts","searchAttributes","enableAdditionalText","modelValue","builderOptions"])):C.value==="button"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:15,id:`${e.id}-${e.name}`,label:n.value[e.name]?.label||n.value[e.name]||e.displaySchema?.properties[e.name]?.lx?.label,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,busyTooltip:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busyTooltip:e.displaySchema?.properties[e.name]?.lx?.busyTooltip,icon:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,iconVariant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconVariant:e.displaySchema?.properties[e.name]?.lx?.iconVariant,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,destructive:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.destructive:e.displaySchema?.properties[e.name]?.lx?.destructive,href:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.href:e.displaySchema?.properties[e.name]?.lx?.href,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busy:e.displaySchema?.properties[e.name]?.lx?.busy,badge:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badge:e.displaySchema?.properties[e.name]?.lx?.badge,badgeType:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeType:e.displaySchema?.properties[e.name]?.lx?.badgeType,active:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.active:e.displaySchema?.properties[e.name]?.lx?.active,tabindex:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.tabindex:e.displaySchema?.properties[e.name]?.lx?.tabindex,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,openInNewTab:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.openInNewTab:e.displaySchema?.properties[e.name]?.lx?.openInNewTab,onClick:c[28]||(c[28]=(l,a)=>J("click",e.name,a))},null,8,["id","label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","tabindex","customClass","openInNewTab"])):C.value==="camera"?(t.openBlock(),t.createBlock(t.unref(r.LxCamera),{key:16,id:`${e.id}-${e.name}`,cameraSwitcherMode:e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,imageSize:e.displaySchema?.properties[e.name]?.lx?.imageSize,preferencesId:e.displaySchema?.properties[e.name]?.lx?.preferencesId,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[29]||(c[29]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","cameraSwitcherMode","hasFlashlightToggle","imageSize","preferencesId","labelId","texts","modelValue","builderOptions"])):C.value==="checkbox"?(t.openBlock(),t.createBlock(t.unref(r.LxCheckbox),{key:17,id:`${e.id}-${e.name}`,groupId:e.displaySchema?.properties[e.name]?.lx?.groupId,label:e.displaySchema?.properties[e.name]?.lx?.label,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,value:e.displaySchema?.properties[e.name]?.lx?.value,tabindex:e.displaySchema?.properties[e.name]?.lx?.tabindex,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,modelValue:n.value[e.name],"onUpdate:modelValue":c[30]||(c[30]=l=>n.value[e.name]=l),builderOptions:A.value,onClick:c[31]||(c[31]=()=>J("click",e.name))},null,8,["id","groupId","label","disabled","value","tabindex","labelId","modelValue","builderOptions"])):C.value==="contentSwitcher"?(t.openBlock(),t.createBlock(t.unref(r.LxContentSwitcher),{key:18,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,kind:e.displaySchema?.properties[e.name]?.lx?.kind,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,modelValue:n.value[e.name],"onUpdate:modelValue":c[32]||(c[32]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","items","idAttribute","nameAttribute","readOnly","disabled","kind","icon","iconSet","tooltip","labelId","modelValue","builderOptions"])):C.value==="dataVisualizer"?(t.openBlock(),t.createBlock(t.unref(r.LxDataVisualizer),{key:19,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,items:n.value?.[e.name]?.items||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.items,thresholds:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.thresholds:e.displaySchema?.properties[e.name]?.lx?.thresholds,showValues:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.showValues:e.displaySchema?.properties[e.name]?.lx?.showValues,idAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,colorAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.colorAttribute:e.displaySchema?.properties[e.name]?.lx?.colorAttribute,valueAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.valueAttribute:e.displaySchema?.properties[e.name]?.lx?.valueAttribute,showLegend:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.showLegend:e.displaySchema?.properties[e.name]?.lx?.showLegend,targets:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.targets:e.displaySchema?.properties[e.name]?.lx?.targets,maxValue:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.maxValue:e.displaySchema?.properties[e.name]?.lx?.maxValue,mode:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.mode:e.displaySchema?.properties[e.name]?.lx?.mode,texts:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.texts:e.displaySchema?.properties[e.name]?.lx?.texts,onClick:c[33]||(c[33]=l=>J("click",e.name,l))},null,8,["id","kind","items","thresholds","showValues","idAttribute","nameAttribute","colorAttribute","valueAttribute","showLegend","targets","maxValue","mode","texts"])):C.value==="dateTimeRange"&&n.value[e.name]?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimeRange),{key:20,id:`${e.id}-${e.name}`,startDate:n.value[e.name].startDate,"onUpdate:startDate":c[34]||(c[34]=l=>n.value[e.name].startDate=l),endDate:n.value[e.name].endDate,"onUpdate:endDate":c[35]||(c[35]=l=>n.value[e.name].endDate=l),kind:e.displaySchema?.properties[e.name]?.format==="date-time"?"dateTime":e.displaySchema?.properties[e.name]?.format,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,minDate:e.displaySchema?.properties[e.name]?.lx?.minDate,maxDate:e.displaySchema?.properties[e.name]?.lx?.maxDate,required:e.displaySchema?.properties[e.name]?.lx?.required,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:le.value,"invalidation-message":ie.value,timeAdjust:e.displaySchema?.properties[e.name]?.lx?.timeAdjust,locale:e.displaySchema?.properties[e.name]?.lx?.locale,rangeMonths:e.displaySchema?.properties[e.name]?.lx?.rangeMonths,clearIfNotExact:e.displaySchema?.properties[e.name]?.lx?.clearIfNotExact,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,builderOptions:A.value},null,8,["id","startDate","endDate","kind","placeholder","tooltip","minDate","maxDate","required","readOnly","disabled","invalid","invalidation-message","timeAdjust","locale","rangeMonths","clearIfNotExact","labelId","texts","builderOptions"])):C.value==="dropDownMenu"?(t.openBlock(),t.createBlock(t.unref(r.LxDropDownMenu),{key:21,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled},{panel:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.items,(l,a)=>(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:a,label:l?.label,title:l?.title,busyTooltip:l?.busyTooltip,icon:l?.icon,iconSet:l?.iconSet,iconVariant:l?.iconVariant,kind:l?.kind,variant:l?.variant,size:l?.size,destructive:l?.destructive,href:l?.href,disabled:l?.disabled,loading:l?.loading,busy:l?.busy,badge:l?.badge,badgeType:l?.badgeType,active:l?.active,tabindex:l?.tabindex,customClass:l?.customClass,openInNewTab:l?.openInNewTab,onClick:()=>J("click",`${e.name}.${a}`,l?.id||l?.label)},null,8,["label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","tabindex","customClass","openInNewTab","onClick"]))),128))]),default:t.withCtx(()=>[t.createVNode(t.unref(r.LxButton),{id:`${e.id}-${e.name}`,label:n.value[e.name]?.label||n.value[e.name]||e.displaySchema?.properties[e.name]?.lx?.label,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,busyTooltip:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busyTooltip:e.displaySchema?.properties[e.name]?.lx?.busyTooltip,icon:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,iconVariant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconVariant:e.displaySchema?.properties[e.name]?.lx?.iconVariant,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,destructive:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.destructive:e.displaySchema?.properties[e.name]?.lx?.destructive,href:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.href:e.displaySchema?.properties[e.name]?.lx?.href,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busy:e.displaySchema?.properties[e.name]?.lx?.busy,badge:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badge:e.displaySchema?.properties[e.name]?.lx?.badge,badgeType:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeType:e.displaySchema?.properties[e.name]?.lx?.badgeType,active:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.active:e.displaySchema?.properties[e.name]?.lx?.active,tabindex:-1,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,openInNewTab:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.openInNewTab:e.displaySchema?.properties[e.name]?.lx?.openInNewTab},null,8,["id","label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","customClass","openInNewTab"])]),_:1},8,["disabled"])):C.value==="file"?(t.openBlock(),t.createBlock(t.unref(r.LxFileUploader),{key:22,id:`${e.id}-${e.name}`,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,mode:e.displaySchema?.properties[e.name]?.lx?.mode,draggable:e.displaySchema?.properties[e.name]?.lx?.draggable,dataType:e.displaySchema?.properties[e.name]?.lx?.dataType,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,readOnly:k(e.displaySchema?.properties[e.name]),allowedFileExtensions:e.displaySchema?.properties[e.name]?.lx?.allowedFileExtensions,maxFileSize:e.displaySchema?.properties[e.name]?.lx?.maxFileSize,hasDownloadButton:e.displaySchema?.properties[e.name]?.lx?.hasDownloadButton,showMeta:e.displaySchema?.properties[e.name]?.lx?.showMeta,maxSizeForMeta:e.displaySchema?.properties[e.name]?.lx?.maxSizeForMeta,hasCamera:e.displaySchema?.properties[e.name]?.lx?.hasCamera,cameraSwitcherMode:e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,imageSize:e.displaySchema?.properties[e.name]?.lx?.imageSize,preferencesId:e.displaySchema?.properties[e.name]?.lx?.preferencesId,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[36]||(c[36]=l=>n.value[e.name]=l),builderOptions:A.value,onOnError:c[37]||(c[37]=(l,a)=>J("onError",e.name,l,a)),onDownloadFile:c[38]||(c[38]=l=>J("downloadFile",e.name,l))},null,8,["id","selectionKind","mode","draggable","dataType","hasSearch","disabled","loading","busy","readOnly","allowedFileExtensions","maxFileSize","hasDownloadButton","showMeta","maxSizeForMeta","hasCamera","cameraSwitcherMode","hasFlashlightToggle","imageSize","preferencesId","labelId","texts","modelValue","builderOptions"])):C.value==="fileViewer"?(t.openBlock(),t.createBlock(t.unref(r.LxFileViewer),{key:23,id:`${e.id}-${e.name}`,scrollable:e.displaySchema?.properties[e.name]?.lx?.scrollable,width:e.displaySchema?.properties[e.name]?.lx?.width,height:e.displaySchema?.properties[e.name]?.lx?.height,fileName:e.displaySchema?.properties[e.name]?.lx?.fileName,showPrintButton:e.displaySchema?.properties[e.name]?.lx?.showPrintButton,showFullScreenButton:e.displaySchema?.properties[e.name]?.lx?.showFullScreenButton,primaryDownloadButton:e.displaySchema?.properties[e.name]?.lx?.primaryDownloadButton,stickyHeader:e.displaySchema?.properties[e.name]?.lx?.stickyHeader,zoomLevel:e.displaySchema?.properties[e.name]?.lx?.zoomLevel,downloadType:e.displaySchema?.properties[e.name]?.lx?.downloadType,preloadLibs:e.displaySchema?.properties[e.name]?.lx?.preloadLibs,modelValue:n.value[e.name],"onUpdate:modelValue":c[39]||(c[39]=l=>n.value[e.name]=l),onDownload:c[40]||(c[40]=l=>J("download",e.name,l))},null,8,["id","scrollable","width","height","fileName","showPrintButton","showFullScreenButton","primaryDownloadButton","stickyHeader","zoomLevel","downloadType","preloadLibs","modelValue"])):C.value==="flag"?(t.openBlock(),t.createBlock(t.unref(r.LxFlag),{key:24,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title},null,8,["value","size","title"])):C.value==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxIcon),{key:25,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,animation:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.animation:e.displaySchema?.properties[e.name]?.lx?.animation,meaningful:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.meaningful:e.displaySchema?.properties[e.name]?.lx?.meaningful,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,desc:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.desc:e.displaySchema?.properties[e.name]?.lx?.desc,texts:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.texts:e.displaySchema?.properties[e.name]?.lx?.texts},null,8,["value","iconSet","variant","customClass","animation","meaningful","title","desc","texts"])):C.value==="illustration"?(t.openBlock(),t.createBlock(t.unref(r.LxIllustration),{key:26,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,class:t.normalizeClass(e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.class:e.displaySchema?.properties[e.name]?.lx?.class),animation:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.animation:e.displaySchema?.properties[e.name]?.lx?.animation},null,8,["value","class","animation"])):C.value==="link"?(t.openBlock(),t.createBlock(t.unref(r.LxLink),{key:27,href:n.value?.[e.name]?.href||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.href},null,8,["href"])):C.value==="map"?(t.openBlock(),t.createBlock(t.unref(r.LxMap),{key:28,id:`${e.id}-${e.name}`,baseLayerDefinitions:n.value[e.name].baseLayerDefinitions,selectedBaseLayer:n.value[e.name].selectedBaseLayer,"onUpdate:selectedBaseLayer":c[41]||(c[41]=l=>n.value[e.name].selectedBaseLayer=l),overlayLayerDefinitions:n.value[e.name].overlayLayerDefinitions,selectedOverlayLayers:n.value[e.name].selectedOverlayLayers,"onUpdate:selectedOverlayLayers":c[42]||(c[42]=l=>n.value[e.name].selectedOverlayLayers=l),zoom:n.value[e.name].zoom,"onUpdate:zoom":c[43]||(c[43]=l=>n.value[e.name].zoom=l),center:n.value[e.name].center,"onUpdate:center":c[44]||(c[44]=l=>n.value[e.name].center=l),objectDefinitions:n.value[e.name].objectDefinitions,showSearch:n.value[e.name].showSearch,showToolbar:n.value[e.name].showToolbar,ignoreThemeChange:n.value[e.name].ignoreThemeChange,hasUserLocation:n.value[e.name].hasUserLocation,texts:n.value[e.name].texts,onSearch:c[45]||(c[45]=l=>J("search",e.name,l))},null,8,["id","baseLayerDefinitions","selectedBaseLayer","overlayLayerDefinitions","selectedOverlayLayers","zoom","center","objectDefinitions","showSearch","showToolbar","ignoreThemeChange","hasUserLocation","texts"])):C.value==="markdownTextArea"?(t.openBlock(),t.createBlock(t.unref(r.LxMarkdownTextArea),{key:29,id:`${e.id}-${e.name}`,placeholder:f(e.displaySchema?.properties[e.name]),rows:e.displaySchema?.properties[e.name]?.lx?.rows,maxlength:e.displaySchema?.properties[e.name]?.maxLength,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,showColorPicker:e.displaySchema?.properties[e.name]?.lx?.showColorPicker,invalid:le.value,"invalidation-message":ie.value,readOnly:k(e.displaySchema?.properties[e.name]),showLinkEditor:e.displaySchema?.properties[e.name]?.lx?.showLinkEditor,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,showPlaceholderPicker:e.displaySchema?.properties[e.name]?.lx?.showPlaceholderPicker,showImagePicker:e.displaySchema?.properties[e.name]?.lx?.showImagePicker,showUnderlineToggle:e.displaySchema?.properties[e.name]?.lx?.showUnderlineToggle,showHeadingPicker:e.displaySchema?.properties[e.name]?.lx?.showHeadingPicker,imageMaxSize:e.displaySchema?.properties[e.name]?.lx?.imageMaxSize,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[46]||(c[46]=l=>n.value[e.name]=l),builderOptions:A.value,onNotification:c[47]||(c[47]=l=>J("notification",e.name,l)),onPreparedImage:c[48]||(c[48]=(l,a,i,h)=>J("preparedImage",e.name,{base64:l,id:a,alt:i,title:h}))},null,8,["id","placeholder","rows","maxlength","disabled","showColorPicker","invalid","invalidation-message","readOnly","showLinkEditor","tooltip","showPlaceholderPicker","showImagePicker","showUnderlineToggle","showHeadingPicker","imageMaxSize","dictionary","labelId","texts","modelValue","builderOptions"])):C.value==="numberSlider"?(t.openBlock(),t.createBlock(t.unref(r.LxNumberSlider),{key:30,id:`${e.id}-${e.name}`,min:e.displaySchema?.properties[e.name]?.lx?.min,max:e.displaySchema?.properties[e.name]?.lx?.max,step:e.displaySchema?.properties[e.name]?.lx?.step,stepMultiplier:e.displaySchema?.properties[e.name]?.lx?.stepMultiplier,hasInput:e.displaySchema?.properties[e.name]?.lx?.hasInput,readOnly:k(e.displaySchema?.properties[e.name]),labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,modelValue:n.value[e.name],"onUpdate:modelValue":c[49]||(c[49]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","min","max","step","stepMultiplier","hasInput","readOnly","labelId","disabled","modelValue","builderOptions"])):C.value==="personDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxPersonDisplay),{key:31,value:n.value?.[e.name],name:e.displaySchema?.properties[e.name]?.lx?.name,kind:e.displaySchema?.properties[e.name]?.lx?.kind,size:e.displaySchema?.properties[e.name]?.lx?.size,variant:e.displaySchema?.properties[e.name]?.lx?.variant,description:e.displaySchema?.properties[e.name]?.lx?.description,role:e.displaySchema?.properties[e.name]?.lx?.role,institution:e.displaySchema?.properties[e.name]?.lx?.institution,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,firstNameAttribute:e.displaySchema?.properties[e.name]?.lx?.firstNameAttribute,lastNameAttribute:e.displaySchema?.properties[e.name]?.lx?.lastNameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,roleAttribute:e.displaySchema?.properties[e.name]?.lx?.roleAttribute,institutionAttribute:e.displaySchema?.properties[e.name]?.lx?.institutionAttribute,iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,maxLength:e.displaySchema?.properties[e.name]?.lx?.maxLength,texts:e.displaySchema?.properties[e.name]?.lx?.texts},null,8,["value","name","kind","size","variant","description","role","institution","icon","iconSet","idAttribute","nameAttribute","firstNameAttribute","lastNameAttribute","descriptionAttribute","roleAttribute","institutionAttribute","iconAttribute","iconSetAttribute","maxLength","texts"])):C.value==="qr"?(t.openBlock(),t.createBlock(t.unref(r.LxQr),{key:32,id:`${e.id}-${e.name}`,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,ignoreTheme:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.ignoreTheme:e.displaySchema?.properties[e.name]?.lx?.ignoreTheme},null,8,["id","value","size","ignoreTheme"])):C.value==="qrScanner"?(t.openBlock(),t.createBlock(t.unref(r.LxQrScanner),{key:33,id:`${e.id}-${e.name}`,formats:n.value?.[e.name]?.formats||e.displaySchema?.properties[e.name]?.lx?.formats,hasFileUploader:n.value?.[e.name]?.hasFileUploader||e.displaySchema?.properties[e.name]?.lx?.hasFileUploader,selectionKind:n.value?.[e.name]?.selectionKind||e.displaySchema?.properties[e.name]?.lx?.selectionKind,cameraSwitcherMode:n.value?.[e.name]?.cameraSwitcherMode||e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:n.value?.[e.name]?.hasFlashlightToggle||e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,showAlerts:n.value?.[e.name]?.showAlerts||e.displaySchema?.properties[e.name]?.lx?.showAlerts,labelId:n.value?.[e.name]?.labelId||e.displaySchema?.properties[e.name]?.lx?.labelId,texts:n.value?.[e.name]?.texts||e.displaySchema?.properties[e.name]?.lx?.texts,builderOptions:A.value,onValue:c[50]||(c[50]=l=>J("value",e.name,l)),onError:c[51]||(c[51]=l=>J("error",e.name,l))},null,8,["id","formats","hasFileUploader","selectionKind","cameraSwitcherMode","hasFlashlightToggle","showAlerts","labelId","texts","builderOptions"])):C.value==="rating"?(t.openBlock(),t.createBlock(t.unref(r.LxRating),{key:34,readOnly:k(e.displaySchema?.properties[e.name]),kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.lx?.variant,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[52]||(c[52]=l=>n.value[e.name]=l)},null,8,["readOnly","kind","variant","disabled","texts","modelValue"])):C.value==="richTextDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxRichTextDisplay),{key:35,id:`${e.id}-${e.name}`,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value?.[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading},null,8,["id","value","loading"])):C.value==="stateDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxStateDisplay),{key:36,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,dictionary:e.displaySchema?.properties[e.name]?.type==="object"?n.value?.[e.name]?.dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary},null,8,["value","dictionary"])):C.value==="steps"?(t.openBlock(),t.createBlock(t.unref(r.LxSteps),{key:37,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,kind:e.displaySchema?.properties[e.name]?.lx?.kind,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,stateAttribute:e.displaySchema?.properties[e.name]?.lx?.stateAttribute,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,modelValue:n.value[e.name],"onUpdate:modelValue":c[53]||(c[53]=l=>n.value[e.name]=l)},null,8,["id","items","kind","idAttribute","nameAttribute","descriptionAttribute","stateAttribute","loading","busy","disabled","modelValue"])):C.value==="visualPicker"?(t.openBlock(),t.createBlock(t.unref(r.LxVisualPicker),{key:38,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.lx?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.mode,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",readOnly:k(e.displaySchema?.properties[e.name]),labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[54]||(c[54]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","kind","mode","selectionKind","readOnly","labelId","texts","modelValue","builderOptions"])):C.value==="dayInput"?(t.openBlock(),t.createBlock(t.unref(r.LxDayInput),{key:39,id:`${e.id}-${e.name}`,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,readOnly:k(e.displaySchema?.properties[e.name]),kind:e.displaySchema?.properties[e.name]?.lx?.kind,invalid:le.value,invalidationMessage:ie.value,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[55]||(c[55]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","disabled","readOnly","kind","invalid","invalidationMessage","labelId","texts","modelValue","builderOptions"])):C.value==="drawPad"?(t.openBlock(),t.createBlock(t.unref(r.LxDrawPad),{key:40,id:`${e.id}-${e.name}`,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,width:e.displaySchema?.properties[e.name]?.lx?.width,height:e.displaySchema?.properties[e.name]?.lx?.height,instrument:e.displaySchema?.properties[e.name]?.lx?.instrument,color:e.displaySchema?.properties[e.name]?.lx?.color,showInstruments:e.displaySchema?.properties[e.name]?.lx?.showInstruments,showColorPicker:e.displaySchema?.properties[e.name]?.lx?.showColorPicker,showClearAll:e.displaySchema?.properties[e.name]?.lx?.showClearAll,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":c[56]||(c[56]=l=>n.value[e.name]=l),builderOptions:A.value},null,8,["id","disabled","width","height","instrument","color","showInstruments","showColorPicker","showClearAll","labelId","texts","modelValue","builderOptions"])):C.value==="logoDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxLogoDisplay),{key:41,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size},null,8,["value","kind","size"])):C.value==="text"?(t.openBlock(),t.createElementBlock("p",Rl,t.toDisplayString(n.value[e.name]),1)):t.createCommentVNode("",!0)}},ve={__name:"FormBuilder",props:{id:{type:String,default:()=>r.lxStringUtils.generateUUID()},modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},mode:{type:String,default:"default"},validations:{type:Object,default:null},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:null,useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit","filterBuilderFilter"],setup(e,{expose:y,emit:s}){const x=e,n={required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",deleteElement:"Dzēst elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},S=t.computed(()=>Ee(x.texts,n)),E=s,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(g){E("update:modelValue",g)}});function k(g){return!!x.schema?.required?.some(w=>w===g)}const T=t.computed(()=>{try{r.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function v(g){return g?.format!=="date"&&g?.format!=="time"&&g?.format!=="date-time"&&g?.format!=="year"&&g?.format!=="month"&&g?.format!=="month-year"&&g?.format!=="quarters"}function M(g){return g?.type==="string"&&g?.lx?.kind!=="multiline"&&!g?.lx?.variant&&v(g)&&!g?.enum||g?.type==="number"&&!g?.lx?.variant&&v(g)&&!g?.enum?"textInputDefault":g?.type==="string"&&g?.lx?.kind==="multiline"?"textArea":g?.type==="string"&&!v(g)?"dateTimePicker":""}function H(g){return g?.type==="array"&&g?.lx?.displayType==="list"?"arrayList":g?.type==="array"&&g?.lx?.displayType==="listModal"?"arrayListModal":g?.type==="array"&&g?.lx?.displayType==="table"?"arrayTable":g?.type==="array"&&g?.lx?.displayType==="tableModal"?"arrayTableModal":Array.isArray(g?.lx?.items)||g?.enum?"valuePicker":g?.items?.properties&&g?.type==="array"?"appendableList":g?.type==="array"&&g?.items?.type!=="object"&&g?.items?"smallAppendableList":""}function q(g,w){return g?.lx?.displayType==="map"&&g?.type==="object"?"map":g?.type==="object"&&f.value?.[w]!==void 0&&f.value?.[w]!==null&&g?.lx?.displayType==="modal"?"objectList":g?.type==="object"&&!f.value?.[w]&&g?.lx?.displayType==="modal"?"objectButton":g?.type==="object"&&f.value?.[w]!==void 0&&f.value?.[w]!==null?"dataBlock":""}function z(g){return zt(g)}function $(g){const w=M(g);return w||null}function C(g){return g?.type==="string"&&(g?.lx?.variant||g?.enum)||g?.type==="array"}function D(g){const w=H(g);return w!==""?w:null}function J(g,w){const F=q(g,w);return F!==""?F:null}function Y(g){g&&r.lxDevUtils.log(`Property '${g}' couldn't be rendered`,De().getGlobals()?.environment,"warn")}function Z(g,w){if(g?.lx?.wrapper==="placeholder")return"lxPlaceholder";const F=z(g);if(F)return F;const R=$(g);if(R)return R;if(g?.type==="integer")return"textInputInteger";if(g?.type==="boolean")return"toggle";if(C(g)){const ce=D(g);if(ce)return ce}const _=J(g,w);return _||(Y(w),"lxPlaceholder")}function K(){const g={...x.modelValue};x.schema?.properties&&Object.entries(x.schema?.properties)?.forEach(([w,F])=>{F?.lx?.displayType==="dateTimeRange"&&(g[w]===void 0||g[w]===null)&&(g[w]={}),F?.default!==void 0&&(g[w]===void 0||g[w]===null||Array.isArray(g[w])&&g[w]?.length===0)&&(g[w]=F?.default),F?.properties&&F?.lx?.displayType==="stack"&&(g[w]=g[w]||{},Object.entries(F?.properties)?.forEach(([R,_])=>{_?.lx?.displayType==="dateTimeRange"&&(g[w][R]===void 0||g[w][R]===null)&&(g[w][R]={}),_?.default!==void 0&&(g[w][R]===void 0||g[w][R]===null||Array.isArray(g[w][R])&&g[w][R]?.length===0)&&(g[w][R]=_?.default),_?.properties&&_?.lx?.displayType==="stack"&&(g[w][R]=g[w][R]||{})}))}),f.value=g}const d=t.computed(()=>{const g={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{}};return Object.entries(f.value)?.forEach(([w,F])=>{typeof F=="string"?g.properties[w]={type:"string"}:typeof F=="boolean"?g.properties[w]={type:"boolean"}:typeof F=="number"?g.properties[w]={type:"number"}:Array.isArray(F)&&typeof F[0]=="object"?(g.properties[w]={type:"array",items:{type:"object",properties:{}}},Object.entries(F[0])?.forEach(([R,_])=>{R!=="_lx_appendableKey"&&(typeof _=="string"?g.properties[w].items.properties[R]={type:"string"}:typeof _=="boolean"&&(g.properties[w].items.properties[R]={type:"boolean"}))})):g.properties[w]={lx:{wrapper:"placeholder"}}}),g}),o=t.computed(()=>{const g=r.lxFormatUtils.objectClone(d.value);if(x.mode==="mixed")try{return x.schema?.hasOwnProperty("required")&&(g.required=x.schema?.required),Object.entries(d.value?.properties)?.forEach(([w])=>{x.schema?.properties?.hasOwnProperty(w)&&(g.properties[w]=x.schema?.properties[w])}),Object.entries(x.schema?.properties)?.forEach(([w,F])=>{g?.properties?.hasOwnProperty(w)||(g.properties[w]=F)}),g}catch(w){r.lxDevUtils.log(w,De().getGlobals()?.environment,"warn")}return g}),te=t.computed(()=>{try{if(x.mode==="no-schema")return d.value;if(x.mode==="mixed")return o.value}catch(g){r.lxDevUtils.log(g,De().getGlobals()?.environment,"warn")}return x.schema}),me=t.computed(()=>{if(x.mode==="no-schema")return d.value?.properties;if(te.value?.properties){const g=r.lxFormatUtils.objectClone(te.value?.properties),F=Object.entries(g).sort((_,ce)=>{const he=_[1]?.lx?.order?_[1].lx.order:1e3,ke=ce[1]?.lx?.order?ce[1].lx.order:1e3;return he-ke});return Object.fromEntries(F)}return{}});function ye(g,w,F=void 0,R=void 0){E("emit",g,w,F,R)}function G(g,w){return g.replace("{0}",w)}function O(g,w,F,R){E("rowActionClick",g,w,F,R)}function b(g){return g==="number"||g==="integer"}function j(g,w){return g[w]||(g[w]={}),g[w]}function le(g,w,F,R){j(g,w)[F]=R}function ie(g,w){g?.required?.forEach(F=>{le(w,F,"required",ee.withMessage(()=>S.value.required,Pt))})}function se(g){return ee.withParams({type:"exclusiveMinimum",value:g},w=>w>g)}function be(g){return ee.withParams({type:"exclusiveMaximum",value:g},w=>w<g)}function xe(g){return ee.withParams({type:"multipleOf",value:g},w=>w%g===0)}function oe(g){return ee.withParams({type:"pattern",value:g},w=>new RegExp(g).test(w))}function A(g,w,F){b(F?.type)&&(F?.minimum!==void 0&&le(g,w,"minValue",ee.withMessage(({$params:R})=>G(S.value.minimum,R.min),Et(F.minimum))),F?.exclusiveMinimum!==void 0&&le(g,w,"exclusiveMinimum",ee.withMessage(()=>G(S.value.exclusiveMinimum,F.exclusiveMinimum),se(F.exclusiveMinimum))),F?.maximum!==void 0&&le(g,w,"maxValue",ee.withMessage(({$params:R})=>G(S.value.maximum,R.max),Dt(F.maximum))),F?.exclusiveMaximum!==void 0&&le(g,w,"exclusiveMaximum",ee.withMessage(()=>G(S.value.exclusiveMaximum,F.exclusiveMaximum),be(F.exclusiveMaximum))),F?.multipleOf!==void 0&&le(g,w,"multipleOf",ee.withMessage(()=>G(S.value.multipleOf,F.multipleOf),xe(F.multipleOf))))}function u(g,w,F){F?.type==="string"&&(F?.minLength!==void 0&&le(g,w,"minLength",ee.withMessage(({$params:R})=>G(S.value.minLength,R.min),Ye(F.minLength))),F?.maxLength!==void 0&&le(g,w,"maxLength",ee.withMessage(({$params:R})=>G(S.value.maxLength,R.max),Qe(F.maxLength))),F?.pattern&&le(g,w,"pattern",ee.withMessage(()=>G(S.value.pattern,F.pattern),oe(F.pattern))))}function c(g){return new Set(g)?.size===g?.length}function l(g,w,F){F?.type==="array"&&(F?.minItems!==void 0&&le(g,w,"minItems",ee.withMessage(({$params:R})=>G(S.value.minItems,R.min),Ye(F.minItems))),F?.maxItems!==void 0&&le(g,w,"maxItems",ee.withMessage(({$params:R})=>G(S.value.maxItems,R.max),Qe(F.maxItems))),F?.uniqueItems&&le(g,w,"uniqueItems",ee.withMessage(()=>S.value.uniqueItems,c)))}function a(g,w,F){A(g,w,F),u(g,w,F),l(g,w,F)}function i(g,w,F){g?.properties&&Object.entries(g.properties).forEach(([R,_])=>{if(_?.type==="object"&&_?.properties){w[R]=F(_);return}a(w,R,_)})}function h(g){return ee.withParams({type:"minProperties",value:g},w=>Object.keys(w).length>=g)}function m(g){return ee.withParams({type:"maxProperties",value:g},w=>Object.keys(w).length<=g)}function p(g,w){g?.minProperties!==void 0&&g?.type==="object"&&(w.minProperties=ee.withMessage(()=>G(S.value.minProperties,g.minProperties),h(g.minProperties))),g?.maxProperties!==void 0&&g?.type==="object"&&(w.maxProperties=ee.withMessage(()=>G(S.value.maxProperties,g.maxProperties),m(g.maxProperties)))}function V(g){const w={};return ie(g,w),i(g,w,V),p(g,w),w}const W=t.computed(()=>x.schema?{modelClone:V(x.schema)}:{modelClone:{}}),Q=t.ref();function re(){const g=[];if(x.mode!=="no-schema"){const w=r.lxFormatUtils.objectClone(f.value);Q.value=$t(W,{modelClone:w},{$autoDirty:!0}),Q.value.value.modelClone.$touch(),Q.value.value?.$errors?.forEach(R=>{const _={};_.propertyPath=R.$propertyPath,_.validator=R.$validator,_.message=R.$message,_.value=R.$params,g.push(_)})}return g}function Be(){Q.value.value.modelClone.$reset()}return t.watch(()=>x.schema,()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&K()}),t.onMounted(()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&K()}),y({validateModel:re,clearValidations:Be,componentSelect:Z}),(g,w)=>T.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(me.value,(F,R)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:R},[Z(F,R)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):F?.lx?.displayType!=="section"?(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:te.value?.properties[R]?.title?te.value?.properties[R]?.title:R,rowSpan:te.value?.properties[R]?.lx?.rowSpan,columnSpan:te.value?.properties[R]?.lx?.columnSpan,required:k(R),inputId:e.builderOptions?.useRegistry?void 0:`${e.id}-${R}`,id:`${e.id}-${R}-wrapper`,actionDefinitions:te.value?.properties[R]?.lx?.rowActionDefinitions,builderOptions:{schemaPath:`${e.builderOptions?.schemaPath}.${R}`,componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${R}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry},onActionClick:(_,ce,he)=>O(ce,he,R,void 0)},t.createSlots({default:t.withCtx(()=>[Z(F,R)==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${R}`,orientation:F?.lx?.orientation,kind:F?.lx?.kind,mode:F?.lx?.mode,horizontalAlignment:F?.lx?.horizontalAlignment,verticalAlignment:F?.lx?.verticalAlignment,horizontalConfig:F?.lx?.horizontalConfig,verticalConfig:F?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te.value?.properties[R]?.properties,(_,ce)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ce},[Z(_,ce)==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${ce}`,orientation:_?.lx?.orientation,kind:_?.lx?.kind,mode:_?.lx?.mode,horizontalAlignment:_?.lx?.horizontalAlignment,verticalAlignment:_?.lx?.verticalAlignment,horizontalConfig:_?.lx?.horizontalConfig,verticalConfig:_?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(te.value?.properties[R]?.properties[ce]?.properties,(he,ke)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ke},[f.value[R]?(t.openBlock(),t.createBlock(Ne,{key:0,id:`${e.id}-${ke}`,modelValue:f.value[R][ce],"onUpdate:modelValue":pe=>f.value[R][ce]=pe,readOnly:e.readOnly,row:he,name:ke,displaySchema:te.value?.properties[R]?.properties[ce],vv:Q.value,orderedObject:me.value?.[R]?.properties?.[ce]?.properties,texts:S.value,parentName:`${R}.${ce}`,validations:e.validations?.[R]?.[ce],onRowActionClick:w[0]||(w[0]=(pe,$e,Ve,qe)=>O(pe,$e,Ve,qe)),onEmit:w[1]||(w[1]=(pe,$e,Ve,qe)=>ye(pe,$e,Ve,qe)),onFilterBuilderFilter:w[2]||(w[2]=pe=>E("filterBuilderFilter"))},null,8,["id","modelValue","onUpdate:modelValue","readOnly","row","name","displaySchema","vv","orderedObject","texts","parentName","validations"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontalAlignment","verticalAlignment","horizontalConfig","verticalConfig"])):(t.openBlock(),t.createBlock(Ne,{key:1,id:e.id,modelValue:f.value[R],"onUpdate:modelValue":he=>f.value[R]=he,readOnly:e.readOnly,row:_,name:ce,displaySchema:te.value?.properties[R],vv:Q.value,orderedObject:me.value?.[R]?.properties,parentName:R,texts:S.value,validations:e.validations?.[R],onRowActionClick:w[3]||(w[3]=(he,ke,pe,$e)=>O(he,ke,pe,$e)),onEmit:w[4]||(w[4]=(he,ke,pe,$e)=>ye(he,ke,pe,$e)),onFilterBuilderFilter:w[5]||(w[5]=he=>E("filterBuilderFilter"))},null,8,["id","modelValue","onUpdate:modelValue","readOnly","row","name","displaySchema","vv","orderedObject","parentName","texts","validations"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontalAlignment","verticalAlignment","horizontalConfig","verticalConfig"])):(t.openBlock(),t.createBlock(Ne,{key:1,id:e.id,modelValue:f.value,"onUpdate:modelValue":w[6]||(w[6]=_=>f.value=_),readOnly:e.readOnly,row:F,name:R,displaySchema:te.value,schema:e.schema,vv:Q.value,orderedObject:me.value,texts:S.value,validations:e.validations,builderOptions:{componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${R}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry,schemaPath:`${e.builderOptions?.schemaPath}`},onRowActionClick:w[7]||(w[7]=(_,ce,he,ke)=>O(_,ce,he,ke)),onEmit:w[8]||(w[8]=(_,ce,he,ke)=>ye(_,ce,he,ke)),onFilterBuilderFilter:w[9]||(w[9]=_=>E("filterBuilderFilter"))},null,8,["id","modelValue","readOnly","row","name","displaySchema","schema","vv","orderedObject","texts","validations","builderOptions"]))]),_:2},[F?.description?{name:"info",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(F?.description),1)]),key:"0"}:void 0]),1032,["label","rowSpan","columnSpan","required","inputId","id","actionDefinitions","builderOptions","onActionClick"])):t.createCommentVNode("",!0)],64))),128)):t.createCommentVNode("",!0)}},Vt={__name:"FilterBuilder",props:{modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},mode:{type:String,default:"default"},defaultValues:{type:Object,default:null},useDefaults:{type:Boolean,default:!0},label:{type:String,default:null},description:{type:String,default:null},usesFilters:{type:Boolean,default:void 0},filterButtonKind:{type:String,default:"tertiary"},columnCount:{type:Number,default:3},expanded:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},fastFilters:{type:Array,default:()=>[]},fastIdAttribute:{type:String,default:"id"},fastNameAttribute:{type:String,default:"name"},badge:{type:String,default:""},badgeIcon:{type:String,default:null},badgeType:{type:String,default:"default"},badgeTitle:{type:String,default:null,validator:(e,y)=>(y.badge||y.badgeIcon)&&!e?(r.lxDevUtils.logWarn('Warning: LxFilterBuilder "badgeTitle" is required when "badge" or "badgeIcon" is provided!',De().getGlobals()?.environment),!1):!0},validations:{type:Object,default:null},closeOnFilter:{type:Boolean,default:!0},hasShortlistReset:{type:Boolean,default:!1},filteredModelValue:{type:Object,default:void 0},texts:{type:Object,default:()=>({})},name:{type:String,default:null},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:null,useRegistry:!1,defaultSectionSchemaPath:null})},id:{type:String,default:null}},emits:["update:modelValue","filter","resetFilters","fastFilterClick","update:expanded","rowActionClick"],setup(e,{expose:y,emit:s}){const x=e,n=s,S={filters:"Filtri",search:"Atlasīt",clear:"Notīrīt",fastFiltersLabel:"Ātrie filtri",required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},E=t.computed(()=>Ee(x.texts,S)),f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(O){n("update:modelValue",O)}}),k=t.ref(),T=t.ref(!1),v=t.computed({get(){return x.expanded!==void 0?x.expanded:T.value},set(O){x.expanded!==void 0?n("update:expanded",O):T.value=O}}),M=t.ref();function H(){x.closeOnFilter&&(v.value=!1,Jt(M.value?.$el)),n("filter")}const q=t.ref({}),z=t.computed(()=>x.schema?.properties?Object.keys(x.schema?.properties).reduce((b,j)=>(b[j]=x.defaultValues?.[j]||(x.useDefaults?q.value?.[j]:void 0),b),{}):{});function $(O,b){if(Array.isArray(O)&&Array.isArray(b)){if(O?.length!==b?.length)return!1;for(let j=0;j<O?.length;j+=1)if(O[j]!==b[j])return!1;return!0}return!1}const C=t.computed(()=>x.filteredModelValue!==void 0?x.filteredModelValue:f.value);function D(O,b,j){return O==="dateTime"||O==="date-time"?`${b||""}${r.lxDateUtils.formatDateTime(j)}`:O==="date"?`${b||""}${r.lxDateUtils.formatDate(j)}`:`${b||""}${j}`}function J(O,b){if(O?.type==="string"){if(O?.enum)return`${O?.lx?.filterDescription||""}${C.value[b]}`;if(O?.lx?.items&&typeof O?.lx?.items!="function")return`${O?.lx?.filterDescription||""}${O?.lx?.items?.find(j=>j?.[O?.lx?.idAttribute||"id"]===C.value[b])?.[O?.lx?.nameAttribute||"name"]}`}else if(C.value?.[b]?.length>0&&!$(C.value?.[b],z.value?.[b])&&C.value?.[b]?.length>0)return`${O?.lx?.filterDescription||(O?.title?`${O?.title}: `:`${b}: `)}${C.value?.[b]?.length}`;return null}function Y(O,b){return O&&O!==C.value?.[b]?typeof C.value?.[b]=="string"?`${C.value?.[b]}`:typeof C.value?.[b]=="boolean"?`${b}: ${r.lxFormatUtils.formatValue(C.value[b],"bool")}`:Array.isArray(C.value?.[b])&&C.value?.[b]?.length>0?`${b}: ${C.value?.[b]?.length}`:`${C.value?.[b]}`:null}function Z(O,b,j){return(O==="dateTime"||O==="date-time")&&(j?.startDate||j?.endDate)?`${b||""}${r.lxDateUtils.formatDateTime(j?.startDate)}-${r.lxDateUtils.formatDateTime(j?.endDate)}`:O==="date"&&(j?.startDate||j?.endDate)?`${b||""}${r.lxDateUtils.formatDate(j?.startDate)}-${r.lxDateUtils.formatDate(j?.endDate)}`:j?.startDate||j?.endDate?`${b||""}${j?.startDate}-${j?.endDate}`:""}function K(O,b){switch(k.value?.componentSelect(O,b)){case"textInputDefault":case"textInputInteger":case"textArea":return`${O?.lx?.filterDescription||""}${C.value[b]}`;case"dateTimePicker":return D(O?.format,O?.lx?.filterDescription,C.value[b]);case"dateTimeRange":return Z(O?.format,O?.lx?.filterDescription,C.value[b]);case"toggle":return`${O?.lx?.filterDescription||(O?.title?`${O?.title}: `:`${b}: `)}${r.lxFormatUtils.formatValue(C.value[b],"bool")}`;case"valuePicker":case"autoComplete":return J(O,b)?J(O,b):null;case"select":case"arrayListModal":case"arrayTable":case"arrayTableModal":case"appendableList":case"smallAppendableList":return!$(C.value?.[b],z.value?.[b])&&C.value?.[b]?.length>0?`${O?.lx?.filterDescription||(O?.title?`${O?.title}: `:`${b}: `)}${C.value?.[b]?.length}`:null;case"objectList":case"objectButton":case"dataBlock":return O?.lx?.filterDescription?O.lx.filterDescription:O?.title?O.title:b;default:return null}}function d(O,b){return JSON.stringify(O)===JSON.stringify(b)}function o(O){return O&&typeof O=="object"&&!Array.isArray(O)}const te=t.computed(()=>{if(x.defaultValues&&Object.keys(x.defaultValues)?.length>0||x.useDefaults){if(x.schema?.properties&&x.mode!=="no-schema")return Object.entries(x.schema?.properties).reduce((b,[j,le])=>{if(C.value?.[j]!==null&&C.value?.[j]!==void 0&&C.value?.[j]!==""&&(!o(C.value?.[j])&&C.value?.[j]!==z.value?.[j]||o(C.value?.[j])&&!d(C.value?.[j],z.value?.[j]))){const ie=K(le,j);ie&&b.push(ie)}return b},[]).join(", ");if(x.mode==="no-schema")return Object.entries(q.value).reduce((O,[b,j])=>(Y(j,b)&&O.push(Y(j,b)),O),[])?.join(", ")}return""});function me(){return k.value.validateModel()}function ye(){k.value.clearValidations()}t.onMounted(()=>{q.value=r.lxFormatUtils.objectClone(x.modelValue||{})});const G=t.computed(()=>`${x.name}.${x.builderOptions?.defaultSectionSchemaPath}`);return y({validateModel:me,clearValidations:ye}),(O,b)=>(t.openBlock(),t.createBlock(t.unref(r.LxFilters),{ref_key:"filterElement",ref:M,id:e.id,expanded:v.value,"onUpdate:expanded":b[2]||(b[2]=j=>v.value=j),label:e.label,description:e.description||(v.value?"":te.value),usesFilters:e.usesFilters===void 0?!v.value&&te.value?.length>0:e.usesFilters,filterButtonKind:e.filterButtonKind,disabled:e.disabled,fastFilters:e.fastFilters,fastIdAttribute:e.fastIdAttribute,fastNameAttribute:e.fastNameAttribute,badge:e.badge,badgeIcon:e.badgeIcon,badgeType:e.badgeType,badgeTitle:e.badgeTitle,columnCount:e.columnCount||3,hasShortlistReset:e.hasShortlistReset,texts:E.value,builderOptions:e.builderOptions,onFilter:H,onResetFilters:b[3]||(b[3]=()=>n("resetFilters")),onFastFilterClick:b[4]||(b[4]=j=>n("fastFilterClick",j))},{default:t.withCtx(()=>[t.createVNode(ve,{ref_key:"formBuilder",ref:k,id:e.id,schema:e.schema,modelValue:f.value,"onUpdate:modelValue":b[0]||(b[0]=j=>f.value=j),readOnly:e.readOnly,mode:e.mode,texts:E.value,validations:e.validations,builderOptions:{componentStack:e.builderOptions?.componentStack?.concat({id:`${e.id}-form`,name:"LxForm"},{id:`${e.id}-form-default`,name:"LxSection"}),useRegistry:e.builderOptions?.useRegistry,schemaPath:G.value},onRowActionClick:b[1]||(b[1]=(j,le,ie,se)=>n("rowActionClick",j,le,ie,se)),onFilterBuilderFilter:H},null,8,["id","schema","modelValue","readOnly","mode","texts","validations","builderOptions"])]),_:1},8,["id","expanded","label","description","usesFilters","filterButtonKind","disabled","fastFilters","fastIdAttribute","fastNameAttribute","badge","badgeIcon","badgeType","badgeTitle","columnCount","hasShortlistReset","texts","builderOptions"]))}},Mt={__name:"ViewBuilder",props:{id:{type:String,default:()=>r.lxStringUtils.generateUUID()},modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},validations:{type:Object,default:null},mode:{type:String,default:"default"},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit"],setup(e,{expose:y,emit:s}){const x=e,n={required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",deleteElement:"Dzēst elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},S=t.computed(()=>Ee(x.texts,n)),E=s,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(A){E("update:modelValue",A)}}),k=t.computed(()=>{try{r.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function T(){function A(c,l){Object.entries(l?.properties||{}).forEach(([a,i])=>{i?.lx?.displayType==="dateTimeRange"&&(c[a]===void 0||c[a]===null)&&(c[a]={}),i?.default!==void 0&&(c[a]===void 0||c[a]===null||Array.isArray(c[a])&&c[a]?.length===0)&&(c[a]=i.default),(i?.properties&&i?.lx?.displayType==="stack"||i?.lx?.displayType==="form"||i?.items?.properties)&&(c[a]=c[a]||{},A(c[a],i))})}const u={...x.modelValue};A(u,x.schema),f.value=u}const v=t.computed(()=>{const A=Object.values(x.schema?.properties||{});return A.some(u=>u?.lx?.displayType==="form"&&u?.type==="object")?"form":A.some(u=>u?.lx?.displayType==="filters"&&u?.type==="object")?"list":"default"});function M(A,u,c,l){E("rowActionClick",A,u,c,l)}function H(A,u,c=void 0,l=void 0){E("emit",A,u,c,l)}function q(A,u){return A.replace("{0}",u)}function z(A){return A==="number"||A==="integer"}function $(A,u,c){if(c?.minimum!==void 0&&(A[u]=A[u]||{},A[u].minValue=ee.withMessage(({$params:l})=>q(S.value.minimum,l.min),Et(c.minimum))),c?.exclusiveMinimum!==void 0){const l=a=>ee.withParams({type:"exclusiveMinimum",value:a},i=>i>a);A[u]=A[u]||{},A[u].exclusiveMinimum=ee.withMessage(()=>q(S.value.exclusiveMinimum,c.exclusiveMinimum),l(c.exclusiveMinimum))}if(c?.maximum!==void 0&&(A[u]=A[u]||{},A[u].maxValue=ee.withMessage(({$params:l})=>q(S.value.maximum,l.max),Dt(c.maximum))),c?.exclusiveMaximum!==void 0){const l=a=>ee.withParams({type:"exclusiveMaximum",value:a},i=>i<a);A[u]=A[u]||{},A[u].exclusiveMaximum=ee.withMessage(()=>q(S.value.exclusiveMaximum,c.exclusiveMaximum),l(c.exclusiveMaximum))}if(c?.multipleOf!==void 0){const l=a=>ee.withParams({type:"multipleOf",value:a},i=>i%a===0);A[u]=A[u]||{},A[u].multipleOf=ee.withMessage(()=>q(S.value.multipleOf,c.multipleOf),l(c.multipleOf))}}function C(A,u,c){if(c?.minLength!==void 0&&(A[u]=A[u]||{},A[u].minLength=ee.withMessage(({$params:l})=>q(S.value.minLength,l.min),Ye(c.minLength))),c?.maxLength!==void 0&&(A[u]=A[u]||{},A[u].maxLength=ee.withMessage(({$params:l})=>q(S.value.maxLength,l.max),Qe(c.maxLength))),c?.pattern){const l=a=>ee.withParams({type:"pattern",value:a},i=>new RegExp(a).test(i));A[u]=A[u]||{},A[u].pattern=ee.withMessage(()=>q(S.value.pattern,c.pattern),l(c.pattern))}}function D(A,u,c){if(c?.minItems!==void 0&&(A[u]=A[u]||{},A[u].minItems=ee.withMessage(({$params:l})=>q(S.value.minItems,l.min),Ye(c.minItems))),c?.maxItems!==void 0&&(A[u]=A[u]||{},A[u].maxItems=ee.withMessage(({$params:l})=>q(S.value.maxItems,l.max),Qe(c.maxItems))),c?.uniqueItems){const l=a=>new Set(a)?.size===a?.length;A[u]=A[u]||{},A[u].uniqueItems=ee.withMessage(()=>S.value.uniqueItems,l)}}function J(A,u,c){z(c?.type)&&$(A,u,c),c?.type==="string"&&C(A,u,c),c?.type==="array"&&D(A,u,c)}function Y(A,u){if(u?.minProperties!==void 0&&u?.type==="object"){const c=l=>ee.withParams({type:"minProperties",value:l},a=>Object.keys(a).length>=l);A.minProperties=ee.withMessage(()=>q(S.value.minProperties,u.minProperties),c(u.minProperties))}if(u?.maxProperties!==void 0&&u?.type==="object"){const c=l=>ee.withParams({type:"maxProperties",value:l},a=>Object.keys(a).length<=l);A.maxProperties=ee.withMessage(()=>q(S.value.maxProperties,u.maxProperties),c(u.maxProperties))}}const Z=A=>{const u=A?.required,c={};return u?.forEach(l=>{c[l]=c[l]||{},c[l].required=ee.withMessage(()=>S.value.required,Pt)}),A?.properties&&Object.entries(A.properties).forEach(([l,a])=>{a?.type==="object"&&a?.properties?c[l]=Z(a):J(c,l,a)}),Y(c,A),c},K=t.computed(()=>x.schema?{modelClone:Z(x.schema)}:{modelClone:{}}),d=t.ref(),o=t.ref({});function te(){Object.values(o.value)?.forEach(A=>{A.validateModel()})}function me(){const A=[];te();const u=r.lxFormatUtils.objectClone(f.value);return d.value=$t(K,{modelClone:u},{$autoDirty:!0}),d.value.value.modelClone.$touch(),d.value.value?.$errors?.forEach(l=>{const a={};a.propertyPath=l.$propertyPath,a.validator=l.$validator,a.message=l.$message,a.value=l.$params,A.push(a)}),A}function ye(){d.value.value.modelClone.$reset(),Object.values(o.value)?.forEach(A=>{A.clearValidations()})}t.watch(()=>x.schema,(A,u)=>{JSON.stringify(A)!==JSON.stringify(u)&&x.mode!=="no-schema"&&T()}),t.onBeforeMount(async()=>{x.mode!=="no-schema"&&await T()});const G=t.computed(()=>{const A={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{form:{type:"object",lx:{displayType:"form"},properties:{}}}};return Object.entries(f.value)?.forEach(([u,c])=>{typeof c=="string"||typeof c=="boolean"||typeof c=="number"?A.properties.form.properties[u]={type:typeof c}:Array.isArray(c)&&typeof c[0]=="object"?(A.properties.form.properties[u]={type:"array",items:{type:"object",properties:{}}},Object.entries(c[0])?.forEach(([l,a])=>{l!=="_lx_appendableKey"&&(typeof a=="string"?A.properties.form.properties[u].items.properties[l]={type:"string"}:typeof a=="boolean"&&(A.properties.form.properties[u].items.properties[l]={type:"boolean"}))})):A.properties.form.properties[u]={lx:{wrapper:"placeholder"}}}),A}),O=t.computed(()=>{const A=structuredClone(x.schema);if(x.mode==="mixed")try{return Object.entries(G.value?.properties?.form?.properties)?.forEach(([u,c])=>{Object.prototype.hasOwnProperty.call(A?.properties,u)||(A.properties[u]=c)}),A}catch(u){r.lxDevUtils.log(u,De().getGlobals()?.environment,"warn")}return A}),b=t.computed(()=>{try{if(x.mode==="no-schema")return G.value;if(x.mode==="mixed")return O.value}catch(A){r.lxDevUtils.log(A,De().getGlobals()?.environment,"warn")}return x.schema});function j(A){const u=r.lxFormatUtils.objectClone(A);let c=!1;return Object.entries(u||{}).forEach(([a,i])=>{!c&&i?.lx?.displayType==="section"&&i?.type==="object"&&(delete u[a],c=!0)}),u}function le(A){const u=r.lxFormatUtils.objectClone(A),c=Object.entries(u||{});let l=!1;return c.forEach(([a,i])=>{!l&&i?.lx?.displayType==="section"&&i?.type==="object"?l=!0:delete u[a]}),u}function ie(A){const c=Object.entries(A||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return c?c[1]:null}function se(A){const c=Object.entries(A||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return c?c[0]:null}function be(A,u){const c=se(u?.properties);return c?f.value?.[A]?.[c]||{}:f.value?.[A]||{}}function xe(A,u,c){const l=se(u?.properties),a=r.lxFormatUtils.objectClone(f.value||{});if(!l){a[A]=c,f.value=a;return}a[A]=a[A]||{},a[A][l]=c,f.value=a}function oe(A){const u=[];let c=!1;return Object.entries(A||{}).forEach(([l,a])=>{if(a?.lx?.displayType==="section"&&a?.type==="object"){const i={};i.id=c?l:"default",i.name=l,c||(i.isCurrentStep=!0,i.state="current"),u.push(i),c=!0}}),u}return y({validateModel:me,clearValidations:ye}),(A,u)=>k.value?(t.openBlock(),t.createBlock(t.unref(r.LxViewLayout),{key:0,kind:v.value,id:e.id,builderOptions:{schemaPath:null,componentStack:[],useRegistry:e.builderOptions?.useRegistry}},t.createSlots({filters:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value?.properties,(c,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[c?.lx?.displayType==="filters"&&c?.type==="object"?(t.openBlock(),t.createBlock(Vt,{key:0,ref_for:!0,ref:a=>o.value[`${e.id}-${l}`]=a,modelValue:be(l,c),schema:c?.properties?.[se(c?.properties)],name:l,id:`${e.id}-${l}`,readOnly:e.readOnly,defaultValues:c?.lx?.defaultValues,useDefaults:c?.lx?.useDefaults,label:c?.title,description:c?.description,usesFilter:c?.lx?.usesFilter,filterButtonKind:c?.lx?.filterButtonKind,expanded:c?.lx?.expanded,disabled:c?.lx?.disabled,fastFilters:c?.lx?.fastFilters,fastIdAttribute:c?.lx?.fastIdAttribute,fastNameAttribute:c?.lx?.fastNameAttribute,badge:c?.lx?.badge,badgeType:c?.lx?.badgeType,texts:c?.lx?.texts,columnCount:ie(c?.properties)?.lx?.columnCount||c?.lx?.columnCount,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxFilters"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:se(c?.properties)},"onUpdate:modelValue":a=>xe(l,c,a),onFilter:()=>H("filter",l),onResetFilter:()=>H("resetFilter",l),onFastFilterClick:a=>H("fastFilterClick",l,a),"onUpdate:expanded":a=>H("update:expanded",l,a),onRowActionClick:u[0]||(u[0]=(a,i,h,m)=>M(a,i,h,m))},null,8,["modelValue","schema","name","id","readOnly","defaultValues","useDefaults","label","description","usesFilter","filterButtonKind","expanded","disabled","fastFilters","fastIdAttribute","fastNameAttribute","badge","badgeType","texts","columnCount","builderOptions","onUpdate:modelValue","onFilter","onResetFilter","onFastFilterClick","onUpdate:expanded"])):t.createCommentVNode("",!0)],64))),128))]),_:2},[e.mode!=="no-schema"?{name:"default",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value?.properties,(c,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[c?.lx?.displayType==="form"&&c?.type==="object"?(t.openBlock(),t.createBlock(t.unref(r.LxForm),{key:0,id:`${e.id}-${l}`,showHeader:c?.lx?.showHeader,stickyHeader:c?.lx?.stickyHeader,showFooter:c?.lx?.showFooter,stickyFooter:c?.lx?.stickyFooter,showPreHeaderInfo:c?.lx?.showPreHeaderInfo,showPostHeaderInfo:c?.lx?.showPostHeaderInfo,index:c?.lx?.index||oe(c?.properties),indexType:c?.lx?.indexType,actionDefinitions:c?.lx?.actionDefinitions,kind:c?.lx?.kind,hasSkipLink:c?.lx?.hasSkipLink,texts:c?.lx?.texts,columnCount:ie(c?.properties)?.lx?.columnCount,requiredMode:ie(c?.properties)?.lx?.requiredMode,orientation:ie(c?.properties)?.lx?.orientation,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:se(c?.properties)},onActionClick:a=>H("actionClick",l,a)},t.createSlots({header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c?.title),1)]),sections:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(j(e.schema?.properties?.[l]?.properties),(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="section"&&a?.type==="object"?(t.openBlock(),t.createBlock(t.unref(r.LxSection),{key:0,id:`${i}`,label:a?.title,description:a?.description,columnCount:a?.lx?.columnCount,requiredMode:a?.lx?.requiredMode,icon:a?.lx?.icon,iconSet:a?.lx?.iconSet,customClass:a?.lx?.customClass,badge:a?.lx?.badge,actionDefinitions:a?.lx?.actionDefinitions,orientation:a?.lx?.orientation,texts:a?.lx?.texts,builderOptions:{schemaPath:`${l}.${i}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry},onActionClick:h=>H("actionClick",`${l}.${i}`,h)},{default:t.withCtx(()=>[f.value?.[l]?(t.openBlock(),t.createBlock(ve,{key:0,ref_for:!0,ref:h=>o.value[`${e.id}-${l}-${i}`]=h,modelValue:f.value[l][i],"onUpdate:modelValue":h=>f.value[l][i]=h,schema:a,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[i],mode:"view-builder",builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"},{id:`${e.id}-${l}-${i}`,name:"LxSection"}],useRegistry:e.builderOptions?.useRegistry,schemaPath:`${l}.${i}`},onRowActionClick:(h,m,p,V)=>M(h,m,`${l}.${i}.${p}`,V),onEmit:(h,m,p,V)=>H(h,`${l}.${i}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","readOnly","texts","validations","builderOptions","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)]),_:2},1032,["id","label","description","columnCount","requiredMode","icon","iconSet","customClass","badge","actionDefinitions","orientation","texts","builderOptions","onActionClick"])):t.createCommentVNode("",!0)],64))),128))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(le(e.schema?.properties?.[l]?.properties),(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[f.value?.[l]?(t.openBlock(),t.createBlock(ve,{key:0,ref_for:!0,ref:h=>o.value[`${e.id}-${l}-${i}`]=h,modelValue:f.value[l][i],"onUpdate:modelValue":h=>f.value[l][i]=h,schema:a,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[i],mode:"view-builder",builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"},{id:`${e.id}-${l}-default`,name:"LxSection"}],useRegistry:e.builderOptions?.useRegistry,schemaPath:`${l}.${i}`},onRowActionClick:(h,m,p,V)=>M(h,m,`${l}.${i}.${p}`,V),onEmit:(h,m,p,V)=>H(h,`${l}.${i}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","readOnly","texts","validations","builderOptions","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},[c?.lx?.preHeader?{name:"preHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.preHeader?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${i}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${i}-${m}`,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:a,itemName:i},null,8,["itemValue","itemName"]))],64))),128))]),key:"0"}:void 0,c?.lx?.preHeaderInfo?{name:"preHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.preHeaderInfo?.properties,(a,i)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{label:a?.title,hideLabel:a?.lx?.hideLabel||!a?.title,key:i},{default:t.withCtx(()=>[t.createVNode(U,{itemValue:a,itemName:i},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"1"}:void 0,c?.lx?.postHeaderInfo?{name:"postHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.postHeaderInfo?.properties,(a,i)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{label:a?.title,hideLabel:a?.lx?.hideLabel||!a?.title,key:i},{default:t.withCtx(()=>[t.createVNode(U,{itemValue:a,itemName:i},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"2"}:void 0,c?.lx?.postHeader?{name:"postHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.postHeader?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${i}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[h?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${i}-${m}`,orientation:h?.lx?.orientation,kind:h?.lx?.kind,mode:h?.lx?.mode,"horizontal-alignment":h?.lx?.horizontalAlignment,"vertical-alignment":h?.lx?.verticalAlignment,"horizontal-config":h?.lx?.horizontalConfig,"vertical-config":h?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h?.properties,(p,V)=>(t.openBlock(),t.createBlock(U,{key:V,itemValue:p,itemName:V},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:h,itemName:m},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(U,{key:1,itemValue:a,itemName:i},null,8,["itemValue","itemName"]))],64))),128))]),key:"3"}:void 0]),1032,["id","showHeader","stickyHeader","showFooter","stickyFooter","showPreHeaderInfo","showPostHeaderInfo","index","indexType","actionDefinitions","kind","hasSkipLink","texts","columnCount","requiredMode","orientation","builderOptions","onActionClick"])):c?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:1,id:`${e.id}-${l}`,orientation:c?.lx?.orientation,kind:c?.lx?.kind,mode:c?.lx?.mode,"horizontal-alignment":c?.lx?.horizontalAlignment,"vertical-alignment":c?.lx?.verticalAlignment,"horizontal-config":c?.lx?.horizontalConfig,"vertical-config":c?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.schema?.properties?.[l]?.properties,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${i}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.schema?.properties?.[l]?.properties?.[i]?.properties,(h,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[f.value?.[l]?(t.openBlock(),t.createBlock(Ne,{key:0,modelValue:f.value[l][i],"onUpdate:modelValue":p=>f.value[l][i]=p,schema:e.schema?.properties?.[l]?.properties?.[i],displaySchema:b.value?.properties?.[l]?.properties?.[i],row:h,name:m,readOnly:e.readOnly,parentName:`${l}.${i}`,vv:d.value,texts:S.value,validations:e.validations?.[l]?.[i],onRowActionClick:(p,V,W,Q)=>M(p,V,`${l}.${i}.${W}`,Q),onEmit:(p,V,W,Q)=>H(p,`${l}.${i}.${V}`,W,Q)},null,8,["modelValue","onUpdate:modelValue","schema","displaySchema","row","name","readOnly","parentName","vv","texts","validations","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):a?.lx?.displayType!=="stack"&&f.value?(t.openBlock(),t.createBlock(Ne,{key:1,modelValue:f.value[l],"onUpdate:modelValue":h=>f.value[l]=h,schema:e.schema?.properties?.[l],displaySchema:b.value?.properties?.[l],row:a,name:i,readOnly:e.readOnly,parentName:`${l}`,vv:d.value,texts:S.value,validations:e.validations?.[l],onRowActionClick:(h,m,p,V)=>M(h,m,`${l}.${p}`,V),onEmit:(h,m,p,V)=>H(h,`${l}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","displaySchema","row","name","readOnly","parentName","vv","texts","validations","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):c?.lx?.displayType!=="filters"?(t.openBlock(),t.createBlock(Ne,{key:2,modelValue:f.value,"onUpdate:modelValue":u[1]||(u[1]=a=>f.value=a),schema:e.schema,displaySchema:b.value,row:c,name:l,readOnly:e.readOnly,texts:S.value,vv:d.value,validations:e.validations,builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"}],useRegistry:e.builderOptions?.useRegistry},onRowActionClick:u[2]||(u[2]=(a,i,h,m)=>M(a,i,h,m)),onEmit:u[3]||(u[3]=(a,i,h,m)=>H(a,i,h,m))},null,8,["modelValue","schema","displaySchema","row","name","readOnly","texts","vv","validations","builderOptions"])):t.createCommentVNode("",!0)],64))),128))]),key:"0"}:{name:"default",fn:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),null,{default:t.withCtx(()=>[t.createVNode(ve,{modelValue:f.value,"onUpdate:modelValue":u[4]||(u[4]=c=>f.value=c),schema:b.value?.properties?.form,readOnly:e.readOnly,texts:S.value,validations:e.validations,mode:"view-builder",onRowActionClick:u[5]||(u[5]=(c,l,a,i)=>M(c,l,a,i)),onEmit:u[6]||(u[6]=(c,l,a,i)=>H(c,l,a,i))},null,8,["modelValue","schema","readOnly","texts","validations"])]),_:1})]),key:"1"}]),1032,["kind","id","builderOptions"])):t.createCommentVNode("",!0)}};function vl(e,y){return t.getCurrentScope()?(t.onScopeDispose(e,y),!0):!1}const nt=new WeakMap,ql=(...e)=>{var y;const s=e[0],x=(y=t.getCurrentInstance())===null||y===void 0?void 0:y.proxy,n=x??t.getCurrentScope();if(n==null&&!t.hasInjectionContext())throw new Error("injectLocal must be called in setup");return n&&nt.has(n)&&s in nt.get(n)?nt.get(n)[s]:t.inject(...e)},Kl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hl=Object.prototype.toString,Gl=e=>Hl.call(e)==="[object Object]",Ft=()=>{};function Jl(e,y){function s(...x){return new Promise((n,S)=>{Promise.resolve(e(()=>y.apply(this,x),{fn:y,thisArg:this,args:x})).then(n).catch(S)})}return s}function Wl(e,y={}){let s,x,n=Ft;const S=k=>{clearTimeout(k),n(),n=Ft};let E;return k=>{const T=t.toValue(e),v=t.toValue(y.maxWait);return s&&S(s),T<=0||v!==void 0&&v<=0?(x&&(S(x),x=void 0),Promise.resolve(k())):new Promise((M,H)=>{n=y.rejectOnCancel?H:M,E=k,v&&!x&&(x=setTimeout(()=>{s&&S(s),x=void 0,M(E())},v)),s=setTimeout(()=>{x&&S(x),x=void 0,M(k())},T)})}}function Nt(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function at(e){return Array.isArray(e)?e:[e]}function Ql(e){return t.getCurrentInstance()}function Rt(e,y=200,s={}){return Jl(Wl(y,s),e)}function Yl(e,y=!0,s){Ql()?t.onMounted(e,s):y?e():t.nextTick(e)}function Zl(e,y,s){return t.watch(e,y,{...s,immediate:!0})}const it=Kl?window:void 0;function Xl(e){var y;const s=t.toValue(e);return(y=s?.$el)!==null&&y!==void 0?y:s}function ot(...e){const y=[],s=()=>{y.forEach(f=>f()),y.length=0},x=(f,k,T,v)=>(f.addEventListener(k,T,v),()=>f.removeEventListener(k,T,v)),n=t.computed(()=>{const f=at(t.toValue(e[0])).filter(k=>k!=null);return f.every(k=>typeof k!="string")?f:void 0}),S=Zl(()=>{var f,k;return[(f=(k=n.value)===null||k===void 0?void 0:k.map(T=>Xl(T)))!==null&&f!==void 0?f:[it].filter(T=>T!=null),at(t.toValue(n.value?e[1]:e[0])),at(t.unref(n.value?e[2]:e[1])),t.toValue(n.value?e[3]:e[2])]},([f,k,T,v])=>{if(s(),!f?.length||!k?.length||!T?.length)return;const M=Gl(v)?{...v}:v;y.push(...f.flatMap(H=>k.flatMap(q=>T.map(z=>x(H,q,z,M)))))},{flush:"post"}),E=()=>{S(),s()};return vl(s),E}function Ul(){const e=t.shallowRef(!1),y=t.getCurrentInstance();return y&&t.onMounted(()=>{e.value=!0},y),e}function Il(e){const y=Ul();return t.computed(()=>(y.value,!!e()))}const _l=Symbol("vueuse-ssr-width");function en(){const e=t.hasInjectionContext()?ql(_l,null):null;return typeof e=="number"?e:void 0}function tn(e,y={}){const{window:s=it,ssrWidth:x=en()}=y,n=Il(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function"),S=t.shallowRef(typeof x=="number"),E=t.shallowRef(),f=t.shallowRef(!1),k=T=>{f.value=T.matches};return t.watchEffect(()=>{if(S.value){S.value=!n.value,f.value=t.toValue(e).split(",").some(T=>{const v=T.includes("not all"),M=T.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),H=T.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let q=!!(M||H);return M&&q&&(q=x>=Nt(M[1])),H&&q&&(q=x<=Nt(H[1])),v?!q:q});return}n.value&&(E.value=s.matchMedia(t.toValue(e)),f.value=E.value.matches)}),ot(E,"change",k,{passive:!0}),t.computed(()=>f.value)}function ln(e={}){const{window:y=it,initialWidth:s=Number.POSITIVE_INFINITY,initialHeight:x=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:S=!0,type:E="inner"}=e,f=t.shallowRef(s),k=t.shallowRef(x),T=()=>{if(y)if(E==="outer")f.value=y.outerWidth,k.value=y.outerHeight;else if(E==="visual"&&y.visualViewport){const{width:M,height:H,scale:q}=y.visualViewport;f.value=Math.round(M*q),k.value=Math.round(H*q)}else S?(f.value=y.innerWidth,k.value=y.innerHeight):(f.value=y.document.documentElement.clientWidth,k.value=y.document.documentElement.clientHeight)};T(),Yl(T);const v={passive:!0};return ot("resize",T,v),y&&E==="visual"&&y.visualViewport&&ot(y.visualViewport,"resize",T,v),n&&t.watch(tn("(orientation: portrait)"),()=>T()),{width:f,height:k}}function rt(e){switch(e){case"LxTextInput":return{type:"string",title:"New Text Input",lx:{}};case"LxTextArea":return{type:"string",title:"New Text Area",lx:{kind:"multiline"}};case"LxDateTimePicker":return{type:"string",title:"New Date time picker",format:"date"};case"LxDateTimeRange":return{type:"object",title:"New LxDateTimeRange",lx:{displayType:"dateTimeRange"}};case"LxAutoComplete":return{type:"string",title:"New LxAutoComplete",lx:{displayType:"autoComplete"}};case"LxValuePicker":return{type:"string",title:"New LxValuePicker",lx:{variant:"default",items:[{id:"option1",name:"Option 1"},{id:"option2",name:"Option 2"},{id:"option3",name:"Option 3"}]}};case"LxCheckbox":return{type:"boolean",title:"New LxCheckbox",lx:{displayType:"checkbox"}};case"LxContentSwitcher":return{type:"string",title:"New LxContentSwitcher",lx:{displayType:"contentSwitcher",items:[{id:"option1",name:"Option 1"},{id:"option2",name:"Option 2"},{id:"option3",name:"Option 3"}]}};case"LxNumberSlider":return{type:"integer",title:"New LxNumberSlider",lx:{displayType:"numberSlider"}};case"LxToggle":return{type:"boolean",title:"New Toggle",lx:{}};case"LxQrScanner":return{type:"object",title:"New LxQrScanner",lx:{displayType:"qrScanner"}};case"LxFileUploader":return{type:"array",title:"New LxFileUploader",lx:{displayType:"file"}};case"LxDayInput":return{type:"integer",title:"New LxDayInput",lx:{displayType:"dayInput"}};case"LxVisualPicker":return{type:"string",title:"New LxVisualPicker",lx:{displayType:"visualPicker"}};case"LxDrawPad":return{type:"string",title:"New LxDrawPad",lx:{displayType:"drawPad"}};case"LxCamera":return{type:"string",title:"New LxCamera",lx:{displayType:"camera"}};case"LxMarkdownTextArea":return{type:"string",title:"New LxMarkdownTextArea",lx:{displayType:"markdown"}};case"LxFilters":return{type:"object",title:"New LxFilters",lx:{displayType:"filters"},properties:{}};case"LxSection":return{type:"object",title:"New LxSection",lx:{displayType:"section"},properties:{}};case"LxForm":return{type:"object",title:"New LxForm",lx:{displayType:"form",indexType:"none"},properties:{}}}return null}function nn(){return[{id:"LxTextInput",name:"LxTextInput",usageGroup:"inputs"},{id:"LxTextArea",name:"LxTextArea",usageGroup:"inputs"},{id:"LxDateTimePicker",name:"LxDateTimePicker",usageGroup:"inputs"},{id:"LxDateTimeRange",name:"LxDateTimeRange",usageGroup:"inputs"},{id:"LxAutoComplete",name:"LxAutoComplete",usageGroup:"inputs"},{id:"LxValuePicker",name:"LxValuePicker",usageGroup:"inputs"},{id:"LxCheckbox",name:"LxCheckbox",usageGroup:"inputs"},{id:"LxContentSwitcher",name:"LxContentSwitcher",usageGroup:"inputs"},{id:"LxNumberSlider",name:"LxNumberSlider",usageGroup:"inputs"},{id:"LxToggle",name:"LxToggle",usageGroup:"inputs"},{id:"LxQrScanner",name:"LxQrScanner",usageGroup:"inputs"},{id:"LxFileUploader",name:"LxFileUploader",usageGroup:"inputs"},{id:"LxDayInput",name:"LxDayInput",usageGroup:"inputs"},{id:"LxVisualPicker",name:"LxVisualPicker",usageGroup:"inputs"},{id:"LxDrawPad",name:"LxDrawPad",usageGroup:"inputs"},{id:"LxCamera",name:"LxCamera",usageGroup:"inputs"},{id:"LxMarkdownTextArea",name:"LxMarkdownTextArea",usageGroup:"inputs"}]}const an={class:"custom-auto-complete-item-with-icon lx-item-display"},on={class:"custom-auto-complete-item-with-icon lx-item-display"},rn={class:"custom-auto-complete-item-with-icon lx-item-display"},cn={class:"custom-auto-complete-item-with-icon lx-item-display"},ct={__name:"PropRendererItem",props:{item:{type:Object,required:!0},modelValue:{type:Object,required:!0},name:{type:String,required:!0},componentName:{type:String,default:null},texts:{type:Object,default:()=>({save:"Saglabāt",close:"Aizvērt",edit:"Labot"})}},emits:["update:modelValue"],setup(e,{emit:y}){const s=e,x=y,n=t.computed({get(){return s.modelValue},set(G){x("update:modelValue",G)}}),S=t.computed(()=>r.lxIconUtils.getAvailableIcons("cds")?.map(G=>({id:G,name:G})));function E(G){return G.type.name==="Number"||Array.isArray(G.type)&&G.type.some(O=>O.name==="Number")}function f(G){return(G.type.name==="String"||Array.isArray(G.type)&&G.type.some(O=>O.name==="String"))&&s.name!=="icon"}function k(G){return G.type.name==="Boolean"||Array.isArray(G.type)&&G.type.some(O=>O.name==="Boolean")}function T(G){return G.type.name==="Date"}function v(G){return(G||[]).filter(O=>O!=null).map(O=>({id:O,name:O}))}const M=t.ref(),H=t.ref(null),q=t.ref();function z(){M.value.open(),H.value=r.lxFormatUtils.objectClone(s.modelValue[s.name])}function $(G){if(G==="save"){const O=q.value.clearModel(H.value);n.value[s.name]=O,M.value.close()}}const C=t.ref(),D=t.ref(null),J=t.ref();function Y(){D.value=r.lxFormatUtils.objectClone(s.modelValue.index),C.value.open()}function Z(G){if(G==="save"){const O=J.value.clearModel(D.value);n.value.index=O,C.value.close()}}const K=t.ref(),d=t.ref(null),o=t.ref();function te(){K.value.open(),d.value=r.lxFormatUtils.objectClone(s.modelValue[s.name])}function me(G){if(G==="save"){const O=o.value.clearModel(d.value);n.value[s.name]=O,K.value.close()}}function ye(G){return s.name==="columnSpan"||s.name==="rowSpan"||s.name==="columnCount"||s.name==="cadenceOfMinutes"||s.name==="cadenceOfSeconds"?"tags":G.length>5?"dropdown":"default"}return(G,O)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(f(e.item)||T(e.item))&&(e.name==="minDate"||e.name==="maxDate")?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:0,modelValue:n.value[e.name],"onUpdate:modelValue":O[0]||(O[0]=b=>n.value[e.name]=b),kind:"dateTime"},null,8,["modelValue"])):f(e.item)&&!e.item.options?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:1,modelValue:n.value[e.name],"onUpdate:modelValue":O[1]||(O[1]=b=>n.value[e.name]=b)},null,8,["modelValue"])):!e.item.options&&E(e.item)?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,modelValue:n.value[e.name],"onUpdate:modelValue":O[2]||(O[2]=b=>n.value[e.name]=b),mask:"integer",convertToString:!1},null,8,["modelValue"])):k(e.item)?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,modelValue:n.value[e.name],"onUpdate:modelValue":O[3]||(O[3]=b=>n.value[e.name]=b)},null,8,["modelValue"])):e.item.options&&(f(e.item)||E(e.item))?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:4,modelValue:n.value[e.name],"onUpdate:modelValue":O[4]||(O[4]=b=>n.value[e.name]=b),items:v(e.item.options),variant:ye(e.item.options),nullable:e.item.options.includes(null),convertToString:!f(e.item)},null,8,["modelValue","items","variant","nullable","convertToString"])):t.createCommentVNode("",!0),s.name==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxAutoComplete),{key:5,modelValue:n.value[e.name],"onUpdate:modelValue":O[5]||(O[5]=b=>n.value[e.name]=b),items:S.value},{customItem:t.withCtx(b=>[t.createElementVNode("div",an,[t.createVNode(t.unref(r.LxIcon),{value:b.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(b.name),1)])]),_:1},8,["modelValue","items"])):t.createCommentVNode("",!0),s.name==="index"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:6},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,kind:"secondary",icon:"edit",onClick:Y},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"indexModal",ref:C,label:"index",size:"m",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:Z},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"indexList",ref:J,modelValue:D.value,"onUpdate:modelValue":O[6]||(O[6]=b=>D.value=b),columnCount:2,requiredMode:"none"},{customItem:t.withCtx(({item:b})=>[t.createVNode(t.unref(r.LxRow),{label:"id"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.id,"onUpdate:modelValue":j=>b.id=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.name,"onUpdate:modelValue":j=>b.name=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),s.name==="actionDefinitions"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:7},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:z},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"actionDefinitionsModal",ref:M,label:"actionDefinitions",size:"l",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:$},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"actionDefList",ref:q,modelValue:H.value,"onUpdate:modelValue":O[7]||(O[7]=b=>H.value=b),columnCount:8,requiredMode:"required-asterisk"},{customItem:t.withCtx(({item:b})=>[t.createVNode(t.unref(r.LxRow),{label:"id",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.id,"onUpdate:modelValue":j=>b.id=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.name,"onUpdate:modelValue":j=>b.name=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"title",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.title,"onUpdate:modelValue":j=>b.title=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"kind",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:b.kind,"onUpdate:modelValue":j=>b.kind=j,variant:"dropdown",items:[{id:"primary",name:"primary"},{id:"secondary",name:"secondary"},{id:"tertiary",name:"tertiary"},{id:"additional",name:"additional"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"icon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:b.icon,"onUpdate:modelValue":j=>b.icon=j,items:S.value},{customItem:t.withCtx(j=>[t.createElementVNode("div",on,[t.createVNode(t.unref(r.LxIcon),{value:j.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(j.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"iconSet",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:b.iconSet,"onUpdate:modelValue":j=>b.iconSet=j,variant:"dropdown",items:[{id:"cds",name:"cds"},{id:"material",name:"material"},{id:"brand",name:"brand"},{id:"additional",name:"additional"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"disabled"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:b.disabled,"onUpdate:modelValue":j=>b.disabled=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"loading"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:b.loading,"onUpdate:modelValue":j=>b.loading=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"busy"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:b.busy,"onUpdate:modelValue":j=>b.busy=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"destructive"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:b.destructive,"onUpdate:modelValue":j=>b.destructive=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badge",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.badge,"onUpdate:modelValue":j=>b.badge=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeType",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:b.badgeType,"onUpdate:modelValue":j=>b.badgeType=j,variant:"dropdown",items:[{id:"default",name:"default"},{id:"info",name:"info"},{id:"success",name:"success"},{id:"warning",name:"warning"},{id:"error",name:"error"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeIcon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:b.badgeIcon,"onUpdate:modelValue":j=>b.badgeIcon=j,items:S.value},{customItem:t.withCtx(j=>[t.createElementVNode("div",rn,[t.createVNode(t.unref(r.LxIcon),{value:j.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(j.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeTitle",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.badgeTitle,"onUpdate:modelValue":j=>b.badgeTitle=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),s.name==="items"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:8},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:te},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"itemsModal",ref:K,label:"items",size:"l",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:me},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"itemsList",ref:o,modelValue:d.value,"onUpdate:modelValue":O[8]||(O[8]=b=>d.value=b),columnCount:4,requiredMode:"required-asterisk"},{customItem:t.withCtx(({item:b})=>[e.componentName==="LxContentSwitcher"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(t.unref(r.LxRow),{label:"id",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.id,"onUpdate:modelValue":j=>b.id=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.name,"onUpdate:modelValue":j=>b.name=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:b.icon,"onUpdate:modelValue":j=>b.icon=j,items:S.value},{customItem:t.withCtx(j=>[t.createElementVNode("div",cn,[t.createVNode(t.unref(r.LxIcon),{value:j.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(j.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"iconSet"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:b.iconSet,"onUpdate:modelValue":j=>b.iconSet=j,variant:"dropdown",items:[{id:"cds",name:"cds"},{id:"material",name:"material"},{id:"brand",name:"brand"},{id:"additional",name:"additional"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(t.unref(r.LxRow),{label:"id",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.id,"onUpdate:modelValue":j=>b.id=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.name,"onUpdate:modelValue":j=>b.name=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"description",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:b.description,"onUpdate:modelValue":j=>b.description=j},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64))]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0)],64))}},dn={__name:"ConstructorPropRenderer",props:{componentName:{type:String,default:null},componentPropsDefinitions:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},searchString:{type:String,default:null},componentModel:{type:Object,default:()=>({})},texts:{type:Object,default:()=>({additionalLabel:"Additional",modeLabel:"Mode",resetKey:"Atiestatīt",save:"Saglabāt",close:"Aizvērt",edit:"Labot",notFoundSearch:"Nav atrasts:"})},schemaKey:{type:String,default:""},schemaKeyError:{type:String,default:null}},emits:["update:modelValue","update:componentModel","update:schemaKey"],setup(e,{emit:y}){const s=e,x=y,n=t.computed({get(){return s.modelValue},set(D){x("update:modelValue",D)}}),S=t.computed({get(){return s.componentModel},set(D){x("update:componentModel",D)}});function E(D){if(D==="LxForm"){const J={header:{name:"header",type:"String",group:"main",extra:!0},preHeader:{name:"preHeader",type:"String",group:"main",extra:!0},preHeaderInfo:{name:"preHeaderInfo",type:"String",group:"main",extra:!0},postHeader:{name:"postHeader",type:"String",group:"main",extra:!0},postHeaderInfo:{name:"postHeaderInfo",type:"string",group:"main",extra:!0}},Y=s.searchString?Object.entries(J).filter(([Z])=>Z.toLowerCase().includes(s.searchString.toLowerCase())):Object.entries(J);return Object.fromEntries(Y)}return null}function f(D,J){if(!D)return{};const Z=Object.entries(D).filter(([,d])=>d?.group===J).sort(([,d],[,o])=>(d.sequence||0)-(o.sequence||0)),K=s.searchString?Z.filter(([d])=>d.toLowerCase().includes(s.searchString.toLowerCase())):Z;return Object.fromEntries(K)}const k=t.computed(()=>{const D=f(s.componentPropsDefinitions,"main"),J=E(s.componentName);return J?{...D,...J}:D}),T=t.computed(()=>f(s.componentPropsDefinitions,"additional")),v=t.computed(()=>f(s.componentPropsDefinitions,"mode"));function M(D,J){let Y=null;D==="header"?(Y={...S.value},Y.title=J):Y={...S.value,lx:{...S.value.lx,[D]:{properties:{text:{type:"string",lx:{value:J}}}}}},S.value=Y}function H(D,J){return J==="header"?S.value.title:S.value.lx?.[J]?.properties?.text?.lx?.value}const q=Rt(D=>{x("update:schemaKey",D)},500),z=t.computed({get(){return s.schemaKey},set(D){q(D)}}),$=t.ref(0);function C(){z.value=s.schemaKey,$.value+=1}return(D,J)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[!Object.keys(k.value).length&&!Object.keys(T.value).length&&!Object.keys(v.value).length?(t.openBlock(),t.createBlock(t.unref(r.LxEmptyState),{key:0,label:`${e.texts.notFoundSearch} ${JSON.stringify(s.searchString)}`},null,8,["label"])):t.createCommentVNode("",!0),Object.keys(k.value).length?(t.openBlock(),t.createBlock(t.unref(r.LxForm),{key:1,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,(Y,Z)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:Y.name,label:`:${Z}`},{default:t.withCtx(()=>[t.createVNode(ct,{modelValue:n.value,item:Y,name:Z,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"])),[[t.vShow,!Y.extra]])),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,(Y,Z)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:Y.name,label:`${Z}`},{default:t.withCtx(()=>[Y?.extra?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,modelValue:H(Y,Z),"onUpdate:modelValue":K=>M(Z,K)},null,8,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label"])),[[t.vShow,Y.extra]])),128))]),_:1})):t.createCommentVNode("",!0),Object.keys(T.value).length||e.componentName&&e.componentName!=="LxViewLayout"&&!e.searchString||e.searchString&&"schemaKey".includes(e.searchString?.toLowerCase())?(t.openBlock(),t.createBlock(t.unref(r.LxExpander),{key:2,label:e.texts.additionalLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[!e.searchString||e.searchString&&"schemaKey".includes(e.searchString?.toLowerCase())?(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:0,label:"schemaKey"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxStack),{orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:$.value,modelValue:z.value,"onUpdate:modelValue":J[0]||(J[0]=Y=>z.value=Y),invalid:!!e.schemaKeyError,invalidationMessage:e.schemaKeyError},null,8,["modelValue","invalid","invalidationMessage"])),e.schemaKeyError?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"reset",kind:"tertiary",label:e.texts?.resetKey,variant:"icon-only",onClick:J[1]||(J[1]=Y=>C())},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})]),_:1})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(Y,Z)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:Y.name,label:`:${Z}`},{default:t.withCtx(()=>[t.createVNode(ct,{modelValue:n.value,item:Y,name:Z,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["label"])):t.createCommentVNode("",!0),Object.keys(v.value).length?(t.openBlock(),t.createBlock(t.unref(r.LxExpander),{key:3,label:e.texts.modeLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,(Y,Z)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:Y.name,label:`:${Z}`},{default:t.withCtx(()=>[t.createVNode(ct,{modelValue:n.value,item:Y,name:Z,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["label"])):t.createCommentVNode("",!0)],64))}},sn={class:"lx-panel"},mn={class:"button-side"},un={key:0,class:"panel-side"},xn={class:"config-header"},fn={class:"header-wrapper"},yn={key:1,class:"header-wrapper"},hn={key:0,class:"panel-main"},gn={class:"button-group"},kn={key:1,class:"no-component-wrapper"},bn={class:"lx-secondary"},Sn={key:1,class:"panel-main lx-region",style:{padding:"0.25rem"}},Bn={key:2},pn={class:"settings-wrapper"},wn=t.defineComponent({__name:"Panel",props:{componentName:{type:String,default:null},componentProps:{type:Object,default:null},componentPropsDefinitions:{type:Object,default:null},navigation:{type:Array,default:()=>[]},componentModel:{type:Object,default:()=>({})},schemaKey:{type:String,default:""},schemaKeyError:{type:String,default:null},schemaInfo:{type:Object,default:null},texts:{type:Object,default:()=>({})}},emits:["export","import","reportIssue","reset","editSchema","editModel","componentAdd","componentChange","removeComponent","duplicateComponent","update:componentModel","update:componentProps","update:viewLayout","update:schemaKey"],setup(e,{emit:y}){const s=e,x={export:"Saglabāt struktūru",import:"Pievienot no faila",editSchema:"Labot struktūru",editModel:"Labot datus",reportIssue:"Ziņot par kļūdu",reset:"Atiestatīt vērtības",openPanel:"Atvērt paneli",closePanel:"Aizvērt paneli",config:"Konfigurācija",components:"Komponentes",settings:"Iestatījumi",duplicate:"Dublēt",delete:"Dzēst",resetKey:"Atiestatīt",searchProps:"Meklēt propus",searchComponents:"Meklēt komponenti",clear:"Notīrīt",noItems:"Nav ierakstu",notFoundSearch:"Nav atrasts:",actionPanel:"Darbību panelis",save:"Saglabāt",additionalLabel:"Additional",modeLabel:"Mode",noComponentSelected:"Nav izvēlēts neviens elements",inputs:"Ievadlauki",containers:"Konteineri",close:"Aizvērt",edit:"Labot"},n=t.computed(()=>Ee(s.texts,x)),S=y,E=t.computed({get(){return s.componentModel},set(K){S("update:componentModel",K)}}),f=t.ref(!0),k=t.ref("config");function T(K){f.value=!K,K?k.value=null:k.value="config"}const v=t.computed(()=>[{id:"inputs",name:n.value?.inputs,badgeTitle:n.value?.inputs},{id:"containers",name:n.value?.containers,badgeTitle:n.value?.containers}]),M=t.ref(nn()),H=t.computed(()=>{if(!s.componentName)return[];let K=[...M.value];return K=K.map(d=>({...d,clickable:s.componentName!=="LxForm"})),K.push({id:"LxSection",name:"LxSection",usageGroup:"containers",clickable:s.componentName==="LxForm"},{id:"LxForm",name:"LxForm",usageGroup:"containers",clickable:s.componentName==="LxViewLayout"&&!s.schemaInfo?.hasForm&&!s.schemaInfo?.hasFilters},{id:"LxFilters",name:"LxFilters",usageGroup:"containers",clickable:s.componentName==="LxViewLayout"&&!s.schemaInfo?.hasForm&&!s.schemaInfo?.hasFilters}),K.filter(d=>d.clickable)?.sort((d,o)=>d?.name?.localeCompare(o?.name))});function q(K){s.navigation[s.navigation.length-1]?.id!==K&&S("componentChange",s.navigation.find(d=>d.id===K))}function z(K,d){const o=r.lxFormatUtils.objectClone(s.componentModel)||{};return K==="LxTextInput"?(o.type="string",o.maxLength=d.maxlength,o.lx=o.lx||{},o.lx.mask=d.mask||"default",o.lx.kind=d.kind||"default",o.lx.scale=d.scale,o.lx.tooltip=d.tooltip,o.lx.disabled=d.disabled||!1,o.lx.uppercase=d.uppercase||!1,o.lx.convertToString=d.convertToString||!1,o.lx.placeholder=d.placeholder,o.lx.signed=d.signed||!1,o.readOnly=d.readOnly||!1):K==="LxToggle"?(o.type="boolean",o.lx={},o.lx.size=d.size||"m",o.lx.disabled=d.disabled||!1,o.lx.tooltip=d.tooltip,o.readOnly=d.readOnly||!1):K==="LxValuePicker"?(o.type=d.selectionKind==="multiple"?"array":"string",o.lx={},o.lx.items=d.items||[],o.lx.idAttribute=d.idAttribute,o.lx.nameAttribute=d.nameAttribute,o.lx.iconAttribute=d.iconAttribute,o.lx.iconSetAttribute=d.iconSetAttribute,o.lx.categoryAttribute=d.categoryAttribute,o.lx.descriptionAttribute=d.descriptionAttribute,o.lx.variant=d.variant,o.lx.hasSearch=d.hasSearch||!1,o.lx.alwaysAsArray=d.alwaysAsArray||!1,o.lx.nullable=d.nullable||!1,o.lx.tooltip=d.tooltip,o.lx.texts=d.texts,o.lx.placeholder=d.placeholder,o.lx.disabled=d.disabled||!1,o.readOnly=d.readOnly||!1,o.lx.searchAttributes=d.searchAttributes,o.lx.hasSelectAll=d.hasSelectAll||!1,o.lx.readOnlyRenderType=d.readOnlyRenderType||"row"):K==="LxRow"?(o.title=d.label,o.lx=o.lx||{},o.lx.columnSpan=d.columnSpan||"1",o.lx.rowSpan=d.rowSpan||"1",o.lx.rowActionDefinitions=d.rowActionDefinitions):K==="LxTextArea"?(o.type="string",o.maxLength=d.maxlength,o.lx=o.lx||{},o.lx.kind="multiline",o.lx.placeholder=d.placeholder,o.lx.rows=d.rows||3,o.lx.disabled=d.disabled||!1,o.lx.dynamicHeight=d.dynamicHeight||!1,o.lx.tooltip=d.tooltip,o.readOnly=d.readOnly||!1):K==="LxDateTimePicker"?(o.type="string",o.lx={},o.format=d.kind||"date",o.lx.placeholder=d.placeholder,o.lx.tooltip=d.tooltip,o.lx.minDate=d.minDate,o.lx.maxDate=d.maxDate,o.lx.required=d.required||!1,o.lx.disabled=d.disabled||!1,o.lx.timeAdjust=d.timeAdjust,o.lx.clearIfNotExact=d.clearIfNotExact||!1,o.lx.texts=d.texts,o.lx.locale=d.locale,o.lx.specialDates=d.specialDates,o.lx.dictionary=d.dictionary,o.lx.variant=d.variant||"default",o.lx.cadenceOfMinutes=d.cadenceOfMinutes?Number(d.cadenceOfMinutes):1,o.lx.cadenceOfSeconds=d.cadenceOfSeconds?Number(d.cadenceOfSeconds):1,o.readOnly=d.readOnly||!1):K==="LxAutoComplete"?(o.type=d.selectionKind==="multiple"?"array":"string",o.lx=o.lx||{},o.lx.items=d.items||[],o.lx.idAttribute=d.idAttribute||"id",o.lx.nameAttribute=d.nameAttribute||"name",o.lx.dictionary=d.dictionary,o.lx.groupId=d.groupId,o.lx.queryMinLength=d.queryMinLength||0,o.lx.queryMaxLength=d.queryMaxLength,o.lx.queryDebounce=d.queryDebounce||200,o.lx.placeholder=d.placeholder,o.lx.tooltip=d.tooltip,o.lx.disabled=d.disabled||!1,o.lx.loading=d.loading||!1,o.lx.hasDetails=d.hasDetails||!1,o.lx.selectionKind=d.selectionKind||"single",o.lx.preloadedItems=d.preloadedItems,o.lx.labelId=d.labelId,o.lx.hasSelectAll=d.hasSelectAll||!1,o.lx.enableAdditionalText=d.enableAdditionalText||!1,o.lx.texts=d.texts,o.lx.searchAttributes=d.searchAttributes,o.readOnly=d.readOnly||!1):K==="LxCamera"?(o.type="string",o.lx=o.lx||{},o.lx.cameraSwitcherMode=d.cameraSwitcherMode||"toggle",o.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,o.lx.imageSize=d.imageSize||"default",o.lx.preferencesId=d.preferencesId||"lx-camera-settings",o.lx.labelId=d.labelId,o.lx.texts=d.texts):K==="LxCheckbox"?(o.type="boolean",o.lx=o.lx||{},o.lx.groupId=d.groupId,o.lx.label=d.label,o.lx.disabled=d.disabled||!1,o.lx.value=d.value||"none",o.lx.tabindex=d.tabindex||"0",o.lx.labelId=d.labelId):K==="LxContentSwitcher"?(o.type="string",o.lx=o.lx||{},o.lx.items=d.items,o.lx.idAttribute=d.idAttribute||"id",o.lx.nameAttribute=d.nameAttribute||"name",o.lx.disabled=d.disabled||!1,o.lx.kind=d.kind||"default",o.lx.icon=d.icon,o.lx.iconSet=d.iconSet,o.lx.tooltip=d.tooltip,o.lx.labelId=d.labelId,o.readOnly=d.readOnly||!1):K==="LxDateTimeRange"?(o.type="object",o.format=d.kind||"date",o.lx=o.lx||{},o.lx.placeholder=d.placeholder,o.lx.tooltip=d.tooltip,o.lx.minDate=d.minDate,o.lx.maxDate=d.maxDate,o.lx.required=d.required||!1,o.lx.disabled=d.disabled||!1,o.lx.timeAdjust=d.timeAdjust,o.lx.locale=d.locale,o.lx.rangeMonths=d.rangeMonths||"next",o.lx.clearIfNotExact=d.clearIfNotExact||!1,o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly||!1):K==="LxFileUploader"?(o.type="array",o.lx=o.lx||{},o.lx.selectionKind=d.selectionKind||"single",o.lx.mode=d.mode||"default",o.lx.draggable=d.draggable||!1,o.lx.dataType=d.dataType||"meta",o.lx.hasSearch=d.hasSearch||!1,o.lx.disabled=d.disabled||!1,o.lx.loading=d.loading||!1,o.lx.busy=d.busy||!1,o.lx.allowedFileExtensions=d.allowedFileExtensions||[],o.lx.maxFileSize=d.maxFileSize||3e7,o.lx.hasDownloadButton=d.hasDownloadButton||!1,o.lx.showMeta=d.showMeta??!0,o.lx.maxSizeForMeta=d.maxSizeForMeta||3e7,o.lx.hasCamera=d.hasCamera||!1,o.lx.cameraSwitcherMode=d.cameraSwitcherMode||"toggle",o.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,o.lx.imageSize=d.imageSize||"default",o.lx.preferencesId=d.preferencesId||"lx-camera-settings",o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly||!1):K==="LxNumberSlider"?(o.type="integer",o.lx=o.lx||{},o.lx.min=d.min||0,o.lx.max=d.max||9999,o.lx.step=d.step||1,o.lx.stepMultiplier=d.stepMultiplier||5,o.lx.hasInput=d.hasInput||!1,o.lx.labelId=d.labelId,o.lx.disabled=d.disabled||!1,o.readOnly=d.readOnly||!1):K==="LxQrScanner"?(o.type="object",o.lx=o.lx||{},o.lx.formats=d.formats||["qr_code"],o.lx.hasFileUploader=d.hasFileUploader??!0,o.lx.selectionKind=d.selectionKind||"single",o.lx.cameraSwitcherMode=d.cameraSwitcherMode||"list",o.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,o.lx.showAlerts=d.showAlerts??!0,o.lx.labelId=d.labelId,o.lx.texts=d.texts):K==="LxVisualPicker"?(o.type=d.selectionKind==="multiple"?"array":"string",o.lx=o.lx||{},o.lx.kind=d.kind||"europe",o.lx.mode=d.mode||"default",o.lx.selectionKind=d.selectionKind||"multiple",o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly||!1):K==="LxDayInput"?(o.type="integer",o.lx=o.lx||{},o.lx.disabled=d.disabled||!1,o.lx.kind=d.kind||"label",o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly||!1):K==="LxDrawPad"?(o.type="string",o.lx=o.lx||{},o.lx.disabled=d.disabled??!1,o.lx.width=d.width||"500",o.lx.height=d.height||"400",o.lx.instrument=d.instrument||"brush",o.lx.color=d.color||"black",o.lx.showInstruments=d.showInstruments??!1,o.lx.showColorPicker=d.showColorPicker??!1,o.lx.showClearAll=d.showClearAll??!1,o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly??!1):K==="LxMarkdownTextArea"?(o.type="string",o.lx=o.lx||{},o.lx.placeholder=d.placeholder,o.lx.rows=d.rows,o.maxLength=d.maxlength,o.lx.disabled=d.disabled??!1,o.lx.showColorPicker=d.showColorPicker??!1,o.lx.showLinkEditor=d.showLinkEditor??!0,o.lx.tooltip=d.tooltip,o.lx.showPlaceholderPicker=d.showPlaceholderPicker??!1,o.lx.showImagePicker=d.showImagePicker??!1,o.lx.showUnderlineToggle=d.showUnderlineToggle??!1,o.lx.showHeadingPicker=d.showHeadingPicker??!1,o.lx.imageMaxSize=d.imageMaxSize??3e6,o.lx.dictionary=d.dictionary,o.lx.labelId=d.labelId,o.lx.texts=d.texts,o.readOnly=d.readOnly??!1):K==="LxSection"?(o.type="object",o.lx=o.lx||{},o.properties=o.properties||{},o.title=d.label,o.description=d.description,o.lx.columnCount=Number(d.columnCount)||1,o.lx.requiredMode=d.requiredMode||"none",o.lx.icon=d.icon,o.lx.iconSet=d.iconSet||"cds",o.lx.customClass=d.customClass,o.lx.badge=d.badge,o.lx.actionDefinitions=d.actionDefinitions,o.lx.orientation=d.orientation):K==="LxForm"?(o.type="object",o.lx=o.lx||{},o.properties=o.properties||{},o.lx.columnCount=Number(d.columnCount)||1,o.lx.showHeader=d.showHeader??!0,o.lx.stickyHeader=d.stickyHeader??!0,o.lx.showFooter=d.showFooter??!0,o.lx.stickyFooter=d.stickyFooter??!0,o.lx.showPreHeaderInfo=d.showPreHeaderInfo??!0,o.lx.showPostHeaderInfo=d.showPostHeaderInfo??!0,o.lx.index=d.index,o.lx.indexType=d.indexType||"none",o.lx.requiredMode=d.requiredMode||"none",o.lx.kind=d.kind||"default",o.lx.orientation=d.orientation||"vertical",o.lx.hasSkipLink=d.hasSkipLink||!1,o.lx.actionDefinitions=d.actionDefinitions,o.lx.texts=d.texts):K==="LxFilters"&&(o.type="object",o.lx=o.lx||{},o.properties=o.properties||{},o.title=d.label,o.description=d.description,o.lx.defaultValues=d.defaultValues||{},o.lx.useDefaults=d.useDefaults||!1,o.lx.usesFilter=d.usesFilter||!1,o.lx.filterButtonKind=d.filterButtonKind||"tertiary",o.lx.columnCount=d.columnCount||3,o.lx.expanded=d.expanded||!1,o.lx.disabled=d.disabled||!1,o.lx.fastFilters=d.fastFilters||[],o.lx.fastIdAttribute=d.fastIdAttribute||"id",o.lx.fastNameAttribute=d.fastNameAttribute||"name",o.lx.badge=d.badge,o.lx.badgeType=d.badgeType||"default",o.lx.texts=d.texts),o}t.watch(()=>s.componentProps,K=>{const d=z(s.componentName,K);s.componentName==="LxViewLayout"?S("update:viewLayout",K?.kind):S("update:componentModel",d)},{deep:!0});const $=t.computed({get(){return s.componentProps},set(K){S("update:componentProps",K)}}),C=t.computed(()=>s.componentName?s.navigation.map((d,o,te)=>o===te.length-1?{...d,active:!0}:d):[]),D=Rt(K=>{S("update:schemaKey",K)},500),J=t.computed({get(){return s.schemaKey},set(K){D(K)}}),Y=t.ref(null);function Z(){return s.componentName&&s.componentName!=="LxViewLayout"}return(K,d)=>(t.openBlock(),t.createElementBlock("div",sn,[t.createElementVNode("div",mn,[t.createVNode(t.unref(r.LxButton),{icon:f.value?"close-panel":"open-panel",variant:"icon-only",label:f.value?n.value?.closePanel:n.value?.openPanel,kind:"secondary",onClick:d[0]||(d[0]=o=>T(f.value))},null,8,["icon","label"]),t.createVNode(t.unref(r.LxButton),{icon:"config",variant:"icon-only",label:n.value?.config,kind:"secondary",active:f.value&&k.value==="config",onClick:d[1]||(d[1]=o=>(k.value="config",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(r.LxButton),{icon:"components",variant:"icon-only",label:n.value?.components,kind:"secondary",active:f.value&&k.value==="components",onClick:d[2]||(d[2]=o=>(k.value="components",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(r.LxButton),{icon:"settings",variant:"icon-only",label:n.value?.settings,kind:"secondary",active:f.value&&k.value==="settings",onClick:d[3]||(d[3]=o=>(k.value="settings",f.value=!0))},null,8,["label","active"])]),f.value?(t.openBlock(),t.createElementBlock("div",un,[t.createElementVNode("div",null,[t.createElementVNode("div",xn,[k.value==="config"?(t.openBlock(),t.createBlock(t.unref(r.LxDropDownMenu),{key:0,actionDefinitions:C.value,onActionClick:q},{default:t.withCtx(()=>[t.createElementVNode("div",fn,[e.componentName?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("p",null,t.toDisplayString(e.componentName),1),t.createVNode(t.unref(r.LxIcon),{value:"menu"})],64)):t.createCommentVNode("",!0)])]),_:1},8,["actionDefinitions"])):(t.openBlock(),t.createElementBlock("div",yn,[t.createElementVNode("p",null,t.toDisplayString(n.value?.actionPanel),1)]))]),k.value==="config"?(t.openBlock(),t.createElementBlock("div",hn,[t.createElementVNode("div",gn,[t.createVNode(t.unref(r.LxButton),{icon:"copy",kind:"secondary",label:n.value?.duplicate,disabled:!Z(),onClick:d[4]||(d[4]=o=>S("duplicateComponent"))},null,8,["label","disabled"]),t.createVNode(t.unref(r.LxButton),{icon:"delete",kind:"secondary",label:n.value?.delete,disabled:!Z(),destructive:!0,onClick:d[5]||(d[5]=o=>S("removeComponent"))},null,8,["label","disabled"])]),t.createVNode(t.unref(r.LxTextInput),{modelValue:Y.value,"onUpdate:modelValue":d[6]||(d[6]=o=>Y.value=o),kind:"search",placeholder:n.value?.searchProps,disabled:!e.componentName},null,8,["modelValue","placeholder","disabled"]),e.componentName?(t.openBlock(),t.createBlock(dn,{key:0,modelValue:$.value,"onUpdate:modelValue":d[7]||(d[7]=o=>$.value=o),componentName:e.componentName,componentPropsDefinitions:e.componentPropsDefinitions,searchString:Y.value,componentModel:E.value,"onUpdate:componentModel":d[8]||(d[8]=o=>E.value=o),schemaKey:J.value,"onUpdate:schemaKey":d[9]||(d[9]=o=>J.value=o),schemaKeyError:e.schemaKeyError,texts:n.value},null,8,["modelValue","componentName","componentPropsDefinitions","searchString","componentModel","schemaKey","schemaKeyError","texts"])):(t.openBlock(),t.createElementBlock("div",kn,[t.createElementVNode("p",bn,t.toDisplayString(n.value?.noComponentSelected),1)]))])):t.createCommentVNode("",!0),k.value==="components"?(t.openBlock(),t.createElementBlock("div",Sn,[t.createVNode(t.unref(r.LxList),{listType:"1",hasSearch:!0,items:H.value,groupDefinitions:v.value,groupAttribute:"usageGroup",hideFilteredItems:!0,icon:"add",texts:{placeholder:n.value?.searchComponents,clear:n.value?.clear,noItems:n.value?.noItems,notFoundSearch:n.value?.notFoundSearch},onActionClick:d[10]||(d[10]=(o,te)=>S("componentAdd",te))},null,8,["items","groupDefinitions","texts"])])):t.createCommentVNode("",!0),k.value==="settings"?(t.openBlock(),t.createElementBlock("div",Bn,[t.createElementVNode("div",pn,[t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.export,icon:"save",onClick:d[11]||(d[11]=o=>S("export"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.import,icon:"upload",onClick:d[12]||(d[12]=o=>S("import"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.editSchema,icon:"edit",onClick:d[13]||(d[13]=o=>S("editSchema"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.editModel,icon:"editItem",onClick:d[14]||(d[14]=o=>S("editModel"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.reportIssue,icon:"bug",onClick:d[15]||(d[15]=o=>S("reportIssue"))},null,8,["label"])])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Cn={id:"constructor-overlay"},An={class:"highlight-toolbar"},Ln={class:"highlight-toolbar highlight-toolbar-remove"},$n={id:"constructor"},On={class:"code-display"},jn={class:"code"},Tn={class:"import-switcher"},Pn={class:"lx-primary"},En={class:"lx-secondary"},Dn=t.defineComponent({__name:"Constructor",props:{schema:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},texts:{type:Object,default:()=>({})}},emits:["update:schema","update:modelValue","error"],setup(e,{emit:y}){const s=e,x={back:"Pārvietot atpakaļ",next:"Pārvietot uz priekšu",delete:"Dzēst",exportModal:"Saglabāšana",moveOutside:"Pārvietot ārā",moveInside:"Pārvietot iekšā",close:"Aizvērt",save:"Saglabāt",yes:"Jā",no:"Nē",download:"Lejupielādēt",copy:"Kopēt",editSchemaModal:"Struktūras labošana",componentAddModal:"Komponenšu pievienošana",componentAddDescription:"Vai pievienot elementu iekš izvēlētā elementa vai aiz izvēlētā elementa?",componentAddInside:"Pievienot kā apakšelementu",componentAddNext:"Pievienot ārpus elementa",componentAddInsideDescription:"Ievietot komponenti kā daļu no izvēlētā elementa",componentAddNextDescription:"Ievietot komponenti ārpus izvēlētā elementa",importModal:"Pievienošana no datnes",importFile:"Datnes augšupielāde",importText:"Teksta ievade",editModelModal:"Datu labošana",confirmDelete:"Vai tiešām vēlaties dzēst šo komponenti?",componentAddChoice:"Izvēlieties, kur pievienot komponenti",invalidJsonError:"Nederīgs JSON objekts",parseJsonError:"Kļūda, apstrādājot JSON saturu",schemaKeyEmptyError:"Atslēga nedrīkst būt tukša",schemaKeyParentError:"Vecākelements nav atrasts",schemaKeyDuplicateError:'Atslēga "{0}" jau eksistē. Tai jābūt unikālai',schemaKeyUpdateError:"Kļūda atslēgas atjaunināšanā. Mēģiniet vēlreiz!",export:"Saglabāt struktūru",import:"Pievienot no datnes",editSchema:"Labot struktūru",editModel:"Labot datus",reportIssue:"Ziņot par kļūdu",reset:"Atiestatīt vērtības",openPanel:"Atvērt paneli",closePanel:"Aizvērt paneli",config:"Konfigurācija",components:"Komponentes",settings:"Iestatījumi",duplicate:"Dublēt",resetKey:"Atiestatīt",searchProps:"Meklēt propus",searchComponents:"Meklēt komponenti",clear:"Notīrīt",noItems:"Nav ierakstu",notFoundSearch:"Nav atrasts:",actionPanel:"Darbību panelis",additionalLabel:"Additional",modeLabel:"Mode",noComponentSelected:"Nav izvēlēts neviens elements",inputs:"Ievadlauki",containers:"Konteineri",edit:"Labot",fileUploader:{clear:"Notīrīt",draggablePlaceholder:"Ievelciet datnes, vai nospiediet šeit, lai augšupielādētu",close:"Aizvērt",infoButton:"Skatīt detaļas",download:"Lejupielādēt",metaPreviewLabel:"Priekšskatījums",metaPreviewDescription:"priekšskatījums",metaMainLabel:"Galvenie dati",metaMainAuthor:"Autors",metaMainFormat:"Formāts",metaMainLastModified:"Pēdējās izmaiņas",metaMainDataSize:"Datnes izmērs"}},n=t.computed(()=>Ee(s.texts,x)),S=t.ref({}),E=y,f=t.computed({get(){return s.schema},set(L){E("update:schema",L)}}),{width:k,height:T}=ln(),v=t.ref([]),M=t.ref(null),H=t.ref(null),q=t.ref(null),z=t.ref(null),$=t.ref(null),C=t.ref({visible:!1,style:{},el:null,padding:2}),D=t.ref(),J=t.ref({canPlaceInside:!1,key:null,path:null}),Y=t.ref({canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}),Z=t.ref(null),K=t.ref(null),d=t.ref(null),o=t.ref(null),te=t.ref(null),me=t.ref(null),ye=t.ref("file"),G=t.ref(),O=t.ref(null),b=t.ref(null),j=t.ref(null),le=t.computed(()=>!me.value),ie=t.ref(null),se=t.ref(null),be=t.ref(null),xe=t.ref({canMoveBack:!1,canMoveForward:!1,moveOut:!1,canMoveForwardIn:!1});function oe(){xe.value.canMoveBack=!1,xe.value.canMoveForward=!1,xe.value.moveOut=!1,xe.value.canMoveForwardIn=!1}function A(L){if(C.value.el=L.target,!C.value.el)return;const B=C.value.el.getBoundingClientRect(),P=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0,N=C.value.padding;C.value.style={left:`${B.left-N}px`,top:`${B.top-N+P}px`,width:`${B.width+N*2}px`,height:`${B.height+N*2}px`},C.value.visible=!0}function u(){t.nextTick(()=>{A({target:C.value.el})})}function c(L){const B=L?.replace(/-wrapper$/,"");return r.builderRegistry.get(B)?.type==="LxRow"}function l(L,B){return B?.reduce((P,N)=>P?.[N],L)}function a(L=null){const B=L||D.value,P=[];return $.value=B?.split("."),$.value?.forEach(N=>{P.push("properties"),P.push(N)}),P}function i(L){return L?.lx?.displayType}function h(L){return!!L&&Object.prototype.hasOwnProperty.call(L,"properties")&&!!L.properties?i(L)!=="form"?!0:Object.values(L.properties).some(P=>i(P)==="section"):!1}function m(L,B){(!D.value||!B)&&oe();const P=D.value?.split(".")?.slice(-1)[0],N=D.value?.includes(".")?D.value?.split(".")?.slice(0,-1)?.join("."):null,I=(N?l(L,a(N)):L)?.properties,ne=Object.keys(I),ae=ne.indexOf(P),de=ae>=0?ne[ae+1]:null,ge=de?I[de]:null,fe=ae>0?ne[ae-1]:null;xe.value.canMoveBack=!!fe,xe.value.canMoveForward=!!de,xe.value.canMoveForwardIn=h(ge);const ue=N?.includes(".")?N?.split(".")?.slice(0,-1).join("."):null,we=N?.split(".")?.slice(-1)[0]||null,Ce=!!N&&!!we&&!!ue;xe.value.moveOut=Ce}function p(){document.getElementById("constructor")?.addEventListener("click",L=>{let B=L.target,P=null;for(;B;){if(B.getAttribute("data-id")&&r.builderRegistry.get(B.getAttribute("data-id"))||c(B.id)){if(c(B.id)){const X=B.id?.replace(/-wrapper$/,"");P=r.builderRegistry.get(X)}else P=r.builderRegistry.get(B.getAttribute("data-id")||B.id);break}B=B.parentElement}P&&(M.value=P.type,q.value=P.node.type.props,H.value=r.lxFormatUtils.objectClone(P.props),A({target:B}),D.value=P.builderName,v.value=P.componentStack,Z.value=D.value?.includes(".")?D.value?.split(".")?.slice(-1)[0]:D.value,be.value=null),z.value=l(f.value,a());const N=D.value?.includes(".")?D.value?.split(".")?.join("."):null;K.value=l(f.value,a(N)?.slice(0,-1)),m(f.value,z.value)})}function V(){return M.value==="LxRow"||M.value==="LxSection"||!v.value.some(L=>L.name==="LxRow")}function W(L){const B=L;return!B||!(B instanceof HTMLElement)?!0:B.isContentEditable||B.closest('[contenteditable="true"]')?!1:!["INPUT","TEXTAREA","SELECT"].includes(B.tagName)}function Q(L,B,P){B?.reduce((N,X,I)=>(I===B.length-1?N[X]=P:N[X]=N[X]??{},N[X]),L)}function re(L){const B=[];$.value=D.value?.split("."),$.value?.forEach(N=>{B.push("properties"),B.push(N)});const P=r.lxFormatUtils.objectClone(f.value);Q(P,B,L),f.value=P,z.value=L,u()}function Be(){J.value={canPlaceInside:!1,key:null,path:null}}function g(){Y.value={canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}}function w(L,B){if(!L||!B||!Object.prototype.hasOwnProperty.call(B,L))return L;let P=r.lxStringUtils.generateUUID();for(;Object.prototype.hasOwnProperty.call(B,P);)P=r.lxStringUtils.generateUUID();return P}function F(){if(!D.value)return;const L=D.value?.split(".")?.slice(-1)[0],B=D.value?.includes(".")?D.value?.split(".")?.slice(0,-1)?.join("."):null,P=B?a(B):null,N=r.lxFormatUtils.objectClone(f.value),X=P?l(N,P):N,I=X?.properties;if(!I||!L)return;const ne=Object.keys(I),ae=ne.indexOf(L),de=ne[ae+1];if(!de)return;const ge=I[L],fe=I[de];if(!ge||!fe||!h(fe))return;let ue=fe,we=[B,de].filter(Boolean)?.join(".");if(i(fe)==="form"){const Ue=Object.entries(fe.properties||{}).filter(([,Le])=>i(Le)==="section")[0],[Ke,je]=Ue;ue=je,we=[we,Ke].filter(Boolean).join(".")}const Ce=r.lxFormatUtils.objectClone(ge),Ae=r.lxFormatUtils.objectClone(ue.properties||{}),Fe=w(L,Ae);ue.properties={...Ae,[Fe]:Ce},Q(N,a(we),ue),X.properties=Object.fromEntries(Object.entries(I).filter(([Oe])=>Oe!==L)),P&&Q(N,P,X),f.value=N}function R(L){if(!D.value||L!=="previous")return;const B=D.value?.split(".")?.slice(-1)[0],P=D.value?.includes(".")?D.value?.split(".")?.slice(0,-1)?.join("."):null;if(!P)return;const N=P?.includes(".")?P?.split(".")?.slice(0,-1)?.join("."):null,X=P?.split(".")?.slice(-1)[0]||null;if(!N)return;const I=r.lxFormatUtils.objectClone(f.value),ne=P?a(P):null,ae=N?a(N):null,de=ne?l(I,ne):I,ge=ae?l(I,ae):I,fe=de?.properties,ue=ge?.properties;if(!fe||!B||!X)return;let we=ge,Ce=ae,Ae=ue,Fe=X;if(i(de)==="section"&&i(ge)==="form"){const Le=N?.includes(".")?N?.split(".")?.slice(0,-1)?.join("."):null,la=N?.split(".")?.slice(-1)[0]||null,ut=Le?a(Le):null,Kt=ut?l(I,ut):I;we=Kt,Ce=ut,Ae=Kt?.properties,Fe=la}if(!Ae||!Fe)return;const Oe=fe[B];if(!Oe)return;const Ue=r.lxFormatUtils.objectClone(Oe),Ke=w(B,Ae);de.properties=Object.fromEntries(Object.entries(fe).filter(([Le])=>Le!==B));const je={};Object.keys(Ae).forEach(Le=>{Le===Fe&&(je[Ke]=Ue),je[Le]=Ae[Le]}),we.properties=je,ne&&Q(I,ne,de),Ce&&Q(I,Ce,we),f.value=I}function _(L){return Array.isArray(L)?L.filter(B=>B!=="properties"):[]}function ce(L){return _(L).join(".")}function he(L){L&&t.nextTick(()=>{const P=Array.from(r.builderRegistry.all().entries()).find(([,I])=>I?.builderName===L);if(!P)return;const[N]=P;let X=document.querySelector(`[data-id="${N}"]`);X||(X=document.getElementById(`${N}-wrapper`)||document.getElementById(N)),X&&X.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))})}function ke(L,B,P){if(B&&L==="LxDateTimeRange"){const N=r.lxFormatUtils.objectClone(S.value||{}),X=_(P);Q(N,[...X,B],{}),S.value=N,E("update:modelValue",N)}}function pe(L){let B=null;D.value?.includes(".")&&(B=a(D.value?.split(".")?.slice(0,-1)?.join(".")));const P=B?l(f.value,B):f.value,N=D.value?.split(".")?.slice(-1)[0],X=r.lxStringUtils.generateUUID(),I=rt(L),ne=P.properties,ae={};Object.keys(ne).forEach(ue=>{ae[ue]=ne[ue],ue===N&&(ae[X]=I)}),P.properties=ae;const de=r.lxFormatUtils.objectClone(f.value);Q(de,B,P),f.value=de,ke(L,X,B);const fe=[ce(B),X].filter(Boolean).join(".");he(fe)}function $e(L){if(!D.value)return!1;const B=D.value?.split(".")?.slice(-1)[0],P=D.value?.includes(".")?D.value?.split(".")?.slice(0,-1)?.join("."):null;if(!P)return!1;const N=P?.includes(".")?P?.split(".")?.slice(0,-1)?.join("."):null,X=P?.split(".")?.slice(-1)[0]||null;if(!X)return!1;const I=r.lxFormatUtils.objectClone(f.value),ne=a(P),ae=l(I,ne),de=ae?.properties?.[B],ge=i(de)==="section",fe=i(ae)==="form";if(!ge||!fe)return!1;const ue=N?a(N):null,we=ue?l(I,ue):I,Ce=we?.properties;if(!Ce)return!1;const Ae=w(r.lxStringUtils.generateUUID(),Ce),Fe=rt(L),Oe={};Object.keys(Ce).forEach(je=>{je===X&&(Oe[Ae]=Fe),Oe[je]=Ce[je]}),we.properties=Oe,ue&&Q(I,ue,we),f.value=I,ke(L,Ae,ue);const Ke=[ce(ue),Ae].filter(Boolean).join(".");return he(Ke),!0}function Ve(L){let B=null;B=a(D.value?.split(".")?.join("."));const P=B?l(f.value,B):f.value,N=Object.keys(P.properties||{})[Object.keys(P.properties||{}).length-1],X=r.lxStringUtils.generateUUID(),I=rt(L),ne=P.properties,ae={};Object.keys(ne).forEach(ue=>{ae[ue]=ne[ue]}),N?Object.keys(ae).forEach(ue=>{ue===N&&(ae[X]=I)}):ae[X]=I,P.properties=ae;const de=r.lxFormatUtils.objectClone(f.value);Q(de,B,P),f.value=de,ke(L,X,B);const fe=[ce(B),X].filter(Boolean).join(".");he(fe)}function qe(L){let B=null;L.name==="LxRow"?B=document.querySelector(`#${L.id}-wrapper`):(B=document.querySelector(`[data-id="${L.id}"]`),B||(B=document.getElementById(L.id))),B&&B.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}function Vn(L){se.value=L,M.value==="LxViewLayout"?Ve(L):M.value==="LxForm"||M.value==="LxFilters"||M.value==="LxSection"?L==="LxSection"?Ve(L):ie.value.open():pe(L)}function Mn(L,B){B==="inside"?(Ve(se.value),ie.value.close()):B==="next"&&(M.value==="LxSection"&&$e(se.value)||pe(se.value),ie.value.close())}function qt(){let L=null;D.value?.includes(".")&&(L=a(D.value?.split(".")?.slice(0,-1)?.join(".")));const B=L?l(f.value,L):f.value,P=D.value?.split(".")?.slice(-1)[0],N=B.properties,X={};Object.keys(N).forEach(ne=>{ne!==P&&(X[ne]=N[ne])}),B.properties=X;const I=r.lxFormatUtils.objectClone(f.value);Q(I,L,B),f.value=I,C.value.visible=!1,M.value=null,v.value=[],z.value=null,Be(),g()}function Fn(){let L=null;D.value?.includes(".")&&(L=a(D.value?.split(".")?.slice(0,-1)?.join(".")));const B=L?l(f.value,L):f.value,P=D.value?.split(".")?.slice(-1)[0],N=r.lxStringUtils.generateUUID(),X=r.lxFormatUtils.objectClone(B.properties[P]),I=B.properties,ne={};Object.keys(I).forEach(de=>{ne[de]=I[de],de===P&&(ne[N]=X)}),B.properties=ne;const ae=r.lxFormatUtils.objectClone(f.value);Q(ae,L,B),f.value=ae}function Ze(L){let B=null;D.value?.includes(".")&&(B=a(D.value?.split(".")?.slice(0,-1)?.join(".")));const P=B?l(f.value,B):f.value,N=D.value?.split(".")?.slice(-1)[0],X=P.properties,I={},ne=Object.keys(X),ae=ne.indexOf(N);if(L==="up"&&ae>0||L==="down"&&ae<ne.length-1){L==="up"?ne.forEach((ge,fe)=>{fe===ae-1&&(I[N]=X[N]),ge!==N&&(I[ge]=X[ge])}):L==="down"&&ne.forEach((ge,fe)=>{ge!==N&&(I[ge]=X[ge]),fe===ae+1&&(I[N]=X[N])}),P.properties=I;const de=r.lxFormatUtils.objectClone(f.value);Q(de,B,P),f.value=de,t.nextTick(()=>{u(),m(f.value,z.value)})}}function Nn(){d.value.open()}function Rn(){navigator.clipboard.writeText(JSON.stringify(f.value,null,2))}function vn(){const L=JSON.stringify(f.value,null,2),B=new Blob([L],{type:"application/json"}),P=URL.createObjectURL(B),N=document.createElement("a");N.href=P,N.download="schema.json",document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(P)}function qn(L){L==="download"?vn():L==="copy"&&Rn()}function Kn(){ye.value="file",G.value=null,o.value.open()}function dt(L){try{const B=JSON.parse(L);return typeof B=="object"&&B!==null&&!Array.isArray(B)}catch{return!1}}function Hn(L){const B=atob(L),P=Uint8Array.from(B,N=>N.charCodeAt(0));return new TextDecoder("utf-8").decode(P)}function Gn(L){if(L?.length===0){te.value=[],me.value=null;return}te.value=L;const B=L[0].content?.split(",")[1];if(!B){me.value=null,E("error","Invalid file content");return}const P=Hn(B);me.value=P}function Jn(L){if(L==="save"&&me.value){if(G.value=null,!dt(me.value)){G.value=n.value?.invalidJsonObject,E("error","Invalid JSON file content");return}try{const B=JSON.parse(me.value);f.value=B,o.value.close()}catch{G.value=n.value?.errorParsingJsonContent,E("error","Error parsing JSON content")}}}function Wn(){j.value=null,b.value=JSON.stringify(f.value,null,2),O.value.open()}function Qn(L){if(L==="save"&&b.value){if(!dt(b.value)){j.value=n.value?.invalidJsonObject,E("error","Invalid JSON file content");return}try{const B=JSON.parse(b.value);f.value=B,O.value.close()}catch{E("error","Error parsing JSON content")}}}const st=t.ref(null),Me=t.ref(null),Xe=t.ref(null);function Yn(){Xe.value=null,Me.value=JSON.stringify(S.value,null,2),st.value.open()}function Zn(L){if(L==="save"&&Me.value){if(!dt(Me.value)){Xe.value=n.value?.invalidJsonObject,E("error","Invalid JSON content");return}try{const B=JSON.parse(Me.value);S.value=B,st.value.close()}catch{E("error","Error parsing JSON content")}}}function Xn(L){if(L==="form"||L==="list"){const B=r.lxFormatUtils.objectClone(f.value);B?.properties&&Object.entries(B.properties).forEach(([P,N])=>{const X=N?.lx?.displayType;X==="filters"&&L==="form"&&(B.properties[P].lx.displayType="form"),X==="form"&&L==="list"&&(B.properties[P].lx.displayType="filters")}),f.value=B}}function Un(){globalThis.open("https://github.com/dativa-lv/lx-builders/issues","_blank","noopener")}t.watch(()=>[k.value,T.value],()=>{u()});const mt=t.ref();function In(){mt.value.open()}function _n(L,B,P){if(B===P||!Object.prototype.hasOwnProperty.call(L,B))return L;const N={};return Object.entries(L).forEach(([X,I])=>{X===B?N[P]=I:N[X]=I}),N}function ea(L){try{if(!L){be.value=n.value?.schemaKeyEmptyError;return}if(!K.value){be.value=n.value?.schemaKeyParentError;return}if(Object.prototype.hasOwnProperty.call(K.value,L)&&L!==Z.value){const N=n.value?.schemaKeyDuplicateError?.replace("{0}",L);be.value=N;return}be.value=null;const B=_n(K.value,Z.value,L),P=D.value?.includes(".")?D.value?.split(".")?.join("."):null;Q(f.value,a(P)?.slice(0,-1),B)}catch{be.value=n.value?.schemaKeyUpdateError}}t.onMounted(()=>{p(),document?.addEventListener("keydown",L=>{W(L.target)&&(L.key==="ArrowUp"||L.key==="ArrowDown")&&L.preventDefault()}),document?.addEventListener("keyup",L=>{W(L.target)&&(L.preventDefault(),L.key==="ArrowUp"||L.key==="ArrowLeft"?V()&&Ze("up"):(L.key==="ArrowDown"||L.key==="ArrowRight")&&V()&&Ze("down"))})});const ta=t.computed(()=>{const L=Object.values(f.value?.properties||{}).some(P=>P.type==="object"&&P.lx?.displayType==="form"),B=Object.values(f.value?.properties||{}).some(P=>P.type==="object"&&P.lx?.displayType==="filters");return{hasForm:L,hasFilters:B}});return(L,B)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Cn,[t.withDirectives(t.createElementVNode("div",{class:"highlight",style:t.normalizeStyle(C.value.style)},[t.createElementVNode("div",An,[xe.value.canMoveForwardIn&&V()?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"move-inside",variant:"icon-only",label:n.value.moveInside,kind:"ghost",onClick:B[0]||(B[0]=P=>F())},null,8,["label"])):t.createCommentVNode("",!0),xe.value.moveOut&&V()?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,icon:"move-outside",variant:"icon-only",label:n.value.moveOutside,kind:"ghost",onClick:B[1]||(B[1]=P=>R("previous"))},null,8,["label"])):t.createCommentVNode("",!0),V()?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:2,orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[xe.value.canMoveBack?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"back",variant:"icon-only",label:n.value.back,kind:"ghost",onClick:B[2]||(B[2]=P=>Ze("up"))},null,8,["label"])):t.createCommentVNode("",!0),xe.value.canMoveForward?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,icon:"next",variant:"icon-only",label:n.value.next,kind:"ghost",onClick:B[3]||(B[3]=P=>Ze("down"))},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(M.value),1)]),t.createElementVNode("div",Ln,[M.value!=="LxViewLayout"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"delete",variant:"icon-only",label:n.value.delete,kind:"ghost",destructive:!0,onClick:In},null,8,["label"])):t.createCommentVNode("",!0)])],4),[[t.vShow,C.value.visible]])]),t.createVNode(wn,{componentName:M.value,componentProps:H.value,componentPropsDefinitions:q.value,navigation:v.value,componentModel:z.value,schemaKey:Z.value,schemaKeyError:be.value,schemaInfo:ta.value,texts:n.value,"onUpdate:componentModel":re,onComponentAdd:Vn,onComponentChange:qe,onRemoveComponent:qt,onDuplicateComponent:Fn,onExport:Nn,onImport:Kn,onEditSchema:Wn,onEditModel:Yn,onReportIssue:Un,"onUpdate:viewLayout":Xn,"onUpdate:schemaKey":ea},null,8,["componentName","componentProps","componentPropsDefinitions","navigation","componentModel","schemaKey","schemaKeyError","schemaInfo","texts"]),t.createElementVNode("div",$n,[t.createVNode(Mt,{schema:e.schema,modelValue:S.value,"onUpdate:modelValue":B[4]||(B[4]=P=>S.value=P),builderOptions:{useRegistry:!0}},null,8,["schema","modelValue"])]),t.createVNode(t.unref(r.LxModal),{ref_key:"exportModal",ref:d,label:n.value?.exportModal,size:"m",actionDefinitions:[{id:"close",name:n.value?.close,kind:"secondary"}]},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToolbar),{actionDefinitions:[{id:"download",name:n.value?.download,icon:"download",kind:"primary",area:"left"},{id:"copy",name:n.value?.copy,icon:"copy"}],onActionClick:qn},null,8,["actionDefinitions"]),t.createElementVNode("div",On,[t.createElementVNode("pre",jn,t.toDisplayString(JSON.stringify(f.value,null,2)),1)])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"importModal",ref:o,label:n.value?.importModal,size:"m",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:le.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:Jn,onClose:B[7]||(B[7]=()=>{te.value=null,me.value=null})},{default:t.withCtx(()=>[t.createElementVNode("div",Tn,[t.createVNode(t.unref(r.LxContentSwitcher),{modelValue:ye.value,"onUpdate:modelValue":B[5]||(B[5]=P=>ye.value=P),items:[{id:"file",name:n.value?.importFile},{id:"text",name:n.value?.importText}]},null,8,["modelValue","items"])]),t.withDirectives(t.createElementVNode("div",null,[t.createVNode(t.unref(r.LxFileUploader),{modelValue:te.value,draggable:!0,allowedFileExtensions:[".json"],dataType:"content",texts:n.value?.fileUploader,"onUpdate:modelValue":Gn},null,8,["modelValue","texts"])],512),[[t.vShow,ye.value==="file"]]),t.withDirectives(t.createVNode(t.unref(r.LxTextArea),{modelValue:me.value,"onUpdate:modelValue":B[6]||(B[6]=P=>me.value=P),rows:20,invalid:!!G.value,invalidationMessage:G.value},null,8,["modelValue","invalid","invalidationMessage"]),[[t.vShow,ye.value==="text"]])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"editSchemaModal",ref:O,label:n.value?.editSchemaModal,size:"l",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:!b.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:Qn},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextArea),{modelValue:b.value,"onUpdate:modelValue":B[8]||(B[8]=P=>b.value=P),rows:50,invalid:!!j.value,invalidationMessage:j.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"componentAddModal",ref:ie,label:n.value?.componentAddModal,description:n.value?.componentAddModalDescription},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.value?.componentAddChoice)+" ",1),t.createVNode(t.unref(r.LxList),{items:[{id:"next",name:n.value?.componentAddNext,description:n.value?.componentAddNextDescription,displayIcon:"move-outside"},{id:"inside",name:n.value?.componentAddInside,description:n.value?.componentAddInsideDescription,displayIcon:"move-inside"}],listType:"1",clickableAttribute:"id",icon:"next",onActionClick:Mn},{customItem:t.withCtx(P=>[t.createVNode(t.unref(r.LxStack),{orientation:"horizontal",verticalAlignment:"center"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxIcon),{value:P.displayIcon},null,8,["value"]),t.createVNode(t.unref(r.LxStack),{kind:"compact"},{default:t.withCtx(()=>[t.createElementVNode("p",Pn,t.toDisplayString(P.name),1),t.createElementVNode("p",En,t.toDisplayString(P.description),1)]),_:2},1024)]),_:2},1024)]),_:1},8,["items"])]),_:1},8,["label","description"]),t.createVNode(t.unref(r.LxModal),{ref_key:"editModelModal",ref:st,label:n.value?.editModelModal,size:"l",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:!Me.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:Zn},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextArea),{modelValue:Me.value,"onUpdate:modelValue":B[9]||(B[9]=P=>Me.value=P),rows:20,invalid:!!Xe.value,invalidationMessage:Xe.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxDialog),{ref_key:"confirmDialog",ref:mt,label:n.value?.confirmDelete,kind:"warning",actionDefinitions:[{id:"save",name:n.value?.yes,kind:"primary"},{id:"cancel",name:n.value?.no,kind:"secondary"}],buttonSecondaryIsCancel:!0,onActionClick:B[10]||(B[10]=P=>(qt(),mt.value.close()))},null,8,["label","actionDefinitions"])]))}}),vt={async install(e,y={}){const{lxOptions:s,...x}=y||{};if(ft(x),s){const{createLx:n}=await import("@dativa-lv/lx-ui");e.use(n,s)}}},zn=e=>({async install(y){y.use(vt,e)}});Se.LxConstructor=Dn,Se.LxFilterBuilder=Vt,Se.LxFormBuilder=ve,Se.LxViewBuilder=Mt,Se.createLxBuilders=zn,Se.getGlobalProperties=yt,Se.lxBuildersPlugin=vt,Se.setGlobalProperties=ft,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(pe,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@dativa-lv/lx-ui")):typeof define=="function"&&define.amd?define(["exports","vue","@dativa-lv/lx-ui"],t):(pe=typeof globalThis<"u"?globalThis:pe||self,t(pe.VueCarbonComponents={},pe.Vue,pe.lxUi))})(this,(function(pe,t,r){"use strict";let gt={};const kt=e=>{gt=e},bt=()=>gt,et=["a:not([disabled])","button:not([disabled])","input:not([disabled])","textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function St(e){return e?[...e.matches(et.join(", "))&&!e.disabled&&e.offsetParent!==null?[e]:[],...e.querySelectorAll(et.join(", "))].filter(s=>!s.disabled&&s.offsetParent!==null):[]}function Yt(e,h){let s=h?e.nextElementSibling:e.previousElementSibling;for(;s;){const x=St(s);if(x.length>0)return h?x[0]:x[x.length-1];s=h?s.nextElementSibling:s.previousElementSibling}return null}function Zt(e,h){let s=e.parentElement;for(;s&&s!==document.body;){let x=h?s.nextElementSibling:s.previousElementSibling;for(;x;){const n=St(x);if(n.length>0)return h?n[0]:n[n.length-1];x=h?x.nextElementSibling:x.previousElementSibling}s=s.parentElement}return null}function Xt(e,h=!0){if(!e)return;const s=Array.from(document.querySelectorAll(et.join(", "))).filter(n=>!n.disabled&&n.offsetParent!==null),x=Yt(e,h)||Zt(e,h)||(h?s[0]:s[s.length-1]);x&&x.focus()}function De(e,h,s){let x=e??{};return s||(x=e?JSON.parse(JSON.stringify(e)):{}),Object.keys(h).forEach(n=>{typeof h[n]=="object"?x[n]=De(x[n],h[n],!0):x[n]===void 0&&(x[n]=h[n])}),x}const ze=()=>({getGlobals:()=>{const h=bt();return h||null}});function pt(e,h){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);h&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,x)}return s}function Oe(e){for(var h=1;h<arguments.length;h++){var s=arguments[h]!=null?arguments[h]:{};h%2?pt(Object(s),!0).forEach(function(x){Ut(e,x,s[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):pt(Object(s)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(s,x))})}return e}function Ut(e,h,s){return h in e?Object.defineProperty(e,h,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[h]=s,e}function Bt(e){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((s,x)=>(h.includes(x)||(s[x]=t.unref(e[x])),s),{})}function Je(e){return typeof e=="function"}function It(e){return t.isReactive(e)||t.isReadonly(e)}function wt(e,h,s){let x=e;const n=h.split(".");for(let S=0;S<n.length;S++){if(!x[n[S]])return s;x=x[n[S]]}return x}function tt(e,h,s){return t.computed(()=>e.some(x=>wt(h,x,{[s]:!1})[s]))}function Ct(e,h,s){return t.computed(()=>e.reduce((x,n)=>{const S=wt(h,n,{[s]:!1})[s]||[];return x.concat(S)},[]))}function At(e,h,s,x){return e.call(x,t.unref(h),t.unref(s),x)}function Lt(e){return e.$valid!==void 0?!e.$valid:!e}function _t(e,h,s,x,n,S,D){let{$lazy:f,$rewardEarly:k}=n,E=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],K=arguments.length>8?arguments[8]:void 0,M=arguments.length>9?arguments[9]:void 0,G=arguments.length>10?arguments[10]:void 0;const H=t.ref(!!x.value),z=t.ref(0);s.value=!1;const O=t.watch([h,x].concat(E,G),()=>{if(f&&!x.value||k&&!M.value&&!s.value)return;let A;try{A=At(e,h,K,D)}catch(v){A=Promise.reject(v)}z.value++,s.value=!!z.value,H.value=!1,Promise.resolve(A).then(v=>{z.value--,s.value=!!z.value,S.value=v,H.value=Lt(v)}).catch(v=>{z.value--,s.value=!!z.value,S.value=v,H.value=!0})},{immediate:!0,deep:typeof h=="object"});return{$invalid:H,$unwatch:O}}function el(e,h,s,x,n,S,D,f){let{$lazy:k,$rewardEarly:E}=x;const K=()=>({}),M=t.computed(()=>{if(k&&!s.value||E&&!f.value)return!1;let G=!0;try{const H=At(e,h,D,S);n.value=H,G=Lt(H)}catch(H){n.value=H}return G});return{$unwatch:K,$invalid:M}}function tl(e,h,s,x,n,S,D,f,k,E,K){const M=t.ref(!1),G=e.$params||{},H=t.ref(null);let z,O;e.$async?{$invalid:z,$unwatch:O}=_t(e.$validator,h,M,s,x,H,n,e.$watchTargets,k,E,K):{$invalid:z,$unwatch:O}=el(e.$validator,h,s,x,H,n,k,E);const A=e.$message;return{$message:Je(A)?t.computed(()=>A(Bt({$pending:M,$invalid:z,$params:Bt(G),$model:h,$response:H,$validator:S,$propertyPath:f,$property:D}))):A||"",$params:G,$pending:M,$invalid:z,$response:H,$unwatch:O}}function ll(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const h=t.unref(e),s=Object.keys(h),x={},n={},S={};let D=null;return s.forEach(f=>{const k=h[f];switch(!0){case Je(k.$validator):x[f]=k;break;case Je(k):x[f]={$validator:k};break;case f==="$validationGroups":D=k;break;case f.startsWith("$"):S[f]=k;break;default:n[f]=k}}),{rules:x,nestedValidators:n,config:S,validationGroups:D}}const nl="__root";function al(e,h,s,x,n,S,D,f,k){const E=Object.keys(e),K=x.get(n,e),M=t.ref(!1),G=t.ref(!1),H=t.ref(0);if(K){if(!K.$partial)return K;K.$unwatch(),M.value=K.$dirty.value}const z={$dirty:M,$path:n,$touch:()=>{M.value||(M.value=!0)},$reset:()=>{M.value&&(M.value=!1)},$commit:()=>{}};return E.length?(E.forEach(O=>{z[O]=tl(e[O],h,z.$dirty,S,D,O,s,n,k,G,H)}),z.$externalResults=t.computed(()=>f.value?[].concat(f.value).map((O,A)=>({$propertyPath:n,$property:s,$validator:"$externalResults",$uid:`${n}-externalResult-${A}`,$message:O,$params:{},$response:null,$pending:!1})):[]),z.$invalid=t.computed(()=>{const O=E.some(A=>t.unref(z[A].$invalid));return G.value=O,!!z.$externalResults.value.length||O}),z.$pending=t.computed(()=>E.some(O=>t.unref(z[O].$pending))),z.$error=t.computed(()=>z.$dirty.value?z.$pending.value||z.$invalid.value:!1),z.$silentErrors=t.computed(()=>E.filter(O=>t.unref(z[O].$invalid)).map(O=>{const A=z[O];return t.reactive({$propertyPath:n,$property:s,$validator:O,$uid:`${n}-${O}`,$message:A.$message,$params:A.$params,$response:A.$response,$pending:A.$pending})}).concat(z.$externalResults.value)),z.$errors=t.computed(()=>z.$dirty.value?z.$silentErrors.value:[]),z.$unwatch=()=>E.forEach(O=>{z[O].$unwatch()}),z.$commit=()=>{G.value=!0,H.value=Date.now()},x.set(n,e,z),z):(K&&x.set(n,e,z),z)}function il(e,h,s,x,n,S,D){const f=Object.keys(e);return f.length?f.reduce((k,E)=>(k[E]=lt({validations:e[E],state:h,key:E,parentKey:s,resultsCache:x,globalConfig:n,instance:S,externalResults:D}),k),{}):{}}function ol(e,h,s){const x=t.computed(()=>[h,s].filter(z=>z).reduce((z,O)=>z.concat(Object.values(t.unref(O))),[])),n=t.computed({get(){return e.$dirty.value||(x.value.length?x.value.every(z=>z.$dirty):!1)},set(z){e.$dirty.value=z}}),S=t.computed(()=>{const z=t.unref(e.$silentErrors)||[],O=x.value.filter(A=>(t.unref(A).$silentErrors||[]).length).reduce((A,v)=>A.concat(...v.$silentErrors),[]);return z.concat(O)}),D=t.computed(()=>{const z=t.unref(e.$errors)||[],O=x.value.filter(A=>(t.unref(A).$errors||[]).length).reduce((A,v)=>A.concat(...v.$errors),[]);return z.concat(O)}),f=t.computed(()=>x.value.some(z=>z.$invalid)||t.unref(e.$invalid)||!1),k=t.computed(()=>x.value.some(z=>t.unref(z.$pending))||t.unref(e.$pending)||!1),E=t.computed(()=>x.value.some(z=>z.$dirty)||x.value.some(z=>z.$anyDirty)||n.value),K=t.computed(()=>n.value?k.value||f.value:!1),M=()=>{e.$touch(),x.value.forEach(z=>{z.$touch()})},G=()=>{e.$commit(),x.value.forEach(z=>{z.$commit()})},H=()=>{e.$reset(),x.value.forEach(z=>{z.$reset()})};return x.value.length&&x.value.every(z=>z.$dirty)&&M(),{$dirty:n,$errors:D,$invalid:f,$anyDirty:E,$error:K,$pending:k,$touch:M,$reset:H,$silentErrors:S,$commit:G}}function lt(e){let{validations:h,state:s,key:x,parentKey:n,childResults:S,resultsCache:D,globalConfig:f={},instance:k,externalResults:E}=e;const K=n?`${n}.${x}`:x,{rules:M,nestedValidators:G,config:H,validationGroups:z}=ll(h),O=Oe(Oe({},f),H),A=x?t.computed(()=>{const ne=t.unref(s);return ne?t.unref(ne[x]):void 0}):s,v=Oe({},t.unref(E)||{}),U=t.computed(()=>{const ne=t.unref(E);return x?ne?t.unref(ne[x]):void 0:ne}),oe=al(M,A,x,D,K,O,k,U,s),te=il(G,A,K,D,O,k,U),W={};z&&Object.entries(z).forEach(ne=>{let[w,u]=ne;W[w]={$invalid:tt(u,te,"$invalid"),$error:tt(u,te,"$error"),$pending:tt(u,te,"$pending"),$errors:Ct(u,te,"$errors"),$silentErrors:Ct(u,te,"$silentErrors")}});const{$dirty:J,$errors:j,$invalid:c,$anyDirty:i,$error:re,$pending:le,$touch:P,$reset:$,$silentErrors:L,$commit:N}=ol(oe,te,S),ce=x?t.computed({get:()=>t.unref(A),set:ne=>{J.value=!0;const w=t.unref(s),u=t.unref(E);u&&(u[x]=v[x]),t.isRef(w[x])?w[x].value=ne:w[x]=ne}}):null;x&&O.$autoDirty&&t.watch(A,()=>{J.value||P();const ne=t.unref(E);ne&&(ne[x]=v[x])},{flush:"sync"});async function me(){return P(),O.$rewardEarly&&(N(),await t.nextTick()),await t.nextTick(),new Promise(ne=>{if(!le.value)return ne(!c.value);const w=t.watch(le,()=>{ne(!c.value),w()})})}function Se(ne){return(S.value||{})[ne]}function Ce(){t.isRef(E)?E.value=v:Object.keys(v).length===0?Object.keys(E).forEach(ne=>{delete E[ne]}):Object.assign(E,v)}return t.reactive(Oe(Oe(Oe({},oe),{},{$model:ce,$dirty:J,$error:re,$errors:j,$invalid:c,$anyDirty:i,$pending:le,$touch:P,$reset:$,$path:K||nl,$silentErrors:L,$validate:me,$commit:N},S&&{$getResultsForChild:Se,$clearExternalResults:Ce,$validationGroups:W}),te))}class rl{constructor(){this.storage=new Map}set(h,s,x){this.storage.set(h,{rules:s,result:x})}checkRulesValidity(h,s,x){const n=Object.keys(x),S=Object.keys(s);return S.length!==n.length||!S.every(f=>n.includes(f))?!1:S.every(f=>s[f].$params?Object.keys(s[f].$params).every(k=>t.unref(x[f].$params[k])===t.unref(s[f].$params[k])):!0)}get(h,s){const x=this.storage.get(h);if(!x)return;const{rules:n,result:S}=x,D=this.checkRulesValidity(h,s,n),f=S.$unwatch?S.$unwatch:()=>({});return D?S:{$dirty:S.$dirty,$partial:!0,$unwatch:f}}}const We={COLLECT_ALL:!0,COLLECT_NONE:!1},$t=Symbol("vuelidate#injectChildResults"),Ot=Symbol("vuelidate#removeChildResults");function cl(e){let{$scope:h,instance:s}=e;const x={},n=t.ref([]),S=t.computed(()=>n.value.reduce((K,M)=>(K[M]=t.unref(x[M]),K),{}));function D(K,M){let{$registerAs:G,$scope:H,$stopPropagation:z}=M;z||h===We.COLLECT_NONE||H===We.COLLECT_NONE||h!==We.COLLECT_ALL&&h!==H||(x[G]=K,n.value.push(G))}s.__vuelidateInjectInstances=[].concat(s.__vuelidateInjectInstances||[],D);function f(K){n.value=n.value.filter(M=>M!==K),delete x[K]}s.__vuelidateRemoveInstances=[].concat(s.__vuelidateRemoveInstances||[],f);const k=t.inject($t,[]);t.provide($t,s.__vuelidateInjectInstances);const E=t.inject(Ot,[]);return t.provide(Ot,s.__vuelidateRemoveInstances),{childResults:S,sendValidationResultsToParent:k,removeValidationResultsFromParent:E}}function jt(e){return new Proxy(e,{get(h,s){return typeof h[s]=="object"?jt(h[s]):t.computed(()=>h[s])}})}let Tt=0;function Pt(e,h){var s;let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(x=e,e=void 0,h=void 0);let{$registerAs:n,$scope:S=We.COLLECT_ALL,$stopPropagation:D,$externalResults:f,currentVueInstance:k}=x;const E=k||((s=t.getCurrentInstance())===null||s===void 0?void 0:s.proxy),K=E?E.$options:{};n||(Tt+=1,n=`_vuelidate_${Tt}`);const M=t.ref({}),G=new rl,{childResults:H,sendValidationResultsToParent:z,removeValidationResultsFromParent:O}=E?cl({$scope:S,instance:E}):{childResults:t.ref({})};if(!e&&K.validations){const A=K.validations;h=t.ref({}),t.onBeforeMount(()=>{h.value=E,t.watch(()=>Je(A)?A.call(h.value,new jt(h.value)):A,v=>{M.value=lt({validations:v,state:h,childResults:H,resultsCache:G,globalConfig:x,instance:E,externalResults:f||E.vuelidateExternalResults})},{immediate:!0})}),x=K.validationsConfig||x}else{const A=t.isRef(e)||It(e)?e:t.reactive(e||{});t.watch(A,v=>{M.value=lt({validations:v,state:h,childResults:H,resultsCache:G,globalConfig:x,instance:E??{},externalResults:f})},{immediate:!0})}return E&&(z.forEach(A=>A(M,{$registerAs:n,$scope:S,$stopPropagation:D})),t.onBeforeUnmount(()=>O.forEach(A=>A(n)))),t.computed(()=>Oe(Oe({},t.unref(M.value)),H.value))}function Et(e,h){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);h&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,x)}return s}function Re(e){for(var h=1;h<arguments.length;h++){var s=arguments[h]!=null?arguments[h]:{};h%2?Et(Object(s),!0).forEach(function(x){dl(e,x,s[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Et(Object(s)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(s,x))})}return e}function dl(e,h,s){return h in e?Object.defineProperty(e,h,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[h]=s,e}function Qe(e){return typeof e=="function"}function nt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ye(e){return Qe(e.$validator)?Re({},e):{$validator:e}}function Dt(e){return typeof e=="object"?e.$valid:e}function zt(e){return e.$validator||e}function sl(e,h){if(!nt(e))throw new Error(`[@vuelidate/validators]: First parameter to "withParams" should be an object, provided ${typeof e}`);if(!nt(h)&&!Qe(h))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const s=Ye(h);return s.$params=Re(Re({},s.$params||{}),e),s}function ml(e,h){if(!Qe(e)&&typeof t.unref(e)!="string")throw new Error(`[@vuelidate/validators]: First parameter to "withMessage" should be string or a function returning a string, provided ${typeof e}`);if(!nt(h)&&!Qe(h))throw new Error("[@vuelidate/validators]: Validator must be a function or object with $validator parameter");const s=Ye(h);return s.$message=e,s}function ul(e){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const s=Ye(e);return Re(Re({},s),{},{$async:!0,$watchTargets:h})}function xl(e){return{$validator(h){for(var s=arguments.length,x=new Array(s>1?s-1:0),n=1;n<s;n++)x[n-1]=arguments[n];return t.unref(h).reduce((S,D,f)=>{const k=Object.entries(D).reduce((E,K)=>{let[M,G]=K;const H=e[M]||{},z=Object.entries(H).reduce((O,A)=>{let[v,U]=A;const te=zt(U).call(this,G,D,f,...x),W=Dt(te);if(O.$data[v]=te,O.$data.$invalid=!W||!!O.$data.$invalid,O.$data.$error=O.$data.$invalid,!W){let J=U.$message||"";const j=U.$params||{};typeof J=="function"&&(J=J({$pending:!1,$invalid:!W,$params:j,$model:G,$response:te})),O.$errors.push({$property:M,$message:J,$params:j,$response:te,$model:G,$pending:!1,$validator:v})}return{$valid:O.$valid&&W,$data:O.$data,$errors:O.$errors}},{$valid:!0,$data:{},$errors:[]});return E.$data[M]=z.$data,E.$errors[M]=z.$errors,{$valid:E.$valid&&z.$valid,$data:E.$data,$errors:E.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:S.$valid&&k.$valid,$data:S.$data.concat(k.$data),$errors:S.$errors.concat(k.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:h=>{let{$response:s}=h;return s?s.$errors.map(x=>Object.values(x).map(n=>n.map(S=>S.$message)).reduce((n,S)=>n.concat(S),[])):[]}}}const Ve=e=>{if(e=t.unref(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let h in e)return!0;return!1}return!!String(e).length},at=e=>(e=t.unref(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function je(){for(var e=arguments.length,h=new Array(e),s=0;s<e;s++)h[s]=arguments[s];return x=>(x=t.unref(x),!Ve(x)||h.every(n=>(n.lastIndex=0,n.test(x))))}var ee=Object.freeze({__proto__:null,forEach:xl,len:at,normalizeValidatorObject:Ye,regex:je,req:Ve,unwrap:t.unref,unwrapNormalizedValidator:zt,unwrapValidatorResponse:Dt,withAsync:ul,withMessage:ml,withParams:sl});je(/^[a-zA-Z]*$/),je(/^[a-zA-Z0-9]*$/),je(/^\d*(\.\d+)?$/),je(/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i);function fl(e){return h=>!Ve(h)||at(h)<=t.unref(e)}function Ze(e){return{$validator:fl(e),$message:h=>{let{$params:s}=h;return`The maximum length allowed is ${s.max}`},$params:{max:e,type:"maxLength"}}}function yl(e){return h=>!Ve(h)||at(h)>=t.unref(e)}function Xe(e){return{$validator:yl(e),$message:h=>{let{$params:s}=h;return`This field should be at least ${s.min} characters long`},$params:{min:e,type:"minLength"}}}function hl(e){return typeof e=="string"&&(e=e.trim()),Ve(e)}var Vt={$validator:hl,$message:"Value is required",$params:{type:"required"}};je(/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i);function gl(e){return h=>!Ve(h)||(!/\s/.test(h)||h instanceof Date)&&+h>=+t.unref(e)}function Ft(e){return{$validator:gl(e),$message:h=>{let{$params:s}=h;return`The minimum value allowed is ${s.min}`},$params:{min:e,type:"minValue"}}}function kl(e){return h=>!Ve(h)||(!/\s/.test(h)||h instanceof Date)&&+h<=+t.unref(e)}var Mt=(e=>({$validator:kl(e),$message:h=>{let{$params:s}=h;return`The maximum value allowed is ${s.max}`},$params:{max:e,type:"maxValue"}}));je(/(^[0-9]*$)|(^-[0-9]+$)/),je(/^[-]?\d*(\.\d+)?$/);const bl=[{displayType:"stack",types:["object"],component:"stack"},{displayType:"autoComplete",types:["string","array","object"],component:"autoComplete"},{displayType:"button",types:["string","object"],component:"button"},{displayType:"camera",types:["string"],component:"camera"},{displayType:"fileViewer",types:["string"],component:"fileViewer"},{displayType:"flag",types:["string","object"],component:"flag"},{displayType:"icon",types:["string","object"],component:"icon"},{displayType:"illustration",types:["string","object"],component:"illustration"},{displayType:"link",types:["string","object"],component:"link"},{displayType:"contentSwitcher",types:["string"],component:"contentSwitcher"},{displayType:"markdown",types:["string"],component:"markdownTextArea"},{displayType:"personDisplay",types:["string","object","array"],component:"personDisplay"},{displayType:"qr",types:["string","object"],component:"qr"},{displayType:"qrScanner",types:["object"],component:"qrScanner"},{displayType:"richTextDisplay",types:["string","object"],component:"richTextDisplay"},{displayType:"stateDisplay",types:["string","object"],component:"stateDisplay"},{displayType:"steps",types:["string"],component:"steps"},{displayType:"visualPicker",types:["string","array"],component:"visualPicker"},{displayType:"dayInput",types:["integer","object"],component:"dayInput"},{displayType:"drawPad",types:["string"],component:"drawPad"},{displayType:"logoDisplay",types:["string","object"],component:"logoDisplay"},{displayType:"dropDownMenu",types:["string","object"],component:"dropDownMenu"},{displayType:"numberSlider",types:["integer"],component:"numberSlider"},{displayType:"rating",types:["integer","number"],component:"rating"},{displayType:"checkbox",types:["boolean"],component:"checkbox"},{displayType:"dataVisualizer",types:["array","object"],component:"dataVisualizer"},{displayType:"file",types:["array"],component:"file"},{displayType:"text",types:["string"],component:"text"},{displayType:"dateTimeRange",types:["object"],component:"dateTimeRange"}];function Sl(e,h){return h.includes(e?.type)}function Nt(e,h={}){const s=e?.lx?.displayType;if(!s||(h?.excludedDisplayTypes||[]).includes(s))return null;const n=bl.find(S=>S.displayType===s);return n&&Sl(e,n.types)?n.component:null}const Z={__name:"FormBuilderListItem",props:{item:{type:Object,default:()=>({})},itemValue:{type:Object,default:()=>({})},itemName:{type:String,default:""},useStyles:{type:Boolean,default:!1}},setup(e){function h(n){let S="";return n?.lx?.stackRow&&(S+=`grid-row: ${n?.lx?.stackRow};`),n?.lx?.stackColumn&&(S+=`grid-column: ${n?.lx?.stackColumn};`),S}function s(n){return n?.type==="boolean"?"bool":n?.type==="array"?"array":n?.type==="string"&&n?.format==="date"?"date":n?.type==="string"&&(n?.format==="dateTime"||n?.format==="date-time")?"dateTime":"default"}function x(n,S,D){return r.lxFormatUtils.formatValue(S?.[D]||n?.lx?.value,s(n),n?.lx?.texts?{yes:n?.lx?.texts?.valueYes,no:n?.lx?.texts?.valueNo}:void 0)}return(n,S)=>e.itemValue?.lx?.displayType==="primaryText"?(t.openBlock(),t.createElementBlock("p",{key:0,class:"lx-primary",style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5)):e.itemValue?.lx?.displayType==="secondaryText"?(t.openBlock(),t.createElementBlock("p",{key:1,class:"lx-secondary",style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5)):e.itemValue?.lx?.displayType==="flag"?(t.openBlock(),t.createBlock(t.unref(r.LxFlag),{key:2,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,size:e.item?.[e.itemName]?.size||e.itemValue?.lx?.size,title:e.item?.[e.itemName]?.title||e.itemValue?.lx?.title,style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},null,8,["value","size","title","style"])):e.itemValue?.lx?.displayType==="stateDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxStateDisplay),{key:3,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,dictionary:e.item?.[e.itemName]?.dictionary||e.itemValue?.lx?.dictionary,style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},null,8,["value","dictionary","style"])):e.itemValue?.lx?.displayType==="personDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxPersonDisplay),{key:4,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,name:e.item?.[e.itemName]?.name||e.itemValue?.lx?.name,kind:e.item?.[e.itemName]?.kind||e.itemValue?.lx?.kind,size:e.item?.[e.itemName]?.size||e.itemValue?.lx?.size,variant:e.item?.[e.itemName]?.variant||e.itemValue?.lx?.variant,description:e.item?.[e.itemName]?.description||e.itemValue?.lx?.description,role:e.item?.[e.itemName]?.role||e.itemValue?.lx?.role,institution:e.item?.[e.itemName]?.institution||e.itemValue?.lx?.institution,icon:e.item?.[e.itemName]?.icon||e.itemValue?.lx?.icon,iconSet:e.item?.[e.itemName]?.iconSet||e.itemValue?.lx?.iconSet,idAttribute:e.item?.[e.itemName]?.idAttribute||e.itemValue?.lx?.idAttribute,nameAttribute:e.item?.[e.itemName]?.nameAttribute||e.itemValue?.lx?.nameAttribute,firstNameAttribute:e.item?.[e.itemName]?.firstNameAttribute||e.itemValue?.lx?.firstNameAttribute,lastNameAttribute:e.item?.[e.itemName]?.lastNameAttribute||e.itemValue?.lx?.lastNameAttribute,descriptionAttribute:e.item?.[e.itemName]?.descriptionAttribute||e.itemValue?.lx?.descriptionAttribute,roleAttribute:e.item?.[e.itemName]?.roleAttribute||e.itemValue?.lx?.roleAttribute,institutionAttribute:e.item?.[e.itemName]?.institutionAttribute||e.itemValue?.lx?.institutionAttribute,iconAttribute:e.item?.[e.itemName]?.iconAttribute||e.itemValue?.lx?.iconAttribute,iconSetAttribute:e.item?.[e.itemName]?.iconSetAttribute||e.itemValue?.lx?.iconSetAttribute,maxLength:e.item?.[e.itemName]?.maxLength||e.itemValue?.lx?.maxLength,texts:e.item?.[e.itemName]?.texts||e.itemValue?.lx?.texts,style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},null,8,["value","name","kind","size","variant","description","role","institution","icon","iconSet","idAttribute","nameAttribute","firstNameAttribute","lastNameAttribute","descriptionAttribute","roleAttribute","institutionAttribute","iconAttribute","iconSetAttribute","maxLength","texts","style"])):e.itemValue?.lx?.displayType==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxIcon),{key:5,value:e.item?.[e.itemName]?.value||e.item?.[e.itemName]||e.itemValue?.lx?.value,iconSet:e.item?.[e.itemName]?.iconSet||e.itemValue?.lx?.iconSet,variant:e.item?.[e.itemName]?.variant||e.itemValue?.lx?.variant,customClass:e.item?.[e.itemName]?.customClass||e.itemValue?.lx?.customClass,animation:e.item?.[e.itemName]?.animation||e.itemValue?.lx?.animation,meaningful:e.item?.[e.itemName]?.meaningful||e.itemValue?.lx?.meaningful,title:e.item?.[e.itemName]?.title||e.itemValue?.lx?.title,desc:e.item?.[e.itemName]?.desc||e.itemValue?.lx?.desc,texts:e.item?.[e.itemName]?.texts||e.itemValue?.lx?.texts,style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},null,8,["value","iconSet","variant","customClass","animation","meaningful","title","desc","texts","style"])):(t.openBlock(),t.createElementBlock("p",{key:6,style:t.normalizeStyle(e.useStyles?h(e.itemValue):null)},t.toDisplayString(x(e.itemValue,e.item,e.itemName)),5))}},pl={class:"appendable-list-remove-button-wrapper"},Bl={class:"appendable-list-remove"},wl={__name:"AppendableListSimple",props:{modelValue:{type:Array,default:null},readOnly:{type:Boolean,default:!1},columnCount:{type:Number,default:1},kind:{type:String,default:"default"},requiredMode:{type:String,default:"optional"},canAddItems:{type:Boolean,default:!0},texts:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{emit:h}){const s=e,x=h,n=t.computed({get(){return s.modelValue},set(E){x("update:modelValue",E)}}),S={removeItem:"Dzēst ierakstu",addButtonLabel:"Pievienot ierakstu"},D=t.computed(()=>De(s.texts,S));function f(E){n.value.splice(E,1)}function k(){let E=[];s.modelValue&&(E=[...n.value]),E.push(""),n.value=E}return t.onMounted(()=>{n.value=s.modelValue}),(E,K)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lx-appendable-list lx-appendable-list-simple",[{"lx-appendable-list-compact":e.kind==="compact"}]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(M,G)=>(t.openBlock(),t.createElementBlock("div",{key:G,class:"lx-appendable-list-item"},[t.createVNode(t.unref(r.LxForm),{kind:"stripped",columnCount:e.columnCount,"required-mode":s.requiredMode},{default:t.withCtx(()=>[t.renderSlot(E.$slots,"customItem",t.mergeProps({ref_for:!0},{item:M,index:G}))]),_:2},1032,["columnCount","required-mode"]),t.createElementVNode("div",pl,[t.createElementVNode("div",Bl,[e.readOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"remove-item",variant:"icon-only",label:D.value.removeItem,destructive:!0,kind:"ghost",onClick:H=>f(G)},null,8,["label","onClick"]))])])]))),128)),t.createElementVNode("div",null,[!e.readOnly&&e.canAddItems?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,kind:"tertiary",label:D.value.addButtonLabel,icon:"add-item",onClick:k},null,8,["label"])):t.createCommentVNode("",!0)])],2))}},Cl={key:0},Al={key:1},Ll={key:0},$l={key:1},Ol={key:0},jl={key:1},Tl={key:2},Pl={key:7},El={key:9},Dl={key:0},zl={key:11},Vl={key:0},Fl={key:0},Ml={key:0},Nl={key:1},vl={key:0},Rl={key:1},ql={key:0},Kl={key:1},Hl={key:2},Gl={key:42,class:"lx-data"},Ne={__name:"FormBuilderItem",props:{id:{type:String,default:null},displaySchema:{type:Object,default:null},schema:{type:Object,default:null},modelValue:{type:Object,default:null},row:{type:Object,default:null},name:{type:String,default:null},readOnly:{type:Boolean,default:!1},vv:{type:Object,default:null},orderedObject:{type:Object,default:()=>{}},parentName:{type:String,default:null},validations:{type:Object,default:null},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:[],useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit","filterBuilderFilter"],setup(e,{emit:h}){const s=e,x=h,n=t.computed({get(){return s.modelValue?s.modelValue:{}},set(u){x("update:modelValue",u)}}),S=t.ref({}),D=t.ref({});function f(u){return u?.lx?.placeholder?u?.lx?.placeholder:Array.isArray(u?.examples)?u?.examples[0]:u?.examples}function k(u){return u?.readOnly===null||u?.readOnly===void 0?s.readOnly:u?.readOnly}function E(u,d){return!u&&d==="number"?"decimal":!u&&d==="string"?"default":u}function K(u){return u?.format!=="date"&&u?.format!=="time"&&u?.format!=="date-time"&&u?.format!=="year"&&u?.format!=="month"&&u?.format!=="month-year"&&u?.format!=="quarters"}function M(u){return u?.type==="string"&&u?.lx?.kind!=="multiline"&&!u?.lx?.variant&&K(u)&&!u?.enum||u?.type==="number"&&!u?.lx?.variant&&K(u)&&!u?.enum?"textInputDefault":u?.type==="string"&&u?.lx?.kind==="multiline"?"textArea":u?.type==="string"&&!K(u)?"dateTimePicker":""}function G(u){return u?.type==="array"&&u?.lx?.displayType==="list"?"arrayList":u?.type==="array"&&u?.lx?.displayType==="listModal"?"arrayListModal":u?.type==="array"&&u?.lx?.displayType==="table"?"arrayTable":u?.type==="array"&&u?.lx?.displayType==="tableModal"?"arrayTableModal":Array.isArray(u?.lx?.items)||u?.enum?"valuePicker":u?.items?.properties&&u?.type==="array"?"appendableList":u?.type==="array"&&u?.items?.type!=="object"&&u?.items?"smallAppendableList":""}function H(u,d){return u?.lx?.displayType==="map"&&u?.type==="object"?"map":u?.type==="object"&&n.value?.[d]!==void 0&&n.value?.[d]!==null&&u?.lx?.displayType==="modal"?"objectList":u?.type==="object"&&!n.value?.[d]&&u?.lx?.displayType==="modal"?"objectButton":u?.type==="object"&&n.value?.[d]!==void 0&&n.value?.[d]!==null?"dataBlock":""}function z(u){return Nt(u,{excludedDisplayTypes:["stack"]})}function O(u,d,l=!1){if(u?.lx?.wrapper==="placeholder")return"lxPlaceholder";const a=z(u);return a||(M(u)==="textInputDefault"?"textInputDefault":M(u)==="textArea"?"textArea":M(u)==="dateTimePicker"?"dateTimePicker":u?.type==="integer"?"textInputInteger":u?.type==="boolean"?"toggle":(u?.type==="string"&&(u?.lx?.variant||u?.enum)||u?.type==="array")&&G(u)!==""?G(u):H(u,d)!==""?H(u,d):(d&&l&&r.lxDevUtils.log(`Property '${d}' couldn't be rendered`,ze().getGlobals()?.environment,"warn"),"lxPlaceholder"))}const A=t.computed(()=>O(s.row,s.name,!0));function v(u,d,l,a){x("rowActionClick",u,d,s.parentName?`${s.parentName}.${l}`:l,a)}function U(u,d,l=void 0,a=void 0){x("emit",u,s.parentName?`${s.parentName}.${d}`:d,l,a)}function oe(u){const d=[];return u?.enum?.forEach(l=>{const a={id:l,name:l};d.push(a)}),d}function te(u){delete n.value[u]}function W(u){const d={};Object.entries(s.displaySchema?.properties[u])?.forEach(([l])=>{d[l]=""}),n.value[u]=d}function J(u,d){n.value[d]||W(d),S.value[u].open()}function j(u,d){return u?.find(a=>a===d)?!0:null}function c(u,d,l,a=void 0){if(a&&a?.length>0)U(u,l);else if(u==="remove")if(s.displaySchema?.properties[l]?.lx?.idAttribute){const o=n.value[l].findIndex(y=>y[s.displaySchema?.properties[l]?.lx?.idAttribute]===d);o!==-1&&n.value[l].splice(o,1)}else{const o=n.value[l].findIndex(y=>y?.id===d);o!==-1&&n.value[l].splice(o,1)}}function i(u){n.value[u]||(n.value[u]=[]),n.value[u].push(D.value[`${s.id}-${u}`]),S.value[`${s.id}-${u}`].close()}function re(u,d,l,a=void 0){if(a&&a?.length>0&&U(u,l),u==="click"){let o={};s.displaySchema?.properties[l]?.lx?.idAttribute?o=n.value[l].find(m=>m[s.displaySchema?.properties[l]?.lx?.idAttribute]===d):o=n.value[l].find(m=>m.id===d);const y=`${s.id}-${l}`;D.value[y]=o,S.value[y].open()}else u==="remove"&&c(u,d,l)}function le(u){const d=[];return u&&Object.entries(u)?.forEach(([l,a])=>{const o={};o.id=l,o.attributeName=l,o.name=a?.title,o.size=a?.size,o.kind=a?.kind,a.type==="string"?o.type="default":a.type==="integer"?o.type="number":a.type==="number"?o.type="decimal":a.type==="boolean"&&(o.type="bool"),o.type&&d.push(o)}),d}const P=t.ref(!1);function $(u){P.value=!0;const d=t.ref({}),l=`${s.id}-${u}`;D.value[l]=d,S.value[l].open()}function L(u,d,l,a,o=void 0){o&&o?.length>0?U("actionClick",a,u,d):(u==="open"&&re("click",d,a),u==="remove"&&c(u,d,a))}const N=t.computed(()=>{if(s.validations?.[s.name])return!0;if(!s.vv?.value?.modelClone)return!1;if(s.parentName){const u=s.parentName.split(".");let d=s.vv.value.modelClone;return d=u.reduce((l,a)=>l?l[a]:void 0,d),d?.[s.name]?.$error}return s.vv.value.modelClone?.[s.name]?.$error}),ce=t.computed(()=>{if(s.validations?.[s.name])return s.validations?.[s.name];let u=null;if(!s.vv?.value?.modelClone)return null;if(s.parentName){const d=s.parentName.split(".");let l=s.vv.value.modelClone;return l=d.reduce((a,o)=>a?a[o]:void 0,l),l?.[s.name]?.$errors?.[0]?.$message}return u=s.vv.value.modelClone?.[s.name]?.$errors?.[0]?.$message,u});function me(u){return u?.lx?.hasCustomItems&&!u?.lx?.variant?.endsWith("-custom")?`${u?.lx?.variant||"default"}-custom`:u?.lx?.variant}const Se=t.computed(()=>{const u=[{id:"saveElement",name:s.texts.saveElement,kind:"primary"}];return P.value?u:null});function Ce(u,d){u==="saveElement"&&i(d)}const ne=t.computed(()=>s.builderOptions?.schemaPath?`${s.builderOptions?.schemaPath}.${s.name}`:s.name),w=t.computed(()=>({componentStack:s.builderOptions?.componentStack,schemaPath:ne.value,useRegistry:s.builderOptions?.useRegistry}));return(u,d)=>A.value==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.id}-${e.name}`,mask:E(e.displaySchema?.properties[e.name]?.lx?.mask,e.displaySchema?.properties[e.name]?.type),maxlength:e.displaySchema?.properties[e.name]?.maxLength,kind:e.displaySchema?.properties[e.name]?.lx?.kind,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,scale:e.displaySchema?.properties[e.name]?.lx?.scale,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,"convert-to-string":e.displaySchema?.properties[e.name]?.lx?.convertToString,placeholder:f(e.displaySchema?.properties[e.name]),signed:e.displaySchema?.properties[e.name]?.lx?.signed,readOnly:k(e.displaySchema?.properties[e.name]),invalid:N.value,"invalidation-message":ce.value,"custom-mask-value":e.displaySchema?.properties[e.name]?.lx?.customMaskValue,modelValue:n.value[e.name],"onUpdate:modelValue":d[0]||(d[0]=l=>n.value[e.name]=l),builderOptions:w.value,onKeyup:d[1]||(d[1]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","invalid","invalidation-message","custom-mask-value","modelValue","builderOptions"])):A.value==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.id}-${e.name}`,maxlength:e.displaySchema?.properties[e.name]?.maxLength,placeholder:f(e.displaySchema?.properties[e.name]),rows:e.displaySchema?.properties[e.name]?.lx?.rows,"dynamic-height":e.displaySchema?.properties[e.name]?.lx?.dynamicHeight,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),invalid:N.value,"invalidation-message":ce.value,modelValue:n.value[e.name],"onUpdate:modelValue":d[2]||(d[2]=l=>n.value[e.name]=l),builderOptions:w.value,onKeyup:d[3]||(d[3]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","invalid","invalidation-message","modelValue","builderOptions"])):A.value==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.format,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,"min-date":e.displaySchema?.properties[e.name]?.lx?.minDate,"max-date":e.displaySchema?.properties[e.name]?.lx?.maxDate,required:e.displaySchema?.properties[e.name]?.lx?.required,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,"time-adjust":e.displaySchema?.properties[e.name]?.lx?.timeAdjust,"clear-if-not-exact":e.displaySchema?.properties[e.name]?.lx?.clearIfNotExact,texts:e.displaySchema?.properties[e.name]?.lx?.texts,locale:e.displaySchema?.properties[e.name]?.lx?.locale,"special-dates":e.displaySchema?.properties[e.name]?.lx?.specialDates,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,variant:e.displaySchema?.properties[e.name]?.lx?.variant,cadenceOfMinutes:e.displaySchema?.properties[e.name]?.lx?.cadenceOfMinutes,cadenceOfSeconds:e.displaySchema?.properties[e.name]?.lx?.cadenceOfSeconds,readOnly:k(e.row),invalid:N.value,"invalidation-message":ce.value,builderOptions:w.value,modelValue:n.value[e.name],"onUpdate:modelValue":d[4]||(d[4]=l=>n.value[e.name]=l)},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","texts","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","readOnly","invalid","invalidation-message","builderOptions","modelValue"])):A.value==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.id}-${e.name}`,mask:"integer",maxlength:e.displaySchema?.properties[e.name]?.maxLength,kind:e.displaySchema?.properties[e.name]?.lx?.kind,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,scale:e.displaySchema?.properties[e.name]?.lx?.scale,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,"convert-to-string":e.displaySchema?.properties[e.name]?.lx?.convertToString,placeholder:f(e.displaySchema?.properties[e.name]),readOnly:k(e.displaySchema?.properties[e.name]),invalid:N.value,"invalidation-message":ce.value,modelValue:n.value[e.name],"onUpdate:modelValue":d[5]||(d[5]=l=>n.value[e.name]=l),builderOptions:w.value,onKeyup:d[6]||(d[6]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","invalid","invalidation-message","modelValue","builderOptions"])):A.value==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.id}-${e.name}`,size:e.displaySchema?.properties[e.name]?.lx?.size,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),invalid:N.value,"invalidation-message":ce.value,builderOptions:w.value,modelValue:n.value[e.name],"onUpdate:modelValue":d[7]||(d[7]=l=>n.value[e.name]=l)},{on:t.withCtx(()=>[e.row?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",Cl,t.toDisplayString(e.row?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",Al,"Jā"))]),off:t.withCtx(()=>[e.row?.lx?.labelOff?(t.openBlock(),t.createElementBlock("span",Ll,t.toDisplayString(e.row?.lx?.labelOff),1)):(t.openBlock(),t.createElementBlock("span",$l,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",Ol,t.toDisplayString(e.row?.lx?.labelIndeterminate),1)):k(e.displaySchema?.properties[e.name])?(t.openBlock(),t.createElementBlock("span",jl,d[57]||(d[57]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Tl,"—"))]),_:1},8,["id","size","disabled","tooltip","readOnly","invalid","invalidation-message","builderOptions","modelValue"])):A.value==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.id}-${e.name}`,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",items:e.displaySchema?.properties[e.name]?.lx?.items||oe(e.displaySchema?.properties[e.name]),"id-attribute":e.displaySchema?.properties[e.name]?.lx?.idAttribute,"name-attribute":e.displaySchema?.properties[e.name]?.lx?.nameAttribute,"icon-attribute":e.displaySchema?.properties[e.name]?.lx?.iconAttribute,"icon-set-attribute":e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,"category-attribute":e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,"description-attribute":e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,variant:me(e.displaySchema?.properties[e.name]),"has-search":e.displaySchema?.properties[e.name]?.lx?.hasSearch,"always-as-array":e.displaySchema?.properties[e.name]?.lx?.alwaysAsArray,nullable:e.displaySchema?.properties[e.name]?.lx?.nullable,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,texts:e.displaySchema?.properties[e.name]?.lx?.texts,placeholder:f(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,readOnly:k(e.displaySchema?.properties[e.name]),"search-attributes":e.displaySchema?.properties[e.name]?.lx?.searchAttributes,"has-select-all":e.displaySchema?.properties[e.name]?.lx?.hasSelectAll,"read-only-render-type":e.displaySchema?.properties[e.name]?.lx?.readOnlyRenderType,invalid:N.value,"invalidation-message":ce.value,builderOptions:w.value,modelValue:n.value[e.name],"onUpdate:modelValue":d[8]||(d[8]=l=>n.value[e.name]=l)},t.createSlots({_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.customItems?.properties,(a,o)=>(t.openBlock(),t.createBlock(Z,{key:o,itemValue:a,itemName:o,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.customItems?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V,item:l?.[o]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:l?.[o]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:a,itemName:o,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","search-attributes","has-select-all","read-only-render-type","invalid","invalidation-message","builderOptions","modelValue"])):A.value==="dataBlock"?(t.openBlock(),t.createBlock(t.unref(r.LxDataBlock),{key:6,expandable:!0,size:e.displaySchema?.properties[e.name]?.lx?.size,icon:e.displaySchema?.properties[e.name]?.lx?.icon,"icon-set":e.displaySchema?.properties[e.name]?.lx?.iconSet,name:n.value?.[e.name]?.[e.displaySchema?.properties?.[e.name]?.lx?.nameAttribute]||n.value?.[e.name]?.name,description:n.value?.[e.name]?.[e.displaySchema?.properties?.[e.name]?.lx?.descriptionAttribute]||n.value?.[e.name]?.description,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,class:"form-builder-data-block"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[O(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title||a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(o,y,m)=>v(y,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[O(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:E(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l)},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly"])):O(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||oe(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:me(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,"search-attributes":l?.lx?.searchAttributes,"has-select-all":l?.lx?.hasSelectAll,"read-only-render-type":l?.lx?.readOnlyRenderType,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(o=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createBlock(Z,{key:m,itemValue:y,itemName:m,item:o,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(o=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:o?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:p,itemName:V,item:o?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:o},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","search-attributes","has-select-all","read-only-render-type","readOnly","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["size","icon","icon-set","name","description","uppercase","disabled","loading","busy"])):A.value==="objectButton"||A.value==="objectList"?(t.openBlock(),t.createElementBlock("div",Pl,[A.value==="objectList"?(t.openBlock(),t.createBlock(t.unref(r.LxListItem),{key:0,value:n.value[e.name],label:n.value[e.name][e.displaySchema?.properties[e.name].lx.nameAttribute]||n.value[e.name]?.name,description:n.value[e.name][e.displaySchema?.properties[e.name].lx.descriptionAttribute]||n.value[e.name]?.description,icon:"edit",clickable:!0,actionDefinitions:[{id:"remove",name:"remove",icon:"remove-item",destructive:!0}],onActionClick:d[9]||(d[9]=l=>te(e.name)),onClick:d[10]||(d[10]=l=>J(`${e.id}-${e.name}`,e.name))},null,8,["value","label","description"])):t.createCommentVNode("",!0),A.value==="objectButton"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,label:e.texts?.addObject,icon:"add-item",kind:"ghost",onClick:d[11]||(d[11]=l=>J(`${e.id}-${e.name}`,e.name))},null,8,["label"])):t.createCommentVNode("",!0),t.createVNode(t.unref(r.LxModal),{id:`${e.id}-${e.name}`,ref:l=>S.value[`${e.id}-${e.name}`]=l},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[O(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(o,y,m)=>v(y,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[O(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:E(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||oe(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:me(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"search-attributes":l?.lx?.searchAttributes,"has-select-all":l?.lx?.hasSelectAll,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:n.value[e.name][a],"onUpdate:modelValue":o=>n.value[e.name][a]=o},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(o=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createBlock(Z,{key:m,itemValue:y,itemName:m,item:o,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(o=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:o?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:p,itemName:V,item:o?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:o},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","search-attributes","has-select-all","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","actionDefinitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["id"])])):A.value==="arrayList"?(t.openBlock(),t.createBlock(t.unref(r.LxList),{key:8,items:n.value[e.name],actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"remove",title:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,hrefAttribute:e.displaySchema?.properties[e.name]?.lx?.hrefAttribute,groupAttribute:e.displaySchema?.properties[e.name]?.lx?.groupAttribute,clickableAttribute:e.displaySchema?.properties[e.name]?.lx?.clickableAttribute,iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,tooltipAttribute:e.displaySchema?.properties[e.name]?.lx?.tooltipAttribute,categoryAttribute:e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,orderAttribute:e.displaySchema?.properties[e.name]?.lx?.orderAttribute,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,groupDefinitions:e.displaySchema?.properties[e.name]?.lx?.groupDefinitions,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,kind:e.displaySchema?.properties[e.name]?.lx?.kind,emptyStateIcon:e.displaySchema?.properties[e.name]?.lx?.emptyStateIcon,listType:e.displaySchema?.properties[e.name]?.lx?.listType||"1",searchString:e.displaySchema?.properties[e.name]?.lx?.searchString,searchSide:e.displaySchema?.properties[e.name]?.lx?.searchSide,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,hideFilteredItems:e.displaySchema?.properties[e.name]?.lx?.hideFilteredItems,includeUnspecifiedGroups:e.displaySchema?.properties[e.name]?.lx?.includeUnspecifiedGroups,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:d[12]||(d[12]=(l,a)=>c(l,a,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions))},t.createSlots({_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,o)=>(t.openBlock(),t.createBlock(Z,{key:o,itemValue:a,itemName:o,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V,item:l?.[o]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:l?.[o]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:a,itemName:o,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["items","actionDefinitions","idAttribute","nameAttribute","descriptionAttribute","hrefAttribute","groupAttribute","clickableAttribute","iconAttribute","iconSetAttribute","tooltipAttribute","categoryAttribute","orderAttribute","hasSearch","groupDefinitions","icon","iconSet","kind","emptyStateIcon","listType","searchString","searchSide","loading","busy","hideFilteredItems","includeUnspecifiedGroups","texts"])):A.value==="arrayListModal"?(t.openBlock(),t.createElementBlock("div",El,[t.createVNode(t.unref(r.LxList),{items:n.value[e.name],actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"remove",title:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,hrefAttribute:e.displaySchema?.properties[e.name]?.lx?.hrefAttribute,groupAttribute:e.displaySchema?.properties[e.name]?.lx?.groupAttribute,clickableAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute||"name",iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,tooltipAttribute:e.displaySchema?.properties[e.name]?.lx?.tooltipAttribute,categoryAttribute:e.displaySchema?.properties[e.name]?.lx?.categoryAttribute,orderAttribute:e.displaySchema?.properties[e.name]?.lx?.orderAttribute,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,groupDefinitions:e.displaySchema?.properties[e.name]?.lx?.groupDefinitions,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,kind:e.displaySchema?.properties[e.name]?.lx?.kind,emptyStateIcon:e.displaySchema?.properties[e.name]?.lx?.emptyStateIcon,listType:e.displaySchema?.properties[e.name]?.lx?.listType||"1",searchString:e.displaySchema?.properties[e.name]?.lx?.searchString,searchSide:e.displaySchema?.properties[e.name]?.lx?.searchSide,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,hideFilteredItems:e.displaySchema?.properties[e.name]?.lx?.hideFilteredItems,includeUnspecifiedGroup:e.displaySchema?.properties[e.name]?.lx?.includeUnspecifiedGroup,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:d[14]||(d[14]=(l,a)=>re(l,a,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions))},t.createSlots({toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:d[13]||(d[13]=l=>$(e.name))},null,8,["label"]))]),_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(r.LxStack),{orientation:e.displaySchema?.properties[e.name]?.lx?.stack?.orientation,kind:e.displaySchema?.properties[e.name]?.lx?.stack?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.stack?.mode||"grid","horizontal-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalAlignment,"vertical-alignment":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalAlignment,"horizontal-config":e.displaySchema?.properties[e.name]?.lx?.stack?.horizontalConfig,"vertical-config":e.displaySchema?.properties[e.name]?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,o)=>(t.openBlock(),t.createBlock(Z,{key:o,itemValue:a,itemName:o,item:l,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(l=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V,item:l?.[o]?.[m]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:l?.[o]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:a,itemName:o,item:l},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["items","actionDefinitions","idAttribute","nameAttribute","descriptionAttribute","hrefAttribute","groupAttribute","clickableAttribute","iconAttribute","iconSetAttribute","tooltipAttribute","categoryAttribute","orderAttribute","hasSearch","groupDefinitions","icon","iconSet","kind","emptyStateIcon","listType","searchString","searchSide","loading","busy","hideFilteredItems","includeUnspecifiedGroup","texts"]),t.createVNode(t.unref(r.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:Se.value,onClose:d[15]||(d[15]=l=>P.value=!1),onActionClick:d[16]||(d[16]=l=>Ce(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[O(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(o,y,m)=>v(y,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[O(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:E(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||oe(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:me(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(o=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createBlock(Z,{key:m,itemValue:y,itemName:m,item:o,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(o=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:o?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:p,itemName:V,item:o?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:o},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):O(l,a)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:6,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},{customItem:t.withCtx(({item:o,index:y})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[O(m,p)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:m?.title?m?.title:p,rowSpan:m?.lx?.rowSpan,columnSpan:m?.lx?.columnSpan,required:j(e.row?.items?.required,p),inputId:`${e.name}-${p}-${y}`,"action-definitions":m?.lx?.actionDefinitions,onActionClick:(V,Q,I)=>v(Q,I,`${e.name}.${p}`,y)},{default:t.withCtx(()=>[O(m,p)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${p}-${y}`,mask:E(m?.lx?.mask,m?.type),maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),signed:m?.lx?.signed,readOnly:k(m),"custom-mask-value":m?.lx?.customMaskValue,modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):O(m,p)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${p}-${y}`,maxlength:m?.maxLength,placeholder:f(m),rows:m?.lx?.rows,"dynamic-height":m?.lx?.dynamicHeight,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${p}-${y}`,kind:m?.format==="date-time"?"dateTime":m?.format,placeholder:f(m),tooltip:m?.lx?.tooltip,"min-date":m?.lx?.minDate,"max-date":m?.lx?.maxDate,required:m?.lx?.required,disabled:m?.lx?.disabled,"time-adjust":m?.lx?.timeAdjust,"clear-if-not-exact":m?.lx?.clearIfNotExact,locale:m?.lx?.locale,"special-dates":m?.lx?.specialDates,dictionary:m?.lx?.dictionary,variant:m?.lx?.variant,cadenceOfMinutes:m?.lx?.cadenceOfMinutes,cadenceOfSeconds:m?.lx?.cadenceOfSeconds,texts:m?.lx?.texts,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${p}-${y}`,mask:"integer",maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${p}-${y}`,size:m?.lx?.size,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},{default:t.withCtx(()=>[m?.lx?.label?(t.openBlock(),t.createElementBlock("span",Dl,t.toDisplayString(m?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${p}-${y}`,selectionKind:m?.type==="array"?"multiple":"single",items:m?.lx?.items||oe(m),"id-attribute":m?.lx?.idAttribute,"name-attribute":m?.lx?.nameAttribute,"icon-attribute":m?.lx?.iconAttribute,"icon-set-attribute":m?.lx?.iconSetAttribute,"category-attribute":m?.lx?.categoryAttribute,"description-attribute":m?.lx?.descriptionAttribute,variant:me(m),"has-search":m?.lx?.hasSearch,"always-as-array":m?.lx?.alwaysAsArray,nullable:m?.lx?.nullable,tooltip:m?.lx?.tooltip,texts:m?.lx?.texts,placeholder:f(m),disabled:m?.lx?.disabled,readOnly:k(m),"has-select-all":m?.lx?.hasSelectAll,"search-attributes":m?.lx?.searchAttributes,"read-only-render-type":m?.lx?.readOnlyRenderType,modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},t.createSlots({_:2},[m?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(V=>[t.createVNode(t.unref(r.LxStack),{orientation:m?.lx?.stack?.orientation,kind:m?.lx?.stack?.kind,mode:m?.lx?.stack?.mode||"grid","horizontal-alignment":m?.lx?.stack?.horizontalAlignment,"vertical-alignment":m?.lx?.stack?.verticalAlignment,"horizontal-config":m?.lx?.stack?.horizontalConfig,"vertical-config":m?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:V,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:m?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(V=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(Q,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[Q?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:Q?.lx?.orientation,kind:Q?.lx?.kind,mode:Q?.lx?.mode,"horizontal-alignment":Q?.lx?.horizontalAlignment,"vertical-alignment":Q?.lx?.verticalAlignment,"horizontal-config":Q?.lx?.horizontalConfig,"vertical-config":Q?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Q?.properties,(de,ke)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ke},[de?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:de?.lx?.orientation,kind:de?.lx?.kind,mode:de?.lx?.mode,"horizontal-alignment":de?.lx?.horizontalAlignment,"vertical-alignment":de?.lx?.verticalAlignment,"horizontal-config":de?.lx?.horizontalConfig,"vertical-config":de?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de?.properties,(g,B)=>(t.openBlock(),t.createBlock(Z,{key:B,itemValue:g,itemName:B,item:V?.[a]?.[ke]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:de,itemName:ke,item:V?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:Q,itemName:I,item:V},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","actionDefinitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["actionDefinitions"])])):A.value==="arrayTable"?(t.openBlock(),t.createBlock(t.unref(r.LxDataGrid),{key:10,items:n.value[e.name],label:e.displaySchema?.properties[e.name]?.lx?.label,description:e.displaySchema?.properties[e.name]?.lx?.description,columnDefinitions:le(e.displaySchema?.properties[e.name]?.items?.properties),scrollable:e.displaySchema?.properties[e.name]?.items?.properties?Object?.keys(e.displaySchema?.properties[e.name]?.items?.properties)?.length>4:null,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,skeletonRowCount:e.displaySchema?.properties[e.name]?.lx?.skeletonRowCount,showHeader:e.displaySchema?.properties[e.name]?.lx?.showHeader,showStatusBar:e.displaySchema?.properties[e.name]?.lx?.showStatusBar,showAllColumns:e.displaySchema?.properties[e.name]?.lx?.showAllColumns,hasSorting:e.displaySchema?.properties[e.name]?.lx?.hasSorting,sortingIgnoreEmpty:e.displaySchema?.properties[e.name]?.lx?.sortingIgnoreEmpty,itemsPerPage:e.displaySchema?.properties[e.name]?.lx?.itemsPerPage,totalItems:e.displaySchema?.properties[e.name]?.lx?.totalItems,sortingMode:e.displaySchema?.properties[e.name]?.lx?.sortingMode,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,defaultActionName:e.displaySchema?.properties[e.name]?.lx?.defaultActionName,toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:d[17]||(d[17]=(l,a,o)=>U("actionClick",e.name,l,a)),onToolbarActionClick:d[18]||(d[18]=l=>U("toolbarActionClick",e.name,l))},null,8,["items","label","description","columnDefinitions","scrollable","loading","busy","skeletonRowCount","showHeader","showStatusBar","showAllColumns","hasSorting","sortingIgnoreEmpty","itemsPerPage","totalItems","sortingMode","actionDefinitions","defaultActionName","toolbarActionDefinitions","texts"])):A.value==="arrayTableModal"?(t.openBlock(),t.createElementBlock("div",zl,[t.createVNode(t.unref(r.LxDataGrid),{items:n.value[e.name],label:e.displaySchema?.properties[e.name]?.lx?.label,description:e.displaySchema?.properties[e.name]?.lx?.description,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,columnDefinitions:le(e.displaySchema?.properties[e.name]?.items?.properties),scrollable:e.displaySchema?.properties[e.name]?.items?.properties?Object?.keys(e.displaySchema?.properties[e.name]?.items?.properties)?.length>4:null,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,skeletonRowCount:e.displaySchema?.properties[e.name]?.lx?.skeletonRowCount,showHeader:e.displaySchema?.properties[e.name]?.lx?.showHeader,showToolbar:e.displaySchema?.properties[e.name]?.lx?.showToolbar||!0,showStatusBar:e.displaySchema?.properties[e.name]?.lx?.showStatusBar,showAllColumns:e.displaySchema?.properties[e.name]?.lx?.showAllColumns,hasSorting:e.displaySchema?.properties[e.name]?.lx?.hasSorting,sortingIgnoreEmpty:e.displaySchema?.properties[e.name]?.lx?.sortingIgnoreEmpty,itemsPerPage:e.displaySchema?.properties[e.name]?.lx?.itemsPerPage,totalItems:e.displaySchema?.properties[e.name]?.lx?.totalItems,sortingMode:e.displaySchema?.properties[e.name]?.lx?.sortingMode,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions||[{id:"open",name:e.texts?.addElement,icon:"open"},{id:"remove",name:e.texts?.deleteElement,icon:"remove-item",destructive:!0}],defaultActionName:e.displaySchema?.properties[e.name]?.lx?.defaultActionName||"open",toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:d[20]||(d[20]=(l,a,o)=>L(l,a,o,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions)),onToolbarActionClick:d[21]||(d[21]=l=>U("toolbarActionClick",e.name,l))},{toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:d[19]||(d[19]=l=>$(e.name))},null,8,["label"]))]),_:1},8,["items","label","description","idAttribute","columnDefinitions","scrollable","loading","busy","skeletonRowCount","showHeader","showToolbar","showStatusBar","showAllColumns","hasSorting","sortingIgnoreEmpty","itemsPerPage","totalItems","sortingMode","actionDefinitions","defaultActionName","toolbarActionDefinitions","texts"]),t.createVNode(t.unref(r.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:Se.value,onClose:d[22]||(d[22]=l=>P.value=!1),onActionClick:d[23]||(d[23]=l=>Ce(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{showHeader:!1,showFooter:!1,"column-count":e.displaySchema?.properties[e.name]?.lx?.formColumnCount,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.items?.properties,(l,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[O(l,a)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:l?.title?l?.title:a,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(o,y,m)=>v(y,m,`${e.name}.${a}`,void 0)},{default:t.withCtx(()=>[O(l,a)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:E(l?.lx?.mask,l?.type),maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),"custom-mask-value":l?.lx?.customMaskValue,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,a)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,maxlength:l?.maxLength,placeholder:f(l),rows:l?.lx?.rows,"dynamic-height":l?.lx?.dynamicHeight,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,mask:"integer",maxlength:l?.maxLength,kind:l?.lx?.kind,tooltip:l?.lx?.tooltip,scale:l?.lx?.scale,disabled:l?.lx?.disabled,uppercase:l?.lx?.uppercase,"convert-to-string":l?.lx?.convertToString,placeholder:f(l),signed:l?.lx?.signed,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:4,kind:l?.format,placeholder:f(l),tooltip:l?.lx?.tooltip,"min-date":l?.lx?.minDate,"max-date":l?.lx?.maxDate,required:l?.lx?.required,disabled:l?.lx?.disabled,"time-adjust":l?.lx?.timeAdjust,"clear-if-not-exact":l?.lx?.clearIfNotExact,locale:l?.lx?.locale,"special-dates":l?.lx?.specialDates,dictionary:l?.lx?.dictionary,variant:l?.lx?.variant,cadenceOfMinutes:l?.lx?.cadenceOfMinutes,cadenceOfSeconds:l?.lx?.cadenceOfSeconds,texts:l?.lx?.texts,readOnly:k(l),modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},null,8,["kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(l,a)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,selectionKind:l?.type==="array"?"multiple":"single",items:l?.lx?.items||oe(l),"id-attribute":l?.lx?.idAttribute,"name-attribute":l?.lx?.nameAttribute,"icon-attribute":l?.lx?.iconAttribute,"icon-set-attribute":l?.lx?.iconSetAttribute,"category-attribute":l?.lx?.categoryAttribute,"description-attribute":l?.lx?.descriptionAttribute,variant:me(l),"has-search":l?.lx?.hasSearch,"always-as-array":l?.lx?.alwaysAsArray,nullable:l?.lx?.nullable,tooltip:l?.lx?.tooltip,texts:l?.lx?.texts,placeholder:f(l),disabled:l?.lx?.disabled,readOnly:k(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(o=>[t.createVNode(t.unref(r.LxStack),{orientation:l?.lx?.stack?.orientation,kind:l?.lx?.stack?.kind,mode:l?.lx?.stack?.mode||"grid","horizontal-alignment":l?.lx?.stack?.horizontalAlignment,"vertical-alignment":l?.lx?.stack?.verticalAlignment,"horizontal-config":l?.lx?.stack?.horizontalConfig,"vertical-config":l?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createBlock(Z,{key:m,itemValue:y,itemName:m,item:o,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:l?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(o=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:o?.[a]?.[V]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:p,itemName:V,item:o?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m,item:o},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):O(l,a)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:6,modelValue:D.value[`${e.id}-${e.name}`][a],"onUpdate:modelValue":o=>D.value[`${e.id}-${e.name}`][a]=o},{customItem:t.withCtx(({item:o,index:y})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[O(m,p)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:m?.title?m?.title:p,rowSpan:m?.lx?.rowSpan,columnSpan:m?.lx?.columnSpan,required:j(e.row?.items?.required,p),inputId:`${e.name}-${p}-${y}`,"action-definitions":m?.lx?.actionDefinitions,onActionClick:(V,Q,I)=>v(Q,I,`${e.name}.${p}`,y)},{default:t.withCtx(()=>[O(m,p)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${p}-${y}`,mask:E(m?.lx?.mask,m?.type),maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),signed:m?.lx?.signed,readOnly:k(m),"custom-mask-value":m?.lx?.customMaskValue,modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):O(m,p)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${p}-${y}`,maxlength:m?.maxLength,placeholder:f(m),rows:m?.lx?.rows,"dynamic-height":m?.lx?.dynamicHeight,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${p}-${y}`,kind:m?.format,placeholder:f(m),tooltip:m?.lx?.tooltip,"min-date":m?.lx?.minDate,"max-date":m?.lx?.maxDate,required:m?.lx?.required,disabled:m?.lx?.disabled,"time-adjust":m?.lx?.timeAdjust,"clear-if-not-exact":m?.lx?.clearIfNotExact,locale:m?.lx?.locale,"special-dates":m?.lx?.specialDates,dictionary:m?.lx?.dictionary,variant:m?.lx?.variant,cadenceOfMinutes:m?.lx?.cadenceOfMinutes,cadenceOfSeconds:m?.lx?.cadenceOfSeconds,texts:m?.lx?.texts,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${p}-${y}`,mask:"integer",maxlength:m?.maxLength,kind:m?.lx?.kind,tooltip:m?.lx?.tooltip,scale:m?.lx?.scale,disabled:m?.lx?.disabled,uppercase:m?.lx?.uppercase,"convert-to-string":m?.lx?.convertToString,placeholder:f(m),readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${p}-${y}`,size:m?.lx?.size,disabled:m?.lx?.disabled,tooltip:m?.lx?.tooltip,readOnly:k(m),modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},{default:t.withCtx(()=>[m?.lx?.label?(t.openBlock(),t.createElementBlock("span",Vl,t.toDisplayString(m?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(m,p)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${p}-${y}`,selectionKind:m?.type==="array"?"multiple":"single",items:m?.lx?.items||oe(m),"id-attribute":m?.lx?.idAttribute,"name-attribute":m?.lx?.nameAttribute,"icon-attribute":m?.lx?.iconAttribute,"icon-set-attribute":m?.lx?.iconSetAttribute,"category-attribute":m?.lx?.categoryAttribute,"description-attribute":m?.lx?.descriptionAttribute,variant:me(m),"has-search":m?.lx?.hasSearch,"always-as-array":m?.lx?.alwaysAsArray,nullable:m?.lx?.nullable,tooltip:m?.lx?.tooltip,texts:m?.lx?.texts,placeholder:f(m),disabled:m?.lx?.disabled,readOnly:k(m),"has-select-all":m?.lx?.hasSelectAll,"search-attributes":m?.lx?.searchAttributes,"read-only-render-type":m?.lx?.readOnlyRenderType,modelValue:o[p],"onUpdate:modelValue":V=>o[p]=V},t.createSlots({_:2},[m?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(V=>[t.createVNode(t.unref(r.LxStack),{orientation:m?.lx?.stack?.orientation,kind:m?.lx?.stack?.kind,mode:m?.lx?.stack?.mode||"grid","horizontal-alignment":m?.lx?.stack?.horizontalAlignment,"vertical-alignment":m?.lx?.stack?.verticalAlignment,"horizontal-config":m?.lx?.stack?.horizontalConfig,"vertical-config":m?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(Q,I)=>(t.openBlock(),t.createBlock(Z,{key:I,itemValue:Q,itemName:I,item:V,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:m?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(V=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m?.lx?.customItems?.properties,(Q,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[Q?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:Q?.lx?.orientation,kind:Q?.lx?.kind,mode:Q?.lx?.mode,"horizontal-alignment":Q?.lx?.horizontalAlignment,"vertical-alignment":Q?.lx?.verticalAlignment,"horizontal-config":Q?.lx?.horizontalConfig,"vertical-config":Q?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Q?.properties,(de,ke)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ke},[de?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:de?.lx?.orientation,kind:de?.lx?.kind,mode:de?.lx?.mode,"horizontal-alignment":de?.lx?.horizontalAlignment,"vertical-alignment":de?.lx?.verticalAlignment,"horizontal-config":de?.lx?.horizontalConfig,"vertical-config":de?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(de?.properties,(g,B)=>(t.openBlock(),t.createBlock(Z,{key:B,itemValue:g,itemName:B,item:V?.[a]?.[ke]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:de,itemName:ke,item:V?.[a]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:Q,itemName:I,item:V},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["actionDefinitions"])])):A.value==="appendableList"?(t.openBlock(),t.createBlock(t.unref(r.LxAppendableList),{key:12,modelValue:n.value[e.name],"onUpdate:modelValue":d[24]||(d[24]=l=>n.value[e.name]=l),readOnly:k(e.displaySchema?.properties[e.name]),expandable:e.displaySchema?.properties[e.name]?.lx?.expandable,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,columnCount:e.displaySchema?.properties[e.name]?.lx?.columnCount,kind:e.displaySchema?.properties[e.name]?.lx?.kind,requiredMode:e.displaySchema?.properties[e.name]?.lx?.requiredMode,canAddItems:e.displaySchema?.properties[e.name]?.lx?.canAddItems,uppercase:e.displaySchema?.properties[e.name]?.lx?.uppercase,defaultExpanded:e.displaySchema?.properties[e.name]?.lx?.defaultExpanded,expandedAttribute:e.displaySchema?.properties[e.name]?.lx?.expandedAttribute,texts:e.displaySchema?.properties[e.name]?.lx?.texts},{customItem:t.withCtx(({item:l,index:a})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.orderedObject?.[e.name]?.items?.properties,(o,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[O(o,y)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:o?.title?o?.title:y,rowSpan:o?.lx?.rowSpan,columnSpan:o?.lx?.columnSpan,required:j(e.row?.items?.required,y),inputId:`${e.name}-${y}-${a}`,"action-definitions":o?.lx?.actionDefinitions,onActionClick:(m,p,V)=>v(p,V,`${e.name}.${y}`,a)},{default:t.withCtx(()=>[O(o,y)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,id:`${e.name}-${y}-${a}`,mask:E(o?.lx?.mask,o?.type),maxlength:o?.maxLength,kind:o?.lx?.kind,tooltip:o?.lx?.tooltip,scale:o?.lx?.scale,disabled:o?.lx?.disabled,uppercase:o?.lx?.uppercase,"convert-to-string":o?.lx?.convertToString,placeholder:f(o),signed:o?.lx?.signed,readOnly:k(o),"custom-mask-value":o?.lx?.customMaskValue,modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):O(o,y)==="textArea"?(t.openBlock(),t.createBlock(t.unref(r.LxTextArea),{key:1,id:`${e.name}-${y}-${a}`,maxlength:o?.maxLength,placeholder:f(o),rows:o?.lx?.rows,"dynamic-height":o?.lx?.dynamicHeight,disabled:o?.lx?.disabled,tooltip:o?.lx?.tooltip,readOnly:k(o),modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(o,y)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:2,id:`${e.name}-${y}-${a}`,kind:o?.format,placeholder:f(o),tooltip:o?.lx?.tooltip,"min-date":o?.lx?.minDate,"max-date":o?.lx?.maxDate,required:o?.lx?.required,disabled:o?.lx?.disabled,"time-adjust":o?.lx?.timeAdjust,"clear-if-not-exact":o?.lx?.clearIfNotExact,locale:o?.lx?.locale,"special-dates":o?.lx?.specialDates,dictionary:o?.lx?.dictionary,variant:o?.lx?.variant,cadenceOfMinutes:o?.lx?.cadenceOfMinutes,cadenceOfSeconds:o?.lx?.cadenceOfSeconds,texts:o?.lx?.texts,readOnly:k(o),modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},null,8,["id","kind","placeholder","tooltip","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","variant","cadenceOfMinutes","cadenceOfSeconds","texts","readOnly","modelValue","onUpdate:modelValue"])):O(o,y)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:3,id:`${e.name}-${y}-${a}`,mask:"integer",maxlength:o?.maxLength,kind:o?.lx?.kind,tooltip:o?.lx?.tooltip,scale:o?.lx?.scale,disabled:o?.lx?.disabled,uppercase:o?.lx?.uppercase,"convert-to-string":o?.lx?.convertToString,placeholder:f(o),readOnly:k(o),modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(o,y)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:4,id:`${e.name}-${y}-${a}`,size:o?.lx?.size,disabled:o?.lx?.disabled,tooltip:o?.lx?.tooltip,readOnly:k(o),modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},{default:t.withCtx(()=>[o?.lx?.label?(t.openBlock(),t.createElementBlock("span",Fl,t.toDisplayString(o?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(o,y)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:5,id:`${e.name}-${y}-${a}`,selectionKind:o?.type==="array"?"multiple":"single",items:o?.lx?.items||oe(o),"id-attribute":o?.lx?.idAttribute,"name-attribute":o?.lx?.nameAttribute,"icon-attribute":o?.lx?.iconAttribute,"icon-set-attribute":o?.lx?.iconSetAttribute,"category-attribute":o?.lx?.categoryAttribute,"description-attribute":o?.lx?.descriptionAttribute,variant:me(o),"has-search":o?.lx?.hasSearch,"always-as-array":o?.lx?.alwaysAsArray,nullable:o?.lx?.nullable,tooltip:o?.lx?.tooltip,texts:o?.lx?.texts,placeholder:f(o),disabled:o?.lx?.disabled,readOnly:k(o),"has-select-all":o?.lx?.hasSelectAll,"search-attributes":o?.lx?.searchAttributes,"read-only-render-type":o?.lx?.readOnlyRenderType,modelValue:l[y],"onUpdate:modelValue":m=>l[y]=m},t.createSlots({_:2},[o?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(m=>[t.createVNode(t.unref(r.LxStack),{orientation:o?.lx?.stack?.orientation,kind:o?.lx?.stack?.kind,mode:o?.lx?.stack?.mode||"grid","horizontal-alignment":o?.lx?.stack?.horizontalAlignment,"vertical-alignment":o?.lx?.stack?.verticalAlignment,"horizontal-config":o?.lx?.stack?.horizontalConfig,"vertical-config":o?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o?.lx?.customItems?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V,item:m,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:o?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(m=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o?.lx?.customItems?.properties,(p,V)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:V},[p?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:p?.lx?.orientation,kind:p?.lx?.kind,mode:p?.lx?.mode,"horizontal-alignment":p?.lx?.horizontalAlignment,"vertical-alignment":p?.lx?.verticalAlignment,"horizontal-config":p?.lx?.horizontalConfig,"vertical-config":p?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p?.properties,(Q,I)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:I},[Q?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,orientation:Q?.lx?.orientation,kind:Q?.lx?.kind,mode:Q?.lx?.mode,"horizontal-alignment":Q?.lx?.horizontalAlignment,"vertical-alignment":Q?.lx?.verticalAlignment,"horizontal-config":Q?.lx?.horizontalConfig,"vertical-config":Q?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Q?.properties,(de,ke)=>(t.openBlock(),t.createBlock(Z,{key:ke,itemValue:de,itemName:ke,item:m?.[V]?.[I]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:Q,itemName:I,item:m?.[V]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:p,itemName:V,item:m},null,8,["itemValue","itemName","item"]))],64))),128))]),key:"1"}:void 0]),1032,["id","selectionKind","items","id-attribute","name-attribute","icon-attribute","icon-set-attribute","category-attribute","description-attribute","variant","has-search","always-as-array","nullable","tooltip","texts","placeholder","disabled","readOnly","has-select-all","search-attributes","read-only-render-type","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["modelValue","readOnly","expandable","nameAttribute","columnCount","kind","requiredMode","canAddItems","uppercase","defaultExpanded","expandedAttribute","texts"])):A.value==="smallAppendableList"?(t.openBlock(),t.createBlock(wl,{key:13,modelValue:n.value[e.name],"onUpdate:modelValue":d[25]||(d[25]=l=>n.value[e.name]=l),readOnly:k(e.displaySchema?.properties[e.name]),columnCount:e.displaySchema?.properties[e.name]?.lx?.columnCount,kind:e.displaySchema?.properties[e.name]?.lx?.kind||"compact",requiredMode:e.displaySchema?.properties[e.name]?.lx?.requiredMode,canAddItems:e.displaySchema?.properties[e.name]?.lx?.canAddItems,texts:e.displaySchema?.properties[e.name]?.lx?.texts},{customItem:t.withCtx(({index:l})=>[O(e.row?.items,e.name)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,hideLabel:!0,rowSpan:e.row?.items?.lx?.rowSpan,columnSpan:e.row?.items?.lx?.columnSpan,actionDefinitions:e.row?.items?.lx?.actionDefinitions,onActionClick:(a,o,y)=>v(o,y,e.name,l)},{default:t.withCtx(()=>[O(e.row?.items,e.name)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,mask:E(e.row?.items?.lx?.mask,e.row?.items?.type),maxlength:e.row?.items?.maxLength,kind:e.row?.items?.lx?.kind,tooltip:e.row?.items?.lx?.tooltip,scale:e.row?.items?.lx?.scale,disabled:e.row?.items?.lx?.disabled,uppercase:e.row?.items?.lx?.uppercase,"convert-to-string":e.row?.items?.lx?.convertToString,placeholder:f(e.row?.items),signed:e.row?.items?.lx?.signed,readOnly:k(e.row?.items),"custom-mask-value":e.row?.items?.lx?.customMaskValue,modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","modelValue","onUpdate:modelValue"])):O(e.row?.items,e.name)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:1,mask:"integer",maxlength:e.row?.items?.maxLength,kind:e.row?.items?.lx?.kind,tooltip:e.row?.items?.lx?.tooltip,scale:e.row?.items?.lx?.scale,disabled:e.row?.items?.lx?.disabled,uppercase:e.row?.items?.lx?.uppercase,"convert-to-string":e.row?.items?.lx?.convertToString,placeholder:f(e.row?.items),signed:e.row?.items?.lx?.signed,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(e.row?.items,e.name)==="toggle"?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:2,size:e.row?.items?.lx?.size,disabled:e.row?.items?.lx?.disabled,tooltip:e.row?.items?.lx?.tooltip,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},{on:t.withCtx(()=>[e.row?.items?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",Ml,t.toDisplayString(e.row?.items?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",Nl,"Jā"))]),off:t.withCtx(()=>[e.row?.items?.lx?.labelOff?(t.openBlock(),t.createElementBlock("span",vl,t.toDisplayString(e.row?.items?.lx?.labelOff),1)):(t.openBlock(),t.createElementBlock("span",Rl,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.items?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",ql,t.toDisplayString(e.row?.items?.lx?.labelIndeterminate),1)):k(e.row?.items)?(t.openBlock(),t.createElementBlock("span",Kl,d[58]||(d[58]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Hl,"—"))]),_:2},1032,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(e.row?.items,e.name)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:3,kind:e.row?.items?.format,tooltip:e.row?.items?.lx?.tooltip,placeholder:f(e.row?.items),"min-date":e.row?.items?.lx?.minDate,"max-date":e.row?.items?.lx?.maxDate,required:e.row?.items?.lx?.required,disabled:e.row?.items?.lx?.disabled,"time-adjust":e.row?.items?.lx?.timeAdjust,"clear-if-not-exact":e.row?.items?.lx?.clearIfNotExact,locale:e.row?.items?.lx?.locale,"special-dates":e.row?.items?.lx?.specialDates,dictionary:e.row?.items?.lx?.dictionary,cadenceOfMinutes:e.row?.items?.lx?.cadenceOfMinutes,cadenceOfSeconds:e.row?.items?.lx?.cadenceOfSeconds,variant:e.row?.items?.lx?.variant,texts:e.row?.items?.lx?.texts,readOnly:k(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":a=>n.value[e.name][l]=a},null,8,["kind","tooltip","placeholder","min-date","max-date","required","disabled","time-adjust","clear-if-not-exact","locale","special-dates","dictionary","cadenceOfMinutes","cadenceOfSeconds","variant","texts","readOnly","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["rowSpan","columnSpan","actionDefinitions","onActionClick"]))]),_:1},8,["modelValue","readOnly","columnCount","kind","requiredMode","canAddItems","texts"])):A.value==="autoComplete"?(t.openBlock(),t.createBlock(t.unref(r.LxAutoComplete),{key:14,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,groupId:e.displaySchema?.properties[e.name]?.lx?.groupId,queryMinLength:e.displaySchema?.properties[e.name]?.lx?.queryMinLength,queryMaxLength:e.displaySchema?.properties[e.name]?.lx?.queryMaxLength,queryDebounce:e.displaySchema?.properties[e.name]?.lx?.queryDebounce,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:N.value,"invalidation-message":ce.value,loading:e.displaySchema?.properties[e.name]?.lx?.loading,hasDetails:e.displaySchema?.properties[e.name]?.lx?.hasDetails,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",detailMode:e.displaySchema?.properties[e.name]?.lx?.detailMode,preloadedItems:e.displaySchema?.properties[e.name]?.lx?.preloadedItems,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,hasSelectAll:e.displaySchema?.properties[e.name]?.lx?.hasSelectAll,texts:e.displaySchema?.properties[e.name]?.lx?.texts,searchAttributes:e.displaySchema?.properties[e.name]?.lx?.searchAttributes,enableAdditionalText:e.displaySchema?.properties[e.name]?.lx?.enableAdditionalText,modelValue:n.value[e.name],"onUpdate:modelValue":d[26]||(d[26]=l=>n.value[e.name]=l),builderOptions:w.value,onOpenDetails:d[27]||(d[27]=l=>U("openDetails",e.name,l))},null,8,["id","items","idAttribute","nameAttribute","dictionary","groupId","queryMinLength","queryMaxLength","queryDebounce","placeholder","tooltip","readOnly","disabled","invalid","invalidation-message","loading","hasDetails","selectionKind","detailMode","preloadedItems","labelId","hasSelectAll","texts","searchAttributes","enableAdditionalText","modelValue","builderOptions"])):A.value==="button"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:15,id:`${e.id}-${e.name}`,label:n.value[e.name]?.label||n.value[e.name]||e.displaySchema?.properties[e.name]?.lx?.label,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,busyTooltip:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busyTooltip:e.displaySchema?.properties[e.name]?.lx?.busyTooltip,icon:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,iconVariant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconVariant:e.displaySchema?.properties[e.name]?.lx?.iconVariant,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,destructive:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.destructive:e.displaySchema?.properties[e.name]?.lx?.destructive,href:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.href:e.displaySchema?.properties[e.name]?.lx?.href,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busy:e.displaySchema?.properties[e.name]?.lx?.busy,badge:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badge:e.displaySchema?.properties[e.name]?.lx?.badge,badgeType:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeType:e.displaySchema?.properties[e.name]?.lx?.badgeType,active:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.active:e.displaySchema?.properties[e.name]?.lx?.active,tabindex:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.tabindex:e.displaySchema?.properties[e.name]?.lx?.tabindex,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,openInNewTab:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.openInNewTab:e.displaySchema?.properties[e.name]?.lx?.openInNewTab,onClick:d[28]||(d[28]=(l,a)=>U("click",e.name,a))},null,8,["id","label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","tabindex","customClass","openInNewTab"])):A.value==="camera"?(t.openBlock(),t.createBlock(t.unref(r.LxCamera),{key:16,id:`${e.id}-${e.name}`,cameraSwitcherMode:e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,imageSize:e.displaySchema?.properties[e.name]?.lx?.imageSize,preferencesId:e.displaySchema?.properties[e.name]?.lx?.preferencesId,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[29]||(d[29]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","cameraSwitcherMode","hasFlashlightToggle","imageSize","preferencesId","labelId","texts","modelValue","builderOptions"])):A.value==="checkbox"?(t.openBlock(),t.createBlock(t.unref(r.LxCheckbox),{key:17,id:`${e.id}-${e.name}`,groupId:e.displaySchema?.properties[e.name]?.lx?.groupId,label:e.displaySchema?.properties[e.name]?.lx?.label,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,value:e.displaySchema?.properties[e.name]?.lx?.value,tabindex:e.displaySchema?.properties[e.name]?.lx?.tabindex,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,modelValue:n.value[e.name],"onUpdate:modelValue":d[30]||(d[30]=l=>n.value[e.name]=l),builderOptions:w.value,onClick:d[31]||(d[31]=()=>U("click",e.name))},null,8,["id","groupId","label","disabled","value","tabindex","labelId","modelValue","builderOptions"])):A.value==="contentSwitcher"?(t.openBlock(),t.createBlock(t.unref(r.LxContentSwitcher),{key:18,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,kind:e.displaySchema?.properties[e.name]?.lx?.kind,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,modelValue:n.value[e.name],"onUpdate:modelValue":d[32]||(d[32]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","items","idAttribute","nameAttribute","readOnly","disabled","kind","icon","iconSet","tooltip","labelId","modelValue","builderOptions"])):A.value==="dataVisualizer"?(t.openBlock(),t.createBlock(t.unref(r.LxDataVisualizer),{key:19,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,items:n.value?.[e.name]?.items||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.items,thresholds:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.thresholds:e.displaySchema?.properties[e.name]?.lx?.thresholds,showValues:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.showValues:e.displaySchema?.properties[e.name]?.lx?.showValues,idAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,colorAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.colorAttribute:e.displaySchema?.properties[e.name]?.lx?.colorAttribute,valueAttribute:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.valueAttribute:e.displaySchema?.properties[e.name]?.lx?.valueAttribute,showLegend:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.showLegend:e.displaySchema?.properties[e.name]?.lx?.showLegend,targets:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.targets:e.displaySchema?.properties[e.name]?.lx?.targets,maxValue:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.maxValue:e.displaySchema?.properties[e.name]?.lx?.maxValue,mode:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.mode:e.displaySchema?.properties[e.name]?.lx?.mode,texts:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.texts:e.displaySchema?.properties[e.name]?.lx?.texts,onClick:d[33]||(d[33]=l=>U("click",e.name,l))},null,8,["id","kind","items","thresholds","showValues","idAttribute","nameAttribute","colorAttribute","valueAttribute","showLegend","targets","maxValue","mode","texts"])):A.value==="dateTimeRange"&&n.value[e.name]?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimeRange),{key:20,id:`${e.id}-${e.name}`,startDate:n.value[e.name].startDate,"onUpdate:startDate":d[34]||(d[34]=l=>n.value[e.name].startDate=l),endDate:n.value[e.name].endDate,"onUpdate:endDate":d[35]||(d[35]=l=>n.value[e.name].endDate=l),kind:e.displaySchema?.properties[e.name]?.format,placeholder:f(e.displaySchema?.properties[e.name]),tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,minDate:e.displaySchema?.properties[e.name]?.lx?.minDate,maxDate:e.displaySchema?.properties[e.name]?.lx?.maxDate,required:e.displaySchema?.properties[e.name]?.lx?.required,readOnly:k(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:N.value,"invalidation-message":ce.value,timeAdjust:e.displaySchema?.properties[e.name]?.lx?.timeAdjust,locale:e.displaySchema?.properties[e.name]?.lx?.locale,rangeMonths:e.displaySchema?.properties[e.name]?.lx?.rangeMonths,clearIfNotExact:e.displaySchema?.properties[e.name]?.lx?.clearIfNotExact,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,builderOptions:w.value},null,8,["id","startDate","endDate","kind","placeholder","tooltip","minDate","maxDate","required","readOnly","disabled","invalid","invalidation-message","timeAdjust","locale","rangeMonths","clearIfNotExact","labelId","texts","builderOptions"])):A.value==="dropDownMenu"?(t.openBlock(),t.createBlock(t.unref(r.LxDropDownMenu),{key:21,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled},{panel:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.items,(l,a)=>(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:a,label:l?.label,title:l?.title,busyTooltip:l?.busyTooltip,icon:l?.icon,iconSet:l?.iconSet,iconVariant:l?.iconVariant,kind:l?.kind,variant:l?.variant,size:l?.size,destructive:l?.destructive,href:l?.href,disabled:l?.disabled,loading:l?.loading,busy:l?.busy,badge:l?.badge,badgeType:l?.badgeType,active:l?.active,tabindex:l?.tabindex,customClass:l?.customClass,openInNewTab:l?.openInNewTab,onClick:()=>U("click",`${e.name}.${a}`,l?.id||l?.label)},null,8,["label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","tabindex","customClass","openInNewTab","onClick"]))),128))]),default:t.withCtx(()=>[t.createVNode(t.unref(r.LxButton),{id:`${e.id}-${e.name}`,label:n.value[e.name]?.label||n.value[e.name]||e.displaySchema?.properties[e.name]?.lx?.label,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,busyTooltip:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busyTooltip:e.displaySchema?.properties[e.name]?.lx?.busyTooltip,icon:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,iconVariant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconVariant:e.displaySchema?.properties[e.name]?.lx?.iconVariant,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,destructive:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.destructive:e.displaySchema?.properties[e.name]?.lx?.destructive,href:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.href:e.displaySchema?.properties[e.name]?.lx?.href,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.busy:e.displaySchema?.properties[e.name]?.lx?.busy,badge:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badge:e.displaySchema?.properties[e.name]?.lx?.badge,badgeType:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeType:e.displaySchema?.properties[e.name]?.lx?.badgeType,active:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.active:e.displaySchema?.properties[e.name]?.lx?.active,tabindex:-1,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,openInNewTab:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.openInNewTab:e.displaySchema?.properties[e.name]?.lx?.openInNewTab},null,8,["id","label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeType","active","customClass","openInNewTab"])]),_:1},8,["disabled"])):A.value==="file"?(t.openBlock(),t.createBlock(t.unref(r.LxFileUploader),{key:22,id:`${e.id}-${e.name}`,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,mode:e.displaySchema?.properties[e.name]?.lx?.mode,draggable:e.displaySchema?.properties[e.name]?.lx?.draggable,dataType:e.displaySchema?.properties[e.name]?.lx?.dataType,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,readOnly:k(e.displaySchema?.properties[e.name]),allowedFileExtensions:e.displaySchema?.properties[e.name]?.lx?.allowedFileExtensions,maxFileSize:e.displaySchema?.properties[e.name]?.lx?.maxFileSize,hasDownloadButton:e.displaySchema?.properties[e.name]?.lx?.hasDownloadButton,showMeta:e.displaySchema?.properties[e.name]?.lx?.showMeta,maxSizeForMeta:e.displaySchema?.properties[e.name]?.lx?.maxSizeForMeta,hasCamera:e.displaySchema?.properties[e.name]?.lx?.hasCamera,cameraSwitcherMode:e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,imageSize:e.displaySchema?.properties[e.name]?.lx?.imageSize,preferencesId:e.displaySchema?.properties[e.name]?.lx?.preferencesId,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[36]||(d[36]=l=>n.value[e.name]=l),builderOptions:w.value,onOnError:d[37]||(d[37]=(l,a)=>U("onError",e.name,l,a)),onDownloadFile:d[38]||(d[38]=l=>U("downloadFile",e.name,l))},null,8,["id","selectionKind","mode","draggable","dataType","hasSearch","disabled","loading","busy","readOnly","allowedFileExtensions","maxFileSize","hasDownloadButton","showMeta","maxSizeForMeta","hasCamera","cameraSwitcherMode","hasFlashlightToggle","imageSize","preferencesId","labelId","texts","modelValue","builderOptions"])):A.value==="fileViewer"?(t.openBlock(),t.createBlock(t.unref(r.LxFileViewer),{key:23,id:`${e.id}-${e.name}`,scrollable:e.displaySchema?.properties[e.name]?.lx?.scrollable,width:e.displaySchema?.properties[e.name]?.lx?.width,height:e.displaySchema?.properties[e.name]?.lx?.height,fileName:e.displaySchema?.properties[e.name]?.lx?.fileName,showPrintButton:e.displaySchema?.properties[e.name]?.lx?.showPrintButton,showFullScreenButton:e.displaySchema?.properties[e.name]?.lx?.showFullScreenButton,primaryDownloadButton:e.displaySchema?.properties[e.name]?.lx?.primaryDownloadButton,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,zoomLevel:e.displaySchema?.properties[e.name]?.lx?.zoomLevel,downloadType:e.displaySchema?.properties[e.name]?.lx?.downloadType,preloadLibs:e.displaySchema?.properties[e.name]?.lx?.preloadLibs,modelValue:n.value[e.name],"onUpdate:modelValue":d[39]||(d[39]=l=>n.value[e.name]=l),onDownload:d[40]||(d[40]=l=>U("download",e.name,l))},null,8,["id","scrollable","width","height","fileName","showPrintButton","showFullScreenButton","primaryDownloadButton","stickyToolbar","zoomLevel","downloadType","preloadLibs","modelValue"])):A.value==="flag"?(t.openBlock(),t.createBlock(t.unref(r.LxFlag),{key:24,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title},null,8,["value","size","title"])):A.value==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxIcon),{key:25,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,iconSet:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,variant:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.variant:e.displaySchema?.properties[e.name]?.lx?.variant,customClass:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.customClass:e.displaySchema?.properties[e.name]?.lx?.customClass,animation:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.animation:e.displaySchema?.properties[e.name]?.lx?.animation,meaningful:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.meaningful:e.displaySchema?.properties[e.name]?.lx?.meaningful,title:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.title:e.displaySchema?.properties[e.name]?.lx?.title,desc:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.desc:e.displaySchema?.properties[e.name]?.lx?.desc,texts:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.texts:e.displaySchema?.properties[e.name]?.lx?.texts},null,8,["value","iconSet","variant","customClass","animation","meaningful","title","desc","texts"])):A.value==="illustration"?(t.openBlock(),t.createBlock(t.unref(r.LxIllustration),{key:26,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,class:t.normalizeClass(e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.class:e.displaySchema?.properties[e.name]?.lx?.class),animation:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.animation:e.displaySchema?.properties[e.name]?.lx?.animation},null,8,["value","class","animation"])):A.value==="link"?(t.openBlock(),t.createBlock(t.unref(r.LxLink),{key:27,href:n.value?.[e.name]?.href||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.href},null,8,["href"])):A.value==="map"?(t.openBlock(),t.createBlock(t.unref(r.LxMap),{key:28,id:`${e.id}-${e.name}`,baseLayerDefinitions:n.value[e.name].baseLayerDefinitions,selectedBaseLayer:n.value[e.name].selectedBaseLayer,"onUpdate:selectedBaseLayer":d[41]||(d[41]=l=>n.value[e.name].selectedBaseLayer=l),overlayLayerDefinitions:n.value[e.name].overlayLayerDefinitions,selectedOverlayLayers:n.value[e.name].selectedOverlayLayers,"onUpdate:selectedOverlayLayers":d[42]||(d[42]=l=>n.value[e.name].selectedOverlayLayers=l),zoom:n.value[e.name].zoom,"onUpdate:zoom":d[43]||(d[43]=l=>n.value[e.name].zoom=l),center:n.value[e.name].center,"onUpdate:center":d[44]||(d[44]=l=>n.value[e.name].center=l),objectDefinitions:n.value[e.name].objectDefinitions,showSearch:n.value[e.name].showSearch,showToolbar:n.value[e.name].showToolbar,ignoreThemeChange:n.value[e.name].ignoreThemeChange,hasUserLocation:n.value[e.name].hasUserLocation,texts:n.value[e.name].texts,onSearch:d[45]||(d[45]=l=>U("search",e.name,l))},null,8,["id","baseLayerDefinitions","selectedBaseLayer","overlayLayerDefinitions","selectedOverlayLayers","zoom","center","objectDefinitions","showSearch","showToolbar","ignoreThemeChange","hasUserLocation","texts"])):A.value==="markdownTextArea"?(t.openBlock(),t.createBlock(t.unref(r.LxMarkdownTextArea),{key:29,id:`${e.id}-${e.name}`,placeholder:f(e.displaySchema?.properties[e.name]),rows:e.displaySchema?.properties[e.name]?.lx?.rows,maxlength:e.displaySchema?.properties[e.name]?.maxLength,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,showColorPicker:e.displaySchema?.properties[e.name]?.lx?.showColorPicker,invalid:N.value,"invalidation-message":ce.value,readOnly:k(e.displaySchema?.properties[e.name]),showLinkEditor:e.displaySchema?.properties[e.name]?.lx?.showLinkEditor,tooltip:e.displaySchema?.properties[e.name]?.lx?.tooltip,showPlaceholderPicker:e.displaySchema?.properties[e.name]?.lx?.showPlaceholderPicker,showImagePicker:e.displaySchema?.properties[e.name]?.lx?.showImagePicker,showUnderlineToggle:e.displaySchema?.properties[e.name]?.lx?.showUnderlineToggle,showHeadingPicker:e.displaySchema?.properties[e.name]?.lx?.showHeadingPicker,imageMaxSize:e.displaySchema?.properties[e.name]?.lx?.imageMaxSize,dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[46]||(d[46]=l=>n.value[e.name]=l),builderOptions:w.value,onNotification:d[47]||(d[47]=l=>U("notification",e.name,l)),onPreparedImage:d[48]||(d[48]=(l,a,o,y)=>U("preparedImage",e.name,{base64:l,id:a,alt:o,title:y}))},null,8,["id","placeholder","rows","maxlength","disabled","showColorPicker","invalid","invalidation-message","readOnly","showLinkEditor","tooltip","showPlaceholderPicker","showImagePicker","showUnderlineToggle","showHeadingPicker","imageMaxSize","dictionary","labelId","texts","modelValue","builderOptions"])):A.value==="numberSlider"?(t.openBlock(),t.createBlock(t.unref(r.LxNumberSlider),{key:30,id:`${e.id}-${e.name}`,min:e.displaySchema?.properties[e.name]?.lx?.min,max:e.displaySchema?.properties[e.name]?.lx?.max,step:e.displaySchema?.properties[e.name]?.lx?.step,stepMultiplier:e.displaySchema?.properties[e.name]?.lx?.stepMultiplier,hasInput:e.displaySchema?.properties[e.name]?.lx?.hasInput,readOnly:k(e.displaySchema?.properties[e.name]),labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,modelValue:n.value[e.name],"onUpdate:modelValue":d[49]||(d[49]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","min","max","step","stepMultiplier","hasInput","readOnly","labelId","disabled","modelValue","builderOptions"])):A.value==="personDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxPersonDisplay),{key:31,value:n.value?.[e.name],name:e.displaySchema?.properties[e.name]?.lx?.name,kind:e.displaySchema?.properties[e.name]?.lx?.kind,size:e.displaySchema?.properties[e.name]?.lx?.size,variant:e.displaySchema?.properties[e.name]?.lx?.variant,description:e.displaySchema?.properties[e.name]?.lx?.description,role:e.displaySchema?.properties[e.name]?.lx?.role,institution:e.displaySchema?.properties[e.name]?.lx?.institution,icon:e.displaySchema?.properties[e.name]?.lx?.icon,iconSet:e.displaySchema?.properties[e.name]?.lx?.iconSet,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,firstNameAttribute:e.displaySchema?.properties[e.name]?.lx?.firstNameAttribute,lastNameAttribute:e.displaySchema?.properties[e.name]?.lx?.lastNameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,roleAttribute:e.displaySchema?.properties[e.name]?.lx?.roleAttribute,institutionAttribute:e.displaySchema?.properties[e.name]?.lx?.institutionAttribute,iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,iconSetAttribute:e.displaySchema?.properties[e.name]?.lx?.iconSetAttribute,maxLength:e.displaySchema?.properties[e.name]?.lx?.maxLength,texts:e.displaySchema?.properties[e.name]?.lx?.texts},null,8,["value","name","kind","size","variant","description","role","institution","icon","iconSet","idAttribute","nameAttribute","firstNameAttribute","lastNameAttribute","descriptionAttribute","roleAttribute","institutionAttribute","iconAttribute","iconSetAttribute","maxLength","texts"])):A.value==="qr"?(t.openBlock(),t.createBlock(t.unref(r.LxQr),{key:32,id:`${e.id}-${e.name}`,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size,ignoreTheme:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.ignoreTheme:e.displaySchema?.properties[e.name]?.lx?.ignoreTheme},null,8,["id","value","size","ignoreTheme"])):A.value==="qrScanner"?(t.openBlock(),t.createBlock(t.unref(r.LxQrScanner),{key:33,id:`${e.id}-${e.name}`,formats:n.value?.[e.name]?.formats||e.displaySchema?.properties[e.name]?.lx?.formats,hasFileUploader:n.value?.[e.name]?.hasFileUploader||e.displaySchema?.properties[e.name]?.lx?.hasFileUploader,selectionKind:n.value?.[e.name]?.selectionKind||e.displaySchema?.properties[e.name]?.lx?.selectionKind,cameraSwitcherMode:n.value?.[e.name]?.cameraSwitcherMode||e.displaySchema?.properties[e.name]?.lx?.cameraSwitcherMode,hasFlashlightToggle:n.value?.[e.name]?.hasFlashlightToggle||e.displaySchema?.properties[e.name]?.lx?.hasFlashlightToggle,showAlerts:n.value?.[e.name]?.showAlerts||e.displaySchema?.properties[e.name]?.lx?.showAlerts,labelId:n.value?.[e.name]?.labelId||e.displaySchema?.properties[e.name]?.lx?.labelId,texts:n.value?.[e.name]?.texts||e.displaySchema?.properties[e.name]?.lx?.texts,builderOptions:w.value,onValue:d[50]||(d[50]=l=>U("value",e.name,l)),onError:d[51]||(d[51]=l=>U("error",e.name,l))},null,8,["id","formats","hasFileUploader","selectionKind","cameraSwitcherMode","hasFlashlightToggle","showAlerts","labelId","texts","builderOptions"])):A.value==="rating"?(t.openBlock(),t.createBlock(t.unref(r.LxRating),{key:34,readOnly:k(e.displaySchema?.properties[e.name]),kind:e.displaySchema?.properties[e.name]?.lx?.kind,variant:e.displaySchema?.properties[e.name]?.lx?.variant,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[52]||(d[52]=l=>n.value[e.name]=l)},null,8,["readOnly","kind","variant","disabled","texts","modelValue"])):A.value==="richTextDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxRichTextDisplay),{key:35,id:`${e.id}-${e.name}`,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,loading:e.displaySchema?.properties[e.name]?.type==="object"?n.value?.[e.name]?.loading:e.displaySchema?.properties[e.name]?.lx?.loading},null,8,["id","value","loading"])):A.value==="stateDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxStateDisplay),{key:36,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,dictionary:e.displaySchema?.properties[e.name]?.type==="object"?n.value?.[e.name]?.dictionary:e.displaySchema?.properties[e.name]?.lx?.dictionary},null,8,["value","dictionary"])):A.value==="steps"?(t.openBlock(),t.createBlock(t.unref(r.LxSteps),{key:37,id:`${e.id}-${e.name}`,items:e.displaySchema?.properties[e.name]?.lx?.items,kind:e.displaySchema?.properties[e.name]?.lx?.kind,idAttribute:e.displaySchema?.properties[e.name]?.lx?.idAttribute,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,stateAttribute:e.displaySchema?.properties[e.name]?.lx?.stateAttribute,loading:e.displaySchema?.properties[e.name]?.lx?.loading,busy:e.displaySchema?.properties[e.name]?.lx?.busy,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,modelValue:n.value[e.name],"onUpdate:modelValue":d[53]||(d[53]=l=>n.value[e.name]=l)},null,8,["id","items","kind","idAttribute","nameAttribute","descriptionAttribute","stateAttribute","loading","busy","disabled","modelValue"])):A.value==="visualPicker"?(t.openBlock(),t.createBlock(t.unref(r.LxVisualPicker),{key:38,id:`${e.id}-${e.name}`,kind:e.displaySchema?.properties[e.name]?.lx?.kind,mode:e.displaySchema?.properties[e.name]?.lx?.mode,selectionKind:e.displaySchema?.properties[e.name]?.type==="array"?"multiple":"single",readOnly:k(e.displaySchema?.properties[e.name]),labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[54]||(d[54]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","kind","mode","selectionKind","readOnly","labelId","texts","modelValue","builderOptions"])):A.value==="dayInput"?(t.openBlock(),t.createBlock(t.unref(r.LxDayInput),{key:39,id:`${e.id}-${e.name}`,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,readOnly:k(e.displaySchema?.properties[e.name]),kind:e.displaySchema?.properties[e.name]?.lx?.kind,invalid:N.value,invalidationMessage:ce.value,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[55]||(d[55]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","disabled","readOnly","kind","invalid","invalidationMessage","labelId","texts","modelValue","builderOptions"])):A.value==="drawPad"?(t.openBlock(),t.createBlock(t.unref(r.LxDrawPad),{key:40,id:`${e.id}-${e.name}`,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,width:e.displaySchema?.properties[e.name]?.lx?.width,height:e.displaySchema?.properties[e.name]?.lx?.height,instrument:e.displaySchema?.properties[e.name]?.lx?.instrument,color:e.displaySchema?.properties[e.name]?.lx?.color,showInstruments:e.displaySchema?.properties[e.name]?.lx?.showInstruments,showColorPicker:e.displaySchema?.properties[e.name]?.lx?.showColorPicker,showClearAll:e.displaySchema?.properties[e.name]?.lx?.showClearAll,labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":d[56]||(d[56]=l=>n.value[e.name]=l),builderOptions:w.value},null,8,["id","disabled","width","height","instrument","color","showInstruments","showColorPicker","showClearAll","labelId","texts","modelValue","builderOptions"])):A.value==="logoDisplay"?(t.openBlock(),t.createBlock(t.unref(r.LxLogoDisplay),{key:41,value:n.value?.[e.name]?.value||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.value,kind:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.kind:e.displaySchema?.properties[e.name]?.lx?.kind,size:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.size:e.displaySchema?.properties[e.name]?.lx?.size},null,8,["value","kind","size"])):A.value==="text"?(t.openBlock(),t.createElementBlock("p",Gl,t.toDisplayString(n.value[e.name]),1)):t.createCommentVNode("",!0)}},qe={__name:"FormBuilder",props:{id:{type:String,default:()=>r.lxStringUtils.generateUUID()},modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},mode:{type:String,default:"default"},validations:{type:Object,default:null},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:null,useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit","filterBuilderFilter"],setup(e,{expose:h,emit:s}){const x=e,n={required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",deleteElement:"Dzēst elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},S=t.computed(()=>De(x.texts,n)),D=s,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(g){D("update:modelValue",g)}});function k(g){return!!x.schema?.required?.some(B=>B===g)}const E=t.computed(()=>{try{r.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function K(g){return g?.format!=="date"&&g?.format!=="time"&&g?.format!=="date-time"&&g?.format!=="year"&&g?.format!=="month"&&g?.format!=="month-year"&&g?.format!=="quarters"}function M(g){return g?.type==="string"&&g?.lx?.kind!=="multiline"&&!g?.lx?.variant&&K(g)&&!g?.enum||g?.type==="number"&&!g?.lx?.variant&&K(g)&&!g?.enum?"textInputDefault":g?.type==="string"&&g?.lx?.kind==="multiline"?"textArea":g?.type==="string"&&!K(g)?"dateTimePicker":""}function G(g){return g?.type==="array"&&g?.lx?.displayType==="list"?"arrayList":g?.type==="array"&&g?.lx?.displayType==="listModal"?"arrayListModal":g?.type==="array"&&g?.lx?.displayType==="table"?"arrayTable":g?.type==="array"&&g?.lx?.displayType==="tableModal"?"arrayTableModal":Array.isArray(g?.lx?.items)||g?.enum?"valuePicker":g?.items?.properties&&g?.type==="array"?"appendableList":g?.type==="array"&&g?.items?.type!=="object"&&g?.items?"smallAppendableList":""}function H(g,B){return g?.lx?.displayType==="map"&&g?.type==="object"?"map":g?.type==="object"&&f.value?.[B]!==void 0&&f.value?.[B]!==null&&g?.lx?.displayType==="modal"?"objectList":g?.type==="object"&&!f.value?.[B]&&g?.lx?.displayType==="modal"?"objectButton":g?.type==="object"&&f.value?.[B]!==void 0&&f.value?.[B]!==null?"dataBlock":""}function z(g){return Nt(g)}function O(g){const B=M(g);return B||null}function A(g){return g?.type==="string"&&(g?.lx?.variant||g?.enum)||g?.type==="array"}function v(g){const B=G(g);return B!==""?B:null}function U(g,B){const R=H(g,B);return R!==""?R:null}function oe(g){g&&r.lxDevUtils.log(`Property '${g}' couldn't be rendered`,ze().getGlobals()?.environment,"warn")}function te(g,B){if(g?.lx?.wrapper==="placeholder")return"lxPlaceholder";const R=z(g);if(R)return R;const q=O(g);if(q)return q;if(g?.type==="integer")return"textInputInteger";if(g?.type==="boolean")return"toggle";if(A(g)){const se=v(g);if(se)return se}const _=U(g,B);return _||(oe(B),"lxPlaceholder")}function W(){const g={...x.modelValue};x.schema?.properties&&Object.entries(x.schema?.properties)?.forEach(([B,R])=>{R?.lx?.displayType==="dateTimeRange"&&(g[B]===void 0||g[B]===null)&&(g[B]={}),R?.default!==void 0&&(g[B]===void 0||g[B]===null||Array.isArray(g[B])&&g[B]?.length===0)&&(g[B]=R?.default),R?.properties&&R?.lx?.displayType==="stack"&&(g[B]=g[B]||{},Object.entries(R?.properties)?.forEach(([q,_])=>{_?.lx?.displayType==="dateTimeRange"&&(g[B][q]===void 0||g[B][q]===null)&&(g[B][q]={}),_?.default!==void 0&&(g[B][q]===void 0||g[B][q]===null||Array.isArray(g[B][q])&&g[B][q]?.length===0)&&(g[B][q]=_?.default),_?.properties&&_?.lx?.displayType==="stack"&&(g[B][q]=g[B][q]||{})}))}),f.value=g}const J=t.computed(()=>{const g={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{}};return Object.entries(f.value)?.forEach(([B,R])=>{typeof R=="string"?g.properties[B]={type:"string"}:typeof R=="boolean"?g.properties[B]={type:"boolean"}:typeof R=="number"?g.properties[B]={type:"number"}:Array.isArray(R)&&typeof R[0]=="object"?(g.properties[B]={type:"array",items:{type:"object",properties:{}}},Object.entries(R[0])?.forEach(([q,_])=>{q!=="_lx_appendableKey"&&(typeof _=="string"?g.properties[B].items.properties[q]={type:"string"}:typeof _=="boolean"&&(g.properties[B].items.properties[q]={type:"boolean"}))})):g.properties[B]={lx:{wrapper:"placeholder"}}}),g}),j=t.computed(()=>{const g=r.lxFormatUtils.objectClone(J.value);if(x.mode==="mixed")try{return x.schema?.hasOwnProperty("required")&&(g.required=x.schema?.required),Object.entries(J.value?.properties)?.forEach(([B])=>{x.schema?.properties?.hasOwnProperty(B)&&(g.properties[B]=x.schema?.properties[B])}),Object.entries(x.schema?.properties)?.forEach(([B,R])=>{g?.properties?.hasOwnProperty(B)||(g.properties[B]=R)}),g}catch(B){r.lxDevUtils.log(B,ze().getGlobals()?.environment,"warn")}return g}),c=t.computed(()=>{try{if(x.mode==="no-schema")return J.value;if(x.mode==="mixed")return j.value}catch(g){r.lxDevUtils.log(g,ze().getGlobals()?.environment,"warn")}return x.schema}),i=t.computed(()=>{if(x.mode==="no-schema")return J.value?.properties;if(c.value?.properties){const g=r.lxFormatUtils.objectClone(c.value?.properties),R=Object.entries(g).sort((_,se)=>{const he=_[1]?.lx?.order?_[1].lx.order:1e3,ge=se[1]?.lx?.order?se[1].lx.order:1e3;return he-ge});return Object.fromEntries(R)}return{}});function re(g,B,R=void 0,q=void 0){D("emit",g,B,R,q)}function le(g,B){return g.replace("{0}",B)}function P(g,B,R,q){D("rowActionClick",g,B,R,q)}function $(g){return g==="number"||g==="integer"}function L(g,B){return g[B]||(g[B]={}),g[B]}function N(g,B,R,q){L(g,B)[R]=q}function ce(g,B){g?.required?.forEach(R=>{N(B,R,"required",ee.withMessage(()=>S.value.required,Vt))})}function me(g){return ee.withParams({type:"exclusiveMinimum",value:g},B=>B>g)}function Se(g){return ee.withParams({type:"exclusiveMaximum",value:g},B=>B<g)}function Ce(g){return ee.withParams({type:"multipleOf",value:g},B=>B%g===0)}function ne(g){return ee.withParams({type:"pattern",value:g},B=>new RegExp(g).test(B))}function w(g,B,R){$(R?.type)&&(R?.minimum!==void 0&&N(g,B,"minValue",ee.withMessage(({$params:q})=>le(S.value.minimum,q.min),Ft(R.minimum))),R?.exclusiveMinimum!==void 0&&N(g,B,"exclusiveMinimum",ee.withMessage(()=>le(S.value.exclusiveMinimum,R.exclusiveMinimum),me(R.exclusiveMinimum))),R?.maximum!==void 0&&N(g,B,"maxValue",ee.withMessage(({$params:q})=>le(S.value.maximum,q.max),Mt(R.maximum))),R?.exclusiveMaximum!==void 0&&N(g,B,"exclusiveMaximum",ee.withMessage(()=>le(S.value.exclusiveMaximum,R.exclusiveMaximum),Se(R.exclusiveMaximum))),R?.multipleOf!==void 0&&N(g,B,"multipleOf",ee.withMessage(()=>le(S.value.multipleOf,R.multipleOf),Ce(R.multipleOf))))}function u(g,B,R){R?.type==="string"&&(R?.minLength!==void 0&&N(g,B,"minLength",ee.withMessage(({$params:q})=>le(S.value.minLength,q.min),Xe(R.minLength))),R?.maxLength!==void 0&&N(g,B,"maxLength",ee.withMessage(({$params:q})=>le(S.value.maxLength,q.max),Ze(R.maxLength))),R?.pattern&&N(g,B,"pattern",ee.withMessage(()=>le(S.value.pattern,R.pattern),ne(R.pattern))))}function d(g){return new Set(g)?.size===g?.length}function l(g,B,R){R?.type==="array"&&(R?.minItems!==void 0&&N(g,B,"minItems",ee.withMessage(({$params:q})=>le(S.value.minItems,q.min),Xe(R.minItems))),R?.maxItems!==void 0&&N(g,B,"maxItems",ee.withMessage(({$params:q})=>le(S.value.maxItems,q.max),Ze(R.maxItems))),R?.uniqueItems&&N(g,B,"uniqueItems",ee.withMessage(()=>S.value.uniqueItems,d)))}function a(g,B,R){w(g,B,R),u(g,B,R),l(g,B,R)}function o(g,B,R){g?.properties&&Object.entries(g.properties).forEach(([q,_])=>{if(_?.type==="object"&&_?.properties){B[q]=R(_);return}a(B,q,_)})}function y(g){return ee.withParams({type:"minProperties",value:g},B=>Object.keys(B).length>=g)}function m(g){return ee.withParams({type:"maxProperties",value:g},B=>Object.keys(B).length<=g)}function p(g,B){g?.minProperties!==void 0&&g?.type==="object"&&(B.minProperties=ee.withMessage(()=>le(S.value.minProperties,g.minProperties),y(g.minProperties))),g?.maxProperties!==void 0&&g?.type==="object"&&(B.maxProperties=ee.withMessage(()=>le(S.value.maxProperties,g.maxProperties),m(g.maxProperties)))}function V(g){const B={};return ce(g,B),o(g,B,V),p(g,B),B}const Q=t.computed(()=>x.schema?{modelClone:V(x.schema)}:{modelClone:{}}),I=t.ref();function de(){const g=[];if(x.mode!=="no-schema"){const B=r.lxFormatUtils.objectClone(f.value);I.value=Pt(Q,{modelClone:B},{$autoDirty:!0}),I.value.value.modelClone.$touch(),I.value.value?.$errors?.forEach(q=>{const _={};_.propertyPath=q.$propertyPath,_.validator=q.$validator,_.message=q.$message,_.value=q.$params,g.push(_)})}return g}function ke(){I.value.value.modelClone.$reset()}return t.watch(()=>x.schema,()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&W()}),t.onMounted(()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&W()}),h({validateModel:de,clearValidations:ke,componentSelect:te}),(g,B)=>E.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.value,(R,q)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:q},[te(R,q)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(r.LxPlaceholder),{key:0,class:"lx-placeholder"})):R?.lx?.displayType!=="section"?(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:1,label:c.value?.properties[q]?.title?c.value?.properties[q]?.title:q,rowSpan:c.value?.properties[q]?.lx?.rowSpan,columnSpan:c.value?.properties[q]?.lx?.columnSpan,required:k(q),inputId:e.builderOptions?.useRegistry?void 0:`${e.id}-${q}`,id:`${e.id}-${q}-wrapper`,actionDefinitions:c.value?.properties[q]?.lx?.rowActionDefinitions,builderOptions:{schemaPath:`${e.builderOptions?.schemaPath}.${q}`,componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${q}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry},onActionClick:(_,se,he)=>P(se,he,q,void 0)},t.createSlots({default:t.withCtx(()=>[te(R,q)==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${q}`,orientation:R?.lx?.orientation,kind:R?.lx?.kind,mode:R?.lx?.mode,horizontalAlignment:R?.lx?.horizontalAlignment,verticalAlignment:R?.lx?.verticalAlignment,horizontalConfig:R?.lx?.horizontalConfig,verticalConfig:R?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value?.properties[q]?.properties,(_,se)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:se},[te(_,se)==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${se}`,orientation:_?.lx?.orientation,kind:_?.lx?.kind,mode:_?.lx?.mode,horizontalAlignment:_?.lx?.horizontalAlignment,verticalAlignment:_?.lx?.verticalAlignment,horizontalConfig:_?.lx?.horizontalConfig,verticalConfig:_?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value?.properties[q]?.properties[se]?.properties,(he,ge)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ge},[f.value[q]?(t.openBlock(),t.createBlock(Ne,{key:0,id:`${e.id}-${ge}`,modelValue:f.value[q][se],"onUpdate:modelValue":be=>f.value[q][se]=be,readOnly:e.readOnly,row:he,name:ge,displaySchema:c.value?.properties[q]?.properties[se],vv:I.value,orderedObject:i.value?.[q]?.properties?.[se]?.properties,texts:S.value,parentName:`${q}.${se}`,validations:e.validations?.[q]?.[se],onRowActionClick:B[0]||(B[0]=(be,Le,Ke,Fe)=>P(be,Le,Ke,Fe)),onEmit:B[1]||(B[1]=(be,Le,Ke,Fe)=>re(be,Le,Ke,Fe)),onFilterBuilderFilter:B[2]||(B[2]=be=>D("filterBuilderFilter"))},null,8,["id","modelValue","onUpdate:modelValue","readOnly","row","name","displaySchema","vv","orderedObject","texts","parentName","validations"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontalAlignment","verticalAlignment","horizontalConfig","verticalConfig"])):(t.openBlock(),t.createBlock(Ne,{key:1,id:e.id,modelValue:f.value[q],"onUpdate:modelValue":he=>f.value[q]=he,readOnly:e.readOnly,row:_,name:se,displaySchema:c.value?.properties[q],vv:I.value,orderedObject:i.value?.[q]?.properties,parentName:q,texts:S.value,validations:e.validations?.[q],onRowActionClick:B[3]||(B[3]=(he,ge,be,Le)=>P(he,ge,be,Le)),onEmit:B[4]||(B[4]=(he,ge,be,Le)=>re(he,ge,be,Le)),onFilterBuilderFilter:B[5]||(B[5]=he=>D("filterBuilderFilter"))},null,8,["id","modelValue","onUpdate:modelValue","readOnly","row","name","displaySchema","vv","orderedObject","parentName","texts","validations"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontalAlignment","verticalAlignment","horizontalConfig","verticalConfig"])):(t.openBlock(),t.createBlock(Ne,{key:1,id:e.id,modelValue:f.value,"onUpdate:modelValue":B[6]||(B[6]=_=>f.value=_),readOnly:e.readOnly,row:R,name:q,displaySchema:c.value,schema:e.schema,vv:I.value,orderedObject:i.value,texts:S.value,validations:e.validations,builderOptions:{componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${q}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry,schemaPath:`${e.builderOptions?.schemaPath}`},onRowActionClick:B[7]||(B[7]=(_,se,he,ge)=>P(_,se,he,ge)),onEmit:B[8]||(B[8]=(_,se,he,ge)=>re(_,se,he,ge)),onFilterBuilderFilter:B[9]||(B[9]=_=>D("filterBuilderFilter"))},null,8,["id","modelValue","readOnly","row","name","displaySchema","schema","vv","orderedObject","texts","validations","builderOptions"]))]),_:2},[R?.description?{name:"info",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(R?.description),1)]),key:"0"}:void 0]),1032,["label","rowSpan","columnSpan","required","inputId","id","actionDefinitions","builderOptions","onActionClick"])):t.createCommentVNode("",!0)],64))),128)):t.createCommentVNode("",!0)}},vt={__name:"FilterBuilder",props:{modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},mode:{type:String,default:"default"},defaultValues:{type:Object,default:null},useDefaults:{type:Boolean,default:!0},label:{type:String,default:null},description:{type:String,default:null},usesFilters:{type:Boolean,default:void 0},filterButtonKind:{type:String,default:"tertiary"},columnCount:{type:Number,default:3},expanded:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},fastFilters:{type:Array,default:()=>[]},fastIdAttribute:{type:String,default:"id"},fastNameAttribute:{type:String,default:"name"},badge:{type:String,default:""},badgeIcon:{type:String,default:null},badgeType:{type:String,default:"default"},badgeTitle:{type:String,default:null,validator:(e,h)=>(h.badge||h.badgeIcon)&&!e?(r.lxDevUtils.logWarn('Warning: LxFilterBuilder "badgeTitle" is required when "badge" or "badgeIcon" is provided!',ze().getGlobals()?.environment),!1):!0},validations:{type:Object,default:null},closeOnFilter:{type:Boolean,default:!0},hasShortlistReset:{type:Boolean,default:!1},filteredModelValue:{type:Object,default:void 0},texts:{type:Object,default:()=>({})},name:{type:String,default:null},builderOptions:{type:Object,default:()=>({schemaPath:null,componentStack:null,useRegistry:!1,defaultSectionSchemaPath:null})},id:{type:String,default:null}},emits:["update:modelValue","filter","resetFilters","fastFilterClick","update:expanded","rowActionClick"],setup(e,{expose:h,emit:s}){const x=e,n=s,S={filters:"Filtri",search:"Atlasīt",clear:"Notīrīt",fastFiltersLabel:"Ātrie filtri",required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},D=t.computed(()=>De(x.texts,S)),f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(P){n("update:modelValue",P)}}),k=t.ref(),E=t.ref(!1),K=t.computed({get(){return x.expanded!==void 0?x.expanded:E.value},set(P){x.expanded!==void 0?n("update:expanded",P):E.value=P}}),M=t.ref();function G(){x.closeOnFilter&&(K.value=!1,Xt(M.value?.$el)),n("filter")}const H=t.ref({}),z=t.computed(()=>x.schema?.properties?Object.keys(x.schema?.properties).reduce(($,L)=>($[L]=x.defaultValues?.[L]||(x.useDefaults?H.value?.[L]:void 0),$),{}):{});function O(P,$){if(Array.isArray(P)&&Array.isArray($)){if(P?.length!==$?.length)return!1;for(let L=0;L<P?.length;L+=1)if(P[L]!==$[L])return!1;return!0}return!1}const A=t.computed(()=>x.filteredModelValue!==void 0?x.filteredModelValue:f.value);function v(P,$,L){return P==="dateTime"||P==="date-time"?`${$||""}${r.lxDateUtils.formatDateTime(L)}`:P==="date"?`${$||""}${r.lxDateUtils.formatDate(L)}`:`${$||""}${L}`}function U(P,$){if(P?.type==="string"){if(P?.enum)return`${P?.lx?.filterDescription||""}${A.value[$]}`;if(P?.lx?.items&&typeof P?.lx?.items!="function")return`${P?.lx?.filterDescription||""}${P?.lx?.items?.find(L=>L?.[P?.lx?.idAttribute||"id"]===A.value[$])?.[P?.lx?.nameAttribute||"name"]}`}else if(A.value?.[$]?.length>0&&!O(A.value?.[$],z.value?.[$])&&A.value?.[$]?.length>0)return`${P?.lx?.filterDescription||(P?.title?`${P?.title}: `:`${$}: `)}${A.value?.[$]?.length}`;return null}function oe(P,$){return P&&P!==A.value?.[$]?typeof A.value?.[$]=="string"?`${A.value?.[$]}`:typeof A.value?.[$]=="boolean"?`${$}: ${r.lxFormatUtils.formatValue(A.value[$],"bool")}`:Array.isArray(A.value?.[$])&&A.value?.[$]?.length>0?`${$}: ${A.value?.[$]?.length}`:`${A.value?.[$]}`:null}function te(P,$,L){return(P==="dateTime"||P==="date-time")&&(L?.startDate||L?.endDate)?`${$||""}${r.lxDateUtils.formatDateTime(L?.startDate)}-${r.lxDateUtils.formatDateTime(L?.endDate)}`:P==="date"&&(L?.startDate||L?.endDate)?`${$||""}${r.lxDateUtils.formatDate(L?.startDate)}-${r.lxDateUtils.formatDate(L?.endDate)}`:L?.startDate||L?.endDate?`${$||""}${L?.startDate}-${L?.endDate}`:""}function W(P,$){switch(k.value?.componentSelect(P,$)){case"textInputDefault":case"textInputInteger":case"textArea":return`${P?.lx?.filterDescription||""}${A.value[$]}`;case"dateTimePicker":return v(P?.format,P?.lx?.filterDescription,A.value[$]);case"dateTimeRange":return te(P?.format,P?.lx?.filterDescription,A.value[$]);case"toggle":return`${P?.lx?.filterDescription||(P?.title?`${P?.title}: `:`${$}: `)}${r.lxFormatUtils.formatValue(A.value[$],"bool")}`;case"valuePicker":case"autoComplete":return U(P,$)?U(P,$):null;case"select":case"arrayListModal":case"arrayTable":case"arrayTableModal":case"appendableList":case"smallAppendableList":return!O(A.value?.[$],z.value?.[$])&&A.value?.[$]?.length>0?`${P?.lx?.filterDescription||(P?.title?`${P?.title}: `:`${$}: `)}${A.value?.[$]?.length}`:null;case"objectList":case"objectButton":case"dataBlock":return P?.lx?.filterDescription?P.lx.filterDescription:P?.title?P.title:$;default:return null}}function J(P,$){return JSON.stringify(P)===JSON.stringify($)}function j(P){return P&&typeof P=="object"&&!Array.isArray(P)}const c=t.computed(()=>{if(x.defaultValues&&Object.keys(x.defaultValues)?.length>0||x.useDefaults){if(x.schema?.properties&&x.mode!=="no-schema")return Object.entries(x.schema?.properties).reduce(($,[L,N])=>{if(A.value?.[L]!==null&&A.value?.[L]!==void 0&&A.value?.[L]!==""&&(!j(A.value?.[L])&&A.value?.[L]!==z.value?.[L]||j(A.value?.[L])&&!J(A.value?.[L],z.value?.[L]))){const ce=W(N,L);ce&&$.push(ce)}return $},[]).join(", ");if(x.mode==="no-schema")return Object.entries(H.value).reduce((P,[$,L])=>(oe(L,$)&&P.push(oe(L,$)),P),[])?.join(", ")}return""});function i(){return k.value.validateModel()}function re(){k.value.clearValidations()}t.onMounted(()=>{H.value=r.lxFormatUtils.objectClone(x.modelValue||{})});const le=t.computed(()=>`${x.name}.${x.builderOptions?.defaultSectionSchemaPath}`);return h({validateModel:i,clearValidations:re}),(P,$)=>(t.openBlock(),t.createBlock(t.unref(r.LxFilters),{ref_key:"filterElement",ref:M,id:e.id,expanded:K.value,"onUpdate:expanded":$[2]||($[2]=L=>K.value=L),label:e.label,description:e.description||(K.value?"":c.value),usesFilters:e.usesFilters===void 0?!K.value&&c.value?.length>0:e.usesFilters,filterButtonKind:e.filterButtonKind,disabled:e.disabled,fastFilters:e.fastFilters,fastIdAttribute:e.fastIdAttribute,fastNameAttribute:e.fastNameAttribute,badge:e.badge,badgeIcon:e.badgeIcon,badgeType:e.badgeType,badgeTitle:e.badgeTitle,columnCount:e.columnCount||3,hasShortlistReset:e.hasShortlistReset,texts:D.value,builderOptions:e.builderOptions,onFilter:G,onResetFilters:$[3]||($[3]=()=>n("resetFilters")),onFastFilterClick:$[4]||($[4]=L=>n("fastFilterClick",L))},{default:t.withCtx(()=>[t.createVNode(qe,{ref_key:"formBuilder",ref:k,id:e.id,schema:e.schema,modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=L=>f.value=L),readOnly:e.readOnly,mode:e.mode,texts:D.value,validations:e.validations,builderOptions:{componentStack:e.builderOptions?.componentStack?.concat({id:`${e.id}-form`,name:"LxForm"},{id:`${e.id}-form-default`,name:"LxSection"}),useRegistry:e.builderOptions?.useRegistry,schemaPath:le.value},onRowActionClick:$[1]||($[1]=(L,N,ce,me)=>n("rowActionClick",L,N,ce,me)),onFilterBuilderFilter:G},null,8,["id","schema","modelValue","readOnly","mode","texts","validations","builderOptions"])]),_:1},8,["id","expanded","label","description","usesFilters","filterButtonKind","disabled","fastFilters","fastIdAttribute","fastNameAttribute","badge","badgeIcon","badgeType","badgeTitle","columnCount","hasShortlistReset","texts","builderOptions"]))}},Rt={__name:"ViewBuilder",props:{id:{type:String,default:()=>r.lxStringUtils.generateUUID()},modelValue:{type:Object,default:null},schema:{type:Object,default:null},readOnly:{type:Boolean,default:!1},validations:{type:Object,default:null},mode:{type:String,default:"default"},texts:{type:Object,default:()=>{}},builderOptions:{type:Object,default:()=>({useRegistry:!1})}},emits:["update:modelValue","rowActionClick","emit"],setup(e,{expose:h,emit:s}){const x=e,n={required:"Šis lauks ir obligāts",minimum:"Vērtībai jābūt lielākai vai vienādai ar {0}",exclusiveMinimum:"Vērtībai jābūt lielākai par {0}",maximum:"Vērtībai jābūt mazākai vai vienādai ar {0}",exclusiveMaximum:"Vērtībai jābūt mazākai par {0}",multipleOf:"Vērtībai jādalās ar skaitli {0}",minLength:"Vērtības garumam jābūt lielākam par {0}",maxLength:"Vērtības garumam jābūt mazākam par {0}",pattern:"Vērtība neatbilst regulārajai izteiksmei {0}",minItems:"Jāizvēlas vismaz {0} vērtības",maxItems:"Jāizvēlas ne vairāk kā {0} vērtības",uniqueItems:"Izvēlētās vērtības nav unikālas",minProperties:"Objektam jābūt vismaz {0} atribūtiem",maxProperties:"Objektam jābut ne vairāk kā {0} atribūtiem",addElement:"Pievienot elementu",deleteElement:"Dzēst elementu",saveElement:"Pievienot elementu sarakstam",addObject:"Pievienot objektu"},S=t.computed(()=>De(x.texts,n)),D=s,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(w){D("update:modelValue",w)}}),k=t.computed(()=>{try{r.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function E(){function w(d,l){Object.entries(l?.properties||{}).forEach(([a,o])=>{o?.lx?.displayType==="dateTimeRange"&&(d[a]===void 0||d[a]===null)&&(d[a]={}),o?.default!==void 0&&(d[a]===void 0||d[a]===null||Array.isArray(d[a])&&d[a]?.length===0)&&(d[a]=o.default),(o?.properties&&o?.lx?.displayType==="stack"||o?.lx?.displayType==="form"||o?.lx?.displayType==="section"||o?.items?.properties)&&(d[a]=d[a]||{},w(d[a],o))})}const u={...x.modelValue};w(u,x.schema),f.value=u}const K=t.computed(()=>{const w=Object.values(x.schema?.properties||{});return w.some(u=>u?.lx?.displayType==="form"&&u?.type==="object")?"form":w.some(u=>u?.lx?.displayType==="filters"&&u?.type==="object")?"list":"default"});function M(w,u,d,l){D("rowActionClick",w,u,d,l)}function G(w,u,d=void 0,l=void 0){D("emit",w,u,d,l)}function H(w,u){return w.replace("{0}",u)}function z(w){return w==="number"||w==="integer"}function O(w,u,d){if(d?.minimum!==void 0&&(w[u]=w[u]||{},w[u].minValue=ee.withMessage(({$params:l})=>H(S.value.minimum,l.min),Ft(d.minimum))),d?.exclusiveMinimum!==void 0){const l=a=>ee.withParams({type:"exclusiveMinimum",value:a},o=>o>a);w[u]=w[u]||{},w[u].exclusiveMinimum=ee.withMessage(()=>H(S.value.exclusiveMinimum,d.exclusiveMinimum),l(d.exclusiveMinimum))}if(d?.maximum!==void 0&&(w[u]=w[u]||{},w[u].maxValue=ee.withMessage(({$params:l})=>H(S.value.maximum,l.max),Mt(d.maximum))),d?.exclusiveMaximum!==void 0){const l=a=>ee.withParams({type:"exclusiveMaximum",value:a},o=>o<a);w[u]=w[u]||{},w[u].exclusiveMaximum=ee.withMessage(()=>H(S.value.exclusiveMaximum,d.exclusiveMaximum),l(d.exclusiveMaximum))}if(d?.multipleOf!==void 0){const l=a=>ee.withParams({type:"multipleOf",value:a},o=>o%a===0);w[u]=w[u]||{},w[u].multipleOf=ee.withMessage(()=>H(S.value.multipleOf,d.multipleOf),l(d.multipleOf))}}function A(w,u,d){if(d?.minLength!==void 0&&(w[u]=w[u]||{},w[u].minLength=ee.withMessage(({$params:l})=>H(S.value.minLength,l.min),Xe(d.minLength))),d?.maxLength!==void 0&&(w[u]=w[u]||{},w[u].maxLength=ee.withMessage(({$params:l})=>H(S.value.maxLength,l.max),Ze(d.maxLength))),d?.pattern){const l=a=>ee.withParams({type:"pattern",value:a},o=>new RegExp(a).test(o));w[u]=w[u]||{},w[u].pattern=ee.withMessage(()=>H(S.value.pattern,d.pattern),l(d.pattern))}}function v(w,u,d){if(d?.minItems!==void 0&&(w[u]=w[u]||{},w[u].minItems=ee.withMessage(({$params:l})=>H(S.value.minItems,l.min),Xe(d.minItems))),d?.maxItems!==void 0&&(w[u]=w[u]||{},w[u].maxItems=ee.withMessage(({$params:l})=>H(S.value.maxItems,l.max),Ze(d.maxItems))),d?.uniqueItems){const l=a=>new Set(a)?.size===a?.length;w[u]=w[u]||{},w[u].uniqueItems=ee.withMessage(()=>S.value.uniqueItems,l)}}function U(w,u,d){z(d?.type)&&O(w,u,d),d?.type==="string"&&A(w,u,d),d?.type==="array"&&v(w,u,d)}function oe(w,u){if(u?.minProperties!==void 0&&u?.type==="object"){const d=l=>ee.withParams({type:"minProperties",value:l},a=>Object.keys(a).length>=l);w.minProperties=ee.withMessage(()=>H(S.value.minProperties,u.minProperties),d(u.minProperties))}if(u?.maxProperties!==void 0&&u?.type==="object"){const d=l=>ee.withParams({type:"maxProperties",value:l},a=>Object.keys(a).length<=l);w.maxProperties=ee.withMessage(()=>H(S.value.maxProperties,u.maxProperties),d(u.maxProperties))}}const te=w=>{const u=w?.required,d={};return u?.forEach(l=>{d[l]=d[l]||{},d[l].required=ee.withMessage(()=>S.value.required,Vt)}),w?.properties&&Object.entries(w.properties).forEach(([l,a])=>{a?.type==="object"&&a?.properties?d[l]=te(a):U(d,l,a)}),oe(d,w),d},W=t.computed(()=>x.schema?{modelClone:te(x.schema)}:{modelClone:{}}),J=t.ref(),j=t.ref({});function c(){Object.values(j.value)?.forEach(w=>{w.validateModel()})}function i(){const w=[];c();const u=r.lxFormatUtils.objectClone(f.value);return J.value=Pt(W,{modelClone:u},{$autoDirty:!0}),J.value.value.modelClone.$touch(),J.value.value?.$errors?.forEach(l=>{const a={};a.propertyPath=l.$propertyPath,a.validator=l.$validator,a.message=l.$message,a.value=l.$params,w.push(a)}),w}function re(){J.value.value.modelClone.$reset(),Object.values(j.value)?.forEach(w=>{w.clearValidations()})}t.watch(()=>x.schema,(w,u)=>{JSON.stringify(w)!==JSON.stringify(u)&&x.mode!=="no-schema"&&E()}),t.onBeforeMount(async()=>{x.mode!=="no-schema"&&await E()});const le=t.computed(()=>{const w={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{form:{type:"object",lx:{displayType:"form"},properties:{}}}};return Object.entries(f.value)?.forEach(([u,d])=>{typeof d=="string"||typeof d=="boolean"||typeof d=="number"?w.properties.form.properties[u]={type:typeof d}:Array.isArray(d)&&typeof d[0]=="object"?(w.properties.form.properties[u]={type:"array",items:{type:"object",properties:{}}},Object.entries(d[0])?.forEach(([l,a])=>{l!=="_lx_appendableKey"&&(typeof a=="string"?w.properties.form.properties[u].items.properties[l]={type:"string"}:typeof a=="boolean"&&(w.properties.form.properties[u].items.properties[l]={type:"boolean"}))})):w.properties.form.properties[u]={lx:{wrapper:"placeholder"}}}),w}),P=t.computed(()=>{const w=structuredClone(x.schema);if(x.mode==="mixed")try{return Object.entries(le.value?.properties?.form?.properties)?.forEach(([u,d])=>{Object.prototype.hasOwnProperty.call(w?.properties,u)||(w.properties[u]=d)}),w}catch(u){r.lxDevUtils.log(u,ze().getGlobals()?.environment,"warn")}return w}),$=t.computed(()=>{try{if(x.mode==="no-schema")return le.value;if(x.mode==="mixed")return P.value}catch(w){r.lxDevUtils.log(w,ze().getGlobals()?.environment,"warn")}return x.schema});function L(w){const u=r.lxFormatUtils.objectClone(w);let d=!1;return Object.entries(u||{}).forEach(([a,o])=>{!d&&o?.lx?.displayType==="section"&&o?.type==="object"&&(delete u[a],d=!0)}),u}function N(w){const u=r.lxFormatUtils.objectClone(w),d=Object.entries(u||{});let l=!1;return d.forEach(([a,o])=>{!l&&o?.lx?.displayType==="section"&&o?.type==="object"?l=!0:delete u[a]}),u}function ce(w){const d=Object.entries(w||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return d?d[1]:null}function me(w){const d=Object.entries(w||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return d?d[0]:null}function Se(w,u){const d=me(u?.properties);return d?f.value?.[w]?.[d]||{}:f.value?.[w]||{}}function Ce(w,u,d){const l=me(u?.properties),a=r.lxFormatUtils.objectClone(f.value||{});if(!l){a[w]=d,f.value=a;return}a[w]=a[w]||{},a[w][l]=d,f.value=a}function ne(w){const u=[];let d=!1;return Object.entries(w||{}).forEach(([l,a])=>{if(a?.lx?.displayType==="section"&&a?.type==="object"){const o={};o.id=d?l:"default",o.name=l,d||(o.isCurrentStep=!0,o.state="current"),u.push(o),d=!0}}),u}return h({validateModel:i,clearValidations:re}),(w,u)=>k.value?(t.openBlock(),t.createBlock(t.unref(r.LxViewLayout),{key:0,kind:K.value,id:e.id,builderOptions:{schemaPath:null,componentStack:[],useRegistry:e.builderOptions?.useRegistry}},t.createSlots({filters:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($.value?.properties,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[d?.lx?.displayType==="filters"&&d?.type==="object"?(t.openBlock(),t.createBlock(vt,{key:0,ref_for:!0,ref:a=>j.value[`${e.id}-${l}`]=a,modelValue:Se(l,d),schema:d?.properties?.[me(d?.properties)],name:l,id:`${e.id}-${l}`,readOnly:e.readOnly,defaultValues:d?.lx?.defaultValues,useDefaults:d?.lx?.useDefaults,label:d?.title,description:d?.description,usesFilters:d?.lx?.usesFilters,filterButtonKind:d?.lx?.filterButtonKind,expanded:d?.lx?.expanded,disabled:d?.lx?.disabled,fastFilters:d?.lx?.fastFilters,fastIdAttribute:d?.lx?.fastIdAttribute,fastNameAttribute:d?.lx?.fastNameAttribute,badge:d?.lx?.badge,badgeType:d?.lx?.badgeType,texts:d?.lx?.texts,columnCount:ce(d?.properties)?.lx?.columnCount||d?.lx?.columnCount,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxFilters"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:me(d?.properties)},"onUpdate:modelValue":a=>Ce(l,d,a),onFilter:()=>G("filter",l),onResetFilter:()=>G("resetFilter",l),onFastFilterClick:a=>G("fastFilterClick",l,a),"onUpdate:expanded":a=>G("update:expanded",l,a),onRowActionClick:u[0]||(u[0]=(a,o,y,m)=>M(a,o,y,m))},null,8,["modelValue","schema","name","id","readOnly","defaultValues","useDefaults","label","description","usesFilters","filterButtonKind","expanded","disabled","fastFilters","fastIdAttribute","fastNameAttribute","badge","badgeType","texts","columnCount","builderOptions","onUpdate:modelValue","onFilter","onResetFilter","onFastFilterClick","onUpdate:expanded"])):t.createCommentVNode("",!0)],64))),128))]),_:2},[e.mode!=="no-schema"?{name:"default",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($.value?.properties,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[d?.lx?.displayType==="form"&&d?.type==="object"?(t.openBlock(),t.createBlock(t.unref(r.LxForm),{key:0,id:`${e.id}-${l}`,showHeader:d?.lx?.showHeader,stickyHeader:d?.lx?.stickyHeader,showFooter:d?.lx?.showFooter,stickyFooter:d?.lx?.stickyFooter,showPreHeaderInfo:d?.lx?.showPreHeaderInfo,showPostHeaderInfo:d?.lx?.showPostHeaderInfo,index:d?.lx?.index||ne(d?.properties),indexType:d?.lx?.indexType,actionDefinitions:d?.lx?.actionDefinitions,kind:d?.lx?.kind,hasSkipLink:d?.lx?.hasSkipLink,texts:d?.lx?.texts,columnCount:ce(d?.properties)?.lx?.columnCount,requiredMode:ce(d?.properties)?.lx?.requiredMode,orientation:ce(d?.properties)?.lx?.orientation,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:me(d?.properties)},onActionClick:a=>G("actionClick",l,a)},t.createSlots({header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d?.title),1)]),sections:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L(e.schema?.properties?.[l]?.properties),(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="section"&&a?.type==="object"?(t.openBlock(),t.createBlock(t.unref(r.LxSection),{key:0,id:`${o}`,label:a?.title,description:a?.description,columnCount:a?.lx?.columnCount,requiredMode:a?.lx?.requiredMode,icon:a?.lx?.icon,iconSet:a?.lx?.iconSet,customClass:a?.lx?.customClass,badge:a?.lx?.badge,actionDefinitions:a?.lx?.actionDefinitions,orientation:a?.lx?.orientation,texts:a?.lx?.texts,builderOptions:{schemaPath:`${l}.${o}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry},onActionClick:y=>G("actionClick",`${l}.${o}`,y)},{default:t.withCtx(()=>[f.value?.[l]?(t.openBlock(),t.createBlock(qe,{key:0,ref_for:!0,ref:y=>j.value[`${e.id}-${l}-${o}`]=y,modelValue:f.value[l][o],"onUpdate:modelValue":y=>f.value[l][o]=y,schema:a,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[o],mode:"view-builder",builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"},{id:`${e.id}-${l}-${o}`,name:"LxSection"}],useRegistry:e.builderOptions?.useRegistry,schemaPath:`${l}.${o}`},onRowActionClick:(y,m,p,V)=>M(y,m,`${l}.${o}.${p}`,V),onEmit:(y,m,p,V)=>G(y,`${l}.${o}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","readOnly","texts","validations","builderOptions","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)]),_:2},1032,["id","label","description","columnCount","requiredMode","icon","iconSet","customClass","badge","actionDefinitions","orientation","texts","builderOptions","onActionClick"])):t.createCommentVNode("",!0)],64))),128))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N(e.schema?.properties?.[l]?.properties),(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[f.value?.[l]?(t.openBlock(),t.createBlock(qe,{key:0,ref_for:!0,ref:y=>j.value[`${e.id}-${l}-${o}`]=y,modelValue:f.value[l][o],"onUpdate:modelValue":y=>f.value[l][o]=y,schema:a,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[o],mode:"view-builder",builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"},{id:`${e.id}-${l}-default`,name:"LxSection"}],useRegistry:e.builderOptions?.useRegistry,schemaPath:`${l}.${o}`},onRowActionClick:(y,m,p,V)=>M(y,m,`${l}.${o}.${p}`,V),onEmit:(y,m,p,V)=>G(y,`${l}.${o}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","readOnly","texts","validations","builderOptions","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},[d?.lx?.preHeader?{name:"preHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d?.lx?.preHeader?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${o}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${o}-${m}`,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:a,itemName:o},null,8,["itemValue","itemName"]))],64))),128))]),key:"0"}:void 0,d?.lx?.preHeaderInfo?{name:"preHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d?.lx?.preHeaderInfo?.properties,(a,o)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{label:a?.title,hideLabel:a?.lx?.hideLabel||!a?.title,key:o},{default:t.withCtx(()=>[t.createVNode(Z,{itemValue:a,itemName:o},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"1"}:void 0,d?.lx?.postHeaderInfo?{name:"postHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d?.lx?.postHeaderInfo?.properties,(a,o)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{label:a?.title,hideLabel:a?.lx?.hideLabel||!a?.title,key:o},{default:t.withCtx(()=>[t.createVNode(Z,{itemValue:a,itemName:o},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"2"}:void 0,d?.lx?.postHeader?{name:"postHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d?.lx?.postHeader?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${o}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${o}-${m}`,orientation:y?.lx?.orientation,kind:y?.lx?.kind,mode:y?.lx?.mode,"horizontal-alignment":y?.lx?.horizontalAlignment,"vertical-alignment":y?.lx?.verticalAlignment,"horizontal-config":y?.lx?.horizontalConfig,"vertical-config":y?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y?.properties,(p,V)=>(t.openBlock(),t.createBlock(Z,{key:V,itemValue:p,itemName:V},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:y,itemName:m},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(Z,{key:1,itemValue:a,itemName:o},null,8,["itemValue","itemName"]))],64))),128))]),key:"3"}:void 0]),1032,["id","showHeader","stickyHeader","showFooter","stickyFooter","showPreHeaderInfo","showPostHeaderInfo","index","indexType","actionDefinitions","kind","hasSkipLink","texts","columnCount","requiredMode","orientation","builderOptions","onActionClick"])):d?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:1,id:`${e.id}-${l}`,orientation:d?.lx?.orientation,kind:d?.lx?.kind,mode:d?.lx?.mode,"horizontal-alignment":d?.lx?.horizontalAlignment,"vertical-alignment":d?.lx?.verticalAlignment,"horizontal-config":d?.lx?.horizontalConfig,"vertical-config":d?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.schema?.properties?.[l]?.properties,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:0,id:`${e.id}-${l}-${o}`,orientation:a?.lx?.orientation,kind:a?.lx?.kind,mode:a?.lx?.mode,"horizontal-alignment":a?.lx?.horizontalAlignment,"vertical-alignment":a?.lx?.verticalAlignment,"horizontal-config":a?.lx?.horizontalConfig,"vertical-config":a?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.schema?.properties?.[l]?.properties?.[o]?.properties,(y,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[f.value?.[l]?(t.openBlock(),t.createBlock(Ne,{key:0,modelValue:f.value[l][o],"onUpdate:modelValue":p=>f.value[l][o]=p,schema:e.schema?.properties?.[l]?.properties?.[o],displaySchema:$.value?.properties?.[l]?.properties?.[o],row:y,name:m,readOnly:e.readOnly,parentName:`${l}.${o}`,vv:J.value,texts:S.value,validations:e.validations?.[l]?.[o],onRowActionClick:(p,V,Q,I)=>M(p,V,`${l}.${o}.${Q}`,I),onEmit:(p,V,Q,I)=>G(p,`${l}.${o}.${V}`,Q,I)},null,8,["modelValue","onUpdate:modelValue","schema","displaySchema","row","name","readOnly","parentName","vv","texts","validations","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):a?.lx?.displayType!=="stack"&&f.value?(t.openBlock(),t.createBlock(Ne,{key:1,modelValue:f.value[l],"onUpdate:modelValue":y=>f.value[l]=y,schema:e.schema?.properties?.[l],displaySchema:$.value?.properties?.[l],row:a,name:o,readOnly:e.readOnly,parentName:`${l}`,vv:J.value,texts:S.value,validations:e.validations?.[l],onRowActionClick:(y,m,p,V)=>M(y,m,`${l}.${p}`,V),onEmit:(y,m,p,V)=>G(y,`${l}.${m}`,p,V)},null,8,["modelValue","onUpdate:modelValue","schema","displaySchema","row","name","readOnly","parentName","vv","texts","validations","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):d?.lx?.displayType!=="filters"?(t.openBlock(),t.createBlock(Ne,{key:2,modelValue:f.value,"onUpdate:modelValue":u[1]||(u[1]=a=>f.value=a),schema:e.schema,displaySchema:$.value,row:d,name:l,readOnly:e.readOnly,texts:S.value,vv:J.value,validations:e.validations,builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"}],useRegistry:e.builderOptions?.useRegistry},onRowActionClick:u[2]||(u[2]=(a,o,y,m)=>M(a,o,y,m)),onEmit:u[3]||(u[3]=(a,o,y,m)=>G(a,o,y,m))},null,8,["modelValue","schema","displaySchema","row","name","readOnly","texts","vv","validations","builderOptions"])):t.createCommentVNode("",!0)],64))),128))]),key:"0"}:{name:"default",fn:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),null,{default:t.withCtx(()=>[t.createVNode(qe,{modelValue:f.value,"onUpdate:modelValue":u[4]||(u[4]=d=>f.value=d),schema:$.value?.properties?.form,readOnly:e.readOnly,texts:S.value,validations:e.validations,mode:"view-builder",onRowActionClick:u[5]||(u[5]=(d,l,a,o)=>M(d,l,a,o)),onEmit:u[6]||(u[6]=(d,l,a,o)=>G(d,l,a,o))},null,8,["modelValue","schema","readOnly","texts","validations"])]),_:1})]),key:"1"}]),1032,["kind","id","builderOptions"])):t.createCommentVNode("",!0)}};function Jl(e,h){return t.getCurrentScope()?(t.onScopeDispose(e,h),!0):!1}const it=new WeakMap,Wl=(...e)=>{var h;const s=e[0],x=(h=t.getCurrentInstance())===null||h===void 0?void 0:h.proxy,n=x??t.getCurrentScope();if(n==null&&!t.hasInjectionContext())throw new Error("injectLocal must be called in setup");return n&&it.has(n)&&s in it.get(n)?it.get(n)[s]:t.inject(...e)},Ql=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yl=Object.prototype.toString,Zl=e=>Yl.call(e)==="[object Object]",qt=()=>{};function Xl(e,h){function s(...x){return new Promise((n,S)=>{Promise.resolve(e(()=>h.apply(this,x),{fn:h,thisArg:this,args:x})).then(n).catch(S)})}return s}function Ul(e,h={}){let s,x,n=qt;const S=k=>{clearTimeout(k),n(),n=qt};let D;return k=>{const E=t.toValue(e),K=t.toValue(h.maxWait);return s&&S(s),E<=0||K!==void 0&&K<=0?(x&&(S(x),x=void 0),Promise.resolve(k())):new Promise((M,G)=>{n=h.rejectOnCancel?G:M,D=k,K&&!x&&(x=setTimeout(()=>{s&&S(s),x=void 0,M(D())},K)),s=setTimeout(()=>{x&&S(x),x=void 0,M(k())},E)})}}function Kt(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ot(e){return Array.isArray(e)?e:[e]}function Il(e){return t.getCurrentInstance()}function Ht(e,h=200,s={}){return Xl(Ul(h,s),e)}function _l(e,h=!0,s){Il()?t.onMounted(e,s):h?e():t.nextTick(e)}function en(e,h,s){return t.watch(e,h,{...s,immediate:!0})}const rt=Ql?window:void 0;function tn(e){var h;const s=t.toValue(e);return(h=s?.$el)!==null&&h!==void 0?h:s}function ct(...e){const h=[],s=()=>{h.forEach(f=>f()),h.length=0},x=(f,k,E,K)=>(f.addEventListener(k,E,K),()=>f.removeEventListener(k,E,K)),n=t.computed(()=>{const f=ot(t.toValue(e[0])).filter(k=>k!=null);return f.every(k=>typeof k!="string")?f:void 0}),S=en(()=>{var f,k;return[(f=(k=n.value)===null||k===void 0?void 0:k.map(E=>tn(E)))!==null&&f!==void 0?f:[rt].filter(E=>E!=null),ot(t.toValue(n.value?e[1]:e[0])),ot(t.unref(n.value?e[2]:e[1])),t.toValue(n.value?e[3]:e[2])]},([f,k,E,K])=>{if(s(),!f?.length||!k?.length||!E?.length)return;const M=Zl(K)?{...K}:K;h.push(...f.flatMap(G=>k.flatMap(H=>E.map(z=>x(G,H,z,M)))))},{flush:"post"}),D=()=>{S(),s()};return Jl(s),D}function ln(){const e=t.shallowRef(!1),h=t.getCurrentInstance();return h&&t.onMounted(()=>{e.value=!0},h),e}function nn(e){const h=ln();return t.computed(()=>(h.value,!!e()))}const an=Symbol("vueuse-ssr-width");function on(){const e=t.hasInjectionContext()?Wl(an,null):null;return typeof e=="number"?e:void 0}function rn(e,h={}){const{window:s=rt,ssrWidth:x=on()}=h,n=nn(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function"),S=t.shallowRef(typeof x=="number"),D=t.shallowRef(),f=t.shallowRef(!1),k=E=>{f.value=E.matches};return t.watchEffect(()=>{if(S.value){S.value=!n.value,f.value=t.toValue(e).split(",").some(E=>{const K=E.includes("not all"),M=E.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),G=E.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let H=!!(M||G);return M&&H&&(H=x>=Kt(M[1])),G&&H&&(H=x<=Kt(G[1])),K?!H:H});return}n.value&&(D.value=s.matchMedia(t.toValue(e)),f.value=D.value.matches)}),ct(D,"change",k,{passive:!0}),t.computed(()=>f.value)}function cn(e={}){const{window:h=rt,initialWidth:s=Number.POSITIVE_INFINITY,initialHeight:x=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:S=!0,type:D="inner"}=e,f=t.shallowRef(s),k=t.shallowRef(x),E=()=>{if(h)if(D==="outer")f.value=h.outerWidth,k.value=h.outerHeight;else if(D==="visual"&&h.visualViewport){const{width:M,height:G,scale:H}=h.visualViewport;f.value=Math.round(M*H),k.value=Math.round(G*H)}else S?(f.value=h.innerWidth,k.value=h.innerHeight):(f.value=h.document.documentElement.clientWidth,k.value=h.document.documentElement.clientHeight)};E(),_l(E);const K={passive:!0};return ct("resize",E,K),h&&D==="visual"&&h.visualViewport&&ct(h.visualViewport,"resize",E,K),n&&t.watch(rn("(orientation: portrait)"),()=>E()),{width:f,height:k}}function dt(e){switch(e){case"LxTextInput":return{type:"string",title:"New Text Input",lx:{}};case"LxTextArea":return{type:"string",title:"New Text Area",lx:{kind:"multiline"}};case"LxDateTimePicker":return{type:"string",title:"New Date time picker",format:"date"};case"LxDateTimeRange":return{type:"object",title:"New LxDateTimeRange",lx:{displayType:"dateTimeRange"}};case"LxAutoComplete":return{type:"string",title:"New LxAutoComplete",lx:{displayType:"autoComplete"}};case"LxValuePicker":return{type:"string",title:"New LxValuePicker",lx:{variant:"default",items:[{id:"option1",name:"Option 1"},{id:"option2",name:"Option 2"},{id:"option3",name:"Option 3"}]}};case"LxCheckbox":return{type:"boolean",title:"New LxCheckbox",lx:{displayType:"checkbox"}};case"LxContentSwitcher":return{type:"string",title:"New LxContentSwitcher",lx:{displayType:"contentSwitcher",items:[{id:"option1",name:"Option 1"},{id:"option2",name:"Option 2"},{id:"option3",name:"Option 3"}]}};case"LxNumberSlider":return{type:"integer",title:"New LxNumberSlider",lx:{displayType:"numberSlider"}};case"LxToggle":return{type:"boolean",title:"New Toggle",lx:{}};case"LxQrScanner":return{type:"object",title:"New LxQrScanner",lx:{displayType:"qrScanner"}};case"LxFileUploader":return{type:"array",title:"New LxFileUploader",lx:{displayType:"file"}};case"LxDayInput":return{type:"integer",title:"New LxDayInput",lx:{displayType:"dayInput"}};case"LxVisualPicker":return{type:"string",title:"New LxVisualPicker",lx:{displayType:"visualPicker"}};case"LxDrawPad":return{type:"string",title:"New LxDrawPad",lx:{displayType:"drawPad"}};case"LxCamera":return{type:"string",title:"New LxCamera",lx:{displayType:"camera"}};case"LxMarkdownTextArea":return{type:"string",title:"New LxMarkdownTextArea",lx:{displayType:"markdown"}};case"LxFilters":return{type:"object",title:"New LxFilters",lx:{displayType:"filters"},properties:{}};case"LxSection":return{type:"object",title:"New LxSection",lx:{displayType:"section"},properties:{}};case"LxForm":return{type:"object",title:"New LxForm",lx:{displayType:"form",indexType:"none"},properties:{}}}return null}function dn(){return[{id:"LxTextInput",name:"LxTextInput",usageGroup:"inputs"},{id:"LxTextArea",name:"LxTextArea",usageGroup:"inputs"},{id:"LxDateTimePicker",name:"LxDateTimePicker",usageGroup:"inputs"},{id:"LxDateTimeRange",name:"LxDateTimeRange",usageGroup:"inputs"},{id:"LxAutoComplete",name:"LxAutoComplete",usageGroup:"inputs"},{id:"LxValuePicker",name:"LxValuePicker",usageGroup:"inputs"},{id:"LxCheckbox",name:"LxCheckbox",usageGroup:"inputs"},{id:"LxContentSwitcher",name:"LxContentSwitcher",usageGroup:"inputs"},{id:"LxNumberSlider",name:"LxNumberSlider",usageGroup:"inputs"},{id:"LxToggle",name:"LxToggle",usageGroup:"inputs"},{id:"LxQrScanner",name:"LxQrScanner",usageGroup:"inputs"},{id:"LxFileUploader",name:"LxFileUploader",usageGroup:"inputs"},{id:"LxDayInput",name:"LxDayInput",usageGroup:"inputs"},{id:"LxVisualPicker",name:"LxVisualPicker",usageGroup:"inputs"},{id:"LxDrawPad",name:"LxDrawPad",usageGroup:"inputs"},{id:"LxCamera",name:"LxCamera",usageGroup:"inputs"},{id:"LxMarkdownTextArea",name:"LxMarkdownTextArea",usageGroup:"inputs"}]}const sn={class:"custom-auto-complete-item-with-icon lx-item-display"},mn={class:"custom-auto-complete-item-with-icon lx-item-display"},un={class:"custom-auto-complete-item-with-icon lx-item-display"},xn={class:"custom-auto-complete-item-with-icon lx-item-display"},st={__name:"PropRendererItem",props:{item:{type:Object,required:!0},modelValue:{type:Object,required:!0},name:{type:String,required:!0},componentName:{type:String,default:null},texts:{type:Object,default:()=>({save:"Saglabāt",close:"Aizvērt",edit:"Labot"})}},emits:["update:modelValue"],setup(e,{emit:h}){const s=e,x=h,n=t.computed({get(){return s.modelValue},set(P){x("update:modelValue",P)}}),S=t.computed(()=>r.lxIconUtils.getAvailableIcons("cds")?.map(P=>({id:P,name:P})));function D(P="cds"){return r.lxIconUtils.getAvailableIcons(P||"cds")?.map($=>({id:$,name:$}))}function f(P){return P.type.name==="Number"||Array.isArray(P.type)&&P.type.some($=>$.name==="Number")}function k(P){return(P.type.name==="String"||Array.isArray(P.type)&&P.type.some($=>$.name==="String"))&&s.name!=="icon"}function E(P){return P.type.name==="Boolean"||Array.isArray(P.type)&&P.type.some($=>$.name==="Boolean")}function K(P){return P.type.name==="Date"}function M(P){return(P||[]).filter($=>$!=null).map($=>({id:$,name:$}))}const G=t.ref(),H=t.ref(null),z=t.ref();function O(){G.value.open(),H.value=r.lxFormatUtils.objectClone(s.modelValue[s.name])}function A(P){if(P==="save"){const $=z.value.clearModel(H.value);n.value[s.name]=$,G.value.close()}}const v=t.ref(),U=t.ref(null),oe=t.ref();function te(){U.value=r.lxFormatUtils.objectClone(s.modelValue.index),v.value.open()}function W(P){if(P==="save"){const $=oe.value.clearModel(U.value);n.value.index=$,v.value.close()}}const J=t.ref(),j=t.ref(null),c=t.ref();function i(){J.value.open(),j.value=r.lxFormatUtils.objectClone(s.modelValue[s.name])}function re(P){if(P==="save"){const $=c.value.clearModel(j.value);n.value[s.name]=$,J.value.close()}}function le(P){return s.name==="columnSpan"||s.name==="rowSpan"||s.name==="columnCount"||s.name==="cadenceOfMinutes"||s.name==="cadenceOfSeconds"?"tags":P.length>5?"dropdown":"default"}return(P,$)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(k(e.item)||K(e.item))&&(e.name==="minDate"||e.name==="maxDate")?(t.openBlock(),t.createBlock(t.unref(r.LxDateTimePicker),{key:0,modelValue:n.value[e.name],"onUpdate:modelValue":$[0]||($[0]=L=>n.value[e.name]=L),kind:"dateTime"},null,8,["modelValue"])):k(e.item)&&!e.item.options?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:1,modelValue:n.value[e.name],"onUpdate:modelValue":$[1]||($[1]=L=>n.value[e.name]=L)},null,8,["modelValue"])):!e.item.options&&f(e.item)?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:2,modelValue:n.value[e.name],"onUpdate:modelValue":$[2]||($[2]=L=>n.value[e.name]=L),mask:"integer",convertToString:!1},null,8,["modelValue"])):E(e.item)?(t.openBlock(),t.createBlock(t.unref(r.LxToggle),{key:3,modelValue:n.value[e.name],"onUpdate:modelValue":$[3]||($[3]=L=>n.value[e.name]=L)},null,8,["modelValue"])):e.item.options&&(k(e.item)||f(e.item))?(t.openBlock(),t.createBlock(t.unref(r.LxValuePicker),{key:4,modelValue:n.value[e.name],"onUpdate:modelValue":$[4]||($[4]=L=>n.value[e.name]=L),items:M(e.item.options),variant:le(e.item.options),nullable:e.item.options.includes(null),convertToString:!k(e.item)},null,8,["modelValue","items","variant","nullable","convertToString"])):t.createCommentVNode("",!0),s.name==="icon"?(t.openBlock(),t.createBlock(t.unref(r.LxAutoComplete),{key:5,modelValue:n.value[e.name],"onUpdate:modelValue":$[5]||($[5]=L=>n.value[e.name]=L),items:S.value},{customItem:t.withCtx(L=>[t.createElementVNode("div",sn,[t.createVNode(t.unref(r.LxIcon),{value:L.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(L.name),1)])]),_:1},8,["modelValue","items"])):t.createCommentVNode("",!0),s.name==="index"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:6},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,kind:"secondary",icon:"edit",onClick:te},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"indexModal",ref:v,label:"index",size:"m",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:W},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"indexList",ref:oe,modelValue:U.value,"onUpdate:modelValue":$[6]||($[6]=L=>U.value=L),columnCount:2,requiredMode:"none"},{customItem:t.withCtx(({item:L})=>[t.createVNode(t.unref(r.LxRow),{label:"id"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":N=>L.id=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":N=>L.name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),s.name==="actionDefinitions"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:7},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:O},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"actionDefinitionsModal",ref:G,label:"actionDefinitions",size:"l",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:A},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"actionDefList",ref:z,modelValue:H.value,"onUpdate:modelValue":$[7]||($[7]=L=>H.value=L),columnCount:8,requiredMode:"required-asterisk"},{customItem:t.withCtx(({item:L})=>[t.createVNode(t.unref(r.LxRow),{label:"id",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":N=>L.id=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":N=>L.name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"title",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.title,"onUpdate:modelValue":N=>L.title=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"kind",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:L.kind,"onUpdate:modelValue":N=>L.kind=N,variant:"dropdown",items:[{id:"primary",name:"primary"},{id:"secondary",name:"secondary"},{id:"tertiary",name:"tertiary"},{id:"additional",name:"additional"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"icon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:L.icon,"onUpdate:modelValue":N=>L.icon=N,items:D(L?.iconSet)},{customItem:t.withCtx(N=>[t.createElementVNode("div",mn,[t.createVNode(t.unref(r.LxIcon),{value:N.name,iconSet:L?.iconSet||"cds"},null,8,["value","iconSet"]),t.createElementVNode("p",null,t.toDisplayString(N.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"iconSet",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:L.iconSet,"onUpdate:modelValue":N=>L.iconSet=N,variant:"dropdown",items:[{id:"cds",name:"cds"},{id:"material",name:"material"},{id:"brand",name:"brand"},{id:"phosphor",name:"phosphor"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"disabled"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:L.disabled,"onUpdate:modelValue":N=>L.disabled=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"loading"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:L.loading,"onUpdate:modelValue":N=>L.loading=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"busy"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:L.busy,"onUpdate:modelValue":N=>L.busy=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"destructive"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToggle),{modelValue:L.destructive,"onUpdate:modelValue":N=>L.destructive=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badge",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.badge,"onUpdate:modelValue":N=>L.badge=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeType",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:L.badgeType,"onUpdate:modelValue":N=>L.badgeType=N,variant:"dropdown",items:[{id:"default",name:"default"},{id:"info",name:"info"},{id:"success",name:"success"},{id:"warning",name:"warning"},{id:"error",name:"error"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeIcon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:L.badgeIcon,"onUpdate:modelValue":N=>L.badgeIcon=N,items:S.value},{customItem:t.withCtx(N=>[t.createElementVNode("div",un,[t.createVNode(t.unref(r.LxIcon),{value:N.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(N.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"badgeTitle",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.badgeTitle,"onUpdate:modelValue":N=>L.badgeTitle=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),s.name==="items"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:8},[t.createVNode(t.unref(r.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:i},null,8,["label"]),t.createVNode(t.unref(r.LxModal),{ref_key:"itemsModal",ref:J,label:"items",size:"l",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:re},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAppendableList),{ref_key:"itemsList",ref:c,modelValue:j.value,"onUpdate:modelValue":$[8]||($[8]=L=>j.value=L),columnCount:4,requiredMode:"required-asterisk"},{customItem:t.withCtx(({item:L})=>[e.componentName==="LxContentSwitcher"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(t.unref(r.LxRow),{label:"id",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":N=>L.id=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":N=>L.name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxAutoComplete),{modelValue:L.icon,"onUpdate:modelValue":N=>L.icon=N,items:D(L?.iconSet)},{customItem:t.withCtx(N=>[t.createElementVNode("div",xn,[t.createVNode(t.unref(r.LxIcon),{value:N.name,iconSet:L?.iconSet||"cds"},null,8,["value","iconSet"]),t.createElementVNode("p",null,t.toDisplayString(N.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"iconSet"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxValuePicker),{modelValue:L.iconSet,"onUpdate:modelValue":N=>L.iconSet=N,variant:"dropdown",items:[{id:"cds",name:"cds"},{id:"material",name:"material"},{id:"brand",name:"brand"},{id:"phosphor",name:"phosphor"}]},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(t.unref(r.LxRow),{label:"id",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":N=>L.id=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"name",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":N=>L.name=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(r.LxRow),{label:"description",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextInput),{modelValue:L.description,"onUpdate:modelValue":N=>L.description=N},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64))]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0)],64))}},fn={__name:"ConstructorPropRenderer",props:{componentName:{type:String,default:null},componentPropsDefinitions:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},searchString:{type:String,default:null},componentModel:{type:Object,default:()=>({})},navigation:{type:Array,default:()=>[]},texts:{type:Object,default:()=>({additionalLabel:"Additional",modeLabel:"Mode",resetKey:"Atiestatīt",save:"Saglabāt",close:"Aizvērt",edit:"Labot",notFoundSearch:"Nav atrasts:",notFoundProps:"Nav atrasts"})},schemaKey:{type:String,default:""},schemaKeyError:{type:String,default:null}},emits:["update:modelValue","update:componentModel","update:schemaKey"],setup(e,{emit:h}){const s=e,x=h,n=t.computed({get(){return s.modelValue},set(W){x("update:modelValue",W)}}),S=t.computed({get(){return s.componentModel},set(W){x("update:componentModel",W)}});function D(W){if(W==="LxForm"&&!s.navigation?.some(J=>J?.name==="LxFilters")){const J={header:{name:"header",type:"String",group:"main",extra:!0},preHeader:{name:"preHeader",type:"String",group:"main",extra:!0},preHeaderInfo:{name:"preHeaderInfo",type:"String",group:"main",extra:!0},postHeader:{name:"postHeader",type:"String",group:"main",extra:!0},postHeaderInfo:{name:"postHeaderInfo",type:"string",group:"main",extra:!0}},j=s.searchString?Object.entries(J).filter(([c])=>c.toLowerCase().includes(s.searchString.toLowerCase())):Object.entries(J);return Object.fromEntries(j)}return null}function f(W,J){if(!W)return{};const c=Object.entries(W).filter(([,re])=>re?.group===J).sort(([,re],[,le])=>(re.sequence||0)-(le.sequence||0)),i=s.searchString?c.filter(([re])=>re.toLowerCase().includes(s.searchString.toLowerCase())):c;return Object.fromEntries(i)}function k(W,J){if(J==="LxForm"&&s.navigation?.some(j=>j?.name==="LxFilters"))return{};if(J==="LxSection"&&s.navigation?.some(j=>j?.name==="LxFilters")){const{columnCount:j}=W;return j?{columnCount:j}:{}}return W}function E(W,J){return J==="LxForm"&&s.navigation?.some(j=>j?.name==="LxFilters")?{}:J==="LxSection"&&s.navigation?.some(j=>j?.name==="LxFilters")?{}:W}const K=t.computed(()=>!(!s.componentName||s.componentName==="LxForm"&&s.navigation?.some(W=>W?.name==="LxFilters")||s.componentName==="LxViewLayout")),M=t.computed(()=>K.value?s.searchString?"schemaKey".includes(s.searchString?.toLowerCase()):!0:!1),G=t.computed(()=>{const W=f(s.componentPropsDefinitions,"main"),J=D(s.componentName);return J?{...W,...J}:k(W,s.componentName)}),H=t.computed(()=>E(f(s.componentPropsDefinitions,"additional"),s.componentName)),z=t.computed(()=>f(s.componentPropsDefinitions,"mode"));function O(W,J){let j=null;W==="header"?(j={...S.value},j.title=J):j={...S.value,lx:{...S.value.lx,[W]:{properties:{text:{type:"string",lx:{value:J}}}}}},W==="preHeaderInfo"?j.lx.showPreHeaderInfo=!S.value.lx.showPreHeaderInfo:W==="postHeaderInfo"&&(j.lx.showPostHeaderInfo=!S.value.lx.showPostHeaderInfo),S.value=j,t.nextTick(()=>{W==="preHeaderInfo"?j.lx.showPreHeaderInfo=!S.value.lx.showPreHeaderInfo:W==="postHeaderInfo"&&(j.lx.showPostHeaderInfo=!S.value.lx.showPostHeaderInfo),S.value=j})}function A(W,J){return J==="header"?S.value.title:S.value.lx?.[J]?.properties?.text?.lx?.value}const v=Ht(W=>{x("update:schemaKey",W)},500),U=t.computed({get(){return s.schemaKey},set(W){v(W)}}),oe=t.ref(0);function te(){U.value=s.schemaKey,oe.value+=1}return(W,J)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[!Object.keys(G.value).length&&!Object.keys(H.value).length&&!Object.keys(z.value).length&&!M.value?(t.openBlock(),t.createBlock(t.unref(r.LxEmptyState),{key:0,label:e.searchString?`${e.texts.notFoundSearch} ${JSON.stringify(s.searchString)}`:e.texts.notFoundProps},null,8,["label"])):t.createCommentVNode("",!0),Object.keys(G.value).length?(t.openBlock(),t.createBlock(t.unref(r.LxForm),{key:1,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(j,c)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:j.name,label:`:${c}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:j,name:c,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"])),[[t.vShow,!j.extra]])),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(j,c)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:j.name,label:`${c}`},{default:t.withCtx(()=>[j?.extra?(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:0,modelValue:A(j,c),"onUpdate:modelValue":i=>O(c,i)},null,8,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label"])),[[t.vShow,j.extra]])),128))]),_:1})):t.createCommentVNode("",!0),Object.keys(H.value).length||M.value?(t.openBlock(),t.createBlock(t.unref(r.LxExpander),{key:2,label:e.texts.additionalLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[M.value?(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:0,label:"schemaKey"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxStack),{orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.unref(r.LxTextInput),{key:oe.value,modelValue:U.value,"onUpdate:modelValue":J[0]||(J[0]=j=>U.value=j),invalid:!!e.schemaKeyError,invalidationMessage:e.schemaKeyError},null,8,["modelValue","invalid","invalidationMessage"])),e.schemaKeyError?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"reset",kind:"tertiary",label:e.texts?.resetKey,variant:"icon-only",onClick:J[1]||(J[1]=j=>te())},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})]),_:1})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(H.value,(j,c)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:j.name,label:`:${c}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:j,name:c,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["label"])):t.createCommentVNode("",!0),Object.keys(z.value).length?(t.openBlock(),t.createBlock(t.unref(r.LxExpander),{key:3,label:e.texts.modeLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,(j,c)=>(t.openBlock(),t.createBlock(t.unref(r.LxRow),{key:j.name,label:`:${c}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:j,name:c,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["label"])):t.createCommentVNode("",!0)],64))}},yn={class:"lx-panel"},hn={class:"button-side"},gn={key:0,class:"panel-side"},kn={class:"header-wrapper"},bn={key:1,class:"header-wrapper"},Sn={key:0},pn={key:1},Bn={key:2},wn={key:0,class:"panel-main"},Cn={class:"button-group"},An={key:1,class:"no-component-wrapper"},Ln={key:1,class:"panel-main lx-region",style:{padding:"0.25rem"}},$n={key:2},On={class:"settings-wrapper"},jn=t.defineComponent({__name:"Panel",props:{componentName:{type:String,default:null},componentProps:{type:Object,default:null},componentPropsDefinitions:{type:Object,default:null},navigation:{type:Array,default:()=>[]},componentModel:{type:Object,default:()=>({})},schemaKey:{type:String,default:""},schemaKeyError:{type:String,default:null},schemaInfo:{type:Object,default:null},selectedTab:{type:String,default:null},texts:{type:Object,default:()=>({})}},emits:["export","import","reportIssue","reset","editSchema","editModel","componentAdd","componentChange","removeComponent","duplicateComponent","update:componentModel","update:componentProps","update:viewLayout","update:schemaKey","update:selectedTab"],setup(e,{emit:h}){const s=e,x={export:"Saglabāt",import:"Atvērt",editSchema:"Labot shēmu",editModel:"Labot datus",reportIssue:"Ziņot par kļūdu",reset:"Atiestatīt vērtības",openPanel:"Atvērt paneli",closePanel:"Aizvērt paneli",config:"Konfigurācija",components:"Komponentes",settings:"Iestatījumi",duplicate:"Dublēt",delete:"Dzēst",resetKey:"Atiestatīt",searchProps:"Meklēt propus",searchComponents:"Meklēt komponenti",clear:"Notīrīt",noItems:"Nav ierakstu",notFoundSearch:"Nav atrasts:",notFoundProps:"Nav atrasts",actionPanel:"Darbību panelis",save:"Saglabāt",additionalLabel:"Additional",modeLabel:"Mode",noComponentSelected:"Nav izvēlēts elements",inputs:"Ievadlauki",containers:"Konteineri",close:"Aizvērt",edit:"Labot"},n=t.computed(()=>De(s.texts,x)),S=h,D=t.computed({get(){return s.componentModel},set(j){S("update:componentModel",j)}}),f=t.ref(!0),k=t.computed({get(){return s.selectedTab||(f.value?"config":null)},set(j){S("update:selectedTab",j)}});function E(j){f.value=!j,j?k.value=null:k.value="config"}const K=t.computed(()=>[{id:"inputs",name:n.value?.inputs,badgeTitle:n.value?.inputs,expanded:!0},{id:"containers",name:n.value?.containers,badgeTitle:n.value?.containers,expanded:!0}]),M=t.ref(dn());function G(){return s.componentName==="LxForm"&&!s.schemaInfo?.isSectionInFilterForm}const H=t.computed(()=>{if(!s.componentName)return[];let j=[...M.value];return j=j.map(c=>({...c,clickable:s.componentName!=="LxForm"})),j.push({id:"LxSection",name:"LxSection",usageGroup:"containers",clickable:G()},{id:"LxForm",name:"LxForm",usageGroup:"containers",clickable:s.componentName==="LxViewLayout"&&!s.schemaInfo?.hasForm&&!s.schemaInfo?.hasFilters},{id:"LxFilters",name:"LxFilters",usageGroup:"containers",clickable:s.componentName==="LxViewLayout"&&!s.schemaInfo?.hasForm&&!s.schemaInfo?.hasFilters}),j.filter(c=>c.clickable)?.sort((c,i)=>c?.name?.localeCompare(i?.name))});function z(j){s.navigation[s.navigation.length-1]?.id!==j&&S("componentChange",s.navigation.find(c=>c.id===j))}function O(j,c){const i=r.lxFormatUtils.objectClone(s.componentModel)||{};return j==="LxTextInput"?(i.type="string",i.maxLength=c.maxlength,i.lx=i.lx||{},i.lx.mask=c.mask||"default",i.lx.kind=c.kind||"default",i.lx.scale=c.scale,i.lx.tooltip=c.tooltip,i.lx.disabled=c.disabled||!1,i.lx.uppercase=c.uppercase||!1,i.lx.convertToString=c.convertToString||!1,i.lx.placeholder=c.placeholder,i.lx.signed=c.signed||!1,i.readOnly=c.readOnly||!1):j==="LxToggle"?(i.type="boolean",i.lx=i.lx||{},i.lx.size=c.size||"m",i.lx.disabled=c.disabled||!1,i.lx.tooltip=c.tooltip,i.readOnly=c.readOnly||!1):j==="LxValuePicker"?(i.type=c.selectionKind==="multiple"?"array":"string",i.lx=i.lx||{},i.lx.items=c.items||[],i.lx.idAttribute=c.idAttribute,i.lx.nameAttribute=c.nameAttribute,i.lx.iconAttribute=c.iconAttribute,i.lx.iconSetAttribute=c.iconSetAttribute,i.lx.categoryAttribute=c.categoryAttribute,i.lx.descriptionAttribute=c.descriptionAttribute,i.lx.variant=c.variant,i.lx.hasSearch=c.hasSearch||!1,i.lx.alwaysAsArray=c.alwaysAsArray||!1,i.lx.nullable=c.nullable||!1,i.lx.tooltip=c.tooltip,i.lx.texts=c.texts,i.lx.placeholder=c.placeholder,i.lx.disabled=c.disabled||!1,i.readOnly=c.readOnly||!1,i.lx.searchAttributes=c.searchAttributes,i.lx.hasSelectAll=c.hasSelectAll||!1,i.lx.readOnlyRenderType=c.readOnlyRenderType||"row"):j==="LxRow"?(i.title=c.label,i.lx=i.lx||{},i.lx.columnSpan=c.columnSpan||"1",i.lx.rowSpan=c.rowSpan||"1",i.lx.rowActionDefinitions=c.rowActionDefinitions):j==="LxTextArea"?(i.type="string",i.maxLength=c.maxlength,i.lx=i.lx||{},i.lx.kind="multiline",i.lx.placeholder=c.placeholder,i.lx.rows=c.rows||3,i.lx.disabled=c.disabled||!1,i.lx.dynamicHeight=c.dynamicHeight||!1,i.lx.tooltip=c.tooltip,i.readOnly=c.readOnly||!1):j==="LxDateTimePicker"?(i.type="string",i.lx=i.lx||{},i.format=c.kind||"date",i.lx.placeholder=c.placeholder,i.lx.tooltip=c.tooltip,i.lx.minDate=c.minDate,i.lx.maxDate=c.maxDate,i.lx.required=c.required||!1,i.lx.disabled=c.disabled||!1,i.lx.timeAdjust=c.timeAdjust,i.lx.clearIfNotExact=c.clearIfNotExact||!1,i.lx.texts=c.texts,i.lx.locale=c.locale,i.lx.specialDates=c.specialDates,i.lx.dictionary=c.dictionary,i.lx.variant=c.variant||"default",i.lx.cadenceOfMinutes=c.cadenceOfMinutes?Number(c.cadenceOfMinutes):1,i.lx.cadenceOfSeconds=c.cadenceOfSeconds?Number(c.cadenceOfSeconds):1,i.readOnly=c.readOnly||!1):j==="LxAutoComplete"?(i.type=c.selectionKind==="multiple"?"array":"string",i.lx=i.lx||{},i.lx.items=c.items||[],i.lx.idAttribute=c.idAttribute||"id",i.lx.nameAttribute=c.nameAttribute||"name",i.lx.dictionary=c.dictionary,i.lx.groupId=c.groupId,i.lx.queryMinLength=c.queryMinLength||0,i.lx.queryMaxLength=c.queryMaxLength,i.lx.queryDebounce=c.queryDebounce||200,i.lx.placeholder=c.placeholder,i.lx.tooltip=c.tooltip,i.lx.disabled=c.disabled||!1,i.lx.loading=c.loading||!1,i.lx.hasDetails=c.hasDetails||!1,i.lx.selectionKind=c.selectionKind||"single",i.lx.preloadedItems=c.preloadedItems,i.lx.labelId=c.labelId,i.lx.hasSelectAll=c.hasSelectAll||!1,i.lx.enableAdditionalText=c.enableAdditionalText||!1,i.lx.texts=c.texts,i.lx.searchAttributes=c.searchAttributes,i.readOnly=c.readOnly||!1):j==="LxCamera"?(i.type="string",i.lx=i.lx||{},i.lx.cameraSwitcherMode=c.cameraSwitcherMode||"toggle",i.lx.hasFlashlightToggle=c.hasFlashlightToggle||!1,i.lx.imageSize=c.imageSize||"default",i.lx.preferencesId=c.preferencesId||"lx-camera-settings",i.lx.labelId=c.labelId,i.lx.texts=c.texts):j==="LxCheckbox"?(i.type="boolean",i.lx=i.lx||{},i.lx.groupId=c.groupId,i.lx.label=c.label,i.lx.disabled=c.disabled||!1,i.lx.value=c.value||"none",i.lx.tabindex=c.tabindex||"0",i.lx.labelId=c.labelId):j==="LxContentSwitcher"?(i.type="string",i.lx=i.lx||{},i.lx.items=c.items,i.lx.idAttribute=c.idAttribute||"id",i.lx.nameAttribute=c.nameAttribute||"name",i.lx.disabled=c.disabled||!1,i.lx.kind=c.kind||"default",i.lx.icon=c.icon,i.lx.iconSet=c.iconSet,i.lx.tooltip=c.tooltip,i.lx.labelId=c.labelId,i.readOnly=c.readOnly||!1):j==="LxDateTimeRange"?(i.type="object",i.format=c.kind||"date",i.lx=i.lx||{},i.lx.placeholder=c.placeholder,i.lx.tooltip=c.tooltip,i.lx.minDate=c.minDate,i.lx.maxDate=c.maxDate,i.lx.required=c.required||!1,i.lx.disabled=c.disabled||!1,i.lx.timeAdjust=c.timeAdjust,i.lx.locale=c.locale,i.lx.rangeMonths=c.rangeMonths||"next",i.lx.clearIfNotExact=c.clearIfNotExact||!1,i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly||!1):j==="LxFileUploader"?(i.type="array",i.lx=i.lx||{},i.lx.selectionKind=c.selectionKind||"single",i.lx.mode=c.mode||"default",i.lx.draggable=c.draggable||!1,i.lx.dataType=c.dataType||"meta",i.lx.hasSearch=c.hasSearch||!1,i.lx.disabled=c.disabled||!1,i.lx.loading=c.loading||!1,i.lx.busy=c.busy||!1,i.lx.allowedFileExtensions=c.allowedFileExtensions||[],i.lx.maxFileSize=c.maxFileSize||3e7,i.lx.hasDownloadButton=c.hasDownloadButton||!1,i.lx.showMeta=c.showMeta??!0,i.lx.maxSizeForMeta=c.maxSizeForMeta||3e7,i.lx.hasCamera=c.hasCamera||!1,i.lx.cameraSwitcherMode=c.cameraSwitcherMode||"toggle",i.lx.hasFlashlightToggle=c.hasFlashlightToggle||!1,i.lx.imageSize=c.imageSize||"default",i.lx.preferencesId=c.preferencesId||"lx-camera-settings",i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly||!1):j==="LxNumberSlider"?(i.type="integer",i.lx=i.lx||{},i.lx.min=c.min||0,i.lx.max=c.max||9999,i.lx.step=c.step||1,i.lx.stepMultiplier=c.stepMultiplier||5,i.lx.hasInput=c.hasInput||!1,i.lx.labelId=c.labelId,i.lx.disabled=c.disabled||!1,i.readOnly=c.readOnly||!1):j==="LxQrScanner"?(i.type="object",i.lx=i.lx||{},i.lx.formats=c.formats||["qr_code"],i.lx.hasFileUploader=c.hasFileUploader??!0,i.lx.selectionKind=c.selectionKind||"single",i.lx.cameraSwitcherMode=c.cameraSwitcherMode||"list",i.lx.hasFlashlightToggle=c.hasFlashlightToggle||!1,i.lx.showAlerts=c.showAlerts??!0,i.lx.labelId=c.labelId,i.lx.texts=c.texts):j==="LxVisualPicker"?(i.type=c.selectionKind==="multiple"?"array":"string",i.lx=i.lx||{},i.lx.kind=c.kind||"europe",i.lx.mode=c.mode||"default",i.lx.selectionKind=c.selectionKind||"multiple",i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly||!1):j==="LxDayInput"?(i.type="integer",i.lx=i.lx||{},i.lx.disabled=c.disabled||!1,i.lx.kind=c.kind||"label",i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly||!1):j==="LxDrawPad"?(i.type="string",i.lx=i.lx||{},i.lx.disabled=c.disabled??!1,i.lx.width=c.width||"500",i.lx.height=c.height||"400",i.lx.instrument=c.instrument||"brush",i.lx.color=c.color||"black",i.lx.showInstruments=c.showInstruments??!1,i.lx.showColorPicker=c.showColorPicker??!1,i.lx.showClearAll=c.showClearAll??!1,i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly??!1):j==="LxMarkdownTextArea"?(i.type="string",i.lx=i.lx||{},i.lx.placeholder=c.placeholder,i.lx.rows=c.rows,i.maxLength=c.maxlength,i.lx.disabled=c.disabled??!1,i.lx.showColorPicker=c.showColorPicker??!1,i.lx.showLinkEditor=c.showLinkEditor??!0,i.lx.tooltip=c.tooltip,i.lx.showPlaceholderPicker=c.showPlaceholderPicker??!1,i.lx.showImagePicker=c.showImagePicker??!1,i.lx.showUnderlineToggle=c.showUnderlineToggle??!1,i.lx.showHeadingPicker=c.showHeadingPicker??!1,i.lx.imageMaxSize=c.imageMaxSize??3e6,i.lx.dictionary=c.dictionary,i.lx.labelId=c.labelId,i.lx.texts=c.texts,i.readOnly=c.readOnly??!1):j==="LxSection"?(i.type="object",i.lx=i.lx||{},i.properties=i.properties||{},i.title=c.label,i.description=c.description,i.lx.columnCount=Number(c.columnCount)||1,i.lx.requiredMode=c.requiredMode||"none",i.lx.icon=c.icon,i.lx.iconSet=c.iconSet||"cds",i.lx.customClass=c.customClass,i.lx.badge=c.badge,i.lx.actionDefinitions=c.actionDefinitions,i.lx.orientation=c.orientation):j==="LxForm"?(i.type="object",i.lx=i.lx||{},i.properties=i.properties||{},i.lx.columnCount=Number(c.columnCount)||1,i.lx.showHeader=c.showHeader??!0,i.lx.stickyHeader=c.stickyHeader??!0,i.lx.showFooter=c.showFooter??!0,i.lx.stickyFooter=c.stickyFooter??!0,i.lx.showPreHeaderInfo=c.showPreHeaderInfo??!0,i.lx.showPostHeaderInfo=c.showPostHeaderInfo??!0,i.lx.index=c.index,i.lx.indexType=c.indexType||"none",i.lx.requiredMode=c.requiredMode||"none",i.lx.kind=c.kind||"default",i.lx.orientation=c.orientation||"vertical",i.lx.hasSkipLink=c.hasSkipLink||!1,i.lx.actionDefinitions=c.actionDefinitions,i.lx.texts=c.texts):j==="LxFilters"&&(i.type="object",i.lx=i.lx||{},i.properties=i.properties||{},i.title=c.label,i.description=c.description,i.lx.defaultValues=c.defaultValues||{},i.lx.useDefaults=c.useDefaults||!1,i.lx.usesFilters=c.usesFilters||!1,i.lx.filterButtonKind=c.filterButtonKind||"tertiary",i.lx.columnCount=c.columnCount||3,i.lx.expanded=c.expanded||!1,i.lx.disabled=c.disabled||!1,i.lx.fastFilters=c.fastFilters||[],i.lx.fastIdAttribute=c.fastIdAttribute||"id",i.lx.fastNameAttribute=c.fastNameAttribute||"name",i.lx.badge=c.badge,i.lx.badgeType=c.badgeType||"default",i.lx.texts=c.texts),i}t.watch(()=>s.componentProps,j=>{const c=O(s.componentName,j);s.componentName==="LxViewLayout"?S("update:viewLayout",j?.kind):S("update:componentModel",c)},{deep:!0});const A=t.computed({get(){return s.componentProps},set(j){S("update:componentProps",j)}}),v=t.computed(()=>s.componentName?s.navigation.map((c,i,re)=>i===re.length-1?{...c,active:!0}:c):[]),U=Ht(j=>{S("update:schemaKey",j)},500),oe=t.computed({get(){return s.schemaKey},set(j){U(j)}}),te=t.ref(null);function W(){return s.componentName&&s.componentName!=="LxViewLayout"}function J(){return s.componentName&&s.componentName!=="LxViewLayout"&&s.componentName!=="LxFilters"}return(j,c)=>(t.openBlock(),t.createElementBlock("div",yn,[t.createElementVNode("div",hn,[t.createVNode(t.unref(r.LxButton),{icon:f.value?"close-panel":"open-panel",variant:"icon-only",label:f.value?n.value?.closePanel:n.value?.openPanel,kind:"secondary",onClick:c[0]||(c[0]=i=>E(f.value))},null,8,["icon","label"]),t.createVNode(t.unref(r.LxButton),{icon:"config",variant:"icon-only",label:n.value?.config,kind:"secondary",active:f.value&&k.value==="config",onClick:c[1]||(c[1]=i=>(k.value="config",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(r.LxButton),{icon:"components",variant:"icon-only",label:n.value?.components,kind:"secondary",active:f.value&&k.value==="components",onClick:c[2]||(c[2]=i=>(k.value="components",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(r.LxButton),{icon:"settings",variant:"icon-only",label:n.value?.settings,kind:"secondary",active:f.value&&k.value==="settings",onClick:c[3]||(c[3]=i=>(k.value="settings",f.value=!0))},null,8,["label","active"])]),f.value?(t.openBlock(),t.createElementBlock("div",gn,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["config-header",[{"has-selected-element":e.componentName&&k.value==="config"}]])},[k.value==="config"?(t.openBlock(),t.createBlock(t.unref(r.LxDropDownMenu),{key:0,actionDefinitions:v.value,onActionClick:z},{default:t.withCtx(()=>[t.createElementVNode("div",kn,[e.componentName?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("p",null,t.toDisplayString(e.componentName),1),t.createVNode(t.unref(r.LxIcon),{value:"menu"})],64)):t.createCommentVNode("",!0)])]),_:1},8,["actionDefinitions"])):(t.openBlock(),t.createElementBlock("div",bn,[k.value==="components"?(t.openBlock(),t.createElementBlock("p",Sn,t.toDisplayString(n.value?.components),1)):k.value==="settings"?(t.openBlock(),t.createElementBlock("p",pn,t.toDisplayString(n.value?.settings),1)):(t.openBlock(),t.createElementBlock("p",Bn,t.toDisplayString(n.value?.actionPanel),1))]))],2),k.value==="config"?(t.openBlock(),t.createElementBlock("div",wn,[t.createElementVNode("div",Cn,[t.createVNode(t.unref(r.LxButton),{icon:"copy",kind:"secondary",label:n.value?.duplicate,disabled:!J(),onClick:c[4]||(c[4]=i=>S("duplicateComponent"))},null,8,["label","disabled"]),t.createVNode(t.unref(r.LxButton),{icon:"delete",kind:"secondary",label:n.value?.delete,disabled:!W(),destructive:!0,onClick:c[5]||(c[5]=i=>S("removeComponent"))},null,8,["label","disabled"])]),t.createVNode(t.unref(r.LxTextInput),{modelValue:te.value,"onUpdate:modelValue":c[6]||(c[6]=i=>te.value=i),kind:"search",placeholder:n.value?.searchProps,disabled:!e.componentName,class:"prop-search"},null,8,["modelValue","placeholder","disabled"]),e.componentName?(t.openBlock(),t.createBlock(fn,{key:0,modelValue:A.value,"onUpdate:modelValue":c[7]||(c[7]=i=>A.value=i),componentName:e.componentName,componentPropsDefinitions:e.componentPropsDefinitions,searchString:te.value,componentModel:D.value,"onUpdate:componentModel":c[8]||(c[8]=i=>D.value=i),schemaKey:oe.value,"onUpdate:schemaKey":c[9]||(c[9]=i=>oe.value=i),schemaKeyError:e.schemaKeyError,navigation:v.value,texts:n.value},null,8,["modelValue","componentName","componentPropsDefinitions","searchString","componentModel","schemaKey","schemaKeyError","navigation","texts"])):(t.openBlock(),t.createElementBlock("div",An,[t.createVNode(t.unref(r.LxEmptyState),{label:n.value?.noComponentSelected},null,8,["label"])]))])):t.createCommentVNode("",!0),k.value==="components"?(t.openBlock(),t.createElementBlock("div",Ln,[t.createVNode(t.unref(r.LxList),{listType:"1",hasSearch:!0,items:H.value,groupDefinitions:K.value,groupAttribute:"usageGroup",hideFilteredItems:!0,icon:"add",texts:{placeholder:n.value?.searchComponents,clear:n.value?.clear,noItems:n.value?.noItems,notFoundSearch:n.value?.notFoundSearch},onActionClick:c[10]||(c[10]=(i,re)=>S("componentAdd",re))},null,8,["items","groupDefinitions","texts"])])):t.createCommentVNode("",!0),k.value==="settings"?(t.openBlock(),t.createElementBlock("div",$n,[t.createElementVNode("div",On,[t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.import,icon:"upload",onClick:c[11]||(c[11]=i=>S("import"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.export,icon:"save",onClick:c[12]||(c[12]=i=>S("export"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.editSchema,icon:"edit",onClick:c[13]||(c[13]=i=>S("editSchema"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.editModel,icon:"editItem",onClick:c[14]||(c[14]=i=>S("editModel"))},null,8,["label"]),t.createVNode(t.unref(r.LxButton),{kind:"secondary",label:n.value?.reportIssue,icon:"bug",onClick:c[15]||(c[15]=i=>S("reportIssue"))},null,8,["label"])])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Tn={id:"constructor-overlay"},Pn={class:"highlight-toolbar"},En={class:"highlight-toolbar highlight-toolbar-remove"},Dn={id:"constructor"},zn={class:"code-display"},Vn={class:"code"},Fn={class:"import-switcher"},Mn={class:"component-add-text"},Nn={class:"lx-primary"},vn={class:"lx-secondary"},Rn=t.defineComponent({__name:"Constructor",props:{schema:{type:Object,default:()=>({})},modelValue:{type:Object,default:()=>({})},texts:{type:Object,default:()=>({})}},emits:["update:schema","update:modelValue","error","schemaCopy"],setup(e,{emit:h}){const s=e,x={back:"Pārvietot atpakaļ",next:"Pārvietot uz priekšu",delete:"Dzēst",exportModal:"Saglabāšana",moveOutside:"Izvietot ārpusē",moveInside:"Ievietot iekšpusē",close:"Aizvērt",save:"Saglabāt",yes:"Jā",no:"Nē",download:"Lejupielādēt",copy:"Kopēt",editSchemaModal:"Struktūras labošana",componentAddModal:"Komponenšu pievienošana",componentAddDescription:"Vai pievienot elementu iekš izvēlētā elementa vai aiz izvēlētā elementa?",componentAddInside:"Ievietot iekšpusē",componentAddNext:"Izvietot ārpusē",componentAddInsideDescription:"Ievietot komponenti kā daļu no izvēlētā elementa",componentAddNextDescription:"Ievietot komponenti ārpus izvēlētā elementa",importModal:"Pievienošana no datnes",importFile:"Datnes augšupielāde",importText:"Teksta ievade",editModelModal:"Datu labošana",confirmDelete:"Vai tiešām vēlaties dzēst šo komponenti?",confirmImport:"Vai tiešām vēlaties pievienot datni?",confirmImportDescription:"Esošā struktūra tiks aizvietota ar pievienoto un visi nesaglabātie dati tiks zaudēti",componentAddChoice:"Izvēlieties, kur pievienot komponenti",invalidJsonError:"Nederīgs JSON objekts",parseJsonError:"Kļūda, apstrādājot JSON saturu",schemaKeyEmptyError:"Atslēga nedrīkst būt tukša",schemaKeyParentError:"Vecākelements nav atrasts",schemaKeyDuplicateError:'Atslēga "{0}" jau eksistē. Tai jābūt unikālai',schemaKeyUpdateError:"Kļūda atslēgas atjaunināšanā. Mēģiniet vēlreiz!",export:"Saglabāt",import:"Atvērt",editSchema:"Labot shēmu",editModel:"Labot datus",reportIssue:"Ziņot par kļūdu",reset:"Atiestatīt vērtības",openPanel:"Atvērt paneli",closePanel:"Aizvērt paneli",config:"Konfigurācija",components:"Komponentes",settings:"Iestatījumi",duplicate:"Dublēt",resetKey:"Atiestatīt",searchProps:"Meklēt propus",searchComponents:"Meklēt komponenti",clear:"Notīrīt",noItems:"Nav ierakstu",notFoundSearch:"Nav atrasts:",notFoundProps:"Nav atrasts",actionPanel:"Darbību panelis",additionalLabel:"Additional",modeLabel:"Mode",noComponentSelected:"Nav izvēlēts elements",inputs:"Ievadlauki",containers:"Konteineri",edit:"Labot",fileUploader:{clear:"Notīrīt",draggablePlaceholder:"Ievelciet datnes, vai nospiediet šeit, lai augšupielādētu",close:"Aizvērt",infoButton:"Skatīt detaļas",download:"Lejupielādēt",metaPreviewLabel:"Priekšskatījums",metaPreviewDescription:"priekšskatījums",metaMainLabel:"Galvenie dati",metaMainAuthor:"Autors",metaMainFormat:"Formāts",metaMainLastModified:"Pēdējās izmaiņas",metaMainDataSize:"Datnes izmērs"}},n=t.computed(()=>De(s.texts,x)),S=t.ref({}),D=h,f=t.computed({get(){return s.schema},set(C){D("update:schema",C)}}),{width:k,height:E}=cn(),K=t.ref([]),M=t.ref(null),G=t.ref(null),H=t.ref(null),z=t.ref(null),O=t.ref(null),A=t.ref({visible:!1,style:{},el:null,padding:2}),v=t.ref(),U=t.ref({canPlaceInside:!1,key:null,path:null}),oe=t.ref({canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}),te=t.ref(null),W=t.ref(null),J=t.ref(null),j=t.ref(null),c=t.ref(null),i=t.ref(null),re=t.ref("file"),le=t.ref(),P=t.ref(null),$=t.ref(null),L=t.ref(null),N=t.computed(()=>!i.value),ce=t.ref(null),me=t.ref(null),Se=t.ref(null),Ce=t.ref(null),ne=t.ref(),w=t.ref({label:null,description:null,kind:"danger",primaryAction:null,secondaryAction:null}),u=t.ref({canMoveBack:!1,canMoveForward:!1,moveOut:!1,canMoveForwardIn:!1});function d(){u.value.canMoveBack=!1,u.value.canMoveForward=!1,u.value.moveOut=!1,u.value.canMoveForwardIn=!1}function l(C){if(A.value.el=C.target,!A.value.el)return;const b=A.value.el.getBoundingClientRect(),T=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0,F=A.value.padding;A.value.style={left:`${b.left-F}px`,top:`${b.top-F+T}px`,width:`${b.width+F*2}px`,height:`${b.height+F*2}px`},A.value.visible=!0}function a(){t.nextTick(()=>{l({target:A.value.el})})}function o(C){const b=C?.replace(/-wrapper$/,"");return r.builderRegistry.get(b)?.type==="LxRow"}function y(C,b){return b?.reduce((T,F)=>T?.[F],C)}function m(C=null){const b=C||v.value,T=[];return O.value=b?.split("."),O.value?.forEach(F=>{T.push("properties"),T.push(F)}),T}function p(C){return C?.lx?.displayType}function V(C){return!!C&&Object.prototype.hasOwnProperty.call(C,"properties")&&!!C.properties?p(C)!=="form"?!0:Object.values(C.properties).some(T=>p(T)==="section"):!1}function Q(C){if(!Array.isArray(C))return!1;const b=C.map(Y=>Y?.name),T=b.indexOf("LxFilters");if(T<0)return!1;const F=b.indexOf("LxForm",T+1);return F<0?!1:b.indexOf("LxSection",F+1)>=0}function I(C,b){(!v.value||!b)&&d();const T=v.value?.split(".")?.slice(-1)[0],F=v.value?.includes(".")?v.value?.split(".")?.slice(0,-1)?.join("."):null,X=(F?y(C,m(F)):C)?.properties,ae=Object.keys(X),ie=ae.indexOf(T),xe=ie>=0?ae[ie+1]:null,ye=xe?X[xe]:null,ue=ie>0?ae[ie-1]:null;u.value.canMoveBack=!!ue,u.value.canMoveForward=!!xe,u.value.canMoveForwardIn=V(ye)&&M.value!=="LxSection";const fe=F?.includes(".")?F?.split(".")?.slice(0,-1).join("."):null,Be=F?.split(".")?.slice(-1)[0]||null,we=!!F&&!!Be&&!!fe;u.value.moveOut=we&&!Q(K.value)}function de(){document.getElementById("constructor")?.addEventListener("click",C=>{let b=C.target,T=null;for(;b;){if(b.getAttribute("data-id")&&r.builderRegistry.get(b.getAttribute("data-id"))||o(b.id)){if(o(b.id)){const Y=b.id?.replace(/-wrapper$/,"");T=r.builderRegistry.get(Y)}else T=r.builderRegistry.get(b.getAttribute("data-id")||b.id);break}b=b.parentElement}T&&(M.value=T.type,H.value=T.node.type.props,G.value=r.lxFormatUtils.objectClone(T.props),l({target:b}),v.value=T.builderName,K.value=T.componentStack,te.value=v.value?.includes(".")?v.value?.split(".")?.slice(-1)[0]:v.value,Se.value=null),z.value=y(f.value,m());const F=v.value?.includes(".")?v.value?.split(".")?.join("."):null;W.value=y(f.value,m(F)?.slice(0,-1)),I(f.value,z.value),Ce.value="config"})}function ke(){return M.value==="LxRow"||M.value==="LxSection"||!K.value.some(C=>C.name==="LxRow")}function g(C){const b=C;return!b||!(b instanceof HTMLElement)?!0:b.isContentEditable||b.closest('[contenteditable="true"]')?!1:!["INPUT","TEXTAREA","SELECT"].includes(b.tagName)}function B(C,b,T){b?.reduce((F,Y,X)=>(X===b.length-1?F[Y]=T:F[Y]=F[Y]??{},F[Y]),C)}function R(C){const b=[];O.value=v.value?.split("."),O.value?.forEach(F=>{b.push("properties"),b.push(F)});const T=r.lxFormatUtils.objectClone(f.value);B(T,b,C),f.value=T,z.value=C,a()}function q(){U.value={canPlaceInside:!1,key:null,path:null}}function _(){oe.value={canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}}function se(C,b){if(!C||!b||!Object.prototype.hasOwnProperty.call(b,C))return C;let T=r.lxStringUtils.generateUUID();for(;Object.prototype.hasOwnProperty.call(b,T);)T=r.lxStringUtils.generateUUID();return T}function he(C){return Array.isArray(C)?C.filter(b=>b!=="properties"):[]}function ge(C){return he(C).join(".")}function be(C){C&&t.nextTick(()=>{const T=Array.from(r.builderRegistry.all().entries()).find(([,X])=>X?.builderName===C);if(!T)return;const[F]=T;let Y=document.querySelector(`[data-id="${F}"]`);Y||(Y=document.getElementById(`${F}-wrapper`)||document.getElementById(F)),Y&&Y.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))})}function Le(){if(!v.value)return;const C=v.value?.split(".")?.slice(-1)[0],b=v.value?.includes(".")?v.value?.split(".")?.slice(0,-1)?.join("."):null,T=b?m(b):null,F=r.lxFormatUtils.objectClone(f.value),Y=T?y(F,T):F,X=Y?.properties;if(!X||!C)return;const ae=Object.keys(X),ie=ae.indexOf(C),xe=ae[ie+1];if(!xe)return;const ye=X[C],ue=X[xe];if(!ye||!ue||!V(ue))return;let fe=ue,Be=[b,xe].filter(Boolean)?.join(".");if(p(ue)==="form"){const ve=Object.entries(ue.properties||{}).filter(([,yt])=>p(yt)==="section")[0],[$e,Wt]=ve;fe=Wt,Be=[Be,$e].filter(Boolean).join(".")}const we=r.lxFormatUtils.objectClone(ye),Ae=r.lxFormatUtils.objectClone(fe.properties||{}),Te=se(C,Ae);fe.properties={...Ae,[Te]:we},B(F,m(Be),fe),Y.properties=Object.fromEntries(Object.entries(X).filter(([Ge])=>Ge!==C)),T&&B(F,T,Y),f.value=F;const Pe=[Be,Te].filter(Boolean).join(".");be(Pe)}function Ke(C){if(!v.value||C!=="previous")return;const b=v.value?.split(".")?.slice(-1)[0],T=v.value?.includes(".")?v.value?.split(".")?.slice(0,-1)?.join("."):null;if(!T)return;const F=T?.includes(".")?T?.split(".")?.slice(0,-1)?.join("."):null,Y=T?.split(".")?.slice(-1)[0]||null;if(!F)return;const X=r.lxFormatUtils.objectClone(f.value),ae=T?m(T):null,ie=F?m(F):null,xe=ae?y(X,ae):X,ye=ie?y(X,ie):X,ue=xe?.properties,fe=ye?.properties;if(!ue||!b||!Y)return;let Be=ye,we=ie,Ae=fe,Te=Y;if(p(xe)==="section"&&p(ye)==="form"){const Ee=F?.includes(".")?F?.split(".")?.slice(0,-1)?.join("."):null,ua=F?.split(".")?.slice(-1)[0]||null,ht=Ee?m(Ee):null,Qt=ht?y(X,ht):X;Be=Qt,we=ht,Ae=Qt?.properties,Te=ua}if(!Ae||!Te)return;const Pe=ue[b];if(!Pe)return;const Ge=r.lxFormatUtils.objectClone(Pe),ve=se(b,Ae);xe.properties=Object.fromEntries(Object.entries(ue).filter(([Ee])=>Ee!==b));const $e={};Object.keys(Ae).forEach(Ee=>{Ee===Te&&($e[ve]=Ge),$e[Ee]=Ae[Ee]}),Be.properties=$e,ae&&B(X,ae,xe),we&&B(X,we,Be),f.value=X;const yt=[ge(we),ve].filter(Boolean).join(".");be(yt)}function Fe(C,b,T){if(b&&C==="LxDateTimeRange"){const F=r.lxFormatUtils.objectClone(S.value||{}),Y=he(T);B(F,[...Y,b],{}),S.value=F,D("update:modelValue",F)}}function mt(C){let b=null;v.value?.includes(".")&&(b=m(v.value?.split(".")?.slice(0,-1)?.join(".")));const T=b?y(f.value,b):f.value,F=v.value?.split(".")?.slice(-1)[0],Y=r.lxStringUtils.generateUUID(),X=dt(C),ae=T.properties,ie={};Object.keys(ae).forEach(fe=>{ie[fe]=ae[fe],fe===F&&(ie[Y]=X)}),T.properties=ie;const xe=r.lxFormatUtils.objectClone(f.value);B(xe,b,T),f.value=xe,Fe(C,Y,b);const ue=[ge(b),Y].filter(Boolean).join(".");be(ue)}function Kn(C){if(!v.value)return!1;const b=v.value?.split(".")?.slice(-1)[0],T=v.value?.includes(".")?v.value?.split(".")?.slice(0,-1)?.join("."):null;if(!T)return!1;const F=T?.includes(".")?T?.split(".")?.slice(0,-1)?.join("."):null,Y=T?.split(".")?.slice(-1)[0]||null;if(!Y)return!1;const X=r.lxFormatUtils.objectClone(f.value),ae=m(T),ie=y(X,ae),xe=ie?.properties?.[b],ye=p(xe)==="section",ue=p(ie)==="form";if(!ye||!ue)return!1;const fe=F?m(F):null,Be=fe?y(X,fe):X,we=Be?.properties;if(!we)return!1;const Ae=se(r.lxStringUtils.generateUUID(),we),Te=dt(C),Pe={};Object.keys(we).forEach($e=>{$e===Y&&(Pe[Ae]=Te),Pe[$e]=we[$e]}),Be.properties=Pe,fe&&B(X,fe,Be),f.value=X,Fe(C,Ae,fe);const ve=[ge(fe),Ae].filter(Boolean).join(".");return be(ve),!0}function Ue(C){let b=null;b=m(v.value?.split(".")?.join("."));const T=b?y(f.value,b):f.value,F=Object.keys(T.properties||{})[Object.keys(T.properties||{}).length-1],Y=r.lxStringUtils.generateUUID(),X=dt(C),ae=T.properties,ie={};Object.keys(ae).forEach(fe=>{ie[fe]=ae[fe]}),F?Object.keys(ie).forEach(fe=>{fe===F&&(ie[Y]=X)}):ie[Y]=X,T.properties=ie;const xe=r.lxFormatUtils.objectClone(f.value);B(xe,b,T),f.value=xe,Fe(C,Y,b);const ue=[ge(b),Y].filter(Boolean).join(".");be(ue)}function Hn(C){let b=null;C.name==="LxRow"?b=document.querySelector(`#${C.id}-wrapper`):(b=document.querySelector(`[data-id="${C.id}"]`),b||(b=document.getElementById(C.id))),b&&b.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}function Gn(C){me.value=C,M.value==="LxViewLayout"?Ue(C):M.value==="LxForm"||M.value==="LxSection"?C==="LxSection"||K.value.some(b=>b.name==="LxFilters")?Ue(C):ce.value.open():mt(C)}function Jn(C,b){b==="inside"?(Ue(me.value),ce.value.close()):b==="next"&&(M.value==="LxSection"&&Kn(me.value)||mt(me.value),ce.value.close())}function Jt(){let C=null;v.value?.includes(".")&&(C=m(v.value?.split(".")?.slice(0,-1)?.join(".")));const b=C?y(f.value,C):f.value,T=v.value?.split(".")?.slice(-1)[0],F=b.properties,Y={};Object.keys(F).forEach(ae=>{ae!==T&&(Y[ae]=F[ae])}),b.properties=Y;const X=r.lxFormatUtils.objectClone(f.value);B(X,C,b),f.value=X,A.value.visible=!1,M.value=null,K.value=[],z.value=null,q(),_()}function Wn(){let C=null;v.value?.includes(".")&&(C=m(v.value?.split(".")?.slice(0,-1)?.join(".")));const b=C?y(f.value,C):f.value,T=v.value?.split(".")?.slice(-1)[0],F=r.lxStringUtils.generateUUID(),Y=r.lxFormatUtils.objectClone(b.properties[T]),X=b.properties,ae={};Object.keys(X).forEach(ue=>{ae[ue]=X[ue],ue===T&&(ae[F]=Y)}),b.properties=ae;const ie=r.lxFormatUtils.objectClone(f.value);B(ie,C,b),f.value=ie;const ye=[ge(C),F].filter(Boolean).join(".");be(ye)}function Ie(C){let b=null;v.value?.includes(".")&&(b=m(v.value?.split(".")?.slice(0,-1)?.join(".")));const T=b?y(f.value,b):f.value,F=v.value?.split(".")?.slice(-1)[0],Y=T.properties,X={},ae=Object.keys(Y),ie=ae.indexOf(F);if(C==="up"&&ie>0||C==="down"&&ie<ae.length-1){C==="up"?ae.forEach((ye,ue)=>{ue===ie-1&&(X[F]=Y[F]),ye!==F&&(X[ye]=Y[ye])}):C==="down"&&ae.forEach((ye,ue)=>{ye!==F&&(X[ye]=Y[ye]),ue===ie+1&&(X[F]=Y[F])}),T.properties=X;const xe=r.lxFormatUtils.objectClone(f.value);B(xe,b,T),f.value=xe,t.nextTick(()=>{a(),I(f.value,z.value)})}}function Qn(){J.value.open()}function Yn(){navigator.clipboard.writeText(JSON.stringify(f.value,null,2)),D("schemaCopy")}function Zn(){const C=JSON.stringify(f.value,null,2),b=new Blob([C],{type:"application/json"}),T=URL.createObjectURL(b),F=document.createElement("a");F.href=T,F.download="schema.json",document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(T)}function Xn(C){C==="download"?Zn():C==="copy"&&Yn()}function Un(){re.value="file",le.value=null,j.value.open()}function ut(C){try{const b=JSON.parse(C);return typeof b=="object"&&b!==null&&!Array.isArray(b)}catch{return!1}}function In(C){const b=atob(C),T=Uint8Array.from(b,F=>F.charCodeAt(0));return new TextDecoder("utf-8").decode(T)}function xt(C){if(C?.length===0){c.value=[],i.value=null;return}c.value=C;const b=C[0].content?.split(",")[1];if(!b){i.value=null,D("error","Invalid file content");return}const T=In(b);i.value=T}function _n(){A.value.visible=!1,M.value=null,K.value=[],z.value=null,q(),_()}function ea(C){if(i.value){if(le.value=null,!ut(i.value)){le.value=n.value?.invalidJsonObject,D("error","Invalid JSON file content");return}try{const b=JSON.parse(i.value);f.value=b,j.value.close(),_n()}catch{le.value=n.value?.errorParsingJsonContent,D("error","Error parsing JSON content")}}}const He=t.ref(null);function ta(C){C==="save"&&i.value&&(He.value=c.value,j.value.close(),w.value={label:n.value?.confirmImport,description:n.value?.confirmImportDescription,kind:"question",primaryAction:()=>{c.value=He.value,xt(He.value),ea(),ne.value.close()},secondaryAction:()=>{ne.value.close(),j.value.open(),c.value=He.value,xt(He.value)}},ne.value.open())}function la(){L.value=null,$.value=JSON.stringify(f.value,null,2),P.value.open()}function na(C){if(C==="save"&&$.value){if(!ut($.value)){L.value=n.value?.invalidJsonObject,D("error","Invalid JSON file content");return}try{const b=JSON.parse($.value);f.value=b,P.value.close()}catch{D("error","Error parsing JSON content")}}}const ft=t.ref(null),Me=t.ref(null),_e=t.ref(null);function aa(){_e.value=null,Me.value=JSON.stringify(S.value,null,2),ft.value.open()}function ia(C){if(C==="save"&&Me.value){if(!ut(Me.value)){_e.value=n.value?.invalidJsonObject,D("error","Invalid JSON content");return}try{const b=JSON.parse(Me.value);S.value=b,ft.value.close()}catch{D("error","Error parsing JSON content")}}}function oa(C){if(C==="form"||C==="list"){const b=r.lxFormatUtils.objectClone(f.value);b?.properties&&Object.entries(b.properties).forEach(([T,F])=>{const Y=F?.lx?.displayType;Y==="filters"&&C==="form"&&(b.properties[T].lx.displayType="form"),Y==="form"&&C==="list"&&(b.properties[T].lx.displayType="filters")}),f.value=b}}function ra(){globalThis.open("https://github.com/dativa-lv/lx-builders/issues","_blank","noopener")}t.watch(()=>[k.value,E.value],()=>{a()});function ca(){w.value={label:n.value?.confirmDelete,description:null,kind:"warning",primaryAction:()=>{Jt(),ne.value.close()},secondaryAction:null},ne.value.open()}function da(C,b,T){if(b===T||!Object.prototype.hasOwnProperty.call(C,b))return C;const F={};return Object.entries(C).forEach(([Y,X])=>{Y===b?F[T]=X:F[Y]=X}),F}function sa(C){try{if(!C){Se.value=n.value?.schemaKeyEmptyError;return}if(!W.value){Se.value=n.value?.schemaKeyParentError;return}if(Object.prototype.hasOwnProperty.call(W.value,C)&&C!==te.value){const F=n.value?.schemaKeyDuplicateError?.replace("{0}",C);Se.value=F;return}Se.value=null;const b=da(W.value,te.value,C),T=v.value?.includes(".")?v.value?.split(".")?.join("."):null;B(f.value,m(T)?.slice(0,-1),b)}catch{Se.value=n.value?.schemaKeyUpdateError}}t.onMounted(()=>{de(),document?.addEventListener("keydown",C=>{g(C.target)&&(C.key==="ArrowUp"||C.key==="ArrowDown")&&C.preventDefault()}),document?.addEventListener("keyup",C=>{g(C.target)&&(C.preventDefault(),C.key==="ArrowUp"||C.key==="ArrowLeft"?ke()&&Ie("up"):(C.key==="ArrowDown"||C.key==="ArrowRight")&&ke()&&Ie("down"))})});const ma=t.computed(()=>{const C=Object.values(f.value?.properties||{}).some(F=>F.type==="object"&&F.lx?.displayType==="form"),b=Object.values(f.value?.properties||{}).some(F=>F.type==="object"&&F.lx?.displayType==="filters"),T=b&&Object.values(f.value?.properties||{}).some(F=>F.type==="object"&&F.lx?.displayType==="filters"&&Object.values(F.properties||{}).some(Y=>Y.type==="object"&&Y.lx?.displayType==="section"));return{hasForm:C,hasFilters:b,isSectionInFilterForm:T}});return(C,b)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Tn,[t.withDirectives(t.createElementVNode("div",{class:"highlight",style:t.normalizeStyle(A.value.style)},[t.createElementVNode("div",Pn,[u.value.canMoveForwardIn&&ke()?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"move-inside",variant:"icon-only",label:n.value.moveInside,kind:"ghost",onClick:b[0]||(b[0]=T=>Le())},null,8,["label"])):t.createCommentVNode("",!0),u.value.moveOut&&ke()?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,icon:"move-outside",variant:"icon-only",label:n.value.moveOutside,kind:"ghost",onClick:b[1]||(b[1]=T=>Ke("previous"))},null,8,["label"])):t.createCommentVNode("",!0),ke()?(t.openBlock(),t.createBlock(t.unref(r.LxStack),{key:2,orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[u.value.canMoveBack?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"back",variant:"icon-only",label:n.value.back,kind:"ghost",onClick:b[2]||(b[2]=T=>Ie("up"))},null,8,["label"])):t.createCommentVNode("",!0),u.value.canMoveForward?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:1,icon:"next",variant:"icon-only",label:n.value.next,kind:"ghost",onClick:b[3]||(b[3]=T=>Ie("down"))},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(M.value),1)]),t.createElementVNode("div",En,[M.value!=="LxViewLayout"?(t.openBlock(),t.createBlock(t.unref(r.LxButton),{key:0,icon:"delete",variant:"icon-only",label:n.value.delete,kind:"ghost",destructive:!0,onClick:ca},null,8,["label"])):t.createCommentVNode("",!0)])],4),[[t.vShow,A.value.visible]])]),t.createVNode(jn,{componentName:M.value,componentProps:G.value,componentPropsDefinitions:H.value,navigation:K.value,componentModel:z.value,schemaKey:te.value,schemaKeyError:Se.value,schemaInfo:ma.value,selectedTab:Ce.value,"onUpdate:selectedTab":b[4]||(b[4]=T=>Ce.value=T),texts:n.value,"onUpdate:componentModel":R,onComponentAdd:Gn,onComponentChange:Hn,onRemoveComponent:Jt,onDuplicateComponent:Wn,onExport:Qn,onImport:Un,onEditSchema:la,onEditModel:aa,onReportIssue:ra,"onUpdate:viewLayout":oa,"onUpdate:schemaKey":sa},null,8,["componentName","componentProps","componentPropsDefinitions","navigation","componentModel","schemaKey","schemaKeyError","schemaInfo","selectedTab","texts"]),t.createElementVNode("div",Dn,[t.createVNode(Rt,{schema:e.schema,modelValue:S.value,"onUpdate:modelValue":b[5]||(b[5]=T=>S.value=T),builderOptions:{useRegistry:!0}},null,8,["schema","modelValue"])]),t.createVNode(t.unref(r.LxModal),{ref_key:"exportModal",ref:J,label:n.value?.exportModal,size:"m",actionDefinitions:[{id:"close",name:n.value?.close,kind:"secondary"}]},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxToolbar),{actionDefinitions:[{id:"download",name:n.value?.download,icon:"download",kind:"primary",area:"left"},{id:"copy",name:n.value?.copy,icon:"copy"}],onActionClick:Xn},null,8,["actionDefinitions"]),t.createElementVNode("div",zn,[t.createElementVNode("pre",Vn,t.toDisplayString(JSON.stringify(f.value,null,2)),1)])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"importModal",ref:j,label:n.value?.importModal,size:"m",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:N.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:ta,onClose:b[8]||(b[8]=()=>{c.value=null,i.value=null})},{default:t.withCtx(()=>[t.createElementVNode("div",Fn,[t.createVNode(t.unref(r.LxContentSwitcher),{modelValue:re.value,"onUpdate:modelValue":b[6]||(b[6]=T=>re.value=T),items:[{id:"file",name:n.value?.importFile},{id:"text",name:n.value?.importText}]},null,8,["modelValue","items"])]),t.withDirectives(t.createElementVNode("div",null,[t.createVNode(t.unref(r.LxFileUploader),{modelValue:c.value,draggable:!0,allowedFileExtensions:[".json"],dataType:"content",texts:n.value?.fileUploader,"onUpdate:modelValue":xt},null,8,["modelValue","texts"])],512),[[t.vShow,re.value==="file"]]),t.withDirectives(t.createVNode(t.unref(r.LxTextArea),{modelValue:i.value,"onUpdate:modelValue":b[7]||(b[7]=T=>i.value=T),rows:20,invalid:!!le.value,invalidationMessage:le.value},null,8,["modelValue","invalid","invalidationMessage"]),[[t.vShow,re.value==="text"]])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"editSchemaModal",ref:P,label:n.value?.editSchemaModal,size:"l",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:!$.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:na},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextArea),{modelValue:$.value,"onUpdate:modelValue":b[9]||(b[9]=T=>$.value=T),rows:50,invalid:!!L.value,invalidationMessage:L.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxModal),{ref_key:"componentAddModal",ref:ce,label:n.value?.componentAddModal,description:n.value?.componentAddModalDescription},{default:t.withCtx(()=>[t.createElementVNode("p",Mn,t.toDisplayString(n.value?.componentAddChoice),1),t.createVNode(t.unref(r.LxList),{items:[{id:"next",name:n.value?.componentAddNext,description:n.value?.componentAddNextDescription,displayIcon:"move-outside"},{id:"inside",name:n.value?.componentAddInside,description:n.value?.componentAddInsideDescription,displayIcon:"move-inside"}],listType:"1",clickableAttribute:"id",icon:"next",onActionClick:Jn},{customItem:t.withCtx(T=>[t.createVNode(t.unref(r.LxStack),{orientation:"horizontal",verticalAlignment:"center"},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxIcon),{value:T.displayIcon},null,8,["value"]),t.createVNode(t.unref(r.LxStack),{kind:"compact"},{default:t.withCtx(()=>[t.createElementVNode("p",Nn,t.toDisplayString(T.name),1),t.createElementVNode("p",vn,t.toDisplayString(T.description),1)]),_:2},1024)]),_:2},1024)]),_:1},8,["items"])]),_:1},8,["label","description"]),t.createVNode(t.unref(r.LxModal),{ref_key:"editModelModal",ref:ft,label:n.value?.editModelModal,size:"l",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:!Me.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:ia},{default:t.withCtx(()=>[t.createVNode(t.unref(r.LxTextArea),{modelValue:Me.value,"onUpdate:modelValue":b[10]||(b[10]=T=>Me.value=T),rows:20,invalid:!!_e.value,invalidationMessage:_e.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(r.LxDialog),{ref_key:"confirmDialog",ref:ne,label:w.value?.label,description:w.value?.description,kind:w.value?.kind,actionDefinitions:[{id:"save",name:n.value?.yes,kind:"primary"},{id:"cancel",name:n.value?.no,kind:"secondary"}],buttonSecondaryIsCancel:!w.value?.secondaryAction,onActionClick:b[11]||(b[11]=T=>{T==="save"&&w.value?.primaryAction?w.value.primaryAction():T==="cancel"&&w.value?.secondaryAction&&w.value.secondaryAction()})},null,8,["label","description","kind","actionDefinitions","buttonSecondaryIsCancel"])]))}}),Gt={async install(e,h={}){const{lxOptions:s,...x}=h||{};if(kt(x),s){const{createLx:n}=await import("@dativa-lv/lx-ui");e.use(n,s)}}},qn=e=>({async install(h){h.use(Gt,e)}});pe.LxConstructor=Rn,pe.LxFilterBuilder=vt,pe.LxFormBuilder=qe,pe.LxViewBuilder=Rt,pe.createLxBuilders=qn,pe.getGlobalProperties=bt,pe.lxBuildersPlugin=Gt,pe.setGlobalProperties=kt,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})}));