@zimyo/engage 0.0.58-pms → 0.0.59-pms

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 CHANGED
@@ -3095,4 +3095,4 @@ var Dme;function jt(){return Dme.apply(null,arguments)}function Pht(e){Dme=e}fun
3095
3095
  [`+i+"] ";for(a in arguments[0])kr(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}jme(e+`
3096
3096
  Arguments: `+Array.prototype.slice.call(r).join("")+`
3097
3097
  `+new Error().stack),t=!1}return n.apply(this,arguments)},n)}var rQ={};function Fme(e,n){jt.deprecationHandler!=null&&jt.deprecationHandler(e,n),rQ[e]||(jme(n),rQ[e]=!0)}jt.suppressDeprecationWarnings=!1;jt.deprecationHandler=null;function Bu(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Nht(e){var n,t;for(t in e)kr(e,t)&&(n=e[t],Bu(n)?this[t]=n:this["_"+t]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function oD(e,n){var t=Wp({},e),r;for(r in n)kr(n,r)&&(fm(e[r])&&fm(n[r])?(t[r]={},Wp(t[r],e[r]),Wp(t[r],n[r])):n[r]!=null?t[r]=n[r]:delete t[r]);for(r in e)kr(e,r)&&!kr(n,r)&&fm(e[r])&&(t[r]=Wp({},t[r]));return t}function D8(e){e!=null&&this.set(e)}var iD;Object.keys?iD=Object.keys:iD=function(e){var n,t=[];for(n in e)kr(e,n)&&t.push(n);return t};var jht={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Fht(e,n,t){var r=this._calendar[e]||this._calendar.sameElse;return Bu(r)?r.call(n,t):r}function ku(e,n,t){var r=""+Math.abs(e),o=n-r.length,i=e>=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var N8=/(\[[^\[]*\])|(\\)?([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,b5=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,aR={},Wv={};function mn(e,n,t,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Wv[e]=o),n&&(Wv[n[0]]=function(){return ku(o.apply(this,arguments),n[1],n[2])}),t&&(Wv[t]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Lht(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bht(e){var n=e.match(N8),t,r;for(t=0,r=n.length;t<r;t++)Wv[n[t]]?n[t]=Wv[n[t]]:n[t]=Lht(n[t]);return function(o){var i="",a;for(a=0;a<r;a++)i+=Bu(n[a])?n[a].call(o,e):n[a];return i}}function fE(e,n){return e.isValid()?(n=Lme(n,e.localeData()),aR[n]=aR[n]||Bht(n),aR[n](e)):e.localeData().invalidDate()}function Lme(e,n){var t=5;function r(o){return n.longDateFormat(o)||o}for(b5.lastIndex=0;t>=0&&b5.test(e);)e=e.replace(b5,r),b5.lastIndex=0,t-=1;return e}var Vht={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 zht(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.match(N8).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Wht="Invalid date";function $ht(){return this._invalidDate}var Ght="%d",Hht=/\d{1,2}/;function Yht(e){return this._ordinal.replace("%d",e)}var Xht={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 Zht(e,n,t,r){var o=this._relativeTime[t];return Bu(o)?o(e,n,t,r):o.replace(/%d/i,e)}function Uht(e,n){var t=this._relativeTime[e>0?"future":"past"];return Bu(t)?t(n):t.replace(/%s/i,n)}var oQ={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 nc(e){return typeof e=="string"?oQ[e]||oQ[e.toLowerCase()]:void 0}function j8(e){var n={},t,r;for(r in e)kr(e,r)&&(t=nc(r),t&&(n[t]=e[r]));return n}var qht={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 Jht(e){var n=[],t;for(t in e)kr(e,t)&&n.push({unit:t,priority:qht[t]});return n.sort(function(r,o){return r.priority-o.priority}),n}var Bme=/\d/,cl=/\d\d/,Vme=/\d{3}/,F8=/\d{4}/,vM=/[+-]?\d{6}/,Eo=/\d\d?/,zme=/\d\d\d\d?/,Wme=/\d\d\d\d\d\d?/,yM=/\d{1,3}/,L8=/\d{1,4}/,bM=/[+-]?\d{1,6}/,a0=/\d+/,xM=/[+-]?\d+/,Kht=/Z|[+-]\d\d:?\d\d/gi,wM=/Z|[+-]\d\d(?::?\d\d)?/gi,Qht=/[+-]?\d+(\.\d{1,3})?/,v2=/[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,s0=/^[1-9]\d?/,B8=/^([1-9]\d|\d)/,MT;MT={};function Qt(e,n,t){MT[e]=Bu(n)?n:function(r,o){return r&&t?t:n}}function emt(e,n){return kr(MT,e)?MT[e](n._strict,n._locale):new RegExp(tmt(e))}function tmt(e){return Cd(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,r,o,i){return t||r||o||i}))}function Cd(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Il(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pr(e){var n=+e,t=0;return n!==0&&isFinite(n)&&(t=Il(n)),t}var aD={};function so(e,n){var t,r=n,o;for(typeof e=="string"&&(e=[e]),Nd(n)&&(r=function(i,a){a[n]=pr(i)}),o=e.length,t=0;t<o;t++)aD[e[t]]=r}function y2(e,n){so(e,function(t,r,o,i){o._w=o._w||{},n(t,o._w,o,i)})}function nmt(e,n,t){n!=null&&kr(aD,e)&&aD[e](n,t._a,t,e)}function CM(e){return e%4===0&&e%100!==0||e%400===0}var Sa=0,vd=1,ou=2,Fi=3,Cc=4,yd=5,Hh=6,rmt=7,omt=8;mn("Y",0,0,function(){var e=this.year();return e<=9999?ku(e,4):"+"+e});mn(0,["YY",2],0,function(){return this.year()%100});mn(0,["YYYY",4],0,"year");mn(0,["YYYYY",5],0,"year");mn(0,["YYYYYY",6,!0],0,"year");Qt("Y",xM);Qt("YY",Eo,cl);Qt("YYYY",L8,F8);Qt("YYYYY",bM,vM);Qt("YYYYYY",bM,vM);so(["YYYYY","YYYYYY"],Sa);so("YYYY",function(e,n){n[Sa]=e.length===2?jt.parseTwoDigitYear(e):pr(e)});so("YY",function(e,n){n[Sa]=jt.parseTwoDigitYear(e)});so("Y",function(e,n){n[Sa]=parseInt(e,10)});function F1(e){return CM(e)?366:365}jt.parseTwoDigitYear=function(e){return pr(e)+(pr(e)>68?1900:2e3)};var $me=l0("FullYear",!0);function imt(){return CM(this.year())}function l0(e,n){return function(t){return t!=null?(Gme(this,e,t),jt.updateOffset(this,n),this):aw(this,e)}}function aw(e,n){if(!e.isValid())return NaN;var t=e._d,r=e._isUTC;switch(n){case"Milliseconds":return r?t.getUTCMilliseconds():t.getMilliseconds();case"Seconds":return r?t.getUTCSeconds():t.getSeconds();case"Minutes":return r?t.getUTCMinutes():t.getMinutes();case"Hours":return r?t.getUTCHours():t.getHours();case"Date":return r?t.getUTCDate():t.getDate();case"Day":return r?t.getUTCDay():t.getDay();case"Month":return r?t.getUTCMonth():t.getMonth();case"FullYear":return r?t.getUTCFullYear():t.getFullYear();default:return NaN}}function Gme(e,n,t){var r,o,i,a,s;if(!(!e.isValid()||isNaN(t))){switch(r=e._d,o=e._isUTC,n){case"Milliseconds":return void(o?r.setUTCMilliseconds(t):r.setMilliseconds(t));case"Seconds":return void(o?r.setUTCSeconds(t):r.setSeconds(t));case"Minutes":return void(o?r.setUTCMinutes(t):r.setMinutes(t));case"Hours":return void(o?r.setUTCHours(t):r.setHours(t));case"Date":return void(o?r.setUTCDate(t):r.setDate(t));case"FullYear":break;default:return}i=t,a=e.month(),s=e.date(),s=s===29&&a===1&&!CM(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function amt(e){return e=nc(e),Bu(this[e])?this[e]():this}function smt(e,n){if(typeof e=="object"){e=j8(e);var t=Jht(e),r,o=t.length;for(r=0;r<o;r++)this[t[r].unit](e[t[r].unit])}else if(e=nc(e),Bu(this[e]))return this[e](n);return this}function lmt(e,n){return(e%n+n)%n}var fi;Array.prototype.indexOf?fi=Array.prototype.indexOf:fi=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};function V8(e,n){if(isNaN(e)||isNaN(n))return NaN;var t=lmt(n,12);return e+=(n-t)/12,t===1?CM(e)?29:28:31-t%7%2}mn("M",["MM",2],"Mo",function(){return this.month()+1});mn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});mn("MMMM",0,0,function(e){return this.localeData().months(this,e)});Qt("M",Eo,s0);Qt("MM",Eo,cl);Qt("MMM",function(e,n){return n.monthsShortRegex(e)});Qt("MMMM",function(e,n){return n.monthsRegex(e)});so(["M","MM"],function(e,n){n[vd]=pr(e)-1});so(["MMM","MMMM"],function(e,n,t,r){var o=t._locale.monthsParse(e,r,t._strict);o!=null?n[vd]=o:Yn(t).invalidMonth=e});var cmt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Hme="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Yme=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,umt=v2,dmt=v2;function pmt(e,n){return e?Lc(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Yme).test(n)?"format":"standalone"][e.month()]:Lc(this._months)?this._months:this._months.standalone}function fmt(e,n){return e?Lc(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Yme.test(n)?"format":"standalone"][e.month()]:Lc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function hmt(e,n,t){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Lu([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return t?n==="MMM"?(o=fi.call(this._shortMonthsParse,a),o!==-1?o:null):(o=fi.call(this._longMonthsParse,a),o!==-1?o:null):n==="MMM"?(o=fi.call(this._shortMonthsParse,a),o!==-1?o:(o=fi.call(this._longMonthsParse,a),o!==-1?o:null)):(o=fi.call(this._longMonthsParse,a),o!==-1?o:(o=fi.call(this._shortMonthsParse,a),o!==-1?o:null))}function mmt(e,n,t){var r,o,i;if(this._monthsParseExact)return hmt.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Lu([2e3,r]),t&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!t&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),t&&n==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(t&&n==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!t&&this._monthsParse[r].test(e))return r}}function Xme(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=pr(n);else if(n=e.localeData().monthsParse(n),!Nd(n))return e}var t=n,r=e.date();return r=r<29?r:Math.min(r,V8(e.year(),t)),e._isUTC?e._d.setUTCMonth(t,r):e._d.setMonth(t,r),e}function Zme(e){return e!=null?(Xme(this,e),jt.updateOffset(this,!0),this):aw(this,"Month")}function gmt(){return V8(this.year(),this.month())}function vmt(e){return this._monthsParseExact?(kr(this,"_monthsRegex")||Ume.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(kr(this,"_monthsShortRegex")||(this._monthsShortRegex=umt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ymt(e){return this._monthsParseExact?(kr(this,"_monthsRegex")||Ume.call(this),e?this._monthsStrictRegex:this._monthsRegex):(kr(this,"_monthsRegex")||(this._monthsRegex=dmt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ume(){function e(l,c){return c.length-l.length}var n=[],t=[],r=[],o,i,a,s;for(o=0;o<12;o++)i=Lu([2e3,o]),a=Cd(this.monthsShort(i,"")),s=Cd(this.months(i,"")),n.push(a),t.push(s),r.push(s),r.push(a);n.sort(e),t.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function bmt(e,n,t,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,n,t,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,n,t,r,o,i,a),s}function sw(e){var n,t;return e<100&&e>=0?(t=Array.prototype.slice.call(arguments),t[0]=e+400,n=new Date(Date.UTC.apply(null,t)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function AT(e,n,t){var r=7+n-t,o=(7+sw(e,0,r).getUTCDay()-n)%7;return-o+r-1}function qme(e,n,t,r,o){var i=(7+t-r)%7,a=AT(e,r,o),s=1+7*(n-1)+i+a,l,c;return s<=0?(l=e-1,c=F1(l)+s):s>F1(e)?(l=e+1,c=s-F1(e)):(l=e,c=s),{year:l,dayOfYear:c}}function lw(e,n,t){var r=AT(e.year(),n,t),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Sd(a,n,t)):o>Sd(e.year(),n,t)?(i=o-Sd(e.year(),n,t),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Sd(e,n,t){var r=AT(e,n,t),o=AT(e+1,n,t);return(F1(e)-r+o)/7}mn("w",["ww",2],"wo","week");mn("W",["WW",2],"Wo","isoWeek");Qt("w",Eo,s0);Qt("ww",Eo,cl);Qt("W",Eo,s0);Qt("WW",Eo,cl);y2(["w","ww","W","WW"],function(e,n,t,r){n[r.substr(0,1)]=pr(e)});function xmt(e){return lw(e,this._week.dow,this._week.doy).week}var wmt={dow:0,doy:6};function Cmt(){return this._week.dow}function Smt(){return this._week.doy}function Emt(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function Omt(e){var n=lw(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}mn("d",0,"do","day");mn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});mn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});mn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});mn("e",0,0,"weekday");mn("E",0,0,"isoWeekday");Qt("d",Eo);Qt("e",Eo);Qt("E",Eo);Qt("dd",function(e,n){return n.weekdaysMinRegex(e)});Qt("ddd",function(e,n){return n.weekdaysShortRegex(e)});Qt("dddd",function(e,n){return n.weekdaysRegex(e)});y2(["dd","ddd","dddd"],function(e,n,t,r){var o=t._locale.weekdaysParse(e,r,t._strict);o!=null?n.d=o:Yn(t).invalidWeekday=e});y2(["d","e","E"],function(e,n,t,r){n[r]=pr(e)});function Tmt(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Imt(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function z8(e,n){return e.slice(n,7).concat(e.slice(0,n))}var Mmt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jme="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Amt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kmt=v2,_mt=v2,Rmt=v2;function Pmt(e,n){var t=Lc(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?z8(t,this._week.dow):e?t[e.day()]:t}function Dmt(e){return e===!0?z8(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Nmt(e){return e===!0?z8(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function jmt(e,n,t){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Lu([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 t?n==="dddd"?(o=fi.call(this._weekdaysParse,a),o!==-1?o:null):n==="ddd"?(o=fi.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=fi.call(this._minWeekdaysParse,a),o!==-1?o:null):n==="dddd"?(o=fi.call(this._weekdaysParse,a),o!==-1||(o=fi.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=fi.call(this._minWeekdaysParse,a),o!==-1?o:null)):n==="ddd"?(o=fi.call(this._shortWeekdaysParse,a),o!==-1||(o=fi.call(this._weekdaysParse,a),o!==-1)?o:(o=fi.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=fi.call(this._minWeekdaysParse,a),o!==-1||(o=fi.call(this._weekdaysParse,a),o!==-1)?o:(o=fi.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function Fmt(e,n,t){var r,o,i;if(this._weekdaysParseExact)return jmt.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Lu([2e3,1]).day(r),t&&!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")),t&&n==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(t&&n==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(t&&n==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!t&&this._weekdaysParse[r].test(e))return r}}function Lmt(e){if(!this.isValid())return e!=null?this:NaN;var n=aw(this,"Day");return e!=null?(e=Tmt(e,this.localeData()),this.add(e-n,"d")):n}function Bmt(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function Vmt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=Imt(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function zmt(e){return this._weekdaysParseExact?(kr(this,"_weekdaysRegex")||W8.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(kr(this,"_weekdaysRegex")||(this._weekdaysRegex=kmt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wmt(e){return this._weekdaysParseExact?(kr(this,"_weekdaysRegex")||W8.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(kr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $mt(e){return this._weekdaysParseExact?(kr(this,"_weekdaysRegex")||W8.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(kr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rmt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function W8(){function e(d,p){return p.length-d.length}var n=[],t=[],r=[],o=[],i,a,s,l,c;for(i=0;i<7;i++)a=Lu([2e3,1]).day(i),s=Cd(this.weekdaysMin(a,"")),l=Cd(this.weekdaysShort(a,"")),c=Cd(this.weekdays(a,"")),n.push(s),t.push(l),r.push(c),o.push(s),o.push(l),o.push(c);n.sort(e),t.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("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function $8(){return this.hours()%12||12}function Gmt(){return this.hours()||24}mn("H",["HH",2],0,"hour");mn("h",["hh",2],0,$8);mn("k",["kk",2],0,Gmt);mn("hmm",0,0,function(){return""+$8.apply(this)+ku(this.minutes(),2)});mn("hmmss",0,0,function(){return""+$8.apply(this)+ku(this.minutes(),2)+ku(this.seconds(),2)});mn("Hmm",0,0,function(){return""+this.hours()+ku(this.minutes(),2)});mn("Hmmss",0,0,function(){return""+this.hours()+ku(this.minutes(),2)+ku(this.seconds(),2)});function Kme(e,n){mn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}Kme("a",!0);Kme("A",!1);function Qme(e,n){return n._meridiemParse}Qt("a",Qme);Qt("A",Qme);Qt("H",Eo,B8);Qt("h",Eo,s0);Qt("k",Eo,s0);Qt("HH",Eo,cl);Qt("hh",Eo,cl);Qt("kk",Eo,cl);Qt("hmm",zme);Qt("hmmss",Wme);Qt("Hmm",zme);Qt("Hmmss",Wme);so(["H","HH"],Fi);so(["k","kk"],function(e,n,t){var r=pr(e);n[Fi]=r===24?0:r});so(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e});so(["h","hh"],function(e,n,t){n[Fi]=pr(e),Yn(t).bigHour=!0});so("hmm",function(e,n,t){var r=e.length-2;n[Fi]=pr(e.substr(0,r)),n[Cc]=pr(e.substr(r)),Yn(t).bigHour=!0});so("hmmss",function(e,n,t){var r=e.length-4,o=e.length-2;n[Fi]=pr(e.substr(0,r)),n[Cc]=pr(e.substr(r,2)),n[yd]=pr(e.substr(o)),Yn(t).bigHour=!0});so("Hmm",function(e,n,t){var r=e.length-2;n[Fi]=pr(e.substr(0,r)),n[Cc]=pr(e.substr(r))});so("Hmmss",function(e,n,t){var r=e.length-4,o=e.length-2;n[Fi]=pr(e.substr(0,r)),n[Cc]=pr(e.substr(r,2)),n[yd]=pr(e.substr(o))});function Hmt(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ymt=/[ap]\.?m?\.?/i,Xmt=l0("Hours",!0);function Zmt(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"}var ege={calendar:jht,longDateFormat:Vht,invalidDate:Wht,ordinal:Ght,dayOfMonthOrdinalParse:Hht,relativeTime:Xht,months:cmt,monthsShort:Hme,week:wmt,weekdays:Mmt,weekdaysMin:Amt,weekdaysShort:Jme,meridiemParse:Ymt},Po={},xb={},cw;function Umt(e,n){var t,r=Math.min(e.length,n.length);for(t=0;t<r;t+=1)if(e[t]!==n[t])return t;return r}function iQ(e){return e&&e.toLowerCase().replace("_","-")}function qmt(e){for(var n=0,t,r,o,i;n<e.length;){for(i=iQ(e[n]).split("-"),t=i.length,r=iQ(e[n+1]),r=r?r.split("-"):null;t>0;){if(o=SM(i.slice(0,t).join("-")),o)return o;if(r&&r.length>=t&&Umt(i,r)>=t-1)break;t--}n++}return cw}function Jmt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function SM(e){var n=null,t;if(Po[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&Jmt(e))try{n=cw._abbr,t=require,t("./locale/"+e),tf(n)}catch(r){Po[e]=null}return Po[e]}function tf(e,n){var t;return e&&(rs(n)?t=Gd(e):t=G8(e,n),t?cw=t:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cw._abbr}function G8(e,n){if(n!==null){var t,r=ege;if(n.abbr=e,Po[e]!=null)Fme("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=Po[e]._config;else if(n.parentLocale!=null)if(Po[n.parentLocale]!=null)r=Po[n.parentLocale]._config;else if(t=SM(n.parentLocale),t!=null)r=t._config;else return xb[n.parentLocale]||(xb[n.parentLocale]=[]),xb[n.parentLocale].push({name:e,config:n}),null;return Po[e]=new D8(oD(r,n)),xb[e]&&xb[e].forEach(function(o){G8(o.name,o.config)}),tf(e),Po[e]}else return delete Po[e],null}function Kmt(e,n){if(n!=null){var t,r,o=ege;Po[e]!=null&&Po[e].parentLocale!=null?Po[e].set(oD(Po[e]._config,n)):(r=SM(e),r!=null&&(o=r._config),n=oD(o,n),r==null&&(n.abbr=e),t=new D8(n),t.parentLocale=Po[e],Po[e]=t),tf(e)}else Po[e]!=null&&(Po[e].parentLocale!=null?(Po[e]=Po[e].parentLocale,e===tf()&&tf(e)):Po[e]!=null&&delete Po[e]);return Po[e]}function Gd(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cw;if(!Lc(e)){if(n=SM(e),n)return n;e=[e]}return qmt(e)}function Qmt(){return iD(Po)}function H8(e){var n,t=e._a;return t&&Yn(e).overflow===-2&&(n=t[vd]<0||t[vd]>11?vd:t[ou]<1||t[ou]>V8(t[Sa],t[vd])?ou:t[Fi]<0||t[Fi]>24||t[Fi]===24&&(t[Cc]!==0||t[yd]!==0||t[Hh]!==0)?Fi:t[Cc]<0||t[Cc]>59?Cc:t[yd]<0||t[yd]>59?yd:t[Hh]<0||t[Hh]>999?Hh:-1,Yn(e)._overflowDayOfYear&&(n<Sa||n>ou)&&(n=ou),Yn(e)._overflowWeeks&&n===-1&&(n=rmt),Yn(e)._overflowWeekday&&n===-1&&(n=omt),Yn(e).overflow=n),e}var egt=/^\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)?)?$/,tgt=/^\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)?)?$/,ngt=/Z|[+-]\d\d(?::?\d\d)?/,x5=[["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]],sR=[["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/]],rgt=/^\/?Date\((-?\d+)/i,ogt=/^(?:(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}))$/,igt={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 tge(e){var n,t,r=e._i,o=egt.exec(r)||tgt.exec(r),i,a,s,l,c=x5.length,d=sR.length;if(o){for(Yn(e).iso=!0,n=0,t=c;n<t;n++)if(x5[n][1].exec(o[1])){a=x5[n][0],i=x5[n][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(n=0,t=d;n<t;n++)if(sR[n][1].exec(o[3])){s=(o[2]||" ")+sR[n][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(o[4])if(ngt.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),X8(e)}else e._isValid=!1}function agt(e,n,t,r,o,i){var a=[sgt(e),Hme.indexOf(n),parseInt(t,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function sgt(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function lgt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function cgt(e,n,t){if(e){var r=Jme.indexOf(e),o=new Date(n[0],n[1],n[2]).getDay();if(r!==o)return Yn(t).weekdayMismatch=!0,t._isValid=!1,!1}return!0}function ugt(e,n,t){if(e)return igt[e];if(n)return 0;var r=parseInt(t,10),o=r%100,i=(r-o)/100;return i*60+o}function nge(e){var n=ogt.exec(lgt(e._i)),t;if(n){if(t=agt(n[4],n[3],n[2],n[5],n[6],n[7]),!cgt(n[1],t,e))return;e._a=t,e._tzm=ugt(n[8],n[9],n[10]),e._d=sw.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Yn(e).rfc2822=!0}else e._isValid=!1}function dgt(e){var n=rgt.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(tge(e),e._isValid===!1)delete e._isValid;else return;if(nge(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:jt.createFromInputFallback(e)}jt.createFromInputFallback=tc("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 Kg(e,n,t){return e!=null?e:n!=null?n:t}function pgt(e){var n=new Date(jt.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Y8(e){var n,t,r=[],o,i,a;if(!e._d){for(o=pgt(e),e._w&&e._a[ou]==null&&e._a[vd]==null&&fgt(e),e._dayOfYear!=null&&(a=Kg(e._a[Sa],o[Sa]),(e._dayOfYear>F1(a)||e._dayOfYear===0)&&(Yn(e)._overflowDayOfYear=!0),t=sw(a,0,e._dayOfYear),e._a[vd]=t.getUTCMonth(),e._a[ou]=t.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=r[n]=o[n];for(;n<7;n++)e._a[n]=r[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[Fi]===24&&e._a[Cc]===0&&e._a[yd]===0&&e._a[Hh]===0&&(e._nextDay=!0,e._a[Fi]=0),e._d=(e._useUTC?sw:bmt).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[Fi]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(Yn(e).weekdayMismatch=!0)}}function fgt(e){var n,t,r,o,i,a,s,l,c;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(i=1,a=4,t=Kg(n.GG,e._a[Sa],lw(So(),1,4).year),r=Kg(n.W,1),o=Kg(n.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=lw(So(),i,a),t=Kg(n.gg,e._a[Sa],c.year),r=Kg(n.w,c.week),n.d!=null?(o=n.d,(o<0||o>6)&&(l=!0)):n.e!=null?(o=n.e+i,(n.e<0||n.e>6)&&(l=!0)):o=i),r<1||r>Sd(t,i,a)?Yn(e)._overflowWeeks=!0:l!=null?Yn(e)._overflowWeekday=!0:(s=qme(t,r,o,i,a),e._a[Sa]=s.year,e._dayOfYear=s.dayOfYear)}jt.ISO_8601=function(){};jt.RFC_2822=function(){};function X8(e){if(e._f===jt.ISO_8601){tge(e);return}if(e._f===jt.RFC_2822){nge(e);return}e._a=[],Yn(e).empty=!0;var n=""+e._i,t,r,o,i,a,s=n.length,l=0,c,d;for(o=Lme(e._f,e._locale).match(N8)||[],d=o.length,t=0;t<d;t++)i=o[t],r=(n.match(emt(i,e))||[])[0],r&&(a=n.substr(0,n.indexOf(r)),a.length>0&&Yn(e).unusedInput.push(a),n=n.slice(n.indexOf(r)+r.length),l+=r.length),Wv[i]?(r?Yn(e).empty=!1:Yn(e).unusedTokens.push(i),nmt(i,r,e)):e._strict&&!r&&Yn(e).unusedTokens.push(i);Yn(e).charsLeftOver=s-l,n.length>0&&Yn(e).unusedInput.push(n),e._a[Fi]<=12&&Yn(e).bigHour===!0&&e._a[Fi]>0&&(Yn(e).bigHour=void 0),Yn(e).parsedDateParts=e._a.slice(0),Yn(e).meridiem=e._meridiem,e._a[Fi]=hgt(e._locale,e._a[Fi],e._meridiem),c=Yn(e).era,c!==null&&(e._a[Sa]=e._locale.erasConvertYear(c,e._a[Sa])),Y8(e),H8(e)}function hgt(e,n,t){var r;return t==null?n:e.meridiemHour!=null?e.meridiemHour(n,t):(e.isPM!=null&&(r=e.isPM(t),r&&n<12&&(n+=12),!r&&n===12&&(n=0)),n)}function mgt(e){var n,t,r,o,i,a,s=!1,l=e._f.length;if(l===0){Yn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)i=0,a=!1,n=P8({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[o],X8(n),R8(n)&&(a=!0),i+=Yn(n).charsLeftOver,i+=Yn(n).unusedTokens.length*10,Yn(n).score=i,s?i<r&&(r=i,t=n):(r==null||i<r||a)&&(r=i,t=n,a&&(s=!0));Wp(e,t||n)}function ggt(e){if(!e._d){var n=j8(e._i),t=n.day===void 0?n.date:n.day;e._a=Nme([n.year,n.month,t,n.hour,n.minute,n.second,n.millisecond],function(r){return r&&parseInt(r,10)}),Y8(e)}}function vgt(e){var n=new g2(H8(rge(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function rge(e){var n=e._i,t=e._f;return e._locale=e._locale||Gd(e._l),n===null||t===void 0&&n===""?gM({nullInput:!0}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),Bc(n)?new g2(H8(n)):(m2(n)?e._d=n:Lc(t)?mgt(e):t?X8(e):ygt(e),R8(e)||(e._d=null),e))}function ygt(e){var n=e._i;rs(n)?e._d=new Date(jt.now()):m2(n)?e._d=new Date(n.valueOf()):typeof n=="string"?dgt(e):Lc(n)?(e._a=Nme(n.slice(0),function(t){return parseInt(t,10)}),Y8(e)):fm(n)?ggt(e):Nd(n)?e._d=new Date(n):jt.createFromInputFallback(e)}function oge(e,n,t,r,o){var i={};return(n===!0||n===!1)&&(r=n,n=void 0),(t===!0||t===!1)&&(r=t,t=void 0),(fm(e)&&_8(e)||Lc(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=t,i._i=e,i._f=n,i._strict=r,vgt(i)}function So(e,n,t,r){return oge(e,n,t,r,!1)}var bgt=tc("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=So.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:gM()}),xgt=tc("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=So.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:gM()});function ige(e,n){var t,r;if(n.length===1&&Lc(n[0])&&(n=n[0]),!n.length)return So();for(t=n[0],r=1;r<n.length;++r)(!n[r].isValid()||n[r][e](t))&&(t=n[r]);return t}function wgt(){var e=[].slice.call(arguments,0);return ige("isBefore",e)}function Cgt(){var e=[].slice.call(arguments,0);return ige("isAfter",e)}var Sgt=function(){return Date.now?Date.now():+new Date},wb=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Egt(e){var n,t=!1,r,o=wb.length;for(n in e)if(kr(e,n)&&!(fi.call(wb,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return!1;for(r=0;r<o;++r)if(e[wb[r]]){if(t)return!1;parseFloat(e[wb[r]])!==pr(e[wb[r]])&&(t=!0)}return!0}function Ogt(){return this._isValid}function Tgt(){return zc(NaN)}function EM(e){var n=j8(e),t=n.year||0,r=n.quarter||0,o=n.month||0,i=n.week||n.isoWeek||0,a=n.day||0,s=n.hour||0,l=n.minute||0,c=n.second||0,d=n.millisecond||0;this._isValid=Egt(n),this._milliseconds=+d+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+t*12,this._data={},this._locale=Gd(),this._bubble()}function hE(e){return e instanceof EM}function sD(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Igt(e,n,t){var r=Math.min(e.length,n.length),o=Math.abs(e.length-n.length),i=0,a;for(a=0;a<r;a++)pr(e[a])!==pr(n[a])&&i++;return i+o}function age(e,n){mn(e,0,0,function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+ku(~~(t/60),2)+n+ku(~~t%60,2)})}age("Z",":");age("ZZ","");Qt("Z",wM);Qt("ZZ",wM);so(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=Z8(wM,e)});var Mgt=/([\+\-]|\d\d)/gi;function Z8(e,n){var t=(n||"").match(e),r,o,i;return t===null?null:(r=t[t.length-1]||[],o=(r+"").match(Mgt)||["-",0,0],i=+(o[1]*60)+pr(o[2]),i===0?0:o[0]==="+"?i:-i)}function U8(e,n){var t,r;return n._isUTC?(t=n.clone(),r=(Bc(e)||m2(e)?e.valueOf():So(e).valueOf())-t.valueOf(),t._d.setTime(t._d.valueOf()+r),jt.updateOffset(t,!1),t):So(e).local()}function lD(e){return-Math.round(e._d.getTimezoneOffset())}jt.updateOffset=function(){};function Agt(e,n,t){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Z8(wM,e),e===null)return this}else Math.abs(e)<16&&!t&&(e=e*60);return!this._isUTC&&n&&(o=lD(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!n||this._changeInProgress?cge(this,zc(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,jt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:lD(this)}function kgt(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function _gt(e){return this.utcOffset(0,e)}function Rgt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(lD(this),"m")),this}function Pgt(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Z8(Kht,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Dgt(e){return this.isValid()?(e=e?So(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ngt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jgt(){if(!rs(this._isDSTShifted))return this._isDSTShifted;var e={},n;return P8(e,this),e=rge(e),e._a?(n=e._isUTC?Lu(e._a):So(e._a),this._isDSTShifted=this.isValid()&&Igt(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Fgt(){return this.isValid()?!this._isUTC:!1}function Lgt(){return this.isValid()?this._isUTC:!1}function sge(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bgt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vgt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zc(e,n){var t=e,r=null,o,i,a;return hE(e)?t={ms:e._milliseconds,d:e._days,M:e._months}:Nd(e)||!isNaN(+e)?(t={},n?t[n]=+e:t.milliseconds=+e):(r=Bgt.exec(e))?(o=r[1]==="-"?-1:1,t={y:0,d:pr(r[ou])*o,h:pr(r[Fi])*o,m:pr(r[Cc])*o,s:pr(r[yd])*o,ms:pr(sD(r[Hh]*1e3))*o}):(r=Vgt.exec(e))?(o=r[1]==="-"?-1:1,t={y:fh(r[2],o),M:fh(r[3],o),w:fh(r[4],o),d:fh(r[5],o),h:fh(r[6],o),m:fh(r[7],o),s:fh(r[8],o)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(a=zgt(So(t.from),So(t.to)),t={},t.ms=a.milliseconds,t.M=a.months),i=new EM(t),hE(e)&&kr(e,"_locale")&&(i._locale=e._locale),hE(e)&&kr(e,"_isValid")&&(i._isValid=e._isValid),i}zc.fn=EM.prototype;zc.invalid=Tgt;function fh(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function aQ(e,n){var t={};return t.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function zgt(e,n){var t;return e.isValid()&&n.isValid()?(n=U8(n,e),e.isBefore(n)?t=aQ(e,n):(t=aQ(n,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function lge(e,n){return function(t,r){var o,i;return r!==null&&!isNaN(+r)&&(Fme(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),o=zc(t,r),cge(this,o,e),this}}function cge(e,n,t,r){var o=n._milliseconds,i=sD(n._days),a=sD(n._months);e.isValid()&&(r=r==null?!0:r,a&&Xme(e,aw(e,"Month")+a*t),i&&Gme(e,"Date",aw(e,"Date")+i*t),o&&e._d.setTime(e._d.valueOf()+o*t),r&&jt.updateOffset(e,i||a))}var Wgt=lge(1,"add"),$gt=lge(-1,"subtract");function uge(e){return typeof e=="string"||e instanceof String}function Ggt(e){return Bc(e)||m2(e)||uge(e)||Nd(e)||Ygt(e)||Hgt(e)||e===null||e===void 0}function Hgt(e){var n=fm(e)&&!_8(e),t=!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],t=t||kr(e,i);return n&&t}function Ygt(e){var n=Lc(e),t=!1;return n&&(t=e.filter(function(r){return!Nd(r)&&uge(e)}).length===0),n&&t}function Xgt(e){var n=fm(e)&&!_8(e),t=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],t=t||kr(e,i);return n&&t}function Zgt(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Ugt(e,n){arguments.length===1&&(arguments[0]?Ggt(arguments[0])?(e=arguments[0],n=void 0):Xgt(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var t=e||So(),r=U8(t,this).startOf("day"),o=jt.calendarFormat(this,r)||"sameElse",i=n&&(Bu(n[o])?n[o].call(this,t):n[o]);return this.format(i||this.localeData().calendar(o,this,So(t)))}function qgt(){return new g2(this)}function Jgt(e,n){var t=Bc(e)?e:So(e);return this.isValid()&&t.isValid()?(n=nc(n)||"millisecond",n==="millisecond"?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf()):!1}function Kgt(e,n){var t=Bc(e)?e:So(e);return this.isValid()&&t.isValid()?(n=nc(n)||"millisecond",n==="millisecond"?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf()):!1}function Qgt(e,n,t,r){var o=Bc(e)?e:So(e),i=Bc(n)?n:So(n);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,t):!this.isBefore(o,t))&&(r[1]===")"?this.isBefore(i,t):!this.isAfter(i,t))):!1}function evt(e,n){var t=Bc(e)?e:So(e),r;return this.isValid()&&t.isValid()?(n=nc(n)||"millisecond",n==="millisecond"?this.valueOf()===t.valueOf():(r=t.valueOf(),this.clone().startOf(n).valueOf()<=r&&r<=this.clone().endOf(n).valueOf())):!1}function tvt(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function nvt(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function rvt(e,n,t){var r,o,i;if(!this.isValid())return NaN;if(r=U8(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,n=nc(n),n){case"year":i=mE(this,r)/12;break;case"month":i=mE(this,r);break;case"quarter":i=mE(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 t?i:Il(i)}function mE(e,n){if(e.date()<n.date())return-mE(n,e);var t=(n.year()-e.year())*12+(n.month()-e.month()),r=e.clone().add(t,"months"),o,i;return n-r<0?(o=e.clone().add(t-1,"months"),i=(n-r)/(r-o)):(o=e.clone().add(t+1,"months"),i=(n-r)/(o-r)),-(t+i)||0}jt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";jt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ovt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ivt(e){if(!this.isValid())return null;var n=e!==!0,t=n?this.clone().utc():this;return t.year()<0||t.year()>9999?fE(t,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Bu(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fE(t,"Z")):fE(t,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function avt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",t,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),t="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=n+'[")]',this.format(t+r+o+i)}function svt(e){e||(e=this.isUtc()?jt.defaultFormatUtc:jt.defaultFormat);var n=fE(this,e);return this.localeData().postformat(n)}function lvt(e,n){return this.isValid()&&(Bc(e)&&e.isValid()||So(e).isValid())?zc({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function cvt(e){return this.from(So(),e)}function uvt(e,n){return this.isValid()&&(Bc(e)&&e.isValid()||So(e).isValid())?zc({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function dvt(e){return this.to(So(),e)}function dge(e){var n;return e===void 0?this._locale._abbr:(n=Gd(e),n!=null&&(this._locale=n),this)}var pge=tc("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 fge(){return this._locale}var kT=1e3,$v=60*kT,_T=60*$v,hge=(365*400+97)*24*_T;function Gv(e,n){return(e%n+n)%n}function mge(e,n,t){return e<100&&e>=0?new Date(e+400,n,t)-hge:new Date(e,n,t).valueOf()}function gge(e,n,t){return e<100&&e>=0?Date.UTC(e+400,n,t)-hge:Date.UTC(e,n,t)}function pvt(e){var n,t;if(e=nc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?gge:mge,e){case"year":n=t(this.year(),0,1);break;case"quarter":n=t(this.year(),this.month()-this.month()%3,1);break;case"month":n=t(this.year(),this.month(),1);break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=t(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Gv(n+(this._isUTC?0:this.utcOffset()*$v),_T);break;case"minute":n=this._d.valueOf(),n-=Gv(n,$v);break;case"second":n=this._d.valueOf(),n-=Gv(n,kT);break}return this._d.setTime(n),jt.updateOffset(this,!0),this}function fvt(e){var n,t;if(e=nc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?gge:mge,e){case"year":n=t(this.year()+1,0,1)-1;break;case"quarter":n=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=t(this.year(),this.month()+1,1)-1;break;case"week":n=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=_T-Gv(n+(this._isUTC?0:this.utcOffset()*$v),_T)-1;break;case"minute":n=this._d.valueOf(),n+=$v-Gv(n,$v)-1;break;case"second":n=this._d.valueOf(),n+=kT-Gv(n,kT)-1;break}return this._d.setTime(n),jt.updateOffset(this,!0),this}function hvt(){return this._d.valueOf()-(this._offset||0)*6e4}function mvt(){return Math.floor(this.valueOf()/1e3)}function gvt(){return new Date(this.valueOf())}function vvt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yvt(){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 bvt(){return this.isValid()?this.toISOString():null}function xvt(){return R8(this)}function wvt(){return Wp({},Yn(this))}function Cvt(){return Yn(this).overflow}function Svt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}mn("N",0,0,"eraAbbr");mn("NN",0,0,"eraAbbr");mn("NNN",0,0,"eraAbbr");mn("NNNN",0,0,"eraName");mn("NNNNN",0,0,"eraNarrow");mn("y",["y",1],"yo","eraYear");mn("y",["yy",2],0,"eraYear");mn("y",["yyy",3],0,"eraYear");mn("y",["yyyy",4],0,"eraYear");Qt("N",q8);Qt("NN",q8);Qt("NNN",q8);Qt("NNNN",Dvt);Qt("NNNNN",Nvt);so(["N","NN","NNN","NNNN","NNNNN"],function(e,n,t,r){var o=t._locale.erasParse(e,r,t._strict);o?Yn(t).era=o:Yn(t).invalidEra=e});Qt("y",a0);Qt("yy",a0);Qt("yyy",a0);Qt("yyyy",a0);Qt("yo",jvt);so(["y","yy","yyy","yyyy"],Sa);so(["yo"],function(e,n,t,r){var o;t._locale._eraYearOrdinalRegex&&(o=e.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?n[Sa]=t._locale.eraYearOrdinalParse(e,o):n[Sa]=parseInt(e,10)});function Evt(e,n){var t,r,o,i=this._eras||Gd("en")._eras;for(t=0,r=i.length;t<r;++t){switch(typeof i[t].since){case"string":o=jt(i[t].since).startOf("day"),i[t].since=o.valueOf();break}switch(typeof i[t].until){case"undefined":i[t].until=1/0;break;case"string":o=jt(i[t].until).startOf("day").valueOf(),i[t].until=o.valueOf();break}}return i}function Ovt(e,n,t){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(),t)switch(n){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 Tvt(e,n){var t=e.since<=e.until?1:-1;return n===void 0?jt(e.since).year():jt(e.since).year()+(n-e.offset)*t}function Ivt(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until||r[e].until<=t&&t<=r[e].since)return r[e].name;return""}function Mvt(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until||r[e].until<=t&&t<=r[e].since)return r[e].narrow;return""}function Avt(){var e,n,t,r=this.localeData().eras();for(e=0,n=r.length;e<n;++e)if(t=this.clone().startOf("day").valueOf(),r[e].since<=t&&t<=r[e].until||r[e].until<=t&&t<=r[e].since)return r[e].abbr;return""}function kvt(){var e,n,t,r,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(t=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()-jt(o[e].since).year())*t+o[e].offset;return this.year()}function _vt(e){return kr(this,"_erasNameRegex")||J8.call(this),e?this._erasNameRegex:this._erasRegex}function Rvt(e){return kr(this,"_erasAbbrRegex")||J8.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pvt(e){return kr(this,"_erasNarrowRegex")||J8.call(this),e?this._erasNarrowRegex:this._erasRegex}function q8(e,n){return n.erasAbbrRegex(e)}function Dvt(e,n){return n.erasNameRegex(e)}function Nvt(e,n){return n.erasNarrowRegex(e)}function jvt(e,n){return n._eraYearOrdinalRegex||a0}function J8(){var e=[],n=[],t=[],r=[],o,i,a,s,l,c=this.eras();for(o=0,i=c.length;o<i;++o)a=Cd(c[o].name),s=Cd(c[o].abbr),l=Cd(c[o].narrow),n.push(a),e.push(s),t.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+t.join("|")+")","i")}mn(0,["gg",2],0,function(){return this.weekYear()%100});mn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function OM(e,n){mn(0,[e,e.length],0,n)}OM("gggg","weekYear");OM("ggggg","weekYear");OM("GGGG","isoWeekYear");OM("GGGGG","isoWeekYear");Qt("G",xM);Qt("g",xM);Qt("GG",Eo,cl);Qt("gg",Eo,cl);Qt("GGGG",L8,F8);Qt("gggg",L8,F8);Qt("GGGGG",bM,vM);Qt("ggggg",bM,vM);y2(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,r){n[r.substr(0,2)]=pr(e)});y2(["gg","GG"],function(e,n,t,r){n[r]=jt.parseTwoDigitYear(e)});function Fvt(e){return vge.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Lvt(e){return vge.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bvt(){return Sd(this.year(),1,4)}function Vvt(){return Sd(this.isoWeekYear(),1,4)}function zvt(){var e=this.localeData()._week;return Sd(this.year(),e.dow,e.doy)}function Wvt(){var e=this.localeData()._week;return Sd(this.weekYear(),e.dow,e.doy)}function vge(e,n,t,r,o){var i;return e==null?lw(this,r,o).year:(i=Sd(e,r,o),n>i&&(n=i),$vt.call(this,e,n,t,r,o))}function $vt(e,n,t,r,o){var i=qme(e,n,t,r,o),a=sw(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}mn("Q",0,"Qo","quarter");Qt("Q",Bme);so("Q",function(e,n){n[vd]=(pr(e)-1)*3});function Gvt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}mn("D",["DD",2],"Do","date");Qt("D",Eo,s0);Qt("DD",Eo,cl);Qt("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});so(["D","DD"],ou);so("Do",function(e,n){n[ou]=pr(e.match(Eo)[0])});var yge=l0("Date",!0);mn("DDD",["DDDD",3],"DDDo","dayOfYear");Qt("DDD",yM);Qt("DDDD",Vme);so(["DDD","DDDD"],function(e,n,t){t._dayOfYear=pr(e)});function Hvt(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}mn("m",["mm",2],0,"minute");Qt("m",Eo,B8);Qt("mm",Eo,cl);so(["m","mm"],Cc);var Yvt=l0("Minutes",!1);mn("s",["ss",2],0,"second");Qt("s",Eo,B8);Qt("ss",Eo,cl);so(["s","ss"],yd);var Xvt=l0("Seconds",!1);mn("S",0,0,function(){return~~(this.millisecond()/100)});mn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});mn(0,["SSS",3],0,"millisecond");mn(0,["SSSS",4],0,function(){return this.millisecond()*10});mn(0,["SSSSS",5],0,function(){return this.millisecond()*100});mn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});mn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});mn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});mn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Qt("S",yM,Bme);Qt("SS",yM,cl);Qt("SSS",yM,Vme);var $p,bge;for($p="SSSS";$p.length<=9;$p+="S")Qt($p,a0);function Zvt(e,n){n[Hh]=pr(("0."+e)*1e3)}for($p="S";$p.length<=9;$p+="S")so($p,Zvt);bge=l0("Milliseconds",!1);mn("z",0,0,"zoneAbbr");mn("zz",0,0,"zoneName");function Uvt(){return this._isUTC?"UTC":""}function qvt(){return this._isUTC?"Coordinated Universal Time":""}var Tt=g2.prototype;Tt.add=Wgt;Tt.calendar=Ugt;Tt.clone=qgt;Tt.diff=rvt;Tt.endOf=fvt;Tt.format=svt;Tt.from=lvt;Tt.fromNow=cvt;Tt.to=uvt;Tt.toNow=dvt;Tt.get=amt;Tt.invalidAt=Cvt;Tt.isAfter=Jgt;Tt.isBefore=Kgt;Tt.isBetween=Qgt;Tt.isSame=evt;Tt.isSameOrAfter=tvt;Tt.isSameOrBefore=nvt;Tt.isValid=xvt;Tt.lang=pge;Tt.locale=dge;Tt.localeData=fge;Tt.max=xgt;Tt.min=bgt;Tt.parsingFlags=wvt;Tt.set=smt;Tt.startOf=pvt;Tt.subtract=$gt;Tt.toArray=vvt;Tt.toObject=yvt;Tt.toDate=gvt;Tt.toISOString=ivt;Tt.inspect=avt;typeof Symbol!="undefined"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=bvt;Tt.toString=ovt;Tt.unix=mvt;Tt.valueOf=hvt;Tt.creationData=Svt;Tt.eraName=Ivt;Tt.eraNarrow=Mvt;Tt.eraAbbr=Avt;Tt.eraYear=kvt;Tt.year=$me;Tt.isLeapYear=imt;Tt.weekYear=Fvt;Tt.isoWeekYear=Lvt;Tt.quarter=Tt.quarters=Gvt;Tt.month=Zme;Tt.daysInMonth=gmt;Tt.week=Tt.weeks=Emt;Tt.isoWeek=Tt.isoWeeks=Omt;Tt.weeksInYear=zvt;Tt.weeksInWeekYear=Wvt;Tt.isoWeeksInYear=Bvt;Tt.isoWeeksInISOWeekYear=Vvt;Tt.date=yge;Tt.day=Tt.days=Lmt;Tt.weekday=Bmt;Tt.isoWeekday=Vmt;Tt.dayOfYear=Hvt;Tt.hour=Tt.hours=Xmt;Tt.minute=Tt.minutes=Yvt;Tt.second=Tt.seconds=Xvt;Tt.millisecond=Tt.milliseconds=bge;Tt.utcOffset=Agt;Tt.utc=_gt;Tt.local=Rgt;Tt.parseZone=Pgt;Tt.hasAlignedHourOffset=Dgt;Tt.isDST=Ngt;Tt.isLocal=Fgt;Tt.isUtcOffset=Lgt;Tt.isUtc=sge;Tt.isUTC=sge;Tt.zoneAbbr=Uvt;Tt.zoneName=qvt;Tt.dates=tc("dates accessor is deprecated. Use date instead.",yge);Tt.months=tc("months accessor is deprecated. Use month instead",Zme);Tt.years=tc("years accessor is deprecated. Use year instead",$me);Tt.zone=tc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",kgt);Tt.isDSTShifted=tc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jgt);function Jvt(e){return So(e*1e3)}function Kvt(){return So.apply(null,arguments).parseZone()}function xge(e){return e}var _r=D8.prototype;_r.calendar=Fht;_r.longDateFormat=zht;_r.invalidDate=$ht;_r.ordinal=Yht;_r.preparse=xge;_r.postformat=xge;_r.relativeTime=Zht;_r.pastFuture=Uht;_r.set=Nht;_r.eras=Evt;_r.erasParse=Ovt;_r.erasConvertYear=Tvt;_r.erasAbbrRegex=Rvt;_r.erasNameRegex=_vt;_r.erasNarrowRegex=Pvt;_r.months=pmt;_r.monthsShort=fmt;_r.monthsParse=mmt;_r.monthsRegex=ymt;_r.monthsShortRegex=vmt;_r.week=xmt;_r.firstDayOfYear=Smt;_r.firstDayOfWeek=Cmt;_r.weekdays=Pmt;_r.weekdaysMin=Nmt;_r.weekdaysShort=Dmt;_r.weekdaysParse=Fmt;_r.weekdaysRegex=zmt;_r.weekdaysShortRegex=Wmt;_r.weekdaysMinRegex=$mt;_r.isPM=Hmt;_r.meridiem=Zmt;function RT(e,n,t,r){var o=Gd(),i=Lu().set(r,n);return o[t](i,e)}function wge(e,n,t){if(Nd(e)&&(n=e,e=void 0),e=e||"",n!=null)return RT(e,n,t,"month");var r,o=[];for(r=0;r<12;r++)o[r]=RT(e,r,t,"month");return o}function K8(e,n,t,r){typeof e=="boolean"?(Nd(n)&&(t=n,n=void 0),n=n||""):(n=e,t=n,e=!1,Nd(n)&&(t=n,n=void 0),n=n||"");var o=Gd(),i=e?o._week.dow:0,a,s=[];if(t!=null)return RT(n,(t+i)%7,r,"day");for(a=0;a<7;a++)s[a]=RT(n,(a+i)%7,r,"day");return s}function Qvt(e,n){return wge(e,n,"months")}function eyt(e,n){return wge(e,n,"monthsShort")}function tyt(e,n,t){return K8(e,n,t,"weekdays")}function nyt(e,n,t){return K8(e,n,t,"weekdaysShort")}function ryt(e,n,t){return K8(e,n,t,"weekdaysMin")}tf("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 n=e%10,t=pr(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+t}});jt.lang=tc("moment.lang is deprecated. Use moment.locale instead.",tf);jt.langData=tc("moment.langData is deprecated. Use moment.localeData instead.",Gd);var Qu=Math.abs;function oyt(){var e=this._data;return this._milliseconds=Qu(this._milliseconds),this._days=Qu(this._days),this._months=Qu(this._months),e.milliseconds=Qu(e.milliseconds),e.seconds=Qu(e.seconds),e.minutes=Qu(e.minutes),e.hours=Qu(e.hours),e.months=Qu(e.months),e.years=Qu(e.years),this}function Cge(e,n,t,r){var o=zc(n,t);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function iyt(e,n){return Cge(this,e,n,1)}function ayt(e,n){return Cge(this,e,n,-1)}function sQ(e){return e<0?Math.floor(e):Math.ceil(e)}function syt(){var e=this._milliseconds,n=this._days,t=this._months,r=this._data,o,i,a,s,l;return e>=0&&n>=0&&t>=0||e<=0&&n<=0&&t<=0||(e+=sQ(cD(t)+n)*864e5,n=0,t=0),r.milliseconds=e%1e3,o=Il(e/1e3),r.seconds=o%60,i=Il(o/60),r.minutes=i%60,a=Il(i/60),r.hours=a%24,n+=Il(a/24),l=Il(Sge(n)),t+=l,n-=sQ(cD(l)),s=Il(t/12),t%=12,r.days=n,r.months=t,r.years=s,this}function Sge(e){return e*4800/146097}function cD(e){return e*146097/4800}function lyt(e){if(!this.isValid())return NaN;var n,t,r=this._milliseconds;if(e=nc(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+r/864e5,t=this._months+Sge(n),e){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(n=this._days+Math.round(cD(this._months)),e){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return n*24+r/36e5;case"minute":return n*1440+r/6e4;case"second":return n*86400+r/1e3;case"millisecond":return Math.floor(n*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Hd(e){return function(){return this.as(e)}}var Ege=Hd("ms"),cyt=Hd("s"),uyt=Hd("m"),dyt=Hd("h"),pyt=Hd("d"),fyt=Hd("w"),hyt=Hd("M"),myt=Hd("Q"),gyt=Hd("y"),vyt=Ege;function yyt(){return zc(this)}function byt(e){return e=nc(e),this.isValid()?this[e+"s"]():NaN}function Zm(e){return function(){return this.isValid()?this._data[e]:NaN}}var xyt=Zm("milliseconds"),wyt=Zm("seconds"),Cyt=Zm("minutes"),Syt=Zm("hours"),Eyt=Zm("days"),Oyt=Zm("months"),Tyt=Zm("years");function Iyt(){return Il(this.days()/7)}var nd=Math.round,wv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Myt(e,n,t,r,o){return o.relativeTime(n||1,!!t,e,r)}function Ayt(e,n,t,r){var o=zc(e).abs(),i=nd(o.as("s")),a=nd(o.as("m")),s=nd(o.as("h")),l=nd(o.as("d")),c=nd(o.as("M")),d=nd(o.as("w")),p=nd(o.as("y")),f=i<=t.ss&&["s",i]||i<t.s&&["ss",i]||a<=1&&["m"]||a<t.m&&["mm",a]||s<=1&&["h"]||s<t.h&&["hh",s]||l<=1&&["d"]||l<t.d&&["dd",l];return t.w!=null&&(f=f||d<=1&&["w"]||d<t.w&&["ww",d]),f=f||c<=1&&["M"]||c<t.M&&["MM",c]||p<=1&&["y"]||["yy",p],f[2]=n,f[3]=+e>0,f[4]=r,Myt.apply(null,f)}function kyt(e){return e===void 0?nd:typeof e=="function"?(nd=e,!0):!1}function _yt(e,n){return wv[e]===void 0?!1:n===void 0?wv[e]:(wv[e]=n,e==="s"&&(wv.ss=n-1),!0)}function Ryt(e,n){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=wv,o,i;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(t=e),typeof n=="object"&&(r=Object.assign({},wv,n),n.s!=null&&n.ss==null&&(r.ss=n.s-1)),o=this.localeData(),i=Ayt(this,!t,r,o),t&&(i=o.pastFuture(+this,i)),o.postformat(i)}var lR=Math.abs;function zg(e){return(e>0)-(e<0)||+e}function TM(){if(!this.isValid())return this.localeData().invalidDate();var e=lR(this._milliseconds)/1e3,n=lR(this._days),t=lR(this._months),r,o,i,a,s=this.asSeconds(),l,c,d,p;return s?(r=Il(e/60),o=Il(r/60),e%=60,r%=60,i=Il(t/12),t%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=zg(this._months)!==zg(s)?"-":"",d=zg(this._days)!==zg(s)?"-":"",p=zg(this._milliseconds)!==zg(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(t?c+t+"M":"")+(n?d+n+"D":"")+(o||r||e?"T":"")+(o?p+o+"H":"")+(r?p+r+"M":"")+(e?p+a+"S":"")):"P0D"}var xr=EM.prototype;xr.isValid=Ogt;xr.abs=oyt;xr.add=iyt;xr.subtract=ayt;xr.as=lyt;xr.asMilliseconds=Ege;xr.asSeconds=cyt;xr.asMinutes=uyt;xr.asHours=dyt;xr.asDays=pyt;xr.asWeeks=fyt;xr.asMonths=hyt;xr.asQuarters=myt;xr.asYears=gyt;xr.valueOf=vyt;xr._bubble=syt;xr.clone=yyt;xr.get=byt;xr.milliseconds=xyt;xr.seconds=wyt;xr.minutes=Cyt;xr.hours=Syt;xr.days=Eyt;xr.weeks=Iyt;xr.months=Oyt;xr.years=Tyt;xr.humanize=Ryt;xr.toISOString=TM;xr.toString=TM;xr.toJSON=TM;xr.locale=dge;xr.localeData=fge;xr.toIsoString=tc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",TM);xr.lang=pge;mn("X",0,0,"unix");mn("x",0,0,"valueOf");Qt("x",xM);Qt("X",Qht);so("X",function(e,n,t){t._d=new Date(parseFloat(e)*1e3)});so("x",function(e,n,t){t._d=new Date(pr(e))});//! moment.js
3098
- jt.version="2.30.1";Pht(So);jt.fn=Tt;jt.min=wgt;jt.max=Cgt;jt.now=Sgt;jt.utc=Lu;jt.unix=Jvt;jt.months=Qvt;jt.isDate=m2;jt.locale=tf;jt.invalid=gM;jt.duration=zc;jt.isMoment=Bc;jt.weekdays=tyt;jt.parseZone=Kvt;jt.localeData=Gd;jt.isDuration=hE;jt.monthsShort=eyt;jt.weekdaysMin=ryt;jt.defineLocale=G8;jt.updateLocale=Kmt;jt.locales=Qmt;jt.weekdaysShort=nyt;jt.normalizeUnits=nc;jt.relativeTimeRounding=kyt;jt.relativeTimeThreshold=_yt;jt.calendarFormat=Zgt;jt.prototype=Tt;jt.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 Pyt=Hn.object({DATE:Hn.string().default(jt().format("YYYY-MM-DD")),START_TIME:Hn.string().default(jt().format("HH:mm")),DURATION:Hn.string({required_error:"Please enter meeting duration!"})}),Dyt=e=>{var x,C,b,E,T,M;const{meetingId:n,setMeetingId:t}=e,r=Zl(),o=As(_=>_.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=Xm("en"),{data:s,isFetching:l}=$a(Qs,{url:`${dr.ONE_TO_ONE.FETCH_ONE}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:c,isLoading:d}=wa(Bl,"rescheduleOneToOne",{onSuccess:()=>{r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:"Meeting has been rescheduled successfully!",type:"success"}),w()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),p=V.useMemo(()=>{var _,k,P;if(s)return{DURATION:nr.convertToMinutes(((_=s==null?void 0:s.meetingDetails)==null?void 0:_.DURATION)||"00:30:00").toString(),START_TIME:((k=s==null?void 0:s.meetingDetails)==null?void 0:k.START_TIME)||jt().format("HH:mm"),DATE:((P=s==null?void 0:s.meetingDetails)==null?void 0:P.DATE)||jt().format("YYYY-MM-DD")}},[s]),{control:f,formState:{errors:m},handleSubmit:h,reset:g}=xm({resolver:Fy(Pyt),mode:"onChange",values:p}),v=_=>{h(k=>{var H;const G=k,{START_TIME:P,DURATION:R}=G,A=Io(G,["START_TIME","DURATION"]),{hours:D,minutes:F,seconds:z}=nr.convertTime(`00:${R}:00`);let $=he({MEETING_ID:n,DURATION:`${D}:${F}:${z}`,START_TIME:`${P}:00`},A);if(((H=s==null?void 0:s.meetingDetails)==null?void 0:H.MEDIUM_ID)===2){const Z=nr.getOAuthToken()||_;if(!Z)return y();$=Ue(he({},$),{access_token:Z})}c({data:$,url:dr.ONE_TO_ONE.RESCHEDULE})})()},y=bN({flow:"implicit",scope:"https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",onSuccess:({access_token:_,expires_in:k})=>{nr.setOAuthToken({access_token:_,expires_in:k,generated_on:new Date}),v(_)}}),w=()=>(g(),t(void 0));return N.jsxs(N.Fragment,{children:[N.jsx(Aw,{visible:l||d}),N.jsx(f2,{title:N.jsxs(pt,{display:"flex",flexDirection:"row",alignItems:"center",children:[N.jsx(Ew,{children:N.jsx(k8,{color:"primary"})}),N.jsx(jo,{fontSize:20,fontWeight:700,color:"rgb(23, 43, 77)",children:"Reschedule One To One"})]}),open:!!n,onModalclose:w,size:"md",children:N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsxs(pt,{display:"flex",gap:1,alignItems:"center",mb:1,children:[N.jsx(jo,{fontSize:14,children:"Schedule With"}),N.jsxs("div",{className:"avatar_container",children:[N.jsx(Ll,{sx:{height:30,width:30},src:(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?x:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),N.jsxs("span",{children:[(C=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?C:"--"," (",(b=s==null?void 0:s.meetingDetails.SCHEDULE_BY_EMPLOYEE_CODE)!=null?b:"--",")"]})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(cd,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"small",sx:{width:1}}),N.jsx(cd,{label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"small",disabled:!0,multiline:!0,minRows:3})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(jo,{fontSize:14,children:"Choose Date & Time"}),N.jsx(sa,{name:"DATE",control:f,render:({field:_})=>N.jsx("input",he({className:"input-date",type:"date"},_))}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"START_TIME",control:f,render:({field:_})=>N.jsx("input",he({className:"input-date",type:"time",style:{flex:1}},_))}),N.jsx(sa,{name:"DURATION",control:f,render:P=>{var{field:R}=P,A=R,{value:_}=A,k=Io(A,["value"]);return N.jsxs(pt,{display:"flex",flexDirection:"column",flex:1,children:[N.jsx(cd,he({label:"Duration in minutes",required:!0,size:"small",type:"number",variant:"outlined",value:_||""},k)),!!(m!=null&&m.DURATION)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:m.DURATION.message})]})]})}})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsx(jo,{fontSize:14,children:"Choose Medium"}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(Mw,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((_,k)=>N.jsx(pN,{value:k+1,children:_.label},k))}),N.jsx(cd,{label:(E=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:E.LABEL,sx:{width:1},value:((M=s==null?void 0:s.meetingDetails)==null?void 0:M[(T=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:T.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),N.jsxs(pt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[N.jsx(Mi,{label:"CANCEL",variant:"outlined",onClick:w}),N.jsx(Mi,{label:"SUBMIT",color:"secondary",onClick:()=>v()})]})]})})]})},Nyt=Dt(nN)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),jyt=e=>{var Z,X,K,J,U,Q,re,ce,de,ge,se,ve,ne,Ce,le,fe,Me,Te,ee,te,oe,Se,Ee,Re,je,Ae,Le,Ge,we,ae,ke,Be,ye,Pe,Ie,$e,Je;const{meetingId:n,setMeetingId:t,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=Zl(),a=Ha(We=>We.session.ASSETS_BASE_URL),s=As(We=>We.pushAlert),{session:{user:l}}=Ha(),{ImageViewer:c,setImageURL:d}=t8(),{PdfViewer:p,setPdfURL:f}=Ome(),{ONE_TO_ONE_MEDIUM_TYPES:m}=Xm("en"),{data:h,isFetching:g}=$a(Qs,{url:`${dr.ONE_TO_ONE.FETCH_ONE}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:v,isLoading:y}=wa(Bl,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),t(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:We=>{var Qe,et;s({message:((et=(Qe=We==null?void 0:We.response)==null?void 0:Qe.data)==null?void 0:et.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:w,isLoading:x}=wa(Bl,"createOneToOneRemark",{onSuccess:We=>{var Qe;i.invalidateQueries("fetchOneToOneDetails"),s({message:((Qe=We==null?void 0:We.data)==null?void 0:Qe.message)||"Remark has been created successfully!",type:"success"}),E()},onError:We=>{var Qe,et;s({message:((et=(Qe=We==null?void 0:We.response)==null?void 0:Qe.data)==null?void 0:et.message)||"Error, while creating the remark!",type:"error"})}}),{control:C,watch:b,reset:E,handleSubmit:T}=xm({resolver:Fy(vht),mode:"onChange",values:{VISIBLE_TO:(h==null?void 0:h.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:M,remove:_}=r1({name:"IMAGES",control:C}),{append:k,remove:P}=r1({name:"FILES",control:C}),[R,A,D]=b(["TEXT","FILES","IMAGES"]),F=(We,Qe,et)=>{var It,Wt,bt,yt;switch(We){case Jo.SHEDULE_BY_WITH_OUTSIDE:return Qe===(l==null?void 0:l.employee_id)||et===(l==null?void 0:l.employee_id);case Jo.SHEDULE_BY_WITH:return((It=h==null?void 0:h.meetingDetails)==null?void 0:It.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((Wt=h==null?void 0:h.meetingDetails)==null?void 0:Wt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case Jo.SHEDULE_BY:return((bt=h==null?void 0:h.meetingDetails)==null?void 0:bt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case Jo.SHEDULE_WITH:return((yt=h==null?void 0:h.meetingDetails)==null?void 0:yt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},z=We=>{const Qe=We.target.files;if(!(!Qe||!Qe.length))for(const et of Qe)M(et)},$=We=>{A.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const Qe=We.target.files;if(!(!Qe||!Qe.length))for(const et of Qe)k(et)},G=T(It=>Br(exports,null,function*(){var Wt=It,{IMAGES:We,FILES:Qe}=Wt,et=Io(Wt,["IMAGES","FILES"]);const bt=[...Qe,...We],yt=Ue(he({},et),{FILES:bt,MEETING_ID:n}),Ft=nr.convertToFormData(yt);w({url:dr.ONE_TO_ONE.REMARK.CREATE,data:Ft})})),H=()=>{v({url:dr.ONE_TO_ONE.UPDATE,data:{MEETING_ID:n,MEETING_STATUS:Rme.COMPLETED}})};return N.jsxs(N.Fragment,{children:[N.jsx(Aw,{visible:g||y||x}),N.jsx(JF,{title:N.jsx(jo,{fontWeight:600,children:"Meeting Details"}),open:!!n,handleClose:()=>t(void 0),children:N.jsxs("div",{className:cc.meeting__details,children:[N.jsx("div",{className:cc.meeting__details__topbox,children:N.jsxs(mo,{container:!0,children:[N.jsxs(mo,{item:!0,md:8,children:[N.jsxs("h3",{children:[(Z=h==null?void 0:h.meetingDetails)==null?void 0:Z.TITLE,N.jsx("span",{style:{color:((X=h==null?void 0:h.meetingDetails)==null?void 0:X.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((K=h==null?void 0:h.meetingDetails)==null?void 0:K.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(J=h==null?void 0:h.meetingDetails)==null?void 0:J.DISPLAY_MEETING_STATUS})]}),N.jsx("p",{className:cc.meeting_desc,children:(U=h==null?void 0:h.meetingDetails)==null?void 0:U.DESCRIPTION}),N.jsxs("div",{className:cc.bottom_create_loaction,children:[N.jsxs("p",{children:["Created by: ",N.jsxs("span",{children:[(re=(Q=h==null?void 0:h.meetingDetails)==null?void 0:Q.SCHEDULE_BY)!=null?re:"--"," (",(de=(ce=h==null?void 0:h.meetingDetails)==null?void 0:ce.SCHEDULE_BY_EMPLOYEE_CODE)!=null?de:"--",")"]})]}),N.jsxs("p",{children:["Created on: ",N.jsx("span",{children:(se=(ge=h==null?void 0:h.meetingDetails)==null?void 0:ge.CREATED_DATE)!=null?se:"--"}),",",N.jsx("span",{children:(ne=(ve=h==null?void 0:h.meetingDetails)==null?void 0:ve.CREATED_TIME)!=null?ne:"--"})]}),N.jsxs("p",{children:["Medium: ",N.jsx("span",{children:(le=(Ce=h==null?void 0:h.meetingDetails)==null?void 0:Ce.MEDIUM)!=null?le:"--"})]}),N.jsxs("p",{children:[(Me=m[(fe=h==null?void 0:h.meetingDetails)==null?void 0:fe.MEDIUM_ID])==null?void 0:Me.LABEL,": ",((Te=h==null?void 0:h.meetingDetails)==null?void 0:Te.MEDIUM_ID)===2?N.jsx("a",{href:(oe=h==null?void 0:h.meetingDetails)==null?void 0:oe[(te=m[(ee=h==null?void 0:h.meetingDetails)==null?void 0:ee.MEDIUM_ID])==null?void 0:te.COLUMN_NAME],children:(je=(Re=h==null?void 0:h.meetingDetails)==null?void 0:Re[(Ee=m[(Se=h==null?void 0:h.meetingDetails)==null?void 0:Se.MEDIUM_ID])==null?void 0:Ee.COLUMN_NAME])!=null?je:"--"}):N.jsx("span",{children:(we=(Ge=h==null?void 0:h.meetingDetails)==null?void 0:Ge[(Le=m[(Ae=h==null?void 0:h.meetingDetails)==null?void 0:Ae.MEDIUM_ID])==null?void 0:Le.COLUMN_NAME])!=null?we:"--"})]})]})]}),N.jsx(mo,{item:!0,md:4,style:{textAlign:"right"},children:((ae=h==null?void 0:h.meetingDetails)==null?void 0:ae.DISPLAY_MEETING_STATUS)!=="Completed"?N.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!F(Jo==null?void 0:Jo.SHEDULE_BY_WITH)&&N.jsx(Mi,{onClick:()=>{o(n)},label:"Reschedule",color:"secondary",variant:"outlined"}),!!F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsx(Mi,{onClick:H,label:"Mark as Complete"})]}):null})]})}),N.jsxs("div",{className:cc.date__time__box,children:[N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(mM,{})}),(ke=h==null?void 0:h.meetingDetails)==null?void 0:ke.DATE]}),N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(O8,{})}),(Be=h==null?void 0:h.meetingDetails)==null?void 0:Be.START_TIME," - ",(ye=h==null?void 0:h.meetingDetails)==null?void 0:ye.END_TIME]})]}),N.jsxs("div",{className:cc.connected__meeting,children:[N.jsx("span",{style:{marginRight:"5px"},children:N.jsx(kme,{})}),"Conducted with:",N.jsxs("span",{style:{marginLeft:"5px"},children:[(Pe=h==null?void 0:h.meetingDetails)==null?void 0:Pe.SCHEDULE_WITH," (",($e=(Ie=h==null?void 0:h.meetingDetails)==null?void 0:Ie.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?$e:"--",")"]})]}),N.jsxs(N.Fragment,{children:[Array.isArray(h==null?void 0:h.meetingRemark)&&((Je=h==null?void 0:h.meetingRemark)==null?void 0:Je.map((We,Qe)=>{var et,It,Wt;return N.jsx(N.Fragment,{children:((We==null?void 0:We.DISPLAY_VISIBLE_TO)==="Visible to me"&&!F(Jo==null?void 0:Jo.SHEDULE_WITH)||(We==null?void 0:We.DISPLAY_VISIBLE_TO)==="Visible to All")&&N.jsx("div",{className:cc.remarks__meeting,children:N.jsxs("div",{style:{marginBottom:"20px"},children:[N.jsxs("h4",{children:["Remarks",F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsxs("span",{children:[N.jsx(Pme,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(We==null?void 0:We.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),N.jsx("p",{children:We==null?void 0:We.TEXT}),N.jsx("div",{className:"images__structure",children:(We==null?void 0:We.REMARK_ATTACHMENTS)&&((et=We==null?void 0:We.REMARK_ATTACHMENTS)==null?void 0:et.map(bt=>N.jsx(N.Fragment,{children:(bt==null?void 0:bt.FILE_TYPE)==="pdf"||(bt==null?void 0:bt.FILE_TYPE)==="xls"?N.jsxs(pt,{className:"pdfView__preview",children:[N.jsx(pt,{mr:1,display:"flex",alignItems:"center",children:(bt==null?void 0:bt.FILE_TYPE)==="pdf"?N.jsx(fht,{size:18}):N.jsx(m8,{style:{width:"30px"}})}),N.jsxs(pt,{children:[N.jsx("p",{children:N.jsx(My,{data:bt==null?void 0:bt.FILE_NAME,limit:20})}),N.jsx("div",{className:cc.previeww__color,onClick:()=>f(`${a}/${bt==null?void 0:bt.FILE_PATH}`),children:"Preview"})]})]}):null})))}),N.jsx("div",{className:"images__structure",children:(We==null?void 0:We.REMARK_ATTACHMENTS)&&((It=We==null?void 0:We.REMARK_ATTACHMENTS)==null?void 0:It.map(bt=>N.jsx(N.Fragment,{children:(bt==null?void 0:bt.FILE_TYPE)==="png"||(bt==null?void 0:bt.FILE_TYPE)==="jpeg"||(bt==null?void 0:bt.FILE_TYPE)==="webp"||(bt==null?void 0:bt.FILE_TYPE)==="jpg"?N.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>d(`${a}/${bt==null?void 0:bt.FILE_PATH}`),alt:"",src:`${a}/${bt==null?void 0:bt.FILE_PATH}`,width:200}):null})))}),N.jsxs("div",{className:cc.comment__users__meeting,children:[N.jsx(Ll,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((Wt=We==null?void 0:We.remark_auther)==null?void 0:Wt.profileSrc)||`https://robohash.org/${We==null?void 0:We.CREATED_BY}`}),We==null?void 0:We.CREATED_BY," ",N.jsx("span",{children:We==null?void 0:We.CREATED_DATE}),N.jsx("span",{children:We==null?void 0:We.CREATED_TIME})]})]})},Qe)})})),F(Jo==null?void 0:Jo.SHEDULE_BY_WITH)&&N.jsxs("div",{className:cc.editor__remarks,children:[N.jsx(sa,{control:C,name:"TEXT",render:({field:{value:We,onChange:Qe,onBlur:et}})=>N.jsx(Nyt,{placeholder:"Type your remarks",value:We,onChange:It=>Qe(It.target.value),onBlur:et})}),N.jsx(pt,{className:"main__upload__box",mx:2,children:D==null?void 0:D.map((We,Qe)=>N.jsxs(pt,{className:"all__upload__images",children:[N.jsx("img",{src:URL.createObjectURL(We),height:"200",alt:"upload"}),N.jsx("button",{onClick:()=>_(Qe),children:N.jsx(zv,{style:{width:"20px",height:"20px"}})})]},We))}),N.jsx(pt,{className:"main__upload__box",mx:2,children:A==null?void 0:A.map((We,Qe)=>N.jsxs(pt,{className:"pdfView__preview",children:[N.jsx(pt,{style:{marginRight:"10px"},children:N.jsx("p",{children:N.jsx(v8,{size:22,color:"red"})})}),N.jsx(pt,{children:N.jsx("p",{children:N.jsx(My,{data:We==null?void 0:We.name,limit:20})})}),N.jsx("button",{onClick:()=>P(Qe),children:N.jsx(zv,{style:{width:"20px",height:"20px"}})})]}))}),N.jsxs("div",{className:cc.editor__bottom,children:[N.jsxs(pt,{display:"flex",gap:1,children:[N.jsxs("label",{style:{cursor:"pointer"},children:[N.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:z,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),N.jsx("span",{children:N.jsx(x8,{})})]}),N.jsxs("label",{style:{cursor:"pointer"},children:[N.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:$,disabled:(A==null?void 0:A.length)>10,style:{display:"none"}}),N.jsx("span",{children:N.jsx(_me,{})})]})]}),N.jsxs("div",{className:"start-flex",children:[F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsx(sa,{control:C,name:"VISIBLE_TO",render:({field:{value:We,onChange:Qe}})=>N.jsx(uN,{style:{marginRight:"20px"},control:N.jsx(gN,{checked:!!We}),label:"Show to employee",labelPlacement:"start",onChange:(et,It)=>(Qe(+It),et)})}),N.jsx(fme,{onClick:G,disabled:!R||(R==null?void 0:R.length)===0,sx:{backgroundColor:l==null?void 0:l.PRODUCT_THEME_COLOR,height:"40px"},color:"secondary",label:"send"})]})]})]})]})]})}),N.jsx(Dyt,{meetingId:r,setMeetingId:o}),N.jsx(c,{}),N.jsx(p,{})]})},Fyt=Hn.object({MEETING_TITLE:Hn.string({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:Hn.string().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:Hn.number({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:Hn.string().default(jt().format("YYYY-MM-DD")),START_TIME:Hn.string().default(jt().format("HH:mm")),DURATION:Hn.string({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:Hn.number().default(1),MEDIUM_ALIAS:Hn.string().optional(),EVENT_UID:Hn.string().optional()}),Lyt="https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",Byt=({onSuccess:e,onError:n})=>bN({flow:"implicit",scope:Lyt,onSuccess:e,onError:n}),Oge=e=>{var z,$,G;const{open:n,setOpen:t,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=Zl(),c=Ha(H=>H.session.user),d=As(H=>H.pushAlert),{ONE_TO_ONE_TYPES:p,ONE_TO_ONE_MEDIUM_TYPES:f}=Xm("en"),{mutate:m,isLoading:h}=wa(Bl,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),d({message:"Meeting has been scheduled successfully!",type:"success"}),M(),t(!1)},onError:H=>{var Z;d({message:((Z=H==null?void 0:H.response)==null?void 0:Z.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:g}=wa(yD,"cancelVirtualMeetLink"),{mutate:v,isLoading:y}=wa(Bl,"generateGoogleMeetLink",{onSuccess:({data:{message:H,data:Z}})=>{d({message:H||"Meeting Link has been generated successfully!",type:"success"}),T("MEDIUM",2),T("EVENT_UID",Z==null?void 0:Z.id),T("MEDIUM_ALIAS",Z==null?void 0:Z.hangoutLink)},onError:H=>{var Z;d({message:((Z=H==null?void 0:H.response)==null?void 0:Z.data.message)||"Error, while scheduleing the meeting link!",type:"error"})}}),{control:w,formState:{errors:x},trigger:C,watch:b,handleSubmit:E,setValue:T,reset:M,getValues:_}=xm({resolver:Fy(Fyt),mode:"onChange",values:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:jt().format("HH:mm"),DATE:jt().format("YYYY-MM-DD")}}),[k,P]=b(["MEDIUM","DESCRIPTION"]),R=H=>{E(Z=>{const se=Z,{MEDIUM:X,MEDIUM_ALIAS:K,START_TIME:J,DURATION:U}=se,Q=Io(se,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]);let re={};if(X===2){const ve=nr.getOAuthToken()||H;if(!ve)return A();re={access_token:ve}}const{hours:ce,minutes:de,seconds:ge}=nr.convertTime(`00:${U}:00`);re=he(he({MEDIUM:X,DURATION:`${ce}:${de}:${ge}`,START_TIME:`${J}:00`,[f==null?void 0:f[X].COLUMN_NAME]:K},Q),re),m({data:re,url:dr.ONE_TO_ONE.CREATE})})()},A=Byt({onSuccess:({access_token:H,expires_in:Z})=>(nr.setOAuthToken({access_token:H,expires_in:Z,generated_on:new Date}),R(H)),onError:()=>{d({type:"error",message:"Error! while generating meeting link, please choose another medium!"})}}),D=H=>Br(exports,null,function*(){if(!(yield C()))return;let de=_(),{START_TIME:Z,DURATION:X}=de,K=Io(de,["START_TIME","DURATION"]);const{hours:J,minutes:U,seconds:Q}=nr.convertTime(`00:${X}:00`);let re=nr.getOAuthToken()||H;if(!re)return A();let ce=he({DURATION:`${J}:${U}:${Q}`,START_TIME:`${Z}:00`,access_token:re},K);v({url:dr.ONE_TO_ONE.VIRTUAL.CREATE,data:ce})}),F=()=>{const H=_("EVENT_UID");if(H){let Z=nr.getOAuthToken();g({url:dr.ONE_TO_ONE.VIRTUAL.CANCEL,data:{EVENT_UID:H,access_token:Z}})}M(),t(!1)};return $d(h||y),N.jsx(f2,{title:N.jsxs(pt,{display:"flex",flexDirection:"row",alignItems:"center",children:[N.jsx(Ew,{children:N.jsx(k8,{color:"primary",sx:{color:c==null?void 0:c.PRODUCT_THEME_COLOR,fontSize:28}})}),N.jsx(jo,{fontSize:20,fontWeight:700,color:"rgb(23, 43, 77)",children:"Schedule One To One"})]}),open:n,onModalclose:F,size:"md",children:N.jsxs(pt,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[N.jsxs(pt,{display:"flex",gap:2,mb:1,children:[N.jsx(jo,{mt:1,fontSize:14,children:"Schedule With"}),r?N.jsxs("div",{className:"avatar_container",children:[N.jsx(Ll,{sx:{height:30,width:30},src:(z=r==null?void 0:r[`${s}`])!=null?z:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),N.jsxs("span",{children:[($=r==null?void 0:r[`${o}`])!=null?$:"--"," ",(G=r==null?void 0:r[`${a}`])!=null?G:"--"]})]}):N.jsxs(pt,{children:[N.jsx(Iv,{searchKey:"search",endpoint:dr.EMPLOYEE.SEARCH,reqParams:{search_for:"appreciation",search:""},optionValue:"EMPLOYEE_ID",optionTitleFn:H=>`${(H==null?void 0:H.EMPLOYEE_NAME)||"--"} (${H.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:H})=>T("SCHEDULE_WITH",H),isClearable:!1}),!!(x!=null&&x.SCHEDULE_WITH)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.SCHEDULE_WITH.message})]})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(sa,{name:"MEETING_TITLE",control:w,render:({field:H})=>N.jsxs(pt,{children:[N.jsx(cd,he({label:"Meeting Title",required:!0,size:"small",sx:{width:1}},H)),!!(x!=null&&x.MEETING_TITLE)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.MEETING_TITLE.message})]})]})}),N.jsx(sa,{name:"DESCRIPTION",control:w,render:({field:H})=>N.jsxs(pt,{display:"flex",flexDirection:"column",children:[N.jsx(cd,he({label:"Description",size:"small",multiline:!0,minRows:3},H)),N.jsxs("div",{className:"mt-10",children:[!!(x!=null&&x.DESCRIPTION)&&N.jsxs("div",{className:"form_error",style:{float:"left",marginTop:0},children:[N.jsx(Wa,{}),N.jsx("p",{children:x.DESCRIPTION.message})]}),N.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(P==null?void 0:P.length)||0,"/150"]})]})]})})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(jo,{fontSize:14,children:"Choose Date & Time"}),N.jsx(sa,{name:"DATE",control:w,render:({field:H})=>N.jsx("input",he({className:"input-date",type:"date"},H))}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"START_TIME",control:w,render:({field:H})=>N.jsx("input",he({className:"input-date",type:"time",style:{flex:1}},H))}),N.jsx(sa,{name:"DURATION",control:w,render:({field:H})=>N.jsxs(pt,{display:"flex",flexDirection:"column",flex:1,children:[N.jsx(cd,he({label:"Duration in minutes",required:!0,size:"small",type:"number",variant:"outlined"},H)),!!(x!=null&&x.DURATION)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.DURATION.message})]})]})})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsx(jo,{fontSize:14,children:"Choose Medium"}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"MEDIUM",control:w,render:({field:{value:H,onChange:Z}})=>N.jsx(N.Fragment,{children:N.jsx(Mw,{sx:{width:1},size:"small",value:H,onChange:({target:{value:X}})=>{X===2?D():Z(X)},children:p.map((X,K)=>N.jsx(pN,{value:X.value,children:X.label},K))})})}),N.jsx(sa,{name:"MEDIUM_ALIAS",control:w,render:({field:{name:H,value:Z,onChange:X}})=>{var K;return N.jsx(N.Fragment,{children:N.jsx(cd,{label:(K=f==null?void 0:f[k])==null?void 0:K.LABEL,name:H,sx:{width:1},value:Z,onChange:X,disabled:k===2,size:"small",variant:"outlined"})})}})]})]}),N.jsxs(pt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[N.jsx(Mi,{label:"CANCEL",variant:"outlined",onClick:F}),N.jsx(Mi,{label:"SUBMIT",onClick:()=>R()})]})]})})},Vyt="_one__to__one__card_ec5u0_1",zyt="_one__to__one__card__top_ec5u0_11",Wyt="_one__to__one__icon_ec5u0_17",$yt="_face__to__face_ec5u0_58",Gyt="_one__to__one__reschedule_ec5u0_73",Hyt="_one__to__one__cancel_ec5u0_85",hh={one__to__one__card:Vyt,one__to__one__card__top:zyt,one__to__one__icon:Wyt,face__to__face:$yt,one__to__one__reschedule:Gyt,one__to__one__cancel:Hyt},Yyt=e=>{const{CONCERN:n="self",employee_id:t}=e,r=Zl(),{user:o,token:i}=Ha(A=>A.session),a=As(A=>A.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:c}=Xm("en"),[d,p]=V.useState(void 0),[f,m]=V.useState(void 0),[h,g]=V.useState(void 0),[v,y]=V.useState(!1),[{ONE_TO_ONE_TYPE:w,MONTH_FILTER:x,MEETING_STATUS:C,SEARCH_QUERY:b},E]=V.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:c[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:T,isFetching:M}=$a(Bl,{url:dr.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:w,MEETING_STATUS:C.value,MONTH_FILTER:x==null?void 0:x.value,SEARCH_QUERY:b,CONCERN:n,employee_id:t}},"fetchOneToOne"),{mutate:_,isLoading:k}=wa(Bl,"cancelOneToOne",{onSuccess:()=>{r.invalidateQueries("fetchOneToOne"),a({message:"Meeting has been canceled successfully!",type:"success"})},onError:A=>{var D,F;a({message:((F=(D=A==null?void 0:A.response)==null?void 0:D.data)==null?void 0:F.message)||"Error! while canceling the meeting!",type:"error"})}});V.useEffect(()=>{d&&R()},[d]);const P=bN({flow:"implicit",scope:"https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",onSuccess:({access_token:A,expires_in:D})=>{nr.setOAuthToken({access_token:A,expires_in:D,generated_on:new Date}),R(A)}}),R=A=>{const{ID:D,MEDIUM_ID:F}=d;let z={MEETING_ID:D,MEETING_STATUS:Rme.CANCELED};if(F===2){const $=nr.getOAuthToken()||A;if(!$)return P();z=Ue(he({},z),{access_token:$})}_({token:A,data:z,url:dr.ONE_TO_ONE.UPDATE})};return $d(M||k),N.jsxs(N.Fragment,{children:[N.jsxs(pt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[N.jsxs("div",{className:"flex-between-center g-10",children:[N.jsxs(pt,{display:"flex",gap:2,flexDirection:"row",children:[N.jsx(i0,{placeholder:"Search",debounceDelay:500,getSearch:A=>E(D=>Ue(he({},D),{SEARCH_QUERY:A})),styleOverrides:{margin:0,width:200,height:40}}),N.jsx("div",{style:{width:200},children:N.jsx(Iy,{value:x,options:l,placeholder:"Month",onChange:A=>E(D=>Ue(he({},D),{MONTH_FILTER:A})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:A=>Ue(he({},A),{zIndex:99999999999,width:"200px"}),control:A=>Ue(he({},A),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),N.jsx("div",{style:{width:200},children:N.jsx(Iy,{value:C,options:c,placeholder:"Month",onChange:A=>E(D=>Ue(he({},D),{MEETING_STATUS:A})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:A=>Ue(he({},A),{zIndex:99999999999,width:"200px"}),control:A=>Ue(he({},A),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),N.jsxs("div",{className:"flex-end-center g-10",children:[N.jsx(xN,{items:s,value:w,onChangeTab:(A,D)=>E(F=>Ue(he({},F),{ONE_TO_ONE_TYPE:D}))}),!t&&N.jsx(Mi,{label:"SCHEDULE ONE TO ONE",onClick:()=>y(!0),disableElevation:!0})]})]}),N.jsx(pt,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(T==null?void 0:T.length)>0?T.map((A,D)=>N.jsxs(pt,{className:hh.one__to__one__card,children:[N.jsxs("div",{className:hh.one__to__one__card__top,children:[N.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>m(A==null?void 0:A.ID),children:[N.jsx("div",{className:hh.one__to__one__icon,children:N.jsx(Ame,{})}),N.jsxs("h3",{children:[A==null?void 0:A.MEETING_TITLE," ",N.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})]})]}),N.jsx("div",{className:"flex-start-center g-10",children:N.jsx("div",{className:hh.face__to__face,children:A==null?void 0:A.MEDIUM})})]}),N.jsxs(pt,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[N.jsxs("div",{className:"one__icons__bottom",children:[N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(mM,{})}),A==null?void 0:A.DATE]}),N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(O8,{})})," ",A==null?void 0:A.START_TIME," - ",A==null?void 0:A.END_TIME]}),N.jsxs("p",{children:[N.jsx("span",{style:{marginRight:"5px"},children:"Schedule By:"}),A==null?void 0:A.SCHEDULE_BY]}),N.jsxs("p",{children:[N.jsx("span",{style:{marginRight:"5px"},children:"Schedule With:"}),A==null?void 0:A.SCHEDULE_WITH]})]}),N.jsx(pt,{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"?N.jsx("span",{className:hh.one__to__one__reschedule,onClick:()=>m(A==null?void 0:A.ID),children:"Add Remarks"}):N.jsxs(N.Fragment,{children:[N.jsx("span",{className:hh.one__to__one__reschedule,onClick:()=>g(A==null?void 0:A.ID),children:"Reschedule"}),N.jsx("span",{className:hh.one__to__one__cancel,onClick:()=>p(A),children:"Cancel"})]}))})]})]},D)):N.jsx(kp,{message:"No One to One's found"})})]}),N.jsx(jyt,{meetingId:f,setMeetingId:m,openReScheduleModalMeetingId:h,setReScheduleModalMeetingId:g}),N.jsx(Oge,{open:v,setOpen:y})]})};exports.AppreciationList=zpt;exports.AppreciationModal=xme;exports.BadgeMaster=Hpt;exports.ContinuousFeedbackList=oht;exports.ContinuousFeedbackModal=Mme;exports.EngageProvider=IIe;exports.FeedbackConfigration=Sft;exports.FeedbackDashBoard=Cft;exports.OneToOneList=Yyt;exports.OneToOneModal=Oge;exports.SkillsMaster=Xpt;
3098
+ jt.version="2.30.1";Pht(So);jt.fn=Tt;jt.min=wgt;jt.max=Cgt;jt.now=Sgt;jt.utc=Lu;jt.unix=Jvt;jt.months=Qvt;jt.isDate=m2;jt.locale=tf;jt.invalid=gM;jt.duration=zc;jt.isMoment=Bc;jt.weekdays=tyt;jt.parseZone=Kvt;jt.localeData=Gd;jt.isDuration=hE;jt.monthsShort=eyt;jt.weekdaysMin=ryt;jt.defineLocale=G8;jt.updateLocale=Kmt;jt.locales=Qmt;jt.weekdaysShort=nyt;jt.normalizeUnits=nc;jt.relativeTimeRounding=kyt;jt.relativeTimeThreshold=_yt;jt.calendarFormat=Zgt;jt.prototype=Tt;jt.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 Pyt=Hn.object({DATE:Hn.string().default(jt().format("YYYY-MM-DD")),START_TIME:Hn.string().default(jt().format("HH:mm")),DURATION:Hn.string({required_error:"Please enter meeting duration!"})}),Dyt=e=>{var x,C,b,E,T,M;const{meetingId:n,setMeetingId:t}=e,r=Zl(),o=As(_=>_.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=Xm("en"),{data:s,isFetching:l}=$a(Qs,{url:`${dr.ONE_TO_ONE.FETCH_ONE}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:c,isLoading:d}=wa(Bl,"rescheduleOneToOne",{onSuccess:()=>{r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:"Meeting has been rescheduled successfully!",type:"success"}),w()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),p=V.useMemo(()=>{var _,k,P;if(s)return{DURATION:nr.convertToMinutes(((_=s==null?void 0:s.meetingDetails)==null?void 0:_.DURATION)||"00:30:00").toString(),START_TIME:((k=s==null?void 0:s.meetingDetails)==null?void 0:k.START_TIME)||jt().format("HH:mm"),DATE:((P=s==null?void 0:s.meetingDetails)==null?void 0:P.DATE)||jt().format("YYYY-MM-DD")}},[s]),{control:f,formState:{errors:m},handleSubmit:h,reset:g}=xm({resolver:Fy(Pyt),mode:"onChange",values:p}),v=_=>{h(k=>{var H;const G=k,{START_TIME:P,DURATION:R}=G,A=Io(G,["START_TIME","DURATION"]),{hours:D,minutes:F,seconds:z}=nr.convertTime(`00:${R}:00`);let $=he({MEETING_ID:n,DURATION:`${D}:${F}:${z}`,START_TIME:`${P}:00`},A);if(((H=s==null?void 0:s.meetingDetails)==null?void 0:H.MEDIUM_ID)===2){const Z=nr.getOAuthToken()||_;if(!Z)return y();$=Ue(he({},$),{access_token:Z})}c({data:$,url:dr.ONE_TO_ONE.RESCHEDULE})})()},y=bN({flow:"implicit",scope:"https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",onSuccess:({access_token:_,expires_in:k})=>{nr.setOAuthToken({access_token:_,expires_in:k,generated_on:new Date}),v(_)}}),w=()=>(g(),t(void 0));return N.jsxs(N.Fragment,{children:[N.jsx(Aw,{visible:l||d}),N.jsx(f2,{title:N.jsxs(pt,{display:"flex",flexDirection:"row",alignItems:"center",children:[N.jsx(Ew,{children:N.jsx(k8,{color:"primary"})}),N.jsx(jo,{fontSize:20,fontWeight:700,color:"rgb(23, 43, 77)",children:"Reschedule One To One"})]}),open:!!n,onModalclose:w,size:"md",children:N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsxs(pt,{display:"flex",gap:1,alignItems:"center",mb:1,children:[N.jsx(jo,{fontSize:14,children:"Schedule With"}),N.jsxs("div",{className:"avatar_container",children:[N.jsx(Ll,{sx:{height:30,width:30},src:(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?x:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),N.jsxs("span",{children:[(C=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?C:"--"," (",(b=s==null?void 0:s.meetingDetails.SCHEDULE_BY_EMPLOYEE_CODE)!=null?b:"--",")"]})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(cd,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"small",sx:{width:1}}),N.jsx(cd,{label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"small",disabled:!0,multiline:!0,minRows:3})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(jo,{fontSize:14,children:"Choose Date & Time"}),N.jsx(sa,{name:"DATE",control:f,render:({field:_})=>N.jsx("input",he({className:"input-date",type:"date"},_))}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"START_TIME",control:f,render:({field:_})=>N.jsx("input",he({className:"input-date",type:"time",style:{flex:1}},_))}),N.jsx(sa,{name:"DURATION",control:f,render:P=>{var{field:R}=P,A=R,{value:_}=A,k=Io(A,["value"]);return N.jsxs(pt,{display:"flex",flexDirection:"column",flex:1,children:[N.jsx(cd,he({label:"Duration in minutes",required:!0,size:"small",type:"number",variant:"outlined",value:_||""},k)),!!(m!=null&&m.DURATION)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:m.DURATION.message})]})]})}})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsx(jo,{fontSize:14,children:"Choose Medium"}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(Mw,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((_,k)=>N.jsx(pN,{value:_.value,children:_.label},k))}),N.jsx(cd,{label:(E=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:E.LABEL,sx:{width:1},value:((M=s==null?void 0:s.meetingDetails)==null?void 0:M[(T=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:T.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),N.jsxs(pt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[N.jsx(Mi,{label:"CANCEL",variant:"outlined",onClick:w}),N.jsx(Mi,{label:"SUBMIT",color:"secondary",onClick:()=>v()})]})]})})]})},Nyt=Dt(nN)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),jyt=e=>{var Z,X,K,J,U,Q,re,ce,de,ge,se,ve,ne,Ce,le,fe,Me,Te,ee,te,oe,Se,Ee,Re,je,Ae,Le,Ge,we,ae,ke,Be,ye,Pe,Ie,$e,Je;const{meetingId:n,setMeetingId:t,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=Zl(),a=Ha(We=>We.session.ASSETS_BASE_URL),s=As(We=>We.pushAlert),{session:{user:l}}=Ha(),{ImageViewer:c,setImageURL:d}=t8(),{PdfViewer:p,setPdfURL:f}=Ome(),{ONE_TO_ONE_MEDIUM_TYPES:m}=Xm("en"),{data:h,isFetching:g}=$a(Qs,{url:`${dr.ONE_TO_ONE.FETCH_ONE}/${n}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!n}),{mutate:v,isLoading:y}=wa(Bl,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),t(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:We=>{var Qe,et;s({message:((et=(Qe=We==null?void 0:We.response)==null?void 0:Qe.data)==null?void 0:et.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:w,isLoading:x}=wa(Bl,"createOneToOneRemark",{onSuccess:We=>{var Qe;i.invalidateQueries("fetchOneToOneDetails"),s({message:((Qe=We==null?void 0:We.data)==null?void 0:Qe.message)||"Remark has been created successfully!",type:"success"}),E()},onError:We=>{var Qe,et;s({message:((et=(Qe=We==null?void 0:We.response)==null?void 0:Qe.data)==null?void 0:et.message)||"Error, while creating the remark!",type:"error"})}}),{control:C,watch:b,reset:E,handleSubmit:T}=xm({resolver:Fy(vht),mode:"onChange",values:{VISIBLE_TO:(h==null?void 0:h.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:M,remove:_}=r1({name:"IMAGES",control:C}),{append:k,remove:P}=r1({name:"FILES",control:C}),[R,A,D]=b(["TEXT","FILES","IMAGES"]),F=(We,Qe,et)=>{var It,Wt,bt,yt;switch(We){case Jo.SHEDULE_BY_WITH_OUTSIDE:return Qe===(l==null?void 0:l.employee_id)||et===(l==null?void 0:l.employee_id);case Jo.SHEDULE_BY_WITH:return((It=h==null?void 0:h.meetingDetails)==null?void 0:It.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((Wt=h==null?void 0:h.meetingDetails)==null?void 0:Wt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case Jo.SHEDULE_BY:return((bt=h==null?void 0:h.meetingDetails)==null?void 0:bt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case Jo.SHEDULE_WITH:return((yt=h==null?void 0:h.meetingDetails)==null?void 0:yt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},z=We=>{const Qe=We.target.files;if(!(!Qe||!Qe.length))for(const et of Qe)M(et)},$=We=>{A.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const Qe=We.target.files;if(!(!Qe||!Qe.length))for(const et of Qe)k(et)},G=T(It=>Br(exports,null,function*(){var Wt=It,{IMAGES:We,FILES:Qe}=Wt,et=Io(Wt,["IMAGES","FILES"]);const bt=[...Qe,...We],yt=Ue(he({},et),{FILES:bt,MEETING_ID:n}),Ft=nr.convertToFormData(yt);w({url:dr.ONE_TO_ONE.REMARK.CREATE,data:Ft})})),H=()=>{v({url:dr.ONE_TO_ONE.UPDATE,data:{MEETING_ID:n,MEETING_STATUS:Rme.COMPLETED}})};return N.jsxs(N.Fragment,{children:[N.jsx(Aw,{visible:g||y||x}),N.jsx(JF,{title:N.jsx(jo,{fontWeight:600,children:"Meeting Details"}),open:!!n,handleClose:()=>t(void 0),children:N.jsxs("div",{className:cc.meeting__details,children:[N.jsx("div",{className:cc.meeting__details__topbox,children:N.jsxs(mo,{container:!0,children:[N.jsxs(mo,{item:!0,md:8,children:[N.jsxs("h3",{children:[(Z=h==null?void 0:h.meetingDetails)==null?void 0:Z.TITLE,N.jsx("span",{style:{color:((X=h==null?void 0:h.meetingDetails)==null?void 0:X.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((K=h==null?void 0:h.meetingDetails)==null?void 0:K.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(J=h==null?void 0:h.meetingDetails)==null?void 0:J.DISPLAY_MEETING_STATUS})]}),N.jsx("p",{className:cc.meeting_desc,children:(U=h==null?void 0:h.meetingDetails)==null?void 0:U.DESCRIPTION}),N.jsxs("div",{className:cc.bottom_create_loaction,children:[N.jsxs("p",{children:["Created by: ",N.jsxs("span",{children:[(re=(Q=h==null?void 0:h.meetingDetails)==null?void 0:Q.SCHEDULE_BY)!=null?re:"--"," (",(de=(ce=h==null?void 0:h.meetingDetails)==null?void 0:ce.SCHEDULE_BY_EMPLOYEE_CODE)!=null?de:"--",")"]})]}),N.jsxs("p",{children:["Created on: ",N.jsx("span",{children:(se=(ge=h==null?void 0:h.meetingDetails)==null?void 0:ge.CREATED_DATE)!=null?se:"--"}),",",N.jsx("span",{children:(ne=(ve=h==null?void 0:h.meetingDetails)==null?void 0:ve.CREATED_TIME)!=null?ne:"--"})]}),N.jsxs("p",{children:["Medium: ",N.jsx("span",{children:(le=(Ce=h==null?void 0:h.meetingDetails)==null?void 0:Ce.MEDIUM)!=null?le:"--"})]}),N.jsxs("p",{children:[(Me=m[(fe=h==null?void 0:h.meetingDetails)==null?void 0:fe.MEDIUM_ID])==null?void 0:Me.LABEL,": ",((Te=h==null?void 0:h.meetingDetails)==null?void 0:Te.MEDIUM_ID)===2?N.jsx("a",{href:(oe=h==null?void 0:h.meetingDetails)==null?void 0:oe[(te=m[(ee=h==null?void 0:h.meetingDetails)==null?void 0:ee.MEDIUM_ID])==null?void 0:te.COLUMN_NAME],children:(je=(Re=h==null?void 0:h.meetingDetails)==null?void 0:Re[(Ee=m[(Se=h==null?void 0:h.meetingDetails)==null?void 0:Se.MEDIUM_ID])==null?void 0:Ee.COLUMN_NAME])!=null?je:"--"}):N.jsx("span",{children:(we=(Ge=h==null?void 0:h.meetingDetails)==null?void 0:Ge[(Le=m[(Ae=h==null?void 0:h.meetingDetails)==null?void 0:Ae.MEDIUM_ID])==null?void 0:Le.COLUMN_NAME])!=null?we:"--"})]})]})]}),N.jsx(mo,{item:!0,md:4,style:{textAlign:"right"},children:((ae=h==null?void 0:h.meetingDetails)==null?void 0:ae.DISPLAY_MEETING_STATUS)!=="Completed"?N.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!F(Jo==null?void 0:Jo.SHEDULE_BY_WITH)&&N.jsx(Mi,{onClick:()=>{o(n)},label:"Reschedule",color:"secondary",variant:"outlined"}),!!F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsx(Mi,{onClick:H,label:"Mark as Complete"})]}):null})]})}),N.jsxs("div",{className:cc.date__time__box,children:[N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(mM,{})}),(ke=h==null?void 0:h.meetingDetails)==null?void 0:ke.DATE]}),N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(O8,{})}),(Be=h==null?void 0:h.meetingDetails)==null?void 0:Be.START_TIME," - ",(ye=h==null?void 0:h.meetingDetails)==null?void 0:ye.END_TIME]})]}),N.jsxs("div",{className:cc.connected__meeting,children:[N.jsx("span",{style:{marginRight:"5px"},children:N.jsx(kme,{})}),"Conducted with:",N.jsxs("span",{style:{marginLeft:"5px"},children:[(Pe=h==null?void 0:h.meetingDetails)==null?void 0:Pe.SCHEDULE_WITH," (",($e=(Ie=h==null?void 0:h.meetingDetails)==null?void 0:Ie.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?$e:"--",")"]})]}),N.jsxs(N.Fragment,{children:[Array.isArray(h==null?void 0:h.meetingRemark)&&((Je=h==null?void 0:h.meetingRemark)==null?void 0:Je.map((We,Qe)=>{var et,It,Wt;return N.jsx(N.Fragment,{children:((We==null?void 0:We.DISPLAY_VISIBLE_TO)==="Visible to me"&&!F(Jo==null?void 0:Jo.SHEDULE_WITH)||(We==null?void 0:We.DISPLAY_VISIBLE_TO)==="Visible to All")&&N.jsx("div",{className:cc.remarks__meeting,children:N.jsxs("div",{style:{marginBottom:"20px"},children:[N.jsxs("h4",{children:["Remarks",F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsxs("span",{children:[N.jsx(Pme,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(We==null?void 0:We.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),N.jsx("p",{children:We==null?void 0:We.TEXT}),N.jsx("div",{className:"images__structure",children:(We==null?void 0:We.REMARK_ATTACHMENTS)&&((et=We==null?void 0:We.REMARK_ATTACHMENTS)==null?void 0:et.map(bt=>N.jsx(N.Fragment,{children:(bt==null?void 0:bt.FILE_TYPE)==="pdf"||(bt==null?void 0:bt.FILE_TYPE)==="xls"?N.jsxs(pt,{className:"pdfView__preview",children:[N.jsx(pt,{mr:1,display:"flex",alignItems:"center",children:(bt==null?void 0:bt.FILE_TYPE)==="pdf"?N.jsx(fht,{size:18}):N.jsx(m8,{style:{width:"30px"}})}),N.jsxs(pt,{children:[N.jsx("p",{children:N.jsx(My,{data:bt==null?void 0:bt.FILE_NAME,limit:20})}),N.jsx("div",{className:cc.previeww__color,onClick:()=>f(`${a}/${bt==null?void 0:bt.FILE_PATH}`),children:"Preview"})]})]}):null})))}),N.jsx("div",{className:"images__structure",children:(We==null?void 0:We.REMARK_ATTACHMENTS)&&((It=We==null?void 0:We.REMARK_ATTACHMENTS)==null?void 0:It.map(bt=>N.jsx(N.Fragment,{children:(bt==null?void 0:bt.FILE_TYPE)==="png"||(bt==null?void 0:bt.FILE_TYPE)==="jpeg"||(bt==null?void 0:bt.FILE_TYPE)==="webp"||(bt==null?void 0:bt.FILE_TYPE)==="jpg"?N.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>d(`${a}/${bt==null?void 0:bt.FILE_PATH}`),alt:"",src:`${a}/${bt==null?void 0:bt.FILE_PATH}`,width:200}):null})))}),N.jsxs("div",{className:cc.comment__users__meeting,children:[N.jsx(Ll,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((Wt=We==null?void 0:We.remark_auther)==null?void 0:Wt.profileSrc)||`https://robohash.org/${We==null?void 0:We.CREATED_BY}`}),We==null?void 0:We.CREATED_BY," ",N.jsx("span",{children:We==null?void 0:We.CREATED_DATE}),N.jsx("span",{children:We==null?void 0:We.CREATED_TIME})]})]})},Qe)})})),F(Jo==null?void 0:Jo.SHEDULE_BY_WITH)&&N.jsxs("div",{className:cc.editor__remarks,children:[N.jsx(sa,{control:C,name:"TEXT",render:({field:{value:We,onChange:Qe,onBlur:et}})=>N.jsx(Nyt,{placeholder:"Type your remarks",value:We,onChange:It=>Qe(It.target.value),onBlur:et})}),N.jsx(pt,{className:"main__upload__box",mx:2,children:D==null?void 0:D.map((We,Qe)=>N.jsxs(pt,{className:"all__upload__images",children:[N.jsx("img",{src:URL.createObjectURL(We),height:"200",alt:"upload"}),N.jsx("button",{onClick:()=>_(Qe),children:N.jsx(zv,{style:{width:"20px",height:"20px"}})})]},We))}),N.jsx(pt,{className:"main__upload__box",mx:2,children:A==null?void 0:A.map((We,Qe)=>N.jsxs(pt,{className:"pdfView__preview",children:[N.jsx(pt,{style:{marginRight:"10px"},children:N.jsx("p",{children:N.jsx(v8,{size:22,color:"red"})})}),N.jsx(pt,{children:N.jsx("p",{children:N.jsx(My,{data:We==null?void 0:We.name,limit:20})})}),N.jsx("button",{onClick:()=>P(Qe),children:N.jsx(zv,{style:{width:"20px",height:"20px"}})})]}))}),N.jsxs("div",{className:cc.editor__bottom,children:[N.jsxs(pt,{display:"flex",gap:1,children:[N.jsxs("label",{style:{cursor:"pointer"},children:[N.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:z,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),N.jsx("span",{children:N.jsx(x8,{})})]}),N.jsxs("label",{style:{cursor:"pointer"},children:[N.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:$,disabled:(A==null?void 0:A.length)>10,style:{display:"none"}}),N.jsx("span",{children:N.jsx(_me,{})})]})]}),N.jsxs("div",{className:"start-flex",children:[F(Jo==null?void 0:Jo.SHEDULE_BY)&&N.jsx(sa,{control:C,name:"VISIBLE_TO",render:({field:{value:We,onChange:Qe}})=>N.jsx(uN,{style:{marginRight:"20px"},control:N.jsx(gN,{checked:!!We}),label:"Show to employee",labelPlacement:"start",onChange:(et,It)=>(Qe(+It),et)})}),N.jsx(fme,{onClick:G,disabled:!R||(R==null?void 0:R.length)===0,sx:{backgroundColor:l==null?void 0:l.PRODUCT_THEME_COLOR,height:"40px"},color:"secondary",label:"send"})]})]})]})]})]})}),N.jsx(Dyt,{meetingId:r,setMeetingId:o}),N.jsx(c,{}),N.jsx(p,{})]})},Fyt=Hn.object({MEETING_TITLE:Hn.string({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:Hn.string().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:Hn.number({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:Hn.string().default(jt().format("YYYY-MM-DD")),START_TIME:Hn.string().default(jt().format("HH:mm")),DURATION:Hn.string({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:Hn.number().default(1),MEDIUM_ALIAS:Hn.string().optional(),EVENT_UID:Hn.string().optional()}),Lyt="https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",Byt=({onSuccess:e,onError:n})=>bN({flow:"implicit",scope:Lyt,onSuccess:e,onError:n}),Oge=e=>{var z,$,G;const{open:n,setOpen:t,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=Zl(),c=Ha(H=>H.session.user),d=As(H=>H.pushAlert),{ONE_TO_ONE_TYPES:p,ONE_TO_ONE_MEDIUM_TYPES:f}=Xm("en"),{mutate:m,isLoading:h}=wa(Bl,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),d({message:"Meeting has been scheduled successfully!",type:"success"}),M(),t(!1)},onError:H=>{var Z;d({message:((Z=H==null?void 0:H.response)==null?void 0:Z.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:g}=wa(yD,"cancelVirtualMeetLink"),{mutate:v,isLoading:y}=wa(Bl,"generateGoogleMeetLink",{onSuccess:({data:{message:H,data:Z}})=>{d({message:H||"Meeting Link has been generated successfully!",type:"success"}),T("MEDIUM",2),T("EVENT_UID",Z==null?void 0:Z.id),T("MEDIUM_ALIAS",Z==null?void 0:Z.hangoutLink)},onError:H=>{var Z;d({message:((Z=H==null?void 0:H.response)==null?void 0:Z.data.message)||"Error, while scheduleing the meeting link!",type:"error"})}}),{control:w,formState:{errors:x},trigger:C,watch:b,handleSubmit:E,setValue:T,reset:M,getValues:_}=xm({resolver:Fy(Fyt),mode:"onChange",values:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:jt().format("HH:mm"),DATE:jt().format("YYYY-MM-DD")}}),[k,P]=b(["MEDIUM","DESCRIPTION"]),R=H=>{E(Z=>{const se=Z,{MEDIUM:X,MEDIUM_ALIAS:K,START_TIME:J,DURATION:U}=se,Q=Io(se,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]);let re={};if(X===2){const ve=nr.getOAuthToken()||H;if(!ve)return A();re={access_token:ve}}const{hours:ce,minutes:de,seconds:ge}=nr.convertTime(`00:${U}:00`);re=he(he({MEDIUM:X,DURATION:`${ce}:${de}:${ge}`,START_TIME:`${J}:00`,[f==null?void 0:f[X].COLUMN_NAME]:K},Q),re),m({data:re,url:dr.ONE_TO_ONE.CREATE})})()},A=Byt({onSuccess:({access_token:H,expires_in:Z})=>(nr.setOAuthToken({access_token:H,expires_in:Z,generated_on:new Date}),R(H)),onError:()=>{d({type:"error",message:"Error! while generating meeting link, please choose another medium!"})}}),D=H=>Br(exports,null,function*(){if(!(yield C()))return;let de=_(),{START_TIME:Z,DURATION:X}=de,K=Io(de,["START_TIME","DURATION"]);const{hours:J,minutes:U,seconds:Q}=nr.convertTime(`00:${X}:00`);let re=nr.getOAuthToken()||H;if(!re)return A();let ce=he({DURATION:`${J}:${U}:${Q}`,START_TIME:`${Z}:00`,access_token:re},K);v({url:dr.ONE_TO_ONE.VIRTUAL.CREATE,data:ce})}),F=()=>{const H=_("EVENT_UID");if(H){let Z=nr.getOAuthToken();g({url:dr.ONE_TO_ONE.VIRTUAL.CANCEL,data:{EVENT_UID:H,access_token:Z}})}M(),t(!1)};return $d(h||y),N.jsx(f2,{title:N.jsxs(pt,{display:"flex",flexDirection:"row",alignItems:"center",children:[N.jsx(Ew,{children:N.jsx(k8,{color:"primary",sx:{color:c==null?void 0:c.PRODUCT_THEME_COLOR,fontSize:28}})}),N.jsx(jo,{fontSize:20,fontWeight:700,color:"rgb(23, 43, 77)",children:"Schedule One To One"})]}),open:n,onModalclose:F,size:"md",children:N.jsxs(pt,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[N.jsxs(pt,{display:"flex",gap:2,mb:1,children:[N.jsx(jo,{mt:1,fontSize:14,children:"Schedule With"}),r?N.jsxs("div",{className:"avatar_container",children:[N.jsx(Ll,{sx:{height:30,width:30},src:(z=r==null?void 0:r[`${s}`])!=null?z:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),N.jsxs("span",{children:[($=r==null?void 0:r[`${o}`])!=null?$:"--"," ",(G=r==null?void 0:r[`${a}`])!=null?G:"--"]})]}):N.jsxs(pt,{children:[N.jsx(Iv,{searchKey:"search",endpoint:dr.EMPLOYEE.SEARCH,reqParams:{search_for:"appreciation",search:""},optionValue:"EMPLOYEE_ID",optionTitleFn:H=>`${(H==null?void 0:H.EMPLOYEE_NAME)||"--"} (${H.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:({value:H})=>T("SCHEDULE_WITH",H),isClearable:!1}),!!(x!=null&&x.SCHEDULE_WITH)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.SCHEDULE_WITH.message})]})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(sa,{name:"MEETING_TITLE",control:w,render:({field:H})=>N.jsxs(pt,{children:[N.jsx(cd,he({label:"Meeting Title",required:!0,size:"small",sx:{width:1}},H)),!!(x!=null&&x.MEETING_TITLE)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.MEETING_TITLE.message})]})]})}),N.jsx(sa,{name:"DESCRIPTION",control:w,render:({field:H})=>N.jsxs(pt,{display:"flex",flexDirection:"column",children:[N.jsx(cd,he({label:"Description",size:"small",multiline:!0,minRows:3},H)),N.jsxs("div",{className:"mt-10",children:[!!(x!=null&&x.DESCRIPTION)&&N.jsxs("div",{className:"form_error",style:{float:"left",marginTop:0},children:[N.jsx(Wa,{}),N.jsx("p",{children:x.DESCRIPTION.message})]}),N.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(P==null?void 0:P.length)||0,"/150"]})]})]})})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:2,children:[N.jsx(jo,{fontSize:14,children:"Choose Date & Time"}),N.jsx(sa,{name:"DATE",control:w,render:({field:H})=>N.jsx("input",he({className:"input-date",type:"date"},H))}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"START_TIME",control:w,render:({field:H})=>N.jsx("input",he({className:"input-date",type:"time",style:{flex:1}},H))}),N.jsx(sa,{name:"DURATION",control:w,render:({field:H})=>N.jsxs(pt,{display:"flex",flexDirection:"column",flex:1,children:[N.jsx(cd,he({label:"Duration in minutes",required:!0,size:"small",type:"number",variant:"outlined"},H)),!!(x!=null&&x.DURATION)&&N.jsxs("div",{className:"form_error",children:[N.jsx(Wa,{}),N.jsx("p",{children:x.DURATION.message})]})]})})]})]}),N.jsxs(pt,{display:"flex",flexDirection:"column",gap:1,children:[N.jsx(jo,{fontSize:14,children:"Choose Medium"}),N.jsxs(pt,{display:"flex",gap:1,children:[N.jsx(sa,{name:"MEDIUM",control:w,render:({field:{value:H,onChange:Z}})=>N.jsx(N.Fragment,{children:N.jsx(Mw,{sx:{width:1},size:"small",value:H,onChange:({target:{value:X}})=>{X===2?D():Z(X)},children:p.map((X,K)=>N.jsx(pN,{value:X.value,children:X.label},K))})})}),N.jsx(sa,{name:"MEDIUM_ALIAS",control:w,render:({field:{name:H,value:Z,onChange:X}})=>{var K;return N.jsx(N.Fragment,{children:N.jsx(cd,{label:(K=f==null?void 0:f[k])==null?void 0:K.LABEL,name:H,sx:{width:1},value:Z,onChange:X,disabled:k===2,size:"small",variant:"outlined"})})}})]})]}),N.jsxs(pt,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[N.jsx(Mi,{label:"CANCEL",variant:"outlined",onClick:F}),N.jsx(Mi,{label:"SUBMIT",onClick:()=>R()})]})]})})},Vyt="_one__to__one__card_ec5u0_1",zyt="_one__to__one__card__top_ec5u0_11",Wyt="_one__to__one__icon_ec5u0_17",$yt="_face__to__face_ec5u0_58",Gyt="_one__to__one__reschedule_ec5u0_73",Hyt="_one__to__one__cancel_ec5u0_85",hh={one__to__one__card:Vyt,one__to__one__card__top:zyt,one__to__one__icon:Wyt,face__to__face:$yt,one__to__one__reschedule:Gyt,one__to__one__cancel:Hyt},Yyt=e=>{const{CONCERN:n="self",employee_id:t}=e,r=Zl(),{user:o,token:i}=Ha(A=>A.session),a=As(A=>A.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:c}=Xm("en"),[d,p]=V.useState(void 0),[f,m]=V.useState(void 0),[h,g]=V.useState(void 0),[v,y]=V.useState(!1),[{ONE_TO_ONE_TYPE:w,MONTH_FILTER:x,MEETING_STATUS:C,SEARCH_QUERY:b},E]=V.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:c[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:T,isFetching:M}=$a(Bl,{url:dr.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:w,MEETING_STATUS:C.value,MONTH_FILTER:x==null?void 0:x.value,SEARCH_QUERY:b,CONCERN:n,employee_id:t}},"fetchOneToOne"),{mutate:_,isLoading:k}=wa(Bl,"cancelOneToOne",{onSuccess:()=>{r.invalidateQueries("fetchOneToOne"),a({message:"Meeting has been canceled successfully!",type:"success"})},onError:A=>{var D,F;a({message:((F=(D=A==null?void 0:A.response)==null?void 0:D.data)==null?void 0:F.message)||"Error! while canceling the meeting!",type:"error"})}});V.useEffect(()=>{d&&R()},[d]);const P=bN({flow:"implicit",scope:"https://www.googleapis.com/auth/calendar https://www.google.com/calendar/feeds/ https://www.google.com/calendar/feeds http://www.google.com/calendar/feeds/default/allcalendars/full https://www.google.com/calendar/feeds/default/owncalendars/full http://www.google.com/calendar/feeds/ http://www.google.com/calendar/feeds https://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/private/full http://www.google.com/calendar/feeds/default/owncalendars/full/ https://www.google.com/calendar/feeds/default https://www.google.com/calendar/freebusy https://www.googleapis.com/auth/calendar.app.created https://www.googleapis.com/auth/calendar.events https://www.googleapis.com/auth/calendar.events.owned",onSuccess:({access_token:A,expires_in:D})=>{nr.setOAuthToken({access_token:A,expires_in:D,generated_on:new Date}),R(A)}}),R=A=>{const{ID:D,MEDIUM_ID:F}=d;let z={MEETING_ID:D,MEETING_STATUS:Rme.CANCELED};if(F===2){const $=nr.getOAuthToken()||A;if(!$)return P();z=Ue(he({},z),{access_token:$})}_({token:A,data:z,url:dr.ONE_TO_ONE.UPDATE})};return $d(M||k),N.jsxs(N.Fragment,{children:[N.jsxs(pt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[N.jsxs("div",{className:"flex-between-center g-10",children:[N.jsxs(pt,{display:"flex",gap:2,flexDirection:"row",children:[N.jsx(i0,{placeholder:"Search",debounceDelay:500,getSearch:A=>E(D=>Ue(he({},D),{SEARCH_QUERY:A})),styleOverrides:{margin:0,width:200,height:40}}),N.jsx("div",{style:{width:200},children:N.jsx(Iy,{value:x,options:l,placeholder:"Month",onChange:A=>E(D=>Ue(he({},D),{MONTH_FILTER:A})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:A=>Ue(he({},A),{zIndex:99999999999,width:"200px"}),control:A=>Ue(he({},A),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),N.jsx("div",{style:{width:200},children:N.jsx(Iy,{value:C,options:c,placeholder:"Month",onChange:A=>E(D=>Ue(he({},D),{MEETING_STATUS:A})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:A=>Ue(he({},A),{zIndex:99999999999,width:"200px"}),control:A=>Ue(he({},A),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),N.jsxs("div",{className:"flex-end-center g-10",children:[N.jsx(xN,{items:s,value:w,onChangeTab:(A,D)=>E(F=>Ue(he({},F),{ONE_TO_ONE_TYPE:D}))}),!t&&N.jsx(Mi,{label:"SCHEDULE ONE TO ONE",onClick:()=>y(!0),disableElevation:!0})]})]}),N.jsx(pt,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(T==null?void 0:T.length)>0?T.map((A,D)=>N.jsxs(pt,{className:hh.one__to__one__card,children:[N.jsxs("div",{className:hh.one__to__one__card__top,children:[N.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>m(A==null?void 0:A.ID),children:[N.jsx("div",{className:hh.one__to__one__icon,children:N.jsx(Ame,{})}),N.jsxs("h3",{children:[A==null?void 0:A.MEETING_TITLE," ",N.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})]})]}),N.jsx("div",{className:"flex-start-center g-10",children:N.jsx("div",{className:hh.face__to__face,children:A==null?void 0:A.MEDIUM})})]}),N.jsxs(pt,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[N.jsxs("div",{className:"one__icons__bottom",children:[N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(mM,{})}),A==null?void 0:A.DATE]}),N.jsxs("p",{children:[N.jsx("span",{children:N.jsx(O8,{})})," ",A==null?void 0:A.START_TIME," - ",A==null?void 0:A.END_TIME]}),N.jsxs("p",{children:[N.jsx("span",{style:{marginRight:"5px"},children:"Schedule By:"}),A==null?void 0:A.SCHEDULE_BY]}),N.jsxs("p",{children:[N.jsx("span",{style:{marginRight:"5px"},children:"Schedule With:"}),A==null?void 0:A.SCHEDULE_WITH]})]}),N.jsx(pt,{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"?N.jsx("span",{className:hh.one__to__one__reschedule,onClick:()=>m(A==null?void 0:A.ID),children:"Add Remarks"}):N.jsxs(N.Fragment,{children:[N.jsx("span",{className:hh.one__to__one__reschedule,onClick:()=>g(A==null?void 0:A.ID),children:"Reschedule"}),N.jsx("span",{className:hh.one__to__one__cancel,onClick:()=>p(A),children:"Cancel"})]}))})]})]},D)):N.jsx(kp,{message:"No One to One's found"})})]}),N.jsx(jyt,{meetingId:f,setMeetingId:m,openReScheduleModalMeetingId:h,setReScheduleModalMeetingId:g}),N.jsx(Oge,{open:v,setOpen:y})]})};exports.AppreciationList=zpt;exports.AppreciationModal=xme;exports.BadgeMaster=Hpt;exports.ContinuousFeedbackList=oht;exports.ContinuousFeedbackModal=Mme;exports.EngageProvider=IIe;exports.FeedbackConfigration=Sft;exports.FeedbackDashBoard=Cft;exports.OneToOneList=Yyt;exports.OneToOneModal=Oge;exports.SkillsMaster=Xpt;
package/dist/main.js CHANGED
@@ -83122,7 +83122,7 @@ const Gyt = qn.object({
83122
83122
  ), N.jsxs("span", { children: [(C = s == null ? void 0 : s.meetingDetails.SCHEDULE_WITH) != null ? C : "--", " (", (b = s == null ? void 0 : s.meetingDetails.SCHEDULE_BY_EMPLOYEE_CODE) != null ? b : "--", ")"] })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 2, children: [N.jsx(yd, { label: "Meeting Title", value: (s == null ? void 0 : s.meetingDetails.TITLE) || "", required: !0, disabled: !0, size: "small", sx: { width: 1 } }), N.jsx(yd, { label: "Description", value: (s == null ? void 0 : s.meetingDetails.DESCRIPTION) || "", size: "small", disabled: !0, multiline: !0, minRows: 3 })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 2, children: [N.jsx(zo, { fontSize: 14, children: "Choose Date & Time" }), N.jsx(pa, { name: "DATE", control: f, render: ({ field: _ }) => N.jsx("input", he({ className: "input-date", type: "date" }, _)) }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(pa, { name: "START_TIME", control: f, render: ({ field: _ }) => N.jsx("input", he({ className: "input-date", type: "time", style: { flex: 1 } }, _)) }), N.jsx(pa, { name: "DURATION", control: f, render: (P) => {
83123
83123
  var { field: R } = P, A = R, { value: _ } = A, k = Ro(A, ["value"]);
83124
83124
  return N.jsxs(pt, { display: "flex", flexDirection: "column", flex: 1, children: [N.jsx(yd, he({ label: "Duration in minutes", required: !0, size: "small", type: "number", variant: "outlined", value: _ || "" }, k)), !!(m != null && m.DURATION) && N.jsxs("div", { className: "form_error", children: [N.jsx(Ua, {}), N.jsx("p", { children: m.DURATION.message })] })] });
83125
- } })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 1, children: [N.jsx(zo, { fontSize: 14, children: "Choose Medium" }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(zw, { value: (s == null ? void 0 : s.meetingDetails.MEDIUM_ID) || 0, disabled: !0, sx: { width: 1 }, size: "small", children: i.map((_, k) => N.jsx(MN, { value: k + 1, children: _.label }, k)) }), N.jsx(yd, { label: (O = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : O.LABEL, sx: { width: 1 }, value: ((M = s == null ? void 0 : s.meetingDetails) == null ? void 0 : M[(T = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : T.COLUMN_NAME]) || "", disabled: !0, size: "small", variant: "outlined" })] })] }), N.jsxs(pt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(Di, { label: "CANCEL", variant: "outlined", onClick: w }), N.jsx(Di, { label: "SUBMIT", color: "secondary", onClick: () => v() })] })] }) })] });
83125
+ } })] })] }), N.jsxs(pt, { display: "flex", flexDirection: "column", gap: 1, children: [N.jsx(zo, { fontSize: 14, children: "Choose Medium" }), N.jsxs(pt, { display: "flex", gap: 1, children: [N.jsx(zw, { value: (s == null ? void 0 : s.meetingDetails.MEDIUM_ID) || 0, disabled: !0, sx: { width: 1 }, size: "small", children: i.map((_, k) => N.jsx(MN, { value: _.value, children: _.label }, k)) }), N.jsx(yd, { label: (O = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : O.LABEL, sx: { width: 1 }, value: ((M = s == null ? void 0 : s.meetingDetails) == null ? void 0 : M[(T = a == null ? void 0 : a[s == null ? void 0 : s.meetingDetails.MEDIUM_ID]) == null ? void 0 : T.COLUMN_NAME]) || "", disabled: !0, size: "small", variant: "outlined" })] })] }), N.jsxs(pt, { marginTop: 2, display: "flex", justifyContent: "flex-end", gap: 2, children: [N.jsx(Di, { label: "CANCEL", variant: "outlined", onClick: w }), N.jsx(Di, { label: "SUBMIT", color: "secondary", onClick: () => v() })] })] }) })] });
83126
83126
  }, Yyt = Nt(yN)(() => "width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"), Xyt = (e) => {
83127
83127
  var X, Y, J, q, Z, K, re, ce, de, ge, se, ve, ne, Ce, le, fe, Me, Te, ee, te, oe, Se, Oe, Re, je, Ae, Le, Ge, we, ae, ke, Be, ye, Pe, Ie, $e, Je;
83128
83128
  const { meetingId: n, setMeetingId: t, openReScheduleModalMeetingId: r, setReScheduleModalMeetingId: o } = e, i = tc(), a = Ka((We) => We.session.ASSETS_BASE_URL), s = js((We) => We.pushAlert), { session: { user: l } } = Ka(), { ImageViewer: c, setImageURL: d } = vF(), { PdfViewer: p, setPdfURL: f } = zme(), { ONE_TO_ONE_MEDIUM_TYPES: m } = ig("en"), { data: h, isFetching: g } = qa(al, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.0.58-pms",
4
+ "version": "0.0.59-pms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },