easycomponentstools 1.1.1 → 1.1.2

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.
@@ -110461,8 +110461,8 @@ var KZ = /* @__PURE__ */ d({
110461
110461
  en: $c,
110462
110462
  el: nl
110463
110463
  }
110464
- }), r = yp() ?? um();
110465
- e.use(r), e.use(n), e.component("EasyForm", OZ), e.component("EasyTable", p$), e.component("EasyConfirmationModal", d$), e.component("EasyMap", CZ), e.runWithContext(() => {
110464
+ });
110465
+ yp() || e.use(um()), e.use(n), e.component("EasyForm", OZ), e.component("EasyTable", p$), e.component("EasyConfirmationModal", d$), e.component("EasyMap", CZ), e.runWithContext(() => {
110466
110466
  let e = Em();
110467
110467
  e.timeZone = t.timeZone, e.location = t.location ?? null, e.mapId = t.mapId ?? null;
110468
110468
  }), kZ().run();
@@ -4104,4 +4104,4 @@ You tried to parse Sass with the standard CSS parser; try again with the postcss
4104
4104
  You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),v1=l(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n})),y1=l(((e,t)=>{var n=v1(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),b1=l(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),x1=l(((e,t)=>{var n=i1(),r=o1(),i=m1(),a=_1(),o=y1(),s=u1(),c=$$(),{isClean:l,my:u}=e1(),d=b1(),f={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},h=0;function g(e){return typeof e==`object`&&typeof e.then==`function`}function _(e){let t=!1,n=f[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,h,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,h,n+`Exit`]:[n,n+`Exit`]}function v(e){let t;return t=e.type===`document`?[`Document`,h,`DocumentExit`]:e.type===`root`?[`Root`,h,`RootExit`]:_(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function y(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>y(e)),e}var b={},x=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=y(r);else if(r instanceof e||r instanceof o)s=y(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!==`production`){let e=n.postcssPlugin,t=n.postcssVersion,r=this.result.processor.version,i=t.split(`.`),a=r.split(`.`);(i[0]!==a[0]||parseInt(i[1])>parseInt(a[1]))&&console.error(`Unknown error from PostCSS plugin. Your current PostCSS version is `+r+`, but `+e+` uses `+t+`. Perhaps this is the source of the error below.`)}}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[v(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return g(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(g(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this.opts||d("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(v(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===h){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=_(e);for(let n of t)if(n===h)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};x.registerPostcss=e=>{b=e},t.exports=x,x.default=x,s.registerLazyResult(x),r.registerLazyResult(x)})),S1=l(((e,t)=>{var n=m1(),r=_1(),i=y1(),a=$$(),o=b1(),s=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!==`production`&&(`from`in this._opts||o("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=s,s.default=s})),C1=l(((e,t)=>{var n=o1(),r=x1(),i=S1(),a=u1(),o=class{constructor(e=[]){this.version=`8.5.15`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n==`object`&&(n.parse||n.stringify)){if(process.env.NODE_ENV!==`production`)throw Error(`PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.`)}else throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),w1=l(((e,t)=>{var n=a1(),r=n1(),i=i1(),a=Z$(),o=r1(),s=o1(),c=p1(),l=l1(),u=x1(),d=d1(),f=t1(),p=_1(),m=C1(),h=y1(),g=u1(),_=f1(),v=$$(),y=v1();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
4105
4105
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
4106
4106
  https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b})),T1=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),E1=l(((e,t)=>{var n=T1();function r(e){for(e=e.replace(/[\x00-\x20]+/g,``);;){let t=e.indexOf(`<!--`);if(t===-1)break;let n=e.indexOf(`-->`,t+4);if(n===-1)break;e=e.substring(0,t)+e.substring(n+3)}return e}function i(e,t){t||={};let n=t.allowedSchemes||[`http`,`https`,`ftp`,`mailto`,`tel`,`sms`],i=t.allowProtocolRelative!==!1;if(typeof e!=`string`)return!1;e=r(e);let a=e.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!a)return e.match(/^[/\\]{2}/)?!i:!1;let o=a[1].toLowerCase();return n.indexOf(o)===-1}t.exports=function(e){let t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return e=e.trim(),e.toLowerCase()},t.string=function(e,t){return typeof e!=`string`&&(typeof e==`number`||typeof e==`boolean`?e+=``:e=``),e=e.trim(),t!==void 0&&e===``&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(t===void 0&&(t=0),typeof e==`number`)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.padInteger=function(e,t){let n=e+``;for(;n.length<t;)n=`0`+n;return n},t.float=function(e,t,n,r){if(t===void 0&&(t=0),typeof e!=`number`)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch{e=t}return typeof n==`number`&&e<n&&(e=n),typeof r==`number`&&e>r&&(e=r),e},t.naughtyHref=i,t.url=function(e,n,a){if(e=t.string(e,n),e===n)return e;if(e=r(e),i(e)||(e=o(e),e===null))return n;return e;function o(e){return e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?e:e.match(/^[^/.]+\.[^/.]+/)?(a?`https://`:`http://`)+e:null}},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return typeof n[0]==`object`?(i=n.find(function(t){return t.value===null||t.value===void 0?!1:t.value.toString()===e}),i==null?r:i.value):(i=n.find(function(t){return t==null?!1:t.toString()===e}),i===void 0?r:i)},t.boolean=function(e,n){return e===!0?!0:e===!1?!1:(e=t.string(e,n),e===n?e===void 0?!1:e:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`))},t.addBooleanFilterToCriteria=function(e,n,r,i){i===void 0&&(i=null);let a=typeof e==`object`&&e?e[n]:e;a=a===void 0?i:a,a=t.booleanOrNull(a),a===null||(a?r[n]=!0:r[n]={$ne:!0})},t.booleanOrNull=function(e,n){return e===!0||e===!1||e===null?e:(e=t.string(e,n),e===n?n===void 0?null:e:e===`null`?null:(e=e.toLowerCase().charAt(0),e===``||e===`n`||e===`0`||e===`f`?!1:e===`t`||e===`y`||e===`1`?!0:e===`a`?null:n))},t.date=function(e,r,i){let a;function o(){return r===void 0&&(r=n().format(`YYYY-MM-DD`)),r}if(typeof e==`string`){if(e.match(/\//)){if(a=e.split(`/`),a.length===2)return(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2);if(a.length===3){if(a[2]<100){let e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t,r=parseInt(a[2])+n;r-e.getFullYear()>50&&(r-=100),a[2]=r}return t.padInteger(a[2],4)+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2)}else return o()}else if(e.match(/-/))return a=e.split(`-`),a.length===2?(i||new Date).getFullYear()+`-`+t.padInteger(a[0],2)+`-`+t.padInteger(a[1],2):a.length===3?t.padInteger(a[0],4)+`-`+t.padInteger(a[1],2)+`-`+t.padInteger(a[2],2):o()}try{return e===null||(e=i||new Date(e),isNaN(e.getTime()))?o():e.getFullYear()+`-`+t.padInteger(e.getMonth()+1,2)+`-`+t.padInteger(e.getDate(),2)}catch{return o()}},t.formatDate=function(e){return n(e).format(`YYYY-MM-DD`)},t.time=function(e,r){e=t.string(e).toLowerCase(),e=e.trim();let i=e.match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10),n=i[3]===void 0?0:parseInt(i[3],10),r=i[5]===void 0?0:parseInt(i[5],10),a=i[6]?i[6].toLowerCase():i[6];return a&&=a.charAt(0),e===12&&a===`a`?e-=12:e===12&&a===`p`||a===`p`&&(e+=12),(e===24||e===`24`)&&(e=0),t.padInteger(e,2)+`:`+t.padInteger(n,2)+`:`+t.padInteger(r,2)}else return r===void 0?n().format(`HH:mm`):r},t.formatTime=function(e){return n(e).format(`HH:mm:ss`)},t.tags=function(e,n){return typeof e==`string`&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){let r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return t.id(e)!==void 0}):[]},t},t.exports.naughtyHref=i})),D1=f(l(((e,t)=>{var n=G$(),r=K$(),{isPlainObject:i}=q$(),a=J$(),o=Y$(),{parse:s}=w1(),{naughtyHref:c}=E1(),l=[`img`,`audio`,`video`,`picture`,`svg`,`object`,`map`,`iframe`,`embed`],u=[`script`,`style`];function d(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){let n=[];return d(e,function(e){t(e)&&n.push(e)}),n}function m(e){for(let t in e)if(f(e,t))return!1;return!0}function h(e){return e.map(function(e){if(!e.url)throw Error(`URL missing`);return e.url+(e.w?` ${e.w}w`:``)+(e.h?` ${e.h}h`:``)+(e.d?` ${e.d}x`:``)}).join(`, `)}t.exports=_;var g=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,y){if(e==null)return``;typeof e==`number`&&(e=e.toString());let b=``,x=``;function S(e,t){let n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text=``,this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){let e=N[N.length-1];e.text+=n.text}},this.updateParentNodeMediaChildren=function(){N.length&&l.includes(this.tag)&&N[N.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},_.defaults,t),t.parser=Object.assign({},v,t.parser);let C=function(e){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(e)>-1};u.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});let w=t.nonTextTags||[`script`,`style`,`textarea`,`option`,`xmp`],T,E;t.allowedAttributes&&(T={},E={},d(t.allowedAttributes,function(e,t){T[t]=[];let n=[];e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):T[t].push(e)}),n.length&&(E[t]=RegExp(`^(`+n.join(`|`)+`)$`))}));let D={},O={},k={};d(t.allowedClasses,function(e,t){if(T&&(f(T,t)||(T[t]=[]),T[t].push(`class`)),D[t]=e,Array.isArray(e)){let n=[];D[t]=[],k[t]=[],e.forEach(function(e){typeof e==`string`&&e.indexOf(`*`)>=0?n.push(r(e).replace(/\\\*/g,`.*`)):e instanceof RegExp?k[t].push(e):D[t].push(e)}),n.length&&(O[t]=RegExp(`^(`+n.join(`|`)+`)$`))}});let A={},j;d(t.transformTags,function(e,t){let n;typeof e==`function`?n=e:typeof e==`string`&&(n=_.simpleTransform(e)),t===`*`?j=n:A[t]=n});let M,N,P,F,I,L,R=!1;B();let z=new n.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&e===`html`&&B(),I){L++;return}let r=new S(e,n);N.push(r);let c=!1,l=!!r.text,u;if(f(A,e)&&(u=A[e](e,n),r.attribs=n=u.attribs,u.text!==void 0&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),j&&(u=j(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,F[M]=u.tagName)),(!C(e)||t.disallowedTagsMode===`recursiveEscape`&&!m(P)||t.nestingLimit!=null&&M>=t.nestingLimit)&&(c=!0,P[M]=!0,(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&w.indexOf(e)!==-1&&(I=!0,L=1)),M++,c){if(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){if(r.innerText&&!l){let n=V(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,R=!0}return}x=b,b=``}b+=`<`+e,e===`script`&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=``),c&&(t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`)&&t.preserveEscapedAttributes?d(n,function(e,t){b+=` `+t+`="`+V(e||``,!0)+`"`}):(!T||f(T,e)||T[`*`])&&d(n,function(n,c){if(!g.test(c)){delete r.attribs[c];return}if(n===``&&!t.allowedEmptyAttributes.includes(c)&&(t.nonBooleanAttributes.includes(c)||t.nonBooleanAttributes.includes(`*`))){delete r.attribs[c];return}let l=!1;if(!T||f(T,e)&&T[e].indexOf(c)!==-1||T[`*`]&&T[`*`].indexOf(c)!==-1||f(E,e)&&E[e].test(c)||E[`*`]&&E[`*`].test(c))l=!0;else if(T&&T[e]){for(let t of T[e])if(i(t)&&t.name&&t.name===c){l=!0;let e=``;if(t.multiple===!0){let r=n.split(` `);for(let n of r)t.values.indexOf(n)!==-1&&(e===``?e=n:e+=` `+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}}if(l){if(t.allowedSchemesAppliedToAttributes.indexOf(c)!==-1&&H(e,n)){delete r.attribs[c];return}if(e===`script`&&c===`src`){let e=!0;try{let r=ee(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){let n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(e===`iframe`&&c===`src`){let e=!0;try{let r=ee(n);if(r.isRelativeUrl)e=f(t,`allowIframeRelativeUrls`)?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch{e=!1}if(!e){delete r.attribs[c];return}}if(c===`srcset`||c===`imagesrcset`)try{let e=o(n);if(e.forEach(function(e){H(c,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),e.length)n=h(p(e,function(e){return!e.evil})),r.attribs[c]=n;else{delete r.attribs[c];return}}catch{delete r.attribs[c];return}if(c===`class`){let t=D[e],i=D[`*`],o=O[e],s=k[e],l=k[`*`],u=[o,O[`*`]].concat(s,l).filter(function(e){return e});if(n=t&&i?re(n,a(t,i),u):re(n,t||i,u),!n.length){delete r.attribs[c];return}}if(c===`style`){if(t.parseStyleAttributes)try{if(n=te(U(s(e+` {`+n+`}`,{map:!1}),t.allowedStyles)),n.length===0){delete r.attribs[c];return}}catch{typeof window<`u`&&console.warn(`Failed to parse "`+e+` {`+n+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete r.attribs[c];return}else if(t.allowedStyles)throw Error(`allowedStyles option cannot be used together with parseStyleAttributes: false.`)}b+=` `+c,n&&n.length?b+=`="`+V(n,!0)+`"`:t.allowedEmptyAttributes.includes(c)&&(b+=`=""`)}else delete r.attribs[c]}),t.selfClosing.indexOf(e)===-1?(b+=`>`,r.innerText&&!l&&!t.textFilter&&(b+=V(r.innerText),R=!0)):b+=` />`,c&&(b=x+V(b),x=``),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(I)return;let n=N[N.length-1],r;if(n&&(r=n.tag,e=n.innerText===void 0?e:n.innerText),t.disallowedTagsMode===`completelyDiscard`&&!C(r))e=``;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`script`||r===`style`))b+=e;else if(r&&C(r)&&(t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`)&&(r===`textarea`||r===`xmp`))b+=e;else if(!R){let n=V(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}if(N.length){let t=N[N.length-1];t.text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),I)if(L--,!L)I=!1;else return;let r=N.pop();if(!r)return;if(r.tag!==e){N.push(r);return}I=t.enforceHtmlBoundary?e===`html`:!1,M--;let i=P[M];if(i){if(delete P[M],t.disallowedTagsMode===`discard`||t.disallowedTagsMode===`completelyDiscard`){r.updateParentNodeText();return}x=b,b=``}if(F[M]&&(e=F[M],delete F[M]),t.exclusiveFilter){let e=t.exclusiveFilter(r);if(e===`excludeTag`){i&&(b=x,x=``),b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength);return}else if(e){b=b.substring(0,r.tagPosition);return}}if(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),t.selfClosing.indexOf(e)!==-1||n&&!C(e)&&[`escape`,`recursiveEscape`].indexOf(t.disallowedTagsMode)>=0){i&&(b=x,x=``);return}b+=`</`+e+`>`,i&&(b=x+V(b),x=``),R=!1}},t.parser);if(z.write(e),z.end(),t.disallowedTagsMode===`escape`||t.disallowedTagsMode===`recursiveEscape`){let t=z.endIndex;if(t!=null&&t>=0&&t<e.length){let n=e.substring(t);b+=V(n)}else (t==null||t<0)&&e.length>0&&b===``&&(b=V(e))}return b;function B(){b=``,M=0,N=[],P={},F={},I=!1,L=0}function V(e,n){return typeof e!=`string`&&(e+=``),t.parser.decodeEntities&&(e=e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),n&&(e=e.replace(/"/g,`&quot;`))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),n&&(e=e.replace(/"/g,`&quot;`)),e}function H(e,n){return c(n,{allowedSchemes:f(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function ee(e){if(e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,`$1//`),e.startsWith(`relative:`))throw Error(`relative: exploit attempt`);let t=`relative://relative-site`;for(let e=0;e<100;e++)t+=`/${e}`;let n=new URL(e,t);return{isRelativeUrl:n&&n.hostname===`relative-site`&&n.protocol===`relative:`,url:n}}function U(e,t){if(!t)return e;let n=e.nodes[0],r;return r=t[n.selector]&&t[`*`]?a(t[n.selector],t[`*`]):t[n.selector]||t[`*`],r&&(e.nodes[0].nodes=n.nodes.reduce(ne(r),[])),e}function te(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?` !important`:``}`),e},[]).join(`;`)}function ne(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n),t}}function re(e,t,n){return t?(e=e.split(/\s+/),e.filter(function(e){return t.indexOf(e)!==-1||n.some(function(t){return t.test(e)})}).join(` `)):e}}var v={decodeEntities:!0};_.defaults={allowedTags:`address.article.aside.footer.header.h1.h2.h3.h4.h5.h6.hgroup.main.nav.section.blockquote.dd.div.dl.dt.figcaption.figure.hr.li.menu.ol.p.pre.ul.a.abbr.b.bdi.bdo.br.cite.code.data.dfn.em.i.kbd.mark.q.rb.rp.rt.rtc.ruby.s.samp.small.span.strong.sub.sup.time.u.var.wbr.caption.col.colgroup.table.tbody.td.tfoot.th.thead.tr`.split(`.`),nonBooleanAttributes:`abbr.accept.accept-charset.accesskey.action.allow.alt.as.autocapitalize.autocomplete.blocking.charset.cite.class.color.cols.colspan.content.contenteditable.coords.crossorigin.data.datetime.decoding.dir.dirname.download.draggable.enctype.enterkeyhint.fetchpriority.for.form.formaction.formenctype.formmethod.formtarget.headers.height.hidden.high.href.hreflang.http-equiv.id.imagesizes.imagesrcset.inputmode.integrity.is.itemid.itemprop.itemref.itemtype.kind.label.lang.list.loading.low.max.maxlength.media.method.min.minlength.name.nonce.optimum.pattern.ping.placeholder.popover.popovertarget.popovertargetaction.poster.preload.referrerpolicy.rel.rows.rowspan.sandbox.scope.shape.size.sizes.slot.span.spellcheck.src.srcdoc.srclang.srcset.start.step.style.tabindex.target.title.translate.type.usemap.value.width.wrap.onauxclick.onafterprint.onbeforematch.onbeforeprint.onbeforeunload.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpageshow.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onreset.onresize.onrejectionhandled.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`),disallowedTagsMode:`discard`,allowedAttributes:{a:[`href`,`name`,`target`],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`,`loading`]},allowedEmptyAttributes:[`alt`],selfClosing:[`img`,`br`,`hr`,`area`,`base`,`basefont`,`input`,`link`,`meta`],allowedSchemes:[`http`,`https`,`ftp`,`mailto`,`tel`],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:[`href`,`src`,`cite`,`action`,`formaction`,`data`,`xlink:href`,`poster`,`background`,`ping`,`longdesc`,`usemap`,`codebase`,`classid`,`archive`,`profile`,`manifest`,`itemid`,`dynsrc`,`lowsrc`],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},_.simpleTransform=function(e,t,n){return n=n===void 0?!0:n,t||={},function(r,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}}))(),1),O1=[`innerHTML`],k1=(0,t.defineComponent)({__name:`ColumnValue`,props:{header:{},item:{}},setup(e){let n=e,r=()=>{let e=``;if(typeof n.header.cellRenderer==`function`){let e=n.header.cellRenderer(n.item[n.header.value],n.item);return Array.isArray(e)?(0,t.h)(`div`,{},e):e}else if(typeof n.header.valueFormatter==`function`)return n.header.valueFormatter(n.item[n.header.value],n.item);else return e=n.item[n.header.value],(0,D1.default)(e)};return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,null,[typeof n.header.cellRenderer==`function`?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r()),{key:0})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,innerHTML:r()},null,8,O1))]))}}),A1=Pp((0,t.defineComponent)({__name:`EasyConfirmationModal`,props:{description:{},acceptText:{},cancelText:{}},emits:[`onConfirm`],setup(e,{expose:n,emit:r}){let i=r,a=(0,t.ref)(!1),o=(0,t.ref)(``),s=e=>{o.value=e,a.value=!0},c=()=>{a.value=!1,i(`onConfirm`,o.value)};return n({open:s}),(n,r)=>{let i=(0,t.resolveComponent)(`v-col`),o=(0,t.resolveComponent)(`v-row`),s=(0,t.resolveComponent)(`v-card-title`),l=(0,t.resolveComponent)(`v-btn`),u=(0,t.resolveComponent)(`v-card-actions`),d=(0,t.resolveComponent)(`v-card`),f=(0,t.resolveComponent)(`v-dialog`);return(0,t.openBlock)(),(0,t.createBlock)(f,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,width:`700`,persistent:``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(d,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{class:`text-center mt-10`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,{class:`textWarning`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{cols:`4`,class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[...r[2]||=[(0,t.createElementVNode)(`i`,{class:`icon icon-octagon-alert warning-modal`},null,-1)]]),_:1}),(0,t.createVNode)(i,{cols:`8`,class:`d-flex justify-start align-center text-wrap`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.description),1)]),_:1})]),_:1})]),_:1}),(0,t.createVNode)(u,{class:`ma-4`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(o,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{class:`d-flex justify-start`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`error`,variant:`flat`,onClick:r[0]||=e=>a.value=!1},{default:(0,t.withCtx)(()=>[r[3]||=(0,t.createElementVNode)(`i`,{class:`icon icon-x`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.cancelText),1)]),_:1})]),_:1}),(0,t.createVNode)(i,{class:`d-flex justify-end`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(l,{color:`success`,variant:`flat`,onClick:c},{default:(0,t.withCtx)(()=>[r[4]||=(0,t.createElementVNode)(`i`,{class:`icon icon-check`},null,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.acceptText),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}}),[[`__scopeId`,`data-v-f1a09b8c`]]),j1={key:0,style:{display:`flex`,"justify-content":`center`}},M1=(0,t.defineComponent)({__name:`EasyTable`,props:{id:{},headers:{},showSelect:{type:Boolean,default:!1},multipleHardFilters:{type:Boolean,default:!1},multipleDeletion:{type:Boolean,default:!1},api:{},title:{default:``},hardFilters:{default:()=>[]},advancedFilters:{default:()=>[]},calcHeight:{default:``},showExportData:{type:Boolean,default:!1}},emits:[`onLoaded`,`successDelete`,`errorDelete`,`fetchError`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=Hs(),s=(0,t.ref)([]),c=(0,t.ref)(10),l=(0,t.ref)(1),u=(0,t.ref)([]),d=(0,t.ref)([]),f=(0,t.ref)(null),p=(0,t.ref)([]),m=(0,t.ref)([]),h=(0,t.ref)(0),g=YQ(),_=(0,t.ref)(!1),v=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)([{value:10,title:`10`},{value:25,title:`25`},{value:50,title:`50`},{value:100,title:`100`}]);function S(e){return`item.${e.value}`}let C=e=>{i.api?.delete&&(_.value=!0,fetch(`${i.api.delete}/${e}`,{method:`DELETE`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},w=()=>{i.api?.multipleDelete&&(_.value=!0,fetch(`${i.api.multipleDelete}`,{method:`DELETE`,body:JSON.stringify({ids:d.value})}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(()=>{a(`successDelete`),d.value=[],E()}).catch(async e=>a(`errorDelete`,e)).finally(()=>_.value=!1))},T=()=>{y.value?.open(0)},E=async()=>{_.value=!0;let e=new URLSearchParams({sort:JSON.stringify(f.value??{}),filters:JSON.stringify(p.value),hard_filters:JSON.stringify(m.value),page:l.value.toString(),limit:c.value.toString()});fetch(`${i.api.get}?${e}`,{method:`GET`}).then(async e=>{if(!e.ok)throw{statusCode:e.status,data:await e.json()};return e.json()}).then(e=>{u.value=e.data,h.value=e.page.total,b.value?.updateExportDataTotal(h.value),a(`onLoaded`,u.value)}).catch(async e=>a(`fetchError`,e)).finally(()=>_.value=!1)},D=e=>{e.length!==0&&(f.value={column:e[0].key,sort:e[0].order},b.value?.updateExportSortData(f.value),l.value=1,E())},O=e=>{m.value=e,l.value=1,E()},k=e=>{p.value=e,l.value=1,E()},A=e=>{s.value=e,E()};return(0,t.onMounted)(()=>{setTimeout(()=>{b.value?.updateExportData(i.api.get,i.headers,h.value,f.value,p.value,m.value)},500)}),(0,t.onBeforeMount)(()=>{let e=g.loadHeaders(i.headers,i.id);e.length===0?s.value=i.headers.filter(e=>!e?.hidden):s.value=e.filter(e=>!e?.hidden)}),n({getData:E,loading:_}),(n,r)=>{let a=(0,t.resolveComponent)(`VDataTableServer`),f=(0,t.resolveComponent)(`v-container`);return(0,t.openBlock)(),(0,t.createBlock)(f,{class:`maintable`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p$,{id:e.id,ref_key:`headerRef`,ref:b,title:i.title,headers:i.headers,"advanced-filters":i.advancedFilters,"hard-filters":i.hardFilters,create:e.api?.create,"show-export-data":e.showExportData,"multiple-hard-filters":e.multipleHardFilters,"multiple-deletion":e.multipleDeletion,selected:d.value,onMultipleDelete:T,onHeaders:A,onSearch:k,onHardFilters:O,onLoading:r[0]||=e=>_.value=e},{moreActions:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`moreActions`)]),_:3},8,[`id`,`title`,`headers`,`advanced-filters`,`hard-filters`,`create`,`show-export-data`,`multiple-hard-filters`,`multiple-deletion`,`selected`]),(0,t.createVNode)(a,{modelValue:d.value,"onUpdate:modelValue":r[1]||=e=>d.value=e,page:l.value,"onUpdate:page":[r[2]||=e=>l.value=e,E],"items-per-page":c.value,"onUpdate:itemsPerPage":[r[3]||=e=>c.value=e,E],headers:s.value,items:u.value,"show-select":e.showSelect,loading:_.value,"items-length":h.value,"items-per-page-options":x.value,class:(0,t.normalizeClass)(n.$attrs.class),style:(0,t.normalizeStyle)({width:typeof n.$attrs.width==`string`?n.$attrs.width:`auto`}),height:e.calcHeight,"fixed-header":``,"onUpdate:sortBy":D,"onUpdate:sortDesc":D},(0,t.createSlots)({"header.actions":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`i`,(0,t.mergeProps)({class:`icon icon-settings`},i,{style:{"font-size":`20px`}}),null,16)]),_:2},[(0,t.renderList)(s.value,e=>({name:S(e),fn:(0,t.withCtx)(n=>[e.type===`actions`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,j1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.actions,(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r},[e.type===`menu`?((0,t.openBlock)(),(0,t.createBlock)(m$,{key:0,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`])):((0,t.openBlock)(),(0,t.createBlock)(h$,{key:1,action:e,item:n.item,onOnDelete:e=>v.value?.open(n.item?.id)},null,8,[`action`,`item`,`onOnDelete`]))]))),128))])):((0,t.openBlock)(),(0,t.createBlock)(k1,{key:1,header:e,item:n.item},null,8,[`header`,`item`]))])}))]),1032,[`modelValue`,`page`,`items-per-page`,`headers`,`items`,`show-select`,`loading`,`items-length`,`items-per-page-options`,`class`,`style`,`height`]),(0,t.createVNode)(A1,{ref_key:`confirm_deletion`,ref:v,description:(0,t.unref)(o).t(`table.deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:C},null,8,[`description`,`accept-text`,`cancel-text`]),(0,t.createVNode)(A1,{ref_key:`multiple_confirm_deletion`,ref:y,description:(0,t.unref)(o).t(`table.multiple_deletion_description`),"accept-text":(0,t.unref)(o).t(`table.yes`),"cancel-text":(0,t.unref)(o).t(`table.no`),onOnConfirm:w},null,8,[`description`,`accept-text`,`cancel-text`])]),_:3})}}});e.EasyComponents={install(e,t){if(!Nn)throw Error(`[EasyComponents] Vuetify is required. Please install it:
4107
- npm install vuetify`);let n=Vs({legacy:!1,locale:t.locale??`en`,messages:{en:nc,el:ac}}),r=Sf()??pp();e.use(r),e.use(n),e.component(`EasyForm`,qQ),e.component(`EasyTable`,M1),e.component(`EasyConfirmationModal`,A1),e.component(`EasyMap`,HQ),e.runWithContext(()=>{let e=kp();e.timeZone=t.timeZone,e.location=t.location??null,e.mapId=t.mapId??null}),JQ().run()}},e.EasyConfirmationModal=A1,e.EasyForm=qQ,e.EasyMap=HQ,e.EasyTable=M1});
4107
+ npm install vuetify`);let n=Vs({legacy:!1,locale:t.locale??`en`,messages:{en:nc,el:ac}});Sf()||e.use(pp()),e.use(n),e.component(`EasyForm`,qQ),e.component(`EasyTable`,M1),e.component(`EasyConfirmationModal`,A1),e.component(`EasyMap`,HQ),e.runWithContext(()=>{let e=kp();e.timeZone=t.timeZone,e.location=t.location??null,e.mapId=t.mapId??null}),JQ().run()}},e.EasyConfirmationModal=A1,e.EasyForm=qQ,e.EasyMap=HQ,e.EasyTable=M1});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "easycomponentstools",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "description": "Easy Vue Components",
7
7
  "keywords": [