@zimyo/engage 0.3.7-hrms → 0.3.8-hrms

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs CHANGED
@@ -2869,7 +2869,7 @@ var Hge;function wt(){return Hge.apply(null,arguments)}function c3t(e){Hge=e}fun
2869
2869
  [`+i+"] ";for(a in arguments[0])Lr(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}Gge(e+`
2870
2870
  Arguments: `+Array.prototype.slice.call(r).join("")+`
2871
2871
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var RQ={};function Yge(e,t){wt.deprecationHandler!=null&&wt.deprecationHandler(e,t),RQ[e]||(Gge(t),RQ[e]=!0)}wt.suppressDeprecationWarnings=!1;wt.deprecationHandler=null;function qu(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function d3t(e){var t,n;for(n in e)Lr(e,n)&&(t=e[n],qu(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mP(e,t){var n=Zf({},e),r;for(r in t)Lr(t,r)&&(vm(e[r])&&vm(t[r])?(n[r]={},Zf(n[r],e[r]),Zf(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Lr(e,r)&&!Lr(t,r)&&vm(e[r])&&(n[r]=Zf({},n[r]));return n}function gN(e){e!=null&&this.set(e)}var gP;Object.keys?gP=Object.keys:gP=function(e){var t,n=[];for(t in e)Lr(e,t)&&n.push(t);return n};var f3t={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function p3t(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return qu(r)?r.call(t,n):r}function $u(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var vN=/(\[[^\[]*\])|(\\)?([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,w5=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,vM={},n0={};function fn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(n0[e]=o),t&&(n0[t[0]]=function(){return $u(o.apply(this,arguments),t[1],t[2])}),n&&(n0[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function h3t(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function m3t(e){var t=e.match(vN),n,r;for(n=0,r=t.length;n<r;n++)n0[t[n]]?t[n]=n0[t[n]]:t[n]=h3t(t[n]);return function(o){var i="",a;for(a=0;a<r;a++)i+=qu(t[a])?t[a].call(o,e):t[a];return i}}function xS(e,t){return e.isValid()?(t=Uge(t,e.localeData()),vM[t]=vM[t]||m3t(t),vM[t](e)):e.localeData().invalidDate()}function Uge(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(w5.lastIndex=0;n>=0&&w5.test(e);)e=e.replace(w5,r),w5.lastIndex=0,n-=1;return e}var g3t={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 v3t(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(vN).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var b3t="Invalid date";function y3t(){return this._invalidDate}var x3t="%d",w3t=/\d{1,2}/;function C3t(e){return this._ordinal.replace("%d",e)}var _3t={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 S3t(e,t,n,r){var o=this._relativeTime[n];return qu(o)?o(e,t,n,r):o.replace(/%d/i,e)}function T3t(e,t){var n=this._relativeTime[e>0?"future":"past"];return qu(n)?n(t):n.replace(/%s/i,t)}var LQ={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 dc(e){return typeof e=="string"?LQ[e]||LQ[e.toLowerCase()]:void 0}function bN(e){var t={},n,r;for(r in e)Lr(e,r)&&(n=dc(r),n&&(t[n]=e[r]));return t}var E3t={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 k3t(e){var t=[],n;for(n in e)Lr(e,n)&&t.push({unit:n,priority:E3t[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var qge=/\d/,Cl=/\d\d/,Xge=/\d{3}/,yN=/\d{4}/,M3=/[+-]?\d{6}/,No=/\d\d?/,Zge=/\d\d\d\d?/,Jge=/\d\d\d\d\d\d?/,j3=/\d{1,3}/,xN=/\d{1,4}/,D3=/[+-]?\d{1,6}/,kb=/\d+/,P3=/[+-]?\d+/,I3t=/Z|[+-]\d\d:?\d\d/gi,R3=/Z|[+-]\d\d(?::?\d\d)?/gi,A3t=/[+-]?\d+(\.\d{1,3})?/,Dw=/[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,Ib=/^[1-9]\d?/,wN=/^([1-9]\d|\d)/,kT;kT={};function Zt(e,t,n){kT[e]=qu(t)?t:function(r,o){return r&&n?n:t}}function O3t(e,t){return Lr(kT,e)?kT[e](t._strict,t._locale):new RegExp(M3t(e))}function M3t(e){return $d(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function $d(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Bl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function hr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Bl(t)),n}var vP={};function ho(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Jd(t)&&(r=function(i,a){a[t]=hr(i)}),o=e.length,n=0;n<o;n++)vP[e[n]]=r}function Pw(e,t){ho(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function j3t(e,t,n){t!=null&&Lr(vP,e)&&vP[e](t,n._a,n,e)}function L3(e){return e%4===0&&e%100!==0||e%400===0}var Ba=0,Ad=1,mu=2,Ui=3,Oc=4,Od=5,Zh=6,D3t=7,P3t=8;fn("Y",0,0,function(){var e=this.year();return e<=9999?$u(e,4):"+"+e});fn(0,["YY",2],0,function(){return this.year()%100});fn(0,["YYYY",4],0,"year");fn(0,["YYYYY",5],0,"year");fn(0,["YYYYYY",6,!0],0,"year");Zt("Y",P3);Zt("YY",No,Cl);Zt("YYYY",xN,yN);Zt("YYYYY",D3,M3);Zt("YYYYYY",D3,M3);ho(["YYYYY","YYYYYY"],Ba);ho("YYYY",function(e,t){t[Ba]=e.length===2?wt.parseTwoDigitYear(e):hr(e)});ho("YY",function(e,t){t[Ba]=wt.parseTwoDigitYear(e)});ho("Y",function(e,t){t[Ba]=parseInt(e,10)});function Z1(e){return L3(e)?366:365}wt.parseTwoDigitYear=function(e){return hr(e)+(hr(e)>68?1900:2e3)};var Kge=Ab("FullYear",!0);function R3t(){return L3(this.year())}function Ab(e,t){return function(n){return n!=null?(Qge(this,e,n),wt.updateOffset(this,t),this):u2(this,e)}}function u2(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qge(e,t,n){var r,o,i,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!L3(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function L3t(e){return e=dc(e),qu(this[e])?this[e]():this}function F3t(e,t){if(typeof e=="object"){e=bN(e);var n=k3t(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=dc(e),qu(this[e]))return this[e](t);return this}function N3t(e,t){return(e%t+t)%t}var _i;Array.prototype.indexOf?_i=Array.prototype.indexOf:_i=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function CN(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=N3t(t,12);return e+=(t-n)/12,n===1?L3(e)?29:28:31-n%7%2}fn("M",["MM",2],"Mo",function(){return this.month()+1});fn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});fn("MMMM",0,0,function(e){return this.localeData().months(this,e)});Zt("M",No,Ib);Zt("MM",No,Cl);Zt("MMM",function(e,t){return t.monthsShortRegex(e)});Zt("MMMM",function(e,t){return t.monthsRegex(e)});ho(["M","MM"],function(e,t){t[Ad]=hr(e)-1});ho(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[Ad]=o:Un(n).invalidMonth=e});var $3t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),eve="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,z3t=Dw,B3t=Dw;function V3t(e,t){return e?Gc(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||tve).test(t)?"format":"standalone"][e.month()]:Gc(this._months)?this._months:this._months.standalone}function H3t(e,t){return e?Gc(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[tve.test(t)?"format":"standalone"][e.month()]:Gc(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function W3t(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Uu([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=_i.call(this._shortMonthsParse,a),o!==-1?o:null):(o=_i.call(this._longMonthsParse,a),o!==-1?o:null):t==="MMM"?(o=_i.call(this._shortMonthsParse,a),o!==-1?o:(o=_i.call(this._longMonthsParse,a),o!==-1?o:null)):(o=_i.call(this._longMonthsParse,a),o!==-1?o:(o=_i.call(this._shortMonthsParse,a),o!==-1?o:null))}function G3t(e,t,n){var r,o,i;if(this._monthsParseExact)return W3t.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Uu([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function nve(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=hr(t);else if(t=e.localeData().monthsParse(t),!Jd(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,CN(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function rve(e){return e!=null?(nve(this,e),wt.updateOffset(this,!0),this):u2(this,"Month")}function Y3t(){return CN(this.year(),this.month())}function U3t(e){return this._monthsParseExact?(Lr(this,"_monthsRegex")||ove.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Lr(this,"_monthsShortRegex")||(this._monthsShortRegex=z3t),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function q3t(e){return this._monthsParseExact?(Lr(this,"_monthsRegex")||ove.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Lr(this,"_monthsRegex")||(this._monthsRegex=B3t),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ove(){function e(l,u){return u.length-l.length}var t=[],n=[],r=[],o,i,a,s;for(o=0;o<12;o++)i=Uu([2e3,o]),a=$d(this.monthsShort(i,"")),s=$d(this.months(i,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function X3t(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function d2(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function IT(e,t,n){var r=7+t-n,o=(7+d2(e,0,r).getUTCDay()-t)%7;return-o+r-1}function ive(e,t,n,r,o){var i=(7+n-r)%7,a=IT(e,r,o),s=1+7*(t-1)+i+a,l,u;return s<=0?(l=e-1,u=Z1(l)+s):s>Z1(e)?(l=e+1,u=s-Z1(e)):(l=e,u=s),{year:l,dayOfYear:u}}function f2(e,t,n){var r=IT(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+zd(a,t,n)):o>zd(e.year(),t,n)?(i=o-zd(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function zd(e,t,n){var r=IT(e,t,n),o=IT(e+1,t,n);return(Z1(e)-r+o)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Zt("w",No,Ib);Zt("ww",No,Cl);Zt("W",No,Ib);Zt("WW",No,Cl);Pw(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=hr(e)});function Z3t(e){return f2(e,this._week.dow,this._week.doy).week}var J3t={dow:0,doy:6};function K3t(){return this._week.dow}function Q3t(){return this._week.doy}function eIt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function tIt(e){var t=f2(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}fn("d",0,"do","day");fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});fn("e",0,0,"weekday");fn("E",0,0,"isoWeekday");Zt("d",No);Zt("e",No);Zt("E",No);Zt("dd",function(e,t){return t.weekdaysMinRegex(e)});Zt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Zt("dddd",function(e,t){return t.weekdaysRegex(e)});Pw(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Un(n).invalidWeekday=e});Pw(["d","e","E"],function(e,t,n,r){t[r]=hr(e)});function nIt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function rIt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _N(e,t){return e.slice(t,7).concat(e.slice(0,t))}var oIt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ave="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iIt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),aIt=Dw,sIt=Dw,lIt=Dw;function cIt(e,t){var n=Gc(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?_N(n,this._week.dow):e?n[e.day()]:n}function uIt(e){return e===!0?_N(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function dIt(e){return e===!0?_N(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function fIt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Uu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=_i.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=_i.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=_i.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=_i.call(this._weekdaysParse,a),o!==-1||(o=_i.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=_i.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=_i.call(this._shortWeekdaysParse,a),o!==-1||(o=_i.call(this._weekdaysParse,a),o!==-1)?o:(o=_i.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=_i.call(this._minWeekdaysParse,a),o!==-1||(o=_i.call(this._weekdaysParse,a),o!==-1)?o:(o=_i.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function pIt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return fIt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Uu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function hIt(e){if(!this.isValid())return e!=null?this:NaN;var t=u2(this,"Day");return e!=null?(e=nIt(e,this.localeData()),this.add(e-t,"d")):t}function mIt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function gIt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=rIt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function vIt(e){return this._weekdaysParseExact?(Lr(this,"_weekdaysRegex")||SN.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Lr(this,"_weekdaysRegex")||(this._weekdaysRegex=aIt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function bIt(e){return this._weekdaysParseExact?(Lr(this,"_weekdaysRegex")||SN.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Lr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sIt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yIt(e){return this._weekdaysParseExact?(Lr(this,"_weekdaysRegex")||SN.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Lr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=lIt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function SN(){function e(p,g){return g.length-p.length}var t=[],n=[],r=[],o=[],i,a,s,l,u;for(i=0;i<7;i++)a=Uu([2e3,1]).day(i),s=$d(this.weekdaysMin(a,"")),l=$d(this.weekdaysShort(a,"")),u=$d(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),o.push(s),o.push(l),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TN(){return this.hours()%12||12}function xIt(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,TN);fn("k",["kk",2],0,xIt);fn("hmm",0,0,function(){return""+TN.apply(this)+$u(this.minutes(),2)});fn("hmmss",0,0,function(){return""+TN.apply(this)+$u(this.minutes(),2)+$u(this.seconds(),2)});fn("Hmm",0,0,function(){return""+this.hours()+$u(this.minutes(),2)});fn("Hmmss",0,0,function(){return""+this.hours()+$u(this.minutes(),2)+$u(this.seconds(),2)});function sve(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}sve("a",!0);sve("A",!1);function lve(e,t){return t._meridiemParse}Zt("a",lve);Zt("A",lve);Zt("H",No,wN);Zt("h",No,Ib);Zt("k",No,Ib);Zt("HH",No,Cl);Zt("hh",No,Cl);Zt("kk",No,Cl);Zt("hmm",Zge);Zt("hmmss",Jge);Zt("Hmm",Zge);Zt("Hmmss",Jge);ho(["H","HH"],Ui);ho(["k","kk"],function(e,t,n){var r=hr(e);t[Ui]=r===24?0:r});ho(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});ho(["h","hh"],function(e,t,n){t[Ui]=hr(e),Un(n).bigHour=!0});ho("hmm",function(e,t,n){var r=e.length-2;t[Ui]=hr(e.substr(0,r)),t[Oc]=hr(e.substr(r)),Un(n).bigHour=!0});ho("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Ui]=hr(e.substr(0,r)),t[Oc]=hr(e.substr(r,2)),t[Od]=hr(e.substr(o)),Un(n).bigHour=!0});ho("Hmm",function(e,t,n){var r=e.length-2;t[Ui]=hr(e.substr(0,r)),t[Oc]=hr(e.substr(r))});ho("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Ui]=hr(e.substr(0,r)),t[Oc]=hr(e.substr(r,2)),t[Od]=hr(e.substr(o))});function wIt(e){return(e+"").toLowerCase().charAt(0)==="p"}var CIt=/[ap]\.?m?\.?/i,_It=Ab("Hours",!0);function SIt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var cve={calendar:f3t,longDateFormat:g3t,invalidDate:b3t,ordinal:x3t,dayOfMonthOrdinalParse:w3t,relativeTime:_3t,months:$3t,monthsShort:eve,week:J3t,weekdays:oIt,weekdaysMin:iIt,weekdaysShort:ave,meridiemParse:CIt},Ho={},Dy={},p2;function TIt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function FQ(e){return e&&e.toLowerCase().replace("_","-")}function EIt(e){for(var t=0,n,r,o,i;t<e.length;){for(i=FQ(e[t]).split("-"),n=i.length,r=FQ(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=F3(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&TIt(i,r)>=n-1)break;n--}t++}return p2}function kIt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function F3(e){var t=null,n;if(Ho[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&kIt(e))try{t=p2._abbr,n=require,n("./locale/"+e),dp(t)}catch(r){Ho[e]=null}return Ho[e]}function dp(e,t){var n;return e&&(ms(t)?n=rf(e):n=EN(e,t),n?p2=n:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),p2._abbr}function EN(e,t){if(t!==null){var n,r=cve;if(t.abbr=e,Ho[e]!=null)Yge("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=Ho[e]._config;else if(t.parentLocale!=null)if(Ho[t.parentLocale]!=null)r=Ho[t.parentLocale]._config;else if(n=F3(t.parentLocale),n!=null)r=n._config;else return Dy[t.parentLocale]||(Dy[t.parentLocale]=[]),Dy[t.parentLocale].push({name:e,config:t}),null;return Ho[e]=new gN(mP(r,t)),Dy[e]&&Dy[e].forEach(function(o){EN(o.name,o.config)}),dp(e),Ho[e]}else return delete Ho[e],null}function IIt(e,t){if(t!=null){var n,r,o=cve;Ho[e]!=null&&Ho[e].parentLocale!=null?Ho[e].set(mP(Ho[e]._config,t)):(r=F3(e),r!=null&&(o=r._config),t=mP(o,t),r==null&&(t.abbr=e),n=new gN(t),n.parentLocale=Ho[e],Ho[e]=n),dp(e)}else Ho[e]!=null&&(Ho[e].parentLocale!=null?(Ho[e]=Ho[e].parentLocale,e===dp()&&dp(e)):Ho[e]!=null&&delete Ho[e]);return Ho[e]}function rf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return p2;if(!Gc(e)){if(t=F3(e),t)return t;e=[e]}return EIt(e)}function AIt(){return gP(Ho)}function kN(e){var t,n=e._a;return n&&Un(e).overflow===-2&&(t=n[Ad]<0||n[Ad]>11?Ad:n[mu]<1||n[mu]>CN(n[Ba],n[Ad])?mu:n[Ui]<0||n[Ui]>24||n[Ui]===24&&(n[Oc]!==0||n[Od]!==0||n[Zh]!==0)?Ui:n[Oc]<0||n[Oc]>59?Oc:n[Od]<0||n[Od]>59?Od:n[Zh]<0||n[Zh]>999?Zh:-1,Un(e)._overflowDayOfYear&&(t<Ba||t>mu)&&(t=mu),Un(e)._overflowWeeks&&t===-1&&(t=D3t),Un(e)._overflowWeekday&&t===-1&&(t=P3t),Un(e).overflow=t),e}var OIt=/^\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)?)?$/,MIt=/^\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)?)?$/,jIt=/Z|[+-]\d\d(?::?\d\d)?/,C5=[["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]],bM=[["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/]],DIt=/^\/?Date\((-?\d+)/i,PIt=/^(?:(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}))$/,RIt={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 uve(e){var t,n,r=e._i,o=OIt.exec(r)||MIt.exec(r),i,a,s,l,u=C5.length,p=bM.length;if(o){for(Un(e).iso=!0,t=0,n=u;t<n;t++)if(C5[t][1].exec(o[1])){a=C5[t][0],i=C5[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(t=0,n=p;t<n;t++)if(bM[t][1].exec(o[3])){s=(o[2]||" ")+bM[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(o[4])if(jIt.exec(o[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),AN(e)}else e._isValid=!1}function LIt(e,t,n,r,o,i){var a=[FIt(e),eve.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function FIt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function NIt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function $It(e,t,n){if(e){var r=ave.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return Un(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function zIt(e,t,n){if(e)return RIt[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function dve(e){var t=PIt.exec(NIt(e._i)),n;if(t){if(n=LIt(t[4],t[3],t[2],t[5],t[6],t[7]),!$It(t[1],n,e))return;e._a=n,e._tzm=zIt(t[8],t[9],t[10]),e._d=d2.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Un(e).rfc2822=!0}else e._isValid=!1}function BIt(e){var t=DIt.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(uve(e),e._isValid===!1)delete e._isValid;else return;if(dve(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:wt.createFromInputFallback(e)}wt.createFromInputFallback=uc("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 hv(e,t,n){return e!=null?e:t!=null?t:n}function VIt(e){var t=new Date(wt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function IN(e){var t,n,r=[],o,i,a;if(!e._d){for(o=VIt(e),e._w&&e._a[mu]==null&&e._a[Ad]==null&&HIt(e),e._dayOfYear!=null&&(a=hv(e._a[Ba],o[Ba]),(e._dayOfYear>Z1(a)||e._dayOfYear===0)&&(Un(e)._overflowDayOfYear=!0),n=d2(a,0,e._dayOfYear),e._a[Ad]=n.getUTCMonth(),e._a[mu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ui]===24&&e._a[Oc]===0&&e._a[Od]===0&&e._a[Zh]===0&&(e._nextDay=!0,e._a[Ui]=0),e._d=(e._useUTC?d2:X3t).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[Ui]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(Un(e).weekdayMismatch=!0)}}function HIt(e){var t,n,r,o,i,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=hv(t.GG,e._a[Ba],f2(Lo(),1,4).year),r=hv(t.W,1),o=hv(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=f2(Lo(),i,a),n=hv(t.gg,e._a[Ba],u.year),r=hv(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>zd(n,i,a)?Un(e)._overflowWeeks=!0:l!=null?Un(e)._overflowWeekday=!0:(s=ive(n,r,o,i,a),e._a[Ba]=s.year,e._dayOfYear=s.dayOfYear)}wt.ISO_8601=function(){};wt.RFC_2822=function(){};function AN(e){if(e._f===wt.ISO_8601){uve(e);return}if(e._f===wt.RFC_2822){dve(e);return}e._a=[],Un(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,u,p;for(o=Uge(e._f,e._locale).match(vN)||[],p=o.length,n=0;n<p;n++)i=o[n],r=(t.match(O3t(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Un(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),n0[i]?(r?Un(e).empty=!1:Un(e).unusedTokens.push(i),j3t(i,r,e)):e._strict&&!r&&Un(e).unusedTokens.push(i);Un(e).charsLeftOver=s-l,t.length>0&&Un(e).unusedInput.push(t),e._a[Ui]<=12&&Un(e).bigHour===!0&&e._a[Ui]>0&&(Un(e).bigHour=void 0),Un(e).parsedDateParts=e._a.slice(0),Un(e).meridiem=e._meridiem,e._a[Ui]=WIt(e._locale,e._a[Ui],e._meridiem),u=Un(e).era,u!==null&&(e._a[Ba]=e._locale.erasConvertYear(u,e._a[Ba])),IN(e),kN(e)}function WIt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function GIt(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){Un(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<l;o++)i=0,a=!1,t=mN({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],AN(t),hN(t)&&(a=!0),i+=Un(t).charsLeftOver,i+=Un(t).unusedTokens.length*10,Un(t).score=i,s?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(s=!0));Zf(e,n||t)}function YIt(e){if(!e._d){var t=bN(e._i),n=t.day===void 0?t.date:t.day;e._a=Wge([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),IN(e)}}function UIt(e){var t=new jw(kN(fve(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function fve(e){var t=e._i,n=e._f;return e._locale=e._locale||rf(e._l),t===null||n===void 0&&t===""?O3({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Yc(t)?new jw(kN(t)):(Mw(t)?e._d=t:Gc(n)?GIt(e):n?AN(e):qIt(e),hN(e)||(e._d=null),e))}function qIt(e){var t=e._i;ms(t)?e._d=new Date(wt.now()):Mw(t)?e._d=new Date(t.valueOf()):typeof t=="string"?BIt(e):Gc(t)?(e._a=Wge(t.slice(0),function(n){return parseInt(n,10)}),IN(e)):vm(t)?YIt(e):Jd(t)?e._d=new Date(t):wt.createFromInputFallback(e)}function pve(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(vm(e)&&pN(e)||Gc(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,UIt(i)}function Lo(e,t,n,r){return pve(e,t,n,r,!1)}var XIt=uc("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lo.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:O3()}),ZIt=uc("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Lo.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:O3()});function hve(e,t){var n,r;if(t.length===1&&Gc(t[0])&&(t=t[0]),!t.length)return Lo();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function JIt(){var e=[].slice.call(arguments,0);return hve("isBefore",e)}function KIt(){var e=[].slice.call(arguments,0);return hve("isAfter",e)}var QIt=function(){return Date.now?Date.now():+new Date},Py=["year","quarter","month","week","day","hour","minute","second","millisecond"];function eAt(e){var t,n=!1,r,o=Py.length;for(t in e)if(Lr(e,t)&&!(_i.call(Py,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Py[r]]){if(n)return!1;parseFloat(e[Py[r]])!==hr(e[Py[r]])&&(n=!0)}return!0}function tAt(){return this._isValid}function nAt(){return Kc(NaN)}function N3(e){var t=bN(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,p=t.millisecond||0;this._isValid=eAt(t),this._milliseconds=+p+u*1e3+l*6e4+s*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=rf(),this._bubble()}function wS(e){return e instanceof N3}function bP(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function rAt(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)hr(e[a])!==hr(t[a])&&i++;return i+o}function mve(e,t){fn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+$u(~~(n/60),2)+t+$u(~~n%60,2)})}mve("Z",":");mve("ZZ","");Zt("Z",R3);Zt("ZZ",R3);ho(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ON(R3,e)});var oAt=/([\+\-]|\d\d)/gi;function ON(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(oAt)||["-",0,0],i=+(o[1]*60)+hr(o[2]),i===0?0:o[0]==="+"?i:-i)}function MN(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Yc(e)||Mw(e)?e.valueOf():Lo(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),wt.updateOffset(n,!1),n):Lo(e).local()}function yP(e){return-Math.round(e._d.getTimezoneOffset())}wt.updateOffset=function(){};function iAt(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ON(R3,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=yP(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?bve(this,Kc(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,wt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:yP(this)}function aAt(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function sAt(e){return this.utcOffset(0,e)}function lAt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(yP(this),"m")),this}function cAt(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ON(I3t,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function uAt(e){return this.isValid()?(e=e?Lo(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function dAt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fAt(){if(!ms(this._isDSTShifted))return this._isDSTShifted;var e={},t;return mN(e,this),e=fve(e),e._a?(t=e._isUTC?Uu(e._a):Lo(e._a),this._isDSTShifted=this.isValid()&&rAt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pAt(){return this.isValid()?!this._isUTC:!1}function hAt(){return this.isValid()?this._isUTC:!1}function gve(){return this.isValid()?this._isUTC&&this._offset===0:!1}var mAt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,gAt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kc(e,t){var n=e,r=null,o,i,a;return wS(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=mAt.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:hr(r[mu])*o,h:hr(r[Ui])*o,m:hr(r[Oc])*o,s:hr(r[Od])*o,ms:hr(bP(r[Zh]*1e3))*o}):(r=gAt.exec(e))?(o=r[1]==="-"?-1:1,n={y:yh(r[2],o),M:yh(r[3],o),w:yh(r[4],o),d:yh(r[5],o),h:yh(r[6],o),m:yh(r[7],o),s:yh(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=vAt(Lo(n.from),Lo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new N3(n),wS(e)&&Lr(e,"_locale")&&(i._locale=e._locale),wS(e)&&Lr(e,"_isValid")&&(i._isValid=e._isValid),i}Kc.fn=N3.prototype;Kc.invalid=nAt;function yh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function NQ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function vAt(e,t){var n;return e.isValid()&&t.isValid()?(t=MN(t,e),e.isBefore(t)?n=NQ(e,t):(n=NQ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function vve(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(Yge(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=Kc(n,r),bve(this,o,e),this}}function bve(e,t,n,r){var o=t._milliseconds,i=bP(t._days),a=bP(t._months);e.isValid()&&(r=r==null?!0:r,a&&nve(e,u2(e,"Month")+a*n),i&&Qge(e,"Date",u2(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&wt.updateOffset(e,i||a))}var bAt=vve(1,"add"),yAt=vve(-1,"subtract");function yve(e){return typeof e=="string"||e instanceof String}function xAt(e){return Yc(e)||Mw(e)||yve(e)||Jd(e)||CAt(e)||wAt(e)||e===null||e===void 0}function wAt(e){var t=vm(e)&&!pN(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;o<a;o+=1)i=r[o],n=n||Lr(e,i);return t&&n}function CAt(e){var t=Gc(e),n=!1;return t&&(n=e.filter(function(r){return!Jd(r)&&yve(e)}).length===0),t&&n}function _At(e){var t=vm(e)&&!pN(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||Lr(e,i);return t&&n}function SAt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function TAt(e,t){arguments.length===1&&(arguments[0]?xAt(arguments[0])?(e=arguments[0],t=void 0):_At(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Lo(),r=MN(n,this).startOf("day"),o=wt.calendarFormat(this,r)||"sameElse",i=t&&(qu(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Lo(n)))}function EAt(){return new jw(this)}function kAt(e,t){var n=Yc(e)?e:Lo(e);return this.isValid()&&n.isValid()?(t=dc(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function IAt(e,t){var n=Yc(e)?e:Lo(e);return this.isValid()&&n.isValid()?(t=dc(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function AAt(e,t,n,r){var o=Yc(e)?e:Lo(e),i=Yc(t)?t:Lo(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function OAt(e,t){var n=Yc(e)?e:Lo(e),r;return this.isValid()&&n.isValid()?(t=dc(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function MAt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function jAt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function DAt(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=MN(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=dc(t),t){case"year":i=CS(this,r)/12;break;case"month":i=CS(this,r);break;case"quarter":i=CS(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Bl(i)}function CS(e,t){if(e.date()<t.date())return-CS(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}wt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";wt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function PAt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function RAt(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?xS(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):qu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xS(n,"Z")):xS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function LAt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function FAt(e){e||(e=this.isUtc()?wt.defaultFormatUtc:wt.defaultFormat);var t=xS(this,e);return this.localeData().postformat(t)}function NAt(e,t){return this.isValid()&&(Yc(e)&&e.isValid()||Lo(e).isValid())?Kc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $At(e){return this.from(Lo(),e)}function zAt(e,t){return this.isValid()&&(Yc(e)&&e.isValid()||Lo(e).isValid())?Kc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function BAt(e){return this.to(Lo(),e)}function xve(e){var t;return e===void 0?this._locale._abbr:(t=rf(e),t!=null&&(this._locale=t),this)}var wve=uc("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 Cve(){return this._locale}var AT=1e3,r0=60*AT,OT=60*r0,_ve=(365*400+97)*24*OT;function o0(e,t){return(e%t+t)%t}function Sve(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-_ve:new Date(e,t,n).valueOf()}function Tve(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-_ve:Date.UTC(e,t,n)}function VAt(e){var t,n;if(e=dc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Tve:Sve,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=o0(t+(this._isUTC?0:this.utcOffset()*r0),OT);break;case"minute":t=this._d.valueOf(),t-=o0(t,r0);break;case"second":t=this._d.valueOf(),t-=o0(t,AT);break}return this._d.setTime(t),wt.updateOffset(this,!0),this}function HAt(e){var t,n;if(e=dc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Tve:Sve,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=OT-o0(t+(this._isUTC?0:this.utcOffset()*r0),OT)-1;break;case"minute":t=this._d.valueOf(),t+=r0-o0(t,r0)-1;break;case"second":t=this._d.valueOf(),t+=AT-o0(t,AT)-1;break}return this._d.setTime(t),wt.updateOffset(this,!0),this}function WAt(){return this._d.valueOf()-(this._offset||0)*6e4}function GAt(){return Math.floor(this.valueOf()/1e3)}function YAt(){return new Date(this.valueOf())}function UAt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function qAt(){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 XAt(){return this.isValid()?this.toISOString():null}function ZAt(){return hN(this)}function JAt(){return Zf({},Un(this))}function KAt(){return Un(this).overflow}function QAt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}fn("N",0,0,"eraAbbr");fn("NN",0,0,"eraAbbr");fn("NNN",0,0,"eraAbbr");fn("NNNN",0,0,"eraName");fn("NNNNN",0,0,"eraNarrow");fn("y",["y",1],"yo","eraYear");fn("y",["yy",2],0,"eraYear");fn("y",["yyy",3],0,"eraYear");fn("y",["yyyy",4],0,"eraYear");Zt("N",jN);Zt("NN",jN);Zt("NNN",jN);Zt("NNNN",u6t);Zt("NNNNN",d6t);ho(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Un(n).era=o:Un(n).invalidEra=e});Zt("y",kb);Zt("yy",kb);Zt("yyy",kb);Zt("yyyy",kb);Zt("yo",f6t);ho(["y","yy","yyy","yyyy"],Ba);ho(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ba]=n._locale.eraYearOrdinalParse(e,o):t[Ba]=parseInt(e,10)});function e6t(e,t){var n,r,o,i=this._eras||rf("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=wt(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=wt(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function t6t(e,t,n){var r,o,i=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(a=i[r].name.toUpperCase(),s=i[r].abbr.toUpperCase(),l=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(l===e)return i[r];break}else if([a,s,l].indexOf(e)>=0)return i[r]}function n6t(e,t){var n=e.since<=e.until?1:-1;return t===void 0?wt(e.since).year():wt(e.since).year()+(t-e.offset)*n}function r6t(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function o6t(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function i6t(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function a6t(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-wt(o[e].since).year())*n+o[e].offset;return this.year()}function s6t(e){return Lr(this,"_erasNameRegex")||DN.call(this),e?this._erasNameRegex:this._erasRegex}function l6t(e){return Lr(this,"_erasAbbrRegex")||DN.call(this),e?this._erasAbbrRegex:this._erasRegex}function c6t(e){return Lr(this,"_erasNarrowRegex")||DN.call(this),e?this._erasNarrowRegex:this._erasRegex}function jN(e,t){return t.erasAbbrRegex(e)}function u6t(e,t){return t.erasNameRegex(e)}function d6t(e,t){return t.erasNarrowRegex(e)}function f6t(e,t){return t._eraYearOrdinalRegex||kb}function DN(){var e=[],t=[],n=[],r=[],o,i,a,s,l,u=this.eras();for(o=0,i=u.length;o<i;++o)a=$d(u[o].name),s=$d(u[o].abbr),l=$d(u[o].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}fn(0,["gg",2],0,function(){return this.weekYear()%100});fn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function $3(e,t){fn(0,[e,e.length],0,t)}$3("gggg","weekYear");$3("ggggg","weekYear");$3("GGGG","isoWeekYear");$3("GGGGG","isoWeekYear");Zt("G",P3);Zt("g",P3);Zt("GG",No,Cl);Zt("gg",No,Cl);Zt("GGGG",xN,yN);Zt("gggg",xN,yN);Zt("GGGGG",D3,M3);Zt("ggggg",D3,M3);Pw(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=hr(e)});Pw(["gg","GG"],function(e,t,n,r){t[r]=wt.parseTwoDigitYear(e)});function p6t(e){return Eve.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function h6t(e){return Eve.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function m6t(){return zd(this.year(),1,4)}function g6t(){return zd(this.isoWeekYear(),1,4)}function v6t(){var e=this.localeData()._week;return zd(this.year(),e.dow,e.doy)}function b6t(){var e=this.localeData()._week;return zd(this.weekYear(),e.dow,e.doy)}function Eve(e,t,n,r,o){var i;return e==null?f2(this,r,o).year:(i=zd(e,r,o),t>i&&(t=i),y6t.call(this,e,t,n,r,o))}function y6t(e,t,n,r,o){var i=ive(e,t,n,r,o),a=d2(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}fn("Q",0,"Qo","quarter");Zt("Q",qge);ho("Q",function(e,t){t[Ad]=(hr(e)-1)*3});function x6t(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}fn("D",["DD",2],"Do","date");Zt("D",No,Ib);Zt("DD",No,Cl);Zt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});ho(["D","DD"],mu);ho("Do",function(e,t){t[mu]=hr(e.match(No)[0])});var kve=Ab("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Zt("DDD",j3);Zt("DDDD",Xge);ho(["DDD","DDDD"],function(e,t,n){n._dayOfYear=hr(e)});function w6t(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}fn("m",["mm",2],0,"minute");Zt("m",No,wN);Zt("mm",No,Cl);ho(["m","mm"],Oc);var C6t=Ab("Minutes",!1);fn("s",["ss",2],0,"second");Zt("s",No,wN);Zt("ss",No,Cl);ho(["s","ss"],Od);var _6t=Ab("Seconds",!1);fn("S",0,0,function(){return~~(this.millisecond()/100)});fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fn(0,["SSS",3],0,"millisecond");fn(0,["SSSS",4],0,function(){return this.millisecond()*10});fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Zt("S",j3,qge);Zt("SS",j3,Cl);Zt("SSS",j3,Xge);var Jf,Ive;for(Jf="SSSS";Jf.length<=9;Jf+="S")Zt(Jf,kb);function S6t(e,t){t[Zh]=hr(("0."+e)*1e3)}for(Jf="S";Jf.length<=9;Jf+="S")ho(Jf,S6t);Ive=Ab("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function T6t(){return this._isUTC?"UTC":""}function E6t(){return this._isUTC?"Coordinated Universal Time":""}var St=jw.prototype;St.add=bAt;St.calendar=TAt;St.clone=EAt;St.diff=DAt;St.endOf=HAt;St.format=FAt;St.from=NAt;St.fromNow=$At;St.to=zAt;St.toNow=BAt;St.get=L3t;St.invalidAt=KAt;St.isAfter=kAt;St.isBefore=IAt;St.isBetween=AAt;St.isSame=OAt;St.isSameOrAfter=MAt;St.isSameOrBefore=jAt;St.isValid=ZAt;St.lang=wve;St.locale=xve;St.localeData=Cve;St.max=ZIt;St.min=XIt;St.parsingFlags=JAt;St.set=F3t;St.startOf=VAt;St.subtract=yAt;St.toArray=UAt;St.toObject=qAt;St.toDate=YAt;St.toISOString=RAt;St.inspect=LAt;typeof Symbol!="undefined"&&Symbol.for!=null&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});St.toJSON=XAt;St.toString=PAt;St.unix=GAt;St.valueOf=WAt;St.creationData=QAt;St.eraName=r6t;St.eraNarrow=o6t;St.eraAbbr=i6t;St.eraYear=a6t;St.year=Kge;St.isLeapYear=R3t;St.weekYear=p6t;St.isoWeekYear=h6t;St.quarter=St.quarters=x6t;St.month=rve;St.daysInMonth=Y3t;St.week=St.weeks=eIt;St.isoWeek=St.isoWeeks=tIt;St.weeksInYear=v6t;St.weeksInWeekYear=b6t;St.isoWeeksInYear=m6t;St.isoWeeksInISOWeekYear=g6t;St.date=kve;St.day=St.days=hIt;St.weekday=mIt;St.isoWeekday=gIt;St.dayOfYear=w6t;St.hour=St.hours=_It;St.minute=St.minutes=C6t;St.second=St.seconds=_6t;St.millisecond=St.milliseconds=Ive;St.utcOffset=iAt;St.utc=sAt;St.local=lAt;St.parseZone=cAt;St.hasAlignedHourOffset=uAt;St.isDST=dAt;St.isLocal=pAt;St.isUtcOffset=hAt;St.isUtc=gve;St.isUTC=gve;St.zoneAbbr=T6t;St.zoneName=E6t;St.dates=uc("dates accessor is deprecated. Use date instead.",kve);St.months=uc("months accessor is deprecated. Use month instead",rve);St.years=uc("years accessor is deprecated. Use year instead",Kge);St.zone=uc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",aAt);St.isDSTShifted=uc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fAt);function k6t(e){return Lo(e*1e3)}function I6t(){return Lo.apply(null,arguments).parseZone()}function Ave(e){return e}var Nr=gN.prototype;Nr.calendar=p3t;Nr.longDateFormat=v3t;Nr.invalidDate=y3t;Nr.ordinal=C3t;Nr.preparse=Ave;Nr.postformat=Ave;Nr.relativeTime=S3t;Nr.pastFuture=T3t;Nr.set=d3t;Nr.eras=e6t;Nr.erasParse=t6t;Nr.erasConvertYear=n6t;Nr.erasAbbrRegex=l6t;Nr.erasNameRegex=s6t;Nr.erasNarrowRegex=c6t;Nr.months=V3t;Nr.monthsShort=H3t;Nr.monthsParse=G3t;Nr.monthsRegex=q3t;Nr.monthsShortRegex=U3t;Nr.week=Z3t;Nr.firstDayOfYear=Q3t;Nr.firstDayOfWeek=K3t;Nr.weekdays=cIt;Nr.weekdaysMin=dIt;Nr.weekdaysShort=uIt;Nr.weekdaysParse=pIt;Nr.weekdaysRegex=vIt;Nr.weekdaysShortRegex=bIt;Nr.weekdaysMinRegex=yIt;Nr.isPM=wIt;Nr.meridiem=SIt;function MT(e,t,n,r){var o=rf(),i=Uu().set(r,t);return o[n](i,e)}function Ove(e,t,n){if(Jd(e)&&(t=e,e=void 0),e=e||"",t!=null)return MT(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=MT(e,r,n,"month");return o}function PN(e,t,n,r){typeof e=="boolean"?(Jd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Jd(t)&&(n=t,t=void 0),t=t||"");var o=rf(),i=e?o._week.dow:0,a,s=[];if(n!=null)return MT(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=MT(t,(a+i)%7,r,"day");return s}function A6t(e,t){return Ove(e,t,"months")}function O6t(e,t){return Ove(e,t,"monthsShort")}function M6t(e,t,n){return PN(e,t,n,"weekdays")}function j6t(e,t,n){return PN(e,t,n,"weekdaysShort")}function D6t(e,t,n){return PN(e,t,n,"weekdaysMin")}dp("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=hr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});wt.lang=uc("moment.lang is deprecated. Use moment.locale instead.",dp);wt.langData=uc("moment.langData is deprecated. Use moment.localeData instead.",rf);var dd=Math.abs;function P6t(){var e=this._data;return this._milliseconds=dd(this._milliseconds),this._days=dd(this._days),this._months=dd(this._months),e.milliseconds=dd(e.milliseconds),e.seconds=dd(e.seconds),e.minutes=dd(e.minutes),e.hours=dd(e.hours),e.months=dd(e.months),e.years=dd(e.years),this}function Mve(e,t,n,r){var o=Kc(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function R6t(e,t){return Mve(this,e,t,1)}function L6t(e,t){return Mve(this,e,t,-1)}function $Q(e){return e<0?Math.floor(e):Math.ceil(e)}function F6t(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=$Q(xP(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Bl(e/1e3),r.seconds=o%60,i=Bl(o/60),r.minutes=i%60,a=Bl(i/60),r.hours=a%24,t+=Bl(a/24),l=Bl(jve(t)),n+=l,t-=$Q(xP(l)),s=Bl(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function jve(e){return e*4800/146097}function xP(e){return e*146097/4800}function N6t(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=dc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+jve(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xP(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function of(e){return function(){return this.as(e)}}var Dve=of("ms"),$6t=of("s"),z6t=of("m"),B6t=of("h"),V6t=of("d"),H6t=of("w"),W6t=of("M"),G6t=of("Q"),Y6t=of("y"),U6t=Dve;function q6t(){return Kc(this)}function X6t(e){return e=dc(e),this.isValid()?this[e+"s"]():NaN}function pg(e){return function(){return this.isValid()?this._data[e]:NaN}}var Z6t=pg("milliseconds"),J6t=pg("seconds"),K6t=pg("minutes"),Q6t=pg("hours"),eOt=pg("days"),tOt=pg("months"),nOt=pg("years");function rOt(){return Bl(this.days()/7)}var gd=Math.round,Pv={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oOt(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function iOt(e,t,n,r){var o=Kc(e).abs(),i=gd(o.as("s")),a=gd(o.as("m")),s=gd(o.as("h")),l=gd(o.as("d")),u=gd(o.as("M")),p=gd(o.as("w")),g=gd(o.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||p<=1&&["w"]||p<n.w&&["ww",p]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||g<=1&&["y"]||["yy",g],h[2]=t,h[3]=+e>0,h[4]=r,oOt.apply(null,h)}function aOt(e){return e===void 0?gd:typeof e=="function"?(gd=e,!0):!1}function sOt(e,t){return Pv[e]===void 0?!1:t===void 0?Pv[e]:(Pv[e]=t,e==="s"&&(Pv.ss=t-1),!0)}function lOt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Pv,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Pv,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=iOt(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var yM=Math.abs;function nv(e){return(e>0)-(e<0)||+e}function z3(){if(!this.isValid())return this.localeData().invalidDate();var e=yM(this._milliseconds)/1e3,t=yM(this._days),n=yM(this._months),r,o,i,a,s=this.asSeconds(),l,u,p,g;return s?(r=Bl(e/60),o=Bl(r/60),e%=60,r%=60,i=Bl(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=nv(this._months)!==nv(s)?"-":"",p=nv(this._days)!==nv(s)?"-":"",g=nv(this._milliseconds)!==nv(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?p+t+"D":"")+(o||r||e?"T":"")+(o?g+o+"H":"")+(r?g+r+"M":"")+(e?g+a+"S":"")):"P0D"}var Tr=N3.prototype;Tr.isValid=tAt;Tr.abs=P6t;Tr.add=R6t;Tr.subtract=L6t;Tr.as=N6t;Tr.asMilliseconds=Dve;Tr.asSeconds=$6t;Tr.asMinutes=z6t;Tr.asHours=B6t;Tr.asDays=V6t;Tr.asWeeks=H6t;Tr.asMonths=W6t;Tr.asQuarters=G6t;Tr.asYears=Y6t;Tr.valueOf=U6t;Tr._bubble=F6t;Tr.clone=q6t;Tr.get=X6t;Tr.milliseconds=Z6t;Tr.seconds=J6t;Tr.minutes=K6t;Tr.hours=Q6t;Tr.days=eOt;Tr.weeks=rOt;Tr.months=tOt;Tr.years=nOt;Tr.humanize=lOt;Tr.toISOString=z3;Tr.toString=z3;Tr.toJSON=z3;Tr.locale=xve;Tr.localeData=Cve;Tr.toIsoString=uc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",z3);Tr.lang=wve;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Zt("x",P3);Zt("X",A3t);ho("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});ho("x",function(e,t,n){n._d=new Date(hr(e))});//! moment.js
2872
- wt.version="2.30.1";c3t(Lo);wt.fn=St;wt.min=JIt;wt.max=KIt;wt.now=QIt;wt.utc=Uu;wt.unix=k6t;wt.months=A6t;wt.isDate=Mw;wt.locale=dp;wt.invalid=O3;wt.duration=Kc;wt.isMoment=Yc;wt.weekdays=M6t;wt.parseZone=I6t;wt.localeData=rf;wt.isDuration=wS;wt.monthsShort=O6t;wt.weekdaysMin=D6t;wt.defineLocale=EN;wt.updateLocale=IIt;wt.locales=AIt;wt.weekdaysShort=j6t;wt.normalizeUnits=dc;wt.relativeTimeRounding=aOt;wt.relativeTimeThreshold=sOt;wt.calendarFormat=SAt;wt.prototype=St;wt.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 cOt=Im({DATE:ba().default(wt().format("YYYY-MM-DD")),START_TIME:ba().default(wt().format("HH:mm")),DURATION:ba({required_error:"Please enter meeting duration!"})}),uOt=e=>{var _,w,x,C,S,k;const{meetingId:t,setMeetingId:n}=e,r=Ia(),o=Ni(T=>T.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=cc("en"),{data:s,isFetching:l}=ki(Xi,{url:`${dn.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:u,isLoading:p}=Po(fi,"rescheduleOneToOne",{onSuccess:({data:{message:T,data:E}})=>{if(E!=null&&E.loginRequired)return b("",E==null?void 0:E.loginLink);r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:T||"Meeting has been rescheduled successfully!",type:"success"}),y()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),g=V.useMemo(()=>{var T,E,I;if(s)return{DURATION:jn.convertToMinutes(((T=s==null?void 0:s.meetingDetails)==null?void 0:T.DURATION)||"00:30:00").toString(),START_TIME:((E=s==null?void 0:s.meetingDetails)==null?void 0:E.START_TIME)||wt().format("HH:mm"),DATE:((I=s==null?void 0:s.meetingDetails)==null?void 0:I.DATE)||wt().format("YYYY-MM-DD")}},[s]),{control:h,formState:{errors:m},handleSubmit:c,reset:f}=Am({resolver:ib(cOt),mode:"onChange",values:g}),v=()=>{c(T=>{const F=T,{START_TIME:E,DURATION:I}=F,A=Wr(F,["START_TIME","DURATION"]),{hours:M,minutes:j,seconds:P}=jn.convertTime(`00:${I}:00`);let R=ie({MEETING_ID:t,DURATION:`${M}:${j}:${P}`,START_TIME:`${E}:00`},A);u({data:R,url:dn.ONE_TO_ONE.RESCHEDULE})})()},b=(T,E)=>{const I=jn.openPopup(E,T,600,600),A=setInterval(()=>{I!=null&&I.closed&&(clearInterval(A),v())},1e3)},y=()=>(f(),n(void 0));return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:l||p}),O.jsx(Xm,{title:O.jsxs(We,{display:"flex",flexDirection:"row",alignItems:"center",children:[O.jsx(Qr,{children:O.jsx(fN,{color:"primary"})}),O.jsx(hp,{level:5,fontSize:16,children:"Reschedule One To One"})]}),open:!!t,onClose:y,maxWidth:"md",children:O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsxs(We,{display:"flex",gap:1,alignItems:"center",mb:1,children:[O.jsx(Lt,{fontSize:14,children:"Schedule With"}),O.jsxs("div",{className:"avatar_container",children:[O.jsx(ql,{sx:{height:30,width:30},src:(_=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?_:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),O.jsxs("span",{children:[(w=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?w:"--"," (",(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?x:"--",")"]})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(xa,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"sm"}),O.jsx(xa,{type:"textarea",label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"sm",disabled:!0})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(Lt,{fontSize:14,children:"Choose Date & Time"}),O.jsx(dr,{name:"DATE",control:h,render:({field:T})=>O.jsx("input",ie({className:"input-date",type:"date"},T))}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"START_TIME",control:h,render:({field:T})=>O.jsx("input",ie({className:"input-date",type:"time",style:{flex:1}},T))}),O.jsx(dr,{name:"DURATION",control:h,render:I=>{var{field:A}=I,M=A,{value:T}=M,E=Wr(M,["value"]);return O.jsx(We,{display:"flex",flexDirection:"column",flex:1,children:O.jsx(xa,ie({required:!0,placeholder:"Duration in minutes",type:"number",value:T||"",error:m!=null&&m.DURATION?m==null?void 0:m.DURATION.message:""},E))})}})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsx(Lt,{fontSize:14,children:"Choose Medium"}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(H2,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((T,E)=>O.jsx(Fp,{value:T.value,children:T.label},E))}),O.jsx(al,{label:(C=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:C.LABEL,sx:{width:1},value:((k=s==null?void 0:s.meetingDetails)==null?void 0:k[(S=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:S.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),O.jsxs(We,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[O.jsx(Ko,{size:"small",variant:"outlined",onClick:y,children:"Cancel"}),O.jsx(Ko,{size:"small",onClick:()=>v(),children:"Submit"})]})]})})]})},dOt=_e(AR)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),fOt=e=>{var B,H,Z,U,Y,J,Q,ne,te,ae,pe,he,oe,ue,ye,me,xe,fe,ce,Ee,q,re,ee,Ce,ge,de,Te,Ie,Ae,je,Fe,Ue,Je,it,Ge,$e,nt,xt;const{meetingId:t,setMeetingId:n,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=Ia(),a=hi(He=>He.session.ASSETS_BASE_URL),s=Ni(He=>He.pushAlert),{session:{user:l}}=hi(),{ImageViewer:u,setImageURL:p}=k3(),{PdfViewer:g,setPdfURL:h}=QF(),{ONE_TO_ONE_MEDIUM_TYPES:m}=cc("en"),{data:c,isFetching:f}=ki(Xi,{url:`${dn.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:v,isLoading:b}=Po(fi,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),n(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:He=>{var Ct,lt;s({message:((lt=(Ct=He==null?void 0:He.response)==null?void 0:Ct.data)==null?void 0:lt.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:_}=Po(fi,"createOneToOneRemark",{onSuccess:He=>{var Ct;i.invalidateQueries("fetchOneToOneDetails"),s({message:((Ct=He==null?void 0:He.data)==null?void 0:Ct.message)||"Remark has been created successfully!",type:"success"}),C()},onError:He=>{var Ct,lt;s({message:((lt=(Ct=He==null?void 0:He.response)==null?void 0:Ct.data)==null?void 0:lt.message)||"Error, while creating the remark!",type:"error"})}}),{control:w,watch:x,reset:C,handleSubmit:S}=Am({resolver:ib(Ukt),mode:"onChange",values:{VISIBLE_TO:(c==null?void 0:c.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:k,remove:T}=k1({name:"IMAGES",control:w}),{append:E,remove:I}=k1({name:"FILES",control:w}),[A,M,j]=x(["TEXT","FILES","IMAGES"]),P=(He,Ct,lt)=>{var Nt,nn,yt,Wt;switch(He){case oi.SHEDULE_BY_WITH_OUTSIDE:return Ct===(l==null?void 0:l.employee_id)||lt===(l==null?void 0:l.employee_id);case oi.SHEDULE_BY_WITH:return((Nt=c==null?void 0:c.meetingDetails)==null?void 0:Nt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((nn=c==null?void 0:c.meetingDetails)==null?void 0:nn.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case oi.SHEDULE_BY:return((yt=c==null?void 0:c.meetingDetails)==null?void 0:yt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case oi.SHEDULE_WITH:return((Wt=c==null?void 0:c.meetingDetails)==null?void 0:Wt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},R=He=>{const Ct=He.target.files;if(!(!Ct||!Ct.length))for(const lt of Ct)k(lt)},F=He=>{M.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const Ct=He.target.files;if(!(!Ct||!Ct.length))for(const lt of Ct)E(lt)},N=S(Nt=>Gt(exports,null,function*(){var nn=Nt,{IMAGES:He,FILES:Ct}=nn,lt=Wr(nn,["IMAGES","FILES"]);const yt=[...Ct,...He],Wt=Pe(ie({},lt),{FILES:yt,MEETING_ID:t}),Mn=jn.convertToFormData(Wt);y({url:dn.ONE_TO_ONE.REMARK.CREATE,data:Mn})})),$=()=>{v({url:dn.ONE_TO_ONE.UPDATE,data:{MEETING_ID:t,MEETING_STATUS:Bge.COMPLETED}})};return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:f||b||_}),O.jsx(Ow,{title:O.jsx(hp,{level:5,fontSize:16,children:"Meeting Details"}),open:!!t,handleClose:()=>n(void 0),children:O.jsxs("div",{className:bc.meeting__details,children:[O.jsx("div",{className:bc.meeting__details__topbox,children:O.jsxs(yr,{container:!0,children:[O.jsxs(yr,{item:!0,md:8,children:[O.jsxs("h3",{children:[(B=c==null?void 0:c.meetingDetails)==null?void 0:B.TITLE,O.jsx("span",{style:{color:((H=c==null?void 0:c.meetingDetails)==null?void 0:H.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((Z=c==null?void 0:c.meetingDetails)==null?void 0:Z.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(U=c==null?void 0:c.meetingDetails)==null?void 0:U.DISPLAY_MEETING_STATUS})]}),O.jsx("p",{className:bc.meeting_desc,children:(Y=c==null?void 0:c.meetingDetails)==null?void 0:Y.DESCRIPTION}),O.jsxs("div",{className:bc.bottom_create_loaction,children:[O.jsxs("p",{children:["Created by: ",O.jsxs("span",{children:[(Q=(J=c==null?void 0:c.meetingDetails)==null?void 0:J.SCHEDULE_BY)!=null?Q:"--"," (",(te=(ne=c==null?void 0:c.meetingDetails)==null?void 0:ne.SCHEDULE_BY_EMPLOYEE_CODE)!=null?te:"--",")"]})]}),O.jsxs("p",{children:["Created on: ",O.jsx("span",{children:(pe=(ae=c==null?void 0:c.meetingDetails)==null?void 0:ae.CREATED_DATE)!=null?pe:"--"}),O.jsx("span",{children:(oe=(he=c==null?void 0:c.meetingDetails)==null?void 0:he.CREATED_TIME)!=null?oe:"--"})]}),O.jsxs("p",{children:["Medium: ",O.jsx("span",{children:(ye=(ue=c==null?void 0:c.meetingDetails)==null?void 0:ue.MEDIUM)!=null?ye:"--"})]}),O.jsxs("p",{children:[(xe=m[(me=c==null?void 0:c.meetingDetails)==null?void 0:me.MEDIUM_ID])==null?void 0:xe.LABEL,": ",((fe=c==null?void 0:c.meetingDetails)==null?void 0:fe.MEDIUM_ID)===2||((ce=c==null?void 0:c.meetingDetails)==null?void 0:ce.MEDIUM_ID)===4?O.jsx("a",{href:(re=c==null?void 0:c.meetingDetails)==null?void 0:re[(q=m[(Ee=c==null?void 0:c.meetingDetails)==null?void 0:Ee.MEDIUM_ID])==null?void 0:q.COLUMN_NAME],children:O.jsx(Nd,{limit:60,data:(de=(ge=c==null?void 0:c.meetingDetails)==null?void 0:ge[(Ce=m[(ee=c==null?void 0:c.meetingDetails)==null?void 0:ee.MEDIUM_ID])==null?void 0:Ce.COLUMN_NAME])!=null?de:"--"})}):O.jsx("span",{children:(je=(Ae=c==null?void 0:c.meetingDetails)==null?void 0:Ae[(Ie=m[(Te=c==null?void 0:c.meetingDetails)==null?void 0:Te.MEDIUM_ID])==null?void 0:Ie.COLUMN_NAME])!=null?je:"--"})]})]})]}),O.jsx(yr,{item:!0,md:4,style:{textAlign:"right"},children:((Fe=c==null?void 0:c.meetingDetails)==null?void 0:Fe.DISPLAY_MEETING_STATUS)!=="Completed"?O.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!P(oi==null?void 0:oi.SHEDULE_BY_WITH)&&O.jsx(Ko,{size:"small",onClick:()=>{o(t)},variant:"outlined",children:"Re-schedule"}),!!P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsx(Ko,{size:"small",onClick:$,children:"Mark as Complete"})]}):null})]})}),O.jsxs("div",{className:bc.date__time__box,children:[O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(I3,{})}),(Ue=c==null?void 0:c.meetingDetails)==null?void 0:Ue.DATE]}),O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(aN,{})}),(Je=c==null?void 0:c.meetingDetails)==null?void 0:Je.START_TIME," - ",(it=c==null?void 0:c.meetingDetails)==null?void 0:it.END_TIME]})]}),O.jsxs("div",{className:bc.connected__meeting,children:[O.jsx("span",{style:{marginRight:"5px"},children:O.jsx(zge,{})}),"Conducted with:",O.jsxs("span",{style:{marginLeft:"5px"},children:[(Ge=c==null?void 0:c.meetingDetails)==null?void 0:Ge.SCHEDULE_WITH," (",(nt=($e=c==null?void 0:c.meetingDetails)==null?void 0:$e.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?nt:"--",")"]})]}),O.jsxs(O.Fragment,{children:[Array.isArray(c==null?void 0:c.meetingRemark)&&((xt=c==null?void 0:c.meetingRemark)==null?void 0:xt.map((He,Ct)=>{var lt,Nt,nn;return O.jsx(O.Fragment,{children:((He==null?void 0:He.DISPLAY_VISIBLE_TO)==="Visible to me"&&!P(oi==null?void 0:oi.SHEDULE_WITH)||(He==null?void 0:He.DISPLAY_VISIBLE_TO)==="Visible to All")&&O.jsx("div",{className:bc.remarks__meeting,children:O.jsxs("div",{style:{marginBottom:"20px"},children:[O.jsxs("h4",{children:["Remarks",P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsxs("span",{children:[O.jsx(Vge,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(He==null?void 0:He.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),O.jsx("p",{children:He==null?void 0:He.TEXT}),O.jsx("div",{className:"images__structure",children:(He==null?void 0:He.REMARK_ATTACHMENTS)&&((lt=He==null?void 0:He.REMARK_ATTACHMENTS)==null?void 0:lt.map(yt=>O.jsx(O.Fragment,{children:(yt==null?void 0:yt.FILE_TYPE)==="pdf"||(yt==null?void 0:yt.FILE_TYPE)==="xls"?O.jsxs(We,{className:"pdfView__preview",children:[O.jsx(We,{mr:1,display:"flex",alignItems:"center",children:(yt==null?void 0:yt.FILE_TYPE)==="pdf"?O.jsx(Hkt,{size:18}):O.jsx(A3,{style:{width:"30px"}})}),O.jsxs(We,{children:[O.jsx("p",{children:O.jsx(Nd,{data:yt==null?void 0:yt.FILE_NAME,limit:20})}),O.jsx("div",{className:bc.previeww__color,onClick:()=>h(`${a}/${yt==null?void 0:yt.FILE_PATH}`),children:"Preview"})]})]}):null})))}),O.jsx("div",{className:"images__structure",children:(He==null?void 0:He.REMARK_ATTACHMENTS)&&((Nt=He==null?void 0:He.REMARK_ATTACHMENTS)==null?void 0:Nt.map(yt=>O.jsx(O.Fragment,{children:(yt==null?void 0:yt.FILE_TYPE)==="png"||(yt==null?void 0:yt.FILE_TYPE)==="jpeg"||(yt==null?void 0:yt.FILE_TYPE)==="webp"||(yt==null?void 0:yt.FILE_TYPE)==="jpg"?O.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>p(`${a}/${yt==null?void 0:yt.FILE_PATH}`),alt:"",src:`${a}/${yt==null?void 0:yt.FILE_PATH}`,width:200}):null})))}),O.jsxs("div",{className:bc.comment__users__meeting,children:[O.jsx(ql,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((nn=He==null?void 0:He.remark_auther)==null?void 0:nn.profileSrc)||`https://robohash.org/${He==null?void 0:He.CREATED_BY}`}),He==null?void 0:He.CREATED_BY," ",O.jsx("span",{children:He==null?void 0:He.CREATED_DATE}),O.jsx("span",{children:He==null?void 0:He.CREATED_TIME})]})]})},Ct)})})),P(oi==null?void 0:oi.SHEDULE_BY_WITH)&&O.jsxs("div",{className:bc.editor__remarks,children:[O.jsx(dr,{control:w,name:"TEXT",render:({field:{value:He,onChange:Ct,onBlur:lt}})=>O.jsx(dOt,{placeholder:"Type your remarks",value:He,onChange:Nt=>Ct(Nt.target.value),onBlur:lt})}),O.jsx(We,{className:"main__upload__box",mx:2,children:j==null?void 0:j.map((He,Ct)=>O.jsxs(We,{className:"all__upload__images",children:[O.jsx("img",{src:URL.createObjectURL(He),height:"200",alt:"upload"}),O.jsx("button",{onClick:()=>T(Ct),children:O.jsx(Ld,{style:{width:"20px",height:"20px"}})})]},He))}),O.jsx(We,{className:"main__upload__box",mx:2,children:M==null?void 0:M.map((He,Ct)=>O.jsxs(We,{className:"pdfView__preview",children:[O.jsx(We,{style:{marginRight:"10px"},children:O.jsx("p",{children:O.jsx(n2,{size:22,color:"red"})})}),O.jsx(We,{children:O.jsx("p",{children:O.jsx(Nd,{data:He==null?void 0:He.name,limit:20})})}),O.jsx("button",{onClick:()=>I(Ct),children:O.jsx(Ld,{style:{width:"20px",height:"20px"}})})]}))}),O.jsxs("div",{className:bc.editor__bottom,children:[O.jsxs(We,{display:"flex",gap:1,children:[O.jsxs("label",{style:{cursor:"pointer"},children:[O.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:R,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),O.jsx("span",{children:O.jsx(tN,{})})]}),O.jsxs("label",{style:{cursor:"pointer"},children:[O.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:F,disabled:(M==null?void 0:M.length)>10,style:{display:"none"}}),O.jsx("span",{children:O.jsx(cN,{})})]})]}),O.jsxs("div",{className:"start-flex",children:[P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsx(dr,{control:w,name:"VISIBLE_TO",render:({field:{value:He,onChange:Ct}})=>O.jsx(Mc,{style:{marginRight:"20px"},control:O.jsx(Y2,{sx:{marginLeft:"10px"},size:"small",checked:!!He}),label:"Show to employee",labelPlacement:"start",onChange:(lt,Nt)=>(Ct(+Nt),lt)})}),O.jsx(Ko,{size:"small",onClick:N,disabled:!A||(A==null?void 0:A.length)===0,children:"Send"})]})]})]})]})]})}),O.jsx(uOt,{meetingId:r,setMeetingId:o}),O.jsx(u,{}),O.jsx(g,{})]})},pOt=Im({MEETING_TITLE:ba({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:ba().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:vp({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:ba().default(wt().format("YYYY-MM-DD")),START_TIME:ba().default(wt().format("HH:mm")),DURATION:ba({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:vp().default(1),MEDIUM_ALIAS:ba().optional(),EVENT_UID:ba().optional()}),_5={GOOGLE_MEET:2,MS_TEAMS:4},Pve=e=>{var B,H,Z;const{open:t,setOpen:n,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=Ia(),{user:u}=hi(U=>U.session),p=Ni(U=>U.pushAlert),{ONE_TO_ONE_TYPES:g,ONE_TO_ONE_MEDIUM_TYPES:h}=cc("en"),{mutate:m,isLoading:c}=Po(fi,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),p({message:"Meeting has been scheduled successfully!",type:"success"}),E(),n(!1)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:f}=Po(WP,"cancelVirtualMeetLink"),{mutate:v,isLoading:b}=Po(fi,"generateGoogleMeetLink",{onSuccess:({data:{message:U,data:Y}})=>{if(Y!=null&&Y.loginRequired)return R(Y==null?void 0:Y.loginLink);p({message:U,type:"success"}),T("MEDIUM",2),T("EVENT_UID",Y==null?void 0:Y.id),T("MEDIUM_ALIAS",Y==null?void 0:Y.hangoutLink)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while generating the Google Meet link!",type:"error"})}}),{mutate:y,isLoading:_}=Po(fi,"generateMsTeamMeetLink",{onSuccess:({data:{message:U,data:Y}})=>{var J;if(Y!=null&&Y.loginRequired)return F(Y==null?void 0:Y.loginLink);p({message:U,type:"success"}),T("MEDIUM",4),T("EVENT_UID",Y==null?void 0:Y.id),T("MEDIUM_ALIAS",(J=Y==null?void 0:Y.onlineMeeting)==null?void 0:J.joinUrl)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while generating the Microsoft Teams link!",type:"error"})}}),{control:w,formState:{errors:x},trigger:C,watch:S,handleSubmit:k,setValue:T,reset:E,getValues:I}=Am({resolver:ib(pOt),mode:"onChange",defaultValues:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:wt().format("HH:mm"),DATE:wt().format("YYYY-MM-DD")}}),[A,M]=S(["MEDIUM","DESCRIPTION"]),j=()=>{k(U=>{const oe=U,{MEDIUM:Y,MEDIUM_ALIAS:J,START_TIME:Q,DURATION:ne}=oe,te=Wr(oe,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]),{hours:ae,minutes:pe,seconds:he}=jn.convertTime(`00:${ne}:00`);U=ie({MEDIUM:Y,DURATION:`${ae}:${pe}:${he}`,START_TIME:`${Q}:00`,[h==null?void 0:h[Y].COLUMN_NAME]:J},te),m({data:U,url:dn.ONE_TO_ONE.CREATE})})()},P=U=>Gt(exports,null,function*(){if(!(yield C()))return;const he=I(),{START_TIME:Y,DURATION:J}=he,Q=Wr(he,["START_TIME","DURATION"]),{hours:ne,minutes:te,seconds:ae}=jn.convertTime(`00:${J}:00`),pe=ie({DURATION:`${ne}:${te}:${ae}`,START_TIME:`${Y}:00`},Q);switch(U){case _5.GOOGLE_MEET:v({url:dn.ONE_TO_ONE.GOOGLE_MEET.CREATE,data:pe});break;case _5.MS_TEAMS:y({url:dn.ONE_TO_ONE.MS_TEAMS.CREATE,data:pe});break}}),R=U=>{const Y=N(U,"Google Login",600,600),J=setInterval(()=>{Y!=null&&Y.closed&&(P(_5.GOOGLE_MEET),clearInterval(J))},1e3)},F=U=>{const Y=N(U,"Microsoft Login",600,600),J=setInterval(()=>{Y!=null&&Y.closed&&(clearInterval(J),P(_5.MS_TEAMS))},1e3)},N=(U,Y,J,Q)=>{const ne=window.innerWidth/2-J/2,te=window.innerHeight/2-Q/2;return window.open(U,Y,`width=${J},height=${Q},top=${te},left=${ne}`)},$=()=>{const U=I("EVENT_UID");U&&f({url:dn.ONE_TO_ONE.GOOGLE_MEET.CANCEL,data:{EVENT_UID:U,MEDIUM:A}}),E(),n(!1)};return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:c||b||_}),O.jsx(Xm,{title:O.jsxs(We,{display:"flex",flexDirection:"row",alignItems:"center",children:[O.jsx(Qr,{children:O.jsx(fN,{color:"primary",sx:{color:u==null?void 0:u.PRODUCT_THEME_COLOR,fontSize:28}})}),O.jsx(hp,{level:5,children:"Schedule One To One"})]}),open:t,onClose:$,maxWidth:"md",children:O.jsxs(We,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[O.jsxs(We,{display:"flex",gap:2,mb:1,children:[O.jsx(Lt,{mt:1,fontSize:14,children:"Schedule With"}),r?O.jsxs("div",{className:"avatar_container",children:[O.jsx(ql,{sx:{height:30,width:30},src:(B=r==null?void 0:r[`${s}`])!=null?B:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),O.jsxs("span",{children:[(H=r==null?void 0:r[`${o}`])!=null?H:"--"," ",(Z=r==null?void 0:r[`${a}`])!=null?Z:"--"]})]}):O.jsx(dr,{name:"SCHEDULE_WITH",control:w,render:({field:{onChange:U}})=>O.jsxs(We,{children:[O.jsx(BE,{searchKey:"search",endpoint:dn.EMPLOYEE.SEARCH,reqParams:{search_for:"appreciation",search:""},optionValue:"EMPLOYEE_ID",optionTitleFn:Y=>`${(Y==null?void 0:Y.EMPLOYEE_NAME)||"--"} (${Y.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:Y=>U((Y==null?void 0:Y.value)||0)}),!!(x!=null&&x.SCHEDULE_WITH)&&O.jsxs("div",{className:"form_error",children:[O.jsx(Fd,{}),O.jsx("p",{children:x.SCHEDULE_WITH.message})]})]})})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(dr,{name:"MEETING_TITLE",control:w,render:({field:U})=>O.jsx(We,{children:O.jsx(xa,ie({label:"Meeting Title",required:!0,size:"sm",error:x!=null&&x.MEETING_TITLE?x.MEETING_TITLE.message:""},U))})}),O.jsx(dr,{name:"DESCRIPTION",control:w,render:({field:U})=>O.jsxs(We,{display:"flex",flexDirection:"column",children:[O.jsx(xa,ie({label:"Description",size:"sm",type:"textarea",style:{minHeight:100},error:x!=null&&x.DESCRIPTION?x.DESCRIPTION.message:""},U)),O.jsx("div",{className:"mt-10",children:O.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(M==null?void 0:M.length)||0,"/150"]})})]})})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(Lt,{fontSize:14,children:"Choose Date & Time"}),O.jsx(dr,{name:"DATE",control:w,render:({field:U})=>O.jsx("input",ie({className:"input-date",type:"date"},U))}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"START_TIME",control:w,render:({field:U})=>O.jsx(xa,ie({type:"time",className:"input-time",style:{flex:1,paddingLeft:6,paddingRight:6}},U))}),O.jsx(dr,{name:"DURATION",control:w,render:({field:U})=>O.jsx(xa,ie({label:"Duration in minutes",placeholder:"Duration",floatingLabel:!0,required:!0,size:"sm",type:"number",style:{flex:1},error:x!=null&&x.DURATION?x.DURATION.message:""},U))})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsx(Lt,{fontSize:14,children:"Choose Medium"}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"MEDIUM",control:w,render:({field:{value:U,onChange:Y}})=>O.jsx(O.Fragment,{children:O.jsx(Hl,{size:"sm",value:U,searchByID:!0,onChange:J=>{J===2||J===4?P(J):Y(J),T("MEDIUM_ALIAS","")},options:g})})}),O.jsx(dr,{name:"MEDIUM_ALIAS",control:w,render:({field:{name:U,value:Y,onChange:J}})=>{var Q;return O.jsx(O.Fragment,{children:O.jsx(xa,{placeholder:(Q=h==null?void 0:h[A])==null?void 0:Q.LABEL,name:U,value:Y,onChange:J,disabled:A===2||A===4,size:"sm"})})}})]})]}),O.jsxs(We,{marginTop:.5,display:"flex",justifyContent:"flex-end",gap:2,children:[O.jsx(Ko,{variant:"outlined",onClick:$,children:"Cancel"}),O.jsx(Ko,{onClick:()=>j(),children:"Submit"})]})]})})]})},hOt="_one__to__one__card_ec5u0_1",mOt="_one__to__one__card__top_ec5u0_11",gOt="_one__to__one__icon_ec5u0_17",vOt="_face__to__face_ec5u0_58",S5={one__to__one__card:hOt,one__to__one__card__top:mOt,one__to__one__icon:gOt,face__to__face:vOt},bOt=e=>{const{CONCERN:t="self",employee_id:n}=e,r=Ia(),{user:o,token:i}=hi(M=>M.session),a=Ni(M=>M.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:u}=cc("en"),[p,g]=V.useState(void 0),[h,m]=V.useState(void 0),[c,f]=V.useState(void 0),[v,b]=V.useState(!1),[{ONE_TO_ONE_TYPE:y,MONTH_FILTER:_,MEETING_STATUS:w,SEARCH_QUERY:x},C]=V.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:u[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:S,isFetching:k}=ki(fi,{url:dn.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:y,MEETING_STATUS:w.value,MONTH_FILTER:_==null?void 0:_.value,SEARCH_QUERY:x,CONCERN:t,employee_id:n}},"fetchOneToOne"),{mutate:T,isLoading:E}=Po(fi,"cancelOneToOne",{onSuccess:({data:{message:M,data:j}})=>{if(j!=null&&j.loginRequired)return A("",j==null?void 0:j.loginLink);r.invalidateQueries("fetchOneToOne"),a({message:M||"Meeting has been canceled successfully!",type:"success"})},onError:M=>{var j,P;a({message:((P=(j=M==null?void 0:M.response)==null?void 0:j.data)==null?void 0:P.message)||"Error! while canceling the meeting!",type:"error"})}});V.useEffect(()=>{p&&I()},[p]);const I=()=>{const{ID:M}=p;let j={MEETING_ID:M,MEETING_STATUS:Bge.CANCELED};T({token:i,data:j,url:dn.ONE_TO_ONE.UPDATE})},A=(M,j)=>{const P=jn.openPopup(j,M,600,600),R=setInterval(()=>{P!=null&&P.closed&&(clearInterval(R),I())},1e3)};return Bs(k||E),O.jsxs(O.Fragment,{children:[O.jsxs(We,{className:"overview__container__bg",style:{overflow:"hidden"},children:[O.jsxs("div",{className:"flex-between-center g-10",children:[O.jsxs(We,{display:"flex",gap:2,flexDirection:"row",children:[O.jsx(xa,{leftIcon:O.jsx(T3,{sx:{height:18,width:18,marginTop:"0px"}}),size:"sm",type:"text",placeholder:"Search",name:"searchText",autoComplete:"off",debounceDelay:600,onDebouncedChange:M=>C(j=>Pe(ie({},j),{SEARCH_QUERY:M}))}),O.jsx("div",{style:{width:200},children:O.jsx(Hl,{size:"sm",value:_,options:l,placeholder:"Month",onChange:M=>C(j=>Pe(ie({},j),{MONTH_FILTER:M})),menuPortalTarget:document.body})}),O.jsx("div",{style:{width:200},children:O.jsx(Hl,{size:"sm",value:w,options:u,placeholder:"Month",onChange:M=>C(j=>Pe(ie({},j),{MEETING_STATUS:M})),menuPortalTarget:document.body})})]}),O.jsxs("div",{className:"flex-end-center g-10",children:[O.jsx(KR,{items:s,value:y,onChangeTab:(M,j)=>C(P=>Pe(ie({},P),{ONE_TO_ONE_TYPE:j}))}),!n&&O.jsx(Ko,{size:"small",onClick:()=>b(!0),disableElevation:!0,children:"Schedule One to One"})]})]}),O.jsx(We,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(S==null?void 0:S.length)>0?S.map((M,j)=>O.jsxs(We,{className:S5.one__to__one__card,children:[O.jsxs("div",{className:S5.one__to__one__card__top,children:[O.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>m(M==null?void 0:M.ID),children:[O.jsx("div",{className:S5.one__to__one__icon,children:O.jsx($ge,{})}),O.jsxs(ep,{size:"sm",children:[M==null?void 0:M.MEETING_TITLE," ",O.jsx("span",{style:{color:(M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":(M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:M==null?void 0:M.DISPLAY_MEETING_STATUS})]})]}),O.jsx("div",{className:"flex-start-center g-10",children:O.jsx("div",{className:S5.face__to__face,children:M==null?void 0:M.MEDIUM})})]}),O.jsxs(We,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[O.jsxs("div",{className:"one__icons__bottom",children:[O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(I3,{})}),M==null?void 0:M.DATE]}),O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(aN,{})})," ",M==null?void 0:M.START_TIME," - ",M==null?void 0:M.END_TIME]}),O.jsxs("p",{children:[O.jsx("span",{style:{marginRight:"5px"},children:"Schedule By:"}),M==null?void 0:M.SCHEDULE_BY]}),O.jsxs("p",{children:[O.jsx("span",{style:{marginRight:"5px"},children:"Schedule With:"}),M==null?void 0:M.SCHEDULE_WITH]})]}),O.jsx(We,{display:"flex",gap:2,children:((M==null?void 0:M.SCHEDULE_BY_ID)===(o==null?void 0:o.employee_id)||(M==null?void 0:M.SCHEDULE_WITH_ID)===(o==null?void 0:o.employee_id))&&((M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Completed"?O.jsx(Ko,{size:"small",variant:"text",onClick:()=>m(M==null?void 0:M.ID),children:"Add Remarks"}):O.jsxs(O.Fragment,{children:[O.jsx(Ko,{size:"small",variant:"text",onClick:()=>f(M==null?void 0:M.ID),children:"Reschedule"}),O.jsx(Ko,{size:"small",variant:"text",onClick:()=>g(M),children:"Cancel"})]}))})]})]},j)):O.jsx(_d,{message:"No One to One's found"})})]}),O.jsx(fOt,{meetingId:h,setMeetingId:m,openReScheduleModalMeetingId:c,setReScheduleModalMeetingId:f}),O.jsx(Pve,{open:v,setOpen:b})]})},yOt=V.forwardRef(({placeholder:e="Search...",defaultValue:t="",onSearch:n=()=>{},delay:r=1e3,width:o="210px",styleOverrides:i={}},a)=>{const[s,l]=V.useState(t),u=V.useRef(!1),p=V.useRef(),g=vr.debounce(m=>{n(m)},r);V.useImperativeHandle(a,()=>({clearInput(){l("")}})),V.useEffect(()=>(u.current&&g(s),()=>{g.cancel()}),[s]);const h=m=>{u.current||(u.current=!0),l(m.target.value)};return O.jsxs("div",{className:"flex-start-center search-component m-0",style:ie({background:"#ffffff",border:"1.5px solid #f5f5f5",borderRadius:"4px",width:o},i),children:[O.jsx(zht,{style:{width:14,height:14}}),O.jsx("input",{type:"text",placeholder:e,name:"searchText",autoComplete:"off",value:s,ref:p,onChange:h,style:{margin:"0 !important",width:"100%"},className:"input-search"})]})}),Oh={CREATE:"CREATE",EDIT:"EDIT"},rv={SELF:"self"},xOt={employee_name:"EMPLOYEE NAME",reviewer_name:"REVIEWER NAME",approver_name:"APPROVER NAME",hr_name:"HR NAME",end_date:"END DATE",start_date:"START DATE"},zQ=[{label:"Employee",value:"6"},{label:"Reviewer",value:"2"},{label:"Admin",value:"1"},{label:"HR",value:"3"}],wOt={"popover-list":"_popover-list_qotm2_1"},COt=({isPopoverOpen:e,anchorPosition:t,onClose:n=()=>{},popoverMenu:r=[]})=>O.jsx(V2,{open:e,anchorPosition:t,anchorReference:"anchorPosition",onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:O.jsx(Q0,{className:`${wOt["popover-list"]}`,children:Array.isArray(r)&&r.map((o,i)=>(o.isVisible===void 0||o.isVisible)&&O.jsx(B2,{onClick:o.onClick,sx:{cursor:"pointer"},children:O.jsx(RR,{primaryTypographyProps:{style:{fontWeight:500,color:"inherit"}},primary:o.title})},i))})}),_Ot={employeeId:"",concern:"self",pipId:""},Rve=V.createContext(_Ot),SOt=Rve.Provider,RN=()=>{const e=V.useContext(Rve);if(!e)throw new Error("usePipContext must be used within an PipProvider");return e};var LN={},TOt=On;Object.defineProperty(LN,"__esModule",{value:!0});var Lve=LN.default=void 0,EOt=TOt(Pn()),kOt=O;Lve=LN.default=(0,EOt.default)((0,kOt.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var FN={},IOt=On;Object.defineProperty(FN,"__esModule",{value:!0});var Fve=FN.default=void 0,AOt=IOt(Pn()),OOt=O;Fve=FN.default=(0,AOt.default)((0,OOt.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");function mv(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nve(e){if(W.isValidElement(e)||Xl.isValidElementType(e)||!mv(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Nve(e[n])}),t}function wP(e,t,n={clone:!0}){const r=n.clone?ie({},e):e;return mv(e)&&mv(t)&&Object.keys(t).forEach(o=>{W.isValidElement(t[o])||Xl.isValidElementType(t[o])?r[o]=t[o]:mv(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mv(e[o])?r[o]=wP(e[o],t[o],n):n.clone?r[o]=mv(t[o])?Nve(t[o]):t[o]:r[o]=t[o]}),r}const MOt="exact-prop: ​";function jOt(e){return process.env.NODE_ENV==="production"?e:Pe(ie({},e),{[MOt]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function DOt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $ve(e,t=""){return e.displayName||e.name||t}function BQ(e,t,n){const r=$ve(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function xM(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $ve(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Xl.ForwardRef:return BQ(e,e.render,"ForwardRef");case Xl.Memo:return BQ(e,e.type,"memo");default:return}}}function wM(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":DOt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const zve=W.createContext(null);process.env.NODE_ENV!=="production"&&(zve.displayName="ThemeContext");function POt(){const e=W.useContext(zve);return process.env.NODE_ENV!=="production"&&W.useDebugValue(e),e}const ROt=typeof Symbol=="function"&&Symbol.for,LOt=ROt?Symbol.for("mui.nested"):"__THEME_NESTED__",FOt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function NOt(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,process.env.NODE_ENV!=="production"&&i>=1e10&&console.warn(["MUI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),i);return(s,l)=>{const u=l.options.name;if(u&&u.startsWith("Mui")&&!l.options.link&&!t){if(FOt.includes(s.key))return`Mui-${s.key}`;const g=`${o}${u}-${s.key}`;return!l.options.theme[LOt]||r!==""?g:`${g}-${a()}`}if(process.env.NODE_ENV==="production")return`${o}${n}${a()}`;const p=`${s.key}-${a()}`;return l.options.classNamePrefix?`${o}${l.options.classNamePrefix}-${p}`:`${o}${p}`}}function Bve(){return{plugins:[Dfe(),Rfe(),Lfe(),Nfe(),zfe(),typeof window=="undefined"?null:Gfe(),Yfe()]}}function Vve(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=ie({},t);return process.env.NODE_ENV!=="production"&&typeof n=="string"?(console.error([`MUI: The value \`${n}\` provided to the classes prop of ${xM(r)} is incorrect.`,"You might want to use the className prop instead."].join(`
2872
+ wt.version="2.30.1";c3t(Lo);wt.fn=St;wt.min=JIt;wt.max=KIt;wt.now=QIt;wt.utc=Uu;wt.unix=k6t;wt.months=A6t;wt.isDate=Mw;wt.locale=dp;wt.invalid=O3;wt.duration=Kc;wt.isMoment=Yc;wt.weekdays=M6t;wt.parseZone=I6t;wt.localeData=rf;wt.isDuration=wS;wt.monthsShort=O6t;wt.weekdaysMin=D6t;wt.defineLocale=EN;wt.updateLocale=IIt;wt.locales=AIt;wt.weekdaysShort=j6t;wt.normalizeUnits=dc;wt.relativeTimeRounding=aOt;wt.relativeTimeThreshold=sOt;wt.calendarFormat=SAt;wt.prototype=St;wt.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 cOt=Im({DATE:ba().default(wt().format("YYYY-MM-DD")),START_TIME:ba().default(wt().format("HH:mm")),DURATION:ba({required_error:"Please enter meeting duration!"})}),uOt=e=>{var _,w,x,C,S,k;const{meetingId:t,setMeetingId:n}=e,r=Ia(),o=Ni(T=>T.pushAlert),{ONE_TO_ONE_TYPES:i,ONE_TO_ONE_MEDIUM_TYPES:a}=cc("en"),{data:s,isFetching:l}=ki(Xi,{url:`${dn.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:u,isLoading:p}=Po(fi,"rescheduleOneToOne",{onSuccess:({data:{message:T,data:E}})=>{if(E!=null&&E.loginRequired)return b("",E==null?void 0:E.loginLink);r.invalidateQueries("fetchOneToOne"),r.invalidateQueries("fetchOneToOneDetails"),o({message:T||"Meeting has been rescheduled successfully!",type:"success"}),y()},onError:()=>{o({message:"Error, while rescheduleing the meeting!",type:"error"})}}),g=V.useMemo(()=>{var T,E,I;if(s)return{DURATION:jn.convertToMinutes(((T=s==null?void 0:s.meetingDetails)==null?void 0:T.DURATION)||"00:30:00").toString(),START_TIME:((E=s==null?void 0:s.meetingDetails)==null?void 0:E.START_TIME)||wt().format("HH:mm"),DATE:((I=s==null?void 0:s.meetingDetails)==null?void 0:I.DATE)||wt().format("YYYY-MM-DD")}},[s]),{control:h,formState:{errors:m},handleSubmit:c,reset:f}=Am({resolver:ib(cOt),mode:"onChange",values:g}),v=()=>{c(T=>{const F=T,{START_TIME:E,DURATION:I}=F,A=Wr(F,["START_TIME","DURATION"]),{hours:M,minutes:j,seconds:P}=jn.convertTime(`00:${I}:00`);let R=ie({MEETING_ID:t,DURATION:`${M}:${j}:${P}`,START_TIME:`${E}:00`},A);u({data:R,url:dn.ONE_TO_ONE.RESCHEDULE})})()},b=(T,E)=>{const I=jn.openPopup(E,T,600,600),A=setInterval(()=>{I!=null&&I.closed&&(clearInterval(A),v())},1e3)},y=()=>(f(),n(void 0));return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:l||p}),O.jsx(Xm,{title:O.jsxs(We,{display:"flex",flexDirection:"row",alignItems:"center",children:[O.jsx(Qr,{children:O.jsx(fN,{color:"primary"})}),O.jsx(hp,{level:5,fontSize:16,children:"Reschedule One To One"})]}),open:!!t,onClose:y,maxWidth:"md",children:O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsxs(We,{display:"flex",gap:1,alignItems:"center",mb:1,children:[O.jsx(Lt,{fontSize:14,children:"Schedule With"}),O.jsxs("div",{className:"avatar_container",children:[O.jsx(ql,{sx:{height:30,width:30},src:(_=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_IMAGE_PROFILE)!=null?_:`https://robohash.org/${s==null?void 0:s.meetingDetails.SCHEDULE_WITH}`}),O.jsxs("span",{children:[(w=s==null?void 0:s.meetingDetails.SCHEDULE_WITH)!=null?w:"--"," (",(x=s==null?void 0:s.meetingDetails.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?x:"--",")"]})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(xa,{label:"Meeting Title",value:(s==null?void 0:s.meetingDetails.TITLE)||"",required:!0,disabled:!0,size:"sm"}),O.jsx(xa,{type:"textarea",label:"Description",value:(s==null?void 0:s.meetingDetails.DESCRIPTION)||"",size:"sm",disabled:!0})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(Lt,{fontSize:14,children:"Choose Date & Time"}),O.jsx(dr,{name:"DATE",control:h,render:({field:T})=>O.jsx("input",ie({className:"input-date",type:"date"},T))}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"START_TIME",control:h,render:({field:T})=>O.jsx("input",ie({className:"input-date",type:"time",style:{flex:1}},T))}),O.jsx(dr,{name:"DURATION",control:h,render:I=>{var{field:A}=I,M=A,{value:T}=M,E=Wr(M,["value"]);return O.jsx(We,{display:"flex",flexDirection:"column",flex:1,children:O.jsx(xa,ie({required:!0,placeholder:"Duration in minutes",type:"number",value:T||"",error:m!=null&&m.DURATION?m==null?void 0:m.DURATION.message:""},E))})}})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsx(Lt,{fontSize:14,children:"Choose Medium"}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(H2,{value:(s==null?void 0:s.meetingDetails.MEDIUM_ID)||0,disabled:!0,sx:{width:1},size:"small",children:i.map((T,E)=>O.jsx(Fp,{value:T.value,children:T.label},E))}),O.jsx(al,{label:(C=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:C.LABEL,sx:{width:1},value:((k=s==null?void 0:s.meetingDetails)==null?void 0:k[(S=a==null?void 0:a[s==null?void 0:s.meetingDetails.MEDIUM_ID])==null?void 0:S.COLUMN_NAME])||"",disabled:!0,size:"small",variant:"outlined"})]})]}),O.jsxs(We,{marginTop:2,display:"flex",justifyContent:"flex-end",gap:2,children:[O.jsx(Ko,{size:"small",variant:"outlined",onClick:y,children:"Cancel"}),O.jsx(Ko,{size:"small",onClick:()=>v(),children:"Submit"})]})]})})]})},dOt=_e(AR)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),fOt=e=>{var B,H,Z,U,Y,J,Q,ne,te,ae,pe,he,oe,ue,ye,me,xe,fe,ce,Ee,q,re,ee,Ce,ge,de,Te,Ie,Ae,je,Fe,Ue,Je,it,Ge,$e,nt,xt;const{meetingId:t,setMeetingId:n,openReScheduleModalMeetingId:r,setReScheduleModalMeetingId:o}=e,i=Ia(),a=hi(He=>He.session.ASSETS_BASE_URL),s=Ni(He=>He.pushAlert),{session:{user:l}}=hi(),{ImageViewer:u,setImageURL:p}=k3(),{PdfViewer:g,setPdfURL:h}=QF(),{ONE_TO_ONE_MEDIUM_TYPES:m}=cc("en"),{data:c,isFetching:f}=ki(Xi,{url:`${dn.ONE_TO_ONE.FETCH_ONE}/${t}`,params:{WITH_REMARK:!0}},"fetchOneToOneDetails",{enabled:!!t}),{mutate:v,isLoading:b}=Po(fi,"completeOneToOne",{onSuccess:()=>{i.invalidateQueries("fetchOneToOne"),i.invalidateQueries("fetchOneToOneDetails"),n(void 0),s({message:"Meeting has been completed successfully!",type:"success"})},onError:He=>{var Ct,lt;s({message:((lt=(Ct=He==null?void 0:He.response)==null?void 0:Ct.data)==null?void 0:lt.message)||"Error! while completing the one to one!",type:"error"})}}),{mutate:y,isLoading:_}=Po(fi,"createOneToOneRemark",{onSuccess:He=>{var Ct;i.invalidateQueries("fetchOneToOneDetails"),s({message:((Ct=He==null?void 0:He.data)==null?void 0:Ct.message)||"Remark has been created successfully!",type:"success"}),C()},onError:He=>{var Ct,lt;s({message:((lt=(Ct=He==null?void 0:He.response)==null?void 0:Ct.data)==null?void 0:lt.message)||"Error, while creating the remark!",type:"error"})}}),{control:w,watch:x,reset:C,handleSubmit:S}=Am({resolver:ib(Ukt),mode:"onChange",values:{VISIBLE_TO:(c==null?void 0:c.meetingDetails.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id)?1:0,FILES:[],IMAGES:[],TEXT:""}}),{append:k,remove:T}=k1({name:"IMAGES",control:w}),{append:E,remove:I}=k1({name:"FILES",control:w}),[A,M,j]=x(["TEXT","FILES","IMAGES"]),P=(He,Ct,lt)=>{var Nt,nn,yt,Wt;switch(He){case oi.SHEDULE_BY_WITH_OUTSIDE:return Ct===(l==null?void 0:l.employee_id)||lt===(l==null?void 0:l.employee_id);case oi.SHEDULE_BY_WITH:return((Nt=c==null?void 0:c.meetingDetails)==null?void 0:Nt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id)||((nn=c==null?void 0:c.meetingDetails)==null?void 0:nn.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);case oi.SHEDULE_BY:return((yt=c==null?void 0:c.meetingDetails)==null?void 0:yt.SCHEDULE_BY_ID)===(l==null?void 0:l.employee_id);case oi.SHEDULE_WITH:return((Wt=c==null?void 0:c.meetingDetails)==null?void 0:Wt.SCHEDULE_WITH_ID)===(l==null?void 0:l.employee_id);default:return!1}},R=He=>{const Ct=He.target.files;if(!(!Ct||!Ct.length))for(const lt of Ct)k(lt)},F=He=>{M.length>10&&s({message:"You can only add upto 10 maximum files",type:"error"});const Ct=He.target.files;if(!(!Ct||!Ct.length))for(const lt of Ct)E(lt)},N=S(Nt=>Gt(exports,null,function*(){var nn=Nt,{IMAGES:He,FILES:Ct}=nn,lt=Wr(nn,["IMAGES","FILES"]);const yt=[...Ct,...He],Wt=Pe(ie({},lt),{FILES:yt,MEETING_ID:t}),Mn=jn.convertToFormData(Wt);y({url:dn.ONE_TO_ONE.REMARK.CREATE,data:Mn})})),$=()=>{v({url:dn.ONE_TO_ONE.UPDATE,data:{MEETING_ID:t,MEETING_STATUS:Bge.COMPLETED}})};return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:f||b||_}),O.jsx(Ow,{title:O.jsx(hp,{level:5,fontSize:16,children:"Meeting Details"}),open:!!t,handleClose:()=>n(void 0),children:O.jsxs("div",{className:bc.meeting__details,children:[O.jsx("div",{className:bc.meeting__details__topbox,children:O.jsxs(yr,{container:!0,children:[O.jsxs(yr,{item:!0,md:8,children:[O.jsxs("h3",{children:[(B=c==null?void 0:c.meetingDetails)==null?void 0:B.TITLE,O.jsx("span",{style:{color:((H=c==null?void 0:c.meetingDetails)==null?void 0:H.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":((Z=c==null?void 0:c.meetingDetails)==null?void 0:Z.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:(U=c==null?void 0:c.meetingDetails)==null?void 0:U.DISPLAY_MEETING_STATUS})]}),O.jsx("p",{className:bc.meeting_desc,children:(Y=c==null?void 0:c.meetingDetails)==null?void 0:Y.DESCRIPTION}),O.jsxs("div",{className:bc.bottom_create_loaction,children:[O.jsxs("p",{children:["Created by: ",O.jsxs("span",{children:[(Q=(J=c==null?void 0:c.meetingDetails)==null?void 0:J.SCHEDULE_BY)!=null?Q:"--"," (",(te=(ne=c==null?void 0:c.meetingDetails)==null?void 0:ne.SCHEDULE_BY_EMPLOYEE_CODE)!=null?te:"--",")"]})]}),O.jsxs("p",{children:["Created on: ",O.jsx("span",{children:(pe=(ae=c==null?void 0:c.meetingDetails)==null?void 0:ae.CREATED_DATE)!=null?pe:"--"}),O.jsx("span",{children:(oe=(he=c==null?void 0:c.meetingDetails)==null?void 0:he.CREATED_TIME)!=null?oe:"--"})]}),O.jsxs("p",{children:["Medium: ",O.jsx("span",{children:(ye=(ue=c==null?void 0:c.meetingDetails)==null?void 0:ue.MEDIUM)!=null?ye:"--"})]}),O.jsxs("p",{children:[(xe=m[(me=c==null?void 0:c.meetingDetails)==null?void 0:me.MEDIUM_ID])==null?void 0:xe.LABEL,": ",((fe=c==null?void 0:c.meetingDetails)==null?void 0:fe.MEDIUM_ID)===2||((ce=c==null?void 0:c.meetingDetails)==null?void 0:ce.MEDIUM_ID)===4?O.jsx("a",{href:(re=c==null?void 0:c.meetingDetails)==null?void 0:re[(q=m[(Ee=c==null?void 0:c.meetingDetails)==null?void 0:Ee.MEDIUM_ID])==null?void 0:q.COLUMN_NAME],children:O.jsx(Nd,{limit:60,data:(de=(ge=c==null?void 0:c.meetingDetails)==null?void 0:ge[(Ce=m[(ee=c==null?void 0:c.meetingDetails)==null?void 0:ee.MEDIUM_ID])==null?void 0:Ce.COLUMN_NAME])!=null?de:"--"})}):O.jsx("span",{children:(je=(Ae=c==null?void 0:c.meetingDetails)==null?void 0:Ae[(Ie=m[(Te=c==null?void 0:c.meetingDetails)==null?void 0:Te.MEDIUM_ID])==null?void 0:Ie.COLUMN_NAME])!=null?je:"--"})]})]})]}),O.jsx(yr,{item:!0,md:4,style:{textAlign:"right"},children:((Fe=c==null?void 0:c.meetingDetails)==null?void 0:Fe.DISPLAY_MEETING_STATUS)!=="Completed"?O.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"right"},children:[!!P(oi==null?void 0:oi.SHEDULE_BY_WITH)&&O.jsx(Ko,{size:"small",onClick:()=>{o(t)},variant:"outlined",children:"Re-schedule"}),!!P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsx(Ko,{size:"small",onClick:$,children:"Mark as Complete"})]}):null})]})}),O.jsxs("div",{className:bc.date__time__box,children:[O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(I3,{})}),(Ue=c==null?void 0:c.meetingDetails)==null?void 0:Ue.DATE]}),O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(aN,{})}),(Je=c==null?void 0:c.meetingDetails)==null?void 0:Je.START_TIME," - ",(it=c==null?void 0:c.meetingDetails)==null?void 0:it.END_TIME]})]}),O.jsxs("div",{className:bc.connected__meeting,children:[O.jsx("span",{style:{marginRight:"5px"},children:O.jsx(zge,{})}),"Conducted with:",O.jsxs("span",{style:{marginLeft:"5px"},children:[(Ge=c==null?void 0:c.meetingDetails)==null?void 0:Ge.SCHEDULE_WITH," (",(nt=($e=c==null?void 0:c.meetingDetails)==null?void 0:$e.SCHEDULE_WITH_EMPLOYEE_CODE)!=null?nt:"--",")"]})]}),O.jsxs(O.Fragment,{children:[Array.isArray(c==null?void 0:c.meetingRemark)&&((xt=c==null?void 0:c.meetingRemark)==null?void 0:xt.map((He,Ct)=>{var lt,Nt,nn;return O.jsx(O.Fragment,{children:((He==null?void 0:He.DISPLAY_VISIBLE_TO)==="Visible to me"&&!P(oi==null?void 0:oi.SHEDULE_WITH)||(He==null?void 0:He.DISPLAY_VISIBLE_TO)==="Visible to All")&&O.jsx("div",{className:bc.remarks__meeting,children:O.jsxs("div",{style:{marginBottom:"20px"},children:[O.jsxs("h4",{children:["Remarks",P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsxs("span",{children:[O.jsx(Vge,{sx:{height:"20px",width:"20px",marginRight:"5px"}})," ",(He==null?void 0:He.DISPLAY_VISIBLE_TO)||"Visible to "]})]}),O.jsx("p",{children:He==null?void 0:He.TEXT}),O.jsx("div",{className:"images__structure",children:(He==null?void 0:He.REMARK_ATTACHMENTS)&&((lt=He==null?void 0:He.REMARK_ATTACHMENTS)==null?void 0:lt.map(yt=>O.jsx(O.Fragment,{children:(yt==null?void 0:yt.FILE_TYPE)==="pdf"||(yt==null?void 0:yt.FILE_TYPE)==="xls"?O.jsxs(We,{className:"pdfView__preview",children:[O.jsx(We,{mr:1,display:"flex",alignItems:"center",children:(yt==null?void 0:yt.FILE_TYPE)==="pdf"?O.jsx(Hkt,{size:18}):O.jsx(A3,{style:{width:"30px"}})}),O.jsxs(We,{children:[O.jsx("p",{children:O.jsx(Nd,{data:yt==null?void 0:yt.FILE_NAME,limit:20})}),O.jsx("div",{className:bc.previeww__color,onClick:()=>h(`${a}/${yt==null?void 0:yt.FILE_PATH}`),children:"Preview"})]})]}):null})))}),O.jsx("div",{className:"images__structure",children:(He==null?void 0:He.REMARK_ATTACHMENTS)&&((Nt=He==null?void 0:He.REMARK_ATTACHMENTS)==null?void 0:Nt.map(yt=>O.jsx(O.Fragment,{children:(yt==null?void 0:yt.FILE_TYPE)==="png"||(yt==null?void 0:yt.FILE_TYPE)==="jpeg"||(yt==null?void 0:yt.FILE_TYPE)==="webp"||(yt==null?void 0:yt.FILE_TYPE)==="jpg"?O.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>p(`${a}/${yt==null?void 0:yt.FILE_PATH}`),alt:"",src:`${a}/${yt==null?void 0:yt.FILE_PATH}`,width:200}):null})))}),O.jsxs("div",{className:bc.comment__users__meeting,children:[O.jsx(ql,{alt:"",sx:{width:22,height:22,marginRight:"10px"},src:((nn=He==null?void 0:He.remark_auther)==null?void 0:nn.profileSrc)||`https://robohash.org/${He==null?void 0:He.CREATED_BY}`}),He==null?void 0:He.CREATED_BY," ",O.jsx("span",{children:He==null?void 0:He.CREATED_DATE}),O.jsx("span",{children:He==null?void 0:He.CREATED_TIME})]})]})},Ct)})})),P(oi==null?void 0:oi.SHEDULE_BY_WITH)&&O.jsxs("div",{className:bc.editor__remarks,children:[O.jsx(dr,{control:w,name:"TEXT",render:({field:{value:He,onChange:Ct,onBlur:lt}})=>O.jsx(dOt,{placeholder:"Type your remarks",value:He,onChange:Nt=>Ct(Nt.target.value),onBlur:lt})}),O.jsx(We,{className:"main__upload__box",mx:2,children:j==null?void 0:j.map((He,Ct)=>O.jsxs(We,{className:"all__upload__images",children:[O.jsx("img",{src:URL.createObjectURL(He),height:"200",alt:"upload"}),O.jsx("button",{onClick:()=>T(Ct),children:O.jsx(Ld,{style:{width:"20px",height:"20px"}})})]},He))}),O.jsx(We,{className:"main__upload__box",mx:2,children:M==null?void 0:M.map((He,Ct)=>O.jsxs(We,{className:"pdfView__preview",children:[O.jsx(We,{style:{marginRight:"10px"},children:O.jsx("p",{children:O.jsx(n2,{size:22,color:"red"})})}),O.jsx(We,{children:O.jsx("p",{children:O.jsx(Nd,{data:He==null?void 0:He.name,limit:20})})}),O.jsx("button",{onClick:()=>I(Ct),children:O.jsx(Ld,{style:{width:"20px",height:"20px"}})})]}))}),O.jsxs("div",{className:bc.editor__bottom,children:[O.jsxs(We,{display:"flex",gap:1,children:[O.jsxs("label",{style:{cursor:"pointer"},children:[O.jsx("input",{type:"file",value:"",style:{display:"none"},onChange:R,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),O.jsx("span",{children:O.jsx(tN,{})})]}),O.jsxs("label",{style:{cursor:"pointer"},children:[O.jsx("input",{id:"fileUpload",type:"file",value:"",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:F,disabled:(M==null?void 0:M.length)>10,style:{display:"none"}}),O.jsx("span",{children:O.jsx(cN,{})})]})]}),O.jsxs("div",{className:"start-flex",children:[P(oi==null?void 0:oi.SHEDULE_BY)&&O.jsx(dr,{control:w,name:"VISIBLE_TO",render:({field:{value:He,onChange:Ct}})=>O.jsx(Mc,{style:{marginRight:"20px"},control:O.jsx(Y2,{sx:{marginLeft:"10px"},size:"small",checked:!!He}),label:"Show to employee",labelPlacement:"start",onChange:(lt,Nt)=>(Ct(+Nt),lt)})}),O.jsx(Ko,{size:"small",onClick:N,disabled:!A||(A==null?void 0:A.length)===0,children:"Send"})]})]})]})]})]})}),O.jsx(uOt,{meetingId:r,setMeetingId:o}),O.jsx(u,{}),O.jsx(g,{})]})},pOt=Im({MEETING_TITLE:ba({required_error:"Please enter meeting title!"}).min(1,{message:"Please enter meeting title!"}),DESCRIPTION:ba().max(150,{message:"Description must be under 150 characters!"}).optional(),SCHEDULE_WITH:vp({required_error:"Please choose employee to schedule!"}).min(1,{message:"Please choose employee to schedule!"}),DATE:ba().default(wt().format("YYYY-MM-DD")),START_TIME:ba().default(wt().format("HH:mm")),DURATION:ba({required_error:"Please enter meeting duration!"}).min(1,{message:"Please enter meeting duration!"}),MEDIUM:vp().default(1),MEDIUM_ALIAS:ba().optional(),EVENT_UID:ba().optional()}),_5={GOOGLE_MEET:2,MS_TEAMS:4},Pve=e=>{var B,H,Z;const{open:t,setOpen:n,employee:r,empNameKey:o,empIdKey:i,empCodeKey:a,empProfileImageKey:s}=e,l=Ia(),{user:u}=hi(U=>U.session),p=Ni(U=>U.pushAlert),{ONE_TO_ONE_TYPES:g,ONE_TO_ONE_MEDIUM_TYPES:h}=cc("en"),{mutate:m,isLoading:c}=Po(fi,"scheduleOneToOne",{onSuccess:()=>{l.invalidateQueries("fetchOneToOne"),p({message:"Meeting has been scheduled successfully!",type:"success"}),E(),n(!1)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while scheduleing the meeting!",type:"error"})}}),{mutate:f}=Po(WP,"cancelVirtualMeetLink"),{mutate:v,isLoading:b}=Po(fi,"generateGoogleMeetLink",{onSuccess:({data:{message:U,data:Y}})=>{if(Y!=null&&Y.loginRequired)return R(Y==null?void 0:Y.loginLink);p({message:U,type:"success"}),T("MEDIUM",2),T("EVENT_UID",Y==null?void 0:Y.id),T("MEDIUM_ALIAS",Y==null?void 0:Y.hangoutLink)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while generating the Google Meet link!",type:"error"})}}),{mutate:y,isLoading:_}=Po(fi,"generateMsTeamMeetLink",{onSuccess:({data:{message:U,data:Y}})=>{var J;if(Y!=null&&Y.loginRequired)return F(Y==null?void 0:Y.loginLink);p({message:U,type:"success"}),T("MEDIUM",4),T("EVENT_UID",Y==null?void 0:Y.id),T("MEDIUM_ALIAS",(J=Y==null?void 0:Y.onlineMeeting)==null?void 0:J.joinUrl)},onError:U=>{var Y;p({message:((Y=U==null?void 0:U.response)==null?void 0:Y.data.message)||"Error, while generating the Microsoft Teams link!",type:"error"})}}),{control:w,formState:{errors:x},trigger:C,watch:S,handleSubmit:k,setValue:T,reset:E,getValues:I}=Am({resolver:ib(pOt),mode:"onChange",defaultValues:{SCHEDULE_WITH:(r==null?void 0:r[`${i}`])||0,MEETING_TITLE:"",DESCRIPTION:"",DURATION:"",MEDIUM_ALIAS:"",MEDIUM:1,START_TIME:wt().format("HH:mm"),DATE:wt().format("YYYY-MM-DD")}}),[A,M]=S(["MEDIUM","DESCRIPTION"]),j=()=>{k(U=>{const oe=U,{MEDIUM:Y,MEDIUM_ALIAS:J,START_TIME:Q,DURATION:ne}=oe,te=Wr(oe,["MEDIUM","MEDIUM_ALIAS","START_TIME","DURATION"]),{hours:ae,minutes:pe,seconds:he}=jn.convertTime(`00:${ne}:00`);U=ie({MEDIUM:Y,DURATION:`${ae}:${pe}:${he}`,START_TIME:`${Q}:00`,[h==null?void 0:h[Y].COLUMN_NAME]:J},te),m({data:U,url:dn.ONE_TO_ONE.CREATE})})()},P=U=>Gt(exports,null,function*(){if(!(yield C()))return;const he=I(),{START_TIME:Y,DURATION:J}=he,Q=Wr(he,["START_TIME","DURATION"]),{hours:ne,minutes:te,seconds:ae}=jn.convertTime(`00:${J}:00`),pe=ie({DURATION:`${ne}:${te}:${ae}`,START_TIME:`${Y}:00`},Q);switch(U){case _5.GOOGLE_MEET:v({url:dn.ONE_TO_ONE.GOOGLE_MEET.CREATE,data:pe});break;case _5.MS_TEAMS:y({url:dn.ONE_TO_ONE.MS_TEAMS.CREATE,data:pe});break}}),R=U=>{const Y=N(U,"Google Login",600,600),J=setInterval(()=>{Y!=null&&Y.closed&&(P(_5.GOOGLE_MEET),clearInterval(J))},1e3)},F=U=>{const Y=N(U,"Microsoft Login",600,600),J=setInterval(()=>{Y!=null&&Y.closed&&(clearInterval(J),P(_5.MS_TEAMS))},1e3)},N=(U,Y,J,Q)=>{const ne=window.innerWidth/2-J/2,te=window.innerHeight/2-Q/2;return window.open(U,Y,`width=${J},height=${Q},top=${te},left=${ne}`)},$=()=>{const U=I("EVENT_UID");U&&f({url:dn.ONE_TO_ONE.GOOGLE_MEET.CANCEL,data:{EVENT_UID:U,MEDIUM:A}}),E(),n(!1)};return O.jsxs(O.Fragment,{children:[O.jsx(qm,{visible:c||b||_}),O.jsx(Xm,{title:O.jsxs(We,{display:"flex",flexDirection:"row",alignItems:"center",children:[O.jsx(Qr,{children:O.jsx(fN,{color:"primary",sx:{color:u==null?void 0:u.PRODUCT_THEME_COLOR,fontSize:28}})}),O.jsx(hp,{level:5,children:"Schedule One To One"})]}),open:t,onClose:$,maxWidth:"md",children:O.jsxs(We,{mt:1,display:"flex",flexDirection:"column",gap:1,children:[O.jsxs(We,{display:"flex",gap:2,mb:1,children:[O.jsx(Lt,{mt:1,fontSize:14,children:"Schedule With"}),r?O.jsxs("div",{className:"avatar_container",children:[O.jsx(ql,{sx:{height:30,width:30},src:(B=r==null?void 0:r[`${s}`])!=null?B:`https://robohash.org/${r==null?void 0:r[`${o}`]}`}),O.jsxs("span",{children:[(H=r==null?void 0:r[`${o}`])!=null?H:"--"," ",(Z=r==null?void 0:r[`${a}`])!=null?Z:"--"]})]}):O.jsx(dr,{name:"SCHEDULE_WITH",control:w,render:({field:{onChange:U}})=>O.jsxs(We,{children:[O.jsx(BE,{searchKey:"search",endpoint:dn.EMPLOYEE.SEARCH,reqParams:{search_for:"appreciation",search:""},optionValue:"EMPLOYEE_ID",optionTitleFn:Y=>`${(Y==null?void 0:Y.EMPLOYEE_NAME)||"--"} (${Y.EMPLOYEE_CODE||"--"})`,inputPlaceHolder:"Choose Employee",onChange:Y=>U((Y==null?void 0:Y.value)||0)}),!!(x!=null&&x.SCHEDULE_WITH)&&O.jsxs("div",{className:"form_error",children:[O.jsx(Fd,{}),O.jsx("p",{children:x.SCHEDULE_WITH.message})]})]})})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(dr,{name:"MEETING_TITLE",control:w,render:({field:U})=>O.jsx(We,{children:O.jsx(xa,ie({label:"Meeting Title",required:!0,size:"sm",error:x!=null&&x.MEETING_TITLE?x.MEETING_TITLE.message:""},U))})}),O.jsx(dr,{name:"DESCRIPTION",control:w,render:({field:U})=>O.jsxs(We,{display:"flex",flexDirection:"column",children:[O.jsx(xa,ie({label:"Description",size:"sm",type:"textarea",style:{minHeight:100},error:x!=null&&x.DESCRIPTION?x.DESCRIPTION.message:""},U)),O.jsx("div",{className:"mt-10",children:O.jsxs("span",{style:{float:"right",color:"#172b4d"},children:[(M==null?void 0:M.length)||0,"/150"]})})]})})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:2,children:[O.jsx(Lt,{fontSize:14,children:"Choose Date & Time"}),O.jsx(dr,{name:"DATE",control:w,render:({field:U})=>O.jsx("input",ie({className:"input-date",type:"date"},U))}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"START_TIME",control:w,render:({field:U})=>O.jsx(xa,ie({type:"time",className:"input-time",style:{flex:1,paddingLeft:6,paddingRight:6}},U))}),O.jsx(dr,{name:"DURATION",control:w,render:({field:U})=>O.jsx(xa,ie({label:"Duration in minutes",placeholder:"Duration in minutes",floatingLabel:!0,required:!0,size:"sm",type:"number",style:{flex:1},error:x!=null&&x.DURATION?x.DURATION.message:""},U))})]})]}),O.jsxs(We,{display:"flex",flexDirection:"column",gap:1,children:[O.jsx(Lt,{fontSize:14,children:"Choose Medium"}),O.jsxs(We,{display:"flex",gap:1,children:[O.jsx(dr,{name:"MEDIUM",control:w,render:({field:{value:U,onChange:Y}})=>O.jsx(O.Fragment,{children:O.jsx(Hl,{size:"sm",value:U,searchByID:!0,onChange:J=>{J===2||J===4?P(J):Y(J),T("MEDIUM_ALIAS","")},options:g})})}),O.jsx(dr,{name:"MEDIUM_ALIAS",control:w,render:({field:{name:U,value:Y,onChange:J}})=>{var Q;return O.jsx(O.Fragment,{children:O.jsx(xa,{placeholder:(Q=h==null?void 0:h[A])==null?void 0:Q.LABEL,name:U,value:Y,onChange:J,disabled:A===2||A===4,size:"sm"})})}})]})]}),O.jsxs(We,{marginTop:.5,display:"flex",justifyContent:"flex-end",gap:2,children:[O.jsx(Ko,{variant:"outlined",onClick:$,children:"Cancel"}),O.jsx(Ko,{onClick:()=>j(),children:"Submit"})]})]})})]})},hOt="_one__to__one__card_ec5u0_1",mOt="_one__to__one__card__top_ec5u0_11",gOt="_one__to__one__icon_ec5u0_17",vOt="_face__to__face_ec5u0_58",S5={one__to__one__card:hOt,one__to__one__card__top:mOt,one__to__one__icon:gOt,face__to__face:vOt},bOt=e=>{const{CONCERN:t="self",employee_id:n}=e,r=Ia(),{user:o,token:i}=hi(M=>M.session),a=Ni(M=>M.pushAlert),{FEEDBACK_TABS:s,MONTH_FILTERS_OPTIONS:l,ONE_TO_ONE_SCHEDULE_OPTIONS:u}=cc("en"),[p,g]=V.useState(void 0),[h,m]=V.useState(void 0),[c,f]=V.useState(void 0),[v,b]=V.useState(!1),[{ONE_TO_ONE_TYPE:y,MONTH_FILTER:_,MEETING_STATUS:w,SEARCH_QUERY:x},C]=V.useState({ONE_TO_ONE_TYPE:"given",MEETING_STATUS:u[0],MONTH_FILTER:l[1],SEARCH_QUERY:void 0}),{data:S,isFetching:k}=ki(fi,{url:dn.ONE_TO_ONE.FETCH,token:i,data:{ONE_TO_ONE_TYPE:y,MEETING_STATUS:w.value,MONTH_FILTER:_==null?void 0:_.value,SEARCH_QUERY:x,CONCERN:t,employee_id:n}},"fetchOneToOne"),{mutate:T,isLoading:E}=Po(fi,"cancelOneToOne",{onSuccess:({data:{message:M,data:j}})=>{if(j!=null&&j.loginRequired)return A("",j==null?void 0:j.loginLink);r.invalidateQueries("fetchOneToOne"),a({message:M||"Meeting has been canceled successfully!",type:"success"})},onError:M=>{var j,P;a({message:((P=(j=M==null?void 0:M.response)==null?void 0:j.data)==null?void 0:P.message)||"Error! while canceling the meeting!",type:"error"})}});V.useEffect(()=>{p&&I()},[p]);const I=()=>{const{ID:M}=p;let j={MEETING_ID:M,MEETING_STATUS:Bge.CANCELED};T({token:i,data:j,url:dn.ONE_TO_ONE.UPDATE})},A=(M,j)=>{const P=jn.openPopup(j,M,600,600),R=setInterval(()=>{P!=null&&P.closed&&(clearInterval(R),I())},1e3)};return Bs(k||E),O.jsxs(O.Fragment,{children:[O.jsxs(We,{className:"overview__container__bg",style:{overflow:"hidden"},children:[O.jsxs("div",{className:"flex-between-center g-10",children:[O.jsxs(We,{display:"flex",gap:2,flexDirection:"row",children:[O.jsx(xa,{leftIcon:O.jsx(T3,{sx:{height:18,width:18,marginTop:"0px"}}),size:"sm",type:"text",placeholder:"Search",name:"searchText",autoComplete:"off",debounceDelay:600,onDebouncedChange:M=>C(j=>Pe(ie({},j),{SEARCH_QUERY:M}))}),O.jsx("div",{style:{width:200},children:O.jsx(Hl,{size:"sm",value:_,options:l,placeholder:"Month",onChange:M=>C(j=>Pe(ie({},j),{MONTH_FILTER:M})),menuPortalTarget:document.body})}),O.jsx("div",{style:{width:200},children:O.jsx(Hl,{size:"sm",value:w,options:u,placeholder:"Month",onChange:M=>C(j=>Pe(ie({},j),{MEETING_STATUS:M})),menuPortalTarget:document.body})})]}),O.jsxs("div",{className:"flex-end-center g-10",children:[O.jsx(KR,{items:s,value:y,onChangeTab:(M,j)=>C(P=>Pe(ie({},P),{ONE_TO_ONE_TYPE:j}))}),!n&&O.jsx(Ko,{size:"small",onClick:()=>b(!0),disableElevation:!0,children:"Schedule One to One"})]})]}),O.jsx(We,{className:"one__to__one__list",display:"flex",flexDirection:"column",gap:2,children:(S==null?void 0:S.length)>0?S.map((M,j)=>O.jsxs(We,{className:S5.one__to__one__card,children:[O.jsxs("div",{className:S5.one__to__one__card__top,children:[O.jsxs("div",{className:"flex-start-center",style:{cursor:"pointer"},onClick:()=>m(M==null?void 0:M.ID),children:[O.jsx("div",{className:S5.one__to__one__icon,children:O.jsx($ge,{})}),O.jsxs(ep,{size:"sm",children:[M==null?void 0:M.MEETING_TITLE," ",O.jsx("span",{style:{color:(M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Completed"?"#44b362":(M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Upcoming"?"#FAC800":"#ea3c3c"},children:M==null?void 0:M.DISPLAY_MEETING_STATUS})]})]}),O.jsx("div",{className:"flex-start-center g-10",children:O.jsx("div",{className:S5.face__to__face,children:M==null?void 0:M.MEDIUM})})]}),O.jsxs(We,{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:1,children:[O.jsxs("div",{className:"one__icons__bottom",children:[O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(I3,{})}),M==null?void 0:M.DATE]}),O.jsxs("p",{children:[O.jsx("span",{children:O.jsx(aN,{})})," ",M==null?void 0:M.START_TIME," - ",M==null?void 0:M.END_TIME]}),O.jsxs("p",{children:[O.jsx("span",{style:{marginRight:"5px"},children:"Schedule By:"}),M==null?void 0:M.SCHEDULE_BY]}),O.jsxs("p",{children:[O.jsx("span",{style:{marginRight:"5px"},children:"Schedule With:"}),M==null?void 0:M.SCHEDULE_WITH]})]}),O.jsx(We,{display:"flex",gap:2,children:((M==null?void 0:M.SCHEDULE_BY_ID)===(o==null?void 0:o.employee_id)||(M==null?void 0:M.SCHEDULE_WITH_ID)===(o==null?void 0:o.employee_id))&&((M==null?void 0:M.DISPLAY_MEETING_STATUS)==="Completed"?O.jsx(Ko,{size:"small",variant:"text",onClick:()=>m(M==null?void 0:M.ID),children:"Add Remarks"}):O.jsxs(O.Fragment,{children:[O.jsx(Ko,{size:"small",variant:"text",onClick:()=>f(M==null?void 0:M.ID),children:"Reschedule"}),O.jsx(Ko,{size:"small",variant:"text",onClick:()=>g(M),children:"Cancel"})]}))})]})]},j)):O.jsx(_d,{message:"No One to One's found"})})]}),O.jsx(fOt,{meetingId:h,setMeetingId:m,openReScheduleModalMeetingId:c,setReScheduleModalMeetingId:f}),O.jsx(Pve,{open:v,setOpen:b})]})},yOt=V.forwardRef(({placeholder:e="Search...",defaultValue:t="",onSearch:n=()=>{},delay:r=1e3,width:o="210px",styleOverrides:i={}},a)=>{const[s,l]=V.useState(t),u=V.useRef(!1),p=V.useRef(),g=vr.debounce(m=>{n(m)},r);V.useImperativeHandle(a,()=>({clearInput(){l("")}})),V.useEffect(()=>(u.current&&g(s),()=>{g.cancel()}),[s]);const h=m=>{u.current||(u.current=!0),l(m.target.value)};return O.jsxs("div",{className:"flex-start-center search-component m-0",style:ie({background:"#ffffff",border:"1.5px solid #f5f5f5",borderRadius:"4px",width:o},i),children:[O.jsx(zht,{style:{width:14,height:14}}),O.jsx("input",{type:"text",placeholder:e,name:"searchText",autoComplete:"off",value:s,ref:p,onChange:h,style:{margin:"0 !important",width:"100%"},className:"input-search"})]})}),Oh={CREATE:"CREATE",EDIT:"EDIT"},rv={SELF:"self"},xOt={employee_name:"EMPLOYEE NAME",reviewer_name:"REVIEWER NAME",approver_name:"APPROVER NAME",hr_name:"HR NAME",end_date:"END DATE",start_date:"START DATE"},zQ=[{label:"Employee",value:"6"},{label:"Reviewer",value:"2"},{label:"Admin",value:"1"},{label:"HR",value:"3"}],wOt={"popover-list":"_popover-list_qotm2_1"},COt=({isPopoverOpen:e,anchorPosition:t,onClose:n=()=>{},popoverMenu:r=[]})=>O.jsx(V2,{open:e,anchorPosition:t,anchorReference:"anchorPosition",onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:O.jsx(Q0,{className:`${wOt["popover-list"]}`,children:Array.isArray(r)&&r.map((o,i)=>(o.isVisible===void 0||o.isVisible)&&O.jsx(B2,{onClick:o.onClick,sx:{cursor:"pointer"},children:O.jsx(RR,{primaryTypographyProps:{style:{fontWeight:500,color:"inherit"}},primary:o.title})},i))})}),_Ot={employeeId:"",concern:"self",pipId:""},Rve=V.createContext(_Ot),SOt=Rve.Provider,RN=()=>{const e=V.useContext(Rve);if(!e)throw new Error("usePipContext must be used within an PipProvider");return e};var LN={},TOt=On;Object.defineProperty(LN,"__esModule",{value:!0});var Lve=LN.default=void 0,EOt=TOt(Pn()),kOt=O;Lve=LN.default=(0,EOt.default)((0,kOt.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline");var FN={},IOt=On;Object.defineProperty(FN,"__esModule",{value:!0});var Fve=FN.default=void 0,AOt=IOt(Pn()),OOt=O;Fve=FN.default=(0,AOt.default)((0,OOt.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");function mv(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nve(e){if(W.isValidElement(e)||Xl.isValidElementType(e)||!mv(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Nve(e[n])}),t}function wP(e,t,n={clone:!0}){const r=n.clone?ie({},e):e;return mv(e)&&mv(t)&&Object.keys(t).forEach(o=>{W.isValidElement(t[o])||Xl.isValidElementType(t[o])?r[o]=t[o]:mv(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mv(e[o])?r[o]=wP(e[o],t[o],n):n.clone?r[o]=mv(t[o])?Nve(t[o]):t[o]:r[o]=t[o]}),r}const MOt="exact-prop: ​";function jOt(e){return process.env.NODE_ENV==="production"?e:Pe(ie({},e),{[MOt]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function DOt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $ve(e,t=""){return e.displayName||e.name||t}function BQ(e,t,n){const r=$ve(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function xM(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $ve(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Xl.ForwardRef:return BQ(e,e.render,"ForwardRef");case Xl.Memo:return BQ(e,e.type,"memo");default:return}}}function wM(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":DOt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const zve=W.createContext(null);process.env.NODE_ENV!=="production"&&(zve.displayName="ThemeContext");function POt(){const e=W.useContext(zve);return process.env.NODE_ENV!=="production"&&W.useDebugValue(e),e}const ROt=typeof Symbol=="function"&&Symbol.for,LOt=ROt?Symbol.for("mui.nested"):"__THEME_NESTED__",FOt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function NOt(e={}){const{disableGlobal:t=!1,productionPrefix:n="jss",seed:r=""}=e,o=r===""?"":`${r}-`;let i=0;const a=()=>(i+=1,process.env.NODE_ENV!=="production"&&i>=1e10&&console.warn(["MUI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),i);return(s,l)=>{const u=l.options.name;if(u&&u.startsWith("Mui")&&!l.options.link&&!t){if(FOt.includes(s.key))return`Mui-${s.key}`;const g=`${o}${u}-${s.key}`;return!l.options.theme[LOt]||r!==""?g:`${g}-${a()}`}if(process.env.NODE_ENV==="production")return`${o}${n}${a()}`;const p=`${s.key}-${a()}`;return l.options.classNamePrefix?`${o}${l.options.classNamePrefix}-${p}`:`${o}${p}`}}function Bve(){return{plugins:[Dfe(),Rfe(),Lfe(),Nfe(),zfe(),typeof window=="undefined"?null:Gfe(),Yfe()]}}function Vve(e={}){const{baseClasses:t,newClasses:n,Component:r}=e;if(!n)return t;const o=ie({},t);return process.env.NODE_ENV!=="production"&&typeof n=="string"?(console.error([`MUI: The value \`${n}\` provided to the classes prop of ${xM(r)} is incorrect.`,"You might want to use the className prop instead."].join(`
2873
2873
  `)),t):(Object.keys(n).forEach(i=>{process.env.NODE_ENV!=="production"&&(!t[i]&&n[i]&&console.error([`MUI: The key \`${i}\` provided to the classes prop is not implemented in ${xM(r)}.`,`You can only override one of the following: ${Object.keys(t).join(",")}.`].join(`
2874
2874
  `)),n[i]&&typeof n[i]!="string"&&console.error([`MUI: The key \`${i}\` provided to the classes prop is not valid for ${xM(r)}.`,`You need to provide a non empty string instead of: ${n[i]}.`].join(`
2875
2875
  `))),n[i]&&(o[i]=`${t[i]} ${n[i]}`)}),o)}const Rv={set:(e,t,n,r)=>{let o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:(e,t,n)=>{const r=e.get(t);return r?r.get(n):void 0},delete:(e,t,n)=>{e.get(t).delete(n)}};function $Ot(){var t;const e=POt();return(t=e==null?void 0:e.$$material)!=null?t:e}const zOt=mw(Bve()),BOt=NOt(),VOt=new Map,HOt={disableGeneration:!1,generateClassName:BOt,jss:zOt,sheetsCache:null,sheetsManager:VOt,sheetsRegistry:null},jT=W.createContext(HOt);process.env.NODE_ENV!=="production"&&(jT.displayName="StylesContext");let T5;function CP(e){const m=e,{children:t,injectFirst:n=!1,disableGeneration:r=!1}=m,o=Wr(m,["children","injectFirst","disableGeneration"]),i=W.useContext(jT),{generateClassName:a,jss:s,serverGenerateClassName:l,sheetsCache:u,sheetsManager:p,sheetsRegistry:g}=ie(ie({},i),o);process.env.NODE_ENV!=="production"&&n&&o.jss&&console.error("MUI: You cannot use the jss and injectFirst props at the same time.");const h=W.useMemo(()=>{const c={disableGeneration:r,generateClassName:a,jss:s,serverGenerateClassName:l,sheetsCache:u,sheetsManager:p,sheetsRegistry:g};if(process.env.NODE_ENV!=="production"&&typeof window=="undefined"&&!c.sheetsManager&&console.error("MUI: You need to use the ServerStyleSheets API when rendering on the server."),process.env.NODE_ENV!=="production"&&c.jss.options.insertionPoint&&n&&console.error("MUI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time."),!c.jss.options.insertionPoint&&n&&typeof window!="undefined"){if(!T5){const f=document.head;T5=document.createComment("mui-inject-first"),f.insertBefore(T5,f.firstChild)}c.jss=mw({plugins:Bve().plugins,insertionPoint:T5})}return c},[n,r,a,s,l,u,p,g]);return O.jsx(jT.Provider,{value:h,children:t})}process.env.NODE_ENV!=="production"&&(CP.propTypes={children:d.node,disableGeneration:d.bool,generateClassName:d.func,injectFirst:d.bool,jss:d.object,serverGenerateClassName:d.func,sheetsCache:d.object,sheetsManager:d.object,sheetsRegistry:d.object});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(CP.propTypes=jOt(CP.propTypes));let CM=-1e9;function WOt(){return CM+=1,process.env.NODE_ENV!=="production"&&CM>=0&&console.warn(["MUI: You might have a memory leak.","The indexCounter is not supposed to grow that much."].join(`
package/dist/main.js CHANGED
@@ -118366,7 +118366,7 @@ const bOt = $m({
118366
118366
  // />
118367
118367
  // </Box>
118368
118368
  O.jsxs(We, { children: [O.jsx(ok, { searchKey: "search", endpoint: gn.EMPLOYEE.SEARCH, reqParams: { search_for: "appreciation", search: "" }, optionValue: "EMPLOYEE_ID", optionTitleFn: (G) => `${(G == null ? void 0 : G.EMPLOYEE_NAME) || "--"} (${G.EMPLOYEE_CODE || "--"})`, inputPlaceHolder: "Choose Employee", onChange: (G) => Y((G == null ? void 0 : G.value) || 0) }), !!(x != null && x.SCHEDULE_WITH) && O.jsxs("div", { className: "form_error", children: [O.jsx(Gd, {}), O.jsx("p", { children: x.SCHEDULE_WITH.message })] })] })
118369
- ) })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 2, children: [O.jsx(vr, { name: "MEETING_TITLE", control: w, render: ({ field: Y }) => O.jsx(We, { children: O.jsx(Ia, ie({ label: "Meeting Title", required: !0, size: "sm", error: x != null && x.MEETING_TITLE ? x.MEETING_TITLE.message : "" }, Y)) }) }), O.jsx(vr, { name: "DESCRIPTION", control: w, render: ({ field: Y }) => O.jsxs(We, { display: "flex", flexDirection: "column", children: [O.jsx(Ia, ie({ label: "Description", size: "sm", type: "textarea", style: { minHeight: 100 }, error: x != null && x.DESCRIPTION ? x.DESCRIPTION.message : "" }, Y)), O.jsx("div", { className: "mt-10", children: O.jsxs("span", { style: { float: "right", color: "#172b4d" }, children: [(M == null ? void 0 : M.length) || 0, "/150"] }) })] }) })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 2, children: [O.jsx($t, { fontSize: 14, children: "Choose Date & Time" }), O.jsx(vr, { name: "DATE", control: w, render: ({ field: Y }) => O.jsx("input", ie({ className: "input-date", type: "date" }, Y)) }), O.jsxs(We, { display: "flex", gap: 1, children: [O.jsx(vr, { name: "START_TIME", control: w, render: ({ field: Y }) => O.jsx(Ia, ie({ type: "time", className: "input-time", style: { flex: 1, paddingLeft: 6, paddingRight: 6 } }, Y)) }), O.jsx(vr, { name: "DURATION", control: w, render: ({ field: Y }) => O.jsx(Ia, ie({ label: "Duration in minutes", placeholder: "Duration", floatingLabel: !0, required: !0, size: "sm", type: "number", style: { flex: 1 }, error: x != null && x.DURATION ? x.DURATION.message : "" }, Y)) })] })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 1, children: [O.jsx($t, { fontSize: 14, children: "Choose Medium" }), O.jsxs(We, { display: "flex", gap: 1, children: [O.jsx(vr, { name: "MEDIUM", control: w, render: ({ field: { value: Y, onChange: G } }) => O.jsx(O.Fragment, { children: O.jsx(Jl, { size: "sm", value: Y, searchByID: !0, onChange: (Z) => {
118369
+ ) })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 2, children: [O.jsx(vr, { name: "MEETING_TITLE", control: w, render: ({ field: Y }) => O.jsx(We, { children: O.jsx(Ia, ie({ label: "Meeting Title", required: !0, size: "sm", error: x != null && x.MEETING_TITLE ? x.MEETING_TITLE.message : "" }, Y)) }) }), O.jsx(vr, { name: "DESCRIPTION", control: w, render: ({ field: Y }) => O.jsxs(We, { display: "flex", flexDirection: "column", children: [O.jsx(Ia, ie({ label: "Description", size: "sm", type: "textarea", style: { minHeight: 100 }, error: x != null && x.DESCRIPTION ? x.DESCRIPTION.message : "" }, Y)), O.jsx("div", { className: "mt-10", children: O.jsxs("span", { style: { float: "right", color: "#172b4d" }, children: [(M == null ? void 0 : M.length) || 0, "/150"] }) })] }) })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 2, children: [O.jsx($t, { fontSize: 14, children: "Choose Date & Time" }), O.jsx(vr, { name: "DATE", control: w, render: ({ field: Y }) => O.jsx("input", ie({ className: "input-date", type: "date" }, Y)) }), O.jsxs(We, { display: "flex", gap: 1, children: [O.jsx(vr, { name: "START_TIME", control: w, render: ({ field: Y }) => O.jsx(Ia, ie({ type: "time", className: "input-time", style: { flex: 1, paddingLeft: 6, paddingRight: 6 } }, Y)) }), O.jsx(vr, { name: "DURATION", control: w, render: ({ field: Y }) => O.jsx(Ia, ie({ label: "Duration in minutes", placeholder: "Duration in minutes", floatingLabel: !0, required: !0, size: "sm", type: "number", style: { flex: 1 }, error: x != null && x.DURATION ? x.DURATION.message : "" }, Y)) })] })] }), O.jsxs(We, { display: "flex", flexDirection: "column", gap: 1, children: [O.jsx($t, { fontSize: 14, children: "Choose Medium" }), O.jsxs(We, { display: "flex", gap: 1, children: [O.jsx(vr, { name: "MEDIUM", control: w, render: ({ field: { value: Y, onChange: G } }) => O.jsx(O.Fragment, { children: O.jsx(Jl, { size: "sm", value: Y, searchByID: !0, onChange: (Z) => {
118370
118370
  Z === 2 || Z === 4 ? P(Z) : G(Z), T("MEDIUM_ALIAS", "");
118371
118371
  }, options: g }) }) }), O.jsx(vr, { name: "MEDIUM_ALIAS", control: w, render: ({ field: { name: Y, value: G, onChange: Z } }) => {
118372
118372
  var K;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.3.7-hrms",
4
+ "version": "0.3.8-hrms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },