@zimyo/engage 0.3.9-hrms → 0.3.10-hrms
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/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -2978,7 +2978,7 @@ var Pce;function nt(){return Pce.apply(null,arguments)}function $We(e){Pce=e}fun
|
|
|
2978
2978
|
[`+i+"] ";for(a in arguments[0])qn(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}$ce(e+`
|
|
2979
2979
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
2980
2980
|
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var cZ={};function Fce(e,t){nt.deprecationHandler!=null&&nt.deprecationHandler(e,t),cZ[e]||($ce(t),cZ[e]=!0)}nt.suppressDeprecationWarnings=!1;nt.deprecationHandler=null;function Cc(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function BWe(e){var t,n;for(n in e)qn(e,n)&&(t=e[n],Cc(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function RA(e,t){var n=zd({},e),r;for(r in t)qn(t,r)&&(Jf(e[r])&&Jf(t[r])?(n[r]={},zd(n[r],e[r]),zd(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)qn(e,r)&&!qn(t,r)&&Jf(e[r])&&(n[r]=zd({},n[r]));return n}function TR(e){e!=null&&this.set(e)}var zA;Object.keys?zA=Object.keys:zA=function(e){var t,n=[];for(t in e)qn(e,t)&&n.push(t);return n};var VWe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function HWe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Cc(r)?r.call(t,n):r}function bc(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var kR=/(\[[^\[]*\])|(\\)?([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,Z2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,p6={},Lm={};function tn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Lm[e]=o),t&&(Lm[t[0]]=function(){return bc(o.apply(this,arguments),t[1],t[2])}),n&&(Lm[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function UWe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function WWe(e){var t=e.match(kR),n,r;for(n=0,r=t.length;n<r;n++)Lm[t[n]]?t[n]=Lm[t[n]]:t[n]=UWe(t[n]);return function(o){var i="",a;for(a=0;a<r;a++)i+=Cc(t[a])?t[a].call(o,e):t[a];return i}}function Zw(e,t){return e.isValid()?(t=Bce(t,e.localeData()),p6[t]=p6[t]||WWe(t),p6[t](e)):e.localeData().invalidDate()}function Bce(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(Z2.lastIndex=0;n>=0&&Z2.test(e);)e=e.replace(Z2,r),Z2.lastIndex=0,n-=1;return e}var GWe={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 qWe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(kR).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var YWe="Invalid date";function ZWe(){return this._invalidDate}var JWe="%d",XWe=/\d{1,2}/;function KWe(e){return this._ordinal.replace("%d",e)}var QWe={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 eGe(e,t,n,r){var o=this._relativeTime[n];return Cc(o)?o(e,t,n,r):o.replace(/%d/i,e)}function tGe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Cc(n)?n(t):n.replace(/%s/i,t)}var uZ={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 Ws(e){return typeof e=="string"?uZ[e]||uZ[e.toLowerCase()]:void 0}function ER(e){var t={},n,r;for(r in e)qn(e,r)&&(n=Ws(r),n&&(t[n]=e[r]));return t}var nGe={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 rGe(e){var t=[],n;for(n in e)qn(e,n)&&t.push({unit:n,priority:nGe[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var Vce=/\d/,ts=/\d\d/,Hce=/\d{3}/,IR=/\d{4}/,f3=/[+-]?\d{6}/,Vr=/\d\d?/,Uce=/\d\d\d\d?/,Wce=/\d\d\d\d\d\d?/,h3=/\d{1,3}/,MR=/\d{1,4}/,g3=/[+-]?\d{1,6}/,rv=/\d+/,m3=/[+-]?\d+/,oGe=/Z|[+-]\d\d:?\d\d/gi,v3=/Z|[+-]\d\d(?::?\d\d)?/gi,iGe=/[+-]?\d+(\.\d{1,3})?/,Ex=/[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,ov=/^[1-9]\d?/,AR=/^([1-9]\d|\d)/,dS;dS={};function zt(e,t,n){dS[e]=Cc(t)?t:function(r,o){return r&&n?n:t}}function aGe(e,t){return qn(dS,e)?dS[e](t._strict,t._locale):new RegExp(sGe(e))}function sGe(e){return pu(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function pu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function xs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ln(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=xs(t)),n}var NA={};function Cr(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Eu(t)&&(r=function(i,a){a[t]=Ln(i)}),o=e.length,n=0;n<o;n++)NA[e[n]]=r}function Ix(e,t){Cr(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function lGe(e,t,n){t!=null&&qn(NA,e)&&NA[e](t,n._a,n,e)}function y3(e){return e%4===0&&e%100!==0||e%400===0}var Ni=0,eu=1,Ql=2,Zo=3,pl=4,tu=5,Nf=6,cGe=7,uGe=8;tn("Y",0,0,function(){var e=this.year();return e<=9999?bc(e,4):"+"+e});tn(0,["YY",2],0,function(){return this.year()%100});tn(0,["YYYY",4],0,"year");tn(0,["YYYYY",5],0,"year");tn(0,["YYYYYY",6,!0],0,"year");zt("Y",m3);zt("YY",Vr,ts);zt("YYYY",MR,IR);zt("YYYYY",g3,f3);zt("YYYYYY",g3,f3);Cr(["YYYYY","YYYYYY"],Ni);Cr("YYYY",function(e,t){t[Ni]=e.length===2?nt.parseTwoDigitYear(e):Ln(e)});Cr("YY",function(e,t){t[Ni]=nt.parseTwoDigitYear(e)});Cr("Y",function(e,t){t[Ni]=parseInt(e,10)});function I1(e){return y3(e)?366:365}nt.parseTwoDigitYear=function(e){return Ln(e)+(Ln(e)>68?1900:2e3)};var Gce=iv("FullYear",!0);function dGe(){return y3(this.year())}function iv(e,t){return function(n){return n!=null?(qce(this,e,n),nt.updateOffset(this,t),this):Ib(this,e)}}function Ib(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function qce(e,t,n){var r,o,i,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!y3(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function pGe(e){return e=Ws(e),Cc(this[e])?this[e]():this}function fGe(e,t){if(typeof e=="object"){e=ER(e);var n=rGe(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=Ws(e),Cc(this[e]))return this[e](t);return this}function hGe(e,t){return(e%t+t)%t}var wo;Array.prototype.indexOf?wo=Array.prototype.indexOf:wo=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function OR(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=hGe(t,12);return e+=(t-n)/12,n===1?y3(e)?29:28:31-n%7%2}tn("M",["MM",2],"Mo",function(){return this.month()+1});tn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});tn("MMMM",0,0,function(e){return this.localeData().months(this,e)});zt("M",Vr,ov);zt("MM",Vr,ts);zt("MMM",function(e,t){return t.monthsShortRegex(e)});zt("MMMM",function(e,t){return t.monthsRegex(e)});Cr(["M","MM"],function(e,t){t[eu]=Ln(e)-1});Cr(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[eu]=o:An(n).invalidMonth=e});var gGe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Yce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zce=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mGe=Ex,vGe=Ex;function yGe(e,t){return e?Cl(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Zce).test(t)?"format":"standalone"][e.month()]:Cl(this._months)?this._months:this._months.standalone}function bGe(e,t){return e?Cl(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zce.test(t)?"format":"standalone"][e.month()]:Cl(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xGe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=wc([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=wo.call(this._shortMonthsParse,a),o!==-1?o:null):(o=wo.call(this._longMonthsParse,a),o!==-1?o:null):t==="MMM"?(o=wo.call(this._shortMonthsParse,a),o!==-1?o:(o=wo.call(this._longMonthsParse,a),o!==-1?o:null)):(o=wo.call(this._longMonthsParse,a),o!==-1?o:(o=wo.call(this._shortMonthsParse,a),o!==-1?o:null))}function _Ge(e,t,n){var r,o,i;if(this._monthsParseExact)return xGe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=wc([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Jce(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Ln(t);else if(t=e.localeData().monthsParse(t),!Eu(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,OR(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Xce(e){return e!=null?(Jce(this,e),nt.updateOffset(this,!0),this):Ib(this,"Month")}function wGe(){return OR(this.year(),this.month())}function CGe(e){return this._monthsParseExact?(qn(this,"_monthsRegex")||Kce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(qn(this,"_monthsShortRegex")||(this._monthsShortRegex=mGe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function SGe(e){return this._monthsParseExact?(qn(this,"_monthsRegex")||Kce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(qn(this,"_monthsRegex")||(this._monthsRegex=vGe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Kce(){function e(l,u){return u.length-l.length}var t=[],n=[],r=[],o,i,a,s;for(o=0;o<12;o++)i=wc([2e3,o]),a=pu(this.monthsShort(i,"")),s=pu(this.months(i,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TGe(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function Mb(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function pS(e,t,n){var r=7+t-n,o=(7+Mb(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Qce(e,t,n,r,o){var i=(7+n-r)%7,a=pS(e,r,o),s=1+7*(t-1)+i+a,l,u;return s<=0?(l=e-1,u=I1(l)+s):s>I1(e)?(l=e+1,u=s-I1(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Ab(e,t,n){var r=pS(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+fu(a,t,n)):o>fu(e.year(),t,n)?(i=o-fu(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function fu(e,t,n){var r=pS(e,t,n),o=pS(e+1,t,n);return(I1(e)-r+o)/7}tn("w",["ww",2],"wo","week");tn("W",["WW",2],"Wo","isoWeek");zt("w",Vr,ov);zt("ww",Vr,ts);zt("W",Vr,ov);zt("WW",Vr,ts);Ix(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ln(e)});function kGe(e){return Ab(e,this._week.dow,this._week.doy).week}var EGe={dow:0,doy:6};function IGe(){return this._week.dow}function MGe(){return this._week.doy}function AGe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function OGe(e){var t=Ab(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}tn("d",0,"do","day");tn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});tn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});tn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});tn("e",0,0,"weekday");tn("E",0,0,"isoWeekday");zt("d",Vr);zt("e",Vr);zt("E",Vr);zt("dd",function(e,t){return t.weekdaysMinRegex(e)});zt("ddd",function(e,t){return t.weekdaysShortRegex(e)});zt("dddd",function(e,t){return t.weekdaysRegex(e)});Ix(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:An(n).invalidWeekday=e});Ix(["d","e","E"],function(e,t,n,r){t[r]=Ln(e)});function DGe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function jGe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function DR(e,t){return e.slice(t,7).concat(e.slice(0,t))}var RGe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),eue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zGe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),NGe=Ex,PGe=Ex,LGe=Ex;function $Ge(e,t){var n=Cl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?DR(n,this._week.dow):e?n[e.day()]:n}function FGe(e){return e===!0?DR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function BGe(e){return e===!0?DR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function VGe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=wc([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=wo.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=wo.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=wo.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=wo.call(this._weekdaysParse,a),o!==-1||(o=wo.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=wo.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=wo.call(this._shortWeekdaysParse,a),o!==-1||(o=wo.call(this._weekdaysParse,a),o!==-1)?o:(o=wo.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=wo.call(this._minWeekdaysParse,a),o!==-1||(o=wo.call(this._weekdaysParse,a),o!==-1)?o:(o=wo.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function HGe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return VGe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=wc([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function UGe(e){if(!this.isValid())return e!=null?this:NaN;var t=Ib(this,"Day");return e!=null?(e=DGe(e,this.localeData()),this.add(e-t,"d")):t}function WGe(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 GGe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=jGe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qGe(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||jR.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(qn(this,"_weekdaysRegex")||(this._weekdaysRegex=NGe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function YGe(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||jR.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(qn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=PGe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZGe(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||jR.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(qn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=LGe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jR(){function e(d,g){return g.length-d.length}var t=[],n=[],r=[],o=[],i,a,s,l,u;for(i=0;i<7;i++)a=wc([2e3,1]).day(i),s=pu(this.weekdaysMin(a,"")),l=pu(this.weekdaysShort(a,"")),u=pu(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),o.push(s),o.push(l),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function RR(){return this.hours()%12||12}function JGe(){return this.hours()||24}tn("H",["HH",2],0,"hour");tn("h",["hh",2],0,RR);tn("k",["kk",2],0,JGe);tn("hmm",0,0,function(){return""+RR.apply(this)+bc(this.minutes(),2)});tn("hmmss",0,0,function(){return""+RR.apply(this)+bc(this.minutes(),2)+bc(this.seconds(),2)});tn("Hmm",0,0,function(){return""+this.hours()+bc(this.minutes(),2)});tn("Hmmss",0,0,function(){return""+this.hours()+bc(this.minutes(),2)+bc(this.seconds(),2)});function tue(e,t){tn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}tue("a",!0);tue("A",!1);function nue(e,t){return t._meridiemParse}zt("a",nue);zt("A",nue);zt("H",Vr,AR);zt("h",Vr,ov);zt("k",Vr,ov);zt("HH",Vr,ts);zt("hh",Vr,ts);zt("kk",Vr,ts);zt("hmm",Uce);zt("hmmss",Wce);zt("Hmm",Uce);zt("Hmmss",Wce);Cr(["H","HH"],Zo);Cr(["k","kk"],function(e,t,n){var r=Ln(e);t[Zo]=r===24?0:r});Cr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Cr(["h","hh"],function(e,t,n){t[Zo]=Ln(e),An(n).bigHour=!0});Cr("hmm",function(e,t,n){var r=e.length-2;t[Zo]=Ln(e.substr(0,r)),t[pl]=Ln(e.substr(r)),An(n).bigHour=!0});Cr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Zo]=Ln(e.substr(0,r)),t[pl]=Ln(e.substr(r,2)),t[tu]=Ln(e.substr(o)),An(n).bigHour=!0});Cr("Hmm",function(e,t,n){var r=e.length-2;t[Zo]=Ln(e.substr(0,r)),t[pl]=Ln(e.substr(r))});Cr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Zo]=Ln(e.substr(0,r)),t[pl]=Ln(e.substr(r,2)),t[tu]=Ln(e.substr(o))});function XGe(e){return(e+"").toLowerCase().charAt(0)==="p"}var KGe=/[ap]\.?m?\.?/i,QGe=iv("Hours",!0);function eqe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var rue={calendar:VWe,longDateFormat:GWe,invalidDate:YWe,ordinal:JWe,dayOfMonthOrdinalParse:XWe,relativeTime:QWe,months:gGe,monthsShort:Yce,week:EGe,weekdays:RGe,weekdaysMin:zGe,weekdaysShort:eue,meridiemParse:KGe},qr={},dy={},Ob;function tqe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dZ(e){return e&&e.toLowerCase().replace("_","-")}function nqe(e){for(var t=0,n,r,o,i;t<e.length;){for(i=dZ(e[t]).split("-"),n=i.length,r=dZ(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=b3(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&tqe(i,r)>=n-1)break;n--}t++}return Ob}function rqe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function b3(e){var t=null,n;if(qr[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&rqe(e))try{t=Ob._abbr,n=require,n("./locale/"+e),qd(t)}catch(r){qr[e]=null}return qr[e]}function qd(e,t){var n;return e&&(la(t)?n=Nu(e):n=zR(e,t),n?Ob=n:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ob._abbr}function zR(e,t){if(t!==null){var n,r=rue;if(t.abbr=e,qr[e]!=null)Fce("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."),r=qr[e]._config;else if(t.parentLocale!=null)if(qr[t.parentLocale]!=null)r=qr[t.parentLocale]._config;else if(n=b3(t.parentLocale),n!=null)r=n._config;else return dy[t.parentLocale]||(dy[t.parentLocale]=[]),dy[t.parentLocale].push({name:e,config:t}),null;return qr[e]=new TR(RA(r,t)),dy[e]&&dy[e].forEach(function(o){zR(o.name,o.config)}),qd(e),qr[e]}else return delete qr[e],null}function oqe(e,t){if(t!=null){var n,r,o=rue;qr[e]!=null&&qr[e].parentLocale!=null?qr[e].set(RA(qr[e]._config,t)):(r=b3(e),r!=null&&(o=r._config),t=RA(o,t),r==null&&(t.abbr=e),n=new TR(t),n.parentLocale=qr[e],qr[e]=n),qd(e)}else qr[e]!=null&&(qr[e].parentLocale!=null?(qr[e]=qr[e].parentLocale,e===qd()&&qd(e)):qr[e]!=null&&delete qr[e]);return qr[e]}function Nu(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ob;if(!Cl(e)){if(t=b3(e),t)return t;e=[e]}return nqe(e)}function iqe(){return zA(qr)}function NR(e){var t,n=e._a;return n&&An(e).overflow===-2&&(t=n[eu]<0||n[eu]>11?eu:n[Ql]<1||n[Ql]>OR(n[Ni],n[eu])?Ql:n[Zo]<0||n[Zo]>24||n[Zo]===24&&(n[pl]!==0||n[tu]!==0||n[Nf]!==0)?Zo:n[pl]<0||n[pl]>59?pl:n[tu]<0||n[tu]>59?tu:n[Nf]<0||n[Nf]>999?Nf:-1,An(e)._overflowDayOfYear&&(t<Ni||t>Ql)&&(t=Ql),An(e)._overflowWeeks&&t===-1&&(t=cGe),An(e)._overflowWeekday&&t===-1&&(t=uGe),An(e).overflow=t),e}var aqe=/^\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)?)?$/,sqe=/^\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)?)?$/,lqe=/Z|[+-]\d\d(?::?\d\d)?/,J2=[["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]],f6=[["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/]],cqe=/^\/?Date\((-?\d+)/i,uqe=/^(?:(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}))$/,dqe={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 oue(e){var t,n,r=e._i,o=aqe.exec(r)||sqe.exec(r),i,a,s,l,u=J2.length,d=f6.length;if(o){for(An(e).iso=!0,t=0,n=u;t<n;t++)if(J2[t][1].exec(o[1])){a=J2[t][0],i=J2[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(t=0,n=d;t<n;t++)if(f6[t][1].exec(o[3])){s=(o[2]||" ")+f6[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(o[4])if(lqe.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),LR(e)}else e._isValid=!1}function pqe(e,t,n,r,o,i){var a=[fqe(e),Yce.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function fqe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function hqe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gqe(e,t,n){if(e){var r=eue.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return An(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mqe(e,t,n){if(e)return dqe[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function iue(e){var t=uqe.exec(hqe(e._i)),n;if(t){if(n=pqe(t[4],t[3],t[2],t[5],t[6],t[7]),!gqe(t[1],n,e))return;e._a=n,e._tzm=mqe(t[8],t[9],t[10]),e._d=Mb.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),An(e).rfc2822=!0}else e._isValid=!1}function vqe(e){var t=cqe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(oue(e),e._isValid===!1)delete e._isValid;else return;if(iue(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:nt.createFromInputFallback(e)}nt.createFromInputFallback=Us("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 nm(e,t,n){return e!=null?e:t!=null?t:n}function yqe(e){var t=new Date(nt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function PR(e){var t,n,r=[],o,i,a;if(!e._d){for(o=yqe(e),e._w&&e._a[Ql]==null&&e._a[eu]==null&&bqe(e),e._dayOfYear!=null&&(a=nm(e._a[Ni],o[Ni]),(e._dayOfYear>I1(a)||e._dayOfYear===0)&&(An(e)._overflowDayOfYear=!0),n=Mb(a,0,e._dayOfYear),e._a[eu]=n.getUTCMonth(),e._a[Ql]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Zo]===24&&e._a[pl]===0&&e._a[tu]===0&&e._a[Nf]===0&&(e._nextDay=!0,e._a[Zo]=0),e._d=(e._useUTC?Mb:TGe).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Zo]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(An(e).weekdayMismatch=!0)}}function bqe(e){var t,n,r,o,i,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=nm(t.GG,e._a[Ni],Ab(Br(),1,4).year),r=nm(t.W,1),o=nm(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ab(Br(),i,a),n=nm(t.gg,e._a[Ni],u.year),r=nm(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>fu(n,i,a)?An(e)._overflowWeeks=!0:l!=null?An(e)._overflowWeekday=!0:(s=Qce(n,r,o,i,a),e._a[Ni]=s.year,e._dayOfYear=s.dayOfYear)}nt.ISO_8601=function(){};nt.RFC_2822=function(){};function LR(e){if(e._f===nt.ISO_8601){oue(e);return}if(e._f===nt.RFC_2822){iue(e);return}e._a=[],An(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,u,d;for(o=Bce(e._f,e._locale).match(kR)||[],d=o.length,n=0;n<d;n++)i=o[n],r=(t.match(aGe(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&An(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Lm[i]?(r?An(e).empty=!1:An(e).unusedTokens.push(i),lGe(i,r,e)):e._strict&&!r&&An(e).unusedTokens.push(i);An(e).charsLeftOver=s-l,t.length>0&&An(e).unusedInput.push(t),e._a[Zo]<=12&&An(e).bigHour===!0&&e._a[Zo]>0&&(An(e).bigHour=void 0),An(e).parsedDateParts=e._a.slice(0),An(e).meridiem=e._meridiem,e._a[Zo]=xqe(e._locale,e._a[Zo],e._meridiem),u=An(e).era,u!==null&&(e._a[Ni]=e._locale.erasConvertYear(u,e._a[Ni])),PR(e),NR(e)}function xqe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function _qe(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){An(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)i=0,a=!1,t=SR({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],LR(t),CR(t)&&(a=!0),i+=An(t).charsLeftOver,i+=An(t).unusedTokens.length*10,An(t).score=i,s?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(s=!0));zd(e,n||t)}function wqe(e){if(!e._d){var t=ER(e._i),n=t.day===void 0?t.date:t.day;e._a=Lce([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),PR(e)}}function Cqe(e){var t=new kx(NR(aue(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function aue(e){var t=e._i,n=e._f;return e._locale=e._locale||Nu(e._l),t===null||n===void 0&&t===""?p3({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Sl(t)?new kx(NR(t)):(Tx(t)?e._d=t:Cl(n)?_qe(e):n?LR(e):Sqe(e),CR(e)||(e._d=null),e))}function Sqe(e){var t=e._i;la(t)?e._d=new Date(nt.now()):Tx(t)?e._d=new Date(t.valueOf()):typeof t=="string"?vqe(e):Cl(t)?(e._a=Lce(t.slice(0),function(n){return parseInt(n,10)}),PR(e)):Jf(t)?wqe(e):Eu(t)?e._d=new Date(t):nt.createFromInputFallback(e)}function sue(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Jf(e)&&wR(e)||Cl(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Cqe(i)}function Br(e,t,n,r){return sue(e,t,n,r,!1)}var Tqe=Us("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Br.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p3()}),kqe=Us("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Br.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p3()});function lue(e,t){var n,r;if(t.length===1&&Cl(t[0])&&(t=t[0]),!t.length)return Br();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Eqe(){var e=[].slice.call(arguments,0);return lue("isBefore",e)}function Iqe(){var e=[].slice.call(arguments,0);return lue("isAfter",e)}var Mqe=function(){return Date.now?Date.now():+new Date},py=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Aqe(e){var t,n=!1,r,o=py.length;for(t in e)if(qn(e,t)&&!(wo.call(py,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[py[r]]){if(n)return!1;parseFloat(e[py[r]])!==Ln(e[py[r]])&&(n=!0)}return!0}function Oqe(){return this._isValid}function Dqe(){return Al(NaN)}function x3(e){var t=ER(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=Aqe(t),this._milliseconds=+d+u*1e3+l*6e4+s*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=Nu(),this._bubble()}function Jw(e){return e instanceof x3}function PA(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function jqe(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)Ln(e[a])!==Ln(t[a])&&i++;return i+o}function cue(e,t){tn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+bc(~~(n/60),2)+t+bc(~~n%60,2)})}cue("Z",":");cue("ZZ","");zt("Z",v3);zt("ZZ",v3);Cr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=$R(v3,e)});var Rqe=/([\+\-]|\d\d)/gi;function $R(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(Rqe)||["-",0,0],i=+(o[1]*60)+Ln(o[2]),i===0?0:o[0]==="+"?i:-i)}function FR(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Sl(e)||Tx(e)?e.valueOf():Br(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),nt.updateOffset(n,!1),n):Br(e).local()}function LA(e){return-Math.round(e._d.getTimezoneOffset())}nt.updateOffset=function(){};function zqe(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=$R(v3,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=LA(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?pue(this,Al(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,nt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:LA(this)}function Nqe(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Pqe(e){return this.utcOffset(0,e)}function Lqe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(LA(this),"m")),this}function $qe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=$R(oGe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Fqe(e){return this.isValid()?(e=e?Br(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Bqe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vqe(){if(!la(this._isDSTShifted))return this._isDSTShifted;var e={},t;return SR(e,this),e=aue(e),e._a?(t=e._isUTC?wc(e._a):Br(e._a),this._isDSTShifted=this.isValid()&&jqe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Hqe(){return this.isValid()?!this._isUTC:!1}function Uqe(){return this.isValid()?this._isUTC:!1}function uue(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Wqe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gqe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Al(e,t){var n=e,r=null,o,i,a;return Jw(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Eu(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Wqe.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:Ln(r[Ql])*o,h:Ln(r[Zo])*o,m:Ln(r[pl])*o,s:Ln(r[tu])*o,ms:Ln(PA(r[Nf]*1e3))*o}):(r=Gqe.exec(e))?(o=r[1]==="-"?-1:1,n={y:Kp(r[2],o),M:Kp(r[3],o),w:Kp(r[4],o),d:Kp(r[5],o),h:Kp(r[6],o),m:Kp(r[7],o),s:Kp(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=qqe(Br(n.from),Br(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new x3(n),Jw(e)&&qn(e,"_locale")&&(i._locale=e._locale),Jw(e)&&qn(e,"_isValid")&&(i._isValid=e._isValid),i}Al.fn=x3.prototype;Al.invalid=Dqe;function Kp(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function pZ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qqe(e,t){var n;return e.isValid()&&t.isValid()?(t=FR(t,e),e.isBefore(t)?n=pZ(e,t):(n=pZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function due(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(Fce(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=n,n=r,r=i),o=Al(n,r),pue(this,o,e),this}}function pue(e,t,n,r){var o=t._milliseconds,i=PA(t._days),a=PA(t._months);e.isValid()&&(r=r==null?!0:r,a&&Jce(e,Ib(e,"Month")+a*n),i&&qce(e,"Date",Ib(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&nt.updateOffset(e,i||a))}var Yqe=due(1,"add"),Zqe=due(-1,"subtract");function fue(e){return typeof e=="string"||e instanceof String}function Jqe(e){return Sl(e)||Tx(e)||fue(e)||Eu(e)||Kqe(e)||Xqe(e)||e===null||e===void 0}function Xqe(e){var t=Jf(e)&&!wR(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;o<a;o+=1)i=r[o],n=n||qn(e,i);return t&&n}function Kqe(e){var t=Cl(e),n=!1;return t&&(n=e.filter(function(r){return!Eu(r)&&fue(e)}).length===0),t&&n}function Qqe(e){var t=Jf(e)&&!wR(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||qn(e,i);return t&&n}function eYe(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function tYe(e,t){arguments.length===1&&(arguments[0]?Jqe(arguments[0])?(e=arguments[0],t=void 0):Qqe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Br(),r=FR(n,this).startOf("day"),o=nt.calendarFormat(this,r)||"sameElse",i=t&&(Cc(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Br(n)))}function nYe(){return new kx(this)}function rYe(e,t){var n=Sl(e)?e:Br(e);return this.isValid()&&n.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function oYe(e,t){var n=Sl(e)?e:Br(e);return this.isValid()&&n.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function iYe(e,t,n,r){var o=Sl(e)?e:Br(e),i=Sl(t)?t:Br(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function aYe(e,t){var n=Sl(e)?e:Br(e),r;return this.isValid()&&n.isValid()?(t=Ws(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function sYe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function lYe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function cYe(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=FR(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=Ws(t),t){case"year":i=Xw(this,r)/12;break;case"month":i=Xw(this,r);break;case"quarter":i=Xw(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:xs(i)}function Xw(e,t){if(e.date()<t.date())return-Xw(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}nt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";nt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function uYe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dYe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Zw(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Cc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Zw(n,"Z")):Zw(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function pYe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function fYe(e){e||(e=this.isUtc()?nt.defaultFormatUtc:nt.defaultFormat);var t=Zw(this,e);return this.localeData().postformat(t)}function hYe(e,t){return this.isValid()&&(Sl(e)&&e.isValid()||Br(e).isValid())?Al({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gYe(e){return this.from(Br(),e)}function mYe(e,t){return this.isValid()&&(Sl(e)&&e.isValid()||Br(e).isValid())?Al({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function vYe(e){return this.to(Br(),e)}function hue(e){var t;return e===void 0?this._locale._abbr:(t=Nu(e),t!=null&&(this._locale=t),this)}var gue=Us("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 mue(){return this._locale}var fS=1e3,$m=60*fS,hS=60*$m,vue=(365*400+97)*24*hS;function Fm(e,t){return(e%t+t)%t}function yue(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-vue:new Date(e,t,n).valueOf()}function bue(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-vue:Date.UTC(e,t,n)}function yYe(e){var t,n;if(e=Ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bue:yue,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Fm(t+(this._isUTC?0:this.utcOffset()*$m),hS);break;case"minute":t=this._d.valueOf(),t-=Fm(t,$m);break;case"second":t=this._d.valueOf(),t-=Fm(t,fS);break}return this._d.setTime(t),nt.updateOffset(this,!0),this}function bYe(e){var t,n;if(e=Ws(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?bue:yue,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hS-Fm(t+(this._isUTC?0:this.utcOffset()*$m),hS)-1;break;case"minute":t=this._d.valueOf(),t+=$m-Fm(t,$m)-1;break;case"second":t=this._d.valueOf(),t+=fS-Fm(t,fS)-1;break}return this._d.setTime(t),nt.updateOffset(this,!0),this}function xYe(){return this._d.valueOf()-(this._offset||0)*6e4}function _Ye(){return Math.floor(this.valueOf()/1e3)}function wYe(){return new Date(this.valueOf())}function CYe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function SYe(){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 TYe(){return this.isValid()?this.toISOString():null}function kYe(){return CR(this)}function EYe(){return zd({},An(this))}function IYe(){return An(this).overflow}function MYe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tn("N",0,0,"eraAbbr");tn("NN",0,0,"eraAbbr");tn("NNN",0,0,"eraAbbr");tn("NNNN",0,0,"eraName");tn("NNNNN",0,0,"eraNarrow");tn("y",["y",1],"yo","eraYear");tn("y",["yy",2],0,"eraYear");tn("y",["yyy",3],0,"eraYear");tn("y",["yyyy",4],0,"eraYear");zt("N",BR);zt("NN",BR);zt("NNN",BR);zt("NNNN",FYe);zt("NNNNN",BYe);Cr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?An(n).era=o:An(n).invalidEra=e});zt("y",rv);zt("yy",rv);zt("yyy",rv);zt("yyyy",rv);zt("yo",VYe);Cr(["y","yy","yyy","yyyy"],Ni);Cr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ni]=n._locale.eraYearOrdinalParse(e,o):t[Ni]=parseInt(e,10)});function AYe(e,t){var n,r,o,i=this._eras||Nu("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=nt(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=nt(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function OYe(e,t,n){var r,o,i=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(a=i[r].name.toUpperCase(),s=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([a,s,l].indexOf(e)>=0)return i[r]}function DYe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?nt(e.since).year():nt(e.since).year()+(t-e.offset)*n}function jYe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function RYe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function zYe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function NYe(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-nt(o[e].since).year())*n+o[e].offset;return this.year()}function PYe(e){return qn(this,"_erasNameRegex")||VR.call(this),e?this._erasNameRegex:this._erasRegex}function LYe(e){return qn(this,"_erasAbbrRegex")||VR.call(this),e?this._erasAbbrRegex:this._erasRegex}function $Ye(e){return qn(this,"_erasNarrowRegex")||VR.call(this),e?this._erasNarrowRegex:this._erasRegex}function BR(e,t){return t.erasAbbrRegex(e)}function FYe(e,t){return t.erasNameRegex(e)}function BYe(e,t){return t.erasNarrowRegex(e)}function VYe(e,t){return t._eraYearOrdinalRegex||rv}function VR(){var e=[],t=[],n=[],r=[],o,i,a,s,l,u=this.eras();for(o=0,i=u.length;o<i;++o)a=pu(u[o].name),s=pu(u[o].abbr),l=pu(u[o].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}tn(0,["gg",2],0,function(){return this.weekYear()%100});tn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _3(e,t){tn(0,[e,e.length],0,t)}_3("gggg","weekYear");_3("ggggg","weekYear");_3("GGGG","isoWeekYear");_3("GGGGG","isoWeekYear");zt("G",m3);zt("g",m3);zt("GG",Vr,ts);zt("gg",Vr,ts);zt("GGGG",MR,IR);zt("gggg",MR,IR);zt("GGGGG",g3,f3);zt("ggggg",g3,f3);Ix(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ln(e)});Ix(["gg","GG"],function(e,t,n,r){t[r]=nt.parseTwoDigitYear(e)});function HYe(e){return xue.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function UYe(e){return xue.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function WYe(){return fu(this.year(),1,4)}function GYe(){return fu(this.isoWeekYear(),1,4)}function qYe(){var e=this.localeData()._week;return fu(this.year(),e.dow,e.doy)}function YYe(){var e=this.localeData()._week;return fu(this.weekYear(),e.dow,e.doy)}function xue(e,t,n,r,o){var i;return e==null?Ab(this,r,o).year:(i=fu(e,r,o),t>i&&(t=i),ZYe.call(this,e,t,n,r,o))}function ZYe(e,t,n,r,o){var i=Qce(e,t,n,r,o),a=Mb(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}tn("Q",0,"Qo","quarter");zt("Q",Vce);Cr("Q",function(e,t){t[eu]=(Ln(e)-1)*3});function JYe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}tn("D",["DD",2],"Do","date");zt("D",Vr,ov);zt("DD",Vr,ts);zt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Cr(["D","DD"],Ql);Cr("Do",function(e,t){t[Ql]=Ln(e.match(Vr)[0])});var _ue=iv("Date",!0);tn("DDD",["DDDD",3],"DDDo","dayOfYear");zt("DDD",h3);zt("DDDD",Hce);Cr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ln(e)});function XYe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}tn("m",["mm",2],0,"minute");zt("m",Vr,AR);zt("mm",Vr,ts);Cr(["m","mm"],pl);var KYe=iv("Minutes",!1);tn("s",["ss",2],0,"second");zt("s",Vr,AR);zt("ss",Vr,ts);Cr(["s","ss"],tu);var QYe=iv("Seconds",!1);tn("S",0,0,function(){return~~(this.millisecond()/100)});tn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tn(0,["SSS",3],0,"millisecond");tn(0,["SSSS",4],0,function(){return this.millisecond()*10});tn(0,["SSSSS",5],0,function(){return this.millisecond()*100});tn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});zt("S",h3,Vce);zt("SS",h3,ts);zt("SSS",h3,Hce);var Nd,wue;for(Nd="SSSS";Nd.length<=9;Nd+="S")zt(Nd,rv);function eZe(e,t){t[Nf]=Ln(("0."+e)*1e3)}for(Nd="S";Nd.length<=9;Nd+="S")Cr(Nd,eZe);wue=iv("Milliseconds",!1);tn("z",0,0,"zoneAbbr");tn("zz",0,0,"zoneName");function tZe(){return this._isUTC?"UTC":""}function nZe(){return this._isUTC?"Coordinated Universal Time":""}var ot=kx.prototype;ot.add=Yqe;ot.calendar=tYe;ot.clone=nYe;ot.diff=cYe;ot.endOf=bYe;ot.format=fYe;ot.from=hYe;ot.fromNow=gYe;ot.to=mYe;ot.toNow=vYe;ot.get=pGe;ot.invalidAt=IYe;ot.isAfter=rYe;ot.isBefore=oYe;ot.isBetween=iYe;ot.isSame=aYe;ot.isSameOrAfter=sYe;ot.isSameOrBefore=lYe;ot.isValid=kYe;ot.lang=gue;ot.locale=hue;ot.localeData=mue;ot.max=kqe;ot.min=Tqe;ot.parsingFlags=EYe;ot.set=fGe;ot.startOf=yYe;ot.subtract=Zqe;ot.toArray=CYe;ot.toObject=SYe;ot.toDate=wYe;ot.toISOString=dYe;ot.inspect=pYe;typeof Symbol!="undefined"&&Symbol.for!=null&&(ot[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ot.toJSON=TYe;ot.toString=uYe;ot.unix=_Ye;ot.valueOf=xYe;ot.creationData=MYe;ot.eraName=jYe;ot.eraNarrow=RYe;ot.eraAbbr=zYe;ot.eraYear=NYe;ot.year=Gce;ot.isLeapYear=dGe;ot.weekYear=HYe;ot.isoWeekYear=UYe;ot.quarter=ot.quarters=JYe;ot.month=Xce;ot.daysInMonth=wGe;ot.week=ot.weeks=AGe;ot.isoWeek=ot.isoWeeks=OGe;ot.weeksInYear=qYe;ot.weeksInWeekYear=YYe;ot.isoWeeksInYear=WYe;ot.isoWeeksInISOWeekYear=GYe;ot.date=_ue;ot.day=ot.days=UGe;ot.weekday=WGe;ot.isoWeekday=GGe;ot.dayOfYear=XYe;ot.hour=ot.hours=QGe;ot.minute=ot.minutes=KYe;ot.second=ot.seconds=QYe;ot.millisecond=ot.milliseconds=wue;ot.utcOffset=zqe;ot.utc=Pqe;ot.local=Lqe;ot.parseZone=$qe;ot.hasAlignedHourOffset=Fqe;ot.isDST=Bqe;ot.isLocal=Hqe;ot.isUtcOffset=Uqe;ot.isUtc=uue;ot.isUTC=uue;ot.zoneAbbr=tZe;ot.zoneName=nZe;ot.dates=Us("dates accessor is deprecated. Use date instead.",_ue);ot.months=Us("months accessor is deprecated. Use month instead",Xce);ot.years=Us("years accessor is deprecated. Use year instead",Gce);ot.zone=Us("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nqe);ot.isDSTShifted=Us("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vqe);function rZe(e){return Br(e*1e3)}function oZe(){return Br.apply(null,arguments).parseZone()}function Cue(e){return e}var Yn=TR.prototype;Yn.calendar=HWe;Yn.longDateFormat=qWe;Yn.invalidDate=ZWe;Yn.ordinal=KWe;Yn.preparse=Cue;Yn.postformat=Cue;Yn.relativeTime=eGe;Yn.pastFuture=tGe;Yn.set=BWe;Yn.eras=AYe;Yn.erasParse=OYe;Yn.erasConvertYear=DYe;Yn.erasAbbrRegex=LYe;Yn.erasNameRegex=PYe;Yn.erasNarrowRegex=$Ye;Yn.months=yGe;Yn.monthsShort=bGe;Yn.monthsParse=_Ge;Yn.monthsRegex=SGe;Yn.monthsShortRegex=CGe;Yn.week=kGe;Yn.firstDayOfYear=MGe;Yn.firstDayOfWeek=IGe;Yn.weekdays=$Ge;Yn.weekdaysMin=BGe;Yn.weekdaysShort=FGe;Yn.weekdaysParse=HGe;Yn.weekdaysRegex=qGe;Yn.weekdaysShortRegex=YGe;Yn.weekdaysMinRegex=ZGe;Yn.isPM=XGe;Yn.meridiem=eqe;function gS(e,t,n,r){var o=Nu(),i=wc().set(r,t);return o[n](i,e)}function Sue(e,t,n){if(Eu(e)&&(t=e,e=void 0),e=e||"",t!=null)return gS(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=gS(e,r,n,"month");return o}function HR(e,t,n,r){typeof e=="boolean"?(Eu(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Eu(t)&&(n=t,t=void 0),t=t||"");var o=Nu(),i=e?o._week.dow:0,a,s=[];if(n!=null)return gS(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=gS(t,(a+i)%7,r,"day");return s}function iZe(e,t){return Sue(e,t,"months")}function aZe(e,t){return Sue(e,t,"monthsShort")}function sZe(e,t,n){return HR(e,t,n,"weekdays")}function lZe(e,t,n){return HR(e,t,n,"weekdaysShort")}function cZe(e,t,n){return HR(e,t,n,"weekdaysMin")}qd("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,n=Ln(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});nt.lang=Us("moment.lang is deprecated. Use moment.locale instead.",qd);nt.langData=Us("moment.langData is deprecated. Use moment.localeData instead.",Nu);var Rc=Math.abs;function uZe(){var e=this._data;return this._milliseconds=Rc(this._milliseconds),this._days=Rc(this._days),this._months=Rc(this._months),e.milliseconds=Rc(e.milliseconds),e.seconds=Rc(e.seconds),e.minutes=Rc(e.minutes),e.hours=Rc(e.hours),e.months=Rc(e.months),e.years=Rc(e.years),this}function Tue(e,t,n,r){var o=Al(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function dZe(e,t){return Tue(this,e,t,1)}function pZe(e,t){return Tue(this,e,t,-1)}function fZ(e){return e<0?Math.floor(e):Math.ceil(e)}function fZe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=fZ($A(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=xs(e/1e3),r.seconds=o%60,i=xs(o/60),r.minutes=i%60,a=xs(i/60),r.hours=a%24,t+=xs(a/24),l=xs(kue(t)),n+=l,t-=fZ($A(l)),s=xs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function kue(e){return e*4800/146097}function $A(e){return e*146097/4800}function hZe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Ws(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+kue(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round($A(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Pu(e){return function(){return this.as(e)}}var Eue=Pu("ms"),gZe=Pu("s"),mZe=Pu("m"),vZe=Pu("h"),yZe=Pu("d"),bZe=Pu("w"),xZe=Pu("M"),_Ze=Pu("Q"),wZe=Pu("y"),CZe=Eue;function SZe(){return Al(this)}function TZe(e){return e=Ws(e),this.isValid()?this[e+"s"]():NaN}function Lh(e){return function(){return this.isValid()?this._data[e]:NaN}}var kZe=Lh("milliseconds"),EZe=Lh("seconds"),IZe=Lh("minutes"),MZe=Lh("hours"),AZe=Lh("days"),OZe=Lh("months"),DZe=Lh("years");function jZe(){return xs(this.days()/7)}var Vc=Math.round,wm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function RZe(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function zZe(e,t,n,r){var o=Al(e).abs(),i=Vc(o.as("s")),a=Vc(o.as("m")),s=Vc(o.as("h")),l=Vc(o.as("d")),u=Vc(o.as("M")),d=Vc(o.as("w")),g=Vc(o.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),f=f||u<=1&&["M"]||u<n.M&&["MM",u]||g<=1&&["y"]||["yy",g],f[2]=t,f[3]=+e>0,f[4]=r,RZe.apply(null,f)}function NZe(e){return e===void 0?Vc:typeof e=="function"?(Vc=e,!0):!1}function PZe(e,t){return wm[e]===void 0?!1:t===void 0?wm[e]:(wm[e]=t,e==="s"&&(wm.ss=t-1),!0)}function LZe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=wm,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},wm,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=zZe(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var h6=Math.abs;function Hg(e){return(e>0)-(e<0)||+e}function w3(){if(!this.isValid())return this.localeData().invalidDate();var e=h6(this._milliseconds)/1e3,t=h6(this._days),n=h6(this._months),r,o,i,a,s=this.asSeconds(),l,u,d,g;return s?(r=xs(e/60),o=xs(r/60),e%=60,r%=60,i=xs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Hg(this._months)!==Hg(s)?"-":"",d=Hg(this._days)!==Hg(s)?"-":"",g=Hg(this._milliseconds)!==Hg(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?g+o+"H":"")+(r?g+r+"M":"")+(e?g+a+"S":"")):"P0D"}var $n=x3.prototype;$n.isValid=Oqe;$n.abs=uZe;$n.add=dZe;$n.subtract=pZe;$n.as=hZe;$n.asMilliseconds=Eue;$n.asSeconds=gZe;$n.asMinutes=mZe;$n.asHours=vZe;$n.asDays=yZe;$n.asWeeks=bZe;$n.asMonths=xZe;$n.asQuarters=_Ze;$n.asYears=wZe;$n.valueOf=CZe;$n._bubble=fZe;$n.clone=SZe;$n.get=TZe;$n.milliseconds=kZe;$n.seconds=EZe;$n.minutes=IZe;$n.hours=MZe;$n.days=AZe;$n.weeks=jZe;$n.months=OZe;$n.years=DZe;$n.humanize=LZe;$n.toISOString=w3;$n.toString=w3;$n.toJSON=w3;$n.locale=hue;$n.localeData=mue;$n.toIsoString=Us("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",w3);$n.lang=gue;tn("X",0,0,"unix");tn("x",0,0,"valueOf");zt("x",m3);zt("X",iGe);Cr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Cr("x",function(e,t,n){n._d=new Date(Ln(e))});//! moment.js
|
|
2981
|
-
nt.version="2.30.1";$We(Br);nt.fn=ot;nt.min=Eqe;nt.max=Iqe;nt.now=Mqe;nt.utc=wc;nt.unix=rZe;nt.months=iZe;nt.isDate=Tx;nt.locale=qd;nt.invalid=p3;nt.duration=Al;nt.isMoment=Sl;nt.weekdays=sZe;nt.parseZone=oZe;nt.localeData=Nu;nt.isDuration=Jw;nt.monthsShort=aZe;nt.weekdaysMin=cZe;nt.defineLocale=zR;nt.updateLocale=oqe;nt.locales=iqe;nt.weekdaysShort=lZe;nt.normalizeUnits=Ws;nt.relativeTimeRounding=NZe;nt.relativeTimeThreshold=PZe;nt.calendarFormat=eYe;nt.prototype=ot;nt.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 $Ze=yh({DATE:pi().default(nt().format("YYYY-MM-DD")),START_TIME:pi().default(nt().format("HH:mm")),DURATION:pi({required_error:"Please enter meeting duration!"})}),FZe=e=>{var b,x,w,_,C,T;const{meetingId:t,setMeetingId:n}=e,r=_i(),o=Ko(S=>S.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=Hs("en"),{data:s,isFetching:l}=Io(no,{url:`${en.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:u,isLoading:d}=Fr(mo,"rescheduleOneToOne",{onSuccess:({data:{message:S,data:k}})=>{if(k!=null&&k.loginRequired)return v("",k==null?void 0:k.loginLink);r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:S||"Meeting has been rescheduled successfully!",type:"success"}),y()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),g=Y.useMemo(()=>{var S,k,I;if(s)return{DURATION:xn.convertToMinutes(((S=s==null?void 0:s.meetingDetails)==null?void 0:S.DURATION)||"00:30:00").toString(),START_TIME:((k=s==null?void 0:s.meetingDetails)==null?void 0:k.START_TIME)||nt().format("HH:mm"),DATE:((I=s==null?void 0:s.meetingDetails)==null?void 0:I.DATE)||nt().format("YYYY-MM-DD")}},[s]),{control:f,formState:{errors:h},handleSubmit:c,reset:p}=bh({resolver:ev($Ze),mode:"onChange",values:g}),m=()=>{c(S=>{const N=S,{START_TIME:k,DURATION:I}=N,M=fn(N,["START_TIME","DURATION"]),{hours:A,minutes:O,seconds:j}=xn.convertTime(`00:${I}:00`);let R=G({MEETING_ID:t,DURATION:`${A}:${O}:${j}`,START_TIME:`${k}:00`},M);u({data:R,url:en.ONE_TO_ONE.RESCHEDULE})})()},v=(S,k)=>{const I=xn.openPopup(k,S,600,600),M=setInterval(()=>{I!=null&&I.closed&&(clearInterval(M),m())},1e3)},y=()=>(p(),n(void 0));return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:l||d}),D.jsx(hp,{title:D.jsxs(Oe,{display:"flex",flexDirection:"row",alignItems:"center",children:[D.jsx(vi,{children:D.jsx(_R,{color:"primary"})}),D.jsx(oh,{level:5,fontSize:16,children:"Reschedule One To One"})]}),open:!!t,onClose:y,maxWidth:"md",children:D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsxs(Oe,{display:"flex",gap:1,alignItems:"center",mb:1,children:[D.jsx(bn,{fontSize:14,children:"Schedule With"}),D.jsxs("div",{className:"avatar_container",children:[D.jsx(ea,{sx:{height:30,width:30},src:(b=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?b:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),D.jsxs("span",{children:[(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?x:"--"," (",(w=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?w:"--",")"]})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(Wn,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"sm"}),D.jsx(Wn,{type:"textarea",label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"sm",disabled:!0})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(bn,{fontSize:14,children:"Choose Date & Time"}),D.jsx(Po,{name:"DATE",control:f,render:({field:S})=>D.jsx("input",G({className:"input-date",type:"date"},S))}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"START_TIME",control:f,render:({field:S})=>D.jsx("input",G({className:"input-date",type:"time",style:{flex:1}},S))}),D.jsx(Po,{name:"DURATION",control:f,render:I=>{var{field:M}=I,A=M,{value:S}=A,k=fn(A,["value"]);return D.jsx(Oe,{display:"flex",flexDirection:"column",flex:1,children:D.jsx(Wn,G({required:!0,placeholder:"Duration in minutes",type:"number",value:S||"",error:h!=null&&h.DURATION?h==null?void 0:h.DURATION.message:""},k))})}})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsx(bn,{fontSize:14,children:"Choose Medium"}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(v4,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((S,k)=>D.jsx(g4,{value:S.value,children:S.label},k))}),D.jsx(y4,{label:(_=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:_.LABEL,sx:{width:1},value:((T=s==null?void 0:s.meetingDetails)==null?void 0:T[(C=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:C.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),D.jsxs(Oe,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[D.jsx(Gn,{size:"small",variant:"outlined",onClick:y,children:"Cancel"}),D.jsx(Gn,{size:"small",onClick:()=>m(),children:"Submit"})]})]})})]})},BZe=we(oO)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),VZe=e=>{var L,$,F,V,W,U,q,ee,X,K,ne,te,re,ie,se,ue,he,fe,ge,be,Q,oe,J,le,ce,pe,_e,Te,Se,Ie,et,pt,at,wt,Me,je,Be,ht;const{meetingId:t,setMeetingId:n,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=_i(),a=Ao(Pe=>Pe.session.ASSETS_BASE_URL),s=Ko(Pe=>Pe.pushAlert),{session:{user:l}}=Ao(),{ImageViewer:u,setImageURL:d}=l3(),{PdfViewer:g,setPdfURL:f}=lR(),{ONE_TO_ONE_MEDIUM_TYPES:h}=Hs("en"),{data:c,isFetching:p}=Io(no,{url:`${en.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:m,isLoading:v}=Fr(mo,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),n(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:Pe=>{var mt,Ge;s({message:((Ge=(mt=Pe==null?void 0:Pe.response)==null?void 0:mt.data)==null?void 0:Ge.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:b}=Fr(mo,"createOneToOneRemark",{onSuccess:Pe=>{var mt;i.invalidateQueries("fetchOneToOneDetails"),s({message:((mt=Pe==null?void 0:Pe.data)==null?void 0:mt.message)||"Remark has been created successfully!",type:"success"}),_()},onError:Pe=>{var mt,Ge;s({message:((Ge=(mt=Pe==null?void 0:Pe.response)==null?void 0:mt.data)==null?void 0:Ge.message)||"Error, while creating the remark!",type:"error"})}}),{control:x,watch:w,reset:_,handleSubmit:C}=bh({resolver:ev(CWe),mode:"onChange",values:{VISIBLE_TO:(c==null?void 0:c.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:T,remove:S}=E1({name:"IMAGES",control:x}),{append:k,remove:I}=E1({name:"FILES",control:x}),[M,A,O]=w(["TEXT","FILES","IMAGES"]),j=(Pe,mt,Ge)=>{var it,ft,Ze,Et;switch(Pe){case io.SHEDULE_BY_WITH_OUTSIDE:return mt===(l==null?void 0:l.employee_id)||Ge===(l==null?void 0:l.employee_id);case io.SHEDULE_BY_WITH:return((it=c==null?void 0:c.meetingDetails)==null?void 0:it.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((ft=c==null?void 0:c.meetingDetails)==null?void 0:ft.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case io.SHEDULE_BY:return((Ze=c==null?void 0:c.meetingDetails)==null?void 0:Ze.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case io.SHEDULE_WITH:return((Et=c==null?void 0:c.meetingDetails)==null?void 0:Et.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},R=Pe=>{const mt=Pe.target.files;if(!(!mt||!mt.length))for(const Ge of mt)T(Ge)},N=Pe=>{A.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const mt=Pe.target.files;if(!(!mt||!mt.length))for(const Ge of mt)k(Ge)},z=C(it=>It(exports,null,function*(){var ft=it,{IMAGES:Pe,FILES:mt}=ft,Ge=fn(ft,["IMAGES","FILES"]);const Ze=[...mt,...Pe],Et=ye(G({},Ge),{FILES:Ze,MEETING_ID:t}),mn=xn.convertToFormData(Et);y({url:en.ONE_TO_ONE.REMARK.CREATE,data:mn})})),P=()=>{m({url:en.ONE_TO_ONE.UPDATE,data:{MEETING_ID:t,MEETING_STATUS:zce.COMPLETED}})};return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:p||v||b}),D.jsx(x0,{header:{title:"Meeting Details"},open:!!t,fullScreen:!0,handleClose:()=>n(void 0),children:D.jsxs("div",{className:Zs.meeting__details,children:[D.jsx("div",{className:Zs.meeting__details__topbox,children:D.jsxs(cr,{container:!0,children:[D.jsxs(cr,{item:!0,md:8,children:[D.jsxs("h3",{children:[(L=c==null?void 0:c.meetingDetails)==null?void 0:L.TITLE,D.jsx("span",{style:{color:(($=c==null?void 0:c.meetingDetails)==null?void 0:$.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((F=c==null?void 0:c.meetingDetails)==null?void 0:F.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(V=c==null?void 0:c.meetingDetails)==null?void 0:V.DISPLAY_MEETING_STATUS})]}),D.jsx("p",{className:Zs.meeting_desc,children:(W=c==null?void 0:c.meetingDetails)==null?void 0:W.DESCRIPTION}),D.jsxs("div",{className:Zs.bottom_create_loaction,children:[D.jsxs("p",{children:["Created by: ",D.jsxs("span",{children:[(q=(U=c==null?void 0:c.meetingDetails)==null?void 0:U.SCHEDULE_BY)!=null?q:"--"," (",(X=(ee=c==null?void 0:c.meetingDetails)==null?void 0:ee.SCHEDULE_BY_EMPLOYEE_CODE)!=null?X:"--",")"]})]}),D.jsxs("p",{children:["Created on: ",D.jsx("span",{children:(ne=(K=c==null?void 0:c.meetingDetails)==null?void 0:K.CREATED_DATE)!=null?ne:"--"}),D.jsx("span",{children:(re=(te=c==null?void 0:c.meetingDetails)==null?void 0:te.CREATED_TIME)!=null?re:"--"})]}),D.jsxs("p",{children:["Medium: ",D.jsx("span",{children:(se=(ie=c==null?void 0:c.meetingDetails)==null?void 0:ie.MEDIUM)!=null?se:"--"})]}),D.jsxs("p",{children:[(he=h[(ue=c==null?void 0:c.meetingDetails)==null?void 0:ue.MEDIUM_ID])==null?void 0:he.LABEL,": ",((fe=c==null?void 0:c.meetingDetails)==null?void 0:fe.MEDIUM_ID)===2||((ge=c==null?void 0:c.meetingDetails)==null?void 0:ge.MEDIUM_ID)===4?D.jsx("a",{href:(oe=c==null?void 0:c.meetingDetails)==null?void 0:oe[(Q=h[(be=c==null?void 0:c.meetingDetails)==null?void 0:be.MEDIUM_ID])==null?void 0:Q.COLUMN_NAME],children:D.jsx(yl,{limit:60,data:(pe=(ce=c==null?void 0:c.meetingDetails)==null?void 0:ce[(le=h[(J=c==null?void 0:c.meetingDetails)==null?void 0:J.MEDIUM_ID])==null?void 0:le.COLUMN_NAME])!=null?pe:"--"})}):D.jsx("span",{children:(Ie=(Se=c==null?void 0:c.meetingDetails)==null?void 0:Se[(Te=h[(_e=c==null?void 0:c.meetingDetails)==null?void 0:_e.MEDIUM_ID])==null?void 0:Te.COLUMN_NAME])!=null?Ie:"--"})]})]})]}),D.jsx(cr,{item:!0,md:4,style:{textAlign:"right"},children:((et=c==null?void 0:c.meetingDetails)==null?void 0:et.DISPLAY_MEETING_STATUS)!=="Completed"?D.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!j(io==null?void 0:io.SHEDULE_BY_WITH)&&D.jsx(Gn,{size:"small",onClick:()=>{o(t)},variant:"outlined",children:"Re-schedule"}),!!j(io==null?void 0:io.SHEDULE_BY)&&D.jsx(Gn,{size:"small",onClick:P,children:"Mark as Complete"})]}):null})]})}),D.jsxs("div",{className:Zs.date__time__box,children:[D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(u3,{})}),(pt=c==null?void 0:c.meetingDetails)==null?void 0:pt.DATE]}),D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(gR,{})}),(at=c==null?void 0:c.meetingDetails)==null?void 0:at.START_TIME," - ",(wt=c==null?void 0:c.meetingDetails)==null?void 0:wt.END_TIME]})]}),D.jsxs("div",{className:Zs.connected__meeting,children:[D.jsx("span",{style:{marginRight:"5px"},children:D.jsx(Rce,{})}),"Conducted with:",D.jsxs("span",{style:{marginLeft:"5px"},children:[(Me=c==null?void 0:c.meetingDetails)==null?void 0:Me.SCHEDULE_WITH," (",(Be=(je=c==null?void 0:c.meetingDetails)==null?void 0:je.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?Be:"--",")"]})]}),D.jsxs(D.Fragment,{children:[Array.isArray(c==null?void 0:c.meetingRemark)&&((ht=c==null?void 0:c.meetingRemark)==null?void 0:ht.map((Pe,mt)=>{var Ge,it,ft;return D.jsx(D.Fragment,{children:((Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)==="Visible to me"&&!j(io==null?void 0:io.SHEDULE_WITH)||(Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)==="Visible to All")&&D.jsx("div",{className:Zs.remarks__meeting,children:D.jsxs("div",{style:{marginBottom:"20px"},children:[D.jsxs("h4",{children:["Remarks",j(io==null?void 0:io.SHEDULE_BY)&&D.jsxs("span",{children:[D.jsx(Nce,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),D.jsx("p",{children:Pe==null?void 0:Pe.TEXT}),D.jsx("div",{className:"images__structure",children:(Pe==null?void 0:Pe.REMARK_ATTACHMENTS)&&((Ge=Pe==null?void 0:Pe.REMARK_ATTACHMENTS)==null?void 0:Ge.map(Ze=>D.jsx(D.Fragment,{children:(Ze==null?void 0:Ze.FILE_TYPE)==="pdf"||(Ze==null?void 0:Ze.FILE_TYPE)==="xls"?D.jsxs(Oe,{className:"pdfView__preview",children:[D.jsx(Oe,{mr:1,display:"flex",alignItems:"center",children:(Ze==null?void 0:Ze.FILE_TYPE)==="pdf"?D.jsx(bWe,{size:18}):D.jsx(d3,{style:{width:"30px"}})}),D.jsxs(Oe,{children:[D.jsx("p",{children:D.jsx(yl,{data:Ze==null?void 0:Ze.FILE_NAME,limit:20})}),D.jsx("div",{className:Zs.previeww__color,onClick:()=>f(`${a}/${Ze==null?void 0:Ze.FILE_PATH}`),children:"Preview"})]})]}):null})))}),D.jsx("div",{className:"images__structure",children:(Pe==null?void 0:Pe.REMARK_ATTACHMENTS)&&((it=Pe==null?void 0:Pe.REMARK_ATTACHMENTS)==null?void 0:it.map(Ze=>D.jsx(D.Fragment,{children:(Ze==null?void 0:Ze.FILE_TYPE)==="png"||(Ze==null?void 0:Ze.FILE_TYPE)==="jpeg"||(Ze==null?void 0:Ze.FILE_TYPE)==="webp"||(Ze==null?void 0:Ze.FILE_TYPE)==="jpg"?D.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>d(`${a}/${Ze==null?void 0:Ze.FILE_PATH}`),alt:"",src:`${a}/${Ze==null?void 0:Ze.FILE_PATH}`,width:200}):null})))}),D.jsxs("div",{className:Zs.comment__users__meeting,children:[D.jsx(ea,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((ft=Pe==null?void 0:Pe.remark_auther)==null?void 0:ft.profileSrc)||`https://robohash.org/${Pe==null?void 0:Pe.CREATED_BY}`}),Pe==null?void 0:Pe.CREATED_BY," ",D.jsx("span",{children:Pe==null?void 0:Pe.CREATED_DATE}),D.jsx("span",{children:Pe==null?void 0:Pe.CREATED_TIME})]})]})},mt)})})),j(io==null?void 0:io.SHEDULE_BY_WITH)&&D.jsxs("div",{className:Zs.editor__remarks,children:[D.jsx(Po,{control:x,name:"TEXT",render:({field:{value:Pe,onChange:mt,onBlur:Ge}})=>D.jsx(BZe,{placeholder:"Type your remarks",value:Pe,onChange:it=>mt(it.target.value),onBlur:Ge})}),D.jsx(Oe,{className:"main__upload__box",mx:2,children:O==null?void 0:O.map((Pe,mt)=>D.jsxs(Oe,{className:"all__upload__images",children:[D.jsx("img",{src:URL.createObjectURL(Pe),height:"200",alt:"upload"}),D.jsx("button",{onClick:()=>S(mt),children:D.jsx(Gd,{style:{width:"20px",height:"20px"}})})]},Pe))}),D.jsx(Oe,{className:"main__upload__box",mx:2,children:A==null?void 0:A.map((Pe,mt)=>D.jsxs(Oe,{className:"pdfView__preview",children:[D.jsx(Oe,{style:{marginRight:"10px"},children:D.jsx("p",{children:D.jsx(Eb,{size:22,color:"red"})})}),D.jsx(Oe,{children:D.jsx("p",{children:D.jsx(yl,{data:Pe==null?void 0:Pe.name,limit:20})})}),D.jsx("button",{onClick:()=>I(mt),children:D.jsx(Gd,{style:{width:"20px",height:"20px"}})})]}))}),D.jsxs("div",{className:Zs.editor__bottom,children:[D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsxs("label",{style:{cursor:"pointer"},children:[D.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:R,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),D.jsx("span",{children:D.jsx(dR,{})})]}),D.jsxs("label",{style:{cursor:"pointer"},children:[D.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:N,disabled:(A==null?void 0:A.length)>10,style:{display:"none"}}),D.jsx("span",{children:D.jsx(yR,{})})]})]}),D.jsxs("div",{className:"start-flex",children:[j(io==null?void 0:io.SHEDULE_BY)&&D.jsx(Po,{control:x,name:"VISIBLE_TO",render:({field:{value:Pe,onChange:mt}})=>D.jsx(rh,{style:{marginRight:"20px"},control:D.jsx(L0,{sx:{marginLeft:"10px"},size:"small",checked:!!Pe}),label:"Show to employee",labelPlacement:"start",onChange:(Ge,it)=>(mt(+it),Ge)})}),D.jsx(Gn,{size:"small",onClick:z,disabled:!M||(M==null?void 0:M.length)===0,children:"Send"})]})]})]})]})]})}),D.jsx(FZe,{meetingId:r,setMeetingId:o}),D.jsx(u,{}),D.jsx(g,{})]})},HZe=yh({MEETING_TITLE:pi({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:pi().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:lp({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:pi().default(nt().format("YYYY-MM-DD")),START_TIME:pi().default(nt().format("HH:mm")),DURATION:pi({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:lp().default(1),MEDIUM_ALIAS:pi().optional(),EVENT_UID:pi().optional()}),X2={GOOGLE_MEET:2,MS_TEAMS:4},Iue=e=>{var U,q,ee;const{open:t,setOpen:n,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=_i(),{user:u,API_BASE_URL:d,token:g}=Ao(X=>X.session),f=Ko(X=>X.pushAlert),{ONE_TO_ONE_TYPES:h,ONE_TO_ONE_MEDIUM_TYPES:c}=Hs("en"),[p,m]=Y.useState([]),v=X=>It(exports,null,function*(){var K,ne;try{const te=yield no({url:`${d}${en.EMPLOYEE.SEARCH}`,token:g,params:{search_for:"appreciation",search:X}});return((ne=(K=te==null?void 0:te.data)==null?void 0:K.data)==null?void 0:ne.map(ie=>G({label:`${ie.NAME} (${ie.EMPLOYEE_CODE})`,value:ie.EMPLOYEE_ID},ie)))||[]}catch(te){return console.error(te),[]}}),{mutate:y,isLoading:b}=Fr(mo,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),f({message:"Meeting has been scheduled successfully!",type:"success"}),j(),n(!1)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:x}=Fr(v7,"cancelVirtualMeetLink"),{mutate:w,isLoading:_}=Fr(mo,"generateGoogleMeetLink",{onSuccess:({data:{message:X,data:K}})=>{if(K!=null&&K.loginRequired)return $(K==null?void 0:K.loginLink);f({message:X,type:"success"}),O("MEDIUM",2),O("EVENT_UID",K==null?void 0:K.id),O("MEDIUM_ALIAS",K==null?void 0:K.hangoutLink)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while generating the Google Meet link!",type:"error"})}}),{mutate:C,isLoading:T}=Fr(mo,"generateMsTeamMeetLink",{onSuccess:({data:{message:X,data:K}})=>{var ne;if(K!=null&&K.loginRequired)return F(K==null?void 0:K.loginLink);f({message:X,type:"success"}),O("MEDIUM",4),O("EVENT_UID",K==null?void 0:K.id),O("MEDIUM_ALIAS",(ne=K==null?void 0:K.onlineMeeting)==null?void 0:ne.joinUrl)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while generating the Microsoft Teams link!",type:"error"})}}),{control:S,formState:{errors:k},trigger:I,watch:M,handleSubmit:A,setValue:O,reset:j,getValues:R}=bh({resolver:ev(HZe),mode:"onChange",defaultValues:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:nt().format("HH:mm"),DATE:nt().format("YYYY-MM-DD")}}),[N,z]=M(["MEDIUM","DESCRIPTION"]),P=()=>{A(X=>{const fe=X,{MEDIUM:K,MEDIUM_ALIAS:ne,START_TIME:te,DURATION:re}=fe,ie=fn(fe,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]),{hours:se,minutes:ue,seconds:he}=xn.convertTime(`00:${re}:00`);X=G({MEDIUM:K,DURATION:`${se}:${ue}:${he}`,START_TIME:`${te}:00`,[c==null?void 0:c[K].COLUMN_NAME]:ne},ie),y({data:X,url:en.ONE_TO_ONE.CREATE})})()},L=X=>It(exports,null,function*(){if(!(yield I()))return;const he=R(),{START_TIME:K,DURATION:ne}=he,te=fn(he,["START_TIME","DURATION"]),{hours:re,minutes:ie,seconds:se}=xn.convertTime(`00:${ne}:00`),ue=G({DURATION:`${re}:${ie}:${se}`,START_TIME:`${K}:00`},te);switch(X){case X2.GOOGLE_MEET:w({url:en.ONE_TO_ONE.GOOGLE_MEET.CREATE,data:ue});break;case X2.MS_TEAMS:C({url:en.ONE_TO_ONE.MS_TEAMS.CREATE,data:ue});break}}),$=X=>{const K=V(X,"Google Login",600,600),ne=setInterval(()=>{K!=null&&K.closed&&(L(X2.GOOGLE_MEET),clearInterval(ne))},1e3)},F=X=>{const K=V(X,"Microsoft Login",600,600),ne=setInterval(()=>{K!=null&&K.closed&&(clearInterval(ne),L(X2.MS_TEAMS))},1e3)},V=(X,K,ne,te)=>{const re=window.innerWidth/2-ne/2,ie=window.innerHeight/2-te/2;return window.open(X,K,`width=${ne},height=${te},top=${ie},left=${re}`)},W=()=>{const X=R("EVENT_UID");X&&x({url:en.ONE_TO_ONE.GOOGLE_MEET.CANCEL,data:{EVENT_UID:X,MEDIUM:N}}),j(),n(!1)};return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:b||_||T}),D.jsx(hp,{title:D.jsxs(Oe,{display:"flex",flexDirection:"row",alignItems:"center",children:[D.jsx(vi,{children:D.jsx(_R,{color:"primary",sx:{color:u==null?void 0:u.PRODUCT_THEME_COLOR,fontSize:28}})}),D.jsx(oh,{level:5,children:"Schedule One To One"})]}),open:t,onClose:W,maxWidth:"md",children:D.jsxs(Oe,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[D.jsxs(Oe,{display:"flex",gap:2,mb:1,children:[D.jsx(bn,{mt:1,fontSize:14,children:"Schedule With"}),r?D.jsxs("div",{className:"avatar_container",children:[D.jsx(ea,{sx:{height:30,width:30},src:(U=r==null?void 0:r[`${s}`])!=null?U:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),D.jsxs("span",{children:[(q=r==null?void 0:r[`${o}`])!=null?q:"--"," ",(ee=r==null?void 0:r[`${a}`])!=null?ee:"--"]})]}):D.jsx(Po,{name:"SCHEDULE_WITH",control:S,render:({field:{onChange:X}})=>{var K;return D.jsx(Oe,{maxWidth:300,children:D.jsx(So,{placeholder:"Choose Empl..",name:"CC_EMPLOYEE",isMulti:!1,onChange:ne=>{m(ne);const te={target:{label:ne==null?void 0:ne.label,value:ne==null?void 0:ne.value}};X(te)},isClearable:!0,value:p,error:(K=k==null?void 0:k.SCHEDULE_WITH)==null?void 0:K.message,loadOptions:v})})}})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(Po,{name:"MEETING_TITLE",control:S,render:({field:X})=>D.jsx(Oe,{children:D.jsx(Wn,G({label:"Meeting Title",required:!0,size:"sm",error:k!=null&&k.MEETING_TITLE?k.MEETING_TITLE.message:""},X))})}),D.jsx(Po,{name:"DESCRIPTION",control:S,render:({field:X})=>D.jsxs(Oe,{display:"flex",flexDirection:"column",children:[D.jsx(Wn,G({label:"Description",size:"sm",type:"textarea",style:{minHeight:100},error:k!=null&&k.DESCRIPTION?k.DESCRIPTION.message:""},X)),D.jsx("div",{className:"mt-10",children:D.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(z==null?void 0:z.length)||0,"/150"]})})]})})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(bn,{fontSize:14,children:"Choose Date & Time"}),D.jsx(Po,{name:"DATE",control:S,render:({field:X})=>D.jsx("input",G({className:"input-date",type:"date"},X))}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"START_TIME",control:S,render:({field:X})=>D.jsx(Wn,G({type:"time",className:"input-time",style:{flex:1,paddingLeft:6,paddingRight:6}},X))}),D.jsx(Po,{name:"DURATION",control:S,render:({field:X})=>D.jsx(Wn,G({label:"Duration in minutes",placeholder:"Duration in minutes",floatingLabel:!0,required:!0,size:"sm",type:"number",style:{flex:1},error:k!=null&&k.DURATION?k.DURATION.message:""},X))})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsx(bn,{fontSize:14,children:"Choose Medium"}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"MEDIUM",control:S,render:({field:{value:X,onChange:K}})=>D.jsx(D.Fragment,{children:D.jsx(So,{size:"sm",value:X,searchByID:!0,onChange:ne=>{ne===2||ne===4?L(ne):K(ne),O("MEDIUM_ALIAS","")},options:h})})}),D.jsx(Po,{name:"MEDIUM_ALIAS",control:S,render:({field:{name:X,value:K,onChange:ne}})=>{var te;return D.jsx(D.Fragment,{children:D.jsx(Wn,{placeholder:(te=c==null?void 0:c[N])==null?void 0:te.LABEL,name:X,value:K,onChange:ne,disabled:N===2||N===4,size:"sm"})})}})]})]}),D.jsxs(Oe,{marginTop:.5,display:"flex",justifyContent:"flex-end",gap:2,children:[D.jsx(Gn,{variant:"outlined",onClick:W,children:"Cancel"}),D.jsx(Gn,{onClick:()=>P(),children:"Submit"})]})]})})]})},UZe="_one__to__one__card_ujqix_1",WZe="_one__to__one__card__top_ujqix_21",GZe="_one__to__one__icon_ujqix_27",qZe="_face__to__face_ujqix_68",K2={one__to__one__card:UZe,one__to__one__card__top:WZe,one__to__one__icon:GZe,face__to__face:qZe},YZe=e=>{const{CONCERN:t="self",employee_id:n}=e,r=_i(),{user:o,token:i}=Ao(A=>A.session),a=Ko(A=>A.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:u}=Hs("en"),[d,g]=Y.useState(void 0),[f,h]=Y.useState(void 0),[c,p]=Y.useState(void 0),[m,v]=Y.useState(!1),[{ONE_TO_ONE_TYPE:y,MONTH_FILTER:b,MEETING_STATUS:x,SEARCH_QUERY:w},_]=Y.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:u[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:C,isFetching:T}=Io(mo,{url:en.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:y,MEETING_STATUS:x.value,MONTH_FILTER:b==null?void 0:b.value,SEARCH_QUERY:w,CONCERN:t,employee_id:n}},"fetchOneToOne"),{mutate:S,isLoading:k}=Fr(mo,"cancelOneToOne",{onSuccess:({data:{message:A,data:O}})=>{if(O!=null&&O.loginRequired)return M("",O==null?void 0:O.loginLink);r.invalidateQueries("fetchOneToOne"),a({message:A||"Meeting has been canceled successfully!",type:"success"})},onError:A=>{var O,j;a({message:((j=(O=A==null?void 0:A.response)==null?void 0:O.data)==null?void 0:j.message)||"Error! while canceling the meeting!",type:"error"})}});Y.useEffect(()=>{d&&I()},[d]);const I=()=>{const{ID:A}=d;let O={MEETING_ID:A,MEETING_STATUS:zce.CANCELED};S({token:i,data:O,url:en.ONE_TO_ONE.UPDATE})},M=(A,O)=>{const j=xn.openPopup(O,A,600,600),R=setInterval(()=>{j!=null&&j.closed&&(clearInterval(R),I())},1e3)};return Ta(T||k),D.jsxs(D.Fragment,{children:[D.jsxs(Oe,{className:"overview__container__bg",style:{overflow:"hidden"},children:[D.jsxs("div",{className:"flex-between-center g-10",children:[D.jsxs(Oe,{display:"flex",gap:2,flexDirection:"row",children:[D.jsx(Wn,{leftIcon:D.jsx(a3,{sx:{height:18,width:18,marginTop:"0px"}}),size:"sm",type:"text",placeholder:"Search",name:"searchText",autoComplete:"off",debounceDelay:600,onDebouncedChange:A=>_(O=>ye(G({},O),{SEARCH_QUERY:A}))}),D.jsx("div",{style:{width:200},children:D.jsx(So,{size:"sm",value:b,options:l,placeholder:"Month",onChange:A=>_(O=>ye(G({},O),{MONTH_FILTER:A})),menuPortalTarget:document.body})}),D.jsx("div",{style:{width:200},children:D.jsx(So,{size:"sm",value:x,options:u,placeholder:"Month",onChange:A=>_(O=>ye(G({},O),{MEETING_STATUS:A})),menuPortalTarget:document.body})})]}),D.jsxs("div",{className:"flex-end-center g-10",children:[D.jsx(Rj,{items:s,value:y,onChangeTab:(A,O)=>_(j=>ye(G({},j),{ONE_TO_ONE_TYPE:O}))}),!n&&D.jsx(Gn,{size:"small",onClick:()=>v(!0),disableElevation:!0,children:"Schedule One to One"})]})]}),D.jsx(Oe,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(C==null?void 0:C.length)>0?C.map((A,O)=>D.jsxs(Oe,{className:K2.one__to__one__card,children:[D.jsxs("div",{className:K2.one__to__one__card__top,children:[D.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>h(A==null?void 0:A.ID),children:[D.jsx("div",{className:K2.one__to__one__icon,children:D.jsx(jce,{})}),D.jsxs(Cs,{size:"sm",children:[A==null?void 0:A.MEETING_TITLE," ",D.jsx("span",{style:{color:(A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":(A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:A==null?void 0:A.DISPLAY_MEETING_STATUS})]})]}),D.jsx("div",{className:"flex-start-center g-10",children:D.jsx("div",{className:K2.face__to__face,children:A==null?void 0:A.MEDIUM})})]}),D.jsxs(Oe,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[D.jsxs("div",{className:"one__icons__bottom",children:[D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(u3,{})}),A==null?void 0:A.DATE]}),D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(gR,{})}),A==null?void 0:A.START_TIME," - ",A==null?void 0:A.END_TIME]}),D.jsxs("p",{children:[D.jsx("span",{style:{marginRight:"3px"},children:"Schedule By:"}),D.jsx(yl,{data:A==null?void 0:A.SCHEDULE_BY,limit:10})]}),D.jsxs("p",{children:[D.jsx("span",{style:{marginRight:"3px"},children:"Schedule With:"}),D.jsx(yl,{data:A==null?void 0:A.SCHEDULE_WITH,limit:10})]})]}),D.jsx(Oe,{display:"flex",gap:2,children:((A==null?void 0:A.SCHEDULE_BY_ID)===(o==null?void 0:o.employee_id)||(A==null?void 0:A.SCHEDULE_WITH_ID)===(o==null?void 0:o.employee_id))&&((A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Completed"?D.jsx(Gn,{size:"small",variant:"text",onClick:()=>h(A==null?void 0:A.ID),children:"Add Remarks"}):D.jsxs(D.Fragment,{children:[D.jsx(Gn,{size:"small",variant:"text",onClick:()=>p(A==null?void 0:A.ID),children:"Reschedule"}),D.jsx(Gn,{size:"small",variant:"text",onClick:()=>g(A),children:"Cancel"})]}))})]})]},O)):D.jsx(Qc,{message:"No One to One's found"})})]}),D.jsx(VZe,{meetingId:f,setMeetingId:h,openReScheduleModalMeetingId:c,setReScheduleModalMeetingId:p}),D.jsx(Iue,{open:m,setOpen:v})]})},gf={CREATE:"CREATE",EDIT:"EDIT"},ad={SELF:"self"},ZZe={employee_name:"EMPLOYEE NAME",reviewer_name:"REVIEWER NAME",approver_name:"APPROVER NAME",hr_name:"HR NAME",end_date:"END DATE",start_date:"START DATE"},hZ=[{label:"Employee",value:"6"},{label:"Reviewer",value:"2"},{label:"Admin",value:"1"},{label:"HR",value:"3"}],JZe=({isPopoverOpen:e,anchorPosition:t,onClose:n=()=>{},popoverMenu:r=[]})=>D.jsx(tx,{open:e,anchorPosition:t,anchorReference:"anchorPosition",onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:D.jsx(f4,{disablePadding:!0,children:Array.isArray(r)&&r.map((o,i)=>(o.isVisible===void 0||o.isVisible)&&D.jsx(qQ,{onClick:o.onClick,sx:{cursor:"pointer"},children:D.jsx(ZQ,{primaryTypographyProps:{variant:"body2",fontWeight:500},primary:o.title})},i))})}),XZe={employeeId:"",concern:"self",pipId:""},Mue=Y.createContext(XZe),KZe=Mue.Provider,UR=()=>{const e=Y.useContext(Mue);if(!e)throw new Error("usePipContext must be used within an PipProvider");return e};var WR={},QZe=er;Object.defineProperty(WR,"__esModule",{value:!0});var Aue=WR.default=void 0,eJe=QZe(yr()),tJe=D;Aue=WR.default=(0,eJe.default)((0,tJe.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var GR={},nJe=er;Object.defineProperty(GR,"__esModule",{value:!0});var Oue=GR.default=void 0,rJe=nJe(yr()),oJe=D;Oue=GR.default=(0,rJe.default)((0,oJe.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");function rm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Due(e){if(B.isValidElement(e)||ya.isValidElementType(e)||!rm(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Due(e[n])}),t}function FA(e,t,n={clone:!0}){const r=n.clone?G({},e):e;return rm(e)&&rm(t)&&Object.keys(t).forEach(o=>{B.isValidElement(t[o])||ya.isValidElementType(t[o])?r[o]=t[o]:rm(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rm(e[o])?r[o]=FA(e[o],t[o],n):n.clone?r[o]=rm(t[o])?Due(t[o]):t[o]:r[o]=t[o]}),r}const iJe="exact-prop: ";function aJe(e){return process.env.NODE_ENV==="production"?e:ye(G({},e),{[iJe]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function sJe(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function jue(e,t=""){return e.displayName||e.name||t}function gZ(e,t,n){const r=jue(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function g6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return jue(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ya.ForwardRef:return gZ(e,e.render,"ForwardRef");case ya.Memo:return gZ(e,e.type,"memo");default:return}}}function m6(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sJe(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Rue=B.createContext(null);process.env.NODE_ENV!=="production"&&(Rue.displayName="ThemeContext");function lJe(){const e=B.useContext(Rue);return process.env.NODE_ENV!=="production"&&B.useDebugValue(e),e}const cJe=typeof Symbol=="function"&&Symbol.for,uJe=cJe?Symbol.for("mui.nested"):"__THEME_NESTED__",dJe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pJe(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,process.env.NODE_ENV!=="production"&&i>=1e10&&console.warn(["MUI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),i);return(s,l)=>{const u=l.options.name;if(u&&u.startsWith("Mui")&&!l.options.link&&!t){if(dJe.includes(s.key))return`Mui-${s.key}`;const g=`${o}${u}-${s.key}`;return!l.options.theme[uJe]||r!==""?g:`${g}-${a()}`}if(process.env.NODE_ENV==="production")return`${o}${n}${a()}`;const d=`${s.key}-${a()}`;return l.options.classNamePrefix?`${o}${l.options.classNamePrefix}-${d}`:`${o}${d}`}}var fJe=process.env.NODE_ENV==="production";function lr(e,t){if(!fJe){var n="Warning: "+t;typeof console!="undefined"&&console.warn(n);try{throw Error(n)}catch(r){}}}var mZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mx=(typeof window=="undefined"?"undefined":mZ(window))==="object"&&(typeof document=="undefined"?"undefined":mZ(document))==="object"&&document.nodeType===9;function hJe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rbe(r.key),r)}}function zue(e,t,n){return t&&hJe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var gJe={}.constructor;function BA(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(BA);if(e.constructor!==gJe)return e;var t={};for(var n in e)t[n]=BA(e[n]);return t}function qR(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,o=BA(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0]==="@"&&process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] Unknown rule "+e),null)}var vZ=function(t,n){for(var r="",o=0;o<t.length&&t[o]!=="!important";o++)r&&(r+=n),r+=t[o];return r},Xf=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=vZ(t[r]," ");else n=vZ(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function av(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
2981
|
+
nt.version="2.30.1";$We(Br);nt.fn=ot;nt.min=Eqe;nt.max=Iqe;nt.now=Mqe;nt.utc=wc;nt.unix=rZe;nt.months=iZe;nt.isDate=Tx;nt.locale=qd;nt.invalid=p3;nt.duration=Al;nt.isMoment=Sl;nt.weekdays=sZe;nt.parseZone=oZe;nt.localeData=Nu;nt.isDuration=Jw;nt.monthsShort=aZe;nt.weekdaysMin=cZe;nt.defineLocale=zR;nt.updateLocale=oqe;nt.locales=iqe;nt.weekdaysShort=lZe;nt.normalizeUnits=Ws;nt.relativeTimeRounding=NZe;nt.relativeTimeThreshold=PZe;nt.calendarFormat=eYe;nt.prototype=ot;nt.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 $Ze=yh({DATE:pi().default(nt().format("YYYY-MM-DD")),START_TIME:pi().default(nt().format("HH:mm")),DURATION:pi({required_error:"Please enter meeting duration!"})}),FZe=e=>{var b,x,w,_,C,T;const{meetingId:t,setMeetingId:n}=e,r=_i(),o=Ko(S=>S.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=Hs("en"),{data:s,isFetching:l}=Io(no,{url:`${en.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:u,isLoading:d}=Fr(mo,"rescheduleOneToOne",{onSuccess:({data:{message:S,data:k}})=>{if(k!=null&&k.loginRequired)return v("",k==null?void 0:k.loginLink);r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:S||"Meeting has been rescheduled successfully!",type:"success"}),y()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),g=Y.useMemo(()=>{var S,k,I;if(s)return{DURATION:xn.convertToMinutes(((S=s==null?void 0:s.meetingDetails)==null?void 0:S.DURATION)||"00:30:00").toString(),START_TIME:((k=s==null?void 0:s.meetingDetails)==null?void 0:k.START_TIME)||nt().format("HH:mm"),DATE:((I=s==null?void 0:s.meetingDetails)==null?void 0:I.DATE)||nt().format("YYYY-MM-DD")}},[s]),{control:f,formState:{errors:h},handleSubmit:c,reset:p}=bh({resolver:ev($Ze),mode:"onChange",values:g}),m=()=>{c(S=>{const N=S,{START_TIME:k,DURATION:I}=N,M=fn(N,["START_TIME","DURATION"]),{hours:A,minutes:O,seconds:j}=xn.convertTime(`00:${I}:00`);let R=G({MEETING_ID:t,DURATION:`${A}:${O}:${j}`,START_TIME:`${k}:00`},M);u({data:R,url:en.ONE_TO_ONE.RESCHEDULE})})()},v=(S,k)=>{const I=xn.openPopup(k,S,600,600),M=setInterval(()=>{I!=null&&I.closed&&(clearInterval(M),m())},1e3)},y=()=>(p(),n(void 0));return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:l||d}),D.jsx(hp,{title:D.jsxs(Oe,{display:"flex",flexDirection:"row",alignItems:"center",children:[D.jsx(vi,{children:D.jsx(_R,{color:"primary"})}),D.jsx(oh,{level:5,fontSize:16,children:"Reschedule One To One"})]}),open:!!t,onClose:y,maxWidth:"md",children:D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsxs(Oe,{display:"flex",gap:1,alignItems:"center",mb:1,children:[D.jsx(bn,{fontSize:14,children:"Schedule With"}),D.jsxs("div",{className:"avatar_container",children:[D.jsx(ea,{sx:{height:30,width:30},src:(b=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?b:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),D.jsxs("span",{children:[(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?x:"--"," (",(w=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?w:"--",")"]})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(Wn,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"sm"}),D.jsx(Wn,{type:"textarea",label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"sm",disabled:!0})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(bn,{fontSize:14,children:"Choose Date & Time"}),D.jsx(Po,{name:"DATE",control:f,render:({field:S})=>D.jsx("input",G({className:"input-date",type:"date"},S))}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"START_TIME",control:f,render:({field:S})=>D.jsx("input",G({className:"input-date",type:"time",style:{flex:1}},S))}),D.jsx(Po,{name:"DURATION",control:f,render:I=>{var{field:M}=I,A=M,{value:S}=A,k=fn(A,["value"]);return D.jsx(Oe,{display:"flex",flexDirection:"column",flex:1,children:D.jsx(Wn,G({required:!0,placeholder:"Duration in minutes",type:"number",value:S||"",error:h!=null&&h.DURATION?h==null?void 0:h.DURATION.message:""},k))})}})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsx(bn,{fontSize:14,children:"Choose Medium"}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(v4,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((S,k)=>D.jsx(g4,{value:S.value,children:S.label},k))}),D.jsx(y4,{label:(_=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:_.LABEL,sx:{width:1},value:((T=s==null?void 0:s.meetingDetails)==null?void 0:T[(C=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:C.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),D.jsxs(Oe,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[D.jsx(Gn,{size:"small",variant:"outlined",onClick:y,children:"Cancel"}),D.jsx(Gn,{size:"small",onClick:()=>m(),children:"Submit"})]})]})})]})},BZe=we(oO)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),VZe=e=>{var L,$,F,V,W,U,q,ee,X,K,ne,te,re,ie,se,ue,he,fe,ge,be,Q,oe,J,le,ce,pe,_e,Te,Se,Ie,et,pt,at,wt,Me,je,Be,ht;const{meetingId:t,setMeetingId:n,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=_i(),a=Ao(Pe=>Pe.session.ASSETS_BASE_URL),s=Ko(Pe=>Pe.pushAlert),{session:{user:l}}=Ao(),{ImageViewer:u,setImageURL:d}=l3(),{PdfViewer:g,setPdfURL:f}=lR(),{ONE_TO_ONE_MEDIUM_TYPES:h}=Hs("en"),{data:c,isFetching:p}=Io(no,{url:`${en.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:m,isLoading:v}=Fr(mo,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),n(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:Pe=>{var mt,Ge;s({message:((Ge=(mt=Pe==null?void 0:Pe.response)==null?void 0:mt.data)==null?void 0:Ge.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:b}=Fr(mo,"createOneToOneRemark",{onSuccess:Pe=>{var mt;i.invalidateQueries("fetchOneToOneDetails"),s({message:((mt=Pe==null?void 0:Pe.data)==null?void 0:mt.message)||"Remark has been created successfully!",type:"success"}),_()},onError:Pe=>{var mt,Ge;s({message:((Ge=(mt=Pe==null?void 0:Pe.response)==null?void 0:mt.data)==null?void 0:Ge.message)||"Error, while creating the remark!",type:"error"})}}),{control:x,watch:w,reset:_,handleSubmit:C}=bh({resolver:ev(CWe),mode:"onChange",values:{VISIBLE_TO:(c==null?void 0:c.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:T,remove:S}=E1({name:"IMAGES",control:x}),{append:k,remove:I}=E1({name:"FILES",control:x}),[M,A,O]=w(["TEXT","FILES","IMAGES"]),j=(Pe,mt,Ge)=>{var it,ft,Ze,Et;switch(Pe){case io.SHEDULE_BY_WITH_OUTSIDE:return mt===(l==null?void 0:l.employee_id)||Ge===(l==null?void 0:l.employee_id);case io.SHEDULE_BY_WITH:return((it=c==null?void 0:c.meetingDetails)==null?void 0:it.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((ft=c==null?void 0:c.meetingDetails)==null?void 0:ft.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case io.SHEDULE_BY:return((Ze=c==null?void 0:c.meetingDetails)==null?void 0:Ze.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case io.SHEDULE_WITH:return((Et=c==null?void 0:c.meetingDetails)==null?void 0:Et.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},R=Pe=>{const mt=Pe.target.files;if(!(!mt||!mt.length))for(const Ge of mt)T(Ge)},N=Pe=>{A.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const mt=Pe.target.files;if(!(!mt||!mt.length))for(const Ge of mt)k(Ge)},z=C(it=>It(exports,null,function*(){var ft=it,{IMAGES:Pe,FILES:mt}=ft,Ge=fn(ft,["IMAGES","FILES"]);const Ze=[...mt,...Pe],Et=ye(G({},Ge),{FILES:Ze,MEETING_ID:t}),mn=xn.convertToFormData(Et);y({url:en.ONE_TO_ONE.REMARK.CREATE,data:mn})})),P=()=>{m({url:en.ONE_TO_ONE.UPDATE,data:{MEETING_ID:t,MEETING_STATUS:zce.COMPLETED}})};return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:p||v||b}),D.jsx(x0,{header:{title:"Meeting Details"},open:!!t,fullScreen:!0,handleClose:()=>n(void 0),children:D.jsxs("div",{className:Zs.meeting__details,children:[D.jsx("div",{className:Zs.meeting__details__topbox,children:D.jsxs(cr,{container:!0,children:[D.jsxs(cr,{item:!0,md:8,children:[D.jsxs("h3",{children:[(L=c==null?void 0:c.meetingDetails)==null?void 0:L.TITLE,D.jsx("span",{style:{color:(($=c==null?void 0:c.meetingDetails)==null?void 0:$.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((F=c==null?void 0:c.meetingDetails)==null?void 0:F.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(V=c==null?void 0:c.meetingDetails)==null?void 0:V.DISPLAY_MEETING_STATUS})]}),D.jsx("p",{className:Zs.meeting_desc,children:(W=c==null?void 0:c.meetingDetails)==null?void 0:W.DESCRIPTION}),D.jsxs("div",{className:Zs.bottom_create_loaction,children:[D.jsxs("p",{children:["Created by: ",D.jsxs("span",{children:[(q=(U=c==null?void 0:c.meetingDetails)==null?void 0:U.SCHEDULE_BY)!=null?q:"--"," (",(X=(ee=c==null?void 0:c.meetingDetails)==null?void 0:ee.SCHEDULE_BY_EMPLOYEE_CODE)!=null?X:"--",")"]})]}),D.jsxs("p",{children:["Created on: ",D.jsx("span",{children:(ne=(K=c==null?void 0:c.meetingDetails)==null?void 0:K.CREATED_DATE)!=null?ne:"--"}),D.jsx("span",{children:(re=(te=c==null?void 0:c.meetingDetails)==null?void 0:te.CREATED_TIME)!=null?re:"--"})]}),D.jsxs("p",{children:["Medium: ",D.jsx("span",{children:(se=(ie=c==null?void 0:c.meetingDetails)==null?void 0:ie.MEDIUM)!=null?se:"--"})]}),D.jsxs("p",{children:[(he=h[(ue=c==null?void 0:c.meetingDetails)==null?void 0:ue.MEDIUM_ID])==null?void 0:he.LABEL,": ",((fe=c==null?void 0:c.meetingDetails)==null?void 0:fe.MEDIUM_ID)===2||((ge=c==null?void 0:c.meetingDetails)==null?void 0:ge.MEDIUM_ID)===4?D.jsx("a",{href:(oe=c==null?void 0:c.meetingDetails)==null?void 0:oe[(Q=h[(be=c==null?void 0:c.meetingDetails)==null?void 0:be.MEDIUM_ID])==null?void 0:Q.COLUMN_NAME],children:D.jsx(yl,{limit:60,data:(pe=(ce=c==null?void 0:c.meetingDetails)==null?void 0:ce[(le=h[(J=c==null?void 0:c.meetingDetails)==null?void 0:J.MEDIUM_ID])==null?void 0:le.COLUMN_NAME])!=null?pe:"--"})}):D.jsx("span",{children:(Ie=(Se=c==null?void 0:c.meetingDetails)==null?void 0:Se[(Te=h[(_e=c==null?void 0:c.meetingDetails)==null?void 0:_e.MEDIUM_ID])==null?void 0:Te.COLUMN_NAME])!=null?Ie:"--"})]})]})]}),D.jsx(cr,{item:!0,md:4,style:{textAlign:"right"},children:((et=c==null?void 0:c.meetingDetails)==null?void 0:et.DISPLAY_MEETING_STATUS)!=="Completed"?D.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!j(io==null?void 0:io.SHEDULE_BY_WITH)&&D.jsx(Gn,{size:"small",onClick:()=>{o(t)},variant:"outlined",children:"Re-schedule"}),!!j(io==null?void 0:io.SHEDULE_BY)&&D.jsx(Gn,{size:"small",onClick:P,children:"Mark as Complete"})]}):null})]})}),D.jsxs("div",{className:Zs.date__time__box,children:[D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(u3,{})}),(pt=c==null?void 0:c.meetingDetails)==null?void 0:pt.DATE]}),D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(gR,{})}),(at=c==null?void 0:c.meetingDetails)==null?void 0:at.START_TIME," - ",(wt=c==null?void 0:c.meetingDetails)==null?void 0:wt.END_TIME]})]}),D.jsxs("div",{className:Zs.connected__meeting,children:[D.jsx("span",{style:{marginRight:"5px"},children:D.jsx(Rce,{})}),"Conducted with:",D.jsxs("span",{style:{marginLeft:"5px"},children:[(Me=c==null?void 0:c.meetingDetails)==null?void 0:Me.SCHEDULE_WITH," (",(Be=(je=c==null?void 0:c.meetingDetails)==null?void 0:je.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?Be:"--",")"]})]}),D.jsxs(D.Fragment,{children:[Array.isArray(c==null?void 0:c.meetingRemark)&&((ht=c==null?void 0:c.meetingRemark)==null?void 0:ht.map((Pe,mt)=>{var Ge,it,ft;return D.jsx(D.Fragment,{children:((Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)==="Visible to me"&&!j(io==null?void 0:io.SHEDULE_WITH)||(Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)==="Visible to All")&&D.jsx("div",{className:Zs.remarks__meeting,children:D.jsxs("div",{style:{marginBottom:"20px"},children:[D.jsxs("h4",{children:["Remarks",j(io==null?void 0:io.SHEDULE_BY)&&D.jsxs("span",{children:[D.jsx(Nce,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(Pe==null?void 0:Pe.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),D.jsx("p",{children:Pe==null?void 0:Pe.TEXT}),D.jsx("div",{className:"images__structure",children:(Pe==null?void 0:Pe.REMARK_ATTACHMENTS)&&((Ge=Pe==null?void 0:Pe.REMARK_ATTACHMENTS)==null?void 0:Ge.map(Ze=>D.jsx(D.Fragment,{children:(Ze==null?void 0:Ze.FILE_TYPE)==="pdf"||(Ze==null?void 0:Ze.FILE_TYPE)==="xls"?D.jsxs(Oe,{className:"pdfView__preview",children:[D.jsx(Oe,{mr:1,display:"flex",alignItems:"center",children:(Ze==null?void 0:Ze.FILE_TYPE)==="pdf"?D.jsx(bWe,{size:18}):D.jsx(d3,{style:{width:"30px"}})}),D.jsxs(Oe,{children:[D.jsx("p",{children:D.jsx(yl,{data:Ze==null?void 0:Ze.FILE_NAME,limit:20})}),D.jsx("div",{className:Zs.previeww__color,onClick:()=>f(`${a}/${Ze==null?void 0:Ze.FILE_PATH}`),children:"Preview"})]})]}):null})))}),D.jsx("div",{className:"images__structure",children:(Pe==null?void 0:Pe.REMARK_ATTACHMENTS)&&((it=Pe==null?void 0:Pe.REMARK_ATTACHMENTS)==null?void 0:it.map(Ze=>D.jsx(D.Fragment,{children:(Ze==null?void 0:Ze.FILE_TYPE)==="png"||(Ze==null?void 0:Ze.FILE_TYPE)==="jpeg"||(Ze==null?void 0:Ze.FILE_TYPE)==="webp"||(Ze==null?void 0:Ze.FILE_TYPE)==="jpg"?D.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>d(`${a}/${Ze==null?void 0:Ze.FILE_PATH}`),alt:"",src:`${a}/${Ze==null?void 0:Ze.FILE_PATH}`,width:200}):null})))}),D.jsxs("div",{className:Zs.comment__users__meeting,children:[D.jsx(ea,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((ft=Pe==null?void 0:Pe.remark_auther)==null?void 0:ft.profileSrc)||`https://robohash.org/${Pe==null?void 0:Pe.CREATED_BY}`}),Pe==null?void 0:Pe.CREATED_BY," ",D.jsx("span",{children:Pe==null?void 0:Pe.CREATED_DATE}),D.jsx("span",{children:Pe==null?void 0:Pe.CREATED_TIME})]})]})},mt)})})),j(io==null?void 0:io.SHEDULE_BY_WITH)&&D.jsxs("div",{className:Zs.editor__remarks,children:[D.jsx(Po,{control:x,name:"TEXT",render:({field:{value:Pe,onChange:mt,onBlur:Ge}})=>D.jsx(BZe,{placeholder:"Type your remarks",value:Pe,onChange:it=>mt(it.target.value),onBlur:Ge})}),D.jsx(Oe,{className:"main__upload__box",mx:2,children:O==null?void 0:O.map((Pe,mt)=>D.jsxs(Oe,{className:"all__upload__images",children:[D.jsx("img",{src:URL.createObjectURL(Pe),height:"200",alt:"upload"}),D.jsx("button",{onClick:()=>S(mt),children:D.jsx(Gd,{style:{width:"20px",height:"20px"}})})]},Pe))}),D.jsx(Oe,{className:"main__upload__box",mx:2,children:A==null?void 0:A.map((Pe,mt)=>D.jsxs(Oe,{className:"pdfView__preview",children:[D.jsx(Oe,{style:{marginRight:"10px"},children:D.jsx("p",{children:D.jsx(Eb,{size:22,color:"red"})})}),D.jsx(Oe,{children:D.jsx("p",{children:D.jsx(yl,{data:Pe==null?void 0:Pe.name,limit:20})})}),D.jsx("button",{onClick:()=>I(mt),children:D.jsx(Gd,{style:{width:"20px",height:"20px"}})})]}))}),D.jsxs("div",{className:Zs.editor__bottom,children:[D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsxs("label",{style:{cursor:"pointer"},children:[D.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:R,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),D.jsx("span",{children:D.jsx(dR,{})})]}),D.jsxs("label",{style:{cursor:"pointer"},children:[D.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:N,disabled:(A==null?void 0:A.length)>10,style:{display:"none"}}),D.jsx("span",{children:D.jsx(yR,{})})]})]}),D.jsxs("div",{className:"start-flex",children:[j(io==null?void 0:io.SHEDULE_BY)&&D.jsx(Po,{control:x,name:"VISIBLE_TO",render:({field:{value:Pe,onChange:mt}})=>D.jsx(rh,{style:{marginRight:"20px"},control:D.jsx(L0,{sx:{marginLeft:"10px"},size:"small",checked:!!Pe}),label:"Show to employee",labelPlacement:"start",onChange:(Ge,it)=>(mt(+it),Ge)})}),D.jsx(Gn,{size:"small",onClick:z,disabled:!M||(M==null?void 0:M.length)===0,children:"Send"})]})]})]})]})]})}),D.jsx(FZe,{meetingId:r,setMeetingId:o}),D.jsx(u,{}),D.jsx(g,{})]})},HZe=yh({MEETING_TITLE:pi({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:pi().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:lp({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:pi().default(nt().format("YYYY-MM-DD")),START_TIME:pi().default(nt().format("HH:mm")),DURATION:pi({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:lp().default(1),MEDIUM_ALIAS:pi().optional(),EVENT_UID:pi().optional()}),X2={GOOGLE_MEET:2,MS_TEAMS:4},Iue=e=>{var U,q,ee;const{open:t,setOpen:n,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=_i(),{user:u,API_BASE_URL:d,token:g}=Ao(X=>X.session),f=Ko(X=>X.pushAlert),{ONE_TO_ONE_TYPES:h,ONE_TO_ONE_MEDIUM_TYPES:c}=Hs("en"),[p,m]=Y.useState([]),v=X=>It(exports,null,function*(){var K,ne;try{const te=yield no({url:`${d}${en.EMPLOYEE.SEARCH}`,token:g,params:{search_for:"appreciation",search:X}});return((ne=(K=te==null?void 0:te.data)==null?void 0:K.data)==null?void 0:ne.map(ie=>G({label:`${ie.NAME} (${ie.EMPLOYEE_CODE})`,value:ie.EMPLOYEE_ID},ie)))||[]}catch(te){return console.error(te),[]}}),{mutate:y,isLoading:b}=Fr(mo,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),f({message:"Meeting has been scheduled successfully!",type:"success"}),j(),n(!1)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:x}=Fr(v7,"cancelVirtualMeetLink"),{mutate:w,isLoading:_}=Fr(mo,"generateGoogleMeetLink",{onSuccess:({data:{message:X,data:K}})=>{if(K!=null&&K.loginRequired)return $(K==null?void 0:K.loginLink);f({message:X,type:"success"}),O("MEDIUM",2),O("EVENT_UID",K==null?void 0:K.id),O("MEDIUM_ALIAS",K==null?void 0:K.hangoutLink)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while generating the Google Meet link!",type:"error"})}}),{mutate:C,isLoading:T}=Fr(mo,"generateMsTeamMeetLink",{onSuccess:({data:{message:X,data:K}})=>{var ne;if(K!=null&&K.loginRequired)return F(K==null?void 0:K.loginLink);f({message:X,type:"success"}),O("MEDIUM",4),O("EVENT_UID",K==null?void 0:K.id),O("MEDIUM_ALIAS",(ne=K==null?void 0:K.onlineMeeting)==null?void 0:ne.joinUrl)},onError:X=>{var K;f({message:((K=X==null?void 0:X.response)==null?void 0:K.data.message)||"Error, while generating the Microsoft Teams link!",type:"error"})}}),{control:S,formState:{errors:k},trigger:I,watch:M,handleSubmit:A,setValue:O,reset:j,getValues:R}=bh({resolver:ev(HZe),mode:"onChange",defaultValues:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:nt().format("HH:mm"),DATE:nt().format("YYYY-MM-DD")}}),[N,z]=M(["MEDIUM","DESCRIPTION"]),P=()=>{A(X=>{const fe=X,{MEDIUM:K,MEDIUM_ALIAS:ne,START_TIME:te,DURATION:re}=fe,ie=fn(fe,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]),{hours:se,minutes:ue,seconds:he}=xn.convertTime(`00:${re}:00`);X=G({MEDIUM:K,DURATION:`${se}:${ue}:${he}`,START_TIME:`${te}:00`,[c==null?void 0:c[K].COLUMN_NAME]:ne},ie),y({data:X,url:en.ONE_TO_ONE.CREATE})})()},L=X=>It(exports,null,function*(){if(!(yield I()))return;const he=R(),{START_TIME:K,DURATION:ne}=he,te=fn(he,["START_TIME","DURATION"]),{hours:re,minutes:ie,seconds:se}=xn.convertTime(`00:${ne}:00`),ue=G({DURATION:`${re}:${ie}:${se}`,START_TIME:`${K}:00`},te);switch(X){case X2.GOOGLE_MEET:w({url:en.ONE_TO_ONE.GOOGLE_MEET.CREATE,data:ue});break;case X2.MS_TEAMS:C({url:en.ONE_TO_ONE.MS_TEAMS.CREATE,data:ue});break}}),$=X=>{const K=V(X,"Google Login",600,600),ne=setInterval(()=>{K!=null&&K.closed&&(L(X2.GOOGLE_MEET),clearInterval(ne))},1e3)},F=X=>{const K=V(X,"Microsoft Login",600,600),ne=setInterval(()=>{K!=null&&K.closed&&(clearInterval(ne),L(X2.MS_TEAMS))},1e3)},V=(X,K,ne,te)=>{const re=window.innerWidth/2-ne/2,ie=window.innerHeight/2-te/2;return window.open(X,K,`width=${ne},height=${te},top=${ie},left=${re}`)},W=()=>{const X=R("EVENT_UID");X&&x({url:en.ONE_TO_ONE.GOOGLE_MEET.CANCEL,data:{EVENT_UID:X,MEDIUM:N}}),j(),n(!1)};return D.jsxs(D.Fragment,{children:[D.jsx(Eh,{visible:b||_||T}),D.jsx(hp,{title:D.jsxs(Oe,{display:"flex",flexDirection:"row",alignItems:"center",children:[D.jsx(vi,{children:D.jsx(_R,{color:"primary",sx:{color:u==null?void 0:u.PRODUCT_THEME_COLOR,fontSize:28}})}),D.jsx(oh,{level:5,children:"Schedule One To One"})]}),open:t,onClose:W,maxWidth:"md",children:D.jsxs(Oe,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[D.jsxs(Oe,{display:"flex",gap:2,mb:1,children:[D.jsx(bn,{mt:1,fontSize:14,children:"Schedule With"}),r?D.jsxs("div",{className:"avatar_container",children:[D.jsx(ea,{sx:{height:30,width:30},src:(U=r==null?void 0:r[`${s}`])!=null?U:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),D.jsxs("span",{children:[(q=r==null?void 0:r[`${o}`])!=null?q:"--"," ",(ee=r==null?void 0:r[`${a}`])!=null?ee:"--"]})]}):D.jsx(Po,{name:"SCHEDULE_WITH",control:S,render:({field:{onChange:X}})=>{var K;return D.jsx(Oe,{maxWidth:300,children:D.jsx(So,{placeholder:"Choose Empl..",name:"CC_EMPLOYEE",isMulti:!1,onChange:ne=>{m(ne);const te={target:{label:ne==null?void 0:ne.label,value:ne==null?void 0:ne.value}};X(te)},isClearable:!0,value:p,error:(K=k==null?void 0:k.SCHEDULE_WITH)==null?void 0:K.message,loadOptions:v})})}})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(Po,{name:"MEETING_TITLE",control:S,render:({field:X})=>D.jsx(Oe,{children:D.jsx(Wn,G({label:"Meeting Title",required:!0,size:"sm",error:k!=null&&k.MEETING_TITLE?k.MEETING_TITLE.message:""},X))})}),D.jsx(Po,{name:"DESCRIPTION",control:S,render:({field:X})=>D.jsxs(Oe,{display:"flex",flexDirection:"column",children:[D.jsx(Wn,G({label:"Description",size:"sm",type:"textarea",style:{minHeight:100},error:k!=null&&k.DESCRIPTION?k.DESCRIPTION.message:""},X)),D.jsx("div",{className:"mt-10",children:D.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(z==null?void 0:z.length)||0,"/150"]})})]})})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[D.jsx(bn,{fontSize:14,children:"Choose Date & Time"}),D.jsx(Po,{name:"DATE",control:S,render:({field:X})=>D.jsx("input",G({className:"input-date",type:"date"},X))}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"START_TIME",control:S,render:({field:X})=>D.jsx(Wn,G({type:"time",className:"input-time",style:{flex:1,paddingLeft:6,paddingRight:6}},X))}),D.jsx(Po,{name:"DURATION",control:S,render:({field:X})=>D.jsx(Wn,G({label:"Duration in minutes",placeholder:"Duration in minutes",floatingLabel:!0,required:!0,size:"sm",type:"number",style:{flex:1},error:k!=null&&k.DURATION?k.DURATION.message:""},X))})]})]}),D.jsxs(Oe,{display:"flex",flexDirection:"column",gap:1,children:[D.jsx(bn,{fontSize:14,children:"Choose Medium"}),D.jsxs(Oe,{display:"flex",gap:1,children:[D.jsx(Po,{name:"MEDIUM",control:S,render:({field:{value:X,onChange:K}})=>D.jsx(D.Fragment,{children:D.jsx(So,{size:"sm",value:X,searchByID:!0,onChange:ne=>{ne===2||ne===4?L(ne):K(ne),O("MEDIUM_ALIAS","")},options:h})})}),D.jsx(Po,{name:"MEDIUM_ALIAS",control:S,render:({field:{name:X,value:K,onChange:ne}})=>{var te;return D.jsx(D.Fragment,{children:D.jsx(Wn,{placeholder:(te=c==null?void 0:c[N])==null?void 0:te.LABEL,name:X,value:K,onChange:ne,disabled:N===2||N===4,size:"sm"})})}})]})]}),D.jsxs(Oe,{marginTop:.5,display:"flex",justifyContent:"flex-end",gap:2,children:[D.jsx(Gn,{variant:"outlined",onClick:W,children:"Cancel"}),D.jsx(Gn,{onClick:()=>P(),children:"Submit"})]})]})})]})},UZe="_one__to__one__card_ujqix_1",WZe="_one__to__one__card__top_ujqix_21",GZe="_one__to__one__icon_ujqix_27",qZe="_face__to__face_ujqix_68",K2={one__to__one__card:UZe,one__to__one__card__top:WZe,one__to__one__icon:GZe,face__to__face:qZe},YZe=e=>{const{CONCERN:t="self",employee_id:n}=e,r=_i(),{user:o,token:i}=Ao(A=>A.session),a=Ko(A=>A.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:u}=Hs("en"),[d,g]=Y.useState(void 0),[f,h]=Y.useState(void 0),[c,p]=Y.useState(void 0),[m,v]=Y.useState(!1),[{ONE_TO_ONE_TYPE:y,MONTH_FILTER:b,MEETING_STATUS:x,SEARCH_QUERY:w},_]=Y.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:u[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:C,isFetching:T}=Io(mo,{url:en.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:y,MEETING_STATUS:x.value,MONTH_FILTER:b==null?void 0:b.value,SEARCH_QUERY:w,CONCERN:t,employee_id:n}},"fetchOneToOne"),{mutate:S,isLoading:k}=Fr(mo,"cancelOneToOne",{onSuccess:({data:{message:A,data:O}})=>{if(O!=null&&O.loginRequired)return M("",O==null?void 0:O.loginLink);r.invalidateQueries("fetchOneToOne"),a({message:A||"Meeting has been canceled successfully!",type:"success"})},onError:A=>{var O,j;a({message:((j=(O=A==null?void 0:A.response)==null?void 0:O.data)==null?void 0:j.message)||"Error! while canceling the meeting!",type:"error"})}});Y.useEffect(()=>{d&&I()},[d]);const I=()=>{const{ID:A}=d;let O={MEETING_ID:A,MEETING_STATUS:zce.CANCELED};S({token:i,data:O,url:en.ONE_TO_ONE.UPDATE})},M=(A,O)=>{const j=xn.openPopup(O,A,600,600),R=setInterval(()=>{j!=null&&j.closed&&(clearInterval(R),I())},1e3)};return Ta(T||k),D.jsxs(D.Fragment,{children:[D.jsxs(Oe,{className:"overview__container__bg",style:{overflow:"hidden"},children:[D.jsxs("div",{className:"flex-between-center g-10",children:[D.jsxs(Oe,{display:"flex",gap:2,flexDirection:"row",children:[D.jsx(Wn,{leftIcon:D.jsx(a3,{sx:{height:18,width:18,marginTop:"0px"}}),size:"sm",type:"text",placeholder:"Search",name:"searchText",autoComplete:"off",debounceDelay:600,onDebouncedChange:A=>_(O=>ye(G({},O),{SEARCH_QUERY:A}))}),D.jsx("div",{style:{width:200},children:D.jsx(So,{size:"sm",value:b,options:l,placeholder:"Month",onChange:A=>_(O=>ye(G({},O),{MONTH_FILTER:A})),menuPortalTarget:document.body})}),D.jsx("div",{style:{width:200},children:D.jsx(So,{size:"sm",value:x,options:u,placeholder:"Month",onChange:A=>_(O=>ye(G({},O),{MEETING_STATUS:A})),menuPortalTarget:document.body})})]}),D.jsxs("div",{className:"flex-end-center g-10",children:[D.jsx(Rj,{items:s,value:y,onChangeTab:(A,O)=>_(j=>ye(G({},j),{ONE_TO_ONE_TYPE:O}))}),!n&&D.jsx(Gn,{size:"small",onClick:()=>v(!0),disableElevation:!0,children:"Schedule One to One"})]})]}),D.jsx(Oe,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(C==null?void 0:C.length)>0?C.map((A,O)=>D.jsxs(Oe,{className:K2.one__to__one__card,children:[D.jsxs("div",{className:K2.one__to__one__card__top,children:[D.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>h(A==null?void 0:A.ID),children:[D.jsx("div",{className:K2.one__to__one__icon,children:D.jsx(jce,{})}),D.jsxs(Cs,{size:"sm",children:[A==null?void 0:A.MEETING_TITLE," ",D.jsx("span",{style:{color:(A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":(A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:A==null?void 0:A.DISPLAY_MEETING_STATUS})]})]}),D.jsx("div",{className:"flex-start-center g-10",children:D.jsx("div",{className:K2.face__to__face,children:A==null?void 0:A.MEDIUM})})]}),D.jsxs(Oe,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[D.jsxs("div",{className:"one__icons__bottom",children:[D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(u3,{})}),A==null?void 0:A.DATE]}),D.jsxs("p",{children:[D.jsx("span",{children:D.jsx(gR,{})}),A==null?void 0:A.START_TIME," - ",A==null?void 0:A.END_TIME]}),D.jsxs("p",{children:[D.jsx("span",{style:{marginRight:"3px"},children:"Schedule By:"}),D.jsx(yl,{data:A==null?void 0:A.SCHEDULE_BY,limit:10})]}),D.jsxs("p",{children:[D.jsx("span",{style:{marginRight:"3px"},children:"Schedule With:"}),D.jsx(yl,{data:A==null?void 0:A.SCHEDULE_WITH,limit:10})]})]}),D.jsx(Oe,{display:"flex",gap:2,children:((A==null?void 0:A.SCHEDULE_BY_ID)===(o==null?void 0:o.employee_id)||(A==null?void 0:A.SCHEDULE_WITH_ID)===(o==null?void 0:o.employee_id))&&((A==null?void 0:A.DISPLAY_MEETING_STATUS)==="Completed"?D.jsx(Gn,{size:"small",variant:"text",onClick:()=>h(A==null?void 0:A.ID),children:"Add Remarks"}):D.jsxs(D.Fragment,{children:[D.jsx(Gn,{size:"small",variant:"text",onClick:()=>p(A==null?void 0:A.ID),children:"Reschedule"}),D.jsx(Gn,{size:"small",variant:"text",onClick:()=>g(A),children:"Cancel"})]}))})]})]},O)):D.jsx(Qc,{message:"No One to One's found"})})]}),D.jsx(VZe,{meetingId:f,setMeetingId:h,openReScheduleModalMeetingId:c,setReScheduleModalMeetingId:p}),D.jsx(Iue,{open:m,setOpen:v})]})},gf={CREATE:"CREATE",EDIT:"EDIT"},ad={SELF:"self"},ZZe={employee_name:"EMPLOYEE NAME",reviewer_name:"REVIEWER NAME",approver_name:"APPROVER NAME",hr_name:"HR NAME",end_date:"END DATE",start_date:"START DATE"},hZ=[{label:"Employee",value:"6"},{label:"Reviewer",value:"2"},{label:"Admin",value:"1"},{label:"HR",value:"3"}],JZe=({isPopoverOpen:e,anchorPosition:t,onClose:n=()=>{},popoverMenu:r=[]})=>D.jsx(tx,{open:e,anchorPosition:t,anchorReference:"anchorPosition",onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:D.jsx(f4,{disablePadding:!0,children:Array.isArray(r)&&r.map((o,i)=>(o.isVisible===void 0||o.isVisible)&&D.jsx(qQ,{onClick:o.onClick,sx:{cursor:"pointer"},children:D.jsx(ZQ,{primaryTypographyProps:{variant:"body2",fontWeight:500},primary:o.title})},i))})}),XZe={employeeId:"",concern:"self",pipId:""},Mue=Y.createContext(XZe),KZe=Mue.Provider,UR=()=>{const e=Y.useContext(Mue);if(!e)throw new Error("usePipContext must be used within an PipProvider");return e};var WR={},QZe=er;Object.defineProperty(WR,"__esModule",{value:!0});var Aue=WR.default=void 0,eJe=QZe(yr()),tJe=D;Aue=WR.default=(0,eJe.default)((0,tJe.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var GR={},nJe=er;Object.defineProperty(GR,"__esModule",{value:!0});var Oue=GR.default=void 0,rJe=nJe(yr()),oJe=D;Oue=GR.default=(0,rJe.default)((0,oJe.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");function rm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Due(e){if(B.isValidElement(e)||ya.isValidElementType(e)||!rm(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Due(e[n])}),t}function FA(e,t,n={clone:!0}){const r=n.clone?G({},e):e;return rm(e)&&rm(t)&&Object.keys(t).forEach(o=>{B.isValidElement(t[o])||ya.isValidElementType(t[o])?r[o]=t[o]:rm(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rm(e[o])?r[o]=FA(e[o],t[o],n):n.clone?r[o]=rm(t[o])?Due(t[o]):t[o]:r[o]=t[o]}),r}const iJe="exact-prop: ";function aJe(e){return process.env.NODE_ENV==="production"?e:ye(G({},e),{[iJe]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function sJe(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function jue(e,t=""){return e.displayName||e.name||t}function gZ(e,t,n){const r=jue(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function g6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return jue(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ya.ForwardRef:return gZ(e,e.render,"ForwardRef");case ya.Memo:return gZ(e,e.type,"memo");default:return}}}function m6(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sJe(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Rue=B.createContext(null);process.env.NODE_ENV!=="production"&&(Rue.displayName="ThemeContext");function lJe(){const e=B.useContext(Rue);return process.env.NODE_ENV!=="production"&&B.useDebugValue(e),e}const cJe=typeof Symbol=="function"&&Symbol.for,uJe=cJe?Symbol.for("mui.nested"):"__THEME_NESTED__",dJe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pJe(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,process.env.NODE_ENV!=="production"&&i>=1e10&&console.warn(["MUI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),i);return(s,l)=>{const u=l.options.name;if(u&&u.startsWith("Mui")&&!l.options.link&&!t){if(dJe.includes(s.key))return`Mui-${s.key}`;const g=`${o}${u}-${s.key}`;return!l.options.theme[uJe]||r!==""?g:`${g}-${a()}`}if(process.env.NODE_ENV==="production")return`${o}${n}${a()}`;const d=`${s.key}-${a()}`;return l.options.classNamePrefix?`${o}${l.options.classNamePrefix}-${d}`:`${o}${d}`}}var fJe=process.env.NODE_ENV==="production";function lr(e,t){if(!fJe){var n="Warning: "+t;typeof console!="undefined"&&console.warn(n);try{throw Error(n)}catch(r){}}}var mZ=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mx=(typeof window=="undefined"?"undefined":mZ(window))==="object"&&(typeof document=="undefined"?"undefined":mZ(document))==="object"&&document.nodeType===9;function hJe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rbe(r.key),r)}}function zue(e,t,n){return t&&hJe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var gJe={}.constructor;function BA(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(BA);if(e.constructor!==gJe)return e;var t={};for(var n in e)t[n]=BA(e[n]);return t}function qR(e,t,n){e===void 0&&(e="unnamed");var r=n.jss,o=BA(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0]==="@"&&process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] Unknown rule "+e),null)}var vZ=function(t,n){for(var r="",o=0;o<t.length&&t[o]!=="!important";o++)r&&(r+=n),r+=t[o];return r},Xf=function(t){if(!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&t[r]!=="!important";r++)n&&(n+=", "),n+=vZ(t[r]," ");else n=vZ(t,", ");return t[t.length-1]==="!important"&&(n+=" !important"),n};function av(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
2982
2982
|
`,space:" "}}function fy(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Db(e,t,n){n===void 0&&(n={});var r="";if(!t)return r;var o=n,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;n.format===!1&&(a=-1/0);var l=av(n),u=l.linebreak,d=l.space;if(e&&a++,s)if(Array.isArray(s))for(var g=0;g<s.length;g++){var f=s[g];for(var h in f){var c=f[h];c!=null&&(r&&(r+=u),r+=fy(h+":"+d+Xf(c)+";",a))}}else for(var p in s){var m=s[p];m!=null&&(r&&(r+=u),r+=fy(p+":"+d+Xf(m)+";",a))}for(var v in t){var y=t[v];y!=null&&v!=="fallbacks"&&(r&&(r+=u),r+=fy(v+":"+d+Xf(y)+";",a))}return!r&&!n.allowEmpty||!e?r:(a--,r&&(r=""+u+r+u),fy(""+e+d+"{"+r,a)+fy("}",a))}var mJe=/([[\].#*$><+~=|^:(),"'`\s])/g,yZ=typeof CSS!="undefined"&&CSS.escape,YR=function(e){return yZ?yZ(e):e.replace(mJe,"\\$1")},Nue=function(){function e(n,r,o){this.type="style",this.isProcessed=!1;var i=o.sheet,a=o.Renderer;this.key=n,this.options=o,this.style=r,i?this.renderer=i.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(r,o,i){if(o===void 0)return this.style[r];var a=i?i.force:!1;if(!a&&this.style[r]===o)return this;var s=o;(!i||i.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,r,this));var l=s==null||s===!1,u=r in this.style;if(l&&!u&&!a)return this;var d=l&&u;if(d?delete this.style[r]:this.style[r]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,r):this.renderer.setProperty(this.renderable,r,s),this;var g=this.options.sheet;return g&&g.attached&&process.env.NODE_ENV!=="production"&&lr(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},e}(),VA=function(e){Sh(t,e);function t(r,o,i){var a;a=e.call(this,r,o,i)||this;var s=i.selector,l=i.scoped,u=i.sheet,d=i.generateId;return s?a.selectorText=s:l!==!1&&(a.id=d(CM(CM(a)),u),a.selectorText="."+YR(a.id)),a}var n=t.prototype;return n.applyTo=function(o){var i=this.renderer;if(i){var a=this.toJSON();for(var s in a)i.setProperty(o,s,a[s])}return this},n.toJSON=function(){var o={};for(var i in this.style){var a=this.style[i];typeof a!="object"?o[i]=a:Array.isArray(a)&&(o[i]=Xf(a))}return o},n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?H({},o,{allowEmpty:!0}):o;return Db(this.selectorText,this.style,s)},zue(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,a=this.renderable;if(!(!a||!i)){var s=i.setSelector(a,o);s||i.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(Nue),vJe={onCreateRule:function(t,n,r){return t[0]==="@"||r.parent&&r.parent.type==="keyframes"?null:new VA(t,n,r)}},v6={indent:1,children:!0},yJe=/@([\w-]+)/,bJe=function(){function e(n,r,o){this.type="conditional",this.isProcessed=!1,this.key=n;var i=n.match(yJe);this.at=i?i[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new C3(H({},o,{parent:this}));for(var a in r)this.rules.add(a,r[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(r){return this.rules.get(r)},t.indexOf=function(r){return this.rules.indexOf(r)},t.addRule=function(r,o,i){var a=this.rules.add(r,o,i);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(r,o,i){var a=this.rules.replace(r,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(r){r===void 0&&(r=v6);var o=av(r),i=o.linebreak;if(r.indent==null&&(r.indent=v6.indent),r.children==null&&(r.children=v6.children),r.children===!1)return this.query+" {}";var a=this.rules.toString(r);return a?this.query+" {"+i+a+i+"}":""},e}(),xJe=/@container|@media|@supports\s+/,_Je={onCreateRule:function(t,n,r){return xJe.test(t)?new bJe(t,n,r):null}},y6={indent:1,children:!0},wJe=/@keyframes\s+([\w-]+)/,HA=function(){function e(n,r,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=n.match(wJe);i&&i[1]?this.name=i[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] Bad keyframes name "+n)),this.key=this.type+"-"+this.name,this.options=o;var a=o.scoped,s=o.sheet,l=o.generateId;this.id=a===!1?this.name:YR(l(this,s)),this.rules=new C3(H({},o,{parent:this}));for(var u in r)this.rules.add(u,r[u],H({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(r){r===void 0&&(r=y6);var o=av(r),i=o.linebreak;if(r.indent==null&&(r.indent=y6.indent),r.children==null&&(r.children=y6.children),r.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(r);return a&&(a=""+i+a+i),this.at+" "+this.id+" {"+a+"}"},e}(),CJe=/@keyframes\s+/,SJe=/\$([\w-]+)/g,UA=function(t,n){return typeof t=="string"?t.replace(SJe,function(r,o){return o in n?n[o]:(process.env.NODE_ENV!=="production"&&lr(!1,'[JSS] Referenced keyframes rule "'+o+'" is not defined.'),r)}):t},bZ=function(t,n,r){var o=t[n],i=UA(o,r);i!==o&&(t[n]=i)},TJe={onCreateRule:function(t,n,r){return typeof t=="string"&&CJe.test(t)?new HA(t,n,r):null},onProcessStyle:function(t,n,r){return n.type!=="style"||!r||("animation-name"in t&&bZ(t,"animation-name",r.keyframes),"animation"in t&&bZ(t,"animation",r.keyframes)),t},onChangeValue:function(t,n,r){var o=r.options.sheet;if(!o)return t;switch(n){case"animation":return UA(t,o.keyframes);case"animation-name":return UA(t,o.keyframes);default:return t}}},kJe=function(e){Sh(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?H({},o,{allowEmpty:!0}):o;return Db(this.key,this.style,s)},t}(Nue),EJe={onCreateRule:function(t,n,r){return r.parent&&r.parent.type==="keyframes"?new kJe(t,n,r):null}},IJe=function(){function e(n,r,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){var o=av(r),i=o.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=Db(this.at,this.style[s]),this.style[s+1]&&(a+=i);return a}return Db(this.at,this.style,r)},e}(),MJe=/@font-face/,AJe={onCreateRule:function(t,n,r){return MJe.test(t)?new IJe(t,n,r):null}},OJe=function(){function e(n,r,o){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=r,this.options=o}var t=e.prototype;return t.toString=function(r){return Db(this.key,this.style,r)},e}(),DJe={onCreateRule:function(t,n,r){return t==="@viewport"||t==="@-ms-viewport"?new OJe(t,n,r):null}},jJe=function(){function e(n,r,o){this.type="simple",this.isProcessed=!1,this.key=n,this.value=r,this.options=o}var t=e.prototype;return t.toString=function(r){if(Array.isArray(this.value)){for(var o="",i=0;i<this.value.length;i++)o+=this.key+" "+this.value[i]+";",this.value[i+1]&&(o+=`
|
|
2983
2983
|
`);return o}return this.key+" "+this.value+";"},e}(),RJe={"@charset":!0,"@import":!0,"@namespace":!0},zJe={onCreateRule:function(t,n,r){return t in RJe?new jJe(t,n,r):null}},xZ=[vJe,_Je,TJe,EJe,AJe,DJe,zJe],NJe={process:!0},_Z={force:!0,process:!0},C3=function(){function e(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var t=e.prototype;return t.add=function(r,o,i){var a=this.options,s=a.parent,l=a.sheet,u=a.jss,d=a.Renderer,g=a.generateId,f=a.scoped,h=H({classes:this.classes,parent:s,sheet:l,jss:u,Renderer:d,generateId:g,scoped:f,name:r,keyframes:this.keyframes,selector:void 0},i),c=r;r in this.raw&&(c=r+"-d"+this.counter++),this.raw[c]=o,c in this.classes&&(h.selector="."+YR(this.classes[c]));var p=qR(c,o,h);if(!p)return null;this.register(p);var m=h.index===void 0?this.index.length:h.index;return this.index.splice(m,0,p),p},t.replace=function(r,o,i){var a=this.get(r),s=this.index.indexOf(a);a&&this.remove(a);var l=i;return s!==-1&&(l=H({},i,{index:s})),this.add(r,o,l)},t.get=function(r){return this.map[r]},t.remove=function(r){this.unregister(r),delete this.raw[r.key],this.index.splice(this.index.indexOf(r),1)},t.indexOf=function(r){return this.index.indexOf(r)},t.process=function(){var r=this.options.jss.plugins;this.index.slice(0).forEach(r.onProcessRule,r)},t.register=function(r){this.map[r.key]=r,r instanceof VA?(this.map[r.selector]=r,r.id&&(this.classes[r.key]=r.id)):r instanceof HA&&this.keyframes&&(this.keyframes[r.name]=r.id)},t.unregister=function(r){delete this.map[r.key],r instanceof VA?(delete this.map[r.selector],delete this.classes[r.key]):r instanceof HA&&delete this.keyframes[r.name]},t.update=function(){var r,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(r=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],r=null),r)this.updateOne(this.get(r),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(r,o,i){i===void 0&&(i=NJe);var a=this.options,s=a.jss.plugins,l=a.sheet;if(r.rules instanceof e){r.rules.update(o,i);return}var u=r.style;if(s.onUpdate(o,r,l,i),i.process&&u&&u!==r.style){s.onProcessStyle(r.style,r,l);for(var d in r.style){var g=r.style[d],f=u[d];g!==f&&r.prop(d,g,_Z)}for(var h in u){var c=r.style[h],p=u[h];c==null&&c!==p&&r.prop(h,null,_Z)}}},t.toString=function(r){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=av(r),l=s.linebreak,u=0;u<this.index.length;u++){var d=this.index[u],g=d.toString(r);!g&&!a||(o&&(o+=l),o+=g)}return o},e}(),Pue=function(){function e(n,r){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=H({},r,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),r.Renderer&&(this.renderer=new r.Renderer(this)),this.rules=new C3(this.options);for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(r,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(r,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(r,o,i){var a=this.rules.get(r);if(!a)return this.addRule(r,o,i);var s=this.rules.replace(r,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(r){this.renderer&&this.renderer.insertRule(r)},t.addRules=function(r,o){var i=[];for(var a in r){var s=this.addRule(a,r[a],o);s&&i.push(s)}return i},t.getRule=function(r){return this.rules.get(r)},t.deleteRule=function(r){var o=typeof r=="object"?r:this.rules.get(r);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(r){return this.rules.indexOf(r)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var r;return(r=this.rules).update.apply(r,arguments),this},t.updateOne=function(r,o,i){return this.rules.updateOne(r,o,i),this},t.toString=function(r){return this.rules.toString(r)},e}(),PJe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(r,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](r,o,i);if(s)return s}return null},t.onProcessRule=function(r){if(!r.isProcessed){for(var o=r.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](r,o);r.style&&this.onProcessStyle(r.style,r,o),r.isProcessed=!0}},t.onProcessStyle=function(r,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(r){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](r)},t.onUpdate=function(r,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](r,o,i,a)},t.onChangeValue=function(r,o,i){for(var a=r,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(r,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(r)===-1&&(i.push(r),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var l in s)l in a?a[l].push(s[l]):process.env.NODE_ENV!=="production"&&lr(!1,'[JSS] Unknown hook "'+l+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),LJe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(r){var o=this.registry,i=r.options.index;if(o.indexOf(r)===-1){if(o.length===0||i>=this.index){o.push(r);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,r);return}}},t.reset=function(){this.registry=[]},t.remove=function(r){var o=this.registry.indexOf(r);this.registry.splice(o,1)},t.toString=function(r){for(var o=r===void 0?{}:r,i=o.attached,a=Re(o,["attached"]),s=av(a),l=s.linebreak,u="",d=0;d<this.registry.length;d++){var g=this.registry[d];i!=null&&g.attached!==i||(u&&(u+=l),u+=g.toString(a))}return u},zue(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),M1=new LJe,WA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")(),GA="2f1acc6c3a606b082e5eef5e54414ffb";WA[GA]==null&&(WA[GA]=0);var wZ=WA[GA]++,$Je=1e10,CZ=function(t){t===void 0&&(t={});var n=0,r=function(i,a){n+=1,n>$Je&&process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] You might have a memory leak. Rule counter is at "+n+".");var s="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(l||"c")+wZ+s+n:l+i.key+"-"+wZ+(s?"-"+s:"")+"-"+n};return r},Lue=function(t){var n;return function(){return n||(n=t()),n}},FJe=function(t,n){try{return t.attributeStyleMap?t.attributeStyleMap.get(n):t.style.getPropertyValue(n)}catch(r){return""}},BJe=function(t,n,r){try{var o=r;if(Array.isArray(r)&&(o=Xf(r)),t.attributeStyleMap)t.attributeStyleMap.set(n,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(n,a,i>-1?"important":"")}}catch(s){return!1}return!0},VJe=function(t,n){try{t.attributeStyleMap?t.attributeStyleMap.delete(n):t.style.removeProperty(n)}catch(r){process.env.NODE_ENV!=="production"&&lr(!1,'[JSS] DOMException "'+r.message+'" was thrown. Tried to remove property "'+n+'".')}},HJe=function(t,n){return t.selectorText=n,t.selectorText===n},$ue=Lue(function(){return document.querySelector("head")});function UJe(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}function WJe(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}function GJe(e){for(var t=$ue(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(r.nodeType===8&&r.nodeValue.trim()===e)return r}return null}function qJe(e){var t=M1.registry;if(t.length>0){var n=UJe(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=WJe(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&typeof r=="string"){var o=GJe(r);if(o)return{parent:o.parentNode,node:o.nextSibling};process.env.NODE_ENV!=="production"&&lr(!1,'[JSS] Insertion point "'+r+'" not found.')}return!1}function YJe(e,t){var n=t.insertionPoint,r=qJe(t);if(r!==!1&&r.parent){r.parent.insertBefore(e,r.node);return}if(n&&typeof n.nodeType=="number"){var o=n,i=o.parentNode;i?i.insertBefore(e,o.nextSibling):process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] Insertion point is not in the DOM.");return}$ue().appendChild(e)}var ZJe=Lue(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),SZ=function(t,n,r){try{"insertRule"in t?t.insertRule(n,r):"appendRule"in t&&t.appendRule(n)}catch(o){return process.env.NODE_ENV!=="production"&&lr(!1,"[JSS] "+o.message),!1}return t.cssRules[r]},TZ=function(t,n){var r=t.cssRules.length;return n===void 0||n>r?r:n},JJe=function(){var t=document.createElement("style");return t.textContent=`
|
|
2984
2984
|
`,t},XJe=function(){function e(n){this.getPropertyValue=FJe,this.setProperty=BJe,this.removeProperty=VJe,this.setSelector=HJe,this.hasInsertedRules=!1,this.cssRules=[],n&&M1.add(n),this.sheet=n;var r=this.sheet?this.sheet.options:{},o=r.media,i=r.meta,a=r.element;this.element=a||JJe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var s=ZJe();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){YJe(this.element,this.sheet.options);var r=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&r&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var r=this.element.parentNode;r&&r.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
package/dist/main.js
CHANGED
|
@@ -79088,7 +79088,7 @@ const YZe = Sh({
|
|
|
79088
79088
|
// }),
|
|
79089
79089
|
// }}
|
|
79090
79090
|
menuPortalTarget: document.body
|
|
79091
|
-
}) })] }), D.jsxs("div", { className: "flex-end-center g-10", children: [D.jsx(Yj, { items: s, value: y, onChangeTab: (A, O) => _((j) => ye(G({}, j), { ONE_TO_ONE_TYPE: O })) }), !n && D.jsx(Zn, { size: "small", onClick: () => v(!0), disableElevation: !0, children: "Schedule
|
|
79091
|
+
}) })] }), D.jsxs("div", { className: "flex-end-center g-10", children: [D.jsx(Yj, { items: s, value: y, onChangeTab: (A, O) => _((j) => ye(G({}, j), { ONE_TO_ONE_TYPE: O })) }), !n && D.jsx(Zn, { size: "small", onClick: () => v(!0), disableElevation: !0, children: "Schedule One to One" })] })] }), D.jsx(Oe, { className: "one__to__one__list", display: "flex", flexDirection: "column", gap: 2, children: (C == null ? void 0 : C.length) > 0 ? C.map((A, O) => D.jsxs(Oe, { className: sw.one__to__one__card, children: [D.jsxs("div", { className: sw.one__to__one__card__top, children: [D.jsxs("div", { className: "flex-start-center", style: { cursor: "pointer" }, onClick: () => h(A == null ? void 0 : A.ID), children: [D.jsx("div", { className: sw.one__to__one__icon, children: D.jsx(qce, {}) }), D.jsxs(Ms, { size: "sm", children: [A == null ? void 0 : A.MEETING_TITLE, " ", D.jsx("span", { style: {
|
|
79092
79092
|
color: (A == null ? void 0 : A.DISPLAY_MEETING_STATUS) === "Completed" ? "#44b362" : (A == null ? void 0 : A.DISPLAY_MEETING_STATUS) === "Upcoming" ? "#FAC800" : "#ea3c3c"
|
|
79093
79093
|
}, children: A == null ? void 0 : A.DISPLAY_MEETING_STATUS })] })] }), D.jsx("div", { className: "flex-start-center g-10", children: D.jsx("div", { className: sw.face__to__face, children: A == null ? void 0 : A.MEDIUM }) })] }), D.jsxs(Oe, { display: "flex", justifyContent: "space-between", alignItems: "center", marginTop: 1, children: [D.jsxs("div", { className: "one__icons__bottom", children: [D.jsxs("p", { children: [D.jsx("span", { children: D.jsx(C3, {}) }), A == null ? void 0 : A.DATE] }), D.jsxs("p", { children: [D.jsx("span", { children: D.jsx(MR, {}) }), A == null ? void 0 : A.START_TIME, " - ", A == null ? void 0 : A.END_TIME] }), D.jsxs("p", { children: [D.jsx("span", { style: { marginRight: "3px" }, children: "Schedule By:" }), D.jsx(Sl, { data: A == null ? void 0 : A.SCHEDULE_BY, limit: 10 })] }), D.jsxs("p", { children: [D.jsx("span", { style: { marginRight: "3px" }, children: "Schedule With:" }), D.jsx(Sl, { data: A == null ? void 0 : A.SCHEDULE_WITH, limit: 10 })] })] }), D.jsx(Oe, { display: "flex", gap: 2, children: ((A == null ? void 0 : A.SCHEDULE_BY_ID) === (o == null ? void 0 : o.employee_id) || (A == null ? void 0 : A.SCHEDULE_WITH_ID) === (o == null ? void 0 : o.employee_id)) && ((A == null ? void 0 : A.DISPLAY_MEETING_STATUS) === "Completed" ? D.jsx(Zn, { size: "small", variant: "text", onClick: () => h(A == null ? void 0 : A.ID), children: "Add Remarks" }) : D.jsxs(D.Fragment, { children: [D.jsx(Zn, { size: "small", variant: "text", onClick: () => p(A == null ? void 0 : A.ID), children: "Reschedule" }), D.jsx(Zn, { size: "small", variant: "text", onClick: () => g(A), children: "Cancel" })] })) })] })] }, O)) : D.jsx(ou, { message: "No One to One's found" }) })] }), D.jsx(XZe, { meetingId: f, setMeetingId: h, openReScheduleModalMeetingId: c, setReScheduleModalMeetingId: p }), D.jsx(QZe, { open: m, setOpen: v })] });
|
|
79094
79094
|
}, xf = {
|