@golemui/gui-shared 1.0.0-rc.2 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";require("@golemui/core");const m={INPUTS:"INPUTS",ACTIONS:"ACTIONS",LAYOUTS:"LAYOUTS",DISPLAYS:"DISPLAYS"};function U(e){return function(t,s=()=>!0){return{kind:"leaf",selectorType:e,matcher:s,config:t}}}function y(e,t){return typeof e=="function"?e:{type:t,...e??{}}}function R(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"text",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"text",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function N(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"number",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"number",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function W(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"boolean",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"boolean",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function x(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:a=>({type:"select",...l(a)})}],tags:s??[]}}const i={type:"select",...t};return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:i}],tags:s??[]}}function O(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:a=>({type:"dropdown",...l(a)})}],tags:s??[]}}const i={type:"dropdown",...t};return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:i}],tags:s??[]}}function Y(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:a=>({type:"radiogroup",...l(a)})}],tags:s??[]}}const i={type:"radiogroup",...t};return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:i}],tags:s??[]}}function $(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:a=>({type:"checkbox",...l(a)})}],tags:s??[]}}const i={type:"checkbox",...t};return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:i}],tags:s??[]}}function G(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:a=>({type:"textarea",...l(a)})}],tags:s??[]}}const i={type:"textarea",...t};return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:i}],tags:s??[]}}function F(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:a=>({type:"password",...l(a)})}],tags:s??[]}}const i={type:"password",...t};return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:i}],tags:s??[]}}function K(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:a=>({type:"currency",...l(a)})}],tags:s??[]}}const i={type:"currency",...t};return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:i}],tags:s??[]}}function z(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:a=>({type:"markdown",...l(a)})}],tags:s??[]}}const i={type:"markdown",...t};return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:i}],tags:s??[]}}function H(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:a=>({type:"list",...l(a)})}],tags:s??[]}}const i={type:"list",...t};return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:i}],tags:s??[]}}function V(e,t,s){if(typeof t=="function"){const n=t;return{items:[o=>({type:"calendar",path:e,...n(o)})],type:"ITEMS",itemType:"CALENDAR",tags:s??[]}}return{items:[{type:"calendar",path:e,...t}],type:"ITEMS",itemType:"CALENDAR",tags:s??[]}}function X(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:a=>({type:"dateInput",...l(a)})}],tags:s??[]}}const i={type:"dateInput",...t};return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:i}],tags:s??[]}}function j(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:a=>({type:"datePicker",...l(a)})}],tags:s??[]}}const i={type:"datePicker",...t};return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:i}],tags:s??[]}}function q(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:a=>({type:"rangeCalendar",...l(a)})}],tags:s??[]}}const i={type:"rangeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:i}],tags:s??[]}}function Z(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:a=>({type:"rangeDateInput",...l(a)})}],tags:s??[]}}const i={type:"rangeDateInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:i}],tags:s??[]}}function J(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:a=>({type:"rangeDatePicker",...l(a)})}],tags:s??[]}}const i={type:"rangeDatePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:i}],tags:s??[]}}function Q(e,t,s,i){if(typeof s=="function"){const o=s;return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:p=>({customType:e,...o(p)})}],tags:i??[]}}const n={customType:e,...s};return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:n}],tags:i??[]}}function ee(e,t){return{items:[e],type:"ITEMS",itemType:m.ACTIONS,tags:t??[]}}function te(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[r=>({customType:e,...l(r)})],tags:s??[]}}return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[{customType:e,...t}],tags:s??[]}}const se=(e,t)=>({type:"ITEMS",itemType:m.DISPLAYS,items:[{render:e}],tags:t??[]});function ie(e,t){return{type:"ITEMS",itemType:"ALERTS",items:[e],tags:t??[]}}function ne(e,t){return{type:"ITEMS",itemType:"MARKDOWN_TEXTS",items:[e],tags:t??[]}}function le(e,t,s){if(typeof t=="function"){const r=t;return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[p=>({customType:e,...r(p)})],tags:s??[]}}const{uid:i,...n}=t??{};return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[{customType:e,...i!=null?{uid:i}:{},props:Object.keys(n).length>0?n:void 0}],tags:s??[]}}const E=(e,t,s)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"flex",...t??{}},children:e}],tags:s??[]}),ae=(e,t,s)=>E(e,{direction:"row",...t??{}},s),oe=(e,t,s)=>E(e,{direction:"column",...t??{}},s),f=(e,t,s)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"grid",direction:"row",autoFit:!0,...t??{}},children:e}],tags:s??[]}),re=(e,t,s)=>f(e,{direction:"row",...t??{}},s),ue=(e,t,s)=>f(e,{direction:"column",...t??{}},s);function C(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function pe(e,t,s){const i=e.map(o=>({label:o.label,uid:o.uid??C(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:o.uid??C(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"TABS",items:[{def:{tabs:i,...t},children:n}],tags:s??[]}}function P(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function de(e,t,s){const i=e.map(o=>({label:o.label,uid:o.uid??P(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:o.uid??P(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"ACCORDION",items:[{def:{sections:i,...t},children:n}],tags:s??[]}}function ce(e,t,s,i){if(typeof s=="function"){const o=s;return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:p=>({customType:e,...o(p)}),children:t}],tags:i??[]}}return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:{customType:e,...s},children:t}],tags:i??[]}}function ye(e,t,s){const{template:i,...n}=t;return{type:"ITEMS",itemType:"REPEATER",items:[{key:e,def:n,children:i}],tags:s??[]}}function me(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:a=>({type:"tags",...l(a)})}],tags:s??[]}}const i={type:"tags",...t};return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:i}],tags:s??[]}}const A=new Map;function L(e,t){if(A.has(e))throw new Error(`Item type "${e}" is already registered.`);A.set(e,t)}function ge(e){const t=A.get(e);if(!t)throw new Error(`No handler registered for item type "${e}". Did you forget to import the registration module?`);return t}function Te(e){return A.has(e)}function u(e){const t=r=>{if(!e.sensibleDefaults)return{};let a={...e.sensibleDefaults.base};for(const p of r){const g=p.config;for(const _ of e.sensibleDefaults.fields){const b=_;g[b]!=null&&(a={...a,[b]:g[b]})}}return a},s=(r,a)=>e.sensibleDefaults?e.sensibleDefaults.apply(r,a):r,i=r=>{switch(e.entryShape){case"bare":return{baseDef:r};case"keyed":{const a=r;return{baseDef:a.def,path:a.key}}case"compound":{const a=r;return{baseDef:a.def,children:a.children}}}},n={rollUpSensibleDefaults:t,applySensibleDefaults:s,mapToWidget:e.mapToWidget,parseEntry:i,...e.afterMerge?{afterMerge:e.afterMerge}:{},...e.buildCustomWidget?{buildCustomWidget:e.buildCustomWidget}:{},...e.getChildren?{getChildren:e.getChildren}:{}};L(e.itemType,n);const l=U(e.itemType);return{gsl:l,gslByUid:(r,a)=>l(a,(p=>p.uid===r))}}function d(e){const{uid:t,path:s,label:i,disabled:n,readonly:l,defaultValue:o,tags:r,type:a,size:p,onLoad:g,onChange:_,onFilter:b,on:I,states:h,include:qt,exclude:Zt,validator:Jt,...w}=e;return w}function be(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase()):""}function c(e,t){return e.label!=null||t.suppressAutomaticLabels||!e.path?e:{...e,label:be(e.path)}}function T(e,t){return e.placeholder!=null||t.suppressAutomaticPlaceholders||!e.path?e:{...e,placeholder:e.path}}function _e(e){switch(e.type){case"text":return Ae(e);case"number":return Se(e);case"boolean":return he(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function he(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"toggle",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"boolean")}:{},props:t}}function Ae(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"textinput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:y(e.validator,"string")}}function Se(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"number",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:y(e.validator,"number")}}const{gsl:S,gslByUid:Ie}=u({itemType:"INPUTS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let s=c(e,t);return s=T(s,t),s}},mapToWidget:_e}),ke=e=>S(e,t=>t.type==="text"),Ue=e=>S(e,t=>t.type==="number"),Ee=e=>S(e,t=>t.type==="boolean"),{gsl:fe,gslByUid:De}=u({itemType:"SELECT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"select",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Ce,gslByUid:Pe}=u({itemType:"DROPDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dropdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Be,gslByUid:Le}=u({itemType:"RADIOGROUP",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"radiogroup",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Me,gslByUid:ve}=u({itemType:"CHECKBOX",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"checkbox",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"boolean")}:{},props:d(e)})}),{gsl:we,gslByUid:Re}=u({itemType:"TEXTAREA",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"textarea",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Ne,gslByUid:We}=u({itemType:"PASSWORD",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"password",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:xe,gslByUid:Oe}=u({itemType:"CURRENCY",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"currency",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"number")}:{},props:d(e)})}),{gsl:Ye,gslByUid:$e}=u({itemType:"MARKDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"markdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Ge,gslByUid:Fe}=u({itemType:"LIST",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"list",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Ke,gslByUid:ze}=u({itemType:"CALENDAR",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"calendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:He,gslByUid:Ve}=u({itemType:"DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Xe,gslByUid:je}=u({itemType:"DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"datePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:qe,gslByUid:Ze}=u({itemType:"RANGE_CALENDAR",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})}),{gsl:Je,gslByUid:Qe}=u({itemType:"RANGE_DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})}),{gsl:et,gslByUid:tt}=u({itemType:"RANGE_DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDatePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})});function st(e){const t={};return e.addLabel!=null&&(t.addLabel=e.addLabel),e.removeLabel!=null&&(t.removeLabel=e.removeLabel),e.limit!=null&&(t.limit=e.limit),e.title!=null&&(t.title=e.title),e.addButtonIcon!=null&&(t.addButtonIcon=e.addButtonIcon),e.removeButtonIcon!=null&&(t.removeButtonIcon=e.removeButtonIcon),t}function it(e){return{uid:e.uid??"",kind:"input",type:"repeater",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:{...st(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function k(e,t){for(const s of e){if(typeof s=="function")continue;const i=s;typeof i.path=="string"&&i.path&&!i.path.startsWith(t)&&(i.path=t+i.path),"children"in i&&Array.isArray(i.children)&&k(i.children,t);const n=i.props;n?.template?.children&&Array.isArray(n.template.children)&&k(n.template.children,t)}}function nt(e,t){const s=t.walkChildren(t.children??[]),i=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";i&&k(s,i+".items.");const n={kind:"layout",type:"flex",uid:"",children:s,props:{direction:"column"}};if(e.kind==="static"){const o=t.mapStaticDef(e.def,"REPEATER");return{...o,props:{...o.props,template:n}}}const l=e.fn;return(o=>{const r=l(o),a=t.mapStaticDef(r,"REPEATER");return{...a,props:{...a.props,template:n}}})}function lt(e){return{baseDef:e.def,path:e.key,children:e.children}}function at(e){return e.children}const ot={parseEntry:lt,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:it,buildCustomWidget:nt,getChildren:at};L("REPEATER",ot);const M=U("REPEATER"),rt=(e,t)=>M(t,(s=>s.uid===e)),v={onLoad:"load",onChange:"change",onFilter:"filter",onBlur:"blur"},ut=Object.keys(v);class pt{extractOnClickFromMergeResult(t,s,i){if(t.kind==="dynamic"){const o=t.fn;return{kind:"dynamic",fn:a=>{const p=o(a);return this.wireOnClick(p,s,i)}}}const n=t.def;return{kind:"static",def:this.wireOnClick(n,s,i)}}wireOnClick(t,s,i){const n=i.next(),l=t.onClick;if(typeof l=="function"){const{onClick:o,...r}=t,a=l(void 0);return typeof a=="string"?{...r,uid:n,on:{click:a}}:(s.set(n,p=>l(p.data)),{...r,uid:n,on:{click:n}})}return{...t,uid:n}}wireInputLayoutEvents(t,s,i){if(t.kind==="dynamic"){const l=t.fn;return{kind:"dynamic",fn:r=>{const a=l(r);return this.wireEventProperties(a,s,i)}}}return{kind:"static",def:this.wireEventProperties(t.def,s,i)}}wireEventProperties(t,s,i){const n={...t.on||{}};let l=!1;const o={...t};for(const r of ut){const a=t[r];if(a==null)continue;const p=v[r];if(typeof a=="function"){const g=i.next();s.set(g,a),n[p]=g,l=!0}else typeof a=="string"&&(n[p]=a,l=!0);delete o[r]}return l&&(o.on=n),o}}const D=new pt;function dt(e){const{uid:t,label:s,actionType:i,disabled:n,on:l,onClick:o,data:r,type:a,tags:p,size:g,include:_,exclude:b,states:I,...h}=e;return{uid:t??"",kind:"action",type:"button",disabled:n,actionType:i,label:s,...l!=null?{on:l}:{},props:h}}const{gsl:ct,gslByUid:yt}=u({itemType:"ACTIONS",entryShape:"bare",mapToWidget:dt,afterMerge:(e,t)=>D.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)});function mt(e){const{uid:t,widgetName:s,tags:i,size:n,onChange:l,include:o,exclude:r,...a}=e,{on:p,...g}=a;return{uid:t??"",kind:"layout",type:s??"flex",props:{direction:g.direction??"column",...g},children:[]}}function gt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"LAYOUTS"),children:s}})}function Tt(e){return e.children}const{gsl:bt,gslByUid:_t}=u({itemType:"LAYOUTS",entryShape:"compound",mapToWidget:mt,buildCustomWidget:gt,getChildren:Tt});function B(e){return{errors:void 0,touched:void 0,translate:void 0,...e??{},$form:e?.$form??{}}}function ht(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function At(e,t){if(e.kind==="static"){const i=e.def;return(n=>({uid:"",kind:"display",type:"renderer",...i.include!=null?{include:i.include}:{},...i.exclude!=null?{exclude:i.exclude}:{},props:{render:i.render(B(n))}}))}const s=e.fn;return(i=>{const n=s(i);return{uid:"",kind:"display",type:"renderer",...n.include!=null?{include:n.include}:{},...n.exclude!=null?{exclude:n.exclude}:{},props:{render:n.render(B(i))}}})}const{gsl:St,gslByUid:It}=u({itemType:"DISPLAYS",entryShape:"bare",mapToWidget:ht,buildCustomWidget:At}),{gsl:kt,gslByUid:Ut}=u({itemType:"ALERTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"alert",props:{text:e.text,...e.level!=null?{level:e.level}:{}}})}),{gsl:Et,gslByUid:ft}=u({itemType:"MARKDOWN_TEXTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})});function Dt(e){return{uid:e.uid??"",kind:"layout",type:"tabs",props:{tabs:e.tabs,renderMode:e.renderMode??"all",...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function Ct(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"TABS"),children:s}})}function Pt(e){return e.children}const{gsl:Bt,gslByUid:Lt}=u({itemType:"TABS",entryShape:"compound",mapToWidget:Dt,buildCustomWidget:Ct,getChildren:Pt});function Mt(e){return{uid:e.uid??"",kind:"layout",type:"accordion",props:{sections:e.sections,renderMode:e.renderMode??"all",...e.singleOpen!=null?{singleOpen:e.singleOpen}:{},...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function vt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"ACCORDION"),children:s}})}function wt(e){return e.children}const{gsl:Rt,gslByUid:Nt}=u({itemType:"ACCORDION",entryShape:"compound",mapToWidget:Mt,buildCustomWidget:vt,getChildren:wt}),{gsl:Wt,gslByUid:xt}=u({itemType:"CUSTOM_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:e.customType,path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.defaultValue!=null?{defaultValue:e.defaultValue}:{},...e.validator!=null?{validator:e.validator}:{},props:e.props??{}})}),{gsl:Ot,gslByUid:Yt}=u({itemType:"CUSTOM_ACTION",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:s,disabled:i,on:n,onClick:l,data:o,customType:r,tags:a,size:p,include:g,exclude:_,states:b,props:I,...h}=e;return{uid:t??"",kind:"action",type:e.customType,label:s,disabled:i,...n!=null?{on:n}:{},props:{...I,...h}}},afterMerge:(e,t)=>D.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),{gsl:$t,gslByUid:Gt}=u({itemType:"CUSTOM_DISPLAY",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})});function Ft(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function Kt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"CUSTOM_LAYOUT"),children:s}})}function zt(e){return e.children}const{gsl:Ht,gslByUid:Vt}=u({itemType:"CUSTOM_LAYOUT",entryShape:"compound",mapToWidget:Ft,buildCustomWidget:Kt,getChildren:zt}),{gsl:Xt,gslByUid:jt}=u({itemType:"TAGS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"tags",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})});exports.GuiItemTypes=m;exports._gslAccordionByUid=Nt;exports._gslAccordions=Rt;exports._gslActionByUid=yt;exports._gslActions=ct;exports._gslAlertByUid=Ut;exports._gslAlerts=kt;exports._gslBooleanInputs=Ee;exports._gslCalendarByUid=ze;exports._gslCalendars=Ke;exports._gslCheckboxByUid=ve;exports._gslCheckboxes=Me;exports._gslCurrencies=xe;exports._gslCurrencyByUid=Oe;exports._gslCustomActionByUid=Yt;exports._gslCustomActions=Ot;exports._gslCustomDisplayByUid=Gt;exports._gslCustomDisplays=$t;exports._gslCustomInputByUid=xt;exports._gslCustomInputs=Wt;exports._gslCustomLayoutByUid=Vt;exports._gslCustomLayouts=Ht;exports._gslDateInputByUid=Ve;exports._gslDateInputs=He;exports._gslDatePickerByUid=je;exports._gslDatePickers=Xe;exports._gslDisplayByUid=It;exports._gslDisplays=St;exports._gslDropdownByUid=Pe;exports._gslDropdowns=Ce;exports._gslInputByUid=Ie;exports._gslInputs=S;exports._gslLayoutByUid=_t;exports._gslLayouts=bt;exports._gslListByUid=Fe;exports._gslLists=Ge;exports._gslMarkdownByUid=$e;exports._gslMarkdownTextByUid=ft;exports._gslMarkdownTexts=Et;exports._gslMarkdowns=Ye;exports._gslNumberInputs=Ue;exports._gslPasswordByUid=We;exports._gslPasswords=Ne;exports._gslRadiogroupByUid=Le;exports._gslRadiogroups=Be;exports._gslRangeCalendarByUid=Ze;exports._gslRangeCalendars=qe;exports._gslRangeDateInputByUid=Qe;exports._gslRangeDateInputs=Je;exports._gslRangeDatePickerByUid=tt;exports._gslRangeDatePickers=et;exports._gslRepeaterByUid=rt;exports._gslRepeaters=M;exports._gslSelectByUid=De;exports._gslSelects=fe;exports._gslTabs=Bt;exports._gslTabsByUid=Lt;exports._gslTags=Xt;exports._gslTagsByUid=jt;exports._gslTextInputs=ke;exports._gslTextareaByUid=Re;exports._gslTextareas=we;exports._guiAccordion=de;exports._guiAlert=ie;exports._guiBooleanInput=W;exports._guiButton=ee;exports._guiCalendar=V;exports._guiCheckbox=$;exports._guiCurrency=K;exports._guiCustomAction=te;exports._guiCustomDisplay=le;exports._guiCustomInput=Q;exports._guiCustomLayout=ce;exports._guiDateInput=X;exports._guiDatePicker=j;exports._guiDisplay=se;exports._guiDropdown=O;exports._guiFlex=E;exports._guiGrid=f;exports._guiHorizontalFlex=ae;exports._guiHorizontalGrid=re;exports._guiList=H;exports._guiMarkdown=z;exports._guiMarkdownText=ne;exports._guiNumberInput=N;exports._guiPassword=F;exports._guiRadiogroup=Y;exports._guiRangeCalendar=q;exports._guiRangeDateInput=Z;exports._guiRangeDatePicker=J;exports._guiRepeater=ye;exports._guiSelect=x;exports._guiTabs=pe;exports._guiTags=me;exports._guiTextInput=R;exports._guiTextarea=G;exports._guiVerticalFlex=oe;exports._guiVerticalGrid=ue;exports.createGslSelector=U;exports.defineShortcutType=u;exports.eventWiringService=D;exports.extractWidgetProps=d;exports.getItemTypeHandler=ge;exports.hasItemTypeHandler=Te;exports.processAutoLabel=c;exports.processAutoPlaceholder=T;
@@ -1 +0,0 @@
1
- "use strict";require("@golemui/core");const m={INPUTS:"INPUTS",ACTIONS:"ACTIONS",LAYOUTS:"LAYOUTS",DISPLAYS:"DISPLAYS"};function U(e){return function(t,s=()=>!0){return{kind:"leaf",selectorType:e,matcher:s,config:t}}}function y(e,t){return typeof e=="function"?e:{type:t,...e??{}}}function w(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"text",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"text",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function R(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"number",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"number",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function N(e,t,s){if(typeof t=="function"){const n=t;return{items:[{key:e,def:o=>({type:"boolean",...n(o)})}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}const i={type:"boolean",...t};return{items:[{key:e,def:i}],type:"ITEMS",itemType:m.INPUTS,tags:s??[]}}function W(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:a=>({type:"select",...l(a)})}],tags:s??[]}}const i={type:"select",...t};return{type:"ITEMS",itemType:"SELECT",items:[{key:e,def:i}],tags:s??[]}}function x(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:a=>({type:"dropdown",...l(a)})}],tags:s??[]}}const i={type:"dropdown",...t};return{type:"ITEMS",itemType:"DROPDOWN",items:[{key:e,def:i}],tags:s??[]}}function O(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:a=>({type:"radiogroup",...l(a)})}],tags:s??[]}}const i={type:"radiogroup",...t};return{type:"ITEMS",itemType:"RADIOGROUP",items:[{key:e,def:i}],tags:s??[]}}function Y(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:a=>({type:"checkbox",...l(a)})}],tags:s??[]}}const i={type:"checkbox",...t};return{type:"ITEMS",itemType:"CHECKBOX",items:[{key:e,def:i}],tags:s??[]}}function G(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:a=>({type:"textarea",...l(a)})}],tags:s??[]}}const i={type:"textarea",...t};return{type:"ITEMS",itemType:"TEXTAREA",items:[{key:e,def:i}],tags:s??[]}}function $(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:a=>({type:"password",...l(a)})}],tags:s??[]}}const i={type:"password",...t};return{type:"ITEMS",itemType:"PASSWORD",items:[{key:e,def:i}],tags:s??[]}}function F(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:a=>({type:"currency",...l(a)})}],tags:s??[]}}const i={type:"currency",...t};return{type:"ITEMS",itemType:"CURRENCY",items:[{key:e,def:i}],tags:s??[]}}function K(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:a=>({type:"markdown",...l(a)})}],tags:s??[]}}const i={type:"markdown",...t};return{type:"ITEMS",itemType:"MARKDOWN",items:[{key:e,def:i}],tags:s??[]}}function z(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:a=>({type:"list",...l(a)})}],tags:s??[]}}const i={type:"list",...t};return{type:"ITEMS",itemType:"LIST",items:[{key:e,def:i}],tags:s??[]}}function H(e,t,s){if(typeof t=="function"){const n=t;return{items:[o=>({type:"calendar",path:e,...n(o)})],type:"ITEMS",itemType:"CALENDAR",tags:s??[]}}return{items:[{type:"calendar",path:e,...t}],type:"ITEMS",itemType:"CALENDAR",tags:s??[]}}function V(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:a=>({type:"dateInput",...l(a)})}],tags:s??[]}}const i={type:"dateInput",...t};return{type:"ITEMS",itemType:"DATE_INPUT",items:[{key:e,def:i}],tags:s??[]}}function X(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:a=>({type:"datePicker",...l(a)})}],tags:s??[]}}const i={type:"datePicker",...t};return{type:"ITEMS",itemType:"DATE_PICKER",items:[{key:e,def:i}],tags:s??[]}}function j(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:a=>({type:"rangeCalendar",...l(a)})}],tags:s??[]}}const i={type:"rangeCalendar",...t};return{type:"ITEMS",itemType:"RANGE_CALENDAR",items:[{key:e,def:i}],tags:s??[]}}function q(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:a=>({type:"rangeDateInput",...l(a)})}],tags:s??[]}}const i={type:"rangeDateInput",...t};return{type:"ITEMS",itemType:"RANGE_DATE_INPUT",items:[{key:e,def:i}],tags:s??[]}}function Z(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:a=>({type:"rangeDatePicker",...l(a)})}],tags:s??[]}}const i={type:"rangeDatePicker",...t};return{type:"ITEMS",itemType:"RANGE_DATE_PICKER",items:[{key:e,def:i}],tags:s??[]}}function J(e,t,s,i){if(typeof s=="function"){const o=s;return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:p=>({customType:e,...o(p)})}],tags:i??[]}}const n={customType:e,...s};return{type:"ITEMS",itemType:"CUSTOM_INPUT",items:[{key:t,def:n}],tags:i??[]}}function Q(e,t){return{items:[e],type:"ITEMS",itemType:m.ACTIONS,tags:t??[]}}function ee(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[r=>({customType:e,...l(r)})],tags:s??[]}}return{type:"ITEMS",itemType:"CUSTOM_ACTION",items:[{customType:e,...t}],tags:s??[]}}const te=(e,t)=>({type:"ITEMS",itemType:m.DISPLAYS,items:[{render:e}],tags:t??[]});function se(e,t){return{type:"ITEMS",itemType:"ALERTS",items:[e],tags:t??[]}}function ie(e,t){return{type:"ITEMS",itemType:"MARKDOWN_TEXTS",items:[e],tags:t??[]}}function ne(e,t,s){if(typeof t=="function"){const r=t;return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[p=>({customType:e,...r(p)})],tags:s??[]}}const{uid:i,...n}=t??{};return{type:"ITEMS",itemType:"CUSTOM_DISPLAY",items:[{customType:e,...i!=null?{uid:i}:{},props:Object.keys(n).length>0?n:void 0}],tags:s??[]}}const E=(e,t,s)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"flex",...t??{}},children:e}],tags:s??[]}),le=(e,t,s)=>E(e,{direction:"row",...t??{}},s),ae=(e,t,s)=>E(e,{direction:"column",...t??{}},s),f=(e,t,s)=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{widgetName:"grid",direction:"row",autoFit:!0,...t??{}},children:e}],tags:s??[]}),oe=(e,t,s)=>f(e,{direction:"row",...t??{}},s),re=(e,t,s)=>f(e,{direction:"column",...t??{}},s);function C(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function ue(e,t,s){const i=e.map(o=>({label:o.label,uid:o.uid??C(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:o.uid??C(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"TABS",items:[{def:{tabs:i,...t},children:n}],tags:s??[]}}function P(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function pe(e,t,s){const i=e.map(o=>({label:o.label,uid:o.uid??P(o.label)})),n=e.map(o=>({type:"ITEMS",itemType:m.LAYOUTS,items:[{def:{uid:o.uid??P(o.label),direction:"column",widgetName:"flex"},children:o.children}],tags:[]}));return{type:"ITEMS",itemType:"ACCORDION",items:[{def:{sections:i,...t},children:n}],tags:s??[]}}function de(e,t,s,i){if(typeof s=="function"){const o=s;return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:p=>({customType:e,...o(p)}),children:t}],tags:i??[]}}return{type:"ITEMS",itemType:"CUSTOM_LAYOUT",items:[{def:{customType:e,...s},children:t}],tags:i??[]}}function ce(e,t,s){const{template:i,...n}=t;return{type:"ITEMS",itemType:"REPEATER",items:[{key:e,def:n,children:i}],tags:s??[]}}function ye(e,t,s){if(typeof t=="function"){const l=t;return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:a=>({type:"tags",...l(a)})}],tags:s??[]}}const i={type:"tags",...t};return{type:"ITEMS",itemType:"TAGS",items:[{key:e,def:i}],tags:s??[]}}const A=new Map;function B(e,t){if(A.has(e))throw new Error(`Item type "${e}" is already registered.`);A.set(e,t)}function me(e){const t=A.get(e);if(!t)throw new Error(`No handler registered for item type "${e}". Did you forget to import the registration module?`);return t}function ge(e){return A.has(e)}function u(e){const t=r=>{if(!e.sensibleDefaults)return{};let a={...e.sensibleDefaults.base};for(const p of r){const g=p.config;for(const _ of e.sensibleDefaults.fields){const b=_;g[b]!=null&&(a={...a,[b]:g[b]})}}return a},s=(r,a)=>e.sensibleDefaults?e.sensibleDefaults.apply(r,a):r,i=r=>{switch(e.entryShape){case"bare":return{baseDef:r};case"keyed":{const a=r;return{baseDef:a.def,path:a.key}}case"compound":{const a=r;return{baseDef:a.def,children:a.children}}}},n={rollUpSensibleDefaults:t,applySensibleDefaults:s,mapToWidget:e.mapToWidget,parseEntry:i,...e.afterMerge?{afterMerge:e.afterMerge}:{},...e.buildCustomWidget?{buildCustomWidget:e.buildCustomWidget}:{},...e.getChildren?{getChildren:e.getChildren}:{}};B(e.itemType,n);const l=U(e.itemType);return{gsl:l,gslByUid:(r,a)=>l(a,(p=>p.uid===r))}}function d(e){const{uid:t,path:s,label:i,disabled:n,readonly:l,defaultValue:o,tags:r,type:a,size:p,onLoad:g,onChange:_,onFilter:b,on:I,states:h,include:jt,exclude:qt,validator:Zt,...v}=e;return v}function Te(e){return e?e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,t=>t.toUpperCase()):""}function c(e,t){return e.label!=null||t.suppressAutomaticLabels||!e.path?e:{...e,label:Te(e.path)}}function T(e,t){return e.placeholder!=null||t.suppressAutomaticPlaceholders||!e.path?e:{...e,placeholder:e.path}}function be(e){switch(e.type){case"text":return he(e);case"number":return Ae(e);case"boolean":return _e(e);default:throw new Error(`Unsupported field type "${e.type}"`)}}function _e(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"toggle",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"boolean")}:{},props:t}}function he(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"textinput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:y(e.validator,"string")}}function Ae(e){const t=d(e);return{uid:e.uid??"",kind:"input",type:"number",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},props:{placeholder:t.placeholder??"",...t},validator:y(e.validator,"number")}}const{gsl:S,gslByUid:Se}=u({itemType:"INPUTS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>{let s=c(e,t);return s=T(s,t),s}},mapToWidget:be}),Ie=e=>S(e,t=>t.type==="text"),ke=e=>S(e,t=>t.type==="number"),Ue=e=>S(e,t=>t.type==="boolean"),{gsl:Ee,gslByUid:fe}=u({itemType:"SELECT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"select",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:De,gslByUid:Ce}=u({itemType:"DROPDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dropdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Pe,gslByUid:Be}=u({itemType:"RADIOGROUP",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"radiogroup",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Le,gslByUid:Me}=u({itemType:"CHECKBOX",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"checkbox",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"boolean")}:{},props:d(e)})}),{gsl:ve,gslByUid:we}=u({itemType:"TEXTAREA",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"textarea",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Re,gslByUid:Ne}=u({itemType:"PASSWORD",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"password",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:We,gslByUid:xe}=u({itemType:"CURRENCY",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"currency",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"number")}:{},props:d(e)})}),{gsl:Oe,gslByUid:Ye}=u({itemType:"MARKDOWN",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"markdown",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Ge,gslByUid:$e}=u({itemType:"LIST",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"list",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:e.validator}:{},props:d(e)})}),{gsl:Fe,gslByUid:Ke}=u({itemType:"CALENDAR",entryShape:"bare",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"calendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:ze,gslByUid:He}=u({itemType:"DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"dateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:Ve,gslByUid:Xe}=u({itemType:"DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"datePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"string")}:{},props:d(e)})}),{gsl:je,gslByUid:qe}=u({itemType:"RANGE_CALENDAR",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeCalendar",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})}),{gsl:Ze,gslByUid:Je}=u({itemType:"RANGE_DATE_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDateInput",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})}),{gsl:Qe,gslByUid:et}=u({itemType:"RANGE_DATE_PICKER",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"rangeDatePicker",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})});function tt(e){const t={};return e.addLabel!=null&&(t.addLabel=e.addLabel),e.removeLabel!=null&&(t.removeLabel=e.removeLabel),e.limit!=null&&(t.limit=e.limit),e.title!=null&&(t.title=e.title),e.addButtonIcon!=null&&(t.addButtonIcon=e.addButtonIcon),e.removeButtonIcon!=null&&(t.removeButtonIcon=e.removeButtonIcon),t}function st(e){return{uid:e.uid??"",kind:"input",type:"repeater",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:{...tt(e),template:{kind:"layout",type:"flex",children:[],props:{direction:"column"}}}}}function k(e,t){for(const s of e){if(typeof s=="function")continue;const i=s;typeof i.path=="string"&&i.path&&(i.path=t+i.path),"children"in i&&Array.isArray(i.children)&&k(i.children,t);const n=i.props;n?.template?.children&&Array.isArray(n.template.children)&&k(n.template.children,t)}}function it(e,t){const s=t.walkChildren(t.children??[]),i=e.kind==="static"?e.def.path??"":e.fn({})?.path??"";i&&k(s,i+".items.");const n={kind:"layout",type:"flex",uid:"",children:s,props:{direction:"column"}};if(e.kind==="static"){const o=t.mapStaticDef(e.def,"REPEATER");return{...o,props:{...o.props,template:n}}}const l=e.fn;return(o=>{const r=l(o),a=t.mapStaticDef(r,"REPEATER");return{...a,props:{...a.props,template:n}}})}function nt(e){return{baseDef:e.def,path:e.key,children:e.children}}function lt(e){return e.children}const at={parseEntry:nt,rollUpSensibleDefaults:()=>({}),applySensibleDefaults:e=>e,mapToWidget:st,buildCustomWidget:it,getChildren:lt};B("REPEATER",at);const L=U("REPEATER"),ot=(e,t)=>L(t,(s=>s.uid===e)),M={onLoad:"load",onChange:"change",onFilter:"filter",onBlur:"blur"},rt=Object.keys(M);class ut{extractOnClickFromMergeResult(t,s,i){if(t.kind==="dynamic"){const o=t.fn;return{kind:"dynamic",fn:a=>{const p=o(a);return this.wireOnClick(p,s,i)}}}const n=t.def;return{kind:"static",def:this.wireOnClick(n,s,i)}}wireOnClick(t,s,i){const n=i.next(),l=t.onClick;if(typeof l=="function"){const{onClick:o,...r}=t,a=l(void 0);return typeof a=="string"?{...r,uid:n,on:{click:a}}:(s.set(n,p=>l(p.data)),{...r,uid:n,on:{click:n}})}return{...t,uid:n}}wireInputLayoutEvents(t,s,i){if(t.kind==="dynamic"){const l=t.fn;return{kind:"dynamic",fn:r=>{const a=l(r);return this.wireEventProperties(a,s,i)}}}return{kind:"static",def:this.wireEventProperties(t.def,s,i)}}wireEventProperties(t,s,i){const n={...t.on||{}};let l=!1;const o={...t};for(const r of rt){const a=t[r];if(a==null)continue;const p=M[r];if(typeof a=="function"){const g=i.next();s.set(g,a),n[p]=g,l=!0}else typeof a=="string"&&(n[p]=a,l=!0);delete o[r]}return l&&(o.on=n),o}}const D=new ut;function pt(e){const{uid:t,label:s,actionType:i,disabled:n,on:l,onClick:o,data:r,type:a,tags:p,size:g,include:_,exclude:b,states:I,...h}=e;return{uid:t??"",kind:"action",type:"button",disabled:n,actionType:i,label:s,...l!=null?{on:l}:{},props:h}}const{gsl:dt,gslByUid:ct}=u({itemType:"ACTIONS",entryShape:"bare",mapToWidget:pt,afterMerge:(e,t)=>D.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)});function yt(e){const{uid:t,widgetName:s,tags:i,size:n,onChange:l,include:o,exclude:r,...a}=e,{on:p,...g}=a;return{uid:t??"",kind:"layout",type:s??"flex",props:{direction:g.direction??"column",...g},children:[]}}function mt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"LAYOUTS"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"LAYOUTS"),children:s}})}function gt(e){return e.children}const{gsl:Tt,gslByUid:bt}=u({itemType:"LAYOUTS",entryShape:"compound",mapToWidget:yt,buildCustomWidget:mt,getChildren:gt});function _t(e){return{uid:"",kind:"display",type:"renderer",props:{render:e.render}}}function ht(e,t){if(e.kind==="static"){const i=e.def;return(n=>({uid:"",kind:"display",type:"renderer",...i.include!=null?{include:i.include}:{},...i.exclude!=null?{exclude:i.exclude}:{},props:{render:i.render(n??{})}}))}const s=e.fn;return(i=>{const n=s(i);return{uid:"",kind:"display",type:"renderer",...n.include!=null?{include:n.include}:{},...n.exclude!=null?{exclude:n.exclude}:{},props:{render:n.render(i??{})}}})}const{gsl:At,gslByUid:St}=u({itemType:"DISPLAYS",entryShape:"bare",mapToWidget:_t,buildCustomWidget:ht}),{gsl:It,gslByUid:kt}=u({itemType:"ALERTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"alert",props:{text:e.text,...e.level!=null?{level:e.level}:{}}})}),{gsl:Ut,gslByUid:Et}=u({itemType:"MARKDOWN_TEXTS",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:"markdownText",props:{md:e.md}})});function ft(e){return{uid:e.uid??"",kind:"layout",type:"tabs",props:{tabs:e.tabs,renderMode:e.renderMode??"all",...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function Dt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"TABS"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"TABS"),children:s}})}function Ct(e){return e.children}const{gsl:Pt,gslByUid:Bt}=u({itemType:"TABS",entryShape:"compound",mapToWidget:ft,buildCustomWidget:Dt,getChildren:Ct});function Lt(e){return{uid:e.uid??"",kind:"layout",type:"accordion",props:{sections:e.sections,renderMode:e.renderMode??"all",...e.singleOpen!=null?{singleOpen:e.singleOpen}:{},...e.defaultOpen!=null?{defaultOpen:e.defaultOpen}:{}},children:[]}}function Mt(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"ACCORDION"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"ACCORDION"),children:s}})}function vt(e){return e.children}const{gsl:wt,gslByUid:Rt}=u({itemType:"ACCORDION",entryShape:"compound",mapToWidget:Lt,buildCustomWidget:Mt,getChildren:vt}),{gsl:Nt,gslByUid:Wt}=u({itemType:"CUSTOM_INPUT",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1},fields:["suppressAutomaticLabels"],apply:(e,t)=>c(e,t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:e.customType,path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.defaultValue!=null?{defaultValue:e.defaultValue}:{},...e.validator!=null?{validator:e.validator}:{},props:e.props??{}})}),{gsl:xt,gslByUid:Ot}=u({itemType:"CUSTOM_ACTION",entryShape:"bare",mapToWidget:e=>{const{uid:t,label:s,disabled:i,on:n,onClick:l,data:o,customType:r,tags:a,size:p,include:g,exclude:_,states:b,props:I,...h}=e;return{uid:t??"",kind:"action",type:e.customType,label:s,disabled:i,...n!=null?{on:n}:{},props:{...I,...h}}},afterMerge:(e,t)=>D.extractOnClickFromMergeResult(e,t.eventRegistry,t.eventIdGenerator)}),{gsl:Yt,gslByUid:Gt}=u({itemType:"CUSTOM_DISPLAY",entryShape:"bare",mapToWidget:e=>({uid:e.uid??"",kind:"display",type:e.customType,props:e.props??{}})});function $t(e){return{uid:e.uid??"",kind:"layout",type:e.customType,props:e.props??{},children:[]}}function Ft(e,t){const s=t.walkChildren(t.children??[]);if(e.kind==="static")return{...t.mapStaticDef(e.def,"CUSTOM_LAYOUT"),children:s};const i=e.fn;return(n=>{const l=i(n);return{...t.mapStaticDef(l,"CUSTOM_LAYOUT"),children:s}})}function Kt(e){return e.children}const{gsl:zt,gslByUid:Ht}=u({itemType:"CUSTOM_LAYOUT",entryShape:"compound",mapToWidget:$t,buildCustomWidget:Ft,getChildren:Kt}),{gsl:Vt,gslByUid:Xt}=u({itemType:"TAGS",entryShape:"keyed",sensibleDefaults:{base:{suppressAutomaticLabels:!1,suppressAutomaticPlaceholders:!1},fields:["suppressAutomaticLabels","suppressAutomaticPlaceholders"],apply:(e,t)=>T(c(e,t),t)},mapToWidget:e=>({uid:e.uid??"",kind:"input",type:"tags",path:e.path??"",...e.label!=null?{label:e.label}:{},...e.disabled!=null?{disabled:e.disabled}:{},...e.readonly!=null?{readonly:e.readonly}:{},...e.validator!=null?{validator:y(e.validator,"array")}:{},props:d(e)})});exports.GuiItemTypes=m;exports._gslAccordionByUid=Rt;exports._gslAccordions=wt;exports._gslActionByUid=ct;exports._gslActions=dt;exports._gslAlertByUid=kt;exports._gslAlerts=It;exports._gslBooleanInputs=Ue;exports._gslCalendarByUid=Ke;exports._gslCalendars=Fe;exports._gslCheckboxByUid=Me;exports._gslCheckboxes=Le;exports._gslCurrencies=We;exports._gslCurrencyByUid=xe;exports._gslCustomActionByUid=Ot;exports._gslCustomActions=xt;exports._gslCustomDisplayByUid=Gt;exports._gslCustomDisplays=Yt;exports._gslCustomInputByUid=Wt;exports._gslCustomInputs=Nt;exports._gslCustomLayoutByUid=Ht;exports._gslCustomLayouts=zt;exports._gslDateInputByUid=He;exports._gslDateInputs=ze;exports._gslDatePickerByUid=Xe;exports._gslDatePickers=Ve;exports._gslDisplayByUid=St;exports._gslDisplays=At;exports._gslDropdownByUid=Ce;exports._gslDropdowns=De;exports._gslInputByUid=Se;exports._gslInputs=S;exports._gslLayoutByUid=bt;exports._gslLayouts=Tt;exports._gslListByUid=$e;exports._gslLists=Ge;exports._gslMarkdownByUid=Ye;exports._gslMarkdownTextByUid=Et;exports._gslMarkdownTexts=Ut;exports._gslMarkdowns=Oe;exports._gslNumberInputs=ke;exports._gslPasswordByUid=Ne;exports._gslPasswords=Re;exports._gslRadiogroupByUid=Be;exports._gslRadiogroups=Pe;exports._gslRangeCalendarByUid=qe;exports._gslRangeCalendars=je;exports._gslRangeDateInputByUid=Je;exports._gslRangeDateInputs=Ze;exports._gslRangeDatePickerByUid=et;exports._gslRangeDatePickers=Qe;exports._gslRepeaterByUid=ot;exports._gslRepeaters=L;exports._gslSelectByUid=fe;exports._gslSelects=Ee;exports._gslTabs=Pt;exports._gslTabsByUid=Bt;exports._gslTags=Vt;exports._gslTagsByUid=Xt;exports._gslTextInputs=Ie;exports._gslTextareaByUid=we;exports._gslTextareas=ve;exports._guiAccordion=pe;exports._guiAlert=se;exports._guiBooleanInput=N;exports._guiButton=Q;exports._guiCalendar=H;exports._guiCheckbox=Y;exports._guiCurrency=F;exports._guiCustomAction=ee;exports._guiCustomDisplay=ne;exports._guiCustomInput=J;exports._guiCustomLayout=de;exports._guiDateInput=V;exports._guiDatePicker=X;exports._guiDisplay=te;exports._guiDropdown=x;exports._guiFlex=E;exports._guiGrid=f;exports._guiHorizontalFlex=le;exports._guiHorizontalGrid=oe;exports._guiList=z;exports._guiMarkdown=K;exports._guiMarkdownText=ie;exports._guiNumberInput=R;exports._guiPassword=$;exports._guiRadiogroup=O;exports._guiRangeCalendar=j;exports._guiRangeDateInput=q;exports._guiRangeDatePicker=Z;exports._guiRepeater=ce;exports._guiSelect=W;exports._guiTabs=ue;exports._guiTags=ye;exports._guiTextInput=w;exports._guiTextarea=G;exports._guiVerticalFlex=ae;exports._guiVerticalGrid=re;exports.createGslSelector=U;exports.defineShortcutType=u;exports.eventWiringService=D;exports.extractWidgetProps=d;exports.getItemTypeHandler=me;exports.hasItemTypeHandler=ge;exports.processAutoLabel=c;exports.processAutoPlaceholder=T;