onchain-uikit 3.9.4-alpha47 → 3.9.4-alpha48
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -329,7 +329,7 @@ var QR;function Le(){return QR.apply(null,arguments)}function iY(e){QR=e}functio
|
|
|
329
329
|
[`+i+"] ";for(o in arguments[0])hr(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}tT(e+`
|
|
330
330
|
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
331
331
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var PE={};function rT(e,t){Le.deprecationHandler!=null&&Le.deprecationHandler(e,t),PE[e]||(tT(t),PE[e]=!0)}Le.suppressDeprecationWarnings=!1;Le.deprecationHandler=null;function vo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function sY(e){var t,r;for(r in e)hr(e,r)&&(t=e[r],vo(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function $y(e,t){var r=$s({},e),n;for(n in t)hr(t,n)&&(Su(e[n])&&Su(t[n])?(r[n]={},$s(r[n],e[n]),$s(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)hr(e,n)&&!hr(t,n)&&Su(e[n])&&(r[n]=$s({},r[n]));return r}function Ew(e){e!=null&&this.set(e)}var Ay;Object.keys?Ay=Object.keys:Ay=function(e){var t,r=[];for(t in e)hr(e,t)&&r.push(t);return r};var uY={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function lY(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return vo(n)?n.call(t,r):n}function fo(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Ow=/(\[[^\[]*\])|(\\)?([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,_0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W1={},Il={};function Et(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Il[e]=a),t&&(Il[t[0]]=function(){return fo(a.apply(this,arguments),t[1],t[2])}),r&&(Il[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function cY(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dY(e){var t=e.match(Ow),r,n;for(r=0,n=t.length;r<n;r++)Il[t[r]]?t[r]=Il[t[r]]:t[r]=cY(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=vo(t[o])?t[o].call(a,e):t[o];return i}}function op(e,t){return e.isValid()?(t=nT(t,e.localeData()),W1[t]=W1[t]||dY(t),W1[t](e)):e.localeData().invalidDate()}function nT(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(_0.lastIndex=0;r>=0&&_0.test(e);)e=e.replace(_0,n),_0.lastIndex=0,r-=1;return e}var fY={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 hY(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Ow).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var pY="Invalid date";function mY(){return this._invalidDate}var gY="%d",vY=/\d{1,2}/;function bY(e){return this._ordinal.replace("%d",e)}var yY={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 _Y(e,t,r,n){var a=this._relativeTime[r];return vo(a)?a(e,t,r,n):a.replace(/%d/i,e)}function wY(e,t){var r=this._relativeTime[e>0?"future":"past"];return vo(r)?r(t):r.replace(/%s/i,t)}var kE={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 vi(e){return typeof e=="string"?kE[e]||kE[e.toLowerCase()]:void 0}function Rw(e){var t={},r,n;for(n in e)hr(e,n)&&(r=vi(n),r&&(t[r]=e[n]));return t}var xY={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 SY(e){var t=[],r;for(r in e)hr(e,r)&&t.push({unit:r,priority:xY[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var aT=/\d/,Ka=/\d\d/,iT=/\d{3}/,Tw=/\d{4}/,fm=/[+-]?\d{6}/,Vr=/\d\d?/,oT=/\d\d\d\d?/,sT=/\d\d\d\d\d\d?/,hm=/\d{1,3}/,Pw=/\d{1,4}/,pm=/[+-]?\d{1,6}/,ic=/\d+/,mm=/[+-]?\d+/,CY=/Z|[+-]\d\d:?\d\d/gi,gm=/Z|[+-]\d\d(?::?\d\d)?/gi,EY=/[+-]?\d+(\.\d{1,3})?/,Qf=/[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,oc=/^[1-9]\d?/,kw=/^([1-9]\d|\d)/,Tp;Tp={};function st(e,t,r){Tp[e]=vo(t)?t:function(n,a){return n&&r?r:t}}function OY(e,t){return hr(Tp,e)?Tp[e](t._strict,t._locale):new RegExp(RY(e))}function RY(e){return ns(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ns(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ci(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=ci(t)),r}var Dy={};function Nr(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),is(t)&&(n=function(i,o){o[t]=nr(i)}),a=e.length,r=0;r<a;r++)Dy[e[r]]=n}function eh(e,t){Nr(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function TY(e,t,r){t!=null&&hr(Dy,e)&&Dy[e](t,r._a,r,e)}function vm(e){return e%4===0&&e%100!==0||e%400===0}var ta=0,Qo=1,no=2,yn=3,Mi=4,es=5,yu=6,PY=7,kY=8;Et("Y",0,0,function(){var e=this.year();return e<=9999?fo(e,4):"+"+e});Et(0,["YY",2],0,function(){return this.year()%100});Et(0,["YYYY",4],0,"year");Et(0,["YYYYY",5],0,"year");Et(0,["YYYYYY",6,!0],0,"year");st("Y",mm);st("YY",Vr,Ka);st("YYYY",Pw,Tw);st("YYYYY",pm,fm);st("YYYYYY",pm,fm);Nr(["YYYYY","YYYYYY"],ta);Nr("YYYY",function(e,t){t[ta]=e.length===2?Le.parseTwoDigitYear(e):nr(e)});Nr("YY",function(e,t){t[ta]=Le.parseTwoDigitYear(e)});Nr("Y",function(e,t){t[ta]=parseInt(e,10)});function af(e){return vm(e)?366:365}Le.parseTwoDigitYear=function(e){return nr(e)+(nr(e)>68?1900:2e3)};var uT=sc("FullYear",!0);function $Y(){return vm(this.year())}function sc(e,t){return function(r){return r!=null?(lT(this,e,r),Le.updateOffset(this,t),this):Sf(this,e)}}function Sf(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function lT(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!vm(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function AY(e){return e=vi(e),vo(this[e])?this[e]():this}function DY(e,t){if(typeof e=="object"){e=Rw(e);var r=SY(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=vi(e),vo(this[e]))return this[e](t);return this}function IY(e,t){return(e%t+t)%t}var dn;Array.prototype.indexOf?dn=Array.prototype.indexOf:dn=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function $w(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=IY(t,12);return e+=(t-r)/12,r===1?vm(e)?29:28:31-r%7%2}Et("M",["MM",2],"Mo",function(){return this.month()+1});Et("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Et("MMMM",0,0,function(e){return this.localeData().months(this,e)});st("M",Vr,oc);st("MM",Vr,Ka);st("MMM",function(e,t){return t.monthsShortRegex(e)});st("MMMM",function(e,t){return t.monthsRegex(e)});Nr(["M","MM"],function(e,t){t[Qo]=nr(e)-1});Nr(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Qo]=a:Gt(r).invalidMonth=e});var MY="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cT="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,NY=Qf,FY=Qf;function jY(e,t){return e?Hi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||dT).test(t)?"format":"standalone"][e.month()]:Hi(this._months)?this._months:this._months.standalone}function LY(e,t){return e?Hi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[dT.test(t)?"format":"standalone"][e.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zY(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=go([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null):(a=dn.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:(a=dn.call(this._longMonthsParse,o),a!==-1?a:null)):(a=dn.call(this._longMonthsParse,o),a!==-1?a:(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null))}function BY(e,t,r){var n,a,i;if(this._monthsParseExact)return zY.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=go([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function fT(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nr(t);else if(t=e.localeData().monthsParse(t),!is(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,$w(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function hT(e){return e!=null?(fT(this,e),Le.updateOffset(this,!0),this):Sf(this,"Month")}function HY(){return $w(this.year(),this.month())}function VY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||pT.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hr(this,"_monthsShortRegex")||(this._monthsShortRegex=NY),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function UY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||pT.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hr(this,"_monthsRegex")||(this._monthsRegex=FY),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pT(){function e(u,c){return c.length-u.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=go([2e3,a]),o=ns(this.monthsShort(i,"")),s=ns(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qY(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function Cf(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Pp(e,t,r){var n=7+t-r,a=(7+Cf(e,0,n).getUTCDay()-t)%7;return-a+n-1}function mT(e,t,r,n,a){var i=(7+r-n)%7,o=Pp(e,n,a),s=1+7*(t-1)+i+o,u,c;return s<=0?(u=e-1,c=af(u)+s):s>af(e)?(u=e+1,c=s-af(e)):(u=e,c=s),{year:u,dayOfYear:c}}function Ef(e,t,r){var n=Pp(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+as(o,t,r)):a>as(e.year(),t,r)?(i=a-as(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function as(e,t,r){var n=Pp(e,t,r),a=Pp(e+1,t,r);return(af(e)-n+a)/7}Et("w",["ww",2],"wo","week");Et("W",["WW",2],"Wo","isoWeek");st("w",Vr,oc);st("ww",Vr,Ka);st("W",Vr,oc);st("WW",Vr,Ka);eh(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=nr(e)});function WY(e){return Ef(e,this._week.dow,this._week.doy).week}var YY={dow:0,doy:6};function GY(){return this._week.dow}function KY(){return this._week.doy}function XY(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ZY(e){var t=Ef(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Et("d",0,"do","day");Et("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Et("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Et("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Et("e",0,0,"weekday");Et("E",0,0,"isoWeekday");st("d",Vr);st("e",Vr);st("E",Vr);st("dd",function(e,t){return t.weekdaysMinRegex(e)});st("ddd",function(e,t){return t.weekdaysShortRegex(e)});st("dddd",function(e,t){return t.weekdaysRegex(e)});eh(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Gt(r).invalidWeekday=e});eh(["d","e","E"],function(e,t,r,n){t[n]=nr(e)});function JY(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function QY(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Aw(e,t){return e.slice(t,7).concat(e.slice(0,t))}var eG="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gT="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tG="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rG=Qf,nG=Qf,aG=Qf;function iG(e,t){var r=Hi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Aw(r,this._week.dow):e?r[e.day()]:r}function oG(e){return e===!0?Aw(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function sG(e){return e===!0?Aw(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uG(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=go([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1||(a=dn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=dn.call(this._minWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function lG(e,t,r){var n,a,i;if(this._weekdaysParseExact)return uG.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=go([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function cG(e){if(!this.isValid())return e!=null?this:NaN;var t=Sf(this,"Day");return e!=null?(e=JY(e,this.localeData()),this.add(e-t,"d")):t}function dG(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function fG(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=QY(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function hG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Dw.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hr(this,"_weekdaysRegex")||(this._weekdaysRegex=rG),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function pG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Dw.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nG),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Dw.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=aG),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Dw(){function e(d,f){return f.length-d.length}var t=[],r=[],n=[],a=[],i,o,s,u,c;for(i=0;i<7;i++)o=go([2e3,1]).day(i),s=ns(this.weekdaysMin(o,"")),u=ns(this.weekdaysShort(o,"")),c=ns(this.weekdays(o,"")),t.push(s),r.push(u),n.push(c),a.push(s),a.push(u),a.push(c);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Iw(){return this.hours()%12||12}function gG(){return this.hours()||24}Et("H",["HH",2],0,"hour");Et("h",["hh",2],0,Iw);Et("k",["kk",2],0,gG);Et("hmm",0,0,function(){return""+Iw.apply(this)+fo(this.minutes(),2)});Et("hmmss",0,0,function(){return""+Iw.apply(this)+fo(this.minutes(),2)+fo(this.seconds(),2)});Et("Hmm",0,0,function(){return""+this.hours()+fo(this.minutes(),2)});Et("Hmmss",0,0,function(){return""+this.hours()+fo(this.minutes(),2)+fo(this.seconds(),2)});function vT(e,t){Et(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}vT("a",!0);vT("A",!1);function bT(e,t){return t._meridiemParse}st("a",bT);st("A",bT);st("H",Vr,kw);st("h",Vr,oc);st("k",Vr,oc);st("HH",Vr,Ka);st("hh",Vr,Ka);st("kk",Vr,Ka);st("hmm",oT);st("hmmss",sT);st("Hmm",oT);st("Hmmss",sT);Nr(["H","HH"],yn);Nr(["k","kk"],function(e,t,r){var n=nr(e);t[yn]=n===24?0:n});Nr(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Nr(["h","hh"],function(e,t,r){t[yn]=nr(e),Gt(r).bigHour=!0});Nr("hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n)),Gt(r).bigHour=!0});Nr("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n,2)),t[es]=nr(e.substr(a)),Gt(r).bigHour=!0});Nr("Hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n))});Nr("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n,2)),t[es]=nr(e.substr(a))});function vG(e){return(e+"").toLowerCase().charAt(0)==="p"}var bG=/[ap]\.?m?\.?/i,yG=sc("Hours",!0);function _G(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var yT={calendar:uY,longDateFormat:fY,invalidDate:pY,ordinal:gY,dayOfMonthOrdinalParse:vY,relativeTime:yY,months:MY,monthsShort:cT,week:YY,weekdays:eG,weekdaysMin:tG,weekdaysShort:gT,meridiemParse:bG},Wr={},Ed={},Of;function wG(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function $E(e){return e&&e.toLowerCase().replace("_","-")}function xG(e){for(var t=0,r,n,a,i;t<e.length;){for(i=$E(e[t]).split("-"),r=i.length,n=$E(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=bm(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&wG(i,n)>=r-1)break;r--}t++}return Of}function SG(e){return!!(e&&e.match("^[^/\\\\]*$"))}function bm(e){var t=null,r;if(Wr[e]===void 0&&typeof module<"u"&&module&&module.exports&&SG(e))try{t=Of._abbr,r=require,r("./locale/"+e),Fs(t)}catch{Wr[e]=null}return Wr[e]}function Fs(e,t){var r;return e&&(xa(t)?r=os(e):r=Mw(e,t),r?Of=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Of._abbr}function Mw(e,t){if(t!==null){var r,n=yT;if(t.abbr=e,Wr[e]!=null)rT("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."),n=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)n=Wr[t.parentLocale]._config;else if(r=bm(t.parentLocale),r!=null)n=r._config;else return Ed[t.parentLocale]||(Ed[t.parentLocale]=[]),Ed[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new Ew($y(n,t)),Ed[e]&&Ed[e].forEach(function(a){Mw(a.name,a.config)}),Fs(e),Wr[e]}else return delete Wr[e],null}function CG(e,t){if(t!=null){var r,n,a=yT;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set($y(Wr[e]._config,t)):(n=bm(e),n!=null&&(a=n._config),t=$y(a,t),n==null&&(t.abbr=e),r=new Ew(t),r.parentLocale=Wr[e],Wr[e]=r),Fs(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===Fs()&&Fs(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function os(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Of;if(!Hi(e)){if(t=bm(e),t)return t;e=[e]}return xG(e)}function EG(){return Ay(Wr)}function Nw(e){var t,r=e._a;return r&&Gt(e).overflow===-2&&(t=r[Qo]<0||r[Qo]>11?Qo:r[no]<1||r[no]>$w(r[ta],r[Qo])?no:r[yn]<0||r[yn]>24||r[yn]===24&&(r[Mi]!==0||r[es]!==0||r[yu]!==0)?yn:r[Mi]<0||r[Mi]>59?Mi:r[es]<0||r[es]>59?es:r[yu]<0||r[yu]>999?yu:-1,Gt(e)._overflowDayOfYear&&(t<ta||t>no)&&(t=no),Gt(e)._overflowWeeks&&t===-1&&(t=PY),Gt(e)._overflowWeekday&&t===-1&&(t=kY),Gt(e).overflow=t),e}var OG=/^\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)?)?$/,RG=/^\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)?)?$/,TG=/Z|[+-]\d\d(?::?\d\d)?/,w0=[["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]],Y1=[["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/]],PG=/^\/?Date\((-?\d+)/i,kG=/^(?:(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}))$/,$G={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 _T(e){var t,r,n=e._i,a=OG.exec(n)||RG.exec(n),i,o,s,u,c=w0.length,d=Y1.length;if(a){for(Gt(e).iso=!0,t=0,r=c;t<r;t++)if(w0[t][1].exec(a[1])){o=w0[t][0],i=w0[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=d;t<r;t++)if(Y1[t][1].exec(a[3])){s=(a[2]||" ")+Y1[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(TG.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),jw(e)}else e._isValid=!1}function AG(e,t,r,n,a,i){var o=[DG(e),cT.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function DG(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function IG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function MG(e,t,r){if(e){var n=gT.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Gt(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function NG(e,t,r){if(e)return $G[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function wT(e){var t=kG.exec(IG(e._i)),r;if(t){if(r=AG(t[4],t[3],t[2],t[5],t[6],t[7]),!MG(t[1],r,e))return;e._a=r,e._tzm=NG(t[8],t[9],t[10]),e._d=Cf.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Gt(e).rfc2822=!0}else e._isValid=!1}function FG(e){var t=PG.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(_T(e),e._isValid===!1)delete e._isValid;else return;if(wT(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Le.createFromInputFallback(e)}Le.createFromInputFallback=gi("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function vl(e,t,r){return e??t??r}function jG(e){var t=new Date(Le.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fw(e){var t,r,n=[],a,i,o;if(!e._d){for(a=jG(e),e._w&&e._a[no]==null&&e._a[Qo]==null&&LG(e),e._dayOfYear!=null&&(o=vl(e._a[ta],a[ta]),(e._dayOfYear>af(o)||e._dayOfYear===0)&&(Gt(e)._overflowDayOfYear=!0),r=Cf(o,0,e._dayOfYear),e._a[Qo]=r.getUTCMonth(),e._a[no]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yn]===24&&e._a[Mi]===0&&e._a[es]===0&&e._a[yu]===0&&(e._nextDay=!0,e._a[yn]=0),e._d=(e._useUTC?Cf:qY).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Gt(e).weekdayMismatch=!0)}}function LG(e){var t,r,n,a,i,o,s,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=vl(t.GG,e._a[ta],Ef(Hr(),1,4).year),n=vl(t.W,1),a=vl(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=Ef(Hr(),i,o),r=vl(t.gg,e._a[ta],c.year),n=vl(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>as(r,i,o)?Gt(e)._overflowWeeks=!0:u!=null?Gt(e)._overflowWeekday=!0:(s=mT(r,n,a,i,o),e._a[ta]=s.year,e._dayOfYear=s.dayOfYear)}Le.ISO_8601=function(){};Le.RFC_2822=function(){};function jw(e){if(e._f===Le.ISO_8601){_T(e);return}if(e._f===Le.RFC_2822){wT(e);return}e._a=[],Gt(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,u=0,c,d;for(a=nT(e._f,e._locale).match(Ow)||[],d=a.length,r=0;r<d;r++)i=a[r],n=(t.match(OY(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&Gt(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Il[i]?(n?Gt(e).empty=!1:Gt(e).unusedTokens.push(i),TY(i,n,e)):e._strict&&!n&&Gt(e).unusedTokens.push(i);Gt(e).charsLeftOver=s-u,t.length>0&&Gt(e).unusedInput.push(t),e._a[yn]<=12&&Gt(e).bigHour===!0&&e._a[yn]>0&&(Gt(e).bigHour=void 0),Gt(e).parsedDateParts=e._a.slice(0),Gt(e).meridiem=e._meridiem,e._a[yn]=zG(e._locale,e._a[yn],e._meridiem),c=Gt(e).era,c!==null&&(e._a[ta]=e._locale.erasConvertYear(c,e._a[ta])),Fw(e),Nw(e)}function zG(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function BG(e){var t,r,n,a,i,o,s=!1,u=e._f.length;if(u===0){Gt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=Cw({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],jw(t),Sw(t)&&(o=!0),i+=Gt(t).charsLeftOver,i+=Gt(t).unusedTokens.length*10,Gt(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));$s(e,r||t)}function HG(e){if(!e._d){var t=Rw(e._i),r=t.day===void 0?t.date:t.day;e._a=eT([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Fw(e)}}function VG(e){var t=new Jf(Nw(xT(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function xT(e){var t=e._i,r=e._f;return e._locale=e._locale||os(e._l),t===null||r===void 0&&t===""?dm({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Vi(t)?new Jf(Nw(t)):(Zf(t)?e._d=t:Hi(r)?BG(e):r?jw(e):UG(e),Sw(e)||(e._d=null),e))}function UG(e){var t=e._i;xa(t)?e._d=new Date(Le.now()):Zf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?FG(e):Hi(t)?(e._a=eT(t.slice(0),function(r){return parseInt(r,10)}),Fw(e)):Su(t)?HG(e):is(t)?e._d=new Date(t):Le.createFromInputFallback(e)}function ST(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Su(e)&&xw(e)||Hi(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,VG(i)}function Hr(e,t,r,n){return ST(e,t,r,n,!1)}var qG=gi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:dm()}),WG=gi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:dm()});function CT(e,t){var r,n;if(t.length===1&&Hi(t[0])&&(t=t[0]),!t.length)return Hr();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function YG(){var e=[].slice.call(arguments,0);return CT("isBefore",e)}function GG(){var e=[].slice.call(arguments,0);return CT("isAfter",e)}var KG=function(){return Date.now?Date.now():+new Date},Od=["year","quarter","month","week","day","hour","minute","second","millisecond"];function XG(e){var t,r=!1,n,a=Od.length;for(t in e)if(hr(e,t)&&!(dn.call(Od,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[Od[n]]){if(r)return!1;parseFloat(e[Od[n]])!==nr(e[Od[n]])&&(r=!0)}return!0}function ZG(){return this._isValid}function JG(){return qi(NaN)}function ym(e){var t=Rw(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=XG(t),this._milliseconds=+d+c*1e3+u*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=os(),this._bubble()}function sp(e){return e instanceof ym}function Iy(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function QG(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)nr(e[o])!==nr(t[o])&&i++;return i+a}function ET(e,t){Et(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+fo(~~(r/60),2)+t+fo(~~r%60,2)})}ET("Z",":");ET("ZZ","");st("Z",gm);st("ZZ",gm);Nr(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Lw(gm,e)});var eK=/([\+\-]|\d\d)/gi;function Lw(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(eK)||["-",0,0],i=+(a[1]*60)+nr(a[2]),i===0?0:a[0]==="+"?i:-i)}function zw(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Vi(e)||Zf(e)?e.valueOf():Hr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Le.updateOffset(r,!1),r):Hr(e).local()}function My(e){return-Math.round(e._d.getTimezoneOffset())}Le.updateOffset=function(){};function tK(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Lw(gm,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=My(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?TT(this,qi(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:My(this)}function rK(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function nK(e){return this.utcOffset(0,e)}function aK(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(My(this),"m")),this}function iK(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Lw(CY,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oK(e){return this.isValid()?(e=e?Hr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function sK(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uK(){if(!xa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Cw(e,this),e=xT(e),e._a?(t=e._isUTC?go(e._a):Hr(e._a),this._isDSTShifted=this.isValid()&&QG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function lK(){return this.isValid()?!this._isUTC:!1}function cK(){return this.isValid()?this._isUTC:!1}function OT(){return this.isValid()?this._isUTC&&this._offset===0:!1}var dK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qi(e,t){var r=e,n=null,a,i,o;return sp(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:is(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=dK.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:nr(n[no])*a,h:nr(n[yn])*a,m:nr(n[Mi])*a,s:nr(n[es])*a,ms:nr(Iy(n[yu]*1e3))*a}):(n=fK.exec(e))?(a=n[1]==="-"?-1:1,r={y:ou(n[2],a),M:ou(n[3],a),w:ou(n[4],a),d:ou(n[5],a),h:ou(n[6],a),m:ou(n[7],a),s:ou(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=hK(Hr(r.from),Hr(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new ym(r),sp(e)&&hr(e,"_locale")&&(i._locale=e._locale),sp(e)&&hr(e,"_isValid")&&(i._isValid=e._isValid),i}qi.fn=ym.prototype;qi.invalid=JG;function ou(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function AE(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function hK(e,t){var r;return e.isValid()&&t.isValid()?(t=zw(t,e),e.isBefore(t)?r=AE(e,t):(r=AE(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function RT(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(rT(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=qi(r,n),TT(this,a,e),this}}function TT(e,t,r,n){var a=t._milliseconds,i=Iy(t._days),o=Iy(t._months);e.isValid()&&(n=n??!0,o&&fT(e,Sf(e,"Month")+o*r),i&&lT(e,"Date",Sf(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Le.updateOffset(e,i||o))}var pK=RT(1,"add"),mK=RT(-1,"subtract");function PT(e){return typeof e=="string"||e instanceof String}function gK(e){return Vi(e)||Zf(e)||PT(e)||is(e)||bK(e)||vK(e)||e===null||e===void 0}function vK(e){var t=Su(e)&&!xw(e),r=!1,n=["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,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function bK(e){var t=Hi(e),r=!1;return t&&(r=e.filter(function(n){return!is(n)&&PT(e)}).length===0),t&&r}function yK(e){var t=Su(e)&&!xw(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function _K(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function wK(e,t){arguments.length===1&&(arguments[0]?gK(arguments[0])?(e=arguments[0],t=void 0):yK(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Hr(),n=zw(r,this).startOf("day"),a=Le.calendarFormat(this,n)||"sameElse",i=t&&(vo(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Hr(r)))}function xK(){return new Jf(this)}function SK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function CK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function EK(e,t,r,n){var a=Vi(e)?e:Hr(e),i=Vi(t)?t:Hr(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function OK(e,t){var r=Vi(e)?e:Hr(e),n;return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function RK(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function TK(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function PK(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=zw(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=vi(t),t){case"year":i=up(this,n)/12;break;case"month":i=up(this,n);break;case"quarter":i=up(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:ci(i)}function up(e,t){if(e.date()<t.date())return-up(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function kK(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $K(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?op(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):vo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",op(r,"Z")):op(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function AK(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function DK(e){e||(e=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var t=op(this,e);return this.localeData().postformat(t)}function IK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function MK(e){return this.from(Hr(),e)}function NK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function FK(e){return this.to(Hr(),e)}function kT(e){var t;return e===void 0?this._locale._abbr:(t=os(e),t!=null&&(this._locale=t),this)}var $T=gi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function AT(){return this._locale}var kp=1e3,Ml=60*kp,$p=60*Ml,DT=(365*400+97)*24*$p;function Nl(e,t){return(e%t+t)%t}function IT(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-DT:new Date(e,t,r).valueOf()}function MT(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-DT:Date.UTC(e,t,r)}function jK(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?MT:IT,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Nl(t+(this._isUTC?0:this.utcOffset()*Ml),$p);break;case"minute":t=this._d.valueOf(),t-=Nl(t,Ml);break;case"second":t=this._d.valueOf(),t-=Nl(t,kp);break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function LK(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?MT:IT,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=$p-Nl(t+(this._isUTC?0:this.utcOffset()*Ml),$p)-1;break;case"minute":t=this._d.valueOf(),t+=Ml-Nl(t,Ml)-1;break;case"second":t=this._d.valueOf(),t+=kp-Nl(t,kp)-1;break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function zK(){return this._d.valueOf()-(this._offset||0)*6e4}function BK(){return Math.floor(this.valueOf()/1e3)}function HK(){return new Date(this.valueOf())}function VK(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function UK(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function qK(){return this.isValid()?this.toISOString():null}function WK(){return Sw(this)}function YK(){return $s({},Gt(this))}function GK(){return Gt(this).overflow}function KK(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Et("N",0,0,"eraAbbr");Et("NN",0,0,"eraAbbr");Et("NNN",0,0,"eraAbbr");Et("NNNN",0,0,"eraName");Et("NNNNN",0,0,"eraNarrow");Et("y",["y",1],"yo","eraYear");Et("y",["yy",2],0,"eraYear");Et("y",["yyy",3],0,"eraYear");Et("y",["yyyy",4],0,"eraYear");st("N",Bw);st("NN",Bw);st("NNN",Bw);st("NNNN",oX);st("NNNNN",sX);Nr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Gt(r).era=a:Gt(r).invalidEra=e});st("y",ic);st("yy",ic);st("yyy",ic);st("yyyy",ic);st("yo",uX);Nr(["y","yy","yyy","yyyy"],ta);Nr(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ta]=r._locale.eraYearOrdinalParse(e,a):t[ta]=parseInt(e,10)});function XK(e,t){var r,n,a,i=this._eras||os("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Le(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Le(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function ZK(e,t,r){var n,a,i=this.eras(),o,s,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([o,s,u].indexOf(e)>=0)return i[n]}function JK(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Le(e.since).year():Le(e.since).year()+(t-e.offset)*r}function QK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function eX(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function tX(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function rX(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Le(a[e].since).year())*r+a[e].offset;return this.year()}function nX(e){return hr(this,"_erasNameRegex")||Hw.call(this),e?this._erasNameRegex:this._erasRegex}function aX(e){return hr(this,"_erasAbbrRegex")||Hw.call(this),e?this._erasAbbrRegex:this._erasRegex}function iX(e){return hr(this,"_erasNarrowRegex")||Hw.call(this),e?this._erasNarrowRegex:this._erasRegex}function Bw(e,t){return t.erasAbbrRegex(e)}function oX(e,t){return t.erasNameRegex(e)}function sX(e,t){return t.erasNarrowRegex(e)}function uX(e,t){return t._eraYearOrdinalRegex||ic}function Hw(){var e=[],t=[],r=[],n=[],a,i,o,s,u,c=this.eras();for(a=0,i=c.length;a<i;++a)o=ns(c[a].name),s=ns(c[a].abbr),u=ns(c[a].narrow),t.push(o),e.push(s),r.push(u),n.push(o),n.push(s),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Et(0,["gg",2],0,function(){return this.weekYear()%100});Et(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _m(e,t){Et(0,[e,e.length],0,t)}_m("gggg","weekYear");_m("ggggg","weekYear");_m("GGGG","isoWeekYear");_m("GGGGG","isoWeekYear");st("G",mm);st("g",mm);st("GG",Vr,Ka);st("gg",Vr,Ka);st("GGGG",Pw,Tw);st("gggg",Pw,Tw);st("GGGGG",pm,fm);st("ggggg",pm,fm);eh(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=nr(e)});eh(["gg","GG"],function(e,t,r,n){t[n]=Le.parseTwoDigitYear(e)});function lX(e){return NT.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function cX(e){return NT.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function dX(){return as(this.year(),1,4)}function fX(){return as(this.isoWeekYear(),1,4)}function hX(){var e=this.localeData()._week;return as(this.year(),e.dow,e.doy)}function pX(){var e=this.localeData()._week;return as(this.weekYear(),e.dow,e.doy)}function NT(e,t,r,n,a){var i;return e==null?Ef(this,n,a).year:(i=as(e,n,a),t>i&&(t=i),mX.call(this,e,t,r,n,a))}function mX(e,t,r,n,a){var i=mT(e,t,r,n,a),o=Cf(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Et("Q",0,"Qo","quarter");st("Q",aT);Nr("Q",function(e,t){t[Qo]=(nr(e)-1)*3});function gX(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Et("D",["DD",2],"Do","date");st("D",Vr,oc);st("DD",Vr,Ka);st("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Nr(["D","DD"],no);Nr("Do",function(e,t){t[no]=nr(e.match(Vr)[0])});var FT=sc("Date",!0);Et("DDD",["DDDD",3],"DDDo","dayOfYear");st("DDD",hm);st("DDDD",iT);Nr(["DDD","DDDD"],function(e,t,r){r._dayOfYear=nr(e)});function vX(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Et("m",["mm",2],0,"minute");st("m",Vr,kw);st("mm",Vr,Ka);Nr(["m","mm"],Mi);var bX=sc("Minutes",!1);Et("s",["ss",2],0,"second");st("s",Vr,kw);st("ss",Vr,Ka);Nr(["s","ss"],es);var yX=sc("Seconds",!1);Et("S",0,0,function(){return~~(this.millisecond()/100)});Et(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Et(0,["SSS",3],0,"millisecond");Et(0,["SSSS",4],0,function(){return this.millisecond()*10});Et(0,["SSSSS",5],0,function(){return this.millisecond()*100});Et(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Et(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Et(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Et(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});st("S",hm,aT);st("SS",hm,Ka);st("SSS",hm,iT);var As,jT;for(As="SSSS";As.length<=9;As+="S")st(As,ic);function _X(e,t){t[yu]=nr(("0."+e)*1e3)}for(As="S";As.length<=9;As+="S")Nr(As,_X);jT=sc("Milliseconds",!1);Et("z",0,0,"zoneAbbr");Et("zz",0,0,"zoneName");function wX(){return this._isUTC?"UTC":""}function xX(){return this._isUTC?"Coordinated Universal Time":""}var ze=Jf.prototype;ze.add=pK;ze.calendar=wK;ze.clone=xK;ze.diff=PK;ze.endOf=LK;ze.format=DK;ze.from=IK;ze.fromNow=MK;ze.to=NK;ze.toNow=FK;ze.get=AY;ze.invalidAt=GK;ze.isAfter=SK;ze.isBefore=CK;ze.isBetween=EK;ze.isSame=OK;ze.isSameOrAfter=RK;ze.isSameOrBefore=TK;ze.isValid=WK;ze.lang=$T;ze.locale=kT;ze.localeData=AT;ze.max=WG;ze.min=qG;ze.parsingFlags=YK;ze.set=DY;ze.startOf=jK;ze.subtract=mK;ze.toArray=VK;ze.toObject=UK;ze.toDate=HK;ze.toISOString=$K;ze.inspect=AK;typeof Symbol<"u"&&Symbol.for!=null&&(ze[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ze.toJSON=qK;ze.toString=kK;ze.unix=BK;ze.valueOf=zK;ze.creationData=KK;ze.eraName=QK;ze.eraNarrow=eX;ze.eraAbbr=tX;ze.eraYear=rX;ze.year=uT;ze.isLeapYear=$Y;ze.weekYear=lX;ze.isoWeekYear=cX;ze.quarter=ze.quarters=gX;ze.month=hT;ze.daysInMonth=HY;ze.week=ze.weeks=XY;ze.isoWeek=ze.isoWeeks=ZY;ze.weeksInYear=hX;ze.weeksInWeekYear=pX;ze.isoWeeksInYear=dX;ze.isoWeeksInISOWeekYear=fX;ze.date=FT;ze.day=ze.days=cG;ze.weekday=dG;ze.isoWeekday=fG;ze.dayOfYear=vX;ze.hour=ze.hours=yG;ze.minute=ze.minutes=bX;ze.second=ze.seconds=yX;ze.millisecond=ze.milliseconds=jT;ze.utcOffset=tK;ze.utc=nK;ze.local=aK;ze.parseZone=iK;ze.hasAlignedHourOffset=oK;ze.isDST=sK;ze.isLocal=lK;ze.isUtcOffset=cK;ze.isUtc=OT;ze.isUTC=OT;ze.zoneAbbr=wX;ze.zoneName=xX;ze.dates=gi("dates accessor is deprecated. Use date instead.",FT);ze.months=gi("months accessor is deprecated. Use month instead",hT);ze.years=gi("years accessor is deprecated. Use year instead",uT);ze.zone=gi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rK);ze.isDSTShifted=gi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uK);function SX(e){return Hr(e*1e3)}function CX(){return Hr.apply(null,arguments).parseZone()}function LT(e){return e}var pr=Ew.prototype;pr.calendar=lY;pr.longDateFormat=hY;pr.invalidDate=mY;pr.ordinal=bY;pr.preparse=LT;pr.postformat=LT;pr.relativeTime=_Y;pr.pastFuture=wY;pr.set=sY;pr.eras=XK;pr.erasParse=ZK;pr.erasConvertYear=JK;pr.erasAbbrRegex=aX;pr.erasNameRegex=nX;pr.erasNarrowRegex=iX;pr.months=jY;pr.monthsShort=LY;pr.monthsParse=BY;pr.monthsRegex=UY;pr.monthsShortRegex=VY;pr.week=WY;pr.firstDayOfYear=KY;pr.firstDayOfWeek=GY;pr.weekdays=iG;pr.weekdaysMin=sG;pr.weekdaysShort=oG;pr.weekdaysParse=lG;pr.weekdaysRegex=hG;pr.weekdaysShortRegex=pG;pr.weekdaysMinRegex=mG;pr.isPM=vG;pr.meridiem=_G;function Ap(e,t,r,n){var a=os(),i=go().set(n,t);return a[r](i,e)}function zT(e,t,r){if(is(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ap(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Ap(e,n,r,"month");return a}function Vw(e,t,r,n){typeof e=="boolean"?(is(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,is(t)&&(r=t,t=void 0),t=t||"");var a=os(),i=e?a._week.dow:0,o,s=[];if(r!=null)return Ap(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=Ap(t,(o+i)%7,n,"day");return s}function EX(e,t){return zT(e,t,"months")}function OX(e,t){return zT(e,t,"monthsShort")}function RX(e,t,r){return Vw(e,t,r,"weekdays")}function TX(e,t,r){return Vw(e,t,r,"weekdaysShort")}function PX(e,t,r){return Vw(e,t,r,"weekdaysMin")}Fs("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(e){var t=e%10,r=nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Le.lang=gi("moment.lang is deprecated. Use moment.locale instead.",Fs);Le.langData=gi("moment.langData is deprecated. Use moment.localeData instead.",os);var Vo=Math.abs;function kX(){var e=this._data;return this._milliseconds=Vo(this._milliseconds),this._days=Vo(this._days),this._months=Vo(this._months),e.milliseconds=Vo(e.milliseconds),e.seconds=Vo(e.seconds),e.minutes=Vo(e.minutes),e.hours=Vo(e.hours),e.months=Vo(e.months),e.years=Vo(e.years),this}function BT(e,t,r,n){var a=qi(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function $X(e,t){return BT(this,e,t,1)}function AX(e,t){return BT(this,e,t,-1)}function DE(e){return e<0?Math.floor(e):Math.ceil(e)}function DX(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=DE(Ny(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=ci(e/1e3),n.seconds=a%60,i=ci(a/60),n.minutes=i%60,o=ci(i/60),n.hours=o%24,t+=ci(o/24),u=ci(HT(t)),r+=u,t-=DE(Ny(u)),s=ci(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function HT(e){return e*4800/146097}function Ny(e){return e*146097/4800}function IX(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=vi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+HT(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Ny(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ss(e){return function(){return this.as(e)}}var VT=ss("ms"),MX=ss("s"),NX=ss("m"),FX=ss("h"),jX=ss("d"),LX=ss("w"),zX=ss("M"),BX=ss("Q"),HX=ss("y"),VX=VT;function UX(){return qi(this)}function qX(e){return e=vi(e),this.isValid()?this[e+"s"]():NaN}function Au(e){return function(){return this.isValid()?this._data[e]:NaN}}var WX=Au("milliseconds"),YX=Au("seconds"),GX=Au("minutes"),KX=Au("hours"),XX=Au("days"),ZX=Au("months"),JX=Au("years");function QX(){return ci(this.days()/7)}var Go=Math.round,Sl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eZ(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function tZ(e,t,r,n){var a=qi(e).abs(),i=Go(a.as("s")),o=Go(a.as("m")),s=Go(a.as("h")),u=Go(a.as("d")),c=Go(a.as("M")),d=Go(a.as("w")),f=Go(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||d<=1&&["w"]||d<r.w&&["ww",d]),g=g||c<=1&&["M"]||c<r.M&&["MM",c]||f<=1&&["y"]||["yy",f],g[2]=t,g[3]=+e>0,g[4]=n,eZ.apply(null,g)}function rZ(e){return e===void 0?Go:typeof e=="function"?(Go=e,!0):!1}function nZ(e,t){return Sl[e]===void 0?!1:t===void 0?Sl[e]:(Sl[e]=t,e==="s"&&(Sl.ss=t-1),!0)}function aZ(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Sl,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Sl,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=tZ(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var G1=Math.abs;function tl(e){return(e>0)-(e<0)||+e}function wm(){if(!this.isValid())return this.localeData().invalidDate();var e=G1(this._milliseconds)/1e3,t=G1(this._days),r=G1(this._months),n,a,i,o,s=this.asSeconds(),u,c,d,f;return s?(n=ci(e/60),a=ci(n/60),e%=60,n%=60,i=ci(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",c=tl(this._months)!==tl(s)?"-":"",d=tl(this._days)!==tl(s)?"-":"",f=tl(this._milliseconds)!==tl(s)?"-":"",u+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?d+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")):"P0D"}var lr=ym.prototype;lr.isValid=ZG;lr.abs=kX;lr.add=$X;lr.subtract=AX;lr.as=IX;lr.asMilliseconds=VT;lr.asSeconds=MX;lr.asMinutes=NX;lr.asHours=FX;lr.asDays=jX;lr.asWeeks=LX;lr.asMonths=zX;lr.asQuarters=BX;lr.asYears=HX;lr.valueOf=VX;lr._bubble=DX;lr.clone=UX;lr.get=qX;lr.milliseconds=WX;lr.seconds=YX;lr.minutes=GX;lr.hours=KX;lr.days=XX;lr.weeks=QX;lr.months=ZX;lr.years=JX;lr.humanize=aZ;lr.toISOString=wm;lr.toString=wm;lr.toJSON=wm;lr.locale=kT;lr.localeData=AT;lr.toIsoString=gi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wm);lr.lang=$T;Et("X",0,0,"unix");Et("x",0,0,"valueOf");st("x",mm);st("X",EY);Nr("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Nr("x",function(e,t,r){r._d=new Date(nr(e))});//! moment.js
|
|
332
|
-
Le.version="2.30.1";iY(Hr);Le.fn=ze;Le.min=YG;Le.max=GG;Le.now=KG;Le.utc=go;Le.unix=SX;Le.months=EX;Le.isDate=Zf;Le.locale=Fs;Le.invalid=dm;Le.duration=qi;Le.isMoment=Vi;Le.weekdays=RX;Le.parseZone=CX;Le.localeData=os;Le.isDuration=sp;Le.monthsShort=OX;Le.weekdaysMin=PX;Le.defineLocale=Mw;Le.updateLocale=CG;Le.locales=EG;Le.weekdaysShort=TX;Le.normalizeUnits=vi;Le.relativeTimeRounding=rZ;Le.relativeTimeThreshold=nZ;Le.calendarFormat=_K;Le.prototype=ze;Le.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"};const Rs=class Rs{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Le.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Rs.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const o=a.shift(),s=o[r];if(n==null||n(o),i.push(o),s!=null&&s.length)for(let u=s.length-1;u>=0;u--)a.unshift(s[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var d;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,s=new Map,u=new Map,c=[...t];for(;c.length;){const f=c.shift(),g=o.get(f)??t.findIndex(E=>E==f),b=s.get(f);b?a.add(b):a.clear();const y=b==null?void 0:b[n],w=r(f,g),S=f[n];if(w){i={parent:b,self:f,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(S!=null&&S.length)for(let E=S.length-1;E>=0;E--){const _=S[E];c.unshift(S[E]),o.set(_,E),s.set(_,f),E==S.length-1&&u.set(_,()=>{var C;(C=u.get(f))==null||C(),a.delete(f)})}else(d=u.get(f))==null||d()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Ns.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Ar(Rs,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let s="";i==="[object Array]"&&(s=[]);const u=c=>{for(let d=0;d<(c||[]).length;d++){const f=c[d][a?a.label:"label"],g=c[d][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&s.push(f):r===g&&(s=f),c[d].children&&c[d].children.length&&u(c[d].children)}};return u(n),s}),Ar(Rs,"transformArrayToMap",(t,r,n,a)=>{function i(o,s){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?ql.isCustomAttr(s)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,s)=>{const u=i(r,s),c=i(n,s);return c?o[s[u]]=s[c]:o[s[u]]=s,o},{})}),Ar(Rs,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Ar(Rs,"renderBomTag",t=>{const r=o=>{const s=o.match(/\d+(\.\d+)?/g);return s?s[s.length-1]:""},n=o=>{let s=0;const u=c=>{var d=c.split("");return d.reverse()};for(let c=0;c<u(o).length&&u(o)[c].match(/\d/);c++)s=s+1;return o.substring(0,o.length-s)},a=o=>_e.sortBy(_e.uniq(o.split(",")),s=>Number(r(s))),i=Object.keys(_e.groupBy(a(t),o=>n(o))).map(o=>(u=>{var c=[],d=0;const f=u.sort((g,b)=>Number(r(g))-Number(r(b)));return f.forEach((g,b)=>{b===0?c[0]=[g]:Number(r(g))-Number(r(f[b-1]))===1?c[d].push(g):c[++d]=[g]}),c})(_e.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const c=u.map(d=>Number(r(d)));return`${o}${_e.min(c)}-${_e.max(c)}`}else return u[0]}));return _e.flatten(i).join(",")}),Ar(Rs,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const c=u.substring(0,u.match(/\d+-\d+$/).index),d=[],f=Number(u.split(c)[1].split("-")[1]),g=f<1e3?f:1e3;for(let b=Number(u.split(c)[1].split("-")[0]);b<=g;b++)d.push(`${c}${b}`);return d.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const c=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),d=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),f=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(c!=f)return u;{const b=[],y=Number(g),w=y<1e3?y:1e3;for(let S=Number(d);S<=w;S++)b.push(`${c}${S}`);return b.join(",")}}else return u}).join(","),a=u=>{const c=u.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=u=>{let c=0;const d=f=>{var g=f.split("");return g.reverse()};for(let f=0;f<d(u).length&&d(u)[f].match(/\d/);f++)c=c+1;return u.substring(0,u.length-c)},o=u=>_e.sortBy(_e.uniq(u.split(",")),c=>Number(a(c))),s=Object.values(_e.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return s.length>1e3&&(r==null||r()),s.length>1e3?s.slice(0,1e3).join(","):s.join(",")});let _r=Rs;const iZ="_tableSelection_1qae1_1",oZ="_sideBox_1qae1_31",sZ="_tableFrame_1qae1_46",K1={tableSelection:iZ,sideBox:oZ,tableFrame:sZ},uZ="_sider_item_container_wnrm0_1",rl={sider_item_container:uZ},{TreeNode:IE}=ue.Tree,UT=e=>{const[t,r]=A.useState([]),[n,a]=A.useState([]),[i,o]=A.useState([]);Yf(()=>{s()});const s=async()=>{var c;if(e.getInstanceMenu){const{records:d}=await e.getInstanceMenu();a(d||[])}if(e.getAttributeByTab){const d=await e.getAttributeByTab();if(d){const f=(c=d.records)==null?void 0:c.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(f)}}};A.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=c=>c.map(f=>(f.title=H.jsxs("div",{className:rl.treeListBox,children:[H.jsxs("div",{className:rl.titleBox,style:{display:"flex",alignItems:"center"},children:[H.jsx(Dt,{type:f.icon=="leftbar-folder"?f.children&&f.children.length>0&&_e.includes(i,f.id)?"content-open2":"content-fold":f.icon,style:{fontSize:"16px",color:"#333"}}),H.jsx("div",{className:rl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:f.name,children:H.jsx("span",{children:f.name})})]}),H.jsx("div",{className:ge(rl.btnBox,rl.onHover)})]},f.id),f.children?H.jsx(IE,{title:f.title,dataRef:f,children:u(f.children)},f.id):H.jsx(IE,{title:f.title},f.id)));return H.jsx("div",{className:rl.sider_item_container,children:H.jsx(ue.Tree,{switcherIcon:H.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{o(c)},onSelect:(c,d)=>{d.selected&&(r(c),e.onSelected&&e.onSelected(d.node.dataRef))},children:u(n)})})},lZ="_main_cwkam_1",cZ="_edit_cell_cwkam_23",dZ="_update_style_cwkam_28",fZ="_updated_style_cwkam_42",hZ="_updated_redline_style_cwkam_61",pZ="_table_footer_cwkam_354",mZ="_loading_cwkam_366",ki={main:lZ,edit_cell:cZ,update_style:dZ,updated_style:fZ,updated_redline_style:hZ,table_footer:pZ,loading:mZ},gZ=0,X1=1,Z1=2,qT=8,nl=64,x0=0,WT=1,Fy=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function vZ(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:gZ,end:!1,final_top:0,f_final_top:WT,update_count:0}}function bZ(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function bl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function yZ(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:qT}}const _Z=P.forwardRef(function(t,r){return H.jsx("table",{ref:r,...t})});function wZ(e){return H.jsx("tbody",{...e})}const xZ=P.forwardRef(function(t,r){const[n,a]=A.useState(!1);return H.jsx("tr",{ref:r,...t})});function SZ(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,o=0,s=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(s=o;s<n&&u<e._y;++s)u+=r[s];let c=a<0?0:a;for(;o>0&&c--;)i-=r[--o];return s+=a,s>n&&(s=n),[0|o,0|s,0|i]}function YT(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function CZ(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function EZ(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function ME(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function GT(e,t){const r=()=>{bl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&EZ(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function J1(e){e.HND_PAINT>0||(e.HND_PAINT=GT(e,-1))}function KT(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function OZ(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function RZ(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const TZ=(e,t)=>{const{style:r,context:n,...a}=e,i=A.useState(0),o=A.useRef(()=>{}),s=A.useMemo(()=>P.createRef(),[]),u=A.useContext(n);A.useMemo(()=>{Object.assign(u,vZ()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=s,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:nl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&bZ(u)},[]);const c=A.useRef([]).current,d=A.useRef(0);let f;const g=A.useCallback(_=>{if(u.vt_state===4){if(_&&(c.push(_),u.f_final_top===x0))return _.flag=nl,f(0);c.length&&(d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(f))}},[]),b=A.useCallback(_=>{g(yZ(_))},[]);f=A.useCallback(_=>{if(u.vt_state!==4)return;const C=c;let h;if(!C.length)return;h=C.pop();let p=h.target.scrollTop,v=h.target.scrollLeft;const x=h.flag;bl(u,`raf top: ${p}, left: ${v}`);const k=SZ(u,u.f_final_top===x0?u.final_top:p),$=k[0],R=k[1],N=k[2],M=u._offset_head,F=u._offset_tail,L=u._offset_top;let I;switch(x){case X1:bl(u,"SCROLLEVT_INIT"),I=!1;break;case nl:bl(u,"SCROLLEVT_BY_HOOK"),$===M&&R===F&&N===L?(u.f_final_top=WT,u.final_top===-1&&(p=u.computed_h-u._y),I=!0):(u.final_top===-1&&(p=N),I=!1);break;case Z1:if(bl(u,"SCROLLEVT_RECOMPUTE"),$===M&&R===F&&N===L){d.current=0,C.length&&g(null);return}I=!1;break;case qT:if(bl(u,"SCROLLEVT_NATIVE"),d.current=0,C.length=0,u.onScroll&&u.onScroll({top:p,left:v,isEnd:h.end}),$===M&&R===F&&N===L)return;I=h.end;break}YT(u,N,$,R),CZ(u,p,v,x,I),i[1](++u.update_count)},[]),A.useImperativeHandle(t,()=>{const _=C=>{u.f_final_top=x0,u.final_top=C,g({target:{scrollTop:C,scrollLeft:-1},flag:nl})};return{scrollTo:C=>{o.current=()=>_(C),o.current()},scrollToIndex:C=>{o.current=()=>{C>u.row_count-1&&(C=u.row_count-1),C<0&&(C=0);let h=0;for(let p=0;p<C;++p)h+=u.row_height[p];_(h)},o.current()}}},[]),A.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=b},[s]),A.useEffect(()=>{g({flag:nl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),A.useEffect(()=>{switch(u.evt){case nl:u.f_final_top===x0?o.current():ME(u,u.top,u.left);break;case X1:case Z1:ME(u,u.top,u.left),c.length&&f(0);break}},[i[0]]),A.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:X1});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:Z1}));break}}),r.position="relative",r.top=u._offset_top;const{width:y,...w}=r,S=A.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=u.components.table;return H.jsx("div",{ref:s,style:S,children:H.jsx(n.Provider,{value:{...u},children:H.jsx(E,{...a,style:w})})})},PZ=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let s=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:c}=r,d=[];switch(r.vt_state){case 1:s>=0&&(console.assert(u===0),console.assert(c===1),Array.isArray(i)?(d=i.slice(u,c),d[0].props.record[Fy]=0):d=i,r.re_computed=s,r.prev_row_count=s,r.row_count=s);break;case 4:{if(c>s){const g=c-s;c-=g,u-=g,u<0&&(u=0),c<0&&(c=0),YT(r,r._offset_top,u,c)}r.row_count!==s&&RZ(r,s),s=r.row_count;const f=r.prev_row_count;if(s<f)OZ(r,s,f);else if(s>f){const g=r.row_height;s-g.length>0?KT(r,s,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,f,s),r.computed_h+=r.possible_hight_per_tr*(s-f))}if(s){let g=u;d=i.slice(g,c),d.forEach(b=>b.props.record[Fy]=g++)}else d=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return H.jsxs(o,{...n,children:[a,d]})},kZ=e=>{const t=P.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return H.jsx(i,{...n,children:a});const o=a[0].props,s=o.record[Fy],u=A.useRef(s),c=A.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return A.useEffect(()=>(r.vt_state===4?J1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,KT(r,r.row_count,0,r.possible_hight_per_tr),GT(r,16)),()=>J1(r)),[]),A.useEffect(()=>{const d=t.current;let f=d.offsetHeight,g=d.nextSibling;for(;g&&g.matches(c);)f+=g.offsetHeight,g=g.nextSibling;const b=r.row_height[s],y=r.row_height[u.current];r.computed_h-=b,r.computed_h+=y,r.computed_h+=f-y,r.row_height[s]=f,J1(r)}),H.jsx(i,{...n,ref:t})};function XT(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function $Z(e,t){const r=A.useRef(P.createContext({})).current,n=A.useContext(r),a=A.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return A.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),A.useMemo(()=>{const i=P.forwardRef(TZ);n._vtcomponents={table:o=>H.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>H.jsx(r.Consumer,{children:()=>H.jsx(PZ,{...o,ctx:n})}),row:o=>H.jsx(kZ,{...o,ctx:n})}},n.components={},XT(n,{table:_Z,body:{wrapper:wZ,row:xZ}}),n.vt_state=1},[]),n}const NE=1,AZ=2;(function(){if((typeof window=="object"&&window instanceof Window?NE:AZ)&NE&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function DZ(e,t){const r=$Z(e,t||[]);return[r._vtcomponents,n=>XT(r,n),r.ref]}const IZ=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},s)=>{const[u,c]=A.useState(0),d=di(n);return A.useEffect(()=>{const f=()=>{var y,w,S;const b=(E=>{for(var _=E.offsetTop,C=E.offsetParent;C!==null;)_+=C.offsetTop,C=C.offsetParent;return _})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],_=t.current.querySelectorAll(".frontend-table-body")[0],C=34+(e?0:15);if(E){const h=_r.autoTableHeight(s?C:b+C),p=h-(a||0);n!=null&&n.y?i?i==null||i(s,p):(c(s?p:Number((y=d.current)==null?void 0:y.y)),E.style.minHeight=(s?p:Number((w=d.current)==null?void 0:w.y))-10+"px",_.style.minHeight=(s?p:Number((S=d.current)==null?void 0:S.y))+"px"):(c(s?p:h),E.style.minHeight=(s?p:h)-10+"px",_.style.minHeight=(s?p:h)+"px")}}};return f(),window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)}},[s,n]),A.useEffect(()=>{o==null||o(u)},[u]),u};var Rd={exports:{}},Td={},S0={},FE;function MZ(){if(FE)return S0;FE=1,S0.__esModule=!0,S0.cloneElement=s;var e=t(A);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,c){var d=Object.keys(u);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(u);c&&(f=f.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),d.push.apply(d,f)}return d}function n(u){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?r(Object(d),!0).forEach(function(f){a(u,f,d[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(d,f))})}return u}function a(u,c,d){return c=i(c),c in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d,u}function i(u){var c=o(u,"string");return typeof c=="symbol"?c:String(c)}function o(u,c){if(typeof u!="object"||u===null)return u;var d=u[Symbol.toPrimitive];if(d!==void 0){var f=d.call(u,c);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function s(u,c){return c.style&&u.props.style&&(c.style=n(n({},u.props.style),c.style)),c.className&&u.props.className&&(c.className=u.props.className+" "+c.className),e.default.cloneElement(u,c)}return S0}var Pd={},jE;function ZT(){if(jE)return Pd;jE=1,Pd.__esModule=!0,Pd.resizableProps=void 0;var e=t(Kf());ww();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return Pd.resizableProps=r,Pd}var LE;function JT(){if(LE)return Td;LE=1,Td.__esModule=!0,Td.default=void 0;var e=o(A),t=ww(),r=MZ(),n=ZT(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var _=new WeakMap,C=new WeakMap;return(i=function(p){return p?C:_})(E)}function o(E,_){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=i(_);if(C&&C.has(E))return C.get(E);var h={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in E)if(v!=="default"&&Object.prototype.hasOwnProperty.call(E,v)){var x=p?Object.getOwnPropertyDescriptor(E,v):null;x&&(x.get||x.set)?Object.defineProperty(h,v,x):h[v]=E[v]}return h.default=E,C&&C.set(E,h),h}function s(){return s=Object.assign?Object.assign.bind():function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_];for(var h in C)Object.prototype.hasOwnProperty.call(C,h)&&(E[h]=C[h])}return E},s.apply(this,arguments)}function u(E,_){if(E==null)return{};var C={},h=Object.keys(E),p,v;for(v=0;v<h.length;v++)p=h[v],!(_.indexOf(p)>=0)&&(C[p]=E[p]);return C}function c(E,_){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(E);_&&(h=h.filter(function(p){return Object.getOwnPropertyDescriptor(E,p).enumerable})),C.push.apply(C,h)}return C}function d(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?c(Object(C),!0).forEach(function(h){f(E,h,C[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):c(Object(C)).forEach(function(h){Object.defineProperty(E,h,Object.getOwnPropertyDescriptor(C,h))})}return E}function f(E,_,C){return _=g(_),_ in E?Object.defineProperty(E,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[_]=C,E}function g(E){var _=b(E,"string");return typeof _=="symbol"?_:String(_)}function b(E,_){if(typeof E!="object"||E===null)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var h=C.call(E,_);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(E)}function y(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,w(E,_)}function w(E,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,p){return h.__proto__=p,h},w(E,_)}var S=function(E){y(_,E);function _(){for(var h,p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return h=E.call.apply(E,[this].concat(v))||this,h.handleRefs={},h.lastHandleRect=null,h.slack=null,h}var C=_.prototype;return C.componentWillUnmount=function(){this.resetData()},C.resetData=function(){this.lastHandleRect=this.slack=null},C.runConstraints=function(p,v){var x=this.props,k=x.minConstraints,$=x.maxConstraints,R=x.lockAspectRatio;if(!k&&!$&&!R)return[p,v];if(R){var N=this.props.width/this.props.height,M=p-this.props.width,F=v-this.props.height;Math.abs(M)>Math.abs(F*N)?v=p/N:p=v*N}var L=p,I=v,T=this.slack||[0,0],D=T[0],B=T[1];return p+=D,v+=B,k&&(p=Math.max(k[0],p),v=Math.max(k[1],v)),$&&(p=Math.min($[0],p),v=Math.min($[1],v)),this.slack=[D+(L-p),B+(I-v)],[p,v]},C.resizeHandler=function(p,v){var x=this;return function(k,$){var R=$.node,N=$.deltaX,M=$.deltaY;p==="onResizeStart"&&x.resetData();var F=(x.props.axis==="both"||x.props.axis==="x")&&v!=="n"&&v!=="s",L=(x.props.axis==="both"||x.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!F&&!L)){var I=v[0],T=v[v.length-1],D=R.getBoundingClientRect();if(x.lastHandleRect!=null){if(T==="w"){var B=D.left-x.lastHandleRect.left;N+=B}if(I==="n"){var V=D.top-x.lastHandleRect.top;M+=V}}x.lastHandleRect=D,T==="w"&&(N=-N),I==="n"&&(M=-M);var z=x.props.width+(F?N/x.props.transformScale:0),U=x.props.height+(L?M/x.props.transformScale:0),G=x.runConstraints(z,U);z=G[0],U=G[1];var X=z!==x.props.width||U!==x.props.height,K=typeof x.props[p]=="function"?x.props[p]:null,ne=p==="onResize"&&!X;K&&!ne&&(k.persist==null||k.persist(),K(k,{node:R,size:{width:z,height:U},handle:v})),p==="onResizeStop"&&x.resetData()}}},C.renderResizeHandle=function(p,v){var x=this.props.handle;if(!x)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:v});if(typeof x=="function")return x(p,v);var k=typeof x.type=="string",$=d({ref:v},k?{}:{handleAxis:p});return e.cloneElement(x,$)},C.render=function(){var p=this,v=this.props,x=v.children,k=v.className,$=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var R=v.resizeHandles;v.transformScale;var N=u(v,a);return(0,r.cloneElement)(x,d(d({},N),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(x.props.children,R.map(function(M){var F,L=(F=p.handleRefs[M])!=null?F:p.handleRefs[M]=e.createRef();return e.createElement(t.DraggableCore,s({},$,{nodeRef:L,key:"resizableHandle-"+M,onStop:p.resizeHandler("onResizeStop",M),onStart:p.resizeHandler("onResizeStart",M),onDrag:p.resizeHandler("onResize",M)}),p.renderResizeHandle(M,L))}))}))},_}(e.Component);return Td.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Td}var kd={},zE;function NZ(){if(zE)return kd;zE=1,kd.__esModule=!0,kd.default=void 0;var e=s(A),t=i(Kf()),r=i(JT()),n=ZT(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:C})(_)}function s(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var h=o(C);if(h&&h.has(_))return h.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,h&&h.set(_,p),p}function u(){return u=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var h=arguments[C];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(_[p]=h[p])}return _},u.apply(this,arguments)}function c(_,C){var h=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);C&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),h.push.apply(h,p)}return h}function d(_){for(var C=1;C<arguments.length;C++){var h=arguments[C]!=null?arguments[C]:{};C%2?c(Object(h),!0).forEach(function(p){f(_,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(h)):c(Object(h)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(h,p))})}return _}function f(_,C,h){return C=g(C),C in _?Object.defineProperty(_,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):_[C]=h,_}function g(_){var C=b(_,"string");return typeof C=="symbol"?C:String(C)}function b(_,C){if(typeof _!="object"||_===null)return _;var h=_[Symbol.toPrimitive];if(h!==void 0){var p=h.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}function y(_,C){if(_==null)return{};var h={},p=Object.keys(_),v,x;for(x=0;x<p.length;x++)v=p[x],!(C.indexOf(v)>=0)&&(h[v]=_[v]);return h}function w(_,C){_.prototype=Object.create(C.prototype),_.prototype.constructor=_,S(_,C)}function S(_,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,v){return p.__proto__=v,p},S(_,C)}var E=function(_){w(C,_);function C(){for(var p,v=arguments.length,x=new Array(v),k=0;k<v;k++)x[k]=arguments[k];return p=_.call.apply(_,[this].concat(x))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function($,R){var N=R.size;p.props.onResize?($.persist==null||$.persist(),p.setState(N,function(){return p.props.onResize&&p.props.onResize($,R)})):p.setState(N)},p}C.getDerivedStateFromProps=function(v,x){return x.propsWidth!==v.width||x.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var h=C.prototype;return h.render=function(){var v=this.props,x=v.handle,k=v.handleSize;v.onResize;var $=v.onResizeStart,R=v.onResizeStop,N=v.draggableOpts,M=v.minConstraints,F=v.maxConstraints,L=v.lockAspectRatio,I=v.axis;v.width,v.height;var T=v.resizeHandles,D=v.style,B=v.transformScale,V=y(v,a);return e.createElement(r.default,{axis:I,draggableOpts:N,handle:x,handleSize:k,height:this.state.height,lockAspectRatio:L,maxConstraints:F,minConstraints:M,onResizeStart:$,onResize:this.onResize,onResizeStop:R,resizeHandles:T,transformScale:B,width:this.state.width},e.createElement("div",u({},V,{style:d(d({},D),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},C}(e.Component);return kd.default=E,E.propTypes=d(d({},n.resizableProps),{},{children:t.default.element}),kd}var BE;function FZ(){return BE||(BE=1,Rd.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Rd.exports.Resizable=JT().default,Rd.exports.ResizableBox=NZ().default),Rd.exports}var jZ=FZ();const LZ=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:s,editable:u,formitem:c,dataIndex:d,...f}=e,g=A.useRef(),b=()=>{const C=u?c&&c.props&&c.props.disabled:!0;if(!C&&s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&s)return{fontWeight:"400"};if(!C&&!s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&!s)return{fontWeight:"400"}},y=Sa({resizing:!1}),[w,S]=A.useState(0);A.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(h=>h.addEventListener("click",p=>!1))},[]);const[E,_]=A.useState(0);return!i||d==="id"?H.jsx("th",{...f,onClick:o,style:{...f.style,...b()},onKeyDown:()=>{},className:`${f.className} ${s?"frontend-table-column-required":""}`}):H.jsx(jZ.Resizable,{axis:"x",width:i+E,height:0,handle:H.jsx("span",{onClick:C=>{C.stopPropagation(),C.preventDefault()},className:ge(["react-resizable-handle",E&&"active"])}),onResize:(C,{size:h,...p})=>{const v=document.getElementById("table-resize-handle");if(v){const x=document.getElementById(`table_key_${e.tableKey}`);C.pageX>x.getBoundingClientRect().left+x.getBoundingClientRect().width||C.pageX<x.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${p.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${C.pageX}px`)}t(C),y.resizing=!0,_(h.width-i)},onResizeStop:(...C)=>{var h;C[0].stopPropagation(),(h=document.getElementById("table-resize-handle"))==null||h.remove(),r(),_(0),a(...C),setTimeout(()=>{y.resizing=!1})},onResizeStart:C=>{document.getElementById(`table_key_${e.tableKey}`);const h=document.createElement("div");h.id="table-resize-handle",document.body.appendChild(h),y.resizing=!0,C.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:H.jsx("th",{ref:g,onClick:(...C)=>{!y.resizing&&o&&o(...C)},...f,style:{...f.style,...b()},onKeyDown:()=>{},className:`${f.className} ${s?"frontend-table-column-required":""}`})})};function Rf(){return Rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}function QT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var eP=A.createContext({});function zZ(){return A.useContext(eP)}var BZ=function(t){return A.createElement(eP.Provider,{value:t.refTracker},t.children)};function HZ(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Dp=HZ();function VZ(e){var t=A.useRef();return A.useEffect(function(){t.current=e},[e]),t.current}function UZ(){return A.useRef(new Map).current}var HE={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Dp.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Dp.emit(0)}};function qZ(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),HE.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){HE.hideAll()}}}function WZ(){var e=new Map,t,r,n,a,i=!1;function o(w){a=w,t=-1,n=!0}function s(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function d(){return t===-1?(f(),!1):!0}function f(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),s()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),s()}function b(){if(d()&&u()){var w=c(),S=a[t].node;return e.set(S,{isRoot:n,focusedIndex:t,parentNode:r||S,items:a}),S.classList.add("react-contexify__submenu--is-open"),r=S,w.length>0?(t=0,a=w):i=!0,n=!1,s(),!0}return!1}function y(){if(d()&&!n){var w=e.get(r),S=w.isRoot,E=w.items,_=w.focusedIndex,C=w.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=C,S&&(n=!0,e.clear()),i||(t=_,s())}}return{init:o,moveDown:f,moveUp:g,openSubmenu:b,closeSubmenu:y}}var jy=function(){};function tP(e){return typeof e=="function"}function rP(e){return typeof e=="string"}function YZ(e){return e.type==="touchend"}function GZ(e,t){return A.Children.map(A.Children.toArray(e).filter(Boolean),function(r){return A.cloneElement(r,t)})}function KZ(e){var t={x:0,y:0};return YZ(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function VE(e,t){return tP(e)?e(t):e}function XZ(e){return!!(e&&(rP(e)||"exit"in e&&e.exit))}function ZZ(e,t){return tP(t)?Rf({},e,t(e)):Rf({},e,t)}var JZ=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,s=t.children,u=t.animation,c=u===void 0?"scale":u,d=t.onHidden,f=d===void 0?jy:d,g=t.onShown,b=g===void 0?jy:g,y=QT(t,["id","theme","style","className","children","animation","onHidden","onShown"]),w=A.useReducer(ZZ,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),S=w[0],E=w[1],_=A.useRef(null),C=A.useRef(!1),h=VZ(S.visible),p=UZ(),v=A.useState(function(){return WZ()}),x=v[0];A.useEffect(function(){return C.current=!0,Dp.on(n,k).on(0,$),function(){Dp.off(n,k).off(0,$)}},[n]),A.useEffect(function(){C.current&&S.visible!==h&&(S.visible?b():f())},[S.visible,f,b]),A.useEffect(function(){S.visible?x.init(Array.from(p.values())):p.clear()},[S.visible,x,p]),A.useEffect(function(){if(S.visible){var z=window,U=z.innerWidth,G=z.innerHeight,X=_.current,K=X.offsetWidth,ne=X.offsetHeight,ae=S.x,ie=S.y;ae+K>U&&(ae-=ae+K-U),ie+ne>G&&(ie-=ie+ne-G),E({x:ae,y:ie})}},[S.visible]),A.useEffect(function(){function z(U){switch(U.preventDefault(),U.key){case"Enter":x.openSubmenu()||$();break;case"Escape":$();break;case"ArrowUp":x.moveUp();break;case"ArrowDown":x.moveDown();break;case"ArrowRight":x.openSubmenu();break;case"ArrowLeft":x.closeSubmenu();break}}return S.visible&&(window.addEventListener("resize",$),window.addEventListener("contextmenu",$),window.addEventListener("click",$),window.addEventListener("scroll",$),window.addEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",$)),function(){window.removeEventListener("resize",$),window.removeEventListener("contextmenu",$),window.removeEventListener("click",$),window.removeEventListener("scroll",$),window.removeEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",$)}},[S.visible,x]);function k(z){var U=z.event,G=z.props,X=z.position;U.stopPropagation();var K=X||KZ(U),ne=K.x,ae=K.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:ne,y:ae,triggerEvent:U,propsFromTrigger:G})},0)}function $(z){var U=z;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(XZ(c)?E(function(G){return{willLeave:G.visible}}):E(function(G){return{visible:G.visible?!1:G.visible}}))}function R(){S.willLeave&&S.visible&&E({visible:!1,willLeave:!1})}function N(){if(!c)return null;if(rP(c)){var z;return Dl((z={},z["react-contexify__will-enter--"+c]=c&&M&&!D,z["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&M&&D,z))}else if("enter"in c&&"exit"in c){var U;return Dl((U={},U["react-contexify__will-enter--"+c.enter]=c.enter&&M&&!D,U["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&M&&D,U))}return null}var M=S.visible,F=S.triggerEvent,L=S.propsFromTrigger,I=S.x,T=S.y,D=S.willLeave,B=Dl("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),N()),V=Rf({},i,{left:I,top:T,opacity:1});return A.createElement(BZ,{refTracker:p},M&&A.createElement("div",Object.assign({},y,{className:B,onAnimationEnd:R,style:V,ref:_,role:"menu"}),GZ(s,{propsFromTrigger:L,triggerEvent:F})))},UE=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,s=t.data,u=t.propsFromTrigger,c=t.onClick,d=c===void 0?jy:c,f=t.disabled,g=f===void 0?!1:f,b=t.hidden,y=b===void 0?!1:b,w=QT(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),S=zZ(),E={data:s,triggerEvent:o,props:u},_=VE(g,E),C=VE(y,E);function h(k){E.event=k,_?k.stopPropagation():d(E)}function p(k){k&&!_&&S.set(k,{node:k,isSubmenu:!1})}function v(k){k.key==="Enter"&&(E.event=k,d(E))}if(C)return null;var x=Dl("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=_,r));return A.createElement("div",Object.assign({},w,{className:x,style:i,onClick:h,onKeyDown:v,ref:p,tabIndex:-1,role:"menuitem","aria-disabled":_}),A.createElement("div",{className:"react-contexify__item__content"},n))};const QZ="_box_1ybrt_2",eJ="_transferSearch_1ybrt_2",tJ="_searchBtn_1ybrt_10",rJ="_shuttle_box_1ybrt_40",nJ="_leftSearch_1ybrt_54",aJ="_noBeforeAfter_1ybrt_58",iJ="_rightSearch_1ybrt_74",oJ="_transfer_1ybrt_2",Uo={box:QZ,transferSearch:eJ,searchBtn:tJ,shuttle_box:rJ,leftSearch:nJ,noBeforeAfter:aJ,rightSearch:iJ,transfer:oJ},sJ="_content_1tmh1_1",uJ={content:sJ},nP=A.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,s]=A.useState(a),{TabPane:u}=ue.Tabs;return n?H.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:H.jsx(tc,{})}):(A.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&s(c)}}),[o]),H.jsx("div",{className:`${uJ.content} ${e.className??""}`,children:n?H.jsx("div",{style:{padding:"10px"}}):r.length?H.jsx(ue.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&s(c)},children:(r||[]).map((c,d)=>H.jsx(u,{tab:H.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&H.jsx(Dt,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),H.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:H.jsx("div",{style:{padding:"0px"},children:A.Children.map(e.children,f=>{var g;return((g=f==null?void 0:f.props)==null?void 0:g["data-key"])==c.tabKey?f:null})})},`${c.tabKey}`))}):H.jsx(H.Fragment,{})}))}),lJ=A.forwardRef((e,t)=>{var V;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=A.useState(!1),[o,s]=A.useState(),[u,c]=A.useState(r),[d,f]=A.useState([]),[g,b]=A.useState(n),[y,w]=A.useState({[n]:{left:1,right:1}}),[S,E]=A.useState({[n]:{left:0,right:0}}),[_,C]=A.useState(""),[h,p]=A.useState({right:"",left:""}),[v,x]=A.useState(!1),[k,$]=A.useState({});A.useEffect(()=>{c(r),b(n),w({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),A.useEffect(()=>{a?I():(c(r),s(void 0),b(n),w({[n]:{left:1,right:1}}),C(""),p({right:"",left:""}),$({}))},[a]);const R=di(h),N=di(y),M=di(g),F=di(S),L=A.useMemo(()=>{const z=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[M.current])||[]};return _e.uniqBy([...z(),...d],"id")},[M,g,e.allListOptions,o,d]),I=async z=>{x(!0),await e.getListCodeItem(Object.assign({search:R.current,tabKey:M.current,pageNo:N},_e.omit(z||{},"isPaging"))).then(U=>{U&&(z!=null&&z.isPaging?s([...L,...U]):s([...U]),E(Object.assign({},F.current,{[M.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{x(!1)})};A.useEffect(()=>{f(L.filter(z=>u.includes(z.id)))},[u]);const T=async()=>{var z,U;if(e.mandatory&&!u.length)return ue.message.error(`${J("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(z=e.attr)==null?void 0:z.name}`);(U=k.ok)==null||U.call(k,[...u],g,d),i(!1)};A.useImperativeHandle(t,()=>({open(z){$(()=>z),i(!0)},submit:T,dataSource:L,targetKeys:u,loading:v}),[L,u,v]);const D=z=>{z=="left"?I():C(R.current.right)},B=A.useMemo(()=>{var z;return Array.isArray(e.columns)?e.columns:((z=e.columns)==null?void 0:z[g])||[]},[e.columns,g]);return H.jsx($u,{className:Uo.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:T,onCancel:()=>{var z;(z=k.cancel)==null||z.call(k),i(!1)},children:H.jsx("div",{className:Uo.transferBox,children:H.jsx(tc,{spinning:v,children:H.jsx(ue.Transfer,{...e.transfer||{},className:`${Uo.transfer} ${((V=e.transfer)==null?void 0:V.className)??""}`,dataSource:L,targetKeys:u,onChange:(z,U,G)=>{U=="right"?c([...e.isRadio?G:z]):c([...z])},rowKey:z=>z.id,children:z=>{var me,ee,ve,se,fe,he,ke,Te;const{direction:U,filteredItems:G,onItemSelectAll:X,onItemSelect:K,selectedKeys:ne,showSearch:ae}=z,ie=U=="left",de=!ie,pe={onSelectAll(xe,$e){if(e.isRadio)return;const Pe=$e.filter(Ee=>!Ee.disabled).map(({id:Ee})=>Ee),Me=xe?_e.difference(Pe,ne):_e.difference(ne,Pe);X(Me,xe)},onSelect({id:xe},$e){e.isRadio&&ne.splice(0,1),K(xe,$e)},getCheckboxProps:xe=>({disabled:xe.Number&&!fi.readPermission(xe.Number)?!0:ie?xe.disabled:!1}),selectedRowKeys:ne,columnWidth:13};(me=e==null?void 0:e.pager)!=null&&me[g];const be=()=>ie?G:G.filter(xe=>xe.label.includes(_)||xe.Description.includes(_));return H.jsxs("div",{className:Uo.box,style:e.scroll?{width:"360px"}:{},children:[ie&&e.panes&&((ee=e.panes)==null?void 0:ee.length)!=1?H.jsx(nP,{panes:e.panes,defaultActiveKey:g,onTabClick:xe=>{var Pe;b(xe),(Pe=e.onTabsChange)==null||Pe.call(e,xe);const $e={...h,[U]:""};p($e),N.current[xe]||w(Object.assign({},N.current,{[xe]:{left:1,right:1}})),I({tabKey:xe,search:$e})}}):null,ae?H.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:H.jsx("div",{className:`${e.scroll?Uo.noBeforeAfter:""} ${Uo.transferSearch} ${ie&&((ve=e.panes)!=null&&ve.length)?Uo.leftSearch:(se=e.panes)!=null&&se.length?Uo.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:H.jsx(ue.Input.Search,{placeholder:e.placeholder||J("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:h[U],onChange:xe=>{xe.persist();const $e=xe.target.value;p({...h,[U]:$e}),de&&($e||C(""))},onSearch:D.bind(null,U),suffix:H.jsx("div",{className:Uo.searchBtn,onClick:D.bind(null,U),children:H.jsx(Dt,{type:"homesearch"})})})})}):null,H.jsx(Sm,{rowSelection:{type:"checkbox",fixed:!0,...pe},columns:B,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((fe=e.scroll)==null?void 0:fe.x)||300,y:((he=e.scroll)==null?void 0:he.y)||(ie&&((ke=e.panes)!=null&&ke.length)?270:316)},style:{height:"100%"},pageNo:y[g][U],pageSize:ie?20:void 0,total:ie?(Te=S==null?void 0:S[g])==null?void 0:Te[U]:void 0,size:"small",onScroll:xe=>{const $e={...y,[g]:{...y[g],[U]:xe}};w($e),ie&&I({pageNo:$e[g],isPaging:!0})},onRow:({id:xe,disabled:$e,...Pe})=>({onClick:()=>{if(!$e&&ie){if(e.isRadio&&ne.splice(0,1),!fi.readPermission(Pe.Number))return;K(xe,!ne.includes(xe))}},onDoubleClick:()=>{if(fi.readPermission(Pe.Number)){if(ie)$e||(e.isRadio?c([xe]):c([xe,...u]));else{for(let Me=0;Me<u.length;Me++)if(u[Me]==xe){u.splice(Me,1);break}c([...u])}X([],!1)}}})}),e.showFooter?H.jsxs("div",{style:{marginTop:"4px"},children:[H.jsx("span",{style:{color:"#999999"},children:J("sys.selected",{placeholder:"已选"})})," ",H.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ne.length})," ",H.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",H.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",H.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:de?u.length:S[g][U]}),H.jsxs("span",{style:{color:"#999999"},children:[" ",J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):H.jsx(H.Fragment,{})]})}})})})})}),aP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,w;const i=A.useRef(null),{attr:o,allListOptions:s,popoverTransfer:u}=e,c=xu(()=>{var S;(S=i.current)==null||S.open({ok:(E,_,C)=>{var h,p;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(h=u==null?void 0:u.onSubmit)==null||h.call(u,E,_,v=>f({newVal:E,allOptions:v}),C),(p=e.onBlur)==null||p.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});A.useImperativeHandle(a,()=>({focus:c}),[]);const d=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(s||{}).map(([_,C])=>S.includes(_)?C:[]).flat(1)},[o,s,u==null?void 0:u.panes]),f=xu(({allOptions:S,newVal:E})=>{var h;const _=((h=u==null?void 0:u.panes)==null?void 0:h.map(p=>p.tabKey))||[o==null?void 0:o.listCode];let C=[];return Object.entries(S||s||{}).some(([p,v])=>{if(_.includes(p))return v.some(x=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(x.value)&&!C.includes(p)&&C.push(p),!1;{const k=x.value==((E==null?void 0:E[0])||t);return k&&(C=[p]),k}})}),C.filter(Boolean).join(",")}),g=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[o==null?void 0:o.listCode];return S.length==1?S[0]:f({}).split(",")[0]},[t,s,u==null?void 0:u.panes]),b=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return H.jsxs("div",{children:[H.jsx(gu,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:b,filterOption:(S,E)=>E.label&&E.label.indexOf(S)>=0,showSearch:!0,disabled:n,options:d.map(S=>({...S,label:fi.readPermission(S.label)?S.label:J("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:S=>{["multiple","tags"].includes(e.mode)?r==null||r(S):S&&S instanceof Array?r==null||r(S[0]):r==null||r("")},tagRender:({label:S})=>fi.readPermission(S)?H.jsx(ue.Tag,{color:"#0563B2",children:S}):H.jsx(co,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),H.jsx(lJ,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((w=(y=u==null?void 0:u.panes)==null?void 0:y[0])==null?void 0:w.tabKey)||"",defaultValue:b,allListOptions:s})]})}),cJ="_shuttle_box_1962p_1",dJ="_box_1962p_5",fJ="_search_1962p_8",C0={shuttle_box:cJ,box:dJ,search:fJ};function qE(e){const t=A.useRef(!1),r=A.useRef({}),n=u=>{if(typeof e=="function"){const c=e();return!u&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!u&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=A.useState(n(!0));A.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const c=Object.assign(Object.create(null),u(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,u);r.current=c,i(c)}},s=()=>i(n());return _r.makeDestructurable({store:a,setStore:o,resetStore:s,latestStore:r},[a,o,s,r])}const iP=A.forwardRef((e,t)=>{var S,E,_,C;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((S=e.attr)!=null&&S.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:o,resetStore:s,latestStore:u}=qE(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=qE(()=>({pageNo:1,pageSize:50,total:0})),d=async h=>{o({loading:!0});try{const{data:p,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...c.latestStore.current,record:e.record});o(h?{dataSource:[...i.dataSource,...p]}:{dataSource:p}),c.setStore({total:v})}catch(p){console.log(p)}finally{o({loading:!1})}},f=A.useMemo(()=>i.selectedRows.map(h=>h[r]),[i.selectedRows]);A.useEffect(()=>{i.visible?d().finally(()=>{}):(s(),c.resetStore())},[i.visible]);const g=xu(async h=>{var p,v,x;if(a&&!h&&!i.selectedRows.length){ue.message.error(J("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(p=e.attr)==null?void 0:p.name}}));return}(x=(v=u.current.callback).ok)==null||x.call(v,h?[h[r]]:f),o({visible:!1})});A.useImperativeHandle(t,()=>({open(h){o({callback:h,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const b=()=>{d()},y={onSelectAll(h,p){n||o({selectedRows:p})},onSelect(h,p){n?p?o({selectedRows:[h]}):a||o({selectedRows:[]}):o(p?{selectedRows:[...i.selectedRows,h]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=h[r])})},getCheckboxProps:h=>({disabled:!1}),selectedRowKeys:f,columnWidth:13},w=A.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return A.useEffect(()=>{const h=_e.debounce(p=>{(p.keyCode||p.which)==13&&u.current.visible&&p.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",h),()=>{window.removeEventListener("keyup",h)}},[]),H.jsx($u,{className:C0.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var h,p;o({visible:!1}),(p=(h=u.current.callback).cancel)==null||p.call(h)},footer:null,children:H.jsx("div",{onScroll:h=>h.stopPropagation(),onScrollCapture:h=>h.stopPropagation(),children:H.jsx(tc,{spinning:i.loading,children:H.jsxs("div",{className:C0.box,children:[H.jsx("div",{children:H.jsx("div",{className:`${C0.search}`,children:H.jsx(ue.Input.Search,{placeholder:J("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:H.jsx("div",{className:C0.searchBtn,onClick:b,children:H.jsx(Dt,{type:"homesearch"})}),value:i.search,onChange:h=>o({search:h.target.value}),onSearch:b})})}),H.jsx(Sm,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:w,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(_=e.scroll)==null?void 0:_.x,y:((C=e.scroll)==null?void 0:C.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:h=>{c.setStore({pageNo:h}),d(!0)},onFilterAndSorter:(h,p)=>{o({sorters:h,filters:p}),d()},onRow:(h,...p)=>({onClick:()=>{console.log(h,p,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(h)}})})]})})})})}),oP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=A.useRef(null),{attr:o,allListOptions:s,selectPopupProps:u,record:c}=e,d=xu(()=>{var b;(b=i.current)==null||b.open({ok:y=>{var w,S,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(w=e.onChange)==null||w.call(e,y,s[o.listCode]||[])):((S=e.onChange)==null||S.call(e,y[0],s[o.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});A.useImperativeHandle(a,()=>({focus:d}),[]);const f=A.useMemo(()=>_e.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return H.jsxs("div",{children:[H.jsx(gu,{...f,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,disabled:n,options:s[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:d}),H.jsx(iP,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:c,defaultValue:g})]})}),Q1=[null,(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function hJ(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Le(n.date);return((i=Q1[n.type])==null?void 0:i.call(Q1,a,Le(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const WE={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},pJ=A.forwardRef((e,t)=>{const r=A.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;A.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const o=A.useMemo(()=>{var d,f;const u=g=>(g==null?void 0:g.closest(xm))||document.body||document.documentElement;(d=e==null?void 0:e.formprops)!=null&&d.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let c={getPopupContainer:u};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((f=e.formprops)==null?void 0:f.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onRemove,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),s=()=>{var c;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((c=u.options[e.record.insId][0])!=null&&c.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},H.jsx(ue.Input,{ref:r,...u})):H.jsx(ue.Select,{ref:r,filterOption:(d,f)=>f.label&&f.label.indexOf(d)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(d=>({label:d.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:d.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return H.jsx(ue.Input,{ref:r,...u});case"DatePicker.RangePicker":return H.jsx(ue.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Ns.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Ns.isStatusChange(g.itemcode)?Ns.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[WE[e.record.extension]]){const g=u.options[WE[e.record.extension]].map(b=>({label:b,value:b}));return H.jsx(ue.Select,{ref:r,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var b;!((b=e==null?void 0:e.record)!=null&&b.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return H.jsx(oP,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return H.jsx(aP,{ref:r,selectProps:u})}return H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return H.jsx(ue.Cascader,{ref:r,showSearch:{filter:(g,b)=>b.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const d=e.record.forbiddenTime,f=d&&d[e.name];return H.jsx(ue.DatePicker,{ref:r,...u,disabledDate:f?g=>hJ(d[e.name],g):void 0});case"Number":return H.jsx(ue.InputNumber,{ref:r,...u});case"Input.TextArea":return H.jsx(ue.Input.TextArea,{ref:r,...u});case"TreeSelect":return H.jsx(ue.TreeSelect,{ref:r,...u});case"CompositeForm":return H.jsx(Xf,{...u});default:return H.jsx(ue.Input,{ref:r,...u})}};return H.jsx(ue.Form.Item,{noStyle:!0,name:e.name,children:s()})}),mJ="_imgOuter_16ygq_1",gJ="_imgInner_16ygq_9",YE={imgOuter:mJ,imgInner:gJ},vJ=e=>H.jsx("img",{...e,src:e.src}),sP=e=>H.jsx(ue.Image,{...e,src:e.src}),Ly=e=>H.jsx("div",{className:YE.imgOuter,children:H.jsx(sP,{preview:!1,src:e.src,className:YE.imgInner,placeholder:H.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:H.jsx(Dt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),Qt=class Qt{static avoid0TypeConvert(t){return _r.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Le.isMoment(a)?_r.momentToRawData(a):a??""}return t=n(t),r=n(r),_e.isNil(t)&&_e.isNil(r)||_e.isNaN(t)&&_e.isNaN(r)?!0:t instanceof Object?_e.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!_e.isNil(t.inProcess[r])&&!_e.isNil(t.inProcess)&&Qt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!_e.isNil(t.newVal[r])&&!_e.isNil(t.newVal)&&Qt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],o=a.map(u=>{const c=t.inProcess[u],d=t[u],f=Qt.isEqual(c,d);return r==null||r("inProcess",u,f,c,d),f}).some(u=>!u),s=i.map(u=>{const c=t.newVal[u],d=t[u],f=Qt.isEqual(c,d);return r==null||r("newVal",u,f,c,d),f}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:s}}static isEmptyValue(t){return typeof t=="number"?!1:_e.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:s}=t;const u=Ns.isUser(i.itemCode||""),c=i.tab==="Delegate";if(u&&c&&s){const d=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),f=_e.map(s.split("~!~"),g=>_e.split(g,"-")[0]);_e.includes(f,d[0])?s.split("~!~").map(g=>{if(d.includes(g.split("-")[0])){const b=g.split("-")[1].split(",");b&&Array.isArray(b)&&(_e.remove(b,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&_e.forEach(y.formitem.props.options,w=>{_e.includes(b,w.itemCode)?w.isHidden=!1:w.isHidden=!0,b.length==0&&(w.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&_e.forEach(g.formitem.props.options,b=>{b.isHidden=!1}),g))}if(i.tab!=="History"){const d=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),f=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=Qt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(b=>b.attr)});o=(g==null?void 0:g.value)||o}else d.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":f.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(s){const g=r.filter(b=>["OldVersion"].includes(b.apicode)).map(b=>b.dataIndex);s=s.split("~!~").map(b=>{if(console.log(b,"item"),g.includes(b.split("-")[0]))return`current.${b.split("-")[0]}-${b.split("-")[1]===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${b.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(b.split("-")[0])){const y=Qt.getFixAttrFilterOrSortInfo({filterOrSort:b,attrs:n||r.map(w=>w.attr)});return(y==null?void 0:y.value)||s}if(d.includes(b.split("-")[0]))return b?`attributes.${b}`:"";if(f.includes(b.split("-")[0]))return b?`current.${b}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const d=_r.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${d.Revision}`),s=s.replace("insVersionOrder",`attributes.${d.Revision}`)}return{sorters:o,filters:s,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let s=null;return i&&(s=new MutationObserver(async(c,d)=>{const[f]=c;if(f.type=="attributes"&&f.attributeName=="style"&&!i.inhibit&&!_e.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const b=Number(g)-i.offsetWidth,y=a.children.length-2,w=_e.round(b/y,2);Array.from(a.children,(S,E)=>{const _=o.children[E];if(S==i)S.setAttribute("style",`width:${g}px;max-width:${g}px;`),_.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const C=S.style.width.replace("px","");S.setAttribute("style",`width:${Number(C)+w}px;`),_.setAttribute("style",`width:${Number(C)}px;`)}})}}else i.inhibit=!1}),s.observe(i,{attributeFilter:["style"]})),()=>{s==null||s.disconnect(),s=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([s,u])=>n==u)||[];if(o){const s=_r.getAttrOf(r,o);if(s){s.apicode==="Version"&&(a=a===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=ql.getAttributesMapId(s),c=ql.isQuoteAttr(s)?"attributes":"current";return{apicode:o,id:u,attr:s,filterOrSortValue:a,prefix:c,value:`${c}.${u}-${a}`}}}}}};Ar(Qt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var s;return r&&r[0]?_e.isArray(r[0])&&t?(s=t.props)!=null&&s.treeCheckable||t.props.mode==="multiple"?Qt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Qt.renderReadonlyItem({value:r[0],formitem:t}):Le.isMoment(r[0])?[Le(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Ar(Qt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(fi.isMosaic(a))return H.jsx(co,{});const{trulyHighlight:i,needTransform:o}=Qt.getTrulyHighlight({highlight:t,formitem:r});return o?H.jsx(rs,{highlight:i,value:n}):n}),Ar(Qt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!_e.isNil(t.newVal[r])))if(Qt.isEqual(t.newVal[r],t[r])){if(Qt.isEqual(t.newVal[r],t[r]))return H.jsx("div",{style:{width:"100%"},children:H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Qt.isEqual(t.inProcess[r],t[r]))return H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Qt.wrapperHighLight({originValue:t.inProcess[r],value:Qt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Qt.isEqual(t.newVal[r],t[r])?H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):H.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Ar(Qt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,s,u,c,d;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?_e.isArray(n)&&n instanceof Array?n.map(f=>_r.getLabelInOptions({value:f,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(f=>_r.getLabelInOptions({value:f,options:(r==null?void 0:r.props.options)||[]})).join(","):"":_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&_e.isArray(n)&&n instanceof Array?n.map(f=>_r.getLabelInOptions({value:typeof f!="string"?f.value:f,options:(r==null?void 0:r.props.treeData)||[]})).join(","):_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Le.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return Le(n).format(((s=r==null?void 0:r.props)==null?void 0:s.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!_e.isArray(n)?H.jsx(ue.Popover,{placement:"right",content:H.jsx("div",{style:{height:"60px",width:"60px"},children:n?H.jsx(Ly,{src:`/api${n}`}):H.jsx(H.Fragment,{})}),trigger:"hover",children:H.jsx("div",{style:{height:"26px",width:"26px"},children:n?H.jsx(Ly,{src:`/api${n}`}):H.jsx(H.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((d=_e.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:d.name)||""}`:n:"":r.isbomtag&&!_e.isArray(n)&&!(n instanceof Array)?n?_r.renderBomTag(n):"":_e.isArray(n)&&n instanceof Array?n.join(","):n??""}),Ar(Qt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Ar(Qt,"renderVersionColumn",(t,r)=>fi.isMosaic(t)?H.jsx(co,{}):t==="Draft"||_e.isString(t)&&t.split(" ")[0]==="Draft"?H.jsx(rs,{highlight:r||[],value:J("sys.label.draft",{placeholder:"草稿"})}):H.jsx(rs,{highlight:r||[],value:_e.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Jo=Qt;const bJ=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:s,handleDoubleClick:u,renderCacheCell:c,loading:d,required:f,formitem:g,rowKey:b,render:y,tableKey:w,menuId:S,highlight:E,isVersion:_,isUser:C,preRender:h,apicode:p,canselectcell:v,selectedCell:x,fillContextMenu:k,setInitialState:$,...R})=>{var me,ee,ve;const N=A.useContext(Uf),[M,F]=A.useState(!1),L=A.useContext(Uw),I=A.useRef(null),T=["Input","Input.TextArea","Number"];v&&x&&(x==null?void 0:x.dataIndex)===n&&(x==null?void 0:x.record[b])==a[b]&&(x==null?void 0:x.tableKey)==w&&(R.style={...R.style,background:"#ddeffe"}),A.useEffect(()=>{var se,fe;M?(se=I.current)==null||se.focusFormItem():(fe=I.current)==null||fe.blurFormItem()},[M]);const D=se=>{for(;se&&se.nodeName!=="TR";)se=se.parentNode;return se},B=async(se,fe)=>{var Te,xe,$e;const he=()=>{if(!(!e&&!n)&&fe){const Pe=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});D(fe==null?void 0:fe.target)&&D(fe==null?void 0:fe.target).dispatchEvent(Pe)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){he();return}if(se?u&&await u(a):!0){if(await L.validateFields(),se){let Pe=a.newVal&&!_e.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!_e.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Me=(Te=g.props)==null?void 0:Te.format;Pe=Pe?Le(Pe,typeof Me=="string"?Me:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((xe=g==null?void 0:g.props)!=null&&xe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&(($e=g==null?void 0:g.props)==null?void 0:$e.mode)==="multiple")&&(Pe==""?Pe=[]:typeof Pe=="string"&&(Pe=Pe.split(","))),L.setFieldsValue({[n]:Pe})}F(!M)}else he()},V=async()=>{try{const se=await L.validateFields();B(),Object.keys(se).forEach(fe=>{(se[fe]===null||se[fe]===void 0)&&(se[fe]=""),typeof se[fe]=="string"&&(se[fe]=se[fe].trim())}),i({...a,...se})}catch{}},z=(se,fe)=>c||H.jsx("div",{className:ki.edit_cell,children:H.jsx(rs,{value:Jo.renderReadonlyItem({value:se[fe],formitem:g}),highlight:ie})}),{show:U}=qZ({id:S}),G=()=>{v&&o({dataIndex:n,record:a,tableKey:w})},X=se=>{if(n){if(G(),se.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(se,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const ne=a?a[n]:"",ae=A.Children.map(r,se=>{var fe;if(A.isValidElement(se)){const he=(fe=se==null?void 0:se.props)==null?void 0:fe.children;return!he||!Array.isArray(he)?null:he.some(Te=>{const xe=Te==null?void 0:Te.props;return xe&&typeof xe.className=="string"?xe.className.includes("frontend-table-row-indent"):!1})?he:null}else return null});if(!fi.readPermission(ne))return H.jsxs("td",{...R,children:[ae,H.jsx(co,{inLine:!0})]});const{trulyHighlight:ie}=Jo.getTrulyHighlight({highlight:E,formitem:g});if(C){const se=(N==null?void 0:N.linkInstanceCom)||"a";K=H.jsx(se,{userId:a[n],id:a[n],record:a,content:Jo.renderReadonlyItem({value:a[n],formitem:g}),highlight:ie})}else if(t){if(g.type==="Date"){const se=(me=g.props)==null?void 0:me.format,fe=typeof se=="string";let he,ke;if(Le.isMoment(a[n])){const Te=a[n].creationData();he=Te==null?void 0:Te.input,ke=Te==null?void 0:Te.format}a[n]=a[n]?Le(he||a[n],fe?se:ke||"YYYY-MM-DD HH:mm:ss"):null}if(((ee=g.props)!=null&&ee.treeCheckable||((ve=g.props)==null?void 0:ve.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),M)K=H.jsx("div",{onDoubleClick:se=>{se.stopPropagation()},children:H.jsx(ue.Form.Item,{validateTrigger:T.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:H.jsx(pJ,{name:n,ref:I,onSave:()=>V(),formprops:g,record:a,apicode:p,onRemove:()=>{setTimeout(()=>{F(!1)},200)}})})});else if(!y){let se=z(a,n);K=H.jsxs("div",{onContextMenu:k===!1?void 0:X,title:a.newVal?Jo.renderReadonlyItem({value:a.newVal[n],formitem:g}):Jo.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ae,se]})}}else if(n&&!y)return _?H.jsx("td",{...R,title:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:G,children:H.jsx(rs,{value:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:ie})}):H.jsx("td",{...R,title:a&&a[n]?a[n]:"",onClick:G,children:H.jsx(rs,{value:a?_e.isNil(a[n])?"":a[n]:"",highlight:ie})});const de=K==null?void 0:K.toString(),pe=Array.isArray(K)&&K[0]===void 0,be=de!=null&&de.includes("[object ")?void 0:pe?de==null?void 0:de.replace(/^\,/,""):de;return H.jsx("td",{...R,onDoubleClick:se=>{se.stopPropagation(),B(!0,se)},onClick:()=>{n&&G()},children:H.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},yJ=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},_J=e=>H.jsxs(JZ,{id:e.menuId,children:[H.jsx(UE,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:J("sys.prompt.fillUp",{placeholder:"向上填充"})}),H.jsx(UE,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:J("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),wJ=e=>{const[t,r]=A.useState({}),[n,a]=A.useState({}),i=A.useRef(null),{Option:o}=ue.Select,s=(g,b)=>{r(g),a(b)};return{getColumnSearchProps:A.useCallback((g,b)=>{const y=()=>{var _,C;return typeof(b==null?void 0:b.title)=="string"?b==null?void 0:b.title:(C=(_=b==null?void 0:b.search)==null?void 0:_.props)==null?void 0:C.placeholder},w=(_,C,h)=>{C()},S=(_,C)=>{_(),C()},E=(_,C,h)=>{var x,k;const p={size:"small",onChange:$=>{$&&$.target?_($.target.value?[$.target.value]:[]):_($?[$]:[])},style:{marginBottom:8,display:"block"}},v=H.jsx(ue.Input,{size:"small",ref:i,placeholder:J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:C[0],onPressEnter:()=>w(C,h),..._e.omit(p,["size"])});if(b.search)switch(b.search.type){case"Input":return v;case"Select":let $=(k=(x=b==null?void 0:b.search)==null?void 0:x.props)==null?void 0:k.options;return b.apicode==="ProblemVersion"&&($=_e.uniqBy(_e.flatten(Object.values($||{})),"value")||[],$=$.map(R=>({label:R.label==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):R.label,value:R.value}))),$=($||[]).filter(R=>fi.readPermission(R.label)),H.jsx(ue.Select,{size:"small",onKeyUp:R=>{(R.keyCode===13||R.charCode==13)&&w(C,h)},ref:i,mode:"multiple",placeholder:`${J("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:C[0],filterOption:(R,N)=>N.label&&N.label.indexOf(R)>=0,..._e.omit(p,["size"]),children:($||[]).map(R=>{if(!R.isHidden)return A.createElement(o,{...R,value:R.value,disabled:R.disabled,key:R.value,label:R.label},H.jsx("div",{title:R.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:R.label}))})});case"Date":return H.jsx(ue.DatePicker,{size:"small",value:C[0],..._e.omit(p,["size"])});case"CompositeForm":return H.jsx("div",{className:"compositeFormClass",children:H.jsx(Xf,{...b.formitem.props,valueType:b.valueType,value:C[0],size:"small",..._e.omit(p,["size"])})})}else return v};return b.search?{filterIcon:_=>H.jsx($l,{style:{color:_?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:_,selectedKeys:C,confirm:h,clearFilters:p})=>H.jsxs("div",{style:{padding:8},children:[H.jsx("div",{style:{marginBottom:"5px"},children:E(_,C,h)}),H.jsxs(ue.Space,{children:[H.jsx(ue.Button,{type:"primary",onClick:()=>w(C,h),icon:H.jsx($l,{}),size:"small",style:{width:90},children:J("sys.filter",{placeholder:"筛选"})}),H.jsx(ue.Button,{onClick:()=>S(p,h),size:"small",style:{width:90},children:J("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:_=>{_&&(b.search.type==="Input"||b.search.type==="Select")&&setTimeout(()=>{var C;return(C=i==null?void 0:i.current)==null?void 0:C.focus()},100)}}:{}},[]),setTableFiltered:g=>{s(g.sort(t),g.screen(n))},clearFilters:g=>{s({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,b,y,w)=>{a(b),r(y),s(y,b);let S="",E="";_e.isArray(y)?y&&y.length&&(S=y.map(C=>`${C.field}-${C.order}`).join(",")):y.field&&y.order&&(S=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const _=C=>C.map(h=>Array.isArray(h)?h.join(","):Le.isMoment(h)?h.format("YYYY-MM-DD"):h);E=_e.remove(Object.keys(b).map(C=>b[C]&&typeof b[C][0]=="string"||typeof b[C]!="string"&&b[C]&&b[C][0]?`${C}-${_(b[C]||[]).join(",")}`:null),C=>C!==null).join("~!~"),e&&e(S,E,y.field,b)},sortInfo:t,filterInfo:n}},xJ=e=>{var o,s;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(s=e.rowSelection.selectedRowKeys)==null?void 0:s.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=H.jsx(Dt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?H.jsx(H.Fragment,{}):H.jsxs("div",{className:`${ki.table_footer} ${e.className||""}`,children:[e.hideTableCount?H.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):H.jsxs("div",{style:a,children:[J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),H.jsxs("span",{children:[" ",t,"/",r," "]}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",J("sys.selected",{placeholder:"已选"}),H.jsx("span",{children:` ${n} `}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&H.jsx("div",{children:H.jsx(Dt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},SJ=(e,t,r,n,a,i,o)=>{var h;const[s,u]=A.useState(!1),[c,d]=A.useState(0),[f,g]=A.useState(e.columns||[]),[b,y]=A.useState(null),[w,S]=A.useState(null),E=p=>(v,{size:x})=>{v.stopImmediatePropagation();const k=[...f];k[p]={...k[p],width:x.width},g(k)};A.useEffect(()=>{g(e.columns)},[e.columns]);const _=Number(((h=e==null?void 0:e.scroll)==null?void 0:h.y)||i)+24;return{renderColumns:f?f.filter(p=>p).map((p,v)=>_e.extend({...p,sorter:p.sorter?{}:!1,required:p.editable?p.required:!1,sortOrder:t.field===p.dataIndex&&t.order,filteredValue:r?r[p.dataIndex]||[]:[],onHeaderCell:x=>({dataIndex:p.dataIndex,width:x.width,required:p.required,editable:p.editable,trulyHeight:_,tableKey:e.tableKey,formitem:p.formitem,onResize:E(v),onResizeOver:k=>{d(k.screenX),u(!0)},onResizeStop:k=>{console.log(k),u(!1)}}),onCell:x=>{var R,N;const k=((R=p==null?void 0:p.onCell)==null?void 0:R.call(p,x))||{},$=(typeof e.rowKey=="string"?e.rowKey:(N=e.rowKey)==null?void 0:N.call(e,x))||"id";return{record:x,className:`${p.className??""} ${p.dataIndex==w&&x[$]==b?ki.loading:""}`,editable:p.editable,isVersion:p.isVersion,isUser:p.isUser,apicode:p.apicode,dataIndex:p.dataIndex,title:p.title,formitem:p.formitem,required:p.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:p.render,highlight:r[p.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Jo.renderCacheCell(x,p.dataIndex,p.formitem,void 0,{highlight:r[p.dataIndex]}),handleCellSelected:M=>{e.onSelectCell&&e.onSelectCell(M)},handleDoubleClick:M=>{if(e.onDoubleClick){const F=e.onDoubleClick(p,M);return F instanceof Promise&&(y(x[$]),S(p.dataIndex),F.finally(()=>{y(null),S(null)})),F}else return!0},handleSave:M=>{e.onSubmit&&e.onSubmit(M,p)},...k}}},a(p.dataIndex,p))):[]}},uP="INPUT_NAMESPACE",CJ=(e,t,r,n)=>{const[a,i]=A.useState();function o(s){const u=s.toString(),c=u.indexOf(".");return c===-1?0:u.slice(c+1).length}return A.useEffect(()=>{async function s(u){var b,y,w,S,E,_,C,h,p,v;if(u.target instanceof HTMLInputElement&&((y=(b=u.target)==null?void 0:b.dataset)==null?void 0:y.type)!=uP||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${xm}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let c=(w=u.clipboardData)==null?void 0:w.getData("text");const d=await Promise.resolve().then(()=>require("./xlsx-qn1xoUuv.js"));if(c&&r&&n){var f=d.read(c,{type:"binary"}),g=f.SheetNames;const x=d.utils.sheet_to_json(f.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),k=n.findIndex(N=>{var M,F,L;return N.dataIndex==r.dataIndex&&N.editable&&(((M=N.formitem)==null?void 0:M.type)=="Input"||((F=N.formitem)==null?void 0:F.type)=="Input.TextArea"||((L=N.formitem)==null?void 0:L.type)=="Number")});let $=n.findIndex((N,M)=>{var F,L,I;return M>k&&(!N.editable||!(((F=N.formitem)==null?void 0:F.type)=="Input"||((L=N.formitem)==null?void 0:L.type)=="Input.TextArea"||((I=N.formitem)==null?void 0:I.type)=="Number"))});$==-1&&($=n.length);const R=n.slice(k,$);if(R.length>0){const N=x.map(M=>M.filter(F=>M.indexOf(F)<R.length))||[];for(let M=0;M<N.length;M++){const F=N[M]||[];for(let L=0;L<F.length;L++){const I=F[L],T=((S=R[L].formitem)==null?void 0:S.type)=="Number",D=(_=(E=R[L].formitem)==null?void 0:E.props)==null?void 0:_.precision,B=(h=(C=R[L].formitem)==null?void 0:C.props)==null?void 0:h.min,V=(v=(p=R[L].formitem)==null?void 0:p.props)==null?void 0:v.max;if(T){const z=_e.toNumber(I),U=z&&(B?z>=B:!0)&&(V?z<=V:!0)&&(_e.isNumber(D)&&D>0?o(z)<=D:!0);F[L]=U?z:void 0}}}i(N)}}}return document.addEventListener("paste",s),()=>{document.removeEventListener("paste",s)}},[r,n]),{pasteData:a}},EJ=e=>`${e}Key`,eb=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,OJ=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...s)=>`${e}+${s.join(n)}`,i=di(t),o=di(_e.fromPairs(i.current.map(([s,u])=>[a(...s),u])));A.useEffect(()=>{console.log("初始化 useShortcutKey");const s=()=>i.current.map(([b])=>b).flat(1),u=b=>{var y,w,S;(!r||((y=b.target)==null?void 0:y.id)==r)&&(c.push(eb(b)),(S=(w=o.current)[c.join(n)])==null||S.call(w,b))},c=[],d={},f=b=>{var y;if(!r||((y=b.target)==null?void 0:y.id)==r){const w=eb(b);b[EJ(e)]&&!d[w]&&(d[w]=!0,s().includes(b.key)&&c.includes(e)&&b.preventDefault(),u(b))}},g=b=>{const y=eb(b);d[y]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",f),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",f)}},[])},RJ=(e,t)=>{const[r,n]=A.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:s=[]}=o||{},{childKeyName:u="children",isMark:c=!0,initialState:d,setInitialState:f}=a||{},g=String(e.rowKey||"id"),[b,y]=A.useState(!1),w=()=>b&&s.length,S=p=>v=>{w()&&p(v)},E=async(p,v)=>{var k;const x=[];x.type="shear",x.namespace=t,v.forEach($=>{_r.isDelTableRow($)||x.push({...$,toShear:()=>$.shear=!0})}),_r.ArrayAttributeFlat(x,u,$=>{$.toShear||($.shear=!0)}),(!p.onBeforeShear||await p.onBeforeShear(x))&&(x.forEach($=>{$.toShear(),delete $.toShear}),console.log("剪切",x),f&&f($=>({...$,clipboard:x})),p.setDataSource("shear",i),(k=p.onAfterShear)==null||k.call(p,x),x.length&&(x.onPasteCallback=async $=>{var F;const R=$==t,N=[...i],M=()=>{f&&f(L=>({...L,clipboard:[]})),[...x].reverse().forEach(L=>{const I=_r.getTreeRelationNoRecursion({data:N,lookup:T=>T[g]==L[g],childrenKey:u});c&&I.self.dataType!=="add"?(I.self.shear=!1,I.self.dataType="del",_r.ArrayAttributeFlat(I.self[u],u,T=>{T.toShear||(T.shear=!1,T.dataType="del")})):I.parent?I.parent[u].splice(I.index,1):N.splice(I.index,1)}),p.setDataSource("shear",N)};return!p.onBeforeDeleteShear||await p.onBeforeDeleteShear({isSameSpace:R,deletes:x})?(M(),(F=p.onAfterDeleteShear)==null||F.call(p,{isSameSpace:R,deletes:x}),Promise.resolve(N)):Promise.reject(J("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},_=async(p,v)=>{var k;const x=[];x.type="copy",x.namespace=t,v.forEach($=>{_r.isDelTableRow($)||($.shear=!1,_r.ArrayAttributeFlat($[u],u,R=>{R.shear=!1}),x.push({...$}))}),(!p.onBeforeCopy||await p.onBeforeCopy(x))&&(console.log("复制",x),f&&f($=>({...$,clipboard:x})),p.setDataSource("paste",i),(k=p.onAfterCopy)==null||k.call(p,x))},C=async(p,{pasteData:v,pasteTarget:x})=>{var $,R;const k=_r.ArrayAttributeFlat(v,u).every(N=>!x.includes(N[g]));if(console.log({isNonSelf:k}),x.length==1&&v.length&&k){const M=_r.ArrayAttributeFlat(i,u).find(L=>L[g]==x[0]),F=p.pasteInto||"child";if(!p.onBeforePaste||await p.onBeforePaste({target:M,rows:v,type:F}))try{const L=await(($=v.onPasteCallback)==null?void 0:$.call(v,t))||[...i],I=_r.getTreeRelationNoRecursion({data:L,lookup:T=>T[g]==M[g],childrenKey:u});if(c){const T=D=>D.map(B=>Object.assign({...B,shear:!1,dataType:"add",[g]:_r.generateUUID(),primitiveInsId:B.primitiveInsId||B[g]},B[u]?{[u]:T(B[u].filter(V=>!D.some(z=>z[g]==V[g]))||[])}:{}));v=T(v)}if(F=="child"){const T=I.self[u];I.self[u]=[...T,...v]}else I.parent?I.parent[u].splice(I.index+1,0,...v):L.splice(I.index+1,0,...v);p.setDataSource("paste",L),(R=p.onAfterPaste)==null||R.call(p,{target:M,type:F})}catch(L){console.error(L)}}};a&&OJ(_r.isMac()?"meta":"ctrl",{shortcuts:[[["x"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({shearList:p}),E(a,p)})],[["c"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({copyList:p}),_(a,p)})],[["v"],S(async()=>{const p=(d==null?void 0:d.clipboard)||[];C(a,{pasteData:p,pasteTarget:s})})]],namespace:t});const h=A.useRef(null);return A.useEffect(()=>{var p;r||((p=h.current)==null||p.focus(),y(!0))},[s.length,s[0]]),A.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:b,focus:()=>{var v;const p=document.querySelector(":focus");p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement||(v=h.current)==null||v.focus()},shear:E,copy:_,paste:C,FocusDom:H.jsx("input",{ref:h,"data-type":uP,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},TJ=(e,t,r,n)=>{const[a,i]=A.useState();return A.useEffect(()=>{async function o(s){if(r){const u=s.clipboardData,c=r.dataIndex,d=r.record;let f=null;if(d.newVal&&Object.hasOwn(d.newVal,c)?f=d.newVal[c]:f=d[c]||null,f)try{u.setData("text/plain",f),i(f),s.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},Uw=A.createContext(null),xm="tableTopBox",Sm=A.forwardRef((e,t)=>{var N;A.useImperativeHandle(t,()=>({scrollTo:M=>{i.current.scrollTo(M)},scrollXTo:M=>{if(a.current){const F=a.current.querySelector(".frontend-table-body");F&&(F.scrollLeft=M)}},clearFilters:d,setTableFiltered:b,clipboard:R}));const[r]=A.useState(_r.generateUUID()),n=A.useRef(null),a=A.useRef(null),i=A.useRef(null),[o]=ue.Form.useForm(),s=yJ(),{sortInfo:u,filterInfo:c,clearFilters:d,getColumnSearchProps:f,onFiltersChange:g,setTableFiltered:b}=wJ(e.onFilterAndSorter),[y,{toggleFullscreen:w,exitFullscreen:S}]=oR(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;A.useEffect(()=>{const M=F=>{F.key=="Escape"&&y&&S()};return addEventListener("keydown",M),()=>{removeEventListener("keydown",M)}});const _=IZ({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[C,h]=DZ(()=>({scroll:{y:1e3},ref:i}),[]),p={header:{cell:LZ},body:{cell:bJ}};A.useMemo(()=>h(p),[h]);const{renderColumns:v}=SJ({...e,tableKey:E},u,c,s,f,_,e.selectedCell),{pasteData:x}=CJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{var M;if(x&&e.selectedCell){const F=e.dataSource||[],L=String(e.rowKey)||"id",I=F.findIndex(G=>{var X;return G[L]==((X=e.selectedCell)==null?void 0:X.record[L])}),T=e.columns.findIndex(G=>{var X;return G.dataIndex==((X=e.selectedCell)==null?void 0:X.dataIndex)});let D=((M=x[0])==null?void 0:M.length)||0,B=(x==null?void 0:x.length)||0;const V=e.columns.slice(T,T+D),z=F.slice(I,I+B);let U=[];x.forEach((G,X)=>{if(z.length>X){const K={};G.forEach((ne,ae)=>{V.length>ae&&(K[V[ae].dataIndex]=ne,K[L]=z[X][L])}),U.push(K)}}),e.onPaste&&e.onPaste(_r.transformArrayToMap(U,L))}},[x]);const{copyData:k}=TJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{k&&e.selectedCell&&e.onCopy&&e.onCopy(k)},[k]);const{run:$}=DH(async M=>{const F=e.pageNo||1,L=e.pageSize||10,I=e.total||0;Math.abs(parseInt(M.target.scrollTop+M.target.clientHeight)-M.target.scrollHeight)<1.5&&!e.loading&&F*L<I&&e.onScroll&&e.onScroll(F+1)},{wait:400}),R=RJ(e,r);return H.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${ki.main} ${xm}`,style:{position:"relative",overflow:"hidden"},onClick:M=>R.focus(),onScrollCapture:M=>{M.target.scrollHeight!==24&&M.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&$(M):$(M))},children:[H.jsx(_J,{menuId:s,..._e.pick(e,["onFill"])}),R.FocusDom,H.jsxs(ue.Form,{form:o,component:!1,children:[H.jsx(Uw.Provider,{value:o,children:H.jsx(ue.Table,{className:ge(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:C,bordered:!0,..._e.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:E,loading:{indicator:H.jsx(qf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:M,onExpand:F,record:L,expandable:I})=>L.children&&L.children.length||L.hasChildren?M?H.jsx(R5,{className:"expand",onClick:T=>{F(L,T)}}):H.jsx(T5,{className:"expand",onClick:T=>{F(L,T)}}):(e.isTree||I!==void 0)&&H.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:_,scrollToFirstRowOnChange:!0,..._e.merge(e.scroll,{x:(N=e.scroll)==null?void 0:N.x})},columns:v,onChange:g})}),H.jsx(xJ,{...e,className:e.tableFooterClassName,clearFilters:d,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:al}=ue.Select,lP=A.forwardRef((e,t)=>{const r=A.useRef("1848553711328477186"),[n,a]=A.useState([]),[i,o]=A.useState([]),[s,u]=A.useState([]),c=Sa({pageNo:1,pageSize:50,total:0}),d=Sa({sorter:"",filters:"",itemCodes:`${Cs.material},${Cs.document},${Cs.file}`,initialItemCodes:""}),f=Sa({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:J("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:J("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});Yf(()=>{var _;let E=[];for(let C of e.columns||f.columns)E.push({...C,render:!C.render&&((_=e.placeholderCode)!=null&&_.includes(C.dataIndex))?h=>H.jsx(rs,{value:h,highlight:g.numberHighLight||[]}):C.render});f.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(C=>{if(C.code==200){let h=[];for(let v of C.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&h.push({label:v.name,value:v.code});f.conditionObject=h;let p=_e.map(h,"value").join(",");d.itemCodes=p,d.initialItemCodes=_e.cloneDeep(p),y(!0)}}):y(!0)}),A.useEffect(()=>(e.enter&&!f.focus&&s.length>0?b():document.onkeydown=null,()=>{document.onkeydown=null}),[s,f.focus]),A.useImperativeHandle(t,()=>({getLoading:E=>{f.loading=E},backfill:E=>{u(E)}}));const g=Sa({numberHighLight:[]}),b=()=>{document.onkeydown=function(E){var _=window.event||E,C=_.keyCode||_.which;if(C==13&&!f.loading){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let h=s.length?_e.map(s,"id").join(","):"";e.onChange&&e.onChange(h),e.handleSubmit&&e.handleSubmit(s)}}},y=async(E=!1,_)=>{f.loading=!0;const{pageNo:C,pageSize:h}=c,{filters:p,sorter:v,itemCodes:x}=d;let k={...e.params};if(f.searchValue&&(e.formate=="1"||e.formate=="2"?k.orQuery=e.params.columns.split(",").map(F=>F+"-"+f.searchValue).join("~!~"):k.keyword=f.searchValue),!e.getUrlData){a([]),c.total=0,f.loading=!1;return}const{records:$,total:R,columns:N}=await e.getUrlData({pageNo:C,pageSize:h,filters:p,sorter:v,itemCodes:x,refreshSize:_,searchValue:f.searchValue,sideChoice:f.sideChoice,params:k});N&&(f.columns=N),f.loading=!1;const M=$||[];c.total=R,E?(a(M),o(_e.cloneDeep(M)),e.onInit&&e.onInit(M)):(a([...n,...M]),o(_e.cloneDeep([...n,...M])))},w=E=>{E=="0"?d.itemCodes=d.initialItemCodes:d.itemCodes=E,a([]),u([]),c.pageNo=1,f.searchValue="",y(!0,c.pageSize)},S=E=>{u([]),e.searchChange&&e.searchChange(E),f.searchValue=E,g.numberHighLight=E?[E]:[],c.pageNo=1,y(!0)};return H.jsx($u,{width:e.width,forceRender:!0,className:K1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(s)},children:H.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&H.jsx("div",{className:K1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?H.jsx(UT,{itemCode:Cs.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,c.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[J("sys.myCreated",{placeholder:"我创建的"}),J("sys.label.all",{placeholder:"全部"})].map((E,_)=>H.jsx("div",{onClick:()=>{f.sideChoice=_,c.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:_==f.sideChoice?"#0563b2":""},children:E},_))}),H.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&H.jsx(ue.Form.Item,{rules:[{required:!1}],children:H.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&H.jsxs(H.Fragment,{children:[e.allCategories&&f.conditionObject.length>0&&H.jsxs(ue.Select,{disabled:f.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[H.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),"(",f.conditionObject.map(E=>H.jsx(al,{value:E.value,children:E.label})),")"]}),!e.allCategories&&H.jsxs(ue.Select,{disabled:f.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[H.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),H.jsx(al,{value:Cs.material,children:J("sys.label.material",{placeholder:"物料"})}),H.jsx(al,{value:Cs.document,children:J("sys.document.document",{placeholder:"文档"})}),H.jsx(al,{value:Cs.file,children:J("sys.label.file",{placeholder:"文件"})})]})]}),H.jsx(ue.Input,{style:{width:240},onBlur:()=>{f.focus=!1},onFocus:()=>{f.focus=!0},allowClear:!0,value:f.searchValue,placeholder:e.placeholder||J("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:H.jsx(Dt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{S(f.searchValue)}}),onChange:E=>{f.searchValue=E.target.value,E.target.value||(u([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{S(E.target.value)}})]})}),e.isDownload&&H.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[H.jsx(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"1")},children:J("sys.label.download",{placeholder:"下载"})}),H.jsx("span",{style:{marginRight:"24px"}}),H.jsxs(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"2")},children:[J("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),H.jsx("div",{className:K1.tableFrame,style:{display:"flex"},children:H.jsx(Sm,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:s.map(E=>E.id),onChange:(E,_)=>{e.isCheckbox?u(_):_.length?u([_.pop()]):u([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&_e.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(s.length>1){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(_e.map(s,"id").join(",")),e.handleSubmit&&e.handleSubmit(s)}else u([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:f.loading,dataSource:n,columns:f.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:E=>{c.pageNo=E,y()},onFilterAndSorter:(E,_,C)=>{if(u([]),e.isBuiltInSort)if(E){let h=_e.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(h)}else a(i);else{if(e.isUseRuleSort){const h=Jo.sortAndFilterTable({sorters:E,filters:_,sortersField:C,tableColumns:e.columns});d.sorter=h.sorters,d.filters=h.filters}else d.sorter=E,d.filters=_;c.pageNo=1,y(!0)}}})})]})]})})}),PJ="_selectFrameBox_mktv5_1",kJ={selectFrameBox:PJ},cP=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),a=A.useContext(Uf),i=a==null?void 0:a.linkInstanceCom;A.useEffect(()=>{n(e.value)},[e.value]);const o=Sa({visible:!1,options:[],enter:!1});A.useEffect(()=>{e.options&&e.options.length&&(o.options=e.options)},[e.options]);const s=()=>{var g;const c=(g=e.params)==null?void 0:g.ids,d=c?c.join(","):"",f=e.isCheckbox?r&&r.join(","):r;return`${d}${f!=null&&f.length&&d?",":""}${f??""}`},u=()=>{var c,d;if(i){const f=i;return H.jsx(f,{userId:r,id:r,content:(c=_e.filter(e.options,g=>g.id==r)[0])==null?void 0:c.Name})}return H.jsx("div",{children:(d=_e.filter(e.options,f=>f.id==r)[0])==null?void 0:d.Name})};return H.jsxs("div",{className:kJ.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?u():H.jsxs("div",{style:{display:"flex",gap:"5px"},children:[H.jsx(ue.Select,{style:{minWidth:"85px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:o.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(o.visible=!0,o.enter=!0)},onChange:c=>{e.onChange&&e.onChange(c)},tagRender:c=>fi.readPermission(c.label)?H.jsx(ue.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:H.jsx(Dt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:d=>{d.stopPropagation();const f=r.filter(g=>g!==c.value);n(f),e.onChange&&e.onChange(f)}}),children:c.label},c.value):H.jsx(co,{})}),e.showButton?H.jsx(ue.Button,{onClick:()=>{o.visible=!0,o.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:H.jsx(Dt,{type:"content-search",style:{fontSize:"16px"}})}):H.jsx(H.Fragment,{})]}),o.visible&&H.jsx(lP,{visible:o.visible,title:e.title||J("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async c=>{const{records:d,total:f}=await e.getUrlData(c);return{records:d,total:f}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:s()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:o.enter,placeholder:e.searchPlaceholder||J("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:c=>{if(e.isCheckbox){let d=_e.compact(_e.concat(r,c.split(",")));e.onChange&&e.onChange(c?d:void 0)}else e.onChange&&e.onChange(c)},handleSubmit:c=>{e.isCheckbox?o.options=_e.concat(o.options,c):o.options=c,e.onSubmit&&e.onSubmit(o.options),o.visible=!1,o.enter=!1},onInit:c=>{o.options=c},onCancel:()=>{o.visible=!1,o.enter=!1}})]})}),$J="_searchTextTips_daoe4_1",AJ={searchTextTips:$J};function DJ({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=A.useState(!1),[i,o]=A.useState([]),s=A.useRef(0);A.useEffect(()=>{o(r.options)},[r.options]);const u=A.useMemo(()=>{const c=d=>{s.current+=1;const f=s.current;o([]),a(!0),e(d,r).then(g=>{f===s.current&&(o(g),a(!1))})};return _e.debounce(c,t)},[e,t]);return H.jsx(ue.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?H.jsx("div",{style:{textAlign:"center"},children:H.jsx(ue.Spin,{size:"small"})}):H.jsx(ue.Empty,{image:ue.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>H.jsxs(H.Fragment,{children:[c,H.jsx(ue.Divider,{style:{margin:"8px 0"}}),H.jsx("div",{className:AJ.searchTextTips,children:`${J("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${J("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function GE(e,t){var i,o;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,_e.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=_e.reject((o=r.result)==null?void 0:o.records,s=>{var u;return s[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const IJ=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),[a,i]=A.useState([]);return Yf(async()=>{i(await GE("",e))}),H.jsx(DJ,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:GE,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),MJ=e=>H.jsx(H.Fragment,{}),lp=e=>H.jsx(ue.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),dP=A.forwardRef((e,t)=>{const r=A.useContext(Uf),n=(r==null?void 0:r.formItemCom)||{},a=A.useCallback((s,u)=>{var g,b;const{type:c,cannotread:d,props:f}=s;if(d!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),c==="Input")return y?H.jsx(Q0,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(Q0,{...f});if(c==="Select")return f!=null&&f.loading?(u="",H.jsx(ue.Form.Item,{noStyle:!0,children:H.jsx(gu,{...f,options:[],loading:!0,value:((b=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:b.mode)==="multiple"?[]:"",disabled:y||(f==null?void 0:f.disabled)})})):f!=null&&f.options&&f.options.length?typeof u=="string"&&u.split(",").length>1&&(f==null?void 0:f.mode)!=="multiple"?e.readOnly?H.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(w=>H.jsx(ue.Tag,{children:_r.getLabelInOptions({value:w,options:(f==null?void 0:f.options)||[]})},w))}):(f.options=[...f==null?void 0:f.options,{label:u.split(",").map(w=>_r.getLabelInOptions({value:w,options:(f==null?void 0:f.options)||[]})).join(","),disabled:!0,value:u}],H.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...f,showSearch:!0,disabled:y||(f==null?void 0:f.disabled)})):H.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...f,showSearch:!0,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(gu,{...f,showSearch:!0,options:[],disabled:y||(f==null?void 0:f.disabled)});if(c==="PopupSelect")return f.options===void 0||f.options.length>0?H.jsx(cP,{...f,title:e.label,disabled:y||(f==null?void 0:f.disabled)},e.name):"";if(c==="SearchSelect")return H.jsx(IJ,{...f},e.name);if(c==="Checkbox")return H.jsx(ue.Checkbox,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Checkbox.Group")return H.jsx(ue.Checkbox.Group,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Input.TextArea")return y?H.jsx(ue.Input.TextArea,{...f,disabled:!0}):H.jsx(ue.Input.TextArea,{...f});if(c==="Input.Password")return y?H.jsx(ue.Input.Password,{...f,disabled:!0}):H.jsx(ue.Input.Password,{...f});if(c==="Date")return y?H.jsx(ue.DatePicker,{...f,size:"middle",placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.DatePicker,{...f});if(c==="DatePicker.RangePicker")return y?H.jsx(ue.DatePicker.RangePicker,{...f,disabled:y||(f==null?void 0:f.disabled),placeholder:["",""],separator:""}):H.jsx(ue.DatePicker.RangePicker,{...f});if(c==="TimePicker.RangePicker")return y?H.jsx(ue.TimePicker.RangePicker,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.TimePicker.RangePicker,{...f});if(c==="Switch")return H.jsx(ue.Switch,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Number")return(f==null?void 0:f.apicode)==="FileSize"?H.jsx(Q0,{...f,disabled:y||(f==null?void 0:f.disabled)},f.id):y?H.jsx(ue.InputNumber,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.InputNumber,{...f});if(c==="Cascader")return y?H.jsx(ue.Cascader,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Cascader,{showSearch:{filter:(w,S)=>S.some(E=>E.label&&E.label.toLowerCase().indexOf(w.toLowerCase())>-1),matchInputWidth:!1},...f});if(c==="TreeSelect")return f.treeData&&f.treeData.length?y?H.jsx(lp,{...f,disabled:y||(f==null?void 0:f.disabled),showSearch:!0,treeNodeFilterProp:"label"}):H.jsx(lp,{...f,showSearch:!0,treeNodeFilterProp:"label"}):H.jsx(lp,{disabled:y||(f==null?void 0:f.disabled)});if(c==="Radio")return y?H.jsx(ue.Radio,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Radio,{...f});if(c==="Radio.Group")return y?H.jsx(ue.Radio.Group,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Radio.Group,{...f});if(c==="Slider")return H.jsx(ue.Slider,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Markdown")return H.jsx(UR,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="SelectPopup")return H.jsx(oP,{selectProps:f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="SelectTransfer")return H.jsx(aP,{selectProps:f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="CompositeForm")return H.jsx(Xf,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="Title")return H.jsx(MJ,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(n[c]){const w=n[c];return H.jsx(w,{type:c,...f,name:e.name,disabled:y||(f==null?void 0:f.disabled)},e.name)}return H.jsx("span",{children:u})}else return H.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=A.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?_e.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return H.jsx(ue.Form.Item,{colon:!1,..._e.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:ge(aY.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),NJ="_itemsCreated_ow91h_1",FJ="_rowBox_ow91h_4",jJ="_labelLength_ow91h_8",il={itemsCreated:NJ,rowBox:FJ,labelLength:jJ},LJ="_advanced_search_content_775l0_1",zJ="_disableBg_775l0_1",BJ="_checkboxWidth_775l0_15",HJ="_radioWidth_775l0_18",VJ="_conditions_head_775l0_21",UJ="_head1_775l0_29",qJ="_head2_775l0_32",WJ="_head3_775l0_35",YJ="_head4_775l0_38",GJ="_properties_box_775l0_41",KJ="_className_tips_775l0_44",XJ="_groupHeader_775l0_49",ZJ="_iconBtn_775l0_52",JJ="_properties_item_775l0_61",QJ="_left_tips_775l0_84",eQ="_state_type_775l0_87",tQ="_verification_775l0_100",rQ="_verificationBorder_775l0_121",Tt={advanced_search_content:LJ,disableBg:zJ,checkboxWidth:BJ,radioWidth:HJ,conditions_head:VJ,head1:UJ,head2:qJ,head3:WJ,head4:YJ,properties_box:GJ,className_tips:KJ,groupHeader:XJ,iconBtn:ZJ,properties_item:JJ,left_tips:QJ,state_type:eQ,verification:tQ,verificationBorder:rQ},nQ="_shuttle_box_tufhg_1",aQ="_transferBox_tufhg_4",iQ="_selectNum_tufhg_7",E0={shuttle_box:nQ,transferBox:aQ,selectNum:iQ},oQ=e=>{const t=Sa({dataSource:[],targetKeys:[],columns:[]}),r=s=>s&&_e.isString(s)&&s.includes("~#~")?H.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):s;A.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let s=[];for(let u of e.columns)s.push({...u,ellipsis:!0,sorter:(c,d)=>{const f=u.dataIndex||"";return c[f]!=null&&d[f]!=null?_e.isString(c[f])&&_e.isString(d[f])?c[f].localeCompare(d[f]):_e.isNumber(c[f])&&_e.isNumber(d[f])?c[f]-d[f]:0:0},render:u.render?u.render:r});t.columns=s},[e.dataSource,e.targetKeys]);const n=({...s})=>H.jsx(ue.Transfer,{...s,rowKey:u=>u.id,children:({direction:u,filteredItems:c,onItemSelectAll:d,onItemSelect:f,selectedKeys:g})=>{const b={onSelectAll(y,w){const S=w.filter(_=>!_.disabled).map(({id:_})=>_),E=y?_e.difference(S,g):_e.difference(g,S);d(E,y)},onSelect({id:y},w){e.isRadio&&g.splice(0,1),f(y,w)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:u=="left"?y.disabled:!1}),selectedRowKeys:g};return H.jsxs(H.Fragment,{children:[H.jsx(ue.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...b},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),f(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(u==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let w=0;w<t.targetKeys.length;w++)if(t.targetKeys[w]==y.id){t.targetKeys.splice(w,1);break}}}})}),u==="left"?H.jsxs("div",{className:E0.selectNum,children:[e.defaultPageSize!==50?`${J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:J("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):H.jsxs("div",{className:E0.selectNum,children:[J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=s=>{e.isRadio?t.targetKeys=[s[0]]:t.targetKeys=s},i=async()=>{let s=[];for(let u=0;u<t.targetKeys.length;u++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[u]==t.dataSource[c].id){s.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(s)},o=()=>{if(e.columns.length>0){let s=[J("project.workflow.status",{placeholder:"状态"}),J("sys.import.category",{placeholder:"分类"})];return J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_e.without(_e.map(e.columns,"title"),...s).join("、")}})}return J("sys.enterSearch",{placeholder:"请输入搜索内容"})};return H.jsx($u,{className:E0.shuttle_box,modalTitle:e.title,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:H.jsx("div",{className:E0.transferBox,children:H.jsx(tc,{spinning:e.loading,children:H.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(s,u)=>u.Name&&u.Name.indexOf(s)!==-1||u.EmpNo&&u.EmpNo.indexOf(s)!==-1||u.empNo&&u.empNo.indexOf(s)!==-1||u.email&&u.email.indexOf(s)!==-1||u.name&&u.name.indexOf(s)!==-1||u.workflowName&&u.workflowName.indexOf(s)!==-1||u.code&&String(u.code).indexOf(s)!==-1||u.description&&u.description.indexOf(s)!==-1})})})})},{RangePicker:KE}=ue.DatePicker,{Option:tb}=ue.Select,{TreeNode:XE}=ue.Tree,{confirm:Gpe}=ue.Modal,fP=A.forwardRef((e,t)=>{A.useRef();const r=A.useRef(null),n=A.useRef(null),a=[{value:"and",label:J("sys.condition.and",{placeholder:"与"})},{value:"or",label:J("sys.condition.or",{placeholder:"或"})}],i="YYYY-MM-DD HH:mm:ss",o={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=Sa({1:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:J("sys.condition.in",{placeholder:"在"})},{value:"!in",label:J("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:J("sys.condition.in",{placeholder:"在"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),u=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],c=Sa({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),d=Sa({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});A.useImperativeHandle(t,()=>({getValue:()=>c.formCofing,onVerification:R=>{c.verification=R},setCondition:(R,N)=>{N==0?(c.formCofing.base_item_id=R.value,c.formCofing.base_item_name=R.label):(c.formCofing.object_id=(R==null?void 0:R.value)||"",c.formCofing.object_name=(R==null?void 0:R.label)||"")},emptyCondition:R=>{R&&(c.formCofing.base_item_id="",c.formCofing.base_item_name="",c.formCofing.object_id="",c.formCofing.object_name=""),c.verification=!1,c.formCofing.relations=[{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:R=>{c.formCofing=R},searchBtn:()=>{f()},defaultValue:()=>{var N;const R=(N=e.typeData[0])==null?void 0:N.children.filter(M=>M.apicode==="Number"||M.apicode==="Name"||M.apicode==="Description")[0];c.formCofing.relations=[{join:"and",isGroup:!0,relation:[{attribute:{id:[e.typeData[0].value,R.id],name:`${e.typeData[0].label}/${R.name}`,lastSelected:R,type:R.valueType||"",rawType:R.valueType||"",tab_code:e.typeData[0].value,dataFrom:R.dataFrom||"",dataFromId:R.dataFromId||"",apicode:R.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const f=R=>{if(c.verification=!1,!c.formCofing.base_item_id){ue.message.warning(J("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let N=_e.cloneDeep(c.formCofing.relations);N.length==1&&(w(N),N=_e.compact(N));for(let[M,F]of N.entries())for(let L of F.relation)if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){c.verification=!0;return}{let M={base_item_id:c.formCofing.base_item_id,base_item_name:c.formCofing.base_item_name,object_id:c.formCofing.object_id,object_name:c.formCofing.object_name,relations:N};e.searchTable&&e.searchTable(M)}},g=(R,N)=>R=="5"&&N?N.listCode==10005213?s[R][2]:!N.allowMultiple||N.apicode=="LifeCyclePhase"||N.apicode=="Category"?s[R][0]:N.listType=="0"?s[R][1]:N.listType=="2"?s[R][2]:s[R][3]:s[R],b=()=>{c.formCofing.relations[d.treeIndex1].relation[d.treeIndex2].attribute.value=d.treeDefine.join(","),c.formCofing.relations[d.treeIndex1].relation[d.treeIndex2].attribute.valueTreeKey=d.treeDefineKey,d.titleName="",d.treeVisible=!1},y=(R,N)=>N.some(M=>M.label&&M.label.toLowerCase().indexOf(R.toLowerCase())>-1),w=R=>R.map((N,M)=>(N.relation.forEach((F,L)=>{let I=F.attribute;!I.name&&!I.operator&&!I.value&&delete N.relation[L]}),N.relation=_e.compact(N.relation),N.relation.length==0&&delete R[M],N)),S=R=>{let N=[];if(R)for(let M of R)N.push({label:M.showName||M.name,value:M.id,disabled:!M.status});return N},E=R=>R.map(N=>N.children?H.jsx(XE,{title:d.department?N.title:N.name,children:E(N.children)},N.id):H.jsx(XE,{title:d.department?N.title:N.name},N.id)),_=(R,N)=>H.jsx(nm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[N?N.toString():""],textToHighlight:R?R.toString():""}),C=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},h=(R,N)=>{R.relation.splice(N+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",forbidden:!0,routineData:[]}}),k(R),C()},p=R=>{c.formCofing.relations.splice(R+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),C()},v=R=>{c.formCofing.relations.splice(R,1)},x=(R,N,M,F)=>{M&&R.relation.length>1?(R.relation.splice(F,1),k(R)):c.formCofing.relations.splice(N,1)},k=R=>{for(let N=0;N<R.relation.length;N++)R.relation[N].attribute.forbidden=!0,R.relation.length>1&&R.relation.length-1!=N&&(R.relation[N].attribute.forbidden=!1)},$=(R,N,M,F,L)=>{if(M&&(M.apicode=="OrgName"||M.apicode=="CreateUserDepartment"))return H.jsx(ue.Select,{className:`
|
|
332
|
+
Le.version="2.30.1";iY(Hr);Le.fn=ze;Le.min=YG;Le.max=GG;Le.now=KG;Le.utc=go;Le.unix=SX;Le.months=EX;Le.isDate=Zf;Le.locale=Fs;Le.invalid=dm;Le.duration=qi;Le.isMoment=Vi;Le.weekdays=RX;Le.parseZone=CX;Le.localeData=os;Le.isDuration=sp;Le.monthsShort=OX;Le.weekdaysMin=PX;Le.defineLocale=Mw;Le.updateLocale=CG;Le.locales=EG;Le.weekdaysShort=TX;Le.normalizeUnits=vi;Le.relativeTimeRounding=rZ;Le.relativeTimeThreshold=nZ;Le.calendarFormat=_K;Le.prototype=ze;Le.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"};const Rs=class Rs{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Le.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Rs.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const o=a.shift(),s=o[r];if(n==null||n(o),i.push(o),s!=null&&s.length)for(let u=s.length-1;u>=0;u--)a.unshift(s[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var d;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,s=new Map,u=new Map,c=[...t];for(;c.length;){const f=c.shift(),g=o.get(f)??t.findIndex(E=>E==f),b=s.get(f);b?a.add(b):a.clear();const y=b==null?void 0:b[n],w=r(f,g),S=f[n];if(w){i={parent:b,self:f,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(S!=null&&S.length)for(let E=S.length-1;E>=0;E--){const _=S[E];c.unshift(S[E]),o.set(_,E),s.set(_,f),E==S.length-1&&u.set(_,()=>{var C;(C=u.get(f))==null||C(),a.delete(f)})}else(d=u.get(f))==null||d()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Ns.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Ar(Rs,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(c=>c!==""&&c!==void 0&&c!==null)(r))return"";let s="";i==="[object Array]"&&(s=[]);const u=c=>{for(let d=0;d<(c||[]).length;d++){const f=c[d][a?a.label:"label"],g=c[d][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&s.push(f):r===g&&(s=f),c[d].children&&c[d].children.length&&u(c[d].children)}};return u(n),s}),Ar(Rs,"transformArrayToMap",(t,r,n,a)=>{function i(o,s){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?ql.isCustomAttr(s)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,s)=>{const u=i(r,s),c=i(n,s);return c?o[s[u]]=s[c]:o[s[u]]=s,o},{})}),Ar(Rs,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Ar(Rs,"renderBomTag",t=>{const r=o=>{const s=o.match(/\d+(\.\d+)?/g);return s?s[s.length-1]:""},n=o=>{let s=0;const u=c=>{var d=c.split("");return d.reverse()};for(let c=0;c<u(o).length&&u(o)[c].match(/\d/);c++)s=s+1;return o.substring(0,o.length-s)},a=o=>_e.sortBy(_e.uniq(o.split(",")),s=>Number(r(s))),i=Object.keys(_e.groupBy(a(t),o=>n(o))).map(o=>(u=>{var c=[],d=0;const f=u.sort((g,b)=>Number(r(g))-Number(r(b)));return f.forEach((g,b)=>{b===0?c[0]=[g]:Number(r(g))-Number(r(f[b-1]))===1?c[d].push(g):c[++d]=[g]}),c})(_e.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const c=u.map(d=>Number(r(d)));return`${o}${_e.min(c)}-${_e.max(c)}`}else return u[0]}));return _e.flatten(i).join(",")}),Ar(Rs,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const c=u.substring(0,u.match(/\d+-\d+$/).index),d=[],f=Number(u.split(c)[1].split("-")[1]),g=f<1e3?f:1e3;for(let b=Number(u.split(c)[1].split("-")[0]);b<=g;b++)d.push(`${c}${b}`);return d.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const c=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),d=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),f=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(c!=f)return u;{const b=[],y=Number(g),w=y<1e3?y:1e3;for(let S=Number(d);S<=w;S++)b.push(`${c}${S}`);return b.join(",")}}else return u}).join(","),a=u=>{const c=u.match(/\d+(\.\d+)?/g);return c?c[c.length-1]:""},i=u=>{let c=0;const d=f=>{var g=f.split("");return g.reverse()};for(let f=0;f<d(u).length&&d(u)[f].match(/\d/);f++)c=c+1;return u.substring(0,u.length-c)},o=u=>_e.sortBy(_e.uniq(u.split(",")),c=>Number(a(c))),s=Object.values(_e.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return s.length>1e3&&(r==null||r()),s.length>1e3?s.slice(0,1e3).join(","):s.join(",")});let _r=Rs;const iZ="_tableSelection_1qae1_1",oZ="_sideBox_1qae1_31",sZ="_tableFrame_1qae1_46",K1={tableSelection:iZ,sideBox:oZ,tableFrame:sZ},uZ="_sider_item_container_wnrm0_1",rl={sider_item_container:uZ},{TreeNode:IE}=ue.Tree,UT=e=>{const[t,r]=A.useState([]),[n,a]=A.useState([]),[i,o]=A.useState([]);Yf(()=>{s()});const s=async()=>{var c;if(e.getInstanceMenu){const{records:d}=await e.getInstanceMenu();a(d||[])}if(e.getAttributeByTab){const d=await e.getAttributeByTab();if(d){const f=(c=d.records)==null?void 0:c.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(f)}}};A.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=c=>c.map(f=>(f.title=H.jsxs("div",{className:rl.treeListBox,children:[H.jsxs("div",{className:rl.titleBox,style:{display:"flex",alignItems:"center"},children:[H.jsx(Dt,{type:f.icon=="leftbar-folder"?f.children&&f.children.length>0&&_e.includes(i,f.id)?"content-open2":"content-fold":f.icon,style:{fontSize:"16px",color:"#333"}}),H.jsx("div",{className:rl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:f.name,children:H.jsx("span",{children:f.name})})]}),H.jsx("div",{className:ge(rl.btnBox,rl.onHover)})]},f.id),f.children?H.jsx(IE,{title:f.title,dataRef:f,children:u(f.children)},f.id):H.jsx(IE,{title:f.title},f.id)));return H.jsx("div",{className:rl.sider_item_container,children:H.jsx(ue.Tree,{switcherIcon:H.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:c=>{o(c)},onSelect:(c,d)=>{d.selected&&(r(c),e.onSelected&&e.onSelected(d.node.dataRef))},children:u(n)})})},lZ="_main_cwkam_1",cZ="_edit_cell_cwkam_23",dZ="_update_style_cwkam_28",fZ="_updated_style_cwkam_42",hZ="_updated_redline_style_cwkam_61",pZ="_table_footer_cwkam_354",mZ="_loading_cwkam_366",ki={main:lZ,edit_cell:cZ,update_style:dZ,updated_style:fZ,updated_redline_style:hZ,table_footer:pZ,loading:mZ},gZ=0,X1=1,Z1=2,qT=8,nl=64,x0=0,WT=1,Fy=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function vZ(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:gZ,end:!1,final_top:0,f_final_top:WT,update_count:0}}function bZ(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function bl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function yZ(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:qT}}const _Z=P.forwardRef(function(t,r){return H.jsx("table",{ref:r,...t})});function wZ(e){return H.jsx("tbody",{...e})}const xZ=P.forwardRef(function(t,r){const[n,a]=A.useState(!1);return H.jsx("tr",{ref:r,...t})});function SZ(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,o=0,s=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(s=o;s<n&&u<e._y;++s)u+=r[s];let c=a<0?0:a;for(;o>0&&c--;)i-=r[--o];return s+=a,s>n&&(s=n),[0|o,0|s,0|i]}function YT(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function CZ(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function EZ(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function ME(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function GT(e,t){const r=()=>{bl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&EZ(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function J1(e){e.HND_PAINT>0||(e.HND_PAINT=GT(e,-1))}function KT(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function OZ(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function RZ(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const TZ=(e,t)=>{const{style:r,context:n,...a}=e,i=A.useState(0),o=A.useRef(()=>{}),s=A.useMemo(()=>P.createRef(),[]),u=A.useContext(n);A.useMemo(()=>{Object.assign(u,vZ()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=s,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:nl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&bZ(u)},[]);const c=A.useRef([]).current,d=A.useRef(0);let f;const g=A.useCallback(_=>{if(u.vt_state===4){if(_&&(c.push(_),u.f_final_top===x0))return _.flag=nl,f(0);c.length&&(d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(f))}},[]),b=A.useCallback(_=>{g(yZ(_))},[]);f=A.useCallback(_=>{if(u.vt_state!==4)return;const C=c;let h;if(!C.length)return;h=C.pop();let p=h.target.scrollTop,v=h.target.scrollLeft;const x=h.flag;bl(u,`raf top: ${p}, left: ${v}`);const k=SZ(u,u.f_final_top===x0?u.final_top:p),$=k[0],R=k[1],N=k[2],M=u._offset_head,F=u._offset_tail,L=u._offset_top;let I;switch(x){case X1:bl(u,"SCROLLEVT_INIT"),I=!1;break;case nl:bl(u,"SCROLLEVT_BY_HOOK"),$===M&&R===F&&N===L?(u.f_final_top=WT,u.final_top===-1&&(p=u.computed_h-u._y),I=!0):(u.final_top===-1&&(p=N),I=!1);break;case Z1:if(bl(u,"SCROLLEVT_RECOMPUTE"),$===M&&R===F&&N===L){d.current=0,C.length&&g(null);return}I=!1;break;case qT:if(bl(u,"SCROLLEVT_NATIVE"),d.current=0,C.length=0,u.onScroll&&u.onScroll({top:p,left:v,isEnd:h.end}),$===M&&R===F&&N===L)return;I=h.end;break}YT(u,N,$,R),CZ(u,p,v,x,I),i[1](++u.update_count)},[]),A.useImperativeHandle(t,()=>{const _=C=>{u.f_final_top=x0,u.final_top=C,g({target:{scrollTop:C,scrollLeft:-1},flag:nl})};return{scrollTo:C=>{o.current=()=>_(C),o.current()},scrollToIndex:C=>{o.current=()=>{C>u.row_count-1&&(C=u.row_count-1),C<0&&(C=0);let h=0;for(let p=0;p<C;++p)h+=u.row_height[p];_(h)},o.current()}}},[]),A.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=b},[s]),A.useEffect(()=>{g({flag:nl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),A.useEffect(()=>{switch(u.evt){case nl:u.f_final_top===x0?o.current():ME(u,u.top,u.left);break;case X1:case Z1:ME(u,u.top,u.left),c.length&&f(0);break}},[i[0]]),A.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:X1});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:Z1}));break}}),r.position="relative",r.top=u._offset_top;const{width:y,...w}=r,S=A.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=u.components.table;return H.jsx("div",{ref:s,style:S,children:H.jsx(n.Provider,{value:{...u},children:H.jsx(E,{...a,style:w})})})},PZ=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let s=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:c}=r,d=[];switch(r.vt_state){case 1:s>=0&&(console.assert(u===0),console.assert(c===1),Array.isArray(i)?(d=i.slice(u,c),d[0].props.record[Fy]=0):d=i,r.re_computed=s,r.prev_row_count=s,r.row_count=s);break;case 4:{if(c>s){const g=c-s;c-=g,u-=g,u<0&&(u=0),c<0&&(c=0),YT(r,r._offset_top,u,c)}r.row_count!==s&&RZ(r,s),s=r.row_count;const f=r.prev_row_count;if(s<f)OZ(r,s,f);else if(s>f){const g=r.row_height;s-g.length>0?KT(r,s,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,f,s),r.computed_h+=r.possible_hight_per_tr*(s-f))}if(s){let g=u;d=i.slice(g,c),d.forEach(b=>b.props.record[Fy]=g++)}else d=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return H.jsxs(o,{...n,children:[a,d]})},kZ=e=>{const t=P.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return H.jsx(i,{...n,children:a});const o=a[0].props,s=o.record[Fy],u=A.useRef(s),c=A.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return A.useEffect(()=>(r.vt_state===4?J1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,KT(r,r.row_count,0,r.possible_hight_per_tr),GT(r,16)),()=>J1(r)),[]),A.useEffect(()=>{const d=t.current;let f=d.offsetHeight,g=d.nextSibling;for(;g&&g.matches(c);)f+=g.offsetHeight,g=g.nextSibling;const b=r.row_height[s],y=r.row_height[u.current];r.computed_h-=b,r.computed_h+=y,r.computed_h+=f-y,r.row_height[s]=f,J1(r)}),H.jsx(i,{...n,ref:t})};function XT(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function $Z(e,t){const r=A.useRef(P.createContext({})).current,n=A.useContext(r),a=A.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return A.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),A.useMemo(()=>{const i=P.forwardRef(TZ);n._vtcomponents={table:o=>H.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>H.jsx(r.Consumer,{children:()=>H.jsx(PZ,{...o,ctx:n})}),row:o=>H.jsx(kZ,{...o,ctx:n})}},n.components={},XT(n,{table:_Z,body:{wrapper:wZ,row:xZ}}),n.vt_state=1},[]),n}const NE=1,AZ=2;(function(){if((typeof window=="object"&&window instanceof Window?NE:AZ)&NE&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function DZ(e,t){const r=$Z(e,t||[]);return[r._vtcomponents,n=>XT(r,n),r.ref]}const IZ=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},s)=>{const[u,c]=A.useState(0),d=di(n);return A.useEffect(()=>{const f=()=>{var y,w,S;const b=(E=>{for(var _=E.offsetTop,C=E.offsetParent;C!==null;)_+=C.offsetTop,C=C.offsetParent;return _})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],_=t.current.querySelectorAll(".frontend-table-body")[0],C=34+(e?0:15);if(E){const h=_r.autoTableHeight(s?C:b+C),p=h-(a||0);n!=null&&n.y?i?i==null||i(s,p):(c(s?p:Number((y=d.current)==null?void 0:y.y)),E.style.minHeight=(s?p:Number((w=d.current)==null?void 0:w.y))-10+"px",_.style.minHeight=(s?p:Number((S=d.current)==null?void 0:S.y))+"px"):(c(s?p:h),E.style.minHeight=(s?p:h)-10+"px",_.style.minHeight=(s?p:h)+"px")}}};return f(),window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)}},[s,n]),A.useEffect(()=>{o==null||o(u)},[u]),u};var Rd={exports:{}},Td={},S0={},FE;function MZ(){if(FE)return S0;FE=1,S0.__esModule=!0,S0.cloneElement=s;var e=t(A);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,c){var d=Object.keys(u);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(u);c&&(f=f.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),d.push.apply(d,f)}return d}function n(u){for(var c=1;c<arguments.length;c++){var d=arguments[c]!=null?arguments[c]:{};c%2?r(Object(d),!0).forEach(function(f){a(u,f,d[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(d,f))})}return u}function a(u,c,d){return c=i(c),c in u?Object.defineProperty(u,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):u[c]=d,u}function i(u){var c=o(u,"string");return typeof c=="symbol"?c:String(c)}function o(u,c){if(typeof u!="object"||u===null)return u;var d=u[Symbol.toPrimitive];if(d!==void 0){var f=d.call(u,c);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(u)}function s(u,c){return c.style&&u.props.style&&(c.style=n(n({},u.props.style),c.style)),c.className&&u.props.className&&(c.className=u.props.className+" "+c.className),e.default.cloneElement(u,c)}return S0}var Pd={},jE;function ZT(){if(jE)return Pd;jE=1,Pd.__esModule=!0,Pd.resizableProps=void 0;var e=t(Kf());ww();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return Pd.resizableProps=r,Pd}var LE;function JT(){if(LE)return Td;LE=1,Td.__esModule=!0,Td.default=void 0;var e=o(A),t=ww(),r=MZ(),n=ZT(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var _=new WeakMap,C=new WeakMap;return(i=function(p){return p?C:_})(E)}function o(E,_){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=i(_);if(C&&C.has(E))return C.get(E);var h={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in E)if(v!=="default"&&Object.prototype.hasOwnProperty.call(E,v)){var x=p?Object.getOwnPropertyDescriptor(E,v):null;x&&(x.get||x.set)?Object.defineProperty(h,v,x):h[v]=E[v]}return h.default=E,C&&C.set(E,h),h}function s(){return s=Object.assign?Object.assign.bind():function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_];for(var h in C)Object.prototype.hasOwnProperty.call(C,h)&&(E[h]=C[h])}return E},s.apply(this,arguments)}function u(E,_){if(E==null)return{};var C={},h=Object.keys(E),p,v;for(v=0;v<h.length;v++)p=h[v],!(_.indexOf(p)>=0)&&(C[p]=E[p]);return C}function c(E,_){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(E);_&&(h=h.filter(function(p){return Object.getOwnPropertyDescriptor(E,p).enumerable})),C.push.apply(C,h)}return C}function d(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?c(Object(C),!0).forEach(function(h){f(E,h,C[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):c(Object(C)).forEach(function(h){Object.defineProperty(E,h,Object.getOwnPropertyDescriptor(C,h))})}return E}function f(E,_,C){return _=g(_),_ in E?Object.defineProperty(E,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[_]=C,E}function g(E){var _=b(E,"string");return typeof _=="symbol"?_:String(_)}function b(E,_){if(typeof E!="object"||E===null)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var h=C.call(E,_);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(E)}function y(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,w(E,_)}function w(E,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,p){return h.__proto__=p,h},w(E,_)}var S=function(E){y(_,E);function _(){for(var h,p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return h=E.call.apply(E,[this].concat(v))||this,h.handleRefs={},h.lastHandleRect=null,h.slack=null,h}var C=_.prototype;return C.componentWillUnmount=function(){this.resetData()},C.resetData=function(){this.lastHandleRect=this.slack=null},C.runConstraints=function(p,v){var x=this.props,k=x.minConstraints,$=x.maxConstraints,R=x.lockAspectRatio;if(!k&&!$&&!R)return[p,v];if(R){var N=this.props.width/this.props.height,M=p-this.props.width,F=v-this.props.height;Math.abs(M)>Math.abs(F*N)?v=p/N:p=v*N}var L=p,I=v,T=this.slack||[0,0],D=T[0],B=T[1];return p+=D,v+=B,k&&(p=Math.max(k[0],p),v=Math.max(k[1],v)),$&&(p=Math.min($[0],p),v=Math.min($[1],v)),this.slack=[D+(L-p),B+(I-v)],[p,v]},C.resizeHandler=function(p,v){var x=this;return function(k,$){var R=$.node,N=$.deltaX,M=$.deltaY;p==="onResizeStart"&&x.resetData();var F=(x.props.axis==="both"||x.props.axis==="x")&&v!=="n"&&v!=="s",L=(x.props.axis==="both"||x.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!F&&!L)){var I=v[0],T=v[v.length-1],D=R.getBoundingClientRect();if(x.lastHandleRect!=null){if(T==="w"){var B=D.left-x.lastHandleRect.left;N+=B}if(I==="n"){var V=D.top-x.lastHandleRect.top;M+=V}}x.lastHandleRect=D,T==="w"&&(N=-N),I==="n"&&(M=-M);var z=x.props.width+(F?N/x.props.transformScale:0),U=x.props.height+(L?M/x.props.transformScale:0),G=x.runConstraints(z,U);z=G[0],U=G[1];var X=z!==x.props.width||U!==x.props.height,K=typeof x.props[p]=="function"?x.props[p]:null,ne=p==="onResize"&&!X;K&&!ne&&(k.persist==null||k.persist(),K(k,{node:R,size:{width:z,height:U},handle:v})),p==="onResizeStop"&&x.resetData()}}},C.renderResizeHandle=function(p,v){var x=this.props.handle;if(!x)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:v});if(typeof x=="function")return x(p,v);var k=typeof x.type=="string",$=d({ref:v},k?{}:{handleAxis:p});return e.cloneElement(x,$)},C.render=function(){var p=this,v=this.props,x=v.children,k=v.className,$=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var R=v.resizeHandles;v.transformScale;var N=u(v,a);return(0,r.cloneElement)(x,d(d({},N),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(x.props.children,R.map(function(M){var F,L=(F=p.handleRefs[M])!=null?F:p.handleRefs[M]=e.createRef();return e.createElement(t.DraggableCore,s({},$,{nodeRef:L,key:"resizableHandle-"+M,onStop:p.resizeHandler("onResizeStop",M),onStart:p.resizeHandler("onResizeStart",M),onDrag:p.resizeHandler("onResize",M)}),p.renderResizeHandle(M,L))}))}))},_}(e.Component);return Td.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Td}var kd={},zE;function NZ(){if(zE)return kd;zE=1,kd.__esModule=!0,kd.default=void 0;var e=s(A),t=i(Kf()),r=i(JT()),n=ZT(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:C})(_)}function s(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var h=o(C);if(h&&h.has(_))return h.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,h&&h.set(_,p),p}function u(){return u=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var h=arguments[C];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(_[p]=h[p])}return _},u.apply(this,arguments)}function c(_,C){var h=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);C&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),h.push.apply(h,p)}return h}function d(_){for(var C=1;C<arguments.length;C++){var h=arguments[C]!=null?arguments[C]:{};C%2?c(Object(h),!0).forEach(function(p){f(_,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(h)):c(Object(h)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(h,p))})}return _}function f(_,C,h){return C=g(C),C in _?Object.defineProperty(_,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):_[C]=h,_}function g(_){var C=b(_,"string");return typeof C=="symbol"?C:String(C)}function b(_,C){if(typeof _!="object"||_===null)return _;var h=_[Symbol.toPrimitive];if(h!==void 0){var p=h.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}function y(_,C){if(_==null)return{};var h={},p=Object.keys(_),v,x;for(x=0;x<p.length;x++)v=p[x],!(C.indexOf(v)>=0)&&(h[v]=_[v]);return h}function w(_,C){_.prototype=Object.create(C.prototype),_.prototype.constructor=_,S(_,C)}function S(_,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,v){return p.__proto__=v,p},S(_,C)}var E=function(_){w(C,_);function C(){for(var p,v=arguments.length,x=new Array(v),k=0;k<v;k++)x[k]=arguments[k];return p=_.call.apply(_,[this].concat(x))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function($,R){var N=R.size;p.props.onResize?($.persist==null||$.persist(),p.setState(N,function(){return p.props.onResize&&p.props.onResize($,R)})):p.setState(N)},p}C.getDerivedStateFromProps=function(v,x){return x.propsWidth!==v.width||x.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var h=C.prototype;return h.render=function(){var v=this.props,x=v.handle,k=v.handleSize;v.onResize;var $=v.onResizeStart,R=v.onResizeStop,N=v.draggableOpts,M=v.minConstraints,F=v.maxConstraints,L=v.lockAspectRatio,I=v.axis;v.width,v.height;var T=v.resizeHandles,D=v.style,B=v.transformScale,V=y(v,a);return e.createElement(r.default,{axis:I,draggableOpts:N,handle:x,handleSize:k,height:this.state.height,lockAspectRatio:L,maxConstraints:F,minConstraints:M,onResizeStart:$,onResize:this.onResize,onResizeStop:R,resizeHandles:T,transformScale:B,width:this.state.width},e.createElement("div",u({},V,{style:d(d({},D),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},C}(e.Component);return kd.default=E,E.propTypes=d(d({},n.resizableProps),{},{children:t.default.element}),kd}var BE;function FZ(){return BE||(BE=1,Rd.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Rd.exports.Resizable=JT().default,Rd.exports.ResizableBox=NZ().default),Rd.exports}var jZ=FZ();const LZ=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:s,editable:u,formitem:c,dataIndex:d,...f}=e,g=A.useRef(),b=()=>{const C=u?c&&c.props&&c.props.disabled:!0;if(!C&&s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&s)return{fontWeight:"400"};if(!C&&!s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&!s)return{fontWeight:"400"}},y=Sa({resizing:!1}),[w,S]=A.useState(0);A.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(h=>h.addEventListener("click",p=>!1))},[]);const[E,_]=A.useState(0);return!i||d==="id"?H.jsx("th",{...f,onClick:o,style:{...f.style,...b()},onKeyDown:()=>{},className:`${f.className} ${s?"frontend-table-column-required":""}`}):H.jsx(jZ.Resizable,{axis:"x",width:i+E,height:0,handle:H.jsx("span",{onClick:C=>{C.stopPropagation(),C.preventDefault()},className:ge(["react-resizable-handle",E&&"active"])}),onResize:(C,{size:h,...p})=>{const v=document.getElementById("table-resize-handle");if(v){const x=document.getElementById(`table_key_${e.tableKey}`);C.pageX>x.getBoundingClientRect().left+x.getBoundingClientRect().width||C.pageX<x.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${p.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${C.pageX}px`)}t(C),y.resizing=!0,_(h.width-i)},onResizeStop:(...C)=>{var h;C[0].stopPropagation(),(h=document.getElementById("table-resize-handle"))==null||h.remove(),r(),_(0),a(...C),setTimeout(()=>{y.resizing=!1})},onResizeStart:C=>{document.getElementById(`table_key_${e.tableKey}`);const h=document.createElement("div");h.id="table-resize-handle",document.body.appendChild(h),y.resizing=!0,C.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:H.jsx("th",{ref:g,onClick:(...C)=>{!y.resizing&&o&&o(...C)},...f,style:{...f.style,...b()},onKeyDown:()=>{},className:`${f.className} ${s?"frontend-table-column-required":""}`})})};function Rf(){return Rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rf.apply(this,arguments)}function QT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var eP=A.createContext({});function zZ(){return A.useContext(eP)}var BZ=function(t){return A.createElement(eP.Provider,{value:t.refTracker},t.children)};function HZ(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Dp=HZ();function VZ(e){var t=A.useRef();return A.useEffect(function(){t.current=e},[e]),t.current}function UZ(){return A.useRef(new Map).current}var HE={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Dp.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Dp.emit(0)}};function qZ(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),HE.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){HE.hideAll()}}}function WZ(){var e=new Map,t,r,n,a,i=!1;function o(w){a=w,t=-1,n=!0}function s(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function c(){return Array.from(a[t].submenuRefTracker.values())}function d(){return t===-1?(f(),!1):!0}function f(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),s()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),s()}function b(){if(d()&&u()){var w=c(),S=a[t].node;return e.set(S,{isRoot:n,focusedIndex:t,parentNode:r||S,items:a}),S.classList.add("react-contexify__submenu--is-open"),r=S,w.length>0?(t=0,a=w):i=!0,n=!1,s(),!0}return!1}function y(){if(d()&&!n){var w=e.get(r),S=w.isRoot,E=w.items,_=w.focusedIndex,C=w.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=C,S&&(n=!0,e.clear()),i||(t=_,s())}}return{init:o,moveDown:f,moveUp:g,openSubmenu:b,closeSubmenu:y}}var jy=function(){};function tP(e){return typeof e=="function"}function rP(e){return typeof e=="string"}function YZ(e){return e.type==="touchend"}function GZ(e,t){return A.Children.map(A.Children.toArray(e).filter(Boolean),function(r){return A.cloneElement(r,t)})}function KZ(e){var t={x:0,y:0};return YZ(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function VE(e,t){return tP(e)?e(t):e}function XZ(e){return!!(e&&(rP(e)||"exit"in e&&e.exit))}function ZZ(e,t){return tP(t)?Rf({},e,t(e)):Rf({},e,t)}var JZ=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,s=t.children,u=t.animation,c=u===void 0?"scale":u,d=t.onHidden,f=d===void 0?jy:d,g=t.onShown,b=g===void 0?jy:g,y=QT(t,["id","theme","style","className","children","animation","onHidden","onShown"]),w=A.useReducer(ZZ,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),S=w[0],E=w[1],_=A.useRef(null),C=A.useRef(!1),h=VZ(S.visible),p=UZ(),v=A.useState(function(){return WZ()}),x=v[0];A.useEffect(function(){return C.current=!0,Dp.on(n,k).on(0,$),function(){Dp.off(n,k).off(0,$)}},[n]),A.useEffect(function(){C.current&&S.visible!==h&&(S.visible?b():f())},[S.visible,f,b]),A.useEffect(function(){S.visible?x.init(Array.from(p.values())):p.clear()},[S.visible,x,p]),A.useEffect(function(){if(S.visible){var z=window,U=z.innerWidth,G=z.innerHeight,X=_.current,K=X.offsetWidth,ne=X.offsetHeight,ae=S.x,ie=S.y;ae+K>U&&(ae-=ae+K-U),ie+ne>G&&(ie-=ie+ne-G),E({x:ae,y:ie})}},[S.visible]),A.useEffect(function(){function z(U){switch(U.preventDefault(),U.key){case"Enter":x.openSubmenu()||$();break;case"Escape":$();break;case"ArrowUp":x.moveUp();break;case"ArrowDown":x.moveDown();break;case"ArrowRight":x.openSubmenu();break;case"ArrowLeft":x.closeSubmenu();break}}return S.visible&&(window.addEventListener("resize",$),window.addEventListener("contextmenu",$),window.addEventListener("click",$),window.addEventListener("scroll",$),window.addEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",$)),function(){window.removeEventListener("resize",$),window.removeEventListener("contextmenu",$),window.removeEventListener("click",$),window.removeEventListener("scroll",$),window.removeEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",$)}},[S.visible,x]);function k(z){var U=z.event,G=z.props,X=z.position;U.stopPropagation();var K=X||KZ(U),ne=K.x,ae=K.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:ne,y:ae,triggerEvent:U,propsFromTrigger:G})},0)}function $(z){var U=z;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(XZ(c)?E(function(G){return{willLeave:G.visible}}):E(function(G){return{visible:G.visible?!1:G.visible}}))}function R(){S.willLeave&&S.visible&&E({visible:!1,willLeave:!1})}function N(){if(!c)return null;if(rP(c)){var z;return Dl((z={},z["react-contexify__will-enter--"+c]=c&&M&&!D,z["react-contexify__will-leave--"+c+" react-contexify__will-leave--'disabled'"]=c&&M&&D,z))}else if("enter"in c&&"exit"in c){var U;return Dl((U={},U["react-contexify__will-enter--"+c.enter]=c.enter&&M&&!D,U["react-contexify__will-leave--"+c.exit+" react-contexify__will-leave--'disabled'"]=c.exit&&M&&D,U))}return null}var M=S.visible,F=S.triggerEvent,L=S.propsFromTrigger,I=S.x,T=S.y,D=S.willLeave,B=Dl("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),N()),V=Rf({},i,{left:I,top:T,opacity:1});return A.createElement(BZ,{refTracker:p},M&&A.createElement("div",Object.assign({},y,{className:B,onAnimationEnd:R,style:V,ref:_,role:"menu"}),GZ(s,{propsFromTrigger:L,triggerEvent:F})))},UE=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,s=t.data,u=t.propsFromTrigger,c=t.onClick,d=c===void 0?jy:c,f=t.disabled,g=f===void 0?!1:f,b=t.hidden,y=b===void 0?!1:b,w=QT(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),S=zZ(),E={data:s,triggerEvent:o,props:u},_=VE(g,E),C=VE(y,E);function h(k){E.event=k,_?k.stopPropagation():d(E)}function p(k){k&&!_&&S.set(k,{node:k,isSubmenu:!1})}function v(k){k.key==="Enter"&&(E.event=k,d(E))}if(C)return null;var x=Dl("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=_,r));return A.createElement("div",Object.assign({},w,{className:x,style:i,onClick:h,onKeyDown:v,ref:p,tabIndex:-1,role:"menuitem","aria-disabled":_}),A.createElement("div",{className:"react-contexify__item__content"},n))};const QZ="_box_1ybrt_2",eJ="_transferSearch_1ybrt_2",tJ="_searchBtn_1ybrt_10",rJ="_shuttle_box_1ybrt_40",nJ="_leftSearch_1ybrt_54",aJ="_noBeforeAfter_1ybrt_58",iJ="_rightSearch_1ybrt_74",oJ="_transfer_1ybrt_2",Uo={box:QZ,transferSearch:eJ,searchBtn:tJ,shuttle_box:rJ,leftSearch:nJ,noBeforeAfter:aJ,rightSearch:iJ,transfer:oJ},sJ="_content_1tmh1_1",uJ={content:sJ},nP=A.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,s]=A.useState(a),{TabPane:u}=ue.Tabs;return n?H.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:H.jsx(tc,{})}):(A.useImperativeHandle(t,()=>({active:c=>{(i==null?void 0:i(c))!==!1&&s(c)}}),[o]),H.jsx("div",{className:`${uJ.content} ${e.className??""}`,children:n?H.jsx("div",{style:{padding:"10px"}}):r.length?H.jsx(ue.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:c=>{(i==null?void 0:i(c))!==!1&&s(c)},children:(r||[]).map((c,d)=>H.jsx(u,{tab:H.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[c.icon&&H.jsx(Dt,{style:{marginRight:"5px",fontSize:"16px"},type:`${c.icon}`}),H.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:c.tab})]}),children:H.jsx("div",{style:{padding:"0px"},children:A.Children.map(e.children,f=>{var g;return((g=f==null?void 0:f.props)==null?void 0:g["data-key"])==c.tabKey?f:null})})},`${c.tabKey}`))}):H.jsx(H.Fragment,{})}))}),lJ=A.forwardRef((e,t)=>{var V;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=A.useState(!1),[o,s]=A.useState(),[u,c]=A.useState(r),[d,f]=A.useState([]),[g,b]=A.useState(n),[y,w]=A.useState({[n]:{left:1,right:1}}),[S,E]=A.useState({[n]:{left:0,right:0}}),[_,C]=A.useState(""),[h,p]=A.useState({right:"",left:""}),[v,x]=A.useState(!1),[k,$]=A.useState({});A.useEffect(()=>{c(r),b(n),w({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),A.useEffect(()=>{a?I():(c(r),s(void 0),b(n),w({[n]:{left:1,right:1}}),C(""),p({right:"",left:""}),$({}))},[a]);const R=di(h),N=di(y),M=di(g),F=di(S),L=A.useMemo(()=>{const z=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[M.current])||[]};return _e.uniqBy([...z(),...d],"id")},[M,g,e.allListOptions,o,d]),I=async z=>{x(!0),await e.getListCodeItem(Object.assign({search:R.current,tabKey:M.current,pageNo:N},_e.omit(z||{},"isPaging"))).then(U=>{U&&(z!=null&&z.isPaging?s([...L,...U]):s([...U]),E(Object.assign({},F.current,{[M.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{x(!1)})};A.useEffect(()=>{f(L.filter(z=>u.includes(z.id)))},[u]);const T=async()=>{var z,U;if(e.mandatory&&!u.length)return ue.message.error(`${J("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(z=e.attr)==null?void 0:z.name}`);(U=k.ok)==null||U.call(k,[...u],g,d),i(!1)};A.useImperativeHandle(t,()=>({open(z){$(()=>z),i(!0)},submit:T,dataSource:L,targetKeys:u,loading:v}),[L,u,v]);const D=z=>{z=="left"?I():C(R.current.right)},B=A.useMemo(()=>{var z;return Array.isArray(e.columns)?e.columns:((z=e.columns)==null?void 0:z[g])||[]},[e.columns,g]);return H.jsx($u,{className:Uo.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:T,onCancel:()=>{var z;(z=k.cancel)==null||z.call(k),i(!1)},children:H.jsx("div",{className:Uo.transferBox,children:H.jsx(tc,{spinning:v,children:H.jsx(ue.Transfer,{...e.transfer||{},className:`${Uo.transfer} ${((V=e.transfer)==null?void 0:V.className)??""}`,dataSource:L,targetKeys:u,onChange:(z,U,G)=>{U=="right"?c([...e.isRadio?G:z]):c([...z])},rowKey:z=>z.id,children:z=>{var me,ee,ve,se,fe,he,ke,Te;const{direction:U,filteredItems:G,onItemSelectAll:X,onItemSelect:K,selectedKeys:ne,showSearch:ae}=z,ie=U=="left",de=!ie,pe={onSelectAll(xe,$e){if(e.isRadio)return;const Pe=$e.filter(Ee=>!Ee.disabled).map(({id:Ee})=>Ee),Me=xe?_e.difference(Pe,ne):_e.difference(ne,Pe);X(Me,xe)},onSelect({id:xe},$e){e.isRadio&&ne.splice(0,1),K(xe,$e)},getCheckboxProps:xe=>({disabled:xe.Number&&!fi.readPermission(xe.Number)?!0:ie?xe.disabled:!1}),selectedRowKeys:ne,columnWidth:13};(me=e==null?void 0:e.pager)!=null&&me[g];const be=()=>ie?G:G.filter(xe=>xe.label.includes(_)||xe.Description.includes(_));return H.jsxs("div",{className:Uo.box,style:e.scroll?{width:"360px"}:{},children:[ie&&e.panes&&((ee=e.panes)==null?void 0:ee.length)!=1?H.jsx(nP,{panes:e.panes,defaultActiveKey:g,onTabClick:xe=>{var Pe;b(xe),(Pe=e.onTabsChange)==null||Pe.call(e,xe);const $e={...h,[U]:""};p($e),N.current[xe]||w(Object.assign({},N.current,{[xe]:{left:1,right:1}})),I({tabKey:xe,search:$e})}}):null,ae?H.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:H.jsx("div",{className:`${e.scroll?Uo.noBeforeAfter:""} ${Uo.transferSearch} ${ie&&((ve=e.panes)!=null&&ve.length)?Uo.leftSearch:(se=e.panes)!=null&&se.length?Uo.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:H.jsx(ue.Input.Search,{placeholder:e.placeholder||J("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:h[U],onChange:xe=>{xe.persist();const $e=xe.target.value;p({...h,[U]:$e}),de&&($e||C(""))},onSearch:D.bind(null,U),suffix:H.jsx("div",{className:Uo.searchBtn,onClick:D.bind(null,U),children:H.jsx(Dt,{type:"homesearch"})})})})}):null,H.jsx(Sm,{rowSelection:{type:"checkbox",fixed:!0,...pe},columns:B,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((fe=e.scroll)==null?void 0:fe.x)||300,y:((he=e.scroll)==null?void 0:he.y)||(ie&&((ke=e.panes)!=null&&ke.length)?270:316)},style:{height:"100%"},pageNo:y[g][U],pageSize:ie?20:void 0,total:ie?(Te=S==null?void 0:S[g])==null?void 0:Te[U]:void 0,size:"small",onScroll:xe=>{const $e={...y,[g]:{...y[g],[U]:xe}};w($e),ie&&I({pageNo:$e[g],isPaging:!0})},onRow:({id:xe,disabled:$e,...Pe})=>({onClick:()=>{if(!$e&&ie){if(e.isRadio&&ne.splice(0,1),!fi.readPermission(Pe.Number))return;K(xe,!ne.includes(xe))}},onDoubleClick:()=>{if(fi.readPermission(Pe.Number)){if(ie)$e||(e.isRadio?c([xe]):c([xe,...u]));else{for(let Me=0;Me<u.length;Me++)if(u[Me]==xe){u.splice(Me,1);break}c([...u])}X([],!1)}}})}),e.showFooter?H.jsxs("div",{style:{marginTop:"4px"},children:[H.jsx("span",{style:{color:"#999999"},children:J("sys.selected",{placeholder:"已选"})})," ",H.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ne.length})," ",H.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",H.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",H.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:de?u.length:S[g][U]}),H.jsxs("span",{style:{color:"#999999"},children:[" ",J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):H.jsx(H.Fragment,{})]})}})})})})}),aP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,w;const i=A.useRef(null),{attr:o,allListOptions:s,popoverTransfer:u}=e,c=xu(()=>{var S;(S=i.current)==null||S.open({ok:(E,_,C)=>{var h,p;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(h=u==null?void 0:u.onSubmit)==null||h.call(u,E,_,v=>f({newVal:E,allOptions:v}),C),(p=e.onBlur)==null||p.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});A.useImperativeHandle(a,()=>({focus:c}),[]);const d=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(s||{}).map(([_,C])=>S.includes(_)?C:[]).flat(1)},[o,s,u==null?void 0:u.panes]),f=xu(({allOptions:S,newVal:E})=>{var h;const _=((h=u==null?void 0:u.panes)==null?void 0:h.map(p=>p.tabKey))||[o==null?void 0:o.listCode];let C=[];return Object.entries(S||s||{}).some(([p,v])=>{if(_.includes(p))return v.some(x=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(x.value)&&!C.includes(p)&&C.push(p),!1;{const k=x.value==((E==null?void 0:E[0])||t);return k&&(C=[p]),k}})}),C.filter(Boolean).join(",")}),g=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[o==null?void 0:o.listCode];return S.length==1?S[0]:f({}).split(",")[0]},[t,s,u==null?void 0:u.panes]),b=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return H.jsxs("div",{children:[H.jsx(gu,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:b,filterOption:(S,E)=>E.label&&E.label.indexOf(S)>=0,showSearch:!0,disabled:n,options:d.map(S=>({...S,label:fi.readPermission(S.label)?S.label:J("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:S=>{["multiple","tags"].includes(e.mode)?r==null||r(S):S&&S instanceof Array?r==null||r(S[0]):r==null||r("")},tagRender:({label:S})=>fi.readPermission(S)?H.jsx(ue.Tag,{color:"#0563B2",children:S}):H.jsx(co,{}),onDropdownVisibleChange:c,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),H.jsx(lJ,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((w=(y=u==null?void 0:u.panes)==null?void 0:y[0])==null?void 0:w.tabKey)||"",defaultValue:b,allListOptions:s})]})}),cJ="_shuttle_box_1962p_1",dJ="_box_1962p_5",fJ="_search_1962p_8",C0={shuttle_box:cJ,box:dJ,search:fJ};function qE(e){const t=A.useRef(!1),r=A.useRef({}),n=u=>{if(typeof e=="function"){const c=e();return!u&&(r.current=c),Object.assign(Object.create(null),c)}else{const c=e;return!u&&(r.current=c),Object.assign(Object.create(null),e)}},[a,i]=A.useState(n(!0));A.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const c=Object.assign(Object.create(null),u(a)||a);r.current=c,i(c)}else{const c=Object.assign(Object.create(null),r.current,u);r.current=c,i(c)}},s=()=>i(n());return _r.makeDestructurable({store:a,setStore:o,resetStore:s,latestStore:r},[a,o,s,r])}const iP=A.forwardRef((e,t)=>{var S,E,_,C;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((S=e.attr)!=null&&S.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:o,resetStore:s,latestStore:u}=qE(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),c=qE(()=>({pageNo:1,pageSize:50,total:0})),d=async h=>{o({loading:!0});try{const{data:p,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...c.latestStore.current,record:e.record});o(h?{dataSource:[...i.dataSource,...p]}:{dataSource:p}),c.setStore({total:v})}catch(p){console.log(p)}finally{o({loading:!1})}},f=A.useMemo(()=>i.selectedRows.map(h=>h[r]),[i.selectedRows]);A.useEffect(()=>{i.visible?d().finally(()=>{}):(s(),c.resetStore())},[i.visible]);const g=xu(async h=>{var p,v,x;if(a&&!h&&!i.selectedRows.length){ue.message.error(J("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(p=e.attr)==null?void 0:p.name}}));return}(x=(v=u.current.callback).ok)==null||x.call(v,h?[h[r]]:f),o({visible:!1})});A.useImperativeHandle(t,()=>({open(h){o({callback:h,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const b=()=>{d()},y={onSelectAll(h,p){n||o({selectedRows:p})},onSelect(h,p){n?p?o({selectedRows:[h]}):a||o({selectedRows:[]}):o(p?{selectedRows:[...i.selectedRows,h]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=h[r])})},getCheckboxProps:h=>({disabled:!1}),selectedRowKeys:f,columnWidth:13},w=A.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return A.useEffect(()=>{const h=_e.debounce(p=>{(p.keyCode||p.which)==13&&u.current.visible&&p.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",h),()=>{window.removeEventListener("keyup",h)}},[]),H.jsx($u,{className:C0.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var h,p;o({visible:!1}),(p=(h=u.current.callback).cancel)==null||p.call(h)},footer:null,children:H.jsx("div",{onScroll:h=>h.stopPropagation(),onScrollCapture:h=>h.stopPropagation(),children:H.jsx(tc,{spinning:i.loading,children:H.jsxs("div",{className:C0.box,children:[H.jsx("div",{children:H.jsx("div",{className:`${C0.search}`,children:H.jsx(ue.Input.Search,{placeholder:J("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:H.jsx("div",{className:C0.searchBtn,onClick:b,children:H.jsx(Dt,{type:"homesearch"})}),value:i.search,onChange:h=>o({search:h.target.value}),onSearch:b})})}),H.jsx(Sm,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:w,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(_=e.scroll)==null?void 0:_.x,y:((C=e.scroll)==null?void 0:C.y)||300},style:{height:"100%"},...c.store,size:"small",onScroll:h=>{c.setStore({pageNo:h}),d(!0)},onFilterAndSorter:(h,p)=>{o({sorters:h,filters:p}),d()},onRow:(h,...p)=>({onClick:()=>{console.log(h,p,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(h)}})})]})})})})}),oP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=A.useRef(null),{attr:o,allListOptions:s,selectPopupProps:u,record:c}=e,d=xu(()=>{var b;(b=i.current)==null||b.open({ok:y=>{var w,S,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(w=e.onChange)==null||w.call(e,y,s[o.listCode]||[])):((S=e.onChange)==null||S.call(e,y[0],s[o.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});A.useImperativeHandle(a,()=>({focus:d}),[]);const f=A.useMemo(()=>_e.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return H.jsxs("div",{children:[H.jsx(gu,{...f,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,disabled:n,options:s[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:d}),H.jsx(iP,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:c,defaultValue:g})]})}),Q1=[null,(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function hJ(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Le(n.date);return((i=Q1[n.type])==null?void 0:i.call(Q1,a,Le(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const WE={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},pJ=A.forwardRef((e,t)=>{const r=A.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;A.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const o=A.useMemo(()=>{var d,f;const u=g=>(g==null?void 0:g.closest(xm))||document.body||document.documentElement;(d=e==null?void 0:e.formprops)!=null&&d.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let c={getPopupContainer:u};return n.includes(i)?c={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(c={...e.formprops.props,size:"small",onChange:((f=e.formprops)==null?void 0:f.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onRemove,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(c,e.record,e.apicode):c},[e.record,e.formprops,e.onSave]),s=()=>{var c;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((c=u.options[e.record.insId][0])!=null&&c.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},H.jsx(ue.Input,{ref:r,...u})):H.jsx(ue.Select,{ref:r,filterOption:(d,f)=>f.label&&f.label.indexOf(d)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(d=>({label:d.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:d.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return H.jsx(ue.Input,{ref:r,...u});case"DatePicker.RangePicker":return H.jsx(ue.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Ns.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Ns.isStatusChange(g.itemcode)?Ns.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[WE[e.record.extension]]){const g=u.options[WE[e.record.extension]].map(b=>({label:b,value:b}));return H.jsx(ue.Select,{ref:r,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var b;!((b=e==null?void 0:e.record)!=null&&b.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return H.jsx(oP,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return H.jsx(aP,{ref:r,selectProps:u})}return H.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return H.jsx(ue.Cascader,{ref:r,showSearch:{filter:(g,b)=>b.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const d=e.record.forbiddenTime,f=d&&d[e.name];return H.jsx(ue.DatePicker,{ref:r,...u,disabledDate:f?g=>hJ(d[e.name],g):void 0});case"Number":return H.jsx(ue.InputNumber,{ref:r,...u});case"Input.TextArea":return H.jsx(ue.Input.TextArea,{ref:r,...u});case"TreeSelect":return H.jsx(ue.TreeSelect,{ref:r,...u});case"CompositeForm":return H.jsx(Xf,{...u});default:return H.jsx(ue.Input,{ref:r,...u})}};return H.jsx(ue.Form.Item,{noStyle:!0,name:e.name,children:s()})}),mJ="_imgOuter_16ygq_1",gJ="_imgInner_16ygq_9",YE={imgOuter:mJ,imgInner:gJ},vJ=e=>H.jsx("img",{...e,src:e.src}),sP=e=>H.jsx(ue.Image,{...e,src:e.src}),Ly=e=>H.jsx("div",{className:YE.imgOuter,children:H.jsx(sP,{preview:!1,src:e.src,className:YE.imgInner,placeholder:H.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:H.jsx(Dt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),Qt=class Qt{static avoid0TypeConvert(t){return _r.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Le.isMoment(a)?_r.momentToRawData(a):a??""}return t=n(t),r=n(r),_e.isNil(t)&&_e.isNil(r)||_e.isNaN(t)&&_e.isNaN(r)?!0:t instanceof Object?_e.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!_e.isNil(t.inProcess[r])&&!_e.isNil(t.inProcess)&&Qt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!_e.isNil(t.newVal[r])&&!_e.isNil(t.newVal)&&Qt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],o=a.map(u=>{const c=t.inProcess[u],d=t[u],f=Qt.isEqual(c,d);return r==null||r("inProcess",u,f,c,d),f}).some(u=>!u),s=i.map(u=>{const c=t.newVal[u],d=t[u],f=Qt.isEqual(c,d);return r==null||r("newVal",u,f,c,d),f}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:s}}static isEmptyValue(t){return typeof t=="number"?!1:_e.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:s}=t;const u=Ns.isUser(i.itemCode||""),c=i.tab==="Delegate";if(u&&c&&s){const d=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),f=_e.map(s.split("~!~"),g=>_e.split(g,"-")[0]);_e.includes(f,d[0])?s.split("~!~").map(g=>{if(d.includes(g.split("-")[0])){const b=g.split("-")[1].split(",");b&&Array.isArray(b)&&(_e.remove(b,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&_e.forEach(y.formitem.props.options,w=>{_e.includes(b,w.itemCode)?w.isHidden=!1:w.isHidden=!0,b.length==0&&(w.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&_e.forEach(g.formitem.props.options,b=>{b.isHidden=!1}),g))}if(i.tab!=="History"){const d=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),f=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=Qt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(b=>b.attr)});o=(g==null?void 0:g.value)||o}else d.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":f.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(s){const g=r.filter(b=>["OldVersion"].includes(b.apicode)).map(b=>b.dataIndex);s=s.split("~!~").map(b=>{if(console.log(b,"item"),g.includes(b.split("-")[0]))return`current.${b.split("-")[0]}-${b.split("-")[1]===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${b.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(b.split("-")[0])){const y=Qt.getFixAttrFilterOrSortInfo({filterOrSort:b,attrs:n||r.map(w=>w.attr)});return(y==null?void 0:y.value)||s}if(d.includes(b.split("-")[0]))return b?`attributes.${b}`:"";if(f.includes(b.split("-")[0]))return b?`current.${b}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const d=_r.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${d.Revision}`),s=s.replace("insVersionOrder",`attributes.${d.Revision}`)}return{sorters:o,filters:s,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let s=null;return i&&(s=new MutationObserver(async(c,d)=>{const[f]=c;if(f.type=="attributes"&&f.attributeName=="style"&&!i.inhibit&&!_e.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const b=Number(g)-i.offsetWidth,y=a.children.length-2,w=_e.round(b/y,2);Array.from(a.children,(S,E)=>{const _=o.children[E];if(S==i)S.setAttribute("style",`width:${g}px;max-width:${g}px;`),_.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const C=S.style.width.replace("px","");S.setAttribute("style",`width:${Number(C)+w}px;`),_.setAttribute("style",`width:${Number(C)}px;`)}})}}else i.inhibit=!1}),s.observe(i,{attributeFilter:["style"]})),()=>{s==null||s.disconnect(),s=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([s,u])=>n==u)||[];if(o){const s=_r.getAttrOf(r,o);if(s){s.apicode==="Version"&&(a=a===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=ql.getAttributesMapId(s),c=ql.isQuoteAttr(s)?"attributes":"current";return{apicode:o,id:u,attr:s,filterOrSortValue:a,prefix:c,value:`${c}.${u}-${a}`}}}}}};Ar(Qt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var s;return r&&r[0]?_e.isArray(r[0])&&t?(s=t.props)!=null&&s.treeCheckable||t.props.mode==="multiple"?Qt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Qt.renderReadonlyItem({value:r[0],formitem:t}):Le.isMoment(r[0])?[Le(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Ar(Qt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(fi.isMosaic(a))return H.jsx(co,{});const{trulyHighlight:i,needTransform:o}=Qt.getTrulyHighlight({highlight:t,formitem:r});return o?H.jsx(rs,{highlight:i,value:n}):n}),Ar(Qt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!_e.isNil(t.newVal[r])))if(Qt.isEqual(t.newVal[r],t[r])){if(Qt.isEqual(t.newVal[r],t[r]))return H.jsx("div",{style:{width:"100%"},children:H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Qt.isEqual(t.inProcess[r],t[r]))return H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Qt.wrapperHighLight({originValue:t.inProcess[r],value:Qt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Qt.isEqual(t.newVal[r],t[r])?H.jsxs("div",{style:{width:"100%"},children:[H.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),H.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):H.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Ar(Qt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,s,u,c,d;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?_e.isArray(n)&&n instanceof Array?n.map(f=>_r.getLabelInOptions({value:f,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(f=>_r.getLabelInOptions({value:f,options:(r==null?void 0:r.props.options)||[]})).join(","):"":_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&_e.isArray(n)&&n instanceof Array?n.map(f=>_r.getLabelInOptions({value:typeof f!="string"?f.value:f,options:(r==null?void 0:r.props.treeData)||[]})).join(","):_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Le.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return Le(n).format(((s=r==null?void 0:r.props)==null?void 0:s.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!_e.isArray(n)?H.jsx(ue.Popover,{placement:"right",content:H.jsx("div",{style:{height:"60px",width:"60px"},children:n?H.jsx(Ly,{src:`/api${n}`}):H.jsx(H.Fragment,{})}),trigger:"hover",children:H.jsx("div",{style:{height:"26px",width:"26px"},children:n?H.jsx(Ly,{src:`/api${n}`}):H.jsx(H.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((d=_e.find((c=r.props)==null?void 0:c.options,{id:n.split("~%~")[1]}))==null?void 0:d.name)||""}`:n:"":r.isbomtag&&!_e.isArray(n)&&!(n instanceof Array)?n?_r.renderBomTag(n):"":_e.isArray(n)&&n instanceof Array?n.join(","):n??""}),Ar(Qt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Ar(Qt,"renderVersionColumn",(t,r)=>fi.isMosaic(t)?H.jsx(co,{}):t==="Draft"||_e.isString(t)&&t.split(" ")[0]==="Draft"?H.jsx(rs,{highlight:r||[],value:J("sys.label.draft",{placeholder:"草稿"})}):H.jsx(rs,{highlight:r||[],value:_e.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Jo=Qt;const bJ=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:s,handleDoubleClick:u,renderCacheCell:c,loading:d,required:f,formitem:g,rowKey:b,render:y,tableKey:w,menuId:S,highlight:E,isVersion:_,isUser:C,preRender:h,apicode:p,canselectcell:v,selectedCell:x,fillContextMenu:k,setInitialState:$,...R})=>{var me,ee,ve;const N=A.useContext(Uf),[M,F]=A.useState(!1),L=A.useContext(Uw),I=A.useRef(null),T=["Input","Input.TextArea","Number"];v&&x&&(x==null?void 0:x.dataIndex)===n&&(x==null?void 0:x.record[b])==a[b]&&(x==null?void 0:x.tableKey)==w&&(R.style={...R.style,background:"#ddeffe"}),A.useEffect(()=>{var se,fe;M?(se=I.current)==null||se.focusFormItem():(fe=I.current)==null||fe.blurFormItem()},[M]);const D=se=>{for(;se&&se.nodeName!=="TR";)se=se.parentNode;return se},B=async(se,fe)=>{var Te,xe,$e;const he=()=>{if(!(!e&&!n)&&fe){const Pe=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});D(fe==null?void 0:fe.target)&&D(fe==null?void 0:fe.target).dispatchEvent(Pe)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){he();return}if(se?u&&await u(a):!0){if(await L.validateFields(),se){let Pe=a.newVal&&!_e.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!_e.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Me=(Te=g.props)==null?void 0:Te.format;Pe=Pe?Le(Pe,typeof Me=="string"?Me:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((xe=g==null?void 0:g.props)!=null&&xe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&(($e=g==null?void 0:g.props)==null?void 0:$e.mode)==="multiple")&&(Pe==""?Pe=[]:typeof Pe=="string"&&(Pe=Pe.split(","))),L.setFieldsValue({[n]:Pe})}F(!M)}else he()},V=async()=>{try{const se=await L.validateFields();B(),Object.keys(se).forEach(fe=>{(se[fe]===null||se[fe]===void 0)&&(se[fe]=""),typeof se[fe]=="string"&&(se[fe]=se[fe].trim())}),i({...a,...se})}catch{}},z=(se,fe)=>c||H.jsx("div",{className:ki.edit_cell,children:H.jsx(rs,{value:Jo.renderReadonlyItem({value:se[fe],formitem:g}),highlight:ie})}),{show:U}=qZ({id:S}),G=()=>{v&&o({dataIndex:n,record:a,tableKey:w})},X=se=>{if(n){if(G(),se.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(se,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const ne=a?a[n]:"",ae=A.Children.map(r,se=>{var fe;if(A.isValidElement(se)){const he=(fe=se==null?void 0:se.props)==null?void 0:fe.children;return!he||!Array.isArray(he)?null:he.some(Te=>{const xe=Te==null?void 0:Te.props;return xe&&typeof xe.className=="string"?xe.className.includes("frontend-table-row-indent"):!1})?he:null}else return null});if(!fi.readPermission(ne))return H.jsxs("td",{...R,children:[ae,H.jsx(co,{inLine:!0})]});const{trulyHighlight:ie}=Jo.getTrulyHighlight({highlight:E,formitem:g});if(C){const se=(N==null?void 0:N.linkInstanceCom)||"a";K=H.jsx(se,{userId:a[n],id:a[n],record:a,content:Jo.renderReadonlyItem({value:a[n],formitem:g}),highlight:ie})}else if(t){if(g.type==="Date"){const se=(me=g.props)==null?void 0:me.format,fe=typeof se=="string";let he,ke;if(Le.isMoment(a[n])){const Te=a[n].creationData();he=Te==null?void 0:Te.input,ke=Te==null?void 0:Te.format}a[n]=a[n]?Le(he||a[n],fe?se:ke||"YYYY-MM-DD HH:mm:ss"):null}if(((ee=g.props)!=null&&ee.treeCheckable||((ve=g.props)==null?void 0:ve.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),M)K=H.jsx("div",{onDoubleClick:se=>{se.stopPropagation()},children:H.jsx(ue.Form.Item,{validateTrigger:T.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:H.jsx(pJ,{name:n,ref:I,onSave:()=>V(),formprops:g,record:a,apicode:p,onRemove:()=>{setTimeout(()=>{F(!1)},200)}})})});else if(!y){let se=z(a,n);K=H.jsxs("div",{onContextMenu:k===!1?void 0:X,title:a.newVal?Jo.renderReadonlyItem({value:a.newVal[n],formitem:g}):Jo.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ae,se]})}}else if(n&&!y)return _?H.jsx("td",{...R,title:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:G,children:H.jsx(rs,{value:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:ie})}):H.jsx("td",{...R,title:a&&a[n]?a[n]:"",onClick:G,children:H.jsx(rs,{value:a?_e.isNil(a[n])?"":a[n]:"",highlight:ie})});const de=K==null?void 0:K.toString(),pe=Array.isArray(K)&&K[0]===void 0,be=de!=null&&de.includes("[object ")?void 0:pe?de==null?void 0:de.replace(/^\,/,""):de;return H.jsx("td",{...R,onDoubleClick:se=>{se.stopPropagation(),B(!0,se)},onClick:()=>{n&&G()},children:H.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},yJ=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},_J=e=>H.jsxs(JZ,{id:e.menuId,children:[H.jsx(UE,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:J("sys.prompt.fillUp",{placeholder:"向上填充"})}),H.jsx(UE,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:J("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),wJ=e=>{const[t,r]=A.useState({}),[n,a]=A.useState({}),i=A.useRef(null),{Option:o}=ue.Select,s=(g,b)=>{r(g),a(b)};return{getColumnSearchProps:A.useCallback((g,b)=>{const y=()=>{var _,C;return typeof(b==null?void 0:b.title)=="string"?b==null?void 0:b.title:(C=(_=b==null?void 0:b.search)==null?void 0:_.props)==null?void 0:C.placeholder},w=(_,C,h)=>{C()},S=(_,C)=>{_(),C()},E=(_,C,h)=>{var x,k;const p={size:"small",onChange:$=>{$&&$.target?_($.target.value?[$.target.value]:[]):_($?[$]:[])},style:{marginBottom:8,display:"block"}},v=H.jsx(ue.Input,{size:"small",ref:i,placeholder:J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:C[0],onPressEnter:()=>w(C,h),..._e.omit(p,["size"])});if(b.search)switch(b.search.type){case"Input":return v;case"Select":let $=(k=(x=b==null?void 0:b.search)==null?void 0:x.props)==null?void 0:k.options;return b.apicode==="ProblemVersion"&&($=_e.uniqBy(_e.flatten(Object.values($||{})),"value")||[],$=$.map(R=>({label:R.label==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):R.label,value:R.value}))),$=($||[]).filter(R=>fi.readPermission(R.label)),H.jsx(ue.Select,{size:"small",onKeyUp:R=>{(R.keyCode===13||R.charCode==13)&&w(C,h)},ref:i,mode:"multiple",placeholder:`${J("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:C[0],filterOption:(R,N)=>N.label&&N.label.indexOf(R)>=0,..._e.omit(p,["size"]),children:($||[]).map(R=>{if(!R.isHidden)return A.createElement(o,{...R,value:R.value,disabled:R.disabled,key:R.value,label:R.label},H.jsx("div",{title:R.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:R.label}))})});case"Date":return H.jsx(ue.DatePicker,{size:"small",value:C[0],..._e.omit(p,["size"])});case"CompositeForm":return H.jsx("div",{className:"compositeFormClass",children:H.jsx(Xf,{...b.formitem.props,valueType:b.valueType,value:C[0],size:"small",..._e.omit(p,["size"])})})}else return v};return b.search?{filterIcon:_=>H.jsx($l,{style:{color:_?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:_,selectedKeys:C,confirm:h,clearFilters:p})=>H.jsxs("div",{style:{padding:8},children:[H.jsx("div",{style:{marginBottom:"5px"},children:E(_,C,h)}),H.jsxs(ue.Space,{children:[H.jsx(ue.Button,{type:"primary",onClick:()=>w(C,h),icon:H.jsx($l,{}),size:"small",style:{width:90},children:J("sys.filter",{placeholder:"筛选"})}),H.jsx(ue.Button,{onClick:()=>S(p,h),size:"small",style:{width:90},children:J("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:_=>{_&&(b.search.type==="Input"||b.search.type==="Select")&&setTimeout(()=>{var C;return(C=i==null?void 0:i.current)==null?void 0:C.focus()},100)}}:{}},[]),setTableFiltered:g=>{s(g.sort(t),g.screen(n))},clearFilters:g=>{s({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,b,y,w)=>{a(b),r(y),s(y,b);let S="",E="";_e.isArray(y)?y&&y.length&&(S=y.map(C=>`${C.field}-${C.order}`).join(",")):y.field&&y.order&&(S=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const _=C=>C.map(h=>Array.isArray(h)?h.join(","):Le.isMoment(h)?h.format("YYYY-MM-DD"):h);E=_e.remove(Object.keys(b).map(C=>b[C]&&typeof b[C][0]=="string"||typeof b[C]!="string"&&b[C]&&b[C][0]?`${C}-${_(b[C]||[]).join(",")}`:null),C=>C!==null).join("~!~"),e&&e(S,E,y.field,b)},sortInfo:t,filterInfo:n}},xJ=e=>{var o,s;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(s=e.rowSelection.selectedRowKeys)==null?void 0:s.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=H.jsx(Dt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?H.jsx(H.Fragment,{}):H.jsxs("div",{className:`${ki.table_footer} ${e.className||""}`,children:[e.hideTableCount?H.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):H.jsxs("div",{style:a,children:[J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),H.jsxs("span",{children:[" ",t,"/",r," "]}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",J("sys.selected",{placeholder:"已选"}),H.jsx("span",{children:` ${n} `}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&H.jsx("div",{children:H.jsx(Dt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},SJ=(e,t,r,n,a,i,o)=>{var h;const[s,u]=A.useState(!1),[c,d]=A.useState(0),[f,g]=A.useState(e.columns||[]),[b,y]=A.useState(null),[w,S]=A.useState(null),E=p=>(v,{size:x})=>{v.stopImmediatePropagation();const k=[...f];k[p]={...k[p],width:x.width},g(k)};A.useEffect(()=>{g(e.columns)},[e.columns]);const _=Number(((h=e==null?void 0:e.scroll)==null?void 0:h.y)||i)+24;return{renderColumns:f?f.filter(p=>p).map((p,v)=>_e.extend({...p,sorter:p.sorter?{}:!1,required:p.editable?p.required:!1,sortOrder:t.field===p.dataIndex&&t.order,filteredValue:r?r[p.dataIndex]||[]:[],onHeaderCell:x=>({dataIndex:p.dataIndex,width:x.width,required:p.required,editable:p.editable,trulyHeight:_,tableKey:e.tableKey,formitem:p.formitem,onResize:E(v),onResizeOver:k=>{d(k.screenX),u(!0)},onResizeStop:k=>{console.log(k),u(!1)}}),onCell:x=>{var R,N;const k=((R=p==null?void 0:p.onCell)==null?void 0:R.call(p,x))||{},$=(typeof e.rowKey=="string"?e.rowKey:(N=e.rowKey)==null?void 0:N.call(e,x))||"id";return{record:x,className:`${p.className??""} ${p.dataIndex==w&&x[$]==b?ki.loading:""}`,editable:p.editable,isVersion:p.isVersion,isUser:p.isUser,apicode:p.apicode,dataIndex:p.dataIndex,title:p.title,formitem:p.formitem,required:p.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:p.render,highlight:r[p.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Jo.renderCacheCell(x,p.dataIndex,p.formitem,void 0,{highlight:r[p.dataIndex]}),handleCellSelected:M=>{e.onSelectCell&&e.onSelectCell(M)},handleDoubleClick:M=>{if(e.onDoubleClick){const F=e.onDoubleClick(p,M);return F instanceof Promise&&(y(x[$]),S(p.dataIndex),F.finally(()=>{y(null),S(null)})),F}else return!0},handleSave:M=>{e.onSubmit&&e.onSubmit(M,p)},...k}}},a(p.dataIndex,p))):[]}},uP="INPUT_NAMESPACE",CJ=(e,t,r,n)=>{const[a,i]=A.useState();function o(s){const u=s.toString(),c=u.indexOf(".");return c===-1?0:u.slice(c+1).length}return A.useEffect(()=>{async function s(u){var b,y,w,S,E,_,C,h,p,v;if(u.target instanceof HTMLInputElement&&((y=(b=u.target)==null?void 0:b.dataset)==null?void 0:y.type)!=uP||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${xm}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let c=(w=u.clipboardData)==null?void 0:w.getData("text");const d=await Promise.resolve().then(()=>require("./xlsx-qn1xoUuv.js"));if(c&&r&&n){var f=d.read(c,{type:"binary"}),g=f.SheetNames;const x=d.utils.sheet_to_json(f.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),k=n.findIndex(N=>{var M,F,L;return N.dataIndex==r.dataIndex&&N.editable&&(((M=N.formitem)==null?void 0:M.type)=="Input"||((F=N.formitem)==null?void 0:F.type)=="Input.TextArea"||((L=N.formitem)==null?void 0:L.type)=="Number")});let $=n.findIndex((N,M)=>{var F,L,I;return M>k&&(!N.editable||!(((F=N.formitem)==null?void 0:F.type)=="Input"||((L=N.formitem)==null?void 0:L.type)=="Input.TextArea"||((I=N.formitem)==null?void 0:I.type)=="Number"))});$==-1&&($=n.length);const R=n.slice(k,$);if(R.length>0){const N=x.map(M=>M.filter(F=>M.indexOf(F)<R.length))||[];for(let M=0;M<N.length;M++){const F=N[M]||[];for(let L=0;L<F.length;L++){const I=F[L],T=((S=R[L].formitem)==null?void 0:S.type)=="Number",D=(_=(E=R[L].formitem)==null?void 0:E.props)==null?void 0:_.precision,B=(h=(C=R[L].formitem)==null?void 0:C.props)==null?void 0:h.min,V=(v=(p=R[L].formitem)==null?void 0:p.props)==null?void 0:v.max;if(T){const z=_e.toNumber(I),U=z&&(B?z>=B:!0)&&(V?z<=V:!0)&&(_e.isNumber(D)&&D>0?o(z)<=D:!0);F[L]=U?z:void 0}}}i(N)}}}return document.addEventListener("paste",s),()=>{document.removeEventListener("paste",s)}},[r,n]),{pasteData:a}},EJ=e=>`${e}Key`,eb=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,OJ=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...s)=>`${e}+${s.join(n)}`,i=di(t),o=di(_e.fromPairs(i.current.map(([s,u])=>[a(...s),u])));A.useEffect(()=>{console.log("初始化 useShortcutKey");const s=()=>i.current.map(([b])=>b).flat(1),u=b=>{var y,w,S;(!r||((y=b.target)==null?void 0:y.id)==r)&&(c.push(eb(b)),(S=(w=o.current)[c.join(n)])==null||S.call(w,b))},c=[],d={},f=b=>{var y;if(!r||((y=b.target)==null?void 0:y.id)==r){const w=eb(b);b[EJ(e)]&&!d[w]&&(d[w]=!0,s().includes(b.key)&&c.includes(e)&&b.preventDefault(),u(b))}},g=b=>{const y=eb(b);d[y]=!1,c.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",f),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",f)}},[])},RJ=(e,t)=>{const[r,n]=A.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:s=[]}=o||{},{childKeyName:u="children",isMark:c=!0,initialState:d,setInitialState:f}=a||{},g=String(e.rowKey||"id"),[b,y]=A.useState(!1),w=()=>b&&s.length,S=p=>v=>{w()&&p(v)},E=async(p,v)=>{var k;const x=[];x.type="shear",x.namespace=t,v.forEach($=>{_r.isDelTableRow($)||x.push({...$,toShear:()=>$.shear=!0})}),_r.ArrayAttributeFlat(x,u,$=>{$.toShear||($.shear=!0)}),(!p.onBeforeShear||await p.onBeforeShear(x))&&(x.forEach($=>{$.toShear(),delete $.toShear}),console.log("剪切",x),f&&f($=>({...$,clipboard:x})),p.setDataSource("shear",i),(k=p.onAfterShear)==null||k.call(p,x),x.length&&(x.onPasteCallback=async $=>{var F;const R=$==t,N=[...i],M=()=>{f&&f(L=>({...L,clipboard:[]})),[...x].reverse().forEach(L=>{const I=_r.getTreeRelationNoRecursion({data:N,lookup:T=>T[g]==L[g],childrenKey:u});c&&I.self.dataType!=="add"?(I.self.shear=!1,I.self.dataType="del",_r.ArrayAttributeFlat(I.self[u],u,T=>{T.toShear||(T.shear=!1,T.dataType="del")})):I.parent?I.parent[u].splice(I.index,1):N.splice(I.index,1)}),p.setDataSource("shear",N)};return!p.onBeforeDeleteShear||await p.onBeforeDeleteShear({isSameSpace:R,deletes:x})?(M(),(F=p.onAfterDeleteShear)==null||F.call(p,{isSameSpace:R,deletes:x}),Promise.resolve(N)):Promise.reject(J("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},_=async(p,v)=>{var k;const x=[];x.type="copy",x.namespace=t,v.forEach($=>{_r.isDelTableRow($)||($.shear=!1,_r.ArrayAttributeFlat($[u],u,R=>{R.shear=!1}),x.push({...$}))}),(!p.onBeforeCopy||await p.onBeforeCopy(x))&&(console.log("复制",x),f&&f($=>({...$,clipboard:x})),p.setDataSource("paste",i),(k=p.onAfterCopy)==null||k.call(p,x))},C=async(p,{pasteData:v,pasteTarget:x})=>{var $,R;const k=_r.ArrayAttributeFlat(v,u).every(N=>!x.includes(N[g]));if(console.log({isNonSelf:k}),x.length==1&&v.length&&k){const M=_r.ArrayAttributeFlat(i,u).find(L=>L[g]==x[0]),F=p.pasteInto||"child";if(!p.onBeforePaste||await p.onBeforePaste({target:M,rows:v,type:F}))try{const L=await(($=v.onPasteCallback)==null?void 0:$.call(v,t))||[...i],I=_r.getTreeRelationNoRecursion({data:L,lookup:T=>T[g]==M[g],childrenKey:u});if(c){const T=D=>D.map(B=>Object.assign({...B,shear:!1,dataType:"add",[g]:_r.generateUUID(),primitiveInsId:B.primitiveInsId||B[g]},B[u]?{[u]:T(B[u].filter(V=>!D.some(z=>z[g]==V[g]))||[])}:{}));v=T(v)}if(F=="child"){const T=I.self[u];I.self[u]=[...T,...v]}else I.parent?I.parent[u].splice(I.index+1,0,...v):L.splice(I.index+1,0,...v);p.setDataSource("paste",L),(R=p.onAfterPaste)==null||R.call(p,{target:M,type:F})}catch(L){console.error(L)}}};a&&OJ(_r.isMac()?"meta":"ctrl",{shortcuts:[[["x"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({shearList:p}),E(a,p)})],[["c"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({copyList:p}),_(a,p)})],[["v"],S(async()=>{const p=(d==null?void 0:d.clipboard)||[];C(a,{pasteData:p,pasteTarget:s})})]],namespace:t});const h=A.useRef(null);return A.useEffect(()=>{var p;r||((p=h.current)==null||p.focus(),y(!0))},[s.length,s[0]]),A.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:b,focus:()=>{var v;const p=document.querySelector(":focus");p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement||(v=h.current)==null||v.focus()},shear:E,copy:_,paste:C,FocusDom:H.jsx("input",{ref:h,"data-type":uP,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},TJ=(e,t,r,n)=>{const[a,i]=A.useState();return A.useEffect(()=>{async function o(s){if(r){const u=s.clipboardData,c=r.dataIndex,d=r.record;let f=null;if(d.newVal&&Object.hasOwn(d.newVal,c)?f=d.newVal[c]:f=d[c]||null,f)try{u.setData("text/plain",f),i(f),s.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},Uw=A.createContext(null),xm="tableTopBox",Sm=A.forwardRef((e,t)=>{var N;A.useImperativeHandle(t,()=>({scrollTo:M=>{i.current.scrollTo(M)},scrollXTo:M=>{if(a.current){const F=a.current.querySelector(".frontend-table-body");F&&(F.scrollLeft=M)}},clearFilters:d,setTableFiltered:b,clipboard:R}));const[r]=A.useState(_r.generateUUID()),n=A.useRef(null),a=A.useRef(null),i=A.useRef(null),[o]=ue.Form.useForm(),s=yJ(),{sortInfo:u,filterInfo:c,clearFilters:d,getColumnSearchProps:f,onFiltersChange:g,setTableFiltered:b}=wJ(e.onFilterAndSorter),[y,{toggleFullscreen:w,exitFullscreen:S}]=oR(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;A.useEffect(()=>{const M=F=>{F.key=="Escape"&&y&&S()};return addEventListener("keydown",M),()=>{removeEventListener("keydown",M)}});const _=IZ({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[C,h]=DZ(()=>({scroll:{y:1e3},ref:i}),[]),p={header:{cell:LZ},body:{cell:bJ}};A.useMemo(()=>h(p),[h]);const{renderColumns:v}=SJ({...e,tableKey:E},u,c,s,f,_,e.selectedCell),{pasteData:x}=CJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{var M;if(x&&e.selectedCell){const F=e.dataSource||[],L=String(e.rowKey)||"id",I=F.findIndex(G=>{var X;return G[L]==((X=e.selectedCell)==null?void 0:X.record[L])}),T=e.columns.findIndex(G=>{var X;return G.dataIndex==((X=e.selectedCell)==null?void 0:X.dataIndex)});let D=((M=x[0])==null?void 0:M.length)||0,B=(x==null?void 0:x.length)||0;const V=e.columns.slice(T,T+D),z=F.slice(I,I+B);let U=[];x.forEach((G,X)=>{if(z.length>X){const K={};G.forEach((ne,ae)=>{V.length>ae&&(K[V[ae].dataIndex]=ne,K[L]=z[X][L])}),U.push(K)}}),e.onPaste&&e.onPaste(_r.transformArrayToMap(U,L))}},[x]);const{copyData:k}=TJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{k&&e.selectedCell&&e.onCopy&&e.onCopy(k)},[k]);const{run:$}=DH(async M=>{const F=e.pageNo||1,L=e.pageSize||10,I=e.total||0;Math.abs(parseInt(M.target.scrollTop+M.target.clientHeight)-M.target.scrollHeight)<1.5&&!e.loading&&F*L<I&&e.onScroll&&e.onScroll(F+1)},{wait:400}),R=RJ(e,r);return H.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${ki.main} ${xm}`,style:{position:"relative",overflow:"hidden"},onClick:M=>R.focus(),onScrollCapture:M=>{M.target.scrollHeight!==24&&M.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&$(M):$(M))},children:[H.jsx(_J,{menuId:s,..._e.pick(e,["onFill"])}),R.FocusDom,H.jsxs(ue.Form,{form:o,component:!1,children:[H.jsx(Uw.Provider,{value:o,children:H.jsx(ue.Table,{className:ge(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:C,bordered:!0,..._e.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:E,loading:{indicator:H.jsx(qf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:M,onExpand:F,record:L,expandable:I})=>L.children&&L.children.length||L.hasChildren?M?H.jsx(R5,{className:"expand",onClick:T=>{F(L,T)}}):H.jsx(T5,{className:"expand",onClick:T=>{F(L,T)}}):(e.isTree||I!==void 0)&&H.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:_,scrollToFirstRowOnChange:!0,..._e.merge(e.scroll,{x:(N=e.scroll)==null?void 0:N.x})},columns:v,onChange:g})}),H.jsx(xJ,{...e,className:e.tableFooterClassName,clearFilters:d,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:al}=ue.Select,lP=A.forwardRef((e,t)=>{const r=A.useRef("1848553711328477186"),[n,a]=A.useState([]),[i,o]=A.useState([]),[s,u]=A.useState([]),c=Sa({pageNo:1,pageSize:50,total:0}),d=Sa({sorter:"",filters:"",itemCodes:`${Cs.material},${Cs.document},${Cs.file}`,initialItemCodes:""}),f=Sa({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:J("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:J("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});Yf(()=>{var _;let E=[];for(let C of e.columns||f.columns)E.push({...C,render:!C.render&&((_=e.placeholderCode)!=null&&_.includes(C.dataIndex))?h=>H.jsx(rs,{value:h,highlight:g.numberHighLight||[]}):C.render});f.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(C=>{if(C.code==200){let h=[];for(let v of C.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&h.push({label:v.name,value:v.code});f.conditionObject=h;let p=_e.map(h,"value").join(",");d.itemCodes=p,d.initialItemCodes=_e.cloneDeep(p),y(!0)}}):y(!0)}),A.useEffect(()=>(e.enter&&!f.focus&&s.length>0?b():document.onkeydown=null,()=>{document.onkeydown=null}),[s,f.focus]),A.useImperativeHandle(t,()=>({getLoading:E=>{f.loading=E},backfill:E=>{u(E)}}));const g=Sa({numberHighLight:[]}),b=()=>{document.onkeydown=function(E){var _=window.event||E,C=_.keyCode||_.which;if(C==13&&!f.loading){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let h=s.length?_e.map(s,"id").join(","):"";e.onChange&&e.onChange(h),e.handleSubmit&&e.handleSubmit(s)}}},y=async(E=!1,_)=>{f.loading=!0;const{pageNo:C,pageSize:h}=c,{filters:p,sorter:v,itemCodes:x}=d;let k={...e.params};if(f.searchValue&&(e.formate=="1"||e.formate=="2"?k.orQuery=e.params.columns.split(",").map(F=>F+"-"+f.searchValue).join("~!~"):k.keyword=f.searchValue),!e.getUrlData){a([]),c.total=0,f.loading=!1;return}const{records:$,total:R,columns:N}=await e.getUrlData({pageNo:C,pageSize:h,filters:p,sorter:v,itemCodes:x,refreshSize:_,searchValue:f.searchValue,sideChoice:f.sideChoice,params:k});N&&(f.columns=N),f.loading=!1;const M=$||[];c.total=R,E?(a(M),o(_e.cloneDeep(M)),e.onInit&&e.onInit(M)):(a([...n,...M]),o(_e.cloneDeep([...n,...M])))},w=E=>{E=="0"?d.itemCodes=d.initialItemCodes:d.itemCodes=E,a([]),u([]),c.pageNo=1,f.searchValue="",y(!0,c.pageSize)},S=E=>{u([]),e.searchChange&&e.searchChange(E),f.searchValue=E,g.numberHighLight=E?[E]:[],c.pageNo=1,y(!0)};return H.jsx($u,{width:e.width,forceRender:!0,className:K1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(s)},children:H.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&H.jsx("div",{className:K1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?H.jsx(UT,{itemCode:Cs.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,c.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[J("sys.myCreated",{placeholder:"我创建的"}),J("sys.label.all",{placeholder:"全部"})].map((E,_)=>H.jsx("div",{onClick:()=>{f.sideChoice=_,c.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:_==f.sideChoice?"#0563b2":""},children:E},_))}),H.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&H.jsx(ue.Form.Item,{rules:[{required:!1}],children:H.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&H.jsxs(H.Fragment,{children:[e.allCategories&&f.conditionObject.length>0&&H.jsxs(ue.Select,{disabled:f.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[H.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),"(",f.conditionObject.map(E=>H.jsx(al,{value:E.value,children:E.label})),")"]}),!e.allCategories&&H.jsxs(ue.Select,{disabled:f.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[H.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),H.jsx(al,{value:Cs.material,children:J("sys.label.material",{placeholder:"物料"})}),H.jsx(al,{value:Cs.document,children:J("sys.document.document",{placeholder:"文档"})}),H.jsx(al,{value:Cs.file,children:J("sys.label.file",{placeholder:"文件"})})]})]}),H.jsx(ue.Input,{style:{width:240},onBlur:()=>{f.focus=!1},onFocus:()=>{f.focus=!0},allowClear:!0,value:f.searchValue,placeholder:e.placeholder||J("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:H.jsx(Dt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{S(f.searchValue)}}),onChange:E=>{f.searchValue=E.target.value,E.target.value||(u([]),e.searchChange&&e.searchChange(""),c.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{S(E.target.value)}})]})}),e.isDownload&&H.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[H.jsx(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"1")},children:J("sys.label.download",{placeholder:"下载"})}),H.jsx("span",{style:{marginRight:"24px"}}),H.jsxs(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"2")},children:[J("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),H.jsx("div",{className:K1.tableFrame,style:{display:"flex"},children:H.jsx(Sm,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:s.map(E=>E.id),onChange:(E,_)=>{e.isCheckbox?u(_):_.length?u([_.pop()]):u([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&_e.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(s.length>1){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(_e.map(s,"id").join(",")),e.handleSubmit&&e.handleSubmit(s)}else u([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:f.loading,dataSource:n,columns:f.columnsHighlight,...c,scroll:{y:e.height||200},onScroll:E=>{c.pageNo=E,y()},onFilterAndSorter:(E,_,C)=>{if(u([]),e.isBuiltInSort)if(E){let h=_e.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(h)}else a(i);else{if(e.isUseRuleSort){const h=Jo.sortAndFilterTable({sorters:E,filters:_,sortersField:C,tableColumns:e.columns});d.sorter=h.sorters,d.filters=h.filters}else d.sorter=E,d.filters=_;c.pageNo=1,y(!0)}}})})]})]})})}),PJ="_selectFrameBox_mktv5_1",kJ={selectFrameBox:PJ},cP=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),a=A.useContext(Uf),i=a==null?void 0:a.linkInstanceCom;A.useEffect(()=>{n(e.value)},[e.value]);const o=Sa({visible:!1,options:[],enter:!1});A.useEffect(()=>{e.options&&e.options.length&&(o.options=e.options)},[e.options]);const s=()=>{var g;const c=(g=e.params)==null?void 0:g.ids,d=c?c.join(","):"",f=e.isCheckbox?r&&r.join(","):r;return`${d}${f!=null&&f.length&&d?",":""}${f??""}`},u=()=>{var c,d;if(i){const f=i;return H.jsx(f,{userId:r,id:r,content:(c=_e.filter(e.options,g=>g.id==r)[0])==null?void 0:c.Name})}return H.jsx("div",{children:(d=_e.filter(e.options,f=>f.id==r)[0])==null?void 0:d.Name})};return H.jsxs("div",{className:kJ.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?u():H.jsxs("div",{style:{display:"flex",gap:"5px"},children:[H.jsx(ue.Select,{style:{minWidth:"85px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:o.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(o.visible=!0,o.enter=!0)},onChange:c=>{e.onChange&&e.onChange(c)},tagRender:c=>fi.readPermission(c.label)?H.jsx(ue.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:H.jsx(Dt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:d=>{d.stopPropagation();const f=r.filter(g=>g!==c.value);n(f),e.onChange&&e.onChange(f)}}),children:c.label},c.value):H.jsx(co,{})}),e.showButton?H.jsx(ue.Button,{onClick:()=>{o.visible=!0,o.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:H.jsx(Dt,{type:"content-search",style:{fontSize:"16px"}})}):H.jsx(H.Fragment,{})]}),o.visible&&H.jsx(lP,{visible:o.visible,title:e.title||J("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async c=>{const{records:d,total:f}=await e.getUrlData(c);return{records:d,total:f}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:s()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:o.enter,placeholder:e.searchPlaceholder||J("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:c=>{if(e.isCheckbox){let d=_e.compact(_e.concat(r,c.split(",")));e.onChange&&e.onChange(c?d:void 0)}else e.onChange&&e.onChange(c)},handleSubmit:c=>{e.isCheckbox?o.options=_e.concat(o.options,c):o.options=c,e.onSubmit&&e.onSubmit(o.options),o.visible=!1,o.enter=!1},onInit:c=>{o.options=c},onCancel:()=>{o.visible=!1,o.enter=!1}})]})}),$J="_searchTextTips_daoe4_1",AJ={searchTextTips:$J};function DJ({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=A.useState(!1),[i,o]=A.useState([]),s=A.useRef(0);A.useEffect(()=>{o(r.options)},[r.options]);const u=A.useMemo(()=>{const c=d=>{s.current+=1;const f=s.current;o([]),a(!0),e(d,r).then(g=>{f===s.current&&(o(g),a(!1))})};return _e.debounce(c,t)},[e,t]);return H.jsx(ue.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?H.jsx("div",{style:{textAlign:"center"},children:H.jsx(ue.Spin,{size:"small"})}):H.jsx(ue.Empty,{image:ue.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:c=>H.jsxs(H.Fragment,{children:[c,H.jsx(ue.Divider,{style:{margin:"8px 0"}}),H.jsx("div",{className:AJ.searchTextTips,children:`${J("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${J("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function GE(e,t){var i,o;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,_e.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=_e.reject((o=r.result)==null?void 0:o.records,s=>{var u;return s[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const IJ=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),[a,i]=A.useState([]);return Yf(async()=>{i(await GE("",e))}),H.jsx(DJ,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:GE,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),MJ=e=>H.jsx(H.Fragment,{}),lp=e=>H.jsx(ue.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),dP=A.forwardRef((e,t)=>{const r=A.useContext(Uf),n=(r==null?void 0:r.formItemCom)||{},a=A.useCallback((s,u)=>{var g,b;const{type:c,cannotread:d,props:f}=s;if(d!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),c==="Input")return y?H.jsx(Q0,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(Q0,{...f});if(c==="Select")return f!=null&&f.loading?(u="",H.jsx(ue.Form.Item,{noStyle:!0,children:H.jsx(gu,{...f,options:[],loading:!0,value:((b=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:b.mode)==="multiple"?[]:"",disabled:y||(f==null?void 0:f.disabled)})})):f!=null&&f.options&&f.options.length?typeof u=="string"&&u.split(",").length>1&&(f==null?void 0:f.mode)!=="multiple"?e.readOnly?H.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(w=>H.jsx(ue.Tag,{children:_r.getLabelInOptions({value:w,options:(f==null?void 0:f.options)||[]})},w))}):(f.options=[...f==null?void 0:f.options,{label:u.split(",").map(w=>_r.getLabelInOptions({value:w,options:(f==null?void 0:f.options)||[]})).join(","),disabled:!0,value:u}],H.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...f,showSearch:!0,disabled:y||(f==null?void 0:f.disabled)})):H.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...f,showSearch:!0,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(gu,{...f,showSearch:!0,options:[],disabled:y||(f==null?void 0:f.disabled)});if(c==="PopupSelect")return f.options===void 0||f.options.length>0?H.jsx(cP,{...f,title:e.label,disabled:y||(f==null?void 0:f.disabled)},e.name):"";if(c==="SearchSelect")return H.jsx(IJ,{...f},e.name);if(c==="Checkbox")return H.jsx(ue.Checkbox,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Checkbox.Group")return H.jsx(ue.Checkbox.Group,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Input.TextArea")return y?H.jsx(ue.Input.TextArea,{...f,disabled:!0}):H.jsx(ue.Input.TextArea,{...f});if(c==="Input.Password")return y?H.jsx(ue.Input.Password,{...f,disabled:!0}):H.jsx(ue.Input.Password,{...f});if(c==="Date")return y?H.jsx(ue.DatePicker,{...f,size:"middle",placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.DatePicker,{...f});if(c==="DatePicker.RangePicker")return y?H.jsx(ue.DatePicker.RangePicker,{...f,disabled:y||(f==null?void 0:f.disabled),placeholder:["",""],separator:""}):H.jsx(ue.DatePicker.RangePicker,{...f});if(c==="TimePicker.RangePicker")return y?H.jsx(ue.TimePicker.RangePicker,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.TimePicker.RangePicker,{...f});if(c==="Switch")return H.jsx(ue.Switch,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Number")return(f==null?void 0:f.apicode)==="FileSize"?H.jsx(Q0,{...f,disabled:y||(f==null?void 0:f.disabled)},f.id):y?H.jsx(ue.InputNumber,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.InputNumber,{...f});if(c==="Cascader")return y?H.jsx(ue.Cascader,{...f,placeholder:"",disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Cascader,{showSearch:{filter:(w,S)=>S.some(E=>E.label&&E.label.toLowerCase().indexOf(w.toLowerCase())>-1),matchInputWidth:!1},...f});if(c==="TreeSelect")return f.treeData&&f.treeData.length?y?H.jsx(lp,{...f,disabled:y||(f==null?void 0:f.disabled),showSearch:!0,treeNodeFilterProp:"label"}):H.jsx(lp,{...f,showSearch:!0,treeNodeFilterProp:"label"}):H.jsx(lp,{disabled:y||(f==null?void 0:f.disabled)});if(c==="Radio")return y?H.jsx(ue.Radio,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Radio,{...f});if(c==="Radio.Group")return y?H.jsx(ue.Radio.Group,{...f,disabled:y||(f==null?void 0:f.disabled)}):H.jsx(ue.Radio.Group,{...f});if(c==="Slider")return H.jsx(ue.Slider,{...f,disabled:y||(f==null?void 0:f.disabled)});if(c==="Markdown")return H.jsx(UR,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="SelectPopup")return H.jsx(oP,{selectProps:f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="SelectTransfer")return H.jsx(aP,{selectProps:f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="CompositeForm")return H.jsx(Xf,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(c==="Title")return H.jsx(MJ,{...f,readOnly:y||(f==null?void 0:f.disabled)});if(n[c]){const w=n[c];return H.jsx(w,{type:c,...f,name:e.name,disabled:y||(f==null?void 0:f.disabled)},e.name)}return H.jsx("span",{children:u})}else return H.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=A.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?_e.concat(e.NoWhiteSpaceStart||[],e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return H.jsx(ue.Form.Item,{colon:!1,..._e.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:ge(aY.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),NJ="_itemsCreated_ow91h_1",FJ="_rowBox_ow91h_4",jJ="_labelLength_ow91h_8",il={itemsCreated:NJ,rowBox:FJ,labelLength:jJ},LJ="_advanced_search_content_775l0_1",zJ="_disableBg_775l0_1",BJ="_checkboxWidth_775l0_15",HJ="_radioWidth_775l0_18",VJ="_conditions_head_775l0_21",UJ="_head1_775l0_29",qJ="_head2_775l0_32",WJ="_head3_775l0_35",YJ="_head4_775l0_38",GJ="_properties_box_775l0_41",KJ="_className_tips_775l0_44",XJ="_groupHeader_775l0_49",ZJ="_iconBtn_775l0_52",JJ="_properties_item_775l0_61",QJ="_left_tips_775l0_84",eQ="_state_type_775l0_87",tQ="_verification_775l0_100",rQ="_verificationBorder_775l0_121",Tt={advanced_search_content:LJ,disableBg:zJ,checkboxWidth:BJ,radioWidth:HJ,conditions_head:VJ,head1:UJ,head2:qJ,head3:WJ,head4:YJ,properties_box:GJ,className_tips:KJ,groupHeader:XJ,iconBtn:ZJ,properties_item:JJ,left_tips:QJ,state_type:eQ,verification:tQ,verificationBorder:rQ},nQ="_shuttle_box_tufhg_1",aQ="_transferBox_tufhg_4",iQ="_selectNum_tufhg_7",E0={shuttle_box:nQ,transferBox:aQ,selectNum:iQ},oQ=e=>{const t=Sa({dataSource:[],targetKeys:[],columns:[]}),r=s=>s&&_e.isString(s)&&s.includes("~#~")?H.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):s;A.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let s=[];for(let u of e.columns)s.push({...u,ellipsis:!0,sorter:(c,d)=>{const f=u.dataIndex||"";return c[f]!=null&&d[f]!=null?_e.isString(c[f])&&_e.isString(d[f])?c[f].localeCompare(d[f]):_e.isNumber(c[f])&&_e.isNumber(d[f])?c[f]-d[f]:0:0},render:u.render?u.render:r});t.columns=s},[e.dataSource,e.targetKeys]);const n=({...s})=>H.jsx(ue.Transfer,{...s,rowKey:u=>u.id,children:({direction:u,filteredItems:c,onItemSelectAll:d,onItemSelect:f,selectedKeys:g})=>{const b={onSelectAll(y,w){const S=w.filter(_=>!_.disabled).map(({id:_})=>_),E=y?_e.difference(S,g):_e.difference(g,S);d(E,y)},onSelect({id:y},w){e.isRadio&&g.splice(0,1),f(y,w)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:u=="left"?y.disabled:!1}),selectedRowKeys:g};return H.jsxs(H.Fragment,{children:[H.jsx(ue.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...b},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:c,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),f(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(u==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let w=0;w<t.targetKeys.length;w++)if(t.targetKeys[w]==y.id){t.targetKeys.splice(w,1);break}}}})}),u==="left"?H.jsxs("div",{className:E0.selectNum,children:[e.defaultPageSize!==50?`${J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:J("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):H.jsxs("div",{className:E0.selectNum,children:[J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),c.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=s=>{e.isRadio?t.targetKeys=[s[0]]:t.targetKeys=s},i=async()=>{let s=[];for(let u=0;u<t.targetKeys.length;u++)for(let c=0;c<t.dataSource.length;c++)if(t.targetKeys[u]==t.dataSource[c].id){s.push(t.dataSource[c]);break}e.onSubmit&&e.onSubmit(s)},o=()=>{if(e.columns.length>0){let s=[J("project.workflow.status",{placeholder:"状态"}),J("sys.import.category",{placeholder:"分类"})];return J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_e.without(_e.map(e.columns,"title"),...s).join("、")}})}return J("sys.enterSearch",{placeholder:"请输入搜索内容"})};return H.jsx($u,{className:E0.shuttle_box,modalTitle:e.title,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:H.jsx("div",{className:E0.transferBox,children:H.jsx(tc,{spinning:e.loading,children:H.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(s,u)=>u.Name&&u.Name.indexOf(s)!==-1||u.EmpNo&&u.EmpNo.indexOf(s)!==-1||u.empNo&&u.empNo.indexOf(s)!==-1||u.email&&u.email.indexOf(s)!==-1||u.name&&u.name.indexOf(s)!==-1||u.workflowName&&u.workflowName.indexOf(s)!==-1||u.code&&String(u.code).indexOf(s)!==-1||u.description&&u.description.indexOf(s)!==-1})})})})},{RangePicker:KE}=ue.DatePicker,{Option:tb}=ue.Select,{TreeNode:XE}=ue.Tree,{confirm:Gpe}=ue.Modal,fP=A.forwardRef((e,t)=>{A.useRef();const r=A.useRef(null),n=A.useRef(null),a=[{value:"and",label:J("sys.condition.and",{placeholder:"与"})},{value:"or",label:J("sys.condition.or",{placeholder:"或"})}],i="YYYY-MM-DD HH:mm:ss",o={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},s=Sa({1:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:J("sys.condition.in",{placeholder:"在"})},{value:"!in",label:J("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:J("sys.condition.in",{placeholder:"在"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),u=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],c=Sa({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),d=Sa({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});A.useImperativeHandle(t,()=>({getValue:()=>c.formCofing,onVerification:R=>{c.verification=R},setCondition:(R,N)=>{N==0?(c.formCofing.base_item_id=R.value,c.formCofing.base_item_name=R.label):(c.formCofing.object_id=(R==null?void 0:R.value)||"",c.formCofing.object_name=(R==null?void 0:R.label)||"")},emptyCondition:R=>{R&&(c.formCofing.base_item_id="",c.formCofing.base_item_name="",c.formCofing.object_id="",c.formCofing.object_name=""),c.verification=!1,c.formCofing.relations=[{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:R=>{c.formCofing=R},searchBtn:()=>{f()},defaultValue:()=>{var N;const R=(N=e.typeData[0])==null?void 0:N.children.filter(M=>M.apicode==="Number"||M.apicode==="Name"||M.apicode==="Description")[0];c.formCofing.relations=[{join:"and",isGroup:!0,relation:[{attribute:{id:[e.typeData[0].value,R.id],name:`${e.typeData[0].label}/${R.name}`,lastSelected:R,type:R.valueType||"",rawType:R.valueType||"",tab_code:e.typeData[0].value,dataFrom:R.dataFrom||"",dataFromId:R.dataFromId||"",apicode:R.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const f=R=>{if(c.verification=!1,!c.formCofing.base_item_id){ue.message.warning(J("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let N=_e.cloneDeep(c.formCofing.relations);N.length==1&&(w(N),N=_e.compact(N));for(let[M,F]of N.entries())for(let L of F.relation)if(!L.attribute.name||!L.attribute.operator||L.attribute.operator!="null"&&L.attribute.operator!="!null"&&!L.attribute.value){c.verification=!0;return}{let M={base_item_id:c.formCofing.base_item_id,base_item_name:c.formCofing.base_item_name,object_id:c.formCofing.object_id,object_name:c.formCofing.object_name,relations:N};e.searchTable&&e.searchTable(M)}},g=(R,N)=>R=="5"&&N?N.listCode==10005213?s[R][2]:!N.allowMultiple||N.apicode=="LifeCyclePhase"||N.apicode=="Category"?s[R][0]:N.listType=="0"?s[R][1]:N.listType=="2"?s[R][2]:s[R][3]:s[R],b=()=>{c.formCofing.relations[d.treeIndex1].relation[d.treeIndex2].attribute.value=d.treeDefine.join(","),c.formCofing.relations[d.treeIndex1].relation[d.treeIndex2].attribute.valueTreeKey=d.treeDefineKey,d.titleName="",d.treeVisible=!1},y=(R,N)=>N.some(M=>M.label&&M.label.toLowerCase().indexOf(R.toLowerCase())>-1),w=R=>R.map((N,M)=>(N.relation.forEach((F,L)=>{let I=F.attribute;!I.name&&!I.operator&&!I.value&&delete N.relation[L]}),N.relation=_e.compact(N.relation),N.relation.length==0&&delete R[M],N)),S=R=>{let N=[];if(R)for(let M of R)N.push({label:M.showName||M.name,value:M.id,disabled:!M.status});return N},E=R=>R.map(N=>N.children?H.jsx(XE,{title:d.department?N.title:N.name,children:E(N.children)},N.id):H.jsx(XE,{title:d.department?N.title:N.name},N.id)),_=(R,N)=>H.jsx(nm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[N?N.toString():""],textToHighlight:R?R.toString():""}),C=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},h=(R,N)=>{R.relation.splice(N+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",forbidden:!0,routineData:[]}}),k(R),C()},p=R=>{c.formCofing.relations.splice(R+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),C()},v=R=>{c.formCofing.relations.splice(R,1)},x=(R,N,M,F)=>{M&&R.relation.length>1?(R.relation.splice(F,1),k(R)):c.formCofing.relations.splice(N,1)},k=R=>{for(let N=0;N<R.relation.length;N++)R.relation[N].attribute.forbidden=!0,R.relation.length>1&&R.relation.length-1!=N&&(R.relation[N].attribute.forbidden=!1)},$=(R,N,M,F,L)=>{if(M&&(M.apicode=="OrgName"||M.apicode=="CreateUserDepartment"))return H.jsx(ue.Select,{className:`
|
|
333
333
|
${c.verification&&!R.attribute.value&&R.attribute.operator!="null"&&R.attribute.operator!="!null"&&Tt.verification}
|
|
334
334
|
${(R.attribute.operator=="null"||R.attribute.operator=="!null")&&Tt.disableBg}
|
|
335
335
|
${Tt.radioWidth}
|