codesaaz-core 0.4.9 → 0.4.10
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/codesaaz.es.js +860 -840
- package/dist/codesaaz.umd.js +10 -10
- package/package.json +1 -1
package/dist/codesaaz.umd.js
CHANGED
|
@@ -925,7 +925,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
925
925
|
* author : Adam Draper
|
|
926
926
|
* license : MIT
|
|
927
927
|
* http://adamwdraper.github.com/Numeral-js/
|
|
928
|
-
*/var i0=vo.exports,Vl;function l0(){return Vl||(Vl=1,function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(i0,function(){var t,n,r="2.0.6",a={},i={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function u(s,d){this._input=s,this._value=d}return t=function(s){var d,f,p,m;if(t.isNumeral(s))d=s.value();else if(s===0||typeof s>"u")d=0;else if(s===null||n.isNaN(s))d=null;else if(typeof s=="string")if(c.zeroFormat&&s===c.zeroFormat)d=0;else if(c.nullFormat&&s===c.nullFormat||!s.replace(/[^0-9]+/g,"").length)d=null;else{for(f in a)if(m=typeof a[f].regexps.unformat=="function"?a[f].regexps.unformat():a[f].regexps.unformat,m&&s.match(m)){p=a[f].unformat;break}p=p||t._.stringToNumber,d=p(s)}else d=Number(s)||null;return new u(s,d)},t.version=r,t.isNumeral=function(s){return s instanceof u},t._=n={numberToFormat:function(s,d,f){var p=i[t.options.currentLocale],m=!1,g=!1,h=0,b="",y=1e12,w=1e9,k=1e6,v=1e3,C="",R=!1,E,S,_,z,L,F,V;if(s=s||0,S=Math.abs(s),t._.includes(d,"(")?(m=!0,d=d.replace(/[\(|\)]/g,"")):(t._.includes(d,"+")||t._.includes(d,"-"))&&(L=t._.includes(d,"+")?d.indexOf("+"):s<0?d.indexOf("-"):-1,d=d.replace(/[\+|\-]/g,"")),t._.includes(d,"a")&&(E=d.match(/a(k|m|b|t)?/),E=E?E[1]:!1,t._.includes(d," a")&&(b=" "),d=d.replace(new RegExp(b+"a[kmbt]?"),""),S>=y&&!E||E==="t"?(b+=p.abbreviations.trillion,s=s/y):S<y&&S>=w&&!E||E==="b"?(b+=p.abbreviations.billion,s=s/w):S<w&&S>=k&&!E||E==="m"?(b+=p.abbreviations.million,s=s/k):(S<k&&S>=v&&!E||E==="k")&&(b+=p.abbreviations.thousand,s=s/v)),t._.includes(d,"[.]")&&(g=!0,d=d.replace("[.]",".")),_=s.toString().split(".")[0],z=d.split(".")[1],F=d.indexOf(","),h=(d.split(".")[0].split(",")[0].match(/0/g)||[]).length,z?(t._.includes(z,"[")?(z=z.replace("]",""),z=z.split("["),C=t._.toFixed(s,z[0].length+z[1].length,f,z[1].length)):C=t._.toFixed(s,z.length,f),_=C.split(".")[0],t._.includes(C,".")?C=p.delimiters.decimal+C.split(".")[1]:C="",g&&Number(C.slice(1))===0&&(C="")):_=t._.toFixed(s,0,f),b&&!E&&Number(_)>=1e3&&b!==p.abbreviations.trillion)switch(_=String(Number(_)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(_,"-")&&(_=_.slice(1),R=!0),_.length<h)for(var x=h-_.length;x>0;x--)_="0"+_;return F>-1&&(_=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),d.indexOf(".")===0&&(_=""),V=_+C+(b||""),m?V=(m&&R?"(":"")+V+(m&&R?")":""):L>=0?V=L===0?(R?"-":"+")+V:V+(R?"-":"+"):R&&(V="-"+V),V},stringToNumber:function(s){var d=i[c.currentLocale],f=s,p={thousand:3,million:6,billion:9,trillion:12},m,g,h;if(c.zeroFormat&&s===c.zeroFormat)g=0;else if(c.nullFormat&&s===c.nullFormat||!s.replace(/[^0-9]+/g,"").length)g=null;else{g=1,d.delimiters.decimal!=="."&&(s=s.replace(/\./g,"").replace(d.delimiters.decimal,"."));for(m in p)if(h=new RegExp("[^a-zA-Z]"+d.abbreviations[m]+"(?:\\)|(\\"+d.currency.symbol+")?(?:\\))?)?$"),f.match(h)){g*=Math.pow(10,p[m]);break}g*=(s.split("-").length+Math.min(s.split("(").length-1,s.split(")").length-1))%2?1:-1,s=s.replace(/[^0-9\.]+/g,""),g*=Number(s)}return g},isNaN:function(s){return typeof s=="number"&&isNaN(s)},includes:function(s,d){return s.indexOf(d)!==-1},insert:function(s,d,f){return s.slice(0,f)+d+s.slice(f)},reduce:function(s,d){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof d!="function")throw new TypeError(d+" is not a function");var f=Object(s),p=f.length>>>0,m=0,g;if(arguments.length===3)g=arguments[2];else{for(;m<p&&!(m in f);)m++;if(m>=p)throw new TypeError("Reduce of empty array with no initial value");g=f[m++]}for(;m<p;m++)m in f&&(g=d(g,f[m],m,f));return g},multiplier:function(s){var d=s.toString().split(".");return d.length<2?1:Math.pow(10,d[1].length)},correctionFactor:function(){var s=Array.prototype.slice.call(arguments);return s.reduce(function(d,f){var p=n.multiplier(f);return d>p?d:p},1)},toFixed:function(s,d,f,p){var m=s.toString().split("."),g=d-(p||0),h,b,y,w;return m.length===2?h=Math.min(Math.max(m[1].length,g),d):h=g,y=Math.pow(10,h),w=(f(s+"e+"+h)/y).toFixed(h),p>d-h&&(b=new RegExp("\\.?0{1,"+(p-(d-h))+"}$"),w=w.replace(b,"")),w}},t.options=c,t.formats=a,t.locales=i,t.locale=function(s){return s&&(c.currentLocale=s.toLowerCase()),c.currentLocale},t.localeData=function(s){if(!s)return i[c.currentLocale];if(s=s.toLowerCase(),!i[s])throw new Error("Unknown locale : "+s);return i[s]},t.reset=function(){for(var s in l)c[s]=l[s]},t.zeroFormat=function(s){c.zeroFormat=typeof s=="string"?s:null},t.nullFormat=function(s){c.nullFormat=typeof s=="string"?s:null},t.defaultFormat=function(s){c.defaultFormat=typeof s=="string"?s:"0.0"},t.register=function(s,d,f){if(d=d.toLowerCase(),this[s+"s"][d])throw new TypeError(d+" "+s+" already registered.");return this[s+"s"][d]=f,f},t.validate=function(s,d){var f,p,m,g,h,b,y,w;if(typeof s!="string"&&(s+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",s)),s=s.trim(),s.match(/^\d+$/))return!0;if(s==="")return!1;try{y=t.localeData(d)}catch{y=t.localeData(t.locale())}return m=y.currency.symbol,h=y.abbreviations,f=y.delimiters.decimal,y.delimiters.thousands==="."?p="\\.":p=y.delimiters.thousands,w=s.match(/^[^\d]+/),w!==null&&(s=s.substr(1),w[0]!==m)||(w=s.match(/[^\d]+$/),w!==null&&(s=s.slice(0,-1),w[0]!==h.thousand&&w[0]!==h.million&&w[0]!==h.billion&&w[0]!==h.trillion))?!1:(b=new RegExp(p+"{2}"),s.match(/[^\d.,]/g)?!1:(g=s.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(s,d){var f=this._value,p=s||c.defaultFormat,m,g,h;if(d=d||Math.round,f===0&&c.zeroFormat!==null)g=c.zeroFormat;else if(f===null&&c.nullFormat!==null)g=c.nullFormat;else{for(m in a)if(p.match(a[m].regexps.format)){h=a[m].format;break}h=h||t._.numberToFormat,g=h(f,p,d)}return g},value:function(){return this._value},input:function(){return this._input},set:function(s){return this._value=Number(s),this},add:function(s){var d=n.correctionFactor.call(null,this._value,s);function f(p,m,g,h){return p+Math.round(d*m)}return this._value=n.reduce([this._value,s],f,0)/d,this},subtract:function(s){var d=n.correctionFactor.call(null,this._value,s);function f(p,m,g,h){return p-Math.round(d*m)}return this._value=n.reduce([s],f,Math.round(this._value*d))/d,this},multiply:function(s){function d(f,p,m,g){var h=n.correctionFactor(f,p);return Math.round(f*h)*Math.round(p*h)/Math.round(h*h)}return this._value=n.reduce([this._value,s],d,1),this},divide:function(s){function d(f,p,m,g){var h=n.correctionFactor(f,p);return Math.round(f*h)/Math.round(p*h)}return this._value=n.reduce([this._value,s],d),this},difference:function(s){return Math.abs(t(this._value).subtract(s).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(s){var d=s%10;return~~(s%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(s,d,f){var p=t._.includes(d," BPS")?" ":"",m;return s=s*1e4,d=d.replace(/\s?BPS/,""),m=t._.numberToFormat(s,d,f),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"BPS"),m=m.join("")):m=m+p+"BPS",m},unformat:function(s){return+(t._.stringToNumber(s)*1e-4).toFixed(15)}})}(),function(){var s={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},d={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=s.suffixes.concat(d.suffixes.filter(function(m){return s.suffixes.indexOf(m)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(m,g,h){var b,y=t._.includes(g,"ib")?d:s,w=t._.includes(g," b")||t._.includes(g," ib")?" ":"",k,v,C;for(g=g.replace(/\s?i?b/,""),k=0;k<=y.suffixes.length;k++)if(v=Math.pow(y.base,k),C=Math.pow(y.base,k+1),m===null||m===0||m>=v&&m<C){w+=y.suffixes[k],v>0&&(m=m/v);break}return b=t._.numberToFormat(m,g,h),b+w},unformat:function(m){var g=t._.stringToNumber(m),h,b;if(g){for(h=s.suffixes.length-1;h>=0;h--){if(t._.includes(m,s.suffixes[h])){b=Math.pow(s.base,h);break}if(t._.includes(m,d.suffixes[h])){b=Math.pow(d.base,h);break}}g*=b||1}return g}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(s,d,f){var p=t.locales[t.options.currentLocale],m={before:d.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:d.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,h,b;for(d=d.replace(/\s?\$\s?/,""),g=t._.numberToFormat(s,d,f),s>=0?(m.before=m.before.replace(/[\-\(]/,""),m.after=m.after.replace(/[\-\)]/,"")):s<0&&!t._.includes(m.before,"-")&&!t._.includes(m.before,"(")&&(m.before="-"+m.before),b=0;b<m.before.length;b++)switch(h=m.before[b],h){case"$":g=t._.insert(g,p.currency.symbol,b);break;case" ":g=t._.insert(g," ",b+p.currency.symbol.length-1);break}for(b=m.after.length-1;b>=0;b--)switch(h=m.after[b],h){case"$":g=b===m.after.length-1?g+p.currency.symbol:t._.insert(g,p.currency.symbol,-(m.after.length-(1+b)));break;case" ":g=b===m.after.length-1?g+" ":t._.insert(g," ",-(m.after.length-(1+b)+p.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(s,d,f){var p,m=typeof s=="number"&&!t._.isNaN(s)?s.toExponential():"0e+0",g=m.split("e");return d=d.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(g[0]),d,f),p+"e"+g[1]},unformat:function(s){var d=t._.includes(s,"e+")?s.split("e+"):s.split("e-"),f=Number(d[0]),p=Number(d[1]);p=t._.includes(s,"e-")?p*=-1:p;function m(g,h,b,y){var w=t._.correctionFactor(g,h),k=g*w*(h*w)/(w*w);return k}return t._.reduce([f,Math.pow(10,p)],m,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(s,d,f){var p=t.locales[t.options.currentLocale],m,g=t._.includes(d," o")?" ":"";return d=d.replace(/\s?o/,""),g+=p.ordinal(s),m=t._.numberToFormat(s,d,f),m+g}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(s,d,f){var p=t._.includes(d," %")?" ":"",m;return t.options.scalePercentBy100&&(s=s*100),d=d.replace(/\s?\%/,""),m=t._.numberToFormat(s,d,f),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"%"),m=m.join("")):m=m+p+"%",m},unformat:function(s){var d=t._.stringToNumber(s);return t.options.scalePercentBy100?d*.01:d}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(s,d,f){var p=Math.floor(s/60/60),m=Math.floor((s-p*60*60)/60),g=Math.round(s-p*60*60-m*60);return p+":"+(m<10?"0"+m:m)+":"+(g<10?"0"+g:g)},unformat:function(s){var d=s.split(":"),f=0;return d.length===3?(f=f+Number(d[0])*60*60,f=f+Number(d[1])*60,f=f+Number(d[2])):d.length===2&&(f=f+Number(d[0])*60,f=f+Number(d[1])),Number(f)}})}(),t})}(vo)),vo.exports}var s0=l0();const Ol=ri(s0),Tl={__name:"FieldExpression",props:["value","type","displayFormat"],setup(e){const t=o.computed(()=>n()),n=()=>e.type==="DATE"?r():e.type==="NUMBER"?a():e.value,r=()=>r0(e.value,e.displayFormat?e.displayFormat:"MM/dd/yyyy"),a=()=>e.displayFormat?e.displayFormat==="currency"?Ol(e.value).format("$0,0.00"):Ol(e.value).format(e.displayFormat):e.value;return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(t.value),1))}};function kr(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getEntities:async(D=!1)=>{const I=i();return await t(`/api/app/v1/${I}/entity`,D)},getEntity:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/entity/${D}`,I)},saveEntity:async(D,I=!1)=>{const N=i();return await n(`/api/app/v1/${N}/entity`,D,I)},updateEntityGeneralSettings:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/rename`,I,N)},updateEntityAuditable:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/auditable`,I,N)},updateEntityRevisionEnabled:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/revision`,I,N)},updateEntitySoftDelete:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/soft-delete`,I,N)},updateEntityDeleteProtected:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/delete-protect`,I,N)},updateEntityColumn:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/column`,I,N)},saveEntityColumn:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column`,I,N)},dropEntityColumn:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column/${I}`,{},N)},saveForeignKey:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/foreignKey`,I,N)},dropForeignKey:async(D,I=!1)=>{const N=i();return await a(`/api/app/v1/${N}/entity/foreignKey`,D,I)},saveUniqueConstraint:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column/${I}/constraint`,N)},dropUniqueConstraint:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column/${I}/constraint`,{},N)},saveIndex:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column-index`,I,N)},dropIndex:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column-index`,I,N)},deleteEntity:async(D,I=!1)=>{const N=i();return await a(`/api/app/v1/${N}/entity/${D}`,{},I)},getEntityEvents:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/entity/${D}/event`,I)},saveEntityEvent:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/event`,I,N)},deleteEntityEvent:async(D,I)=>{const N=i();return await a(`/api/app/v1/${N}/entity/${D}/event/${I}`)},updateEntityEvent:async(D,I,N,j=!1)=>{const K=i();return await r(`/api/app/v1/${K}/entity/${D}/event/${I}`,N,j)},getActionTypes:async(D=!1)=>{const I=i();return await t(`/api/app/v1/${I}/action-type`,D)},getActionConfigByType:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/notification-config/${D}`,I)},enableCache:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/enableCache`,I,N)},addOrUpdatePresets:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/preset`,I,N)},updateEntity:async(D,I=!1)=>{const N=i();return await r(`/api/app/v1/${N}/entity`,D,I)},deletePreset:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/preset/${I}`,{},N)},validateSqlScript:async(D,I=!1)=>{const N=i();return await n(`/api/app/v1/${N}/entity/validate-sql`,D,I)},generateSingleEntity:async(D,I=!0)=>await n("/api/ai/generate/entity",D,I)}}function xo(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getRestEntities:async(u=!1)=>{const s=i();return await t(`/api/app/v1/${s}/rest`,u)},externalRestAPI:async(u,s=!1)=>{const d=i();return await n(`/api/app/v1/${d}/rest/call-api`,u,s)}}}const Il=Fn("entitiesStore",{state:()=>({entities:[],restEntities:[],entityService:new kr,externalRestService:xo()}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(e){console.error("Error fetching entities:",e)}finally{}},async fetchRestEntities(){try{return await this.externalRestService.getRestEntities()}catch(e){console.error("Error fetching rest entities:",e)}},async getEntities(){if(this.entities.length===0){const e=await this.fetchEntities();this.setEntities(e.response)}return this.entities},async getRestEntities(){if(this.restEntities.length===0){const e=await this.fetchRestEntities();this.setRestEntities(e.response)}return this.restEntities},setEntities(e){this.entities=e},setRestEntities(e){this.restEntities=e},getEntityByName(e,t=!1){let n=[...this.entities];return t&&(n=[...n,...this.restEntities]),n.find(r=>r.name.toLowerCase()===e.toLowerCase())}}}),c0={class:"field flex flex-col w-full"},d0={key:0,class:"flex items-center"},u0={key:1},f0={class:"flex items-center"},p0={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(e){const t=me(),n=o.ref(""),r=Il(),a=o.ref([]),i=async()=>{a.value=await r.getEntities(),l()},l=()=>{for(let u=0;u<a.value.length;u++){const s=a.value[u];s.name.toLowerCase()==e.entityName.toLowerCase()&&(n.value=s)}},c=()=>{e.onEntityChangeCallback(n.value.name)};return o.watch(()=>t.globalConfigs.appId,async u=>{u&&await i()},{immediate:!0}),(u,s)=>{const d=o.resolveComponent("Select");return o.openBlock(),o.createElementBlock("div",c0,[o.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":[s[0]||(s[0]=f=>n.value=f),c],options:a.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:o.withCtx(f=>[f.value?(o.openBlock(),o.createElementBlock("div",d0,[o.createElementVNode("div",null,o.toDisplayString(f.value.name),1)])):(o.openBlock(),o.createElementBlock("span",u0,o.toDisplayString(f.placeholder),1))]),option:o.withCtx(f=>[o.createElementVNode("div",f0,[o.createElementVNode("div",null,o.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},m0={class:"flex flex-col w-full"},g0={class:"w-1/4"},h0={class:"w-full mt-5"},Pl={__name:"EntityExplorer",props:{entityName:String},setup(e){const t=e,n=o.ref(t.entityName);o.watch(n,a=>{console.log("Entity changed to:",a)});const r=a=>{n.value=a};return(a,i)=>(o.openBlock(),o.createElementBlock("div",m0,[o.createElementVNode("div",g0,[(o.openBlock(),o.createBlock(p0,{key:n.value,entityName:n.value,onEntityChangeCallback:r},null,8,["entityName"]))]),o.createElementVNode("div",h0,[(o.openBlock(),o.createBlock(lr,{key:n.value,entityName:n.value},null,8,["entityName"]))])]))}};function Rl(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getAllMenu:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/menu`,p)},getMenu:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/menu/${p}`,m)},createMenu:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/menu`,p,m)},updateMenu:async(p,m,g=!1)=>{const h=i();return await r(`/api/app/v1/${h}/menu/${p}`,m,g)},deleteMenu:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/menu/${p}`,{},m)},getMenuByName:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/menu/name/${p}`,m)}}}const Fl={__name:"MenuItem",props:{item:Object,parentItems:{type:Array,default:()=>[]},layoutType:String,iconPosition:String,iconSize:String,labelSize:String,openTrigger:String,itemGap:{type:String,default:"1"},isChild:{type:Boolean,default:!1},hasSlotParent:{type:Boolean,default:!1},hasSlotChild:{type:Boolean,default:!1},onToggle:Function},setup(e){const t=st.useRouter(),n=e,r=n.item.children&&n.item.children.length>0,a=()=>{r&&(n.item.isOpen=!0)},i=()=>{r&&(n.item.isOpen=!1)},l=()=>{var c;r?((c=n.parentItems)==null||c.forEach(u=>{u!==n.item&&(u.isOpen=!1)}),n.item.isOpen=!n.item.isOpen):n.item.route&&n.item.url?t.push(n.item.url):!n.item.route&&n.item.url&&(window.location.href=n.item.url)};return(c,u)=>(o.openBlock(),o.createElementBlock("div",{class:"relative",onMouseenter:u[1]||(u[1]=s=>e.openTrigger==="hover"&&o.unref(r)?a():null),onMouseleave:u[2]||(u[2]=s=>e.openTrigger==="hover"&&o.unref(r)?i():null)},[o.createElementVNode("li",{class:o.normalizeClass(e.layoutType==="horizontal"?"inline-block":"block")},[o.createElementVNode("div",{onClick:u[0]||(u[0]=s=>e.openTrigger==="click"?l():null)},[!e.isChild&&e.hasSlotParent?o.renderSlot(c.$slots,"list-item-menu-parent",{key:0,item:e.item}):e.isChild?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["px-2 py-1 whitespace-nowrap",[e.iconPosition==="top"||e.iconPosition==="bottom"?`flex flex-col items-center justify-center gap-${e.itemGap}`:`flex flex-row items-center gap-${e.itemGap}`]])},[e.iconPosition==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64)):e.iconPosition==="bottom"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):e.iconPosition==="right"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64))],2)),e.isChild&&e.hasSlotChild?o.renderSlot(c.$slots,"list-item-menu-child",{key:2,item:e.item}):e.isChild?(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(["whitespace-nowrap",[e.iconPosition==="top"||e.iconPosition==="bottom"?`flex flex-col items-start gap-${e.itemGap}`:`flex flex-row items-center gap-${e.itemGap}`]])},[e.iconPosition==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64)):e.iconPosition==="bottom"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):e.iconPosition==="right"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64))],2)):o.createCommentVNode("",!0)])],2),e.item.isOpen&&e.item.children.length?(o.openBlock(),o.createElementBlock("ul",{key:0,class:o.normalizeClass(["list-none mt-1",e.layoutType==="horizontal"?"absolute left-0 top-full ml-4":"ml-4 pl-2"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.item.children,s=>(o.openBlock(),o.createBlock(Fl,{key:s.id,item:s,layoutType:e.layoutType,iconPosition:e.iconPosition,iconSize:e.iconSize,labelSize:e.labelSize,openTrigger:e.openTrigger,itemGap:e.itemGap,isChild:!0,hasSlotParent:e.hasSlotParent,hasSlotChild:e.hasSlotChild,onToggle:e.onToggle,parentItems:e.item.children},o.createSlots({_:2},[e.hasSlotParent?{name:"list-item-menu-parent",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-parent",o.mergeProps({ref_for:!0},d))]),key:"0"}:void 0,e.hasSlotChild?{name:"list-item-menu-child",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-child",o.mergeProps({ref_for:!0},d))]),key:"1"}:void 0]),1032,["item","layoutType","iconPosition","iconSize","labelSize","openTrigger","itemGap","hasSlotParent","hasSlotChild","onToggle","parentItems"]))),128))],2)):o.createCommentVNode("",!0)],32))}},Dl={__name:"Menu",props:{menuName:{type:String,required:!0},layoutType:{type:String,default:"vertical"},iconPosition:{type:String,default:"left"},iconSize:{type:String,default:"text-base"},labelSize:{type:String,default:"text-sm"},openTrigger:{type:String,default:"click"},gap:{type:String,default:"1"},itemGap:{type:String,default:"1"}},setup(e){const t=e,n=o.ref([]),r=Rl(),a=c=>{c.forEach(u=>{u.isOpen=!1,u.children=u.children||[],u.children.length>0&&a(u.children)})},i=c=>{const u=s=>{s.forEach(d=>{d!==c&&(d.isOpen=!1),d.children&&d.children.length>0&&u(d.children)})};u(n.value),c.isOpen=!c.isOpen},l=async()=>{var s;const c=await r.getMenuByName(t.menuName),u=((s=c==null?void 0:c.response)==null?void 0:s.children)||[];a(u),n.value=u};return o.onMounted(l),(c,u)=>c.$slots["list-wrapper"]?o.renderSlot(c.$slots,"list-wrapper",{key:0,menuItems:n.value}):(o.openBlock(),o.createElementBlock("ul",{key:1,class:o.normalizeClass(["p-0",e.layoutType==="horizontal"?`flex flex-row gap-${t.gap}`:`flex flex-col gap-${t.gap}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(Fl,{key:s.id,item:s,parentItems:n.value,layoutType:e.layoutType,iconPosition:e.iconPosition,iconSize:e.iconSize,labelSize:e.labelSize,openTrigger:e.openTrigger,itemGap:e.itemGap,hasSlotParent:c.$slots["list-item-menu-parent"],hasSlotChild:c.$slots["list-item-menu-child"],onToggle:i},o.createSlots({_:2},[c.$slots["list-item-menu-parent"]?{name:"list-item-menu-parent",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-parent",o.mergeProps({ref_for:!0},d))]),key:"0"}:void 0,c.$slots["list-item-menu-child"]?{name:"list-item-menu-child",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-child",o.mergeProps({ref_for:!0},d))]),key:"1"}:void 0]),1032,["item","parentItems","layoutType","iconPosition","iconSize","labelSize","openTrigger","itemGap","hasSlotParent","hasSlotChild"]))),128))],2))}},Al={__name:"TextInput",props:{modelValue:{type:String,default:""},invalid:{type:Boolean,default:!1}},emits:["update:modelValue","input"],setup(e,{emit:t}){const n=t;function r(a){n("update:modelValue",a.target.value),n("input",a)}return(a,i)=>{const l=o.resolveComponent("InputText");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(l,o.mergeProps({class:"w-full",value:e.modelValue,onInput:r},a.$attrs),null,16,["value"])])}}},b0={key:1},Ll={__name:"Button",props:{label:{type:String,default:"Button"},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},severity:{type:String,default:"primary",validator:e=>["primary","info","danger","success"].includes(e)},onClick:{type:Function,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]},iconName:{type:String,default:null}},setup(e){const t=e,n=o.ref(!0),{hasMatchingRoleAndPermissions:r}=kt();o.onMounted(async()=>{n.value=await r(t.roles,t.permissions)});function a(i){t.onClick&&t.onClick(i)}return(i,l)=>n.value?(o.openBlock(),o.createBlock(o.unref(yo),{key:0,label:e.label,size:e.size,onClick:a,severity:e.severity,icon:e.iconName},null,8,["label","size","severity","icon"])):(o.openBlock(),o.createElementBlock("p",b0,"You do not have the required permissions to access this feature."))}},y0={name:"StateFullText",props:{value:{type:String,required:!0}},model:{prop:"value",event:"input"}};function k0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(n.value),1)}const _l=xe(y0,[["render",k0]]),w0=["min","max","value"],zl={__name:"RangeInput",props:{modelValue:{type:[Number,String],default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},type:{type:String,default:"range"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(a){n("update:modelValue",a.target.value)}return(a,i)=>e.type==="range"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"range",min:e.min,max:e.max,value:e.modelValue,onInput:r,class:"w-full accent-blue-500"},null,40,w0)):o.createCommentVNode("",!0)}};function v0(){let e=[];const t=(l,c,u=999)=>{const s=a(l,c,u),d=s.value+(s.key===l?0:u)+1;return e.push({key:l,value:d}),d},n=l=>{e=e.filter(c=>c.value!==l)},r=(l,c)=>a(l).value,a=(l,c,u=0)=>[...e].reverse().find(s=>!0)||{key:l,value:u},i=l=>l&&parseInt(l.style.zIndex,10)||0;return{get:i,set:(l,c,u)=>{c&&(c.style.zIndex=String(t(l,!0,u)))},clear:l=>{l&&(n(i(l)),l.style.zIndex="")},getCurrent:l=>r(l)}}var Qt=v0();function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function x0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E0(r.key),r)}}function S0(e,t,n){return C0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E0(e){var t=B0(e,"string");return Bn(t)=="symbol"?t:t+""}function B0(e,t){if(Bn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ml=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};x0(this,e),this.element=t,this.listener=n}return S0(e,[{key:"bindScrollListener",value:function(){this.scrollableParents=bg(this.element);for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])}();function Co(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return mr(e)}var jl={name:"BlankIcon",extends:ht};function $0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}jl.render=$0;var wr={name:"CheckIcon",extends:ht};function N0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}wr.render=N0;var Ul={name:"SearchIcon",extends:ht};function V0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}Ul.render=V0;var Hl={name:"TimesIcon",extends:ht};function O0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}Hl.render=O0;var T0=function(t){var n=t.dt;return`
|
|
928
|
+
*/var i0=vo.exports,Vl;function l0(){return Vl||(Vl=1,function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(i0,function(){var t,n,r="2.0.6",a={},i={},l={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:l.currentLocale,zeroFormat:l.zeroFormat,nullFormat:l.nullFormat,defaultFormat:l.defaultFormat,scalePercentBy100:l.scalePercentBy100};function u(s,d){this._input=s,this._value=d}return t=function(s){var d,f,p,m;if(t.isNumeral(s))d=s.value();else if(s===0||typeof s>"u")d=0;else if(s===null||n.isNaN(s))d=null;else if(typeof s=="string")if(c.zeroFormat&&s===c.zeroFormat)d=0;else if(c.nullFormat&&s===c.nullFormat||!s.replace(/[^0-9]+/g,"").length)d=null;else{for(f in a)if(m=typeof a[f].regexps.unformat=="function"?a[f].regexps.unformat():a[f].regexps.unformat,m&&s.match(m)){p=a[f].unformat;break}p=p||t._.stringToNumber,d=p(s)}else d=Number(s)||null;return new u(s,d)},t.version=r,t.isNumeral=function(s){return s instanceof u},t._=n={numberToFormat:function(s,d,f){var p=i[t.options.currentLocale],m=!1,g=!1,h=0,b="",y=1e12,w=1e9,k=1e6,v=1e3,C="",R=!1,E,S,_,z,L,F,V;if(s=s||0,S=Math.abs(s),t._.includes(d,"(")?(m=!0,d=d.replace(/[\(|\)]/g,"")):(t._.includes(d,"+")||t._.includes(d,"-"))&&(L=t._.includes(d,"+")?d.indexOf("+"):s<0?d.indexOf("-"):-1,d=d.replace(/[\+|\-]/g,"")),t._.includes(d,"a")&&(E=d.match(/a(k|m|b|t)?/),E=E?E[1]:!1,t._.includes(d," a")&&(b=" "),d=d.replace(new RegExp(b+"a[kmbt]?"),""),S>=y&&!E||E==="t"?(b+=p.abbreviations.trillion,s=s/y):S<y&&S>=w&&!E||E==="b"?(b+=p.abbreviations.billion,s=s/w):S<w&&S>=k&&!E||E==="m"?(b+=p.abbreviations.million,s=s/k):(S<k&&S>=v&&!E||E==="k")&&(b+=p.abbreviations.thousand,s=s/v)),t._.includes(d,"[.]")&&(g=!0,d=d.replace("[.]",".")),_=s.toString().split(".")[0],z=d.split(".")[1],F=d.indexOf(","),h=(d.split(".")[0].split(",")[0].match(/0/g)||[]).length,z?(t._.includes(z,"[")?(z=z.replace("]",""),z=z.split("["),C=t._.toFixed(s,z[0].length+z[1].length,f,z[1].length)):C=t._.toFixed(s,z.length,f),_=C.split(".")[0],t._.includes(C,".")?C=p.delimiters.decimal+C.split(".")[1]:C="",g&&Number(C.slice(1))===0&&(C="")):_=t._.toFixed(s,0,f),b&&!E&&Number(_)>=1e3&&b!==p.abbreviations.trillion)switch(_=String(Number(_)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(_,"-")&&(_=_.slice(1),R=!0),_.length<h)for(var x=h-_.length;x>0;x--)_="0"+_;return F>-1&&(_=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),d.indexOf(".")===0&&(_=""),V=_+C+(b||""),m?V=(m&&R?"(":"")+V+(m&&R?")":""):L>=0?V=L===0?(R?"-":"+")+V:V+(R?"-":"+"):R&&(V="-"+V),V},stringToNumber:function(s){var d=i[c.currentLocale],f=s,p={thousand:3,million:6,billion:9,trillion:12},m,g,h;if(c.zeroFormat&&s===c.zeroFormat)g=0;else if(c.nullFormat&&s===c.nullFormat||!s.replace(/[^0-9]+/g,"").length)g=null;else{g=1,d.delimiters.decimal!=="."&&(s=s.replace(/\./g,"").replace(d.delimiters.decimal,"."));for(m in p)if(h=new RegExp("[^a-zA-Z]"+d.abbreviations[m]+"(?:\\)|(\\"+d.currency.symbol+")?(?:\\))?)?$"),f.match(h)){g*=Math.pow(10,p[m]);break}g*=(s.split("-").length+Math.min(s.split("(").length-1,s.split(")").length-1))%2?1:-1,s=s.replace(/[^0-9\.]+/g,""),g*=Number(s)}return g},isNaN:function(s){return typeof s=="number"&&isNaN(s)},includes:function(s,d){return s.indexOf(d)!==-1},insert:function(s,d,f){return s.slice(0,f)+d+s.slice(f)},reduce:function(s,d){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof d!="function")throw new TypeError(d+" is not a function");var f=Object(s),p=f.length>>>0,m=0,g;if(arguments.length===3)g=arguments[2];else{for(;m<p&&!(m in f);)m++;if(m>=p)throw new TypeError("Reduce of empty array with no initial value");g=f[m++]}for(;m<p;m++)m in f&&(g=d(g,f[m],m,f));return g},multiplier:function(s){var d=s.toString().split(".");return d.length<2?1:Math.pow(10,d[1].length)},correctionFactor:function(){var s=Array.prototype.slice.call(arguments);return s.reduce(function(d,f){var p=n.multiplier(f);return d>p?d:p},1)},toFixed:function(s,d,f,p){var m=s.toString().split("."),g=d-(p||0),h,b,y,w;return m.length===2?h=Math.min(Math.max(m[1].length,g),d):h=g,y=Math.pow(10,h),w=(f(s+"e+"+h)/y).toFixed(h),p>d-h&&(b=new RegExp("\\.?0{1,"+(p-(d-h))+"}$"),w=w.replace(b,"")),w}},t.options=c,t.formats=a,t.locales=i,t.locale=function(s){return s&&(c.currentLocale=s.toLowerCase()),c.currentLocale},t.localeData=function(s){if(!s)return i[c.currentLocale];if(s=s.toLowerCase(),!i[s])throw new Error("Unknown locale : "+s);return i[s]},t.reset=function(){for(var s in l)c[s]=l[s]},t.zeroFormat=function(s){c.zeroFormat=typeof s=="string"?s:null},t.nullFormat=function(s){c.nullFormat=typeof s=="string"?s:null},t.defaultFormat=function(s){c.defaultFormat=typeof s=="string"?s:"0.0"},t.register=function(s,d,f){if(d=d.toLowerCase(),this[s+"s"][d])throw new TypeError(d+" "+s+" already registered.");return this[s+"s"][d]=f,f},t.validate=function(s,d){var f,p,m,g,h,b,y,w;if(typeof s!="string"&&(s+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",s)),s=s.trim(),s.match(/^\d+$/))return!0;if(s==="")return!1;try{y=t.localeData(d)}catch{y=t.localeData(t.locale())}return m=y.currency.symbol,h=y.abbreviations,f=y.delimiters.decimal,y.delimiters.thousands==="."?p="\\.":p=y.delimiters.thousands,w=s.match(/^[^\d]+/),w!==null&&(s=s.substr(1),w[0]!==m)||(w=s.match(/[^\d]+$/),w!==null&&(s=s.slice(0,-1),w[0]!==h.thousand&&w[0]!==h.million&&w[0]!==h.billion&&w[0]!==h.trillion))?!1:(b=new RegExp(p+"{2}"),s.match(/[^\d.,]/g)?!1:(g=s.split(f),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b):g[0].length===1?!!g[0].match(/^\d+$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(b)&&!!g[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(s,d){var f=this._value,p=s||c.defaultFormat,m,g,h;if(d=d||Math.round,f===0&&c.zeroFormat!==null)g=c.zeroFormat;else if(f===null&&c.nullFormat!==null)g=c.nullFormat;else{for(m in a)if(p.match(a[m].regexps.format)){h=a[m].format;break}h=h||t._.numberToFormat,g=h(f,p,d)}return g},value:function(){return this._value},input:function(){return this._input},set:function(s){return this._value=Number(s),this},add:function(s){var d=n.correctionFactor.call(null,this._value,s);function f(p,m,g,h){return p+Math.round(d*m)}return this._value=n.reduce([this._value,s],f,0)/d,this},subtract:function(s){var d=n.correctionFactor.call(null,this._value,s);function f(p,m,g,h){return p-Math.round(d*m)}return this._value=n.reduce([s],f,Math.round(this._value*d))/d,this},multiply:function(s){function d(f,p,m,g){var h=n.correctionFactor(f,p);return Math.round(f*h)*Math.round(p*h)/Math.round(h*h)}return this._value=n.reduce([this._value,s],d,1),this},divide:function(s){function d(f,p,m,g){var h=n.correctionFactor(f,p);return Math.round(f*h)/Math.round(p*h)}return this._value=n.reduce([this._value,s],d),this},difference:function(s){return Math.abs(t(this._value).subtract(s).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(s){var d=s%10;return~~(s%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(s,d,f){var p=t._.includes(d," BPS")?" ":"",m;return s=s*1e4,d=d.replace(/\s?BPS/,""),m=t._.numberToFormat(s,d,f),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"BPS"),m=m.join("")):m=m+p+"BPS",m},unformat:function(s){return+(t._.stringToNumber(s)*1e-4).toFixed(15)}})}(),function(){var s={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},d={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=s.suffixes.concat(d.suffixes.filter(function(m){return s.suffixes.indexOf(m)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(m,g,h){var b,y=t._.includes(g,"ib")?d:s,w=t._.includes(g," b")||t._.includes(g," ib")?" ":"",k,v,C;for(g=g.replace(/\s?i?b/,""),k=0;k<=y.suffixes.length;k++)if(v=Math.pow(y.base,k),C=Math.pow(y.base,k+1),m===null||m===0||m>=v&&m<C){w+=y.suffixes[k],v>0&&(m=m/v);break}return b=t._.numberToFormat(m,g,h),b+w},unformat:function(m){var g=t._.stringToNumber(m),h,b;if(g){for(h=s.suffixes.length-1;h>=0;h--){if(t._.includes(m,s.suffixes[h])){b=Math.pow(s.base,h);break}if(t._.includes(m,d.suffixes[h])){b=Math.pow(d.base,h);break}}g*=b||1}return g}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(s,d,f){var p=t.locales[t.options.currentLocale],m={before:d.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:d.match(/([\+|\-|\)|\s|\$]*)$/)[0]},g,h,b;for(d=d.replace(/\s?\$\s?/,""),g=t._.numberToFormat(s,d,f),s>=0?(m.before=m.before.replace(/[\-\(]/,""),m.after=m.after.replace(/[\-\)]/,"")):s<0&&!t._.includes(m.before,"-")&&!t._.includes(m.before,"(")&&(m.before="-"+m.before),b=0;b<m.before.length;b++)switch(h=m.before[b],h){case"$":g=t._.insert(g,p.currency.symbol,b);break;case" ":g=t._.insert(g," ",b+p.currency.symbol.length-1);break}for(b=m.after.length-1;b>=0;b--)switch(h=m.after[b],h){case"$":g=b===m.after.length-1?g+p.currency.symbol:t._.insert(g,p.currency.symbol,-(m.after.length-(1+b)));break;case" ":g=b===m.after.length-1?g+" ":t._.insert(g," ",-(m.after.length-(1+b)+p.currency.symbol.length-1));break}return g}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(s,d,f){var p,m=typeof s=="number"&&!t._.isNaN(s)?s.toExponential():"0e+0",g=m.split("e");return d=d.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(g[0]),d,f),p+"e"+g[1]},unformat:function(s){var d=t._.includes(s,"e+")?s.split("e+"):s.split("e-"),f=Number(d[0]),p=Number(d[1]);p=t._.includes(s,"e-")?p*=-1:p;function m(g,h,b,y){var w=t._.correctionFactor(g,h),k=g*w*(h*w)/(w*w);return k}return t._.reduce([f,Math.pow(10,p)],m,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(s,d,f){var p=t.locales[t.options.currentLocale],m,g=t._.includes(d," o")?" ":"";return d=d.replace(/\s?o/,""),g+=p.ordinal(s),m=t._.numberToFormat(s,d,f),m+g}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(s,d,f){var p=t._.includes(d," %")?" ":"",m;return t.options.scalePercentBy100&&(s=s*100),d=d.replace(/\s?\%/,""),m=t._.numberToFormat(s,d,f),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"%"),m=m.join("")):m=m+p+"%",m},unformat:function(s){var d=t._.stringToNumber(s);return t.options.scalePercentBy100?d*.01:d}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(s,d,f){var p=Math.floor(s/60/60),m=Math.floor((s-p*60*60)/60),g=Math.round(s-p*60*60-m*60);return p+":"+(m<10?"0"+m:m)+":"+(g<10?"0"+g:g)},unformat:function(s){var d=s.split(":"),f=0;return d.length===3?(f=f+Number(d[0])*60*60,f=f+Number(d[1])*60,f=f+Number(d[2])):d.length===2&&(f=f+Number(d[0])*60,f=f+Number(d[1])),Number(f)}})}(),t})}(vo)),vo.exports}var s0=l0();const Ol=ri(s0),Tl={__name:"FieldExpression",props:["value","type","displayFormat"],setup(e){const t=o.computed(()=>n()),n=()=>e.type==="DATE"?r():e.type==="NUMBER"?a():e.value,r=()=>r0(e.value,e.displayFormat?e.displayFormat:"MM/dd/yyyy"),a=()=>e.displayFormat?e.displayFormat==="currency"?Ol(e.value).format("$0,0.00"):Ol(e.value).format(e.displayFormat):e.value;return(i,l)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(t.value),1))}};function kr(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getEntities:async(D=!1)=>{const I=i();return await t(`/api/app/v1/${I}/entity`,D)},getEntity:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/entity/${D}`,I)},saveEntity:async(D,I=!1)=>{const N=i();return await n(`/api/app/v1/${N}/entity`,D,I)},updateEntityGeneralSettings:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/rename`,I,N)},updateEntityAuditable:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/auditable`,I,N)},updateEntityRevisionEnabled:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/revision`,I,N)},updateEntitySoftDelete:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/soft-delete`,I,N)},updateEntityDeleteProtected:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/delete-protect`,I,N)},updateEntityColumn:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/column`,I,N)},saveEntityColumn:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column`,I,N)},dropEntityColumn:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column/${I}`,{},N)},saveForeignKey:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/foreignKey`,I,N)},dropForeignKey:async(D,I=!1)=>{const N=i();return await a(`/api/app/v1/${N}/entity/foreignKey`,D,I)},saveUniqueConstraint:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column/${I}/constraint`,N)},dropUniqueConstraint:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column/${I}/constraint`,{},N)},saveIndex:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/column-index`,I,N)},dropIndex:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/column-index`,I,N)},deleteEntity:async(D,I=!1)=>{const N=i();return await a(`/api/app/v1/${N}/entity/${D}`,{},I)},getEntityEvents:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/entity/${D}/event`,I)},saveEntityEvent:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/event`,I,N)},deleteEntityEvent:async(D,I)=>{const N=i();return await a(`/api/app/v1/${N}/entity/${D}/event/${I}`)},updateEntityEvent:async(D,I,N,j=!1)=>{const K=i();return await r(`/api/app/v1/${K}/entity/${D}/event/${I}`,N,j)},getActionTypes:async(D=!1)=>{const I=i();return await t(`/api/app/v1/${I}/action-type`,D)},getActionConfigByType:async(D,I=!1)=>{const N=i();return await t(`/api/app/v1/${N}/notification-config/${D}`,I)},enableCache:async(D,I,N=!1)=>{const j=i();return await r(`/api/app/v1/${j}/entity/${D}/enableCache`,I,N)},addOrUpdatePresets:async(D,I,N=!1)=>{const j=i();return await n(`/api/app/v1/${j}/entity/${D}/preset`,I,N)},updateEntity:async(D,I=!1)=>{const N=i();return await r(`/api/app/v1/${N}/entity`,D,I)},deletePreset:async(D,I,N=!1)=>{const j=i();return await a(`/api/app/v1/${j}/entity/${D}/preset/${I}`,{},N)},validateSqlScript:async(D,I=!1)=>{const N=i();return await n(`/api/app/v1/${N}/entity/validate-sql`,D,I)},generateSingleEntity:async(D,I=!0)=>await n("/api/ai/generate/entity",D,I)}}function xo(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getRestEntities:async(u=!1)=>{const s=i();return await t(`/api/app/v1/${s}/rest`,u)},externalRestAPI:async(u,s=!1)=>{const d=i();return await n(`/api/app/v1/${d}/rest/call-api`,u,s)}}}const c0={id:-1,name:"_cs_applicationUser",tableName:"_cs_applicationUser",type:"CORE_DB",entityDefinition:{columns:[{name:"id",displayName:"Id",type:"INT",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"firstName",displayName:"First Name",type:"STRING",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"lastName",displayName:"Last Name",type:"STRING",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"email",displayName:"Email",type:"STRING",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"status",displayName:"Status",type:"STRING",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"enabled",displayName:"Enabled",type:"BOOLEAN",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"authorities",displayName:"Authorities",type:"ARRAY",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1},{name:"authenticated",displayName:"Authenticated",type:"BOOLEAN",uniqueConstraint:!1,autoGenerated:!1,primaryKey:!1,nullable:!0,textSearchSupport:!1,readOnly:!1,required:!1,filterable:!1,indexColumn:!1}]},system:!0,readOnly:!0},Il=Fn("entitiesStore",{state:()=>({entities:[],restEntities:[],entityService:new kr,externalRestService:xo()}),actions:{async fetchEntities(){try{return await this.entityService.getEntities()}catch(e){console.error("Error fetching entities:",e)}finally{}},async fetchRestEntities(){try{return await this.externalRestService.getRestEntities()}catch(e){console.error("Error fetching rest entities:",e)}},async getEntities(){if(this.entities.length===0){const e=await this.fetchEntities();this.setEntities(e.response)}return this.entities},async getRestEntities(){if(this.restEntities.length===0){const e=await this.fetchRestEntities();this.setRestEntities(e.response)}return this.restEntities},setEntities(e){this.entities=[...e,c0]},setRestEntities(e){this.restEntities=e},getEntityByName(e,t=!1){let n=[...this.entities];return t&&(n=[...n,...this.restEntities]),n.find(r=>r.name.toLowerCase()===e.toLowerCase())}}}),d0={class:"field flex flex-col w-full"},u0={key:0,class:"flex items-center"},f0={key:1},p0={class:"flex items-center"},m0={__name:"EntitySelection",props:{entityName:String,onEntityChangeCallback:Function},setup(e){const t=me(),n=o.ref(""),r=Il(),a=o.ref([]),i=async()=>{const u=await r.getEntities();a.value=u.filter(s=>!s.system),l()},l=()=>{for(let u=0;u<a.value.length;u++){const s=a.value[u];s.name.toLowerCase()==e.entityName.toLowerCase()&&(n.value=s)}},c=()=>{e.onEntityChangeCallback(n.value.name)};return o.watch(()=>t.globalConfigs.appId,async u=>{u&&await i()},{immediate:!0}),(u,s)=>{const d=o.resolveComponent("Select");return o.openBlock(),o.createElementBlock("div",d0,[o.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":[s[0]||(s[0]=f=>n.value=f),c],options:a.value,filter:"",optionLabel:"name",placeholder:"Select entity",class:"w-full"},{value:o.withCtx(f=>[f.value?(o.openBlock(),o.createElementBlock("div",u0,[o.createElementVNode("div",null,o.toDisplayString(f.value.name),1)])):(o.openBlock(),o.createElementBlock("span",f0,o.toDisplayString(f.placeholder),1))]),option:o.withCtx(f=>[o.createElementVNode("div",p0,[o.createElementVNode("div",null,o.toDisplayString(f.option.name),1)])]),_:1},8,["modelValue","options"])])}}},g0={class:"flex flex-col w-full"},h0={class:"w-1/4"},b0={class:"w-full mt-5"},Pl={__name:"EntityExplorer",props:{entityName:String},setup(e){const t=e,n=o.ref(t.entityName);o.watch(n,a=>{console.log("Entity changed to:",a)});const r=a=>{n.value=a};return(a,i)=>(o.openBlock(),o.createElementBlock("div",g0,[o.createElementVNode("div",h0,[(o.openBlock(),o.createBlock(m0,{key:n.value,entityName:n.value,onEntityChangeCallback:r},null,8,["entityName"]))]),o.createElementVNode("div",b0,[(o.openBlock(),o.createBlock(lr,{key:n.value,entityName:n.value},null,8,["entityName"]))])]))}};function Rl(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getAllMenu:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/menu`,p)},getMenu:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/menu/${p}`,m)},createMenu:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/menu`,p,m)},updateMenu:async(p,m,g=!1)=>{const h=i();return await r(`/api/app/v1/${h}/menu/${p}`,m,g)},deleteMenu:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/menu/${p}`,{},m)},getMenuByName:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/menu/name/${p}`,m)}}}const Fl={__name:"MenuItem",props:{item:Object,parentItems:{type:Array,default:()=>[]},layoutType:String,iconPosition:String,iconSize:String,labelSize:String,openTrigger:String,itemGap:{type:String,default:"1"},isChild:{type:Boolean,default:!1},hasSlotParent:{type:Boolean,default:!1},hasSlotChild:{type:Boolean,default:!1},onToggle:Function},setup(e){const t=st.useRouter(),n=e,r=n.item.children&&n.item.children.length>0,a=()=>{r&&(n.item.isOpen=!0)},i=()=>{r&&(n.item.isOpen=!1)},l=()=>{var c;r?((c=n.parentItems)==null||c.forEach(u=>{u!==n.item&&(u.isOpen=!1)}),n.item.isOpen=!n.item.isOpen):n.item.route&&n.item.url?t.push(n.item.url):!n.item.route&&n.item.url&&(window.location.href=n.item.url)};return(c,u)=>(o.openBlock(),o.createElementBlock("div",{class:"relative",onMouseenter:u[1]||(u[1]=s=>e.openTrigger==="hover"&&o.unref(r)?a():null),onMouseleave:u[2]||(u[2]=s=>e.openTrigger==="hover"&&o.unref(r)?i():null)},[o.createElementVNode("li",{class:o.normalizeClass(e.layoutType==="horizontal"?"inline-block":"block")},[o.createElementVNode("div",{onClick:u[0]||(u[0]=s=>e.openTrigger==="click"?l():null)},[!e.isChild&&e.hasSlotParent?o.renderSlot(c.$slots,"list-item-menu-parent",{key:0,item:e.item}):e.isChild?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["px-2 py-1 whitespace-nowrap",[e.iconPosition==="top"||e.iconPosition==="bottom"?`flex flex-col items-center justify-center gap-${e.itemGap}`:`flex flex-row items-center gap-${e.itemGap}`]])},[e.iconPosition==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64)):e.iconPosition==="bottom"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):e.iconPosition==="right"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64))],2)),e.isChild&&e.hasSlotChild?o.renderSlot(c.$slots,"list-item-menu-child",{key:2,item:e.item}):e.isChild?(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(["whitespace-nowrap",[e.iconPosition==="top"||e.iconPosition==="bottom"?`flex flex-col items-start gap-${e.itemGap}`:`flex flex-row items-center gap-${e.itemGap}`]])},[e.iconPosition==="top"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64)):e.iconPosition==="bottom"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):e.iconPosition==="right"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3),o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[o.createElementVNode("i",{class:o.normalizeClass([e.item.mediumIcon,e.iconSize])},null,2),o.createElementVNode("span",{class:o.normalizeClass(e.labelSize)},o.toDisplayString(e.item.displayLabel),3)],64))],2)):o.createCommentVNode("",!0)])],2),e.item.isOpen&&e.item.children.length?(o.openBlock(),o.createElementBlock("ul",{key:0,class:o.normalizeClass(["list-none mt-1",e.layoutType==="horizontal"?"absolute left-0 top-full ml-4":"ml-4 pl-2"])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.item.children,s=>(o.openBlock(),o.createBlock(Fl,{key:s.id,item:s,layoutType:e.layoutType,iconPosition:e.iconPosition,iconSize:e.iconSize,labelSize:e.labelSize,openTrigger:e.openTrigger,itemGap:e.itemGap,isChild:!0,hasSlotParent:e.hasSlotParent,hasSlotChild:e.hasSlotChild,onToggle:e.onToggle,parentItems:e.item.children},o.createSlots({_:2},[e.hasSlotParent?{name:"list-item-menu-parent",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-parent",o.mergeProps({ref_for:!0},d))]),key:"0"}:void 0,e.hasSlotChild?{name:"list-item-menu-child",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-child",o.mergeProps({ref_for:!0},d))]),key:"1"}:void 0]),1032,["item","layoutType","iconPosition","iconSize","labelSize","openTrigger","itemGap","hasSlotParent","hasSlotChild","onToggle","parentItems"]))),128))],2)):o.createCommentVNode("",!0)],32))}},Dl={__name:"Menu",props:{menuName:{type:String,required:!0},layoutType:{type:String,default:"vertical"},iconPosition:{type:String,default:"left"},iconSize:{type:String,default:"text-base"},labelSize:{type:String,default:"text-sm"},openTrigger:{type:String,default:"click"},gap:{type:String,default:"1"},itemGap:{type:String,default:"1"}},setup(e){const t=e,n=o.ref([]),r=Rl(),a=c=>{c.forEach(u=>{u.isOpen=!1,u.children=u.children||[],u.children.length>0&&a(u.children)})},i=c=>{const u=s=>{s.forEach(d=>{d!==c&&(d.isOpen=!1),d.children&&d.children.length>0&&u(d.children)})};u(n.value),c.isOpen=!c.isOpen},l=async()=>{var s;const c=await r.getMenuByName(t.menuName),u=((s=c==null?void 0:c.response)==null?void 0:s.children)||[];a(u),n.value=u};return o.onMounted(l),(c,u)=>c.$slots["list-wrapper"]?o.renderSlot(c.$slots,"list-wrapper",{key:0,menuItems:n.value}):(o.openBlock(),o.createElementBlock("ul",{key:1,class:o.normalizeClass(["p-0",e.layoutType==="horizontal"?`flex flex-row gap-${t.gap}`:`flex flex-col gap-${t.gap}`])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createBlock(Fl,{key:s.id,item:s,parentItems:n.value,layoutType:e.layoutType,iconPosition:e.iconPosition,iconSize:e.iconSize,labelSize:e.labelSize,openTrigger:e.openTrigger,itemGap:e.itemGap,hasSlotParent:c.$slots["list-item-menu-parent"],hasSlotChild:c.$slots["list-item-menu-child"],onToggle:i},o.createSlots({_:2},[c.$slots["list-item-menu-parent"]?{name:"list-item-menu-parent",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-parent",o.mergeProps({ref_for:!0},d))]),key:"0"}:void 0,c.$slots["list-item-menu-child"]?{name:"list-item-menu-child",fn:o.withCtx(d=>[o.renderSlot(c.$slots,"list-item-menu-child",o.mergeProps({ref_for:!0},d))]),key:"1"}:void 0]),1032,["item","parentItems","layoutType","iconPosition","iconSize","labelSize","openTrigger","itemGap","hasSlotParent","hasSlotChild"]))),128))],2))}},Al={__name:"TextInput",props:{modelValue:{type:String,default:""},invalid:{type:Boolean,default:!1}},emits:["update:modelValue","input"],setup(e,{emit:t}){const n=t;function r(a){n("update:modelValue",a.target.value),n("input",a)}return(a,i)=>{const l=o.resolveComponent("InputText");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(l,o.mergeProps({class:"w-full",value:e.modelValue,onInput:r},a.$attrs),null,16,["value"])])}}},y0={key:1},Ll={__name:"Button",props:{label:{type:String,default:"Button"},size:{type:String,default:"medium",validator:e=>["small","medium","large"].includes(e)},severity:{type:String,default:"primary",validator:e=>["primary","info","danger","success"].includes(e)},onClick:{type:Function,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]},iconName:{type:String,default:null}},setup(e){const t=e,n=o.ref(!0),{hasMatchingRoleAndPermissions:r}=kt();o.onMounted(async()=>{n.value=await r(t.roles,t.permissions)});function a(i){t.onClick&&t.onClick(i)}return(i,l)=>n.value?(o.openBlock(),o.createBlock(o.unref(yo),{key:0,label:e.label,size:e.size,onClick:a,severity:e.severity,icon:e.iconName},null,8,["label","size","severity","icon"])):(o.openBlock(),o.createElementBlock("p",y0,"You do not have the required permissions to access this feature."))}},k0={name:"StateFullText",props:{value:{type:String,required:!0}},model:{prop:"value",event:"input"}};function w0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(n.value),1)}const _l=xe(k0,[["render",w0]]),v0=["min","max","value"],zl={__name:"RangeInput",props:{modelValue:{type:[Number,String],default:0},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},type:{type:String,default:"range"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function r(a){n("update:modelValue",a.target.value)}return(a,i)=>e.type==="range"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"range",min:e.min,max:e.max,value:e.modelValue,onInput:r,class:"w-full accent-blue-500"},null,40,v0)):o.createCommentVNode("",!0)}};function x0(){let e=[];const t=(l,c,u=999)=>{const s=a(l,c,u),d=s.value+(s.key===l?0:u)+1;return e.push({key:l,value:d}),d},n=l=>{e=e.filter(c=>c.value!==l)},r=(l,c)=>a(l).value,a=(l,c,u=0)=>[...e].reverse().find(s=>!0)||{key:l,value:u},i=l=>l&&parseInt(l.style.zIndex,10)||0;return{get:i,set:(l,c,u)=>{c&&(c.style.zIndex=String(t(l,!0,u)))},clear:l=>{l&&(n(i(l)),l.style.zIndex="")},getCurrent:l=>r(l)}}var Qt=x0();function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function C0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B0(r.key),r)}}function E0(e,t,n){return S0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B0(e){var t=$0(e,"string");return Bn(t)=="symbol"?t:t+""}function $0(e,t){if(Bn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ml=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};C0(this,e),this.element=t,this.listener=n}return E0(e,[{key:"bindScrollListener",value:function(){this.scrollableParents=bg(this.element);for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])}();function Co(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return mr(e)}var jl={name:"BlankIcon",extends:ht};function N0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1)]),16)}jl.render=N0;var wr={name:"CheckIcon",extends:ht};function V0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1)]),16)}wr.render=V0;var Ul={name:"SearchIcon",extends:ht};function O0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1)]),16)}Ul.render=O0;var Hl={name:"TimesIcon",extends:ht};function T0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1)]),16)}Hl.render=T0;var I0=function(t){var n=t.dt;return`
|
|
929
929
|
.p-iconfield {
|
|
930
930
|
position: relative;
|
|
931
931
|
}
|
|
@@ -967,7 +967,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
967
967
|
height: `).concat(n("form.field.lg.font.size"),`;
|
|
968
968
|
margin-top: calc(-1 * (`).concat(n("form.field.lg.font.size"),` / 2));
|
|
969
969
|
}
|
|
970
|
-
`)},
|
|
970
|
+
`)},P0={root:"p-iconfield"},R0=be.extend({name:"iconfield",theme:I0,classes:P0}),F0={name:"BaseIconField",extends:Dt,style:R0,provide:function(){return{$pcIconField:this,$parentInstance:this}}},Wl={name:"IconField",extends:F0,inheritAttrs:!1};function D0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},e.ptmi("root")),[o.renderSlot(e.$slots,"default")],16)}Wl.render=D0;var A0={root:"p-inputicon"},L0=be.extend({name:"inputicon",classes:A0}),_0={name:"BaseInputIcon",extends:Dt,style:L0,props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},ql={name:"InputIcon",extends:_0,inheritAttrs:!1,computed:{containerClass:function(){return[this.cx("root"),this.class]}}};function z0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("span",o.mergeProps({class:i.containerClass},e.ptmi("root")),[o.renderSlot(e.$slots,"default")],16)}ql.render=z0;var M0={name:"BaseEditableHolder",extends:Dt,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue||this.modelValue}},watch:{modelValue:function(t){this.d_value=t},defaultValue:function(t){this.d_value=t},$formName:{immediate:!0,handler:function(t){var n,r;this.formField=((n=this.$pcForm)===null||n===void 0||(r=n.register)===null||r===void 0?void 0:r.call(n,t,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(t){var n,r;this.formField=((n=this.$pcForm)===null||n===void 0||(r=n.register)===null||r===void 0?void 0:r.call(n,this.$formName,t))||{}}},$formDefaultValue:{immediate:!0,handler:function(t){this.d_value!==t&&(this.d_value=t)}}},formField:{},methods:{writeValue:function(t,n){var r,a;this.controlled&&(this.d_value=t,this.$emit("update:modelValue",t)),this.$emit("value-change",t),(r=(a=this.formField).onChange)===null||r===void 0||r.call(a,{originalEvent:n,value:t})}},computed:{$filled:function(){return ie(this.d_value)},$invalid:function(){var t,n,r,a;return(t=(n=this.invalid)!==null&&n!==void 0?n:(r=this.$pcFormField)===null||r===void 0||(r=r.$field)===null||r===void 0?void 0:r.invalid)!==null&&t!==void 0?t:(a=this.$pcForm)===null||a===void 0||(a=a.states)===null||a===void 0||(a=a[this.$formName])===null||a===void 0?void 0:a.invalid},$formName:function(){var t;return this.name||((t=this.$formControl)===null||t===void 0?void 0:t.name)},$formControl:function(){var t;return this.formControl||((t=this.$pcFormField)===null||t===void 0?void 0:t.formControl)},$formDefaultValue:function(){var t,n,r,a;return(t=(n=this.d_value)!==null&&n!==void 0?n:(r=this.$pcFormField)===null||r===void 0?void 0:r.initialValue)!==null&&t!==void 0?t:(a=this.$pcForm)===null||a===void 0||(a=a.initialValues)===null||a===void 0?void 0:a[this.$formName]},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},So={name:"BaseInput",extends:M0,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var t;return(t=this.variant)!==null&&t!==void 0?t:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var t;return(t=this.fluid)!==null&&t!==void 0?t:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},j0=function(t){var n=t.dt;return`
|
|
971
971
|
.p-inputtext {
|
|
972
972
|
font-family: inherit;
|
|
973
973
|
font-feature-settings: inherit;
|
|
@@ -1040,7 +1040,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1040
1040
|
.p-inputtext-fluid {
|
|
1041
1041
|
width: 100%;
|
|
1042
1042
|
}
|
|
1043
|
-
`)},
|
|
1043
|
+
`)},U0={root:function(t){var n=t.instance,r=t.props;return["p-inputtext p-component",{"p-filled":n.$filled,"p-inputtext-sm p-inputfield-sm":r.size==="small","p-inputtext-lg p-inputfield-lg":r.size==="large","p-invalid":n.$invalid,"p-variant-filled":n.$variant==="filled","p-inputtext-fluid":n.$fluid}]}},H0=be.extend({name:"inputtext",theme:j0,classes:U0}),W0={name:"BaseInputText",extends:So,style:H0,provide:function(){return{$pcInputText:this,$parentInstance:this}}},Jt={name:"InputText",extends:W0,inheritAttrs:!1,methods:{onInput:function(t){this.writeValue(t.target.value,t)}},computed:{attrs:function(){return o.mergeProps(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},q0=["value","disabled","aria-invalid"];function K0(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("input",o.mergeProps({type:"text",class:e.cx("root"),value:e.d_value,disabled:e.disabled,"aria-invalid":e.$invalid||void 0,onInput:t[0]||(t[0]=function(){return i.onInput&&i.onInput.apply(i,arguments)})},i.attrs),null,16,q0)}Jt.render=K0;var Kl=fr(),vr={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=ur()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function G0(e,t,n,r,a,i){return i.inline?o.renderSlot(e.$slots,"default",{key:0}):a.mounted?(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:n.appendTo},[o.renderSlot(e.$slots,"default")],8,["to"])):o.createCommentVNode("",!0)}vr.render=G0;var Y0=function(t){var n=t.dt;return`
|
|
1044
1044
|
.p-virtualscroller-loader {
|
|
1045
1045
|
background: `.concat(n("virtualscroller.loader.mask.background"),`;
|
|
1046
1046
|
color: `).concat(n("virtualscroller.loader.mask.color"),`;
|
|
@@ -1051,7 +1051,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1051
1051
|
width: `).concat(n("virtualscroller.loader.icon.size"),`;
|
|
1052
1052
|
height: `).concat(n("virtualscroller.loader.icon.size"),`;
|
|
1053
1053
|
}
|
|
1054
|
-
`)},
|
|
1054
|
+
`)},Q0=`
|
|
1055
1055
|
.p-virtualscroller {
|
|
1056
1056
|
position: relative;
|
|
1057
1057
|
overflow: auto;
|
|
@@ -1101,7 +1101,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1101
1101
|
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
1102
1102
|
position: static;
|
|
1103
1103
|
}
|
|
1104
|
-
`,Gl=be.extend({name:"virtualscroller",css:Y0,theme:G0}),Q0={name:"BaseVirtualScroller",extends:Dt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Gl,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Gl.loadCSS({nonce:(t=this.$primevueConfig)===null||t===void 0||(t=t.csp)===null||t===void 0?void 0:t.nonce})}};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(n),!0).forEach(function(r){Ql(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ql(e,t,n){return(t=J0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J0(e){var t=X0(e,"string");return $n(t)=="symbol"?t:t+""}function X0(e,t){if($n(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($n(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl={name:"VirtualScroller",extends:Q0,inheritAttrs:!1,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,n){this.lazy&&t!==n&&t!==this.d_loading&&(this.d_loading=t)},items:function(t,n){(!n||n.length!==(t||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){mo(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=Ft(this.element),this.defaultHeight=Rt(this.element),this.defaultContentWidth=Ft(this.content),this.defaultContentHeight=Rt(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(t){this.element&&this.element.scrollTo(t)},scrollToIndex:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",a=this.isBoth(),i=this.isHorizontal(),l=a?t.every(function(E){return E>-1}):t>-1;if(l){var c=this.first,u=this.element,s=u.scrollTop,d=s===void 0?0:s,f=u.scrollLeft,p=f===void 0?0:f,m=this.calculateNumItems(),g=m.numToleratedItems,h=this.getContentPosition(),b=this.itemSize,y=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_=arguments.length>1?arguments[1]:void 0;return S<=_?0:S},w=function(S,_,z){return S*_+z},k=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:S,top:_,behavior:r})},v=a?{rows:0,cols:0}:0,C=!1,R=!1;a?(v={rows:y(t[0],g[0]),cols:y(t[1],g[1])},k(w(v.cols,b[1],h.left),w(v.rows,b[0],h.top)),R=this.lastScrollPos.top!==d||this.lastScrollPos.left!==p,C=v.rows!==c.rows||v.cols!==c.cols):(v=y(t,g),i?k(w(v,b,h.left),d):k(p,w(v,b,h.top)),R=this.lastScrollPos!==(i?p:d),C=v!==c),this.isRangeChanged=C,R&&(this.first=v)}},scrollInView:function(t,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(n){var i=this.isBoth(),l=this.isHorizontal(),c=i?t.every(function(b){return b>-1}):t>-1;if(c){var u=this.getRenderedRange(),s=u.first,d=u.viewport,f=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.scrollTo({left:y,top:w,behavior:a})},p=n==="to-start",m=n==="to-end";if(p){if(i)d.first.rows-s.rows>t[0]?f(d.first.cols*this.itemSize[1],(d.first.rows-1)*this.itemSize[0]):d.first.cols-s.cols>t[1]&&f((d.first.cols-1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.first-s>t){var g=(d.first-1)*this.itemSize;l?f(g,0):f(0,g)}}else if(m){if(i)d.last.rows-s.rows<=t[0]+1?f(d.first.cols*this.itemSize[1],(d.first.rows+1)*this.itemSize[0]):d.last.cols-s.cols<=t[1]+1&&f((d.first.cols+1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.last-s<=t+1){var h=(d.first+1)*this.itemSize;l?f(h,0):f(0,h)}}}}else this.scrollToIndex(t,a)},getRenderedRange:function(){var t=function(f,p){return Math.floor(f/(p||f))},n=this.first,r=0;if(this.element){var a=this.isBoth(),i=this.isHorizontal(),l=this.element,c=l.scrollTop,u=l.scrollLeft;if(a)n={rows:t(c,this.itemSize[0]),cols:t(u,this.itemSize[1])},r={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{var s=i?u:c;n=t(s,this.itemSize),r=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:r}}},calculateNumItems:function(){var t=this.isBoth(),n=this.isHorizontal(),r=this.itemSize,a=this.getContentPosition(),i=this.element?this.element.offsetWidth-a.left:0,l=this.element?this.element.offsetHeight-a.top:0,c=function(p,m){return Math.ceil(p/(m||p))},u=function(p){return Math.ceil(p/2)},s=t?{rows:c(l,r[0]),cols:c(i,r[1])}:c(n?i:l,r),d=this.d_numToleratedItems||(t?[u(s.rows),u(s.cols)]:u(s));return{numItemsInViewport:s,numToleratedItems:d}},calculateOptions:function(){var t=this,n=this.isBoth(),r=this.first,a=this.calculateNumItems(),i=a.numItemsInViewport,l=a.numToleratedItems,c=function(d,f,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.getLast(d+f+(d<p?2:3)*p,m)},u=n?{rows:c(r.rows,i.rows,l[0]),cols:c(r.cols,i.cols,l[1],!0)}:c(r,i,l);this.last=u,this.numItemsInViewport=i,this.d_numToleratedItems=l,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=n?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){var s;t.lazyLoadState={first:t.step?n?{rows:0,cols:r.cols}:0:r,last:Math.min(t.step?t.step:u,((s=t.items)===null||s===void 0?void 0:s.length)||0)},t.$emit("lazy-load",t.lazyLoadState)})},calculateAutoSize:function(){var t=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(t.content){var n=t.isBoth(),r=t.isHorizontal(),a=t.isVertical();t.content.style.minHeight=t.content.style.minWidth="auto",t.content.style.position="relative",t.element.style.contain="none";var i=[Ft(t.element),Rt(t.element)],l=i[0],c=i[1];(n||r)&&(t.element.style.width=l<t.defaultWidth?l+"px":t.scrollWidth||t.defaultWidth+"px"),(n||a)&&(t.element.style.height=c<t.defaultHeight?c+"px":t.scrollHeight||t.defaultHeight+"px"),t.content.style.minHeight=t.content.style.minWidth="",t.content.style.position="",t.element.style.contain=""}})},getLast:function(){var t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(a?((t=this.columns||this.items[0])===null||t===void 0?void 0:t.length)||0:((n=this.items)===null||n===void 0?void 0:n.length)||0,r):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),n=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),r=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),a=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:n,right:r,top:a,bottom:i,x:n+r,y:a+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var n=this.isBoth(),r=this.isHorizontal(),a=this.element.parentElement,i=this.scrollWidth||"".concat(this.element.offsetWidth||a.offsetWidth,"px"),l=this.scrollHeight||"".concat(this.element.offsetHeight||a.offsetHeight,"px"),c=function(s,d){return t.element.style[s]=d};n||r?(c("height",l),c("width",i)):c("height",l)}},setSpacerSize:function(){var t=this,n=this.items;if(n){var r=this.isBoth(),a=this.isHorizontal(),i=this.getContentPosition(),l=function(u,s,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return t.spacerStyle=Nn(Nn({},t.spacerStyle),Ql({},"".concat(u),(s||[]).length*d+f+"px"))};r?(l("height",n,this.itemSize[0],i.y),l("width",this.columns||n[1],this.itemSize[1],i.x)):a?l("width",this.columns||n,this.itemSize,i.x):l("height",n,this.itemSize,i.y)}},setContentPosition:function(t){var n=this;if(this.content&&!this.appendOnly){var r=this.isBoth(),a=this.isHorizontal(),i=t?t.first:this.first,l=function(d,f){return d*f},c=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.contentStyle=Nn(Nn({},n.contentStyle),{transform:"translate3d(".concat(d,"px, ").concat(f,"px, 0)")})};if(r)c(l(i.cols,this.itemSize[1]),l(i.rows,this.itemSize[0]));else{var u=l(i,this.itemSize);a?c(u,0):c(0,u)}}},onScrollPositionChange:function(t){var n=this,r=t.target,a=this.isBoth(),i=this.isHorizontal(),l=this.getContentPosition(),c=function(L,F){return L?L>F?L-F:L:0},u=function(L,F){return Math.floor(L/(F||L))},s=function(L,F,V,x,B,$){return L<=B?B:$?V-x-B:F+B-1},d=function(L,F,V,x,B,$,P){return L<=$?0:Math.max(0,P?L<F?V:L-$:L>F?V:L-2*$)},f=function(L,F,V,x,B,$){var P=F+x+2*B;return L>=B&&(P+=B+1),n.getLast(P,$)},p=c(r.scrollTop,l.top),m=c(r.scrollLeft,l.left),g=a?{rows:0,cols:0}:0,h=this.last,b=!1,y=this.lastScrollPos;if(a){var w=this.lastScrollPos.top<=p,k=this.lastScrollPos.left<=m;if(!this.appendOnly||this.appendOnly&&(w||k)){var v={rows:u(p,this.itemSize[0]),cols:u(m,this.itemSize[1])},C={rows:s(v.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:s(v.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)};g={rows:d(v.rows,C.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:d(v.cols,C.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)},h={rows:f(v.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:f(v.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=g.rows!==this.first.rows||h.rows!==this.last.rows||g.cols!==this.first.cols||h.cols!==this.last.cols||this.isRangeChanged,y={top:p,left:m}}}else{var R=i?m:p,E=this.lastScrollPos<=R;if(!this.appendOnly||this.appendOnly&&E){var S=u(R,this.itemSize),_=s(S,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,E);g=d(S,_,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,E),h=f(S,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),b=g!==this.first||h!==this.last||this.isRangeChanged,y=R}}return{first:g,last:h,isRangeChanged:b,scrollPos:y}},onScrollChange:function(t){var n=this.onScrollPositionChange(t),r=n.first,a=n.last,i=n.isRangeChanged,l=n.scrollPos;if(i){var c={first:r,last:a};if(this.setContentPosition(c),this.first=r,this.last=a,this.lastScrollPos=l,this.$emit("scroll-index-change",c),this.lazy&&this.isPageChanged(r)){var u,s,d={first:this.step?Math.min(this.getPageByFirst(r)*this.step,(((u=this.items)===null||u===void 0?void 0:u.length)||0)-this.step):r,last:Math.min(this.step?(this.getPageByFirst(r)+1)*this.step:a,((s=this.items)===null||s===void 0?void 0:s.length)||0)},f=this.lazyLoadState.first!==d.first||this.lazyLoadState.last!==d.last;f&&this.$emit("lazy-load",d),this.lazyLoadState=d}}},onScroll:function(t){var n=this;if(this.$emit("scroll",t),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var r=this.onScrollPositionChange(t),a=r.isRangeChanged,i=a||(this.step?this.isPageChanged():!1);i&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){n.onScrollChange(t),n.d_loading&&n.showLoader&&(!n.lazy||n.loading===void 0)&&(n.d_loading=!1,n.page=n.getPageByFirst())},this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(mo(t.element)){var n=t.isBoth(),r=t.isVertical(),a=t.isHorizontal(),i=[Ft(t.element),Rt(t.element)],l=i[0],c=i[1],u=l!==t.defaultWidth,s=c!==t.defaultHeight,d=n?u||s:a?u:r?s:!1;d&&(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=l,t.defaultHeight=c,t.defaultContentWidth=Ft(t.content),t.defaultContentHeight=Rt(t.content),t.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var n=(this.items||[]).length,r=this.isBoth()?this.first.rows+t:this.first+t;return{index:r,count:n,first:r===0,last:r===n-1,even:r%2===0,odd:r%2!==0}},getLoaderOptions:function(t,n){var r=this.loaderArr.length;return Nn({index:t,count:r,first:t===0,last:t===r-1,even:t%2===0,odd:t%2!==0},n)},getPageByFirst:function(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(t){return this.step&&!this.lazy?this.page!==this.getPageByFirst(t??this.first):!0},setContentEl:function(t){this.content=t||this.content||po(this.element,'[data-pc-section="content"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(n){return t.columns?n:n.slice(t.appendOnly?0:t.first.cols,t.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),n=this.isHorizontal();if(t||n)return this.d_loading&&this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:bo}},Z0=["tabindex"];function ey(e,t,n,r,a,i){var l=o.resolveComponent("SpinnerIcon");return e.disabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.renderSlot(e.$slots,"default"),o.renderSlot(e.$slots,"content",{items:e.items,rows:e.items,columns:i.loadedColumns})],64)):(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.elementRef,class:i.containerClass,tabindex:e.tabindex,style:e.style,onScroll:t[0]||(t[0]=function(){return i.onScroll&&i.onScroll.apply(i,arguments)})},e.ptmi("root")),[o.renderSlot(e.$slots,"content",{styleClass:i.contentClass,items:i.loadedItems,getItemOptions:i.getOptions,loading:a.d_loading,getLoaderOptions:i.getLoaderOptions,itemSize:e.itemSize,rows:i.loadedRows,columns:i.loadedColumns,contentRef:i.contentRef,spacerStyle:a.spacerStyle,contentStyle:a.contentStyle,vertical:i.isVertical(),horizontal:i.isHorizontal(),both:i.isBoth()},function(){return[o.createElementVNode("div",o.mergeProps({ref:i.contentRef,class:i.contentClass,style:a.contentStyle},e.ptm("content")),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.loadedItems,function(c,u){return o.renderSlot(e.$slots,"item",{key:u,item:c,options:i.getOptions(u)})}),128))],16)]}),e.showSpacer?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,class:"p-virtualscroller-spacer",style:a.spacerStyle},e.ptm("spacer")),null,16)):o.createCommentVNode("",!0),!e.loaderDisabled&&e.showLoader&&a.d_loading?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:1,class:i.loaderClass},e.ptm("loader")),[e.$slots&&e.$slots.loader?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(a.loaderArr,function(c,u){return o.renderSlot(e.$slots,"loader",{key:u,options:i.getLoaderOptions(u,i.isBoth()&&{numCols:e.d_numItemsInViewport.cols})})}),128)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"loadingicon",{},function(){return[o.createVNode(l,o.mergeProps({spin:"",class:"p-virtualscroller-loading-icon"},e.ptm("loadingIcon")),null,16)]})],16)):o.createCommentVNode("",!0)],16,Z0))}Jl.render=ey;var ty=function(t){var n=t.dt;return`
|
|
1104
|
+
`,Gl=be.extend({name:"virtualscroller",css:Q0,theme:Y0}),J0={name:"BaseVirtualScroller",extends:Dt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Gl,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Gl.loadCSS({nonce:(t=this.$primevueConfig)===null||t===void 0||(t=t.csp)===null||t===void 0?void 0:t.nonce})}};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(n),!0).forEach(function(r){Ql(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ql(e,t,n){return(t=X0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X0(e){var t=Z0(e,"string");return $n(t)=="symbol"?t:t+""}function Z0(e,t){if($n(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($n(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jl={name:"VirtualScroller",extends:J0,inheritAttrs:!1,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,n){this.lazy&&t!==n&&t!==this.d_loading&&(this.d_loading=t)},items:function(t,n){(!n||n.length!==(t||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){mo(this.element)&&(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=Ft(this.element),this.defaultHeight=Rt(this.element),this.defaultContentWidth=Ft(this.content),this.defaultContentHeight=Rt(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(t){this.element&&this.element.scrollTo(t)},scrollToIndex:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",a=this.isBoth(),i=this.isHorizontal(),l=a?t.every(function(E){return E>-1}):t>-1;if(l){var c=this.first,u=this.element,s=u.scrollTop,d=s===void 0?0:s,f=u.scrollLeft,p=f===void 0?0:f,m=this.calculateNumItems(),g=m.numToleratedItems,h=this.getContentPosition(),b=this.itemSize,y=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_=arguments.length>1?arguments[1]:void 0;return S<=_?0:S},w=function(S,_,z){return S*_+z},k=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:S,top:_,behavior:r})},v=a?{rows:0,cols:0}:0,C=!1,R=!1;a?(v={rows:y(t[0],g[0]),cols:y(t[1],g[1])},k(w(v.cols,b[1],h.left),w(v.rows,b[0],h.top)),R=this.lastScrollPos.top!==d||this.lastScrollPos.left!==p,C=v.rows!==c.rows||v.cols!==c.cols):(v=y(t,g),i?k(w(v,b,h.left),d):k(p,w(v,b,h.top)),R=this.lastScrollPos!==(i?p:d),C=v!==c),this.isRangeChanged=C,R&&(this.first=v)}},scrollInView:function(t,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(n){var i=this.isBoth(),l=this.isHorizontal(),c=i?t.every(function(b){return b>-1}):t>-1;if(c){var u=this.getRenderedRange(),s=u.first,d=u.viewport,f=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.scrollTo({left:y,top:w,behavior:a})},p=n==="to-start",m=n==="to-end";if(p){if(i)d.first.rows-s.rows>t[0]?f(d.first.cols*this.itemSize[1],(d.first.rows-1)*this.itemSize[0]):d.first.cols-s.cols>t[1]&&f((d.first.cols-1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.first-s>t){var g=(d.first-1)*this.itemSize;l?f(g,0):f(0,g)}}else if(m){if(i)d.last.rows-s.rows<=t[0]+1?f(d.first.cols*this.itemSize[1],(d.first.rows+1)*this.itemSize[0]):d.last.cols-s.cols<=t[1]+1&&f((d.first.cols+1)*this.itemSize[1],d.first.rows*this.itemSize[0]);else if(d.last-s<=t+1){var h=(d.first+1)*this.itemSize;l?f(h,0):f(0,h)}}}}else this.scrollToIndex(t,a)},getRenderedRange:function(){var t=function(f,p){return Math.floor(f/(p||f))},n=this.first,r=0;if(this.element){var a=this.isBoth(),i=this.isHorizontal(),l=this.element,c=l.scrollTop,u=l.scrollLeft;if(a)n={rows:t(c,this.itemSize[0]),cols:t(u,this.itemSize[1])},r={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{var s=i?u:c;n=t(s,this.itemSize),r=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:r}}},calculateNumItems:function(){var t=this.isBoth(),n=this.isHorizontal(),r=this.itemSize,a=this.getContentPosition(),i=this.element?this.element.offsetWidth-a.left:0,l=this.element?this.element.offsetHeight-a.top:0,c=function(p,m){return Math.ceil(p/(m||p))},u=function(p){return Math.ceil(p/2)},s=t?{rows:c(l,r[0]),cols:c(i,r[1])}:c(n?i:l,r),d=this.d_numToleratedItems||(t?[u(s.rows),u(s.cols)]:u(s));return{numItemsInViewport:s,numToleratedItems:d}},calculateOptions:function(){var t=this,n=this.isBoth(),r=this.first,a=this.calculateNumItems(),i=a.numItemsInViewport,l=a.numToleratedItems,c=function(d,f,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.getLast(d+f+(d<p?2:3)*p,m)},u=n?{rows:c(r.rows,i.rows,l[0]),cols:c(r.cols,i.cols,l[1],!0)}:c(r,i,l);this.last=u,this.numItemsInViewport=i,this.d_numToleratedItems=l,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=n?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){var s;t.lazyLoadState={first:t.step?n?{rows:0,cols:r.cols}:0:r,last:Math.min(t.step?t.step:u,((s=t.items)===null||s===void 0?void 0:s.length)||0)},t.$emit("lazy-load",t.lazyLoadState)})},calculateAutoSize:function(){var t=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(t.content){var n=t.isBoth(),r=t.isHorizontal(),a=t.isVertical();t.content.style.minHeight=t.content.style.minWidth="auto",t.content.style.position="relative",t.element.style.contain="none";var i=[Ft(t.element),Rt(t.element)],l=i[0],c=i[1];(n||r)&&(t.element.style.width=l<t.defaultWidth?l+"px":t.scrollWidth||t.defaultWidth+"px"),(n||a)&&(t.element.style.height=c<t.defaultHeight?c+"px":t.scrollHeight||t.defaultHeight+"px"),t.content.style.minHeight=t.content.style.minWidth="",t.content.style.position="",t.element.style.contain=""}})},getLast:function(){var t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(a?((t=this.columns||this.items[0])===null||t===void 0?void 0:t.length)||0:((n=this.items)===null||n===void 0?void 0:n.length)||0,r):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),n=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),r=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),a=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:n,right:r,top:a,bottom:i,x:n+r,y:a+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var n=this.isBoth(),r=this.isHorizontal(),a=this.element.parentElement,i=this.scrollWidth||"".concat(this.element.offsetWidth||a.offsetWidth,"px"),l=this.scrollHeight||"".concat(this.element.offsetHeight||a.offsetHeight,"px"),c=function(s,d){return t.element.style[s]=d};n||r?(c("height",l),c("width",i)):c("height",l)}},setSpacerSize:function(){var t=this,n=this.items;if(n){var r=this.isBoth(),a=this.isHorizontal(),i=this.getContentPosition(),l=function(u,s,d){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return t.spacerStyle=Nn(Nn({},t.spacerStyle),Ql({},"".concat(u),(s||[]).length*d+f+"px"))};r?(l("height",n,this.itemSize[0],i.y),l("width",this.columns||n[1],this.itemSize[1],i.x)):a?l("width",this.columns||n,this.itemSize,i.x):l("height",n,this.itemSize,i.y)}},setContentPosition:function(t){var n=this;if(this.content&&!this.appendOnly){var r=this.isBoth(),a=this.isHorizontal(),i=t?t.first:this.first,l=function(d,f){return d*f},c=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.contentStyle=Nn(Nn({},n.contentStyle),{transform:"translate3d(".concat(d,"px, ").concat(f,"px, 0)")})};if(r)c(l(i.cols,this.itemSize[1]),l(i.rows,this.itemSize[0]));else{var u=l(i,this.itemSize);a?c(u,0):c(0,u)}}},onScrollPositionChange:function(t){var n=this,r=t.target,a=this.isBoth(),i=this.isHorizontal(),l=this.getContentPosition(),c=function(L,F){return L?L>F?L-F:L:0},u=function(L,F){return Math.floor(L/(F||L))},s=function(L,F,V,x,B,$){return L<=B?B:$?V-x-B:F+B-1},d=function(L,F,V,x,B,$,P){return L<=$?0:Math.max(0,P?L<F?V:L-$:L>F?V:L-2*$)},f=function(L,F,V,x,B,$){var P=F+x+2*B;return L>=B&&(P+=B+1),n.getLast(P,$)},p=c(r.scrollTop,l.top),m=c(r.scrollLeft,l.left),g=a?{rows:0,cols:0}:0,h=this.last,b=!1,y=this.lastScrollPos;if(a){var w=this.lastScrollPos.top<=p,k=this.lastScrollPos.left<=m;if(!this.appendOnly||this.appendOnly&&(w||k)){var v={rows:u(p,this.itemSize[0]),cols:u(m,this.itemSize[1])},C={rows:s(v.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:s(v.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)};g={rows:d(v.rows,C.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:d(v.cols,C.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],k)},h={rows:f(v.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:f(v.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=g.rows!==this.first.rows||h.rows!==this.last.rows||g.cols!==this.first.cols||h.cols!==this.last.cols||this.isRangeChanged,y={top:p,left:m}}}else{var R=i?m:p,E=this.lastScrollPos<=R;if(!this.appendOnly||this.appendOnly&&E){var S=u(R,this.itemSize),_=s(S,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,E);g=d(S,_,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,E),h=f(S,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),b=g!==this.first||h!==this.last||this.isRangeChanged,y=R}}return{first:g,last:h,isRangeChanged:b,scrollPos:y}},onScrollChange:function(t){var n=this.onScrollPositionChange(t),r=n.first,a=n.last,i=n.isRangeChanged,l=n.scrollPos;if(i){var c={first:r,last:a};if(this.setContentPosition(c),this.first=r,this.last=a,this.lastScrollPos=l,this.$emit("scroll-index-change",c),this.lazy&&this.isPageChanged(r)){var u,s,d={first:this.step?Math.min(this.getPageByFirst(r)*this.step,(((u=this.items)===null||u===void 0?void 0:u.length)||0)-this.step):r,last:Math.min(this.step?(this.getPageByFirst(r)+1)*this.step:a,((s=this.items)===null||s===void 0?void 0:s.length)||0)},f=this.lazyLoadState.first!==d.first||this.lazyLoadState.last!==d.last;f&&this.$emit("lazy-load",d),this.lazyLoadState=d}}},onScroll:function(t){var n=this;if(this.$emit("scroll",t),this.delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading&&this.showLoader){var r=this.onScrollPositionChange(t),a=r.isRangeChanged,i=a||(this.step?this.isPageChanged():!1);i&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){n.onScrollChange(t),n.d_loading&&n.showLoader&&(!n.lazy||n.loading===void 0)&&(n.d_loading=!1,n.page=n.getPageByFirst())},this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(mo(t.element)){var n=t.isBoth(),r=t.isVertical(),a=t.isHorizontal(),i=[Ft(t.element),Rt(t.element)],l=i[0],c=i[1],u=l!==t.defaultWidth,s=c!==t.defaultHeight,d=n?u||s:a?u:r?s:!1;d&&(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=l,t.defaultHeight=c,t.defaultContentWidth=Ft(t.content),t.defaultContentHeight=Rt(t.content),t.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var n=(this.items||[]).length,r=this.isBoth()?this.first.rows+t:this.first+t;return{index:r,count:n,first:r===0,last:r===n-1,even:r%2===0,odd:r%2!==0}},getLoaderOptions:function(t,n){var r=this.loaderArr.length;return Nn({index:t,count:r,first:t===0,last:t===r-1,even:t%2===0,odd:t%2!==0},n)},getPageByFirst:function(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(t){return this.step&&!this.lazy?this.page!==this.getPageByFirst(t??this.first):!0},setContentEl:function(t){this.content=t||this.content||po(this.element,'[data-pc-section="content"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(n){return t.columns?n:n.slice(t.appendOnly?0:t.first.cols,t.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),n=this.isHorizontal();if(t||n)return this.d_loading&&this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:bo}},ey=["tabindex"];function ty(e,t,n,r,a,i){var l=o.resolveComponent("SpinnerIcon");return e.disabled?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.renderSlot(e.$slots,"default"),o.renderSlot(e.$slots,"content",{items:e.items,rows:e.items,columns:i.loadedColumns})],64)):(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.elementRef,class:i.containerClass,tabindex:e.tabindex,style:e.style,onScroll:t[0]||(t[0]=function(){return i.onScroll&&i.onScroll.apply(i,arguments)})},e.ptmi("root")),[o.renderSlot(e.$slots,"content",{styleClass:i.contentClass,items:i.loadedItems,getItemOptions:i.getOptions,loading:a.d_loading,getLoaderOptions:i.getLoaderOptions,itemSize:e.itemSize,rows:i.loadedRows,columns:i.loadedColumns,contentRef:i.contentRef,spacerStyle:a.spacerStyle,contentStyle:a.contentStyle,vertical:i.isVertical(),horizontal:i.isHorizontal(),both:i.isBoth()},function(){return[o.createElementVNode("div",o.mergeProps({ref:i.contentRef,class:i.contentClass,style:a.contentStyle},e.ptm("content")),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.loadedItems,function(c,u){return o.renderSlot(e.$slots,"item",{key:u,item:c,options:i.getOptions(u)})}),128))],16)]}),e.showSpacer?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,class:"p-virtualscroller-spacer",style:a.spacerStyle},e.ptm("spacer")),null,16)):o.createCommentVNode("",!0),!e.loaderDisabled&&e.showLoader&&a.d_loading?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:1,class:i.loaderClass},e.ptm("loader")),[e.$slots&&e.$slots.loader?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(a.loaderArr,function(c,u){return o.renderSlot(e.$slots,"loader",{key:u,options:i.getLoaderOptions(u,i.isBoth()&&{numCols:e.d_numItemsInViewport.cols})})}),128)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"loadingicon",{},function(){return[o.createVNode(l,o.mergeProps({spin:"",class:"p-virtualscroller-loading-icon"},e.ptm("loadingIcon")),null,16)]})],16)):o.createCommentVNode("",!0)],16,ey))}Jl.render=ty;var ny=function(t){var n=t.dt;return`
|
|
1105
1105
|
.p-select {
|
|
1106
1106
|
display: inline-flex;
|
|
1107
1107
|
cursor: pointer;
|
|
@@ -1325,8 +1325,8 @@ input.p-select-label {
|
|
|
1325
1325
|
width: `).concat(n("select.lg.font.size"),`;
|
|
1326
1326
|
height: `).concat(n("select.lg.font.size"),`;
|
|
1327
1327
|
}
|
|
1328
|
-
`)},
|
|
1329
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ly(e,t){if(e){if(typeof e=="string")return xr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(e,t):void 0}}function sy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cy(e){if(Array.isArray(e))return xr(e)}function xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xl(Object(n),!0).forEach(function(r){es(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function es(e,t,n){return(t=dy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dy(e){var t=uy(e,"string");return Vn(t)=="symbol"?t:t+""}function uy(e,t){if(Vn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ts={name:"Select",extends:ry,inheritAttrs:!1,emits:["change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(t){this.id=t||Co()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Co(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(Qt.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,n){return this.virtualScrollerDisabled?t:n&&n(t).index},getOptionLabel:function(t){return this.optionLabel?ft(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?ft(t,this.optionValue):t},getOptionRenderKey:function(t,n){return(this.dataKey?ft(t,this.dataKey):this.getOptionLabel(t))+"_"+n},getPTItemOptions:function(t,n,r,a){return this.ptm(a,{context:{option:t,index:r,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(r,n),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return this.optionDisabled?ft(t,this.optionDisabled):!1},isOptionGroup:function(t){return this.optionGroupLabel&&t.optionGroup&&t.group},getOptionGroupLabel:function(t){return ft(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return ft(t,this.optionGroupChildren)},getAriaPosInset:function(t){var n=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter(function(r){return n.isOptionGroup(r)}).length:t)+1},show:function(t){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t&&Ct(this.$refs.focusInput)},hide:function(t){var n=this,r=function(){n.$emit("before-hide"),n.overlayVisible=!1,n.clicked=!1,n.focusedOptionIndex=-1,n.searchValue="",n.resetFilterOnHide&&(n.filterValue=null),t&&Ct(n.$refs.focusInput)};setTimeout(function(){r()},0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",t))},onBlur:function(t){var n,r;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",t),(n=(r=this.formField).onBlur)===null||n===void 0||n.call(r,t)},onKeyDown:function(t){if(this.disabled||kg()){t.preventDefault();return}var n=t.metaKey||t.ctrlKey;switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,this.editable);break;case"Home":this.onHomeKey(t,this.editable);break;case"End":this.onEndKey(t,this.editable);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Space":this.onSpaceKey(t,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t);break;case"Backspace":this.onBackspaceKey(t,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!n&&Ju(t.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(t,t.key));break}this.clicked=!1},onEditableInput:function(t){var n=t.target.value;this.searchValue="";var r=this.searchOptions(t,n);!r&&(this.focusedOptionIndex=-1),this.updateModel(t,n),!this.overlayVisible&&ie(n)&&this.show()},onContainerClick:function(t){this.disabled||this.loading||t.target.tagName==="INPUT"||t.target.getAttribute("data-pc-section")==="clearicon"||t.target.closest('[data-pc-section="clearicon"]')||((!this.overlay||!this.overlay.contains(t.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(t){var n=t.relatedTarget===this.$refs.focusInput?pg(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;Ct(n)},onLastHiddenFocus:function(t){var n=t.relatedTarget===this.$refs.focusInput?mg(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;Ct(n)},onOptionSelect:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.getOptionValue(n);this.updateModel(t,a),r&&this.hide(!0)},onOptionMouseMove:function(t,n){this.focusOnHover&&this.changeFocusedOptionIndex(t,n)},onFilterChange:function(t){var n=t.target.value;this.filterValue=n,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:t,value:n}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,!0);break;case"Home":this.onHomeKey(t,!0);break;case"End":this.onEndKey(t,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(t){Kl.emit("overlay-click",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){switch(t.code){case"Escape":this.onEscapeKey(t);break}},onArrowDownKey:function(t){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());else{var n=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,n)}t.preventDefault()},onArrowUpKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.altKey&&!n)this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),t.preventDefault();else{var r=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,r),!this.overlayVisible&&this.show(),t.preventDefault()}},onArrowLeftKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&(this.focusedOptionIndex=-1)},onHomeKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=t.currentTarget;t.shiftKey?r.setSelectionRange(0,t.target.selectionStart):(r.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()},onEndKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=t.currentTarget;if(t.shiftKey)r.setSelectionRange(t.target.selectionStart,r.value.length);else{var a=r.value.length;r.setSelectionRange(a,a),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!n&&this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible&&this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||(this.overlayVisible&&this.hasFocusableElements()?(Ct(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&!this.overlayVisible&&this.show()},onOverlayEnter:function(t){var n=this;Qt.set("overlay",t,this.$primevue.config.zIndex.overlay),Li(t,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){n.autoFilterFocus&&n.filter&&Ct(n.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Ct(t.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(t){Qt.clear(t)},alignOverlay:function(){this.appendTo==="self"?_i(this.overlay,this.$el):(this.overlay.style.minWidth=cr(this.$el)+"px",Ai(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(n){t.overlayVisible&&t.overlay&&!t.$el.contains(n.target)&&!t.overlay.contains(n.target)&&t.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Ml(this.$refs.container,function(){t.overlayVisible&&t.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible&&!ji()&&t.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable&&!this.labelClickListener){var n=document.querySelector('label[for="'.concat(this.labelId,'"]'));n&&mo(n)&&(this.labelClickListener=function(){Ct(t.$refs.focusInput)},n.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for="'.concat(this.labelId,'"]'));t&&mo(t)&&t.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return dr(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(t){var n;return this.isValidOption(t)&&typeof this.getOptionLabel(t)=="string"&&((n=this.getOptionLabel(t))===null||n===void 0?void 0:n.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return ie(t)&&!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)&&this.isSelected(t)},isSelected:function(t){return lo(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex(function(n){return t.isValidOption(n)})},findLastOptionIndex:function(){var t=this;return Ei(this.visibleOptions,function(n){return t.isValidOption(n)})},findNextOptionIndex:function(t){var n=this,r=t<this.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex(function(a){return n.isValidOption(a)}):-1;return r>-1?r+t+1:t},findPrevOptionIndex:function(t){var n=this,r=t>0?Ei(this.visibleOptions.slice(0,t),function(a){return n.isValidOption(a)}):-1;return r>-1?r:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex(function(n){return t.isValidSelectedOption(n)}):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t<0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t<0?this.findLastOptionIndex():t},searchOptions:function(t,n){var r=this;this.searchValue=(this.searchValue||"")+n;var a=-1,i=!1;return ie(this.searchValue)&&(this.focusedOptionIndex!==-1?(a=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(l){return r.isOptionMatched(l)}),a=a===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(l){return r.isOptionMatched(l)}):a+this.focusedOptionIndex):a=this.visibleOptions.findIndex(function(l){return r.isOptionMatched(l)}),a!==-1&&(i=!0),a===-1&&this.focusedOptionIndex===-1&&(a=this.findFirstFocusedOptionIndex()),a!==-1&&this.changeFocusedOptionIndex(t,a)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedOptionIndex:function(t,n){this.focusedOptionIndex!==n&&(this.focusedOptionIndex=n,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(t,this.visibleOptions[n],!1))},scrollInView:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var r=n!==-1?"".concat(t.id,"_").concat(n):t.focusedOptionId,a=po(t.list,'li[id="'.concat(r,'"]'));a?a.scrollIntoView&&a.scrollIntoView({block:"nearest",inline:"start"}):t.virtualScrollerDisabled||t.virtualScroller&&t.virtualScroller.scrollToIndex(n!==-1?n:t.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,n){this.writeValue(n,t),this.$emit("change",{originalEvent:t,value:n})},flatOptions:function(t){var n=this;return(t||[]).reduce(function(r,a,i){r.push({optionGroup:a,group:!0,index:i});var l=n.getOptionGroupChildren(a);return l&&l.forEach(function(c){return r.push(c)}),r},[])},overlayRef:function(t){this.overlay=t},listRef:function(t,n){this.list=t,n&&n(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var r=tf.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var a=this.options||[],i=[];return a.forEach(function(l){var c=t.getOptionGroupChildren(l),u=c.filter(function(s){return r.includes(s)});u.length>0&&i.push(Zl(Zl({},l),{},es({},typeof t.optionGroupChildren=="string"?t.optionGroupChildren:"items",ay(u))))}),this.flatOptions(i)}return r}return n},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return t!==-1?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return t!==-1?this.getOptionLabel(this.visibleOptions[t]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ie(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter(function(n){return!t.isOptionGroup(n)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&ie(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:hl},components:{InputText:Jt,VirtualScroller:Jl,Portal:vr,InputIcon:ql,IconField:Wl,TimesIcon:Hl,ChevronDownIcon:cl,SpinnerIcon:bo,SearchIcon:Ul,CheckIcon:wr,BlankIcon:jl}},fy=["id"],py=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],my=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],gy=["id"],hy=["id"],by=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function yy(e,t,n,r,a,i){var l=o.resolveComponent("SpinnerIcon"),c=o.resolveComponent("InputText"),u=o.resolveComponent("SearchIcon"),s=o.resolveComponent("InputIcon"),d=o.resolveComponent("IconField"),f=o.resolveComponent("CheckIcon"),p=o.resolveComponent("BlankIcon"),m=o.resolveComponent("VirtualScroller"),g=o.resolveComponent("Portal"),h=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",o.mergeProps({ref:"container",id:a.id,class:e.cx("root"),onClick:t[11]||(t[11]=function(){return i.onContainerClick&&i.onContainerClick.apply(i,arguments)})},e.ptmi("root")),[e.editable?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,ref:"focusInput",id:e.labelId||e.inputId,type:"text",class:[e.cx("label"),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],value:i.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":a.overlayVisible,"aria-controls":a.id+"_list","aria-activedescendant":a.focused?i.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:t[2]||(t[2]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onInput:t[3]||(t[3]=function(){return i.onEditableInput&&i.onEditableInput.apply(i,arguments)})},e.ptm("label")),null,16,py)):(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,ref:"focusInput",id:e.labelId||e.inputId,class:[e.cx("label"),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":a.overlayVisible,"aria-controls":a.id+"_list","aria-activedescendant":a.focused?i.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[5]||(t[5]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:t[6]||(t[6]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},e.ptm("label")),[o.renderSlot(e.$slots,"value",{value:e.d_value,placeholder:e.placeholder},function(){var b;return[o.createTextVNode(o.toDisplayString(i.label==="p-emptylabel"?" ":(b=i.label)!==null&&b!==void 0?b:"empty"),1)]})],16,my)),i.isClearIconVisible?o.renderSlot(e.$slots,"clearicon",{key:2,class:o.normalizeClass(e.cx("clearIcon")),clearCallback:i.onClearClick},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),o.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:i.onClearClick},e.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("div",o.mergeProps({class:e.cx("dropdown")},e.ptm("dropdown")),[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass(e.cx("loadingIcon"))},function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(l,o.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]}):o.renderSlot(e.$slots,"dropdownicon",{key:1,class:o.normalizeClass(e.cx("dropdownIcon"))},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),o.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]})],16),o.createVNode(g,{appendTo:e.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},e.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,class:[e.cx("overlay"),e.panelClass,e.overlayClass],style:[e.panelStyle,e.overlayStyle],onClick:t[9]||(t[9]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)}),onKeydown:t[10]||(t[10]=function(){return i.onOverlayKeyDown&&i.onOverlayKeyDown.apply(i,arguments)})},e.ptm("overlay")),[o.createElementVNode("span",o.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return i.onFirstHiddenFocus&&i.onFirstHiddenFocus.apply(i,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),o.renderSlot(e.$slots,"header",{value:e.d_value,options:i.visibleOptions}),e.filter?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[o.createVNode(d,{unstyled:e.unstyled,pt:e.ptm("pcFilterContainer")},{default:o.withCtx(function(){return[o.createVNode(c,{ref:"filterInput",type:"text",value:a.filterValue,onVnodeMounted:i.onFilterUpdated,onVnodeUpdated:i.onFilterUpdated,class:o.normalizeClass(e.cx("pcFilter")),placeholder:e.filterPlaceholder,variant:e.variant,unstyled:e.unstyled,role:"searchbox",autocomplete:"off","aria-owns":a.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:i.onFilterKeyDown,onBlur:i.onFilterBlur,onInput:i.onFilterChange,pt:e.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),o.createVNode(s,{unstyled:e.unstyled,pt:e.ptm("pcFilterIconContainer")},{default:o.withCtx(function(){return[o.renderSlot(e.$slots,"filtericon",{},function(){return[e.filterIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:e.filterIcon},e.ptm("filterIcon")),null,16)):(o.openBlock(),o.createBlock(u,o.normalizeProps(o.mergeProps({key:1},e.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),o.createElementVNode("span",o.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.filterResultMessageText),17)],16)):o.createCommentVNode("",!0),o.createElementVNode("div",o.mergeProps({class:e.cx("listContainer"),style:{"max-height":i.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("listContainer")),[o.createVNode(m,o.mergeProps({ref:i.virtualScrollerRef},e.virtualScrollerOptions,{items:i.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),o.createSlots({content:o.withCtx(function(b){var y=b.styleClass,w=b.contentRef,k=b.items,v=b.getItemOptions,C=b.contentStyle,R=b.itemSize;return[o.createElementVNode("ul",o.mergeProps({ref:function(S){return i.listRef(S,w)},id:a.id+"_list",class:[e.cx("list"),y],style:C,role:"listbox"},e.ptm("list")),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k,function(E,S){return o.openBlock(),o.createElementBlock(o.Fragment,{key:i.getOptionRenderKey(E,i.getOptionIndex(S,v))},[i.isOptionGroup(E)?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,id:a.id+"_"+i.getOptionIndex(S,v),style:{height:R?R+"px":void 0},class:e.cx("optionGroup"),role:"option",ref_for:!0},e.ptm("optionGroup")),[o.renderSlot(e.$slots,"optiongroup",{option:E.optionGroup,index:i.getOptionIndex(S,v)},function(){return[o.createElementVNode("span",o.mergeProps({class:e.cx("optionGroupLabel"),ref_for:!0},e.ptm("optionGroupLabel")),o.toDisplayString(i.getOptionGroupLabel(E.optionGroup)),17)]})],16,hy)):o.withDirectives((o.openBlock(),o.createElementBlock("li",o.mergeProps({key:1,id:a.id+"_"+i.getOptionIndex(S,v),class:e.cx("option",{option:E,focusedOption:i.getOptionIndex(S,v)}),style:{height:R?R+"px":void 0},role:"option","aria-label":i.getOptionLabel(E),"aria-selected":i.isSelected(E),"aria-disabled":i.isOptionDisabled(E),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(S,v)),onClick:function(z){return i.onOptionSelect(z,E)},onMousemove:function(z){return i.onOptionMouseMove(z,i.getOptionIndex(S,v))},"data-p-selected":i.isSelected(E),"data-p-focused":a.focusedOptionIndex===i.getOptionIndex(S,v),"data-p-disabled":i.isOptionDisabled(E),ref_for:!0},i.getPTItemOptions(E,v,S,"option")),[e.checkmark?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.isSelected(E)?(o.openBlock(),o.createBlock(f,o.mergeProps({key:0,class:e.cx("optionCheckIcon"),ref_for:!0},e.ptm("optionCheckIcon")),null,16,["class"])):(o.openBlock(),o.createBlock(p,o.mergeProps({key:1,class:e.cx("optionBlankIcon"),ref_for:!0},e.ptm("optionBlankIcon")),null,16,["class"]))],64)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"option",{option:E,selected:i.isSelected(E),index:i.getOptionIndex(S,v)},function(){return[o.createElementVNode("span",o.mergeProps({class:e.cx("optionLabel"),ref_for:!0},e.ptm("optionLabel")),o.toDisplayString(i.getOptionLabel(E)),17)]})],16,by)),[[h]])],64)}),128)),a.filterValue&&(!k||k&&k.length===0)?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[o.renderSlot(e.$slots,"emptyfilter",{},function(){return[o.createTextVNode(o.toDisplayString(i.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[o.renderSlot(e.$slots,"empty",{},function(){return[o.createTextVNode(o.toDisplayString(i.emptyMessageText),1)]})],16)):o.createCommentVNode("",!0)],16,gy)]}),_:2},[e.$slots.loader?{name:"loader",fn:o.withCtx(function(b){var y=b.options;return[o.renderSlot(e.$slots,"loader",{options:y})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),o.renderSlot(e.$slots,"footer",{value:e.d_value,options:i.visibleOptions}),!e.options||e.options&&e.options.length===0?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.emptyMessageText),17)):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.selectedMessageText),17),o.createElementVNode("span",o.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[8]||(t[8]=function(){return i.onLastHiddenFocus&&i.onLastHiddenFocus.apply(i,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,fy)}ts.render=yy;const ky={class:"editable-label-editing flex items-center gap-2 w-full"},ns={__name:"Selector",props:{label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"}},setup(e){const t=e;return o.ref(!1),o.ref(t.label),(n,r)=>(o.openBlock(),o.createElementBlock("div",ky,[o.createVNode(o.unref(ts),{modelValue:n.selectedCity,"onUpdate:modelValue":r[0]||(r[0]=a=>n.selectedCity=a),options:n.cities,optionLabel:"name",placeholder:e.placeholder,class:"w-full md:w-56"},null,8,["modelValue","options","placeholder"])]))}},wy={key:0,class:"flex items-center"},vy={key:1},xy={class:"flex items-center justify-between w-full"},On=xe({__name:"DynamicSelection",props:o.mergeModels({modelValue:{type:[String,Number],default:null},url:String,jsonPath:String,displayField:{type:String,default:"label"},valueField:{type:String,default:"id"},method:{type:String,default:"GET"},options:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=me(),r=()=>n.getAppId(),a=e;console.log("DynamicSelection props:",a);const i=t,l=o.useModel(e,"modelValue"),c=o.ref(null),u=o.ref([]),s=o.computed(()=>a.options.length?"label":a.displayField),d=o.computed(()=>a.options.length?"value":a.valueField);function f(b,y){const w=y.split(".").reduce((k,v)=>{var R;const C=v.match(/^(\w+)\[(\d+)\]$/);if(C){const[,E,S]=C;return((R=k==null?void 0:k[E])==null?void 0:R[parseInt(S)])??null}else return k==null?void 0:k[v]},b);return Array.isArray(w)?w:w?[w]:[]}async function p(){if(!a.url||a.options.length)return;const b=a.url.includes("appid")?a.url.replace("${appid}",r()):a.url;try{const w=await(await fetch(b,{method:a.method.toUpperCase(),headers:{"Content-Type":"application/json"},...a.method.toUpperCase()==="POST"?{body:"{}"}:{}})).json();a.jsonPath?u.value=m(f(w,a.jsonPath)):u.value=[],g(a.modelValue)}catch(y){console.error("Error fetching options:",y)}}o.onMounted(()=>{a.options.length?u.value=m(a.options):p(),g(a.modelValue)}),o.watch(()=>a.modelValue,b=>{l.value=b,g(b)}),o.watch(l,b=>{h(b),i("update:modelValue",b),i("onChange",b)}),o.watch(()=>a.options,b=>{b.length&&(u.value=m(b),g(a.modelValue))},{immediate:!0});function m(b){if(!b)return[];const y=s.value;return[...b].sort((w,k)=>{const v=String(w[y]||w.label||"").toLowerCase(),C=String(k[y]||k.label||"").toLowerCase();return v.localeCompare(C)})}function g(b){const y=u.value.find(w=>String(w[d.value])===String(b));y?(c.value=y,l.value=y[d.value]):c.value=null}function h(b){const y=u.value.find(w=>String(w[d.value])===String(b));y?c.value=y:c.value=null}return(b,y)=>{const w=o.resolveComponent("Badge"),k=o.resolveComponent("Select");return o.openBlock(),o.createBlock(k,{modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=v=>l.value=v),options:u.value,filter:a.options.length==0,optionLabel:s.value,optionValue:d.value,placeholder:"Select an option",class:"w-full"},{value:o.withCtx(v=>[c.value?(o.openBlock(),o.createElementBlock("div",wy,[o.createElementVNode("div",null,o.toDisplayString(c.value[s.value]||c.value.label),1)])):(o.openBlock(),o.createElementBlock("span",vy,o.toDisplayString(v.placeholder),1))]),option:o.withCtx(v=>[o.createElementVNode("div",xy,[o.createElementVNode("div",null,o.toDisplayString(v.option[s.value]||v.option.label),1),v.option.externalConnectionId?(o.openBlock(),o.createBlock(w,{key:0,value:"secondary",severity:"info"})):o.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","filter","optionLabel","optionValue"])}}},[["__scopeId","data-v-de2f3337"]]),Cy={key:1},Sy="/api/app/v1/${appid}/entity",os={__name:"EntityRecordSelection",props:o.mergeModels({valueField:{type:String,default:"id"},entity:{type:String,default:"customer"},displayField:{type:String,default:"first_name"},searchKey:{type:String,default:"first_name"},searchValue:{type:String,default:"Eve"},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=o.ref(null),r=e,a=t;o.useModel(e,"modelValue");const i=o.computed(()=>`${Sy}/${r.entity}/record`),l=o.ref(!0),{hasMatchingRoleAndPermissions:c}=kt();o.onMounted(async()=>{l.value=await c(r.roles,r.permissions)});function u(s){a("update:modelValue",JSON.stringify(s)),a("onChange",JSON.stringify(s))}return(s,d)=>l.value?(o.openBlock(),o.createBlock(On,{key:0,modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=f=>n.value=f),url:i.value,jsonPath:"response.result",displayField:e.displayField,method:"GET",options:e.options,onOnChange:u,valueField:e.valueField},null,8,["modelValue","url","displayField","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Cy,"You do not have the required permissions to access this feature."))}},Ey={key:1},By="/api/app/v1/${appid}/entity",rs={__name:"EntitySelection",props:o.mergeModels({entityName:{type:String,default:""},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:entity-name","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:entity-name",c),r("onChange",c)}return(c,u)=>a.value?(o.openBlock(),o.createBlock(On,{key:0,modelValue:e.entityName,url:By,jsonPath:"response",displayField:"name",method:"GET",onOnChange:l,valueField:"name"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock("p",Ey,"You do not have the required permissions to access this feature."))}},$y={key:0,class:"flex items-center"},Ny={key:1},Vy={class:"flex items-center justify-between w-full"},as={__name:"EntitySelectionWithRest",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=kr(),n=xo(),r=o.ref([]),a=o.useModel(e,"modelValue");o.onMounted(async()=>{const c=await i(),u=await l();r.value=[...c,...u].sort((s,d)=>s.name.localeCompare(d.name))});const i=async()=>(await t.getEntities()).response,l=async()=>(await n.getRestEntities()).response;return(c,u)=>{const s=o.resolveComponent("Badge"),d=o.resolveComponent("Select");return o.openBlock(),o.createBlock(d,{class:"text-sm w-full",modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=f=>a.value=f),options:r.value,filter:"",optionLabel:"name",optionValue:"name",placeholder:"Select entity"},{value:o.withCtx(f=>[f.value?(o.openBlock(),o.createElementBlock("div",$y,[o.createElementVNode("div",null,o.toDisplayString(f.value),1)])):(o.openBlock(),o.createElementBlock("span",Ny,o.toDisplayString(f.placeholder),1))]),option:o.withCtx(f=>[o.createElementVNode("div",Vy,[o.createElementVNode("div",null,o.toDisplayString(f.option.name),1),f.option.externalConnectionId?(o.openBlock(),o.createBlock(s,{key:0,value:"secondary",severity:"info"})):o.createCommentVNode("",!0)])]),_:1},8,["modelValue","options"])}}},Oy="/api/app/v1/${appid}/menu",is={__name:"MenuSelection",props:o.mergeModels({menuName:{type:String,default:""},valueField:{type:String,default:"displayLabel"},displayField:{type:String,default:"displayLabel"},searchKey:{type:String,default:"displayLabel"},searchValue:{type:String,default:""},options:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=t;o.useModel(e,"modelValue");function r(a){n("update:modelValue",a),n("onChange",a)}return(a,i)=>(o.openBlock(),o.createBlock(On,{modelValue:e.menuName,url:Oy,jsonPath:"response",displayField:e.displayField,method:"GET",options:e.options,onOnChange:r,valueField:e.valueField},null,8,["modelValue","displayField","options","valueField"]))}},Ty={class:"flex items-center"},ls=xe({__name:"DynamicMultiSelection",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Select options..."},url:String,jsonPath:String,displayField:{type:String,default:"label"},valueField:{type:String,default:""},method:{type:String,default:"GET"},options:{type:Array,default:()=>[]}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=me(),r=()=>n.getAppId(),a=e;console.log("DynamicMultiSelection props:",a);const i=t,l=o.ref(Array.isArray(a.modelValue)?[...a.modelValue]:[]),c=o.ref([]),u=o.computed(()=>a.options.length?"label":a.displayField),s=o.computed(()=>!a.valueField),d=o.computed(()=>s.value?void 0:a.options.length?"value":a.valueField);o.computed(()=>a.options.length?"value":a.valueField);function f(g,h){if(!h)return Array.isArray(g)?g:[];const b=h.split(".").reduce((y,w)=>{var v;const k=w.match(/^(\w+)\[(\d+)\]$/);if(k){const[,C,R]=k;return((v=y==null?void 0:y[C])==null?void 0:v[parseInt(R)])??null}else return y==null?void 0:y[w]},g);return console.log("Extracted value:",b),Array.isArray(b)?b:b?[b]:[]}async function p(){if(!a.url||a.options.length)return;const g=a.url.includes("appid")?a.url.replace("${appid}",r()):a.url;try{const b=await(await fetch(g,{method:a.method.toUpperCase(),headers:{"Content-Type":"application/json"},...a.method.toUpperCase()==="POST"?{body:"{}"}:{}})).json();c.value=f(b,a.jsonPath),m(a.modelValue)}catch(h){console.error("Error fetching options:",h)}}o.onMounted(()=>{a.options.length?c.value=a.options:p(),m(a.modelValue)}),o.watch(()=>a.modelValue,g=>{l.value=Array.isArray(g)?[...g]:[],m(g)}),o.watch(l,g=>{let h=[];s.value?h=g:h=g.map(b=>b),JSON.stringify(h)!==JSON.stringify(a.modelValue)&&(i("update:modelValue",h),i("onChange",h))}),o.watch(()=>a.options,g=>{g.length&&(c.value=g,m(a.modelValue))},{immediate:!0});function m(g){l.value=Array.isArray(g)?[...g]:[]}return(g,h)=>{const b=o.resolveComponent("MultiSelect");return o.openBlock(),o.createBlock(b,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),options:c.value,filter:a.options.length==0,optionLabel:u.value,optionValue:d.value,placeholder:e.placeholder||"Select options...",display:"chip",class:"w-full"},{option:o.withCtx(y=>[o.createElementVNode("div",Ty,[o.createElementVNode("div",null,o.toDisplayString(y.option[u.value]||y.option.label),1)])]),_:1},8,["modelValue","options","filter","optionLabel","optionValue","placeholder"])}}},[["__scopeId","data-v-e5723a1c"]]),Iy={key:1},Py="/api/app/v1/${appid}/security/roles",ss={__name:"RolesSelection",props:o.mergeModels({valueField:{type:String,default:""},searchKey:{type:String,default:"first_name"},searchValue:{type:String,default:"Eve"},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){o.ref(null);const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:modelValue",JSON.stringify(c)),r("onChange",JSON.stringify(c))}return(c,u)=>a.value?(o.openBlock(),o.createBlock(ls,{key:0,modelValue:e.modelValue,url:Py,jsonPath:"",displayField:"roleName",method:"GET",options:e.options,onOnChange:l,valueField:e.valueField,placeholder:"Select Roles..."},null,8,["modelValue","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Iy,"You do not have the required permissions to access this feature."))}},Ry={key:1},Fy="/api/app/v1/${appid}/security/permission",cs={__name:"PermissionSelection",props:o.mergeModels({valueField:{type:String,default:""},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){o.ref(null);const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:modelValue",JSON.stringify(c)),r("onChange",JSON.stringify(c))}return(c,u)=>a.value?(o.openBlock(),o.createBlock(ls,{key:0,modelValue:e.modelValue,url:Fy,jsonPath:"",displayField:"permissionName",method:"GET",options:e.options,onOnChange:l,valueField:e.valueField,placeholder:"Select Permissions..."},null,8,["modelValue","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Ry,"You do not have the required permissions to access this feature."))}},ds={__name:"label",props:{label:{type:String,default:"Default Label Text"},labelFontSize:{type:Number,default:28}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",o.normalizeProps(o.guardReactiveProps(t.$attrs)),[o.createElementVNode("span",{style:o.normalizeStyle({fontSize:e.labelFontSize+"px",textAlign:t.textAlign})},o.toDisplayString(e.label),5)],16))}};var us={name:"EyeIcon",extends:ht};function Dy(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z",fill:"currentColor"},null,-1)]),16)}us.render=Dy;var fs={name:"EyeSlashIcon",extends:ht};function Ay(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z",fill:"currentColor"},null,-1)]),16)}fs.render=Ay;var Ly=function(t){var n=t.dt;return`
|
|
1328
|
+
`)},oy={root:function(t){var n=t.instance,r=t.props,a=t.state;return["p-select p-component p-inputwrapper",{"p-disabled":r.disabled,"p-invalid":n.$invalid,"p-variant-filled":n.$variant==="filled","p-focus":a.focused,"p-inputwrapper-filled":n.$filled,"p-inputwrapper-focus":a.focused||a.overlayVisible,"p-select-open":a.overlayVisible,"p-select-fluid":n.$fluid,"p-select-sm p-inputfield-sm":r.size==="small","p-select-lg p-inputfield-lg":r.size==="large"}]},label:function(t){var n=t.instance,r=t.props;return["p-select-label",{"p-placeholder":!r.editable&&n.label===r.placeholder,"p-select-label-empty":!r.editable&&!n.$slots.value&&(n.label==="p-emptylabel"||n.label.length===0)}]},clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:function(t){var n=t.instance,r=t.props,a=t.state,i=t.option,l=t.focusedOption;return["p-select-option",{"p-select-option-selected":n.isSelected(i)&&r.highlightOnSelect,"p-focus":a.focusedOptionIndex===l,"p-disabled":n.isOptionDisabled(i)}]},optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},ry=be.extend({name:"select",theme:ny,classes:oy}),ay={name:"BaseSelect",extends:So,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"14rem"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:ry,provide:function(){return{$pcSelect:this,$parentInstance:this}}};function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}function iy(e){return dy(e)||cy(e)||sy(e)||ly()}function ly(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sy(e,t){if(e){if(typeof e=="string")return xr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(e,t):void 0}}function cy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dy(e){if(Array.isArray(e))return xr(e)}function xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xl(Object(n),!0).forEach(function(r){es(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function es(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uy(e){var t=fy(e,"string");return Vn(t)=="symbol"?t:t+""}function fy(e,t){if(Vn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ts={name:"Select",extends:ay,inheritAttrs:!1,emits:["change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(t){this.id=t||Co()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Co(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(Qt.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,n){return this.virtualScrollerDisabled?t:n&&n(t).index},getOptionLabel:function(t){return this.optionLabel?ft(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?ft(t,this.optionValue):t},getOptionRenderKey:function(t,n){return(this.dataKey?ft(t,this.dataKey):this.getOptionLabel(t))+"_"+n},getPTItemOptions:function(t,n,r,a){return this.ptm(a,{context:{option:t,index:r,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(r,n),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return this.optionDisabled?ft(t,this.optionDisabled):!1},isOptionGroup:function(t){return this.optionGroupLabel&&t.optionGroup&&t.group},getOptionGroupLabel:function(t){return ft(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return ft(t,this.optionGroupChildren)},getAriaPosInset:function(t){var n=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter(function(r){return n.isOptionGroup(r)}).length:t)+1},show:function(t){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t&&Ct(this.$refs.focusInput)},hide:function(t){var n=this,r=function(){n.$emit("before-hide"),n.overlayVisible=!1,n.clicked=!1,n.focusedOptionIndex=-1,n.searchValue="",n.resetFilterOnHide&&(n.filterValue=null),t&&Ct(n.$refs.focusInput)};setTimeout(function(){r()},0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible&&(this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit("focus",t))},onBlur:function(t){var n,r;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",t),(n=(r=this.formField).onBlur)===null||n===void 0||n.call(r,t)},onKeyDown:function(t){if(this.disabled||kg()){t.preventDefault();return}var n=t.metaKey||t.ctrlKey;switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,this.editable);break;case"Home":this.onHomeKey(t,this.editable);break;case"End":this.onEndKey(t,this.editable);break;case"PageDown":this.onPageDownKey(t);break;case"PageUp":this.onPageUpKey(t);break;case"Space":this.onSpaceKey(t,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t);break;case"Backspace":this.onBackspaceKey(t,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!n&&Ju(t.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(t,t.key));break}this.clicked=!1},onEditableInput:function(t){var n=t.target.value;this.searchValue="";var r=this.searchOptions(t,n);!r&&(this.focusedOptionIndex=-1),this.updateModel(t,n),!this.overlayVisible&&ie(n)&&this.show()},onContainerClick:function(t){this.disabled||this.loading||t.target.tagName==="INPUT"||t.target.getAttribute("data-pc-section")==="clearicon"||t.target.closest('[data-pc-section="clearicon"]')||((!this.overlay||!this.overlay.contains(t.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear&&(this.filterValue=null)},onFirstHiddenFocus:function(t){var n=t.relatedTarget===this.$refs.focusInput?pg(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;Ct(n)},onLastHiddenFocus:function(t){var n=t.relatedTarget===this.$refs.focusInput?mg(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;Ct(n)},onOptionSelect:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=this.getOptionValue(n);this.updateModel(t,a),r&&this.hide(!0)},onOptionMouseMove:function(t,n){this.focusOnHover&&this.changeFocusedOptionIndex(t,n)},onFilterChange:function(t){var n=t.target.value;this.filterValue=n,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:t,value:n}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(t,!0);break;case"Home":this.onHomeKey(t,!0);break;case"End":this.onEndKey(t,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(t);break;case"Escape":this.onEscapeKey(t);break;case"Tab":this.onTabKey(t,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(t){Kl.emit("overlay-click",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){switch(t.code){case"Escape":this.onEscapeKey(t);break}},onArrowDownKey:function(t){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());else{var n=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,n)}t.preventDefault()},onArrowUpKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.altKey&&!n)this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),t.preventDefault();else{var r=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,r),!this.overlayVisible&&this.show(),t.preventDefault()}},onArrowLeftKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&(this.focusedOptionIndex=-1)},onHomeKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=t.currentTarget;t.shiftKey?r.setSelectionRange(0,t.target.selectionStart):(r.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()},onEndKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var r=t.currentTarget;if(t.shiftKey)r.setSelectionRange(t.target.selectionStart,r.value.length);else{var a=r.value.length;r.setSelectionRange(a,a),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible&&this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!n&&this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible&&this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||(this.overlayVisible&&this.hasFocusableElements()?(Ct(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&!this.overlayVisible&&this.show()},onOverlayEnter:function(t){var n=this;Qt.set("overlay",t,this.$primevue.config.zIndex.overlay),Li(t,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),setTimeout(function(){n.autoFilterFocus&&n.filter&&Ct(n.$refs.filterInput.$el)},1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus&&this.filter&&!this.editable&&this.$nextTick(function(){Ct(t.$refs.filterInput.$el)}),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(t){Qt.clear(t)},alignOverlay:function(){this.appendTo==="self"?_i(this.overlay,this.$el):(this.overlay.style.minWidth=cr(this.$el)+"px",Ai(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(n){t.overlayVisible&&t.overlay&&!t.$el.contains(n.target)&&!t.overlay.contains(n.target)&&t.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Ml(this.$refs.container,function(){t.overlayVisible&&t.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible&&!ji()&&t.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable&&!this.labelClickListener){var n=document.querySelector('label[for="'.concat(this.labelId,'"]'));n&&mo(n)&&(this.labelClickListener=function(){Ct(t.$refs.focusInput)},n.addEventListener("click",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for="'.concat(this.labelId,'"]'));t&&mo(t)&&t.removeEventListener("click",this.labelClickListener)}},hasFocusableElements:function(){return dr(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(t){var n;return this.isValidOption(t)&&typeof this.getOptionLabel(t)=="string"&&((n=this.getOptionLabel(t))===null||n===void 0?void 0:n.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return ie(t)&&!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)&&this.isSelected(t)},isSelected:function(t){return lo(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex(function(n){return t.isValidOption(n)})},findLastOptionIndex:function(){var t=this;return Ei(this.visibleOptions,function(n){return t.isValidOption(n)})},findNextOptionIndex:function(t){var n=this,r=t<this.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex(function(a){return n.isValidOption(a)}):-1;return r>-1?r+t+1:t},findPrevOptionIndex:function(t){var n=this,r=t>0?Ei(this.visibleOptions.slice(0,t),function(a){return n.isValidOption(a)}):-1;return r>-1?r:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex(function(n){return t.isValidSelectedOption(n)}):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t<0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t<0?this.findLastOptionIndex():t},searchOptions:function(t,n){var r=this;this.searchValue=(this.searchValue||"")+n;var a=-1,i=!1;return ie(this.searchValue)&&(this.focusedOptionIndex!==-1?(a=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(l){return r.isOptionMatched(l)}),a=a===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(l){return r.isOptionMatched(l)}):a+this.focusedOptionIndex):a=this.visibleOptions.findIndex(function(l){return r.isOptionMatched(l)}),a!==-1&&(i=!0),a===-1&&this.focusedOptionIndex===-1&&(a=this.findFirstFocusedOptionIndex()),a!==-1&&this.changeFocusedOptionIndex(t,a)),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedOptionIndex:function(t,n){this.focusedOptionIndex!==n&&(this.focusedOptionIndex=n,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(t,this.visibleOptions[n],!1))},scrollInView:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;this.$nextTick(function(){var r=n!==-1?"".concat(t.id,"_").concat(n):t.focusedOptionId,a=po(t.list,'li[id="'.concat(r,'"]'));a?a.scrollIntoView&&a.scrollIntoView({block:"nearest",inline:"start"}):t.virtualScrollerDisabled||t.virtualScroller&&t.virtualScroller.scrollToIndex(n!==-1?n:t.focusedOptionIndex)})},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.$filled&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,n){this.writeValue(n,t),this.$emit("change",{originalEvent:t,value:n})},flatOptions:function(t){var n=this;return(t||[]).reduce(function(r,a,i){r.push({optionGroup:a,group:!0,index:i});var l=n.getOptionGroupChildren(a);return l&&l.forEach(function(c){return r.push(c)}),r},[])},overlayRef:function(t){this.overlay=t},listRef:function(t,n){this.list=t,n&&n(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var r=tf.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var a=this.options||[],i=[];return a.forEach(function(l){var c=t.getOptionGroupChildren(l),u=c.filter(function(s){return r.includes(s)});u.length>0&&i.push(Zl(Zl({},l),{},es({},typeof t.optionGroupChildren=="string"?t.optionGroupChildren:"items",iy(u))))}),this.flatOptions(i)}return r}return n},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return t!==-1?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return t!==-1?this.getOptionLabel(this.visibleOptions[t]):this.d_value||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return ie(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter(function(n){return!t.isOptionGroup(n)}).length},isClearIconVisible:function(){return this.showClear&&this.d_value!=null&&ie(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:hl},components:{InputText:Jt,VirtualScroller:Jl,Portal:vr,InputIcon:ql,IconField:Wl,TimesIcon:Hl,ChevronDownIcon:cl,SpinnerIcon:bo,SearchIcon:Ul,CheckIcon:wr,BlankIcon:jl}},py=["id"],my=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],gy=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],hy=["id"],by=["id"],yy=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-selected","data-p-focused","data-p-disabled"];function ky(e,t,n,r,a,i){var l=o.resolveComponent("SpinnerIcon"),c=o.resolveComponent("InputText"),u=o.resolveComponent("SearchIcon"),s=o.resolveComponent("InputIcon"),d=o.resolveComponent("IconField"),f=o.resolveComponent("CheckIcon"),p=o.resolveComponent("BlankIcon"),m=o.resolveComponent("VirtualScroller"),g=o.resolveComponent("Portal"),h=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",o.mergeProps({ref:"container",id:a.id,class:e.cx("root"),onClick:t[11]||(t[11]=function(){return i.onContainerClick&&i.onContainerClick.apply(i,arguments)})},e.ptmi("root")),[e.editable?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,ref:"focusInput",id:e.labelId||e.inputId,type:"text",class:[e.cx("label"),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],value:i.editableInputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":a.overlayVisible,"aria-controls":a.id+"_list","aria-activedescendant":a.focused?i.focusedOptionId:void 0,"aria-invalid":e.invalid||void 0,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:t[2]||(t[2]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onInput:t[3]||(t[3]=function(){return i.onEditableInput&&i.onEditableInput.apply(i,arguments)})},e.ptm("label")),null,16,my)):(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,ref:"focusInput",id:e.labelId||e.inputId,class:[e.cx("label"),e.inputClass,e.labelClass],style:[e.inputStyle,e.labelStyle],tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":a.overlayVisible,"aria-controls":a.id+"_list","aria-activedescendant":a.focused?i.focusedOptionId:void 0,"aria-disabled":e.disabled,onFocus:t[4]||(t[4]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[5]||(t[5]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:t[6]||(t[6]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},e.ptm("label")),[o.renderSlot(e.$slots,"value",{value:e.d_value,placeholder:e.placeholder},function(){var b;return[o.createTextVNode(o.toDisplayString(i.label==="p-emptylabel"?" ":(b=i.label)!==null&&b!==void 0?b:"empty"),1)]})],16,gy)),i.isClearIconVisible?o.renderSlot(e.$slots,"clearicon",{key:2,class:o.normalizeClass(e.cx("clearIcon")),clearCallback:i.onClearClick},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.clearIcon?"i":"TimesIcon"),o.mergeProps({ref:"clearIcon",class:[e.cx("clearIcon"),e.clearIcon],onClick:i.onClearClick},e.ptm("clearIcon"),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("div",o.mergeProps({class:e.cx("dropdown")},e.ptm("dropdown")),[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass(e.cx("loadingIcon"))},function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(l,o.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]}):o.renderSlot(e.$slots,"dropdownicon",{key:1,class:o.normalizeClass(e.cx("dropdownIcon"))},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),o.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]})],16),o.createVNode(g,{appendTo:e.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},e.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,class:[e.cx("overlay"),e.panelClass,e.overlayClass],style:[e.panelStyle,e.overlayStyle],onClick:t[9]||(t[9]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)}),onKeydown:t[10]||(t[10]=function(){return i.onOverlayKeyDown&&i.onOverlayKeyDown.apply(i,arguments)})},e.ptm("overlay")),[o.createElementVNode("span",o.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[7]||(t[7]=function(){return i.onFirstHiddenFocus&&i.onFirstHiddenFocus.apply(i,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),o.renderSlot(e.$slots,"header",{value:e.d_value,options:i.visibleOptions}),e.filter?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[o.createVNode(d,{unstyled:e.unstyled,pt:e.ptm("pcFilterContainer")},{default:o.withCtx(function(){return[o.createVNode(c,{ref:"filterInput",type:"text",value:a.filterValue,onVnodeMounted:i.onFilterUpdated,onVnodeUpdated:i.onFilterUpdated,class:o.normalizeClass(e.cx("pcFilter")),placeholder:e.filterPlaceholder,variant:e.variant,unstyled:e.unstyled,role:"searchbox",autocomplete:"off","aria-owns":a.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:i.onFilterKeyDown,onBlur:i.onFilterBlur,onInput:i.onFilterChange,pt:e.ptm("pcFilter")},null,8,["value","onVnodeMounted","onVnodeUpdated","class","placeholder","variant","unstyled","aria-owns","aria-activedescendant","onKeydown","onBlur","onInput","pt"]),o.createVNode(s,{unstyled:e.unstyled,pt:e.ptm("pcFilterIconContainer")},{default:o.withCtx(function(){return[o.renderSlot(e.$slots,"filtericon",{},function(){return[e.filterIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:e.filterIcon},e.ptm("filterIcon")),null,16)):(o.openBlock(),o.createBlock(u,o.normalizeProps(o.mergeProps({key:1},e.ptm("filterIcon"))),null,16))]})]}),_:3},8,["unstyled","pt"])]}),_:3},8,["unstyled","pt"]),o.createElementVNode("span",o.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.filterResultMessageText),17)],16)):o.createCommentVNode("",!0),o.createElementVNode("div",o.mergeProps({class:e.cx("listContainer"),style:{"max-height":i.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("listContainer")),[o.createVNode(m,o.mergeProps({ref:i.virtualScrollerRef},e.virtualScrollerOptions,{items:i.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),o.createSlots({content:o.withCtx(function(b){var y=b.styleClass,w=b.contentRef,k=b.items,v=b.getItemOptions,C=b.contentStyle,R=b.itemSize;return[o.createElementVNode("ul",o.mergeProps({ref:function(S){return i.listRef(S,w)},id:a.id+"_list",class:[e.cx("list"),y],style:C,role:"listbox"},e.ptm("list")),[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(k,function(E,S){return o.openBlock(),o.createElementBlock(o.Fragment,{key:i.getOptionRenderKey(E,i.getOptionIndex(S,v))},[i.isOptionGroup(E)?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,id:a.id+"_"+i.getOptionIndex(S,v),style:{height:R?R+"px":void 0},class:e.cx("optionGroup"),role:"option",ref_for:!0},e.ptm("optionGroup")),[o.renderSlot(e.$slots,"optiongroup",{option:E.optionGroup,index:i.getOptionIndex(S,v)},function(){return[o.createElementVNode("span",o.mergeProps({class:e.cx("optionGroupLabel"),ref_for:!0},e.ptm("optionGroupLabel")),o.toDisplayString(i.getOptionGroupLabel(E.optionGroup)),17)]})],16,by)):o.withDirectives((o.openBlock(),o.createElementBlock("li",o.mergeProps({key:1,id:a.id+"_"+i.getOptionIndex(S,v),class:e.cx("option",{option:E,focusedOption:i.getOptionIndex(S,v)}),style:{height:R?R+"px":void 0},role:"option","aria-label":i.getOptionLabel(E),"aria-selected":i.isSelected(E),"aria-disabled":i.isOptionDisabled(E),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(S,v)),onClick:function(z){return i.onOptionSelect(z,E)},onMousemove:function(z){return i.onOptionMouseMove(z,i.getOptionIndex(S,v))},"data-p-selected":i.isSelected(E),"data-p-focused":a.focusedOptionIndex===i.getOptionIndex(S,v),"data-p-disabled":i.isOptionDisabled(E),ref_for:!0},i.getPTItemOptions(E,v,S,"option")),[e.checkmark?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.isSelected(E)?(o.openBlock(),o.createBlock(f,o.mergeProps({key:0,class:e.cx("optionCheckIcon"),ref_for:!0},e.ptm("optionCheckIcon")),null,16,["class"])):(o.openBlock(),o.createBlock(p,o.mergeProps({key:1,class:e.cx("optionBlankIcon"),ref_for:!0},e.ptm("optionBlankIcon")),null,16,["class"]))],64)):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"option",{option:E,selected:i.isSelected(E),index:i.getOptionIndex(S,v)},function(){return[o.createElementVNode("span",o.mergeProps({class:e.cx("optionLabel"),ref_for:!0},e.ptm("optionLabel")),o.toDisplayString(i.getOptionLabel(E)),17)]})],16,yy)),[[h]])],64)}),128)),a.filterValue&&(!k||k&&k.length===0)?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[o.renderSlot(e.$slots,"emptyfilter",{},function(){return[o.createTextVNode(o.toDisplayString(i.emptyFilterMessageText),1)]})],16)):!e.options||e.options&&e.options.length===0?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[o.renderSlot(e.$slots,"empty",{},function(){return[o.createTextVNode(o.toDisplayString(i.emptyMessageText),1)]})],16)):o.createCommentVNode("",!0)],16,hy)]}),_:2},[e.$slots.loader?{name:"loader",fn:o.withCtx(function(b){var y=b.options;return[o.renderSlot(e.$slots,"loader",{options:y})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),o.renderSlot(e.$slots,"footer",{value:e.d_value,options:i.visibleOptions}),!e.options||e.options&&e.options.length===0?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.emptyMessageText),17)):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),o.toDisplayString(i.selectedMessageText),17),o.createElementVNode("span",o.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[8]||(t[8]=function(){return i.onLastHiddenFocus&&i.onLastHiddenFocus.apply(i,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,py)}ts.render=ky;const wy={class:"editable-label-editing flex items-center gap-2 w-full"},ns={__name:"Selector",props:{label:{type:String,default:"Label"},placeholder:{type:String,default:"Enter value"}},setup(e){const t=e;return o.ref(!1),o.ref(t.label),(n,r)=>(o.openBlock(),o.createElementBlock("div",wy,[o.createVNode(o.unref(ts),{modelValue:n.selectedCity,"onUpdate:modelValue":r[0]||(r[0]=a=>n.selectedCity=a),options:n.cities,optionLabel:"name",placeholder:e.placeholder,class:"w-full md:w-56"},null,8,["modelValue","options","placeholder"])]))}},vy={key:0,class:"flex items-center"},xy={key:1},Cy={class:"flex items-center justify-between w-full"},On=xe({__name:"DynamicSelection",props:o.mergeModels({modelValue:{type:[String,Number],default:null},url:String,jsonPath:String,displayField:{type:String,default:"label"},valueField:{type:String,default:"id"},method:{type:String,default:"GET"},options:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=me(),r=()=>n.getAppId(),a=e;console.log("DynamicSelection props:",a);const i=t,l=o.useModel(e,"modelValue"),c=o.ref(null),u=o.ref([]),s=o.computed(()=>a.options.length?"label":a.displayField),d=o.computed(()=>a.options.length?"value":a.valueField);function f(b,y){const w=y.split(".").reduce((k,v)=>{var R;const C=v.match(/^(\w+)\[(\d+)\]$/);if(C){const[,E,S]=C;return((R=k==null?void 0:k[E])==null?void 0:R[parseInt(S)])??null}else return k==null?void 0:k[v]},b);return Array.isArray(w)?w:w?[w]:[]}async function p(){if(!a.url||a.options.length)return;const b=a.url.includes("appid")?a.url.replace("${appid}",r()):a.url;try{const w=await(await fetch(b,{method:a.method.toUpperCase(),headers:{"Content-Type":"application/json"},...a.method.toUpperCase()==="POST"?{body:"{}"}:{}})).json();a.jsonPath?u.value=m(f(w,a.jsonPath)):u.value=[],g(a.modelValue)}catch(y){console.error("Error fetching options:",y)}}o.onMounted(()=>{a.options.length?u.value=m(a.options):p(),g(a.modelValue)}),o.watch(()=>a.modelValue,b=>{l.value=b,g(b)}),o.watch(l,b=>{h(b),i("update:modelValue",b),i("onChange",b)}),o.watch(()=>a.options,b=>{b.length&&(u.value=m(b),g(a.modelValue))},{immediate:!0});function m(b){if(!b)return[];const y=s.value;return[...b].sort((w,k)=>{const v=String(w[y]||w.label||"").toLowerCase(),C=String(k[y]||k.label||"").toLowerCase();return v.localeCompare(C)})}function g(b){const y=u.value.find(w=>String(w[d.value])===String(b));y?(c.value=y,l.value=y[d.value]):c.value=null}function h(b){const y=u.value.find(w=>String(w[d.value])===String(b));y?c.value=y:c.value=null}return(b,y)=>{const w=o.resolveComponent("Badge"),k=o.resolveComponent("Select");return o.openBlock(),o.createBlock(k,{modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=v=>l.value=v),options:u.value,filter:a.options.length==0,optionLabel:s.value,optionValue:d.value,placeholder:"Select an option",class:"w-full"},{value:o.withCtx(v=>[c.value?(o.openBlock(),o.createElementBlock("div",vy,[o.createElementVNode("div",null,o.toDisplayString(c.value[s.value]||c.value.label),1)])):(o.openBlock(),o.createElementBlock("span",xy,o.toDisplayString(v.placeholder),1))]),option:o.withCtx(v=>[o.createElementVNode("div",Cy,[o.createElementVNode("div",null,o.toDisplayString(v.option[s.value]||v.option.label),1),v.option.externalConnectionId?(o.openBlock(),o.createBlock(w,{key:0,value:"secondary",severity:"info"})):o.createCommentVNode("",!0)])]),_:1},8,["modelValue","options","filter","optionLabel","optionValue"])}}},[["__scopeId","data-v-de2f3337"]]),Sy={key:1},Ey="/api/app/v1/${appid}/entity",os={__name:"EntityRecordSelection",props:o.mergeModels({valueField:{type:String,default:"id"},entity:{type:String,default:"customer"},displayField:{type:String,default:"first_name"},searchKey:{type:String,default:"first_name"},searchValue:{type:String,default:"Eve"},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=o.ref(null),r=e,a=t;o.useModel(e,"modelValue");const i=o.computed(()=>`${Ey}/${r.entity}/record`),l=o.ref(!0),{hasMatchingRoleAndPermissions:c}=kt();o.onMounted(async()=>{l.value=await c(r.roles,r.permissions)});function u(s){a("update:modelValue",JSON.stringify(s)),a("onChange",JSON.stringify(s))}return(s,d)=>l.value?(o.openBlock(),o.createBlock(On,{key:0,modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=f=>n.value=f),url:i.value,jsonPath:"response.result",displayField:e.displayField,method:"GET",options:e.options,onOnChange:u,valueField:e.valueField},null,8,["modelValue","url","displayField","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Sy,"You do not have the required permissions to access this feature."))}},By={key:1},$y="/api/app/v1/${appid}/entity",rs={__name:"EntitySelection",props:o.mergeModels({entityName:{type:String,default:""},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:entity-name","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:entity-name",c),r("onChange",c)}return(c,u)=>a.value?(o.openBlock(),o.createBlock(On,{key:0,modelValue:e.entityName,url:$y,jsonPath:"response",displayField:"name",method:"GET",onOnChange:l,valueField:"name"},null,8,["modelValue"])):(o.openBlock(),o.createElementBlock("p",By,"You do not have the required permissions to access this feature."))}},Ny={key:0,class:"flex items-center"},Vy={key:1},Oy={class:"flex items-center justify-between w-full"},as={__name:"EntitySelectionWithRest",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=kr(),n=xo(),r=o.ref([]),a=o.useModel(e,"modelValue");o.onMounted(async()=>{const c=await i(),u=await l();r.value=[...c,...u].filter(s=>s.name!=="_cs_applicationUser").sort((s,d)=>s.name.localeCompare(d.name))});const i=async()=>(await t.getEntities()).response,l=async()=>(await n.getRestEntities()).response;return(c,u)=>{const s=o.resolveComponent("Badge"),d=o.resolveComponent("Select");return o.openBlock(),o.createBlock(d,{class:"text-sm w-full",modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=f=>a.value=f),options:r.value,filter:"",optionLabel:"name",optionValue:"name",placeholder:"Select entity"},{value:o.withCtx(f=>[f.value?(o.openBlock(),o.createElementBlock("div",Ny,[o.createElementVNode("div",null,o.toDisplayString(f.value),1)])):(o.openBlock(),o.createElementBlock("span",Vy,o.toDisplayString(f.placeholder),1))]),option:o.withCtx(f=>[o.createElementVNode("div",Oy,[o.createElementVNode("div",null,o.toDisplayString(f.option.name),1),f.option.externalConnectionId?(o.openBlock(),o.createBlock(s,{key:0,value:"secondary",severity:"info"})):o.createCommentVNode("",!0)])]),_:1},8,["modelValue","options"])}}},Ty="/api/app/v1/${appid}/menu",is={__name:"MenuSelection",props:o.mergeModels({menuName:{type:String,default:""},valueField:{type:String,default:"displayLabel"},displayField:{type:String,default:"displayLabel"},searchKey:{type:String,default:"displayLabel"},searchValue:{type:String,default:""},options:{type:Array,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){const n=t;o.useModel(e,"modelValue");function r(a){n("update:modelValue",a),n("onChange",a)}return(a,i)=>(o.openBlock(),o.createBlock(On,{modelValue:e.menuName,url:Ty,jsonPath:"response",displayField:e.displayField,method:"GET",options:e.options,onOnChange:r,valueField:e.valueField},null,8,["modelValue","displayField","options","valueField"]))}},Iy={class:"flex items-center"},ls=xe({__name:"DynamicMultiSelection",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Select options..."},url:String,jsonPath:String,displayField:{type:String,default:"label"},valueField:{type:String,default:""},method:{type:String,default:"GET"},options:{type:Array,default:()=>[]}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=me(),r=()=>n.getAppId(),a=e;console.log("DynamicMultiSelection props:",a);const i=t,l=o.ref(Array.isArray(a.modelValue)?[...a.modelValue]:[]),c=o.ref([]),u=o.computed(()=>a.options.length?"label":a.displayField),s=o.computed(()=>!a.valueField),d=o.computed(()=>s.value?void 0:a.options.length?"value":a.valueField);o.computed(()=>a.options.length?"value":a.valueField);function f(g,h){if(!h)return Array.isArray(g)?g:[];const b=h.split(".").reduce((y,w)=>{var v;const k=w.match(/^(\w+)\[(\d+)\]$/);if(k){const[,C,R]=k;return((v=y==null?void 0:y[C])==null?void 0:v[parseInt(R)])??null}else return y==null?void 0:y[w]},g);return console.log("Extracted value:",b),Array.isArray(b)?b:b?[b]:[]}async function p(){if(!a.url||a.options.length)return;const g=a.url.includes("appid")?a.url.replace("${appid}",r()):a.url;try{const b=await(await fetch(g,{method:a.method.toUpperCase(),headers:{"Content-Type":"application/json"},...a.method.toUpperCase()==="POST"?{body:"{}"}:{}})).json();c.value=f(b,a.jsonPath),m(a.modelValue)}catch(h){console.error("Error fetching options:",h)}}o.onMounted(()=>{a.options.length?c.value=a.options:p(),m(a.modelValue)}),o.watch(()=>a.modelValue,g=>{l.value=Array.isArray(g)?[...g]:[],m(g)}),o.watch(l,g=>{let h=[];s.value?h=g:h=g.map(b=>b),JSON.stringify(h)!==JSON.stringify(a.modelValue)&&(i("update:modelValue",h),i("onChange",h))}),o.watch(()=>a.options,g=>{g.length&&(c.value=g,m(a.modelValue))},{immediate:!0});function m(g){l.value=Array.isArray(g)?[...g]:[]}return(g,h)=>{const b=o.resolveComponent("MultiSelect");return o.openBlock(),o.createBlock(b,{modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=y=>l.value=y),options:c.value,filter:a.options.length==0,optionLabel:u.value,optionValue:d.value,placeholder:e.placeholder||"Select options...",display:"chip",class:"w-full"},{option:o.withCtx(y=>[o.createElementVNode("div",Iy,[o.createElementVNode("div",null,o.toDisplayString(y.option[u.value]||y.option.label),1)])]),_:1},8,["modelValue","options","filter","optionLabel","optionValue","placeholder"])}}},[["__scopeId","data-v-e5723a1c"]]),Py={key:1},Ry="/api/app/v1/${appid}/security/roles",ss={__name:"RolesSelection",props:o.mergeModels({valueField:{type:String,default:""},searchKey:{type:String,default:"first_name"},searchValue:{type:String,default:"Eve"},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){o.ref(null);const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:modelValue",JSON.stringify(c)),r("onChange",JSON.stringify(c))}return(c,u)=>a.value?(o.openBlock(),o.createBlock(ls,{key:0,modelValue:e.modelValue,url:Ry,jsonPath:"",displayField:"roleName",method:"GET",options:e.options,onOnChange:l,valueField:e.valueField,placeholder:"Select Roles..."},null,8,["modelValue","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Py,"You do not have the required permissions to access this feature."))}},Fy={key:1},Dy="/api/app/v1/${appid}/security/permission",cs={__name:"PermissionSelection",props:o.mergeModels({valueField:{type:String,default:""},options:{type:Array,default:()=>[]},modelValue:{type:Object,default:null},roles:{type:[Array,String],default:()=>[]},permissions:{type:[Array,String],default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["update:modelValue","onChange"],["update:modelValue"]),setup(e,{emit:t}){o.ref(null);const n=e,r=t;o.useModel(e,"modelValue");const a=o.ref(!0),{hasMatchingRoleAndPermissions:i}=kt();o.onMounted(async()=>{a.value=await i(n.roles,n.permissions)});function l(c){r("update:modelValue",JSON.stringify(c)),r("onChange",JSON.stringify(c))}return(c,u)=>a.value?(o.openBlock(),o.createBlock(ls,{key:0,modelValue:e.modelValue,url:Dy,jsonPath:"",displayField:"permissionName",method:"GET",options:e.options,onOnChange:l,valueField:e.valueField,placeholder:"Select Permissions..."},null,8,["modelValue","options","valueField"])):(o.openBlock(),o.createElementBlock("p",Fy,"You do not have the required permissions to access this feature."))}},ds={__name:"label",props:{label:{type:String,default:"Default Label Text"},labelFontSize:{type:Number,default:28}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",o.normalizeProps(o.guardReactiveProps(t.$attrs)),[o.createElementVNode("span",{style:o.normalizeStyle({fontSize:e.labelFontSize+"px",textAlign:t.textAlign})},o.toDisplayString(e.label),5)],16))}};var us={name:"EyeIcon",extends:ht};function Ay(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z",fill:"currentColor"},null,-1)]),16)}us.render=Ay;var fs={name:"EyeSlashIcon",extends:ht};function Ly(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z",fill:"currentColor"},null,-1)]),16)}fs.render=Ly;var _y=function(t){var n=t.dt;return`
|
|
1330
1330
|
.p-password {
|
|
1331
1331
|
display: inline-flex;
|
|
1332
1332
|
position: relative;
|
|
@@ -1402,7 +1402,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1402
1402
|
.p-password:has(.p-password-toggle-mask-icon) .p-password-input {
|
|
1403
1403
|
padding-inline-end: calc((`).concat(n("form.field.padding.x")," * 2) + ").concat(n("icon.size"),`);
|
|
1404
1404
|
}
|
|
1405
|
-
`)},_y={root:function(t){var n=t.props;return{position:n.appendTo==="self"?"relative":void 0}}},zy={root:function(t){var n=t.instance;return["p-password p-component p-inputwrapper",{"p-inputwrapper-filled":n.$filled,"p-inputwrapper-focus":n.focused,"p-password-fluid":n.$fluid}]},pcInputText:"p-password-input",maskIcon:"p-password-toggle-mask-icon p-password-mask-icon",unmaskIcon:"p-password-toggle-mask-icon p-password-unmask-icon",overlay:"p-password-overlay p-component",content:"p-password-content",meter:"p-password-meter",meterLabel:function(t){var n=t.instance;return"p-password-meter-label ".concat(n.meter?"p-password-meter-"+n.meter.strength:"")},meterText:"p-password-meter-text"},My=be.extend({name:"password",theme:Ly,classes:zy,inlineStyles:_y}),jy={name:"BasePassword",extends:So,props:{promptLabel:{type:String,default:null},mediumRegex:{type:[String,RegExp],default:"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})"},strongRegex:{type:[String,RegExp],default:"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})"},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},maskIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},unmaskIcon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},overlayId:{type:String,default:null},overlayClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},autofocus:{type:Boolean,default:null}},style:My,provide:function(){return{$pcPassword:this,$parentInstance:this}}},Cr={name:"Password",extends:jy,inheritAttrs:!1,emits:["change","focus","blur","invalid"],inject:{$pcFluid:{default:null}},data:function(){return{id:this.$attrs.id,overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},watch:{"$attrs.id":function(t){this.id=t||Co()}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.id=this.id||Co(),this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(Qt.clear(this.overlay),this.overlay=null)},methods:{onOverlayEnter:function(t){Qt.set("overlay",t,this.$primevue.config.zIndex.overlay),Li(t,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener()},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(t){Qt.clear(t)},alignOverlay:function(){this.appendTo==="self"?_i(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=cr(this.$refs.input.$el)+"px",Ai(this.overlay,this.$refs.input.$el))},testStrength:function(t){var n=0;return this.strongCheckRegExp.test(t)?n=3:this.mediumCheckRegExp.test(t)?n=2:t.length&&(n=1),n},onInput:function(t){this.writeValue(t.target.value,t),this.$emit("change",t)},onFocus:function(t){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.d_value),this.overlayVisible=!0),this.$emit("focus",t)},onBlur:function(t){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit("blur",t)},onKeyUp:function(t){if(this.feedback){var n=t.target.value,r=this.checkPasswordStrength(n),a=r.meter,i=r.label;if(this.meter=a,this.infoText=i,t.code==="Escape"){this.overlayVisible&&(this.overlayVisible=!1);return}this.overlayVisible||(this.overlayVisible=!0)}},setPasswordMeter:function(){if(!this.d_value){this.meter=null,this.infoText=this.promptText;return}var t=this.checkPasswordStrength(this.d_value),n=t.meter,r=t.label;this.meter=n,this.infoText=r,this.overlayVisible||(this.overlayVisible=!0)},checkPasswordStrength:function(t){var n=null,r=null;switch(this.testStrength(t)){case 1:n=this.weakText,r={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText,r={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText,r={strength:"strong",width:"100%"};break;default:n=this.promptText,r=null;break}return{label:n,meter:r}},onInvalid:function(t){this.$emit("invalid",t)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Ml(this.$refs.input.$el,function(){t.overlayVisible&&(t.overlayVisible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible&&!ji()&&(t.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef:function(t){this.overlay=t},onMaskToggle:function(){this.unmasked=!this.unmasked},onOverlayClick:function(t){Kl.emit("overlay-click",{originalEvent:t,target:this.$el})}},computed:{inputType:function(){return this.unmasked?"text":"password"},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},overlayUniqueId:function(){return this.id+"_overlay"}},components:{InputText:Jt,Portal:vr,EyeSlashIcon:fs,EyeIcon:us}};function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(r){Uy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uy(e,t,n){return(t=Hy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e){var t=Wy(e,"string");return Tn(t)=="symbol"?t:t+""}function Wy(e,t){if(Tn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qy=["id"];function Ky(e,t,n,r,a,i){var l=o.resolveComponent("InputText"),c=o.resolveComponent("Portal");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root"),style:e.sx("root")},e.ptmi("root")),[o.createVNode(l,o.mergeProps({ref:"input",id:e.inputId,type:i.inputType,class:[e.cx("pcInputText"),e.inputClass],style:e.inputStyle,value:e.d_value,name:e.$formName,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-controls":e.overlayProps&&e.overlayProps.id||e.overlayId||e.panelProps&&e.panelProps.id||e.panelId||i.overlayUniqueId,"aria-expanded":a.overlayVisible,"aria-haspopup":!0,placeholder:e.placeholder,required:e.required,fluid:e.fluid,disabled:e.disabled,variant:e.variant,invalid:e.invalid,size:e.size,autofocus:e.autofocus,onInput:i.onInput,onFocus:i.onFocus,onBlur:i.onBlur,onKeyup:i.onKeyUp,onInvalid:i.onInvalid},e.inputProps,{pt:e.ptm("pcInputText"),unstyled:e.unstyled}),null,16,["id","type","class","style","value","name","aria-labelledby","aria-label","aria-controls","aria-expanded","placeholder","required","fluid","disabled","variant","invalid","size","autofocus","onInput","onFocus","onBlur","onKeyup","onInvalid","pt","unstyled"]),e.toggleMask&&a.unmasked?o.renderSlot(e.$slots,e.$slots.maskicon?"maskicon":"hideicon",{key:0,toggleCallback:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.maskIcon?"i":"EyeSlashIcon"),o.mergeProps({class:[e.cx("maskIcon"),e.maskIcon],onClick:i.onMaskToggle},e.ptm("maskIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),e.toggleMask&&!a.unmasked?o.renderSlot(e.$slots,e.$slots.unmaskicon?"unmaskicon":"showicon",{key:1,toggleCallback:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.unmaskIcon?"i":"EyeIcon"),o.mergeProps({class:[e.cx("unmaskIcon"),e.unmaskIcon],onClick:i.onMaskToggle},e.ptm("unmaskIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({class:"p-hidden-accessible","aria-live":"polite"},e.ptm("hiddenAccesible"),{"data-p-hidden-accessible":!0}),o.toDisplayString(a.infoText),17),o.createVNode(c,{appendTo:e.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},e.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,id:e.overlayId||e.panelId||i.overlayUniqueId,class:[e.cx("overlay"),e.panelClass,e.overlayClass],style:[e.overlayStyle,e.panelStyle],onClick:t[0]||(t[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},Sr(Sr(Sr({},e.panelProps),e.overlayProps),e.ptm("overlay"))),[o.renderSlot(e.$slots,"header"),o.renderSlot(e.$slots,"content",{},function(){return[o.createElementVNode("div",o.mergeProps({class:e.cx("content")},e.ptm("content")),[o.createElementVNode("div",o.mergeProps({class:e.cx("meter")},e.ptm("meter")),[o.createElementVNode("div",o.mergeProps({class:e.cx("meterLabel"),style:{width:a.meter?a.meter.width:""}},e.ptm("meterLabel")),null,16)],16),o.createElementVNode("div",o.mergeProps({class:e.cx("meterText")},e.ptm("meterText")),o.toDisplayString(a.infoText),17)],16)]}),o.renderSlot(e.$slots,"footer")],16,qy)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16)}Cr.render=Ky;var ms={name:"MinusIcon",extends:ht};function Gy(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}ms.render=Gy;var Yy=function(t){var n=t.dt;return`
|
|
1405
|
+
`)},zy={root:function(t){var n=t.props;return{position:n.appendTo==="self"?"relative":void 0}}},My={root:function(t){var n=t.instance;return["p-password p-component p-inputwrapper",{"p-inputwrapper-filled":n.$filled,"p-inputwrapper-focus":n.focused,"p-password-fluid":n.$fluid}]},pcInputText:"p-password-input",maskIcon:"p-password-toggle-mask-icon p-password-mask-icon",unmaskIcon:"p-password-toggle-mask-icon p-password-unmask-icon",overlay:"p-password-overlay p-component",content:"p-password-content",meter:"p-password-meter",meterLabel:function(t){var n=t.instance;return"p-password-meter-label ".concat(n.meter?"p-password-meter-"+n.meter.strength:"")},meterText:"p-password-meter-text"},jy=be.extend({name:"password",theme:_y,classes:My,inlineStyles:zy}),Uy={name:"BasePassword",extends:So,props:{promptLabel:{type:String,default:null},mediumRegex:{type:[String,RegExp],default:"^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})"},strongRegex:{type:[String,RegExp],default:"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})"},weakLabel:{type:String,default:null},mediumLabel:{type:String,default:null},strongLabel:{type:String,default:null},feedback:{type:Boolean,default:!0},appendTo:{type:[String,Object],default:"body"},toggleMask:{type:Boolean,default:!1},hideIcon:{type:String,default:void 0},maskIcon:{type:String,default:void 0},showIcon:{type:String,default:void 0},unmaskIcon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelId:{type:String,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},overlayId:{type:String,default:null},overlayClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},autofocus:{type:Boolean,default:null}},style:jy,provide:function(){return{$pcPassword:this,$parentInstance:this}}},Cr={name:"Password",extends:Uy,inheritAttrs:!1,emits:["change","focus","blur","invalid"],inject:{$pcFluid:{default:null}},data:function(){return{id:this.$attrs.id,overlayVisible:!1,meter:null,infoText:null,focused:!1,unmasked:!1}},watch:{"$attrs.id":function(t){this.id=t||Co()}},mediumCheckRegExp:null,strongCheckRegExp:null,resizeListener:null,scrollHandler:null,overlay:null,mounted:function(){this.id=this.id||Co(),this.infoText=this.promptText,this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex)},beforeUnmount:function(){this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(Qt.clear(this.overlay),this.overlay=null)},methods:{onOverlayEnter:function(t){Qt.set("overlay",t,this.$primevue.config.zIndex.overlay),Li(t,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener()},onOverlayLeave:function(){this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null},onOverlayAfterLeave:function(t){Qt.clear(t)},alignOverlay:function(){this.appendTo==="self"?_i(this.overlay,this.$refs.input.$el):(this.overlay.style.minWidth=cr(this.$refs.input.$el)+"px",Ai(this.overlay,this.$refs.input.$el))},testStrength:function(t){var n=0;return this.strongCheckRegExp.test(t)?n=3:this.mediumCheckRegExp.test(t)?n=2:t.length&&(n=1),n},onInput:function(t){this.writeValue(t.target.value,t),this.$emit("change",t)},onFocus:function(t){this.focused=!0,this.feedback&&(this.setPasswordMeter(this.d_value),this.overlayVisible=!0),this.$emit("focus",t)},onBlur:function(t){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.$emit("blur",t)},onKeyUp:function(t){if(this.feedback){var n=t.target.value,r=this.checkPasswordStrength(n),a=r.meter,i=r.label;if(this.meter=a,this.infoText=i,t.code==="Escape"){this.overlayVisible&&(this.overlayVisible=!1);return}this.overlayVisible||(this.overlayVisible=!0)}},setPasswordMeter:function(){if(!this.d_value){this.meter=null,this.infoText=this.promptText;return}var t=this.checkPasswordStrength(this.d_value),n=t.meter,r=t.label;this.meter=n,this.infoText=r,this.overlayVisible||(this.overlayVisible=!0)},checkPasswordStrength:function(t){var n=null,r=null;switch(this.testStrength(t)){case 1:n=this.weakText,r={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText,r={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText,r={strength:"strong",width:"100%"};break;default:n=this.promptText,r=null;break}return{label:n,meter:r}},onInvalid:function(t){this.$emit("invalid",t)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Ml(this.$refs.input.$el,function(){t.overlayVisible&&(t.overlayVisible=!1)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible&&!ji()&&(t.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},overlayRef:function(t){this.overlay=t},onMaskToggle:function(){this.unmasked=!this.unmasked},onOverlayClick:function(t){Kl.emit("overlay-click",{originalEvent:t,target:this.$el})}},computed:{inputType:function(){return this.unmasked?"text":"password"},weakText:function(){return this.weakLabel||this.$primevue.config.locale.weak},mediumText:function(){return this.mediumLabel||this.$primevue.config.locale.medium},strongText:function(){return this.strongLabel||this.$primevue.config.locale.strong},promptText:function(){return this.promptLabel||this.$primevue.config.locale.passwordPrompt},overlayUniqueId:function(){return this.id+"_overlay"}},components:{InputText:Jt,Portal:vr,EyeSlashIcon:fs,EyeIcon:us}};function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(r){Hy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hy(e,t,n){return(t=Wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wy(e){var t=qy(e,"string");return Tn(t)=="symbol"?t:t+""}function qy(e,t){if(Tn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ky=["id"];function Gy(e,t,n,r,a,i){var l=o.resolveComponent("InputText"),c=o.resolveComponent("Portal");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root"),style:e.sx("root")},e.ptmi("root")),[o.createVNode(l,o.mergeProps({ref:"input",id:e.inputId,type:i.inputType,class:[e.cx("pcInputText"),e.inputClass],style:e.inputStyle,value:e.d_value,name:e.$formName,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-controls":e.overlayProps&&e.overlayProps.id||e.overlayId||e.panelProps&&e.panelProps.id||e.panelId||i.overlayUniqueId,"aria-expanded":a.overlayVisible,"aria-haspopup":!0,placeholder:e.placeholder,required:e.required,fluid:e.fluid,disabled:e.disabled,variant:e.variant,invalid:e.invalid,size:e.size,autofocus:e.autofocus,onInput:i.onInput,onFocus:i.onFocus,onBlur:i.onBlur,onKeyup:i.onKeyUp,onInvalid:i.onInvalid},e.inputProps,{pt:e.ptm("pcInputText"),unstyled:e.unstyled}),null,16,["id","type","class","style","value","name","aria-labelledby","aria-label","aria-controls","aria-expanded","placeholder","required","fluid","disabled","variant","invalid","size","autofocus","onInput","onFocus","onBlur","onKeyup","onInvalid","pt","unstyled"]),e.toggleMask&&a.unmasked?o.renderSlot(e.$slots,e.$slots.maskicon?"maskicon":"hideicon",{key:0,toggleCallback:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.maskIcon?"i":"EyeSlashIcon"),o.mergeProps({class:[e.cx("maskIcon"),e.maskIcon],onClick:i.onMaskToggle},e.ptm("maskIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),e.toggleMask&&!a.unmasked?o.renderSlot(e.$slots,e.$slots.unmaskicon?"unmaskicon":"showicon",{key:1,toggleCallback:i.onMaskToggle},function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.unmaskIcon?"i":"EyeIcon"),o.mergeProps({class:[e.cx("unmaskIcon"),e.unmaskIcon],onClick:i.onMaskToggle},e.ptm("unmaskIcon")),null,16,["class","onClick"]))]}):o.createCommentVNode("",!0),o.createElementVNode("span",o.mergeProps({class:"p-hidden-accessible","aria-live":"polite"},e.ptm("hiddenAccesible"),{"data-p-hidden-accessible":!0}),o.toDisplayString(a.infoText),17),o.createVNode(c,{appendTo:e.appendTo},{default:o.withCtx(function(){return[o.createVNode(o.Transition,o.mergeProps({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},e.ptm("transition")),{default:o.withCtx(function(){return[a.overlayVisible?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,ref:i.overlayRef,id:e.overlayId||e.panelId||i.overlayUniqueId,class:[e.cx("overlay"),e.panelClass,e.overlayClass],style:[e.overlayStyle,e.panelStyle],onClick:t[0]||(t[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},Sr(Sr(Sr({},e.panelProps),e.overlayProps),e.ptm("overlay"))),[o.renderSlot(e.$slots,"header"),o.renderSlot(e.$slots,"content",{},function(){return[o.createElementVNode("div",o.mergeProps({class:e.cx("content")},e.ptm("content")),[o.createElementVNode("div",o.mergeProps({class:e.cx("meter")},e.ptm("meter")),[o.createElementVNode("div",o.mergeProps({class:e.cx("meterLabel"),style:{width:a.meter?a.meter.width:""}},e.ptm("meterLabel")),null,16)],16),o.createElementVNode("div",o.mergeProps({class:e.cx("meterText")},e.ptm("meterText")),o.toDisplayString(a.infoText),17)],16)]}),o.renderSlot(e.$slots,"footer")],16,Ky)):o.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16)}Cr.render=Gy;var ms={name:"MinusIcon",extends:ht};function Yy(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",o.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.pti()),t[0]||(t[0]=[o.createElementVNode("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"},null,-1)]),16)}ms.render=Yy;var Qy=function(t){var n=t.dt;return`
|
|
1406
1406
|
.p-checkbox {
|
|
1407
1407
|
position: relative;
|
|
1408
1408
|
display: inline-flex;
|
|
@@ -1536,5 +1536,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1536
1536
|
width: `).concat(n("checkbox.icon.lg.size"),`;
|
|
1537
1537
|
height: `).concat(n("checkbox.icon.lg.size"),`;
|
|
1538
1538
|
}
|
|
1539
|
-
`)},
|
|
1540
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t1(e,t){if(e){if(typeof e=="string")return Er(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Er(e,t):void 0}}function n1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o1(e){if(Array.isArray(e))return Er(e)}function Er(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Br={name:"Checkbox",extends:Xy,inheritAttrs:!1,emits:["change","focus","blur","update:indeterminate"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){var n=t==="root"?this.ptmi:this.ptm;return n(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var n=this;if(!this.disabled&&!this.readonly){var r=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,a;this.binary?a=this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?a=r.filter(function(i){return!lo(i,n.value)}):a=r?[].concat(Zy(r),[this.value]):[this.value],this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit("update:indeterminate",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(a,t):this.writeValue(a,t),this.$emit("change",t)}},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){var n,r;this.$emit("blur",t),(n=(r=this.formField).onBlur)===null||n===void 0||n.call(r,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?t===this.trueValue:Yu(this.value,t)}},components:{CheckIcon:wr,MinusIcon:ms}},r1=["data-p-checked","data-p-indeterminate","data-p-disabled"],a1=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid","aria-checked"];function i1(e,t,n,r,a,i){var l=o.resolveComponent("CheckIcon"),c=o.resolveComponent("MinusIcon");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},i.getPTOptions("root"),{"data-p-checked":i.checked,"data-p-indeterminate":a.d_indeterminate||void 0,"data-p-disabled":e.disabled}),[o.createElementVNode("input",o.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:i.groupName,checked:i.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,"aria-checked":a.d_indeterminate?"mixed":void 0,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:t[2]||(t[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,a1),o.createElementVNode("div",o.mergeProps({class:e.cx("box")},i.getPTOptions("box")),[o.renderSlot(e.$slots,"icon",{checked:i.checked,indeterminate:a.d_indeterminate,class:o.normalizeClass(e.cx("icon"))},function(){return[i.checked?(o.openBlock(),o.createBlock(l,o.mergeProps({key:0,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):a.d_indeterminate?(o.openBlock(),o.createBlock(c,o.mergeProps({key:1,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):o.createCommentVNode("",!0)]})],16)],16,r1)}Br.render=i1;const l1={class:"max-w-sm mx-auto p-6 bg-white shadow rounded"},s1=["action"],c1=["value"],d1=["value"],u1={key:0,type:"hidden",name:"rememberMe",value:"on"},f1={class:"mb-4"},p1={class:"mb-4"},m1={class:"flex items-center mb-6"},g1={class:"mt-4 text-center text-sm"},h1=["action"],b1=["value"],y1=["value"],k1=["value"],w1={key:0,type:"hidden",name:"agreeToTerms",value:"on"},v1={class:"mb-4"},x1={class:"mb-4"},C1={class:"mb-4"},S1={class:"flex items-center mb-6"},E1={class:"mt-4 text-center text-sm"},gs={__name:"SecurityLogin",props:{initialMode:{type:String,default:"login"},rememberMe:{type:Boolean,default:!1},agreeToTerms:{type:Boolean,default:!1},titleLogin:{type:String,default:"Login"},titleSignup:{type:String,default:"Sign Up"},titlePosition:{type:String,default:"center"},buttonSize:{type:String,default:"large"},inputSize:{type:String,default:"small"},loginButtonType:{type:String,default:"success"},signupButtonType:{type:String,default:"success"},formSubmitUrls:{type:Object,default:()=>({login:"/login",signup:"/signup"})}},setup(e){const t=e,n=o.ref(t.initialMode),r=o.reactive({username:"",password:"",rememberMe:t.rememberMe}),a=o.reactive({fullName:"",email:"",password:"",agreeToTerms:t.agreeToTerms}),i=o.computed(()=>{switch(t.titlePosition){case"left":return"text-left";case"right":return"text-right";case"center":default:return"text-center"}}),l=o.computed(()=>t.buttonSize==="medium"?{}:{size:t.buttonSize}),c=o.computed(()=>t.inputSize==="medium"?{}:{size:t.inputSize});return(u,s)=>(o.openBlock(),o.createElementBlock("div",l1,[o.withDirectives(o.createElementVNode("div",null,[o.createElementVNode("h2",{class:o.normalizeClass(["text-xl font-bold mb-4",i.value])},o.toDisplayString(e.titleLogin),3),o.createElementVNode("form",{action:e.formSubmitUrls.login,method:"POST"},[o.createElementVNode("input",{type:"hidden",name:"username",value:r.username},null,8,c1),o.createElementVNode("input",{type:"hidden",name:"password",value:r.password},null,8,d1),r.rememberMe?(o.openBlock(),o.createElementBlock("input",u1)):o.createCommentVNode("",!0),o.createElementVNode("div",f1,[s[9]||(s[9]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Username",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:r.username,"onUpdate:modelValue":s[0]||(s[0]=d=>r.username=d),class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",p1,[s[10]||(s[10]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Password",-1)),o.createVNode(o.unref(Cr),o.mergeProps({modelValue:r.password,"onUpdate:modelValue":s[1]||(s[1]=d=>r.password=d),class:"w-full",inputClass:"w-full"},c.value,{feedback:!1,toggleMask:"",required:""}),null,16,["modelValue"])]),o.createElementVNode("div",m1,[o.createVNode(o.unref(Br),{modelValue:r.rememberMe,"onUpdate:modelValue":s[2]||(s[2]=d=>r.rememberMe=d),inputId:"rememberMe",binary:!0,class:"mr-2"},null,8,["modelValue"]),s[11]||(s[11]=o.createElementVNode("label",{for:"rememberMe",class:"text-sm text-gray-600 cursor-pointer"},"Remember Me",-1))]),o.createVNode(o.unref(yo),o.mergeProps({type:"submit",label:"Login",severity:e.loginButtonType},l.value,{class:"w-full"}),null,16,["severity"]),o.createElementVNode("div",g1,[s[12]||(s[12]=o.createElementVNode("span",{class:"text-gray-600"},"Don't have an account? ",-1)),o.createElementVNode("a",{href:"#",class:"text-blue-500 hover:text-blue-600 font-medium",onClick:s[3]||(s[3]=o.withModifiers(d=>n.value="signup",["prevent"]))},"Sign up")])],8,s1)],512),[[o.vShow,n.value==="login"]]),o.withDirectives(o.createElementVNode("div",null,[o.createElementVNode("h2",{class:o.normalizeClass(["text-xl font-bold mb-4",i.value])},o.toDisplayString(e.titleSignup),3),o.createElementVNode("form",{action:e.formSubmitUrls.signup,method:"POST"},[o.createElementVNode("input",{type:"hidden",name:"fullName",value:a.fullName},null,8,b1),o.createElementVNode("input",{type:"hidden",name:"email",value:a.email},null,8,y1),o.createElementVNode("input",{type:"hidden",name:"password",value:a.password},null,8,k1),a.agreeToTerms?(o.openBlock(),o.createElementBlock("input",w1)):o.createCommentVNode("",!0),o.createElementVNode("div",v1,[s[13]||(s[13]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Full Name",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:a.fullName,"onUpdate:modelValue":s[4]||(s[4]=d=>a.fullName=d),class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",x1,[s[14]||(s[14]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Email",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:a.email,"onUpdate:modelValue":s[5]||(s[5]=d=>a.email=d),type:"email",class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",C1,[s[15]||(s[15]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Password",-1)),o.createVNode(o.unref(Cr),o.mergeProps({modelValue:a.password,"onUpdate:modelValue":s[6]||(s[6]=d=>a.password=d),class:"w-full",inputClass:"w-full"},c.value,{feedback:!1,toggleMask:"",required:""}),null,16,["modelValue"])]),o.createElementVNode("div",S1,[o.createVNode(o.unref(Br),{modelValue:a.agreeToTerms,"onUpdate:modelValue":s[7]||(s[7]=d=>a.agreeToTerms=d),inputId:"agreeToTerms",binary:!0,class:"mr-2",required:""},null,8,["modelValue"]),s[16]||(s[16]=o.createElementVNode("label",{for:"agreeToTerms",class:"text-sm text-gray-600 cursor-pointer"},"I agree to the terms and conditions",-1))]),o.createVNode(o.unref(yo),o.mergeProps({type:"submit",label:"Sign Up",severity:e.signupButtonType},l.value,{class:"w-full"}),null,16,["severity"]),o.createElementVNode("div",E1,[s[17]||(s[17]=o.createElementVNode("span",{class:"text-gray-600"},"Already have an account? ",-1)),o.createElementVNode("a",{href:"#",class:"text-green-500 hover:text-green-600 font-medium",onClick:s[8]||(s[8]=o.withModifiers(d=>n.value="login",["prevent"]))},"Login here")])],8,h1)],512),[[o.vShow,n.value==="signup"]])]))}},B1={class:"flex items-center border border-gray-300 rounded p-2 bg-white"},$1={key:0,class:"dropdown absolute z-10 w-full border border-gray-300 rounded bg-white p-2 max-h-60 overflow-y-auto shadow-lg"},N1={class:"tabs flex gap-2 mb-2"},V1=["onClick"],O1={class:"tabs flex gap-2 mb-3"},T1=["onClick"],I1={key:0,class:"icons grid-cols-4 gap-4"},P1=["onClick"],R1={class:"text-[10px] mt-1 truncate text-gray-700 font-medium"},F1={key:1,class:"text-center text-gray-500 py-4"},D1=100,hs={__name:"IconSelection",props:{modelValue:{type:String,default:null}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),i=o.ref(n.modelValue),l=o.ref(!1),c=o.ref([]),u=o.ref([]),s=["font-awesome","primeicons"],d=["SOLID","REGULAR","FILLED"],f=o.ref(""),p=o.ref(""),m=async()=>{try{const v=new URLSearchParams;i.value&&v.append("keyword",i.value),f.value&&v.append("libraryName",f.value),p.value&&v.append("category",p.value);const R=await(await fetch(`/api/platform/v1/search/icon-library?${v}`)).json();c.value=R.response||[],u.value=c.value.map(E=>({name:E,class:E,library:f.value,category:p.value}))}catch(v){console.error("Error fetching icons:",v),u.value=[]}},g=async()=>{await m(),i.value&&(r("update:modelValue",i.value),r("onChange",i.value))},h=v=>{clearTimeout(k),i.value=v.name,l.value=!1,r("update:modelValue",v.name),r("onChange",v.name)},b=(v,C)=>{v==="library"&&(f.value=C),v==="category"&&(p.value=C),g()},y=v=>{a.value&&!a.value.contains(v.target)&&(l.value=!1)},w=o.computed(()=>u.value.slice(0,D1));o.onMounted(()=>{m(),document.addEventListener("click",y)}),o.onBeforeUnmount(()=>{document.removeEventListener("click",y)});let k;return o.watch(i,()=>{clearTimeout(k),k=setTimeout(g,300)}),o.watch(()=>n.modelValue,v=>{i.value=v}),(v,C)=>(o.openBlock(),o.createElementBlock("div",{class:"icon-selection w-full max-w-md mx-auto relative",ref_key:"iconContainer",ref:a},[o.createElementVNode("div",B1,[i.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["fa",i.value,"fa-lg","text-gray-600","mr-2"]),style:{"min-width":"20px"}},null,2)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":C[0]||(C[0]=R=>i.value=R),onFocus:C[1]||(C[1]=R=>l.value=!0),type:"text",placeholder:"Search icons...",class:"flex-1 outline-none text-gray-800 placeholder-gray-400"},null,544),[[o.vModelText,i.value]]),C[2]||(C[2]=o.createElementVNode("i",{class:"fas fa-search text-xl text-gray-700"},null,-1))]),l.value?(o.openBlock(),o.createElementBlock("div",$1,[o.createElementVNode("div",N1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(s,R=>o.createElementVNode("button",{key:R,class:o.normalizeClass(["flex-1 p-1 text-sm rounded font-semibold",f.value===R?"bg-blue-500 text-white":"bg-gray-200 text-gray-700"]),onClick:E=>b("library",R)},o.toDisplayString(R),11,V1)),64))]),o.createElementVNode("div",O1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(d,R=>o.createElementVNode("button",{key:R,class:o.normalizeClass(["flex-1 p-1 text-sm rounded font-semibold capitalize",p.value===R?"bg-blue-500 text-white":"bg-gray-200 text-gray-700"]),onClick:E=>b("category",R)},o.toDisplayString(R),11,T1)),64))]),u.value.length?(o.openBlock(),o.createElementBlock("div",I1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,(R,E)=>(o.openBlock(),o.createElementBlock("div",{key:E,class:"icon-item text-center cursor-pointer hover:bg-gray-100 p-2 rounded transition-all",onClick:S=>h(R)},[o.createElementVNode("i",{class:o.normalizeClass([R.name,"text-xl","text-gray-700"])},null,2),o.createElementVNode("div",R1,o.toDisplayString(R.name),1)],8,P1))),128))])):(o.openBlock(),o.createElementBlock("div",F1,"No icons found"))])):o.createCommentVNode("",!0)],512))}},A1={key:1,class:"bg-white text-black-500"},bs=xe({__name:"IconComponent",props:{iconName:{type:String,required:!1}},setup(e){return(t,n)=>e.iconName?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([e.iconName,"text-xl","text-gray-700"])},null,2)):(o.openBlock(),o.createElementBlock("span",A1,"Please Select Icon from Settings"))}},[["__scopeId","data-v-e95232b1"]]),L1={key:0,class:"global-loader-overlay"},ys=xe({__name:"GlobalLoader",setup(e){const t=Kn(),{loading:n}=Is(t);return(r,a)=>o.unref(n)?(o.openBlock(),o.createElementBlock("div",L1,a[0]||(a[0]=[o.createElementVNode("div",{class:"global-loader-container"},[o.createElementVNode("div",{class:"global-loader-spinner"},[o.createElementVNode("div",{class:"spinner"})]),o.createElementVNode("div",{class:"global-loader-text"},"Loading...")],-1)]))):o.createCommentVNode("",!0)}},[["__scopeId","data-v-a5bed64b"]]);function ks(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getCssClasses:async(c,u,s=!1)=>{const d=i(),f=new URLSearchParams;return u&&f.append("className",u),c&&f.append("category",c),await t(`/api/platform/v1/search/${d}/css-class?${f.toString()}`,s)}}}const _1={class:"flex items-stretch min-h-[2.5rem] p-0 border border-gray-300 rounded-md bg-white cursor-text transition-colors overflow-hidden"},z1={class:"relative flex-1 min-w-[100px] self-center"},M1={class:"flex-shrink-0"},j1={class:"tabs flex flex-wrap gap-2 m-3"},U1={class:"overflow-y-auto flex-1"},H1={key:0,class:"px-3 text-sm py-2 text-gray-500"},W1=["onClick"],ws=xe({__name:"ClassesSelection",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Type to search or add new class"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=new ks,i=o.ref(null),l=o.ref(null),c=o.ref(""),u=o.ref(!1),s=o.ref(["All","Custom","Tailwind"]),d=o.ref("All"),f=o.ref([]),p=o.computed({get:()=>n.modelValue||[],set:L=>r("update:modelValue",L)}),m=async()=>{try{let L="";d.value!="All"&&(L=JSON.parse(JSON.stringify(d.value)));const F=await a.getCssClasses(L,c.value,!1);F&&F.response&&(f.value=F.response||[])}catch(L){console.error("Error getting classes:",L.errorMessage)}},g=L=>{d.value=L,m()},h=()=>{m(),u.value||(u.value=!0)},b=()=>{u.value=!0},y=L=>{const F=L==null?void 0:L.trim();if(!F||p.value.includes(F)){c.value="";return}p.value=[...p.value,F],c.value="",u.value=!1,C()},w=L=>{p.value=p.value.filter(F=>F!==L)},k=L=>{y(L),u.value=!1},v=()=>{c.value.trim()&&y(c.value)},C=()=>{o.nextTick(()=>{var F,V,x,B;const L=((V=(F=i.value)==null?void 0:F.$el)==null?void 0:V.querySelector("input"))||((x=i.value)==null?void 0:x.$el)||i.value;(B=L==null?void 0:L.focus)==null||B.call(L)})},R=L=>{L.target===L.currentTarget&&(C(),u.value||b())},E=L=>{L.target.closest(".p-chip-remove-icon")||(C(),u.value||b())},S=L=>{L.target===L.currentTarget&&(C(),u.value||b())},_=L=>{L==null||L.stopPropagation(),u.value=!u.value,u.value&&C()},z=L=>{var F;!((F=l.value)!=null&&F.contains(L.target))&&!L.target.closest(".multi-select-chips-wrapper")&&(u.value=!1)};return o.onMounted(()=>{document.addEventListener("click",z),m()}),o.onBeforeUnmount(()=>{document.removeEventListener("click",z)}),(L,F)=>{const V=o.resolveComponent("Chip"),x=o.resolveComponent("InputText"),B=o.resolveComponent("Button");return o.openBlock(),o.createElementBlock("div",{class:"relative w-full multi-select-chips-wrapper",onClick:S},[o.createElementVNode("div",_1,[o.createElementVNode("div",{class:"flex flex-wrap items-center flex-1 gap-2 p-1 min-h-full",onClick:R},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,($,P)=>(o.openBlock(),o.createBlock(V,{key:`chip-${P}-${$}`,label:$,removable:"",onRemove:H=>w($),onClick:E,class:"m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"},null,8,["label","onRemove"]))),128)),o.createElementVNode("div",z1,[o.createVNode(x,{style:{border:"none"},ref_key:"inputRef",ref:i,modelValue:c.value,"onUpdate:modelValue":F[0]||(F[0]=$=>c.value=$),placeholder:p.value.length===0?e.placeholder:"",onKeydown:o.withKeys(o.withModifiers(v,["prevent"]),["enter"]),onInput:h,onFocus:b,disabled:e.disabled,class:"w-full p-0 border-0 shadow-none focus:ring-0 focus:outline-none focus:shadow-none bg-transparent"},null,8,["modelValue","placeholder","onKeydown","disabled"])])]),o.createElementVNode("div",null,[o.createVNode(B,{style:{"border-radius":"0"},icon:"pi pi-chevron-down",disabled:e.disabled,variant:"text",onClick:o.withModifiers(_,["stop"]),class:"flex-shrink-0 w-10 h-full p-0 m-0 border-0 border-l border-gray-300 hover:bg-gray-100"},null,8,["disabled"])])]),u.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:l,class:"absolute z-50 w-full bg-white border border-gray-300 rounded-md shadow-lg max-h-60 flex flex-col"},[o.createElementVNode("div",M1,[o.createElementVNode("div",j1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,$=>(o.openBlock(),o.createBlock(B,{key:$,size:"small",class:o.normalizeClass(["px-3 py-2 text-sm rounded font-semibold capitalize cursor-pointer whitespace-nowrap"]),onClick:P=>g($),label:$,severity:d.value===$?"info":"secondary"},null,8,["onClick","label","severity"]))),128))])]),o.createElementVNode("div",U1,[f.value.length===0?(o.openBlock(),o.createElementBlock("div",H1," No options found ")):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(f.value,($,P)=>(o.openBlock(),o.createElementBlock("div",{key:`opt-${P}-${$}`,class:"px-3 py-2 text-sm cursor-pointer hover:bg-gray-100",onClick:o.withModifiers(H=>k($),["stop"])},o.toDisplayString($),9,W1))),128))])],512)):o.createCommentVNode("",!0)])}}},[["__scopeId","data-v-101758fe"]]);function vs(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getPage:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/content/page/${g}`,h)},getPages:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/page?page=1&pageSize=50`,g)},createPage:async(g,h,b=!1,y=!1)=>{const w=i(),k=new URLSearchParams;h&&h.trim()!==""&&k.append("tag",h),k.append("saveRevision",b);const v=`/api/app/v1/${w}/content/page?${k.toString()}`;return await n(v,g,y)},updatePage:async(g,h,b,y=!1,w=!1)=>{const k=i(),v=new URLSearchParams;b&&b.trim()!==""&&v.append("tag",b),v.append("saveRevision",y);const C=`/api/app/v1/${k}/content/page/${g}?${v.toString()}`;return await r(C,h,w)},deletePage:async(g,h=!1)=>{const b=i();return await a(`/api/app/v1/${b}/content/page/${g}`,{},h)},generateSinglePage:async(g,h=!0)=>await n("/api/ai/generate/page",g,h),getAllPageVersions:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/content/page/${g}/versions`,h)},restorePageVersion:async(g,h,b=!0)=>{const y=i();return await n(`/api/app/v1/${y}/content/page/${g}/versions/${h}/restore`,{},b)}}}const q1={class:"w-full"},xs={__name:"PageSelection",props:{url:{type:String,default:""}},emits:["page-selected"],setup(e,{emit:t}){const n=e,r=t,a=vs(),i=o.ref([]),l=o.ref(null),c=o.ref(!1),u=async()=>{try{const f=await a.getPages();f&&f.response&&(i.value=f.response,s())}catch(f){console.error("Error fetching pages",f)}finally{}},s=()=>{if(n.url&&i.value.length>0){const f=i.value.find(p=>p.url===n.url);f&&(l.value=f)}},d=f=>{r("page-selected",f)};return o.watch(()=>n.url,f=>{s()}),o.watch(l,f=>{d(f)}),o.onMounted(()=>{u()}),(f,p)=>{const m=o.resolveComponent("Select");return o.openBlock(),o.createElementBlock("div",q1,[o.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=g=>l.value=g),options:i.value,optionLabel:"name",filter:"",placeholder:"Select a Page",class:"w-full",loading:c.value},null,8,["modelValue","options","loading"])])}}},K1=Fn("currentUser",{state:()=>({user:{}}),actions:{setCurrentUser(e){this.user=e}},getters:{getCurrentUser:e=>e.user}}),Pe=o.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Ee=o.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function G1(){const e=m=>{if(Pe.menuMode=m,m==="static"&&(Ee.staticMenuDesktopInactive=!1),m==="horizontal")if(Pe.darkTheme){if(!document.startViewTransition){Pe.menuTheme="dark";return}document.startViewTransition(()=>Pe.menuTheme="dark")}else{if(!document.startViewTransition){Pe.menuTheme="light";return}document.startViewTransition(()=>Pe.menuTheme="light")}},t=m=>{Ee.activeMenuItem=m.value||m},n=()=>{Pe.menuMode==="overlay"&&(Ee.overlayMenuActive=!Ee.overlayMenuActive),window.innerWidth>991?Ee.staticMenuDesktopInactive=!Ee.staticMenuDesktopInactive:Ee.staticMenuMobileActive=!Ee.staticMenuMobileActive},r=()=>{a.value&&(Ee.overlayMenuActive=!1,Ee.overlaySubmenuActive=!1,Ee.staticMenuMobileActive=!1,Ee.menuHoverActive=!1,Ee.configSidebarVisible=!1),Ee.configSidebarVisible=!Ee.configSidebarVisible},a=o.computed(()=>Ee.overlayMenuActive||Ee.staticMenuMobileActive||Ee.overlaySubmenuActive),i=o.computed(()=>window.innerWidth>991),l=o.computed(()=>Pe.menuMode==="slim"),c=o.computed(()=>Pe.menuMode==="slim-plus"),u=o.computed(()=>Pe.menuMode==="horizontal"),s=o.computed(()=>Pe.menuMode==="overlay"),d=o.computed(()=>Pe.darkTheme),f=o.computed(()=>Pe.primary),p=o.computed(()=>Pe.surface);return{layoutConfig:Pe,layoutState:Ee,getPrimary:f,getSurface:p,isDarkTheme:d,setMenuMode:e,toggleMenu:n,isSidebarActive:a,setActiveMenuItem:t,toggleConfigSidebar:r,isSlim:l,isSlimPlus:c,isHorizontal:u,isDesktop:i,isOverlay:s}}var Y1={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},Q1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},J1={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},X1={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},Z1={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},ek={root:{borderRadius:"{content.border.radius}"}},tk={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},nk={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},ok={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},rk={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},ak={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},ik={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},lk={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},sk={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},ck={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},dk={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},uk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},fk={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},pk={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},mk={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},gk={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},hk={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},bk={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},yk={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},kk={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},wk={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},vk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},xk={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Ck={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Sk={icon:{color:"{form.field.icon.color}"}},Ek={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},Bk={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},$k={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Nk={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},Vk={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},Ok={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},Tk={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},Ik={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},Pk={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},Rk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Fk={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},Dk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},Ak={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Lk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},_k={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},zk={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},Mk={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},jk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},Uk={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Hk={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},Wk={root:{outline:{width:"2px",color:"{content.background}"}}},qk={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},Kk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},Gk={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},Yk={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},Qk={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Jk={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},Xk={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},Zk={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},ew={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},tw={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},nw={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},ow={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},rw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},aw={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},iw={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},lw={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},sw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},cw={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},dw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},uw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},fw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},pw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},mw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},gw={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},hw={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},bw={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},yw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},kw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},ww={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},vw={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},xw={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},Cw={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},Sw={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},Ew={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},Bw={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},$w={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},Nw={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Vw={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cs(Object(n),!0).forEach(function(r){Ow(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ow(e,t,n){return(t=Tw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tw(e){var t=Iw(e,"string");return In(t)=="symbol"?t:t+""}function Iw(e,t){if(In(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(In(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pw=Ss(Ss({},Z1),{},{components:{accordion:Y1,autocomplete:Q1,avatar:J1,badge:X1,blockui:ek,breadcrumb:tk,button:nk,datepicker:mk,card:ok,carousel:rk,cascadeselect:ak,checkbox:ik,chip:lk,colorpicker:sk,confirmdialog:ck,confirmpopup:dk,contextmenu:uk,dataview:pk,datatable:fk,dialog:gk,divider:hk,dock:bk,drawer:yk,editor:kk,fieldset:wk,fileupload:vk,iftalabel:Ek,floatlabel:xk,galleria:Ck,iconfield:Sk,image:Bk,imagecompare:$k,inlinemessage:Nk,inplace:Vk,inputchips:Ok,inputgroup:Tk,inputnumber:Ik,inputotp:Pk,inputtext:Rk,knob:Fk,listbox:Dk,megamenu:Ak,menu:Lk,menubar:_k,message:zk,metergroup:Mk,multiselect:jk,orderlist:Uk,organizationchart:Hk,overlaybadge:Wk,popover:Jk,paginator:qk,password:Yk,panel:Kk,panelmenu:Gk,picklist:Qk,progressbar:Xk,progressspinner:Zk,radiobutton:ew,rating:tw,scrollpanel:ow,select:rw,selectbutton:aw,skeleton:iw,slider:lw,speeddial:sw,splitter:dw,splitbutton:cw,stepper:uw,steps:fw,tabmenu:pw,tabs:mw,tabview:gw,textarea:yw,tieredmenu:kw,tag:hw,terminal:bw,timeline:ww,togglebutton:xw,toggleswitch:Cw,tree:Bw,treeselect:$w,treetable:Nw,toast:vw,toolbar:Sw,virtualscroller:Vw},directives:{tooltip:Ew,ripple:nw}});function Rw(){const{layoutState:e,layoutConfig:t,setMenuMode:n,isDarkTheme:r}=G1(),a={Aura:Pw};o.ref(Object.keys(a));const i=o.ref(t.preset);o.ref(t.darkTheme),o.ref(t.menuMode),o.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const l=o.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),c=o.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function u(){if(!document.startViewTransition){s();return}document.startViewTransition(()=>s())}function s(){t.darkTheme=!t.darkTheme,t.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function d(){const g=l.value.find(h=>h.name===t.primary);if(g.name==="noir"){const h=[50,100,200,300,400,500,600,700,800,900,950],b={};return h.forEach(y=>{b[y]=`{surface.${y}}`}),{semantic:{primary:b,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:g.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(g){var h;if((h=g.semantic)!=null&&h.primary){const b=g.semantic.primary[500];document.documentElement.style.setProperty("--p-button-primary-background",b),document.documentElement.style.setProperty("--p-button-primary-border-color",b)}}function p(g,h){let b;if(g==="primary"){if(b=l.value.find(y=>y.name===h),!b)return;t.primary=b.name,f({semantic:{primary:b.palette}})}if(g==="surface"){if(b=c.value.find(y=>y.name===h),!b)return;t.surface=b.name,Tg(b.palette)}}function m(){var b;t.preset=i.value;const g=a[i.value],h=(b=c.value.find(y=>y.name===t.surface))==null?void 0:b.palette;Yi().preset(g).preset(d()).surfacePalette(h).use({useDefaultOptions:!0})}return{toggleDarkMode:u,updateColors:p,onPresetChange:m}}function Fw(){const e=new Fe;return{getEntityRecord:async(n,r,a=!1)=>{var i;try{const l=await e.getRecord(n,r,a);if((l==null?void 0:l.success)===!1)throw l;return(i=l==null?void 0:l.response)==null?void 0:i.result}catch(l){throw l}finally{}}}}function Dw(){const e=new Fe;return{getAllEntityRecords:async(n,r=!1)=>{var a;try{const i=await e.getEntityRecords(n,r);if((i==null?void 0:i.success)===!1)throw i;return(a=i==null?void 0:i.response)==null?void 0:a.result}catch{throw error}finally{}}}}function Aw(){const e=new Fe;return{addEntityRecord:async(n,r,a=!1)=>{var l;const i={dataDefinitions:Object.entries(r).map(([c,u])=>({recordColumnName:c,recordColumnValue:u}))};try{const c=await e.addRecordWithFetch(n,i,a);if((c==null?void 0:c.success)===!1)throw c;return(l=c==null?void 0:c.response)==null?void 0:l.result}catch(c){throw c}}}}function Lw(){const e=new Fe;return{deleteEntityRecord:async(n,r,a=!1)=>{try{const i=await e.deleteRecord(n,r,a);if((i==null?void 0:i.success)===!1)throw i;return i==null?void 0:i.success}catch(i){throw i}finally{}}}}function _w(){const e=new xo;return{externalRestAPICall:async(n,r=!1)=>{var a,i,l;try{n.httpMethod=(a=n.httpMethod)==null?void 0:a.toUpperCase();const c=await e.externalRestAPI(n,r);if((c==null?void 0:c.success)===!1)throw(i=c==null?void 0:c.response)==null?void 0:i.result;return((l=c==null?void 0:c.response)==null?void 0:l.result)??(c==null?void 0:c.response)}catch(c){throw c}finally{}}}}function Es(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getNamedQueryByName:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/named-query/${g}`,h)},updateNamedQuery:async(g,h,b=!1)=>{const y=i();return await r(`/api/app/v1/${y}/named-query/${g}`,h,b)},deleteNamedQuery:async(g,h=!1)=>{const b=i();return await a(`/api/app/v1/${b}/named-query/${g}`,{},h)},getAllNamedQueries:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/named-query`,g)},createNewNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query`,g,h)},getAllNamedQueryNames:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/named-query`,g)},validateNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query/validate`,g,h)},executeNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query/execute`,g,h)}}}function zw(){const e=new Es;return{executeQuery:async(n,r=!1)=>{var a;try{const i=await e.executeNameQuery(n,r);if((i==null?void 0:i.success)===!1)throw i;return(a=i==null?void 0:i.response)==null?void 0:a.result}catch(i){throw i}finally{}}}}function Mw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getThemes:async(f=!1)=>{const p=i();return await t(`/api/app/v1/${p}/theme`,f)},getThemesData:async(f,p=!1)=>(i(),await t(`/api/platform/v1/theme/${f}`,p)),saveTheme:async(f,p=!1)=>{const m=i();return await n(`/api/app/v1/${m}/theme`,f,p)},updateTheme:async(f,p,m=!1)=>{const g=i();return await r(`/api/app/v1/${g}/theme/${f}`,p,m)},deleteTheme:async(f,p=!1)=>{const m=i();return await a(`/api/app/v1/${m}/theme/${f}`,{},p)}}}function jw(){const{get:e}=Ne();return{getPlatformComponents:async(r=!1)=>await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue",r),getComponentTemplates:async(r,a=!1)=>await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${r}&page=0&size=50`,a)}}function Uw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getLayouts:async(m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/content/layout`,m)},getLayout:async(m,g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/layout/${m}`,g)},updateLayout:async(m,g,h,b=!1,y=!1)=>{const w=i(),k=new URLSearchParams;h&&h.trim()!==""&&k.append("tag",h),k.append("saveRevision",b);const v=`/api/app/v1/${w}/content/layout/${m}?${k.toString()}`;return await r(v,g,y)},createLayout:async(m,g,h=!1,b=!1)=>{const y=i(),w=new URLSearchParams;g&&g.trim()!==""&&w.append("tag",g),w.append("saveRevision",h);const k=`/api/app/v1/${y}/content/layout?${w.toString()}`;return await n(k,m,b)},deleteLayout:async(m,g=!1)=>{const h=i();return await a(`/api/app/v1/${h}/content/layout/${m}`,{},g)},getAllLayoutVersions:async(m,g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/layout/${m}/versions`,g)},restoreLayoutVersion:async(m,g,h=!0)=>{const b=i();return await n(`/api/app/v1/${b}/content/layout/${m}/versions/${g}/restore`,{},h)}}}function Hw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getGlobalVars:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/content/globalvars`,p)},addGlobalVars:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/content/globalvars`,p,m)},deleteVars:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/content/globalvars/${p}`,{},m)},getGlobalActions:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/content/globalaction`,p)},addGlobalAction:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/content/globalaction`,p,m)},deleteAction:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/content/globalaction/${p}`,{},m)}}}function Ww(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getConnectionByID:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}`,b)},createConnection:async(h,b=!1)=>{const y=i();return await n(`/api/app/v1/${y}/external-connection`,h,b)},updateConnection:async(h,b,y=!1)=>{const w=i();return await r(`/api/app/v1/${w}/external-connection/${h}`,b,y)},deleteConnection:async(h,b=!1)=>{const y=i();return await a(`/api/app/v1/${y}/external-connection/${h}`,{},b)},getAllConnections:async(h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/external-connection`,h)},initiateAuthorization:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}/authorize`,b)},testConnection:async(h,b=!1)=>await n("/api/platform/v1/datasource/connection",h,b),addConnectionResource:async(h,b,y=!1)=>{const w=i();return await n(`/api/app/v1/${w}/external-connection/${h}/import-openapi`,b,y)},getConnectionResource:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}/resource`,b)}}}const qw={style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999}},Kw={style:{"background-color":"white","border-radius":"0.5rem","min-width":"320px","box-shadow":"0 4px 12px rgba(0, 0, 0, 0.1)",overflow:"hidden"}},Gw={style:{"font-size":"1.125rem","font-weight":"600"}},Yw={style:{padding:"1rem","font-size":"1rem",color:"#1f2937"}},Qw={style:{padding:"0.75rem 1rem",display:"flex","justify-content":"flex-end",gap:"0.5rem","border-top":"1px solid #e5e7eb"}},Jw={__name:"confirm-dialog",props:{type:{type:String,default:"info"},title:{type:String,required:!0},message:{type:String,required:!0},onSuccess:{type:Function,required:!0},onCancel:{type:Function,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function a(){n.onSuccess(),r("update:modelValue",!1)}function i(){n.onCancel(),r("update:modelValue",!1)}const l=o.computed(()=>{let u="#2563eb";switch(n.type){case"success":u="#16a34a";break;case"warning":u="#f97316";break;case"danger":u="#dc2626";break}return{padding:"0.375rem 1rem",borderRadius:"0.375rem",backgroundColor:u,color:"white",fontWeight:600,border:"none",cursor:"pointer"}}),c=o.computed(()=>{let u="#eff6ff",s="1px solid #dbeafe";switch(n.type){case"success":u="#ecfdf5",s="1px solid #d1fae5";break;case"warning":u="#fff7ed",s="1px solid #fde68a";break;case"danger":u="#fef2f2",s="1px solid #fecaca";break}return{backgroundColor:u,borderBottom:s,padding:"1rem"}});return(u,s)=>(o.openBlock(),o.createElementBlock("div",qw,[o.createElementVNode("div",Kw,[o.createElementVNode("div",{style:o.normalizeStyle(c.value)},[o.createElementVNode("span",Gw,o.toDisplayString(e.title),1)],4),o.createElementVNode("div",Yw,[o.createElementVNode("span",null,o.toDisplayString(e.message),1)]),o.createElementVNode("div",Qw,[o.createElementVNode("button",{style:{padding:"0.375rem 1rem","border-radius":"0.375rem","background-color":"#f3f4f6",color:"#1f2937","font-weight":"500",border:"none"},onClick:i}," Cancel "),o.createElementVNode("button",{style:o.normalizeStyle(l.value),onClick:a}," OK ",4)])])]))}};function Xw({type:e="danger",title:t="Warning",message:n="All the changes you made will be lost, do you wish to continue?",onSuccess:r=()=>{},onCancel:a=()=>{}}={}){console.log("📣 openGlobalDialog called"),console.log({typppessss:e,title:t,message:n,onSuccess:r,onCancel:a});const i=o.ref(!0),l=document.createElement("div");document.body.appendChild(l);const c=o.createApp({setup(){function u(){r(),d()}function s(){a(),d()}function d(){i.value=!1,setTimeout(()=>{c.unmount(),l.parentNode===document.body&&document.body.removeChild(l)},300)}return()=>o.h(Jw,{modelValue:i.value,"onUpdate:modelValue":f=>{i.value=f,f||d()},type:e,title:t,message:n,onSuccess:u,onCancel:s})}});c.mount(l)}function Zw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getAssets:async(d,f=0,p=50,m=!1)=>{const g=i(),h=new URLSearchParams;return h.append("page",f),h.append("size",p),d&&h.append("keyword",d),await t(`/api/app/v1/${g}/assets/search?${h.toString()}`,m)},addExternalLink:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/assets/external`,d,f)},uploadFile:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/assets/upload`,d,f)},deleteAsset:async(d,f=!1)=>{const p=i();return await a(`/api/app/v1/${p}/assets/${d}`,{},f)}}}function ev(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getExtrenalSystemByID:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/external-system/${p}`,m)},createExternalSystem:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/external-system`,p,m)},updateExternalSystem:async(p,m,g=!1)=>{const h=i();return await r(`/api/app/v1/${h}/external-system/${p}`,m,g)},deleteExternalSystem:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/external-system/${p}`,{},m)},getAllExternalSystem:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/external-connection/category`,p)},searchExtrenalSystemByName:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/external-system/search${p}`,m)}}}function tv(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getDataBaseSchema:async(d,f=!1)=>{const p=i(),m=new URLSearchParams;return m.append("connectionId",d),await t(`/api/app/v1/${p}/database/introspect?${m.toString()}`,f)},importSchema:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/database/import-schema`,d,f)},getConnectionSchema:async(d,f=!1)=>{const p=i(),m=new URLSearchParams;return m.append("connectionId",d),await t(`/api/app/v1/${p}/database/schema?${m.toString()}`,f)},saveSchema:async(d,f,p=!1)=>{const m=i(),g=new URLSearchParams;return g.append("connectionId",d),g.append("schemaName",f),await n(`/api/app/v1/${m}/database/schema?${g.toString()}`,p)}}}function nv(){me();const{get:e,post:t,put:n,del:r}=Ne();return{getSubUsers:async(m=!1)=>await e("/api/platform/v1/user/sub-users",m),createSubUser:async(m,g=!1)=>await t("/api/platform/v1/user",m,g),inviteSubUser:async(m,g)=>await t("/api/platform/v1/user/invitation",m,g),acceptSubUser:async(m,g)=>await t(`/api/platform/v1/user/invitation/accept?token=${m.token}`,m,g),editSubUser:async(m,g,h)=>await n(`/api/platform/v1/user/${m}`,g,h),deleteSubUser:async(m,g)=>await r(`/api/platform/v1/user/${m}`,{},g),setSubuserStatus:async(m,g,h)=>await n(`/api/platform/v1/user/${m}/status`,g,h),getAllPlatFormRoles:async(m=!1)=>await e("/api/platform/v1/roles",m),getPlatFormRolePermissions:async(m,g=!1)=>await e(`/api/platform/v1/role/${m}/permission`,g)}}const ov={install(e,t){e.component("CSEntityGrid",lr),e.component("csentitygrid",lr),e.component("CSEntityList",Ii),e.component("csentitylist",Ii),e.component("CSFieldExpression",Tl),e.component("csfieldexpression",Tl),e.component("CSEntity360View",Ti),e.component("csentity360view",Ti),e.component("CSEntityListing",Pi),e.component("csentitylisting",Pi),e.component("CSEntityListingTile",Ri),e.component("csentitylistingtile",Ri),e.component("CSEntityListingCarousel",bl),e.component("csentitylistingcarousel",bl),e.component("CSEntitySelection",rs),e.component("csentityselection",rs),e.component("CSEntitySelectionWithRest",as),e.component("csentityselectionwithrest",as),e.component("CSEntityExplorer",Pl),e.component("csentityexplorer",Pl),e.component("CSMenu",Dl),e.component("csmenu",Dl),e.component("CSTextInput",Al),e.component("cstextinput",Al),e.component("CSButton",Ll),e.component("csbutton",Ll),e.component("CSStateText",_l),e.component("csstatetext",_l),e.component("CSRangeInput",zl),e.component("csrangeinput",zl),e.component("CSSelector",ns),e.component("csselector",ns),e.component("CSDynamicSelection",On),e.component("csdynamicselection",On),e.component("CSEntityRecordSelection",os),e.component("csentityrecordselection",os),e.component("CSMenuSelection",is),e.component("csmenuSelection",is),e.component("CSlabel",ds),e.component("cslabel",ds),e.component("CSLogin",gs),e.component("cslogin",gs),e.component("CSRolesSelection",ss),e.component("csrolesselection",ss),e.component("CSPermissionSelection",cs),e.component("cspermissionselection",cs),e.component("CSIconSelection",hs),e.component("csiconselection",hs),e.component("CSIconComponent",bs),e.component("csiconcomponent",bs),e.component("ClassesSelection",ws),e.component("classesselection",ws),e.component("CSPageSelection",xs),e.component("cspageselection",xs),e.component("CSGlobalLoader",ys),e.component("csgloballoader",ys),e.component("CSInputText",Ba),e.component("csinputtext",Ba),e.component("CSInputNumber",$a),e.component("csinputnumber",$a),e.component("CSToggleButton",Na),e.component("cstogglebutton",Na),e.component("CSRadioButton",Va),e.component("csradiobutton",Va),e.component("CSColorPicker",Oa),e.component("cscolorpicker",Oa),e.component("CSDatePicker",Ta),e.component("csdatepicker",Ta),e.component("CSTextArea",Ia),e.component("cstextarea",Ia),e.component("CSInputPassword",Pa),e.component("csinputpassword",Pa),e.component("CSRangeDatePicker",Ra),e.component("csrangedatepicker",Ra),e.component("CSInputKnob",Fa),e.component("csinputknob",Fa),e.component("CSInputMask",Da),e.component("csinputmask",Da),e.component("CSInputOtp",Aa),e.component("csinputotp",Aa),e.component("CSInputRating",La),e.component("csinputrating",La),e.component("CSInputSlider",_a),e.component("csinputslider",_a),e.component("CSDashboardCard",Ea),e.component("csdashboardcard",Ea)}};ne.default=ov,ne.openGlobalDialog=Xw,ne.useAddEntityRecord=Aw,ne.useAssetsService=Zw,ne.useClassesService=ks,ne.useComponentService=jw,ne.useConnectionService=Ww,ne.useCurrentUser=K1,ne.useDatabaseService=tv,ne.useDeleteEntityRecord=Lw,ne.useEntitiesStore=Il,ne.useEntityRecordService=Fe,ne.useEntityService=kr,ne.useExecuteQuery=zw,ne.useExternalRestAPI=_w,ne.useExternalRestService=xo,ne.useExternalSystemService=ev,ne.useGetAllEntityRecords=Dw,ne.useGetEntityRecord=Fw,ne.useGlobalConfigsStore=me,ne.useGlobalService=Hw,ne.useHttpClient=Ne,ne.useLayoutService=Uw,ne.useLoadingStore=Kn,ne.useMenuService=Rl,ne.useNamedQueryService=Es,ne.usePageService=vs,ne.useSecurityService=Ca,ne.useThemeConfig=Rw,ne.useThemeService=Mw,ne.useUserService=nv,Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1539
|
+
`)},Jy={root:function(t){var n=t.instance,r=t.props;return["p-checkbox p-component",{"p-checkbox-checked":n.checked,"p-disabled":r.disabled,"p-invalid":n.$pcCheckboxGroup?n.$pcCheckboxGroup.$invalid:n.$invalid,"p-variant-filled":n.$variant==="filled","p-checkbox-sm p-inputfield-sm":r.size==="small","p-checkbox-lg p-inputfield-lg":r.size==="large"}]},box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},Xy=be.extend({name:"checkbox",theme:Qy,classes:Jy}),Zy={name:"BaseCheckbox",extends:So,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Xy,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}};function e1(e){return r1(e)||o1(e)||n1(e)||t1()}function t1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1540
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n1(e,t){if(e){if(typeof e=="string")return Er(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Er(e,t):void 0}}function o1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r1(e){if(Array.isArray(e))return Er(e)}function Er(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Br={name:"Checkbox",extends:Zy,inheritAttrs:!1,emits:["change","focus","blur","update:indeterminate"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){var n=t==="root"?this.ptmi:this.ptm;return n(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var n=this;if(!this.disabled&&!this.readonly){var r=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value,a;this.binary?a=this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?a=r.filter(function(i){return!lo(i,n.value)}):a=r?[].concat(e1(r),[this.value]):[this.value],this.d_indeterminate&&(this.d_indeterminate=!1,this.$emit("update:indeterminate",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(a,t):this.writeValue(a,t),this.$emit("change",t)}},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){var n,r;this.$emit("blur",t),(n=(r=this.formField).onBlur)===null||n===void 0||n.call(r,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return this.d_indeterminate?!1:this.binary?t===this.trueValue:Yu(this.value,t)}},components:{CheckIcon:wr,MinusIcon:ms}},a1=["data-p-checked","data-p-indeterminate","data-p-disabled"],i1=["id","value","name","checked","tabindex","disabled","readonly","required","aria-labelledby","aria-label","aria-invalid","aria-checked"];function l1(e,t,n,r,a,i){var l=o.resolveComponent("CheckIcon"),c=o.resolveComponent("MinusIcon");return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},i.getPTOptions("root"),{"data-p-checked":i.checked,"data-p-indeterminate":a.d_indeterminate||void 0,"data-p-disabled":e.disabled}),[o.createElementVNode("input",o.mergeProps({id:e.inputId,type:"checkbox",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:e.value,name:i.groupName,checked:i.checked,tabindex:e.tabindex,disabled:e.disabled,readonly:e.readonly,required:e.required,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-invalid":e.invalid||void 0,"aria-checked":a.d_indeterminate?"mixed":void 0,onFocus:t[0]||(t[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:t[1]||(t[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onChange:t[2]||(t[2]=function(){return i.onChange&&i.onChange.apply(i,arguments)})},i.getPTOptions("input")),null,16,i1),o.createElementVNode("div",o.mergeProps({class:e.cx("box")},i.getPTOptions("box")),[o.renderSlot(e.$slots,"icon",{checked:i.checked,indeterminate:a.d_indeterminate,class:o.normalizeClass(e.cx("icon"))},function(){return[i.checked?(o.openBlock(),o.createBlock(l,o.mergeProps({key:0,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):a.d_indeterminate?(o.openBlock(),o.createBlock(c,o.mergeProps({key:1,class:e.cx("icon")},i.getPTOptions("icon")),null,16,["class"])):o.createCommentVNode("",!0)]})],16)],16,a1)}Br.render=l1;const s1={class:"max-w-sm mx-auto p-6 bg-white shadow rounded"},c1=["action"],d1=["value"],u1=["value"],f1={key:0,type:"hidden",name:"rememberMe",value:"on"},p1={class:"mb-4"},m1={class:"mb-4"},g1={class:"flex items-center mb-6"},h1={class:"mt-4 text-center text-sm"},b1=["action"],y1=["value"],k1=["value"],w1=["value"],v1={key:0,type:"hidden",name:"agreeToTerms",value:"on"},x1={class:"mb-4"},C1={class:"mb-4"},S1={class:"mb-4"},E1={class:"flex items-center mb-6"},B1={class:"mt-4 text-center text-sm"},gs={__name:"SecurityLogin",props:{initialMode:{type:String,default:"login"},rememberMe:{type:Boolean,default:!1},agreeToTerms:{type:Boolean,default:!1},titleLogin:{type:String,default:"Login"},titleSignup:{type:String,default:"Sign Up"},titlePosition:{type:String,default:"center"},buttonSize:{type:String,default:"large"},inputSize:{type:String,default:"small"},loginButtonType:{type:String,default:"success"},signupButtonType:{type:String,default:"success"},formSubmitUrls:{type:Object,default:()=>({login:"/login",signup:"/signup"})}},setup(e){const t=e,n=o.ref(t.initialMode),r=o.reactive({username:"",password:"",rememberMe:t.rememberMe}),a=o.reactive({fullName:"",email:"",password:"",agreeToTerms:t.agreeToTerms}),i=o.computed(()=>{switch(t.titlePosition){case"left":return"text-left";case"right":return"text-right";case"center":default:return"text-center"}}),l=o.computed(()=>t.buttonSize==="medium"?{}:{size:t.buttonSize}),c=o.computed(()=>t.inputSize==="medium"?{}:{size:t.inputSize});return(u,s)=>(o.openBlock(),o.createElementBlock("div",s1,[o.withDirectives(o.createElementVNode("div",null,[o.createElementVNode("h2",{class:o.normalizeClass(["text-xl font-bold mb-4",i.value])},o.toDisplayString(e.titleLogin),3),o.createElementVNode("form",{action:e.formSubmitUrls.login,method:"POST"},[o.createElementVNode("input",{type:"hidden",name:"username",value:r.username},null,8,d1),o.createElementVNode("input",{type:"hidden",name:"password",value:r.password},null,8,u1),r.rememberMe?(o.openBlock(),o.createElementBlock("input",f1)):o.createCommentVNode("",!0),o.createElementVNode("div",p1,[s[9]||(s[9]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Username",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:r.username,"onUpdate:modelValue":s[0]||(s[0]=d=>r.username=d),class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",m1,[s[10]||(s[10]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Password",-1)),o.createVNode(o.unref(Cr),o.mergeProps({modelValue:r.password,"onUpdate:modelValue":s[1]||(s[1]=d=>r.password=d),class:"w-full",inputClass:"w-full"},c.value,{feedback:!1,toggleMask:"",required:""}),null,16,["modelValue"])]),o.createElementVNode("div",g1,[o.createVNode(o.unref(Br),{modelValue:r.rememberMe,"onUpdate:modelValue":s[2]||(s[2]=d=>r.rememberMe=d),inputId:"rememberMe",binary:!0,class:"mr-2"},null,8,["modelValue"]),s[11]||(s[11]=o.createElementVNode("label",{for:"rememberMe",class:"text-sm text-gray-600 cursor-pointer"},"Remember Me",-1))]),o.createVNode(o.unref(yo),o.mergeProps({type:"submit",label:"Login",severity:e.loginButtonType},l.value,{class:"w-full"}),null,16,["severity"]),o.createElementVNode("div",h1,[s[12]||(s[12]=o.createElementVNode("span",{class:"text-gray-600"},"Don't have an account? ",-1)),o.createElementVNode("a",{href:"#",class:"text-blue-500 hover:text-blue-600 font-medium",onClick:s[3]||(s[3]=o.withModifiers(d=>n.value="signup",["prevent"]))},"Sign up")])],8,c1)],512),[[o.vShow,n.value==="login"]]),o.withDirectives(o.createElementVNode("div",null,[o.createElementVNode("h2",{class:o.normalizeClass(["text-xl font-bold mb-4",i.value])},o.toDisplayString(e.titleSignup),3),o.createElementVNode("form",{action:e.formSubmitUrls.signup,method:"POST"},[o.createElementVNode("input",{type:"hidden",name:"fullName",value:a.fullName},null,8,y1),o.createElementVNode("input",{type:"hidden",name:"email",value:a.email},null,8,k1),o.createElementVNode("input",{type:"hidden",name:"password",value:a.password},null,8,w1),a.agreeToTerms?(o.openBlock(),o.createElementBlock("input",v1)):o.createCommentVNode("",!0),o.createElementVNode("div",x1,[s[13]||(s[13]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Full Name",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:a.fullName,"onUpdate:modelValue":s[4]||(s[4]=d=>a.fullName=d),class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",C1,[s[14]||(s[14]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Email",-1)),o.createVNode(o.unref(Jt),o.mergeProps({modelValue:a.email,"onUpdate:modelValue":s[5]||(s[5]=d=>a.email=d),type:"email",class:"w-full"},c.value,{required:""}),null,16,["modelValue"])]),o.createElementVNode("div",S1,[s[15]||(s[15]=o.createElementVNode("label",{class:"block mb-1 text-sm font-medium text-gray-700"},"Password",-1)),o.createVNode(o.unref(Cr),o.mergeProps({modelValue:a.password,"onUpdate:modelValue":s[6]||(s[6]=d=>a.password=d),class:"w-full",inputClass:"w-full"},c.value,{feedback:!1,toggleMask:"",required:""}),null,16,["modelValue"])]),o.createElementVNode("div",E1,[o.createVNode(o.unref(Br),{modelValue:a.agreeToTerms,"onUpdate:modelValue":s[7]||(s[7]=d=>a.agreeToTerms=d),inputId:"agreeToTerms",binary:!0,class:"mr-2",required:""},null,8,["modelValue"]),s[16]||(s[16]=o.createElementVNode("label",{for:"agreeToTerms",class:"text-sm text-gray-600 cursor-pointer"},"I agree to the terms and conditions",-1))]),o.createVNode(o.unref(yo),o.mergeProps({type:"submit",label:"Sign Up",severity:e.signupButtonType},l.value,{class:"w-full"}),null,16,["severity"]),o.createElementVNode("div",B1,[s[17]||(s[17]=o.createElementVNode("span",{class:"text-gray-600"},"Already have an account? ",-1)),o.createElementVNode("a",{href:"#",class:"text-green-500 hover:text-green-600 font-medium",onClick:s[8]||(s[8]=o.withModifiers(d=>n.value="login",["prevent"]))},"Login here")])],8,b1)],512),[[o.vShow,n.value==="signup"]])]))}},$1={class:"flex items-center border border-gray-300 rounded p-2 bg-white"},N1={key:0,class:"dropdown absolute z-10 w-full border border-gray-300 rounded bg-white p-2 max-h-60 overflow-y-auto shadow-lg"},V1={class:"tabs flex gap-2 mb-2"},O1=["onClick"],T1={class:"tabs flex gap-2 mb-3"},I1=["onClick"],P1={key:0,class:"icons grid-cols-4 gap-4"},R1=["onClick"],F1={class:"text-[10px] mt-1 truncate text-gray-700 font-medium"},D1={key:1,class:"text-center text-gray-500 py-4"},A1=100,hs={__name:"IconSelection",props:{modelValue:{type:String,default:null}},emits:["update:modelValue","onChange"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(null),i=o.ref(n.modelValue),l=o.ref(!1),c=o.ref([]),u=o.ref([]),s=["font-awesome","primeicons"],d=["SOLID","REGULAR","FILLED"],f=o.ref(""),p=o.ref(""),m=async()=>{try{const v=new URLSearchParams;i.value&&v.append("keyword",i.value),f.value&&v.append("libraryName",f.value),p.value&&v.append("category",p.value);const R=await(await fetch(`/api/platform/v1/search/icon-library?${v}`)).json();c.value=R.response||[],u.value=c.value.map(E=>({name:E,class:E,library:f.value,category:p.value}))}catch(v){console.error("Error fetching icons:",v),u.value=[]}},g=async()=>{await m(),i.value&&(r("update:modelValue",i.value),r("onChange",i.value))},h=v=>{clearTimeout(k),i.value=v.name,l.value=!1,r("update:modelValue",v.name),r("onChange",v.name)},b=(v,C)=>{v==="library"&&(f.value=C),v==="category"&&(p.value=C),g()},y=v=>{a.value&&!a.value.contains(v.target)&&(l.value=!1)},w=o.computed(()=>u.value.slice(0,A1));o.onMounted(()=>{m(),document.addEventListener("click",y)}),o.onBeforeUnmount(()=>{document.removeEventListener("click",y)});let k;return o.watch(i,()=>{clearTimeout(k),k=setTimeout(g,300)}),o.watch(()=>n.modelValue,v=>{i.value=v}),(v,C)=>(o.openBlock(),o.createElementBlock("div",{class:"icon-selection w-full max-w-md mx-auto relative",ref_key:"iconContainer",ref:a},[o.createElementVNode("div",$1,[i.value?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass(["fa",i.value,"fa-lg","text-gray-600","mr-2"]),style:{"min-width":"20px"}},null,2)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":C[0]||(C[0]=R=>i.value=R),onFocus:C[1]||(C[1]=R=>l.value=!0),type:"text",placeholder:"Search icons...",class:"flex-1 outline-none text-gray-800 placeholder-gray-400"},null,544),[[o.vModelText,i.value]]),C[2]||(C[2]=o.createElementVNode("i",{class:"fas fa-search text-xl text-gray-700"},null,-1))]),l.value?(o.openBlock(),o.createElementBlock("div",N1,[o.createElementVNode("div",V1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(s,R=>o.createElementVNode("button",{key:R,class:o.normalizeClass(["flex-1 p-1 text-sm rounded font-semibold",f.value===R?"bg-blue-500 text-white":"bg-gray-200 text-gray-700"]),onClick:E=>b("library",R)},o.toDisplayString(R),11,O1)),64))]),o.createElementVNode("div",T1,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(d,R=>o.createElementVNode("button",{key:R,class:o.normalizeClass(["flex-1 p-1 text-sm rounded font-semibold capitalize",p.value===R?"bg-blue-500 text-white":"bg-gray-200 text-gray-700"]),onClick:E=>b("category",R)},o.toDisplayString(R),11,I1)),64))]),u.value.length?(o.openBlock(),o.createElementBlock("div",P1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.value,(R,E)=>(o.openBlock(),o.createElementBlock("div",{key:E,class:"icon-item text-center cursor-pointer hover:bg-gray-100 p-2 rounded transition-all",onClick:S=>h(R)},[o.createElementVNode("i",{class:o.normalizeClass([R.name,"text-xl","text-gray-700"])},null,2),o.createElementVNode("div",F1,o.toDisplayString(R.name),1)],8,R1))),128))])):(o.openBlock(),o.createElementBlock("div",D1,"No icons found"))])):o.createCommentVNode("",!0)],512))}},L1={key:1,class:"bg-white text-black-500"},bs=xe({__name:"IconComponent",props:{iconName:{type:String,required:!1}},setup(e){return(t,n)=>e.iconName?(o.openBlock(),o.createElementBlock("i",{key:0,class:o.normalizeClass([e.iconName,"text-xl","text-gray-700"])},null,2)):(o.openBlock(),o.createElementBlock("span",L1,"Please Select Icon from Settings"))}},[["__scopeId","data-v-e95232b1"]]),_1={key:0,class:"global-loader-overlay"},ys=xe({__name:"GlobalLoader",setup(e){const t=Kn(),{loading:n}=Is(t);return(r,a)=>o.unref(n)?(o.openBlock(),o.createElementBlock("div",_1,a[0]||(a[0]=[o.createElementVNode("div",{class:"global-loader-container"},[o.createElementVNode("div",{class:"global-loader-spinner"},[o.createElementVNode("div",{class:"spinner"})]),o.createElementVNode("div",{class:"global-loader-text"},"Loading...")],-1)]))):o.createCommentVNode("",!0)}},[["__scopeId","data-v-a5bed64b"]]);function ks(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getCssClasses:async(c,u,s=!1)=>{const d=i(),f=new URLSearchParams;return u&&f.append("className",u),c&&f.append("category",c),await t(`/api/platform/v1/search/${d}/css-class?${f.toString()}`,s)}}}const z1={class:"flex items-stretch min-h-[2.5rem] p-0 border border-gray-300 rounded-md bg-white cursor-text transition-colors overflow-hidden"},M1={class:"relative flex-1 min-w-[100px] self-center"},j1={class:"flex-shrink-0"},U1={class:"tabs flex flex-wrap gap-2 m-3"},H1={class:"overflow-y-auto flex-1"},W1={key:0,class:"px-3 text-sm py-2 text-gray-500"},q1=["onClick"],ws=xe({__name:"ClassesSelection",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Type to search or add new class"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,a=new ks,i=o.ref(null),l=o.ref(null),c=o.ref(""),u=o.ref(!1),s=o.ref(["All","Custom","Tailwind"]),d=o.ref("All"),f=o.ref([]),p=o.computed({get:()=>n.modelValue||[],set:L=>r("update:modelValue",L)}),m=async()=>{try{let L="";d.value!="All"&&(L=JSON.parse(JSON.stringify(d.value)));const F=await a.getCssClasses(L,c.value,!1);F&&F.response&&(f.value=F.response||[])}catch(L){console.error("Error getting classes:",L.errorMessage)}},g=L=>{d.value=L,m()},h=()=>{m(),u.value||(u.value=!0)},b=()=>{u.value=!0},y=L=>{const F=L==null?void 0:L.trim();if(!F||p.value.includes(F)){c.value="";return}p.value=[...p.value,F],c.value="",u.value=!1,C()},w=L=>{p.value=p.value.filter(F=>F!==L)},k=L=>{y(L),u.value=!1},v=()=>{c.value.trim()&&y(c.value)},C=()=>{o.nextTick(()=>{var F,V,x,B;const L=((V=(F=i.value)==null?void 0:F.$el)==null?void 0:V.querySelector("input"))||((x=i.value)==null?void 0:x.$el)||i.value;(B=L==null?void 0:L.focus)==null||B.call(L)})},R=L=>{L.target===L.currentTarget&&(C(),u.value||b())},E=L=>{L.target.closest(".p-chip-remove-icon")||(C(),u.value||b())},S=L=>{L.target===L.currentTarget&&(C(),u.value||b())},_=L=>{L==null||L.stopPropagation(),u.value=!u.value,u.value&&C()},z=L=>{var F;!((F=l.value)!=null&&F.contains(L.target))&&!L.target.closest(".multi-select-chips-wrapper")&&(u.value=!1)};return o.onMounted(()=>{document.addEventListener("click",z),m()}),o.onBeforeUnmount(()=>{document.removeEventListener("click",z)}),(L,F)=>{const V=o.resolveComponent("Chip"),x=o.resolveComponent("InputText"),B=o.resolveComponent("Button");return o.openBlock(),o.createElementBlock("div",{class:"relative w-full multi-select-chips-wrapper",onClick:S},[o.createElementVNode("div",z1,[o.createElementVNode("div",{class:"flex flex-wrap items-center flex-1 gap-2 p-1 min-h-full",onClick:R},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,($,P)=>(o.openBlock(),o.createBlock(V,{key:`chip-${P}-${$}`,label:$,removable:"",onRemove:H=>w($),onClick:E,class:"m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"},null,8,["label","onRemove"]))),128)),o.createElementVNode("div",M1,[o.createVNode(x,{style:{border:"none"},ref_key:"inputRef",ref:i,modelValue:c.value,"onUpdate:modelValue":F[0]||(F[0]=$=>c.value=$),placeholder:p.value.length===0?e.placeholder:"",onKeydown:o.withKeys(o.withModifiers(v,["prevent"]),["enter"]),onInput:h,onFocus:b,disabled:e.disabled,class:"w-full p-0 border-0 shadow-none focus:ring-0 focus:outline-none focus:shadow-none bg-transparent"},null,8,["modelValue","placeholder","onKeydown","disabled"])])]),o.createElementVNode("div",null,[o.createVNode(B,{style:{"border-radius":"0"},icon:"pi pi-chevron-down",disabled:e.disabled,variant:"text",onClick:o.withModifiers(_,["stop"]),class:"flex-shrink-0 w-10 h-full p-0 m-0 border-0 border-l border-gray-300 hover:bg-gray-100"},null,8,["disabled"])])]),u.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:l,class:"absolute z-50 w-full bg-white border border-gray-300 rounded-md shadow-lg max-h-60 flex flex-col"},[o.createElementVNode("div",j1,[o.createElementVNode("div",U1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,$=>(o.openBlock(),o.createBlock(B,{key:$,size:"small",class:o.normalizeClass(["px-3 py-2 text-sm rounded font-semibold capitalize cursor-pointer whitespace-nowrap"]),onClick:P=>g($),label:$,severity:d.value===$?"info":"secondary"},null,8,["onClick","label","severity"]))),128))])]),o.createElementVNode("div",H1,[f.value.length===0?(o.openBlock(),o.createElementBlock("div",W1," No options found ")):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(f.value,($,P)=>(o.openBlock(),o.createElementBlock("div",{key:`opt-${P}-${$}`,class:"px-3 py-2 text-sm cursor-pointer hover:bg-gray-100",onClick:o.withModifiers(H=>k($),["stop"])},o.toDisplayString($),9,q1))),128))])],512)):o.createCommentVNode("",!0)])}}},[["__scopeId","data-v-101758fe"]]);function vs(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getPage:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/content/page/${g}`,h)},getPages:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/page?page=1&pageSize=50`,g)},createPage:async(g,h,b=!1,y=!1)=>{const w=i(),k=new URLSearchParams;h&&h.trim()!==""&&k.append("tag",h),k.append("saveRevision",b);const v=`/api/app/v1/${w}/content/page?${k.toString()}`;return await n(v,g,y)},updatePage:async(g,h,b,y=!1,w=!1)=>{const k=i(),v=new URLSearchParams;b&&b.trim()!==""&&v.append("tag",b),v.append("saveRevision",y);const C=`/api/app/v1/${k}/content/page/${g}?${v.toString()}`;return await r(C,h,w)},deletePage:async(g,h=!1)=>{const b=i();return await a(`/api/app/v1/${b}/content/page/${g}`,{},h)},generateSinglePage:async(g,h=!0)=>await n("/api/ai/generate/page",g,h),getAllPageVersions:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/content/page/${g}/versions`,h)},restorePageVersion:async(g,h,b=!0)=>{const y=i();return await n(`/api/app/v1/${y}/content/page/${g}/versions/${h}/restore`,{},b)}}}const K1={class:"w-full"},xs={__name:"PageSelection",props:{url:{type:String,default:""}},emits:["page-selected"],setup(e,{emit:t}){const n=e,r=t,a=vs(),i=o.ref([]),l=o.ref(null),c=o.ref(!1),u=async()=>{try{const f=await a.getPages();f&&f.response&&(i.value=f.response,s())}catch(f){console.error("Error fetching pages",f)}finally{}},s=()=>{if(n.url&&i.value.length>0){const f=i.value.find(p=>p.url===n.url);f&&(l.value=f)}},d=f=>{r("page-selected",f)};return o.watch(()=>n.url,f=>{s()}),o.watch(l,f=>{d(f)}),o.onMounted(()=>{u()}),(f,p)=>{const m=o.resolveComponent("Select");return o.openBlock(),o.createElementBlock("div",K1,[o.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=g=>l.value=g),options:i.value,optionLabel:"name",filter:"",placeholder:"Select a Page",class:"w-full",loading:c.value},null,8,["modelValue","options","loading"])])}}},G1=Fn("currentUser",{state:()=>({user:{}}),actions:{setCurrentUser(e){this.user=e}},getters:{getCurrentUser:e=>e.user}}),Pe=o.reactive({preset:"Aura",primary:"emerald",surface:null,darkTheme:!1,menuMode:"slim-plus",menuTheme:"light"}),Ee=o.reactive({staticMenuDesktopInactive:!1,overlayMenuActive:!1,configSidebarVisible:!1,staticMenuMobileActive:!1,menuHoverActive:!1,rightMenuActive:!1,topbarMenuActive:!1,sidebarActive:!1,anchored:!1,activeMenuItem:null,overlaySubmenuActive:!1});function Y1(){const e=m=>{if(Pe.menuMode=m,m==="static"&&(Ee.staticMenuDesktopInactive=!1),m==="horizontal")if(Pe.darkTheme){if(!document.startViewTransition){Pe.menuTheme="dark";return}document.startViewTransition(()=>Pe.menuTheme="dark")}else{if(!document.startViewTransition){Pe.menuTheme="light";return}document.startViewTransition(()=>Pe.menuTheme="light")}},t=m=>{Ee.activeMenuItem=m.value||m},n=()=>{Pe.menuMode==="overlay"&&(Ee.overlayMenuActive=!Ee.overlayMenuActive),window.innerWidth>991?Ee.staticMenuDesktopInactive=!Ee.staticMenuDesktopInactive:Ee.staticMenuMobileActive=!Ee.staticMenuMobileActive},r=()=>{a.value&&(Ee.overlayMenuActive=!1,Ee.overlaySubmenuActive=!1,Ee.staticMenuMobileActive=!1,Ee.menuHoverActive=!1,Ee.configSidebarVisible=!1),Ee.configSidebarVisible=!Ee.configSidebarVisible},a=o.computed(()=>Ee.overlayMenuActive||Ee.staticMenuMobileActive||Ee.overlaySubmenuActive),i=o.computed(()=>window.innerWidth>991),l=o.computed(()=>Pe.menuMode==="slim"),c=o.computed(()=>Pe.menuMode==="slim-plus"),u=o.computed(()=>Pe.menuMode==="horizontal"),s=o.computed(()=>Pe.menuMode==="overlay"),d=o.computed(()=>Pe.darkTheme),f=o.computed(()=>Pe.primary),p=o.computed(()=>Pe.surface);return{layoutConfig:Pe,layoutState:Ee,getPrimary:f,getSurface:p,isDarkTheme:d,setMenuMode:e,toggleMenu:n,isSidebarActive:a,setActiveMenuItem:t,toggleConfigSidebar:r,isSlim:l,isSlimPlus:c,isHorizontal:u,isDesktop:i,isOverlay:s}}var Q1={root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.125rem 1.125rem 1.125rem"}},J1={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},X1={root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}}},Z1={root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},ek={primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"1px",style:"solid",color:"{primary.color}",offset:"2px",shadow:"none"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.375rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.625rem"},borderRadius:"{border.radius.md}",focusRing:{width:"0",style:"none",color:"transparent",offset:"0",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.25rem 0.25rem",gap:"2px",header:{padding:"0.5rem 1rem 0.25rem 1rem"},option:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}"},optionGroup:{padding:"0.5rem 0.75rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.25rem 0.25rem",gap:"2px"},item:{padding:"0.5rem 0.75rem",borderRadius:"{border.radius.sm}",gap:"0.5rem"},submenuLabel:{padding:"0.5rem 0.75rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"0.75rem",shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.25rem",shadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},navigation:{shadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.50}",borderColor:"{surface.300}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.500}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}}},tk={root:{borderRadius:"{content.border.radius}"}},nk={root:{padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},ok={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.5rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},rk={root:{background:"{content.background}",borderRadius:"{border.radius.xl}",color:"{content.color}",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},body:{padding:"1.25rem",gap:"0.5rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"500"},subtitle:{color:"{text.muted.color}"}},ak={root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"2rem",height:"0.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},ik={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},lk={root:{borderRadius:"{border.radius.sm}",width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}}},sk={root:{borderRadius:"16px",paddingX:"0.75rem",paddingY:"0.5rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},ck={root:{transitionDuration:"{transition.duration}"},preview:{width:"1.5rem",height:"1.5rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},dk={icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},uk={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},fk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},pk={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},mk={root:{borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},header:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"}},gk={root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},title:{gap:"0.5rem",fontWeight:"500"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.5rem 0 0 0"},weekDay:{padding:"0.25rem",fontWeight:"500",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2rem",height:"2rem",borderRadius:"50%",padding:"0.25rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},monthView:{margin:"0.5rem 0 0 0"},month:{padding:"0.375rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.5rem 0 0 0"},year:{padding:"0.375rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},hk={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},bk={root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},vertical:{margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}}},yk={root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},kk={root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},wk={toolbar:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"}},vk={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.5rem 0.75rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"}},xk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"0 1.125rem 1.125rem 1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"}},Ck={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.25rem"}},in:{input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},Sk={root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{background:"{content.background}",padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},Ek={icon:{color:"{form.field.icon.color}"}},Bk={root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.5rem",paddingBottom:"{form.field.padding.y}"}},$k={root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Nk={handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Vk={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}}},Ok={root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},Tk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},Ik={addon:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.5rem",minWidth:"2.5rem"}},Pk={root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}}},Rk={root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},Fk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},Dk={root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},Ak={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},Lk={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},_k={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},zk={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"1.75rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},Mk={root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.5rem 0.75rem",gap:"0.5rem",sm:{padding:"0.375rem 0.625rem"},lg:{padding:"0.625rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.125rem",sm:{size:"1rem"},lg:{size:"1.25rem"}},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},jk={root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.5rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},Uk={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},Hk={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Wk={root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"0.75rem 1rem",toggleablePadding:"0.75rem 1rem 1.25rem 1rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},qk={root:{outline:{width:"2px",color:"{content.background}"}}},Kk={root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},Gk={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},header:{background:"transparent",color:"{text.color}",padding:"1.125rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},toggleableHeader:{padding:"0.375rem 1.125rem"},title:{fontWeight:"600"},content:{padding:"0 1.125rem 1.125rem 1.125rem"},footer:{padding:"0 1.125rem 1.125rem 1.125rem"}},Yk={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"{content.border.radius}",first:{borderWidth:"1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},Qk={meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.5rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},Jk={root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},Xk={root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},Zk={root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.25rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"}},ew={colorScheme:{light:{root:{"color.1":"{red.500}","color.2":"{blue.500}","color.3":"{green.500}","color.4":"{yellow.500}"}},dark:{root:{"color.1":"{red.400}","color.2":"{blue.400}","color.3":"{green.400}","color.4":"{yellow.400}"}}}},tw={root:{width:"1.25rem",height:"1.25rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},icon:{size:"0.75rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.5rem"},lg:{size:"1rem"}}},nw={root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},ow={colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}},rw={root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.100}"}},dark:{bar:{background:"{surface.800}"}}}},aw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},emptyMessage:{padding:"{list.option.padding}"}},iw={root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},lw={root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},sw={root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"20px",height:"20px",borderRadius:"50%",background:"{content.border.color}",hoverBackground:"{content.border.color}",content:{borderRadius:"50%",hoverBackground:"{content.background}",width:"16px",height:"16px",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},cw={root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},dw={root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},uw={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},fw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},pw={root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},mw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},item:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"}},gw={root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},activeBar:{height:"1px",bottom:"-1px",background:"{primary.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},hw={root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},bw={root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.100}",color:"{primary.700}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.100}",color:"{green.700}"},info:{background:"{sky.100}",color:"{sky.700}"},warn:{background:"{orange.100}",color:"{orange.700}"},danger:{background:"{red.100}",color:"{red.700}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"color-mix(in srgb, {primary.500}, transparent 84%)",color:"{primary.300}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.300}"},info:{background:"color-mix(in srgb, {sky.500}, transparent 84%)",color:"{sky.300}"},warn:{background:"color-mix(in srgb, {orange.500}, transparent 84%)",color:"{orange.300}"},danger:{background:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.300}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},yw={root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},kw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},ww={root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},vw={event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{content.border.color}",content:{borderRadius:"50%",size:"0.375rem",background:"{primary.color}",insetShadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"}},eventConnector:{color:"{content.border.color}",size:"2px"}},xw={root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},icon:{size:"1.125rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"1.75rem",height:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}}},Cw={root:{padding:"0.5rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.375rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.625rem 1.25rem"}},icon:{disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedShadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)"},colorScheme:{light:{root:{background:"{surface.100}",checkedBackground:"{surface.100}",hoverBackground:"{surface.100}",borderColor:"{surface.100}",color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}",checkedBorderColor:"{surface.100}"},content:{checkedBackground:"{surface.0}"},icon:{color:"{surface.500}",hoverColor:"{surface.700}",checkedColor:"{surface.900}"}},dark:{root:{background:"{surface.950}",checkedBackground:"{surface.950}",hoverBackground:"{surface.950}",borderColor:"{surface.950}",color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}",checkedBorderColor:"{surface.950}"},content:{checkedBackground:"{surface.800}"},icon:{color:"{surface.400}",hoverColor:"{surface.300}",checkedColor:"{surface.0}"}}}},Sw={root:{width:"2.5rem",height:"1.5rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},Ew={root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"}},Bw={root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},$w={root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.25rem 0.5rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},Nw={root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},Vw={root:{transitionDuration:"{transition.duration}"},header:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},headerCell:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},columnTitle:{fontWeight:"600"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"600"},footer:{background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},Ow={loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}};function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cs(Object(n),!0).forEach(function(r){Tw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tw(e,t,n){return(t=Iw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iw(e){var t=Pw(e,"string");return In(t)=="symbol"?t:t+""}function Pw(e,t){if(In(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(In(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rw=Ss(Ss({},ek),{},{components:{accordion:Q1,autocomplete:J1,avatar:X1,badge:Z1,blockui:tk,breadcrumb:nk,button:ok,datepicker:gk,card:rk,carousel:ak,cascadeselect:ik,checkbox:lk,chip:sk,colorpicker:ck,confirmdialog:dk,confirmpopup:uk,contextmenu:fk,dataview:mk,datatable:pk,dialog:hk,divider:bk,dock:yk,drawer:kk,editor:wk,fieldset:vk,fileupload:xk,iftalabel:Bk,floatlabel:Ck,galleria:Sk,iconfield:Ek,image:$k,imagecompare:Nk,inlinemessage:Vk,inplace:Ok,inputchips:Tk,inputgroup:Ik,inputnumber:Pk,inputotp:Rk,inputtext:Fk,knob:Dk,listbox:Ak,megamenu:Lk,menu:_k,menubar:zk,message:Mk,metergroup:jk,multiselect:Uk,orderlist:Hk,organizationchart:Wk,overlaybadge:qk,popover:Xk,paginator:Kk,password:Qk,panel:Gk,panelmenu:Yk,picklist:Jk,progressbar:Zk,progressspinner:ew,radiobutton:tw,rating:nw,scrollpanel:rw,select:aw,selectbutton:iw,skeleton:lw,slider:sw,speeddial:cw,splitter:uw,splitbutton:dw,stepper:fw,steps:pw,tabmenu:mw,tabs:gw,tabview:hw,textarea:kw,tieredmenu:ww,tag:bw,terminal:yw,timeline:vw,togglebutton:Cw,toggleswitch:Sw,tree:$w,treeselect:Nw,treetable:Vw,toast:xw,toolbar:Ew,virtualscroller:Ow},directives:{tooltip:Bw,ripple:ow}});function Fw(){const{layoutState:e,layoutConfig:t,setMenuMode:n,isDarkTheme:r}=Y1(),a={Aura:Rw};o.ref(Object.keys(a));const i=o.ref(t.preset);o.ref(t.darkTheme),o.ref(t.menuMode),o.ref([{name:"Light",value:!1},{name:"Dark",value:!0}]);const l=o.ref([{name:"noir",palette:{}},{name:"emerald",palette:{500:"#10b981"}},{name:"green",palette:{500:"#22c55e"}},{name:"lime",palette:{500:"#84cc16"}},{name:"orange",palette:{500:"#f97316"}},{name:"amber",palette:{500:"#f59e0b"}},{name:"yellow",palette:{500:"#eab308"}},{name:"teal",palette:{500:"#14b8a6"}},{name:"cyan",palette:{500:"#06b6d4"}},{name:"sky",palette:{500:"#0ea5e9"}},{name:"blue",palette:{500:"#3b82f6"}},{name:"indigo",palette:{500:"#6366f1"}},{name:"violet",palette:{500:"#8b5cf6"}},{name:"purple",palette:{500:"#a855f7"}},{name:"fuchsia",palette:{500:"#d946ef"}},{name:"pink",palette:{500:"#ec4899"}},{name:"rose",palette:{500:"#f43f5e"}}]),c=o.ref([{name:"slate",palette:{500:"#64748b"}},{name:"gray",palette:{500:"#6b7280"}},{name:"zinc",palette:{500:"#71717a"}},{name:"neutral",palette:{500:"#737373"}},{name:"stone",palette:{500:"#78716c"}},{name:"soho",palette:{500:"#8e8f93"}},{name:"viva",palette:{500:"#87898a"}},{name:"ocean",palette:{500:"#828787"}}]);function u(){if(!document.startViewTransition){s();return}document.startViewTransition(()=>s())}function s(){t.darkTheme=!t.darkTheme,t.menuTheme=r.value?"dark":"light",document.documentElement.classList.toggle("app-dark")}function d(){const g=l.value.find(h=>h.name===t.primary);if(g.name==="noir"){const h=[50,100,200,300,400,500,600,700,800,900,950],b={};return h.forEach(y=>{b[y]=`{surface.${y}}`}),{semantic:{primary:b,colorScheme:{light:{primary:{color:"{primary.950}",contrastColor:"#ffffff",hoverColor:"{primary.800}",activeColor:"{primary.700}"},highlight:{background:"{primary.950}",focusBackground:"{primary.700}",color:"#ffffff",focusColor:"#ffffff"}},dark:{primary:{color:"{primary.50}",contrastColor:"{primary.950}",hoverColor:"{primary.200}",activeColor:"{primary.300}"},highlight:{background:"{primary.50}",focusBackground:"{primary.300}",color:"{primary.950}",focusColor:"{primary.950}"}}}}}}else return{semantic:{primary:g.palette,colorScheme:{light:{primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"}},dark:{primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"}}}}}}function f(g){var h;if((h=g.semantic)!=null&&h.primary){const b=g.semantic.primary[500];document.documentElement.style.setProperty("--p-button-primary-background",b),document.documentElement.style.setProperty("--p-button-primary-border-color",b)}}function p(g,h){let b;if(g==="primary"){if(b=l.value.find(y=>y.name===h),!b)return;t.primary=b.name,f({semantic:{primary:b.palette}})}if(g==="surface"){if(b=c.value.find(y=>y.name===h),!b)return;t.surface=b.name,Tg(b.palette)}}function m(){var b;t.preset=i.value;const g=a[i.value],h=(b=c.value.find(y=>y.name===t.surface))==null?void 0:b.palette;Yi().preset(g).preset(d()).surfacePalette(h).use({useDefaultOptions:!0})}return{toggleDarkMode:u,updateColors:p,onPresetChange:m}}function Dw(){const e=new Fe;return{getEntityRecord:async(n,r,a=!1)=>{var i;try{const l=await e.getRecord(n,r,a);if((l==null?void 0:l.success)===!1)throw l;return(i=l==null?void 0:l.response)==null?void 0:i.result}catch(l){throw l}finally{}}}}function Aw(){const e=new Fe;return{getAllEntityRecords:async(n,r=!1)=>{var a;try{const i=await e.getEntityRecords(n,r);if((i==null?void 0:i.success)===!1)throw i;return(a=i==null?void 0:i.response)==null?void 0:a.result}catch{throw error}finally{}}}}function Lw(){const e=new Fe;return{addEntityRecord:async(n,r,a=!1)=>{var l;const i={dataDefinitions:Object.entries(r).map(([c,u])=>({recordColumnName:c,recordColumnValue:u}))};try{const c=await e.addRecordWithFetch(n,i,a);if((c==null?void 0:c.success)===!1)throw c;return(l=c==null?void 0:c.response)==null?void 0:l.result}catch(c){throw c}}}}function _w(){const e=new Fe;return{deleteEntityRecord:async(n,r,a=!1)=>{try{const i=await e.deleteRecord(n,r,a);if((i==null?void 0:i.success)===!1)throw i;return i==null?void 0:i.success}catch(i){throw i}finally{}}}}function zw(){const e=new xo;return{externalRestAPICall:async(n,r=!1)=>{var a,i,l;try{n.httpMethod=(a=n.httpMethod)==null?void 0:a.toUpperCase();const c=await e.externalRestAPI(n,r);if((c==null?void 0:c.success)===!1)throw(i=c==null?void 0:c.response)==null?void 0:i.result;return((l=c==null?void 0:c.response)==null?void 0:l.result)??(c==null?void 0:c.response)}catch(c){throw c}finally{}}}}function Es(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getNamedQueryByName:async(g,h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/named-query/${g}`,h)},updateNamedQuery:async(g,h,b=!1)=>{const y=i();return await r(`/api/app/v1/${y}/named-query/${g}`,h,b)},deleteNamedQuery:async(g,h=!1)=>{const b=i();return await a(`/api/app/v1/${b}/named-query/${g}`,{},h)},getAllNamedQueries:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/named-query`,g)},createNewNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query`,g,h)},getAllNamedQueryNames:async(g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/named-query`,g)},validateNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query/validate`,g,h)},executeNameQuery:async(g,h=!1)=>{const b=i();return await n(`/api/app/v1/${b}/named-query/execute`,g,h)}}}function Mw(){const e=new Es;return{executeQuery:async(n,r=!1)=>{var a;try{const i=await e.executeNameQuery(n,r);if((i==null?void 0:i.success)===!1)throw i;return(a=i==null?void 0:i.response)==null?void 0:a.result}catch(i){throw i}finally{}}}}function jw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getThemes:async(f=!1)=>{const p=i();return await t(`/api/app/v1/${p}/theme`,f)},getThemesData:async(f,p=!1)=>(i(),await t(`/api/platform/v1/theme/${f}`,p)),saveTheme:async(f,p=!1)=>{const m=i();return await n(`/api/app/v1/${m}/theme`,f,p)},updateTheme:async(f,p,m=!1)=>{const g=i();return await r(`/api/app/v1/${g}/theme/${f}`,p,m)},deleteTheme:async(f,p=!1)=>{const m=i();return await a(`/api/app/v1/${m}/theme/${f}`,{},p)}}}function Uw(){const{get:e}=Ne();return{getPlatformComponents:async(r=!1)=>await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue",r),getComponentTemplates:async(r,a=!1)=>await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${r}&page=0&size=50`,a)}}function Hw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getLayouts:async(m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/content/layout`,m)},getLayout:async(m,g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/layout/${m}`,g)},updateLayout:async(m,g,h,b=!1,y=!1)=>{const w=i(),k=new URLSearchParams;h&&h.trim()!==""&&k.append("tag",h),k.append("saveRevision",b);const v=`/api/app/v1/${w}/content/layout/${m}?${k.toString()}`;return await r(v,g,y)},createLayout:async(m,g,h=!1,b=!1)=>{const y=i(),w=new URLSearchParams;g&&g.trim()!==""&&w.append("tag",g),w.append("saveRevision",h);const k=`/api/app/v1/${y}/content/layout?${w.toString()}`;return await n(k,m,b)},deleteLayout:async(m,g=!1)=>{const h=i();return await a(`/api/app/v1/${h}/content/layout/${m}`,{},g)},getAllLayoutVersions:async(m,g=!1)=>{const h=i();return await t(`/api/app/v1/${h}/content/layout/${m}/versions`,g)},restoreLayoutVersion:async(m,g,h=!0)=>{const b=i();return await n(`/api/app/v1/${b}/content/layout/${m}/versions/${g}/restore`,{},h)}}}function Ww(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getGlobalVars:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/content/globalvars`,p)},addGlobalVars:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/content/globalvars`,p,m)},deleteVars:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/content/globalvars/${p}`,{},m)},getGlobalActions:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/content/globalaction`,p)},addGlobalAction:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/content/globalaction`,p,m)},deleteAction:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/content/globalaction/${p}`,{},m)}}}function qw(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getConnectionByID:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}`,b)},createConnection:async(h,b=!1)=>{const y=i();return await n(`/api/app/v1/${y}/external-connection`,h,b)},updateConnection:async(h,b,y=!1)=>{const w=i();return await r(`/api/app/v1/${w}/external-connection/${h}`,b,y)},deleteConnection:async(h,b=!1)=>{const y=i();return await a(`/api/app/v1/${y}/external-connection/${h}`,{},b)},getAllConnections:async(h=!1)=>{const b=i();return await t(`/api/app/v1/${b}/external-connection`,h)},initiateAuthorization:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}/authorize`,b)},testConnection:async(h,b=!1)=>await n("/api/platform/v1/datasource/connection",h,b),addConnectionResource:async(h,b,y=!1)=>{const w=i();return await n(`/api/app/v1/${w}/external-connection/${h}/import-openapi`,b,y)},getConnectionResource:async(h,b=!1)=>{const y=i();return await t(`/api/app/v1/${y}/external-connection/${h}/resource`,b)}}}const Kw={style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999}},Gw={style:{"background-color":"white","border-radius":"0.5rem","min-width":"320px","box-shadow":"0 4px 12px rgba(0, 0, 0, 0.1)",overflow:"hidden"}},Yw={style:{"font-size":"1.125rem","font-weight":"600"}},Qw={style:{padding:"1rem","font-size":"1rem",color:"#1f2937"}},Jw={style:{padding:"0.75rem 1rem",display:"flex","justify-content":"flex-end",gap:"0.5rem","border-top":"1px solid #e5e7eb"}},Xw={__name:"confirm-dialog",props:{type:{type:String,default:"info"},title:{type:String,required:!0},message:{type:String,required:!0},onSuccess:{type:Function,required:!0},onCancel:{type:Function,required:!0},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function a(){n.onSuccess(),r("update:modelValue",!1)}function i(){n.onCancel(),r("update:modelValue",!1)}const l=o.computed(()=>{let u="#2563eb";switch(n.type){case"success":u="#16a34a";break;case"warning":u="#f97316";break;case"danger":u="#dc2626";break}return{padding:"0.375rem 1rem",borderRadius:"0.375rem",backgroundColor:u,color:"white",fontWeight:600,border:"none",cursor:"pointer"}}),c=o.computed(()=>{let u="#eff6ff",s="1px solid #dbeafe";switch(n.type){case"success":u="#ecfdf5",s="1px solid #d1fae5";break;case"warning":u="#fff7ed",s="1px solid #fde68a";break;case"danger":u="#fef2f2",s="1px solid #fecaca";break}return{backgroundColor:u,borderBottom:s,padding:"1rem"}});return(u,s)=>(o.openBlock(),o.createElementBlock("div",Kw,[o.createElementVNode("div",Gw,[o.createElementVNode("div",{style:o.normalizeStyle(c.value)},[o.createElementVNode("span",Yw,o.toDisplayString(e.title),1)],4),o.createElementVNode("div",Qw,[o.createElementVNode("span",null,o.toDisplayString(e.message),1)]),o.createElementVNode("div",Jw,[o.createElementVNode("button",{style:{padding:"0.375rem 1rem","border-radius":"0.375rem","background-color":"#f3f4f6",color:"#1f2937","font-weight":"500",border:"none"},onClick:i}," Cancel "),o.createElementVNode("button",{style:o.normalizeStyle(l.value),onClick:a}," OK ",4)])])]))}};function Zw({type:e="danger",title:t="Warning",message:n="All the changes you made will be lost, do you wish to continue?",onSuccess:r=()=>{},onCancel:a=()=>{}}={}){console.log("📣 openGlobalDialog called"),console.log({typppessss:e,title:t,message:n,onSuccess:r,onCancel:a});const i=o.ref(!0),l=document.createElement("div");document.body.appendChild(l);const c=o.createApp({setup(){function u(){r(),d()}function s(){a(),d()}function d(){i.value=!1,setTimeout(()=>{c.unmount(),l.parentNode===document.body&&document.body.removeChild(l)},300)}return()=>o.h(Xw,{modelValue:i.value,"onUpdate:modelValue":f=>{i.value=f,f||d()},type:e,title:t,message:n,onSuccess:u,onCancel:s})}});c.mount(l)}function ev(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getAssets:async(d,f=0,p=50,m=!1)=>{const g=i(),h=new URLSearchParams;return h.append("page",f),h.append("size",p),d&&h.append("keyword",d),await t(`/api/app/v1/${g}/assets/search?${h.toString()}`,m)},addExternalLink:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/assets/external`,d,f)},uploadFile:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/assets/upload`,d,f)},deleteAsset:async(d,f=!1)=>{const p=i();return await a(`/api/app/v1/${p}/assets/${d}`,{},f)}}}function tv(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getExtrenalSystemByID:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/external-system/${p}`,m)},createExternalSystem:async(p,m=!1)=>{const g=i();return await n(`/api/app/v1/${g}/external-system`,p,m)},updateExternalSystem:async(p,m,g=!1)=>{const h=i();return await r(`/api/app/v1/${h}/external-system/${p}`,m,g)},deleteExternalSystem:async(p,m=!1)=>{const g=i();return await a(`/api/app/v1/${g}/external-system/${p}`,{},m)},getAllExternalSystem:async(p=!1)=>{const m=i();return await t(`/api/app/v1/${m}/external-connection/category`,p)},searchExtrenalSystemByName:async(p,m=!1)=>{const g=i();return await t(`/api/app/v1/${g}/external-system/search${p}`,m)}}}function nv(){const e=me(),{get:t,post:n,put:r,del:a}=Ne(),i=()=>e.getAppId();return{getDataBaseSchema:async(d,f=!1)=>{const p=i(),m=new URLSearchParams;return m.append("connectionId",d),await t(`/api/app/v1/${p}/database/introspect?${m.toString()}`,f)},importSchema:async(d,f=!1)=>{const p=i();return await n(`/api/app/v1/${p}/database/import-schema`,d,f)},getConnectionSchema:async(d,f=!1)=>{const p=i(),m=new URLSearchParams;return m.append("connectionId",d),await t(`/api/app/v1/${p}/database/schema?${m.toString()}`,f)},saveSchema:async(d,f,p=!1)=>{const m=i(),g=new URLSearchParams;return g.append("connectionId",d),g.append("schemaName",f),await n(`/api/app/v1/${m}/database/schema?${g.toString()}`,p)}}}function ov(){me();const{get:e,post:t,put:n,del:r}=Ne();return{getSubUsers:async(m=!1)=>await e("/api/platform/v1/user/sub-users",m),createSubUser:async(m,g=!1)=>await t("/api/platform/v1/user",m,g),inviteSubUser:async(m,g)=>await t("/api/platform/v1/user/invitation",m,g),acceptSubUser:async(m,g)=>await t(`/api/platform/v1/user/invitation/accept?token=${m.token}`,m,g),editSubUser:async(m,g,h)=>await n(`/api/platform/v1/user/${m}`,g,h),deleteSubUser:async(m,g)=>await r(`/api/platform/v1/user/${m}`,{},g),setSubuserStatus:async(m,g,h)=>await n(`/api/platform/v1/user/${m}/status`,g,h),getAllPlatFormRoles:async(m=!1)=>await e("/api/platform/v1/roles",m),getPlatFormRolePermissions:async(m,g=!1)=>await e(`/api/platform/v1/role/${m}/permission`,g)}}const rv={install(e,t){e.component("CSEntityGrid",lr),e.component("csentitygrid",lr),e.component("CSEntityList",Ii),e.component("csentitylist",Ii),e.component("CSFieldExpression",Tl),e.component("csfieldexpression",Tl),e.component("CSEntity360View",Ti),e.component("csentity360view",Ti),e.component("CSEntityListing",Pi),e.component("csentitylisting",Pi),e.component("CSEntityListingTile",Ri),e.component("csentitylistingtile",Ri),e.component("CSEntityListingCarousel",bl),e.component("csentitylistingcarousel",bl),e.component("CSEntitySelection",rs),e.component("csentityselection",rs),e.component("CSEntitySelectionWithRest",as),e.component("csentityselectionwithrest",as),e.component("CSEntityExplorer",Pl),e.component("csentityexplorer",Pl),e.component("CSMenu",Dl),e.component("csmenu",Dl),e.component("CSTextInput",Al),e.component("cstextinput",Al),e.component("CSButton",Ll),e.component("csbutton",Ll),e.component("CSStateText",_l),e.component("csstatetext",_l),e.component("CSRangeInput",zl),e.component("csrangeinput",zl),e.component("CSSelector",ns),e.component("csselector",ns),e.component("CSDynamicSelection",On),e.component("csdynamicselection",On),e.component("CSEntityRecordSelection",os),e.component("csentityrecordselection",os),e.component("CSMenuSelection",is),e.component("csmenuSelection",is),e.component("CSlabel",ds),e.component("cslabel",ds),e.component("CSLogin",gs),e.component("cslogin",gs),e.component("CSRolesSelection",ss),e.component("csrolesselection",ss),e.component("CSPermissionSelection",cs),e.component("cspermissionselection",cs),e.component("CSIconSelection",hs),e.component("csiconselection",hs),e.component("CSIconComponent",bs),e.component("csiconcomponent",bs),e.component("ClassesSelection",ws),e.component("classesselection",ws),e.component("CSPageSelection",xs),e.component("cspageselection",xs),e.component("CSGlobalLoader",ys),e.component("csgloballoader",ys),e.component("CSInputText",Ba),e.component("csinputtext",Ba),e.component("CSInputNumber",$a),e.component("csinputnumber",$a),e.component("CSToggleButton",Na),e.component("cstogglebutton",Na),e.component("CSRadioButton",Va),e.component("csradiobutton",Va),e.component("CSColorPicker",Oa),e.component("cscolorpicker",Oa),e.component("CSDatePicker",Ta),e.component("csdatepicker",Ta),e.component("CSTextArea",Ia),e.component("cstextarea",Ia),e.component("CSInputPassword",Pa),e.component("csinputpassword",Pa),e.component("CSRangeDatePicker",Ra),e.component("csrangedatepicker",Ra),e.component("CSInputKnob",Fa),e.component("csinputknob",Fa),e.component("CSInputMask",Da),e.component("csinputmask",Da),e.component("CSInputOtp",Aa),e.component("csinputotp",Aa),e.component("CSInputRating",La),e.component("csinputrating",La),e.component("CSInputSlider",_a),e.component("csinputslider",_a),e.component("CSDashboardCard",Ea),e.component("csdashboardcard",Ea)}};ne.default=rv,ne.openGlobalDialog=Zw,ne.useAddEntityRecord=Lw,ne.useAssetsService=ev,ne.useClassesService=ks,ne.useComponentService=Uw,ne.useConnectionService=qw,ne.useCurrentUser=G1,ne.useDatabaseService=nv,ne.useDeleteEntityRecord=_w,ne.useEntitiesStore=Il,ne.useEntityRecordService=Fe,ne.useEntityService=kr,ne.useExecuteQuery=Mw,ne.useExternalRestAPI=zw,ne.useExternalRestService=xo,ne.useExternalSystemService=tv,ne.useGetAllEntityRecords=Aw,ne.useGetEntityRecord=Dw,ne.useGlobalConfigsStore=me,ne.useGlobalService=Ww,ne.useHttpClient=Ne,ne.useLayoutService=Hw,ne.useLoadingStore=Kn,ne.useMenuService=Rl,ne.useNamedQueryService=Es,ne.usePageService=vs,ne.useSecurityService=Ca,ne.useThemeConfig=Fw,ne.useThemeService=jw,ne.useUserService=ov,Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|