import{d as e}from"../como-ts-utils/como-ts-utils.52443996.js";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var s={},i={};Object.defineProperty(i,"__esModule",{value:!0}),i.BaseElementComponent=void 0;i.BaseElementComponent=class{LableName(e){return this.lableName=e,this}Style(e){return this.style=e,this}Size(e="default"){return this.size=e,this}toObject(){const e={},t=Object.keys(this);for(let n=0;n{const n=e.substring(1).split("="),r=decodeURIComponent(n[0]),s=decodeURIComponent(n[1]);t[r]=s})),t};g.SleepTime=function(e){return e=null!=e?e:1e3,new Promise(((t,n)=>{setTimeout((()=>{t(!0)}),e)}))};g.StringSize=e=>{if(!e)return 0;const t=e.split("").reduce(((e,t)=>/[a-z]|[0-9]|[,;.!@#-+/\\$%^*()<>?:"'{}~]/i.test(t)?e+1:e+2),0);return Math.ceil(t/2)};var f={};Object.defineProperty(f,"__esModule",{value:!0}),f.ElementTableColumnGender=void 0;f.ElementTableColumnGender=class{get CurrentPage(){return 1}get PageSize(){return 20}static get Ins(){return new this}Options(e){return this.options=e,this}Name(e){return this.label=e,this}ColumnKey(e){return this.columnKey=e,this}MinWidth(e){return this.minWidth=e,this}Type(e){return this.type=e,this}CusTomName(e){return this.customName=e,this}Width(e){return this.width=e,this}Align(e){return this.align=e,this}Field(e){return this.prop=e,this}Fixed(e){return this.fixed=e,this}Format(e){return this.formatter=e,this}Other(e,t){return this[e]=t,this}Convert(){const e={},t=Object.keys(this);for(let n=0;n0&&(r=I.ComoTsUtils.Ins.Time()+n);const s={value:t,expireTime:r};return this.cacheIns.setItem(e,I.ComoTsUtils.Ins.JsonEncode(s)),this}delItem(e){return this.cacheIns.removeItem(e),this}clear(){return this.cacheIns.clear(),this}static Ins(e=window.sessionStorage){return new this(e)}},function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.UploadElementComponent=t.StringSize=t.SleepTime=t.UrlToObject=t.WebCacheManager=t.EchartsGenderOptions=t.ComoTsRuleUtil=t.ElementTagComponent=t.ComoTableComponent=t.ComoFormComponent=t.ComoDialogComponent=t.ButtonElementComponent=t.BaseElementComponent=t.ElementTableColumnGender=t.ElementFormColumnGender=void 0;const n=e;Object.defineProperty(t,"ComoTsRuleUtil",{enumerable:!0,get:function(){return n.ComoTsRuleUtil}});const r=i;Object.defineProperty(t,"BaseElementComponent",{enumerable:!0,get:function(){return r.BaseElementComponent}});const s=o;Object.defineProperty(t,"ButtonElementComponent",{enumerable:!0,get:function(){return s.ButtonElementComponent}});const u=h;Object.defineProperty(t,"ComoDialogComponent",{enumerable:!0,get:function(){return u.ComoDialogComponent}});const l=c;Object.defineProperty(t,"EchartsGenderOptions",{enumerable:!0,get:function(){return l.EchartsGenderOptions}});const a=p;Object.defineProperty(t,"ElementFormColumnGender",{enumerable:!0,get:function(){return a.ElementFormColumnGender}});const m=d;Object.defineProperty(t,"ComoFormComponent",{enumerable:!0,get:function(){return m.ComoFormComponent}});const C=g;Object.defineProperty(t,"SleepTime",{enumerable:!0,get:function(){return C.SleepTime}}),Object.defineProperty(t,"StringSize",{enumerable:!0,get:function(){return C.StringSize}}),Object.defineProperty(t,"UrlToObject",{enumerable:!0,get:function(){return C.UrlToObject}});const b=f;Object.defineProperty(t,"ElementTableColumnGender",{enumerable:!0,get:function(){return b.ElementTableColumnGender}});const O=y;Object.defineProperty(t,"ComoTableComponent",{enumerable:!0,get:function(){return O.ComoTableComponent}});const T=S;Object.defineProperty(t,"ElementTagComponent",{enumerable:!0,get:function(){return T.ElementTagComponent}});const v=j;Object.defineProperty(t,"UploadElementComponent",{enumerable:!0,get:function(){return v.UploadElementComponent}});const E=P;Object.defineProperty(t,"WebCacheManager",{enumerable:!0,get:function(){return E.WebCacheManager}})}(s);export{n as a,t as c,r as g,s as m};