qlu-20-ui-library 1.9.16 → 1.9.17
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.
|
@@ -1058,4 +1058,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1058
1058
|
https://github.com/Hacker0x01/react-datepicker
|
|
1059
1059
|
Released under the MIT License.
|
|
1060
1060
|
*/var M6=function(e,n){return M6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},M6(e,n)};function f2(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");M6(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Kt=function(){return Kt=Object.assign||function(n){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},Kt.apply(this,arguments)};function wr(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var m$=function(t){var e=t.showTimeSelectOnly,n=e===void 0?!1:e,r=t.showTime,i=r===void 0?!1:r,s=t.className,a=t.children,o=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return C.createElement("div",{className:s,role:"dialog","aria-label":o,"aria-modal":"true"},a)},g$=function(t,e){var n=C.useRef(null),r=C.useRef(t);r.current=t;var i=C.useCallback(function(s){var a;n.current&&!n.current.contains(s.target)&&(e&&s.target instanceof HTMLElement&&s.target.classList.contains(e)||(a=r.current)===null||a===void 0||a.call(r,s))},[e]);return C.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},nl=function(t){var e=t.children,n=t.onClickOutside,r=t.className,i=t.containerRef,s=t.style,a=t.ignoreClass,o=g$(n,a);return C.createElement("div",{className:r,style:s,ref:function(c){o.current=c,i&&(i.current=c)}},e)},Ge;(function(t){t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.PageUp="PageUp",t.PageDown="PageDown",t.Home="Home",t.End="End",t.Enter="Enter",t.Space=" ",t.Tab="Tab",t.Escape="Escape",t.Backspace="Backspace",t.X="x"})(Ge||(Ge={}));function Uy(){var t=typeof window<"u"?window:globalThis;return t}var B8=12,v$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function a1(t){if(t==null)return new Date;var e=typeof t=="string"?EY(t):Ze(t);return Gr(e)?e:new Date}function Z4(t,e,n,r,i){var s,a=null,o=Li(n)||Li(U0()),c=!0;if(Array.isArray(e))return e.forEach(function(h){var f=b4(t,h,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(c=Gr(f,i)&&t===C1(f,h,n)),Gr(f,i)&&c&&(a=f)}),a;if(a=b4(t,e,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)c=Gr(a)&&t===C1(a,e,n);else if(!Gr(a)){var u=((s=e.match(v$))!==null&&s!==void 0?s:[]).map(function(h){var f=h[0];if(f==="p"||f==="P"){var p=$o[f];return o?p(h,o.formatLong):f}return h}).join("");t.length>0&&(a=b4(t,u.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Gr(a)||(a=new Date(t))}return Gr(a)&&c?a:null}function Gr(t,e){return Xo(t)&&!n3(t,e??new Date("1/1/1800"))}function C1(t,e,n){if(n==="en")return t3(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Li(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&U0()&&Li(U0())&&(r=Li(U0())),t3(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Tn(t,e){var n=e.dateFormat,r=e.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return t&&C1(t,i,r)||""}function x$(t,e,n){if(!t)return"";var r=Tn(t,n),i=e?Tn(e,n):"";return"".concat(r," - ").concat(i)}function y$(t,e){if(!t?.length)return"";var n=t[0]?Tn(t[0],e):"";if(t.length===1)return n;if(t.length===2&&t[1]){var r=Tn(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function q4(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,s=i===void 0?0:i,a=e.second,o=a===void 0?0:a;return oo(lo(co(t,o),s),r)}function w$(t){return O5(t)}function C$(t,e){return C1(t,"ddd",e)}function wo(t){return $r(t)}function T3(t,e,n){var r=Li(e||U0());return pn(t,{locale:r,weekStartsOn:n})}function Qr(t){return N2(t)}function z0(t){return L8(t)}function Zf(t){return K9(t)}function qf(){return $r(a1())}function Jf(t){return Wv(t)}function b$(t){return H5(t)}function E$(t){return F8(t)}function fr(t,e){return t&&e?_v(t,e):!t&&!e}function K2(t,e){return t&&e?W5(t,e):!t&&!e}function d5(t,e){return t&&e?bY(t,e):!t&&!e}function Gt(t,e){return t&&e?J2(t,e):!t&&!e}function vi(t,e){return t&&e?SU(t,e):!t&&!e}function R0(t,e,n){var r,i=$r(e),s=Wv(n);try{r=h8(t,{start:i,end:s})}catch{r=!1}return r}function U0(){var t=Uy();return t.__localeId__}function Li(t){if(typeof t=="string"){var e=Uy();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function A$(t,e,n){return e(C1(t,"EEEE",n))}function M$(t,e){return C1(t,"EEEEEE",e)}function k$(t,e){return C1(t,"EEE",e)}function dc(t,e){return C1(L2(a1(),t),"LLLL",e)}function Yy(t,e){return C1(L2(a1(),t),"LLL",e)}function S$(t,e){return C1(cs(a1(),t),"QQQ",e)}function Pn(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.excludeDateIntervals,o=n.includeDates,c=n.includeDateIntervals,u=n.filterDate;return I8(t,{minDate:r,maxDate:i})||s&&s.some(function(h){return h instanceof Date?Gt(t,h):Gt(t,h.date)})||a&&a.some(function(h){var f=h.start,p=h.end;return h8(t,{start:f,end:p})})||o&&!o.some(function(h){return Gt(t,h)})||c&&!c.some(function(h){var f=h.start,p=h.end;return h8(t,{start:f,end:p})})||u&&!u(a1(t))||!1}function uc(t,e){var n=e===void 0?{}:e,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(s){var a=s.start,o=s.end;return h8(t,{start:a,end:o})}):r&&r.some(function(s){var a;return s instanceof Date?Gt(t,s):Gt(t,(a=s.date)!==null&&a!==void 0?a:new Date)})||!1}function Ky(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates,o=n.filterDate;return I8(t,{minDate:r?N2(r):void 0,maxDate:i?F8(i):void 0})||s?.some(function(c){return K2(t,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return K2(t,c)})||o&&!o(a1(t))||!1}function Ga(t,e,n,r){var i=Pt(t),s=X2(t),a=Pt(e),o=X2(e),c=Pt(r);return i===a&&i===c?s<=n&&n<=o:i<a?c===i&&s<=n||c===a&&o>=n||c<a&&c>i:!1}function j$(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates;return I8(t,{minDate:r,maxDate:i})||s&&s.some(function(o){return K2(o instanceof Date?o:o.date,t)})||a&&!a.some(function(o){return K2(o,t)})||!1}function Ua(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates,o=n.filterDate;return I8(t,{minDate:r,maxDate:i})||s?.some(function(c){return d5(t,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return d5(t,c)})||o&&!o(a1(t))||!1}function Ya(t,e,n){if(!e||!n||!Xo(e)||!Xo(n))return!1;var r=Pt(e),i=Pt(n);return r<=t&&i>=t}function Co(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates,o=n.filterDate,c=new Date(t,0,1);return I8(c,{minDate:r?L8(r):void 0,maxDate:i?Gv(i):void 0})||s?.some(function(u){return fr(c,u instanceof Date?u:u.date)})||a&&!a.some(function(u){return fr(c,u)})||o&&!o(a1(c))||!1}function Ka(t,e,n,r){var i=Pt(t),s=ki(t),a=Pt(e),o=ki(e),c=Pt(r);return i===a&&i===c?s<=n&&n<=o:i<a?c===i&&s<=n||c===a&&o>=n||c<a&&c>i:!1}function I8(t,e){var n,r=e===void 0?{}:e,i=r.minDate,s=r.maxDate;return(n=i&&q2(t,i)<0||s&&q2(t,s)>0)!==null&&n!==void 0?n:!1}function Xf(t,e){return e.some(function(n){return Ar(n)===Ar(t)&&Mr(n)===Mr(t)&&Jr(n)===Jr(t)})}function Qf(t,e){var n=e===void 0?{}:e,r=n.excludeTimes,i=n.includeTimes,s=n.filterTime;return r&&Xf(t,r)||i&&!Xf(t,i)||s&&!s(t)||!1}function _f(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=a1();i=oo(i,Ar(t)),i=lo(i,Mr(t)),i=co(i,Jr(t));var s=a1();s=oo(s,Ar(n)),s=lo(s,Mr(n)),s=co(s,Jr(n));var a=a1();a=oo(a,Ar(r)),a=lo(a,Mr(r)),a=co(a,Jr(r));var o;try{o=!h8(i,{start:s,end:a})}catch{o=!1}return o}function $f(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=Si(t,1);return r&&e3(r,s)>0||i&&i.every(function(a){return e3(a,s)>0})||!1}function ep(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=P1(t,1);return r&&e3(s,r)>0||i&&i.every(function(a){return e3(s,a)>0})||!1}function F$(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=L8(t),a=ex(s);return r&&Qo(r,a)>0||i&&i.every(function(o){return Qo(o,a)>0})||!1}function L$(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=Gv(t),a=j7(s,1);return r&&Qo(a,r)>0||i&&i.every(function(o){return Qo(a,o)>0})||!1}function tp(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=Rs(t,1);return r&&_o(r,s)>0||i&&i.every(function(a){return _o(a,s)>0})||!1}function z$(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.yearItemNumber,s=i===void 0?B8:i,a=z0(Rs(t,s)),o=j3(a,s).endPeriod,c=r&&Pt(r);return c&&c>o||!1}function np(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=Er(t,1);return r&&_o(s,r)>0||i&&i.every(function(a){return _o(s,a)>0})||!1}function R$(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.yearItemNumber,s=i===void 0?B8:i,a=Er(t,s),o=j3(a,s).startPeriod,c=r&&Pt(r);return c&&c<o||!1}function Zy(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return q2(i,e)>=0});return Y9(r)}else return n?Y9(n):e}function qy(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return q2(i,e)<=0});return U9(r)}else return n?U9(n):e}function rp(t,e){var n;t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,s=t.length;i<s;i++){var a=t[i];if(Xn(a)){var o=C1(a,"MM.dd.yyyy"),c=r.get(o)||[];c.includes(e)||(c.push(e),r.set(o,c))}else if(typeof a=="object"){var u=Object.keys(a),h=(n=u[0])!==null&&n!==void 0?n:"",f=a[h];if(typeof h=="string"&&Array.isArray(f))for(var p=0,m=f.length;p<m;p++){var g=f[p];if(g){var o=C1(g,"MM.dd.yyyy"),c=r.get(o)||[];c.includes(h)||(c.push(h),r.set(o,c))}}}}return r}function D$(t,e){return t.length!==e.length?!1:t.every(function(n,r){return n===e[r]})}function N$(t,e){t===void 0&&(t=[]),e===void 0&&(e="react-datepicker__day--holidays");var n=new Map;return t.forEach(function(r){var i=r.date,s=r.holidayName;if(Xn(i)){var a=C1(i,"MM.dd.yyyy"),o=n.get(a)||{className:"",holidayNames:[]};if(!("className"in o&&o.className===e&&D$(o.holidayNames,[s]))){o.className=e;var c=o.holidayNames;o.holidayNames=c?wr(wr([],c,!0),[s],!1):[s],n.set(a,o)}}}),n}function T$(t,e,n,r,i){for(var s=i.length,a=[],o=0;o<s;o++){var c=t,u=i[o];u&&(c=EG(c,Ar(u)),c=G9(c,Mr(u)),c=kG(c,Jr(u)));var h=G9(t,(n+1)*r);$n(c,e)&&n3(c,h)&&u!=null&&a.push(u)}return a}function ip(t){return t<10?"0".concat(t):"".concat(t)}function j3(t,e){e===void 0&&(e=B8);var n=Math.ceil(Pt(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function B$(t){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+n-+e)/36e5)}function sp(t){var e=t.getSeconds(),n=t.getMilliseconds();return Ze(t.getTime()-e*1e3-n)}function I$(t,e){return sp(t).getTime()===sp(e).getTime()}function ap(t){if(!Xn(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function op(t,e){if(!Xn(t)||!Xn(e))throw new Error("Invalid date received");var n=ap(t),r=ap(e);return n3(n,r)}function Jy(t){return t.key===Ge.Space}var P$=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.inputRef=C.createRef(),r.onTimeChange=function(i){var s,a;r.setState({time:i});var o=r.props.date,c=o instanceof Date&&!isNaN(+o),u=c?o:new Date;if(i?.includes(":")){var h=i.split(":"),f=h[0],p=h[1];u.setHours(Number(f)),u.setMinutes(Number(p))}(a=(s=r.props).onChange)===null||a===void 0||a.call(s,u)},r.renderTimeInput=function(){var i=r.state.time,s=r.props,a=s.date,o=s.timeString,c=s.customTimeInput;return c?C.cloneElement(c,{date:a,value:i,onChange:r.onTimeChange}):C.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var u;(u=r.inputRef.current)===null||u===void 0||u.focus()},required:!0,value:i,onChange:function(u){r.onTimeChange(u.target.value||o)}})},r.state={time:r.props.timeString},r}return e.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},e.prototype.render=function(){return C.createElement("div",{className:"react-datepicker__input-time-container"},C.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),C.createElement("div",{className:"react-datepicker-time__input-container"},C.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e}(C.Component),V$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.dayEl=C.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,s,a=r.key;a===Ge.Space&&(r.preventDefault(),r.key=Ge.Enter),(s=(i=n.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},n.isSameDay=function(r){return Gt(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(a){return n.isSameDayOrWeek(a)}):n.isSameDayOrWeek(n.props.selected),s=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!s},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),Pn(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return uc(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return Gt(n.props.day,T3(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&Gt(r,T3(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,s=r.highlightDates;if(!s)return!1;var a=C1(i,"MM.dd.yyyy");return s.get(a)},n.getHolidaysClass=function(){var r,i=n.props,s=i.day,a=i.holidays;if(!a)return[void 0];var o=C1(s,"MM.dd.yyyy");return a.has(o)?[(r=a.get(o))===null||r===void 0?void 0:r.className]:[void 0]},n.isInRange=function(){var r=n.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:R0(i,s,a)},n.isInSelectingRange=function(){var r,i=n.props,s=i.day,a=i.selectsStart,o=i.selectsEnd,c=i.selectsRange,u=i.selectsDisabledDaysInRange,h=i.startDate,f=i.endDate,p=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return!(a||o||c)||!p||!u&&n.isDisabled()?!1:a&&f&&(n3(p,f)||vi(p,f))?R0(s,p,f):o&&h&&($n(p,h)||vi(p,h))||c&&h&&!f&&($n(p,h)||vi(p,h))?R0(s,h,p):!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,s=i.day,a=i.startDate,o=i.selectsStart,c=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return o?Gt(s,c):Gt(s,a)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,s=i.day,a=i.endDate,o=i.selectsEnd,c=i.selectsRange,u=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return o||c?Gt(s,u):Gt(s,a)},n.isRangeStart=function(){var r=n.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Gt(s,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Gt(a,i)},n.isWeekend=function(){var r=wU(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===X2(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(X2(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(a1())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return fe("react-datepicker__day",i,"react-datepicker__day--"+C$(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,s=r.ariaLabelPrefixWhenEnabled,a=s===void 0?"Choose":s,o=r.ariaLabelPrefixWhenDisabled,c=o===void 0?"Not available":o,u=n.isDisabled()||n.isExcluded()?c:a;return"".concat(u," ").concat(C1(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,s=r.holidays,a=s===void 0?new Map:s,o=r.excludeDates,c=C1(i,"MM.dd.yyyy"),u=[];return a.has(c)&&u.push.apply(u,a.get(c).holidayNames),n.isExcluded()&&u.push(o?.filter(function(h){return h instanceof Date?Gt(h,i):Gt(h?.date,i)}).map(function(h){if(!(h instanceof Date))return h?.message})),u.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,s=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&Gt(i,r))?0:-1;return s},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(Lh(n.props.day),n.props.day):Lh(n.props.day)},n.render=function(){return C.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&C.createElement("span",{className:"overlay"},n.getTitle()))},n}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&(n=!0),this.isDuplicateDay()&&(n=!1)),n},e.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e}(C.Component),H$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.weekNumberEl=C.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,s,a=r.key;a===Ge.Space&&(r.preventDefault(),r.key=Ge.Enter),(s=(i=n.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Gt(n.props.date,n.props.selected)&&Gt(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||Gt(n.props.date,n.props.selected)&&Gt(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!r?.isInputFocused&&Gt(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},e.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.isWeekDisabled,s=n.ariaLabelPrefix,a=s===void 0?e.defaultProps.ariaLabelPrefix:s,o=n.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!i,"react-datepicker__week-number--selected":!!o&&Gt(this.props.date,this.props.selected)};return C.createElement("div",{ref:this.weekNumberEl,className:fe(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},e}(C.Component),O$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isDisabled=function(r){return Pn(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,s){for(var a,o,c,u=new Date(r),h=0;h<7;h++){var f=new Date(r);f.setDate(f.getDate()+h);var p=!n.isDisabled(f);if(p){u=f;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(u,i,s),n.props.showWeekPicker&&n.handleDayClick(u,s),((a=n.props.shouldCloseOnSelect)!==null&&a!==void 0?a:e.defaultProps.shouldCloseOnSelect)&&((c=(o=n.props).setOpen)===null||c===void 0||c.call(o,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):w$(r)},n.isWeekDisabled=function(){for(var r=n.startOfWeek(),i=E1(r,6),s=new Date(r);s<=i;){if(!n.isDisabled(s))return!1;s=E1(s,1)}return!0},n.renderDays=function(){var r=n.startOfWeek(),i=[],s=n.formatWeekNumber(r);if(n.props.showWeekNumber){var a=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,s):void 0;i.push(C.createElement(H$,Kt({key:"W"},e.defaultProps,n.props,{weekNumber:s,isWeekDisabled:n.isWeekDisabled(),date:r,onClick:a})))}return i.concat([0,1,2,3,4,5,6].map(function(o){var c=E1(r,o);return C.createElement(V$,Kt({},e.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:n.handleDayClick.bind(n,c),onMouseEnter:n.handleDayMouseEnter.bind(n,c)}))}))},n.startOfWeek=function(){return T3(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Gt(n.startOfWeek(),n.props.selected)&&Gt(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":Gt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return C.createElement("div",{className:fe(n)},this.renderDays())},e}(C.Component),x0,W$=6,xs={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},J4=(x0={},x0[xs.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},x0[xs.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},x0[xs.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},x0),Za=1;function lp(t,e){return t?xs.FOUR_COLUMNS:e?xs.TWO_COLUMNS:xs.THREE_COLUMNS}var G$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.MONTH_REFS=wr([],Array(12),!0).map(function(){return C.createRef()}),n.QUARTER_REFS=wr([],Array(4),!0).map(function(){return C.createRef()}),n.isDisabled=function(r){return Pn(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(r){return uc(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var s,a;(a=(s=n.props).onDayClick)===null||a===void 0||a.call(s,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,s;(s=(i=n.props).onDayMouseEnter)===null||s===void 0||s.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:K2(L2(s,r),a)},n.isRangeStartQuarter=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:d5(cs(s,r),a)},n.isRangeEndMonth=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:K2(L2(s,r),o)},n.isRangeEndQuarter=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:d5(cs(s,r),o)},n.isInSelectingRangeMonth=function(r){var i,s=n.props,a=s.day,o=s.selectsStart,c=s.selectsEnd,u=s.selectsRange,h=s.startDate,f=s.endDate,p=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(o||c||u)||!p?!1:o&&f?Ga(p,f,r,a):c&&h||u&&h&&!f?Ga(h,p,r,a):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var s=n.props,a=s.day,o=s.startDate,c=s.selectsStart,u=L2(a,r),h=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c?K2(u,h):K2(u,o)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var s=n.props,a=s.day,o=s.endDate,c=s.selectsEnd,u=s.selectsRange,h=L2(a,r),f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c||u?K2(h,f):K2(h,o)},n.isInSelectingRangeQuarter=function(r){var i,s=n.props,a=s.day,o=s.selectsStart,c=s.selectsEnd,u=s.selectsRange,h=s.startDate,f=s.endDate,p=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(o||c||u)||!p?!1:o&&f?Ka(p,f,r,a):c&&h||u&&h&&!f?Ka(h,p,r,a):!1},n.isWeekInMonth=function(r){var i=n.props.day,s=E1(r,6);return K2(r,i)||K2(s,i)},n.isCurrentMonth=function(r,i){return Pt(r)===Pt(a1())&&i===X2(a1())},n.isCurrentQuarter=function(r,i){return Pt(r)===Pt(a1())&&i===ki(a1())},n.isSelectedMonth=function(r,i,s){return X2(s)===i&&Pt(r)===Pt(s)},n.isSelectMonthInList=function(r,i,s){return s.some(function(a){return n.isSelectedMonth(r,i,a)})},n.isSelectedQuarter=function(r,i,s){return ki(r)===i&&Pt(r)===Pt(s)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,s=0,a=!1,o=T3(Qr(n.props.day),n.props.locale,n.props.calendarStartDay),c=function(g){return n.props.showWeekPicker?T3(g,n.props.locale,n.props.calendarStartDay):n.props.preSelection},u=function(g){return n.props.showWeekPicker?T3(g,n.props.locale,n.props.calendarStartDay):n.props.selected},h=n.props.selected?u(n.props.selected):void 0,f=n.props.preSelection?c(n.props.preSelection):void 0;r.push(C.createElement(O$,Kt({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:s,day:o,month:X2(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:h,preSelection:f,showWeekNumber:n.props.showWeekNumbers}))),!a;){s++,o=Hi(o,1);var p=i&&s>=W$,m=!i&&!n.isWeekInMonth(o);if(p||m)if(n.props.peekNextMonth)a=!0;else break}return r},n.onMonthClick=function(r,i){var s=n.isMonthDisabledForLabelDate(i),a=s.isDisabled,o=s.labelDate;a||n.handleDayClick(Qr(o),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),s=i.isDisabled,a=i.labelDate;s||n.handleDayMouseEnter(Qr(a))},n.handleMonthNavigation=function(r,i){var s,a,o,c;(a=(s=n.props).setPreSelection)===null||a===void 0||a.call(s,i),(c=(o=n.MONTH_REFS[r])===null||o===void 0?void 0:o.current)===null||c===void 0||c.focus()},n.handleKeyboardNavigation=function(r,i,s){var a,o=n.props,c=o.selected,u=o.preSelection,h=o.setPreSelection,f=o.minDate,p=o.maxDate,m=o.showFourColumnMonthYearPicker,g=o.showTwoColumnMonthYearPicker;if(u){var v=lp(m,g),x=n.getVerticalOffset(v),b=(a=J4[v])===null||a===void 0?void 0:a.grid,A=function(B,N,V){var O,X,ie=N,ge=V;switch(B){case Ge.ArrowRight:ie=P1(N,Za),ge=V===11?0:V+Za;break;case Ge.ArrowLeft:ie=Si(N,Za),ge=V===0?11:V-Za;break;case Ge.ArrowUp:ie=Si(N,x),ge=!((O=b?.[0])===null||O===void 0)&&O.includes(V)?V+12-x:V-x;break;case Ge.ArrowDown:ie=P1(N,x),ge=!((X=b?.[b.length-1])===null||X===void 0)&&X.includes(V)?V-12+x:V+x;break}return{newCalculatedDate:ie,newCalculatedMonth:ge}},M=function(B,N,V){for(var O=40,X=B,ie=!1,ge=0,$=A(X,N,V),te=$.newCalculatedDate,q=$.newCalculatedMonth;!ie;){if(ge>=O){te=N,q=V;break}if(f&&te<f){X=Ge.ArrowRight;var Z=A(X,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}if(p&&te>p){X=Ge.ArrowLeft;var Z=A(X,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}if(j$(te,n.props)){var Z=A(X,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}else ie=!0;ge++}return{newCalculatedDate:te,newCalculatedMonth:q}};if(i===Ge.Enter){n.isMonthDisabled(s)||(n.onMonthClick(r,s),h?.(c));return}var L=M(i,u,s),k=L.newCalculatedDate,R=L.newCalculatedMonth;switch(i){case Ge.ArrowRight:case Ge.ArrowLeft:case Ge.ArrowUp:case Ge.ArrowDown:n.handleMonthNavigation(R,k);break}}},n.getVerticalOffset=function(r){var i,s;return(s=(i=J4[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&s!==void 0?s:0},n.onMonthKeyDown=function(r,i){var s=n.props,a=s.disabledKeyboardNavigation,o=s.handleOnMonthKeyDown,c=r.key;c!==Ge.Tab&&r.preventDefault(),a||n.handleKeyboardNavigation(r,c,i),o&&o(r)},n.onQuarterClick=function(r,i){var s=cs(n.props.day,i);Ua(s,n.props)||n.handleDayClick(Zf(s),r)},n.onQuarterMouseEnter=function(r){var i=cs(n.props.day,r);Ua(i,n.props)||n.handleDayMouseEnter(Zf(i))},n.handleQuarterNavigation=function(r,i){var s,a,o,c;n.isDisabled(i)||n.isExcluded(i)||((a=(s=n.props).setPreSelection)===null||a===void 0||a.call(s,i),(c=(o=n.QUARTER_REFS[r-1])===null||o===void 0?void 0:o.current)===null||c===void 0||c.focus())},n.onQuarterKeyDown=function(r,i){var s,a,o=r.key;if(!n.props.disabledKeyboardNavigation)switch(o){case Ge.Enter:n.onQuarterClick(r,i),(a=(s=n.props).setPreSelection)===null||a===void 0||a.call(s,n.props.selected);break;case Ge.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,j7(n.props.preSelection,1));break;case Ge.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,ex(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,s=n.props,a=s.day,o=s.minDate,c=s.maxDate,u=s.excludeDates,h=s.includeDates,f=L2(a,r);return{isDisabled:(i=(o||c||u||h)&&Ky(f,n.props))!==null&&i!==void 0?i:!1,labelDate:f}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate,c=i.preSelection,u=i.monthClassName,h=u?u(L2(s,r)):void 0,f=n.getSelection();return fe("react-datepicker__month-text","react-datepicker__month-".concat(r),h,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":f?n.isSelectMonthInList(s,r,f):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&c&&n.isSelectedMonth(s,r,c)&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":a&&o?Ga(a,o,r,s):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(s,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=X2(n.props.preSelection),s=n.isMonthDisabledForLabelDate(i).isDisabled,a=r===i&&!(s||n.props.disabledKeyboardNavigation)?"0":"-1";return a},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=ki(n.props.preSelection),s=Ua(n.props.day,n.props),a=r===i&&!(s||n.props.disabledKeyboardNavigation)?"0":"-1";return a},n.getAriaLabel=function(r){var i=n.props,s=i.chooseDayAriaLabelPrefix,a=s===void 0?"Choose":s,o=i.disabledDayAriaLabelPrefix,c=o===void 0?"Not available":o,u=i.day,h=i.locale,f=L2(u,r),p=n.isDisabled(f)||n.isExcluded(f)?c:a;return"".concat(p," ").concat(C1(f,"MMMM yyyy",h))},n.getQuarterClassNames=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate,c=i.selected,u=i.minDate,h=i.maxDate,f=i.excludeDates,p=i.includeDates,m=i.filterDate,g=i.preSelection,v=i.disabledKeyboardNavigation,x=(u||h||f||p||m)&&Ua(cs(s,r),n.props);return fe("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":x,"react-datepicker__quarter-text--selected":c?n.isSelectedQuarter(s,r,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!v&&g&&n.isSelectedQuarter(s,r,g)&&!x,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":a&&o?Ka(a,o,r,s):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r)})},n.getMonthContent=function(r){var i=n.props,s=i.showFullMonthYearPicker,a=i.renderMonthContent,o=i.locale,c=i.day,u=Yy(r,o),h=dc(r,o);return a?a(r,u,h,c):s?h:u},n.getQuarterContent=function(r){var i,s=n.props,a=s.renderQuarterContent,o=s.locale,c=S$(r,o);return(i=a?.(r,c))!==null&&i!==void 0?i:c},n.renderMonths=function(){var r,i=n.props,s=i.showTwoColumnMonthYearPicker,a=i.showFourColumnMonthYearPicker,o=i.day,c=i.selected,u=(r=J4[lp(a,s)])===null||r===void 0?void 0:r.grid;return u?.map(function(h,f){return C.createElement("div",{className:"react-datepicker__month-wrapper",key:f},h.map(function(p,m){return C.createElement("div",{ref:n.MONTH_REFS[p],key:m,onClick:function(g){n.onMonthClick(g,p)},onKeyDown:function(g){Jy(g)&&(g.preventDefault(),g.key=Ge.Enter),n.onMonthKeyDown(g,p)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(p)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(p)}:void 0,tabIndex:Number(n.getTabIndex(p)),className:n.getMonthClassNames(p),"aria-disabled":n.isMonthDisabled(p),role:"option","aria-label":n.getAriaLabel(p),"aria-current":n.isCurrentMonth(o,p)?"date":void 0,"aria-selected":c?n.isSelectedMonth(o,p,c):void 0},n.getMonthContent(p))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,s=r.selected,a=[1,2,3,4];return C.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(o,c){return C.createElement("div",{key:c,ref:n.QUARTER_REFS[c],role:"option",onClick:function(u){n.onQuarterClick(u,o)},onKeyDown:function(u){n.onQuarterKeyDown(u,o)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(o)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(o)}:void 0,className:n.getQuarterClassNames(o),"aria-selected":s?n.isSelectedQuarter(i,o,s):void 0,tabIndex:Number(n.getQuarterTabIndex(o)),"aria-current":n.isCurrentQuarter(i,o)?"date":void 0},n.getQuarterContent(o))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,s=r.selectsStart,a=r.selectsEnd,o=r.showMonthYearPicker,c=r.showQuarterYearPicker,u=r.showWeekPicker;return fe("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(s||a)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":u})},n}return e.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,s=n.selectsMultiple;if(s)return i;if(r)return[r]},e.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,s=n.day,a=n.ariaLabelPrefix,o=a===void 0?"Month ":a,c=o?o.trim()+" ":"";return C.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(C1(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},e}(C.Component),U$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return C.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?C.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return e.prototype.render=function(){return C.createElement(nl,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e}(C.Component),Y$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,s){return C.createElement("option",{key:i,value:s},i)})},n.renderSelectMode=function(r){return C.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return C.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},C.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),C.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return C.createElement(U$,Kt({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,s=[n.renderReadView(!i,r)];return i&&s.unshift(n.renderDropdown(r)),s},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return Yy(s,n.props.locale)}:function(s){return dc(s,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return C.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(C.Component);function K$(t,e){for(var n=[],r=Qr(t),i=Qr(e);!$n(r,i);)n.push(a1(r)),r=P1(r,1);return n}var Z$=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var s=q9(i),a=fr(r.props.date,i)&&K2(r.props.date,i);return C.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:r.onChange.bind(r,s),"aria-selected":a?"true":void 0},a?C.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",C1(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:K$(r.props.minDate,r.props.maxDate)},r}return e.prototype.render=function(){var n=fe({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return C.createElement(nl,{className:n,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(C.Component),q$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=Qr(n.props.minDate),i=Qr(n.props.maxDate),s=[];!$n(r,i);){var a=q9(r);s.push(C.createElement("option",{key:a,value:a},C1(r,n.props.dateFormat,n.props.locale))),r=P1(r,1)}return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return C.createElement("select",{value:q9(Qr(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=C1(n.props.date,n.props.dateFormat,n.props.locale);return C.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},C.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),C.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return C.createElement(Z$,Kt({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=a1(r);fr(n.props.date,i)&&K2(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return C.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(C.Component),J$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,s;n.list&&(n.list.scrollTop=(s=n.centerLi&&e.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&s!==void 0?s:0)})},n.handleClick=function(r){var i,s;(n.props.minTime||n.props.maxTime)&&_f(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Qf(r,n.props)||(s=(i=n.props).onChange)===null||s===void 0||s.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&I$(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&_f(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&Qf(r,n.props)},n.liClasses=function(r){var i,s=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&s.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&s.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(Ar(r)*3600+Mr(r)*60+Jr(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&s.push("react-datepicker__time-list-item--injected"),s.join(" ")},n.handleOnKeyDown=function(r,i){var s,a;r.key===Ge.Space&&(r.preventDefault(),r.key=Ge.Enter),(r.key===Ge.ArrowUp||r.key===Ge.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===Ge.ArrowDown||r.key===Ge.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===Ge.Enter&&n.handleClick(i),(a=(s=n.props).handleOnKeyDown)===null||a===void 0||a.call(s,r)},n.renderTimes=function(){for(var r,i=[],s=typeof n.props.format=="string"?n.props.format:"p",a=(r=n.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,o=n.props.selected||n.props.openToDate||a1(),c=wo(o),u=n.props.injectTimes&&n.props.injectTimes.sort(function(x,b){return x.getTime()-b.getTime()}),h=60*B$(o),f=h/a,p=0;p<f;p++){var m=G9(c,p*a);if(i.push(m),u){var g=T$(c,m,p,a,u);i=i.concat(g)}}var v=i.reduce(function(x,b){return b.getTime()<=o.getTime()?b:x},i[0]);return i.map(function(x){return C.createElement("li",{key:x.valueOf(),onClick:n.handleClick.bind(n,x),className:n.liClasses(x),ref:function(b){x===v&&(n.centerLi=b)},onKeyDown:function(b){n.handleOnKeyDown(b,x)},tabIndex:x===v?0:-1,role:"option","aria-selected":n.isSelectedTime(x)?"true":void 0,"aria-disabled":n.isDisabledTime(x)?"true":void 0},C1(x,s,n.props.locale))})},n.renderTimeCaption=function(){return n.props.showTimeCaption===!1?C.createElement(C.Fragment,null):C.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){n.header=r}},C.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},e.prototype.render=function(){var n=this,r,i=this.state.height;return C.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),C.createElement("div",{className:"react-datepicker__time"},C.createElement("div",{className:"react-datepicker__time-box"},C.createElement("ul",{className:"react-datepicker__time-list",ref:function(s){n.list=s},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},e}(C.Component),cp=3,X$=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.YEAR_REFS=wr([],Array(r.props.yearItemNumber),!0).map(function(){return C.createRef()}),r.isDisabled=function(i){return Pn(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return uc(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var s=function(){var a,o;(o=(a=r.YEAR_REFS[i])===null||a===void 0?void 0:a.current)===null||o===void 0||o.focus()};window.requestAnimationFrame(s)},r.handleYearClick=function(i,s){r.props.onDayClick&&r.props.onDayClick(i,s)},r.handleYearNavigation=function(i,s){var a,o,c,u,h=r.props,f=h.date,p=h.yearItemNumber;if(!(f===void 0||p===void 0)){var m=j3(f,p).startPeriod;r.isDisabled(s)||r.isExcluded(s)||((o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,s),i-m<0?r.updateFocusOnPaginate(p-(m-i)):i-m>=p?r.updateFocusOnPaginate(Math.abs(p-(i-m))):(u=(c=r.YEAR_REFS[i-m])===null||c===void 0?void 0:c.current)===null||u===void 0||u.focus())}},r.isSameDay=function(i,s){return Gt(i,s)},r.isCurrentYear=function(i){return i===Pt(a1())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&fr(In(a1(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&fr(In(a1(),i),r.props.endDate)},r.isInRange=function(i){return Ya(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var s=r.props,a=s.selectsStart,o=s.selectsEnd,c=s.selectsRange,u=s.startDate,h=s.endDate;return!(a||o||c)||!r.selectingDate()?!1:a&&h?Ya(i,r.selectingDate(),h):o&&u||c&&u&&!h?Ya(i,u,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var s;if(!r.isInSelectingRange(i))return!1;var a=r.props,o=a.startDate,c=a.selectsStart,u=In(a1(),i);return c?fr(u,(s=r.selectingDate())!==null&&s!==void 0?s:null):fr(u,o??null)},r.isSelectingRangeEnd=function(i){var s;if(!r.isInSelectingRange(i))return!1;var a=r.props,o=a.endDate,c=a.selectsEnd,u=a.selectsRange,h=In(a1(),i);return c||u?fr(h,(s=r.selectingDate())!==null&&s!==void 0?s:null):fr(h,o??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var s=r.props,a=s.minDate,o=s.maxDate,c=s.excludeDates,u=s.includeDates,h=s.filterDate,f=z0(In(r.props.date,i)),p=(a||o||c||u||h)&&Co(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Gt(f,z0(r.props.selected))&&Gt(f,z0(r.props.preSelection))&&!p}},r.onYearClick=function(i,s){var a=r.props.date;a!==void 0&&r.handleYearClick(z0(In(a,s)),i)},r.onYearKeyDown=function(i,s){var a,o,c=i.key,u=r.props,h=u.date,f=u.yearItemNumber,p=u.handleOnKeyDown;if(c!==Ge.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(c){case Ge.Enter:if(r.props.selected==null)break;r.onYearClick(i,s),(o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,r.props.selected);break;case Ge.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(s+1,Er(r.props.preSelection,1));break;case Ge.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(s-1,Rs(r.props.preSelection,1));break;case Ge.ArrowUp:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var m=j3(h,f).startPeriod,g=cp,v=s-g;if(v<m){var x=f%g;s>=m&&s<m+x?g=x:g+=x,v=s-g}r.handleYearNavigation(v,Rs(r.props.preSelection,g));break}case Ge.ArrowDown:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var b=j3(h,f).endPeriod,g=cp,v=s+g;if(v>b){var x=f%g;s<=b&&s>b-x?g=x:g+=x,v=s+g}r.handleYearNavigation(v,Er(r.props.preSelection,g));break}}p&&p(i)},r.getYearClassNames=function(i){var s=r.props,a=s.date,o=s.minDate,c=s.maxDate,u=s.selected,h=s.excludeDates,f=s.includeDates,p=s.filterDate,m=s.yearClassName;return fe("react-datepicker__year-text","react-datepicker__year-".concat(i),a?m?.(In(a,i)):void 0,{"react-datepicker__year-text--selected":u?i===Pt(u):void 0,"react-datepicker__year-text--disabled":(o||c||h||f||p)&&Co(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var s=Pt(r.props.preSelection),a=Co(i,r.props);return i===s&&!a?"0":"-1"},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var n=this,r=[],i=this.props,s=i.date,a=i.yearItemNumber,o=i.onYearMouseEnter,c=i.onYearMouseLeave;if(s===void 0)return null;for(var u=j3(s,a),h=u.startPeriod,f=u.endPeriod,p=function(v){r.push(C.createElement("div",{ref:m.YEAR_REFS[v-h],onClick:function(x){n.onYearClick(x,v)},onKeyDown:function(x){Jy(x)&&(x.preventDefault(),x.key=Ge.Enter),n.onYearKeyDown(x,v)},tabIndex:Number(m.getYearTabIndex(v)),className:m.getYearClassNames(v),onMouseEnter:m.props.usePointerEvent?void 0:function(x){return o(x,v)},onPointerEnter:m.props.usePointerEvent?function(x){return o(x,v)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(x){return c(x,v)},onPointerLeave:m.props.usePointerEvent?function(x){return c(x,v)}:void 0,key:v,"aria-current":m.isCurrentYear(v)?"date":void 0},m.getYearContent(v)))},m=this,g=h;g<=f;g++)p(g);return C.createElement("div",{className:"react-datepicker__year"},C.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e}(C.Component);function Q$(t,e,n,r){for(var i=[],s=0;s<2*e+1;s++){var a=t+e-s,o=!0;n&&(o=Pt(n)<=a),r&&o&&(o=Pt(r)>=a),o&&i.push(a)}return i}var _$=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;r.renderOptions=function(){var o=r.props.year,c=r.state.yearsList.map(function(f){return C.createElement("div",{className:o===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:r.onChange.bind(r,f),"aria-selected":o===f?"true":void 0},o===f?C.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),u=r.props.minDate?Pt(r.props.minDate):null,h=r.props.maxDate?Pt(r.props.maxDate):null;return(!h||!r.state.yearsList.find(function(f){return f===h}))&&c.unshift(C.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},C.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!u||!r.state.yearsList.find(function(f){return f===u}))&&c.push(C.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},C.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},r.onChange=function(o){r.props.onChange(o)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(o){var c=r.state.yearsList.map(function(u){return u+o});r.setState({yearsList:c})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,s=n.scrollableYearDropdown,a=i||(s?10:5);return r.state={yearsList:Q$(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=C.createRef(),r}return e.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(s){return s.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},e.prototype.render=function(){var n=fe({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return C.createElement(nl,{className:n,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(C.Component),$$=function(t){f2(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?Pt(n.props.minDate):1900,i=n.props.maxDate?Pt(n.props.maxDate):2100,s=[],a=r;a<=i;a++)s.push(C.createElement("option",{key:a,value:a},a));return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return C.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return C.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},C.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),C.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return C.createElement(_$,Kt({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)})},n.handleYearChange=function(r,i){var s;(s=n.onSelect)===null||s===void 0||s.call(n,r,i),n.setOpen()},n.onSelect=function(r,i){var s,a;(a=(s=n.props).onSelect)===null||a===void 0||a.call(s,r,i)},n.setOpen=function(){var r,i;(i=(r=n.props).setOpen)===null||i===void 0||i.call(r,!0)},n}return e.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return C.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(C.Component),eee=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],tee=function(t){var e=(t.className||"").split(/\s+/);return eee.some(function(n){return e.indexOf(n)>=0})},nee=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var s,a;tee(i.target)&&((a=(s=r.props).onDropdownFocus)===null||a===void 0||a.call(s,i))},r.getDateInView=function(){var i=r.props,s=i.preSelection,a=i.selected,o=i.openToDate,c=Zy(r.props),u=qy(r.props),h=a1(),f=o||a||s;return f||(c&&n3(h,c)?c:u&&$n(h,u)?u:h)},r.increaseMonth=function(){r.setState(function(i){var s=i.date;return{date:P1(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var s=i.date;return{date:Si(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,s,a){r.props.onSelect(i,s,a),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,s){r.setState({selectingDate:In(a1(),s)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,s)},r.handleYearMouseLeave=function(i,s){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,s)},r.handleYearChange=function(i){var s,a,o,c;(a=(s=r.props).onYearChange)===null||a===void 0||a.call(s,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(c=(o=r.props).setOpen)===null||c===void 0||c.call(o,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!Pn(i,r.props))return i;for(var s=Qr(i),a=E$(i),o=jG(a,s),c=null,u=0;u<=o;u++){var h=E1(s,u);if(!Pn(h,r.props)){c=h;break}}return c},r.handleMonthChange=function(i){var s,a,o,c=(s=r.getEnabledPreSelectionDateForMonth(i))!==null&&s!==void 0?s:i;r.handleCustomMonthChange(c),r.props.adjustDateOnChange&&(r.props.onSelect(c),(o=(a=r.props).setOpen)===null||o===void 0||o.call(a,!0)),r.props.setPreSelection&&r.props.setPreSelection(c)},r.handleCustomMonthChange=function(i){var s,a;(a=(s=r.props).onMonthChange)===null||a===void 0||a.call(s,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(s){var a=s.date;return{date:In(a,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(s){var a=s.date;return{date:L2(a,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(s){var a=s.date;return{date:In(L2(a,X2(i)),Pt(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var s=T3(i,r.props.locale,r.props.calendarStartDay),a=[];return r.props.showWeekNumbers&&a.push(C.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(o){var c=E1(s,o),u=r.formatWeekday(c,r.props.locale),h=r.props.weekDayClassName?r.props.weekDayClassName(c):void 0;return C.createElement("div",{key:o,"aria-label":C1(c,"EEEE",r.props.locale),className:fe("react-datepicker__day-name",h)},u)}))},r.formatWeekday=function(i,s){return r.props.formatWeekDay?A$(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?k$(i,s):M$(i,s)},r.decreaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:Rs(a,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i,s,a;if(!r.props.renderCustomHeader){var o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,c=r.props.showPreviousMonths?o-1:0,u=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:c,h=Si(r.state.date,u),f;switch(!0){case r.props.showMonthYearPicker:f=tp(r.state.date,r.props);break;case r.props.showYearPicker:f=z$(r.state.date,r.props);break;case r.props.showQuarterYearPicker:f=F$(r.state.date,r.props);break;default:f=$f(h,r.props);break}if(!(!((a=r.props.forceShowMonthNavigation)!==null&&a!==void 0?a:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&f||r.props.showTimeSelectOnly)){var p=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(g=r.decreaseYear),f&&r.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var v=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,x=r.props,b=x.previousMonthButtonLabel,A=b===void 0?e.defaultProps.previousMonthButtonLabel:b,M=x.previousYearButtonLabel,L=M===void 0?e.defaultProps.previousYearButtonLabel:M,k=r.props,R=k.previousMonthAriaLabel,B=R===void 0?typeof A=="string"?A:"Previous Month":R,N=k.previousYearAriaLabel,V=N===void 0?typeof L=="string"?L:"Previous Year":N;return C.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:r.props.handleOnKeyDown,"aria-label":v?V:B},C.createElement("span",{className:p.join(" ")},v?L:A))}}},r.increaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:Er(a,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.showMonthYearPicker:s=np(r.state.date,r.props);break;case r.props.showYearPicker:s=R$(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=L$(r.state.date,r.props);break;default:s=ep(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var c=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(c=r.increaseYear),s&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),c=void 0);var u=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,h=r.props,f=h.nextMonthButtonLabel,p=f===void 0?e.defaultProps.nextMonthButtonLabel:f,m=h.nextYearButtonLabel,g=m===void 0?e.defaultProps.nextYearButtonLabel:m,v=r.props,x=v.nextMonthAriaLabel,b=x===void 0?typeof p=="string"?p:"Next Month":x,A=v.nextYearAriaLabel,M=A===void 0?typeof g=="string"?g:"Next Year":A;return C.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":u?M:b},C.createElement("span",{className:o.join(" ")},u?g:p))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var s=["react-datepicker__current-month"];return r.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),C.createElement("h2",{className:s.join(" ")},C1(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return C.createElement($$,Kt({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:Pt(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return C.createElement(Y$,Kt({},e.defaultProps,r.props,{month:X2(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return C.createElement(q$,Kt({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(qf(),i),r.props.setPreSelection&&r.props.setPreSelection(qf())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return C.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var s=i.monthDate,a=i.i;return C.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(s),C.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(a!==0),r.renderMonthYearDropdown(a!==0),r.renderYearDropdown(a!==0)),C.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderCustomHeader=function(i){var s,a,o=i.monthDate,c=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var u=$f(r.state.date,r.props),h=ep(r.state.date,r.props),f=tp(r.state.date,r.props),p=np(r.state.date,r.props),m=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return C.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(a=(s=r.props).renderCustomHeader)===null||a===void 0?void 0:a.call(s,Kt(Kt({},r.state),{customHeaderCount:c,monthDate:o,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:h,prevYearButtonDisabled:f,nextYearButtonDisabled:p})),m&&C.createElement("div",{className:"react-datepicker__day-names"},r.header(o)))},r.renderYearHeader=function(i){var s=i.monthDate,a=r.props,o=a.showYearPicker,c=a.yearItemNumber,u=c===void 0?e.defaultProps.yearItemNumber:c,h=j3(s,u),f=h.startPeriod,p=h.endPeriod;return C.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},o?"".concat(f," - ").concat(p):Pt(s))},r.renderHeader=function(i){var s=i.monthDate,a=i.i,o=a===void 0?0:a,c={monthDate:s,i:o};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(c);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(c);default:return r.renderDefaultHeader(c)}},r.renderMonths=function(){var i,s;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var a=[],o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,c=r.props.showPreviousMonths?o-1:0,u=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Er(r.state.date,c):Si(r.state.date,c),h=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:c,f=0;f<o;++f){var p=f-h+c,m=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Er(u,p):P1(u,p),g="month-".concat(f),v=f<o-1,x=f>0;a.push(C.createElement("div",{key:g,ref:function(b){r.monthContainer=b??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:m,i:f}),C.createElement(G$,Kt({},e.defaultProps,r.props,{ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:m,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:f,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:x}))))}return a}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return C.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),C.createElement(X$,Kt({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return C.createElement(J$,Kt({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,s=i&&Gr(i)&&!!r.props.selected,a=s?"".concat(ip(i.getHours()),":").concat(ip(i.getMinutes())):"";if(r.props.showTimeInput)return C.createElement(P$,Kt({},e.defaultProps,r.props,{date:i,timeString:a,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,s=j3(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),a=s.startPeriod,o=s.endPeriod,c;return r.props.showYearPicker?c="".concat(a," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?c=Pt(r.state.date):c="".concat(dc(X2(r.state.date),r.props.locale)," ").concat(Pt(r.state.date)),C.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&c)},r.renderChildren=function(){if(r.props.children)return C.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=C.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:B8}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){n.setState({monthContainer:n.monthContainer})}())},e.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!Gt(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!K2(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!Gt(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var n=this.props.container||m$;return C.createElement(nl,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},C.createElement(n,{className:fe("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},e}(C.Component),ree=function(t){var e=t.icon,n=t.className,r=n===void 0?"":n,i=t.onClick,s="react-datepicker__calendar-icon";return typeof e=="string"?C.createElement("i",{className:"".concat(s," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i}):C.isValidElement(e)?C.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(s," ").concat(r),onClick:function(a){typeof e.props.onClick=="function"&&e.props.onClick(a),typeof i=="function"&&i(a)}}):C.createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},C.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Xy=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return Ki.createPortal(this.props.children,this.el)},e}(C.Component),iee="[tabindex], a, button, input, select, textarea",see=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},Qy=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(iee),1,-1).filter(see)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=C.createRef(),r}return e.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:e.defaultProps.enableTabLoop)?C.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},C.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,C.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(C.Component);function aee(t){var e=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,s=C.useRef(null),a=p$(Kt({open:!i,whileElementsMounted:Tp,placement:n.popperPlacement,middleware:wr([$_({padding:15}),__(10),e$({element:s})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),o=Kt(Kt({},n),{hidePopper:i,popperProps:Kt(Kt({},a),{arrowRef:s})});return C.createElement(t,Kt({},o))};return e}var oee=function(t){f2(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,s=n.hidePopper,a=s===void 0?e.defaultProps.hidePopper:s,o=n.popperComponent,c=n.targetComponent,u=n.enableTabLoop,h=n.popperOnKeyDown,f=n.portalId,p=n.portalHost,m=n.popperProps,g=n.showArrow,v=void 0;if(!a){var x=fe("react-datepicker-popper",r);v=C.createElement(Qy,{enableTabLoop:u},C.createElement("div",{ref:m.refs.setFloating,style:m.floatingStyles,className:x,"data-placement":m.placement,onKeyDown:h},o,g&&C.createElement(o$,{ref:m.arrowRef,context:m.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(v=C.createElement(this.props.popperContainer,{},v)),f&&!a&&(v=C.createElement(Xy,{portalId:f,portalHost:p},v));var b=fe("react-datepicker-wrapper",i);return C.createElement(C.Fragment,null,C.createElement("div",{ref:m.refs.setReference,className:b},c),v)},e}(C.Component),lee=aee(oee),dp="react-datepicker-ignore-onclickoutside";function cee(t,e){return t&&e?X2(t)!==X2(e)||Pt(t)!==Pt(e):t!==e}var X4="Date input not valid.",dee=function(t){f2(e,t);function e(n){var r=t.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:a1()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,a){var o=new Date(a.date);return Gr(o)?wr(wr([],s,!0),[Kt(Kt({},a),{date:o})],!1):s},[])},r.calcInitialState=function(){var i,s=r.getPreSelection(),a=Zy(r.props),o=qy(r.props),c=a&&n3(s,wo(a))?a:o&&$n(s,Jf(o))?o:s;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:c,highlightDates:rp(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(Kt(Kt({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(Kt(Kt({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.safeFocus=function(){setTimeout(function(){var i,s;(s=(i=r.input)===null||i===void 0?void 0:i.focus)===null||s===void 0||s.call(i,{preventScroll:!0})},0)},r.safeBlur=function(){setTimeout(function(){var i,s;(s=(i=r.input)===null||i===void 0?void 0:i.blur)===null||s===void 0||s.call(i)},0)},r.setFocus=function(){r.safeFocus()},r.setBlur=function(){r.safeBlur(),r.cancelFocusInput()},r.setOpen=function(i,s){s===void 0&&(s=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:Q4},function(){i||r.setState(function(a){return{focused:s?a.focused:!1}},function(){!s&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Xn(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var s,a,o=r.state.wasHidden,c=o?r.state.open:!0;o&&r.resetHiddenStatus(),!r.state.preventFocus&&c&&((a=(s=r.props).onFocus)===null||a===void 0||a.call(s,i),!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var s,a;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((a=(s=r.props).onBlur)===null||a===void 0||a.call(s,i)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var s,a;r.props.inline||r.setOpen(!1),(a=(s=r.props).onClickOutside)===null||a===void 0||a.call(s,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,s,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var c=a[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,a),!c||typeof c.isDefaultPrevented!="function"||c.isDefaultPrevented()))){r.setState({inputValue:c?.target instanceof HTMLInputElement?c.target.value:null,lastPreSelectChange:uee});var u=r.props,h=u.dateFormat,f=h===void 0?e.defaultProps.dateFormat:h,p=u.strictParsing,m=p===void 0?e.defaultProps.strictParsing:p,g=u.selectsRange,v=u.startDate,x=u.endDate,b=c?.target instanceof HTMLInputElement?c.target.value:"";if(g){var A=b.split("-",2).map(function(O){return O.trim()}),M=A[0],L=A[1],k=Z4(M??"",f,r.props.locale,m),R=Z4(L??"",f,r.props.locale,m),B=v?.getTime()!==k?.getTime(),N=x?.getTime()!==R?.getTime();if(!B&&!N||k&&Pn(k,r.props)||R&&Pn(R,r.props))return;(s=(i=r.props).onChange)===null||s===void 0||s.call(i,[k,R],c)}else{var V=Z4(b,f,r.props.locale,m,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&V&&!Gt(V,r.props.selected)&&(V=VY(r.props.selected,{hours:Ar(V),minutes:Mr(V),seconds:Jr(V)})),(V||!b)&&r.setSelected(V,c,!0)}}},r.handleSelect=function(i,s,a){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(s),r.setSelected(i,s,!1,a),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var o=r.props,c=o.startDate,u=o.endDate;c&&!u&&(r.props.swapRange||!op(i,c))&&r.setOpen(!1)}},r.setSelected=function(i,s,a,o){var c,u,h=i;if(r.props.showYearPicker){if(h!==null&&Co(Pt(h),r.props))return}else if(r.props.showMonthYearPicker){if(h!==null&&Ky(h,r.props))return}else if(h!==null&&Pn(h,r.props))return;var f=r.props,p=f.onChange,m=f.selectsRange,g=f.startDate,v=f.endDate,x=f.selectsMultiple,b=f.selectedDates,A=f.minTime,M=f.swapRange;if(!vi(r.props.selected,h)||r.props.allowSameDay||m||x)if(h!==null&&(r.props.selected&&(!a||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(h=q4(h,{hour:Ar(r.props.selected),minute:Mr(r.props.selected),second:Jr(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&A&&(h=q4(h,{hour:A.getHours(),minute:A.getMinutes(),second:A.getSeconds()})),r.props.inline||r.setState({preSelection:h}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),m){var L=!g&&!v,k=g&&!v,R=g&&v;L?p?.([h,null],s):k&&(h===null?p?.([null,null],s):op(h,g)?p?.(M?[h,g]:[h,null],s):p?.([g,h],s)),R&&p?.([h,null],s)}else if(x){if(h!==null)if(!b?.length)p?.([h],s);else{var B=b.some(function(V){return Gt(V,h)});if(B){var N=b.filter(function(V){return!Gt(V,h)});p?.(N,s)}else p?.(wr(wr([],b,!0),[h],!1),s)}}else p?.(h,s);a||((u=(c=r.props).onSelect)===null||u===void 0||u.call(c,h,s),r.setState({inputValue:null}))},r.setPreSelection=function(i){var s=Xn(r.props.minDate),a=Xn(r.props.maxDate),o=!0;if(i){var c=wo(i);if(s&&a)o=R0(i,r.props.minDate,r.props.maxDate);else if(s){var u=wo(r.props.minDate);o=$n(i,u)||vi(c,u)}else if(a){var h=Jf(r.props.maxDate);o=n3(i,h)||vi(c,h)}}o&&r.setState({preSelection:i})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var s,a;if(!(r.props.selectsRange||r.props.selectsMultiple)){var o=r.props.selected?r.props.selected:r.getPreSelection(),c=r.props.selected?i:q4(o,{hour:Ar(i),minute:Mr(i)});r.setState({preSelection:c}),(a=(s=r.props).onChange)===null||a===void 0||a.call(s,c),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,s;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(s=(i=r.props).onInputClick)===null||s===void 0||s.call(i)},r.onInputKeyDown=function(i){var s,a,o,c,u,h;(a=(s=r.props).onKeyDown)===null||a===void 0||a.call(s,i);var f=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(f===Ge.ArrowDown||f===Ge.ArrowUp||f===Ge.Enter)&&((o=r.onInputClick)===null||o===void 0||o.call(r));return}if(r.state.open){if(f===Ge.ArrowDown||f===Ge.ArrowUp){i.preventDefault();var p=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=r.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(p);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=a1(r.state.preSelection);f===Ge.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===Q4?(r.handleSelect(g,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(g)):r.setOpen(!1)):f===Ge.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):f===Ge.Tab&&r.setOpen(!1),r.inputOk()||(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:X4})}},r.onPortalKeyDown=function(i){var s=i.key;s===Ge.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var s,a,o,c,u,h,f=r.props,p=f.minDate,m=f.maxDate,g=f.disabledKeyboardNavigation,v=f.showWeekPicker,x=f.shouldCloseOnSelect,b=f.locale,A=f.calendarStartDay,M=f.adjustDateOnChange,L=f.inline;if((a=(s=r.props).onKeyDown)===null||a===void 0||a.call(s,i),!g){var k=i.key,R=i.shiftKey,B=a1(r.state.preSelection),N=function(te,q){var Z=q;switch(te){case Ge.ArrowRight:Z=v?Hi(q,1):E1(q,1);break;case Ge.ArrowLeft:Z=v?zh(q):ao(q,1);break;case Ge.ArrowUp:Z=zh(q);break;case Ge.ArrowDown:Z=Hi(q,1);break;case Ge.PageUp:Z=R?Rs(q,1):Si(q,1);break;case Ge.PageDown:Z=R?Er(q,1):P1(q,1);break;case Ge.Home:Z=T3(q,b,A);break;case Ge.End:Z=b$(q);break}return Z},V=function(te,q){for(var Z=40,Q=te,oe=!1,J=0,ee=N(te,q);!oe;){if(J>=Z){ee=q;break}p&&ee<p&&(Q=Ge.ArrowRight,ee=Pn(p,r.props)?N(Q,ee):p),m&&ee>m&&(Q=Ge.ArrowLeft,ee=Pn(m,r.props)?N(Q,ee):m),Pn(ee,r.props)?((Q===Ge.PageUp||Q===Ge.Home)&&(Q=Ge.ArrowRight),(Q===Ge.PageDown||Q===Ge.End)&&(Q=Ge.ArrowLeft),ee=N(Q,ee)):oe=!0,J++}return ee};if(k===Ge.Enter){i.preventDefault(),r.handleSelect(B,i),!x&&r.setPreSelection(B);return}else if(k===Ge.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(c=(o=r.props).onInputError)===null||c===void 0||c.call(o,{code:1,msg:X4});return}var O=null;switch(k){case Ge.ArrowLeft:case Ge.ArrowRight:case Ge.ArrowUp:case Ge.ArrowDown:case Ge.PageUp:case Ge.PageDown:case Ge.Home:case Ge.End:O=V(k,B);break}if(!O){(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:X4});return}if(i.preventDefault(),r.setState({lastPreSelectChange:Q4}),M&&r.setSelected(O),r.setPreSelection(O),L){var X=X2(B),ie=X2(O),ge=Pt(B),$=Pt(O);X!==ie||ge!==$?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var s=i.key;s===Ge.Escape&&(i.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var s=r.props,a=s.selectsRange,o=s.onChange;o?.(a?[null,null]:null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,s;return!r.props.inline&&!r.isCalendarOpen()?null:C.createElement(nee,Kt({showMonthYearDropdown:void 0,ref:function(a){r.calendar=a}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:N$(r.modifyHolidays()),outsideClickIgnoreClass:dp,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(s=r.props.dropdownMode)!==null&&s!==void 0?s:e.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,s=i.dateFormat,a=s===void 0?e.defaultProps.dateFormat:s,o=i.locale,c=r.props.showTimeInput||r.props.showTimeSelect,u=c?"PPPPp":"PPPP",h;return r.props.selectsRange?h="Selected start date: ".concat(Tn(r.props.startDate,{dateFormat:u,locale:o}),". ").concat(r.props.endDate?"End date: "+Tn(r.props.endDate,{dateFormat:u,locale:o}):""):r.props.showTimeSelectOnly?h="Selected time: ".concat(Tn(r.props.selected,{dateFormat:a,locale:o})):r.props.showYearPicker?h="Selected year: ".concat(Tn(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?h="Selected month: ".concat(Tn(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?h="Selected quarter: ".concat(Tn(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):h="Selected date: ".concat(Tn(r.props.selected,{dateFormat:u,locale:o})),C.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},h)},r.renderDateInput=function(){var i,s,a,o=fe(r.props.className,(i={},i[dp]=r.state.open,i)),c=r.props.customInput||C.createElement("input",{type:"text"}),u=r.props.customInputRef||"ref",h=r.props,f=h.dateFormat,p=f===void 0?e.defaultProps.dateFormat:f,m=h.locale,g=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?x$(r.props.startDate,r.props.endDate,{dateFormat:p,locale:m}):r.props.selectsMultiple?y$((a=r.props.selectedDates)!==null&&a!==void 0?a:[],{dateFormat:p,locale:m}):Tn(r.props.selected,{dateFormat:p,locale:m});return C.cloneElement(c,(s={},s[u]=function(v){r.input=v},s.value=g,s.onBlur=r.handleBlur,s.onChange=r.handleChange,s.onClick=r.onInputClick,s.onFocus=r.handleFocus,s.onKeyDown=r.onInputKeyDown,s.id=r.props.id,s.name=r.props.name,s.form=r.props.form,s.autoFocus=r.props.autoFocus,s.placeholder=r.props.placeholderText,s.disabled=r.props.disabled,s.autoComplete=r.props.autoComplete,s.className=fe(c.props.className,o),s.title=r.props.title,s.readOnly=r.props.readOnly,s.required=r.props.required,s.tabIndex=r.props.tabIndex,s["aria-describedby"]=r.props.ariaDescribedBy,s["aria-invalid"]=r.props.ariaInvalid,s["aria-labelledby"]=r.props.ariaLabelledBy,s["aria-required"]=r.props.ariaRequired,s))},r.renderClearButton=function(){var i=r.props,s=i.isClearable,a=i.disabled,o=i.selected,c=i.startDate,u=i.endDate,h=i.clearButtonTitle,f=i.clearButtonClassName,p=f===void 0?"":f,m=i.ariaLabelClose,g=m===void 0?"Close":m,v=i.selectedDates;return s&&(o!=null||c!=null||u!=null||v?.length)?C.createElement("button",{type:"button",className:fe("react-datepicker__close-icon",p,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":g,onClick:r.onClearClick,title:h,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:B8,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(n,r){var i,s,a,o;n.inline&&cee(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:rp(this.props.highlightDates)}),!r.focused&&!vi(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((s=(i=this.props).onCalendarOpen)===null||s===void 0||s.call(i)),r.open===!0&&this.state.open===!1&&((o=(a=this.props).onCalendarClose)===null||o===void 0||o.call(a)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,s=n.calendarIconClassname,a=n.calendarIconClassName,o=n.toggleCalendarOnIconClick,c=this.state.open;return s&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),C.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&C.createElement(ree,Kt({icon:i,className:fe(a,!a&&s,c&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},e.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?C.createElement(Qy,{enableTabLoop:this.props.enableTabLoop},C.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=C.createElement(Xy,Kt({portalId:this.props.portalId},this.props),r)),C.createElement("div",null,this.renderInputContainer(),r)}return C.createElement(lee,Kt({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e}(C.Component),uee="input",Q4="navigate";const hee=({pickDate:t,pickTime:e})=>{const[n,r]=C.useState(new Date),i=a=>{r(a);const o=new Date(a),c=`${o.getMonth()+1}/${o.getDate()}/${o.getFullYear()}`,u=s(o);e(u),t(c)};function s(a){const o=a.getHours(),c=a.getMinutes(),u=o>=12?"PM":"AM",h=o%12===0?12:o%12,f=String(c).padStart(2,"0");return`${h}:${f} ${u}`}return l.jsx("div",{children:l.jsx(dee,{selected:n,onChange:a=>i(a),showTimeSelect:!0,dateFormat:"Pp",showPopperArrow:!1,timeIntervals:15,customInput:l.jsx("input",{className:"ii"})})})},fee=({items:t,widthPx:e,value:n})=>{const[r,i]=C.useState(!1),[s,a]=C.useState(t[0]||""),o=C.useRef(null),c=()=>{i(h=>!h)},u=h=>{a(h),i(!1)};return C.useEffect(()=>{n(s)},[s]),C.useEffect(()=>{function h(f){o.current&&!o.current.contains(f.target)&&c()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),l.jsxs("div",{className:"main-gen",children:[l.jsxs("div",{className:"dd-bar-gen",style:{width:`${e}px`},children:[l.jsxs("span",{className:"dd-text",children:[" ",s," "]}),l.jsx("span",{className:"dd-svg",onClick:c,children:l.jsx(ce,{iconType:`${r?"cheveronUp":"cheveronDown"}`})})]}),r&&l.jsx("div",{className:"dd-body-gen",style:{width:`${e+30}px`},ref:o,children:t.map((h,f)=>l.jsx("div",{className:`dd-items-gen ${f==t.length-1?"border-none":""}`,onClick:()=>u(h),children:h},h+f))})]})};h2.register(kn,Sn,An,Dr,Mn,tn,en);const pee={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,scales:{y:{grace:"40%",border:{color:"transparent"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(t){return C2.format(t),C2.format(t).replace("$","")},font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"},align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1,color:"transparent",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=C2.format(t[0].raw).replace("$",""),""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1}}},k6=({revenues:t,QoQlatest:e,aspectRatio:n=5})=>{const r=t.map(a=>a.quater),i=t.map(a=>a.amount),s={labels:r,datasets:[{label:"",data:i,borderWidth:2,backgroundColor:"#4B4B4B",barThickness:27,maxBarThickness:27,hoverBorderColor:"#CC713E"}]};return l.jsxs("div",{className:"CompanyBarChartFinancialTab",children:[l.jsx("div",{className:"qoQGrowth",children:l.jsxs("span",{className:"percentage",children:[e?`${e}%`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"qoQGrowthlatest",children:"YoY Growth latest"})]})}),l.jsx(Dv,{options:{...pee,aspectRatio:n},data:s})]})};h2.register(kn,tr,Sn,Dr,An,mn,Mn,tn,en);const mee={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent",padding:4},ticks:{callback:function(t){return C2.format(t),C2.format(t).replace("$","")},align:"start",color:"#ADADAD",count:4,offset:!0,font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}},x:{grid:{display:!1},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=C2.format(t[0].raw).replace("$",""),""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom",filter:function(t){return t.datasetIndex===0}},title:{display:!1},filler:{propagate:!0}}},_y=({stockPerformance:t,beta:e,peRatio:n,ePS:r,priceSales:i,weekChange:s,marketCap:a,aspectRatio:o=5})=>{const c=t.map(f=>f.quater),u=t.map(f=>f.amount),h={labels:c,datasets:[{type:"line",fill:!0,label:"",data:u,pointBackgroundColor:"#331C10",backgroundColor:f=>{const m=f.chart.ctx.createLinearGradient(0,0,0,200);return m.addColorStop(0,"rgba(255, 141, 78, 0.2)"),m.addColorStop(1,"rgba(35, 35, 35, 0)"),m},borderColor:"#FF8D4E",borderCapStyle:"round",borderWidth:1}]};return l.jsxs("div",{className:"CompanyLineChartFinancialTab",children:[l.jsxs("div",{className:"marketCap",children:[l.jsxs("span",{className:"percentage",children:[a?`${a}`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"qoQGrowthlatest",children:"Market Cap"})]}),l.jsxs("div",{className:"performance",children:[l.jsxs("span",{className:"percentage",children:[e?`${e}`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"valueInfo",children:"Beta (5Y Monthly)"})]}),l.jsxs("span",{className:"percentage",children:[n?`${n}`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"valueInfo",children:"Trailing PE"})]}),l.jsxs("span",{className:"percentage",children:[r?`${r}`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"valueInfo",children:"Trailing EPS"})]}),l.jsxs("span",{className:"percentage",children:[i?`${i}`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"valueInfo",children:"Price/Sales"})]}),l.jsxs("span",{className:"percentage",children:[s?`${s}%`:"--"," ",l.jsx("br",{})," ",l.jsx("span",{className:"valueInfo",children:"52 Week Change"})]})]})]}),l.jsx(a3,{type:"bar",id:"canvas",options:{...mee,aspectRatio:o},data:h})]})},$y=({selected:t,chartDetails:e,aspectRatio:n})=>{const r=()=>l.jsx("div",{className:"companyViewFinancialSummary-Loader",children:l.jsx(Q1,{height:"32",width:"32"})}),i=()=>l.jsx("div",{children:l.jsx("span",{className:"companyViewFinancialSummary-DataNA",children:"Not Available"})}),s=c=>{const u=parseFloat(c);return isNaN(u)?0:u},a=(((1+s(e.Revenue.QoQlatest)/100)*(1+s(e.earning.QoQlatest)/100)-1)*100).toFixed(2),o=a==="0.00"?"--":a.toString();switch(t){case"Stock Performance":return l.jsx(l.Fragment,{children:e.stockPerformanceLoading?r():e.stockPerformanceError?i():l.jsx(_y,{aspectRatio:n,beta:e.stockPerformance.beta,peRatio:e.stockPerformance.peRatio,ePS:e.stockPerformance.ePS,priceSales:e.stockPerformance.priceSales,weekChange:e.stockPerformance.weekChange,marketCap:e.stockPerformance.marketCap,stockPerformance:e.stockPerformance.stockPerformance})});case"Revenue":return l.jsx(l.Fragment,{children:e.revenueAndEarningLoading?r():e.revenueAndEarningError?i():l.jsx(k6,{aspectRatio:n,revenues:e.Revenue.revenues,QoQlatest:e.Revenue.QoQlatest,QoQ12Month:e.Revenue.QoQ12Month})});case"Earnings":return l.jsx(l.Fragment,{children:e.revenueAndEarningLoading?r():e.revenueAndEarningError?i():l.jsx(k6,{aspectRatio:n,revenues:e.earning.revenues,QoQlatest:e.earning.QoQlatest,QoQ12Month:e.earning.QoQ12Month})});default:return l.jsx(l.Fragment,{children:e.revenueAndEarningLoading?r():e.revenueAndEarningError?i():l.jsx(Oy,{aspectRatio:n,revenues:e.Revenue.revenues,QoQlatest:o,QoQ12Month:e.Revenue.QoQ12Month||"--",earnings:e.earning.revenues})})}},ew=({stockPerformance:t,Revenue:e,earning:n,revenueAndEarningError:r=!1,stockPerformanceError:i=!1,stockPerformanceLoading:s=!1,revenueAndEarningLoading:a=!1,summaryFinancialButton:o,setsummaryFinancialButton:c})=>{const u=["Revenue","Earnings","Combined","Stock Performance"];return l.jsxs("div",{className:"companyViewFinancialSummary--Container",children:[l.jsxs("div",{className:"companyViewFinancialSummary-Header",children:[l.jsx("div",{children:l.jsx("h3",{children:"Financial Highlights"})}),l.jsx("div",{className:"dropDownContainer",children:l.jsx(cc,{dropDownText:o,maxWidth:"fit-content",children:u.map((h,f)=>l.jsx(fc,{onClick:()=>{c(h)},text:h},f))})})]}),l.jsx("div",{className:"companyViewFinancialSummary-Charts",children:$y({selected:o,chartDetails:{stockPerformance:t,Revenue:e,earning:n,revenueAndEarningError:r,stockPerformanceError:i,stockPerformanceLoading:s,revenueAndEarningLoading:a}})})]})},gee=({companyViewActiveTab:t="Summary",financialsPayload:e})=>{C.useState("Summary");const[n,r]=C.useState("Revenue");switch(t){case"Summary":return l.jsx(ew,{Revenue:e.Revenue,earning:e.earning,stockPerformance:e.stockPerformance,stockPerformanceError:!0,revenueAndEarningError:!0,revenueAndEarningLoading:!0,stockPerformanceLoading:!0,summaryFinancialButton:n,setsummaryFinancialButton:r});case"Balance Sheet":return l.jsx(l.Fragment,{children:l.jsx("h1",{children:"BalanceSheet"})});case"Cash Flow":return l.jsx(l.Fragment,{children:l.jsx("h1",{children:"CashFlow"})});case"Income Statement":return l.jsx(l.Fragment,{children:l.jsx("h1",{children:"IncomeStatement"})});default:return l.jsx(l.Fragment,{})}};h2.register(kn,tr,Sn,Dr,An,mn,Mn,tn,en);const vee=({Data:t,fill:e=!0,pointBackgroundColor:n="#ffffff",gradient1Color:r="rgba(255, 141, 78, 0.2)",gradient2Color:i="rgba(35, 35, 35, 0)",borderColor:s="#FF8D4E",borderWidth:a=1,yGridColor:o="#232323"})=>{const c=t.map(m=>m.Xaxis),u=t.map(m=>m.Yaxis),h=["Title1","Title2","Title3000","","Title24s"],f={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{color:o,borderColor:"grey",tickColor:"transparent",padding:4},ticks:{align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1},ticks:{color:"#868686"}}},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom",callbacks:{title:function(m){const g=m[0].dataIndex;if(h[g]!=="")return h[g]}}},title:{display:!1},filler:{propagate:!0}}},p={labels:c,datasets:[{type:"line",fill:e,label:"",data:u,pointBackgroundColor:n,backgroundColor:m=>{const v=m.chart.ctx.createLinearGradient(0,0,0,200);return v.addColorStop(0,r),v.addColorStop(1,i),v},borderColor:s,borderCapStyle:"round",borderWidth:a}]};return l.jsx("div",{className:"LineChart",children:l.jsx("div",{children:l.jsx(a3,{type:"bar",id:"canvas",options:f,data:p})})})},xee=({onCompanyViewFinancialTabClick:t=()=>{},activeTab:e="Summary"})=>{const n=["Summary","Funding Rounds","Investors"],r=(i,s)=>fe({"companyViewPeopleTabsComponent-Button--Generic":!0,"companyViewPeopleTabsComponent-Button--Selected":s===i,"companyViewPeopleTabsComponent-Button--Unselected":s!==i});return l.jsx("div",{className:"companyViewPeople-Generic",children:l.jsx("span",{className:"companyViewPeople-Tabs",children:n.map((i,s)=>l.jsx("button",{onClick:()=>t(i),className:r(i,e),children:i.toUpperCase()},s))})})};h2.register(kn,tr,Sn,Dr,An,mn,Mn,tn,en);function yee({stats:t,median:e,xStepSize:n,yStepSize:r,xLabel:i,yLabel:s,chartType:a,displayYAxis:o=!0}){const c=p=>a==="pay"?`$${p}`:a==="experience"?`${p} years`:p,u={responsive:!0,aspectRatio:0,maintainAspectRatio:!0,interaction:{mode:"index",intersect:!1},scales:{y:{display:o,grace:"40%",beginAtZero:!0,ticks:{stepSize:r,display:!0,color:"#868686",font:{family:"Inter",size:14,weight:400},padding:15},title:{display:!0,text:s,color:"#adadad",font:{family:"Inter",size:16,weight:"500"}}},x:{grid:{color:"#49494933",display:!0},ticks:{display:!0,stepSize:n,color:"#868686",font:{family:"Inter",size:14,weight:400},align:"start",padding:15},title:{display:!0,text:i,color:"#adadad",font:{family:"Inter",size:16,weight:"500"}}}},plugins:{legend:{display:!1},tooltip:{displayColors:!1,position:"nearest",callbacks:{title:()=>"",label:p=>{const m=p.label||"";return c(m)}},backgroundColor:"#d5d5d5",bodyColor:"#000",bodyFont:{size:14,family:"Inter"},padding:10,borderWidth:1,cornerRadius:3,filter:function(p){return p.datasetIndex===0}},title:{display:!1},filler:{propagate:!0}}};let h=0;if(t.length>1){for(let p=1;p<t.length;p++)if(t[p].x>=e&&t[p-1].x<=e){const m=t[p-1].x,g=t[p-1].y,v=t[p].x,b=(t[p].y-g)/(v-m);h=g+b*(e-m);break}}const f={datasets:[{type:"line",fill:!0,label:"",data:t,pointBackgroundColor:"transparent",backgroundColor:p=>{const g=p.chart.ctx.createLinearGradient(400,0,500,800);return g.addColorStop(0,"rgba(255, 141, 78, 0.2)"),g.addColorStop(1,"rgba(35, 35, 35, 0)"),g},borderColor:"#FF8D4E",borderWidth:1,showLine:!0,tension:.2,radius:0,pointHoverRadius:0},{type:"line",fill:!0,label:"",data:[{x:e,y:h}],pointBackgroundColor:"#FF8D4E",borderColor:"#FF8D4E",borderWidth:2,tension:.2,radius:6,pointHoverRadius:8}]};return l.jsx("div",{className:"PersonStatisticsChart",children:l.jsx("div",{children:l.jsx(LW,{options:u,data:f})})})}const wee=({revenueHeader:t,revenueData:e})=>{const n=e,r=t,i=C.useMemo(()=>[{Header:"Revenue",accessor:"revenue"},...r],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=jn.useTable({columns:i,data:n});return l.jsx(l.Fragment,{children:l.jsxs("table",{className:"companyViewFinancial-RevenueTable",...s(),children:[l.jsx("thead",{children:o.map(h=>l.jsx("tr",{...h.getHeaderGroupProps(),children:h.headers.map(f=>l.jsx("th",{...f.getHeaderProps(),children:f.render("Header")}))}))}),l.jsx("tbody",{...a(),children:c.map(h=>(u(h),C.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})))))})]})})},Cee=({expensesHeaders:t,revenueHeaders:e,revenueData:n,expensesData:r,isError:i=!1,isLoading:s=!1})=>{const a=r,o=C.useMemo(()=>[{Header:"Expenses",accessor:"expense"},...t],[]),{getTableProps:c,getTableBodyProps:u,headerGroups:h,rows:f,prepareRow:p}=jn.useTable({columns:o,data:a}),m=fe({"":i,"companyViewFinancial--IncomeStatementWrapper":!i||s});return l.jsx("div",{className:m,children:s?l.jsx("div",{className:"companyViewFinancial--IncomeStatementLoading",children:l.jsx(Q1,{height:"32",width:"32",type:"tailSpin"})}):i?l.jsx("div",{className:"companyViewFinancial--IncomeStatementError",children:"NOT AVAILABLE"}):l.jsxs(l.Fragment,{children:[l.jsx(wee,{revenueHeader:e,revenueData:n}),l.jsxs("table",{className:"companyViewFinancial-ExpenseTable",...c(),children:[l.jsx("thead",{children:h.map(g=>l.jsx("tr",{...g.getHeaderGroupProps(),children:g.headers.map(v=>l.jsx("th",{...v.getHeaderProps(),children:v.render("Header")}))}))}),l.jsx("tbody",{...u(),children:f.map(g=>(p(g),C.createElement("tr",{...g.getRowProps(),key:`${g.original.publicIdentifier}${g.original.isSelected}`},g.cells.map(v=>l.jsx("td",{...v.getCellProps(),children:v.render("Cell")})))))})]})]})})},bee=({data:t,headers:e,isError:n=!1,isLoading:r=!1})=>{const i=C.useMemo(()=>[...e],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=jn.useTable({columns:i,data:t}),h=fe({"":n,CompanyViewFinancialGenericTableWrapper:!n||r});return l.jsx("div",{className:h,children:r?l.jsx("div",{className:"GenericTableLoading",children:l.jsx(Q1,{height:"32",width:"32",type:"tailSpin"})}):n?l.jsx("div",{className:"GenericTableError",children:"NOT AVAILABLE"}):l.jsx("div",{children:l.jsxs("table",{className:"GenericTable",...s(),children:[l.jsx("thead",{children:o.map(f=>l.jsx("tr",{...f.getHeaderGroupProps(),children:f.headers.map(p=>l.jsx("th",{...p.getHeaderProps(),children:p.render("Header")}))}))}),l.jsx("tbody",{...a(),children:c.map(f=>(u(f),C.createElement("tr",{...f.getRowProps(),key:`${f.original.publicIdentifier}${f.original.isSelected}`},f.cells.map(p=>l.jsx("td",{...p.getCellProps(),children:p.render("Cell")})))))})]})})})},Eee=({onCompanyViewSummaryNewsTabClick:t=()=>{},activeCompanyViewSummaryNewsTabs:e="News"})=>{const n=["News","Twitter","Linkedin"],r=(i,s)=>fe({"companyViewSummaryNewsTabsComponent-Button--Generic":!0,"companyViewSummaryNewsTabsComponent-Button--Selected":s===i,"companyViewSummaryNewsTabsComponent-Button--Unselected":s!==i});return l.jsx("div",{className:"companyViewSummaryNews-Generic",children:l.jsx("span",{className:"companyViewSummaryNews-Tabs",children:n.map((i,s)=>l.jsx("button",{onClick:()=>t(i),className:r(i,e),children:i.toUpperCase()},s))})})},Aee=({News:t})=>l.jsx("div",{className:"companyViewSummaryNewsComponent--Generic",children:t.map(e=>l.jsxs("div",{className:"companyViewSummaryNewsComponent-Content",children:[l.jsx("div",{className:"companyViewSummaryNewsComponent-NewsIcon",children:l.jsx(rr,{iconSize:"64",altImageType:"news",iconPath:e?.ImageUrl})}),l.jsxs("div",{className:"companyViewSummaryNewsComponent-NewsHeadline",children:[l.jsx("a",{href:e.newsLink,target:"_blank",className:"companyViewSummaryNewsComponent-NewsLink",children:l.jsx("div",{className:"companyViewSummaryNewsComponent-NewsTitle",children:l.jsx("span",{children:e?.newsTitle||"News"})})}),l.jsxs("span",{className:"companyViewSummaryNewsComponent-NewsSource",children:["Source : ",e.sourceName]})]})]}))}),Mee=({onCompanyViewBussinessUnitTabsClick:t=()=>{},activeCompanyViewBussinessUnitTabs:e="Food And Meals"})=>{const n=["Food And Meals","Ipo","Logistics"],r=(i,s)=>fe({"companyViewBussinessUnitTabsComponent-Button--Generic":!0,"companyViewBussinessUnitTabsComponent-Button--Selected":s===i,"companyViewBussinessUnitTabsComponent-Button--Unselected":s!==i});return l.jsx("div",{className:"BussinessUnit-Generic",children:l.jsx("span",{className:"BussinessUnit-Tabs",children:n.map((i,s)=>l.jsx("button",{onClick:()=>t(i),className:r(i,e),children:i.toUpperCase()},s))})})};h2.register(kn,tr,Sn,Dr,An,mn,Mn,tn,en);const kee=({Data1:t=[],Data2:e=[],data1Label:n="",data2Label:r="",fill:i=!0})=>{const s=t.map(h=>h.Xaxis),a=t.map(h=>h.Yaxis),o=e.map(h=>h.Yaxis),c={responsive:!0,aspectRatio:0,maintainAspectRatio:!0,scales:{y:{grace:"40%",beginAtZero:!0,border:{color:"transparent",position:"center"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent",padding:4},ticks:{callback:function(h){return C2.format(h),C2.format(h)},align:"start",color:"#ADADAD",count:4,offset:!0,font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}},x:{grid:{display:!1},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!0,align:"end"},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},u={labels:s,datasets:[{type:"line",fill:i,label:n,data:a,backgroundColor:h=>{const p=h.chart.ctx.createLinearGradient(0,0,0,200);return p.addColorStop(0,"rgba(255, 141, 78, 0.2)"),p.addColorStop(1,"rgba(35, 35, 35, 0)"),p},borderColor:"#FF8D4E",borderCapStyle:"round",pointBackgroundColor:"#331C10",borderWidth:2,radius:3,pointHoverRadius:5},{type:"line",fill:i,label:r,data:o,pointBackgroundColor:"#171616",backgroundColor:h=>{const p=h.chart.ctx.createLinearGradient(0,0,0,200);return p.addColorStop(0,"rgba(152, 125, 110, 0)"),p.addColorStop(1,"rgba(152, 125, 110, 0.5)"),p},borderColor:"#999999",borderCapStyle:"round",borderWidth:2,radius:3,pointHoverRadius:5}]};return l.jsx(a3,{type:"bar",id:"canvas",options:c,data:u})};h2.register(kn,Sn,An,mn,Mn,tn,en,tr);const See=({inputLabels:t=[],targetValues:e=[],comparisonValues:n=[]})=>{const r={responsive:!0,aspectRatio:0,maintainAspectRatio:!0,tension:.4,elements:{point:{radius:0,hoverRadius:0,borderWidth:0,hoverBorderWidth:0}},scales:{y:{grace:"40%",ticks:{display:!1},grid:{display:!1}},x:{ticks:{font:{family:"Inter",size:12,weight:500,lineHeight:"18px"},color:"white"},grid:{color:"rgba(55, 55, 55, 1)",drawTicks:!1}}},plugins:{legend:{display:!0,align:"end"},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},s={labels:t,datasets:[{label:"Prospect Growth",data:e,borderColor:a=>{const c=a.chart.ctx.createLinearGradient(50,0,200,100);return c.addColorStop(.3,"rgba(255, 255, 255, 0.3)"),c.addColorStop(1,"rgba(255, 141, 78, 0.7)"),c.addColorStop(.3,"rgba(255, 255, 255, 0.3)"),c},borderWidth:2},{label:"Peer Growth",data:n,borderColor:a=>{const c=a.chart.ctx.createLinearGradient(50,0,200,100);return c.addColorStop(.4,"rgba(132, 114, 105, 0.5)"),c.addColorStop(.1,"rgba(241, 220, 208, 0.7)"),c.addColorStop(.6,"rgba(139, 130, 125, 0.9)"),c},backgroundColor:"rgba(54, 162, 235, 0.2)",borderWidth:2}]};return l.jsx(Rv,{options:r,data:s})},g8=t=>typeof t=="number"&&!isNaN(t),zi=t=>typeof t=="string",wn=t=>typeof t=="function",bo=t=>zi(t)||wn(t)?t:null,S6=t=>C.isValidElement(t)||zi(t)||wn(t)||g8(t);function jee(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function rl(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=t;return function(a){let{children:o,position:c,preventExitTransition:u,done:h,nodeRef:f,isIn:p,playToast:m}=a;const g=r?`${e}--${c}`:e,v=r?`${n}--${c}`:n,x=C.useRef(0);return C.useLayoutEffect(()=>{const b=f.current,A=g.split(" "),M=L=>{L.target===f.current&&(m(),b.removeEventListener("animationend",M),b.removeEventListener("animationcancel",M),x.current===0&&L.type!=="animationcancel"&&b.classList.remove(...A))};b.classList.add(...A),b.addEventListener("animationend",M),b.addEventListener("animationcancel",M)},[]),C.useEffect(()=>{const b=f.current,A=()=>{b.removeEventListener("animationend",A),i?jee(b,h,s):h()};p||(u?A():(x.current=1,b.className+=` ${v}`,b.addEventListener("animationend",A)))},[p]),C.createElement(C.Fragment,null,o)}}function up(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Z2=new Map;let v8=[];const j6=new Set,Fee=t=>j6.forEach(e=>e(t)),tw=()=>Z2.size>0;function nw(t,e){var n;if(e)return!((n=Z2.get(e))==null||!n.isToastActive(t));let r=!1;return Z2.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function rw(t,e){S6(t)&&(tw()||v8.push({content:t,options:e}),Z2.forEach(n=>{n.buildToast(t,e)}))}function hp(t,e){Z2.forEach(n=>{e!=null&&e!=null&&e.containerId?e?.containerId===n.id&&n.toggle(t,e?.id):n.toggle(t,e?.id)})}function Lee(t){const{subscribe:e,getSnapshot:n,setProps:r}=C.useRef(function(s){const a=s.containerId||1;return{subscribe(o){const c=function(h,f,p){let m=1,g=0,v=[],x=[],b=[],A=f;const M=new Map,L=new Set,k=()=>{b=Array.from(M.values()),L.forEach(N=>N())},R=N=>{x=N==null?[]:x.filter(V=>V!==N),k()},B=N=>{const{toastId:V,onOpen:O,updateId:X,children:ie}=N.props,ge=X==null;N.staleId&&M.delete(N.staleId),M.set(V,N),x=[...x,N.props.toastId].filter($=>$!==N.staleId),k(),p(up(N,ge?"added":"updated")),ge&&wn(O)&&O(C.isValidElement(ie)&&ie.props)};return{id:h,props:A,observe:N=>(L.add(N),()=>L.delete(N)),toggle:(N,V)=>{M.forEach(O=>{V!=null&&V!==O.props.toastId||wn(O.toggle)&&O.toggle(N)})},removeToast:R,toasts:M,clearQueue:()=>{g-=v.length,v=[]},buildToast:(N,V)=>{if((xe=>{let{containerId:ve,toastId:ke,updateId:We}=xe;const pe=ve?ve!==h:h!==1,Re=M.has(ke)&&We==null;return pe||Re})(V))return;const{toastId:O,updateId:X,data:ie,staleId:ge,delay:$}=V,te=()=>{R(O)},q=X==null;q&&g++;const Z={...A,style:A.toastStyle,key:m++,...Object.fromEntries(Object.entries(V).filter(xe=>{let[ve,ke]=xe;return ke!=null})),toastId:O,updateId:X,data:ie,closeToast:te,isIn:!1,className:bo(V.className||A.toastClassName),bodyClassName:bo(V.bodyClassName||A.bodyClassName),progressClassName:bo(V.progressClassName||A.progressClassName),autoClose:!V.isLoading&&(Q=V.autoClose,oe=A.autoClose,Q===!1||g8(Q)&&Q>0?Q:oe),deleteToast(){const xe=M.get(O),{onClose:ve,children:ke}=xe.props;wn(ve)&&ve(C.isValidElement(ke)&&ke.props),p(up(xe,"removed")),M.delete(O),g--,g<0&&(g=0),v.length>0?B(v.shift()):k()}};var Q,oe;Z.closeButton=A.closeButton,V.closeButton===!1||S6(V.closeButton)?Z.closeButton=V.closeButton:V.closeButton===!0&&(Z.closeButton=!S6(A.closeButton)||A.closeButton);let J=N;C.isValidElement(N)&&!zi(N.type)?J=C.cloneElement(N,{closeToast:te,toastProps:Z,data:ie}):wn(N)&&(J=N({closeToast:te,toastProps:Z,data:ie}));const ee={content:J,props:Z,staleId:ge};A.limit&&A.limit>0&&g>A.limit&&q?v.push(ee):g8($)?setTimeout(()=>{B(ee)},$):B(ee)},setProps(N){A=N},setToggle:(N,V)=>{M.get(N).toggle=V},isToastActive:N=>x.some(V=>V===N),getSnapshot:()=>b}}(a,s,Fee);Z2.set(a,c);const u=c.observe(o);return v8.forEach(h=>rw(h.content,h.options)),v8=[],()=>{u(),Z2.delete(a)}},setProps(o){var c;(c=Z2.get(a))==null||c.setProps(o)},getSnapshot(){var o;return(o=Z2.get(a))==null?void 0:o.getSnapshot()}}}(t)).current;r(t);const i=C.useSyncExternalStore(e,n,n);return{getToastToRender:function(s){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(o=>{const{position:c}=o.props;a.has(c)||a.set(c,[]),a.get(c).push(o)}),Array.from(a,o=>s(o[0],o[1]))},isToastActive:nw,count:i?.length}}function zee(t){const[e,n]=C.useState(!1),[r,i]=C.useState(!1),s=C.useRef(null),a=C.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:o,pauseOnHover:c,closeToast:u,onClick:h,closeOnClick:f}=t;var p,m;function g(){n(!0)}function v(){n(!1)}function x(M){const L=s.current;a.canDrag&&L&&(a.didMove=!0,e&&v(),a.delta=t.draggableDirection==="x"?M.clientX-a.start:M.clientY-a.start,a.start!==M.clientX&&(a.canCloseOnClick=!1),L.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,L.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",b);const M=s.current;if(a.canDrag&&a.didMove&&M){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();M.style.transition="transform 0.2s, opacity 0.2s",M.style.removeProperty("transform"),M.style.removeProperty("opacity")}}(m=Z2.get((p={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||m.setToggle(p.id,p.fn),C.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",v)}},[t.pauseOnFocusLoss]);const A={onPointerDown:function(M){if(t.draggable===!0||t.draggable===M.pointerType){a.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",b);const L=s.current;a.canCloseOnClick=!0,a.canDrag=!0,L.style.transition="none",t.draggableDirection==="x"?(a.start=M.clientX,a.removalDistance=L.offsetWidth*(t.draggablePercent/100)):(a.start=M.clientY,a.removalDistance=L.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(M){const{top:L,bottom:k,left:R,right:B}=s.current.getBoundingClientRect();M.nativeEvent.type!=="touchend"&&t.pauseOnHover&&M.clientX>=R&&M.clientX<=B&&M.clientY>=L&&M.clientY<=k?v():g()}};return o&&c&&(A.onMouseEnter=v,t.stacked||(A.onMouseLeave=g)),f&&(A.onClick=M=>{h&&h(M),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:v,isRunning:e,preventExitTransition:r,toastRef:s,eventHandlers:A}}function Ree(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:s,className:a,style:o,controlledProgress:c,progress:u,rtl:h,isIn:f,theme:p}=t;const m=s||c&&u===0,g={...o,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};c&&(g.transform=`scaleX(${u})`);const v=fe("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":h}),x=wn(a)?a({rtl:h,type:i,defaultClassName:v}):fe(v,a),b={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{f&&r()}};return C.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},C.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),C.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:x,style:g,...b}))}let Dee=1;const iw=()=>""+Dee++;function Nee(t){return t&&(zi(t.toastId)||g8(t.toastId))?t.toastId:iw()}function Y0(t,e){return rw(t,e),e.toastId}function u5(t,e){return{...e,type:e&&e.type||t,toastId:Nee(e)}}function qa(t){return(e,n)=>Y0(e,u5(t,n))}function Jt(t,e){return Y0(t,u5("default",e))}Jt.loading=(t,e)=>Y0(t,u5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Jt.promise=function(t,e,n){let r,{pending:i,error:s,success:a}=e;i&&(r=zi(i)?Jt.loading(i,n):Jt.loading(i.render,{...n,...i}));const o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(h,f,p)=>{if(f==null)return void Jt.dismiss(r);const m={type:h,...o,...n,data:p},g=zi(f)?{render:f}:f;return r?Jt.update(r,{...m,...g}):Jt(g.render,{...m,...g}),p},u=wn(t)?t():t;return u.then(h=>c("success",a,h)).catch(h=>c("error",s,h)),u},Jt.success=qa("success"),Jt.info=qa("info"),Jt.error=qa("error"),Jt.warning=qa("warning"),Jt.warn=Jt.warning,Jt.dark=(t,e)=>Y0(t,u5("default",{theme:"dark",...e})),Jt.dismiss=function(t){(function(e){var n;if(tw()){if(e==null||zi(n=e)||g8(n))Z2.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=Z2.get(e.containerId);r?r.removeToast(e.id):Z2.forEach(i=>{i.removeToast(e.id)})}}else v8=v8.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Jt.clearWaitingQueue=function(t){t===void 0&&(t={}),Z2.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Jt.isActive=nw,Jt.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var s;let{containerId:a}=i;return(s=Z2.get(a||1))==null?void 0:s.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,s={delay:100,...r,...e,toastId:e.toastId||t,updateId:iw()};s.toastId!==t&&(s.staleId=t);const a=s.render||i;delete s.render,Y0(a,s)}},Jt.done=t=>{Jt.update(t,{progress:1})},Jt.onChange=function(t){return j6.add(t),()=>{j6.delete(t)}},Jt.play=t=>hp(!0,t),Jt.pause=t=>hp(!1,t);const Tee=typeof window<"u"?C.useLayoutEffect:C.useEffect,Ja=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return C.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},_4={info:function(t){return C.createElement(Ja,{...t},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return C.createElement(Ja,{...t},C.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return C.createElement(Ja,{...t},C.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return C.createElement(Ja,{...t},C.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return C.createElement("div",{className:"Toastify__spinner"})}},Bee=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=zee(t),{closeButton:a,children:o,autoClose:c,onClick:u,type:h,hideProgressBar:f,closeToast:p,transition:m,position:g,className:v,style:x,bodyClassName:b,bodyStyle:A,progressClassName:M,progressStyle:L,updateId:k,role:R,progress:B,rtl:N,toastId:V,deleteToast:O,isIn:X,isLoading:ie,closeOnClick:ge,theme:$}=t,te=fe("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":N},{"Toastify__toast--close-on-click":ge}),q=wn(v)?v({rtl:N,position:g,type:h,defaultClassName:te}):fe(te,v),Z=function(ee){let{theme:xe,type:ve,isLoading:ke,icon:We}=ee,pe=null;const Re={theme:xe,type:ve};return We===!1||(wn(We)?pe=We({...Re,isLoading:ke}):C.isValidElement(We)?pe=C.cloneElement(We,Re):ke?pe=_4.spinner():(Ue=>Ue in _4)(ve)&&(pe=_4[ve](Re))),pe}(t),Q=!!B||!c,oe={closeToast:p,type:h,theme:$};let J=null;return a===!1||(J=wn(a)?a(oe):C.isValidElement(a)?C.cloneElement(a,oe):function(ee){let{closeToast:xe,theme:ve,ariaLabel:ke="close"}=ee;return C.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ve}`,type:"button",onClick:We=>{We.stopPropagation(),xe(We)},"aria-label":ke},C.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},C.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(oe)),C.createElement(m,{isIn:X,done:O,position:g,preventExitTransition:n,nodeRef:r,playToast:s},C.createElement("div",{id:V,onClick:u,"data-in":X,className:q,...i,style:x,ref:r},C.createElement("div",{...X&&{role:R},className:wn(b)?b({type:h}):fe("Toastify__toast-body",b),style:A},Z!=null&&C.createElement("div",{className:fe("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ie})},Z),C.createElement("div",null,o)),J,C.createElement(Ree,{...k&&!Q?{key:`pb-${k}`}:{},rtl:N,theme:$,delay:c,isRunning:e,isIn:X,closeToast:p,hide:f,type:h,style:L,className:M,controlledProgress:Q,progress:B||0})))},il=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Iee=rl(il("bounce",!0));rl(il("slide",!0));rl(il("zoom"));rl(il("flip"));const Pee={position:"top-right",transition:Iee,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function hc(t){let e={...Pee,...t};const n=t.stacked,[r,i]=C.useState(!0),s=C.useRef(null),{getToastToRender:a,isToastActive:o,count:c}=Lee(e),{className:u,style:h,rtl:f,containerId:p}=e;function m(v){const x=fe("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":f});return wn(u)?u({position:v,rtl:f,defaultClassName:x}):fe(x,bo(u))}function g(){n&&(i(!0),Jt.play())}return Tee(()=>{if(n){var v;const x=s.current.querySelectorAll('[data-in="true"]'),b=12,A=(v=e.position)==null?void 0:v.includes("top");let M=0,L=0;Array.from(x).reverse().forEach((k,R)=>{const B=k;B.classList.add("Toastify__toast--stacked"),R>0&&(B.dataset.collapsed=`${r}`),B.dataset.pos||(B.dataset.pos=A?"top":"bot");const N=M*(r?.2:1)+(r?0:b*R);B.style.setProperty("--y",`${A?N:-1*N}px`),B.style.setProperty("--g",`${b}`),B.style.setProperty("--s",""+(1-(r?L:0))),M+=B.offsetHeight,L+=.025})}},[r,c,n]),C.createElement("div",{ref:s,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),Jt.pause())},onMouseLeave:g},a((v,x)=>{const b=x.length?{...h}:{...h,pointerEvents:"none"};return C.createElement("div",{className:m(v),style:b,key:`container-${v}`},x.map(A=>{let{content:M,props:L}=A;return C.createElement(Bee,{...L,stacked:n,collapseAll:g,isIn:o(L.toastId,L.containerId),style:L.style,key:`toast-${L.key}`},M)}))}))}const Vee=({toastText1:t="🦄 Wow so easy!",toastText2:e="🦄 Wow so easy!",showToast:n=!1,delay:r=5e3})=>{console.log("Welcome to Prospect");const i=()=>Jt(l.jsxs("div",{className:"welcomeToast--body",children:[t,l.jsx("span",{children:e})]}),{position:"top-right",autoClose:r,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark"});return C.useEffect(()=>{let s;if(n&&(s=i()),s)return()=>Jt.dismiss(s)},[n]),l.jsx("div",{children:l.jsx(hc,{limit:1})})},sw=({checked:t=!1,onClick:e,id:n=Hs(),sizeVariant:r="sm",isAllSelected:i=!1,isSubsetSelected:s=!1,isDisabled:a=!1})=>{const[o,c]=C.useState(t);C.useEffect(()=>{c(i)},[i]);const u=()=>{e(!o),i&&c(!1)};return l.jsx("input",{type:"checkbox",className:`searchCheckboxComponent--Generic ${r}SizeCheckBox ${s?"subSelected":""}`,id:`${n}`,checked:o,onClick:h=>h.stopPropagation(),onChange:u,disabled:a})},Hee=({onApplyClick:t,selectedCount:e=0,showCancel:n=!0,onCancelClick:r=()=>!1,totalCount:i=10,isAllSelected:s,isDisabled:a,tooltipContent:o,dataCy:c,hideSelectedText:u=!1,limit:h})=>{const[f,p]=C.useState(!1),[m,g]=C.useState(e),v=C.useRef(null),x=C.useRef(null),b=h||i,A=()=>{a||p(V=>(V&&v.current?v.current.close():v.current&&v.current.show(),!V))},M=()=>{a||(s?r():A())};C.useEffect(()=>{function V(O){v.current&&x.current&&!v.current.contains(O.target)&&!x.current.contains(O.target)&&(v.current.close(),p(!1))}return document.addEventListener("mousedown",V),()=>{document.removeEventListener("mousedown",V)}},[]);const L=()=>{t(b),A()},k=V=>{V>=0&&V<=b&&g(V)},R=()=>{g(0),r(),A()},B=()=>{t(m),A()},N=fe({"selectDropDown--dropdown-list-show":f,"selectDropDown--dropdown-list-hide":!f});return l.jsx(M1,{content:o,toolTipPosition:"top",isDisabled:!o,children:l.jsx("div",{className:"selectDropDown--container","data-cy":c,children:l.jsxs("span",{className:"selectDropDown--dropdown",children:[l.jsxs("button",{onClick:A,disabled:a,className:"selectDropDown--btn--dropdown",ref:x,children:[l.jsx(sw,{sizeVariant:"base",checked:!1,onClick:M,isAllSelected:s,isSubsetSelected:!s&&e>0,isDisabled:a}),e>0&&l.jsxs("p",{children:[e," ",!u&&"selected"]}),l.jsx("span",{children:l.jsx(ce,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("dialog",{id:Hs(),ref:v,className:"dropdownContainer",children:l.jsxs("ul",{className:N,children:[l.jsx("li",{onClick:L,"data-cy":`${c}-select-all`,children:h?`Select Top ${h}`:"Select All"}),l.jsxs("li",{children:["Select Top",l.jsx("span",{className:"space",children:f&&l.jsx(Z7,{initialNumber:String(m),handleChange:k,props:{style:{width:"70px",maxWidth:"70px"}},dataCy:`${c}-input`})})]}),l.jsx("span",{className:"apply",children:l.jsx(Un,{text:"Apply",colorVariant:"orange",onClick:B,isDisabled:m<0,dataCy:`${c}-apply`})}),n&&l.jsx("span",{className:"cancel",children:l.jsx(Ls,{text:"Clear Selection",onClick:R,dataCy:`${c}-clear-selection`})})]})})]})})})},Oee=({})=>l.jsx("div",{className:"shimmer-Generic",children:l.jsx("div",{className:"shimmer-Card br ",children:l.jsxs("div",{className:"shimmer-Wrapper",children:[l.jsx("div",{className:"shimmer-ProfilePic animate"}),l.jsx("div",{className:"shimmer-Comment br animate"}),l.jsx("div",{className:"shimmer-Comment br animate"}),l.jsx("div",{className:"shimmer-Comment br animate"})]})})}),Wee=({onNextClick:t=()=>{},onBackClick:e=()=>{}})=>l.jsx("div",{children:l.jsx("div",{className:"stickyFooter-Wrapper",children:l.jsxs("div",{className:"stickyFooter-Container",children:[l.jsx(Un,{colorVariant:"black",onClick:e,text:"Back",primaryButtonClassName:"primaryButton--Back",sizeVariant:"sm"}),l.jsx(Un,{colorVariant:"orange",onClick:t,text:"Next",primaryButtonClassName:"primaryButton--Next",sizeVariant:"sm"})]})})}),Gee=({numberOfRow:t=1,profileTableColums:e=[]})=>{const n=[];for(let u=1;u<=t;u++)n.push(u);const r=C.useMemo(()=>e,[]),{getTableProps:i,getTableBodyProps:s,headerGroups:a,rows:o,prepareRow:c}=jn.useTable({columns:r,data:n});return l.jsx("div",{className:"profileTableShimmer-Generic",children:l.jsxs("table",{className:"searchPersonTableShimmer",...i(),children:[l.jsx("thead",{children:a.map(u=>l.jsx("tr",{...u.getHeaderGroupProps(),children:u.headers.map(h=>l.jsx("th",{...h.getHeaderProps(),children:h.render("Header")}))}))}),l.jsx("tbody",{...s(),children:o.map(u=>(c(u),l.jsx("tr",{...u.getRowProps(),children:u.cells.map(h=>h.column.Header==="Name"?l.jsx("td",{...h.getCellProps(),children:l.jsxs("span",{className:"profileTableShimmer--NameCell",children:[l.jsx(nr,{sizeVariant:"xs",checked:h.row.original.isSelected,onClick:()=>{},isDisabled:!0}),l.jsxs("div",{className:"profileTableShimmer-Profile",children:[l.jsx("div",{className:"profileTableShimmer-ProfilePic animate"}),l.jsx("div",{className:"profileTableShimmer-ProfileName animate"})]})]})}):l.jsx("td",{...h.getCellProps(),children:l.jsx("div",{className:"profileTableShimmer-Comment animate"})}))})))})]})})},Uee=({numberOfRow:t=1,companyTableColums:e=[]})=>{const n=[];for(let u=1;u<=t;u++)n.push(u);const r=C.useMemo(()=>e,[]),{getTableProps:i,getTableBodyProps:s,headerGroups:a,rows:o,prepareRow:c}=jn.useTable({columns:r,data:n});return l.jsx("div",{className:"companyTableShimmer-Generic",children:l.jsxs("table",{className:"searchCompanyTableShimmer",...i(),children:[l.jsx("thead",{children:a.map(u=>l.jsx("tr",{...u.getHeaderGroupProps(),children:u.headers.map(h=>l.jsx("th",{...h.getHeaderProps(),children:h.render("Header")}))}))}),l.jsx("tbody",{...s(),children:o.map(u=>(c(u),l.jsx("tr",{...u.getRowProps(),children:u.cells.map(h=>h.column.Header==="Name"?l.jsx("td",{...h.getCellProps(),children:l.jsxs("span",{className:"companyTableShimmer--NameCell",children:[l.jsx(nr,{sizeVariant:"xs",checked:h.row.original.isSelected,onClick:()=>{},isDisabled:!0}),l.jsxs("div",{className:"companyTableShimmer-Profile",children:[l.jsx("div",{className:"companyTableShimmer-ProfilePic animate"}),l.jsx("div",{className:"companyTableShimmer-ProfileName animate"})]})]})}):l.jsx("td",{...h.getCellProps(),children:l.jsx("div",{className:"companyTableShimmer-Comment animate"})}))})))})]})})},Yee=({numberOfRow:t=1})=>{const e=[];for(let c=1;c<=t;c++)e.push(c);const n=C.useMemo(()=>[{Header:"Campaign Name",accessor:"campaignName",width:"15%"},{Header:"Assignment",accessor:"assignment",width:"15%"},{Header:"Status",accessor:"status",width:"20%"},{Header:"Rounds",accessor:"rounds"},{Header:"Replied",accessor:"replied"},{Header:"Interested",accessor:"interested"},{Header:"Date Created",accessor:"createdAt",width:"15%"},{accessor:"details"}],[]),{getTableProps:r,getTableBodyProps:i,headerGroups:s,rows:a,prepareRow:o}=jn.useTable({columns:n,data:e});return l.jsx("div",{className:"campaignTableShimmer-Generic",children:l.jsxs("table",{className:"searchCampaignTable--Generic ",...r(),children:[l.jsx("thead",{children:s.map(c=>l.jsx("tr",{...c.getHeaderGroupProps(),children:c.headers.map(u=>l.jsx("th",{...u.getHeaderProps(),style:{width:u.width},children:u.render("Header")}))}))}),l.jsx("tbody",{...i(),children:a.map(c=>(o(c),l.jsx("tr",{...c.getRowProps(),children:c.cells.map(u=>l.jsx("td",{...u.getCellProps(),children:l.jsx("div",{className:"campaignTableShimmer-Comment animate"})}))})))})]})})},Kee=({})=>l.jsxs("div",{className:"roundDetailsShimmer-Generic",children:[l.jsxs("div",{className:"roundDetailsShimmer-Header",children:[l.jsxs("div",{className:"roundDetailsShimmer-LeftHeading ",children:[l.jsx("div",{className:"roundDetailsShimmer-RoundNumber animate"}),l.jsx("div",{className:"roundDetailsShimmer-SentStatus animate"})]}),l.jsx("div",{className:"roundDetailsShimmer-RightHeading animate"})]}),l.jsxs("div",{className:"roundDetailsShimmer-Body",children:[l.jsx("div",{className:"roundDetailsShimmer-LeftBody",children:l.jsx("div",{className:"roundDetailsShimmer-TextContainer ",children:l.jsx("div",{className:"roundDetailsShimmer-InsideTextContainer",children:l.jsx("div",{className:"roundDetailsShimmer-InsideText animate"})})})}),l.jsx("div",{className:"roundDetailsShimmer-RightBody",children:l.jsxs("div",{className:"roundDetailsShimmer-ReceiptsBox",children:[l.jsxs("div",{className:"roundDetailsShimmer-ReceipientHeader",children:[l.jsx("div",{className:"roundDetailsShimmer-ReceipientText animate"}),l.jsx("div",{className:"roundDetailsShimmer-ReceipientCount animate"})]}),l.jsx("div",{className:"roundDetailsShimmer-Recepient animate"}),l.jsx("div",{className:"roundDetailsShimmer-Recepient animate"}),l.jsx("div",{className:"roundDetailsShimmer-Recepient animate"}),l.jsx("div",{className:"roundDetailsShimmer-ButtonContainer",children:l.jsx("div",{className:"roundDetailsShimmer-Button animate"})})]})})]})]}),Zee=({numberOfRow:t=1})=>{const e=[];for(let c=1;c<=t;c++)e.push(c);const n=C.useMemo(()=>[{Header:"Template Name",accessor:"name",width:"35%"},{Header:"Created By",accessor:"createdBy"},{Header:"Usage",accessor:"usage"},{Header:"Success Rate",accessor:"successRate"},{Header:"Date Created",accessor:"createdAt",width:"15%"},{accessor:"details"}],[]),{getTableProps:r,getTableBodyProps:i,headerGroups:s,rows:a,prepareRow:o}=jn.useTable({columns:n,data:e});return l.jsx("div",{className:"templateTableShimmer-Generic",children:l.jsxs("table",{className:"searchTemplateTable--Generic ",...r(),children:[l.jsx("thead",{children:s.map(c=>l.jsx("tr",{...c.getHeaderGroupProps(),children:c.headers.map(u=>l.jsx("th",{...u.getHeaderProps(),style:{width:u.width},children:u.render("Header")}))}))}),l.jsx("tbody",{...i(),children:a.map(c=>(o(c),l.jsxs("tr",{...c.getRowProps(),className:"row",children:[c.cells.map(u=>l.jsx("td",{...u.getCellProps(),children:l.jsx("div",{className:"templateTableShimmer-Comment animate"})})),c.cells.length<n.length&&l.jsx("td",{})]})))})]})})},qee="_textBoxWithSuggestionsHeading_f2iuj_136",Ir={"textBoxWithSuggestions-Wrapper":"_textBoxWithSuggestions-Wrapper_f2iuj_131",textBoxWithSuggestionsHeading:qee,"textBoxWithSuggestions-Container":"_textBoxWithSuggestions-Container_f2iuj_150","textBoxWithSuggestions-editor":"_textBoxWithSuggestions-editor_f2iuj_166","textBoxWithSuggestions-SuggestionsBox":"_textBoxWithSuggestions-SuggestionsBox_f2iuj_196","textBoxWithSuggestions-SuggestionText":"_textBoxWithSuggestions-SuggestionText_f2iuj_203","textBoxWithSuggestions-SuggestionList":"_textBoxWithSuggestions-SuggestionList_f2iuj_215","suggestionItem--Generic":"_suggestionItem--Generic_f2iuj_219","suggestionItem--Active":"_suggestionItem--Active_f2iuj_236"},Jee=({heading:t,value:e,handleChange:n,suggestionList:r})=>{const[i,s]=C.useState([]),a=M8({extensions:[k8.configure({heading:!1,bold:!1,italic:!1,strike:!1,code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,bulletList:!1,orderedList:!1,listItem:!1})],content:e,editable:!0,onUpdate:({editor:c})=>{const u=c.getText();n(u),u.length===0&&s(h=>h.map(()=>!1))},onCreate:({editor:c})=>{e&&c.commands.setContent(e)},editorProps:{attributes:{class:Ir["textBoxWithSuggestions-editor"]}}});C.useEffect(()=>{s(r.map(()=>!1))},[]),C.useEffect(()=>{a&&e!==a.getText()&&a.commands.setContent(e)},[e,a]);const o=c=>{a&&a.chain().focus().insertContent(`${c}
|
|
1061
|
-
`).run()};return l.jsxs("div",{className:Ir["textBoxWithSuggestions-Wrapper"],children:[l.jsx("p",{className:Ir.textBoxWithSuggestionsHeading,children:t}),l.jsx("div",{className:Ir["textBoxWithSuggestions-Container"],children:l.jsx(A8,{editor:a})}),l.jsxs("div",{className:Ir["textBoxWithSuggestions-SuggestionsBox"],children:[l.jsx("p",{className:Ir["textBoxWithSuggestions-SuggestionText"],children:"Suggestions"}),l.jsx("div",{className:Ir["textBoxWithSuggestions-SuggestionList"],children:r.map((c,u)=>l.jsx("div",{onClick:()=>{i[u]||(s(h=>h.map((f,p)=>p===u?!0:f)),o(c.suggestionText))},className:i[u]?Ir["suggestionItem--Active"]:Ir["suggestionItem--Generic"],children:c.suggestionHeading},u))})]})]})},Xee=({svgIcon:t,itemName:e,onClick:n,hasBorder:r})=>l.jsxs("div",{className:`TextDropdown-dropdownItem ${t}-icon ${r?"border-none":""}`,onClick:()=>n(e,t),children:[t&&l.jsx(ce,{iconType:t,iconSize:"16"}),e]}),Qee=({items:t,initialValue:e,initialSvg:n,onChange:r})=>{const[i,s]=C.useState(!1),[a,o]=C.useState(),c=C.useRef(null),u=()=>{s(m=>!m)},h=m=>{console.log("E: ",m),o(m),s(!1)},f=C.useMemo(()=>a||{itemName:e,svgIcon:n},[a,e,n]),p=(m,g)=>{h({itemName:m,svgIcon:g}),r({itemName:m,svgIcon:g})};return C.useEffect(()=>{function m(g){c.current&&!c.current.contains(g.target)&&!c.current.parentElement?.contains(g.target)&&u()}return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[]),l.jsx("div",{children:l.jsxs("div",{className:"TextDropdown-Wrapper",children:[l.jsxs("div",{className:"TextDropdown-barContainer",onClick:u,children:[l.jsxs("div",{className:`TextDropdown-selectedTextContainer ${f.svgIcon}-icon`,children:[f.svgIcon&&l.jsx(ce,{iconType:f.svgIcon,iconSize:"16"}),l.jsx("span",{className:"TextDropdown-selectedText",children:f.itemName??""})]}),l.jsx("span",{className:"TextDropdown-dropdownSvg",children:l.jsx(ce,{iconType:`${i?"cheveronUp":"cheveronDown"}`})})]}),i&&l.jsx("div",{className:"TextDropdown-dropdownBody",ref:c,children:t.map((m,g)=>l.jsx(Xee,{itemName:m.itemName,svgIcon:m.svgIcon,hasBorder:g==t.length-1,onClick:p},m.itemName+g))})]})})},_ee=({hourValue:t,minuteValue:e,selectedTime:n,disableBefore:r,alwaysShowTime:i,timezone:s,onTimePicked:a})=>{const[o,c]=C.useState(!1),[u,h]=C.useState(!1),f=Array.from(Array(12).keys()).map(q=>q<9?`0${q+1}`:`${q+1}`),p=Array.from(Array(60).keys()).map(q=>q<=9?`0${q}`:`${q}`),m=["AM","PM"],[g,v]=C.useState(String(t||1)),[x,b]=C.useState(String(e||0)),[A,M]=C.useState(n||"AM"),k=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date,oe=new Date(r).getHours(),J=Q.getHours(),ee=J<12?"AM":"PM";return oe>12?(q.push(...Array.from({length:oe-12},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`)),Z.push(...Array.from({length:12},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`))):Z.push(...Array.from({length:oe},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`)),ee==="AM"?J===oe&&Z.pop():J===oe&&q.pop(),{PM:q,AM:Z}})(),B=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date(r),oe=Q.getHours(),J=Q.getMinutes();let ee=Number(g);return A==="PM"&&ee!==12?ee+=12:A==="AM"&&ee===12&&(ee=0),ee!==r.getHours()?{AM:[],PM:[]}:(oe<12&&Number(g)===oe?Z.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)):oe===12&&A==="PM"?q.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)):oe>12&&Number(g)===oe-12&&q.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)),{AM:Z,PM:q})})();C.useEffect(()=>{o&&Array.from(document.getElementsByClassName("timePickerItem--activated")).map(Z=>Z.scrollIntoView())},[o]);const[N,V]=C.useState({x:0,y:0,direction:"top"}),O=C.useRef(null),X=C.useRef(document.getElementById("root")),ie=C.useRef(null),ge=()=>{if(ie.current){const q=ie.current.getBoundingClientRect();let Z=q.y+q.height+8,Q="top";const oe=q.x;200>window.innerHeight-q.y&&(Q="bottom",Z=window.innerHeight-q.y+8),V({y:Z,x:oe,direction:Q})}},$=q=>{ge(),c(q),h(!q)},te=q=>{const Z=q.target;O.current&&ie.current&&Z!==O.current&&!O.current.contains(Z)&&!ie.current.contains(Z)&&$(!1)};return C.useEffect(()=>{(Number(g)!==t||Number(x)!==e||A!==n)&&a(`${g}:${x}:${A}`)},[g,x,A]),C.useEffect(()=>(window.addEventListener("click",te),window.addEventListener("wheel",()=>ge()),()=>{window.addEventListener("click",te),window.removeEventListener("wheel",()=>ge())}),[]),l.jsxs("div",{className:"timePickerDropdown--Active",ref:ie,children:[l.jsxs("button",{className:"timePickerDropdown-Button",onClick:()=>{h(o),$(!o)},children:[l.jsx("p",{children:i||u?`${Number(g)<10?`0${g}`:g}:${Number(x)<10?`0${x}`:x} ${A}`:"Time"}),l.jsx(ce,{iconType:"clock",iconSize:"16"})]}),o&&!!X.current&&Ki.createPortal(l.jsxs("div",{className:`${o?"":"timePicker-hideTimeDial"} timePicker-Container`,ref:O,style:{[N.direction]:N?.y,left:N?.x},children:[l.jsxs("div",{className:"time-scroll-container",children:[l.jsx("div",{id:"hour-list",className:"timePickerVerticalList-Container",children:f.map(q=>{const Z=k[A].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(g)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||v(Number(q).toString())},children:q})})}),l.jsx("div",{id:"minutes-list",className:"timePickerVerticalList-Container",children:p.map(q=>{const Z=B[A].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(x)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||b(Number(q).toString())},children:q})})}),l.jsx("div",{className:"timePickerVerticalList-Container",children:m.map(q=>{const Z=k[q].length===12;return l.jsx("div",{className:`timePickerVerticalList-Item ${q===A?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||M(q)},children:q})})})]}),!!s&&l.jsx("div",{className:"timezone",children:s})]}),X.current)]})},$ee=({variants:t})=>{const[e,n]=C.useState(0);function r(i,s,a){return i==="Custom"?l.jsx("div",{className:`variantList--Custom ${e===a?"active-variant":""}`,onClick:()=>n(a),children:l.jsx("p",{className:"variantListCustomText",children:"Custom"})}):l.jsxs("div",{className:`variantList--Generic ${e===a?"active-variant":""}`,onClick:()=>n(a),children:[l.jsx("div",{children:l.jsx("p",{className:"variantList-Heading",children:i})}),l.jsx("div",{children:l.jsx("p",{className:"variantList-Text",children:s.length>=23?`${s.slice(0,23)}..`:s})})]})}return l.jsx("div",{className:"variantsList-Container",children:t.map((i,s)=>r(i.name,i.text,s))})},ete=({numberOfRow:t=1,columns:e})=>{const n=[];for(let c=1;c<=t;c++)n.push(c);const{getTableProps:r,getTableBodyProps:i,headerGroups:s,rows:a,prepareRow:o}=jn.useTable({columns:e,data:n});return l.jsx("div",{className:"campaignTableShimmer-Generic",children:l.jsxs("table",{className:"searchCampaignTable--Generic ",...r(),children:[l.jsx("thead",{children:s.map(c=>l.jsx("tr",{...c.getHeaderGroupProps(),children:c.headers.map(u=>l.jsx("th",{...u.getHeaderProps(),style:{width:u.width},children:u.render("Header")}))}))}),l.jsx("tbody",{...i(),children:a.map(c=>(o(c),l.jsx("tr",{...c.getRowProps(),children:c.cells.map(u=>l.jsx("td",{...u.getCellProps(),children:l.jsx("div",{className:"campaignTableShimmer-Comment animate"})}))})))})]})})},y0={"textAreaWithTooltip-Wrapper":"_textAreaWithTooltip-Wrapper_ze0ch_131","textAreaWithTooltip-Container":"_textAreaWithTooltip-Container_ze0ch_135","textAreaWithTooltip-editor":"_textAreaWithTooltip-editor_ze0ch_143","textAreaWithTooltip-placeholder":"_textAreaWithTooltip-placeholder_ze0ch_161","textAreaWithTooltip-charactersLeft":"_textAreaWithTooltip-charactersLeft_ze0ch_173"},tte=({value:t,handleChange:e,placeholder:n="",customStyles:r={},maxLength:i})=>{const[s,a]=C.useState(0),o=M8({extensions:[k8.configure({heading:!1,bold:!1,italic:!1,strike:!1,code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,bulletList:!1,orderedList:!1,listItem:!1})],content:t,editable:!0,onUpdate:({editor:c})=>{const u=c.getText(),h=u.length;if(a(h),i&&h>i){const f=u.substring(0,i);c.commands.setContent(f);return}e(u)},onCreate:({editor:c})=>{t&&(c.commands.setContent(t),a(c.getText().length))},editorProps:{attributes:{class:y0["textAreaWithTooltip-editor"]},handlePaste:(c,u)=>{if(!i)return!1;const h=u.clipboardData?.getData("text/plain")||"",f=o?.getText()||"",p=i-f.length;if(p<=0)return u.preventDefault(),!0;if(h.length>p){const m=h.substring(0,p);return u.preventDefault(),o?.commands.insertContent(m),!0}return!1},handleTextInput:(c,u,h,f)=>i?(o?.getText()||"").length>=i:!1}});return C.useEffect(()=>{o&&t!==o.getText()&&(o.commands.setContent(t),a(o.getText().length))},[t,o]),C.useEffect(()=>{if(o&&i){const c=o.getText();if(c.length>i){const u=c.substring(0,i);o.commands.setContent(u),a(i)}}},[o,i,s]),l.jsxs("div",{className:y0["textAreaWithTooltip-Wrapper"],children:[l.jsxs("div",{className:y0["textAreaWithTooltip-Container"],style:r,children:[l.jsx(A8,{editor:o}),!o?.getText()&&l.jsx("div",{className:y0["textAreaWithTooltip-placeholder"],children:n})]}),i&&l.jsxs("p",{className:y0["textAreaWithTooltip-charactersLeft"],children:[i-s," characters left"]})]})},aw=({dropdownOnClickHandler:t})=>{const[e,n]=C.useState(!1),[r,i]=C.useState("Personalise"),[s,a]=C.useState(!1),o=C.useRef(null),c=()=>{n(h=>!h)},u=()=>{c(),a(!s)};return C.useEffect(()=>{function h(f){o.current&&!o.current.contains(f.target)&&u()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"drop-down-dd",children:[r,l.jsx("span",{className:"svg-dd",onClick:u,children:l.jsx(ce,{iconType:s?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),e&&l.jsxs("div",{ref:o,className:"dropdown-body",children:[l.jsx("span",{onClick:()=>{i("Personalise"),u(),t("Personalise")},children:"Personlise"}),l.jsx("span",{onClick:()=>{i("Templates"),u(),t("Templates")},children:"Templates"})]})]})},ow=({value:t})=>{const[e,n]=C.useState(!1),r=()=>{n(i=>!i),t(!e)};return l.jsx("div",{children:l.jsx("span",{className:`radio-svg ${e?"clicked":""}`,onClick:r,children:l.jsx(ce,{iconType:"radio",iconSize:"16"})})})},di=({title:t="Title",content:e="Content",refresh:n=!1,likeState:r,unlikeState:i,refreshState:s})=>{const[a,o]=C.useState(!1),[c,u]=C.useState(!1),[h,f]=C.useState(n),p=()=>{o(v=>!v),r(!a)},m=()=>{u(v=>!v),i(!c)},g=()=>{f(v=>!v),s(!h)};return l.jsxs("div",{className:"main-card-div--ad",children:[l.jsxs("div",{className:"card-title-bar",children:[l.jsxs("div",{className:"start-div",children:[l.jsx(ow,{value:v=>console.log(v)}),l.jsxs("div",{className:"sub",children:[" ",t," "]})]}),l.jsxs("div",{className:"end-div",children:[l.jsx("span",{className:`__svg ${a&&"__svg-active"}`,onClick:p,children:l.jsx(ce,{iconType:"like",iconSize:"24"})}),l.jsx("span",{className:`__svg ${c&&"__svg-active"}`,onClick:m,children:l.jsx(ce,{iconType:"unlike",iconSize:"24"})}),l.jsx("span",{className:`__svg ${h&&"__svg-active"}`,onClick:g,style:{width:"24px",marginTop:"6px"},children:l.jsx(ce,{iconType:"refresh",iconSize:"16"})})]})]}),l.jsx("div",{className:"content",children:e})]})},nte=({characterCount:t,limit:e})=>{const n=r=>{t(r.target.value.length),CQ(r.target.value)};return l.jsx("textarea",{className:"text-area",maxLength:e,onChange:n})},lw=({title:t="CEO Apple",getText:e})=>{const n=()=>{e(t),alert(t+" Clicked!")};return l.jsx("div",{className:"card-style",onClick:n,children:l.jsx("div",{className:"collapsed",children:l.jsxs("div",{className:"title-cheveron",children:[l.jsx("span",{className:"title--c",children:t}),l.jsx("span",{className:"svg--c",children:l.jsx(ce,{iconType:"chevronRight",iconSize:"16"})})]})})})},rte=({initialNumber:t=0,placeholder:e="123",unit:n,handleChange:r=i=>i})=>{const[i,s]=C.useState(`${t} ${n}`),a=u=>{const h=u.target.value;/^[0-9]*$/.test(h)&&h?(s(h),r(parseInt(h))):h.trim().length===0&&(s("0"),r(0))},o=()=>{i!==""?(s(`${parseInt(i)+1} ${n}`),r(parseInt(i.split(" ")[0])+1)):i===""&&(s("0"),r(0))},c=()=>{parseInt(i)>0&&(s(`${parseInt(i)-1} ${n}`),r(parseInt(i.split(" ")[0])-1))};return l.jsxs("div",{className:"numberStringInputField",children:[l.jsx("input",{placeholder:e,disabled:!0,type:"text",value:i,onChange:a}),l.jsxs("div",{className:"numberStringInputField-Buttons",children:[l.jsx("button",{onClick:o,children:l.jsx(ce,{iconType:"cheveronUp",iconSize:"16"})}),l.jsx("button",{onClick:c,children:l.jsx(ce,{iconType:"cheveronDown",iconSize:"16"})})]})]})},ite=({text:t="",iconType:e="",children:n})=>{const[r,i]=C.useState(!1),s=C.useRef(null),a=C.useRef(null),o=()=>{i(u=>!u)};C.useEffect(()=>{function u(h){s.current&&!s.current.contains(h.target)&&a.current&&!a.current.contains(h.target)&&i(!1)}return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]);const c=fe({"dropdownWithSvg-Left":!0,"dropdownWithSvg-Left-SvgStyle":e!=="linkedinLogo"});return l.jsxs("button",{ref:a,type:"button",onClick:o,className:"dropdownWithSvg-Button",children:[l.jsxs("div",{className:c,children:[e&&l.jsx(ce,{iconType:e,iconSize:"16"}),t]}),l.jsx(ce,{iconType:r?"cheveronUp":"cheveronDown",iconSize:"16"}),r&&l.jsx("div",{ref:s,className:"dropdownWithSvg-Body",children:n})]})},fc=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1})=>{const c=fe({"dropdownChildButton-Gray":r==="gray","dropdownChildButton-Red":r==="red","dropdownChildButton-Active":o,"dropdownChildButton--Generic":!0});return l.jsx(l.Fragment,{children:l.jsxs("button",{className:c,onClick:()=>t(e),type:"button",disabled:i,children:[s&&l.jsx(ce,{iconType:a,iconSize:"16"}),e,n&&l.jsx("p",{children:n})]})})},ste=()=>l.jsx("div",{children:"RoundSettingModal"}),ate=({})=>l.jsxs("div",{className:"card-main--add",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("div",{className:"title",children:"AI Assistant"})]}),l.jsxs("div",{className:"subject",children:[l.jsx("span",{className:"subject-text",children:" SUBJECT "}),l.jsx(di,{title:"Subject 1",content:"Exciting Opportunity for you! ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Subject 2",content:"Exciting Opportunity for CEO Role",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1})]}),l.jsxs("div",{className:"body",children:[l.jsx("span",{className:"body-text--aad",children:" BODY "}),l.jsxs("div",{className:"scrollable-div",children:[l.jsx(di,{title:"Body 1",content:"Hey Ethan, I am my region's top recruiter for Executive Recuitment. Currently I am recruiting for a fast growing startup that has amazing benefits and financial incentives. Your work experience looks like a great fit for this role. Available for a quick chat this week? ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Body 2",content:"Hey Ethan, I am my region's top recruiter for Executive Recuitment. Currently I am recruiting for a fast growing startup that has amazing benefits and financial incentives. Your work experience looks like a great fit for this role. Available for a quick chat this week? ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Body 3",content:"Exciting Opportunity for CEO Role",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1})]})]})]}),ote=({})=>{const[t,e]=C.useState("Templates"),[n,r]=C.useState("");C.useEffect(()=>{alert(t)},[t]);const i=()=>{alert("Button clicked")},s=()=>{alert("Search Text Changed!")};return l.jsxs("div",{className:"main--card--temp",children:[l.jsx("div",{className:"title-bar-temp",children:l.jsxs("div",{className:"title-div--",children:[l.jsx("div",{className:"ti-tle",children:"Templates"}),l.jsxs("div",{children:[" ",l.jsx(aw,{dropdownOnClickHandler:a=>{e(a)}})," "]})]})}),l.jsx("span",{className:"title-text",children:"Select a template to fill in the messages"}),l.jsxs("div",{className:"search",children:[l.jsx("div",{className:"search-div",children:l.jsx(fx,{onChange:s,showIconOnLeft:!0})}),l.jsx(Un,{text:"Create New",colorVariant:"orange",sizeVariant:"base",onClick:i})]}),l.jsx("div",{className:"otherCards",children:Array.from([1,2,3,4,5,6,7]).map(()=>l.jsx(lw,{getText:a=>r(a)}))})]})},lte=({name:t,designation:e,isActive:n,isError:r})=>l.jsxs("div",{className:`card ${n&&"active"} ${r!==void 0&&"isError-justify"}`,children:[r!==void 0&&r==!0&&l.jsx("div",{className:"icon-div",children:l.jsx("span",{className:"svg-error",children:l.jsx(ce,{iconType:"excalamationCircle",iconSize:"32"})})}),r!==void 0&&r==!1&&l.jsx("div",{className:"icon-div",children:l.jsx("span",{className:"svg-success",children:l.jsx(ce,{iconType:"tickCircle",iconSize:"32"})})}),l.jsxs("div",{className:"text-cq",children:[l.jsx("span",{className:"name",children:t}),l.jsx("span",{className:"designation",children:e})]})]}),cte=({cards:t})=>{const[e,n]=C.useState(0),r=220,i=C.useRef(null);C.useEffect(()=>{t.length>0&&n(0)},[]),C.useEffect(()=>{if(i.current){const o=i.current.querySelector(".active");if(o){const c=i.current.getBoundingClientRect().width,u=o.getBoundingClientRect().left-i.current.getBoundingClientRect().left;u+r>c?i.current.scrollLeft+=u+r-c:u<0&&(i.current.scrollLeft+=u)}}},[e,t]);const s=()=>{e!=t.length-1&&(n(o=>(o+1)%t.length),i.current&&e>4&&(i.current.scrollLeft+=r))},a=()=>{e!=0&&(n(o=>(o-1+t.length)%t.length),i.current&&e<t.length-4&&(i.current.scrollLeft-=r))};return l.jsxs("div",{className:"cards-row-container",children:[l.jsxs("span",{className:`button ${t.length==1&&"hide"} ${e==0&&"disable"}`,onClick:a,children:[" ",l.jsx(ce,{iconType:"chevronLeft",iconSize:"16"})]}),l.jsx("div",{className:"cards-row",ref:i,children:t.map((o,c)=>l.jsx(lte,{name:o.name,designation:o.designation,isError:o.isError,isActive:c===e},c))}),l.jsxs("span",{className:`button ${t.length==1&&"hide"} ${e==t.length-1&&"disable"}`,onClick:s,children:[" ",l.jsx(ce,{iconType:"chevronRight",iconSize:"16"})]})]})},dte=({subject:t,body:e})=>{const n=()=>{alert("Use for all reciepents clicked")},r=()=>{alert("Edit template btn clicked!")};return l.jsxs("div",{className:"card-div-main",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("span",{className:"title",children:" Templates "})]}),l.jsxs("div",{className:"subject",children:["SUBJECT",l.jsx("span",{className:"sub-text",children:t})]}),l.jsxs("div",{className:"body",children:["BODY",l.jsx("span",{className:"body-text",children:e})]}),l.jsxs("div",{className:"footer",children:[l.jsx("span",{style:{marginRight:"8px"},children:l.jsx(Ls,{onClick:r,text:"Edit Template"})}),l.jsx(Un,{text:"Use for All recipients",colorVariant:"orange",onClick:n})]})]})},ute=({title:t,progress:e})=>l.jsxs("div",{className:"main-pc",children:[l.jsx("span",{className:"title-pc",children:t}),l.jsx("span",{className:"prog-pc",children:l.jsx(Gx,{progress:e})})]}),hte=({cards:t})=>l.jsxs("div",{className:"main-card-div",children:[l.jsxs("div",{className:"title-bar-ana",children:[l.jsx("span",{className:"svg-ana",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("span",{className:"title-text-ana",children:" AI Analysis "})]}),l.jsx("div",{className:"div-ana",children:t.map(e=>l.jsx(ute,{title:e.title,progress:e.progress}))})]}),fte=({})=>l.jsx("div",{className:"assignmentShimmer-Generic",children:l.jsx("div",{className:"assignmentShimmer-Card br ",children:l.jsxs("div",{className:"assignmentShimmer-Wrapper",children:[l.jsxs("div",{className:"assignmentShimmer-AssignmentHeader",children:[l.jsx("div",{className:"assignmentShimmer-AssignmentLogo animate"}),l.jsxs("div",{className:"assignmentShimmer-AssignmentTitleLayout",children:[l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"}),l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"}),l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"})]})]}),l.jsx("div",{className:"assignmentShimmer-ProspectDetials animate"}),l.jsx("div",{className:"assignmentShimmer-View animate"}),l.jsx("div",{className:"assignmentShimmer-View animate"})]})})}),pte=({})=>l.jsx("div",{className:"profileListShimmer-Generic",children:l.jsx("div",{className:"profileListShimmer-Card br ",children:l.jsxs("div",{className:"profileListShimmer-Wrapper",children:[l.jsxs("div",{className:"profileListShimmer-ProfileHeader",children:[l.jsx("div",{className:"profileListShimmer-ProfileLogo animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileTitleLayout",children:[l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"}),l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"}),l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"})]})]}),l.jsxs("div",{className:"profileListShimmer-ProfileDetials",children:[l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileExperiences",children:[l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]}),l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]}),l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]})]}),l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileIndustries",children:[l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"})]}),l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileIndustries",children:[l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"})]})]})]})})}),mte=({heading:t="🦄 Wow so easy!",subText:e="🦄 Wow so easy!",showToast:n=!1,delay:r=5e3,showButtons:i=!1,btnText:s="Apply",onBtnClick:a=()=>{},onClose:o=()=>{}})=>{const c=()=>{const u=Jt(l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[t,l.jsx("span",{children:e})]}),i&&l.jsxs("div",{className:"genericToast--footer",children:[l.jsx(R1,{onClick:a,showIcon:!1,sizeVariant:"sm",text:s,colorVariant:"orange"}),l.jsx(R1,{onClick:()=>{Jt.dismiss(u),o()},showIcon:!1,sizeVariant:"sm",text:"Dismiss",colorVariant:"gray"})]})]}),{position:"top-right",autoClose:r,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",onClose:()=>{o(),Jt.dismiss(u)}})};return C.useEffect(()=>{n&&c()},[]),l.jsx("div",{children:l.jsx(hc,{limit:1,closeButton:!1})})};function gte({status:t="Enriched"}){switch(t){case"Enriched":return l.jsx("span",{className:"enrichmentStatusEnriched",children:t});case"Enriching":return l.jsx("span",{className:"enrichmentStatusEnriching",children:t});case"Enrichment Failed":return l.jsx("span",{className:"enrichmentStatusEnrichmentFailed",children:t});case"To be Enriched":return l.jsx("span",{className:"enrichmentStatusToBeEnriched",children:t});default:return null}}const vte=({personsData:t=[],onCheckClick:e=({checked:i,index:s})=>{console.log({checked:i,index:s})},onNameClick:n=i=>{console.log("Showing the publicIdentifier :: ",{publicIdentifier:i})},onCompanyClick:r=(i,s)=>{console.log("universalName: string, urn: string ",{universalName:i,urn:s})}})=>{const i=t,s=C.useMemo(()=>[{Header:"Name",accessor:"fullName"},{Header:"Title",accessor:"currentTitle"},{Header:"Company",accessor:"currentCompany"},{Header:"Location",accessor:"location"},{Header:"Status",accessor:"status"},{Header:"Qlu Link",accessor:"qluLink"}],[]),{getTableProps:a,getTableBodyProps:o,headerGroups:c,rows:u,prepareRow:h}=jn.useTable({columns:s,data:i}),f=({publicIdentifier:p,name:m,isSelected:g,lastUpdated:v,profilePicture:x,index:b,onNameClick:A=M=>{console.log(M)}})=>p?l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(nr,{sizeVariant:"xs",checked:g,onClick:M=>e({index:b,checked:M})}),l.jsx(rr,{iconPath:x,iconSize:"40",borderRadius:"6"},`${p}-${v}`),l.jsx(kr,{text:m,onClick:()=>A(p)})]}):l.jsx("span",{className:"enrichmentPersonTable--NameCell--Placeholder",children:l.jsx("p",{children:m})});return l.jsxs("table",{className:"enrichmentPersonTable--Generic",...a(),children:[l.jsx("thead",{children:c.map(p=>l.jsx("tr",{...p.getHeaderGroupProps(),children:p.headers.map(m=>l.jsx("th",{...m.getHeaderProps(),children:m.render("Header")}))}))}),l.jsx("tbody",{...o(),children:u.map(p=>(h(p),C.createElement("tr",{...p.getRowProps(),key:`${p.original.fullName}${p.original.index}`},p.cells.map(m=>m.column.Header==="Name"?l.jsx("td",{...m.getCellProps(),children:f({isSelected:m.row.original.isSelected,lastUpdated:m.row.original.lastUpdated||"",name:m?.value,profilePicture:m?.row?.original?.profilePicture||"",publicIdentifier:m.row.original.publicIdentifier||"",index:m.row.original.index,onNameClick:n})}):m.column.Header==="Status"?l.jsx("td",{...m.getCellProps(),children:l.jsx(gte,{status:m?.value})}):m.column.Header==="Company"?l.jsx("td",{...m.getCellProps(),children:m?.value&&l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(nn,{iconPath:m.row.original.companyLogo||"",altImageType:"company",iconSize:"40",errorImageContainerSize:"40"}),l.jsx(kr,{text:m?.value,onClick:()=>r(m.row.original.companyUniversalName||"",m.row.original.companyUrn||"")})]})}):m.column.Header==="Qlu Link"?l.jsx("td",{...m.getCellProps(),children:m?.value&&l.jsx("span",{className:"enrichmentPersonTable--NameCell",children:l.jsx(kr,{text:m?.value,onClick:()=>{m?.value&&window.open(m.value,"_blank")}})})}):l.jsx("td",{...m.getCellProps(),children:m.render("Cell")||"N/A"})))))})]})},xte=({})=>l.jsx("div",{className:"qChatShimmer-Generic",children:l.jsx("div",{className:"qChatShimmer-Card br ",children:l.jsx("div",{className:"qChatShimmer-Wrapper",children:l.jsx("div",{className:"qChatShimmer-ProfileHeader",children:l.jsxs("div",{className:"qChatShimmer-ProfileTitleLayout",children:[l.jsx("div",{className:"qChatShimmer-ProfileTitle animate"}),l.jsx("div",{className:"qChatShimmer-ProfileTitle animate"})]})})})})}),cw=({dropdownItemList:t,onLabelClick:e,name:n,dataCyDropdown:r,dataCyChangePass:i,dataCySignout:s})=>{const[a,o]=C.useState(!1),c=()=>{o(h=>!h)},u=h=>{};return l.jsx("div",{className:"chevronButtondropdown--container",children:l.jsxs("span",{className:"filterButtondropdown--dropdown",children:[l.jsxs("div",{children:[l.jsx("button",{onClick:c,"data-cy":r,children:l.jsx("p",{className:"first-name",children:Bw(n)})}),l.jsx("span",{className:"chevronButtondropdown--btn--dropdown",children:l.jsx(B2,{shape:"circular",onClick:c,sizeVariant:"base",color:"orange",variant:"primary",iconType:"arrowDown"})})]}),l.jsx("ul",{className:`filterButtondropdown--dropdown-list-${a?"show":"hide"}`,children:t.map((h,f)=>l.jsx("li",{children:l.jsx("button",{onClick:()=>{o(!1),e(h)},"data-cy":u(),children:h})},`${f}-${h}`))})]})})},yte=({profilePicture:t="",fullName:e="",profilePublicIdentifier:n="",currentRole:r="",currentCompany:i="",universalName:s="",urn:a="",location:o="",lastUpdated:c="",onCompanyNameClick:u})=>l.jsxs("div",{className:"personViewHeaderSummary",children:[l.jsx(nn,{iconPath:t,iconSize:"80",altImageType:"profile"},`${n}-${c}`),l.jsxs("div",{className:"personViewHeaderSummary--PersonDetails",children:[l.jsx("div",{className:"fullName",children:e}),l.jsxs("div",{className:"titleContainer",children:[l.jsx(s2,{children:r}),"at",l.jsx("span",{onClick:()=>u(s,a),className:"personViewHeaderSummary--CompanyLink",children:l.jsx(s2,{children:i})})]}),l.jsx("h3",{children:o})]})]}),wte=({text:t="",isSelected:e=!1,props:n={},highlight:r=!1,onCancelClick:i=()=>!1})=>{const s=fe({"Pill--Generic":!0,"Pill--Selected":e,"Pill--Unselected":!e,"Pill--SelectedHover":e&&r,"Pill--UnselectedHover":!e&&r});return l.jsxs("span",{className:s,...n,children:[t,l.jsx("button",{onClick:a=>{a.stopPropagation(),i()},children:l.jsx(ce,{iconType:"cross",iconSize:"20"})})]})},Cte=()=>{const[t,e]=C.useState(20),[n,r]=C.useState(1);C.useEffect(()=>{(()=>{if(t<90){const a=Math.floor(Math.random()*4+1)*1e3,o=setTimeout(()=>{e(c=>Math.min(c+1,90))},a);return()=>clearTimeout(o)}})()},[t]),C.useEffect(()=>{(()=>{const a=setTimeout(()=>{r(n===3?1:n+1)},1e3);return()=>clearTimeout(a)})()},[n]);const i=s=>"•".repeat(s);return l.jsx("div",{className:"chatLoadingWidet--Generic",children:l.jsxs("p",{children:["Searching for results -"," ",l.jsxs("h2",{children:[t,"% done ",i(n)]})]})})};function bte({onClick:t,value:e}){return l.jsx("div",{className:"primaryRadioButton",children:l.jsx("input",{type:"radio",onClick:t,checked:e})})}h2.register(kn,Sn,An,Dr,Mn,tn,en);const Ete={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,scales:{y:{grace:"40%",border:{color:"transparent"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(t){return C2.format(t),C2.format(t)},font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"},align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1,color:"transparent",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=`${t[0].label} - ${C2.format(t[0].raw)}`,""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1}}},Ate=({revenues:t,aspectRatio:e=5})=>{const n=t.map(s=>s.quater),r=t.map(s=>s.amount),i={labels:n,datasets:[{type:"line",fill:!0,label:"",data:r,pointBackgroundColor:"#331C10",backgroundColor:s=>{const o=s.chart.ctx.createLinearGradient(0,0,0,200);return o.addColorStop(0,"rgba(255, 141, 78, 0.2)"),o.addColorStop(1,"rgba(35, 35, 35, 0)"),o},borderColor:"#FF8D4E",borderCapStyle:"round",borderWidth:1}]};return l.jsx("div",{className:"privateFinancialsLineGraph",children:l.jsx("div",{className:"barChart",children:l.jsx(a3,{type:"bar",id:"canvas",options:{...Ete,aspectRatio:e},data:i})})})},dw=C.createContext({value:"",onChange:()=>{},setShowMenu:()=>{}});function Mte({value:t,onChange:e,children:n,iconType:r="bell",disabled:i=!1,menuPosition:s="left",showIconRight:a=!1,showIconLeft:o=!1,iconSizeLeft:c="16",iconSizeRight:u="16",colorStyling:h="gray",maxWidth:f="200px",className:p,containerStyles:m={},renderContent:g,dataCy:v}){C.Children.forEach(n,N=>{if(C.isValidElement(N)){if(N.type===C.Fragment)C.Children.forEach(N.props.children,V=>{if(C.isValidElement(V)&&!V.type.selectItemComponent)throw new Error("Select children should be SelectItem from UILibrary")});else if(!N.type.selectItemComponent)throw new Error("Select children should be SelectItem from UILibrary")}});const x=fe({"select--Container":!0,[`select-${h}`]:!p,[`menu-${s}`]:!0,...p&&{[p]:!0}}),b=fe({"select--Button":!0,[`select--${h}`]:!0}),A=fe({"select-Menu":!0}),[M,L]=C.useState(!1),k=C.useRef(null),R=C.useRef(null);C.useEffect(()=>{function N(V){R.current&&!R.current.contains(V.target)&&k.current&&!k.current.contains(V.target)&&L(!1)}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const B=()=>{L(N=>!N)};return l.jsxs("div",{style:{...m},className:`${x}`,children:[l.jsxs("button",{type:"button",className:b,onClick:B,ref:k,disabled:i,"data-cy":v,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(ce,{iconType:r,iconSize:c})}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:f,marginRight:"24px",whiteSpace:"nowrap"},children:g?g():t}),a&&l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:M?"arrowUp":"arrowDown",iconSize:u})})]}),M&&l.jsx("div",{ref:R,className:A,children:l.jsx(dw.Provider,{value:{value:t,onChange:e,setShowMenu:L},children:l.jsx("div",{className:"select--MenuList",children:n})})})]})}function uw({itemValue:t,children:e,className:n="",dataCy:r,...i}){const{onChange:s,setShowMenu:a,value:o}=C.useContext(dw),c=t===o,u=fe({selectItemDropdown:!0,"selectItemDropdown-Active":c,"selectItemDropdown-NonActive":!c,[`${n}`]:!0}),h=()=>{c||s(t),a(!1)};return l.jsx("button",{className:u,onClick:h,"data-cy":r,...i,children:e||t})}Object.defineProperty(uw,"selectItemComponent",{value:!0,writable:!1});function kte({separatorText:t="OR"}){return l.jsxs("div",{className:"sectionSeparator--Container",children:[l.jsx("hr",{}),l.jsx("p",{children:t}),l.jsx("hr",{})]})}h2.register(kn,Sn,An,mn,Mn,tn,en,tr);const Ste=({inputLabels:t=[],inputValues:e=[],titleSet:n=[],symbol:r=""})=>{const i={elements:{point:{radius:12,hoverRadius:12,borderWidth:0,hoverBorderWidth:1}},scales:{y:{ticks:{padding:20,color:"#FAFAFA",callback:function(o,c){if(c%2!==0)return typeof o=="number"?`${r}${Fl.format(o)}`:`${r}${Fl.format(parseInt(o,10))}`},font:{size:16,weight:400,family:"Inter"}},grid:{display:!1},border:{display:!1}},x:{ticks:{padding:20,color:"#FAFAFA",font:{size:16,weight:400,family:"Inter"}},grid:{display:!1},border:{display:!1}}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{displayColors:!1,bodySpacing:10,callbacks:{title:function(o){const c=o[0].dataIndex;return n[c]},label:function(o){const c=o.dataIndex,u=e[c];return`${r}${Fl.format(u)}`}},backgroundColor:"#c1c1c1",titleColor:"#232323",bodyColor:"#232323"},title:{display:!1}},backgroundColor:"red"},a={labels:t,datasets:[{label:"",data:e,borderColor:"#FF8D4E",pointBackgroundColor:"#FFE0CF",backgroundColor:o=>{const c=o.chart.ctx,u=c.createLinearGradient(0,0,0,c.canvas.height);return u.addColorStop(0,"rgba(255, 141, 78, 0.20)"),u.addColorStop(.9904,"rgba(73, 73, 73, 0.00)"),u},pointRadius:6,pointHoverRadius:8,fill:!0,tension:.5,cubicInterpolationMode:"monotone",capBezierPoints:!0,borderJoinStyle:"miter",spanGaps:!0}]};return l.jsx(Rv,{options:i,data:a})},jte="_entityTableGeneric_13b2j_131",Fte={entityTableGeneric:jte},Lte=({children:t,className:e,...n})=>{const r=fe({[Fte.entityTableGeneric]:!0,...e&&{[e]:!0}});return l.jsx("table",{...n,className:r,children:t})},zte="_tableHeader_1qi4r_131",Rte={tableHeader:zte},Dte=({children:t,className:e,...n})=>{const r=fe({[Rte.tableHeader]:!0,...e&&{[e]:!0}});return l.jsx("thead",{...n,className:r,children:t})},Nte="_tableBody_1tw26_131",Tte={tableBody:Nte},Bte=({children:t,className:e,...n})=>{const r=fe({[Tte.tableBody]:!0,...e&&{[e]:!0}});return l.jsx("tbody",{...n,className:r,children:t})},Ite="_tableRow_7i97c_131",Pte={tableRow:Ite},Vte=({children:t,className:e,...n})=>{const r=fe({[Pte.tableRow]:!0,...e&&{[e]:!0}});return l.jsx("tr",{...n,className:r,children:t})},Hte="_tableBodyCell_1nrya_131",Ote="_tableHeaderCell_1nrya_149",fp={tableBodyCell:Hte,tableHeaderCell:Ote},Wte=({children:t,variant:e="body",className:n,align:r="left",...i})=>{const s=fe({[fp.tableBodyCell]:e==="body",[fp.tableHeaderCell]:e==="head",...n&&{[n]:!0}});return e==="body"?l.jsx("td",{...i,align:r,className:s,children:t}):l.jsx("th",{...i,align:r,className:s,children:t})},Gte=({index:t,isSelected:e,onCheckClick:n,onNameClick:r,name:i,iconPath:s,iconKey:a,altImageType:o="profile",metaContent:c,dataCy:u})=>l.jsxs("div",{className:"tableNameCell","data-cy":u,children:[l.jsx("p",{children:t}),l.jsx(nr,{sizeVariant:"xs",checked:e,onClick:n}),l.jsx(rr,{iconPath:s,iconSize:"40",borderRadius:"6",altImageType:o},a),l.jsxs("span",{className:"nameContainer",children:[l.jsx(kr,{text:i,onClick:r}),c]})]}),Ute=({id:t,text:e,onSelect:n,onExclude:r,variant:i="unselected",highlight:s=!1,onEnter:a=()=>{},onLeave:o=()=>{},isDisabled:c=!1,iconPath:u,dataCy:h,...f})=>{const p=fe({"selectablePill--Generic":!0,"selectablePill--Selected":i==="selected","selectablePill--Excluded":i==="excluded","selectablePill--Unselected":i==="unselected","selectablePill--SelectedHover":i!=="unselected"&&s,"selectablePill--UnselectedHover":i==="unselected"&&s}),m=fe({"selectablePill--Include":!0,"selectablePill--IncludeSelected":i==="selected"}),g=fe({"selectablePill--Exclude":!0,"selectablePill--ExcludeSelected":i==="excluded"});return l.jsxs("button",{id:t,disabled:c,className:p,...f,onMouseEnter:a,onMouseLeave:o,onClick:n,"data-cy":h,children:[!!u&&l.jsx("span",{className:"selectablePill--logoSVG",children:l.jsx(nn,{iconSize:"24",errorImageContainerSize:"34",iconPath:u,altImageType:"company"})}),l.jsx(s2,{maxWidth:"330px",toolTipPosition:"bottom",children:e}),l.jsxs("div",{className:"selectablePill--ActionButton",children:[l.jsx(M1,{content:"Include",children:l.jsx("button",{className:m,"data-cy":`${h}-include`,children:l.jsx(ce,{iconType:"tick",iconSize:"24"})})}),l.jsx(M1,{content:"Exclude",children:l.jsx("button",{className:g,onClick:v=>{v.stopPropagation(),r(v)},"data-cy":`${h}-exclude`,children:l.jsx(ce,{iconType:"notAllowed",iconSize:"24"})})})]})]})},Yte=({onApplyClick:t,selectedCount:e,showCancel:n,onCancelClick:r,totalCount:i,isAllSelected:s,isDisabled:a,tooltipContent:o})=>{const[c,u]=C.useState(!1),[h,f]=C.useState(e),p=C.useRef(null),m=C.useRef(null),g=()=>{a||u(k=>!k)},v=()=>{a||(s?r():g())};C.useEffect(()=>{function k(R){p.current&&m.current&&!p.current.contains(R.target)&&!m.current.contains(R.target)&&u(!1)}return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]);const x=()=>{t(i),g()},b=k=>{k>=0&&k<=i&&f(k)},A=()=>{f(0),r(),g()},M=()=>{t(h),g()},L=fe({"selectDropDown--dropdown-list-show":c,"selectDropDown--dropdown-list-hide":!c});return l.jsx(M1,{content:o,toolTipPosition:"top",isDisabled:!o,children:l.jsx("div",{className:"selectDropDown--container selectDropDown--redo-container",children:l.jsxs("span",{className:"selectDropDown--dropdown selectDropDown--redo",children:[l.jsxs("button",{onClick:g,disabled:a,className:"selectDropDown--btn--dropdown selectDropDown--redo-trigger",ref:m,children:[l.jsx(sw,{sizeVariant:"base",checked:!1,onClick:v,isAllSelected:s,isSubsetSelected:!s&&e>0,isDisabled:a}),e>0&&l.jsxs("p",{children:[e," selected"]}),l.jsx("span",{children:c?l.jsx(ce,{iconType:"arrowUp",iconSize:"16"}):l.jsx(ce,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("div",{className:"selectDropDown--redo-content",ref:p,children:l.jsxs("ul",{className:L,children:[l.jsx("li",{onClick:x,children:"Select All"}),l.jsxs("li",{children:["Select Top",l.jsx("span",{className:"space",children:c&&l.jsx(Z7,{initialNumber:String(h),handleChange:b,props:{style:{width:"70px",maxWidth:"70px"}}})})]}),l.jsx("span",{className:"apply applyRedo",children:l.jsx(Gi,{text:"Apply",colorVariant:"orange",className:"sec",onClick:M,isDisabled:h<0})}),n&&l.jsx("span",{className:"cancel cancelRedo",children:l.jsx(Gi,{colorVariant:"lightGray",text:"Clear Selection",onClick:A})})]})})]})})})},Kte="_discreteSliderGeneric_1amet_149",Zte="_dragging_1amet_176",qte="_animating_1amet_233",Jte="_discreteSliderDisabled_1amet_272",k2={discreteSliderGeneric:Kte,"range-slider-container":"_range-slider-container_1amet_167",dragging:Zte,"range-slider-track-active":"_range-slider-track-active_1amet_176","range-slider-thumb":"_range-slider-thumb_1amet_179","range-slider-track":"_range-slider-track_1amet_176","range-slider-tooltip":"_range-slider-tooltip_1amet_229",animating:qte,"range-slider-thumb--min":"_range-slider-thumb--min_1amet_243","range-slider-thumb--max":"_range-slider-thumb--max_1amet_246",discreteSliderDisabled:Jte},Xte=({minValue:t,maxValue:e,getRange:n,initialMinValue:r=0,initialMaxValue:i=10001,disabled:s=!1,displayLimit:a=1e4})=>{const o=Math.max(r,Math.min(t,i)),c=Math.max(r,Math.min(e,i)),u=o,h=Math.max(c,o+1),[f,p]=C.useState(u),[m,g]=C.useState(h),[v,x]=C.useState(null),[b,A]=C.useState(!1),[,M]=C.useState({}),L=C.useRef(null),k=C.useRef(!1),R=C.useRef(!1),B=C.useRef(null),N=C.useRef(0),V=C.useRef(null),O=C.useRef(u),X=C.useRef(h),ie=32,ge=fe({[k2.discreteSliderGeneric]:!0,[k2.discreteSliderDisabled]:s});C.useEffect(()=>{if(!k.current){const pe=Math.max(0,Math.max(r,Math.min(t,i))),Re=Math.max(0,Math.max(r,Math.min(e,i)));if(Re-pe<1){const Ue=(pe+Re)/2,Ie=Math.max(0,Math.floor(Ue-.5)),Le=Math.min(i,Math.ceil(Ue+.5));p(Ie),g(Le),O.current=Ie,X.current=Le}else p(pe),g(Re),O.current=pe,X.current=Re}},[t,e,r,i]);const $=pe=>s?"":`${pe.toLocaleString()}`,te=pe=>(pe-r)/(i-r)*100,q=pe=>Math.round(r+pe/100*(i-r)),Z=pe=>{const Re=Math.abs(pe-f),Ue=Math.abs(pe-m);return Re<=Ue?"min":"max"},Q=C.useCallback(pe=>{if(s||v||(pe.preventDefault(),pe.stopPropagation(),!L.current))return;const Re=L.current.getBoundingClientRect(),Ue=Math.max(0,Math.min(100,(pe.clientX-Re.left)/Re.width*100)),Ie=q(Ue),Le=Z(Ie);if(A(!0),V.current&&clearTimeout(V.current),Le==="min"){const tt=Math.max(0,Math.min(Ie,m-1));tt!==f&&(p(tt),O.current=tt,n({minRange:tt,maxRange:Math.min(a,Math.max(0,m))}))}else{const tt=Math.min(a,Math.max(f+1,Math.max(Ie,f)));tt!==m&&(g(tt),X.current=tt,n({minRange:Math.max(0,f),maxRange:tt}))}V.current=window.setTimeout(()=>{A(!1)},300)},[s,v,f,m,a,n]),oe=C.useCallback(pe=>Re=>{s||(Re.preventDefault(),Re.stopPropagation(),V.current&&clearTimeout(V.current),A(!1),O.current=f,X.current=m,x(pe),k.current=!0,R.current=!0)},[s,f,m]),J=C.useCallback(pe=>{if(!v||!L.current||s||!R.current)return;B.current&&cancelAnimationFrame(B.current);const Re=Date.now();if(Re-N.current<ie){B.current=requestAnimationFrame(()=>{J(pe)});return}N.current=Re,B.current=requestAnimationFrame(()=>{if(!L.current||!R.current)return;const Ie=L.current.getBoundingClientRect(),Le="touches"in pe?pe.touches[0]?.clientX:pe.clientX;if(Le===void 0)return;const tt=Math.max(0,Math.min(100,(Le-Ie.left)/Ie.width*100)),me=q(tt);if(v==="min"){const Vt=Math.max(0,Math.min(me,m-1));O.current=Math.max(0,Math.min(me,X.current-1)),M({}),Vt!==f&&(p(Vt),n({minRange:Vt,maxRange:Math.min(a,Math.max(0,m))}))}else if(v==="max"){const Vt=Math.min(a,Math.max(f+1,Math.max(me,f)));X.current=Math.min(a,Math.max(O.current+1,Math.max(me,O.current))),M({}),Vt!==m&&(g(Vt),n({minRange:Math.max(0,f),maxRange:Vt}))}})},[v,m,f,s,n,a]),ee=C.useCallback(()=>{v&&(k.current=!1),B.current&&(cancelAnimationFrame(B.current),B.current=null),x(null),R.current=!1,O.current=f,X.current=m},[v,f,m]);C.useEffect(()=>{if(v)return document.addEventListener("mousemove",J),document.addEventListener("mouseup",ee),document.addEventListener("touchmove",J,{passive:!1}),document.addEventListener("touchend",ee),()=>{document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",ee),document.removeEventListener("touchmove",J),document.removeEventListener("touchend",ee),B.current&&(cancelAnimationFrame(B.current),B.current=null)}},[v,J,ee]),C.useEffect(()=>()=>{B.current&&cancelAnimationFrame(B.current),V.current&&clearTimeout(V.current)},[]);const xe=v?O.current:f,ve=v?X.current:m,ke=te(xe),We=te(ve);return l.jsx("span",{className:ge,children:l.jsxs("div",{className:`${k2["range-slider-container"]} ${v?k2.dragging:""}`,ref:L,onClick:Q,children:[l.jsx("div",{className:k2["range-slider-track"],children:l.jsx("div",{className:k2["range-slider-track-active"],style:{left:`${ke}%`,width:`${We-ke}%`}})}),l.jsx("div",{className:`${k2["range-slider-thumb"]} ${k2["range-slider-thumb--min"]} ${v==="min"?k2.dragging:""} ${b?k2.animating:""}`,style:{left:`${ke}%`},onMouseDown:oe("min"),onTouchStart:oe("min"),children:l.jsx("div",{className:k2["range-slider-tooltip"],children:$(Math.round(xe))})}),l.jsx("div",{className:`${k2["range-slider-thumb"]} ${k2["range-slider-thumb--max"]} ${v==="max"?k2.dragging:""} ${b?k2.animating:""}`,style:{left:`${We}%`},onMouseDown:oe("max"),onTouchStart:oe("max"),children:l.jsx("div",{className:k2["range-slider-tooltip"],children:$(Math.round(ve))})})]})})},Qte="_dropdownContainer_62h7i_131",_te="_dropdownTrigger_62h7i_134",$te="_dropdownLabel_62h7i_145",e1e="_dropdownIcon_62h7i_156",t1e="_dropdownContent_62h7i_174",n1e="_dropdownItem_62h7i_183",m3={dropdownContainer:Qte,dropdownTrigger:_te,dropdownLabel:$te,dropdownIcon:e1e,dropdownContent:t1e,dropdownItem:n1e},r1e=({items:t,onSelect:e})=>{const[n,r]=C.useState(!1),[i,s]=C.useState(t[0]||""),a=C.useRef(null),o=()=>{r(h=>!h)},c=h=>{s(h),e(h),r(!1)};C.useEffect(()=>{function h(f){a.current&&!a.current.contains(f.target)&&o()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]);const u=h=>fe(m3.dropdownItem,{[m3.itemFirst]:h===0,[m3.itemLast]:h===t.length-1});return l.jsxs("div",{className:m3.dropdownContainer,children:[l.jsxs("button",{type:"button",className:m3.dropdownTrigger,onClick:o,children:[l.jsxs("span",{className:m3.dropdownLabel,children:[" ",i," "]}),l.jsx("span",{className:m3.dropdownIcon,children:l.jsx(ce,{iconType:`${n?"cheveronUp":"cheveronDown"}`,iconSize:"18"})})]}),n&&l.jsx("div",{className:m3.dropdownContent,ref:a,children:t.map((h,f)=>l.jsx("div",{className:u(f),onClick:()=>c(h),children:h},h+f))})]})},i1e="_CreditBarChart_1vr58_131",s1e={CreditBarChart:i1e};h2.register(kn,Sn,Dr,Mn,tn,en);const hw=({revenues:t})=>{const e=C.useRef(null),[n,r]=C.useState({width:0,height:0});C.useEffect(()=>{const m=()=>{if(e.current){const{offsetWidth:v,offsetHeight:x}=e.current;r({width:v,height:x})}};m();const g=new ResizeObserver(m);return e.current&&g.observe(e.current),window.addEventListener("resize",m),()=>{g.disconnect(),window.removeEventListener("resize",m)}},[]);const s=(()=>{const m=n.width,g=t.length;if(m===0)return{barThickness:31,maxRotation:0,fontSize:14};const v=m*.8,x=Math.floor(v/(g*2.5)),b=Math.max(8,Math.min(x,31));let A=0,M=14;const k=M*4*g,R=m*.9;return k>R&&(k>R*1.5?(M=10,A=45):k>R*1.2?(M=12,A=45):A=30),{barThickness:b,maxRotation:A,fontSize:M}})(),a=t.map(m=>m.quater),o=t.map(m=>m.amount),c=t.map(m=>m.phoneAmount),u=Math.max(...o),h=u+Math.max(u*.1,2),f={labels:a,datasets:[{label:"Email",data:o,borderWidth:2,backgroundColor:"#4B4B4B",barThickness:s.barThickness,maxBarThickness:s.barThickness,hoverBorderColor:"#5e5e5e",borderColor:"#5e5e5e",borderRadius:{topLeft:8,topRight:8,bottomLeft:8,bottomRight:8},borderSkipped:!1},{label:"Phone",data:c,borderWidth:2,backgroundColor:"#66381f",barThickness:s.barThickness,maxBarThickness:s.barThickness,hoverBorderColor:"#cc713e",borderColor:"#cc713e",borderRadius:{topLeft:8,topRight:8,bottomLeft:8,bottomRight:8},borderSkipped:!1}]},p={responsive:!0,maintainAspectRatio:!1,scales:{y:{min:0,max:h,border:{color:"transparent"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(m){return m>1e3?`${Math.round(m/1e3).toFixed(0)}K`:Math.round(m).toFixed(0)},stepSize:Math.ceil(h/5),count:5,font:{family:"Inter",size:s.fontSize,weight:400,lineHeight:"21px"},padding:10,align:"start",color:"#ADADAD"}},x:{grid:{display:!1,color:"transparent",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686",font:{family:"Inter",size:s.fontSize,weight:400,lineHeight:"21px"},maxRotation:s.maxRotation,minRotation:0,autoSkip:!1,autoSkipPadding:0,labelOffset:0}}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:m=>Zw(m.raw),title:function(){return""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:14,weight:500,lineHeight:"20px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1}}};return l.jsx("div",{className:s1e.CreditBarChart,ref:e,children:l.jsx(Dv,{options:p,data:f})})},a1e="_creditUsageChartContainer_17paa_131",o1e="_creditUsageChartHeader_17paa_142",l1e="_options_17paa_160",c1e="_option_17paa_160",d1e="_color_17paa_175",u1e="_dropDownContainer_17paa_198",h1e="_creditUsageChart_17paa_131",f1e="_creditUsageChartError_17paa_217",p1e="_creditUsageChartDataNA_17paa_220",m1e="_creditUsageChartLoader_17paa_250",Nn={creditUsageChartContainer:a1e,creditUsageChartHeader:o1e,options:l1e,option:c1e,color:d1e,dropDownContainer:u1e,creditUsageChart:h1e,creditUsageChartError:f1e,creditUsageChartDataNA:p1e,creditUsageChartLoader:m1e};var fw=(t=>(t.Last7Days="Last7Days",t.LastMonth="LastMonth",t.Last3Months="Last3Months",t.Last6Months="Last6Months",t.LastYear="LastYear",t.Today="Today",t.Custom="Custom",t))(fw||{});const pp={Last7Days:"Last 7 Days",LastMonth:"Last Month",Last3Months:"Last 3 Months",Last6Months:"Last 6 Months",LastYear:"Last Year",Today:"Today",Custom:"Custom"},g1e=({title:t,selectedTimeFrame:e,creditUsageData:n,isLoading:r,isError:i,setSelectedTimeFrame:s})=>{const a=()=>l.jsx("div",{className:Nn.creditUsageChartLoader,children:l.jsx(Q1,{width:"24",height:"24"})}),o=()=>l.jsx("div",{className:Nn.creditUsageChartError,children:l.jsx("span",{className:Nn.creditUsageChartDataNA,children:"No data to show yet"})});return l.jsxs("div",{className:Nn.creditUsageChartContainer,children:[l.jsxs("div",{className:Nn.creditUsageChartHeader,children:[l.jsx("h3",{children:t}),l.jsxs("div",{className:Nn.options,children:[l.jsxs("div",{className:Nn.option,children:[l.jsx("div",{className:Nn.color}),l.jsx("span",{children:"Email credits"})]}),l.jsxs("div",{className:Nn.option,children:[l.jsx("div",{className:Nn.color}),l.jsx("span",{children:"Phone credits"})]}),l.jsx("div",{className:Nn.dropDownContainer,children:l.jsx(cc,{dropDownText:pp[e],children:Object.values(fw).filter(c=>!["Today","Custom"].includes(c)).map((c,u)=>l.jsx(fc,{onClick:()=>s(c),text:pp[c],active:e===c},u))})})]})]}),r?a():i?o():l.jsx("div",{className:Nn.creditUsageChart,children:l.jsx(hw,{revenues:n})})]})};function v1e({dropDownText:t,children:e,maxWidth:n="100px",width:r="100px",disabled:i=!1,dataCy:s,whiteListedRef:a,isOpen:o=!1,handleOpen:c,customRootElem:u}){const[h,f]=C.useState(o),p=C.useRef(null),m=C.useRef(null),[g,v]=C.useState({top:0,left:0,width:0,isVisible:!1}),x=Z0({"dropDownButton--KebabContainer":!0}),b=Z0({"dropDownButton--Generic":!0}),A=()=>{if(!p.current)return;const R=p.current.getBoundingClientRect(),B=m.current?.getBoundingClientRect(),N=10,V=window.innerHeight,O=B?.height||0,ie={top:R.top+R.height+O+N>V?R.top-O-N:R.top+R.height+N,left:R.left,width:R.width};v({...ie,isVisible:O>0})},M=()=>{f(R=>!R),A(),c?.(!h)};function L(R){!m?.current?.contains(R.target)&&!Array.from(a?.current?.querySelectorAll("*")||[]).some(B=>B.contains(R.target))&&!p?.current?.contains(R.target)&&f(!1)}function k(){c?.(!1),f(!1)}return C.useEffect(()=>(document?.addEventListener("mousedown",L),document?.addEventListener("wheel",k),()=>{document?.removeEventListener("mousedown",L),document?.removeEventListener("wheel",k)}),[]),C.useEffect(()=>{o!==void 0&&o!==h&&f(o)},[o]),C.useEffect(()=>{const B=m.current?.getBoundingClientRect()?.height||0;!g.isVisible&&B&&A()},[g]),l.jsxs("div",{className:x,"data-cy":s,children:[l.jsxs("button",{type:"button",className:b,onClick:M,ref:p,disabled:i,style:{width:r,maxWidth:n},children:[l.jsxs("div",{className:"calendar-icon",children:[l.jsx(ce,{iconType:"calendar",iconSize:"16"}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:n},children:t})]}),l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),Ki.createPortal(l.jsx("div",{className:`dropDownButton-DropDown ${h?"dropDownButton-DropDown-show":""}`,ref:m,style:{top:g.top,left:g.left,width:g.width,visibility:g.isVisible?"unset":"hidden",maxWidth:n},children:e}),u||document.body)]})}const x1e=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1,children:c})=>{const u=fe({"dropdownItem-Gray":r==="gray","dropdownItem-Red":r==="red","dropdownItem-Active":o,"dropdownItem--Generic":!0});return l.jsx(l.Fragment,{children:l.jsxs("button",{className:u,onClick:()=>t(e),type:"button",disabled:i,children:[s&&l.jsx(ce,{iconType:a,iconSize:"16"}),e,c,n&&l.jsx("p",{children:n})]})})},y1e=t=>{const e=t.eventsData?.find(i=>{const s=new Date(i.date);return s.getDate()===t.date.getDate()&&s.getMonth()===t.date.getMonth()&&s.getFullYear()===t.date.getFullYear()}),n=t.date.getTime()>new Date().getTime(),r=fe({"daypicker-day-cell-content":!0,disabled:n});return l.jsx(M1,{content:e?.name||"",toolTipPosition:"top",isDisabled:!e,children:l.jsxs("span",{className:r,children:[t.date.getDate(),!!e&&l.jsx("span",{className:"event-dot"})]})})};function w1e({onDateSelected:t,initialValue:e,eventsData:n,timezone:r,customRootElem:i,isOpen:s}){const[a,o]=C.useState(!!s),[c,u]=C.useState(new Date),[h,f]=C.useState(e||new Date),p=h&&h.getMonth()+1||1,m=new Date;m.setDate(m.getDate()-1);const g=l.jsxs("div",{className:"footerContainer",children:[!!r&&l.jsx("div",{className:"timezone",children:r}),l.jsxs("div",{className:"button-container",children:[l.jsx("button",{type:"button",className:"okButton",onClick:()=>o(!1),children:"OK"}),l.jsx("button",{type:"button",className:"cancelButton",onClick:()=>o(!1),children:"Cancel"})]})]}),v=O=>{O.stopPropagation();const X=new Date(c);X.setMonth(c.getMonth()-1),u(X)},x=O=>{O.stopPropagation();const X=new Date(c);X.setMonth(c.getMonth()+1),u(X)},b=O=>{const X=O.toLocaleString("en-US",{month:"long"});return l.jsxs("div",{className:"datePicker-customCaption",children:[l.jsx("span",{className:"datePicker-prevMonthArrow",onClick:v,children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"32"})}),X," ",O.getFullYear(),l.jsx("span",{className:"datePicker-nextMonthArrow",onClick:x,children:l.jsx(ce,{iconType:"arrowRight",iconSize:"32"})})]})},A=O=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][O.getDay()],[M,L]=C.useState({x:0,y:0,direction:"top"}),k=C.useRef(null),R=C.useRef(null),B=()=>{if(R.current){const O=R.current.getBoundingClientRect();let X=O.y+O.height+8,ie="top";const ge=O.x-O.width-90;450>window.innerHeight-O.y&&(ie="bottom",X=window.innerHeight-O.y+8),L({y:X,x:ge,direction:ie})}},N=O=>{O&&h&&u(h),B(),o(O)},V=O=>{const X=O.target;k.current&&R.current&&X!==k.current&&!k.current.contains(X)&&!R.current.contains(X)&&N(!1)};return C.useEffect(()=>(window.addEventListener("click",V),window.addEventListener("wheel",B),()=>{window.removeEventListener("click",V),window.removeEventListener("wheel",B)}),[]),C.useEffect(()=>{e&&f(e)},[e]),C.useEffect(()=>{a&&!s&&o(!1)},[s]),l.jsxs("div",{className:"datePickerDropdown--Active",ref:R,children:[l.jsxs("button",{className:"datePickerDropdown-Button",onClick:()=>{N(!0)},children:[l.jsx("p",{children:h?`${p<10?`0${p}`:p}/${h.getDate()<10?`0${h.getDate()}`:h.getDate()}/${h.getFullYear()}`:"Date"}),l.jsx(ce,{iconType:"calendar",iconSize:"16"})]}),a&&Ki.createPortal(l.jsx("div",{className:`${a?"":"datePickerCalender--hidden"} datePickerCalender-Container`,ref:k,style:{[M.direction]:M?.y,left:M?.x},children:l.jsx(ux,{disableNavigation:!0,mode:"single",month:c,modifiersClassNames:{selected:"datePicker-mySelected",today:"datePicker-myToday"},selected:h,onSelect:(...O)=>{O?.[0]&&O[0].getTime()<=new Date().getTime()&&(f(O[0]),t(O[0]))},footer:g,formatters:{formatCaption:b,formatWeekdayName:A},showOutsideDays:!0,components:{DayContent:O=>l.jsx(y1e,{date:O.date,displayMonth:O.displayMonth,eventsData:n})},classNames:{day:"datepicker-day-cell"}})}),i||document.body)]})}const C1e="_parentInputfield_rtdb0_131",b1e="_inputFieldGeneric_rtdb0_151",E1e="_errorInputField_rtdb0_198",A1e="_passwordToggle_rtdb0_218",Xa={parentInputfield:C1e,inputFieldGeneric:b1e,errorInputField:E1e,passwordToggle:A1e},M1e=({id:t,value:e,type:n="text",placeholder:r="",style:i={},disabled:s=!1,errorState:a=!1,props:o={},onChangeHandler:c,errorMessage:u="Something went wrong!",name:h,autoComplete:f="on",dataCyInput:p,dataCyToggle:m,inputFieldClassname:g})=>{const[v,x]=C.useState(!1),b=()=>{x(M=>!M)},A=Z0({[Xa.inputFieldGeneric]:!0,[Xa.errorInputField]:a});return l.jsxs("div",{className:Xa.parentInputfield,children:[l.jsxs("div",{className:A,children:[l.jsx("input",{id:t,type:v?"text":n,disabled:s,style:i,placeholder:r,value:e,onChange:c,name:h,...o,autoComplete:f,"data-cy":p,className:g}),n==="password"&&l.jsx("span",{className:Xa.passwordToggle,onClick:b,"data-cy":m,children:v?l.jsx(ce,{iconType:"eye",iconSize:"16"}):l.jsx(ce,{iconType:"eyeOff",iconSize:"16"})})]}),a&&l.jsx("span",{children:u})]})},k1e=({type:t="success",label:e,heading:n="Wow so easy!",subText:r="",boldText:i="",showToast:s=!1,showButtons:a=!1,icon:o,btnText:c="Apply",onBtnClick:u=()=>{},onClose:h=()=>{},delay:f,hideProgressBar:p=!0})=>{const m=x=>{switch(x){case"success":return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"};case"warning":return{icon:"exclamationCircleFilled",label:"Warning",className:"headingWarning"};case"messageSuccess":return{icon:"smileyFace",label:"Message Sent",className:"headingMessageSuccess"};case"messageFailure":return{icon:"exclamationCircleFilled",label:"Message Failed",className:"headingMessageFailure"};default:return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"}}},g=()=>{const x=m(t),b=e||x.label;Jt(({closeToast:A})=>l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"headingRow",children:[l.jsxs("span",{className:x.className,children:[l.jsx(ce,{iconType:o||x.icon,iconSize:"18"}),b]}),l.jsx("button",{className:"customCloseButton",onClick:A,children:l.jsx(ce,{iconType:"cross",iconSize:"20"})})]}),l.jsx("span",{children:n}),i&&l.jsx("span",{className:"boldText",children:i}),r&&l.jsx("span",{className:"subtext",children:r})]}),a&&l.jsx("div",{className:"genericToast--footer",children:l.jsx(R1,{onClick:u,showIcon:!1,sizeVariant:"sm",text:c,colorVariant:"orange"})})]}),{position:"top-right",hideProgressBar:!0,closeOnClick:!1,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",closeButton:!1,onClose:()=>{h()},autoClose:f!==void 0?f:!1})};C.useEffect(()=>{s&&g()},[]);const v=Z0({"toast-container--hide-progress":p});return l.jsx("div",{children:l.jsx(hc,{limit:1,closeButton:!0,className:v})})},S1e=({labelText:t,helperText:e,onChange:n,accept:r,width:i="m"})=>l.jsxs("div",{className:"fileUpload",children:[l.jsx("p",{children:t}),l.jsx("input",{type:"file",accept:r,onChange:n,className:i}),l.jsx("p",{children:e})]}),j1e=({isSelected:t=!1,isDisabled:e=!1,text:n="NB Button",navbarIcon:r="home",props:i={},onClick:s=()=>{}})=>{const a=fe({"navbarButton--Generic":!0,"navbarButton--Selected":t,"navbarButton--Unselected":!t});return l.jsxs("button",{disabled:e,className:a,onClick:s,...i,children:[l.jsx(ce,{iconType:r,iconSize:"18"}),n]})},F1e=({props:t={},navbarTabs:e=[],dropdownItemList:n,onLabelClick:r,isCompleted:i=!1,isTimerShown:s=!1,onViewClick:a,name:o="John Doe"})=>{const c=fe({topNavbarGeneric:!0});return l.jsxs("div",{className:"topNavbar",children:[l.jsxs("div",{className:c,...t,children:[l.jsx(ce,{iconType:"qluLogo",iconSize:"32"}),l.jsx("span",{className:"topNavbarGenericButtonsContainer",children:e.map((u,h)=>l.jsx(j1e,{text:u.tabName,isSelected:u.isActive,isDisabled:!1,navbarIcon:u.navbarIcon,onClick:u.onClick},h))})]}),l.jsxs("div",{children:[s?l.jsxs("div",{className:"timerAndView",children:[i?l.jsx(l.Fragment,{}):l.jsx(ce,{iconSize:"16",iconType:"clock"}),i?l.jsx("span",{children:"Internet Search Completed"}):l.jsx("span",{children:"Searching Internet : "}),i?l.jsx("button",{className:"searchView",onClick:a,children:"View"}):l.jsx(lc,{className:"rssTimer"})]}):l.jsx(l.Fragment,{}),l.jsx(cw,{onLabelClick:r,dropdownItemList:n,name:o})]})]})},pw=({count:t=1,onClick:e,dataCy:n,isDisabled:r})=>{const i=fe({"countCancelButton--Generic":!0});return l.jsxs("button",{className:i,onClick:e,"data-cy":n,disabled:r,children:[t,l.jsx(ce,{iconType:"cross",iconSize:"14"})]})},L1e=({filterText:t="Name",filterCount:e=0,filterIcon:n="industry",isFilterLoading:r=!1,onClick:i,onCancelClick:s,dataCy:a,dataCyCancel:o,showAiIcon:c,isFilterHighlighted:u,isDisabled:h})=>{const f=fe({"searchFilterButton--Generic":!0,"searchFilterButton--Selected":e!==0}),p=fe({"searchFilterButton-FitlerDetails":!0,filterHighlighted:u});return l.jsxs("button",{className:f,onClick:i,"data-cy":a,children:[!r&&l.jsxs("span",{className:p,children:[e!==0&&c?l.jsx("div",{className:"searchFilterButton-AiSearchIcon",children:l.jsx(ce,{iconType:"boldPlus",iconSize:"18"})}):l.jsx(ce,{iconType:n,iconSize:"18"}),t]}),r&&l.jsxs("span",{className:"searchFilterButton-FitlerDetails",children:[l.jsx("span",{className:"searchFilterButton-FitlerDetails-SpinningPlus",children:l.jsx(ce,{iconType:"boldPlus",iconSize:"18"})}),t]}),e!==0&&!r&&l.jsx("div",{className:"searchFilterButton-RigthIcon",children:l.jsx(pw,{count:e,onClick:s,dataCy:o,isDisabled:h})})]})},z1e=({images:t=[],initials:e=[],iconSize:n="24",counter:r=0})=>l.jsxs("div",{className:"avatarGroup",children:[t.map(i=>l.jsx(nn,{className:`w-${n}`,iconPath:i.iconUrl,iconSize:n,altImageType:"profile"})),e.map(i=>l.jsx("div",{className:`w-${n}`,style:{background:i.color,color:i.initialColor,borderColor:"#FF8D4E"},children:i.initial})),r?e.length>0?l.jsxs("div",{className:`w-${n}`,style:{borderColor:"#FF8D4E"},children:["+",r]}):l.jsxs("div",{className:`w-${n}`,children:["+",r]}):l.jsx(l.Fragment,{})]}),R1e=({children:t="Placeholder",hasBorder:e=!1,sizeVariant:n="sm",width:r="fit-content",isSelected:i=!1})=>l.jsx("span",{className:`ellipsisPillNotClickableGeneric ${e&&"ellipsisPillNotClickableBorder"} ${n}Size ${i?"ellipsisPillNotClickableSelected":""}`,style:{width:r},children:t}),D1e=({isDisabled:t=!1,sizeVariant:e="xs",variant:n="primary",color:r="orange",iconType:i="searchArrow",iconSize:s="24",onClick:a})=>{const o=fe({[`${e}Size--SearchSvgButton`]:!0,[`${n}-${r}--SearchSvgButton`]:!0});return l.jsx("button",{disabled:t,onClick:a,className:o,children:l.jsx(ce,{iconType:i,iconSize:s})})},pc=({text:t="Placeholder",hasBorder:e=!1,sizeVariant:n="sm",width:r="fit-content",truncateLength:i=20,isSelected:s=!1})=>l.jsx("p",{className:`textPillNotClickableGeneric ${e&&"textPillNotClickableBorder"} ${n}Size ${s?"textPillNotClickableSelected":""}`,style:{width:r},children:l.jsx(Hy,{text:t,length:i})});h2.register(CW,An,mn,tr,tn,en);const F6=({inputData:t=[]})=>{const e={responsive:!0,aspectRatio:3,maintainAspectRatio:!0,beginAtZero:0,scales:{r:{pointLabels:{color:"rgba(193, 193, 193, 1)",font:{size:14,weight:400,family:"Inter"},padding:20},ticks:{display:!1,count:4,max:3,padding:5},angleLines:{display:!0,color:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(124, 124, 124, 0.7)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o}},grid:{display:!0,color:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(124, 124, 124, 0.5)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o},circular:!0,borderDash:[5,1],borderDashOffset:.5,lineWidth:1}}},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},n=t.map(s=>s.key),r=t.map(s=>s.value),i={labels:n,datasets:[{label:"",data:r,fill:!0,backgroundColor:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(255, 141, 78, 0.2)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o},borderColor:"rgba(255, 141, 78, 1)",borderWidth:1,radius:0,pointHoverRadius:3}]};return l.jsx(jW,{data:i,options:e})},N1e=({active:t="Personal Information",onInfoClick:e=()=>!1,onPasswordClick:n=()=>!1,onPrivacyClick:r=()=>!1,onQMailClick:i=()=>!1})=>{const s=[{name:"Personal Information",iconType:"user",onClick:e},{name:"Password",iconType:"password",onClick:n},{name:"Privacy",iconType:"employees",onClick:r},{name:"Qmail",iconType:"paperPlaneUpRight",onClick:i}];return l.jsxs("div",{className:"settingsNavbar",children:[l.jsx("div",{children:"Settings"}),l.jsx("div",{children:s.map((a,o)=>l.jsxs("div",{className:a.name==t?"active":"",onClick:a.onClick,children:[l.jsx(ce,{iconType:a.iconType,iconSize:"18"}),a.name]},o))})]})};exports.AIAnalysisCard=hte;exports.AIAssistant=di;exports.AIAssistantDetails=ate;exports.AIDetailsCard=di;exports.AdvanceFilterJobTItleV2=rb;exports.AdvanceFilterTitleWindow=nb;exports.AreaChart=PW;exports.AssignmentBreadCrumb=Fw;exports.AssignmentCreation=qL;exports.AssignmentIdealProfileCard=oz;exports.AssignmentInfoSubHeader=JL;exports.AssignmentShimmer=fte;exports.AuthNavBar=jk;exports.AuthNavbarLogoSvg=Hp;exports.AuthPhoneNumberInput=Up;exports.AvatarGroup=z1e;exports.BadgeNonClickable=Kp;exports.BadgeWithCount=X5;exports.BarLineChart=zW;exports.BusinessUnitViewTabsComponent=mG;exports.CampaignMessage=zI;exports.CampaignSubject=VW;exports.CampaignTableShimmer=Yee;exports.CardsRow=cte;exports.ChatClickableCard=HW;exports.ChatDropDown=Nv;exports.ChatLoadingWidget=Cte;exports.ChatPeopleCard=OW;exports.ChatPopup=WW;exports.CheckboxComponent=nr;exports.ChevronDropDown=cw;exports.CircularIcon=nn;exports.CircularSvgAndEmoji=UW;exports.ClickableCard=lw;exports.ClickableFilterBadge=YW;exports.ClickableText=R1;exports.ColoredButton=KW;exports.CompanyBarChartFinancialTab=k6;exports.CompanyCombinedChartFinancialTab=Oy;exports.CompanyDetailsCard=JW;exports.CompanyLikePillSelectable=XW;exports.CompanyLineChartFinancialTab=_y;exports.CompanyLogoPillSelectable=QW;exports.CompanyPeopleTab=I_;exports.CompanyPill=d_;exports.CompanyProductsTab=T_;exports.CompanyReportsTab=B_;exports.CompanyTableShimmer=Uee;exports.CompanyViewBody=Pv;exports.CompanyViewBussinessUnitTabs=Mee;exports.CompanyViewFinancial=Iv;exports.CompanyViewFinancialBody=gee;exports.CompanyViewFinancialGenericTable=bee;exports.CompanyViewFinancialIncomeStatement=Cee;exports.CompanyViewFinancialPrivateTabs=xee;exports.CompanyViewFinancialSummary=ew;exports.CompanyViewHeader=Vv;exports.CompanyViewLayout=dG;exports.CompanyViewPeople=Bv;exports.CompanyViewSummary=Tv;exports.CompanyViewSummaryNewsCompoment=Aee;exports.CompanyViewSummaryNewsTabs=Eee;exports.CompanyViewTabsComponent=Hv;exports.CompetitorsCompanyTab=N_;exports.ConnectDropdown=a_;exports.ContentLocked=nJ;exports.ContinuousRangeComponent=Xte;exports.CountCancelButton=pw;exports.CreditBarChart=hw;exports.CreditManagementDatePicker=w1e;exports.CreditManagementDropdownButton=v1e;exports.CreditManagementDropdownItem=x1e;exports.CreditUsageChart=g1e;exports.DatePicker=xZ;exports.DateTimePicker=hee;exports.DoughnutChart=IW;exports.DropDown=aw;exports.DropDownButton=cc;exports.DropDownForm=r1e;exports.DropDownGeneric=fee;exports.DropdownChildButton=fc;exports.DropdownComponent=hx;exports.DropdownWithSvg=ite;exports.EllipsisPillNotClickable=R1e;exports.EllipsisText=s2;exports.EnrichmentPersonTable=vte;exports.EntityTable=Lte;exports.FeedbackButton=yZ;exports.FileUpload=S1e;exports.FilterAddRemoveBadge=wZ;exports.FilterAndSortDropdown=bZ;exports.GetSvgIcon=ce;exports.IconButton=B2;exports.InputField=EZ;exports.InputFieldForm=M1e;exports.InputFieldWithSvg=fx;exports.LineChart=vee;exports.Loader=Q1;exports.LogoButton=Wq;exports.LookAlikeProfiles=D_;exports.Modal=Gq;exports.MultiChart=$y;exports.NoteEditor=R_;exports.NumberInputField=Z7;exports.NumberInputFieldWithLimit=Uq;exports.NumberStringInput=rte;exports.OTPComponent=Yq;exports.PayChart=Ste;exports.PeerSalaryChart=kee;exports.PeopleCard=c_;exports.PersonCompanyNameClickable=kr;exports.PersonStatisticsChart=H_;exports.PersonStatsView=O_;exports.PersonViewBody=Jq;exports.PersonViewExperienceCard=Ox;exports.PersonViewExperienceDetails=Hx;exports.PersonViewGrowthChart=See;exports.PersonViewHeader=rJ;exports.PersonViewHeaderSummary=yte;exports.PersonViewInfo=Xq;exports.PersonViewSummary=Wx;exports.PersonViewTabsComponent=iJ;exports.PhoneNumberInputField=Up;exports.Pill=wte;exports.PrimaryButton=Un;exports.PrimaryRadioButton=bte;exports.PrivateFinancialsLineGraph=Ate;exports.ProductDetailsViewTabsComponent=wG;exports.ProfileListShimmer=pte;exports.ProfileTableShimmer=Gee;exports.ProgressBar=Gx;exports.PromptField=GW;exports.QChatShimmer=xte;exports.RadarChart=F6;exports.RadioButton=ow;exports.RangeComponent=q7;exports.RectangularIcon=rr;exports.RectangularSvgButton=sJ;exports.RoundDetailsShimmer=Kee;exports.RoundSettingModal=ste;exports.SavedSearches=s_;exports.SearchArrowButton=D1e;exports.SearchCompanyTable=Yx;exports.SearchCompanyTableContainer=gJ;exports.SearchFilterButton=L1e;exports.SearchLocationDropdown=aJ;exports.SearchPersonTable=Ux;exports.SearchPersonTableContainer=pJ;exports.SearchTabsBar=vJ;exports.SearchTimer=lc;exports.SecondaryButton=Gi;exports.SectionSeparator=kte;exports.Select=Mte;exports.SelectDropDown=Hee;exports.SelectItem=uw;exports.SelectablePill=Ute;exports.SelectionDropDown=Yte;exports.SettingsNavbar=N1e;exports.Shimmer=Oee;exports.Sidebar=xJ;exports.SkillIndustryBadge=Xr;exports.StatsChart=yee;exports.StickyNavigationFooter=Wee;exports.StyleableTextAreaContainer=n_;exports.SwitchLarge=r_;exports.TabelHeader=Dte;exports.Table=i_;exports.TableBody=Bte;exports.TableCell=Wte;exports.TableNameCell=Gte;exports.TablePagination=J7;exports.TableRow=Vte;exports.TableShimmer=ete;exports.Tabs=By;exports.TagButtonComponent=Iy;exports.TemplateCard=ote;exports.TemplateDetailCard=dte;exports.TemplateTableShimmer=Zee;exports.TertiaryButton=Ls;exports.TextArea=nte;exports.TextAreaWithTooltip=tte;exports.TextBoxWithSuggestions=Jee;exports.TextButton=Gp;exports.TextDropdown=Qee;exports.TextPillNotClickable=pc;exports.TextWithSvgButton=Py;exports.TimePicker=_ee;exports.ToastWithButton=mte;exports.ToastWithButtonV2=k1e;exports.ToggleComponent=Vy;exports.Tooltip=M1;exports.TopNavbar=F1e;exports.TruncateText=Hy;exports.VariantsList=$ee;exports.WelecomeToastComponent=Vee;
|
|
1061
|
+
`).run()};return l.jsxs("div",{className:Ir["textBoxWithSuggestions-Wrapper"],children:[l.jsx("p",{className:Ir.textBoxWithSuggestionsHeading,children:t}),l.jsx("div",{className:Ir["textBoxWithSuggestions-Container"],children:l.jsx(A8,{editor:a})}),l.jsxs("div",{className:Ir["textBoxWithSuggestions-SuggestionsBox"],children:[l.jsx("p",{className:Ir["textBoxWithSuggestions-SuggestionText"],children:"Suggestions"}),l.jsx("div",{className:Ir["textBoxWithSuggestions-SuggestionList"],children:r.map((c,u)=>l.jsx("div",{onClick:()=>{i[u]||(s(h=>h.map((f,p)=>p===u?!0:f)),o(c.suggestionText))},className:i[u]?Ir["suggestionItem--Active"]:Ir["suggestionItem--Generic"],children:c.suggestionHeading},u))})]})]})},Xee=({svgIcon:t,itemName:e,onClick:n,hasBorder:r})=>l.jsxs("div",{className:`TextDropdown-dropdownItem ${t}-icon ${r?"border-none":""}`,onClick:()=>n(e,t),children:[t&&l.jsx(ce,{iconType:t,iconSize:"16"}),e]}),Qee=({items:t,initialValue:e,initialSvg:n,onChange:r})=>{const[i,s]=C.useState(!1),[a,o]=C.useState(),c=C.useRef(null),u=()=>{s(m=>!m)},h=m=>{console.log("E: ",m),o(m),s(!1)},f=C.useMemo(()=>a||{itemName:e,svgIcon:n},[a,e,n]),p=(m,g)=>{h({itemName:m,svgIcon:g}),r({itemName:m,svgIcon:g})};return C.useEffect(()=>{function m(g){c.current&&!c.current.contains(g.target)&&!c.current.parentElement?.contains(g.target)&&u()}return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[]),l.jsx("div",{children:l.jsxs("div",{className:"TextDropdown-Wrapper",children:[l.jsxs("div",{className:"TextDropdown-barContainer",onClick:u,children:[l.jsxs("div",{className:`TextDropdown-selectedTextContainer ${f.svgIcon}-icon`,children:[f.svgIcon&&l.jsx(ce,{iconType:f.svgIcon,iconSize:"16"}),l.jsx("span",{className:"TextDropdown-selectedText",children:f.itemName??""})]}),l.jsx("span",{className:"TextDropdown-dropdownSvg",children:l.jsx(ce,{iconType:`${i?"cheveronUp":"cheveronDown"}`})})]}),i&&l.jsx("div",{className:"TextDropdown-dropdownBody",ref:c,children:t.map((m,g)=>l.jsx(Xee,{itemName:m.itemName,svgIcon:m.svgIcon,hasBorder:g==t.length-1,onClick:p},m.itemName+g))})]})})},_ee=({hourValue:t,minuteValue:e,selectedTime:n,disableBefore:r,alwaysShowTime:i,timezone:s,onTimePicked:a})=>{const[o,c]=C.useState(!1),[u,h]=C.useState(!1),f=Array.from(Array(12).keys()).map(q=>q<9?`0${q+1}`:`${q+1}`),p=Array.from(Array(60).keys()).map(q=>q<=9?`0${q}`:`${q}`),m=["AM","PM"],[g,v]=C.useState(String(t||1)),[x,b]=C.useState(String(e||0)),[A,M]=C.useState(n||"AM"),k=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date,oe=new Date(r).getHours(),J=Q.getHours(),ee=J<12?"AM":"PM";return oe>12?(q.push(...Array.from({length:oe-12},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`)),Z.push(...Array.from({length:12},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`))):Z.push(...Array.from({length:oe},(xe,ve)=>ve<9?`0${ve+1}`:`${ve+1}`)),ee==="AM"?J===oe&&Z.pop():J===oe&&q.pop(),{PM:q,AM:Z}})(),B=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date(r),oe=Q.getHours(),J=Q.getMinutes();let ee=Number(g);return A==="PM"&&ee!==12?ee+=12:A==="AM"&&ee===12&&(ee=0),ee!==r.getHours()?{AM:[],PM:[]}:(oe<12&&Number(g)===oe?Z.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)):oe===12&&A==="PM"?q.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)):oe>12&&Number(g)===oe-12&&q.push(...Array.from({length:J},(xe,ve)=>ve<=9?`0${ve}`:`${ve}`)),{AM:Z,PM:q})})();C.useEffect(()=>{o&&Array.from(document.getElementsByClassName("timePickerItem--activated")).map(Z=>Z.scrollIntoView())},[o]);const[N,V]=C.useState({x:0,y:0,direction:"top"}),O=C.useRef(null),X=C.useRef(document.getElementById("root")),ie=C.useRef(null),ge=()=>{if(ie.current){const q=ie.current.getBoundingClientRect();let Z=q.y+q.height+8,Q="top";const oe=q.x;200>window.innerHeight-q.y&&(Q="bottom",Z=window.innerHeight-q.y+8),V({y:Z,x:oe,direction:Q})}},$=q=>{ge(),c(q),h(!q)},te=q=>{const Z=q.target;O.current&&ie.current&&Z!==O.current&&!O.current.contains(Z)&&!ie.current.contains(Z)&&$(!1)};return C.useEffect(()=>{(Number(g)!==t||Number(x)!==e||A!==n)&&a(`${g}:${x}:${A}`)},[g,x,A]),C.useEffect(()=>(window.addEventListener("click",te),window.addEventListener("wheel",()=>ge()),()=>{window.addEventListener("click",te),window.removeEventListener("wheel",()=>ge())}),[]),l.jsxs("div",{className:"timePickerDropdown--Active",ref:ie,children:[l.jsxs("button",{className:"timePickerDropdown-Button",onClick:()=>{h(o),$(!o)},children:[l.jsx("p",{children:i||u?`${Number(g)<10?`0${g}`:g}:${Number(x)<10?`0${x}`:x} ${A}`:"Time"}),l.jsx(ce,{iconType:"clock",iconSize:"16"})]}),o&&!!X.current&&Ki.createPortal(l.jsxs("div",{className:`${o?"":"timePicker-hideTimeDial"} timePicker-Container`,ref:O,style:{[N.direction]:N?.y,left:N?.x},children:[l.jsxs("div",{className:"time-scroll-container",children:[l.jsx("div",{id:"hour-list",className:"timePickerVerticalList-Container",children:f.map(q=>{const Z=k[A].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(g)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||v(Number(q).toString())},children:q})})}),l.jsx("div",{id:"minutes-list",className:"timePickerVerticalList-Container",children:p.map(q=>{const Z=B[A].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(x)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||b(Number(q).toString())},children:q})})}),l.jsx("div",{className:"timePickerVerticalList-Container",children:m.map(q=>{const Z=k[q].length===12;return l.jsx("div",{className:`timePickerVerticalList-Item ${q===A?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||M(q)},children:q})})})]}),!!s&&l.jsx("div",{className:"timezone",children:s})]}),X.current)]})},$ee=({variants:t})=>{const[e,n]=C.useState(0);function r(i,s,a){return i==="Custom"?l.jsx("div",{className:`variantList--Custom ${e===a?"active-variant":""}`,onClick:()=>n(a),children:l.jsx("p",{className:"variantListCustomText",children:"Custom"})}):l.jsxs("div",{className:`variantList--Generic ${e===a?"active-variant":""}`,onClick:()=>n(a),children:[l.jsx("div",{children:l.jsx("p",{className:"variantList-Heading",children:i})}),l.jsx("div",{children:l.jsx("p",{className:"variantList-Text",children:s.length>=23?`${s.slice(0,23)}..`:s})})]})}return l.jsx("div",{className:"variantsList-Container",children:t.map((i,s)=>r(i.name,i.text,s))})},ete=({numberOfRow:t=1,columns:e})=>{const n=[];for(let c=1;c<=t;c++)n.push(c);const{getTableProps:r,getTableBodyProps:i,headerGroups:s,rows:a,prepareRow:o}=jn.useTable({columns:e,data:n});return l.jsx("div",{className:"campaignTableShimmer-Generic",children:l.jsxs("table",{className:"searchCampaignTable--Generic ",...r(),children:[l.jsx("thead",{children:s.map(c=>l.jsx("tr",{...c.getHeaderGroupProps(),children:c.headers.map(u=>l.jsx("th",{...u.getHeaderProps(),style:{width:u.width},children:u.render("Header")}))}))}),l.jsx("tbody",{...i(),children:a.map(c=>(o(c),l.jsx("tr",{...c.getRowProps(),children:c.cells.map(u=>l.jsx("td",{...u.getCellProps(),children:l.jsx("div",{className:"campaignTableShimmer-Comment animate"})}))})))})]})})},y0={"textAreaWithTooltip-Wrapper":"_textAreaWithTooltip-Wrapper_ze0ch_131","textAreaWithTooltip-Container":"_textAreaWithTooltip-Container_ze0ch_135","textAreaWithTooltip-editor":"_textAreaWithTooltip-editor_ze0ch_143","textAreaWithTooltip-placeholder":"_textAreaWithTooltip-placeholder_ze0ch_161","textAreaWithTooltip-charactersLeft":"_textAreaWithTooltip-charactersLeft_ze0ch_173"},tte=({value:t,handleChange:e,placeholder:n="",customStyles:r={},maxLength:i})=>{const[s,a]=C.useState(0),o=M8({extensions:[k8.configure({heading:!1,bold:!1,italic:!1,strike:!1,code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,bulletList:!1,orderedList:!1,listItem:!1})],content:t,editable:!0,onUpdate:({editor:c})=>{const u=c.getText(),h=u.length;if(a(h),i&&h>i){const f=u.substring(0,i);c.commands.setContent(f);return}e(u)},onCreate:({editor:c})=>{t&&(c.commands.setContent(t),a(c.getText().length))},editorProps:{attributes:{class:y0["textAreaWithTooltip-editor"]},handlePaste:(c,u)=>{if(!i)return!1;const h=u.clipboardData?.getData("text/plain")||"",f=o?.getText()||"",p=i-f.length;if(p<=0)return u.preventDefault(),!0;if(h.length>p){const m=h.substring(0,p);return u.preventDefault(),o?.commands.insertContent(m),!0}return!1},handleTextInput:(c,u,h,f)=>i?(o?.getText()||"").length>=i:!1}});return C.useEffect(()=>{o&&t!==o.getText()&&(o.commands.setContent(t),a(o.getText().length))},[t,o]),C.useEffect(()=>{if(o&&i){const c=o.getText();if(c.length>i){const u=c.substring(0,i);o.commands.setContent(u),a(i)}}},[o,i,s]),l.jsxs("div",{className:y0["textAreaWithTooltip-Wrapper"],children:[l.jsxs("div",{className:y0["textAreaWithTooltip-Container"],style:r,children:[l.jsx(A8,{editor:o}),!o?.getText()&&l.jsx("div",{className:y0["textAreaWithTooltip-placeholder"],children:n})]}),i&&l.jsxs("p",{className:y0["textAreaWithTooltip-charactersLeft"],children:[i-s," characters left"]})]})},aw=({dropdownOnClickHandler:t})=>{const[e,n]=C.useState(!1),[r,i]=C.useState("Personalise"),[s,a]=C.useState(!1),o=C.useRef(null),c=()=>{n(h=>!h)},u=()=>{c(),a(!s)};return C.useEffect(()=>{function h(f){o.current&&!o.current.contains(f.target)&&u()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"drop-down-dd",children:[r,l.jsx("span",{className:"svg-dd",onClick:u,children:l.jsx(ce,{iconType:s?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),e&&l.jsxs("div",{ref:o,className:"dropdown-body",children:[l.jsx("span",{onClick:()=>{i("Personalise"),u(),t("Personalise")},children:"Personlise"}),l.jsx("span",{onClick:()=>{i("Templates"),u(),t("Templates")},children:"Templates"})]})]})},ow=({value:t})=>{const[e,n]=C.useState(!1),r=()=>{n(i=>!i),t(!e)};return l.jsx("div",{children:l.jsx("span",{className:`radio-svg ${e?"clicked":""}`,onClick:r,children:l.jsx(ce,{iconType:"radio",iconSize:"16"})})})},di=({title:t="Title",content:e="Content",refresh:n=!1,likeState:r,unlikeState:i,refreshState:s})=>{const[a,o]=C.useState(!1),[c,u]=C.useState(!1),[h,f]=C.useState(n),p=()=>{o(v=>!v),r(!a)},m=()=>{u(v=>!v),i(!c)},g=()=>{f(v=>!v),s(!h)};return l.jsxs("div",{className:"main-card-div--ad",children:[l.jsxs("div",{className:"card-title-bar",children:[l.jsxs("div",{className:"start-div",children:[l.jsx(ow,{value:v=>console.log(v)}),l.jsxs("div",{className:"sub",children:[" ",t," "]})]}),l.jsxs("div",{className:"end-div",children:[l.jsx("span",{className:`__svg ${a&&"__svg-active"}`,onClick:p,children:l.jsx(ce,{iconType:"like",iconSize:"24"})}),l.jsx("span",{className:`__svg ${c&&"__svg-active"}`,onClick:m,children:l.jsx(ce,{iconType:"unlike",iconSize:"24"})}),l.jsx("span",{className:`__svg ${h&&"__svg-active"}`,onClick:g,style:{width:"24px",marginTop:"6px"},children:l.jsx(ce,{iconType:"refresh",iconSize:"16"})})]})]}),l.jsx("div",{className:"content",children:e})]})},nte=({characterCount:t,limit:e})=>{const n=r=>{t(r.target.value.length),CQ(r.target.value)};return l.jsx("textarea",{className:"text-area",maxLength:e,onChange:n})},lw=({title:t="CEO Apple",getText:e})=>{const n=()=>{e(t),alert(t+" Clicked!")};return l.jsx("div",{className:"card-style",onClick:n,children:l.jsx("div",{className:"collapsed",children:l.jsxs("div",{className:"title-cheveron",children:[l.jsx("span",{className:"title--c",children:t}),l.jsx("span",{className:"svg--c",children:l.jsx(ce,{iconType:"chevronRight",iconSize:"16"})})]})})})},rte=({initialNumber:t=0,placeholder:e="123",unit:n,handleChange:r=i=>i})=>{const[i,s]=C.useState(`${t} ${n}`),a=u=>{const h=u.target.value;/^[0-9]*$/.test(h)&&h?(s(h),r(parseInt(h))):h.trim().length===0&&(s("0"),r(0))},o=()=>{i!==""?(s(`${parseInt(i)+1} ${n}`),r(parseInt(i.split(" ")[0])+1)):i===""&&(s("0"),r(0))},c=()=>{parseInt(i)>0&&(s(`${parseInt(i)-1} ${n}`),r(parseInt(i.split(" ")[0])-1))};return l.jsxs("div",{className:"numberStringInputField",children:[l.jsx("input",{placeholder:e,disabled:!0,type:"text",value:i,onChange:a}),l.jsxs("div",{className:"numberStringInputField-Buttons",children:[l.jsx("button",{onClick:o,children:l.jsx(ce,{iconType:"cheveronUp",iconSize:"16"})}),l.jsx("button",{onClick:c,children:l.jsx(ce,{iconType:"cheveronDown",iconSize:"16"})})]})]})},ite=({text:t="",iconType:e="",children:n})=>{const[r,i]=C.useState(!1),s=C.useRef(null),a=C.useRef(null),o=()=>{i(u=>!u)};C.useEffect(()=>{function u(h){s.current&&!s.current.contains(h.target)&&a.current&&!a.current.contains(h.target)&&i(!1)}return document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[]);const c=fe({"dropdownWithSvg-Left":!0,"dropdownWithSvg-Left-SvgStyle":e!=="linkedinLogo"});return l.jsxs("button",{ref:a,type:"button",onClick:o,className:"dropdownWithSvg-Button",children:[l.jsxs("div",{className:c,children:[e&&l.jsx(ce,{iconType:e,iconSize:"16"}),t]}),l.jsx(ce,{iconType:r?"cheveronUp":"cheveronDown",iconSize:"16"}),r&&l.jsx("div",{ref:s,className:"dropdownWithSvg-Body",children:n})]})},fc=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1})=>{const c=fe({"dropdownChildButton-Gray":r==="gray","dropdownChildButton-Red":r==="red","dropdownChildButton-Active":o,"dropdownChildButton--Generic":!0});return l.jsx(l.Fragment,{children:l.jsxs("button",{className:c,onClick:()=>t(e),type:"button",disabled:i,children:[s&&l.jsx(ce,{iconType:a,iconSize:"16"}),e,n&&l.jsx("p",{children:n})]})})},ste=()=>l.jsx("div",{children:"RoundSettingModal"}),ate=({})=>l.jsxs("div",{className:"card-main--add",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("div",{className:"title",children:"AI Assistant"})]}),l.jsxs("div",{className:"subject",children:[l.jsx("span",{className:"subject-text",children:" SUBJECT "}),l.jsx(di,{title:"Subject 1",content:"Exciting Opportunity for you! ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Subject 2",content:"Exciting Opportunity for CEO Role",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1})]}),l.jsxs("div",{className:"body",children:[l.jsx("span",{className:"body-text--aad",children:" BODY "}),l.jsxs("div",{className:"scrollable-div",children:[l.jsx(di,{title:"Body 1",content:"Hey Ethan, I am my region's top recruiter for Executive Recuitment. Currently I am recruiting for a fast growing startup that has amazing benefits and financial incentives. Your work experience looks like a great fit for this role. Available for a quick chat this week? ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Body 2",content:"Hey Ethan, I am my region's top recruiter for Executive Recuitment. Currently I am recruiting for a fast growing startup that has amazing benefits and financial incentives. Your work experience looks like a great fit for this role. Available for a quick chat this week? ",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1}),l.jsx(di,{title:"Body 3",content:"Exciting Opportunity for CEO Role",likeState:t=>{console.log(t)},unlikeState:t=>{console.log(t)},refreshState:t=>{console.log(t)},refresh:!1})]})]})]}),ote=({})=>{const[t,e]=C.useState("Templates"),[n,r]=C.useState("");C.useEffect(()=>{alert(t)},[t]);const i=()=>{alert("Button clicked")},s=()=>{alert("Search Text Changed!")};return l.jsxs("div",{className:"main--card--temp",children:[l.jsx("div",{className:"title-bar-temp",children:l.jsxs("div",{className:"title-div--",children:[l.jsx("div",{className:"ti-tle",children:"Templates"}),l.jsxs("div",{children:[" ",l.jsx(aw,{dropdownOnClickHandler:a=>{e(a)}})," "]})]})}),l.jsx("span",{className:"title-text",children:"Select a template to fill in the messages"}),l.jsxs("div",{className:"search",children:[l.jsx("div",{className:"search-div",children:l.jsx(fx,{onChange:s,showIconOnLeft:!0})}),l.jsx(Un,{text:"Create New",colorVariant:"orange",sizeVariant:"base",onClick:i})]}),l.jsx("div",{className:"otherCards",children:Array.from([1,2,3,4,5,6,7]).map(()=>l.jsx(lw,{getText:a=>r(a)}))})]})},lte=({name:t,designation:e,isActive:n,isError:r})=>l.jsxs("div",{className:`card ${n&&"active"} ${r!==void 0&&"isError-justify"}`,children:[r!==void 0&&r==!0&&l.jsx("div",{className:"icon-div",children:l.jsx("span",{className:"svg-error",children:l.jsx(ce,{iconType:"excalamationCircle",iconSize:"32"})})}),r!==void 0&&r==!1&&l.jsx("div",{className:"icon-div",children:l.jsx("span",{className:"svg-success",children:l.jsx(ce,{iconType:"tickCircle",iconSize:"32"})})}),l.jsxs("div",{className:"text-cq",children:[l.jsx("span",{className:"name",children:t}),l.jsx("span",{className:"designation",children:e})]})]}),cte=({cards:t})=>{const[e,n]=C.useState(0),r=220,i=C.useRef(null);C.useEffect(()=>{t.length>0&&n(0)},[]),C.useEffect(()=>{if(i.current){const o=i.current.querySelector(".active");if(o){const c=i.current.getBoundingClientRect().width,u=o.getBoundingClientRect().left-i.current.getBoundingClientRect().left;u+r>c?i.current.scrollLeft+=u+r-c:u<0&&(i.current.scrollLeft+=u)}}},[e,t]);const s=()=>{e!=t.length-1&&(n(o=>(o+1)%t.length),i.current&&e>4&&(i.current.scrollLeft+=r))},a=()=>{e!=0&&(n(o=>(o-1+t.length)%t.length),i.current&&e<t.length-4&&(i.current.scrollLeft-=r))};return l.jsxs("div",{className:"cards-row-container",children:[l.jsxs("span",{className:`button ${t.length==1&&"hide"} ${e==0&&"disable"}`,onClick:a,children:[" ",l.jsx(ce,{iconType:"chevronLeft",iconSize:"16"})]}),l.jsx("div",{className:"cards-row",ref:i,children:t.map((o,c)=>l.jsx(lte,{name:o.name,designation:o.designation,isError:o.isError,isActive:c===e},c))}),l.jsxs("span",{className:`button ${t.length==1&&"hide"} ${e==t.length-1&&"disable"}`,onClick:s,children:[" ",l.jsx(ce,{iconType:"chevronRight",iconSize:"16"})]})]})},dte=({subject:t,body:e})=>{const n=()=>{alert("Use for all reciepents clicked")},r=()=>{alert("Edit template btn clicked!")};return l.jsxs("div",{className:"card-div-main",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("span",{className:"title",children:" Templates "})]}),l.jsxs("div",{className:"subject",children:["SUBJECT",l.jsx("span",{className:"sub-text",children:t})]}),l.jsxs("div",{className:"body",children:["BODY",l.jsx("span",{className:"body-text",children:e})]}),l.jsxs("div",{className:"footer",children:[l.jsx("span",{style:{marginRight:"8px"},children:l.jsx(Ls,{onClick:r,text:"Edit Template"})}),l.jsx(Un,{text:"Use for All recipients",colorVariant:"orange",onClick:n})]})]})},ute=({title:t,progress:e})=>l.jsxs("div",{className:"main-pc",children:[l.jsx("span",{className:"title-pc",children:t}),l.jsx("span",{className:"prog-pc",children:l.jsx(Gx,{progress:e})})]}),hte=({cards:t})=>l.jsxs("div",{className:"main-card-div",children:[l.jsxs("div",{className:"title-bar-ana",children:[l.jsx("span",{className:"svg-ana",children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"16"})}),l.jsx("span",{className:"title-text-ana",children:" AI Analysis "})]}),l.jsx("div",{className:"div-ana",children:t.map(e=>l.jsx(ute,{title:e.title,progress:e.progress}))})]}),fte=({})=>l.jsx("div",{className:"assignmentShimmer-Generic",children:l.jsx("div",{className:"assignmentShimmer-Card br ",children:l.jsxs("div",{className:"assignmentShimmer-Wrapper",children:[l.jsxs("div",{className:"assignmentShimmer-AssignmentHeader",children:[l.jsx("div",{className:"assignmentShimmer-AssignmentLogo animate"}),l.jsxs("div",{className:"assignmentShimmer-AssignmentTitleLayout",children:[l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"}),l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"}),l.jsx("div",{className:"assignmentShimmer-AssignmentTitle animate"})]})]}),l.jsx("div",{className:"assignmentShimmer-ProspectDetials animate"}),l.jsx("div",{className:"assignmentShimmer-View animate"}),l.jsx("div",{className:"assignmentShimmer-View animate"})]})})}),pte=({})=>l.jsx("div",{className:"profileListShimmer-Generic",children:l.jsx("div",{className:"profileListShimmer-Card br ",children:l.jsxs("div",{className:"profileListShimmer-Wrapper",children:[l.jsxs("div",{className:"profileListShimmer-ProfileHeader",children:[l.jsx("div",{className:"profileListShimmer-ProfileLogo animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileTitleLayout",children:[l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"}),l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"}),l.jsx("div",{className:"profileListShimmer-ProfileTitle animate"})]})]}),l.jsxs("div",{className:"profileListShimmer-ProfileDetials",children:[l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileExperiences",children:[l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]}),l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]}),l.jsxs("div",{className:"profileListShimmer-ProfileExperience",children:[l.jsx("div",{className:"profileListShimmer-ProfileExperienceLogo animate"}),l.jsx("div",{className:"profileListShimmer-ProfileExperienceTitle animate"})]})]}),l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileIndustries",children:[l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"})]}),l.jsx("div",{className:"profileListShimmer-ProfileCategoryTitle animate"}),l.jsxs("div",{className:"profileListShimmer-ProfileIndustries",children:[l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"}),l.jsx("div",{className:"profileListShimmer-ProfileIndustry animate"})]})]})]})})}),mte=({heading:t="🦄 Wow so easy!",subText:e="🦄 Wow so easy!",showToast:n=!1,delay:r=5e3,showButtons:i=!1,btnText:s="Apply",onBtnClick:a=()=>{},onClose:o=()=>{}})=>{const c=()=>{const u=Jt(l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[t,l.jsx("span",{children:e})]}),i&&l.jsxs("div",{className:"genericToast--footer",children:[l.jsx(R1,{onClick:a,showIcon:!1,sizeVariant:"sm",text:s,colorVariant:"orange"}),l.jsx(R1,{onClick:()=>{Jt.dismiss(u),o()},showIcon:!1,sizeVariant:"sm",text:"Dismiss",colorVariant:"gray"})]})]}),{position:"top-right",autoClose:r,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",onClose:()=>{o(),Jt.dismiss(u)}})};return C.useEffect(()=>{n&&c()},[]),l.jsx("div",{children:l.jsx(hc,{limit:1,closeButton:!1})})};function gte({status:t="Enriched"}){switch(t){case"Enriched":return l.jsx("span",{className:"enrichmentStatusEnriched",children:t});case"Enriching":return l.jsx("span",{className:"enrichmentStatusEnriching",children:t});case"Enrichment Failed":return l.jsx("span",{className:"enrichmentStatusEnrichmentFailed",children:t});case"To be Enriched":return l.jsx("span",{className:"enrichmentStatusToBeEnriched",children:t});default:return null}}const vte=({personsData:t=[],onCheckClick:e=({checked:i,index:s})=>{console.log({checked:i,index:s})},onNameClick:n=i=>{console.log("Showing the publicIdentifier :: ",{publicIdentifier:i})},onCompanyClick:r=(i,s)=>{console.log("universalName: string, urn: string ",{universalName:i,urn:s})}})=>{const i=t,s=C.useMemo(()=>[{Header:"Name",accessor:"fullName"},{Header:"Title",accessor:"currentTitle"},{Header:"Company",accessor:"currentCompany"},{Header:"Location",accessor:"location"},{Header:"Status",accessor:"status"},{Header:"Qlu Link",accessor:"qluLink"}],[]),{getTableProps:a,getTableBodyProps:o,headerGroups:c,rows:u,prepareRow:h}=jn.useTable({columns:s,data:i}),f=({publicIdentifier:p,name:m,isSelected:g,lastUpdated:v,profilePicture:x,index:b,onNameClick:A=M=>{console.log(M)}})=>p?l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(nr,{sizeVariant:"xs",checked:g,onClick:M=>e({index:b,checked:M})}),l.jsx(rr,{iconPath:x,iconSize:"40",borderRadius:"6"},`${p}-${v}`),l.jsx(kr,{text:m,onClick:()=>A(p)})]}):l.jsx("span",{className:"enrichmentPersonTable--NameCell--Placeholder",children:l.jsx("p",{children:m})});return l.jsxs("table",{className:"enrichmentPersonTable--Generic",...a(),children:[l.jsx("thead",{children:c.map(p=>l.jsx("tr",{...p.getHeaderGroupProps(),children:p.headers.map(m=>l.jsx("th",{...m.getHeaderProps(),children:m.render("Header")}))}))}),l.jsx("tbody",{...o(),children:u.map(p=>(h(p),C.createElement("tr",{...p.getRowProps(),key:`${p.original.fullName}${p.original.index}`},p.cells.map(m=>m.column.Header==="Name"?l.jsx("td",{...m.getCellProps(),children:f({isSelected:m.row.original.isSelected,lastUpdated:m.row.original.lastUpdated||"",name:m?.value,profilePicture:m?.row?.original?.profilePicture||"",publicIdentifier:m.row.original.publicIdentifier||"",index:m.row.original.index,onNameClick:n})}):m.column.Header==="Status"?l.jsx("td",{...m.getCellProps(),children:l.jsx(gte,{status:m?.value})}):m.column.Header==="Company"?l.jsx("td",{...m.getCellProps(),children:m?.value&&l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(nn,{iconPath:m.row.original.companyLogo||"",altImageType:"company",iconSize:"40",errorImageContainerSize:"40"}),l.jsx(kr,{text:m?.value,onClick:()=>r(m.row.original.companyUniversalName||"",m.row.original.companyUrn||"")})]})}):m.column.Header==="Qlu Link"?l.jsx("td",{...m.getCellProps(),children:m?.value&&l.jsx("span",{className:"enrichmentPersonTable--NameCell",children:l.jsx(kr,{text:m?.value,onClick:()=>{m?.value&&window.open(m.value,"_blank")}})})}):l.jsx("td",{...m.getCellProps(),children:m.render("Cell")||"N/A"})))))})]})},xte=({})=>l.jsx("div",{className:"qChatShimmer-Generic",children:l.jsx("div",{className:"qChatShimmer-Card br ",children:l.jsx("div",{className:"qChatShimmer-Wrapper",children:l.jsx("div",{className:"qChatShimmer-ProfileHeader",children:l.jsxs("div",{className:"qChatShimmer-ProfileTitleLayout",children:[l.jsx("div",{className:"qChatShimmer-ProfileTitle animate"}),l.jsx("div",{className:"qChatShimmer-ProfileTitle animate"})]})})})})}),cw=({dropdownItemList:t,onLabelClick:e,name:n,dataCyDropdown:r,dataCyChangePass:i,dataCySignout:s})=>{const[a,o]=C.useState(!1),c=()=>{o(h=>!h)},u=h=>{};return l.jsx("div",{className:"chevronButtondropdown--container",children:l.jsxs("span",{className:"filterButtondropdown--dropdown",children:[l.jsxs("div",{children:[l.jsx("button",{onClick:c,"data-cy":r,children:l.jsx("p",{className:"first-name",children:Bw(n)})}),l.jsx("span",{className:"chevronButtondropdown--btn--dropdown",children:l.jsx(B2,{shape:"circular",onClick:c,sizeVariant:"base",color:"orange",variant:"primary",iconType:"arrowDown"})})]}),l.jsx("ul",{className:`filterButtondropdown--dropdown-list-${a?"show":"hide"}`,children:t.map((h,f)=>l.jsx("li",{children:l.jsx("button",{onClick:()=>{o(!1),e(h)},"data-cy":u(),children:h})},`${f}-${h}`))})]})})},yte=({profilePicture:t="",fullName:e="",profilePublicIdentifier:n="",currentRole:r="",currentCompany:i="",universalName:s="",urn:a="",location:o="",lastUpdated:c="",onCompanyNameClick:u})=>l.jsxs("div",{className:"personViewHeaderSummary",children:[l.jsx(nn,{iconPath:t,iconSize:"80",altImageType:"profile"},`${n}-${c}`),l.jsxs("div",{className:"personViewHeaderSummary--PersonDetails",children:[l.jsx("div",{className:"fullName",children:e}),l.jsxs("div",{className:"titleContainer",children:[l.jsx(s2,{children:r}),"at",l.jsx("span",{onClick:()=>u(s,a),className:"personViewHeaderSummary--CompanyLink",children:l.jsx(s2,{children:i})})]}),l.jsx("h3",{children:o})]})]}),wte=({text:t="",isSelected:e=!1,props:n={},highlight:r=!1,onCancelClick:i=()=>!1})=>{const s=fe({"Pill--Generic":!0,"Pill--Selected":e,"Pill--Unselected":!e,"Pill--SelectedHover":e&&r,"Pill--UnselectedHover":!e&&r});return l.jsxs("span",{className:s,...n,children:[t,l.jsx("button",{onClick:a=>{a.stopPropagation(),i()},children:l.jsx(ce,{iconType:"cross",iconSize:"20"})})]})},Cte=()=>{const[t,e]=C.useState(20),[n,r]=C.useState(1);C.useEffect(()=>{(()=>{if(t<90){const a=Math.floor(Math.random()*4+1)*1e3,o=setTimeout(()=>{e(c=>Math.min(c+1,90))},a);return()=>clearTimeout(o)}})()},[t]),C.useEffect(()=>{(()=>{const a=setTimeout(()=>{r(n===3?1:n+1)},1e3);return()=>clearTimeout(a)})()},[n]);const i=s=>"•".repeat(s);return l.jsx("div",{className:"chatLoadingWidet--Generic",children:l.jsxs("p",{children:["Searching for results -"," ",l.jsxs("h2",{children:[t,"% done ",i(n)]})]})})};function bte({onClick:t,value:e}){return l.jsx("div",{className:"primaryRadioButton",children:l.jsx("input",{type:"radio",onClick:t,checked:e})})}h2.register(kn,Sn,An,Dr,Mn,tn,en);const Ete={responsive:!0,aspectRatio:5,maintainAspectRatio:!0,scales:{y:{grace:"40%",border:{color:"transparent"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(t){return C2.format(t),C2.format(t)},font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"},align:"start",color:"#ADADAD",count:4,offset:!0}},x:{grid:{display:!1,color:"transparent",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686",font:{family:"Rubik",size:14,weight:400,lineHeight:"21px"}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(t){return t[0].formattedValue=`${t[0].label} - ${C2.format(t[0].raw)}`,""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:12,weight:300,lineHeight:"18px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1}}},Ate=({revenues:t,aspectRatio:e=5})=>{const n=t.map(s=>s.quater),r=t.map(s=>s.amount),i={labels:n,datasets:[{type:"line",fill:!0,label:"",data:r,pointBackgroundColor:"#331C10",backgroundColor:s=>{const o=s.chart.ctx.createLinearGradient(0,0,0,200);return o.addColorStop(0,"rgba(255, 141, 78, 0.2)"),o.addColorStop(1,"rgba(35, 35, 35, 0)"),o},borderColor:"#FF8D4E",borderCapStyle:"round",borderWidth:1}]};return l.jsx("div",{className:"privateFinancialsLineGraph",children:l.jsx("div",{className:"barChart",children:l.jsx(a3,{type:"bar",id:"canvas",options:{...Ete,aspectRatio:e},data:i})})})},dw=C.createContext({value:"",onChange:()=>{},setShowMenu:()=>{}});function Mte({value:t,onChange:e,children:n,iconType:r="bell",disabled:i=!1,menuPosition:s="left",showIconRight:a=!1,showIconLeft:o=!1,iconSizeLeft:c="16",iconSizeRight:u="16",colorStyling:h="gray",maxWidth:f="200px",className:p,containerStyles:m={},renderContent:g,dataCy:v}){C.Children.forEach(n,N=>{if(C.isValidElement(N)){if(N.type===C.Fragment)C.Children.forEach(N.props.children,V=>{if(C.isValidElement(V)&&!V.type.selectItemComponent)throw new Error("Select children should be SelectItem from UILibrary")});else if(!N.type.selectItemComponent)throw new Error("Select children should be SelectItem from UILibrary")}});const x=fe({"select--Container":!0,[`select-${h}`]:!p,[`menu-${s}`]:!0,...p&&{[p]:!0}}),b=fe({"select--Button":!0,[`select--${h}`]:!0}),A=fe({"select-Menu":!0}),[M,L]=C.useState(!1),k=C.useRef(null),R=C.useRef(null);C.useEffect(()=>{function N(V){R.current&&!R.current.contains(V.target)&&k.current&&!k.current.contains(V.target)&&L(!1)}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const B=()=>{L(N=>!N)};return l.jsxs("div",{style:{...m},className:`${x}`,children:[l.jsxs("button",{type:"button",className:b,onClick:B,ref:k,disabled:i,"data-cy":v,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(ce,{iconType:r,iconSize:c})}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:f,marginRight:"24px",whiteSpace:"nowrap"},children:g?g():t}),a&&l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:M?"arrowUp":"arrowDown",iconSize:u})})]}),M&&l.jsx("div",{ref:R,className:A,children:l.jsx(dw.Provider,{value:{value:t,onChange:e,setShowMenu:L},children:l.jsx("div",{className:"select--MenuList",children:n})})})]})}function uw({itemValue:t,children:e,className:n="",dataCy:r,...i}){const{onChange:s,setShowMenu:a,value:o}=C.useContext(dw),c=t===o,u=fe({selectItemDropdown:!0,"selectItemDropdown-Active":c,"selectItemDropdown-NonActive":!c,[`${n}`]:!0}),h=()=>{c||s(t),a(!1)};return l.jsx("button",{className:u,onClick:h,"data-cy":r,...i,children:e||t})}Object.defineProperty(uw,"selectItemComponent",{value:!0,writable:!1});function kte({separatorText:t="OR"}){return l.jsxs("div",{className:"sectionSeparator--Container",children:[l.jsx("hr",{}),l.jsx("p",{children:t}),l.jsx("hr",{})]})}h2.register(kn,Sn,An,mn,Mn,tn,en,tr);const Ste=({inputLabels:t=[],inputValues:e=[],titleSet:n=[],symbol:r=""})=>{const i={elements:{point:{radius:12,hoverRadius:12,borderWidth:0,hoverBorderWidth:1}},scales:{y:{ticks:{padding:20,color:"#FAFAFA",callback:function(o,c){if(c%2!==0)return typeof o=="number"?`${r}${Fl.format(o)}`:`${r}${Fl.format(parseInt(o,10))}`},font:{size:16,weight:400,family:"Inter"}},grid:{display:!1},border:{display:!1}},x:{ticks:{padding:20,color:"#FAFAFA",font:{size:16,weight:400,family:"Inter"}},grid:{display:!1},border:{display:!1}}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{displayColors:!1,bodySpacing:10,callbacks:{title:function(o){const c=o[0].dataIndex;return n[c]},label:function(o){const c=o.dataIndex,u=e[c];return`${r}${Fl.format(u)}`}},backgroundColor:"#c1c1c1",titleColor:"#232323",bodyColor:"#232323"},title:{display:!1}},backgroundColor:"red"},a={labels:t,datasets:[{label:"",data:e,borderColor:"#FF8D4E",pointBackgroundColor:"#FFE0CF",backgroundColor:o=>{const c=o.chart.ctx,u=c.createLinearGradient(0,0,0,c.canvas.height);return u.addColorStop(0,"rgba(255, 141, 78, 0.20)"),u.addColorStop(.9904,"rgba(73, 73, 73, 0.00)"),u},pointRadius:6,pointHoverRadius:8,fill:!0,tension:.5,cubicInterpolationMode:"monotone",capBezierPoints:!0,borderJoinStyle:"miter",spanGaps:!0}]};return l.jsx(Rv,{options:i,data:a})},jte="_entityTableGeneric_13b2j_131",Fte={entityTableGeneric:jte},Lte=({children:t,className:e,...n})=>{const r=fe({[Fte.entityTableGeneric]:!0,...e&&{[e]:!0}});return l.jsx("table",{...n,className:r,children:t})},zte="_tableHeader_1qi4r_131",Rte={tableHeader:zte},Dte=({children:t,className:e,...n})=>{const r=fe({[Rte.tableHeader]:!0,...e&&{[e]:!0}});return l.jsx("thead",{...n,className:r,children:t})},Nte="_tableBody_1tw26_131",Tte={tableBody:Nte},Bte=({children:t,className:e,...n})=>{const r=fe({[Tte.tableBody]:!0,...e&&{[e]:!0}});return l.jsx("tbody",{...n,className:r,children:t})},Ite="_tableRow_7i97c_131",Pte={tableRow:Ite},Vte=({children:t,className:e,...n})=>{const r=fe({[Pte.tableRow]:!0,...e&&{[e]:!0}});return l.jsx("tr",{...n,className:r,children:t})},Hte="_tableBodyCell_1nrya_131",Ote="_tableHeaderCell_1nrya_149",fp={tableBodyCell:Hte,tableHeaderCell:Ote},Wte=({children:t,variant:e="body",className:n,align:r="left",...i})=>{const s=fe({[fp.tableBodyCell]:e==="body",[fp.tableHeaderCell]:e==="head",...n&&{[n]:!0}});return e==="body"?l.jsx("td",{...i,align:r,className:s,children:t}):l.jsx("th",{...i,align:r,className:s,children:t})},Gte=({index:t,isSelected:e,onCheckClick:n,onNameClick:r,name:i,iconPath:s,iconKey:a,altImageType:o="profile",metaContent:c,dataCy:u})=>l.jsxs("div",{className:"tableNameCell","data-cy":u,children:[l.jsx("p",{children:t}),l.jsx(nr,{sizeVariant:"xs",checked:e,onClick:n}),l.jsx(rr,{iconPath:s,iconSize:"40",borderRadius:"6",altImageType:o},a),l.jsxs("span",{className:"nameContainer",children:[l.jsx(kr,{text:i,onClick:r}),c]})]}),Ute=({id:t,text:e,onSelect:n,onExclude:r,variant:i="unselected",highlight:s=!1,onEnter:a=()=>{},onLeave:o=()=>{},isDisabled:c=!1,iconPath:u,dataCy:h,...f})=>{const p=fe({"selectablePill--Generic":!0,"selectablePill--Selected":i==="selected","selectablePill--Excluded":i==="excluded","selectablePill--Unselected":i==="unselected","selectablePill--SelectedHover":i!=="unselected"&&s,"selectablePill--UnselectedHover":i==="unselected"&&s}),m=fe({"selectablePill--Include":!0,"selectablePill--IncludeSelected":i==="selected"}),g=fe({"selectablePill--Exclude":!0,"selectablePill--ExcludeSelected":i==="excluded"});return l.jsxs("button",{id:t,disabled:c,className:p,...f,onMouseEnter:a,onMouseLeave:o,onClick:n,"data-cy":h,children:[!!u&&l.jsx("span",{className:"selectablePill--logoSVG",children:l.jsx(nn,{iconSize:"24",errorImageContainerSize:"34",iconPath:u,altImageType:"company"})}),l.jsx(s2,{maxWidth:"330px",toolTipPosition:"bottom",children:e}),l.jsxs("div",{className:"selectablePill--ActionButton",children:[l.jsx(M1,{content:"Include",children:l.jsx("button",{className:m,"data-cy":`${h}-include`,children:l.jsx(ce,{iconType:"tick",iconSize:"24"})})}),l.jsx(M1,{content:"Exclude",children:l.jsx("button",{className:g,onClick:v=>{v.stopPropagation(),r(v)},"data-cy":`${h}-exclude`,children:l.jsx(ce,{iconType:"notAllowed",iconSize:"24"})})})]})]})},Yte=({onApplyClick:t,selectedCount:e,showCancel:n,onCancelClick:r,totalCount:i,isAllSelected:s,isDisabled:a,tooltipContent:o})=>{const[c,u]=C.useState(!1),[h,f]=C.useState(e),p=C.useRef(null),m=C.useRef(null),g=()=>{a||u(k=>!k)},v=()=>{a||(s?r():g())};C.useEffect(()=>{function k(R){p.current&&m.current&&!p.current.contains(R.target)&&!m.current.contains(R.target)&&u(!1)}return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]);const x=()=>{t(i),g()},b=k=>{k>=0&&k<=i&&f(k)},A=()=>{f(0),r(),g()},M=()=>{t(h),g()},L=fe({"selectDropDown--dropdown-list-show":c,"selectDropDown--dropdown-list-hide":!c});return l.jsx(M1,{content:o,toolTipPosition:"top",isDisabled:!o,children:l.jsx("div",{className:"selectDropDown--container selectDropDown--redo-container",children:l.jsxs("span",{className:"selectDropDown--dropdown selectDropDown--redo",children:[l.jsxs("button",{onClick:g,disabled:a,className:"selectDropDown--btn--dropdown selectDropDown--redo-trigger",ref:m,children:[l.jsx(sw,{sizeVariant:"base",checked:!1,onClick:v,isAllSelected:s,isSubsetSelected:!s&&e>0,isDisabled:a}),e>0&&l.jsxs("p",{children:[e," selected"]}),l.jsx("span",{children:c?l.jsx(ce,{iconType:"arrowUp",iconSize:"16"}):l.jsx(ce,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("div",{className:"selectDropDown--redo-content",ref:p,children:l.jsxs("ul",{className:L,children:[l.jsx("li",{onClick:x,children:"Select All"}),l.jsxs("li",{children:["Select Top",l.jsx("span",{className:"space",children:c&&l.jsx(Z7,{initialNumber:String(h),handleChange:b,props:{style:{width:"70px",maxWidth:"70px"}}})})]}),l.jsx("span",{className:"apply applyRedo",children:l.jsx(Gi,{text:"Apply",colorVariant:"orange",className:"sec",onClick:M,isDisabled:h<0})}),n&&l.jsx("span",{className:"cancel cancelRedo",children:l.jsx(Gi,{colorVariant:"lightGray",text:"Clear Selection",onClick:A})})]})})]})})})},Kte="_discreteSliderGeneric_1amet_149",Zte="_dragging_1amet_176",qte="_animating_1amet_233",Jte="_discreteSliderDisabled_1amet_272",k2={discreteSliderGeneric:Kte,"range-slider-container":"_range-slider-container_1amet_167",dragging:Zte,"range-slider-track-active":"_range-slider-track-active_1amet_176","range-slider-thumb":"_range-slider-thumb_1amet_179","range-slider-track":"_range-slider-track_1amet_176","range-slider-tooltip":"_range-slider-tooltip_1amet_229",animating:qte,"range-slider-thumb--min":"_range-slider-thumb--min_1amet_243","range-slider-thumb--max":"_range-slider-thumb--max_1amet_246",discreteSliderDisabled:Jte},Xte=({minValue:t,maxValue:e,getRange:n,initialMinValue:r=0,initialMaxValue:i=10001,disabled:s=!1,displayLimit:a=1e4})=>{const o=Math.max(r,Math.min(t,i)),c=Math.max(r,Math.min(e,i)),u=o,h=Math.max(c,o+1),[f,p]=C.useState(u),[m,g]=C.useState(h),[v,x]=C.useState(null),[b,A]=C.useState(!1),[,M]=C.useState({}),L=C.useRef(null),k=C.useRef(!1),R=C.useRef(!1),B=C.useRef(null),N=C.useRef(0),V=C.useRef(null),O=C.useRef(u),X=C.useRef(h),ie=32,ge=fe({[k2.discreteSliderGeneric]:!0,[k2.discreteSliderDisabled]:s});C.useEffect(()=>{if(!k.current){const pe=Math.max(0,Math.max(r,Math.min(t,i))),Re=Math.max(0,Math.max(r,Math.min(e,i)));if(Re-pe<1){const Ue=(pe+Re)/2,Ie=Math.max(0,Math.floor(Ue-.5)),Le=Math.min(i,Math.ceil(Ue+.5));p(Ie),g(Le),O.current=Ie,X.current=Le}else p(pe),g(Re),O.current=pe,X.current=Re}},[t,e,r,i]);const $=pe=>s?"":`${pe.toLocaleString()}`,te=pe=>(pe-r)/(i-r)*100,q=pe=>Math.round(r+pe/100*(i-r)),Z=pe=>{const Re=Math.abs(pe-f),Ue=Math.abs(pe-m);return Re<=Ue?"min":"max"},Q=C.useCallback(pe=>{if(s||v||(pe.preventDefault(),pe.stopPropagation(),!L.current))return;const Re=L.current.getBoundingClientRect(),Ue=Math.max(0,Math.min(100,(pe.clientX-Re.left)/Re.width*100)),Ie=q(Ue),Le=Z(Ie);if(A(!0),V.current&&clearTimeout(V.current),Le==="min"){const tt=Math.max(0,Math.min(Ie,m-1));tt!==f&&(p(tt),O.current=tt,n({minRange:tt,maxRange:Math.min(a,Math.max(0,m))}))}else{const tt=Math.min(a,Math.max(f+1,Math.max(Ie,f)));tt!==m&&(g(tt),X.current=tt,n({minRange:Math.max(0,f),maxRange:tt}))}V.current=window.setTimeout(()=>{A(!1)},300)},[s,v,f,m,a,n]),oe=C.useCallback(pe=>Re=>{s||(Re.preventDefault(),Re.stopPropagation(),V.current&&clearTimeout(V.current),A(!1),O.current=f,X.current=m,x(pe),k.current=!0,R.current=!0)},[s,f,m]),J=C.useCallback(pe=>{if(!v||!L.current||s||!R.current)return;B.current&&cancelAnimationFrame(B.current);const Re=Date.now();if(Re-N.current<ie){B.current=requestAnimationFrame(()=>{J(pe)});return}N.current=Re,B.current=requestAnimationFrame(()=>{if(!L.current||!R.current)return;const Ie=L.current.getBoundingClientRect(),Le="touches"in pe?pe.touches[0]?.clientX:pe.clientX;if(Le===void 0)return;const tt=Math.max(0,Math.min(100,(Le-Ie.left)/Ie.width*100)),me=q(tt);if(v==="min"){const Vt=Math.max(0,Math.min(me,m-1));O.current=Math.max(0,Math.min(me,X.current-1)),M({}),Vt!==f&&(p(Vt),n({minRange:Vt,maxRange:Math.min(a,Math.max(0,m))}))}else if(v==="max"){const Vt=Math.min(a,Math.max(f+1,Math.max(me,f)));X.current=Math.min(a,Math.max(O.current+1,Math.max(me,O.current))),M({}),Vt!==m&&(g(Vt),n({minRange:Math.max(0,f),maxRange:Vt}))}})},[v,m,f,s,n,a]),ee=C.useCallback(()=>{v&&(k.current=!1),B.current&&(cancelAnimationFrame(B.current),B.current=null),x(null),R.current=!1,O.current=f,X.current=m},[v,f,m]);C.useEffect(()=>{if(v)return document.addEventListener("mousemove",J),document.addEventListener("mouseup",ee),document.addEventListener("touchmove",J,{passive:!1}),document.addEventListener("touchend",ee),()=>{document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",ee),document.removeEventListener("touchmove",J),document.removeEventListener("touchend",ee),B.current&&(cancelAnimationFrame(B.current),B.current=null)}},[v,J,ee]),C.useEffect(()=>()=>{B.current&&cancelAnimationFrame(B.current),V.current&&clearTimeout(V.current)},[]);const xe=v?O.current:f,ve=v?X.current:m,ke=te(xe),We=te(ve);return l.jsx("span",{className:ge,children:l.jsxs("div",{className:`${k2["range-slider-container"]} ${v?k2.dragging:""}`,ref:L,onClick:Q,children:[l.jsx("div",{className:k2["range-slider-track"],children:l.jsx("div",{className:k2["range-slider-track-active"],style:{left:`${ke}%`,width:`${We-ke}%`}})}),l.jsx("div",{className:`${k2["range-slider-thumb"]} ${k2["range-slider-thumb--min"]} ${v==="min"?k2.dragging:""} ${b?k2.animating:""}`,style:{left:`${ke}%`},onMouseDown:oe("min"),onTouchStart:oe("min"),children:l.jsx("div",{className:k2["range-slider-tooltip"],children:$(Math.round(xe))})}),l.jsx("div",{className:`${k2["range-slider-thumb"]} ${k2["range-slider-thumb--max"]} ${v==="max"?k2.dragging:""} ${b?k2.animating:""}`,style:{left:`${We}%`},onMouseDown:oe("max"),onTouchStart:oe("max"),children:l.jsx("div",{className:k2["range-slider-tooltip"],children:$(Math.round(ve))})})]})})},Qte="_dropdownContainer_62h7i_131",_te="_dropdownTrigger_62h7i_134",$te="_dropdownLabel_62h7i_145",e1e="_dropdownIcon_62h7i_156",t1e="_dropdownContent_62h7i_174",n1e="_dropdownItem_62h7i_183",m3={dropdownContainer:Qte,dropdownTrigger:_te,dropdownLabel:$te,dropdownIcon:e1e,dropdownContent:t1e,dropdownItem:n1e},r1e=({items:t,onSelect:e})=>{const[n,r]=C.useState(!1),[i,s]=C.useState(t[0]||""),a=C.useRef(null),o=()=>{r(h=>!h)},c=h=>{s(h),e(h),r(!1)};C.useEffect(()=>{function h(f){a.current&&!a.current.contains(f.target)&&o()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]);const u=h=>fe(m3.dropdownItem,{[m3.itemFirst]:h===0,[m3.itemLast]:h===t.length-1});return l.jsxs("div",{className:m3.dropdownContainer,children:[l.jsxs("button",{type:"button",className:m3.dropdownTrigger,onClick:o,children:[l.jsxs("span",{className:m3.dropdownLabel,children:[" ",i," "]}),l.jsx("span",{className:m3.dropdownIcon,children:l.jsx(ce,{iconType:`${n?"cheveronUp":"cheveronDown"}`,iconSize:"18"})})]}),n&&l.jsx("div",{className:m3.dropdownContent,ref:a,children:t.map((h,f)=>l.jsx("div",{className:u(f),onClick:()=>c(h),children:h},h+f))})]})},i1e="_CreditBarChart_1vr58_131",s1e={CreditBarChart:i1e};h2.register(kn,Sn,Dr,Mn,tn,en);const hw=({revenues:t})=>{const e=C.useRef(null),[n,r]=C.useState({width:0,height:0});C.useEffect(()=>{const m=()=>{if(e.current){const{offsetWidth:v,offsetHeight:x}=e.current;r({width:v,height:x})}};m();const g=new ResizeObserver(m);return e.current&&g.observe(e.current),window.addEventListener("resize",m),()=>{g.disconnect(),window.removeEventListener("resize",m)}},[]);const s=(()=>{const m=n.width,g=t.length;if(m===0)return{barThickness:31,maxRotation:0,fontSize:14};const v=m*.8,x=Math.floor(v/(g*2.5)),b=Math.max(8,Math.min(x,31));let A=0,M=14;const k=M*4*g,R=m*.9;return k>R&&(k>R*1.5?(M=10,A=45):k>R*1.2?(M=12,A=45):A=30),{barThickness:b,maxRotation:A,fontSize:M}})(),a=t.map(m=>m.quater),o=t.map(m=>m.amount),c=t.map(m=>m.phoneAmount),u=Math.max(...o),h=u+Math.max(u*.1,2),f={labels:a,datasets:[{label:"Email",data:o,borderWidth:2,backgroundColor:"#4B4B4B",barThickness:s.barThickness,maxBarThickness:s.barThickness,hoverBorderColor:"#5e5e5e",borderColor:"#5e5e5e",borderRadius:{topLeft:8,topRight:8,bottomLeft:8,bottomRight:8},borderSkipped:!1},{label:"Phone",data:c,borderWidth:2,backgroundColor:"#66381f",barThickness:s.barThickness,maxBarThickness:s.barThickness,hoverBorderColor:"#cc713e",borderColor:"#cc713e",borderRadius:{topLeft:8,topRight:8,bottomLeft:8,bottomRight:8},borderSkipped:!1}]},p={responsive:!0,maintainAspectRatio:!1,scales:{y:{min:0,max:h,border:{color:"transparent"},grid:{color:"#232323",borderColor:"grey",tickColor:"transparent"},ticks:{callback:function(m){return m>1e3?`${Math.round(m/1e3).toFixed(0)}K`:Math.round(m).toFixed(0)},stepSize:Math.ceil(h/5),count:5,font:{family:"Inter",size:s.fontSize,weight:400,lineHeight:"21px"},padding:10,align:"start",color:"#ADADAD"}},x:{grid:{display:!1,color:"transparent",borderColor:"grey",tickColor:"transparent"},ticks:{color:"#868686",font:{family:"Inter",size:s.fontSize,weight:400,lineHeight:"21px"},maxRotation:s.maxRotation,minRotation:0,autoSkip:!1,autoSkipPadding:0,labelOffset:0}}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:m=>Zw(m.raw),title:function(){return""}},bodyColor:"#FF8D4E",bodyFont:{family:"Inter",size:14,weight:500,lineHeight:"20px"},displayColors:!1,enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1}}};return l.jsx("div",{className:s1e.CreditBarChart,ref:e,children:l.jsx(Dv,{options:p,data:f})})},a1e="_creditUsageChartContainer_17paa_131",o1e="_creditUsageChartHeader_17paa_142",l1e="_options_17paa_160",c1e="_option_17paa_160",d1e="_color_17paa_175",u1e="_dropDownContainer_17paa_198",h1e="_creditUsageChart_17paa_131",f1e="_creditUsageChartError_17paa_217",p1e="_creditUsageChartDataNA_17paa_220",m1e="_creditUsageChartLoader_17paa_250",Nn={creditUsageChartContainer:a1e,creditUsageChartHeader:o1e,options:l1e,option:c1e,color:d1e,dropDownContainer:u1e,creditUsageChart:h1e,creditUsageChartError:f1e,creditUsageChartDataNA:p1e,creditUsageChartLoader:m1e};var fw=(t=>(t.Last7Days="Last7Days",t.LastMonth="LastMonth",t.Last3Months="Last3Months",t.Last6Months="Last6Months",t.LastYear="LastYear",t.Today="Today",t.Custom="Custom",t))(fw||{});const pp={Last7Days:"Last 7 Days",LastMonth:"Last Month",Last3Months:"Last 3 Months",Last6Months:"Last 6 Months",LastYear:"Last Year",Today:"Today",Custom:"Custom"},g1e=({title:t,selectedTimeFrame:e,creditUsageData:n,isLoading:r,isError:i,setSelectedTimeFrame:s})=>{const a=()=>l.jsx("div",{className:Nn.creditUsageChartLoader,children:l.jsx(Q1,{width:"24",height:"24"})}),o=()=>l.jsx("div",{className:Nn.creditUsageChartError,children:l.jsx("span",{className:Nn.creditUsageChartDataNA,children:"No data to show yet"})});return l.jsxs("div",{className:Nn.creditUsageChartContainer,children:[l.jsxs("div",{className:Nn.creditUsageChartHeader,children:[l.jsx("h3",{children:t}),l.jsxs("div",{className:Nn.options,children:[l.jsxs("div",{className:Nn.option,children:[l.jsx("div",{className:Nn.color}),l.jsx("span",{children:"Email credits"})]}),l.jsxs("div",{className:Nn.option,children:[l.jsx("div",{className:Nn.color}),l.jsx("span",{children:"Phone credits"})]}),l.jsx("div",{className:Nn.dropDownContainer,children:l.jsx(cc,{dropDownText:pp[e],children:Object.values(fw).filter(c=>!["Today","Custom"].includes(c)).map((c,u)=>l.jsx(fc,{onClick:()=>s(c),text:pp[c],active:e===c},u))})})]})]}),r?a():i?o():l.jsx("div",{className:Nn.creditUsageChart,children:l.jsx(hw,{revenues:n})})]})};function v1e({dropDownText:t,children:e,maxWidth:n="100px",width:r="100px",disabled:i=!1,dataCy:s,whiteListedRef:a,isOpen:o=!1,handleOpen:c,customRootElem:u}){const[h,f]=C.useState(o),p=C.useRef(null),m=C.useRef(null),[g,v]=C.useState({top:0,left:0,width:0,isVisible:!1}),x=Z0({"dropDownButton--KebabContainer":!0}),b=Z0({"dropDownButton--Generic":!0}),A=()=>{if(!p.current)return;const R=p.current.getBoundingClientRect(),B=m.current?.getBoundingClientRect(),N=10,V=window.innerHeight,O=B?.height||0,ie={top:R.top+R.height+O+N>V?R.top-O-N:R.top+R.height+N,left:R.left,width:R.width};v({...ie,isVisible:O>0})},M=()=>{f(R=>!R),A(),c?.(!h)};function L(R){!m?.current?.contains(R.target)&&!Array.from(a?.current?.querySelectorAll("*")||[]).some(B=>B.contains(R.target))&&!p?.current?.contains(R.target)&&f(!1)}function k(){c?.(!1),f(!1)}return C.useEffect(()=>(document?.addEventListener("mousedown",L),document?.addEventListener("wheel",k),()=>{document?.removeEventListener("mousedown",L),document?.removeEventListener("wheel",k)}),[]),C.useEffect(()=>{o!==void 0&&o!==h&&f(o)},[o]),C.useEffect(()=>{const B=m.current?.getBoundingClientRect()?.height||0;!g.isVisible&&B&&A()},[g]),l.jsxs("div",{className:x,"data-cy":s,children:[l.jsxs("button",{type:"button",className:b,onClick:M,ref:p,disabled:i,style:{width:r,maxWidth:n},children:[l.jsxs("div",{className:"calendar-icon",children:[l.jsx(ce,{iconType:"calendar",iconSize:"16"}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:n},children:t})]}),l.jsx("div",{className:"rightIcon",children:l.jsx(ce,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),Ki.createPortal(l.jsx("div",{className:`dropDownButton-DropDown ${h?"dropDownButton-DropDown-show":""}`,ref:m,style:{top:g.top,left:g.left,width:g.width,visibility:g.isVisible?"unset":"hidden",maxWidth:n},children:e}),u||document.body)]})}const x1e=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1,children:c})=>{const u=fe({"dropdownItem-Gray":r==="gray","dropdownItem-Red":r==="red","dropdownItem-Active":o,"dropdownItem--Generic":!0});return l.jsx(l.Fragment,{children:l.jsxs("button",{className:u,onClick:()=>t(e),type:"button",disabled:i,children:[s&&l.jsx(ce,{iconType:a,iconSize:"16"}),e,c,n&&l.jsx("p",{children:n})]})})},y1e=t=>{const e=t.eventsData?.find(i=>{const s=new Date(i.date);return s.getDate()===t.date.getDate()&&s.getMonth()===t.date.getMonth()&&s.getFullYear()===t.date.getFullYear()}),n=t.date.getTime()>new Date().getTime(),r=fe({"daypicker-day-cell-content":!0,disabled:n});return l.jsx(M1,{content:e?.name||"",toolTipPosition:"top",isDisabled:!e,children:l.jsxs("span",{className:r,children:[t.date.getDate(),!!e&&l.jsx("span",{className:"event-dot"})]})})};function w1e({onDateSelected:t,initialValue:e,eventsData:n,timezone:r,customRootElem:i,isOpen:s}){const[a,o]=C.useState(!!s),[c,u]=C.useState(new Date),[h,f]=C.useState(e||new Date),p=h&&h.getMonth()+1||1,m=new Date;m.setDate(m.getDate()-1);const g=l.jsxs("div",{className:"footerContainer",children:[!!r&&l.jsx("div",{className:"timezone",children:r}),l.jsxs("div",{className:"button-container",children:[l.jsx("button",{type:"button",className:"okButton",onClick:()=>o(!1),children:"OK"}),l.jsx("button",{type:"button",className:"cancelButton",onClick:()=>o(!1),children:"Cancel"})]})]}),v=O=>{O.stopPropagation();const X=new Date(c);X.setMonth(c.getMonth()-1),u(X)},x=O=>{O.stopPropagation();const X=new Date(c);X.setMonth(c.getMonth()+1),u(X)},b=O=>{const X=O.toLocaleString("en-US",{month:"long"});return l.jsxs("div",{className:"datePicker-customCaption",children:[l.jsx("span",{className:"datePicker-prevMonthArrow",onClick:v,children:l.jsx(ce,{iconType:"arrowLeft",iconSize:"32"})}),X," ",O.getFullYear(),l.jsx("span",{className:"datePicker-nextMonthArrow",onClick:x,children:l.jsx(ce,{iconType:"arrowRight",iconSize:"32"})})]})},A=O=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][O.getDay()],[M,L]=C.useState({x:0,y:0,direction:"top"}),k=C.useRef(null),R=C.useRef(null),B=()=>{if(R.current){const O=R.current.getBoundingClientRect();let X=O.y+O.height+8,ie="top";const ge=O.x-O.width-90;450>window.innerHeight-O.y&&(ie="bottom",X=window.innerHeight-O.y+8),L({y:X,x:ge,direction:ie})}},N=O=>{O&&h&&u(h),B(),o(O)},V=O=>{const X=O.target;k.current&&R.current&&X!==k.current&&!k.current.contains(X)&&!R.current.contains(X)&&N(!1)};return C.useEffect(()=>(window.addEventListener("click",V),window.addEventListener("wheel",B),()=>{window.removeEventListener("click",V),window.removeEventListener("wheel",B)}),[]),C.useEffect(()=>{e&&f(e)},[e]),C.useEffect(()=>{a&&!s&&o(!1)},[s]),l.jsxs("div",{className:"datePickerDropdown--Active",ref:R,children:[l.jsxs("button",{className:"datePickerDropdown-Button",onClick:()=>{N(!0)},children:[l.jsx("p",{children:h?`${p<10?`0${p}`:p}/${h.getDate()<10?`0${h.getDate()}`:h.getDate()}/${h.getFullYear()}`:"Date"}),l.jsx(ce,{iconType:"calendar",iconSize:"16"})]}),a&&Ki.createPortal(l.jsx("div",{className:`${a?"":"datePickerCalender--hidden"} datePickerCalender-Container`,ref:k,style:{[M.direction]:M?.y,left:M?.x},children:l.jsx(ux,{disableNavigation:!0,mode:"single",month:c,modifiersClassNames:{selected:"datePicker-mySelected",today:"datePicker-myToday"},selected:h,onSelect:(...O)=>{O?.[0]&&O[0].getTime()<=new Date().getTime()&&(f(O[0]),t(O[0]))},footer:g,formatters:{formatCaption:b,formatWeekdayName:A},showOutsideDays:!0,components:{DayContent:O=>l.jsx(y1e,{date:O.date,displayMonth:O.displayMonth,eventsData:n})},classNames:{day:"datepicker-day-cell"}})}),i||document.body)]})}const C1e="_parentInputfield_rtdb0_131",b1e="_inputFieldGeneric_rtdb0_151",E1e="_errorInputField_rtdb0_198",A1e="_passwordToggle_rtdb0_218",Xa={parentInputfield:C1e,inputFieldGeneric:b1e,errorInputField:E1e,passwordToggle:A1e},M1e=({id:t,value:e,type:n="text",placeholder:r="",style:i={},disabled:s=!1,errorState:a=!1,props:o={},onChangeHandler:c,errorMessage:u="Something went wrong!",name:h,autoComplete:f="on",dataCyInput:p,dataCyToggle:m,inputFieldClassname:g})=>{const[v,x]=C.useState(!1),b=()=>{x(M=>!M)},A=Z0({[Xa.inputFieldGeneric]:!0,[Xa.errorInputField]:a});return l.jsxs("div",{className:Xa.parentInputfield,children:[l.jsxs("div",{className:A,children:[l.jsx("input",{id:t,type:v?"text":n,disabled:s,style:i,placeholder:r,value:e,onChange:c,name:h,...o,autoComplete:f,"data-cy":p,className:g}),n==="password"&&l.jsx("span",{className:Xa.passwordToggle,onClick:b,"data-cy":m,children:v?l.jsx(ce,{iconType:"eye",iconSize:"16"}):l.jsx(ce,{iconType:"eyeOff",iconSize:"16"})})]}),a&&l.jsx("span",{children:u})]})},k1e=({type:t="success",label:e,heading:n="Wow so easy!",subText:r="",boldText:i="",showToast:s=!1,showButtons:a=!1,icon:o,btnText:c="Apply",onBtnClick:u=()=>{},onClose:h=()=>{},delay:f,hideProgressBar:p=!0})=>{const m=x=>{switch(x){case"success":return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"};case"warning":return{icon:"exclamationCircleFilled",label:"Warning",className:"headingWarning"};case"messageSuccess":return{icon:"smileyFace",label:"Message Sent",className:"headingMessageSuccess"};case"messageFailure":return{icon:"exclamationCircleFilled",label:"Message Failed",className:"headingMessageFailure"};default:return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"}}},g=()=>{const x=m(t),b=e||x.label;Jt(({closeToast:A})=>l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"headingRow",children:[l.jsxs("span",{className:x.className,children:[l.jsx(ce,{iconType:o||x.icon,iconSize:"18"}),b]}),l.jsx("button",{className:"customCloseButton",onClick:A,children:l.jsx(ce,{iconType:"cross",iconSize:"20"})})]}),l.jsx("span",{children:n}),i&&l.jsx("span",{className:"boldText",children:i}),r&&l.jsx("span",{className:"subtext",children:r})]}),a&&l.jsx("div",{className:"genericToast--footer",children:l.jsx(R1,{onClick:u,showIcon:!1,sizeVariant:"sm",text:c,colorVariant:"orange"})})]}),{position:"top-right",hideProgressBar:!0,closeOnClick:!1,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",closeButton:!1,onClose:()=>{h()},autoClose:f!==void 0?f:!1})};C.useEffect(()=>{s&&g()},[]);const v=Z0({"toast-container--hide-progress":p});return l.jsx("div",{children:l.jsx(hc,{limit:1,closeButton:!0,className:v})})},S1e=({labelText:t,helperText:e,onChange:n,accept:r,width:i="m"})=>l.jsxs("div",{className:"fileUpload",children:[l.jsx("p",{children:t}),l.jsx("input",{type:"file",accept:r,onChange:n,className:i}),l.jsx("p",{children:e})]}),j1e=({isSelected:t=!1,isDisabled:e=!1,text:n="NB Button",navbarIcon:r="home",props:i={},onClick:s=()=>{}})=>{const a=fe({"navbarButton--Generic":!0,"navbarButton--Selected":t,"navbarButton--Unselected":!t});return l.jsxs("button",{disabled:e,className:a,onClick:s,...i,children:[l.jsx(ce,{iconType:r,iconSize:"18"}),n]})},F1e=({props:t={},navbarTabs:e=[],dropdownItemList:n,onLabelClick:r,isCompleted:i=!1,isTimerShown:s=!1,onViewClick:a,name:o="John Doe"})=>{const c=fe({topNavbarGeneric:!0});return l.jsxs("div",{className:"topNavbar",children:[l.jsxs("div",{className:c,...t,children:[l.jsx(ce,{iconType:"qluLogo",iconSize:"32"}),l.jsx("span",{className:"topNavbarGenericButtonsContainer",children:e.map((u,h)=>l.jsx(j1e,{text:u.tabName,isSelected:u.isActive,isDisabled:!1,navbarIcon:u.navbarIcon,onClick:u.onClick},h))})]}),l.jsxs("div",{children:[s?l.jsxs("div",{className:"timerAndView",children:[i?l.jsx(l.Fragment,{}):l.jsx(ce,{iconSize:"16",iconType:"clock"}),i?l.jsx("span",{children:"Internet Search Completed"}):l.jsx("span",{children:"Searching Internet : "}),i?l.jsx("button",{className:"searchView",onClick:a,children:"View"}):l.jsx(lc,{className:"rssTimer"})]}):l.jsx(l.Fragment,{}),l.jsx(cw,{onLabelClick:r,dropdownItemList:n,name:o})]})]})},pw=({count:t=1,onClick:e,dataCy:n,isDisabled:r})=>{const i=fe({"countCancelButton--Generic":!0});return l.jsxs("button",{className:i,onClick:e,"data-cy":n,disabled:r,children:[t,l.jsx(ce,{iconType:"cross",iconSize:"14"})]})},L1e=({filterText:t="Name",filterCount:e=0,filterIcon:n="industry",isFilterLoading:r=!1,onClick:i,onCancelClick:s,dataCy:a,dataCyCancel:o,showAiIcon:c,isFilterHighlighted:u,isDisabled:h})=>{const f=fe({"searchFilterButton--Generic":!0,"searchFilterButton--Selected":e!==0}),p=fe({"searchFilterButton-FitlerDetails":!0,filterHighlighted:u});return l.jsxs("button",{className:f,onClick:i,"data-cy":a,children:[l.jsxs("span",{className:p,children:[l.jsx(ce,{iconType:n,iconSize:"18"}),t]}),e!==0&&l.jsxs("div",{className:"searchFilterButton-RigthIcon",children:[c&&r&&l.jsx("span",{className:"searchFilterButton-FitlerDetails-SpinningPlus",children:l.jsx(ce,{iconType:"boldPlus",iconSize:"18"})}),l.jsx(pw,{count:e,onClick:s,dataCy:o,isDisabled:h})]})]})},z1e=({images:t=[],initials:e=[],iconSize:n="24",counter:r=0})=>l.jsxs("div",{className:"avatarGroup",children:[t.map(i=>l.jsx(nn,{className:`w-${n}`,iconPath:i.iconUrl,iconSize:n,altImageType:"profile"})),e.map(i=>l.jsx("div",{className:`w-${n}`,style:{background:i.color,color:i.initialColor,borderColor:"#FF8D4E"},children:i.initial})),r?e.length>0?l.jsxs("div",{className:`w-${n}`,style:{borderColor:"#FF8D4E"},children:["+",r]}):l.jsxs("div",{className:`w-${n}`,children:["+",r]}):l.jsx(l.Fragment,{})]}),R1e=({children:t="Placeholder",hasBorder:e=!1,sizeVariant:n="sm",width:r="fit-content",isSelected:i=!1})=>l.jsx("span",{className:`ellipsisPillNotClickableGeneric ${e&&"ellipsisPillNotClickableBorder"} ${n}Size ${i?"ellipsisPillNotClickableSelected":""}`,style:{width:r},children:t}),D1e=({isDisabled:t=!1,sizeVariant:e="xs",variant:n="primary",color:r="orange",iconType:i="searchArrow",iconSize:s="24",onClick:a})=>{const o=fe({[`${e}Size--SearchSvgButton`]:!0,[`${n}-${r}--SearchSvgButton`]:!0});return l.jsx("button",{disabled:t,onClick:a,className:o,children:l.jsx(ce,{iconType:i,iconSize:s})})},pc=({text:t="Placeholder",hasBorder:e=!1,sizeVariant:n="sm",width:r="fit-content",truncateLength:i=20,isSelected:s=!1})=>l.jsx("p",{className:`textPillNotClickableGeneric ${e&&"textPillNotClickableBorder"} ${n}Size ${s?"textPillNotClickableSelected":""}`,style:{width:r},children:l.jsx(Hy,{text:t,length:i})});h2.register(CW,An,mn,tr,tn,en);const F6=({inputData:t=[]})=>{const e={responsive:!0,aspectRatio:3,maintainAspectRatio:!0,beginAtZero:0,scales:{r:{pointLabels:{color:"rgba(193, 193, 193, 1)",font:{size:14,weight:400,family:"Inter"},padding:20},ticks:{display:!1,count:4,max:3,padding:5},angleLines:{display:!0,color:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(124, 124, 124, 0.7)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o}},grid:{display:!0,color:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(124, 124, 124, 0.5)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o},circular:!0,borderDash:[5,1],borderDashOffset:.5,lineWidth:1}}},plugins:{legend:{display:!1},tooltip:{enabled:!0,backgroundColor:"transparent",titleColor:"white",position:"nearest",xAlign:"center",yAlign:"bottom"},title:{display:!1},filler:{propagate:!0}}},n=t.map(s=>s.key),r=t.map(s=>s.value),i={labels:n,datasets:[{label:"",data:r,fill:!0,backgroundColor:s=>{const o=s.chart.ctx.createLinearGradient(400,0,500,800);return o.addColorStop(0,"rgba(255, 141, 78, 0.2)"),o.addColorStop(1,"rgba(73, 73, 73, 0)"),o},borderColor:"rgba(255, 141, 78, 1)",borderWidth:1,radius:0,pointHoverRadius:3}]};return l.jsx(jW,{data:i,options:e})},N1e=({active:t="Personal Information",onInfoClick:e=()=>!1,onPasswordClick:n=()=>!1,onPrivacyClick:r=()=>!1,onQMailClick:i=()=>!1})=>{const s=[{name:"Personal Information",iconType:"user",onClick:e},{name:"Password",iconType:"password",onClick:n},{name:"Privacy",iconType:"employees",onClick:r},{name:"Qmail",iconType:"paperPlaneUpRight",onClick:i}];return l.jsxs("div",{className:"settingsNavbar",children:[l.jsx("div",{children:"Settings"}),l.jsx("div",{children:s.map((a,o)=>l.jsxs("div",{className:a.name==t?"active":"",onClick:a.onClick,children:[l.jsx(ce,{iconType:a.iconType,iconSize:"18"}),a.name]},o))})]})};exports.AIAnalysisCard=hte;exports.AIAssistant=di;exports.AIAssistantDetails=ate;exports.AIDetailsCard=di;exports.AdvanceFilterJobTItleV2=rb;exports.AdvanceFilterTitleWindow=nb;exports.AreaChart=PW;exports.AssignmentBreadCrumb=Fw;exports.AssignmentCreation=qL;exports.AssignmentIdealProfileCard=oz;exports.AssignmentInfoSubHeader=JL;exports.AssignmentShimmer=fte;exports.AuthNavBar=jk;exports.AuthNavbarLogoSvg=Hp;exports.AuthPhoneNumberInput=Up;exports.AvatarGroup=z1e;exports.BadgeNonClickable=Kp;exports.BadgeWithCount=X5;exports.BarLineChart=zW;exports.BusinessUnitViewTabsComponent=mG;exports.CampaignMessage=zI;exports.CampaignSubject=VW;exports.CampaignTableShimmer=Yee;exports.CardsRow=cte;exports.ChatClickableCard=HW;exports.ChatDropDown=Nv;exports.ChatLoadingWidget=Cte;exports.ChatPeopleCard=OW;exports.ChatPopup=WW;exports.CheckboxComponent=nr;exports.ChevronDropDown=cw;exports.CircularIcon=nn;exports.CircularSvgAndEmoji=UW;exports.ClickableCard=lw;exports.ClickableFilterBadge=YW;exports.ClickableText=R1;exports.ColoredButton=KW;exports.CompanyBarChartFinancialTab=k6;exports.CompanyCombinedChartFinancialTab=Oy;exports.CompanyDetailsCard=JW;exports.CompanyLikePillSelectable=XW;exports.CompanyLineChartFinancialTab=_y;exports.CompanyLogoPillSelectable=QW;exports.CompanyPeopleTab=I_;exports.CompanyPill=d_;exports.CompanyProductsTab=T_;exports.CompanyReportsTab=B_;exports.CompanyTableShimmer=Uee;exports.CompanyViewBody=Pv;exports.CompanyViewBussinessUnitTabs=Mee;exports.CompanyViewFinancial=Iv;exports.CompanyViewFinancialBody=gee;exports.CompanyViewFinancialGenericTable=bee;exports.CompanyViewFinancialIncomeStatement=Cee;exports.CompanyViewFinancialPrivateTabs=xee;exports.CompanyViewFinancialSummary=ew;exports.CompanyViewHeader=Vv;exports.CompanyViewLayout=dG;exports.CompanyViewPeople=Bv;exports.CompanyViewSummary=Tv;exports.CompanyViewSummaryNewsCompoment=Aee;exports.CompanyViewSummaryNewsTabs=Eee;exports.CompanyViewTabsComponent=Hv;exports.CompetitorsCompanyTab=N_;exports.ConnectDropdown=a_;exports.ContentLocked=nJ;exports.ContinuousRangeComponent=Xte;exports.CountCancelButton=pw;exports.CreditBarChart=hw;exports.CreditManagementDatePicker=w1e;exports.CreditManagementDropdownButton=v1e;exports.CreditManagementDropdownItem=x1e;exports.CreditUsageChart=g1e;exports.DatePicker=xZ;exports.DateTimePicker=hee;exports.DoughnutChart=IW;exports.DropDown=aw;exports.DropDownButton=cc;exports.DropDownForm=r1e;exports.DropDownGeneric=fee;exports.DropdownChildButton=fc;exports.DropdownComponent=hx;exports.DropdownWithSvg=ite;exports.EllipsisPillNotClickable=R1e;exports.EllipsisText=s2;exports.EnrichmentPersonTable=vte;exports.EntityTable=Lte;exports.FeedbackButton=yZ;exports.FileUpload=S1e;exports.FilterAddRemoveBadge=wZ;exports.FilterAndSortDropdown=bZ;exports.GetSvgIcon=ce;exports.IconButton=B2;exports.InputField=EZ;exports.InputFieldForm=M1e;exports.InputFieldWithSvg=fx;exports.LineChart=vee;exports.Loader=Q1;exports.LogoButton=Wq;exports.LookAlikeProfiles=D_;exports.Modal=Gq;exports.MultiChart=$y;exports.NoteEditor=R_;exports.NumberInputField=Z7;exports.NumberInputFieldWithLimit=Uq;exports.NumberStringInput=rte;exports.OTPComponent=Yq;exports.PayChart=Ste;exports.PeerSalaryChart=kee;exports.PeopleCard=c_;exports.PersonCompanyNameClickable=kr;exports.PersonStatisticsChart=H_;exports.PersonStatsView=O_;exports.PersonViewBody=Jq;exports.PersonViewExperienceCard=Ox;exports.PersonViewExperienceDetails=Hx;exports.PersonViewGrowthChart=See;exports.PersonViewHeader=rJ;exports.PersonViewHeaderSummary=yte;exports.PersonViewInfo=Xq;exports.PersonViewSummary=Wx;exports.PersonViewTabsComponent=iJ;exports.PhoneNumberInputField=Up;exports.Pill=wte;exports.PrimaryButton=Un;exports.PrimaryRadioButton=bte;exports.PrivateFinancialsLineGraph=Ate;exports.ProductDetailsViewTabsComponent=wG;exports.ProfileListShimmer=pte;exports.ProfileTableShimmer=Gee;exports.ProgressBar=Gx;exports.PromptField=GW;exports.QChatShimmer=xte;exports.RadarChart=F6;exports.RadioButton=ow;exports.RangeComponent=q7;exports.RectangularIcon=rr;exports.RectangularSvgButton=sJ;exports.RoundDetailsShimmer=Kee;exports.RoundSettingModal=ste;exports.SavedSearches=s_;exports.SearchArrowButton=D1e;exports.SearchCompanyTable=Yx;exports.SearchCompanyTableContainer=gJ;exports.SearchFilterButton=L1e;exports.SearchLocationDropdown=aJ;exports.SearchPersonTable=Ux;exports.SearchPersonTableContainer=pJ;exports.SearchTabsBar=vJ;exports.SearchTimer=lc;exports.SecondaryButton=Gi;exports.SectionSeparator=kte;exports.Select=Mte;exports.SelectDropDown=Hee;exports.SelectItem=uw;exports.SelectablePill=Ute;exports.SelectionDropDown=Yte;exports.SettingsNavbar=N1e;exports.Shimmer=Oee;exports.Sidebar=xJ;exports.SkillIndustryBadge=Xr;exports.StatsChart=yee;exports.StickyNavigationFooter=Wee;exports.StyleableTextAreaContainer=n_;exports.SwitchLarge=r_;exports.TabelHeader=Dte;exports.Table=i_;exports.TableBody=Bte;exports.TableCell=Wte;exports.TableNameCell=Gte;exports.TablePagination=J7;exports.TableRow=Vte;exports.TableShimmer=ete;exports.Tabs=By;exports.TagButtonComponent=Iy;exports.TemplateCard=ote;exports.TemplateDetailCard=dte;exports.TemplateTableShimmer=Zee;exports.TertiaryButton=Ls;exports.TextArea=nte;exports.TextAreaWithTooltip=tte;exports.TextBoxWithSuggestions=Jee;exports.TextButton=Gp;exports.TextDropdown=Qee;exports.TextPillNotClickable=pc;exports.TextWithSvgButton=Py;exports.TimePicker=_ee;exports.ToastWithButton=mte;exports.ToastWithButtonV2=k1e;exports.ToggleComponent=Vy;exports.Tooltip=M1;exports.TopNavbar=F1e;exports.TruncateText=Hy;exports.VariantsList=$ee;exports.WelecomeToastComponent=Vee;
|