@amsom-habitat/amsom-table 4.3.1 → 4.3.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.
- package/dist/amsom-table.js +5 -3
- package/dist/amsom-table.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/amsom-table.js
CHANGED
|
@@ -11867,7 +11867,8 @@ function fW(M, b, z, p, o, e) {
|
|
|
11867
11867
|
class: D0(["text-center", [
|
|
11868
11868
|
i.lineState ? e.lineStateClass(i.lineState) : "",
|
|
11869
11869
|
W.stickyLeft ? "sticky-column-left" : "",
|
|
11870
|
-
W.stickyRight ? "sticky-column-right" : ""
|
|
11870
|
+
W.stickyRight ? "sticky-column-right" : "",
|
|
11871
|
+
M.tdClass
|
|
11871
11872
|
]]),
|
|
11872
11873
|
onClick: Q2((N) => e.checkItem(i.id), ["stop"])
|
|
11873
11874
|
}, [
|
|
@@ -11890,7 +11891,8 @@ function fW(M, b, z, p, o, e) {
|
|
|
11890
11891
|
W.isSorted ? "bg-gray-200" : "",
|
|
11891
11892
|
i.lineState ? e.lineStateClass(i.lineState) : "",
|
|
11892
11893
|
W.stickyLeft ? "sticky-column-left" : "",
|
|
11893
|
-
W.stickyRight ? "sticky-column-right" : ""
|
|
11894
|
+
W.stickyRight ? "sticky-column-right" : "",
|
|
11895
|
+
M.tdClass
|
|
11894
11896
|
], "text-center text-nowrap"])
|
|
11895
11897
|
}, [
|
|
11896
11898
|
Kz(M.$slots, "tableBodyTd", {
|
|
@@ -11958,7 +11960,7 @@ function fW(M, b, z, p, o, e) {
|
|
|
11958
11960
|
])
|
|
11959
11961
|
], 64);
|
|
11960
11962
|
}
|
|
11961
|
-
const RW = /* @__PURE__ */ wd(kd, [["render", fW], ["__scopeId", "data-v-
|
|
11963
|
+
const RW = /* @__PURE__ */ wd(kd, [["render", fW], ["__scopeId", "data-v-df240f69"]]);
|
|
11962
11964
|
export {
|
|
11963
11965
|
RW as AmsomTableDraggable,
|
|
11964
11966
|
RW as default
|
package/dist/amsom-table.umd.cjs
CHANGED
|
@@ -590,4 +590,4 @@ T.version="2.30.1",An(s0),T.fn=m,T.min=Za,T.max=$a,T.now=M4,T.utc=h1,T.unix=Xr,T
|
|
|
590
590
|
Arguments: `+Array.prototype.slice.call(A).join("")+`
|
|
591
591
|
`+new Error().stack),t=!1}return e.apply(this,arguments)},e)}var M1={};function B1(O,e){p.deprecationHandler!=null&&p.deprecationHandler(O,e),M1[O]||(E0(e),M1[O]=!0)}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null;function B0(O){return typeof Function<"u"&&O instanceof Function||Object.prototype.toString.call(O)==="[object Function]"}function U0(O){var e,t;for(t in O)r(O,t)&&(e=O[t],B0(e)?this[t]=e:this["_"+t]=e);this._config=O,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function c1(O,e){var t=P({},O),A;for(A in e)r(e,A)&&(n(O[A])&&n(e[A])?(t[A]={},P(t[A],O[A]),P(t[A],e[A])):e[A]!=null?t[A]=e[A]:delete t[A]);for(A in O)r(O,A)&&!r(e,A)&&n(O[A])&&(t[A]=P({},t[A]));return t}function h0(O){O!=null&&this.set(O)}var g1;Object.keys?g1=Object.keys:g1=function(O){var e,t=[];for(e in O)r(O,e)&&t.push(e);return t};var j1={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bM(O,e,t){var A=this._calendar[O]||this._calendar.sameElse;return B0(A)?A.call(e,t):A}function b1(O,e,t){var A=""+Math.abs(O),a=e-A.length,d=O>=0;return(d?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+A}var q2=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,s2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,PM={},X1={};function C(O,e,t,A){var a=A;typeof A=="string"&&(a=function(){return this[A]()}),O&&(X1[O]=a),e&&(X1[e[0]]=function(){return b1(a.apply(this,arguments),e[1],e[2])}),t&&(X1[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),O)})}function G1(O){return O.match(/\[[\s\S]/)?O.replace(/^\[|\]$/g,""):O.replace(/\\/g,"")}function r0(O){var e=O.match(q2),t,A;for(t=0,A=e.length;t<A;t++)X1[e[t]]?e[t]=X1[e[t]]:e[t]=G1(e[t]);return function(a){var d="",u;for(u=0;u<A;u++)d+=B0(e[u])?e[u].call(a,O):e[u];return d}}function I0(O,e){return O.isValid()?(e=xM(e,O.localeData()),PM[e]=PM[e]||r0(e),PM[e](O)):O.localeData().invalidDate()}function xM(O,e){var t=5;function A(a){return e.longDateFormat(a)||a}for(s2.lastIndex=0;t>=0&&s2.test(O);)O=O.replace(s2,A),s2.lastIndex=0,t-=1;return O}var Hb={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Gp(O){var e=this._longDateFormat[O],t=this._longDateFormat[O.toUpperCase()];return e||!t?e:(this._longDateFormat[O]=t.match(q2).map(function(A){return A==="MMMM"||A==="MM"||A==="DD"||A==="dddd"?A.slice(1):A}).join(""),this._longDateFormat[O])}var T2="Invalid date";function W(){return this._invalidDate}var R="%d",h=/\d{1,2}/;function X(O){return this._ordinal.replace("%d",O)}var F={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function M0(O,e,t,A){var a=this._relativeTime[t];return B0(a)?a(O,e,t,A):a.replace(/%d/i,O)}function g0(O,e){var t=this._relativeTime[O>0?"future":"past"];return B0(t)?t(e):t.replace(/%s/i,e)}var e0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function J(O){return typeof O=="string"?e0[O]||e0[O.toLowerCase()]:void 0}function jb(O){var e={},t,A;for(A in O)r(O,A)&&(t=J(A),t&&(e[t]=O[A]));return e}var nq={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function aq(O){var e=[],t;for(t in O)r(O,t)&&e.push({unit:t,priority:nq[t]});return e.sort(function(A,a){return A.priority-a.priority}),e}var ce=/\d/,z1=/\d\d/,te=/\d{3}/,Vp=/\d{4}/,Gb=/[+-]?\d{6}/,d0=/\d\d?/,Ae=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,Vb=/\d{1,3}/,Kp=/\d{1,4}/,Kb=/[+-]?\d{1,6}/,zM=/\d+/,Qb=/[+-]?\d+/,rq=/Z|[+-]\d\d:?\d\d/gi,Jb=/Z|[+-]\d\d(?::?\d\d)?/gi,iq=/[+-]?\d+(\.\d{1,3})?/,IM=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,pM=/^[1-9]\d?/,Qp=/^([1-9]\d|\d)/,Zb;Zb={};function k(O,e,t){Zb[O]=B0(e)?e:function(A,a){return A&&t?t:e}}function qq(O,e){return r(Zb,O)?Zb[O](e._strict,e._locale):new RegExp(sq(O))}function sq(O){return V1(O.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,A,a,d){return t||A||a||d}))}function V1(O){return O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function t1(O){return O<0?Math.ceil(O)||0:Math.floor(O)}function Q(O){var e=+O,t=0;return e!==0&&isFinite(e)&&(t=t1(e)),t}var Jp={};function a0(O,e){var t,A=e,a;for(typeof O=="string"&&(O=[O]),f(e)&&(A=function(d,u){u[e]=Q(d)}),a=O.length,t=0;t<a;t++)Jp[O[t]]=A}function YM(O,e){a0(O,function(t,A,a,d){a._w=a._w||{},e(t,a._w,a,d)})}function dq(O,e,t){e!=null&&r(Jp,O)&&Jp[O](e,t._a,t,O)}function $b(O){return O%4===0&&O%100!==0||O%400===0}var Y0=0,K1=1,y1=2,k0=3,s1=4,Q1=5,S2=6,Wq=7,lq=8;C("Y",0,0,function(){var O=this.year();return O<=9999?b1(O,4):"+"+O}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),k("Y",Qb),k("YY",d0,z1),k("YYYY",Kp,Vp),k("YYYYY",Kb,Gb),k("YYYYYY",Kb,Gb),a0(["YYYYY","YYYYYY"],Y0),a0("YYYY",function(O,e){e[Y0]=O.length===2?p.parseTwoDigitYear(O):Q(O)}),a0("YY",function(O,e){e[Y0]=p.parseTwoDigitYear(O)}),a0("Y",function(O,e){e[Y0]=parseInt(O,10)});function FM(O){return $b(O)?366:365}p.parseTwoDigitYear=function(O){return Q(O)+(Q(O)>68?1900:2e3)};var ae=OM("FullYear",!0);function fq(){return $b(this.year())}function OM(O,e){return function(t){return t!=null?(re(this,O,t),p.updateOffset(this,e),this):UM(this,O)}}function UM(O,e){if(!O.isValid())return NaN;var t=O._d,A=O._isUTC;switch(e){case"Milliseconds":return A?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return A?t.getUTCSeconds():t.getSeconds();case"Minutes":return A?t.getUTCMinutes():t.getMinutes();case"Hours":return A?t.getUTCHours():t.getHours();case"Date":return A?t.getUTCDate():t.getDate();case"Day":return A?t.getUTCDay():t.getDay();case"Month":return A?t.getUTCMonth():t.getMonth();case"FullYear":return A?t.getUTCFullYear():t.getFullYear();default:return NaN}}function re(O,e,t){var A,a,d,u,v;if(!(!O.isValid()||isNaN(t))){switch(A=O._d,a=O._isUTC,e){case"Milliseconds":return void(a?A.setUTCMilliseconds(t):A.setMilliseconds(t));case"Seconds":return void(a?A.setUTCSeconds(t):A.setSeconds(t));case"Minutes":return void(a?A.setUTCMinutes(t):A.setMinutes(t));case"Hours":return void(a?A.setUTCHours(t):A.setHours(t));case"Date":return void(a?A.setUTCDate(t):A.setDate(t));case"FullYear":break;default:return}d=t,u=O.month(),v=O.date(),v=v===29&&u===1&&!$b(d)?28:v,a?A.setUTCFullYear(d,u,v):A.setFullYear(d,u,v)}}function uq(O){return O=J(O),B0(this[O])?this[O]():this}function Rq(O,e){if(typeof O=="object"){O=jb(O);var t=aq(O),A,a=t.length;for(A=0;A<a;A++)this[t[A].unit](O[t[A].unit])}else if(O=J(O),B0(this[O]))return this[O](e);return this}function hq(O,e){return(O%e+e)%e}var T0;Array.prototype.indexOf?T0=Array.prototype.indexOf:T0=function(O){var e;for(e=0;e<this.length;++e)if(this[e]===O)return e;return-1};function Zp(O,e){if(isNaN(O)||isNaN(e))return NaN;var t=hq(e,12);return O+=(e-t)/12,t===1?$b(O)?29:28:31-t%7%2}C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(O){return this.localeData().monthsShort(this,O)}),C("MMMM",0,0,function(O){return this.localeData().months(this,O)}),k("M",d0,pM),k("MM",d0,z1),k("MMM",function(O,e){return e.monthsShortRegex(O)}),k("MMMM",function(O,e){return e.monthsRegex(O)}),a0(["M","MM"],function(O,e){e[K1]=Q(O)-1}),a0(["MMM","MMMM"],function(O,e,t,A){var a=t._locale.monthsParse(O,A,t._strict);a!=null?e[K1]=a:S(t).invalidMonth=O});var Lq="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ie="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),qe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mq=IM,Nq=IM;function Bq(O,e){return O?c(this._months)?this._months[O.month()]:this._months[(this._months.isFormat||qe).test(e)?"format":"standalone"][O.month()]:c(this._months)?this._months:this._months.standalone}function gq(O,e){return O?c(this._monthsShort)?this._monthsShort[O.month()]:this._monthsShort[qe.test(e)?"format":"standalone"][O.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Xq(O,e,t){var A,a,d,u=O.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],A=0;A<12;++A)d=E([2e3,A]),this._shortMonthsParse[A]=this.monthsShort(d,"").toLocaleLowerCase(),this._longMonthsParse[A]=this.months(d,"").toLocaleLowerCase();return t?e==="MMM"?(a=T0.call(this._shortMonthsParse,u),a!==-1?a:null):(a=T0.call(this._longMonthsParse,u),a!==-1?a:null):e==="MMM"?(a=T0.call(this._shortMonthsParse,u),a!==-1?a:(a=T0.call(this._longMonthsParse,u),a!==-1?a:null)):(a=T0.call(this._longMonthsParse,u),a!==-1?a:(a=T0.call(this._shortMonthsParse,u),a!==-1?a:null))}function yq(O,e,t){var A,a,d;if(this._monthsParseExact)return Xq.call(this,O,e,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),A=0;A<12;A++){if(a=E([2e3,A]),t&&!this._longMonthsParse[A]&&(this._longMonthsParse[A]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[A]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!t&&!this._monthsParse[A]&&(d="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[A]=new RegExp(d.replace(".",""),"i")),t&&e==="MMMM"&&this._longMonthsParse[A].test(O))return A;if(t&&e==="MMM"&&this._shortMonthsParse[A].test(O))return A;if(!t&&this._monthsParse[A].test(O))return A}}function se(O,e){if(!O.isValid())return O;if(typeof e=="string"){if(/^\d+$/.test(e))e=Q(e);else if(e=O.localeData().monthsParse(e),!f(e))return O}var t=e,A=O.date();return A=A<29?A:Math.min(A,Zp(O.year(),t)),O._isUTC?O._d.setUTCMonth(t,A):O._d.setMonth(t,A),O}function de(O){return O!=null?(se(this,O),p.updateOffset(this,!0),this):UM(this,"Month")}function Tq(){return Zp(this.year(),this.month())}function Sq(O){return this._monthsParseExact?(r(this,"_monthsRegex")||We.call(this),O?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=mq),this._monthsShortStrictRegex&&O?this._monthsShortStrictRegex:this._monthsShortRegex)}function _q(O){return this._monthsParseExact?(r(this,"_monthsRegex")||We.call(this),O?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=Nq),this._monthsStrictRegex&&O?this._monthsStrictRegex:this._monthsRegex)}function We(){function O(U,Z){return Z.length-U.length}var e=[],t=[],A=[],a,d,u,v;for(a=0;a<12;a++)d=E([2e3,a]),u=V1(this.monthsShort(d,"")),v=V1(this.months(d,"")),e.push(u),t.push(v),A.push(v),A.push(u);e.sort(O),t.sort(O),A.sort(O),this._monthsRegex=new RegExp("^("+A.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function vq(O,e,t,A,a,d,u){var v;return O<100&&O>=0?(v=new Date(O+400,e,t,A,a,d,u),isFinite(v.getFullYear())&&v.setFullYear(O)):v=new Date(O,e,t,A,a,d,u),v}function HM(O){var e,t;return O<100&&O>=0?(t=Array.prototype.slice.call(arguments),t[0]=O+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(O)):e=new Date(Date.UTC.apply(null,arguments)),e}function Mz(O,e,t){var A=7+e-t,a=(7+HM(O,0,A).getUTCDay()-e)%7;return-a+A-1}function le(O,e,t,A,a){var d=(7+t-A)%7,u=Mz(O,A,a),v=1+7*(e-1)+d+u,U,Z;return v<=0?(U=O-1,Z=FM(U)+v):v>FM(O)?(U=O+1,Z=v-FM(O)):(U=O,Z=v),{year:U,dayOfYear:Z}}function jM(O,e,t){var A=Mz(O.year(),e,t),a=Math.floor((O.dayOfYear()-A-1)/7)+1,d,u;return a<1?(u=O.year()-1,d=a+J1(u,e,t)):a>J1(O.year(),e,t)?(d=a-J1(O.year(),e,t),u=O.year()+1):(u=O.year(),d=a),{week:d,year:u}}function J1(O,e,t){var A=Mz(O,e,t),a=Mz(O+1,e,t);return(FM(O)-A+a)/7}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),k("w",d0,pM),k("ww",d0,z1),k("W",d0,pM),k("WW",d0,z1),YM(["w","ww","W","WW"],function(O,e,t,A){e[A.substr(0,1)]=Q(O)});function wq(O){return jM(O,this._week.dow,this._week.doy).week}var kq={dow:0,doy:6};function Eq(){return this._week.dow}function Cq(){return this._week.doy}function Dq(O){var e=this.localeData().week(this);return O==null?e:this.add((O-e)*7,"d")}function Pq(O){var e=jM(this,1,4).week;return O==null?e:this.add((O-e)*7,"d")}C("d",0,"do","day"),C("dd",0,0,function(O){return this.localeData().weekdaysMin(this,O)}),C("ddd",0,0,function(O){return this.localeData().weekdaysShort(this,O)}),C("dddd",0,0,function(O){return this.localeData().weekdays(this,O)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),k("d",d0),k("e",d0),k("E",d0),k("dd",function(O,e){return e.weekdaysMinRegex(O)}),k("ddd",function(O,e){return e.weekdaysShortRegex(O)}),k("dddd",function(O,e){return e.weekdaysRegex(O)}),YM(["dd","ddd","dddd"],function(O,e,t,A){var a=t._locale.weekdaysParse(O,A,t._strict);a!=null?e.d=a:S(t).invalidWeekday=O}),YM(["d","e","E"],function(O,e,t,A){e[A]=Q(O)});function xq(O,e){return typeof O!="string"?O:isNaN(O)?(O=e.weekdaysParse(O),typeof O=="number"?O:null):parseInt(O,10)}function Iq(O,e){return typeof O=="string"?e.weekdaysParse(O)%7||7:isNaN(O)?null:O}function $p(O,e){return O.slice(e,7).concat(O.slice(0,e))}var Yq="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fq="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Uq=IM,Hq=IM,jq=IM;function Gq(O,e){var t=c(this._weekdays)?this._weekdays:this._weekdays[O&&O!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return O===!0?$p(t,this._week.dow):O?t[O.day()]:t}function Vq(O){return O===!0?$p(this._weekdaysShort,this._week.dow):O?this._weekdaysShort[O.day()]:this._weekdaysShort}function Kq(O){return O===!0?$p(this._weekdaysMin,this._week.dow):O?this._weekdaysMin[O.day()]:this._weekdaysMin}function Qq(O,e,t){var A,a,d,u=O.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],A=0;A<7;++A)d=E([2e3,1]).day(A),this._minWeekdaysParse[A]=this.weekdaysMin(d,"").toLocaleLowerCase(),this._shortWeekdaysParse[A]=this.weekdaysShort(d,"").toLocaleLowerCase(),this._weekdaysParse[A]=this.weekdays(d,"").toLocaleLowerCase();return t?e==="dddd"?(a=T0.call(this._weekdaysParse,u),a!==-1?a:null):e==="ddd"?(a=T0.call(this._shortWeekdaysParse,u),a!==-1?a:null):(a=T0.call(this._minWeekdaysParse,u),a!==-1?a:null):e==="dddd"?(a=T0.call(this._weekdaysParse,u),a!==-1||(a=T0.call(this._shortWeekdaysParse,u),a!==-1)?a:(a=T0.call(this._minWeekdaysParse,u),a!==-1?a:null)):e==="ddd"?(a=T0.call(this._shortWeekdaysParse,u),a!==-1||(a=T0.call(this._weekdaysParse,u),a!==-1)?a:(a=T0.call(this._minWeekdaysParse,u),a!==-1?a:null)):(a=T0.call(this._minWeekdaysParse,u),a!==-1||(a=T0.call(this._weekdaysParse,u),a!==-1)?a:(a=T0.call(this._shortWeekdaysParse,u),a!==-1?a:null))}function Jq(O,e,t){var A,a,d;if(this._weekdaysParseExact)return Qq.call(this,O,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),A=0;A<7;A++){if(a=E([2e3,1]).day(A),t&&!this._fullWeekdaysParse[A]&&(this._fullWeekdaysParse[A]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[A]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[A]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[A]||(d="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[A]=new RegExp(d.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[A].test(O))return A;if(t&&e==="ddd"&&this._shortWeekdaysParse[A].test(O))return A;if(t&&e==="dd"&&this._minWeekdaysParse[A].test(O))return A;if(!t&&this._weekdaysParse[A].test(O))return A}}function Zq(O){if(!this.isValid())return O!=null?this:NaN;var e=UM(this,"Day");return O!=null?(O=xq(O,this.localeData()),this.add(O-e,"d")):e}function $q(O){if(!this.isValid())return O!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return O==null?e:this.add(O-e,"d")}function Ms(O){if(!this.isValid())return O!=null?this:NaN;if(O!=null){var e=Iq(O,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function bs(O){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||M3.call(this),O?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Uq),this._weekdaysStrictRegex&&O?this._weekdaysStrictRegex:this._weekdaysRegex)}function zs(O){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||M3.call(this),O?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hq),this._weekdaysShortStrictRegex&&O?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ps(O){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||M3.call(this),O?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jq),this._weekdaysMinStrictRegex&&O?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function M3(){function O(H0,z2){return z2.length-H0.length}var e=[],t=[],A=[],a=[],d,u,v,U,Z;for(d=0;d<7;d++)u=E([2e3,1]).day(d),v=V1(this.weekdaysMin(u,"")),U=V1(this.weekdaysShort(u,"")),Z=V1(this.weekdays(u,"")),e.push(v),t.push(U),A.push(Z),a.push(v),a.push(U),a.push(Z);e.sort(O),t.sort(O),A.sort(O),a.sort(O),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function b3(){return this.hours()%12||12}function Os(){return this.hours()||24}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,b3),C("k",["kk",2],0,Os),C("hmm",0,0,function(){return""+b3.apply(this)+b1(this.minutes(),2)}),C("hmmss",0,0,function(){return""+b3.apply(this)+b1(this.minutes(),2)+b1(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+b1(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+b1(this.minutes(),2)+b1(this.seconds(),2)});function ue(O,e){C(O,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}ue("a",!0),ue("A",!1);function Re(O,e){return e._meridiemParse}k("a",Re),k("A",Re),k("H",d0,Qp),k("h",d0,pM),k("k",d0,pM),k("HH",d0,z1),k("hh",d0,z1),k("kk",d0,z1),k("hmm",Ae),k("hmmss",ne),k("Hmm",Ae),k("Hmmss",ne),a0(["H","HH"],k0),a0(["k","kk"],function(O,e,t){var A=Q(O);e[k0]=A===24?0:A}),a0(["a","A"],function(O,e,t){t._isPm=t._locale.isPM(O),t._meridiem=O}),a0(["h","hh"],function(O,e,t){e[k0]=Q(O),S(t).bigHour=!0}),a0("hmm",function(O,e,t){var A=O.length-2;e[k0]=Q(O.substr(0,A)),e[s1]=Q(O.substr(A)),S(t).bigHour=!0}),a0("hmmss",function(O,e,t){var A=O.length-4,a=O.length-2;e[k0]=Q(O.substr(0,A)),e[s1]=Q(O.substr(A,2)),e[Q1]=Q(O.substr(a)),S(t).bigHour=!0}),a0("Hmm",function(O,e,t){var A=O.length-2;e[k0]=Q(O.substr(0,A)),e[s1]=Q(O.substr(A))}),a0("Hmmss",function(O,e,t){var A=O.length-4,a=O.length-2;e[k0]=Q(O.substr(0,A)),e[s1]=Q(O.substr(A,2)),e[Q1]=Q(O.substr(a))});function os(O){return(O+"").toLowerCase().charAt(0)==="p"}var es=/[ap]\.?m?\.?/i,cs=OM("Hours",!0);function ts(O,e,t){return O>11?t?"pm":"PM":t?"am":"AM"}var he={calendar:j1,longDateFormat:Hb,invalidDate:T2,ordinal:R,dayOfMonthOrdinalParse:h,relativeTime:F,months:Lq,monthsShort:ie,week:kq,weekdays:Yq,weekdaysMin:Fq,weekdaysShort:fe,meridiemParse:es},u0={},GM={},VM;function As(O,e){var t,A=Math.min(O.length,e.length);for(t=0;t<A;t+=1)if(O[t]!==e[t])return t;return A}function Le(O){return O&&O.toLowerCase().replace("_","-")}function ns(O){for(var e=0,t,A,a,d;e<O.length;){for(d=Le(O[e]).split("-"),t=d.length,A=Le(O[e+1]),A=A?A.split("-"):null;t>0;){if(a=bz(d.slice(0,t).join("-")),a)return a;if(A&&A.length>=t&&As(d,A)>=t-1)break;t--}e++}return VM}function as(O){return!!(O&&O.match("^[^/\\\\]*$"))}function bz(O){var e=null,t;if(u0[O]===void 0&&M&&M.exports&&as(O))try{e=VM._abbr,t=Jo,t("./locale/"+O),d2(e)}catch{u0[O]=null}return u0[O]}function d2(O,e){var t;return O&&(i(e)?t=Z1(O):t=z3(O,e),t?VM=t:typeof console<"u"&&console.warn&&console.warn("Locale "+O+" not found. Did you forget to load it?")),VM._abbr}function z3(O,e){if(e!==null){var t,A=he;if(e.abbr=O,u0[O]!=null)B1("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),A=u0[O]._config;else if(e.parentLocale!=null)if(u0[e.parentLocale]!=null)A=u0[e.parentLocale]._config;else if(t=bz(e.parentLocale),t!=null)A=t._config;else return GM[e.parentLocale]||(GM[e.parentLocale]=[]),GM[e.parentLocale].push({name:O,config:e}),null;return u0[O]=new h0(c1(A,e)),GM[O]&&GM[O].forEach(function(a){z3(a.name,a.config)}),d2(O),u0[O]}else return delete u0[O],null}function rs(O,e){if(e!=null){var t,A,a=he;u0[O]!=null&&u0[O].parentLocale!=null?u0[O].set(c1(u0[O]._config,e)):(A=bz(O),A!=null&&(a=A._config),e=c1(a,e),A==null&&(e.abbr=O),t=new h0(e),t.parentLocale=u0[O],u0[O]=t),d2(O)}else u0[O]!=null&&(u0[O].parentLocale!=null?(u0[O]=u0[O].parentLocale,O===d2()&&d2(O)):u0[O]!=null&&delete u0[O]);return u0[O]}function Z1(O){var e;if(O&&O._locale&&O._locale._abbr&&(O=O._locale._abbr),!O)return VM;if(!c(O)){if(e=bz(O),e)return e;O=[O]}return ns(O)}function is(){return g1(u0)}function p3(O){var e,t=O._a;return t&&S(O).overflow===-2&&(e=t[K1]<0||t[K1]>11?K1:t[y1]<1||t[y1]>Zp(t[Y0],t[K1])?y1:t[k0]<0||t[k0]>24||t[k0]===24&&(t[s1]!==0||t[Q1]!==0||t[S2]!==0)?k0:t[s1]<0||t[s1]>59?s1:t[Q1]<0||t[Q1]>59?Q1:t[S2]<0||t[S2]>999?S2:-1,S(O)._overflowDayOfYear&&(e<Y0||e>y1)&&(e=y1),S(O)._overflowWeeks&&e===-1&&(e=Wq),S(O)._overflowWeekday&&e===-1&&(e=lq),S(O).overflow=e),O}var qs=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ss=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ds=/Z|[+-]\d\d(?::?\d\d)?/,zz=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],O3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ws=/^\/?Date\((-?\d+)/i,ls=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fs={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function me(O){var e,t,A=O._i,a=qs.exec(A)||ss.exec(A),d,u,v,U,Z=zz.length,H0=O3.length;if(a){for(S(O).iso=!0,e=0,t=Z;e<t;e++)if(zz[e][1].exec(a[1])){u=zz[e][0],d=zz[e][2]!==!1;break}if(u==null){O._isValid=!1;return}if(a[3]){for(e=0,t=H0;e<t;e++)if(O3[e][1].exec(a[3])){v=(a[2]||" ")+O3[e][0];break}if(v==null){O._isValid=!1;return}}if(!d&&v!=null){O._isValid=!1;return}if(a[4])if(ds.exec(a[4]))U="Z";else{O._isValid=!1;return}O._f=u+(v||"")+(U||""),e3(O)}else O._isValid=!1}function us(O,e,t,A,a,d){var u=[Rs(O),ie.indexOf(e),parseInt(t,10),parseInt(A,10),parseInt(a,10)];return d&&u.push(parseInt(d,10)),u}function Rs(O){var e=parseInt(O,10);return e<=49?2e3+e:e<=999?1900+e:e}function hs(O){return O.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ls(O,e,t){if(O){var A=fe.indexOf(O),a=new Date(e[0],e[1],e[2]).getDay();if(A!==a)return S(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ms(O,e,t){if(O)return fs[O];if(e)return 0;var A=parseInt(t,10),a=A%100,d=(A-a)/100;return d*60+a}function Ne(O){var e=ls.exec(hs(O._i)),t;if(e){if(t=us(e[4],e[3],e[2],e[5],e[6],e[7]),!Ls(e[1],t,O))return;O._a=t,O._tzm=ms(e[8],e[9],e[10]),O._d=HM.apply(null,O._a),O._d.setUTCMinutes(O._d.getUTCMinutes()-O._tzm),S(O).rfc2822=!0}else O._isValid=!1}function Ns(O){var e=Ws.exec(O._i);if(e!==null){O._d=new Date(+e[1]);return}if(me(O),O._isValid===!1)delete O._isValid;else return;if(Ne(O),O._isValid===!1)delete O._isValid;else return;O._strict?O._isValid=!1:p.createFromInputFallback(O)}p.createFromInputFallback=_0("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(O){O._d=new Date(O._i+(O._useUTC?" UTC":""))});function oM(O,e,t){return O??e??t}function Bs(O){var e=new Date(p.now());return O._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function o3(O){var e,t,A=[],a,d,u;if(!O._d){for(a=Bs(O),O._w&&O._a[y1]==null&&O._a[K1]==null&&gs(O),O._dayOfYear!=null&&(u=oM(O._a[Y0],a[Y0]),(O._dayOfYear>FM(u)||O._dayOfYear===0)&&(S(O)._overflowDayOfYear=!0),t=HM(u,0,O._dayOfYear),O._a[K1]=t.getUTCMonth(),O._a[y1]=t.getUTCDate()),e=0;e<3&&O._a[e]==null;++e)O._a[e]=A[e]=a[e];for(;e<7;e++)O._a[e]=A[e]=O._a[e]==null?e===2?1:0:O._a[e];O._a[k0]===24&&O._a[s1]===0&&O._a[Q1]===0&&O._a[S2]===0&&(O._nextDay=!0,O._a[k0]=0),O._d=(O._useUTC?HM:vq).apply(null,A),d=O._useUTC?O._d.getUTCDay():O._d.getDay(),O._tzm!=null&&O._d.setUTCMinutes(O._d.getUTCMinutes()-O._tzm),O._nextDay&&(O._a[k0]=24),O._w&&typeof O._w.d<"u"&&O._w.d!==d&&(S(O).weekdayMismatch=!0)}}function gs(O){var e,t,A,a,d,u,v,U,Z;e=O._w,e.GG!=null||e.W!=null||e.E!=null?(d=1,u=4,t=oM(e.GG,O._a[Y0],jM(W0(),1,4).year),A=oM(e.W,1),a=oM(e.E,1),(a<1||a>7)&&(U=!0)):(d=O._locale._week.dow,u=O._locale._week.doy,Z=jM(W0(),d,u),t=oM(e.gg,O._a[Y0],Z.year),A=oM(e.w,Z.week),e.d!=null?(a=e.d,(a<0||a>6)&&(U=!0)):e.e!=null?(a=e.e+d,(e.e<0||e.e>6)&&(U=!0)):a=d),A<1||A>J1(t,d,u)?S(O)._overflowWeeks=!0:U!=null?S(O)._overflowWeekday=!0:(v=le(t,A,a,d,u),O._a[Y0]=v.year,O._dayOfYear=v.dayOfYear)}p.ISO_8601=function(){},p.RFC_2822=function(){};function e3(O){if(O._f===p.ISO_8601){me(O);return}if(O._f===p.RFC_2822){Ne(O);return}O._a=[],S(O).empty=!0;var e=""+O._i,t,A,a,d,u,v=e.length,U=0,Z,H0;for(a=xM(O._f,O._locale).match(q2)||[],H0=a.length,t=0;t<H0;t++)d=a[t],A=(e.match(qq(d,O))||[])[0],A&&(u=e.substr(0,e.indexOf(A)),u.length>0&&S(O).unusedInput.push(u),e=e.slice(e.indexOf(A)+A.length),U+=A.length),X1[d]?(A?S(O).empty=!1:S(O).unusedTokens.push(d),dq(d,A,O)):O._strict&&!A&&S(O).unusedTokens.push(d);S(O).charsLeftOver=v-U,e.length>0&&S(O).unusedInput.push(e),O._a[k0]<=12&&S(O).bigHour===!0&&O._a[k0]>0&&(S(O).bigHour=void 0),S(O).parsedDateParts=O._a.slice(0),S(O).meridiem=O._meridiem,O._a[k0]=Xs(O._locale,O._a[k0],O._meridiem),Z=S(O).era,Z!==null&&(O._a[Y0]=O._locale.erasConvertYear(Z,O._a[Y0])),o3(O),p3(O)}function Xs(O,e,t){var A;return t==null?e:O.meridiemHour!=null?O.meridiemHour(e,t):(O.isPM!=null&&(A=O.isPM(t),A&&e<12&&(e+=12),!A&&e===12&&(e=0)),e)}function ys(O){var e,t,A,a,d,u,v=!1,U=O._f.length;if(U===0){S(O).invalidFormat=!0,O._d=new Date(NaN);return}for(a=0;a<U;a++)d=0,u=!1,e=N0({},O),O._useUTC!=null&&(e._useUTC=O._useUTC),e._f=O._f[a],e3(e),y(e)&&(u=!0),d+=S(e).charsLeftOver,d+=S(e).unusedTokens.length*10,S(e).score=d,v?d<A&&(A=d,t=e):(A==null||d<A||u)&&(A=d,t=e,u&&(v=!0));P(O,t||e)}function Ts(O){if(!O._d){var e=jb(O._i),t=e.day===void 0?e.date:e.day;O._a=B([e.year,e.month,t,e.hour,e.minute,e.second,e.millisecond],function(A){return A&&parseInt(A,10)}),o3(O)}}function Ss(O){var e=new R0(p3(Be(O)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Be(O){var e=O._i,t=O._f;return O._locale=O._locale||Z1(O._l),e===null||t===void 0&&e===""?G({nullInput:!0}):(typeof e=="string"&&(O._i=e=O._locale.preparse(e)),y0(e)?new R0(p3(e)):(l(e)?O._d=e:c(t)?ys(O):t?e3(O):_s(O),y(O)||(O._d=null),O))}function _s(O){var e=O._i;i(e)?O._d=new Date(p.now()):l(e)?O._d=new Date(e.valueOf()):typeof e=="string"?Ns(O):c(e)?(O._a=B(e.slice(0),function(t){return parseInt(t,10)}),o3(O)):n(e)?Ts(O):f(e)?O._d=new Date(e):p.createFromInputFallback(O)}function ge(O,e,t,A,a){var d={};return(e===!0||e===!1)&&(A=e,e=void 0),(t===!0||t===!1)&&(A=t,t=void 0),(n(O)&&s(O)||c(O)&&O.length===0)&&(O=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=a,d._l=t,d._i=O,d._f=e,d._strict=A,Ss(d)}function W0(O,e,t,A){return ge(O,e,t,A,!1)}var vs=_0("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var O=W0.apply(null,arguments);return this.isValid()&&O.isValid()?O<this?this:O:G()}),ws=_0("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var O=W0.apply(null,arguments);return this.isValid()&&O.isValid()?O>this?this:O:G()});function Xe(O,e){var t,A;if(e.length===1&&c(e[0])&&(e=e[0]),!e.length)return W0();for(t=e[0],A=1;A<e.length;++A)(!e[A].isValid()||e[A][O](t))&&(t=e[A]);return t}function ks(){var O=[].slice.call(arguments,0);return Xe("isBefore",O)}function Es(){var O=[].slice.call(arguments,0);return Xe("isAfter",O)}var Cs=function(){return Date.now?Date.now():+new Date},KM=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ds(O){var e,t=!1,A,a=KM.length;for(e in O)if(r(O,e)&&!(T0.call(KM,e)!==-1&&(O[e]==null||!isNaN(O[e]))))return!1;for(A=0;A<a;++A)if(O[KM[A]]){if(t)return!1;parseFloat(O[KM[A]])!==Q(O[KM[A]])&&(t=!0)}return!0}function Ps(){return this._isValid}function xs(){return d1(NaN)}function pz(O){var e=jb(O),t=e.year||0,A=e.quarter||0,a=e.month||0,d=e.week||e.isoWeek||0,u=e.day||0,v=e.hour||0,U=e.minute||0,Z=e.second||0,H0=e.millisecond||0;this._isValid=Ds(e),this._milliseconds=+H0+Z*1e3+U*6e4+v*1e3*60*60,this._days=+u+d*7,this._months=+a+A*3+t*12,this._data={},this._locale=Z1(),this._bubble()}function Oz(O){return O instanceof pz}function c3(O){return O<0?Math.round(-1*O)*-1:Math.round(O)}function Is(O,e,t){var A=Math.min(O.length,e.length),a=Math.abs(O.length-e.length),d=0,u;for(u=0;u<A;u++)Q(O[u])!==Q(e[u])&&d++;return d+a}function ye(O,e){C(O,0,0,function(){var t=this.utcOffset(),A="+";return t<0&&(t=-t,A="-"),A+b1(~~(t/60),2)+e+b1(~~t%60,2)})}ye("Z",":"),ye("ZZ",""),k("Z",Jb),k("ZZ",Jb),a0(["Z","ZZ"],function(O,e,t){t._useUTC=!0,t._tzm=t3(Jb,O)});var Ys=/([\+\-]|\d\d)/gi;function t3(O,e){var t=(e||"").match(O),A,a,d;return t===null?null:(A=t[t.length-1]||[],a=(A+"").match(Ys)||["-",0,0],d=+(a[1]*60)+Q(a[2]),d===0?0:a[0]==="+"?d:-d)}function A3(O,e){var t,A;return e._isUTC?(t=e.clone(),A=(y0(O)||l(O)?O.valueOf():W0(O).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+A),p.updateOffset(t,!1),t):W0(O).local()}function n3(O){return-Math.round(O._d.getTimezoneOffset())}p.updateOffset=function(){};function Fs(O,e,t){var A=this._offset||0,a;if(!this.isValid())return O!=null?this:NaN;if(O!=null){if(typeof O=="string"){if(O=t3(Jb,O),O===null)return this}else Math.abs(O)<16&&!t&&(O=O*60);return!this._isUTC&&e&&(a=n3(this)),this._offset=O,this._isUTC=!0,a!=null&&this.add(a,"m"),A!==O&&(!e||this._changeInProgress?ve(this,d1(O-A,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?A:n3(this)}function Us(O,e){return O!=null?(typeof O!="string"&&(O=-O),this.utcOffset(O,e),this):-this.utcOffset()}function Hs(O){return this.utcOffset(0,O)}function js(O){return this._isUTC&&(this.utcOffset(0,O),this._isUTC=!1,O&&this.subtract(n3(this),"m")),this}function Gs(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var O=t3(rq,this._i);O!=null?this.utcOffset(O):this.utcOffset(0,!0)}return this}function Vs(O){return this.isValid()?(O=O?W0(O).utcOffset():0,(this.utcOffset()-O)%60===0):!1}function Ks(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Qs(){if(!i(this._isDSTShifted))return this._isDSTShifted;var O={},e;return N0(O,this),O=Be(O),O._a?(e=O._isUTC?E(O._a):W0(O._a),this._isDSTShifted=this.isValid()&&Is(O._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Js(){return this.isValid()?!this._isUTC:!1}function Zs(){return this.isValid()?this._isUTC:!1}function Te(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $s=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,M5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function d1(O,e){var t=O,A=null,a,d,u;return Oz(O)?t={ms:O._milliseconds,d:O._days,M:O._months}:f(O)||!isNaN(+O)?(t={},e?t[e]=+O:t.milliseconds=+O):(A=$s.exec(O))?(a=A[1]==="-"?-1:1,t={y:0,d:Q(A[y1])*a,h:Q(A[k0])*a,m:Q(A[s1])*a,s:Q(A[Q1])*a,ms:Q(c3(A[S2]*1e3))*a}):(A=M5.exec(O))?(a=A[1]==="-"?-1:1,t={y:_2(A[2],a),M:_2(A[3],a),w:_2(A[4],a),d:_2(A[5],a),h:_2(A[6],a),m:_2(A[7],a),s:_2(A[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(u=b5(W0(t.from),W0(t.to)),t={},t.ms=u.milliseconds,t.M=u.months),d=new pz(t),Oz(O)&&r(O,"_locale")&&(d._locale=O._locale),Oz(O)&&r(O,"_isValid")&&(d._isValid=O._isValid),d}d1.fn=pz.prototype,d1.invalid=xs;function _2(O,e){var t=O&&parseFloat(O.replace(",","."));return(isNaN(t)?0:t)*e}function Se(O,e){var t={};return t.months=e.month()-O.month()+(e.year()-O.year())*12,O.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+O.clone().add(t.months,"M"),t}function b5(O,e){var t;return O.isValid()&&e.isValid()?(e=A3(e,O),O.isBefore(e)?t=Se(O,e):(t=Se(e,O),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function _e(O,e){return function(t,A){var a,d;return A!==null&&!isNaN(+A)&&(B1(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),d=t,t=A,A=d),a=d1(t,A),ve(this,a,O),this}}function ve(O,e,t,A){var a=e._milliseconds,d=c3(e._days),u=c3(e._months);O.isValid()&&(A=A??!0,u&&se(O,UM(O,"Month")+u*t),d&&re(O,"Date",UM(O,"Date")+d*t),a&&O._d.setTime(O._d.valueOf()+a*t),A&&p.updateOffset(O,d||u))}var z5=_e(1,"add"),p5=_e(-1,"subtract");function we(O){return typeof O=="string"||O instanceof String}function O5(O){return y0(O)||l(O)||we(O)||f(O)||e5(O)||o5(O)||O===null||O===void 0}function o5(O){var e=n(O)&&!s(O),t=!1,A=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,d,u=A.length;for(a=0;a<u;a+=1)d=A[a],t=t||r(O,d);return e&&t}function e5(O){var e=c(O),t=!1;return e&&(t=O.filter(function(A){return!f(A)&&we(O)}).length===0),e&&t}function c5(O){var e=n(O)&&!s(O),t=!1,A=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,d;for(a=0;a<A.length;a+=1)d=A[a],t=t||r(O,d);return e&&t}function t5(O,e){var t=O.diff(e,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function A5(O,e){arguments.length===1&&(arguments[0]?O5(arguments[0])?(O=arguments[0],e=void 0):c5(arguments[0])&&(e=arguments[0],O=void 0):(O=void 0,e=void 0));var t=O||W0(),A=A3(t,this).startOf("day"),a=p.calendarFormat(this,A)||"sameElse",d=e&&(B0(e[a])?e[a].call(this,t):e[a]);return this.format(d||this.localeData().calendar(a,this,W0(t)))}function n5(){return new R0(this)}function a5(O,e){var t=y0(O)?O:W0(O);return this.isValid()&&t.isValid()?(e=J(e)||"millisecond",e==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(e).valueOf()):!1}function r5(O,e){var t=y0(O)?O:W0(O);return this.isValid()&&t.isValid()?(e=J(e)||"millisecond",e==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(e).valueOf()<t.valueOf()):!1}function i5(O,e,t,A){var a=y0(O)?O:W0(O),d=y0(e)?e:W0(e);return this.isValid()&&a.isValid()&&d.isValid()?(A=A||"()",(A[0]==="("?this.isAfter(a,t):!this.isBefore(a,t))&&(A[1]===")"?this.isBefore(d,t):!this.isAfter(d,t))):!1}function q5(O,e){var t=y0(O)?O:W0(O),A;return this.isValid()&&t.isValid()?(e=J(e)||"millisecond",e==="millisecond"?this.valueOf()===t.valueOf():(A=t.valueOf(),this.clone().startOf(e).valueOf()<=A&&A<=this.clone().endOf(e).valueOf())):!1}function s5(O,e){return this.isSame(O,e)||this.isAfter(O,e)}function d5(O,e){return this.isSame(O,e)||this.isBefore(O,e)}function W5(O,e,t){var A,a,d;if(!this.isValid())return NaN;if(A=A3(O,this),!A.isValid())return NaN;switch(a=(A.utcOffset()-this.utcOffset())*6e4,e=J(e),e){case"year":d=oz(this,A)/12;break;case"month":d=oz(this,A);break;case"quarter":d=oz(this,A)/3;break;case"second":d=(this-A)/1e3;break;case"minute":d=(this-A)/6e4;break;case"hour":d=(this-A)/36e5;break;case"day":d=(this-A-a)/864e5;break;case"week":d=(this-A-a)/6048e5;break;default:d=this-A}return t?d:t1(d)}function oz(O,e){if(O.date()<e.date())return-oz(e,O);var t=(e.year()-O.year())*12+(e.month()-O.month()),A=O.clone().add(t,"months"),a,d;return e-A<0?(a=O.clone().add(t-1,"months"),d=(e-A)/(A-a)):(a=O.clone().add(t+1,"months"),d=(e-A)/(a-A)),-(t+d)||0}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function l5(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function f5(O){if(!this.isValid())return null;var e=O!==!0,t=e?this.clone().utc():this;return t.year()<0||t.year()>9999?I0(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):B0(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",I0(t,"Z")):I0(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function u5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O="moment",e="",t,A,a,d;return this.isLocal()||(O=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+O+'("]',A=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",d=e+'[")]',this.format(t+A+a+d)}function R5(O){O||(O=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=I0(this,O);return this.localeData().postformat(e)}function h5(O,e){return this.isValid()&&(y0(O)&&O.isValid()||W0(O).isValid())?d1({to:this,from:O}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function L5(O){return this.from(W0(),O)}function m5(O,e){return this.isValid()&&(y0(O)&&O.isValid()||W0(O).isValid())?d1({from:this,to:O}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function N5(O){return this.to(W0(),O)}function ke(O){var e;return O===void 0?this._locale._abbr:(e=Z1(O),e!=null&&(this._locale=e),this)}var Ee=_0("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(O){return O===void 0?this.localeData():this.locale(O)});function Ce(){return this._locale}var ez=1e3,eM=60*ez,cz=60*eM,De=(365*400+97)*24*cz;function cM(O,e){return(O%e+e)%e}function Pe(O,e,t){return O<100&&O>=0?new Date(O+400,e,t)-De:new Date(O,e,t).valueOf()}function xe(O,e,t){return O<100&&O>=0?Date.UTC(O+400,e,t)-De:Date.UTC(O,e,t)}function B5(O){var e,t;if(O=J(O),O===void 0||O==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?xe:Pe,O){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=cM(e+(this._isUTC?0:this.utcOffset()*eM),cz);break;case"minute":e=this._d.valueOf(),e-=cM(e,eM);break;case"second":e=this._d.valueOf(),e-=cM(e,ez);break}return this._d.setTime(e),p.updateOffset(this,!0),this}function g5(O){var e,t;if(O=J(O),O===void 0||O==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?xe:Pe,O){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=cz-cM(e+(this._isUTC?0:this.utcOffset()*eM),cz)-1;break;case"minute":e=this._d.valueOf(),e+=eM-cM(e,eM)-1;break;case"second":e=this._d.valueOf(),e+=ez-cM(e,ez)-1;break}return this._d.setTime(e),p.updateOffset(this,!0),this}function X5(){return this._d.valueOf()-(this._offset||0)*6e4}function y5(){return Math.floor(this.valueOf()/1e3)}function T5(){return new Date(this.valueOf())}function S5(){var O=this;return[O.year(),O.month(),O.date(),O.hour(),O.minute(),O.second(),O.millisecond()]}function _5(){var O=this;return{years:O.year(),months:O.month(),date:O.date(),hours:O.hours(),minutes:O.minutes(),seconds:O.seconds(),milliseconds:O.milliseconds()}}function v5(){return this.isValid()?this.toISOString():null}function w5(){return y(this)}function k5(){return P({},S(this))}function E5(){return S(this).overflow}function C5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),k("N",a3),k("NN",a3),k("NNN",a3),k("NNNN",V5),k("NNNNN",K5),a0(["N","NN","NNN","NNNN","NNNNN"],function(O,e,t,A){var a=t._locale.erasParse(O,A,t._strict);a?S(t).era=a:S(t).invalidEra=O}),k("y",zM),k("yy",zM),k("yyy",zM),k("yyyy",zM),k("yo",Q5),a0(["y","yy","yyy","yyyy"],Y0),a0(["yo"],function(O,e,t,A){var a;t._locale._eraYearOrdinalRegex&&(a=O.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[Y0]=t._locale.eraYearOrdinalParse(O,a):e[Y0]=parseInt(O,10)});function D5(O,e){var t,A,a,d=this._eras||Z1("en")._eras;for(t=0,A=d.length;t<A;++t){switch(typeof d[t].since){case"string":a=p(d[t].since).startOf("day"),d[t].since=a.valueOf();break}switch(typeof d[t].until){case"undefined":d[t].until=1/0;break;case"string":a=p(d[t].until).startOf("day").valueOf(),d[t].until=a.valueOf();break}}return d}function P5(O,e,t){var A,a,d=this.eras(),u,v,U;for(O=O.toUpperCase(),A=0,a=d.length;A<a;++A)if(u=d[A].name.toUpperCase(),v=d[A].abbr.toUpperCase(),U=d[A].narrow.toUpperCase(),t)switch(e){case"N":case"NN":case"NNN":if(v===O)return d[A];break;case"NNNN":if(u===O)return d[A];break;case"NNNNN":if(U===O)return d[A];break}else if([u,v,U].indexOf(O)>=0)return d[A]}function x5(O,e){var t=O.since<=O.until?1:-1;return e===void 0?p(O.since).year():p(O.since).year()+(e-O.offset)*t}function I5(){var O,e,t,A=this.localeData().eras();for(O=0,e=A.length;O<e;++O)if(t=this.clone().startOf("day").valueOf(),A[O].since<=t&&t<=A[O].until||A[O].until<=t&&t<=A[O].since)return A[O].name;return""}function Y5(){var O,e,t,A=this.localeData().eras();for(O=0,e=A.length;O<e;++O)if(t=this.clone().startOf("day").valueOf(),A[O].since<=t&&t<=A[O].until||A[O].until<=t&&t<=A[O].since)return A[O].narrow;return""}function F5(){var O,e,t,A=this.localeData().eras();for(O=0,e=A.length;O<e;++O)if(t=this.clone().startOf("day").valueOf(),A[O].since<=t&&t<=A[O].until||A[O].until<=t&&t<=A[O].since)return A[O].abbr;return""}function U5(){var O,e,t,A,a=this.localeData().eras();for(O=0,e=a.length;O<e;++O)if(t=a[O].since<=a[O].until?1:-1,A=this.clone().startOf("day").valueOf(),a[O].since<=A&&A<=a[O].until||a[O].until<=A&&A<=a[O].since)return(this.year()-p(a[O].since).year())*t+a[O].offset;return this.year()}function H5(O){return r(this,"_erasNameRegex")||r3.call(this),O?this._erasNameRegex:this._erasRegex}function j5(O){return r(this,"_erasAbbrRegex")||r3.call(this),O?this._erasAbbrRegex:this._erasRegex}function G5(O){return r(this,"_erasNarrowRegex")||r3.call(this),O?this._erasNarrowRegex:this._erasRegex}function a3(O,e){return e.erasAbbrRegex(O)}function V5(O,e){return e.erasNameRegex(O)}function K5(O,e){return e.erasNarrowRegex(O)}function Q5(O,e){return e._eraYearOrdinalRegex||zM}function r3(){var O=[],e=[],t=[],A=[],a,d,u,v,U,Z=this.eras();for(a=0,d=Z.length;a<d;++a)u=V1(Z[a].name),v=V1(Z[a].abbr),U=V1(Z[a].narrow),e.push(u),O.push(v),t.push(U),A.push(u),A.push(v),A.push(U);this._erasRegex=new RegExp("^("+A.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+O.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100});function tz(O,e){C(0,[O,O.length],0,e)}tz("gggg","weekYear"),tz("ggggg","weekYear"),tz("GGGG","isoWeekYear"),tz("GGGGG","isoWeekYear"),k("G",Qb),k("g",Qb),k("GG",d0,z1),k("gg",d0,z1),k("GGGG",Kp,Vp),k("gggg",Kp,Vp),k("GGGGG",Kb,Gb),k("ggggg",Kb,Gb),YM(["gggg","ggggg","GGGG","GGGGG"],function(O,e,t,A){e[A.substr(0,2)]=Q(O)}),YM(["gg","GG"],function(O,e,t,A){e[A]=p.parseTwoDigitYear(O)});function J5(O){return Ie.call(this,O,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Z5(O){return Ie.call(this,O,this.isoWeek(),this.isoWeekday(),1,4)}function $5(){return J1(this.year(),1,4)}function Md(){return J1(this.isoWeekYear(),1,4)}function bd(){var O=this.localeData()._week;return J1(this.year(),O.dow,O.doy)}function zd(){var O=this.localeData()._week;return J1(this.weekYear(),O.dow,O.doy)}function Ie(O,e,t,A,a){var d;return O==null?jM(this,A,a).year:(d=J1(O,A,a),e>d&&(e=d),pd.call(this,O,e,t,A,a))}function pd(O,e,t,A,a){var d=le(O,e,t,A,a),u=HM(d.year,0,d.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}C("Q",0,"Qo","quarter"),k("Q",ce),a0("Q",function(O,e){e[K1]=(Q(O)-1)*3});function Od(O){return O==null?Math.ceil((this.month()+1)/3):this.month((O-1)*3+this.month()%3)}C("D",["DD",2],"Do","date"),k("D",d0,pM),k("DD",d0,z1),k("Do",function(O,e){return O?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),a0(["D","DD"],y1),a0("Do",function(O,e){e[y1]=Q(O.match(d0)[0])});var Ye=OM("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),k("DDD",Vb),k("DDDD",te),a0(["DDD","DDDD"],function(O,e,t){t._dayOfYear=Q(O)});function od(O){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return O==null?e:this.add(O-e,"d")}C("m",["mm",2],0,"minute"),k("m",d0,Qp),k("mm",d0,z1),a0(["m","mm"],s1);var ed=OM("Minutes",!1);C("s",["ss",2],0,"second"),k("s",d0,Qp),k("ss",d0,z1),a0(["s","ss"],Q1);var cd=OM("Seconds",!1);C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return this.millisecond()*10}),C(0,["SSSSS",5],0,function(){return this.millisecond()*100}),C(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),C(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),C(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),C(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),k("S",Vb,ce),k("SS",Vb,z1),k("SSS",Vb,te);var W2,Fe;for(W2="SSSS";W2.length<=9;W2+="S")k(W2,zM);function td(O,e){e[S2]=Q(("0."+O)*1e3)}for(W2="S";W2.length<=9;W2+="S")a0(W2,td);Fe=OM("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");function Ad(){return this._isUTC?"UTC":""}function nd(){return this._isUTC?"Coordinated Universal Time":""}var N=R0.prototype;N.add=z5,N.calendar=A5,N.clone=n5,N.diff=W5,N.endOf=g5,N.format=R5,N.from=h5,N.fromNow=L5,N.to=m5,N.toNow=N5,N.get=uq,N.invalidAt=E5,N.isAfter=a5,N.isBefore=r5,N.isBetween=i5,N.isSame=q5,N.isSameOrAfter=s5,N.isSameOrBefore=d5,N.isValid=w5,N.lang=Ee,N.locale=ke,N.localeData=Ce,N.max=ws,N.min=vs,N.parsingFlags=k5,N.set=Rq,N.startOf=B5,N.subtract=p5,N.toArray=S5,N.toObject=_5,N.toDate=T5,N.toISOString=f5,N.inspect=u5,typeof Symbol<"u"&&Symbol.for!=null&&(N[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),N.toJSON=v5,N.toString=l5,N.unix=y5,N.valueOf=X5,N.creationData=C5,N.eraName=I5,N.eraNarrow=Y5,N.eraAbbr=F5,N.eraYear=U5,N.year=ae,N.isLeapYear=fq,N.weekYear=J5,N.isoWeekYear=Z5,N.quarter=N.quarters=Od,N.month=de,N.daysInMonth=Tq,N.week=N.weeks=Dq,N.isoWeek=N.isoWeeks=Pq,N.weeksInYear=bd,N.weeksInWeekYear=zd,N.isoWeeksInYear=$5,N.isoWeeksInISOWeekYear=Md,N.date=Ye,N.day=N.days=Zq,N.weekday=$q,N.isoWeekday=Ms,N.dayOfYear=od,N.hour=N.hours=cs,N.minute=N.minutes=ed,N.second=N.seconds=cd,N.millisecond=N.milliseconds=Fe,N.utcOffset=Fs,N.utc=Hs,N.local=js,N.parseZone=Gs,N.hasAlignedHourOffset=Vs,N.isDST=Ks,N.isLocal=Js,N.isUtcOffset=Zs,N.isUtc=Te,N.isUTC=Te,N.zoneAbbr=Ad,N.zoneName=nd,N.dates=_0("dates accessor is deprecated. Use date instead.",Ye),N.months=_0("months accessor is deprecated. Use month instead",de),N.years=_0("years accessor is deprecated. Use year instead",ae),N.zone=_0("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Us),N.isDSTShifted=_0("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Qs);function ad(O){return W0(O*1e3)}function rd(){return W0.apply(null,arguments).parseZone()}function Ue(O){return O}var c0=h0.prototype;c0.calendar=bM,c0.longDateFormat=Gp,c0.invalidDate=W,c0.ordinal=X,c0.preparse=Ue,c0.postformat=Ue,c0.relativeTime=M0,c0.pastFuture=g0,c0.set=U0,c0.eras=D5,c0.erasParse=P5,c0.erasConvertYear=x5,c0.erasAbbrRegex=j5,c0.erasNameRegex=H5,c0.erasNarrowRegex=G5,c0.months=Bq,c0.monthsShort=gq,c0.monthsParse=yq,c0.monthsRegex=_q,c0.monthsShortRegex=Sq,c0.week=wq,c0.firstDayOfYear=Cq,c0.firstDayOfWeek=Eq,c0.weekdays=Gq,c0.weekdaysMin=Kq,c0.weekdaysShort=Vq,c0.weekdaysParse=Jq,c0.weekdaysRegex=bs,c0.weekdaysShortRegex=zs,c0.weekdaysMinRegex=ps,c0.isPM=os,c0.meridiem=ts;function Az(O,e,t,A){var a=Z1(),d=E().set(A,e);return a[t](d,O)}function He(O,e,t){if(f(O)&&(e=O,O=void 0),O=O||"",e!=null)return Az(O,e,t,"month");var A,a=[];for(A=0;A<12;A++)a[A]=Az(O,A,t,"month");return a}function i3(O,e,t,A){typeof O=="boolean"?(f(e)&&(t=e,e=void 0),e=e||""):(e=O,t=e,O=!1,f(e)&&(t=e,e=void 0),e=e||"");var a=Z1(),d=O?a._week.dow:0,u,v=[];if(t!=null)return Az(e,(t+d)%7,A,"day");for(u=0;u<7;u++)v[u]=Az(e,(u+d)%7,A,"day");return v}function id(O,e){return He(O,e,"months")}function qd(O,e){return He(O,e,"monthsShort")}function sd(O,e,t){return i3(O,e,t,"weekdays")}function dd(O,e,t){return i3(O,e,t,"weekdaysShort")}function Wd(O,e,t){return i3(O,e,t,"weekdaysMin")}d2("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(O){var e=O%10,t=Q(O%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return O+t}}),p.lang=_0("moment.lang is deprecated. Use moment.locale instead.",d2),p.langData=_0("moment.langData is deprecated. Use moment.localeData instead.",Z1);var $1=Math.abs;function ld(){var O=this._data;return this._milliseconds=$1(this._milliseconds),this._days=$1(this._days),this._months=$1(this._months),O.milliseconds=$1(O.milliseconds),O.seconds=$1(O.seconds),O.minutes=$1(O.minutes),O.hours=$1(O.hours),O.months=$1(O.months),O.years=$1(O.years),this}function je(O,e,t,A){var a=d1(e,t);return O._milliseconds+=A*a._milliseconds,O._days+=A*a._days,O._months+=A*a._months,O._bubble()}function fd(O,e){return je(this,O,e,1)}function ud(O,e){return je(this,O,e,-1)}function Ge(O){return O<0?Math.floor(O):Math.ceil(O)}function Rd(){var O=this._milliseconds,e=this._days,t=this._months,A=this._data,a,d,u,v,U;return O>=0&&e>=0&&t>=0||O<=0&&e<=0&&t<=0||(O+=Ge(q3(t)+e)*864e5,e=0,t=0),A.milliseconds=O%1e3,a=t1(O/1e3),A.seconds=a%60,d=t1(a/60),A.minutes=d%60,u=t1(d/60),A.hours=u%24,e+=t1(u/24),U=t1(Ve(e)),t+=U,e-=Ge(q3(U)),v=t1(t/12),t%=12,A.days=e,A.months=t,A.years=v,this}function Ve(O){return O*4800/146097}function q3(O){return O*146097/4800}function hd(O){if(!this.isValid())return NaN;var e,t,A=this._milliseconds;if(O=J(O),O==="month"||O==="quarter"||O==="year")switch(e=this._days+A/864e5,t=this._months+Ve(e),O){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(q3(this._months)),O){case"week":return e/7+A/6048e5;case"day":return e+A/864e5;case"hour":return e*24+A/36e5;case"minute":return e*1440+A/6e4;case"second":return e*86400+A/1e3;case"millisecond":return Math.floor(e*864e5)+A;default:throw new Error("Unknown unit "+O)}}function M2(O){return function(){return this.as(O)}}var Ke=M2("ms"),Ld=M2("s"),md=M2("m"),Nd=M2("h"),Bd=M2("d"),gd=M2("w"),Xd=M2("M"),yd=M2("Q"),Td=M2("y"),Sd=Ke;function _d(){return d1(this)}function vd(O){return O=J(O),this.isValid()?this[O+"s"]():NaN}function v2(O){return function(){return this.isValid()?this._data[O]:NaN}}var wd=v2("milliseconds"),kd=v2("seconds"),Ed=v2("minutes"),Cd=v2("hours"),Dd=v2("days"),Pd=v2("months"),xd=v2("years");function Id(){return t1(this.days()/7)}var b2=Math.round,tM={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Yd(O,e,t,A,a){return a.relativeTime(e||1,!!t,O,A)}function Fd(O,e,t,A){var a=d1(O).abs(),d=b2(a.as("s")),u=b2(a.as("m")),v=b2(a.as("h")),U=b2(a.as("d")),Z=b2(a.as("M")),H0=b2(a.as("w")),z2=b2(a.as("y")),l2=d<=t.ss&&["s",d]||d<t.s&&["ss",d]||u<=1&&["m"]||u<t.m&&["mm",u]||v<=1&&["h"]||v<t.h&&["hh",v]||U<=1&&["d"]||U<t.d&&["dd",U];return t.w!=null&&(l2=l2||H0<=1&&["w"]||H0<t.w&&["ww",H0]),l2=l2||Z<=1&&["M"]||Z<t.M&&["MM",Z]||z2<=1&&["y"]||["yy",z2],l2[2]=e,l2[3]=+O>0,l2[4]=A,Yd.apply(null,l2)}function Ud(O){return O===void 0?b2:typeof O=="function"?(b2=O,!0):!1}function Hd(O,e){return tM[O]===void 0?!1:e===void 0?tM[O]:(tM[O]=e,O==="s"&&(tM.ss=e-1),!0)}function jd(O,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,A=tM,a,d;return typeof O=="object"&&(e=O,O=!1),typeof O=="boolean"&&(t=O),typeof e=="object"&&(A=Object.assign({},tM,e),e.s!=null&&e.ss==null&&(A.ss=e.s-1)),a=this.localeData(),d=Fd(this,!t,A,a),t&&(d=a.pastFuture(+this,d)),a.postformat(d)}var s3=Math.abs;function AM(O){return(O>0)-(O<0)||+O}function nz(){if(!this.isValid())return this.localeData().invalidDate();var O=s3(this._milliseconds)/1e3,e=s3(this._days),t=s3(this._months),A,a,d,u,v=this.asSeconds(),U,Z,H0,z2;return v?(A=t1(O/60),a=t1(A/60),O%=60,A%=60,d=t1(t/12),t%=12,u=O?O.toFixed(3).replace(/\.?0+$/,""):"",U=v<0?"-":"",Z=AM(this._months)!==AM(v)?"-":"",H0=AM(this._days)!==AM(v)?"-":"",z2=AM(this._milliseconds)!==AM(v)?"-":"",U+"P"+(d?Z+d+"Y":"")+(t?Z+t+"M":"")+(e?H0+e+"D":"")+(a||A||O?"T":"")+(a?z2+a+"H":"")+(A?z2+A+"M":"")+(O?z2+u+"S":"")):"P0D"}var b0=pz.prototype;b0.isValid=Ps,b0.abs=ld,b0.add=fd,b0.subtract=ud,b0.as=hd,b0.asMilliseconds=Ke,b0.asSeconds=Ld,b0.asMinutes=md,b0.asHours=Nd,b0.asDays=Bd,b0.asWeeks=gd,b0.asMonths=Xd,b0.asQuarters=yd,b0.asYears=Td,b0.valueOf=Sd,b0._bubble=Rd,b0.clone=_d,b0.get=vd,b0.milliseconds=wd,b0.seconds=kd,b0.minutes=Ed,b0.hours=Cd,b0.days=Dd,b0.weeks=Id,b0.months=Pd,b0.years=xd,b0.humanize=jd,b0.toISOString=nz,b0.toString=nz,b0.toJSON=nz,b0.locale=ke,b0.localeData=Ce,b0.toIsoString=_0("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nz),b0.lang=Ee,C("X",0,0,"unix"),C("x",0,0,"valueOf"),k("x",Qb),k("X",iq),a0("X",function(O,e,t){t._d=new Date(parseFloat(O)*1e3)}),a0("x",function(O,e,t){t._d=new Date(Q(O))});//! moment.js
|
|
592
592
|
return p.version="2.30.1",o(W0),p.fn=N,p.min=ks,p.max=Es,p.now=Cs,p.utc=E,p.unix=ad,p.months=id,p.isDate=l,p.locale=d2,p.invalid=G,p.duration=d1,p.isMoment=y0,p.weekdays=sd,p.parseZone=rd,p.localeData=Z1,p.isDuration=Oz,p.monthsShort=qd,p.weekdaysMin=Wd,p.defineLocale=z3,p.updateLocale=rs,p.locales=is,p.weekdaysShort=dd,p.normalizeUnits=J,p.relativeTimeRounding=Ud,p.relativeTimeThreshold=Hd,p.calendarFormat=t5,p.prototype=N,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},p})}(jp)),jp.exports}(function(M,b){(function(z,p){p(typeof Jo=="function"?si():z.moment)})(rp,function(z){//! moment.js locale configuration
|
|
593
|
-
var p=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,c=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r=z.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:c,monthsShortRegex:c,monthsStrictRegex:p,monthsShortStrictRegex:o,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(s,i){switch(i){case"D":return s+(s===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return s+(s===1?"er":"e");case"w":case"W":return s+(s===1?"re":"e")}},week:{dow:1,doy:4}});return r})})();function $2(M,b=!0){if(!M)return null;let z=M.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return b?z.toLowerCase():z}function di(M,b="DD/MM/YYYY"){return H1.unix(M).isValid()?H1.unix(M).format(b):M}const $o=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Wi(M,b){const z=M.replace(/\d+/g,o=>(+o+1e5).toString()),p=b.replace(/\d+/g,o=>(+o+1e5).toString());return z.localeCompare(p)}function Me(M){return M!=null&&M!==""&&!isNaN(M)}function be(M){return M&&H1(M,"DD/MM/YYYY",!0).isValid()}function ze(M){return typeof M=="boolean"}function li(M,b,z){const c=(M?1:0)-(b?1:0);return z?-c:c}function fi(M,b){const z=(M==null||M==="")&&typeof M!="boolean",p=(b==null||b==="")&&typeof b!="boolean";return z&&p?0:z?1:p?-1:null}function pe(M){return typeof M=="string"&&M.includes("€")}function ui(M,b,z){const p=parseFloat(M.replace("€","").replace(",",".").replace(/\s/g,"").trim()),o=parseFloat(b.replace("€","").replace(",",".").replace(/\s/g,"").trim());if(isNaN(p)&&isNaN(o))return 0;if(isNaN(p))return 1;if(isNaN(o))return-1;const c=p-o;return z?c:-c}function Oe(M,b,z){const p=fi(M,b);if(p!==null)return p;if(ze(M)&&ze(b))return li(M,b,z);if($o.test(M)&&$o.test(b)){const r=Wi(M,b);return z?r:-r}if(Me(M)&&Me(b)){const r=parseFloat(M),s=parseFloat(b);return z?r-s:s-r}if(be(M)&&be(b)){const r=H1(M,"DD/MM/YYYY").unix(),s=H1(b,"DD/MM/YYYY").unix();return z?r-s:s-r}if(pe(M)&&pe(b))return ui(M,b,z);const o=typeof M=="string"?$2(M).toLowerCase():$2(String(M)).toLowerCase(),c=typeof b=="string"?$2(b).toLowerCase():$2(String(b)).toLowerCase(),n=o.localeCompare(c,void 0,{numeric:!0,sensitivity:"base"});return z?n:-n}function Ri(M,b,z=!1){return!M||!Array.isArray(M)?M:M.sort((p,o)=>{const c=p==null?void 0:p[b],n=o==null?void 0:o[b];return Oe(c,n,z)})}function hi(M,b=!1,z){return!M||!Array.isArray(M)?M:M.sort((p,o)=>z(p,o,b))}function oe(M,b){let z=y2(M);if(!z)z={columns:b};else if(!z.columns)z.columns=b;else{let p=b.filter(function(c){return!z.columns.some(function(n){return n.id===c.id})});z.columns=z.columns.concat(p);let o=z.columns.filter(function(c){return!b.some(function(n){return c.id===n.id})});z.columns=z.columns.filter(function(c){return!o.some(function(n){return c.id===n.id})}),z.columns.filter(c=>{for(let n of b)n.id===c.id&&n.libelle!==c.libelle&&(c.libelle=n.libelle)})}MM(M,z)}function Li(M,b,z=null){let p=y2(M);p?z&&!p[z]&&(p[z]=b):z?(p={},p[z]=b):p=b,MM(M,p)}function y2(M){return JSON.parse(window.localStorage.getItem(M))}function MM(M,b,z=null){let p=y2(M);return z?p[z]=b:p=b,window.localStorage.setItem(M,JSON.stringify(p))}const mi=(M,b)=>{const z=M.__vccOpts||M;for(const[p,o]of b)z[p]=o;return z};Gt.add(sA,rA,iA,uA,dA,lA,fA,WA,qA);const Ni={name:"AmsomTableDraggable",components:{VueDraggableNext:en,FontAwesomeIcon:aA},props:{defaultColumns:{type:Array,require:!0,default:null},dynamicColumns:{type:Array,default:null},localStorageItemName:{type:String,default:null},localStorageMaxItemPerPageName:{type:String,default:null},tdItemsList:{type:[Array,Object],require:!0,default:null},search:{type:String,default:null},pickedDate:{type:Array,default:null},columnNameDateFilter:{type:Array,default:null},maxItemPerPage:{type:Number,default:-1},infiniteScroll:{type:Boolean,default:!1},infiniteScrollIncrement:{type:Number,default:null},maxItemPerPageList:{type:Array,default:()=>[{value:5,text:"5"},{value:10,text:"10"},{value:15,text:"15"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:-1,text:"Tous"}]},showMaxItemPerPageBtn:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},showModifyColumnsBtn:{type:Boolean,default:!1},showLineNumber:{type:Boolean,default:!1},ghostClass:{type:String,default:"bg-success"},headerBgColor:{type:String,default:"bg-white"},headerTextColor:{type:String,default:"text-primary"},lineEditMode:{type:Boolean,default:!1},border:{type:Boolean,default:!1},tableSm:{type:Boolean,default:!1},deepSorts:{type:Boolean,default:!1},deepSortsListPreset:{type:Array,default:null},ckSelectedItems:{type:Array,default:null},lineStatesList:{type:Array,default:()=>[{state:"add",class:"addLineState"},{state:"delete",class:"deleteLineState"},{state:"update",class:"updateLineState"}]},stickyScrollbarHorizontal:{type:Boolean,default:!1},paginationPosition:{type:String,default:"left",validator(M){return["left","center","right"].includes(M)}},trFontSize:{type:String,default:"fs-6"},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:"Aucune valeur"}},emits:["changeSubject","lineEditModeAddNewLine","update:ckSelectedItems","update:dynamicColumns","update:deepSortsListPreset","contextmenu"],data(){return{checkAllCheckBox:!1,isDragging:!1,sortKey:null,sortAsc:!1,currentPage:1,previousCurrentPage:1,selectedItems:[],currentHeaderSort:null,headerEditMode:!1,totalPages:null,columns:this.copyDefaultColumns(),maxItemsPerPage:this.getDefaultMaxItemPerPage(),forceTableUpdateIndex:0,resizeObserver:null,showScrollbar:!1,tableContainer:null,deepSortsList:[],isInternalUpdate:!1,currentVisibleItems:0,scrollTimeout:null}},computed:{currentDisplayPagination(){let M=[];return this.totalPages<=1?M:(this.currentPage===1?M=[1,2,3]:this.currentPage===this.totalPages?M=[this.totalPages-2,this.totalPages-1,this.totalPages]:M=[this.currentPage-1,this.currentPage,this.currentPage+1],M.filter(b=>b>=1&&b<=this.totalPages))},items(){return this.tdItemsList?this.tdItemsList:[]},showItemsLinesNumber(){return this.showeditems.length},dateFilterBounds(){return!this.pickedDate||!this.pickedDate[0]||!this.pickedDate[1]?null:{deb:H1(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:H1(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?$2(this.search):""},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(M=>M.show&&(!M.onlyOnEditMode||this.lineEditMode))},filtereditems(){return this.items?this.items.filter(M=>{const b=this.filterBy(M,this.normalizedSearch);if(this.hasDateFilter){const z=this.columnNameDateFilter.some(p=>{const o=M[p];if(o){const c=H1(o,"DD/MM/YYYY").unix();return c>=this.dateFilterBounds.deb&&c<=this.dateFilterBounds.fin}return!1});return b&&z}return b}):[]},sortedItems(){if(!this.filtereditems)return[];const M=this.columns.find(b=>b.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):M!=null&&M.customSort?hi([...this.filtereditems],this.sortAsc,M.customSort):this.sortKey?Ri([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){const M=this.sortedItems;if(this.infiniteScroll)return M.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return M;const b=(this.currentPage-1)*this.maxItemsPerPage,z=this.currentPage*this.maxItemsPerPage;return M.slice(b,z)},tableMaxHeight(){if(!this.infiniteScroll)return"auto";const M=this.trHeightPx||60,b=50,z=this.maxItemPerPage;return`${b+z*M}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(M){M&&(this.selectedItems=M)},immediate:!0},dynamicColumns:{handler(M){M&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(M,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(M){this.localStorageItemName!==null&&MM(this.localStorageItemName,this.getRefactoColumns(M),"columns"),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit("update:dynamicColumns",this.getRefactoColumns(M)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(M){var b;if(M)this.maxItemsPerPage=3;else{const z=this.localStorageMaxItemPerPageName!==null?y2(this.localStorageMaxItemPerPageName):this.localStorageItemName!==null?(b=y2(this.localStorageItemName))==null?void 0:b.maxItemPerPage:this.maxItemPerPage;this.maxItemsPerPage=z??this.maxItemPerPage}}},sortedItems:{handler(M){if(this.infiniteScroll){const b=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.maxItemPerPage+b,M.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,M.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(M.length))},immediate:!0},filtereditems:{handler(M,b){if(this.infiniteScroll&&b&&M.length!==b.length)if(M.length>b.length&&this.currentVisibleItems<M.length){const z=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+z,M.length)}else M.length<b.length&&this.currentVisibleItems>M.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,M.length))},immediate:!1},maxItemPerPage:{handler(M){M!==this.maxItemsPerPage&&(this.maxItemsPerPage=M)},immediate:!0},maxItemsPerPage:{handler(M){if(!this.headerEditMode){if(this.localStorageItemName!==null&&MM(this.localStorageItemName,M,"maxItemPerPage"),this.localStorageMaxItemPerPageName!==null&&MM(this.localStorageMaxItemPerPageName,M),this.infiniteScroll){const b=this.infiniteScrollIncrement||M;this.currentVisibleItems=Math.min(M+b,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(M,b){M!==b&&this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&M!==b&&this.$nextTick(()=>{this.$nextTick(()=>{const z=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+z,this.filtereditems.length)})})},immediate:!1},showeditems:{handler(M){this.shouldAdjustPage(M)&&this.adjustPageAfterSearch(),this.checkAllCheckBox=M.length>0&&M.every(b=>this.selectedItems.includes(b.id)),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))},flush:"post"},deepSortsList:{handler(M){M&&M.length>0&&this.$emit("update:deepSortsListPreset",M),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{const b=this.currentVisibleItems;this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(M){M&&M.length>0&&JSON.stringify(M)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=[...M])},deep:!0,immediate:!0}},mounted(){var M;if(this.localStorageItemName!==null){oe(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),Li(this.localStorageItemName,this.maxItemPerPage,"maxItemPerPage");let b=y2(this.localStorageItemName);b&&(this.columns=this.getColumnsById(b.columns,this.defaultColumns),this.maxItemsPerPage=b.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let b=y2(this.localStorageMaxItemPerPageName);b&&(this.maxItemsPerPage=b)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){const b=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+b,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);this.initResizeObserver(),this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener("resize",this.checkTableOverflow),window.addEventListener("scroll",this.handleTableScroll)),this.tableContainer=(M=this.$refs.table)==null?void 0:M.closest(".overflow-x-auto"),this.infiniteScroll&&this.$nextTick(()=>{this.$refs.scrollContainer})},beforeUnmount(){this.cleanupResizeObserver(),window.removeEventListener("resize",this.checkTableOverflow),window.removeEventListener("scroll",this.handleTableScroll),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)},methods:{moment:H1,unixToDateString:di,shouldAdjustPage(M){return M.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(M){return JSON.parse(JSON.stringify(M)).map(z=>({id:z.id,show:z.show}))},getColumnsById(M,b){return M.map(z=>({...b.find(o=>o.id===z.id),show:z.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){const M=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);M>0&&M!==this.currentPage&&(this.currentPage=M)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});const M=this.$refs.table;M&&this.resizeObserver.observe(M)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{const M=document.querySelector(".bottom-scrollbar");if(this.tableContainer&&M){const b=this.tableContainer.scrollHeight,z=window.innerHeight;this.showScrollbar=b>z,this.showScrollbar&&(document.querySelector(".scrollbar-content").style.width=this.tableContainer.scrollWidth+"px",M.addEventListener("scroll",()=>{this.tableContainer.scrollLeft=M.scrollLeft}),this.tableContainer.addEventListener("scroll",()=>{M.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},updateStickyColumns(){if(!this.columns.some(p=>p.stickyLeft||p.stickyRight))return;let b=0,z=0;this.columns.forEach((p,o)=>{if(!p.stickyLeft&&!p.stickyRight)return;const c=document.getElementById(`${p.id}-th-${o}`);if(!c)return;const n=c.getBoundingClientRect(),r=document.querySelector(`[data-column-id="${p.id}"]`),s=r?r.getBoundingClientRect().width:0,i=Math.max(s,n.width)-1,f=document.querySelectorAll(`[data-column-id="${p.id}"]`);p.stickyLeft&&(c.style.left=`${b}px`,f.forEach(l=>l.style.left=`${b}px`),b+=i),p.stickyRight&&(c.style.right=`${z}px`,f.forEach(l=>l.style.right=`${z}px`),z+=i)})},newTotalPage(M){return Math.ceil(M/this.maxItemsPerPage)},lineStateClass(M){const b=this.lineStatesList.find(z=>z.state===M);return b?b.class:""},checkItem(M){const b=this.selectedItems.indexOf(M);if(b!==-1)this.selectedItems.splice(b,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(M),!this.checkAllCheckBox){const z=this.showeditems.map(p=>p.id);this.checkAllCheckBox=z.every(p=>this.selectedItems.includes(p))}this.$emit("update:ckSelectedItems",this.selectedItems)},toggleAllCheckBox(){const M=this.showeditems.map(b=>b.id);if(this.checkAllCheckBox)this.selectedItems=this.selectedItems.filter(b=>!M.includes(b)),this.checkAllCheckBox=!1;else{const b=new Set([...this.selectedItems,...M]);this.selectedItems=Array.from(b),this.checkAllCheckBox=!0}this.$emit("update:ckSelectedItems",this.selectedItems)},updateCurrentSort(M){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=!1),M.isSorted=!0,this.currentHeaderSort=M;const b=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(M.id),this.infiniteScroll&&b&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},checkMove(M){const b=this.columns.reduce((z,p,o)=>(p.fixed&&z.push(o),z),[]);return!b.includes(M.draggedContext.index)&&!b.includes(M.relatedContext.index)},filterBy(M,b){return b?this.visibleColumns.some(z=>{const p=M[z.id];return p&&$2(p).includes(b)}):!0},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return JSON.parse(JSON.stringify(this.defaultColumns))},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(M){this.items&&(this.sortKey===M?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=M))},selectSubject(M){this.$emit("changeSubject",M)},saveTablePreferences(){this.localStorageItemName!==null&&MM(this.localStorageItemName,this.getRefactoColumns(this.columns),"columns"),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&oe(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(M){const b=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortsList.push({id:M.id,libelle:M.libelle,asc:!0}),this.infiniteScroll&&b&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},deepSortsColumnList(M,b){return!M||M.length===0?b:b.sort((z,p)=>{for(const o of M){const c=z[o.id],n=p[o.id],r=Oe(c,n,o.asc);if(r!==0)return r}return 0})},handleScrollEvent(M){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(M),this.scrollTimeout=null},16)}},handleInfiniteScroll(M){const{target:b}=M;if(b.scrollTop+b.clientHeight>=b.scrollHeight-10&&this.currentVisibleItems<this.sortedItems.length){const p=this.infiniteScrollIncrement||this.maxItemPerPage,o=Math.min(this.currentVisibleItems+p,this.sortedItems.length);o>this.currentVisibleItems&&(this.currentVisibleItems=o)}},handleContextMenu(M,b){let z=null;const p=M.target.closest("td");if(p){const o=p.getAttribute("data-column-id");o&&(z=this.columns.find(c=>c.id===o))}this.$emit("contextmenu",{event:M,item:b,column:z})}}},Bi={key:0,class:"mb-3 text-center"},gi={key:1,class:"row mb-1 mx-auto"},Xi={key:0,class:"btn btn-sm btn-outline-secondary cursor-default align-self-center bg-transparent text-secondary border-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1",style:{height:"20px"}},yi={class:"text-nowrap"},Ti={class:"d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none"},Si={key:0,class:"text-nowrap",style:{height:"20px"}},_i=["value"],vi={key:1,class:"d-flex align-items-center text-nowrap"},wi={key:0,class:"d-flex ms-2"},ki={class:"row mx-auto mb-3 rounded-0"},Ei=["id"],Ci=["id","onDragstart","onDragend"],Di={class:"d-flex flex-column align-items-center"},Pi={key:0,class:"mx-auto my-auto mb-2 mt-2 hoverable d-inline-block"},xi={class:"d-inline-flex text-nowrap"},Ii={key:0,class:"ms-2 float-end"},Yi={key:1,class:"ms-2"},Fi={key:1},Ui=["id"],Hi=["id"],ji={class:"d-inline-flex text-nowrap"},Gi={key:0,class:"ms-2 float-end hoverable"},Vi={key:1,class:"ms-2 hoverable"},Ki={key:0},Qi=["colspan"],Ji={class:"text-danger fs-5"},Zi=["onClick","onContextmenu"],$i=["data-column-id","onClick"],Mq=["id","value"],bq=["data-column-id"],zq={class:"row ms-auto mb-2"},pq={class:"m-0 pagination pagination-sm"},Oq={class:"page-item hoverable"},oq={class:"page-item hoverable"},eq=["onClick"],cq={class:"page-item hoverable"},tq={class:"page-item hoverable"};function Aq(M,b,z,p,o,c){var s;const n=q.resolveComponent("font-awesome-icon"),r=q.resolveComponent("vue-draggable-next");return q.openBlock(),q.createElementBlock(q.Fragment,null,[z.lineEditMode?(q.openBlock(),q.createElementBlock("div",Bi,[q.createElementVNode("button",{type:"button",class:"btn btn-success rounded-5 m-0 p-0",style:{height:"45px",width:"45px"},onClick:b[0]||(b[0]=i=>M.$emit("lineEditModeAddNewLine"))},[q.createVNode(n,{icon:"fa-solid fa-plus",size:"xl"})])])):q.createCommentVNode("",!0),z.showLineNumber||z.showModifyColumnsBtn||z.showMaxItemPerPageBtn||z.deepSorts?(q.openBlock(),q.createElementBlock("div",gi,[q.createElementVNode("div",{class:q.normalizeClass(["d-flex justify-content-start p-0",z.deepSorts&&o.deepSortsList.length>0&&z.showModifyColumnsBtn?"col-12 col-sm-8 col-lg-9 col-xl-10":"col"])},[z.showLineNumber?(q.openBlock(),q.createElementBlock("div",Xi,[q.createElementVNode("b",yi,q.toDisplayString(c.showItemsLinesNumber+" / "+c.filtereditems.length),1),b[20]||(b[20]=q.createElementVNode("span",{class:"ms-1"},"lignes",-1))])):q.createCommentVNode("",!0),z.deepSorts&&o.deepSortsList.length>0?(q.openBlock(),q.createElementBlock("div",{key:1,class:q.normalizeClass(["d-flex align-items-center flex-wrap",{"ms-4":z.showLineNumber}])},[b[21]||(b[21]=q.createElementVNode("span",{class:"me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0"},"Tri :",-1)),q.createVNode(r,{modelValue:o.deepSortsList,"onUpdate:modelValue":b[1]||(b[1]=i=>o.deepSortsList=i),tag:"div",group:"deepSorts",class:"d-flex flex-wrap","ghost-class":"deep-filter-ghost-class"},{default:q.withCtx(()=>[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.deepSortsList,(i,f)=>(q.openBlock(),q.createElementBlock("div",{key:i.id,class:"d-flex align-items-center border border-secondary hoverable-grab text-secondary rounded-1 fs-7 px-2 py-0 me-2 mb-1 mb-lg-0",style:{height:"20px"}},[q.createVNode(n,{class:"hoverable",icon:"fa-solid fa-xmark",onClick:l=>o.deepSortsList.splice(f,1)},null,8,["onClick"]),q.createElementVNode("div",Ti,[q.createElementVNode("span",null,q.toDisplayString(i.libelle),1)]),q.createVNode(n,{class:"hoverable",icon:i.asc?"fa-solid fa-arrow-up-short-wide":"fa-solid fa-arrow-down-wide-short",onClick:l=>i.asc=!i.asc},null,8,["icon","onClick"])]))),128))]),_:1},8,["modelValue"])],2)):q.createCommentVNode("",!0)],2),z.showMaxItemPerPageBtn||z.showModifyColumnsBtn?(q.openBlock(),q.createElementBlock("div",{key:0,class:q.normalizeClass(["d-flex align-items-center justify-content-end p-0",z.deepSorts&&o.deepSortsList.length>0?"col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0":"col"])},[z.showMaxItemPerPageBtn&&!o.headerEditMode?(q.openBlock(),q.createElementBlock("div",Si,[z.maxItemPerPageList.length>0?q.withDirectives((q.openBlock(),q.createElementBlock("select",{key:0,"onUpdate:modelValue":b[2]||(b[2]=i=>o.maxItemsPerPage=i),class:"form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page"},[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(z.maxItemPerPageList,i=>(q.openBlock(),q.createElementBlock("option",{key:i.value,value:i.value},q.toDisplayString(i.text),9,_i))),128))],512)),[[q.vModelSelect,o.maxItemsPerPage]]):q.createCommentVNode("",!0)])):q.createCommentVNode("",!0),z.showModifyColumnsBtn?(q.openBlock(),q.createElementBlock("div",vi,[o.headerEditMode?(q.openBlock(),q.createElementBlock("div",wi,[q.createElementVNode("button",{id:"btn-save-table",class:"btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",type:"button",onClick:b[3]||(b[3]=(...i)=>c.saveTablePreferences&&c.saveTablePreferences(...i))}," Sauvegarder "),q.createElementVNode("button",{id:"btn-reset-table",class:"btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center px-2 py-0 rounded-3",type:"button",onClick:b[4]||(b[4]=(...i)=>c.resetTablePreferences&&c.resetTablePreferences(...i))}," Réinitialiser le tableau ")])):(q.openBlock(),q.createElementBlock("button",{key:1,id:"btn-edit-table",class:"btn btn-sm btn-outline-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-3 ms-2",style:{height:"20px"},type:"button",onClick:b[5]||(b[5]=(...i)=>c.editTablePreferences&&c.editTablePreferences(...i))}," Modifier colonnes "))])):q.createCommentVNode("",!0)],2)):q.createCommentVNode("",!0)])):q.createCommentVNode("",!0),q.createElementVNode("div",ki,[q.createElementVNode("div",{ref:"scrollContainer",class:q.normalizeClass(["col-12 p-0 overflow-x-auto mb-2",{border:z.infiniteScroll,"infinite-scroll-container":z.infiniteScroll}]),style:q.normalizeStyle(z.infiniteScroll?{maxHeight:c.tableMaxHeight,overflowY:"auto",borderRadius:"10px"}:{borderRadius:"10px !important"}),onScroll:b[15]||(b[15]=(...i)=>c.handleScrollEvent&&c.handleScrollEvent(...i))},[(q.openBlock(),q.createElementBlock("table",{id:"table-draggable",ref:"table",key:o.forceTableUpdateIndex,class:q.normalizeClass(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0",[z.border?"table-bordered":"table-borderless",z.tableSm?"table-sm":""]]),style:q.normalizeStyle([{"border-collapse":"separate","border-spacing":"0"},{borderLeft:z.border?"":"1px solid #ddd",borderRight:z.border?"":"1px solid #ddd"}])},[q.createElementVNode("thead",null,[o.headerEditMode?(q.openBlock(),q.createBlock(r,{key:0,modelValue:o.columns,"onUpdate:modelValue":b[9]||(b[9]=i=>o.columns=i),"ghost-class":z.ghostClass,"drag-class":z.ghostClass,tag:"tr",move:c.checkMove,group:"columns"},{default:q.withCtx(()=>[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,(i,f)=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:i.id},[i.id==="checkBox"?(q.openBlock(),q.createElementBlock("th",{key:0,id:i.id+"-th-"+f,class:q.normalizeClass(["text-center",[z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:b[8]||(b[8]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},[q.withDirectives(q.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":b[6]||(b[6]=l=>o.checkAllCheckBox=l),class:"form-check-input",type:"checkbox",onClick:b[7]||(b[7]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},null,512),[[q.vModelCheckbox,o.checkAllCheckBox]])],10,Ei)):(i.show||o.headerEditMode)&&(!i.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("th",{key:1,id:i.id+"-th-"+f,scope:"col",class:q.normalizeClass(["text-center",[i.isDragging?"hoverable-grabbing":z.headerBgColor+" hoverable-grab",i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.headerTextColor,z.infiniteScroll?"sticky-top":"",{"table-danger":!i.show}]]),onDragstart:l=>i.isDragging=!0,onDragend:l=>i.isDragging=!1},[q.createElementVNode("div",Di,[o.headerEditMode&&!i.keepShow?(q.openBlock(),q.createElementBlock("div",Pi,[i.show?(q.openBlock(),q.createBlock(n,{key:0,icon:"fa-solid fa-eye",class:"fa-lg",onClick:l=>i.show=!1},null,8,["onClick"])):(q.openBlock(),q.createBlock(n,{key:1,icon:"fa-solid fa-eye-slash",class:"fa-lg",onClick:l=>i.show=!0},null,8,["onClick"]))])):q.createCommentVNode("",!0),q.createElementVNode("div",xi,[q.renderSlot(M.$slots,"tableHeaderTh",{header:i},void 0,!0),i.isSortable&&!z.deepSorts?(q.openBlock(),q.createElementBlock("div",Ii,[q.createVNode(n,{icon:o.sortKey!==i.id||o.sortKey===i.id&&!o.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-up-short-wide",class:"hoverable",onClick:l=>c.updateCurrentSort(i)},null,8,["icon","onClick"])])):z.deepSorts&&!o.deepSortsList.some(l=>l.id===i.id)&&i.isSortable?(q.openBlock(),q.createElementBlock("div",Yi,[q.createVNode(n,{icon:"fa-solid fa-filter",onClick:l=>c.addDeepSort(i)},null,8,["onClick"])])):q.createCommentVNode("",!0)])])],42,Ci)):q.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue","ghost-class","drag-class","move"])):(q.openBlock(),q.createElementBlock("tr",Fi,[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,(i,f)=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:i.id},[i.id==="checkBox"?(q.openBlock(),q.createElementBlock("th",{key:0,id:i.id+"-th-"+f,class:q.normalizeClass(["text-center",[z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:b[12]||(b[12]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},[q.withDirectives(q.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":b[10]||(b[10]=l=>o.checkAllCheckBox=l),class:"form-check-input",type:"checkbox",onClick:b[11]||(b[11]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},null,512),[[q.vModelCheckbox,o.checkAllCheckBox]])],10,Ui)):i.show&&(!i.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("th",{key:1,id:i.id+"-th-"+f,scope:"col",class:q.normalizeClass(["text-center",[i.isDragging?"":z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.headerTextColor,z.infiniteScroll?"sticky-top":""]])},[q.createElementVNode("div",ji,[q.renderSlot(M.$slots,"tableHeaderTh",{header:i},void 0,!0),i.isSortable&&!z.deepSorts?(q.openBlock(),q.createElementBlock("div",Gi,[q.createVNode(n,{icon:o.sortKey!==i.id||o.sortKey===i.id&&!o.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-up-short-wide",onClick:l=>c.updateCurrentSort(i)},null,8,["icon","onClick"])])):z.deepSorts&&!o.deepSortsList.some(l=>l.id===i.id)&&i.isSortable?(q.openBlock(),q.createElementBlock("div",Vi,[q.createVNode(n,{icon:"fa-solid fa-filter",onClick:l=>c.addDeepSort(i)},null,8,["onClick"])])):q.createCommentVNode("",!0)])],10,Hi)):q.createCommentVNode("",!0)],64))),128))]))]),q.createElementVNode("tbody",null,[((s=c.showeditems)==null?void 0:s.length)===0?(q.openBlock(),q.createElementBlock("tr",Ki,[q.createElementVNode("th",{colspan:o.columns.length,class:"text-center"},[q.createElementVNode("span",Ji,q.toDisplayString(z.noValueText),1)],8,Qi)])):(q.openBlock(!0),q.createElementBlock(q.Fragment,{key:1},q.renderList(c.showeditems,(i,f)=>(q.openBlock(),q.createElementBlock("tr",{key:i.id,class:q.normalizeClass([{hoverable:z.clickable&&!o.headerEditMode,"hoverable-no-drop":z.clickable&&o.headerEditMode},z.trFontSize]),style:q.normalizeStyle({height:z.trHeightPx+"px"}),onClick:l=>z.clickable&&!o.headerEditMode?c.selectSubject(i):null,onContextmenu:l=>c.handleContextMenu(l,i)},[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,l=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:l.id},[l.id==="checkBox"?(q.openBlock(),q.createElementBlock("td",{key:0,"data-column-id":l.id,class:q.normalizeClass(["text-center",[i.lineState?c.lineStateClass(i.lineState):"",l.stickyLeft?"sticky-column-left":"",l.stickyRight?"sticky-column-right":""]]),onClick:q.withModifiers(B=>c.checkItem(i.id),["stop"])},[q.withDirectives(q.createElementVNode("input",{id:`checkbox-${f}`,"onUpdate:modelValue":b[13]||(b[13]=B=>o.selectedItems=B),type:"checkbox",class:"form-check-input hoverable",value:i.id,onClick:b[14]||(b[14]=q.withModifiers(()=>{},["stop"]))},null,8,Mq),[[q.vModelCheckbox,o.selectedItems]])],10,$i)):(l.show||o.headerEditMode)&&(!l.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("td",{key:1,"data-column-id":l.id,class:q.normalizeClass([[l.show?"":"table-danger",l.isSorted?"bg-gray-200":"",i.lineState?c.lineStateClass(i.lineState):"",l.stickyLeft?"sticky-column-left":"",l.stickyRight?"sticky-column-right":""],"text-center text-nowrap"])},[q.renderSlot(M.$slots,"tableBodyTd",{header:l,item:i},void 0,!0)],10,bq)):q.createCommentVNode("",!0)],64))),128))],46,Zi))),128))])],6))],38)]),q.createElementVNode("div",zq,[!z.infiniteScroll&&o.totalPages&&o.totalPages>1?(q.openBlock(),q.createElementBlock("div",{key:0,class:q.normalizeClass(["col p-0 me-3 d-flex",{"justify-content-center":z.paginationPosition==="center","justify-content-end":z.paginationPosition==="right","justify-content-start":z.paginationPosition==="left"}])},[q.createElementVNode("ul",pq,[q.createElementVNode("li",Oq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===1}]),onClick:b[16]||(b[16]=i=>o.currentPage=1)}," « ",2)]),q.createElementVNode("li",oq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===1}]),onClick:b[17]||(b[17]=i=>o.currentPage-=1)}," < ",2)]),(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(c.currentDisplayPagination,i=>(q.openBlock(),q.createElementBlock("li",{key:i,class:q.normalizeClass(["page-item hoverable",{active:o.currentPage===i}])},[q.createElementVNode("a",{class:"page-link",onClick:f=>o.currentPage=i},q.toDisplayString(i),9,eq)],2))),128)),q.createElementVNode("li",cq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===o.totalPages}]),onClick:b[18]||(b[18]=i=>o.currentPage+=1)}," > ",2)]),q.createElementVNode("li",tq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===o.totalPages}]),onClick:b[19]||(b[19]=i=>o.currentPage=o.totalPages)}," » ",2)])])],2)):q.createCommentVNode("",!0),z.stickyScrollbarHorizontal?(q.openBlock(),q.createElementBlock("div",{key:1,class:q.normalizeClass(["bottom-scrollbar",{visible:o.showScrollbar}])},b[22]||(b[22]=[q.createElementVNode("div",{class:"scrollbar-content"},null,-1)]),2)):q.createCommentVNode("",!0)])],64)}const ee=mi(Ni,[["render",Aq],["__scopeId","data-v-0f896ce1"]]);p2.AmsomTableDraggable=ee,p2.default=ee,Object.defineProperties(p2,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
593
|
+
var p=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,o=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,c=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r=z.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:c,monthsShortRegex:c,monthsStrictRegex:p,monthsShortStrictRegex:o,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(s,i){switch(i){case"D":return s+(s===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return s+(s===1?"er":"e");case"w":case"W":return s+(s===1?"re":"e")}},week:{dow:1,doy:4}});return r})})();function $2(M,b=!0){if(!M)return null;let z=M.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return b?z.toLowerCase():z}function di(M,b="DD/MM/YYYY"){return H1.unix(M).isValid()?H1.unix(M).format(b):M}const $o=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Wi(M,b){const z=M.replace(/\d+/g,o=>(+o+1e5).toString()),p=b.replace(/\d+/g,o=>(+o+1e5).toString());return z.localeCompare(p)}function Me(M){return M!=null&&M!==""&&!isNaN(M)}function be(M){return M&&H1(M,"DD/MM/YYYY",!0).isValid()}function ze(M){return typeof M=="boolean"}function li(M,b,z){const c=(M?1:0)-(b?1:0);return z?-c:c}function fi(M,b){const z=(M==null||M==="")&&typeof M!="boolean",p=(b==null||b==="")&&typeof b!="boolean";return z&&p?0:z?1:p?-1:null}function pe(M){return typeof M=="string"&&M.includes("€")}function ui(M,b,z){const p=parseFloat(M.replace("€","").replace(",",".").replace(/\s/g,"").trim()),o=parseFloat(b.replace("€","").replace(",",".").replace(/\s/g,"").trim());if(isNaN(p)&&isNaN(o))return 0;if(isNaN(p))return 1;if(isNaN(o))return-1;const c=p-o;return z?c:-c}function Oe(M,b,z){const p=fi(M,b);if(p!==null)return p;if(ze(M)&&ze(b))return li(M,b,z);if($o.test(M)&&$o.test(b)){const r=Wi(M,b);return z?r:-r}if(Me(M)&&Me(b)){const r=parseFloat(M),s=parseFloat(b);return z?r-s:s-r}if(be(M)&&be(b)){const r=H1(M,"DD/MM/YYYY").unix(),s=H1(b,"DD/MM/YYYY").unix();return z?r-s:s-r}if(pe(M)&&pe(b))return ui(M,b,z);const o=typeof M=="string"?$2(M).toLowerCase():$2(String(M)).toLowerCase(),c=typeof b=="string"?$2(b).toLowerCase():$2(String(b)).toLowerCase(),n=o.localeCompare(c,void 0,{numeric:!0,sensitivity:"base"});return z?n:-n}function Ri(M,b,z=!1){return!M||!Array.isArray(M)?M:M.sort((p,o)=>{const c=p==null?void 0:p[b],n=o==null?void 0:o[b];return Oe(c,n,z)})}function hi(M,b=!1,z){return!M||!Array.isArray(M)?M:M.sort((p,o)=>z(p,o,b))}function oe(M,b){let z=y2(M);if(!z)z={columns:b};else if(!z.columns)z.columns=b;else{let p=b.filter(function(c){return!z.columns.some(function(n){return n.id===c.id})});z.columns=z.columns.concat(p);let o=z.columns.filter(function(c){return!b.some(function(n){return c.id===n.id})});z.columns=z.columns.filter(function(c){return!o.some(function(n){return c.id===n.id})}),z.columns.filter(c=>{for(let n of b)n.id===c.id&&n.libelle!==c.libelle&&(c.libelle=n.libelle)})}MM(M,z)}function Li(M,b,z=null){let p=y2(M);p?z&&!p[z]&&(p[z]=b):z?(p={},p[z]=b):p=b,MM(M,p)}function y2(M){return JSON.parse(window.localStorage.getItem(M))}function MM(M,b,z=null){let p=y2(M);return z?p[z]=b:p=b,window.localStorage.setItem(M,JSON.stringify(p))}const mi=(M,b)=>{const z=M.__vccOpts||M;for(const[p,o]of b)z[p]=o;return z};Gt.add(sA,rA,iA,uA,dA,lA,fA,WA,qA);const Ni={name:"AmsomTableDraggable",components:{VueDraggableNext:en,FontAwesomeIcon:aA},props:{defaultColumns:{type:Array,require:!0,default:null},dynamicColumns:{type:Array,default:null},localStorageItemName:{type:String,default:null},localStorageMaxItemPerPageName:{type:String,default:null},tdItemsList:{type:[Array,Object],require:!0,default:null},search:{type:String,default:null},pickedDate:{type:Array,default:null},columnNameDateFilter:{type:Array,default:null},maxItemPerPage:{type:Number,default:-1},infiniteScroll:{type:Boolean,default:!1},infiniteScrollIncrement:{type:Number,default:null},maxItemPerPageList:{type:Array,default:()=>[{value:5,text:"5"},{value:10,text:"10"},{value:15,text:"15"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"},{value:500,text:"500"},{value:1e3,text:"1000"},{value:-1,text:"Tous"}]},showMaxItemPerPageBtn:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},showModifyColumnsBtn:{type:Boolean,default:!1},showLineNumber:{type:Boolean,default:!1},ghostClass:{type:String,default:"bg-success"},headerBgColor:{type:String,default:"bg-white"},headerTextColor:{type:String,default:"text-primary"},lineEditMode:{type:Boolean,default:!1},border:{type:Boolean,default:!1},tableSm:{type:Boolean,default:!1},deepSorts:{type:Boolean,default:!1},deepSortsListPreset:{type:Array,default:null},ckSelectedItems:{type:Array,default:null},lineStatesList:{type:Array,default:()=>[{state:"add",class:"addLineState"},{state:"delete",class:"deleteLineState"},{state:"update",class:"updateLineState"}]},stickyScrollbarHorizontal:{type:Boolean,default:!1},paginationPosition:{type:String,default:"left",validator(M){return["left","center","right"].includes(M)}},trFontSize:{type:String,default:"fs-6"},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:"Aucune valeur"}},emits:["changeSubject","lineEditModeAddNewLine","update:ckSelectedItems","update:dynamicColumns","update:deepSortsListPreset","contextmenu"],data(){return{checkAllCheckBox:!1,isDragging:!1,sortKey:null,sortAsc:!1,currentPage:1,previousCurrentPage:1,selectedItems:[],currentHeaderSort:null,headerEditMode:!1,totalPages:null,columns:this.copyDefaultColumns(),maxItemsPerPage:this.getDefaultMaxItemPerPage(),forceTableUpdateIndex:0,resizeObserver:null,showScrollbar:!1,tableContainer:null,deepSortsList:[],isInternalUpdate:!1,currentVisibleItems:0,scrollTimeout:null}},computed:{currentDisplayPagination(){let M=[];return this.totalPages<=1?M:(this.currentPage===1?M=[1,2,3]:this.currentPage===this.totalPages?M=[this.totalPages-2,this.totalPages-1,this.totalPages]:M=[this.currentPage-1,this.currentPage,this.currentPage+1],M.filter(b=>b>=1&&b<=this.totalPages))},items(){return this.tdItemsList?this.tdItemsList:[]},showItemsLinesNumber(){return this.showeditems.length},dateFilterBounds(){return!this.pickedDate||!this.pickedDate[0]||!this.pickedDate[1]?null:{deb:H1(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:H1(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?$2(this.search):""},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(M=>M.show&&(!M.onlyOnEditMode||this.lineEditMode))},filtereditems(){return this.items?this.items.filter(M=>{const b=this.filterBy(M,this.normalizedSearch);if(this.hasDateFilter){const z=this.columnNameDateFilter.some(p=>{const o=M[p];if(o){const c=H1(o,"DD/MM/YYYY").unix();return c>=this.dateFilterBounds.deb&&c<=this.dateFilterBounds.fin}return!1});return b&&z}return b}):[]},sortedItems(){if(!this.filtereditems)return[];const M=this.columns.find(b=>b.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):M!=null&&M.customSort?hi([...this.filtereditems],this.sortAsc,M.customSort):this.sortKey?Ri([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){const M=this.sortedItems;if(this.infiniteScroll)return M.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return M;const b=(this.currentPage-1)*this.maxItemsPerPage,z=this.currentPage*this.maxItemsPerPage;return M.slice(b,z)},tableMaxHeight(){if(!this.infiniteScroll)return"auto";const M=this.trHeightPx||60,b=50,z=this.maxItemPerPage;return`${b+z*M}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(M){M&&(this.selectedItems=M)},immediate:!0},dynamicColumns:{handler(M){M&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(M,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(M){this.localStorageItemName!==null&&MM(this.localStorageItemName,this.getRefactoColumns(M),"columns"),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit("update:dynamicColumns",this.getRefactoColumns(M)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(M){var b;if(M)this.maxItemsPerPage=3;else{const z=this.localStorageMaxItemPerPageName!==null?y2(this.localStorageMaxItemPerPageName):this.localStorageItemName!==null?(b=y2(this.localStorageItemName))==null?void 0:b.maxItemPerPage:this.maxItemPerPage;this.maxItemsPerPage=z??this.maxItemPerPage}}},sortedItems:{handler(M){if(this.infiniteScroll){const b=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.maxItemPerPage+b,M.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,M.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(M.length))},immediate:!0},filtereditems:{handler(M,b){if(this.infiniteScroll&&b&&M.length!==b.length)if(M.length>b.length&&this.currentVisibleItems<M.length){const z=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+z,M.length)}else M.length<b.length&&this.currentVisibleItems>M.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,M.length))},immediate:!1},maxItemPerPage:{handler(M){M!==this.maxItemsPerPage&&(this.maxItemsPerPage=M)},immediate:!0},maxItemsPerPage:{handler(M){if(!this.headerEditMode){if(this.localStorageItemName!==null&&MM(this.localStorageItemName,M,"maxItemPerPage"),this.localStorageMaxItemPerPageName!==null&&MM(this.localStorageMaxItemPerPageName,M),this.infiniteScroll){const b=this.infiniteScrollIncrement||M;this.currentVisibleItems=Math.min(M+b,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(M,b){M!==b&&this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&M!==b&&this.$nextTick(()=>{this.$nextTick(()=>{const z=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+z,this.filtereditems.length)})})},immediate:!1},showeditems:{handler(M){this.shouldAdjustPage(M)&&this.adjustPageAfterSearch(),this.checkAllCheckBox=M.length>0&&M.every(b=>this.selectedItems.includes(b.id)),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))},flush:"post"},deepSortsList:{handler(M){M&&M.length>0&&this.$emit("update:deepSortsListPreset",M),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{const b=this.currentVisibleItems;this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(M){M&&M.length>0&&JSON.stringify(M)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=[...M])},deep:!0,immediate:!0}},mounted(){var M;if(this.localStorageItemName!==null){oe(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),Li(this.localStorageItemName,this.maxItemPerPage,"maxItemPerPage");let b=y2(this.localStorageItemName);b&&(this.columns=this.getColumnsById(b.columns,this.defaultColumns),this.maxItemsPerPage=b.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let b=y2(this.localStorageMaxItemPerPageName);b&&(this.maxItemsPerPage=b)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){const b=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+b,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);this.initResizeObserver(),this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener("resize",this.checkTableOverflow),window.addEventListener("scroll",this.handleTableScroll)),this.tableContainer=(M=this.$refs.table)==null?void 0:M.closest(".overflow-x-auto"),this.infiniteScroll&&this.$nextTick(()=>{this.$refs.scrollContainer})},beforeUnmount(){this.cleanupResizeObserver(),window.removeEventListener("resize",this.checkTableOverflow),window.removeEventListener("scroll",this.handleTableScroll),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null)},methods:{moment:H1,unixToDateString:di,shouldAdjustPage(M){return M.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(M){return JSON.parse(JSON.stringify(M)).map(z=>({id:z.id,show:z.show}))},getColumnsById(M,b){return M.map(z=>({...b.find(o=>o.id===z.id),show:z.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){const M=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);M>0&&M!==this.currentPage&&(this.currentPage=M)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});const M=this.$refs.table;M&&this.resizeObserver.observe(M)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{const M=document.querySelector(".bottom-scrollbar");if(this.tableContainer&&M){const b=this.tableContainer.scrollHeight,z=window.innerHeight;this.showScrollbar=b>z,this.showScrollbar&&(document.querySelector(".scrollbar-content").style.width=this.tableContainer.scrollWidth+"px",M.addEventListener("scroll",()=>{this.tableContainer.scrollLeft=M.scrollLeft}),this.tableContainer.addEventListener("scroll",()=>{M.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},updateStickyColumns(){if(!this.columns.some(p=>p.stickyLeft||p.stickyRight))return;let b=0,z=0;this.columns.forEach((p,o)=>{if(!p.stickyLeft&&!p.stickyRight)return;const c=document.getElementById(`${p.id}-th-${o}`);if(!c)return;const n=c.getBoundingClientRect(),r=document.querySelector(`[data-column-id="${p.id}"]`),s=r?r.getBoundingClientRect().width:0,i=Math.max(s,n.width)-1,f=document.querySelectorAll(`[data-column-id="${p.id}"]`);p.stickyLeft&&(c.style.left=`${b}px`,f.forEach(l=>l.style.left=`${b}px`),b+=i),p.stickyRight&&(c.style.right=`${z}px`,f.forEach(l=>l.style.right=`${z}px`),z+=i)})},newTotalPage(M){return Math.ceil(M/this.maxItemsPerPage)},lineStateClass(M){const b=this.lineStatesList.find(z=>z.state===M);return b?b.class:""},checkItem(M){const b=this.selectedItems.indexOf(M);if(b!==-1)this.selectedItems.splice(b,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(M),!this.checkAllCheckBox){const z=this.showeditems.map(p=>p.id);this.checkAllCheckBox=z.every(p=>this.selectedItems.includes(p))}this.$emit("update:ckSelectedItems",this.selectedItems)},toggleAllCheckBox(){const M=this.showeditems.map(b=>b.id);if(this.checkAllCheckBox)this.selectedItems=this.selectedItems.filter(b=>!M.includes(b)),this.checkAllCheckBox=!1;else{const b=new Set([...this.selectedItems,...M]);this.selectedItems=Array.from(b),this.checkAllCheckBox=!0}this.$emit("update:ckSelectedItems",this.selectedItems)},updateCurrentSort(M){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=!1),M.isSorted=!0,this.currentHeaderSort=M;const b=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(M.id),this.infiniteScroll&&b&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},checkMove(M){const b=this.columns.reduce((z,p,o)=>(p.fixed&&z.push(o),z),[]);return!b.includes(M.draggedContext.index)&&!b.includes(M.relatedContext.index)},filterBy(M,b){return b?this.visibleColumns.some(z=>{const p=M[z.id];return p&&$2(p).includes(b)}):!0},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return JSON.parse(JSON.stringify(this.defaultColumns))},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(M){this.items&&(this.sortKey===M?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=M))},selectSubject(M){this.$emit("changeSubject",M)},saveTablePreferences(){this.localStorageItemName!==null&&MM(this.localStorageItemName,this.getRefactoColumns(this.columns),"columns"),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&oe(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(M){const b=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortsList.push({id:M.id,libelle:M.libelle,asc:!0}),this.infiniteScroll&&b&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(b,this.sortedItems.length)})},deepSortsColumnList(M,b){return!M||M.length===0?b:b.sort((z,p)=>{for(const o of M){const c=z[o.id],n=p[o.id],r=Oe(c,n,o.asc);if(r!==0)return r}return 0})},handleScrollEvent(M){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(M),this.scrollTimeout=null},16)}},handleInfiniteScroll(M){const{target:b}=M;if(b.scrollTop+b.clientHeight>=b.scrollHeight-10&&this.currentVisibleItems<this.sortedItems.length){const p=this.infiniteScrollIncrement||this.maxItemPerPage,o=Math.min(this.currentVisibleItems+p,this.sortedItems.length);o>this.currentVisibleItems&&(this.currentVisibleItems=o)}},handleContextMenu(M,b){let z=null;const p=M.target.closest("td");if(p){const o=p.getAttribute("data-column-id");o&&(z=this.columns.find(c=>c.id===o))}this.$emit("contextmenu",{event:M,item:b,column:z})}}},Bi={key:0,class:"mb-3 text-center"},gi={key:1,class:"row mb-1 mx-auto"},Xi={key:0,class:"btn btn-sm btn-outline-secondary cursor-default align-self-center bg-transparent text-secondary border-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1",style:{height:"20px"}},yi={class:"text-nowrap"},Ti={class:"d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none"},Si={key:0,class:"text-nowrap",style:{height:"20px"}},_i=["value"],vi={key:1,class:"d-flex align-items-center text-nowrap"},wi={key:0,class:"d-flex ms-2"},ki={class:"row mx-auto mb-3 rounded-0"},Ei=["id"],Ci=["id","onDragstart","onDragend"],Di={class:"d-flex flex-column align-items-center"},Pi={key:0,class:"mx-auto my-auto mb-2 mt-2 hoverable d-inline-block"},xi={class:"d-inline-flex text-nowrap"},Ii={key:0,class:"ms-2 float-end"},Yi={key:1,class:"ms-2"},Fi={key:1},Ui=["id"],Hi=["id"],ji={class:"d-inline-flex text-nowrap"},Gi={key:0,class:"ms-2 float-end hoverable"},Vi={key:1,class:"ms-2 hoverable"},Ki={key:0},Qi=["colspan"],Ji={class:"text-danger fs-5"},Zi=["onClick","onContextmenu"],$i=["data-column-id","onClick"],Mq=["id","value"],bq=["data-column-id"],zq={class:"row ms-auto mb-2"},pq={class:"m-0 pagination pagination-sm"},Oq={class:"page-item hoverable"},oq={class:"page-item hoverable"},eq=["onClick"],cq={class:"page-item hoverable"},tq={class:"page-item hoverable"};function Aq(M,b,z,p,o,c){var s;const n=q.resolveComponent("font-awesome-icon"),r=q.resolveComponent("vue-draggable-next");return q.openBlock(),q.createElementBlock(q.Fragment,null,[z.lineEditMode?(q.openBlock(),q.createElementBlock("div",Bi,[q.createElementVNode("button",{type:"button",class:"btn btn-success rounded-5 m-0 p-0",style:{height:"45px",width:"45px"},onClick:b[0]||(b[0]=i=>M.$emit("lineEditModeAddNewLine"))},[q.createVNode(n,{icon:"fa-solid fa-plus",size:"xl"})])])):q.createCommentVNode("",!0),z.showLineNumber||z.showModifyColumnsBtn||z.showMaxItemPerPageBtn||z.deepSorts?(q.openBlock(),q.createElementBlock("div",gi,[q.createElementVNode("div",{class:q.normalizeClass(["d-flex justify-content-start p-0",z.deepSorts&&o.deepSortsList.length>0&&z.showModifyColumnsBtn?"col-12 col-sm-8 col-lg-9 col-xl-10":"col"])},[z.showLineNumber?(q.openBlock(),q.createElementBlock("div",Xi,[q.createElementVNode("b",yi,q.toDisplayString(c.showItemsLinesNumber+" / "+c.filtereditems.length),1),b[20]||(b[20]=q.createElementVNode("span",{class:"ms-1"},"lignes",-1))])):q.createCommentVNode("",!0),z.deepSorts&&o.deepSortsList.length>0?(q.openBlock(),q.createElementBlock("div",{key:1,class:q.normalizeClass(["d-flex align-items-center flex-wrap",{"ms-4":z.showLineNumber}])},[b[21]||(b[21]=q.createElementVNode("span",{class:"me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0"},"Tri :",-1)),q.createVNode(r,{modelValue:o.deepSortsList,"onUpdate:modelValue":b[1]||(b[1]=i=>o.deepSortsList=i),tag:"div",group:"deepSorts",class:"d-flex flex-wrap","ghost-class":"deep-filter-ghost-class"},{default:q.withCtx(()=>[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.deepSortsList,(i,f)=>(q.openBlock(),q.createElementBlock("div",{key:i.id,class:"d-flex align-items-center border border-secondary hoverable-grab text-secondary rounded-1 fs-7 px-2 py-0 me-2 mb-1 mb-lg-0",style:{height:"20px"}},[q.createVNode(n,{class:"hoverable",icon:"fa-solid fa-xmark",onClick:l=>o.deepSortsList.splice(f,1)},null,8,["onClick"]),q.createElementVNode("div",Ti,[q.createElementVNode("span",null,q.toDisplayString(i.libelle),1)]),q.createVNode(n,{class:"hoverable",icon:i.asc?"fa-solid fa-arrow-up-short-wide":"fa-solid fa-arrow-down-wide-short",onClick:l=>i.asc=!i.asc},null,8,["icon","onClick"])]))),128))]),_:1},8,["modelValue"])],2)):q.createCommentVNode("",!0)],2),z.showMaxItemPerPageBtn||z.showModifyColumnsBtn?(q.openBlock(),q.createElementBlock("div",{key:0,class:q.normalizeClass(["d-flex align-items-center justify-content-end p-0",z.deepSorts&&o.deepSortsList.length>0?"col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0":"col"])},[z.showMaxItemPerPageBtn&&!o.headerEditMode?(q.openBlock(),q.createElementBlock("div",Si,[z.maxItemPerPageList.length>0?q.withDirectives((q.openBlock(),q.createElementBlock("select",{key:0,"onUpdate:modelValue":b[2]||(b[2]=i=>o.maxItemsPerPage=i),class:"form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page"},[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(z.maxItemPerPageList,i=>(q.openBlock(),q.createElementBlock("option",{key:i.value,value:i.value},q.toDisplayString(i.text),9,_i))),128))],512)),[[q.vModelSelect,o.maxItemsPerPage]]):q.createCommentVNode("",!0)])):q.createCommentVNode("",!0),z.showModifyColumnsBtn?(q.openBlock(),q.createElementBlock("div",vi,[o.headerEditMode?(q.openBlock(),q.createElementBlock("div",wi,[q.createElementVNode("button",{id:"btn-save-table",class:"btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",type:"button",onClick:b[3]||(b[3]=(...i)=>c.saveTablePreferences&&c.saveTablePreferences(...i))}," Sauvegarder "),q.createElementVNode("button",{id:"btn-reset-table",class:"btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center px-2 py-0 rounded-3",type:"button",onClick:b[4]||(b[4]=(...i)=>c.resetTablePreferences&&c.resetTablePreferences(...i))}," Réinitialiser le tableau ")])):(q.openBlock(),q.createElementBlock("button",{key:1,id:"btn-edit-table",class:"btn btn-sm btn-outline-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-3 ms-2",style:{height:"20px"},type:"button",onClick:b[5]||(b[5]=(...i)=>c.editTablePreferences&&c.editTablePreferences(...i))}," Modifier colonnes "))])):q.createCommentVNode("",!0)],2)):q.createCommentVNode("",!0)])):q.createCommentVNode("",!0),q.createElementVNode("div",ki,[q.createElementVNode("div",{ref:"scrollContainer",class:q.normalizeClass(["col-12 p-0 overflow-x-auto mb-2",{border:z.infiniteScroll,"infinite-scroll-container":z.infiniteScroll}]),style:q.normalizeStyle(z.infiniteScroll?{maxHeight:c.tableMaxHeight,overflowY:"auto",borderRadius:"10px"}:{borderRadius:"10px !important"}),onScroll:b[15]||(b[15]=(...i)=>c.handleScrollEvent&&c.handleScrollEvent(...i))},[(q.openBlock(),q.createElementBlock("table",{id:"table-draggable",ref:"table",key:o.forceTableUpdateIndex,class:q.normalizeClass(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0",[z.border?"table-bordered":"table-borderless",z.tableSm?"table-sm":""]]),style:q.normalizeStyle([{"border-collapse":"separate","border-spacing":"0"},{borderLeft:z.border?"":"1px solid #ddd",borderRight:z.border?"":"1px solid #ddd"}])},[q.createElementVNode("thead",null,[o.headerEditMode?(q.openBlock(),q.createBlock(r,{key:0,modelValue:o.columns,"onUpdate:modelValue":b[9]||(b[9]=i=>o.columns=i),"ghost-class":z.ghostClass,"drag-class":z.ghostClass,tag:"tr",move:c.checkMove,group:"columns"},{default:q.withCtx(()=>[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,(i,f)=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:i.id},[i.id==="checkBox"?(q.openBlock(),q.createElementBlock("th",{key:0,id:i.id+"-th-"+f,class:q.normalizeClass(["text-center",[z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:b[8]||(b[8]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},[q.withDirectives(q.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":b[6]||(b[6]=l=>o.checkAllCheckBox=l),class:"form-check-input",type:"checkbox",onClick:b[7]||(b[7]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},null,512),[[q.vModelCheckbox,o.checkAllCheckBox]])],10,Ei)):(i.show||o.headerEditMode)&&(!i.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("th",{key:1,id:i.id+"-th-"+f,scope:"col",class:q.normalizeClass(["text-center",[i.isDragging?"hoverable-grabbing":z.headerBgColor+" hoverable-grab",i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.headerTextColor,z.infiniteScroll?"sticky-top":"",{"table-danger":!i.show}]]),onDragstart:l=>i.isDragging=!0,onDragend:l=>i.isDragging=!1},[q.createElementVNode("div",Di,[o.headerEditMode&&!i.keepShow?(q.openBlock(),q.createElementBlock("div",Pi,[i.show?(q.openBlock(),q.createBlock(n,{key:0,icon:"fa-solid fa-eye",class:"fa-lg",onClick:l=>i.show=!1},null,8,["onClick"])):(q.openBlock(),q.createBlock(n,{key:1,icon:"fa-solid fa-eye-slash",class:"fa-lg",onClick:l=>i.show=!0},null,8,["onClick"]))])):q.createCommentVNode("",!0),q.createElementVNode("div",xi,[q.renderSlot(M.$slots,"tableHeaderTh",{header:i},void 0,!0),i.isSortable&&!z.deepSorts?(q.openBlock(),q.createElementBlock("div",Ii,[q.createVNode(n,{icon:o.sortKey!==i.id||o.sortKey===i.id&&!o.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-up-short-wide",class:"hoverable",onClick:l=>c.updateCurrentSort(i)},null,8,["icon","onClick"])])):z.deepSorts&&!o.deepSortsList.some(l=>l.id===i.id)&&i.isSortable?(q.openBlock(),q.createElementBlock("div",Yi,[q.createVNode(n,{icon:"fa-solid fa-filter",onClick:l=>c.addDeepSort(i)},null,8,["onClick"])])):q.createCommentVNode("",!0)])])],42,Ci)):q.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue","ghost-class","drag-class","move"])):(q.openBlock(),q.createElementBlock("tr",Fi,[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,(i,f)=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:i.id},[i.id==="checkBox"?(q.openBlock(),q.createElementBlock("th",{key:0,id:i.id+"-th-"+f,class:q.normalizeClass(["text-center",[z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:b[12]||(b[12]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},[q.withDirectives(q.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":b[10]||(b[10]=l=>o.checkAllCheckBox=l),class:"form-check-input",type:"checkbox",onClick:b[11]||(b[11]=q.withModifiers((...l)=>c.toggleAllCheckBox&&c.toggleAllCheckBox(...l),["stop"]))},null,512),[[q.vModelCheckbox,o.checkAllCheckBox]])],10,Ui)):i.show&&(!i.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("th",{key:1,id:i.id+"-th-"+f,scope:"col",class:q.normalizeClass(["text-center",[i.isDragging?"":z.headerBgColor,i.stickyLeft?"sticky-column-left":"",i.stickyRight?"sticky-column-right":"",z.headerTextColor,z.infiniteScroll?"sticky-top":""]])},[q.createElementVNode("div",ji,[q.renderSlot(M.$slots,"tableHeaderTh",{header:i},void 0,!0),i.isSortable&&!z.deepSorts?(q.openBlock(),q.createElementBlock("div",Gi,[q.createVNode(n,{icon:o.sortKey!==i.id||o.sortKey===i.id&&!o.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-up-short-wide",onClick:l=>c.updateCurrentSort(i)},null,8,["icon","onClick"])])):z.deepSorts&&!o.deepSortsList.some(l=>l.id===i.id)&&i.isSortable?(q.openBlock(),q.createElementBlock("div",Vi,[q.createVNode(n,{icon:"fa-solid fa-filter",onClick:l=>c.addDeepSort(i)},null,8,["onClick"])])):q.createCommentVNode("",!0)])],10,Hi)):q.createCommentVNode("",!0)],64))),128))]))]),q.createElementVNode("tbody",null,[((s=c.showeditems)==null?void 0:s.length)===0?(q.openBlock(),q.createElementBlock("tr",Ki,[q.createElementVNode("th",{colspan:o.columns.length,class:"text-center"},[q.createElementVNode("span",Ji,q.toDisplayString(z.noValueText),1)],8,Qi)])):(q.openBlock(!0),q.createElementBlock(q.Fragment,{key:1},q.renderList(c.showeditems,(i,f)=>(q.openBlock(),q.createElementBlock("tr",{key:i.id,class:q.normalizeClass([{hoverable:z.clickable&&!o.headerEditMode,"hoverable-no-drop":z.clickable&&o.headerEditMode},z.trFontSize]),style:q.normalizeStyle({height:z.trHeightPx+"px"}),onClick:l=>z.clickable&&!o.headerEditMode?c.selectSubject(i):null,onContextmenu:l=>c.handleContextMenu(l,i)},[(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(o.columns,l=>(q.openBlock(),q.createElementBlock(q.Fragment,{key:l.id},[l.id==="checkBox"?(q.openBlock(),q.createElementBlock("td",{key:0,"data-column-id":l.id,class:q.normalizeClass(["text-center",[i.lineState?c.lineStateClass(i.lineState):"",l.stickyLeft?"sticky-column-left":"",l.stickyRight?"sticky-column-right":"",M.tdClass]]),onClick:q.withModifiers(B=>c.checkItem(i.id),["stop"])},[q.withDirectives(q.createElementVNode("input",{id:`checkbox-${f}`,"onUpdate:modelValue":b[13]||(b[13]=B=>o.selectedItems=B),type:"checkbox",class:"form-check-input hoverable",value:i.id,onClick:b[14]||(b[14]=q.withModifiers(()=>{},["stop"]))},null,8,Mq),[[q.vModelCheckbox,o.selectedItems]])],10,$i)):(l.show||o.headerEditMode)&&(!l.onlyOnEditMode||z.lineEditMode)?(q.openBlock(),q.createElementBlock("td",{key:1,"data-column-id":l.id,class:q.normalizeClass([[l.show?"":"table-danger",l.isSorted?"bg-gray-200":"",i.lineState?c.lineStateClass(i.lineState):"",l.stickyLeft?"sticky-column-left":"",l.stickyRight?"sticky-column-right":"",M.tdClass],"text-center text-nowrap"])},[q.renderSlot(M.$slots,"tableBodyTd",{header:l,item:i},void 0,!0)],10,bq)):q.createCommentVNode("",!0)],64))),128))],46,Zi))),128))])],6))],38)]),q.createElementVNode("div",zq,[!z.infiniteScroll&&o.totalPages&&o.totalPages>1?(q.openBlock(),q.createElementBlock("div",{key:0,class:q.normalizeClass(["col p-0 me-3 d-flex",{"justify-content-center":z.paginationPosition==="center","justify-content-end":z.paginationPosition==="right","justify-content-start":z.paginationPosition==="left"}])},[q.createElementVNode("ul",pq,[q.createElementVNode("li",Oq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===1}]),onClick:b[16]||(b[16]=i=>o.currentPage=1)}," « ",2)]),q.createElementVNode("li",oq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===1}]),onClick:b[17]||(b[17]=i=>o.currentPage-=1)}," < ",2)]),(q.openBlock(!0),q.createElementBlock(q.Fragment,null,q.renderList(c.currentDisplayPagination,i=>(q.openBlock(),q.createElementBlock("li",{key:i,class:q.normalizeClass(["page-item hoverable",{active:o.currentPage===i}])},[q.createElementVNode("a",{class:"page-link",onClick:f=>o.currentPage=i},q.toDisplayString(i),9,eq)],2))),128)),q.createElementVNode("li",cq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===o.totalPages}]),onClick:b[18]||(b[18]=i=>o.currentPage+=1)}," > ",2)]),q.createElementVNode("li",tq,[q.createElementVNode("a",{class:q.normalizeClass(["page-link",{disabled:o.currentPage===o.totalPages}]),onClick:b[19]||(b[19]=i=>o.currentPage=o.totalPages)}," » ",2)])])],2)):q.createCommentVNode("",!0),z.stickyScrollbarHorizontal?(q.openBlock(),q.createElementBlock("div",{key:1,class:q.normalizeClass(["bottom-scrollbar",{visible:o.showScrollbar}])},b[22]||(b[22]=[q.createElementVNode("div",{class:"scrollbar-content"},null,-1)]),2)):q.createCommentVNode("",!0)])],64)}const ee=mi(Ni,[["render",Aq],["__scopeId","data-v-df240f69"]]);p2.AmsomTableDraggable=ee,p2.default=ee,Object.defineProperties(p2,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.select-max-item-per-page[data-v-
|
|
1
|
+
.select-max-item-per-page[data-v-df240f69]{background-color:transparent;font-size:12px;height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary)}.select-max-item-per-page[data-v-df240f69]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-df240f69]:focus{box-shadow:none}input[type=checkbox][data-v-df240f69]{pointer-events:none}.cursor-default[data-v-df240f69]{cursor:default!important}.hoverable[data-v-df240f69]:hover{cursor:pointer!important}.hoverable-grab[data-v-df240f69]:hover{cursor:grab!important}.hoverable-grabbing[data-v-df240f69]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-df240f69]:hover{cursor:no-drop!important}.addLineState[data-v-df240f69]{background-color:#edecd4!important}.deleteLineState[data-v-df240f69]{background-color:#f8d6da!important}.updateLineState[data-v-df240f69]{background-color:#c4e8ff!important}.sticky-column-left[data-v-df240f69]{position:sticky;left:0;z-index:2;background-color:#fff;border-left:1px solid #ddd}.sticky-column-right[data-v-df240f69]{position:sticky;right:0;z-index:2;background-color:#fff;border-left:1px solid #ddd}table[data-v-df240f69]{border-radius:10px!important}table tr:first-child th[data-v-df240f69]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-df240f69]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-df240f69]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-df240f69]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-df240f69]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb),1)!important}.col-12.p-0.overflow-x-auto[data-v-df240f69],.table-container[data-v-df240f69]{overflow-x:auto;max-width:100%}.bottom-scrollbar[data-v-df240f69]{position:fixed;bottom:0;left:0;width:100%;height:15px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;z-index:999;display:none;scrollbar-width:auto;transition:opacity .3s ease-in-out}.bottom-scrollbar.visible[data-v-df240f69]{display:block}.scrollbar-content[data-v-df240f69]{width:2000px;height:1px}.infinite-scroll-container[data-v-df240f69]{border-radius:10px;border:1px solid #ddd}.infinite-scroll-container .sticky-column-left[data-v-df240f69],.infinite-scroll-container .sticky-column-right[data-v-df240f69]{z-index:4}.infinite-scroll-container[data-v-df240f69]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-df240f69]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-df240f69]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-df240f69]::-webkit-scrollbar-track{background-color:transparent}
|