@dativa-lv/lx-builders 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wntr-lx-ui.esm.js +3540 -3428
- package/dist/wntr-lx-ui.umd.js +1 -1
- package/package.json +2 -2
- package/dist/src/utils/generalUtils.d.ts +0 -11
package/dist/wntr-lx-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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"})}));
|
|
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,o){"use strict";let gt={};const kt=e=>{gt=e},bt=()=>gt,Ee=()=>({getGlobals:()=>{const h=bt();return h||null}});function St(e,h){var m=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);h&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),m.push.apply(m,x)}return m}function je(e){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?St(Object(m),!0).forEach(function(x){Qt(e,x,m[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(m)):St(Object(m)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(m,x))})}return e}function Qt(e,h,m){return h in e?Object.defineProperty(e,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):e[h]=m,e}function Bt(e){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((m,x)=>(h.includes(x)||(m[x]=t.unref(e[x])),m),{})}function Je(e){return typeof e=="function"}function Yt(e){return t.isReactive(e)||t.isReadonly(e)}function At(e,h,m){let x=e;const n=h.split(".");for(let S=0;S<n.length;S++){if(!x[n[S]])return m;x=x[n[S]]}return x}function tt(e,h,m){return t.computed(()=>e.some(x=>At(h,x,{[m]:!1})[m]))}function Ct(e,h,m){return t.computed(()=>e.reduce((x,n)=>{const S=At(h,n,{[m]:!1})[m]||[];return x.concat(S)},[]))}function pt(e,h,m,x){return e.call(x,t.unref(h),t.unref(m),x)}function wt(e){return e.$valid!==void 0?!e.$valid:!e}function Zt(e,h,m,x,n,S,z){let{$lazy:f,$rewardEarly:b}=n,P=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],H=arguments.length>8?arguments[8]:void 0,N=arguments.length>9?arguments[9]:void 0,J=arguments.length>10?arguments[10]:void 0;const G=t.ref(!!x.value),E=t.ref(0);m.value=!1;const O=t.watch([h,x].concat(P,J),()=>{if(f&&!x.value||b&&!N.value&&!m.value)return;let w;try{w=pt(e,h,H,z)}catch(F){w=Promise.reject(F)}E.value++,m.value=!!E.value,G.value=!1,Promise.resolve(w).then(F=>{E.value--,m.value=!!E.value,S.value=F,G.value=wt(F)}).catch(F=>{E.value--,m.value=!!E.value,S.value=F,G.value=!0})},{immediate:!0,deep:typeof h=="object"});return{$invalid:G,$unwatch:O}}function Xt(e,h,m,x,n,S,z,f){let{$lazy:b,$rewardEarly:P}=x;const H=()=>({}),N=t.computed(()=>{if(b&&!m.value||P&&!f.value)return!1;let J=!0;try{const G=pt(e,h,z,S);n.value=G,J=wt(G)}catch(G){n.value=G}return J});return{$unwatch:H,$invalid:N}}function Ut(e,h,m,x,n,S,z,f,b,P,H){const N=t.ref(!1),J=e.$params||{},G=t.ref(null);let E,O;e.$async?{$invalid:E,$unwatch:O}=Zt(e.$validator,h,N,m,x,G,n,e.$watchTargets,b,P,H):{$invalid:E,$unwatch:O}=Xt(e.$validator,h,m,x,G,n,b,P);const w=e.$message;return{$message:Je(w)?t.computed(()=>w(Bt({$pending:N,$invalid:E,$params:Bt(J),$model:h,$response:G,$validator:S,$propertyPath:f,$property:z}))):w||"",$params:J,$pending:N,$invalid:E,$response:G,$unwatch:O}}function It(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const h=t.unref(e),m=Object.keys(h),x={},n={},S={};let z=null;return m.forEach(f=>{const b=h[f];switch(!0){case Je(b.$validator):x[f]=b;break;case Je(b):x[f]={$validator:b};break;case f==="$validationGroups":z=b;break;case f.startsWith("$"):S[f]=b;break;default:n[f]=b}}),{rules:x,nestedValidators:n,config:S,validationGroups:z}}const _t="__root";function el(e,h,m,x,n,S,z,f,b){const P=Object.keys(e),H=x.get(n,e),N=t.ref(!1),J=t.ref(!1),G=t.ref(0);if(H){if(!H.$partial)return H;H.$unwatch(),N.value=H.$dirty.value}const E={$dirty:N,$path:n,$touch:()=>{N.value||(N.value=!0)},$reset:()=>{N.value&&(N.value=!1)},$commit:()=>{}};return P.length?(P.forEach(O=>{E[O]=Ut(e[O],h,E.$dirty,S,z,O,m,n,b,J,G)}),E.$externalResults=t.computed(()=>f.value?[].concat(f.value).map((O,w)=>({$propertyPath:n,$property:m,$validator:"$externalResults",$uid:`${n}-externalResult-${w}`,$message:O,$params:{},$response:null,$pending:!1})):[]),E.$invalid=t.computed(()=>{const O=P.some(w=>t.unref(E[w].$invalid));return J.value=O,!!E.$externalResults.value.length||O}),E.$pending=t.computed(()=>P.some(O=>t.unref(E[O].$pending))),E.$error=t.computed(()=>E.$dirty.value?E.$pending.value||E.$invalid.value:!1),E.$silentErrors=t.computed(()=>P.filter(O=>t.unref(E[O].$invalid)).map(O=>{const w=E[O];return t.reactive({$propertyPath:n,$property:m,$validator:O,$uid:`${n}-${O}`,$message:w.$message,$params:w.$params,$response:w.$response,$pending:w.$pending})}).concat(E.$externalResults.value)),E.$errors=t.computed(()=>E.$dirty.value?E.$silentErrors.value:[]),E.$unwatch=()=>P.forEach(O=>{E[O].$unwatch()}),E.$commit=()=>{J.value=!0,G.value=Date.now()},x.set(n,e,E),E):(H&&x.set(n,e,E),E)}function tl(e,h,m,x,n,S,z){const f=Object.keys(e);return f.length?f.reduce((b,P)=>(b[P]=lt({validations:e[P],state:h,key:P,parentKey:m,resultsCache:x,globalConfig:n,instance:S,externalResults:z}),b),{}):{}}function ll(e,h,m){const x=t.computed(()=>[h,m].filter(E=>E).reduce((E,O)=>E.concat(Object.values(t.unref(O))),[])),n=t.computed({get(){return e.$dirty.value||(x.value.length?x.value.every(E=>E.$dirty):!1)},set(E){e.$dirty.value=E}}),S=t.computed(()=>{const E=t.unref(e.$silentErrors)||[],O=x.value.filter(w=>(t.unref(w).$silentErrors||[]).length).reduce((w,F)=>w.concat(...F.$silentErrors),[]);return E.concat(O)}),z=t.computed(()=>{const E=t.unref(e.$errors)||[],O=x.value.filter(w=>(t.unref(w).$errors||[]).length).reduce((w,F)=>w.concat(...F.$errors),[]);return E.concat(O)}),f=t.computed(()=>x.value.some(E=>E.$invalid)||t.unref(e.$invalid)||!1),b=t.computed(()=>x.value.some(E=>t.unref(E.$pending))||t.unref(e.$pending)||!1),P=t.computed(()=>x.value.some(E=>E.$dirty)||x.value.some(E=>E.$anyDirty)||n.value),H=t.computed(()=>n.value?b.value||f.value:!1),N=()=>{e.$touch(),x.value.forEach(E=>{E.$touch()})},J=()=>{e.$commit(),x.value.forEach(E=>{E.$commit()})},G=()=>{e.$reset(),x.value.forEach(E=>{E.$reset()})};return x.value.length&&x.value.every(E=>E.$dirty)&&N(),{$dirty:n,$errors:z,$invalid:f,$anyDirty:P,$error:H,$pending:b,$touch:N,$reset:G,$silentErrors:S,$commit:J}}function lt(e){let{validations:h,state:m,key:x,parentKey:n,childResults:S,resultsCache:z,globalConfig:f={},instance:b,externalResults:P}=e;const H=n?`${n}.${x}`:x,{rules:N,nestedValidators:J,config:G,validationGroups:E}=It(h),O=je(je({},f),G),w=x?t.computed(()=>{const ae=t.unref(m);return ae?t.unref(ae[x]):void 0}):m,F=je({},t.unref(P)||{}),R=t.computed(()=>{const ae=t.unref(P);return x?ae?t.unref(ae[x]):void 0:ae}),oe=el(N,w,x,z,H,O,b,R,m),le=tl(J,w,H,z,O,b,R),Y={};E&&Object.entries(E).forEach(ae=>{let[C,u]=ae;Y[C]={$invalid:tt(u,le,"$invalid"),$error:tt(u,le,"$error"),$pending:tt(u,le,"$pending"),$errors:Ct(u,le,"$errors"),$silentErrors:Ct(u,le,"$silentErrors")}});const{$dirty:Q,$errors:T,$invalid:d,$anyDirty:r,$error:re,$pending:ne,$touch:D,$reset:$,$silentErrors:L,$commit:v}=ll(oe,le,S),ce=x?t.computed({get:()=>t.unref(w),set:ae=>{Q.value=!0;const C=t.unref(m),u=t.unref(P);u&&(u[x]=F[x]),t.isRef(C[x])?C[x].value=ae:C[x]=ae}}):null;x&&O.$autoDirty&&t.watch(w,()=>{Q.value||D();const ae=t.unref(P);ae&&(ae[x]=F[x])},{flush:"sync"});async function me(){return D(),O.$rewardEarly&&(v(),await t.nextTick()),await t.nextTick(),new Promise(ae=>{if(!ne.value)return ae(!d.value);const C=t.watch(ne,()=>{ae(!d.value),C()})})}function be(ae){return(S.value||{})[ae]}function pe(){t.isRef(P)?P.value=F:Object.keys(F).length===0?Object.keys(P).forEach(ae=>{delete P[ae]}):Object.assign(P,F)}return t.reactive(je(je(je({},oe),{},{$model:ce,$dirty:Q,$error:re,$errors:T,$invalid:d,$anyDirty:r,$pending:ne,$touch:D,$reset:$,$path:H||_t,$silentErrors:L,$validate:me,$commit:v},S&&{$getResultsForChild:be,$clearExternalResults:pe,$validationGroups:Y}),le))}class nl{constructor(){this.storage=new Map}set(h,m,x){this.storage.set(h,{rules:m,result:x})}checkRulesValidity(h,m,x){const n=Object.keys(x),S=Object.keys(m);return S.length!==n.length||!S.every(f=>n.includes(f))?!1:S.every(f=>m[f].$params?Object.keys(m[f].$params).every(b=>t.unref(x[f].$params[b])===t.unref(m[f].$params[b])):!0)}get(h,m){const x=this.storage.get(h);if(!x)return;const{rules:n,result:S}=x,z=this.checkRulesValidity(h,m,n),f=S.$unwatch?S.$unwatch:()=>({});return z?S:{$dirty:S.$dirty,$partial:!0,$unwatch:f}}}const We={COLLECT_ALL:!0,COLLECT_NONE:!1},Lt=Symbol("vuelidate#injectChildResults"),$t=Symbol("vuelidate#removeChildResults");function al(e){let{$scope:h,instance:m}=e;const x={},n=t.ref([]),S=t.computed(()=>n.value.reduce((H,N)=>(H[N]=t.unref(x[N]),H),{}));function z(H,N){let{$registerAs:J,$scope:G,$stopPropagation:E}=N;E||h===We.COLLECT_NONE||G===We.COLLECT_NONE||h!==We.COLLECT_ALL&&h!==G||(x[J]=H,n.value.push(J))}m.__vuelidateInjectInstances=[].concat(m.__vuelidateInjectInstances||[],z);function f(H){n.value=n.value.filter(N=>N!==H),delete x[H]}m.__vuelidateRemoveInstances=[].concat(m.__vuelidateRemoveInstances||[],f);const b=t.inject(Lt,[]);t.provide(Lt,m.__vuelidateInjectInstances);const P=t.inject($t,[]);return t.provide($t,m.__vuelidateRemoveInstances),{childResults:S,sendValidationResultsToParent:b,removeValidationResultsFromParent:P}}function Ot(e){return new Proxy(e,{get(h,m){return typeof h[m]=="object"?Ot(h[m]):t.computed(()=>h[m])}})}let Tt=0;function jt(e,h){var m;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:z,$externalResults:f,currentVueInstance:b}=x;const P=b||((m=t.getCurrentInstance())===null||m===void 0?void 0:m.proxy),H=P?P.$options:{};n||(Tt+=1,n=`_vuelidate_${Tt}`);const N=t.ref({}),J=new nl,{childResults:G,sendValidationResultsToParent:E,removeValidationResultsFromParent:O}=P?al({$scope:S,instance:P}):{childResults:t.ref({})};if(!e&&H.validations){const w=H.validations;h=t.ref({}),t.onBeforeMount(()=>{h.value=P,t.watch(()=>Je(w)?w.call(h.value,new Ot(h.value)):w,F=>{N.value=lt({validations:F,state:h,childResults:G,resultsCache:J,globalConfig:x,instance:P,externalResults:f||P.vuelidateExternalResults})},{immediate:!0})}),x=H.validationsConfig||x}else{const w=t.isRef(e)||Yt(e)?e:t.reactive(e||{});t.watch(w,F=>{N.value=lt({validations:F,state:h,childResults:G,resultsCache:J,globalConfig:x,instance:P??{},externalResults:f})},{immediate:!0})}return P&&(E.forEach(w=>w(N,{$registerAs:n,$scope:S,$stopPropagation:z})),t.onBeforeUnmount(()=>O.forEach(w=>w(n)))),t.computed(()=>je(je({},t.unref(N.value)),G.value))}function Dt(e,h){var m=Object.keys(e);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(e);h&&(x=x.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),m.push.apply(m,x)}return m}function Re(e){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?Dt(Object(m),!0).forEach(function(x){il(e,x,m[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(m)):Dt(Object(m)).forEach(function(x){Object.defineProperty(e,x,Object.getOwnPropertyDescriptor(m,x))})}return e}function il(e,h,m){return h in e?Object.defineProperty(e,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):e[h]=m,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 Pt(e){return typeof e=="object"?e.$valid:e}function zt(e){return e.$validator||e}function ol(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 m=Ye(h);return m.$params=Re(Re({},m.$params||{}),e),m}function rl(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 m=Ye(h);return m.$message=e,m}function cl(e){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const m=Ye(e);return Re(Re({},m),{},{$async:!0,$watchTargets:h})}function dl(e){return{$validator(h){for(var m=arguments.length,x=new Array(m>1?m-1:0),n=1;n<m;n++)x[n-1]=arguments[n];return t.unref(h).reduce((S,z,f)=>{const b=Object.entries(z).reduce((P,H)=>{let[N,J]=H;const G=e[N]||{},E=Object.entries(G).reduce((O,w)=>{let[F,R]=w;const le=zt(R).call(this,J,z,f,...x),Y=Pt(le);if(O.$data[F]=le,O.$data.$invalid=!Y||!!O.$data.$invalid,O.$data.$error=O.$data.$invalid,!Y){let Q=R.$message||"";const T=R.$params||{};typeof Q=="function"&&(Q=Q({$pending:!1,$invalid:!Y,$params:T,$model:J,$response:le})),O.$errors.push({$property:N,$message:Q,$params:T,$response:le,$model:J,$pending:!1,$validator:F})}return{$valid:O.$valid&&Y,$data:O.$data,$errors:O.$errors}},{$valid:!0,$data:{},$errors:[]});return P.$data[N]=E.$data,P.$errors[N]=E.$errors,{$valid:P.$valid&&E.$valid,$data:P.$data,$errors:P.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:S.$valid&&b.$valid,$data:S.$data.concat(b.$data),$errors:S.$errors.concat(b.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:h=>{let{$response:m}=h;return m?m.$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 De(){for(var e=arguments.length,h=new Array(e),m=0;m<e;m++)h[m]=arguments[m];return x=>(x=t.unref(x),!Ve(x)||h.every(n=>(n.lastIndex=0,n.test(x))))}var ee=Object.freeze({__proto__:null,forEach:dl,len:at,normalizeValidatorObject:Ye,regex:De,req:Ve,unwrap:t.unref,unwrapNormalizedValidator:zt,unwrapValidatorResponse:Pt,withAsync:cl,withMessage:rl,withParams:ol});De(/^[a-zA-Z]*$/),De(/^[a-zA-Z0-9]*$/),De(/^\d*(\.\d+)?$/),De(/^(?:[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 sl(e){return h=>!Ve(h)||at(h)<=t.unref(e)}function Ze(e){return{$validator:sl(e),$message:h=>{let{$params:m}=h;return`The maximum length allowed is ${m.max}`},$params:{max:e,type:"maxLength"}}}function ml(e){return h=>!Ve(h)||at(h)>=t.unref(e)}function Xe(e){return{$validator:ml(e),$message:h=>{let{$params:m}=h;return`This field should be at least ${m.min} characters long`},$params:{min:e,type:"minLength"}}}function ul(e){return typeof e=="string"&&(e=e.trim()),Ve(e)}var Et={$validator:ul,$message:"Value is required",$params:{type:"required"}};De(/^(?:(?:(?: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 xl(e){return h=>!Ve(h)||(!/\s/.test(h)||h instanceof Date)&&+h>=+t.unref(e)}function Vt(e){return{$validator:xl(e),$message:h=>{let{$params:m}=h;return`The minimum value allowed is ${m.min}`},$params:{min:e,type:"minValue"}}}function fl(e){return h=>!Ve(h)||(!/\s/.test(h)||h instanceof Date)&&+h<=+t.unref(e)}var Mt=(e=>({$validator:fl(e),$message:h=>{let{$params:m}=h;return`The maximum value allowed is ${m.max}`},$params:{max:e,type:"maxValue"}}));De(/(^[0-9]*$)|(^-[0-9]+$)/),De(/^[-]?\d*(\.\d+)?$/);const yl=[{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 hl(e,h){return h.includes(e?.type)}function Ft(e,h={}){const m=e?.lx?.displayType;if(!m||(h?.excludedDisplayTypes||[]).includes(m))return null;const n=yl.find(S=>S.displayType===m);return n&&hl(e,n.types)?n.component:null}const X={__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 m(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,z){return o.lxFormatUtils.formatValue(S?.[z]||n?.lx?.value,m(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(o.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(o.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(o.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(o.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))}},gl={class:"appendable-list-remove-button-wrapper"},kl={class:"appendable-list-remove"},bl={__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 m=e,x=h,n=t.computed({get(){return m.modelValue},set(P){x("update:modelValue",P)}}),S={removeItem:"Dzēst ierakstu",addButtonLabel:"Pievienot ierakstu"},z=t.computed(()=>o.lxGeneralUtils.getDisplayTexts(m.texts,S));function f(P){n.value.splice(P,1)}function b(){let P=[];m.modelValue&&(P=[...n.value]),P.push(""),n.value=P}return t.onMounted(()=>{n.value=m.modelValue}),(P,H)=>(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,(N,J)=>(t.openBlock(),t.createElementBlock("div",{key:J,class:"lx-appendable-list-item"},[t.createVNode(t.unref(o.LxForm),{kind:"stripped",columnCount:e.columnCount,"required-mode":m.requiredMode},{default:t.withCtx(()=>[t.renderSlot(P.$slots,"customItem",t.mergeProps({ref_for:!0},{item:N,index:J}))]),_:2},1032,["columnCount","required-mode"]),t.createElementVNode("div",gl,[t.createElementVNode("div",kl,[e.readOnly?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"remove-item",variant:"icon-only",label:z.value.removeItem,destructive:!0,kind:"ghost",onClick:G=>f(J)},null,8,["label","onClick"]))])])]))),128)),t.createElementVNode("div",null,[!e.readOnly&&e.canAddItems?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,kind:"tertiary",label:z.value.addButtonLabel,icon:"add-item",onClick:b},null,8,["label"])):t.createCommentVNode("",!0)])],2))}},Sl={key:0},Bl={key:1},Al={key:0},Cl={key:1},pl={key:0},wl={key:1},Ll={key:2},$l={key:7},Ol={key:9},Tl={key:0},jl={key:11},Dl={key:0},Pl={key:0},zl={key:0},El={key:1},Vl={key:0},Ml={key:1},Fl={key:0},vl={key:1},Nl={key:2},Rl={key:42,class:"lx-data"},Fe={__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 m=e,x=h,n=t.computed({get(){return m.modelValue?m.modelValue:{}},set(u){x("update:modelValue",u)}}),S=t.ref({}),z=t.ref({});function f(u){return u?.lx?.placeholder?u?.lx?.placeholder:Array.isArray(u?.examples)?u?.examples[0]:u?.examples}function b(u){return u?.readOnly===null||u?.readOnly===void 0?m.readOnly:u?.readOnly}function P(u,a){return!u&&a==="number"?"decimal":!u&&a==="string"?"default":u}function H(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 N(u){return u?.type==="string"&&u?.lx?.kind!=="multiline"&&!u?.lx?.variant&&H(u)&&!u?.enum||u?.type==="number"&&!u?.lx?.variant&&H(u)&&!u?.enum?"textInputDefault":u?.type==="string"&&u?.lx?.kind==="multiline"?"textArea":u?.type==="string"&&!H(u)?"dateTimePicker":""}function J(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 G(u,a){return u?.lx?.displayType==="map"&&u?.type==="object"?"map":u?.type==="object"&&n.value?.[a]!==void 0&&n.value?.[a]!==null&&u?.lx?.displayType==="modal"?"objectList":u?.type==="object"&&!n.value?.[a]&&u?.lx?.displayType==="modal"?"objectButton":u?.type==="object"&&n.value?.[a]!==void 0&&n.value?.[a]!==null?"dataBlock":""}function E(u){return Ft(u,{excludedDisplayTypes:["stack"]})}function O(u,a,l=!1){if(u?.lx?.wrapper==="placeholder")return"lxPlaceholder";const i=E(u);return i||(N(u)==="textInputDefault"?"textInputDefault":N(u)==="textArea"?"textArea":N(u)==="dateTimePicker"?"dateTimePicker":u?.type==="integer"?"textInputInteger":u?.type==="boolean"?"toggle":(u?.type==="string"&&(u?.lx?.variant||u?.enum)||u?.type==="array")&&J(u)!==""?J(u):G(u,a)!==""?G(u,a):(a&&l&&o.lxDevUtils.log(`Property '${a}' couldn't be rendered`,Ee().getGlobals()?.environment,"warn"),"lxPlaceholder"))}const w=t.computed(()=>O(m.row,m.name,!0));function F(u,a,l,i){x("rowActionClick",u,a,m.parentName?`${m.parentName}.${l}`:l,i)}function R(u,a,l=void 0,i=void 0){x("emit",u,m.parentName?`${m.parentName}.${a}`:a,l,i)}function oe(u){const a=[];return u?.enum?.forEach(l=>{const i={id:l,name:l};a.push(i)}),a}function le(u){delete n.value[u]}function Y(u){const a={};Object.entries(m.displaySchema?.properties[u])?.forEach(([l])=>{a[l]=""}),n.value[u]=a}function Q(u,a){n.value[a]||Y(a),S.value[u].open()}function T(u,a){return u?.find(i=>i===a)?!0:null}function d(u,a,l,i=void 0){if(i&&i?.length>0)R(u,l);else if(u==="remove")if(m.displaySchema?.properties[l]?.lx?.idAttribute){const c=n.value[l].findIndex(y=>y[m.displaySchema?.properties[l]?.lx?.idAttribute]===a);c!==-1&&n.value[l].splice(c,1)}else{const c=n.value[l].findIndex(y=>y?.id===a);c!==-1&&n.value[l].splice(c,1)}}function r(u){n.value[u]||(n.value[u]=[]),n.value[u].push(z.value[`${m.id}-${u}`]),S.value[`${m.id}-${u}`].close()}function re(u,a,l,i=void 0){if(i&&i?.length>0&&R(u,l),u==="click"){let c={};m.displaySchema?.properties[l]?.lx?.idAttribute?c=n.value[l].find(s=>s[m.displaySchema?.properties[l]?.lx?.idAttribute]===a):c=n.value[l].find(s=>s.id===a);const y=`${m.id}-${l}`;z.value[y]=c,S.value[y].open()}else u==="remove"&&d(u,a,l)}function ne(u){const a=[];return u&&Object.entries(u)?.forEach(([l,i])=>{const c={};c.id=l,c.attributeName=l,c.name=i?.title,c.size=i?.size,c.kind=i?.kind,i.type==="string"?c.type="default":i.type==="integer"?c.type="number":i.type==="number"?c.type="decimal":i.type==="boolean"&&(c.type="bool"),c.type&&a.push(c)}),a}const D=t.ref(!1);function $(u){D.value=!0;const a=t.ref({}),l=`${m.id}-${u}`;z.value[l]=a,S.value[l].open()}function L(u,a,l,i,c=void 0){c&&c?.length>0?R("actionClick",i,u,a):(u==="open"&&re("click",a,i),u==="remove"&&d(u,a,i))}const v=t.computed(()=>{if(m.validations?.[m.name])return!0;if(!m.vv?.value?.modelClone)return!1;if(m.parentName){const u=m.parentName.split(".");let a=m.vv.value.modelClone;return a=u.reduce((l,i)=>l?l[i]:void 0,a),a?.[m.name]?.$error}return m.vv.value.modelClone?.[m.name]?.$error}),ce=t.computed(()=>{if(m.validations?.[m.name])return m.validations?.[m.name];let u=null;if(!m.vv?.value?.modelClone)return null;if(m.parentName){const a=m.parentName.split(".");let l=m.vv.value.modelClone;return l=a.reduce((i,c)=>i?i[c]:void 0,l),l?.[m.name]?.$errors?.[0]?.$message}return u=m.vv.value.modelClone?.[m.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 be=t.computed(()=>{const u=[{id:"saveElement",name:m.texts.saveElement,kind:"primary"}];return D.value?u:null});function pe(u,a){u==="saveElement"&&r(a)}const ae=t.computed(()=>m.builderOptions?.schemaPath?`${m.builderOptions?.schemaPath}.${m.name}`:m.name),C=t.computed(()=>({componentStack:m.builderOptions?.componentStack,schemaPath:ae.value,useRegistry:m.builderOptions?.useRegistry}));return(u,a)=>w.value==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,id:`${e.id}-${e.name}`,mask:P(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:b(e.displaySchema?.properties[e.name]),invalid:v.value,"invalidation-message":ce.value,"custom-mask-value":e.displaySchema?.properties[e.name]?.lx?.customMaskValue,autocomplete:e.displaySchema?.properties[e.name]?.lx?.autocomplete,options:e.displaySchema?.properties[e.name]?.lx?.options,modelValue:n.value[e.name],"onUpdate:modelValue":a[0]||(a[0]=l=>n.value[e.name]=l),builderOptions:C.value,onKeyup:a[1]||(a[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","autocomplete","options","modelValue","builderOptions"])):w.value==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.displaySchema?.properties[e.name]),invalid:v.value,"invalidation-message":ce.value,modelValue:n.value[e.name],"onUpdate:modelValue":a[2]||(a[2]=l=>n.value[e.name]=l),builderOptions:C.value,onKeyup:a[3]||(a[3]=t.withKeys(l=>x("filterBuilderFilter"),["enter"]))},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","invalid","invalidation-message","modelValue","builderOptions"])):w.value==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.row),invalid:v.value,"invalidation-message":ce.value,builderOptions:C.value,modelValue:n.value[e.name],"onUpdate:modelValue":a[4]||(a[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"])):w.value==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.displaySchema?.properties[e.name]),invalid:v.value,"invalidation-message":ce.value,modelValue:n.value[e.name],"onUpdate:modelValue":a[5]||(a[5]=l=>n.value[e.name]=l),builderOptions:C.value,onKeyup:a[6]||(a[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"])):w.value==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.displaySchema?.properties[e.name]),invalid:v.value,"invalidation-message":ce.value,builderOptions:C.value,modelValue:n.value[e.name],"onUpdate:modelValue":a[7]||(a[7]=l=>n.value[e.name]=l)},{on:t.withCtx(()=>[e.row?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",Sl,t.toDisplayString(e.row?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",Bl,"Jā"))]),off:t.withCtx(()=>[e.row?.lx?.labelOff?(t.openBlock(),t.createElementBlock("span",Al,t.toDisplayString(e.row?.lx?.labelOff),1)):(t.openBlock(),t.createElementBlock("span",Cl,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",pl,t.toDisplayString(e.row?.lx?.labelIndeterminate),1)):b(e.displaySchema?.properties[e.name])?(t.openBlock(),t.createElementBlock("span",wl,a[97]||(a[97]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Ll,"—"))]),_:1},8,["id","size","disabled","tooltip","readOnly","invalid","invalidation-message","builderOptions","modelValue"])):w.value==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(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,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,invalid:v.value,"invalidation-message":ce.value,builderOptions:C.value,modelValue:n.value[e.name],"onUpdate:modelValue":a[8]||(a[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(o.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,(i,c)=>(t.openBlock(),t.createBlock(X,{key:c,itemValue:i,itemName:c,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,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M,item:l?.[c]?.[s]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:y,itemName:s,item:l?.[c]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:i,itemName:c,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","stickyToolbar","invalid","invalidation-message","builderOptions","modelValue"])):w.value==="dataBlock"?(t.openBlock(),t.createBlock(t.unref(o.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,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,class:"form-builder-data-block",onActionClick:a[9]||(a[9]=(l,i)=>R("actionClick",e.name,l,i))},{default:t.withCtx(()=>[t.createVNode(t.unref(o.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,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[O(l,i)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:l?.title||i,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(c,y,s)=>F(y,s,`${e.name}.${i}`,void 0)},{default:t.withCtx(()=>[O(l,i)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,mask:P(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:b(l),"custom-mask-value":l?.lx?.customMaskValue,autocomplete:l?.lx?.autocomplete,options:l?.lx?.options,modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,i)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l)},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly"])):O(l,i)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},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,i)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.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,stickyToolbar:l?.lx?.stickyToolbar,readOnly:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(c=>[t.createVNode(t.unref(o.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,s)=>(t.openBlock(),t.createBlock(X,{key:s,itemValue:y,itemName:s,item:c,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(c=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:B?.lx?.orientation,kind:B?.lx?.kind,mode:B?.lx?.mode,"horizontal-alignment":B?.lx?.horizontalAlignment,"vertical-alignment":B?.lx?.verticalAlignment,"horizontal-config":B?.lx?.horizontalConfig,"vertical-config":B?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,item:c?.[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(X,{key:1,itemValue:B,itemName:M,item:c?.[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(X,{key:1,itemValue:y,itemName:s,item:c},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","stickyToolbar","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","actionDefinitions"])):w.value==="objectButton"||w.value==="objectList"?(t.openBlock(),t.createElementBlock("div",$l,[w.value==="objectList"?(t.openBlock(),t.createBlock(t.unref(o.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:a[10]||(a[10]=l=>le(e.name)),onClick:a[11]||(a[11]=l=>Q(`${e.id}-${e.name}`,e.name))},null,8,["value","label","description"])):t.createCommentVNode("",!0),w.value==="objectButton"?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:1,label:e.texts?.addObject,icon:"add-item",kind:"ghost",onClick:a[12]||(a[12]=l=>Q(`${e.id}-${e.name}`,e.name))},null,8,["label"])):t.createCommentVNode("",!0),t.createVNode(t.unref(o.LxModal),{id:`${e.id}-${e.name}`,ref:l=>S.value[`${e.id}-${e.name}`]=l},{default:t.withCtx(()=>[t.createVNode(t.unref(o.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,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[O(l,i)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:l?.title?l?.title:i,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(c,y,s)=>F(y,s,`${e.name}.${i}`,void 0)},{default:t.withCtx(()=>[O(l,i)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,mask:P(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:b(l),"custom-mask-value":l?.lx?.customMaskValue,autocomplete:l?.lx?.autocomplete,options:l?.lx?.options,modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,i)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},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,i)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),"search-attributes":l?.lx?.searchAttributes,"has-select-all":l?.lx?.hasSelectAll,"read-only-render-type":l?.lx?.readOnlyRenderType,stickyToolbar:l?.lx?.stickyToolbar,modelValue:n.value[e.name][i],"onUpdate:modelValue":c=>n.value[e.name][i]=c},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(c=>[t.createVNode(t.unref(o.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,s)=>(t.openBlock(),t.createBlock(X,{key:s,itemValue:y,itemName:s,item:c,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(c=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:B?.lx?.orientation,kind:B?.lx?.kind,mode:B?.lx?.mode,"horizontal-alignment":B?.lx?.horizontalAlignment,"vertical-alignment":B?.lx?.verticalAlignment,"horizontal-config":B?.lx?.horizontalConfig,"vertical-config":B?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,item:c?.[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(X,{key:1,itemValue:B,itemName:M,item:c?.[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(X,{key:1,itemValue:y,itemName:s,item:c},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","stickyToolbar","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","actionDefinitions","onActionClick"]))],64))),128))]),_:1},8,["column-count"])]),_:1},8,["id"])])):w.value==="arrayList"?(t.openBlock(),t.createBlock(t.unref(o.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,toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,actionsLayout:e.displaySchema?.properties[e.name]?.lx?.actionsLayout,emptyStateActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.emptyStateActionDefinitions,showLoadMore:e.displaySchema?.properties[e.name]?.lx?.showLoadMore,hasSelecting:e.displaySchema?.properties[e.name]?.lx?.hasSelecting,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,selectionActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.selectionActionDefinitions,itemStates:e.displaySchema?.properties[e.name]?.lx?.itemStates,mode:e.displaySchema?.properties[e.name]?.lx?.mode,searchMode:e.displaySchema?.properties[e.name]?.lx?.searchMode,hasSkipLink:e.displaySchema?.properties[e.name]?.lx?.hasSkipLink,hasVirtualization:e.displaySchema?.properties[e.name]?.lx?.hasVirtualization,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:a[13]||(a[13]=(l,i)=>d(l,i,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions)),onToolbarActionClick:a[14]||(a[14]=(l,i)=>R("toolbarActionClick",e.name,l,i)),onEmptyStateActionClick:a[15]||(a[15]=(l,i)=>R("emptyStateActionClick",e.name,l,i)),onSelectionChange:a[16]||(a[16]=l=>R("selectionChange",e.name,l)),onSelectionActionClick:a[17]||(a[17]=(l,i)=>R("selectionActionClick",e.name,l,i)),onLoadMore:a[18]||(a[18]=()=>R("loadMore",e.name)),"onUpdate:searchString":a[19]||(a[19]=l=>R("update:searchString",e.name,l)),"onUpdate:itemStates":a[20]||(a[20]=l=>R("update:itemStates",e.name,l)),onSearch:a[21]||(a[21]=l=>R("search",e.name,l))},t.createSlots({_:2},[e.displaySchema?.properties[e.name]?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(l=>[t.createVNode(t.unref(o.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,(i,c)=>(t.openBlock(),t.createBlock(X,{key:c,itemValue:i,itemName:c,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,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M,item:l?.[c]?.[s]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:y,itemName:s,item:l?.[c]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:i,itemName:c,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","toolbarActionDefinitions","actionsLayout","emptyStateActionDefinitions","showLoadMore","hasSelecting","selectionKind","selectionActionDefinitions","itemStates","mode","searchMode","hasSkipLink","hasVirtualization","stickyToolbar","texts"])):w.value==="arrayListModal"?(t.openBlock(),t.createElementBlock("div",Ol,[t.createVNode(t.unref(o.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,toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,actionsLayout:e.displaySchema?.properties[e.name]?.lx?.actionsLayout,emptyStateActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.emptyStateActionDefinitions,showLoadMore:e.displaySchema?.properties[e.name]?.lx?.showLoadMore,hasSelecting:e.displaySchema?.properties[e.name]?.lx?.hasSelecting,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,selectionActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.selectionActionDefinitions,itemStates:e.displaySchema?.properties[e.name]?.lx?.itemStates,mode:e.displaySchema?.properties[e.name]?.lx?.mode,searchMode:e.displaySchema?.properties[e.name]?.lx?.searchMode,hasSkipLink:e.displaySchema?.properties[e.name]?.lx?.hasSkipLink,hasVirtualization:e.displaySchema?.properties[e.name]?.lx?.hasVirtualization,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:a[23]||(a[23]=(l,i)=>re(l,i,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions)),onToolbarActionClick:a[24]||(a[24]=(l,i)=>R("toolbarActionClick",e.name,l,i)),onEmptyStateActionClick:a[25]||(a[25]=(l,i)=>R("emptyStateActionClick",e.name,l,i)),onSelectionChange:a[26]||(a[26]=l=>R("selectionChange",e.name,l)),onSelectionActionClick:a[27]||(a[27]=(l,i)=>R("selectionActionClick",e.name,l,i)),onLoadMore:a[28]||(a[28]=()=>R("loadMore",e.name)),"onUpdate:searchString":a[29]||(a[29]=l=>R("update:searchString",e.name,l)),"onUpdate:itemStates":a[30]||(a[30]=l=>R("update:itemStates",e.name,l)),onSearch:a[31]||(a[31]=l=>R("search",e.name,l))},t.createSlots({toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:a[22]||(a[22]=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(o.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,(i,c)=>(t.openBlock(),t.createBlock(X,{key:c,itemValue:i,itemName:c,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,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M,item:l?.[c]?.[s]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:y,itemName:s,item:l?.[c]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:i,itemName:c,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","toolbarActionDefinitions","actionsLayout","emptyStateActionDefinitions","showLoadMore","hasSelecting","selectionKind","selectionActionDefinitions","itemStates","mode","searchMode","hasSkipLink","hasVirtualization","stickyToolbar","texts"]),t.createVNode(t.unref(o.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:be.value,onClose:a[32]||(a[32]=l=>D.value=!1),onActionClick:a[33]||(a[33]=l=>pe(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(o.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,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[O(l,i)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:l?.title?l?.title:i,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,actionDefinitions:l?.lx?.actionDefinitions,onActionClick:(c,y,s)=>F(y,s,`${e.name}.${i}`,void 0)},{default:t.withCtx(()=>[O(l,i)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,mask:P(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:b(l),"custom-mask-value":l?.lx?.customMaskValue,autocomplete:l?.lx?.autocomplete,options:l?.lx?.options,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,i)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},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,i)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,stickyToolbar:l?.lx?.stickyToolbar,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(c=>[t.createVNode(t.unref(o.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,s)=>(t.openBlock(),t.createBlock(X,{key:s,itemValue:y,itemName:s,item:c,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(c=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:B?.lx?.orientation,kind:B?.lx?.kind,mode:B?.lx?.mode,"horizontal-alignment":B?.lx?.horizontalAlignment,"vertical-alignment":B?.lx?.verticalAlignment,"horizontal-config":B?.lx?.horizontalConfig,"vertical-config":B?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,item:c?.[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(X,{key:1,itemValue:B,itemName:M,item:c?.[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(X,{key:1,itemValue:y,itemName:s,item:c},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","stickyToolbar","modelValue","onUpdate:modelValue"])):O(l,i)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(o.LxAppendableList),{key:6,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},{customItem:t.withCtx(({item:c,index:y})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(s,B)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:B},[O(s,B)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:s?.title?s?.title:B,rowSpan:s?.lx?.rowSpan,columnSpan:s?.lx?.columnSpan,required:T(e.row?.items?.required,B),inputId:`${e.name}-${B}-${y}`,"action-definitions":s?.lx?.actionDefinitions,onActionClick:(M,Z,U)=>F(Z,U,`${e.name}.${B}`,y)},{default:t.withCtx(()=>[O(s,B)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,id:`${e.name}-${B}-${y}`,mask:P(s?.lx?.mask,s?.type),maxlength:s?.maxLength,kind:s?.lx?.kind,tooltip:s?.lx?.tooltip,scale:s?.lx?.scale,disabled:s?.lx?.disabled,uppercase:s?.lx?.uppercase,"convert-to-string":s?.lx?.convertToString,placeholder:f(s),signed:s?.lx?.signed,readOnly:b(s),"custom-mask-value":s?.lx?.customMaskValue,autocomplete:s?.lx?.autocomplete,options:s?.lx?.options,modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):O(s,B)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.LxTextArea),{key:1,id:`${e.name}-${B}-${y}`,maxlength:s?.maxLength,placeholder:f(s),rows:s?.lx?.rows,"dynamic-height":s?.lx?.dynamicHeight,disabled:s?.lx?.disabled,tooltip:s?.lx?.tooltip,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxDateTimePicker),{key:2,id:`${e.name}-${B}-${y}`,kind:s?.format==="date-time"?"dateTime":s?.format,placeholder:f(s),tooltip:s?.lx?.tooltip,"min-date":s?.lx?.minDate,"max-date":s?.lx?.maxDate,required:s?.lx?.required,disabled:s?.lx?.disabled,"time-adjust":s?.lx?.timeAdjust,"clear-if-not-exact":s?.lx?.clearIfNotExact,locale:s?.lx?.locale,"special-dates":s?.lx?.specialDates,dictionary:s?.lx?.dictionary,variant:s?.lx?.variant,cadenceOfMinutes:s?.lx?.cadenceOfMinutes,cadenceOfSeconds:s?.lx?.cadenceOfSeconds,texts:s?.lx?.texts,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=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(s,B)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:3,id:`${e.name}-${B}-${y}`,mask:"integer",maxlength:s?.maxLength,kind:s?.lx?.kind,tooltip:s?.lx?.tooltip,scale:s?.lx?.scale,disabled:s?.lx?.disabled,uppercase:s?.lx?.uppercase,"convert-to-string":s?.lx?.convertToString,placeholder:f(s),readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:4,id:`${e.name}-${B}-${y}`,size:s?.lx?.size,disabled:s?.lx?.disabled,tooltip:s?.lx?.tooltip,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},{default:t.withCtx(()=>[s?.lx?.label?(t.openBlock(),t.createElementBlock("span",Tl,t.toDisplayString(s?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxValuePicker),{key:5,id:`${e.name}-${B}-${y}`,selectionKind:s?.type==="array"?"multiple":"single",items:s?.lx?.items||oe(s),"id-attribute":s?.lx?.idAttribute,"name-attribute":s?.lx?.nameAttribute,"icon-attribute":s?.lx?.iconAttribute,"icon-set-attribute":s?.lx?.iconSetAttribute,"category-attribute":s?.lx?.categoryAttribute,"description-attribute":s?.lx?.descriptionAttribute,variant:me(s),"has-search":s?.lx?.hasSearch,"always-as-array":s?.lx?.alwaysAsArray,nullable:s?.lx?.nullable,tooltip:s?.lx?.tooltip,texts:s?.lx?.texts,placeholder:f(s),disabled:s?.lx?.disabled,readOnly:b(s),"has-select-all":s?.lx?.hasSelectAll,"search-attributes":s?.lx?.searchAttributes,"read-only-render-type":s?.lx?.readOnlyRenderType,stickyToolbar:s?.lx?.stickyToolbar,modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},t.createSlots({_:2},[s?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(M=>[t.createVNode(t.unref(o.LxStack),{orientation:s?.lx?.stack?.orientation,kind:s?.lx?.stack?.kind,mode:s?.lx?.stack?.mode||"grid","horizontal-alignment":s?.lx?.stack?.horizontalAlignment,"vertical-alignment":s?.lx?.stack?.verticalAlignment,"horizontal-config":s?.lx?.stack?.horizontalConfig,"vertical-config":s?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s?.lx?.customItems?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,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"}:s?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(M=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s?.lx?.customItems?.properties,(Z,U)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:U},[Z?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:Z?.lx?.orientation,kind:Z?.lx?.kind,mode:Z?.lx?.mode,"horizontal-alignment":Z?.lx?.horizontalAlignment,"vertical-alignment":Z?.lx?.verticalAlignment,"horizontal-config":Z?.lx?.horizontalConfig,"vertical-config":Z?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z?.properties,(de,ge)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ge},[de?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,A)=>(t.openBlock(),t.createBlock(X,{key:A,itemValue:g,itemName:A,item:M?.[i]?.[ge]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:de,itemName:ge,item:M?.[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(X,{key:1,itemValue:Z,itemName:U,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","stickyToolbar","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"])])):w.value==="arrayTable"?(t.openBlock(),t.createBlock(t.unref(o.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:ne(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:a[34]||(a[34]=(l,i,c)=>R("actionClick",e.name,l,i)),onToolbarActionClick:a[35]||(a[35]=l=>R("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"])):w.value==="arrayTableModal"?(t.openBlock(),t.createElementBlock("div",jl,[t.createVNode(t.unref(o.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:ne(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,hasVirtualization:e.displaySchema?.properties[e.name]?.lx?.hasVirtualization,stickyHeader:e.displaySchema?.properties[e.name]?.lx?.stickyHeader,hasPaging:e.displaySchema?.properties[e.name]?.lx?.hasPaging,hasSelecting:e.displaySchema?.properties[e.name]?.lx?.hasSelecting,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,sortingSide:e.displaySchema?.properties[e.name]?.lx?.sortingSide,emptyStateActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.emptyStateActionDefinitions,emptyStateIcon:e.displaySchema?.properties[e.name]?.lx?.emptyStateIcon,hasSearch:e.displaySchema?.properties[e.name]?.lx?.hasSearch,searchMode:e.displaySchema?.properties[e.name]?.lx?.searchMode,searchString:e.displaySchema?.properties[e.name]?.lx?.searchString,locale:e.displaySchema?.properties[e.name]?.lx?.locale,fullBleed:e.displaySchema?.properties[e.name]?.lx?.fullBleed,badgeDefinitions:e.displaySchema?.properties[e.name]?.lx?.badgeDefinitions,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:a[37]||(a[37]=(l,i,c)=>L(l,i,c,e.name,e.displaySchema?.properties[e.name]?.lx?.actionDefinitions)),onToolbarActionClick:a[38]||(a[38]=l=>R("toolbarActionClick",e.name,l)),onSelectionActionClick:a[39]||(a[39]=(l,i)=>R("selectionActionClick",e.name,l,i)),"onUpdate:searchString":a[40]||(a[40]=l=>R("update:searchString",e.name,l)),onSearch:a[41]||(a[41]=l=>R("search",e.name,l)),onSelectPage:a[42]||(a[42]=l=>R("selectPage",e.name,l)),onSortingChange:a[43]||(a[43]=l=>R("sortingChange",e.name,l)),onSelectionChange:a[44]||(a[44]=l=>R("selectionChange",e.name,l)),onItemsPerPageChange:a[45]||(a[45]=l=>R("itemsPerPageChange",e.name,l)),onEmptyStateActionClick:a[46]||(a[46]=l=>R("emptyStateActionClick",e.name,l))},{toolbar:t.withCtx(()=>[e.displaySchema?.properties[e.name]?.lx?.hideAddButton?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"add-item",label:e.texts?.addElement,kind:"ghost",onClick:a[36]||(a[36]=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","hasVirtualization","stickyHeader","hasPaging","hasSelecting","selectionKind","sortingSide","emptyStateActionDefinitions","emptyStateIcon","hasSearch","searchMode","searchString","locale","fullBleed","badgeDefinitions","stickyToolbar","texts"]),t.createVNode(t.unref(o.LxModal),{ref:l=>S.value[`${e.id}-${e.name}`]=l,actionDefinitions:be.value,onClose:a[47]||(a[47]=l=>D.value=!1),onActionClick:a[48]||(a[48]=l=>pe(l,e.name))},{default:t.withCtx(()=>[t.createVNode(t.unref(o.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,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[O(l,i)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:l?.title?l?.title:i,rowSpan:l?.lx?.rowSpan,columnSpan:l?.lx?.columnSpan,"action-definitions":l?.lx?.actionDefinitions,onActionClick:(c,y,s)=>F(y,s,`${e.name}.${i}`,void 0)},{default:t.withCtx(()=>[O(l,i)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,mask:P(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:b(l),"custom-mask-value":l?.lx?.customMaskValue,autocomplete:l?.lx?.autocomplete,options:l?.lx?.options,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),O(l,i)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:3,size:l?.lx?.size,disabled:l?.lx?.disabled,tooltip:l?.lx?.tooltip,readOnly:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},null,8,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(l,i)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},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,i)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(l),"has-select-all":l?.lx?.hasSelectAll,"search-attributes":l?.lx?.searchAttributes,"read-only-render-type":l?.lx?.readOnlyRenderType,stickyToolbar:l?.lx?.stickyToolbar,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},t.createSlots({_:2},[l?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(c=>[t.createVNode(t.unref(o.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,s)=>(t.openBlock(),t.createBlock(X,{key:s,itemValue:y,itemName:s,item:c,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(c=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.lx?.customItems?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:B?.lx?.orientation,kind:B?.lx?.kind,mode:B?.lx?.mode,"horizontal-alignment":B?.lx?.horizontalAlignment,"vertical-alignment":B?.lx?.verticalAlignment,"horizontal-config":B?.lx?.horizontalConfig,"vertical-config":B?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,item:c?.[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(X,{key:1,itemValue:B,itemName:M,item:c?.[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(X,{key:1,itemValue:y,itemName:s,item:c},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","stickyToolbar","modelValue","onUpdate:modelValue"])):O(l,i)==="appendableList"?(t.openBlock(),t.createBlock(t.unref(o.LxAppendableList),{key:6,modelValue:z.value[`${e.id}-${e.name}`][i],"onUpdate:modelValue":c=>z.value[`${e.id}-${e.name}`][i]=c},{customItem:t.withCtx(({item:c,index:y})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l?.items?.properties,(s,B)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:B},[O(s,B)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:s?.title?s?.title:B,rowSpan:s?.lx?.rowSpan,columnSpan:s?.lx?.columnSpan,required:T(e.row?.items?.required,B),inputId:`${e.name}-${B}-${y}`,"action-definitions":s?.lx?.actionDefinitions,onActionClick:(M,Z,U)=>F(Z,U,`${e.name}.${B}`,y)},{default:t.withCtx(()=>[O(s,B)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,id:`${e.name}-${B}-${y}`,mask:P(s?.lx?.mask,s?.type),maxlength:s?.maxLength,kind:s?.lx?.kind,tooltip:s?.lx?.tooltip,scale:s?.lx?.scale,disabled:s?.lx?.disabled,uppercase:s?.lx?.uppercase,"convert-to-string":s?.lx?.convertToString,placeholder:f(s),signed:s?.lx?.signed,readOnly:b(s),"custom-mask-value":s?.lx?.customMaskValue,autocomplete:s?.lx?.autocomplete,options:s?.lx?.options,modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):O(s,B)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.LxTextArea),{key:1,id:`${e.name}-${B}-${y}`,maxlength:s?.maxLength,placeholder:f(s),rows:s?.lx?.rows,"dynamic-height":s?.lx?.dynamicHeight,disabled:s?.lx?.disabled,tooltip:s?.lx?.tooltip,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxDateTimePicker),{key:2,id:`${e.name}-${B}-${y}`,kind:s?.format,placeholder:f(s),tooltip:s?.lx?.tooltip,"min-date":s?.lx?.minDate,"max-date":s?.lx?.maxDate,required:s?.lx?.required,disabled:s?.lx?.disabled,"time-adjust":s?.lx?.timeAdjust,"clear-if-not-exact":s?.lx?.clearIfNotExact,locale:s?.lx?.locale,"special-dates":s?.lx?.specialDates,dictionary:s?.lx?.dictionary,variant:s?.lx?.variant,cadenceOfMinutes:s?.lx?.cadenceOfMinutes,cadenceOfSeconds:s?.lx?.cadenceOfSeconds,texts:s?.lx?.texts,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=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(s,B)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:3,id:`${e.name}-${B}-${y}`,mask:"integer",maxlength:s?.maxLength,kind:s?.lx?.kind,tooltip:s?.lx?.tooltip,scale:s?.lx?.scale,disabled:s?.lx?.disabled,uppercase:s?.lx?.uppercase,"convert-to-string":s?.lx?.convertToString,placeholder:f(s),readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:4,id:`${e.name}-${B}-${y}`,size:s?.lx?.size,disabled:s?.lx?.disabled,tooltip:s?.lx?.tooltip,readOnly:b(s),modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},{default:t.withCtx(()=>[s?.lx?.label?(t.openBlock(),t.createElementBlock("span",Dl,t.toDisplayString(s?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(s,B)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxValuePicker),{key:5,id:`${e.name}-${B}-${y}`,selectionKind:s?.type==="array"?"multiple":"single",items:s?.lx?.items||oe(s),"id-attribute":s?.lx?.idAttribute,"name-attribute":s?.lx?.nameAttribute,"icon-attribute":s?.lx?.iconAttribute,"icon-set-attribute":s?.lx?.iconSetAttribute,"category-attribute":s?.lx?.categoryAttribute,"description-attribute":s?.lx?.descriptionAttribute,variant:me(s),"has-search":s?.lx?.hasSearch,"always-as-array":s?.lx?.alwaysAsArray,nullable:s?.lx?.nullable,tooltip:s?.lx?.tooltip,texts:s?.lx?.texts,placeholder:f(s),disabled:s?.lx?.disabled,readOnly:b(s),"has-select-all":s?.lx?.hasSelectAll,"search-attributes":s?.lx?.searchAttributes,"read-only-render-type":s?.lx?.readOnlyRenderType,stickyToolbar:s?.lx?.stickyToolbar,modelValue:c[B],"onUpdate:modelValue":M=>c[B]=M},t.createSlots({_:2},[s?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(M=>[t.createVNode(t.unref(o.LxStack),{orientation:s?.lx?.stack?.orientation,kind:s?.lx?.stack?.kind,mode:s?.lx?.stack?.mode||"grid","horizontal-alignment":s?.lx?.stack?.horizontalAlignment,"vertical-alignment":s?.lx?.stack?.verticalAlignment,"horizontal-config":s?.lx?.stack?.horizontalConfig,"vertical-config":s?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s?.lx?.customItems?.properties,(Z,U)=>(t.openBlock(),t.createBlock(X,{key:U,itemValue:Z,itemName:U,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"}:s?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(M=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s?.lx?.customItems?.properties,(Z,U)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:U},[Z?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:Z?.lx?.orientation,kind:Z?.lx?.kind,mode:Z?.lx?.mode,"horizontal-alignment":Z?.lx?.horizontalAlignment,"vertical-alignment":Z?.lx?.verticalAlignment,"horizontal-config":Z?.lx?.horizontalConfig,"vertical-config":Z?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z?.properties,(de,ge)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ge},[de?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.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,A)=>(t.openBlock(),t.createBlock(X,{key:A,itemValue:g,itemName:A,item:M?.[i]?.[ge]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:de,itemName:ge,item:M?.[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(X,{key:1,itemValue:Z,itemName:U,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","stickyToolbar","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"])])):w.value==="appendableList"?(t.openBlock(),t.createBlock(t.unref(o.LxAppendableList),{key:12,modelValue:n.value[e.name],"onUpdate:modelValue":a[49]||(a[49]=l=>n.value[e.name]=l),readOnly:b(e.displaySchema?.properties[e.name]),expandable:e.displaySchema?.properties[e.name]?.lx?.expandable,nameAttribute:e.displaySchema?.properties[e.name]?.lx?.nameAttribute,descriptionAttribute:e.displaySchema?.properties[e.name]?.lx?.descriptionAttribute,iconAttribute:e.displaySchema?.properties[e.name]?.lx?.iconAttribute,hideRemoveAttribute:e.displaySchema?.properties[e.name]?.lx?.hideRemoveAttribute,removeEnableByAttribute:e.displaySchema?.properties[e.name]?.lx?.removeEnableByAttribute,removeVisibleByAttribute:e.displaySchema?.properties[e.name]?.lx?.removeVisibleByAttribute,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,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,toolbarActionDefinitions:e.displaySchema?.properties[e.name]?.lx?.toolbarActionDefinitions,hasSelecting:e.displaySchema?.properties[e.name]?.lx?.hasSelecting,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,invalidAttribute:e.displaySchema?.properties[e.name]?.lx?.invalidAttribute,selectedValues:e.displaySchema?.properties[e.name]?.lx?.selectedValues,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,texts:e.displaySchema?.properties[e.name]?.lx?.texts,onActionClick:a[50]||(a[50]=(l,i,c)=>R("actionClick",e.name,l,{item:i,index:c})),onToolbarActionClick:a[51]||(a[51]=(l,i)=>R("toolbarActionClick",e.name,l,i)),"onUpdate:selectedValues":a[52]||(a[52]=l=>R("update:selectedValues",e.name,l))},{customItem:t.withCtx(({item:l,index:i})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.orderedObject?.[e.name]?.items?.properties,(c,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[O(c,y)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:c?.title?c?.title:y,rowSpan:c?.lx?.rowSpan,columnSpan:c?.lx?.columnSpan,required:T(e.row?.items?.required,y),inputId:`${e.name}-${y}-${i}`,"action-definitions":c?.lx?.actionDefinitions,onActionClick:(s,B,M)=>F(B,M,`${e.name}.${y}`,i)},{default:t.withCtx(()=>[O(c,y)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,id:`${e.name}-${y}-${i}`,mask:P(c?.lx?.mask,c?.type),maxlength:c?.maxLength,kind:c?.lx?.kind,tooltip:c?.lx?.tooltip,scale:c?.lx?.scale,disabled:c?.lx?.disabled,uppercase:c?.lx?.uppercase,"convert-to-string":c?.lx?.convertToString,placeholder:f(c),signed:c?.lx?.signed,readOnly:b(c),"custom-mask-value":c?.lx?.customMaskValue,autocomplete:c?.lx?.autocomplete,options:c?.lx?.options,modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},null,8,["id","mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):O(c,y)==="textArea"?(t.openBlock(),t.createBlock(t.unref(o.LxTextArea),{key:1,id:`${e.name}-${y}-${i}`,maxlength:c?.maxLength,placeholder:f(c),rows:c?.lx?.rows,"dynamic-height":c?.lx?.dynamicHeight,disabled:c?.lx?.disabled,tooltip:c?.lx?.tooltip,readOnly:b(c),modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},null,8,["id","maxlength","placeholder","rows","dynamic-height","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(c,y)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxDateTimePicker),{key:2,id:`${e.name}-${y}-${i}`,kind:c?.format,placeholder:f(c),tooltip:c?.lx?.tooltip,"min-date":c?.lx?.minDate,"max-date":c?.lx?.maxDate,required:c?.lx?.required,disabled:c?.lx?.disabled,"time-adjust":c?.lx?.timeAdjust,"clear-if-not-exact":c?.lx?.clearIfNotExact,locale:c?.lx?.locale,"special-dates":c?.lx?.specialDates,dictionary:c?.lx?.dictionary,variant:c?.lx?.variant,cadenceOfMinutes:c?.lx?.cadenceOfMinutes,cadenceOfSeconds:c?.lx?.cadenceOfSeconds,texts:c?.lx?.texts,readOnly:b(c),modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},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(c,y)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:3,id:`${e.name}-${y}-${i}`,mask:"integer",maxlength:c?.maxLength,kind:c?.lx?.kind,tooltip:c?.lx?.tooltip,scale:c?.lx?.scale,disabled:c?.lx?.disabled,uppercase:c?.lx?.uppercase,"convert-to-string":c?.lx?.convertToString,placeholder:f(c),readOnly:b(c),modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},null,8,["id","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","readOnly","modelValue","onUpdate:modelValue"])):O(c,y)==="toggle"?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:4,id:`${e.name}-${y}-${i}`,size:c?.lx?.size,disabled:c?.lx?.disabled,tooltip:c?.lx?.tooltip,readOnly:b(c),modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},{default:t.withCtx(()=>[c?.lx?.label?(t.openBlock(),t.createElementBlock("span",Pl,t.toDisplayString(c?.lx?.label),1)):t.createCommentVNode("",!0)]),_:2},1032,["id","size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(c,y)==="valuePicker"?(t.openBlock(),t.createBlock(t.unref(o.LxValuePicker),{key:5,id:`${e.name}-${y}-${i}`,selectionKind:c?.type==="array"?"multiple":"single",items:c?.lx?.items||oe(c),"id-attribute":c?.lx?.idAttribute,"name-attribute":c?.lx?.nameAttribute,"icon-attribute":c?.lx?.iconAttribute,"icon-set-attribute":c?.lx?.iconSetAttribute,"category-attribute":c?.lx?.categoryAttribute,"description-attribute":c?.lx?.descriptionAttribute,variant:me(c),"has-search":c?.lx?.hasSearch,"always-as-array":c?.lx?.alwaysAsArray,nullable:c?.lx?.nullable,tooltip:c?.lx?.tooltip,texts:c?.lx?.texts,placeholder:f(c),disabled:c?.lx?.disabled,readOnly:b(c),"has-select-all":c?.lx?.hasSelectAll,"search-attributes":c?.lx?.searchAttributes,"read-only-render-type":c?.lx?.readOnlyRenderType,stickyToolbar:c?.lx?.stickyToolbar,modelValue:l[y],"onUpdate:modelValue":s=>l[y]=s},t.createSlots({_:2},[c?.lx?.hasCustomItems==="default"?{name:"customItem",fn:t.withCtx(s=>[t.createVNode(t.unref(o.LxStack),{orientation:c?.lx?.stack?.orientation,kind:c?.lx?.stack?.kind,mode:c?.lx?.stack?.mode||"grid","horizontal-alignment":c?.lx?.stack?.horizontalAlignment,"vertical-alignment":c?.lx?.stack?.verticalAlignment,"horizontal-config":c?.lx?.stack?.horizontalConfig,"vertical-config":c?.lx?.stack?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.customItems?.properties,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M,item:s,useStyles:!0},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])]),key:"0"}:c?.lx?.hasCustomItems==="nested"?{name:"customItem",fn:t.withCtx(s=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c?.lx?.customItems?.properties,(B,M)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:M},[B?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:B?.lx?.orientation,kind:B?.lx?.kind,mode:B?.lx?.mode,"horizontal-alignment":B?.lx?.horizontalAlignment,"vertical-alignment":B?.lx?.verticalAlignment,"horizontal-config":B?.lx?.horizontalConfig,"vertical-config":B?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B?.properties,(Z,U)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:U},[Z?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,orientation:Z?.lx?.orientation,kind:Z?.lx?.kind,mode:Z?.lx?.mode,"horizontal-alignment":Z?.lx?.horizontalAlignment,"vertical-alignment":Z?.lx?.verticalAlignment,"horizontal-config":Z?.lx?.horizontalConfig,"vertical-config":Z?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Z?.properties,(de,ge)=>(t.openBlock(),t.createBlock(X,{key:ge,itemValue:de,itemName:ge,item:s?.[M]?.[U]},null,8,["itemValue","itemName","item"]))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:Z,itemName:U,item:s?.[M]},null,8,["itemValue","itemName","item"]))],64))),128))]),_:2},1032,["orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:B,itemName:M,item:s},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","stickyToolbar","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label","rowSpan","columnSpan","required","inputId","action-definitions","onActionClick"]))],64))),128))]),_:1},8,["modelValue","readOnly","expandable","nameAttribute","descriptionAttribute","iconAttribute","hideRemoveAttribute","removeEnableByAttribute","removeVisibleByAttribute","columnCount","kind","requiredMode","canAddItems","uppercase","defaultExpanded","expandedAttribute","actionDefinitions","toolbarActionDefinitions","hasSelecting","selectionKind","invalidAttribute","selectedValues","stickyToolbar","texts"])):w.value==="smallAppendableList"?(t.openBlock(),t.createBlock(bl,{key:13,modelValue:n.value[e.name],"onUpdate:modelValue":a[53]||(a[53]=l=>n.value[e.name]=l),readOnly:b(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(o.LxPlaceholder),{key:0,class:"lx-placeholder"})):(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,hideLabel:!0,rowSpan:e.row?.items?.lx?.rowSpan,columnSpan:e.row?.items?.lx?.columnSpan,actionDefinitions:e.row?.items?.lx?.actionDefinitions,onActionClick:(i,c,y)=>F(c,y,e.name,l)},{default:t.withCtx(()=>[O(e.row?.items,e.name)==="textInputDefault"?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,mask:P(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:b(e.row?.items),"custom-mask-value":e.row?.items?.lx?.customMaskValue,autocomplete:e.row?.items?.lx?.autocomplete,options:e.row?.items?.lx?.options,modelValue:n.value[e.name][l],"onUpdate:modelValue":i=>n.value[e.name][l]=i},null,8,["mask","maxlength","kind","tooltip","scale","disabled","uppercase","convert-to-string","placeholder","signed","readOnly","custom-mask-value","autocomplete","options","modelValue","onUpdate:modelValue"])):O(e.row?.items,e.name)==="textInputInteger"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":i=>n.value[e.name][l]=i},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(o.LxToggle),{key:2,size:e.row?.items?.lx?.size,disabled:e.row?.items?.lx?.disabled,tooltip:e.row?.items?.lx?.tooltip,readOnly:b(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":i=>n.value[e.name][l]=i},{on:t.withCtx(()=>[e.row?.items?.lx?.labelOn?(t.openBlock(),t.createElementBlock("span",zl,t.toDisplayString(e.row?.items?.lx?.labelOn),1)):(t.openBlock(),t.createElementBlock("span",El,"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",Ml,"Nē"))]),indeterminate:t.withCtx(()=>[e.row?.items?.lx?.labelIndeterminate?(t.openBlock(),t.createElementBlock("span",Fl,t.toDisplayString(e.row?.items?.lx?.labelIndeterminate),1)):b(e.row?.items)?(t.openBlock(),t.createElementBlock("span",vl,a[98]||(a[98]=[t.createElementVNode("p",{class:"lx-data"},"—",-1)]))):(t.openBlock(),t.createElementBlock("span",Nl,"—"))]),_:2},1032,["size","disabled","tooltip","readOnly","modelValue","onUpdate:modelValue"])):O(e.row?.items,e.name)==="dateTimePicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.row?.items),modelValue:n.value[e.name][l],"onUpdate:modelValue":i=>n.value[e.name][l]=i},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"])):w.value==="autoComplete"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:v.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":a[54]||(a[54]=l=>n.value[e.name]=l),builderOptions:C.value,onOpenDetails:a[55]||(a[55]=l=>R("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"])):w.value==="button"?(t.openBlock(),t.createBlock(t.unref(o.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,badgeIcon:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeIcon:e.displaySchema?.properties[e.name]?.lx?.badgeIcon,badgeType:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeType:e.displaySchema?.properties[e.name]?.lx?.badgeType,badgeTitle:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.badgeTitle:e.displaySchema?.properties[e.name]?.lx?.badgeTitle,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:a[56]||(a[56]=(l,i)=>R("click",e.name,i))},null,8,["id","label","title","busyTooltip","icon","iconSet","iconVariant","kind","variant","size","destructive","href","disabled","loading","busy","badge","badgeIcon","badgeType","badgeTitle","active","tabindex","customClass","openInNewTab"])):w.value==="camera"?(t.openBlock(),t.createBlock(t.unref(o.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,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":a[57]||(a[57]=l=>n.value[e.name]=l),builderOptions:C.value,onActionClick:a[58]||(a[58]=(l,i)=>R("actionClick",e.name,l,i))},null,8,["id","cameraSwitcherMode","hasFlashlightToggle","imageSize","preferencesId","labelId","actionDefinitions","stickyToolbar","texts","modelValue","builderOptions"])):w.value==="checkbox"?(t.openBlock(),t.createBlock(t.unref(o.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":a[59]||(a[59]=l=>n.value[e.name]=l),builderOptions:C.value,onClick:a[60]||(a[60]=()=>R("click",e.name))},null,8,["id","groupId","label","disabled","value","tabindex","labelId","modelValue","builderOptions"])):w.value==="contentSwitcher"?(t.openBlock(),t.createBlock(t.unref(o.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:b(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":a[61]||(a[61]=l=>n.value[e.name]=l),builderOptions:C.value},null,8,["id","items","idAttribute","nameAttribute","readOnly","disabled","kind","icon","iconSet","tooltip","labelId","modelValue","builderOptions"])):w.value==="dataVisualizer"?(t.openBlock(),t.createBlock(t.unref(o.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:a[62]||(a[62]=l=>R("click",e.name,l))},null,8,["id","kind","items","thresholds","showValues","idAttribute","nameAttribute","colorAttribute","valueAttribute","showLegend","targets","maxValue","mode","texts"])):w.value==="dateTimeRange"&&n.value[e.name]?(t.openBlock(),t.createBlock(t.unref(o.LxDateTimeRange),{key:20,id:`${e.id}-${e.name}`,startDate:n.value[e.name].startDate,"onUpdate:startDate":a[63]||(a[63]=l=>n.value[e.name].startDate=l),endDate:n.value[e.name].endDate,"onUpdate:endDate":a[64]||(a[64]=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:b(e.displaySchema?.properties[e.name]),disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,invalid:v.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:C.value,"onOutOfRange:startDate":a[65]||(a[65]=l=>R("outOfRange:startDate",e.name,l)),"onOutOfRange:endDate":a[66]||(a[66]=l=>R("outOfRange:endDate",e.name,l)),onOutOfRange:a[67]||(a[67]=l=>R("outOfRange",e.name,l))},null,8,["id","startDate","endDate","kind","placeholder","tooltip","minDate","maxDate","required","readOnly","disabled","invalid","invalidation-message","timeAdjust","locale","rangeMonths","clearIfNotExact","labelId","texts","builderOptions"])):w.value==="dropDownMenu"?(t.openBlock(),t.createBlock(t.unref(o.LxDropDownMenu),{key:21,placement:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.placement:e.displaySchema?.properties[e.name]?.lx?.placement,disabled:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,triggerClick:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.triggerClick:e.displaySchema?.properties[e.name]?.lx?.triggerClick,offsetSkid:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.offsetSkid:e.displaySchema?.properties[e.name]?.lx?.offsetSkid,actionDefinitions:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,groupDefinitions:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.groupDefinitions:e.displaySchema?.properties[e.name]?.lx?.groupDefinitions,onActionClick:a[68]||(a[68]=(l,i)=>R("actionClick",e.name,l,i))},{panel:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.displaySchema?.properties[e.name]?.lx?.items,(l,i)=>(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:i,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:()=>R("click",`${e.name}.${i}`,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(o.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,["placement","disabled","triggerClick","offsetSkid","actionDefinitions","groupDefinitions"])):w.value==="file"?(t.openBlock(),t.createBlock(t.unref(o.LxFileUploader),{key:22,id:`${e.id}-${e.name}`,selectionKind:e.displaySchema?.properties[e.name]?.lx?.selectionKind,mode:e.displaySchema?.properties[e.name]?.lx?.mode,maxlength:e.displaySchema?.properties[e.name]?.maxLength,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:b(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,itemsStates:e.displaySchema?.properties[e.name]?.lx?.itemsStates,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":a[69]||(a[69]=l=>n.value[e.name]=l),builderOptions:C.value,onOnError:a[70]||(a[70]=(l,i)=>R("onError",e.name,l,i)),onDownloadFile:a[71]||(a[71]=l=>R("downloadFile",e.name,l)),"onUpdate:itemsStates":a[72]||(a[72]=l=>R("update:itemsStates",e.name,l))},null,8,["id","selectionKind","mode","maxlength","draggable","dataType","hasSearch","disabled","loading","busy","readOnly","allowedFileExtensions","maxFileSize","hasDownloadButton","showMeta","maxSizeForMeta","hasCamera","cameraSwitcherMode","hasFlashlightToggle","itemsStates","imageSize","preferencesId","labelId","texts","modelValue","builderOptions"])):w.value==="fileViewer"?(t.openBlock(),t.createBlock(t.unref(o.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":a[73]||(a[73]=l=>n.value[e.name]=l),onDownload:a[74]||(a[74]=l=>R("download",e.name,l))},null,8,["id","scrollable","width","height","fileName","showPrintButton","showFullScreenButton","primaryDownloadButton","stickyToolbar","zoomLevel","downloadType","preloadLibs","modelValue"])):w.value==="flag"?(t.openBlock(),t.createBlock(t.unref(o.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,locale:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.locale:e.displaySchema?.properties[e.name]?.lx?.locale,meaningful:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.meaningful:e.displaySchema?.properties[e.name]?.lx?.meaningful},null,8,["value","size","title","locale","meaningful"])):w.value==="icon"?(t.openBlock(),t.createBlock(t.unref(o.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"])):w.value==="illustration"?(t.openBlock(),t.createBlock(t.unref(o.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"])):w.value==="link"?(t.openBlock(),t.createBlock(t.unref(o.LxLink),{key:27,href:n.value?.[e.name]?.href||n.value?.[e.name]||e.displaySchema?.properties[e.name]?.lx?.href},null,8,["href"])):w.value==="map"?(t.openBlock(),t.createBlock(t.unref(o.LxMap),{key:28,id:`${e.id}-${e.name}`,baseLayerDefinitions:n.value[e.name].baseLayerDefinitions,selectedBaseLayer:n.value[e.name].selectedBaseLayer,"onUpdate:selectedBaseLayer":a[75]||(a[75]=l=>n.value[e.name].selectedBaseLayer=l),overlayLayerDefinitions:n.value[e.name].overlayLayerDefinitions,selectedOverlayLayers:n.value[e.name].selectedOverlayLayers,"onUpdate:selectedOverlayLayers":a[76]||(a[76]=l=>n.value[e.name].selectedOverlayLayers=l),zoom:n.value[e.name].zoom,"onUpdate:zoom":a[77]||(a[77]=l=>n.value[e.name].zoom=l),center:n.value[e.name].center,"onUpdate:center":a[78]||(a[78]=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,actionDefinitions:n.value[e.name].actionDefinitions,stickyToolbar:n.value[e.name].stickyToolbar,texts:n.value[e.name].texts,onSearch:a[79]||(a[79]=l=>R("search",e.name,l)),onActionClick:a[80]||(a[80]=(l,i)=>R("actionClick",e.name,l,i))},null,8,["id","baseLayerDefinitions","selectedBaseLayer","overlayLayerDefinitions","selectedOverlayLayers","zoom","center","objectDefinitions","showSearch","showToolbar","ignoreThemeChange","hasUserLocation","actionDefinitions","stickyToolbar","texts"])):w.value==="markdownTextArea"?(t.openBlock(),t.createBlock(t.unref(o.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:v.value,"invalidation-message":ce.value,readOnly:b(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,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":a[81]||(a[81]=l=>n.value[e.name]=l),builderOptions:C.value,onNotification:a[82]||(a[82]=l=>R("notification",e.name,l)),onPreparedImage:a[83]||(a[83]=(l,i,c,y)=>R("preparedImage",e.name,{base64:l,id:i,alt:c,title:y})),onActionClick:a[84]||(a[84]=(l,i)=>R("actionClick",e.name,l,i))},null,8,["id","placeholder","rows","maxlength","disabled","showColorPicker","invalid","invalidation-message","readOnly","showLinkEditor","tooltip","showPlaceholderPicker","showImagePicker","showUnderlineToggle","showHeadingPicker","imageMaxSize","dictionary","labelId","stickyToolbar","actionDefinitions","texts","modelValue","builderOptions"])):w.value==="numberSlider"?(t.openBlock(),t.createBlock(t.unref(o.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:b(e.displaySchema?.properties[e.name]),labelId:e.displaySchema?.properties[e.name]?.lx?.labelId,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,kind:e.displaySchema?.properties[e.name]?.lx?.kind,disableArrowKeys:e.displaySchema?.properties[e.name]?.lx?.disableArrowKeys,modelValue:n.value[e.name],"onUpdate:modelValue":a[85]||(a[85]=l=>n.value[e.name]=l),builderOptions:C.value},null,8,["id","min","max","step","stepMultiplier","hasInput","readOnly","labelId","disabled","kind","disableArrowKeys","modelValue","builderOptions"])):w.value==="personDisplay"?(t.openBlock(),t.createBlock(t.unref(o.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,customAttributes:e.displaySchema?.properties[e.name]?.lx?.customAttributes,customRole:e.displaySchema?.properties[e.name]?.lx?.customRole,focusable:e.displaySchema?.properties[e.name]?.lx?.focusable,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","customAttributes","customRole","focusable","texts"])):w.value==="qr"?(t.openBlock(),t.createBlock(t.unref(o.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"])):w.value==="qrScanner"?(t.openBlock(),t.createBlock(t.unref(o.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,stickyToolbar:n.value?.[e.name]?.stickyToolbar||e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,actionDefinitions:n.value?.[e.name]?.actionDefinitions||e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,texts:n.value?.[e.name]?.texts||e.displaySchema?.properties[e.name]?.lx?.texts,builderOptions:C.value,onValue:a[86]||(a[86]=l=>R("value",e.name,l)),onError:a[87]||(a[87]=l=>R("error",e.name,l)),onActionClick:a[88]||(a[88]=(l,i)=>R("actionClick",e.name,l,i))},null,8,["id","formats","hasFileUploader","selectionKind","cameraSwitcherMode","hasFlashlightToggle","showAlerts","labelId","stickyToolbar","actionDefinitions","texts","builderOptions"])):w.value==="rating"?(t.openBlock(),t.createBlock(t.unref(o.LxRating),{key:34,readOnly:b(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,focusable:e.displaySchema?.properties[e.name]?.lx?.focusable,invalid:v.value,invalidationMessage:ce.value,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":a[89]||(a[89]=l=>n.value[e.name]=l)},null,8,["readOnly","kind","variant","disabled","focusable","invalid","invalidationMessage","texts","modelValue"])):w.value==="richTextDisplay"?(t.openBlock(),t.createBlock(t.unref(o.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"])):w.value==="stateDisplay"?(t.openBlock(),t.createBlock(t.unref(o.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"])):w.value==="steps"?(t.openBlock(),t.createBlock(t.unref(o.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":a[90]||(a[90]=l=>n.value[e.name]=l)},null,8,["id","items","kind","idAttribute","nameAttribute","descriptionAttribute","stateAttribute","loading","busy","disabled","modelValue"])):w.value==="visualPicker"?(t.openBlock(),t.createBlock(t.unref(o.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:b(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":a[91]||(a[91]=l=>n.value[e.name]=l),builderOptions:C.value},null,8,["id","kind","mode","selectionKind","readOnly","labelId","texts","modelValue","builderOptions"])):w.value==="dayInput"?(t.openBlock(),t.createBlock(t.unref(o.LxDayInput),{key:39,id:`${e.id}-${e.name}`,disabled:e.displaySchema?.properties[e.name]?.lx?.disabled,readOnly:b(e.displaySchema?.properties[e.name]),kind:e.displaySchema?.properties[e.name]?.lx?.kind,invalid:v.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":a[92]||(a[92]=l=>n.value[e.name]=l),builderOptions:C.value},null,8,["id","disabled","readOnly","kind","invalid","invalidationMessage","labelId","texts","modelValue","builderOptions"])):w.value==="drawPad"?(t.openBlock(),t.createBlock(t.unref(o.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,stickyToolbar:e.displaySchema?.properties[e.name]?.lx?.stickyToolbar,actionDefinitions:e.displaySchema?.properties[e.name]?.lx?.actionDefinitions,texts:e.displaySchema?.properties[e.name]?.lx?.texts,modelValue:n.value[e.name],"onUpdate:modelValue":a[93]||(a[93]=l=>n.value[e.name]=l),builderOptions:C.value,onActionClick:a[94]||(a[94]=(l,i)=>R("actionClick",e.name,l,i)),"onUpdate:instrument":a[95]||(a[95]=l=>R("update:instrument",e.name,l)),"onUpdate:color":a[96]||(a[96]=l=>R("update:color",e.name,l))},null,8,["id","disabled","width","height","instrument","color","showInstruments","showColorPicker","showClearAll","labelId","stickyToolbar","actionDefinitions","texts","modelValue","builderOptions"])):w.value==="logoDisplay"?(t.openBlock(),t.createBlock(t.unref(o.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,theme:e.displaySchema?.properties[e.name]?.type==="object"?n.value[e.name]?.theme:e.displaySchema?.properties[e.name]?.lx?.theme},null,8,["value","kind","size","theme"])):w.value==="text"?(t.openBlock(),t.createElementBlock("p",Rl,t.toDisplayString(n.value[e.name]),1)):t.createCommentVNode("",!0)}},qe={__name:"FormBuilder",props:{id:{type:String,default:()=>o.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:m}){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(()=>o.lxGeneralUtils.getDisplayTexts(x.texts,n)),z=m,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(g){z("update:modelValue",g)}});function b(g){return x.schema?.required?.includes(g)??!1}const P=t.computed(()=>{try{o.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function H(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 N(g){return g?.type==="string"&&g?.lx?.kind!=="multiline"&&!g?.lx?.variant&&H(g)&&!g?.enum||g?.type==="number"&&!g?.lx?.variant&&H(g)&&!g?.enum?"textInputDefault":g?.type==="string"&&g?.lx?.kind==="multiline"?"textArea":g?.type==="string"&&!H(g)?"dateTimePicker":""}function J(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 G(g,A){return g?.lx?.displayType==="map"&&g?.type==="object"?"map":g?.type==="object"&&f.value?.[A]!==void 0&&f.value?.[A]!==null&&g?.lx?.displayType==="modal"?"objectList":g?.type==="object"&&!f.value?.[A]&&g?.lx?.displayType==="modal"?"objectButton":g?.type==="object"&&f.value?.[A]!==void 0&&f.value?.[A]!==null?"dataBlock":""}function E(g){return Ft(g)}function O(g){const A=N(g);return A||null}function w(g){return g?.type==="string"&&(g?.lx?.variant||g?.enum)||g?.type==="array"}function F(g){const A=J(g);return A!==""?A:null}function R(g,A){const q=G(g,A);return q!==""?q:null}function oe(g){g&&o.lxDevUtils.log(`Property '${g}' couldn't be rendered`,Ee().getGlobals()?.environment,"warn")}function le(g,A){if(g?.lx?.wrapper==="placeholder")return"lxPlaceholder";const q=E(g);if(q)return q;const K=O(g);if(K)return K;if(g?.type==="integer")return"textInputInteger";if(g?.type==="boolean")return"toggle";if(w(g)){const ue=F(g);if(ue)return ue}const I=R(g,A);return I||(oe(A),"lxPlaceholder")}function Y(){const g={...x.modelValue};x.schema?.properties&&Object.entries(x.schema?.properties)?.forEach(([A,q])=>{q?.lx?.displayType==="dateTimeRange"&&(g[A]===void 0||g[A]===null)&&(g[A]={}),q?.default!==void 0&&(g[A]===void 0||g[A]===null||Array.isArray(g[A])&&g[A]?.length===0)&&(g[A]=q?.default),q?.properties&&q?.lx?.displayType==="stack"&&(g[A]=g[A]||{},Object.entries(q?.properties)?.forEach(([K,I])=>{I?.lx?.displayType==="dateTimeRange"&&(g[A][K]===void 0||g[A][K]===null)&&(g[A][K]={}),I?.default!==void 0&&(g[A][K]===void 0||g[A][K]===null||Array.isArray(g[A][K])&&g[A][K]?.length===0)&&(g[A][K]=I?.default),I?.properties&&I?.lx?.displayType==="stack"&&(g[A][K]=g[A][K]||{})}))}),f.value=g}const Q=t.computed(()=>{const g={$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{}};return Object.entries(f.value)?.forEach(([A,q])=>{typeof q=="string"?g.properties[A]={type:"string"}:typeof q=="boolean"?g.properties[A]={type:"boolean"}:typeof q=="number"?g.properties[A]={type:"number"}:Array.isArray(q)&&typeof q[0]=="object"?(g.properties[A]={type:"array",items:{type:"object",properties:{}}},Object.entries(q[0])?.forEach(([K,I])=>{K!=="_lx_appendableKey"&&(typeof I=="string"?g.properties[A].items.properties[K]={type:"string"}:typeof I=="boolean"&&(g.properties[A].items.properties[K]={type:"boolean"}))})):g.properties[A]={lx:{wrapper:"placeholder"}}}),g}),T=t.computed(()=>{const g=o.lxFormatUtils.objectClone(Q.value);if(x.mode==="mixed")try{return x.schema?.hasOwnProperty("required")&&(g.required=x.schema?.required),Object.entries(Q.value?.properties)?.forEach(([A])=>{x.schema?.properties?.hasOwnProperty(A)&&(g.properties[A]=x.schema?.properties[A])}),Object.entries(x.schema?.properties)?.forEach(([A,q])=>{g?.properties?.hasOwnProperty(A)||(g.properties[A]=q)}),g}catch(A){o.lxDevUtils.log(A,Ee().getGlobals()?.environment,"warn")}return g}),d=t.computed(()=>{try{if(x.mode==="no-schema")return Q.value;if(x.mode==="mixed")return T.value}catch(g){o.lxDevUtils.log(g,Ee().getGlobals()?.environment,"warn")}return x.schema}),r=t.computed(()=>{if(x.mode==="no-schema")return Q.value?.properties;if(d.value?.properties){const g=o.lxFormatUtils.objectClone(d.value?.properties),q=Object.entries(g).sort((I,ue)=>{const he=I[1]?.lx?.order?I[1].lx.order:1e3,ke=ue[1]?.lx?.order?ue[1].lx.order:1e3;return he-ke});return Object.fromEntries(q)}return{}});function re(g,A,q=void 0,K=void 0){z("emit",g,A,q,K)}function ne(g,A){return g.replace("{0}",A)}function D(g,A,q,K){z("rowActionClick",g,A,q,K)}function $(g){return g==="number"||g==="integer"}function L(g,A){return g[A]||(g[A]={}),g[A]}function v(g,A,q,K){L(g,A)[q]=K}function ce(g,A){g?.required?.forEach(q=>{v(A,q,"required",ee.withMessage(()=>S.value.required,Et))})}function me(g){return ee.withParams({type:"exclusiveMinimum",value:g},A=>A>g)}function be(g){return ee.withParams({type:"exclusiveMaximum",value:g},A=>A<g)}function pe(g){return ee.withParams({type:"multipleOf",value:g},A=>A%g===0)}function ae(g){return ee.withParams({type:"pattern",value:g},A=>new RegExp(g).test(A))}function C(g,A,q){$(q?.type)&&(q?.minimum!==void 0&&v(g,A,"minValue",ee.withMessage(({$params:K})=>ne(S.value.minimum,K.min),Vt(q.minimum))),q?.exclusiveMinimum!==void 0&&v(g,A,"exclusiveMinimum",ee.withMessage(()=>ne(S.value.exclusiveMinimum,q.exclusiveMinimum),me(q.exclusiveMinimum))),q?.maximum!==void 0&&v(g,A,"maxValue",ee.withMessage(({$params:K})=>ne(S.value.maximum,K.max),Mt(q.maximum))),q?.exclusiveMaximum!==void 0&&v(g,A,"exclusiveMaximum",ee.withMessage(()=>ne(S.value.exclusiveMaximum,q.exclusiveMaximum),be(q.exclusiveMaximum))),q?.multipleOf!==void 0&&v(g,A,"multipleOf",ee.withMessage(()=>ne(S.value.multipleOf,q.multipleOf),pe(q.multipleOf))))}function u(g,A,q){q?.type==="string"&&(q?.minLength!==void 0&&v(g,A,"minLength",ee.withMessage(({$params:K})=>ne(S.value.minLength,K.min),Xe(q.minLength))),q?.maxLength!==void 0&&v(g,A,"maxLength",ee.withMessage(({$params:K})=>ne(S.value.maxLength,K.max),Ze(q.maxLength))),q?.pattern&&v(g,A,"pattern",ee.withMessage(()=>ne(S.value.pattern,q.pattern),ae(q.pattern))))}function a(g){return new Set(g)?.size===g?.length}function l(g,A,q){q?.type==="array"&&(q?.minItems!==void 0&&v(g,A,"minItems",ee.withMessage(({$params:K})=>ne(S.value.minItems,K.min),Xe(q.minItems))),q?.maxItems!==void 0&&v(g,A,"maxItems",ee.withMessage(({$params:K})=>ne(S.value.maxItems,K.max),Ze(q.maxItems))),q?.uniqueItems&&v(g,A,"uniqueItems",ee.withMessage(()=>S.value.uniqueItems,a)))}function i(g,A,q){C(g,A,q),u(g,A,q),l(g,A,q)}function c(g,A,q){g?.properties&&Object.entries(g.properties).forEach(([K,I])=>{if(I?.type==="object"&&I?.properties){A[K]=q(I);return}i(A,K,I)})}function y(g){return ee.withParams({type:"minProperties",value:g},A=>Object.keys(A).length>=g)}function s(g){return ee.withParams({type:"maxProperties",value:g},A=>Object.keys(A).length<=g)}function B(g,A){g?.minProperties!==void 0&&g?.type==="object"&&(A.minProperties=ee.withMessage(()=>ne(S.value.minProperties,g.minProperties),y(g.minProperties))),g?.maxProperties!==void 0&&g?.type==="object"&&(A.maxProperties=ee.withMessage(()=>ne(S.value.maxProperties,g.maxProperties),s(g.maxProperties)))}function M(g){const A={};return ce(g,A),c(g,A,M),B(g,A),A}const Z=t.computed(()=>x.schema?{modelClone:M(x.schema)}:{modelClone:{}}),U=t.ref();function de(){const g=[];if(x.mode!=="no-schema"){const A=o.lxFormatUtils.objectClone(f.value);U.value=jt(Z,{modelClone:A},{$autoDirty:!0}),U.value.value.modelClone.$touch(),U.value.value?.$errors?.forEach(K=>{const I={};I.propertyPath=K.$propertyPath,I.validator=K.$validator,I.message=K.$message,I.value=K.$params,g.push(I)})}return g}function ge(){U.value.value.modelClone.$reset()}return t.watch(()=>x.schema,()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&Y()}),t.onMounted(()=>{x.mode!=="no-schema"&&x.mode!=="view-builder"&&Y()}),h({validateModel:de,clearValidations:ge,componentSelect:le}),(g,A)=>P.value?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.value,(q,K)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:K},[le(q,K)==="lxPlaceholder"?(t.openBlock(),t.createBlock(t.unref(o.LxPlaceholder),{key:0,class:"lx-placeholder"})):q?.lx?.displayType!=="section"?(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:1,label:d.value?.properties[K]?.title?d.value?.properties[K]?.title:K,rowSpan:d.value?.properties[K]?.lx?.rowSpan,columnSpan:d.value?.properties[K]?.lx?.columnSpan,required:b(K),inputId:e.builderOptions?.useRegistry?void 0:`${e.id}-${K}`,id:`${e.id}-${K}-wrapper`,actionDefinitions:d.value?.properties[K]?.lx?.rowActionDefinitions,builderOptions:{schemaPath:`${e.builderOptions?.schemaPath}.${K}`,componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${K}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry},onActionClick:(I,ue,he)=>D(ue,he,K,void 0)},t.createSlots({default:t.withCtx(()=>[le(q,K)==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${K}`,orientation:q?.lx?.orientation,kind:q?.lx?.kind,mode:q?.lx?.mode,horizontalAlignment:q?.lx?.horizontalAlignment,verticalAlignment:q?.lx?.verticalAlignment,horizontalConfig:q?.lx?.horizontalConfig,verticalConfig:q?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value?.properties[K]?.properties,(I,ue)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ue},[le(I,ue)==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${ue}`,orientation:I?.lx?.orientation,kind:I?.lx?.kind,mode:I?.lx?.mode,horizontalAlignment:I?.lx?.horizontalAlignment,verticalAlignment:I?.lx?.verticalAlignment,horizontalConfig:I?.lx?.horizontalConfig,verticalConfig:I?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value?.properties[K]?.properties[ue]?.properties,(he,ke)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ke},[f.value[K]?(t.openBlock(),t.createBlock(Fe,{key:0,id:`${e.id}-${ke}`,modelValue:f.value[K][ue],"onUpdate:modelValue":Ae=>f.value[K][ue]=Ae,readOnly:e.readOnly,row:he,name:ke,displaySchema:d.value?.properties[K]?.properties[ue],vv:U.value,orderedObject:r.value?.[K]?.properties?.[ue]?.properties,texts:S.value,parentName:`${K}.${ue}`,validations:e.validations?.[K]?.[ue],onRowActionClick:A[0]||(A[0]=(Ae,Ce,Le,Ke)=>D(Ae,Ce,Le,Ke)),onEmit:A[1]||(A[1]=(Ae,Ce,Le,Ke)=>re(Ae,Ce,Le,Ke)),onFilterBuilderFilter:A[2]||(A[2]=Ae=>z("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(Fe,{key:1,id:e.id,modelValue:f.value[K],"onUpdate:modelValue":he=>f.value[K]=he,readOnly:e.readOnly,row:I,name:ue,displaySchema:d.value?.properties[K],vv:U.value,orderedObject:r.value?.[K]?.properties,parentName:K,texts:S.value,validations:e.validations?.[K],onRowActionClick:A[3]||(A[3]=(he,ke,Ae,Ce)=>D(he,ke,Ae,Ce)),onEmit:A[4]||(A[4]=(he,ke,Ae,Ce)=>re(he,ke,Ae,Ce)),onFilterBuilderFilter:A[5]||(A[5]=he=>z("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(Fe,{key:1,id:e.id,modelValue:f.value,"onUpdate:modelValue":A[6]||(A[6]=I=>f.value=I),readOnly:e.readOnly,row:q,name:K,displaySchema:d.value,schema:e.schema,vv:U.value,orderedObject:r.value,texts:S.value,validations:e.validations,builderOptions:{componentStack:e.builderOptions?.componentStack?.concat([{id:`${e.id}-${K}-wrapper`,name:"LxRow"}]),useRegistry:e.builderOptions?.useRegistry,schemaPath:`${e.builderOptions?.schemaPath}`},onRowActionClick:A[7]||(A[7]=(I,ue,he,ke)=>D(I,ue,he,ke)),onEmit:A[8]||(A[8]=(I,ue,he,ke)=>re(I,ue,he,ke)),onFilterBuilderFilter:A[9]||(A[9]=I=>z("filterBuilderFilter"))},null,8,["id","modelValue","readOnly","row","name","displaySchema","schema","vv","orderedObject","texts","validations","builderOptions"]))]),_:2},[q?.description?{name:"info",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(q?.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?(o.lxDevUtils.logWarn('Warning: LxFilterBuilder "badgeTitle" is required when "badge" or "badgeIcon" is provided!',Ee().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:m}){const x=e,n=m,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"},z=t.computed(()=>o.lxGeneralUtils.getDisplayTexts(x.texts,S)),f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(D){n("update:modelValue",D)}}),b=t.ref(),P=t.ref(!1),H=t.computed({get(){return x.expanded===void 0?P.value:x.expanded},set(D){x.expanded===void 0?P.value=D:n("update:expanded",D)}}),N=t.ref();function J(){x.closeOnFilter&&(H.value=!1,o.lxGeneralUtils.focusNextFocusableElement(N.value?.$el)),n("filter")}const G=t.ref({}),E=t.computed(()=>x.schema?.properties?Object.keys(x.schema?.properties).reduce(($,L)=>($[L]=x.defaultValues?.[L]||(x.useDefaults?G.value?.[L]:void 0),$),{}):{});function O(D,$){if(Array.isArray(D)&&Array.isArray($)){if(D?.length!==$?.length)return!1;for(let L=0;L<D?.length;L+=1)if(D[L]!==$[L])return!1;return!0}return!1}const w=t.computed(()=>x.filteredModelValue===void 0?f.value:x.filteredModelValue);function F(D,$,L){return D==="dateTime"||D==="date-time"?`${$||""}${o.lxDateUtils.formatDateTime(L)}`:D==="date"?`${$||""}${o.lxDateUtils.formatDate(L)}`:`${$||""}${L}`}function R(D,$){if(D?.type==="string"){if(D?.enum)return`${D?.lx?.filterDescription||""}${w.value[$]}`;if(D?.lx?.items&&typeof D?.lx?.items!="function")return`${D?.lx?.filterDescription||""}${D?.lx?.items?.find(L=>L?.[D?.lx?.idAttribute||"id"]===w.value[$])?.[D?.lx?.nameAttribute||"name"]}`}else if(w.value?.[$]?.length>0&&!O(w.value?.[$],E.value?.[$])&&w.value?.[$]?.length>0)return`${D?.lx?.filterDescription||(D?.title?`${D?.title}: `:`${$}: `)}${w.value?.[$]?.length}`;return null}function oe(D,$){return D&&D!==w.value?.[$]?typeof w.value?.[$]=="string"?`${w.value?.[$]}`:typeof w.value?.[$]=="boolean"?`${$}: ${o.lxFormatUtils.formatValue(w.value[$],"bool")}`:Array.isArray(w.value?.[$])&&w.value?.[$]?.length>0?`${$}: ${w.value?.[$]?.length}`:`${w.value?.[$]}`:null}function le(D,$,L){return(D==="dateTime"||D==="date-time")&&(L?.startDate||L?.endDate)?`${$||""}${o.lxDateUtils.formatDateTime(L?.startDate)}-${o.lxDateUtils.formatDateTime(L?.endDate)}`:D==="date"&&(L?.startDate||L?.endDate)?`${$||""}${o.lxDateUtils.formatDate(L?.startDate)}-${o.lxDateUtils.formatDate(L?.endDate)}`:L?.startDate||L?.endDate?`${$||""}${L?.startDate}-${L?.endDate}`:""}function Y(D,$){switch(b.value?.componentSelect(D,$)){case"textInputDefault":case"textInputInteger":case"textArea":return`${D?.lx?.filterDescription||""}${w.value[$]}`;case"dateTimePicker":return F(D?.format,D?.lx?.filterDescription,w.value[$]);case"dateTimeRange":return le(D?.format,D?.lx?.filterDescription,w.value[$]);case"toggle":return`${D?.lx?.filterDescription||(D?.title?`${D?.title}: `:`${$}: `)}${o.lxFormatUtils.formatValue(w.value[$],"bool")}`;case"valuePicker":case"autoComplete":return R(D,$)?R(D,$):null;case"select":case"arrayListModal":case"arrayTable":case"arrayTableModal":case"appendableList":case"smallAppendableList":return!O(w.value?.[$],E.value?.[$])&&w.value?.[$]?.length>0?`${D?.lx?.filterDescription||(D?.title?`${D?.title}: `:`${$}: `)}${w.value?.[$]?.length}`:null;case"objectList":case"objectButton":case"dataBlock":return D?.lx?.filterDescription?D.lx.filterDescription:D?.title?D.title:$;default:return null}}function Q(D,$){return JSON.stringify(D)===JSON.stringify($)}function T(D){return D&&typeof D=="object"&&!Array.isArray(D)}const d=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,v])=>{if(w.value?.[L]!==null&&w.value?.[L]!==void 0&&w.value?.[L]!==""&&(!T(w.value?.[L])&&w.value?.[L]!==E.value?.[L]||T(w.value?.[L])&&!Q(w.value?.[L],E.value?.[L]))){const ce=Y(v,L);ce&&$.push(ce)}return $},[]).join(", ");if(x.mode==="no-schema")return Object.entries(G.value).reduce((D,[$,L])=>(oe(L,$)&&D.push(oe(L,$)),D),[])?.join(", ")}return""});function r(){return b.value.validateModel()}function re(){b.value.clearValidations()}t.onMounted(()=>{G.value=o.lxFormatUtils.objectClone(x.modelValue||{})});const ne=t.computed(()=>`${x.name}.${x.builderOptions?.defaultSectionSchemaPath}`);return h({validateModel:r,clearValidations:re}),(D,$)=>(t.openBlock(),t.createBlock(t.unref(o.LxFilters),{ref_key:"filterElement",ref:N,id:e.id,expanded:H.value,"onUpdate:expanded":$[2]||($[2]=L=>H.value=L),label:e.label,description:e.description||(H.value?"":d.value),usesFilters:e.usesFilters===void 0?!H.value&&d.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:z.value,builderOptions:e.builderOptions,onFilter:J,onResetFilters:$[3]||($[3]=()=>n("resetFilters")),onFastFilterClick:$[4]||($[4]=L=>n("fastFilterClick",L))},{default:t.withCtx(()=>[t.createVNode(qe,{ref_key:"formBuilder",ref:b,id:e.id,schema:e.schema,modelValue:f.value,"onUpdate:modelValue":$[0]||($[0]=L=>f.value=L),readOnly:e.readOnly,mode:e.mode,texts:z.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:ne.value},onRowActionClick:$[1]||($[1]=(L,v,ce,me)=>n("rowActionClick",L,v,ce,me)),onFilterBuilderFilter:J},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"]))}},Nt={__name:"ViewBuilder",props:{id:{type:String,default:()=>o.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:m}){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(()=>o.lxGeneralUtils.getDisplayTexts(x.texts,n)),z=m,f=t.computed({get(){return x.modelValue?x.modelValue:{}},set(C){z("update:modelValue",C)}}),b=t.computed(()=>{try{o.lxFormatUtils.objectClone(x.schema)}catch{return!1}return!0});function P(){function C(a,l){Object.entries(l?.properties||{}).forEach(([i,c])=>{c?.lx?.displayType==="dateTimeRange"&&(a[i]===void 0||a[i]===null)&&(a[i]={}),c?.default!==void 0&&(a[i]===void 0||a[i]===null||Array.isArray(a[i])&&a[i]?.length===0)&&(a[i]=c.default),(c?.properties&&c?.lx?.displayType==="stack"||c?.lx?.displayType==="form"||c?.lx?.displayType==="section"||c?.items?.properties)&&(a[i]=a[i]||{},C(a[i],c))})}const u={...x.modelValue};C(u,x.schema),f.value=u}const H=t.computed(()=>{const C=Object.values(x.schema?.properties||{});return C.some(u=>u?.lx?.displayType==="form"&&u?.type==="object")?"form":C.some(u=>u?.lx?.displayType==="filters"&&u?.type==="object")?"list":"default"});function N(C,u,a,l){z("rowActionClick",C,u,a,l)}function J(C,u,a=void 0,l=void 0){z("emit",C,u,a,l)}function G(C,u){return C.replace("{0}",u)}function E(C){return C==="number"||C==="integer"}function O(C,u,a){if(a?.minimum!==void 0&&(C[u]=C[u]||{},C[u].minValue=ee.withMessage(({$params:l})=>G(S.value.minimum,l.min),Vt(a.minimum))),a?.exclusiveMinimum!==void 0){const l=i=>ee.withParams({type:"exclusiveMinimum",value:i},c=>c>i);C[u]=C[u]||{},C[u].exclusiveMinimum=ee.withMessage(()=>G(S.value.exclusiveMinimum,a.exclusiveMinimum),l(a.exclusiveMinimum))}if(a?.maximum!==void 0&&(C[u]=C[u]||{},C[u].maxValue=ee.withMessage(({$params:l})=>G(S.value.maximum,l.max),Mt(a.maximum))),a?.exclusiveMaximum!==void 0){const l=i=>ee.withParams({type:"exclusiveMaximum",value:i},c=>c<i);C[u]=C[u]||{},C[u].exclusiveMaximum=ee.withMessage(()=>G(S.value.exclusiveMaximum,a.exclusiveMaximum),l(a.exclusiveMaximum))}if(a?.multipleOf!==void 0){const l=i=>ee.withParams({type:"multipleOf",value:i},c=>c%i===0);C[u]=C[u]||{},C[u].multipleOf=ee.withMessage(()=>G(S.value.multipleOf,a.multipleOf),l(a.multipleOf))}}function w(C,u,a){if(a?.minLength!==void 0&&(C[u]=C[u]||{},C[u].minLength=ee.withMessage(({$params:l})=>G(S.value.minLength,l.min),Xe(a.minLength))),a?.maxLength!==void 0&&(C[u]=C[u]||{},C[u].maxLength=ee.withMessage(({$params:l})=>G(S.value.maxLength,l.max),Ze(a.maxLength))),a?.pattern){const l=i=>ee.withParams({type:"pattern",value:i},c=>new RegExp(i).test(c));C[u]=C[u]||{},C[u].pattern=ee.withMessage(()=>G(S.value.pattern,a.pattern),l(a.pattern))}}function F(C,u,a){if(a?.minItems!==void 0&&(C[u]=C[u]||{},C[u].minItems=ee.withMessage(({$params:l})=>G(S.value.minItems,l.min),Xe(a.minItems))),a?.maxItems!==void 0&&(C[u]=C[u]||{},C[u].maxItems=ee.withMessage(({$params:l})=>G(S.value.maxItems,l.max),Ze(a.maxItems))),a?.uniqueItems){const l=i=>new Set(i)?.size===i?.length;C[u]=C[u]||{},C[u].uniqueItems=ee.withMessage(()=>S.value.uniqueItems,l)}}function R(C,u,a){E(a?.type)&&O(C,u,a),a?.type==="string"&&w(C,u,a),a?.type==="array"&&F(C,u,a)}function oe(C,u){if(u?.minProperties!==void 0&&u?.type==="object"){const a=l=>ee.withParams({type:"minProperties",value:l},i=>Object.keys(i).length>=l);C.minProperties=ee.withMessage(()=>G(S.value.minProperties,u.minProperties),a(u.minProperties))}if(u?.maxProperties!==void 0&&u?.type==="object"){const a=l=>ee.withParams({type:"maxProperties",value:l},i=>Object.keys(i).length<=l);C.maxProperties=ee.withMessage(()=>G(S.value.maxProperties,u.maxProperties),a(u.maxProperties))}}const le=C=>{const u=C?.required,a={};return u?.forEach(l=>{a[l]=a[l]||{},a[l].required=ee.withMessage(()=>S.value.required,Et)}),C?.properties&&Object.entries(C.properties).forEach(([l,i])=>{i?.type==="object"&&i?.properties?a[l]=le(i):R(a,l,i)}),oe(a,C),a},Y=t.computed(()=>x.schema?{modelClone:le(x.schema)}:{modelClone:{}}),Q=t.ref(),T=t.ref({});function d(){Object.values(T.value)?.forEach(C=>{C.validateModel()})}function r(){const C=[];d();const u=o.lxFormatUtils.objectClone(f.value);return Q.value=jt(Y,{modelClone:u},{$autoDirty:!0}),Q.value.value.modelClone.$touch(),Q.value.value?.$errors?.forEach(l=>{const i={};i.propertyPath=l.$propertyPath,i.validator=l.$validator,i.message=l.$message,i.value=l.$params,C.push(i)}),C}function re(){Q.value.value.modelClone.$reset(),Object.values(T.value)?.forEach(C=>{C.clearValidations()})}t.watch(()=>x.schema,(C,u)=>{JSON.stringify(C)!==JSON.stringify(u)&&x.mode!=="no-schema"&&P()}),t.onBeforeMount(async()=>{x.mode!=="no-schema"&&await P()});const ne=t.computed(()=>{const C={$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,a])=>{typeof a=="string"||typeof a=="boolean"||typeof a=="number"?C.properties.form.properties[u]={type:typeof a}:Array.isArray(a)&&typeof a[0]=="object"?(C.properties.form.properties[u]={type:"array",items:{type:"object",properties:{}}},Object.entries(a[0])?.forEach(([l,i])=>{l!=="_lx_appendableKey"&&(typeof i=="string"?C.properties.form.properties[u].items.properties[l]={type:"string"}:typeof i=="boolean"&&(C.properties.form.properties[u].items.properties[l]={type:"boolean"}))})):C.properties.form.properties[u]={lx:{wrapper:"placeholder"}}}),C}),D=t.computed(()=>{const C=structuredClone(x.schema);if(x.mode==="mixed")try{return Object.entries(ne.value?.properties?.form?.properties)?.forEach(([u,a])=>{Object.prototype.hasOwnProperty.call(C?.properties,u)||(C.properties[u]=a)}),C}catch(u){o.lxDevUtils.log(u,Ee().getGlobals()?.environment,"warn")}return C}),$=t.computed(()=>{try{if(x.mode==="no-schema")return ne.value;if(x.mode==="mixed")return D.value}catch(C){o.lxDevUtils.log(C,Ee().getGlobals()?.environment,"warn")}return x.schema});function L(C){const u=o.lxFormatUtils.objectClone(C);let a=!1;return Object.entries(u||{}).forEach(([i,c])=>{!a&&c?.lx?.displayType==="section"&&c?.type==="object"&&(delete u[i],a=!0)}),u}function v(C){const u=o.lxFormatUtils.objectClone(C),a=Object.entries(u||{});let l=!1;return a.forEach(([i,c])=>{!l&&c?.lx?.displayType==="section"&&c?.type==="object"?l=!0:delete u[i]}),u}function ce(C){const a=Object.entries(C||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return a?a[1]:null}function me(C){const a=Object.entries(C||{}).find(([,l])=>l?.lx?.displayType==="section"&&l?.type==="object");return a?a[0]:null}function be(C,u){const a=me(u?.properties);return a?f.value?.[C]?.[a]||{}:f.value?.[C]||{}}function pe(C,u,a){const l=me(u?.properties),i=o.lxFormatUtils.objectClone(f.value||{});if(!l){i[C]=a,f.value=i;return}i[C]=i[C]||{},i[C][l]=a,f.value=i}function ae(C){const u=[];let a=!1;return Object.entries(C||{}).forEach(([l,i])=>{if(i?.lx?.displayType==="section"&&i?.type==="object"){const c={};c.id=a?l:"default",c.name=l,a||(c.isCurrentStep=!0,c.state="current"),u.push(c),a=!0}}),u}return h({validateModel:r,clearValidations:re}),(C,u)=>b.value?(t.openBlock(),t.createBlock(t.unref(o.LxViewLayout),{key:0,kind:H.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,(a,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[a?.lx?.displayType==="filters"&&a?.type==="object"?(t.openBlock(),t.createBlock(vt,{key:0,ref_for:!0,ref:i=>T.value[`${e.id}-${l}`]=i,modelValue:be(l,a),schema:a?.properties?.[me(a?.properties)],name:l,id:`${e.id}-${l}`,readOnly:e.readOnly,defaultValues:a?.lx?.defaultValues,useDefaults:a?.lx?.useDefaults,label:a?.title,description:a?.description,usesFilters:a?.lx?.usesFilters,filterButtonKind:a?.lx?.filterButtonKind,expanded:a?.lx?.expanded,disabled:a?.lx?.disabled,fastFilters:a?.lx?.fastFilters,fastIdAttribute:a?.lx?.fastIdAttribute,fastNameAttribute:a?.lx?.fastNameAttribute,badge:a?.lx?.badge,badgeType:a?.lx?.badgeType,texts:a?.lx?.texts,columnCount:ce(a?.properties)?.lx?.columnCount||a?.lx?.columnCount,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxFilters"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:me(a?.properties)},"onUpdate:modelValue":i=>pe(l,a,i),onFilter:()=>J("filter",l),onResetFilter:()=>J("resetFilter",l),onFastFilterClick:i=>J("fastFilterClick",l,i),"onUpdate:expanded":i=>J("update:expanded",l,i),onRowActionClick:u[0]||(u[0]=(i,c,y,s)=>N(i,c,y,s))},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,(a,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[a?.lx?.displayType==="form"&&a?.type==="object"?(t.openBlock(),t.createBlock(t.unref(o.LxForm),{key:0,id:`${e.id}-${l}`,showHeader:a?.lx?.showHeader,stickyHeader:a?.lx?.stickyHeader,showFooter:a?.lx?.showFooter,stickyFooter:a?.lx?.stickyFooter,showPreHeaderInfo:a?.lx?.showPreHeaderInfo,showPostHeaderInfo:a?.lx?.showPostHeaderInfo,index:a?.lx?.index||ae(a?.properties),indexType:a?.lx?.indexType,actionDefinitions:a?.lx?.actionDefinitions,kind:a?.lx?.kind,hasSkipLink:a?.lx?.hasSkipLink,texts:a?.lx?.texts,columnCount:ce(a?.properties)?.lx?.columnCount,requiredMode:ce(a?.properties)?.lx?.requiredMode,orientation:ce(a?.properties)?.lx?.orientation,builderOptions:{schemaPath:`${l}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry,defaultSectionSchemaPath:me(a?.properties)},onActionClick:i=>J("actionClick",l,i)},t.createSlots({header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a?.title),1)]),sections:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L(e.schema?.properties?.[l]?.properties),(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="section"&&i?.type==="object"?(t.openBlock(),t.createBlock(t.unref(o.LxSection),{key:0,id:`${c}`,label:i?.title,description:i?.description,columnCount:i?.lx?.columnCount,requiredMode:i?.lx?.requiredMode,icon:i?.lx?.icon,iconSet:i?.lx?.iconSet,customClass:i?.lx?.customClass,badge:i?.lx?.badge,actionDefinitions:i?.lx?.actionDefinitions,orientation:i?.lx?.orientation,texts:i?.lx?.texts,builderOptions:{schemaPath:`${l}.${c}`,componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"}],useRegistry:e.builderOptions?.useRegistry},onActionClick:y=>J("actionClick",`${l}.${c}`,y)},{default:t.withCtx(()=>[f.value?.[l]?(t.openBlock(),t.createBlock(qe,{key:0,ref_for:!0,ref:y=>T.value[`${e.id}-${l}-${c}`]=y,modelValue:f.value[l][c],"onUpdate:modelValue":y=>f.value[l][c]=y,schema:i,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[c],mode:"view-builder",builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"},{id:`${e.id}-${l}`,name:"LxForm"},{id:`${e.id}-${l}-${c}`,name:"LxSection"}],useRegistry:e.builderOptions?.useRegistry,schemaPath:`${l}.${c}`},onRowActionClick:(y,s,B,M)=>N(y,s,`${l}.${c}.${B}`,M),onEmit:(y,s,B,M)=>J(y,`${l}.${c}.${s}`,B,M)},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(v(e.schema?.properties?.[l]?.properties),(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[f.value?.[l]?(t.openBlock(),t.createBlock(qe,{key:0,ref_for:!0,ref:y=>T.value[`${e.id}-${l}-${c}`]=y,modelValue:f.value[l][c],"onUpdate:modelValue":y=>f.value[l][c]=y,schema:i,readOnly:e.readOnly,texts:S.value,validations:e.validations?.[l]?.[c],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}.${c}`},onRowActionClick:(y,s,B,M)=>N(y,s,`${l}.${c}.${B}`,M),onEmit:(y,s,B,M)=>J(y,`${l}.${c}.${s}`,B,M)},null,8,["modelValue","onUpdate:modelValue","schema","readOnly","texts","validations","builderOptions","onRowActionClick","onEmit"])):t.createCommentVNode("",!0)],64))),128))]),_:2},[a?.lx?.preHeader?{name:"preHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.lx?.preHeader?.properties,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${l}-${c}`,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${l}-${c}-${s}`,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,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:y,itemName:s},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:i,itemName:c},null,8,["itemValue","itemName"]))],64))),128))]),key:"0"}:void 0,a?.lx?.preHeaderInfo?{name:"preHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.lx?.preHeaderInfo?.properties,(i,c)=>(t.openBlock(),t.createBlock(t.unref(o.LxRow),{label:i?.title,hideLabel:i?.lx?.hideLabel||!i?.title,key:c},{default:t.withCtx(()=>[t.createVNode(X,{itemValue:i,itemName:c},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"1"}:void 0,a?.lx?.postHeaderInfo?{name:"postHeaderInfo",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.lx?.postHeaderInfo?.properties,(i,c)=>(t.openBlock(),t.createBlock(t.unref(o.LxRow),{label:i?.title,hideLabel:i?.lx?.hideLabel||!i?.title,key:c},{default:t.withCtx(()=>[t.createVNode(X,{itemValue:i,itemName:c},null,8,["itemValue","itemName"])]),_:2},1032,["label","hideLabel"]))),128))]),key:"2"}:void 0,a?.lx?.postHeader?{name:"postHeader",fn:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a?.lx?.postHeader?.properties,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${l}-${c}`,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[y?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${l}-${c}-${s}`,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,(B,M)=>(t.openBlock(),t.createBlock(X,{key:M,itemValue:B,itemName:M},null,8,["itemValue","itemName"]))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:y,itemName:s},null,8,["itemValue","itemName"]))],64))),128))]),_:2},1032,["id","orientation","kind","mode","horizontal-alignment","vertical-alignment","horizontal-config","vertical-config"])):(t.openBlock(),t.createBlock(X,{key:1,itemValue:i,itemName:c},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"])):a?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:1,id:`${e.id}-${l}`,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,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[i?.lx?.displayType==="stack"?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:0,id:`${e.id}-${l}-${c}`,orientation:i?.lx?.orientation,kind:i?.lx?.kind,mode:i?.lx?.mode,"horizontal-alignment":i?.lx?.horizontalAlignment,"vertical-alignment":i?.lx?.verticalAlignment,"horizontal-config":i?.lx?.horizontalConfig,"vertical-config":i?.lx?.verticalConfig},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.schema?.properties?.[l]?.properties?.[c]?.properties,(y,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[f.value?.[l]?(t.openBlock(),t.createBlock(Fe,{key:0,modelValue:f.value[l][c],"onUpdate:modelValue":B=>f.value[l][c]=B,schema:e.schema?.properties?.[l]?.properties?.[c],displaySchema:$.value?.properties?.[l]?.properties?.[c],row:y,name:s,readOnly:e.readOnly,parentName:`${l}.${c}`,vv:Q.value,texts:S.value,validations:e.validations?.[l]?.[c],onRowActionClick:(B,M,Z,U)=>N(B,M,`${l}.${c}.${Z}`,U),onEmit:(B,M,Z,U)=>J(B,`${l}.${c}.${M}`,Z,U)},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"])):i?.lx?.displayType!=="stack"&&f.value?(t.openBlock(),t.createBlock(Fe,{key:1,modelValue:f.value[l],"onUpdate:modelValue":y=>f.value[l]=y,schema:e.schema?.properties?.[l],displaySchema:$.value?.properties?.[l],row:i,name:c,readOnly:e.readOnly,parentName:`${l}`,vv:Q.value,texts:S.value,validations:e.validations?.[l],onRowActionClick:(y,s,B,M)=>N(y,s,`${l}.${B}`,M),onEmit:(y,s,B,M)=>J(y,`${l}.${s}`,B,M)},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!=="filters"?(t.openBlock(),t.createBlock(Fe,{key:2,modelValue:f.value,"onUpdate:modelValue":u[1]||(u[1]=i=>f.value=i),schema:e.schema,displaySchema:$.value,row:a,name:l,readOnly:e.readOnly,texts:S.value,vv:Q.value,validations:e.validations,builderOptions:{componentStack:[{id:e.id,name:"LxViewLayout"}],useRegistry:e.builderOptions?.useRegistry},onRowActionClick:u[2]||(u[2]=(i,c,y,s)=>N(i,c,y,s)),onEmit:u[3]||(u[3]=(i,c,y,s)=>J(i,c,y,s))},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(o.LxForm),null,{default:t.withCtx(()=>[t.createVNode(qe,{modelValue:f.value,"onUpdate:modelValue":u[4]||(u[4]=a=>f.value=a),schema:$.value?.properties?.form,readOnly:e.readOnly,texts:S.value,validations:e.validations,mode:"view-builder",onRowActionClick:u[5]||(u[5]=(a,l,i,c)=>N(a,l,i,c)),onEmit:u[6]||(u[6]=(a,l,i,c)=>J(a,l,i,c))},null,8,["modelValue","schema","readOnly","texts","validations"])]),_:1})]),key:"1"}]),1032,["kind","id","builderOptions"])):t.createCommentVNode("",!0)}};function ql(e,h){return t.getCurrentScope()?(t.onScopeDispose(e,h),!0):!1}const it=new WeakMap,Kl=(...e)=>{var h;const m=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)&&m in it.get(n)?it.get(n)[m]:t.inject(...e)},Hl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gl=Object.prototype.toString,Jl=e=>Gl.call(e)==="[object Object]",Rt=()=>{};function Wl(e,h){function m(...x){return new Promise((n,S)=>{Promise.resolve(e(()=>h.apply(this,x),{fn:h,thisArg:this,args:x})).then(n).catch(S)})}return m}function Ql(e,h={}){let m,x,n=Rt;const S=b=>{clearTimeout(b),n(),n=Rt};let z;return b=>{const P=t.toValue(e),H=t.toValue(h.maxWait);return m&&S(m),P<=0||H!==void 0&&H<=0?(x&&(S(x),x=void 0),Promise.resolve(b())):new Promise((N,J)=>{n=h.rejectOnCancel?J:N,z=b,H&&!x&&(x=setTimeout(()=>{m&&S(m),x=void 0,N(z())},H)),m=setTimeout(()=>{x&&S(x),x=void 0,N(b())},P)})}}function qt(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function ot(e){return Array.isArray(e)?e:[e]}function Yl(e){return t.getCurrentInstance()}function Kt(e,h=200,m={}){return Wl(Ql(h,m),e)}function Zl(e,h=!0,m){Yl()?t.onMounted(e,m):h?e():t.nextTick(e)}function Xl(e,h,m){return t.watch(e,h,{...m,immediate:!0})}const rt=Hl?window:void 0;function Ul(e){var h;const m=t.toValue(e);return(h=m?.$el)!==null&&h!==void 0?h:m}function ct(...e){const h=[],m=()=>{h.forEach(f=>f()),h.length=0},x=(f,b,P,H)=>(f.addEventListener(b,P,H),()=>f.removeEventListener(b,P,H)),n=t.computed(()=>{const f=ot(t.toValue(e[0])).filter(b=>b!=null);return f.every(b=>typeof b!="string")?f:void 0}),S=Xl(()=>{var f,b;return[(f=(b=n.value)===null||b===void 0?void 0:b.map(P=>Ul(P)))!==null&&f!==void 0?f:[rt].filter(P=>P!=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,b,P,H])=>{if(m(),!f?.length||!b?.length||!P?.length)return;const N=Jl(H)?{...H}:H;h.push(...f.flatMap(J=>b.flatMap(G=>P.map(E=>x(J,G,E,N)))))},{flush:"post"}),z=()=>{S(),m()};return ql(m),z}function Il(){const e=t.shallowRef(!1),h=t.getCurrentInstance();return h&&t.onMounted(()=>{e.value=!0},h),e}function _l(e){const h=Il();return t.computed(()=>(h.value,!!e()))}const en=Symbol("vueuse-ssr-width");function tn(){const e=t.hasInjectionContext()?Kl(en,null):null;return typeof e=="number"?e:void 0}function ln(e,h={}){const{window:m=rt,ssrWidth:x=tn()}=h,n=_l(()=>m&&"matchMedia"in m&&typeof m.matchMedia=="function"),S=t.shallowRef(typeof x=="number"),z=t.shallowRef(),f=t.shallowRef(!1),b=P=>{f.value=P.matches};return t.watchEffect(()=>{if(S.value){S.value=!n.value,f.value=t.toValue(e).split(",").some(P=>{const H=P.includes("not all"),N=P.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),J=P.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let G=!!(N||J);return N&&G&&(G=x>=qt(N[1])),J&&G&&(G=x<=qt(J[1])),H?!G:G});return}n.value&&(z.value=m.matchMedia(t.toValue(e)),f.value=z.value.matches)}),ct(z,"change",b,{passive:!0}),t.computed(()=>f.value)}function nn(e={}){const{window:h=rt,initialWidth:m=Number.POSITIVE_INFINITY,initialHeight:x=Number.POSITIVE_INFINITY,listenOrientation:n=!0,includeScrollbar:S=!0,type:z="inner"}=e,f=t.shallowRef(m),b=t.shallowRef(x),P=()=>{if(h)if(z==="outer")f.value=h.outerWidth,b.value=h.outerHeight;else if(z==="visual"&&h.visualViewport){const{width:N,height:J,scale:G}=h.visualViewport;f.value=Math.round(N*G),b.value=Math.round(J*G)}else S?(f.value=h.innerWidth,b.value=h.innerHeight):(f.value=h.document.documentElement.clientWidth,b.value=h.document.documentElement.clientHeight)};P(),Zl(P);const H={passive:!0};return ct("resize",P,H),h&&z==="visual"&&h.visualViewport&&ct(h.visualViewport,"resize",P,H),n&&t.watch(ln("(orientation: portrait)"),()=>P()),{width:f,height:b}}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 an(){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 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"},dn={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 m=e,x=h,n=t.computed({get(){return m.modelValue},set(D){x("update:modelValue",D)}}),S=t.computed(()=>o.lxIconUtils.getAvailableIcons("cds")?.map(D=>({id:D,name:D})));function z(D="cds"){return o.lxIconUtils.getAvailableIcons(D||"cds")?.map($=>({id:$,name:$}))}function f(D){return D.type.name==="Number"||Array.isArray(D.type)&&D.type.some($=>$.name==="Number")}function b(D){return(D.type.name==="String"||Array.isArray(D.type)&&D.type.some($=>$.name==="String"))&&m.name!=="icon"}function P(D){return D.type.name==="Boolean"||Array.isArray(D.type)&&D.type.some($=>$.name==="Boolean")}function H(D){return D.type.name==="Date"}function N(D){return(D||[]).filter($=>$!=null).map($=>({id:$,name:$}))}const J=t.ref(),G=t.ref(null),E=t.ref();function O(){J.value.open(),G.value=o.lxFormatUtils.objectClone(m.modelValue[m.name])}function w(D){if(D==="save"){const $=E.value.clearModel(G.value);n.value[m.name]=$,J.value.close()}}const F=t.ref(),R=t.ref(null),oe=t.ref();function le(){R.value=o.lxFormatUtils.objectClone(m.modelValue.index),F.value.open()}function Y(D){if(D==="save"){const $=oe.value.clearModel(R.value);n.value.index=$,F.value.close()}}const Q=t.ref(),T=t.ref(null),d=t.ref();function r(){Q.value.open(),T.value=o.lxFormatUtils.objectClone(m.modelValue[m.name])}function re(D){if(D==="save"){const $=d.value.clearModel(T.value);n.value[m.name]=$,Q.value.close()}}function ne(D){return m.name==="columnSpan"||m.name==="rowSpan"||m.name==="columnCount"||m.name==="cadenceOfMinutes"||m.name==="cadenceOfSeconds"?"tags":D.length>5?"dropdown":"default"}return(D,$)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(b(e.item)||H(e.item))&&(e.name==="minDate"||e.name==="maxDate")?(t.openBlock(),t.createBlock(t.unref(o.LxDateTimePicker),{key:0,modelValue:n.value[e.name],"onUpdate:modelValue":$[0]||($[0]=L=>n.value[e.name]=L),kind:"dateTime"},null,8,["modelValue"])):b(e.item)&&!e.item.options?(t.openBlock(),t.createBlock(t.unref(o.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(o.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"])):P(e.item)?(t.openBlock(),t.createBlock(t.unref(o.LxToggle),{key:3,modelValue:n.value[e.name],"onUpdate:modelValue":$[3]||($[3]=L=>n.value[e.name]=L)},null,8,["modelValue"])):e.item.options&&(b(e.item)||f(e.item))?(t.openBlock(),t.createBlock(t.unref(o.LxValuePicker),{key:4,modelValue:n.value[e.name],"onUpdate:modelValue":$[4]||($[4]=L=>n.value[e.name]=L),items:N(e.item.options),variant:ne(e.item.options),nullable:e.item.options.includes(null),convertToString:!b(e.item)},null,8,["modelValue","items","variant","nullable","convertToString"])):t.createCommentVNode("",!0),m.name==="icon"?(t.openBlock(),t.createBlock(t.unref(o.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",on,[t.createVNode(t.unref(o.LxIcon),{value:L.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(L.name),1)])]),_:1},8,["modelValue","items"])):t.createCommentVNode("",!0),m.name==="index"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:6},[t.createVNode(t.unref(o.LxButton),{label:e.texts.edit,kind:"secondary",icon:"edit",onClick:le},null,8,["label"]),t.createVNode(t.unref(o.LxModal),{ref_key:"indexModal",ref:F,label:"index",size:"m",actionDefinitions:[{id:"save",name:e.texts.save,kind:"primary"},{id:"close",name:e.texts.close,kind:"secondary"}],onActionClick:Y},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxAppendableList),{ref_key:"indexList",ref:oe,modelValue:R.value,"onUpdate:modelValue":$[6]||($[6]=L=>R.value=L),columnCount:2,requiredMode:"none"},{customItem:t.withCtx(({item:L})=>[t.createVNode(t.unref(o.LxRow),{label:"id"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":v=>L.id=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"name"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":v=>L.name=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),m.name==="actionDefinitions"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:7},[t.createVNode(t.unref(o.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:O},null,8,["label"]),t.createVNode(t.unref(o.LxModal),{ref_key:"actionDefinitionsModal",ref:J,label:"actionDefinitions",size:"l",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(o.LxAppendableList),{ref_key:"actionDefList",ref:E,modelValue:G.value,"onUpdate:modelValue":$[7]||($[7]=L=>G.value=L),columnCount:8,requiredMode:"required-asterisk"},{customItem:t.withCtx(({item:L})=>[t.createVNode(t.unref(o.LxRow),{label:"id",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":v=>L.id=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"name",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":v=>L.name=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"title",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.title,"onUpdate:modelValue":v=>L.title=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"kind",columnSpan:"2",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxValuePicker),{modelValue:L.kind,"onUpdate:modelValue":v=>L.kind=v,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(o.LxRow),{label:"icon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxAutoComplete),{modelValue:L.icon,"onUpdate:modelValue":v=>L.icon=v,items:z(L?.iconSet)},{customItem:t.withCtx(v=>[t.createElementVNode("div",rn,[t.createVNode(t.unref(o.LxIcon),{value:v.name,iconSet:L?.iconSet||"cds"},null,8,["value","iconSet"]),t.createElementVNode("p",null,t.toDisplayString(v.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"iconSet",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxValuePicker),{modelValue:L.iconSet,"onUpdate:modelValue":v=>L.iconSet=v,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(o.LxRow),{label:"disabled"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxToggle),{modelValue:L.disabled,"onUpdate:modelValue":v=>L.disabled=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"loading"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxToggle),{modelValue:L.loading,"onUpdate:modelValue":v=>L.loading=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"busy"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxToggle),{modelValue:L.busy,"onUpdate:modelValue":v=>L.busy=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"destructive"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxToggle),{modelValue:L.destructive,"onUpdate:modelValue":v=>L.destructive=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"badge",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.badge,"onUpdate:modelValue":v=>L.badge=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"badgeType",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxValuePicker),{modelValue:L.badgeType,"onUpdate:modelValue":v=>L.badgeType=v,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(o.LxRow),{label:"badgeIcon",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxAutoComplete),{modelValue:L.badgeIcon,"onUpdate:modelValue":v=>L.badgeIcon=v,items:S.value},{customItem:t.withCtx(v=>[t.createElementVNode("div",cn,[t.createVNode(t.unref(o.LxIcon),{value:v.name},null,8,["value"]),t.createElementVNode("p",null,t.toDisplayString(v.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"badgeTitle",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.badgeTitle,"onUpdate:modelValue":v=>L.badgeTitle=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0),m.name==="items"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:8},[t.createVNode(t.unref(o.LxButton),{label:e.texts.edit,icon:"edit",kind:"secondary",onClick:r},null,8,["label"]),t.createVNode(t.unref(o.LxModal),{ref_key:"itemsModal",ref:Q,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(o.LxAppendableList),{ref_key:"itemsList",ref:d,modelValue:T.value,"onUpdate:modelValue":$[8]||($[8]=L=>T.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(o.LxRow),{label:"id",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":v=>L.id=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"name",required:!0},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":v=>L.name=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxAutoComplete),{modelValue:L.icon,"onUpdate:modelValue":v=>L.icon=v,items:z(L?.iconSet)},{customItem:t.withCtx(v=>[t.createElementVNode("div",dn,[t.createVNode(t.unref(o.LxIcon),{value:v.name,iconSet:L?.iconSet||"cds"},null,8,["value","iconSet"]),t.createElementVNode("p",null,t.toDisplayString(v.name),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"iconSet"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxValuePicker),{modelValue:L.iconSet,"onUpdate:modelValue":v=>L.iconSet=v,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(o.LxRow),{label:"id",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.id,"onUpdate:modelValue":v=>L.id=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"name",columnSpan:"2"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.name,"onUpdate:modelValue":v=>L.name=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),t.createVNode(t.unref(o.LxRow),{label:"description",columnSpan:"1"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextInput),{modelValue:L.description,"onUpdate:modelValue":v=>L.description=v},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64))]),_:1},8,["modelValue"])]),_:1},8,["actionDefinitions"])],64)):t.createCommentVNode("",!0)],64))}},sn={__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 m=e,x=h,n=t.computed({get(){return m.modelValue},set(Y){x("update:modelValue",Y)}}),S=t.computed({get(){return m.componentModel},set(Y){x("update:componentModel",Y)}});function z(Y){if(Y==="LxForm"&&!m.navigation?.some(Q=>Q?.name==="LxFilters")){const Q={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}},T=m.searchString?Object.entries(Q).filter(([d])=>d.toLowerCase().includes(m.searchString.toLowerCase())):Object.entries(Q);return Object.fromEntries(T)}return null}function f(Y,Q){if(!Y)return{};const d=Object.entries(Y).filter(([,re])=>re?.group===Q).sort(([,re],[,ne])=>(re.sequence||0)-(ne.sequence||0)),r=m.searchString?d.filter(([re])=>re.toLowerCase().includes(m.searchString.toLowerCase())):d;return Object.fromEntries(r)}function b(Y,Q){if(Q==="LxForm"&&m.navigation?.some(T=>T?.name==="LxFilters"))return{};if(Q==="LxSection"&&m.navigation?.some(T=>T?.name==="LxFilters")){const{columnCount:T}=Y;return T?{columnCount:T}:{}}return Y}function P(Y,Q){return Q==="LxForm"&&m.navigation?.some(T=>T?.name==="LxFilters")?{}:Q==="LxSection"&&m.navigation?.some(T=>T?.name==="LxFilters")?{}:Y}const H=t.computed(()=>!(!m.componentName||m.componentName==="LxForm"&&m.navigation?.some(Y=>Y?.name==="LxFilters")||m.componentName==="LxViewLayout")),N=t.computed(()=>H.value?m.searchString?"schemaKey".includes(m.searchString?.toLowerCase()):!0:!1),J=t.computed(()=>{const Y=f(m.componentPropsDefinitions,"main"),Q=z(m.componentName);return Q?{...Y,...Q}:b(Y,m.componentName)}),G=t.computed(()=>P(f(m.componentPropsDefinitions,"additional"),m.componentName)),E=t.computed(()=>f(m.componentPropsDefinitions,"mode"));function O(Y,Q){let T=null;Y==="header"?(T={...S.value},T.title=Q):T={...S.value,lx:{...S.value.lx,[Y]:{properties:{text:{type:"string",lx:{value:Q}}}}}},Y==="preHeaderInfo"?T.lx.showPreHeaderInfo=!S.value.lx.showPreHeaderInfo:Y==="postHeaderInfo"&&(T.lx.showPostHeaderInfo=!S.value.lx.showPostHeaderInfo),S.value=T,t.nextTick(()=>{Y==="preHeaderInfo"?T.lx.showPreHeaderInfo=!S.value.lx.showPreHeaderInfo:Y==="postHeaderInfo"&&(T.lx.showPostHeaderInfo=!S.value.lx.showPostHeaderInfo),S.value=T})}function w(Y,Q){return Q==="header"?S.value.title:S.value.lx?.[Q]?.properties?.text?.lx?.value}const F=Kt(Y=>{x("update:schemaKey",Y)},500),R=t.computed({get(){return m.schemaKey},set(Y){F(Y)}}),oe=t.ref(0);function le(){R.value=m.schemaKey,oe.value+=1}return(Y,Q)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[!Object.keys(J.value).length&&!Object.keys(G.value).length&&!Object.keys(E.value).length&&!N.value?(t.openBlock(),t.createBlock(t.unref(o.LxEmptyState),{key:0,label:e.searchString?`${e.texts.notFoundSearch} ${JSON.stringify(m.searchString)}`:e.texts.notFoundProps},null,8,["label"])):t.createCommentVNode("",!0),Object.keys(J.value).length?(t.openBlock(),t.createBlock(t.unref(o.LxForm),{key:1,kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(J.value,(T,d)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:T.name,label:`:${d}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:T,name:d,componentName:e.componentName,texts:e.texts},null,8,["modelValue","item","name","componentName","texts"])]),_:2},1032,["label"])),[[t.vShow,!T.extra]])),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(J.value,(T,d)=>t.withDirectives((t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:T.name,label:`${d}`},{default:t.withCtx(()=>[T?.extra?(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:0,modelValue:w(T,d),"onUpdate:modelValue":r=>O(d,r)},null,8,["modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0)]),_:2},1032,["label"])),[[t.vShow,T.extra]])),128))]),_:1})):t.createCommentVNode("",!0),Object.keys(G.value).length||N.value?(t.openBlock(),t.createBlock(t.unref(o.LxExpander),{key:2,label:e.texts.additionalLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[N.value?(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:0,label:"schemaKey"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxStack),{orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.unref(o.LxTextInput),{key:oe.value,modelValue:R.value,"onUpdate:modelValue":Q[0]||(Q[0]=T=>R.value=T),invalid:!!e.schemaKeyError,invalidationMessage:e.schemaKeyError},null,8,["modelValue","invalid","invalidationMessage"])),e.schemaKeyError?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"reset",kind:"tertiary",label:e.texts?.resetKey,variant:"icon-only",onClick:Q[1]||(Q[1]=T=>le())},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})]),_:1})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.value,(T,d)=>(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:T.name,label:`:${d}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:T,name:d,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(E.value).length?(t.openBlock(),t.createBlock(t.unref(o.LxExpander),{key:3,label:e.texts.modeLabel},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxForm),{kind:"stripped"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,(T,d)=>(t.openBlock(),t.createBlock(t.unref(o.LxRow),{key:T.name,label:`:${d}`},{default:t.withCtx(()=>[t.createVNode(st,{modelValue:n.value,item:T,name:d,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))}},mn={class:"lx-panel"},un={class:"button-side"},xn={key:0,class:"panel-side"},fn={class:"header-wrapper"},yn={key:1,class:"header-wrapper"},hn={key:0},gn={key:1},kn={key:2},bn={key:0,class:"panel-main"},Sn={class:"button-group"},Bn={key:1,class:"no-component-wrapper"},An={key:1,class:"panel-main lx-region",style:{padding:"0.25rem"}},Cn={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},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 m=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(()=>o.lxGeneralUtils.getDisplayTexts(m.texts,x)),S=h,z=t.computed({get(){return m.componentModel},set(T){S("update:componentModel",T)}}),f=t.ref(!0),b=t.computed({get(){return m.selectedTab||(f.value?"config":null)},set(T){S("update:selectedTab",T)}});function P(T){f.value=!T,T?b.value=null:b.value="config"}const H=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}]),N=t.ref(an());function J(){return m.componentName==="LxForm"&&!m.schemaInfo?.isSectionInFilterForm}const G=t.computed(()=>{if(!m.componentName)return[];let T=[...N.value];return T=T.map(d=>({...d,clickable:m.componentName!=="LxForm"})),T.push({id:"LxSection",name:"LxSection",usageGroup:"containers",clickable:J()},{id:"LxForm",name:"LxForm",usageGroup:"containers",clickable:m.componentName==="LxViewLayout"&&!m.schemaInfo?.hasForm&&!m.schemaInfo?.hasFilters},{id:"LxFilters",name:"LxFilters",usageGroup:"containers",clickable:m.componentName==="LxViewLayout"&&!m.schemaInfo?.hasForm&&!m.schemaInfo?.hasFilters}),T.filter(d=>d.clickable)?.sort((d,r)=>d?.name?.localeCompare(r?.name))});function E(T){m.navigation[m.navigation.length-1]?.id!==T&&S("componentChange",m.navigation.find(d=>d.id===T))}function O(T,d){const r=o.lxFormatUtils.objectClone(m.componentModel)||{};return T==="LxTextInput"?(r.type="string",r.maxLength=d.maxlength,r.lx=r.lx||{},r.lx.mask=d.mask||"default",r.lx.kind=d.kind||"default",r.lx.scale=d.scale,r.lx.tooltip=d.tooltip,r.lx.disabled=d.disabled||!1,r.lx.uppercase=d.uppercase||!1,r.lx.convertToString=d.convertToString||!1,r.lx.placeholder=d.placeholder,r.lx.signed=d.signed||!1,r.readOnly=d.readOnly||!1):T==="LxToggle"?(r.type="boolean",r.lx=r.lx||{},r.lx.size=d.size||"m",r.lx.disabled=d.disabled||!1,r.lx.tooltip=d.tooltip,r.readOnly=d.readOnly||!1):T==="LxValuePicker"?(r.type=d.selectionKind==="multiple"?"array":"string",r.lx=r.lx||{},r.lx.items=d.items||[],r.lx.idAttribute=d.idAttribute,r.lx.nameAttribute=d.nameAttribute,r.lx.iconAttribute=d.iconAttribute,r.lx.iconSetAttribute=d.iconSetAttribute,r.lx.categoryAttribute=d.categoryAttribute,r.lx.descriptionAttribute=d.descriptionAttribute,r.lx.variant=d.variant,r.lx.hasSearch=d.hasSearch||!1,r.lx.alwaysAsArray=d.alwaysAsArray||!1,r.lx.nullable=d.nullable||!1,r.lx.tooltip=d.tooltip,r.lx.texts=d.texts,r.lx.placeholder=d.placeholder,r.lx.disabled=d.disabled||!1,r.readOnly=d.readOnly||!1,r.lx.searchAttributes=d.searchAttributes,r.lx.hasSelectAll=d.hasSelectAll||!1,r.lx.readOnlyRenderType=d.readOnlyRenderType||"row"):T==="LxRow"?(r.title=d.label,r.lx=r.lx||{},r.lx.columnSpan=d.columnSpan||"1",r.lx.rowSpan=d.rowSpan||"1",r.lx.rowActionDefinitions=d.rowActionDefinitions):T==="LxTextArea"?(r.type="string",r.maxLength=d.maxlength,r.lx=r.lx||{},r.lx.kind="multiline",r.lx.placeholder=d.placeholder,r.lx.rows=d.rows||3,r.lx.disabled=d.disabled||!1,r.lx.dynamicHeight=d.dynamicHeight||!1,r.lx.tooltip=d.tooltip,r.readOnly=d.readOnly||!1):T==="LxDateTimePicker"?(r.type="string",r.lx=r.lx||{},r.format=d.kind||"date",r.lx.placeholder=d.placeholder,r.lx.tooltip=d.tooltip,r.lx.minDate=d.minDate,r.lx.maxDate=d.maxDate,r.lx.required=d.required||!1,r.lx.disabled=d.disabled||!1,r.lx.timeAdjust=d.timeAdjust,r.lx.clearIfNotExact=d.clearIfNotExact||!1,r.lx.texts=d.texts,r.lx.locale=d.locale,r.lx.specialDates=d.specialDates,r.lx.dictionary=d.dictionary,r.lx.variant=d.variant||"default",r.lx.cadenceOfMinutes=d.cadenceOfMinutes?Number(d.cadenceOfMinutes):1,r.lx.cadenceOfSeconds=d.cadenceOfSeconds?Number(d.cadenceOfSeconds):1,r.readOnly=d.readOnly||!1):T==="LxAutoComplete"?(r.type=d.selectionKind==="multiple"?"array":"string",r.lx=r.lx||{},r.lx.items=d.items||[],r.lx.idAttribute=d.idAttribute||"id",r.lx.nameAttribute=d.nameAttribute||"name",r.lx.dictionary=d.dictionary,r.lx.groupId=d.groupId,r.lx.queryMinLength=d.queryMinLength||0,r.lx.queryMaxLength=d.queryMaxLength,r.lx.queryDebounce=d.queryDebounce||200,r.lx.placeholder=d.placeholder,r.lx.tooltip=d.tooltip,r.lx.disabled=d.disabled||!1,r.lx.loading=d.loading||!1,r.lx.hasDetails=d.hasDetails||!1,r.lx.selectionKind=d.selectionKind||"single",r.lx.preloadedItems=d.preloadedItems,r.lx.labelId=d.labelId,r.lx.hasSelectAll=d.hasSelectAll||!1,r.lx.enableAdditionalText=d.enableAdditionalText||!1,r.lx.texts=d.texts,r.lx.searchAttributes=d.searchAttributes,r.readOnly=d.readOnly||!1):T==="LxCamera"?(r.type="string",r.lx=r.lx||{},r.lx.cameraSwitcherMode=d.cameraSwitcherMode||"toggle",r.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,r.lx.imageSize=d.imageSize||"default",r.lx.preferencesId=d.preferencesId||"lx-camera-settings",r.lx.labelId=d.labelId,r.lx.texts=d.texts):T==="LxCheckbox"?(r.type="boolean",r.lx=r.lx||{},r.lx.groupId=d.groupId,r.lx.label=d.label,r.lx.disabled=d.disabled||!1,r.lx.value=d.value||"none",r.lx.tabindex=d.tabindex||"0",r.lx.labelId=d.labelId):T==="LxContentSwitcher"?(r.type="string",r.lx=r.lx||{},r.lx.items=d.items,r.lx.idAttribute=d.idAttribute||"id",r.lx.nameAttribute=d.nameAttribute||"name",r.lx.disabled=d.disabled||!1,r.lx.kind=d.kind||"default",r.lx.icon=d.icon,r.lx.iconSet=d.iconSet,r.lx.tooltip=d.tooltip,r.lx.labelId=d.labelId,r.readOnly=d.readOnly||!1):T==="LxDateTimeRange"?(r.type="object",r.format=d.kind||"date",r.lx=r.lx||{},r.lx.placeholder=d.placeholder,r.lx.tooltip=d.tooltip,r.lx.minDate=d.minDate,r.lx.maxDate=d.maxDate,r.lx.required=d.required||!1,r.lx.disabled=d.disabled||!1,r.lx.timeAdjust=d.timeAdjust,r.lx.locale=d.locale,r.lx.rangeMonths=d.rangeMonths||"next",r.lx.clearIfNotExact=d.clearIfNotExact||!1,r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly||!1):T==="LxFileUploader"?(r.type="array",r.lx=r.lx||{},r.lx.selectionKind=d.selectionKind||"single",r.lx.mode=d.mode||"default",r.lx.draggable=d.draggable||!1,r.lx.dataType=d.dataType||"meta",r.lx.hasSearch=d.hasSearch||!1,r.lx.disabled=d.disabled||!1,r.lx.loading=d.loading||!1,r.lx.busy=d.busy||!1,r.lx.allowedFileExtensions=d.allowedFileExtensions||[],r.lx.maxFileSize=d.maxFileSize||3e7,r.lx.hasDownloadButton=d.hasDownloadButton||!1,r.lx.showMeta=d.showMeta??!0,r.lx.maxSizeForMeta=d.maxSizeForMeta||3e7,r.lx.hasCamera=d.hasCamera||!1,r.lx.cameraSwitcherMode=d.cameraSwitcherMode||"toggle",r.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,r.lx.imageSize=d.imageSize||"default",r.lx.preferencesId=d.preferencesId||"lx-camera-settings",r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly||!1):T==="LxNumberSlider"?(r.type="integer",r.lx=r.lx||{},r.lx.min=d.min||0,r.lx.max=d.max||9999,r.lx.step=d.step||1,r.lx.stepMultiplier=d.stepMultiplier||5,r.lx.hasInput=d.hasInput||!1,r.lx.labelId=d.labelId,r.lx.disabled=d.disabled||!1,r.lx.kind=d.kind||"slider",r.readOnly=d.readOnly||!1):T==="LxQrScanner"?(r.type="object",r.lx=r.lx||{},r.lx.formats=d.formats||["qr_code"],r.lx.hasFileUploader=d.hasFileUploader??!0,r.lx.selectionKind=d.selectionKind||"single",r.lx.cameraSwitcherMode=d.cameraSwitcherMode||"list",r.lx.hasFlashlightToggle=d.hasFlashlightToggle||!1,r.lx.showAlerts=d.showAlerts??!0,r.lx.labelId=d.labelId,r.lx.texts=d.texts):T==="LxVisualPicker"?(r.type=d.selectionKind==="multiple"?"array":"string",r.lx=r.lx||{},r.lx.kind=d.kind||"europe",r.lx.mode=d.mode||"default",r.lx.selectionKind=d.selectionKind||"multiple",r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly||!1):T==="LxDayInput"?(r.type="integer",r.lx=r.lx||{},r.lx.disabled=d.disabled||!1,r.lx.kind=d.kind||"label",r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly||!1):T==="LxDrawPad"?(r.type="string",r.lx=r.lx||{},r.lx.disabled=d.disabled??!1,r.lx.width=d.width||"500",r.lx.height=d.height||"400",r.lx.instrument=d.instrument||"brush",r.lx.color=d.color||"black",r.lx.showInstruments=d.showInstruments??!1,r.lx.showColorPicker=d.showColorPicker??!1,r.lx.showClearAll=d.showClearAll??!1,r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly??!1):T==="LxMarkdownTextArea"?(r.type="string",r.lx=r.lx||{},r.lx.placeholder=d.placeholder,r.lx.rows=d.rows,r.maxLength=d.maxlength,r.lx.disabled=d.disabled??!1,r.lx.showColorPicker=d.showColorPicker??!1,r.lx.showLinkEditor=d.showLinkEditor??!0,r.lx.tooltip=d.tooltip,r.lx.showPlaceholderPicker=d.showPlaceholderPicker??!1,r.lx.showImagePicker=d.showImagePicker??!1,r.lx.showUnderlineToggle=d.showUnderlineToggle??!1,r.lx.showHeadingPicker=d.showHeadingPicker??!1,r.lx.imageMaxSize=d.imageMaxSize??3e6,r.lx.dictionary=d.dictionary,r.lx.labelId=d.labelId,r.lx.texts=d.texts,r.readOnly=d.readOnly??!1):T==="LxSection"?(r.type="object",r.lx=r.lx||{},r.properties=r.properties||{},r.title=d.label,r.description=d.description,r.lx.columnCount=Number(d.columnCount)||1,r.lx.requiredMode=d.requiredMode||"none",r.lx.icon=d.icon,r.lx.iconSet=d.iconSet||"cds",r.lx.customClass=d.customClass,r.lx.badge=d.badge,r.lx.actionDefinitions=d.actionDefinitions,r.lx.orientation=d.orientation):T==="LxForm"?(r.type="object",r.lx=r.lx||{},r.properties=r.properties||{},r.lx.columnCount=Number(d.columnCount)||1,r.lx.showHeader=d.showHeader??!0,r.lx.stickyHeader=d.stickyHeader??!0,r.lx.showFooter=d.showFooter??!0,r.lx.stickyFooter=d.stickyFooter??!0,r.lx.showPreHeaderInfo=d.showPreHeaderInfo??!0,r.lx.showPostHeaderInfo=d.showPostHeaderInfo??!0,r.lx.index=d.index,r.lx.indexType=d.indexType||"none",r.lx.requiredMode=d.requiredMode||"none",r.lx.kind=d.kind||"default",r.lx.orientation=d.orientation||"vertical",r.lx.hasSkipLink=d.hasSkipLink||!1,r.lx.actionDefinitions=d.actionDefinitions,r.lx.texts=d.texts):T==="LxFilters"&&(r.type="object",r.lx=r.lx||{},r.properties=r.properties||{},r.title=d.label,r.description=d.description,r.lx.defaultValues=d.defaultValues||{},r.lx.useDefaults=d.useDefaults||!1,r.lx.usesFilters=d.usesFilters||!1,r.lx.filterButtonKind=d.filterButtonKind||"tertiary",r.lx.columnCount=d.columnCount||3,r.lx.expanded=d.expanded||!1,r.lx.disabled=d.disabled||!1,r.lx.fastFilters=d.fastFilters||[],r.lx.fastIdAttribute=d.fastIdAttribute||"id",r.lx.fastNameAttribute=d.fastNameAttribute||"name",r.lx.badge=d.badge,r.lx.badgeType=d.badgeType||"default",r.lx.texts=d.texts),r}t.watch(()=>m.componentProps,T=>{const d=O(m.componentName,T);m.componentName==="LxViewLayout"?S("update:viewLayout",T?.kind):S("update:componentModel",d)},{deep:!0});const w=t.computed({get(){return m.componentProps},set(T){S("update:componentProps",T)}}),F=t.computed(()=>m.componentName?m.navigation.map((d,r,re)=>r===re.length-1?{...d,active:!0}:d):[]),R=Kt(T=>{S("update:schemaKey",T)},500),oe=t.computed({get(){return m.schemaKey},set(T){R(T)}}),le=t.ref(null);function Y(){return m.componentName&&m.componentName!=="LxViewLayout"}function Q(){return m.componentName&&m.componentName!=="LxViewLayout"&&m.componentName!=="LxFilters"}return(T,d)=>(t.openBlock(),t.createElementBlock("div",mn,[t.createElementVNode("div",un,[t.createVNode(t.unref(o.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]=r=>P(f.value))},null,8,["icon","label"]),t.createVNode(t.unref(o.LxButton),{icon:"config",variant:"icon-only",label:n.value?.config,kind:"secondary",active:f.value&&b.value==="config",onClick:d[1]||(d[1]=r=>(b.value="config",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(o.LxButton),{icon:"components",variant:"icon-only",label:n.value?.components,kind:"secondary",active:f.value&&b.value==="components",onClick:d[2]||(d[2]=r=>(b.value="components",f.value=!0))},null,8,["label","active"]),t.createVNode(t.unref(o.LxButton),{icon:"settings",variant:"icon-only",label:n.value?.settings,kind:"secondary",active:f.value&&b.value==="settings",onClick:d[3]||(d[3]=r=>(b.value="settings",f.value=!0))},null,8,["label","active"])]),f.value?(t.openBlock(),t.createElementBlock("div",xn,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["config-header",[{"has-selected-element":e.componentName&&b.value==="config"}]])},[b.value==="config"?(t.openBlock(),t.createBlock(t.unref(o.LxDropDownMenu),{key:0,actionDefinitions:F.value,onActionClick:E},{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(o.LxIcon),{value:"menu"})],64)):t.createCommentVNode("",!0)])]),_:1},8,["actionDefinitions"])):(t.openBlock(),t.createElementBlock("div",yn,[b.value==="components"?(t.openBlock(),t.createElementBlock("p",hn,t.toDisplayString(n.value?.components),1)):b.value==="settings"?(t.openBlock(),t.createElementBlock("p",gn,t.toDisplayString(n.value?.settings),1)):(t.openBlock(),t.createElementBlock("p",kn,t.toDisplayString(n.value?.actionPanel),1))]))],2),b.value==="config"?(t.openBlock(),t.createElementBlock("div",bn,[t.createElementVNode("div",Sn,[t.createVNode(t.unref(o.LxButton),{icon:"copy",kind:"secondary",label:n.value?.duplicate,disabled:!Q(),onClick:d[4]||(d[4]=r=>S("duplicateComponent"))},null,8,["label","disabled"]),t.createVNode(t.unref(o.LxButton),{icon:"delete",kind:"secondary",label:n.value?.delete,disabled:!Y(),destructive:!0,onClick:d[5]||(d[5]=r=>S("removeComponent"))},null,8,["label","disabled"])]),t.createVNode(t.unref(o.LxTextInput),{modelValue:le.value,"onUpdate:modelValue":d[6]||(d[6]=r=>le.value=r),kind:"search",placeholder:n.value?.searchProps,disabled:!e.componentName,class:"prop-search"},null,8,["modelValue","placeholder","disabled"]),e.componentName?(t.openBlock(),t.createBlock(sn,{key:0,modelValue:w.value,"onUpdate:modelValue":d[7]||(d[7]=r=>w.value=r),componentName:e.componentName,componentPropsDefinitions:e.componentPropsDefinitions,searchString:le.value,componentModel:z.value,"onUpdate:componentModel":d[8]||(d[8]=r=>z.value=r),schemaKey:oe.value,"onUpdate:schemaKey":d[9]||(d[9]=r=>oe.value=r),schemaKeyError:e.schemaKeyError,navigation:F.value,texts:n.value},null,8,["modelValue","componentName","componentPropsDefinitions","searchString","componentModel","schemaKey","schemaKeyError","navigation","texts"])):(t.openBlock(),t.createElementBlock("div",Bn,[t.createVNode(t.unref(o.LxEmptyState),{label:n.value?.noComponentSelected},null,8,["label"])]))])):t.createCommentVNode("",!0),b.value==="components"?(t.openBlock(),t.createElementBlock("div",An,[t.createVNode(t.unref(o.LxList),{listType:"1",hasSearch:!0,items:G.value,groupDefinitions:H.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]=(r,re)=>S("componentAdd",re))},null,8,["items","groupDefinitions","texts"])])):t.createCommentVNode("",!0),b.value==="settings"?(t.openBlock(),t.createElementBlock("div",Cn,[t.createElementVNode("div",pn,[t.createVNode(t.unref(o.LxButton),{kind:"secondary",label:n.value?.import,icon:"upload",onClick:d[11]||(d[11]=r=>S("import"))},null,8,["label"]),t.createVNode(t.unref(o.LxButton),{kind:"secondary",label:n.value?.export,icon:"save",onClick:d[12]||(d[12]=r=>S("export"))},null,8,["label"]),t.createVNode(t.unref(o.LxButton),{kind:"secondary",label:n.value?.editSchema,icon:"edit",onClick:d[13]||(d[13]=r=>S("editSchema"))},null,8,["label"]),t.createVNode(t.unref(o.LxButton),{kind:"secondary",label:n.value?.editModel,icon:"editItem",onClick:d[14]||(d[14]=r=>S("editModel"))},null,8,["label"]),t.createVNode(t.unref(o.LxButton),{kind:"secondary",label:n.value?.reportIssue,icon:"bug",onClick:d[15]||(d[15]=r=>S("reportIssue"))},null,8,["label"])])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0)]))}}),Ln={id:"constructor-overlay"},$n={class:"highlight-toolbar"},On={class:"highlight-toolbar highlight-toolbar-remove"},Tn={id:"constructor"},jn={class:"code-display"},Dn={class:"code"},Pn={class:"import-switcher"},zn={class:"component-add-text"},En={class:"lx-primary"},Vn={class:"lx-secondary"},Mn=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 m=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(()=>o.lxGeneralUtils.getDisplayTexts(m.texts,x)),S=t.ref({}),z=h,f=t.computed({get(){return m.schema},set(p){z("update:schema",p)}}),{width:b,height:P}=nn(),H=t.ref([]),N=t.ref(null),J=t.ref(null),G=t.ref(null),E=t.ref(null),O=t.ref(null),w=t.ref({visible:!1,style:{},el:null,padding:2}),F=t.ref(),R=t.ref({canPlaceInside:!1,key:null,path:null}),oe=t.ref({canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}),le=t.ref(null),Y=t.ref(null),Q=t.ref(null),T=t.ref(null),d=t.ref(null),r=t.ref(null),re=t.ref("file"),ne=t.ref(),D=t.ref(null),$=t.ref(null),L=t.ref(null),v=t.computed(()=>!r.value),ce=t.ref(null),me=t.ref(null),be=t.ref(null),pe=t.ref(null),ae=t.ref(),C=t.ref({label:null,description:null,kind:"danger",primaryAction:null,secondaryAction:null}),u=t.ref({canMoveBack:!1,canMoveForward:!1,moveOut:!1,canMoveForwardIn:!1});function a(){u.value.canMoveBack=!1,u.value.canMoveForward=!1,u.value.moveOut=!1,u.value.canMoveForwardIn=!1}function l(p){if(w.value.el=p.target,!w.value.el)return;const k=w.value.el.getBoundingClientRect(),j=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0,V=w.value.padding;w.value.style={left:`${k.left-V}px`,top:`${k.top-V+j}px`,width:`${k.width+V*2}px`,height:`${k.height+V*2}px`},w.value.visible=!0}function i(){t.nextTick(()=>{l({target:w.value.el})})}function c(p){const k=p?.replace(/-wrapper$/,"");return o.builderRegistry.get(k)?.type==="LxRow"}function y(p,k){return k?.reduce((j,V)=>o.lxGeneralUtils.isNil(j)?void 0:j[V],p)}function s(p=null){const k=p||F.value,j=[];return O.value=k?.split("."),O.value?.forEach(V=>{j.push("properties",V)}),j}function B(p){return p?.lx?.displayType}function M(p){return!!p&&Object.prototype.hasOwnProperty.call(p,"properties")&&!!p.properties?B(p)!=="form"?!0:Object.values(p.properties).some(j=>B(j)==="section"):!1}function Z(p){if(!Array.isArray(p))return!1;const k=p.map(W=>W?.name),j=k.indexOf("LxFilters");if(j<0)return!1;const V=k.indexOf("LxForm",j+1);if(V<0)return!1;k.includes("LxSection",V+1)}function U(p,k){(!F.value||!k)&&a();const j=F.value?.split(".")?.slice(-1)[0],V=F.value?.includes(".")?F.value?.split(".")?.slice(0,-1)?.join("."):null,_=(V?y(p,s(V)):p)?.properties,te=Object.keys(_),ie=te.indexOf(j),ye=ie>=0?te[ie+1]:null,xe=ye?_[ye]:null,fe=ie>0?te[ie-1]:null;u.value.canMoveBack=!!fe,u.value.canMoveForward=!!ye,u.value.canMoveForwardIn=M(xe)&&N.value!=="LxSection";const se=V?.includes(".")?V?.split(".")?.slice(0,-1).join("."):null,we=V?.split(".")?.slice(-1)[0]||null,Be=!!V&&!!we&&!!se;u.value.moveOut=Be&&!Z(H.value)}function de(){document.getElementById("constructor")?.addEventListener("click",p=>{let k=p.target,j=null;for(;k;){if(k.dataset.id&&o.builderRegistry.get(k.dataset.id)||c(k.id)){if(c(k.id)){const W=k.id?.replace(/-wrapper$/,"");j=o.builderRegistry.get(W)}else j=o.builderRegistry.get(k.dataset.id||k.id);break}k=k.parentElement}j&&(N.value=j.type,G.value=j.node.type.props,J.value=o.lxFormatUtils.objectClone(j.props),l({target:k}),F.value=j.builderName,H.value=j.componentStack,le.value=F.value?.includes(".")?F.value?.split(".")?.slice(-1)[0]:F.value,be.value=null),E.value=y(f.value,s());const V=F.value?.includes(".")?F.value?.split(".")?.join("."):null;Y.value=y(f.value,s(V)?.slice(0,-1)),U(f.value,E.value),pe.value="config"})}function ge(){return N.value==="LxRow"||N.value==="LxSection"||!H.value.some(p=>p.name==="LxRow")}function g(p){const k=p;return!k||!(k instanceof HTMLElement)?!0:k.isContentEditable||k.closest('[contenteditable="true"]')?!1:!["INPUT","TEXTAREA","SELECT"].includes(k.tagName)}function A(p,k,j){k?.reduce((V,W,_)=>(_===k.length-1?V[W]=j:V[W]=V[W]??{},V[W]),p)}function q(p,k){if(!Array.isArray(k)||k.length===0)return;const j=k.slice(0,-1),V=k[k.length-1],W=j.length?y(p,j):p;!W||!Object.prototype.hasOwnProperty.call(W,V)||delete W[V]}function K(p,k){const j=p?.split(".")?.filter(Boolean)||[],V=k?.split(".")?.filter(Boolean)||[];if(!j.length||!V.length)return;const W=y(S.value,j);if(o.lxGeneralUtils.isNil(W))return;const _=o.lxFormatUtils.objectClone(S.value||{});A(_,V,W),q(_,j),S.value=_}function I(p){const k=[];O.value=F.value?.split("."),O.value?.forEach(V=>{k.push("properties",V)});const j=o.lxFormatUtils.objectClone(f.value);A(j,k,p),f.value=j,E.value=p,i()}function ue(){R.value={canPlaceInside:!1,key:null,path:null}}function he(){oe.value={canMoveOut:!1,parentKey:null,parentPath:null,targetPath:null,placement:null}}function ke(p,k){if(!p||!k||!Object.prototype.hasOwnProperty.call(k,p))return p;let j=o.lxStringUtils.generateUUID();for(;Object.prototype.hasOwnProperty.call(k,j);)j=o.lxStringUtils.generateUUID();return j}function Ae(p){return Array.isArray(p)?p.filter(k=>k!=="properties"):[]}function Ce(p){return Ae(p).join(".")}function Le(p){p&&t.nextTick(()=>{const j=Array.from(o.builderRegistry.all().entries()).find(([,_])=>_?.builderName===p);if(!j)return;const[V]=j;let W=document.querySelector(`[data-id="${V}"]`);W||(W=document.getElementById(`${V}-wrapper`)||document.getElementById(V)),W&&W.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))})}function Ke(){if(!F.value)return;const p=F.value,k=F.value?.split(".")?.slice(-1)[0],j=F.value?.includes(".")?F.value?.split(".")?.slice(0,-1)?.join("."):null,V=j?s(j):null,W=o.lxFormatUtils.objectClone(f.value),_=V?y(W,V):W,te=_?.properties;if(!te||!k)return;const ie=Object.keys(te),ye=ie.indexOf(k),xe=ie[ye+1];if(!xe)return;const fe=te[k],se=te[xe];if(!fe||!se||!M(se))return;let we=se,Be=[j,xe].filter(Boolean)?.join(".");if(B(se)==="form"){const Pe=Object.entries(se.properties||{}).filter(([,et])=>B(et)==="section")[0],[Ge,Jt]=Pe;we=Jt,Be=[Be,Ge].filter(Boolean).join(".")}const $e=o.lxFormatUtils.objectClone(fe),Oe=o.lxFormatUtils.objectClone(we.properties||{}),Te=ke(k,Oe);we.properties={...Oe,[Te]:$e},A(W,s(Be),we),_.properties=Object.fromEntries(Object.entries(te).filter(([Ne])=>Ne!==k)),V&&A(W,V,_),f.value=W;const ve=[Be,Te].filter(Boolean).join(".");K(p,ve),Le(ve)}function vn(p){if(!F.value||p!=="previous")return;const k=F.value,j=F.value?.split(".")?.slice(-1)[0],V=F.value?.includes(".")?F.value?.split(".")?.slice(0,-1)?.join("."):null;if(!V)return;const W=V?.includes(".")?V?.split(".")?.slice(0,-1)?.join("."):null,_=V?.split(".")?.slice(-1)[0]||null;if(!W)return;const te=o.lxFormatUtils.objectClone(f.value),ie=V?s(V):null,ye=W?s(W):null,xe=ie?y(te,ie):te,fe=ye?y(te,ye):te,se=xe?.properties,we=fe?.properties;if(!se||!j||!_)return;let Be=fe,$e=ye,Oe=we,Te=_;if(B(xe)==="section"&&B(fe)==="form"){const ze=W?.includes(".")?W?.split(".")?.slice(0,-1)?.join("."):null,da=W?.split(".")?.slice(-1)[0]||null,ht=ze?s(ze):null,Wt=ht?y(te,ht):te;Be=Wt,$e=ht,Oe=Wt?.properties,Te=da}if(!Oe||!Te)return;const ve=se[j];if(!ve)return;const Ne=o.lxFormatUtils.objectClone(ve),Pe=ke(j,Oe);xe.properties=Object.fromEntries(Object.entries(se).filter(([ze])=>ze!==j));const Ge={};Object.keys(Oe).forEach(ze=>{ze===Te&&(Ge[Pe]=Ne),Ge[ze]=Oe[ze]}),Be.properties=Ge,ie&&A(te,ie,xe),$e&&A(te,$e,Be),f.value=te;const et=[Ce($e),Pe].filter(Boolean).join(".");K(k,et),Le(et)}function mt(p,k,j){if(k&&p==="LxDateTimeRange"){const V=o.lxFormatUtils.objectClone(S.value||{}),W=Ae(j);A(V,[...W,k],{}),S.value=V,z("update:modelValue",V)}}function ut(p){let k=null;F.value?.includes(".")&&(k=s(F.value?.split(".")?.slice(0,-1)?.join(".")));const j=k?y(f.value,k):f.value,V=F.value?.split(".")?.slice(-1)[0],W=o.lxStringUtils.generateUUID(),_=dt(p),te=j.properties,ie={};Object.keys(te).forEach(se=>{ie[se]=te[se],se===V&&(ie[W]=_)}),j.properties=ie;const ye=o.lxFormatUtils.objectClone(f.value);A(ye,k,j),f.value=ye,mt(p,W,k);const fe=[Ce(k),W].filter(Boolean).join(".");Le(fe)}function Nn(p){if(!F.value)return!1;const k=F.value?.split(".")?.slice(-1)[0],j=F.value?.includes(".")?F.value?.split(".")?.slice(0,-1)?.join("."):null;if(!j)return!1;const V=j?.includes(".")?j?.split(".")?.slice(0,-1)?.join("."):null,W=j?.split(".")?.slice(-1)[0]||null;if(!W)return!1;const _=o.lxFormatUtils.objectClone(f.value),te=s(j),ie=y(_,te),ye=ie?.properties?.[k],xe=B(ye)==="section",fe=B(ie)==="form";if(!xe||!fe)return!1;const se=V?s(V):null,we=se?y(_,se):_,Be=we?.properties;if(!Be)return!1;const $e=ke(o.lxStringUtils.generateUUID(),Be),Oe=dt(p),Te={};Object.keys(Be).forEach(Pe=>{Pe===W&&(Te[$e]=Oe),Te[Pe]=Be[Pe]}),we.properties=Te,se&&A(_,se,we),f.value=_,mt(p,$e,se);const Ne=[Ce(se),$e].filter(Boolean).join(".");return Le(Ne),!0}function Ue(p){let k=null;k=s(F.value?.split(".")?.join("."));const j=k?y(f.value,k):f.value,V=Object.keys(j.properties||{})[Object.keys(j.properties||{}).length-1],W=o.lxStringUtils.generateUUID(),_=dt(p),te=j.properties,ie={};Object.keys(te).forEach(se=>{ie[se]=te[se]}),V?Object.keys(ie).forEach(se=>{se===V&&(ie[W]=_)}):ie[W]=_,j.properties=ie;const ye=o.lxFormatUtils.objectClone(f.value);A(ye,k,j),f.value=ye,mt(p,W,k);const fe=[Ce(k),W].filter(Boolean).join(".");Le(fe)}function Rn(p){let k=null;p.name==="LxRow"?k=document.querySelector(`#${p.id}-wrapper`):(k=document.querySelector(`[data-id="${p.id}"]`),k||(k=document.getElementById(p.id))),k&&k.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}function qn(p){me.value=p,N.value==="LxViewLayout"?Ue(p):N.value==="LxForm"||N.value==="LxSection"?p==="LxSection"||H.value.some(k=>k.name==="LxFilters")?Ue(p):ce.value.open():ut(p)}function Kn(p,k){k==="inside"?(Ue(me.value),ce.value.close()):k==="next"&&(N.value==="LxSection"&&Nn(me.value)||ut(me.value),ce.value.close())}function Gt(){let p=null;F.value?.includes(".")&&(p=s(F.value?.split(".")?.slice(0,-1)?.join(".")));const k=p?y(f.value,p):f.value,j=F.value?.split(".")?.slice(-1)[0],V=k.properties,W={};Object.keys(V).forEach(te=>{te!==j&&(W[te]=V[te])}),k.properties=W;const _=o.lxFormatUtils.objectClone(f.value);A(_,p,k),f.value=_,w.value.visible=!1,N.value=null,H.value=[],E.value=null,ue(),he()}function Hn(){let p=null;F.value?.includes(".")&&(p=s(F.value?.split(".")?.slice(0,-1)?.join(".")));const k=p?y(f.value,p):f.value,j=F.value?.split(".")?.slice(-1)[0],V=o.lxStringUtils.generateUUID(),W=o.lxFormatUtils.objectClone(k.properties[j]),_=k.properties,te={};Object.keys(_).forEach(fe=>{te[fe]=_[fe],fe===j&&(te[V]=W)}),k.properties=te;const ie=o.lxFormatUtils.objectClone(f.value);A(ie,p,k),f.value=ie;const xe=[Ce(p),V].filter(Boolean).join(".");Le(xe)}function Ie(p){let k=null;F.value?.includes(".")&&(k=s(F.value?.split(".")?.slice(0,-1)?.join(".")));const j=k?y(f.value,k):f.value,V=F.value?.split(".")?.slice(-1)[0],W=j.properties,_={},te=Object.keys(W),ie=te.indexOf(V);if(p==="up"&&ie>0||p==="down"&&ie<te.length-1){p==="up"?te.forEach((xe,fe)=>{fe===ie-1&&(_[V]=W[V]),xe!==V&&(_[xe]=W[xe])}):p==="down"&&te.forEach((xe,fe)=>{xe!==V&&(_[xe]=W[xe]),fe===ie+1&&(_[V]=W[V])}),j.properties=_;const ye=o.lxFormatUtils.objectClone(f.value);A(ye,k,j),f.value=ye,t.nextTick(()=>{i(),U(f.value,E.value)})}}function Gn(){Q.value.open()}function Jn(){navigator.clipboard.writeText(JSON.stringify(f.value,null,2)),z("schemaCopy")}function Wn(){const p=JSON.stringify(f.value,null,2),k=new Blob([p],{type:"application/json"}),j=URL.createObjectURL(k),V=document.createElement("a");V.href=j,V.download="schema.json",document.body.appendChild(V),V.click(),V.remove(),URL.revokeObjectURL(j)}function Qn(p){p==="download"?Wn():p==="copy"&&Jn()}function Yn(){re.value="file",ne.value=null,T.value.open()}function xt(p){try{const k=JSON.parse(p);return typeof k=="object"&&k!==null&&!Array.isArray(k)}catch{return!1}}function Zn(p){const k=atob(p),j=Uint8Array.from(k,V=>V.charCodeAt(0));return new TextDecoder("utf-8").decode(j)}function ft(p){if(p?.length===0){d.value=[],r.value=null;return}d.value=p;const k=p[0].content?.split(",")[1];if(!k){r.value=null,z("error","Invalid file content");return}const j=Zn(k);r.value=j}function Xn(){w.value.visible=!1,N.value=null,H.value=[],E.value=null,ue(),he()}function Un(p){if(r.value){if(ne.value=null,!xt(r.value)){ne.value=n.value?.invalidJsonObject,z("error","Invalid JSON file content");return}try{const k=JSON.parse(r.value);f.value=k,T.value.close(),Xn()}catch{ne.value=n.value?.errorParsingJsonContent,z("error","Error parsing JSON content")}}}const He=t.ref(null);function In(p){p==="save"&&r.value&&(He.value=d.value,T.value.close(),C.value={label:n.value?.confirmImport,description:n.value?.confirmImportDescription,kind:"question",primaryAction:()=>{d.value=He.value,ft(He.value),Un(),ae.value.close()},secondaryAction:()=>{ae.value.close(),T.value.open(),d.value=He.value,ft(He.value)}},ae.value.open())}function _n(){L.value=null,$.value=JSON.stringify(f.value,null,2),D.value.open()}function ea(p){if(p==="save"&&$.value){if(!xt($.value)){L.value=n.value?.invalidJsonObject,z("error","Invalid JSON file content");return}try{const k=JSON.parse($.value);f.value=k,D.value.close()}catch{z("error","Error parsing JSON content")}}}const yt=t.ref(null),Me=t.ref(null),_e=t.ref(null);function ta(){_e.value=null,Me.value=JSON.stringify(S.value,null,2),yt.value.open()}function la(p){if(p==="save"&&Me.value){if(!xt(Me.value)){_e.value=n.value?.invalidJsonObject,z("error","Invalid JSON content");return}try{const k=JSON.parse(Me.value);S.value=k,yt.value.close()}catch{z("error","Error parsing JSON content")}}}function na(p){if(p==="form"||p==="list"){const k=o.lxFormatUtils.objectClone(f.value);k?.properties&&Object.entries(k.properties).forEach(([j,V])=>{const W=V?.lx?.displayType;W==="filters"&&p==="form"&&(k.properties[j].lx.displayType="form"),W==="form"&&p==="list"&&(k.properties[j].lx.displayType="filters")}),f.value=k}}function aa(){globalThis.open("https://github.com/dativa-lv/lx-builders/issues","_blank","noopener")}t.watch(()=>[b.value,P.value],()=>{i()});function ia(){C.value={label:n.value?.confirmDelete,description:null,kind:"warning",primaryAction:()=>{Gt(),ae.value.close()},secondaryAction:null},ae.value.open()}function oa(p,k,j){if(k===j||!Object.prototype.hasOwnProperty.call(p,k))return p;const V={};return Object.entries(p).forEach(([W,_])=>{W===k?V[j]=_:V[W]=_}),V}function ra(p){try{if(!p){be.value=n.value?.schemaKeyEmptyError;return}if(!Y.value){be.value=n.value?.schemaKeyParentError;return}if(Object.prototype.hasOwnProperty.call(Y.value,p)&&p!==le.value){const V=n.value?.schemaKeyDuplicateError?.replace("{0}",p);be.value=V;return}be.value=null;const k=oa(Y.value,le.value,p),j=F.value?.includes(".")?F.value?.split(".")?.join("."):null;A(f.value,s(j)?.slice(0,-1),k)}catch{be.value=n.value?.schemaKeyUpdateError}}t.onMounted(()=>{de(),document?.addEventListener("keydown",p=>{g(p.target)&&(p.key==="ArrowUp"||p.key==="ArrowDown")&&p.preventDefault()}),document?.addEventListener("keyup",p=>{g(p.target)&&(p.preventDefault(),p.key==="ArrowUp"||p.key==="ArrowLeft"?ge()&&Ie("up"):(p.key==="ArrowDown"||p.key==="ArrowRight")&&ge()&&Ie("down"))})});const ca=t.computed(()=>{const p=Object.values(f.value?.properties||{}).some(V=>V.type==="object"&&V.lx?.displayType==="form"),k=Object.values(f.value?.properties||{}).some(V=>V.type==="object"&&V.lx?.displayType==="filters"),j=k&&Object.values(f.value?.properties||{}).some(V=>V.type==="object"&&V.lx?.displayType==="filters"&&Object.values(V.properties||{}).some(W=>W.type==="object"&&W.lx?.displayType==="section"));return{hasForm:p,hasFilters:k,isSectionInFilterForm:j}});return(p,k)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Ln,[t.withDirectives(t.createElementVNode("div",{class:"highlight",style:t.normalizeStyle(w.value.style)},[t.createElementVNode("div",$n,[u.value.canMoveForwardIn&&ge()?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"move-inside",variant:"icon-only",label:n.value.moveInside,kind:"ghost",onClick:k[0]||(k[0]=j=>Ke())},null,8,["label"])):t.createCommentVNode("",!0),u.value.moveOut&&ge()?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:1,icon:"move-outside",variant:"icon-only",label:n.value.moveOutside,kind:"ghost",onClick:k[1]||(k[1]=j=>vn("previous"))},null,8,["label"])):t.createCommentVNode("",!0),ge()?(t.openBlock(),t.createBlock(t.unref(o.LxStack),{key:2,orientation:"horizontal",kind:"compact"},{default:t.withCtx(()=>[u.value.canMoveBack?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"back",variant:"icon-only",label:n.value.back,kind:"ghost",onClick:k[2]||(k[2]=j=>Ie("up"))},null,8,["label"])):t.createCommentVNode("",!0),u.value.canMoveForward?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:1,icon:"next",variant:"icon-only",label:n.value.next,kind:"ghost",onClick:k[3]||(k[3]=j=>Ie("down"))},null,8,["label"])):t.createCommentVNode("",!0)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("span",null,t.toDisplayString(N.value),1)]),t.createElementVNode("div",On,[N.value!=="LxViewLayout"?(t.openBlock(),t.createBlock(t.unref(o.LxButton),{key:0,icon:"delete",variant:"icon-only",label:n.value.delete,kind:"ghost",destructive:!0,onClick:ia},null,8,["label"])):t.createCommentVNode("",!0)])],4),[[t.vShow,w.value.visible]])]),t.createVNode(wn,{componentName:N.value,componentProps:J.value,componentPropsDefinitions:G.value,navigation:H.value,componentModel:E.value,schemaKey:le.value,schemaKeyError:be.value,schemaInfo:ca.value,selectedTab:pe.value,"onUpdate:selectedTab":k[4]||(k[4]=j=>pe.value=j),texts:n.value,"onUpdate:componentModel":I,onComponentAdd:qn,onComponentChange:Rn,onRemoveComponent:Gt,onDuplicateComponent:Hn,onExport:Gn,onImport:Yn,onEditSchema:_n,onEditModel:ta,onReportIssue:aa,"onUpdate:viewLayout":na,"onUpdate:schemaKey":ra},null,8,["componentName","componentProps","componentPropsDefinitions","navigation","componentModel","schemaKey","schemaKeyError","schemaInfo","selectedTab","texts"]),t.createElementVNode("div",Tn,[t.createVNode(Nt,{schema:e.schema,modelValue:S.value,"onUpdate:modelValue":k[5]||(k[5]=j=>S.value=j),builderOptions:{useRegistry:!0}},null,8,["schema","modelValue"])]),t.createVNode(t.unref(o.LxModal),{ref_key:"exportModal",ref:Q,label:n.value?.exportModal,size:"m",actionDefinitions:[{id:"close",name:n.value?.close,kind:"secondary"}]},{default:t.withCtx(()=>[t.createVNode(t.unref(o.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",jn,[t.createElementVNode("pre",Dn,t.toDisplayString(JSON.stringify(f.value,null,2)),1)])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(o.LxModal),{ref_key:"importModal",ref:T,label:n.value?.importModal,size:"m",actionDefinitions:[{id:"save",name:n.value?.save,kind:"primary",disabled:v.value},{id:"close",name:n.value?.close,kind:"secondary"}],onActionClick:In,onClose:k[8]||(k[8]=()=>{d.value=null,r.value=null})},{default:t.withCtx(()=>[t.createElementVNode("div",Pn,[t.createVNode(t.unref(o.LxContentSwitcher),{modelValue:re.value,"onUpdate:modelValue":k[6]||(k[6]=j=>re.value=j),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(o.LxFileUploader),{modelValue:d.value,draggable:!0,allowedFileExtensions:[".json"],dataType:"content",texts:n.value?.fileUploader,"onUpdate:modelValue":ft},null,8,["modelValue","texts"])],512),[[t.vShow,re.value==="file"]]),t.withDirectives(t.createVNode(t.unref(o.LxTextArea),{modelValue:r.value,"onUpdate:modelValue":k[7]||(k[7]=j=>r.value=j),rows:20,invalid:!!ne.value,invalidationMessage:ne.value},null,8,["modelValue","invalid","invalidationMessage"]),[[t.vShow,re.value==="text"]])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(o.LxModal),{ref_key:"editSchemaModal",ref:D,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:ea},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextArea),{modelValue:$.value,"onUpdate:modelValue":k[9]||(k[9]=j=>$.value=j),rows:50,invalid:!!L.value,invalidationMessage:L.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(o.LxModal),{ref_key:"componentAddModal",ref:ce,label:n.value?.componentAddModal,description:n.value?.componentAddModalDescription},{default:t.withCtx(()=>[t.createElementVNode("p",zn,t.toDisplayString(n.value?.componentAddChoice),1),t.createVNode(t.unref(o.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:Kn},{customItem:t.withCtx(j=>[t.createVNode(t.unref(o.LxStack),{orientation:"horizontal",verticalAlignment:"center"},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxIcon),{value:j.displayIcon},null,8,["value"]),t.createVNode(t.unref(o.LxStack),{kind:"compact"},{default:t.withCtx(()=>[t.createElementVNode("p",En,t.toDisplayString(j.name),1),t.createElementVNode("p",Vn,t.toDisplayString(j.description),1)]),_:2},1024)]),_:2},1024)]),_:1},8,["items"])]),_:1},8,["label","description"]),t.createVNode(t.unref(o.LxModal),{ref_key:"editModelModal",ref:yt,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:la},{default:t.withCtx(()=>[t.createVNode(t.unref(o.LxTextArea),{modelValue:Me.value,"onUpdate:modelValue":k[10]||(k[10]=j=>Me.value=j),rows:20,invalid:!!_e.value,invalidationMessage:_e.value},null,8,["modelValue","invalid","invalidationMessage"])]),_:1},8,["label","actionDefinitions"]),t.createVNode(t.unref(o.LxDialog),{ref_key:"confirmDialog",ref:ae,label:C.value?.label,description:C.value?.description,kind:C.value?.kind,actionDefinitions:[{id:"save",name:n.value?.yes,kind:"primary"},{id:"cancel",name:n.value?.no,kind:"secondary"}],buttonSecondaryIsCancel:!C.value?.secondaryAction,onActionClick:k[11]||(k[11]=j=>{j==="save"&&C.value?.primaryAction?C.value.primaryAction():j==="cancel"&&C.value?.secondaryAction&&C.value.secondaryAction()})},null,8,["label","description","kind","actionDefinitions","buttonSecondaryIsCancel"])]))}}),Ht={async install(e,h={}){const{lxOptions:m,...x}=h||{};if(kt(x),m){const{createLx:n}=await import("@dativa-lv/lx-ui");e.use(n,m)}}},Fn=e=>({async install(h){h.use(Ht,e)}});Se.LxConstructor=Mn,Se.LxFilterBuilder=vt,Se.LxFormBuilder=qe,Se.LxViewBuilder=Nt,Se.createLxBuilders=Fn,Se.getGlobalProperties=bt,Se.lxBuildersPlugin=Ht,Se.setGlobalProperties=kt,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})}));
|