qlu-20-ui-library 1.8.8 → 1.8.9

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.
@@ -1057,4 +1057,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1057
1057
  https://github.com/Hacker0x01/react-datepicker
1058
1058
  Released under the MIT License.
1059
1059
  */var N6=function(e,n){return N6=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])},N6(e,n)};function gn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N6(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var qt=function(){return qt=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},qt.apply(this,arguments)};function Cr(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 w_=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 b.createElement("div",{className:s,role:"dialog","aria-label":o,"aria-modal":"true"},a)},b_=function(t,e){var n=b.useRef(null),r=b.useRef(t);r.current=t;var i=b.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 b.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},cl=function(t){var e=t.children,n=t.onClickOutside,r=t.className,i=t.containerRef,s=t.style,a=t.ignoreClass,o=b_(n,a);return b.createElement("div",{className:r,style:s,ref:function(c){o.current=c,i&&(i.current=c)}},e)},Ue;(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"})(Ue||(Ue={}));function Ky(){var t=typeof window<"u"?window:globalThis;return t}var V8=12,C_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function l1(t){if(t==null)return new Date;var e=typeof t=="string"?GU(t):qe(t);return Ur(e)?e:new Date}function $4(t,e,n,r,i){var s,a=null,o=Ri(n)||Ri(q0()),c=!0;if(Array.isArray(e))return e.forEach(function(h){var f=F4(t,h,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(c=Ur(f,i)&&t===C1(f,h,n)),Ur(f,i)&&c&&(a=f)}),a;if(a=F4(t,e,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)c=Ur(a)&&t===C1(a,e,n);else if(!Ur(a)){var u=((s=e.match(C_))!==null&&s!==void 0?s:[]).map(function(h){var f=h[0];if(f==="p"||f==="P"){var p=a5[f];return o?p(h,o.formatLong):f}return h}).join("");t.length>0&&(a=F4(t,u.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Ur(a)||(a=new Date(t))}return Ur(a)&&c?a:null}function Ur(t,e){return r5(t)&&!i3(t,e??new Date("1/1/1800"))}function C1(t,e,n){if(n==="en")return r3(t,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Ri(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&q0()&&Ri(q0())&&(r=Ri(q0())),r3(t,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function I2(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 E_(t,e,n){if(!t)return"";var r=I2(t,n),i=e?I2(e,n):"";return"".concat(r," - ").concat(i)}function A_(t,e){if(!(t!=null&&t.length))return"";var n=t[0]?I2(t[0],e):"";if(t.length===1)return n;if(t.length===2&&t[1]){var r=I2(t[1],e);return"".concat(n,", ").concat(r)}var i=t.length-1;return"".concat(n," (+").concat(i,")")}function e9(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 fo(po(mo(t,o),s),r)}function M_(t){return q5(t)}function k_(t,e){return C1(t,"ddd",e)}function Mo(t){return t3(t)}function I3(t,e,n){var r=Ri(e||q0());return y2(t,{locale:r,weekStartsOn:n})}function $r(t){return Pn(t)}function D0(t){return D8(t)}function Xf(t){return e6(t)}function Qf(){return t3(l1())}function _f(t){return Yv(t)}function S_(t){return Z5(t)}function F_(t){return R8(t)}function mr(t,e){return t&&e?tx(t,e):!t&&!e}function Xn(t,e){return t&&e?J5(t,e):!t&&!e}function v5(t,e){return t&&e?WU(t,e):!t&&!e}function Ut(t,e){return t&&e?$n(t,e):!t&&!e}function yi(t,e){return t&&e?ZG(t,e):!t&&!e}function N0(t,e,n){var r,i=t3(e),s=Yv(n);try{r=m8(t,{start:i,end:s})}catch{r=!1}return r}function q0(){var t=Ky();return t.__localeId__}function Ri(t){if(typeof t=="string"){var e=Ky();return e.__localeData__?e.__localeData__[t]:void 0}else return t}function j_(t,e,n){return e(C1(t,"EEEE",n))}function z_(t,e){return C1(t,"EEEEEE",e)}function L_(t,e){return C1(t,"EEE",e)}function yc(t,e){return C1(Dn(l1(),t),"LLLL",e)}function Zy(t,e){return C1(Dn(l1(),t),"LLL",e)}function R_(t,e){return C1(us(l1(),t),"QQQ",e)}function O2(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 O8(t,{minDate:r,maxDate:i})||s&&s.some(function(h){return h instanceof Date?Ut(t,h):Ut(t,h.date)})||a&&a.some(function(h){var f=h.start,p=h.end;return m8(t,{start:f,end:p})})||o&&!o.some(function(h){return Ut(t,h)})||c&&!c.some(function(h){var f=h.start,p=h.end;return m8(t,{start:f,end:p})})||u&&!u(l1(t))||!1}function wc(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 m8(t,{start:a,end:o})}):r&&r.some(function(s){var a;return s instanceof Date?Ut(t,s):Ut(t,(a=s.date)!==null&&a!==void 0?a:new Date)})||!1}function qy(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates,o=n.filterDate;return O8(t,{minDate:r?Pn(r):void 0,maxDate:i?R8(i):void 0})||(s==null?void 0:s.some(function(c){return Xn(t,c instanceof Date?c:c.date)}))||a&&!a.some(function(c){return Xn(t,c)})||o&&!o(l1(t))||!1}function Ya(t,e,n,r){var i=Pt(t),s=e2(t),a=Pt(e),o=e2(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 D_(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates;return O8(t,{minDate:r,maxDate:i})||s&&s.some(function(o){return Xn(o instanceof Date?o:o.date,t)})||a&&!a.some(function(o){return Xn(o,t)})||!1}function Ka(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.maxDate,s=n.excludeDates,a=n.includeDates,o=n.filterDate;return O8(t,{minDate:r,maxDate:i})||(s==null?void 0:s.some(function(c){return v5(t,c instanceof Date?c:c.date)}))||a&&!a.some(function(c){return v5(t,c)})||o&&!o(l1(t))||!1}function Za(t,e,n){if(!e||!n||!r5(e)||!r5(n))return!1;var r=Pt(e),i=Pt(n);return r<=t&&i>=t}function ko(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 O8(c,{minDate:r?D8(r):void 0,maxDate:i?Kv(i):void 0})||(s==null?void 0:s.some(function(u){return mr(c,u instanceof Date?u:u.date)}))||a&&!a.some(function(u){return mr(c,u)})||o&&!o(l1(c))||!1}function qa(t,e,n,r){var i=Pt(t),s=Fi(t),a=Pt(e),o=Fi(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 O8(t,e){var n,r=e===void 0?{}:e,i=r.minDate,s=r.maxDate;return(n=i&&_n(t,i)<0||s&&_n(t,s)>0)!==null&&n!==void 0?n:!1}function $f(t,e){return e.some(function(n){return kr(n)===kr(t)&&Sr(n)===Sr(t)&&Qr(n)===Qr(t)})}function ep(t,e){var n=e===void 0?{}:e,r=n.excludeTimes,i=n.includeTimes,s=n.filterTime;return r&&$f(t,r)||i&&!$f(t,i)||s&&!s(t)||!1}function tp(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=l1();i=fo(i,kr(t)),i=po(i,Sr(t)),i=mo(i,Qr(t));var s=l1();s=fo(s,kr(n)),s=po(s,Sr(n)),s=mo(s,Qr(n));var a=l1();a=fo(a,kr(r)),a=po(a,Sr(r)),a=mo(a,Qr(r));var o;try{o=!m8(i,{start:s,end:a})}catch{o=!1}return o}function np(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=ji(t,1);return r&&n3(r,s)>0||i&&i.every(function(a){return n3(a,s)>0})||!1}function rp(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=V1(t,1);return r&&n3(s,r)>0||i&&i.every(function(a){return n3(s,a)>0})||!1}function N_(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=D8(t),a=rx(s);return r&&i5(r,a)>0||i&&i.every(function(o){return i5(o,a)>0})||!1}function T_(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=Kv(t),a=I7(s,1);return r&&i5(a,r)>0||i&&i.every(function(o){return i5(a,o)>0})||!1}function ip(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.includeDates,s=Ts(t,1);return r&&s5(r,s)>0||i&&i.every(function(a){return s5(a,s)>0})||!1}function B_(t,e){var n=e===void 0?{}:e,r=n.minDate,i=n.yearItemNumber,s=i===void 0?V8:i,a=D0(Ts(t,s)),o=z3(a,s).endPeriod,c=r&&Pt(r);return c&&c>o||!1}function sp(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.includeDates,s=Mr(t,1);return r&&s5(s,r)>0||i&&i.every(function(a){return s5(s,a)>0})||!1}function I_(t,e){var n=e===void 0?{}:e,r=n.maxDate,i=n.yearItemNumber,s=i===void 0?V8:i,a=Mr(t,s),o=z3(a,s).startPeriod,c=r&&Pt(r);return c&&c<o||!1}function Jy(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return _n(i,e)>=0});return $9(r)}else return n?$9(n):e}function Xy(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return _n(i,e)<=0});return _9(r)}else return n?_9(n):e}function ap(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(Q2(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 P_(t,e){return t.length!==e.length?!1:t.every(function(n,r){return n===e[r]})}function V_(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(Q2(i)){var a=C1(i,"MM.dd.yyyy"),o=n.get(a)||{className:"",holidayNames:[]};if(!("className"in o&&o.className===e&&P_(o.holidayNames,[s]))){o.className=e;var c=o.holidayNames;o.holidayNames=c?Cr(Cr([],c,!0),[s],!1):[s],n.set(a,o)}}}),n}function O_(t,e,n,r,i){for(var s=i.length,a=[],o=0;o<s;o++){var c=t,u=i[o];u&&(c=GW(c,kr(u)),c=Q9(c,Sr(u)),c=KW(c,Qr(u)));var h=Q9(t,(n+1)*r);tr(c,e)&&i3(c,h)&&u!=null&&a.push(u)}return a}function op(t){return t<10?"0".concat(t):"".concat(t)}function z3(t,e){e===void 0&&(e=V8);var n=Math.ceil(Pt(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function H_(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 lp(t){var e=t.getSeconds(),n=t.getMilliseconds();return qe(t.getTime()-e*1e3-n)}function W_(t,e){return lp(t).getTime()===lp(e).getTime()}function cp(t){if(!Q2(t))throw new Error("Invalid date");var e=new Date(t);return e.setHours(0,0,0,0),e}function dp(t,e){if(!Q2(t)||!Q2(e))throw new Error("Invalid date received");var n=cp(t),r=cp(e);return i3(n,r)}function Qy(t){return t.key===Ue.Space}var G_=function(t){gn(e,t);function e(n){var r=t.call(this,n)||this;return r.inputRef=b.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!=null&&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?b.cloneElement(c,{date:a,value:i,onChange:r.onTimeChange}):b.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 b.createElement("div",{className:"react-datepicker__input-time-container"},b.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),b.createElement("div",{className:"react-datepicker-time__input-container"},b.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e}(b.Component),U_=function(t){gn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.dayEl=b.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===Ue.Space&&(r.preventDefault(),r.key=Ue.Enter),(s=(i=n.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},n.isSameDay=function(r){return Ut(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),O2(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 wc(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return Ut(n.props.day,I3(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&Ut(r,I3(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:N0(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&&(i3(p,f)||yi(p,f))?N0(s,p,f):o&&h&&(tr(p,h)||yi(p,h))||c&&h&&!f&&(tr(p,h)||yi(p,h))?N0(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?Ut(s,c):Ut(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?Ut(s,u):Ut(s,a)},n.isRangeStart=function(){var r=n.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Ut(s,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Ut(a,i)},n.isWeekend=function(){var r=OG(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===e2(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(e2(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(l1())},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 ge("react-datepicker__day",i,"react-datepicker__day--"+k_(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==null?void 0:o.filter(function(h){return h instanceof Date?Ut(h,i):Ut(h==null?void 0:h.date,i)}).map(function(h){if(!(h instanceof Date))return h==null?void 0: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)&&Ut(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(Bh(n.props.day),n.props.day):Bh(n.props.day)},n.render=function(){return b.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()!==""&&b.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}(b.Component),Y_=function(t){gn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.weekNumberEl=b.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,s,a=r.key;a===Ue.Space&&(r.preventDefault(),r.key=Ue.Enter),(s=(i=n.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Ut(n.props.date,n.props.selected)&&Ut(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||Ut(n.props.date,n.props.selected)&&Ut(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&Ut(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&&Ut(this.props.date,this.props.selected)};return b.createElement("div",{ref:this.weekNumberEl,className:ge(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},e}(b.Component),K_=function(t){gn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.isDisabled=function(r){return O2(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):M_(r)},n.isWeekDisabled=function(){for(var r=n.startOfWeek(),i=A1(r,6),s=new Date(r);s<=i;){if(!n.isDisabled(s))return!1;s=A1(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(b.createElement(Y_,qt({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=A1(r,o);return b.createElement(U_,qt({},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 I3(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Ut(n.startOfWeek(),n.props.selected)&&Ut(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":Ut(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return b.createElement("div",{className:ge(n)},this.renderDays())},e}(b.Component),y0,Z_=6,bs={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},t9=(y0={},y0[bs.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},y0[bs.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},y0[bs.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},y0),Ja=1;function up(t,e){return t?bs.FOUR_COLUMNS:e?bs.TWO_COLUMNS:bs.THREE_COLUMNS}var q_=function(t){gn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.MONTH_REFS=Cr([],Array(12),!0).map(function(){return b.createRef()}),n.QUARTER_REFS=Cr([],Array(4),!0).map(function(){return b.createRef()}),n.isDisabled=function(r){return O2(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 wc(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:Xn(Dn(s,r),a)},n.isRangeStartQuarter=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:v5(us(s,r),a)},n.isRangeEndMonth=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:Xn(Dn(s,r),o)},n.isRangeEndQuarter=function(r){var i=n.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:v5(us(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?Ya(p,f,r,a):c&&h||u&&h&&!f?Ya(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=Dn(a,r),h=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c?Xn(u,h):Xn(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=Dn(a,r),f=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return c||u?Xn(h,f):Xn(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?qa(p,f,r,a):c&&h||u&&h&&!f?qa(h,p,r,a):!1},n.isWeekInMonth=function(r){var i=n.props.day,s=A1(r,6);return Xn(r,i)||Xn(s,i)},n.isCurrentMonth=function(r,i){return Pt(r)===Pt(l1())&&i===e2(l1())},n.isCurrentQuarter=function(r,i){return Pt(r)===Pt(l1())&&i===Fi(l1())},n.isSelectedMonth=function(r,i,s){return e2(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 Fi(r)===i&&Pt(r)===Pt(s)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,s=0,a=!1,o=I3($r(n.props.day),n.props.locale,n.props.calendarStartDay),c=function(g){return n.props.showWeekPicker?I3(g,n.props.locale,n.props.calendarStartDay):n.props.preSelection},u=function(g){return n.props.showWeekPicker?I3(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(b.createElement(K_,qt({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:s,day:o,month:e2(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:h,preSelection:f,showWeekNumber:n.props.showWeekNumbers}))),!a;){s++,o=Wi(o,1);var p=i&&s>=Z_,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($r(o),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),s=i.isDisabled,a=i.labelDate;s||n.handleDayMouseEnter($r(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=up(m,g),x=n.getVerticalOffset(v),C=(a=t9[v])===null||a===void 0?void 0:a.grid,M=function(D,N,I){var H,J,re=N,fe=I;switch(D){case Ue.ArrowRight:re=V1(N,Ja),fe=I===11?0:I+Ja;break;case Ue.ArrowLeft:re=ji(N,Ja),fe=I===0?11:I-Ja;break;case Ue.ArrowUp:re=ji(N,x),fe=!((H=C==null?void 0:C[0])===null||H===void 0)&&H.includes(I)?I+12-x:I-x;break;case Ue.ArrowDown:re=V1(N,x),fe=!((J=C==null?void 0:C[C.length-1])===null||J===void 0)&&J.includes(I)?I-12+x:I+x;break}return{newCalculatedDate:re,newCalculatedMonth:fe}},E=function(D,N,I){for(var H=40,J=D,re=!1,fe=0,$=M(J,N,I),te=$.newCalculatedDate,q=$.newCalculatedMonth;!re;){if(fe>=H){te=N,q=I;break}if(f&&te<f){J=Ue.ArrowRight;var Z=M(J,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}if(p&&te>p){J=Ue.ArrowLeft;var Z=M(J,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}if(D_(te,n.props)){var Z=M(J,te,q);te=Z.newCalculatedDate,q=Z.newCalculatedMonth}else re=!0;fe++}return{newCalculatedDate:te,newCalculatedMonth:q}};if(i===Ue.Enter){n.isMonthDisabled(s)||(n.onMonthClick(r,s),h==null||h(c));return}var z=E(i,u,s),k=z.newCalculatedDate,L=z.newCalculatedMonth;switch(i){case Ue.ArrowRight:case Ue.ArrowLeft:case Ue.ArrowUp:case Ue.ArrowDown:n.handleMonthNavigation(L,k);break}}},n.getVerticalOffset=function(r){var i,s;return(s=(i=t9[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!==Ue.Tab&&r.preventDefault(),a||n.handleKeyboardNavigation(r,c,i),o&&o(r)},n.onQuarterClick=function(r,i){var s=us(n.props.day,i);Ka(s,n.props)||n.handleDayClick(Xf(s),r)},n.onQuarterMouseEnter=function(r){var i=us(n.props.day,r);Ka(i,n.props)||n.handleDayMouseEnter(Xf(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 Ue.Enter:n.onQuarterClick(r,i),(a=(s=n.props).setPreSelection)===null||a===void 0||a.call(s,n.props.selected);break;case Ue.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,I7(n.props.preSelection,1));break;case Ue.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,rx(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=Dn(a,r);return{isDisabled:(i=(o||c||u||h)&&qy(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(Dn(s,r)):void 0,f=n.getSelection();return ge("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?Ya(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=e2(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=Fi(n.props.preSelection),s=Ka(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=Dn(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)&&Ka(us(s,r),n.props);return ge("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?qa(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=Zy(r,o),h=yc(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=R_(r,o);return(i=a==null?void 0: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=t9[up(a,s)])===null||r===void 0?void 0:r.grid;return u==null?void 0:u.map(function(h,f){return b.createElement("div",{className:"react-datepicker__month-wrapper",key:f},h.map(function(p,m){return b.createElement("div",{ref:n.MONTH_REFS[p],key:m,onClick:function(g){n.onMonthClick(g,p)},onKeyDown:function(g){Qy(g)&&(g.preventDefault(),g.key=Ue.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 b.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(o,c){return b.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 ge("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 b.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}(b.Component),J_=function(t){gn(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 b.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)?b.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 b.createElement(cl,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e}(b.Component),X_=function(t){gn(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 b.createElement("option",{key:i,value:s},i)})},n.renderSelectMode=function(r){return b.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 b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},b.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return b.createElement(J_,qt({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 Zy(s,n.props.locale)}:function(s){return yc(s,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return b.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(b.Component);function Q_(t,e){for(var n=[],r=$r(t),i=$r(e);!tr(r,i);)n.push(l1(r)),r=V1(r,1);return n}var __=function(t){gn(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=n6(i),a=mr(r.props.date,i)&&Xn(r.props.date,i);return b.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?b.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:Q_(r.props.minDate,r.props.maxDate)},r}return e.prototype.render=function(){var n=ge({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return b.createElement(cl,{className:n,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(b.Component),$_=function(t){gn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=$r(n.props.minDate),i=$r(n.props.maxDate),s=[];!tr(r,i);){var a=n6(r);s.push(b.createElement("option",{key:a,value:a},C1(r,n.props.dateFormat,n.props.locale))),r=V1(r,1)}return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return b.createElement("select",{value:n6($r(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 b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},b.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return b.createElement(__,qt({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=l1(r);mr(n.props.date,i)&&Xn(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 b.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(b.Component),e$=function(t){gn(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)&&tp(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&ep(r,n.props)||(s=(i=n.props).onChange)===null||s===void 0||s.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&W_(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&tp(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&ep(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&&(kr(r)*3600+Sr(r)*60+Qr(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===Ue.Space&&(r.preventDefault(),r.key=Ue.Enter),(r.key===Ue.ArrowUp||r.key===Ue.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===Ue.ArrowDown||r.key===Ue.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===Ue.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||l1(),c=Mo(o),u=n.props.injectTimes&&n.props.injectTimes.sort(function(x,C){return x.getTime()-C.getTime()}),h=60*H_(o),f=h/a,p=0;p<f;p++){var m=Q9(c,p*a);if(i.push(m),u){var g=O_(c,m,p,a,u);i=i.concat(g)}}var v=i.reduce(function(x,C){return C.getTime()<=o.getTime()?C:x},i[0]);return i.map(function(x){return b.createElement("li",{key:x.valueOf(),onClick:n.handleClick.bind(n,x),className:n.liClasses(x),ref:function(C){x===v&&(n.centerLi=C)},onKeyDown:function(C){n.handleOnKeyDown(C,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?b.createElement(b.Fragment,null):b.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}},b.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 b.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(),b.createElement("div",{className:"react-datepicker__time"},b.createElement("div",{className:"react-datepicker__time-box"},b.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}(b.Component),hp=3,t$=function(t){gn(e,t);function e(n){var r=t.call(this,n)||this;return r.YEAR_REFS=Cr([],Array(r.props.yearItemNumber),!0).map(function(){return b.createRef()}),r.isDisabled=function(i){return O2(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 wc(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=z3(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 Ut(i,s)},r.isCurrentYear=function(i){return i===Pt(l1())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&mr(V2(l1(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&mr(V2(l1(),i),r.props.endDate)},r.isInRange=function(i){return Za(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?Za(i,r.selectingDate(),h):o&&u||c&&u&&!h?Za(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=V2(l1(),i);return c?mr(u,(s=r.selectingDate())!==null&&s!==void 0?s:null):mr(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=V2(l1(),i);return c||u?mr(h,(s=r.selectingDate())!==null&&s!==void 0?s:null):mr(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=D0(V2(r.props.date,i)),p=(a||o||c||u||h)&&ko(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!Ut(f,D0(r.props.selected))&&Ut(f,D0(r.props.preSelection))&&!p}},r.onYearClick=function(i,s){var a=r.props.date;a!==void 0&&r.handleYearClick(D0(V2(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!==Ue.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(c){case Ue.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 Ue.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(s+1,Mr(r.props.preSelection,1));break;case Ue.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(s-1,Ts(r.props.preSelection,1));break;case Ue.ArrowUp:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var m=z3(h,f).startPeriod,g=hp,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,Ts(r.props.preSelection,g));break}case Ue.ArrowDown:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var C=z3(h,f).endPeriod,g=hp,v=s+g;if(v>C){var x=f%g;s<=C&&s>C-x?g=x:g+=x,v=s+g}r.handleYearNavigation(v,Mr(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 ge("react-datepicker__year-text","react-datepicker__year-".concat(i),a?m==null?void 0:m(V2(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)&&ko(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=ko(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=z3(s,a),h=u.startPeriod,f=u.endPeriod,p=function(v){r.push(b.createElement("div",{ref:m.YEAR_REFS[v-h],onClick:function(x){n.onYearClick(x,v)},onKeyDown:function(x){Qy(x)&&(x.preventDefault(),x.key=Ue.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 b.createElement("div",{className:"react-datepicker__year"},b.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}(b.Component);function n$(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 r$=function(t){gn(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 b.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?b.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(b.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},b.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(b.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},b.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:n$(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=b.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=ge({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return b.createElement(cl,{className:n,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(b.Component),i$=function(t){gn(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(b.createElement("option",{key:a,value:a},a));return s},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return b.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},b.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return b.createElement(r$,qt({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 b.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},e}(b.Component),s$=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],a$=function(t){var e=(t.className||"").split(/\s+/);return s$.some(function(n){return e.indexOf(n)>=0})},o$=function(t){gn(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;a$(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=Jy(r.props),u=Xy(r.props),h=l1(),f=o||a||s;return f||(c&&i3(h,c)?c:u&&tr(h,u)?u:h)},r.increaseMonth=function(){r.setState(function(i){var s=i.date;return{date:V1(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var s=i.date;return{date:ji(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:V2(l1(),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(!O2(i,r.props))return i;for(var s=$r(i),a=F_(i),o=qW(a,s),c=null,u=0;u<=o;u++){var h=A1(s,u);if(!O2(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:V2(a,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(s){var a=s.date;return{date:Dn(a,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(s){var a=s.date;return{date:V2(Dn(a,e2(i)),Pt(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var s=I3(i,r.props.locale,r.props.calendarStartDay),a=[];return r.props.showWeekNumbers&&a.push(b.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=A1(s,o),u=r.formatWeekday(c,r.props.locale),h=r.props.weekDayClassName?r.props.weekDayClassName(c):void 0;return b.createElement("div",{key:o,"aria-label":C1(c,"EEEE",r.props.locale),className:ge("react-datepicker__day-name",h)},u)}))},r.formatWeekday=function(i,s){return r.props.formatWeekDay?j_(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?L_(i,s):z_(i,s)},r.decreaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:Ts(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=ji(r.state.date,u),f;switch(!0){case r.props.showMonthYearPicker:f=ip(r.state.date,r.props);break;case r.props.showYearPicker:f=B_(r.state.date,r.props);break;case r.props.showQuarterYearPicker:f=N_(r.state.date,r.props);break;default:f=np(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,C=x.previousMonthButtonLabel,M=C===void 0?e.defaultProps.previousMonthButtonLabel:C,E=x.previousYearButtonLabel,z=E===void 0?e.defaultProps.previousYearButtonLabel:E,k=r.props,L=k.previousMonthAriaLabel,D=L===void 0?typeof M=="string"?M:"Previous Month":L,N=k.previousYearAriaLabel,I=N===void 0?typeof z=="string"?z:"Previous Year":N;return b.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:r.props.handleOnKeyDown,"aria-label":v?I:D},b.createElement("span",{className:p.join(" ")},v?z:M))}}},r.increaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:Mr(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=sp(r.state.date,r.props);break;case r.props.showYearPicker:s=I_(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=T_(r.state.date,r.props);break;default:s=rp(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,C=x===void 0?typeof p=="string"?p:"Next Month":x,M=v.nextYearAriaLabel,E=M===void 0?typeof g=="string"?g:"Next Year":M;return b.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":u?E:C},b.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"),b.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 b.createElement(i$,qt({},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 b.createElement(X_,qt({},e.defaultProps,r.props,{month:e2(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return b.createElement($_,qt({},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 b.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 b.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(s),b.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)),b.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=np(r.state.date,r.props),h=rp(r.state.date,r.props),f=ip(r.state.date,r.props),p=sp(r.state.date,r.props),m=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return b.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,qt(qt({},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&&b.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=z3(s,u),f=h.startPeriod,p=h.endPeriod;return b.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?Mr(r.state.date,c):ji(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?Mr(u,p):V1(u,p),g="month-".concat(f),v=f<o-1,x=f>0;a.push(b.createElement("div",{key:g,ref:function(C){r.monthContainer=C??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:m,i:f}),b.createElement(q_,qt({},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 b.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),b.createElement(t$,qt({},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 b.createElement(e$,qt({},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&&Ur(i)&&!!r.props.selected,a=s?"".concat(op(i.getHours()),":").concat(op(i.getMinutes())):"";if(r.props.showTimeInput)return b.createElement(G_,qt({},e.defaultProps,r.props,{date:i,timeString:a,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,s=z3(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(yc(e2(r.state.date),r.props.locale)," ").concat(Pt(r.state.date)),b.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&c)},r.renderChildren=function(){if(r.props.children)return b.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=b.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:V8}},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&&(!Ut(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!Xn(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!Ut(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var n=this.props.container||w_;return b.createElement(cl,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},b.createElement(n,{className:ge("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}(b.Component),l$=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"?b.createElement("i",{className:"".concat(s," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i}):b.isValidElement(e)?b.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)}}):b.createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},b.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"}))},_y=function(t){gn(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 qi.createPortal(this.props.children,this.el)},e}(b.Component),c$="[tabindex], a, button, input, select, textarea",d$=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},$y=function(t){gn(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(c$),1,-1).filter(d$)},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=b.createRef(),r}return e.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:e.defaultProps.enableTabLoop)?b.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},b.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,b.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(b.Component);function u$(t){var e=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,s=b.useRef(null),a=y_(qt({open:!i,whileElementsMounted:Vp,placement:n.popperPlacement,middleware:Cr([i_({padding:15}),r_(10),s_({element:s})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),o=qt(qt({},n),{hidePopper:i,popperProps:qt(qt({},a),{arrowRef:s})});return b.createElement(t,qt({},o))};return e}var h$=function(t){gn(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=ge("react-datepicker-popper",r);v=b.createElement($y,{enableTabLoop:u},b.createElement("div",{ref:m.refs.setFloating,style:m.floatingStyles,className:x,"data-placement":m.placement,onKeyDown:h},o,g&&b.createElement(h_,{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=b.createElement(this.props.popperContainer,{},v)),f&&!a&&(v=b.createElement(_y,{portalId:f,portalHost:p},v));var C=ge("react-datepicker-wrapper",i);return b.createElement(b.Fragment,null,b.createElement("div",{ref:m.refs.setReference,className:C},c),v)},e}(b.Component),f$=u$(h$),fp="react-datepicker-ignore-onclickoutside";function p$(t,e){return t&&e?e2(t)!==e2(e)||Pt(t)!==Pt(e):t!==e}var n9="Date input not valid.",m$=function(t){gn(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:l1()},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 Ur(o)?Cr(Cr([],s,!0),[qt(qt({},a),{date:o})],!1):s},[])},r.calcInitialState=function(){var i,s=r.getPreSelection(),a=Jy(r.props),o=Xy(r.props),c=a&&i3(s,Mo(a))?a:o&&tr(s,_f(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:ap(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(qt(qt({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(qt(qt({},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:r9},function(){i||r.setState(function(a){return{focused:s?a.focused:!1}},function(){!s&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Q2(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==null?void 0:c.target)instanceof HTMLInputElement?c.target.value:null,lastPreSelectChange:g$});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,C=(c==null?void 0:c.target)instanceof HTMLInputElement?c.target.value:"";if(g){var M=C.split("-",2).map(function(H){return H.trim()}),E=M[0],z=M[1],k=$4(E??"",f,r.props.locale,m),L=$4(z??"",f,r.props.locale,m),D=(v==null?void 0:v.getTime())!==(k==null?void 0:k.getTime()),N=(x==null?void 0:x.getTime())!==(L==null?void 0:L.getTime());if(!D&&!N||k&&O2(k,r.props)||L&&O2(L,r.props))return;(s=(i=r.props).onChange)===null||s===void 0||s.call(i,[k,L],c)}else{var I=$4(C,f,r.props.locale,m,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&I&&!Ut(I,r.props.selected)&&(I=sY(r.props.selected,{hours:kr(I),minutes:Sr(I),seconds:Qr(I)})),(I||!C)&&r.setSelected(I,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||!dp(i,c))&&r.setOpen(!1)}},r.setSelected=function(i,s,a,o){var c,u,h=i;if(r.props.showYearPicker){if(h!==null&&ko(Pt(h),r.props))return}else if(r.props.showMonthYearPicker){if(h!==null&&qy(h,r.props))return}else if(h!==null&&O2(h,r.props))return;var f=r.props,p=f.onChange,m=f.selectsRange,g=f.startDate,v=f.endDate,x=f.selectsMultiple,C=f.selectedDates,M=f.minTime,E=f.swapRange;if(!yi(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=e9(h,{hour:kr(r.props.selected),minute:Sr(r.props.selected),second:Qr(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&M&&(h=e9(h,{hour:M.getHours(),minute:M.getMinutes(),second:M.getSeconds()})),r.props.inline||r.setState({preSelection:h}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),m){var z=!g&&!v,k=g&&!v,L=g&&v;z?p==null||p([h,null],s):k&&(h===null?p==null||p([null,null],s):dp(h,g)?E?p==null||p([h,g],s):p==null||p([h,null],s):p==null||p([g,h],s)),L&&(p==null||p([h,null],s))}else if(x){if(h!==null)if(!(C!=null&&C.length))p==null||p([h],s);else{var D=C.some(function(I){return Ut(I,h)});if(D){var N=C.filter(function(I){return!Ut(I,h)});p==null||p(N,s)}else p==null||p(Cr(Cr([],C,!0),[h],!1),s)}}else p==null||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=Q2(r.props.minDate),a=Q2(r.props.maxDate),o=!0;if(i){var c=Mo(i);if(s&&a)o=N0(i,r.props.minDate,r.props.maxDate);else if(s){var u=Mo(r.props.minDate);o=tr(i,u)||yi(c,u)}else if(a){var h=_f(r.props.maxDate);o=i3(i,h)||yi(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:e9(o,{hour:kr(i),minute:Sr(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===Ue.ArrowDown||f===Ue.ArrowUp||f===Ue.Enter)&&((o=r.onInputClick)===null||o===void 0||o.call(r));return}if(r.state.open){if(f===Ue.ArrowDown||f===Ue.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=l1(r.state.preSelection);f===Ue.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===r9?(r.handleSelect(g,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(g)):r.setOpen(!1)):f===Ue.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):f===Ue.Tab&&r.setOpen(!1),r.inputOk()||(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:n9})}},r.onPortalKeyDown=function(i){var s=i.key;s===Ue.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,C=f.locale,M=f.calendarStartDay,E=f.adjustDateOnChange,z=f.inline;if((a=(s=r.props).onKeyDown)===null||a===void 0||a.call(s,i),!g){var k=i.key,L=i.shiftKey,D=l1(r.state.preSelection),N=function(te,q){var Z=q;switch(te){case Ue.ArrowRight:Z=v?Wi(q,1):A1(q,1);break;case Ue.ArrowLeft:Z=v?Ih(q):ho(q,1);break;case Ue.ArrowUp:Z=Ih(q);break;case Ue.ArrowDown:Z=Wi(q,1);break;case Ue.PageUp:Z=L?Ts(q,1):ji(q,1);break;case Ue.PageDown:Z=L?Mr(q,1):V1(q,1);break;case Ue.Home:Z=I3(q,C,M);break;case Ue.End:Z=S_(q);break}return Z},I=function(te,q){for(var Z=40,Q=te,oe=!1,X=0,ee=N(te,q);!oe;){if(X>=Z){ee=q;break}p&&ee<p&&(Q=Ue.ArrowRight,ee=O2(p,r.props)?N(Q,ee):p),m&&ee>m&&(Q=Ue.ArrowLeft,ee=O2(m,r.props)?N(Q,ee):m),O2(ee,r.props)?((Q===Ue.PageUp||Q===Ue.Home)&&(Q=Ue.ArrowRight),(Q===Ue.PageDown||Q===Ue.End)&&(Q=Ue.ArrowLeft),ee=N(Q,ee)):oe=!0,X++}return ee};if(k===Ue.Enter){i.preventDefault(),r.handleSelect(D,i),!x&&r.setPreSelection(D);return}else if(k===Ue.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(c=(o=r.props).onInputError)===null||c===void 0||c.call(o,{code:1,msg:n9});return}var H=null;switch(k){case Ue.ArrowLeft:case Ue.ArrowRight:case Ue.ArrowUp:case Ue.ArrowDown:case Ue.PageUp:case Ue.PageDown:case Ue.Home:case Ue.End:H=I(k,D);break}if(!H){(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:n9});return}if(i.preventDefault(),r.setState({lastPreSelectChange:r9}),E&&r.setSelected(H),r.setPreSelection(H),z){var J=e2(D),re=e2(H),fe=Pt(D),$=Pt(H);J!==re||fe!==$?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var s=i.key;s===Ue.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;a?o==null||o([null,null],i):o==null||o(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:b.createElement(o$,qt({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:V_(r.modifyHolidays()),outsideClickIgnoreClass:fp,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(I2(r.props.startDate,{dateFormat:u,locale:o}),". ").concat(r.props.endDate?"End date: "+I2(r.props.endDate,{dateFormat:u,locale:o}):""):r.props.showTimeSelectOnly?h="Selected time: ".concat(I2(r.props.selected,{dateFormat:a,locale:o})):r.props.showYearPicker?h="Selected year: ".concat(I2(r.props.selected,{dateFormat:"yyyy",locale:o})):r.props.showMonthYearPicker?h="Selected month: ".concat(I2(r.props.selected,{dateFormat:"MMMM yyyy",locale:o})):r.props.showQuarterYearPicker?h="Selected quarter: ".concat(I2(r.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):h="Selected date: ".concat(I2(r.props.selected,{dateFormat:u,locale:o})),b.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},h)},r.renderDateInput=function(){var i,s,a,o=ge(r.props.className,(i={},i[fp]=r.state.open,i)),c=r.props.customInput||b.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?E_(r.props.startDate,r.props.endDate,{dateFormat:p,locale:m}):r.props.selectsMultiple?A_((a=r.props.selectedDates)!==null&&a!==void 0?a:[],{dateFormat:p,locale:m}):I2(r.props.selected,{dateFormat:p,locale:m});return b.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=ge(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!=null&&v.length)?b.createElement("button",{type:"button",className:ge("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:V8,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&&p$(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:ap(this.props.highlightDates)}),!r.focused&&!yi(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."),b.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&b.createElement(l$,qt({icon:i,className:ge(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?b.createElement($y,{enableTabLoop:this.props.enableTabLoop},b.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=b.createElement(_y,qt({portalId:this.props.portalId},this.props),r)),b.createElement("div",null,this.renderInputContainer(),r)}return b.createElement(f$,qt({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e}(b.Component),g$="input",r9="navigate";const v$=({pickDate:t,pickTime:e})=>{const[n,r]=b.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(m$,{selected:n,onChange:a=>i(a),showTimeSelect:!0,dateFormat:"Pp",showPopperArrow:!1,timeIntervals:15,customInput:l.jsx("input",{className:"ii"})})})},x$=({items:t,widthPx:e,value:n})=>{const[r,i]=b.useState(!1),[s,a]=b.useState(t[0]||""),o=b.useRef(null),c=()=>{i(h=>!h)},u=h=>{a(h),i(!1)};return b.useEffect(()=>{n(s)},[s]),b.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(de,{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))})]})};mn.register(i2,s2,In,S2,j2,o2,a2);const y$={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 An.format(t),An.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=An.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}}},T6=({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(Bv,{options:{...y$,aspectRatio:n},data:s})]})};mn.register(i2,rr,s2,S2,In,on,j2,o2,a2);const w$={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 An.format(t),An.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=An.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}}},ew=({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(l3,{type:"bar",id:"canvas",options:{...w$,aspectRatio:o},data:h})]})},tw=({selected:t,chartDetails:e,aspectRatio:n})=>{const r=()=>l.jsx("div",{className:"companyViewFinancialSummary-Loader",children:l.jsx($1,{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(ew,{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(T6,{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(T6,{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(Gy,{aspectRatio:n,revenues:e.Revenue.revenues,QoQlatest:o,QoQ12Month:e.Revenue.QoQ12Month||"--",earnings:e.earning.revenues})})}},nw=({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(xc,{dropDownText:o,maxWidth:"fit-content",children:u.map((h,f)=>l.jsx(Cc,{onClick:()=>{c(h)},text:h},f))})})]}),l.jsx("div",{className:"companyViewFinancialSummary-Charts",children:tw({selected:o,chartDetails:{stockPerformance:t,Revenue:e,earning:n,revenueAndEarningError:r,stockPerformanceError:i,stockPerformanceLoading:s,revenueAndEarningLoading:a}})})]})},b$=({companyViewActiveTab:t="Summary",financialsPayload:e})=>{b.useState("Summary");const[n,r]=b.useState("Revenue");switch(t){case"Summary":return l.jsx(nw,{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,{})}};mn.register(i2,rr,s2,S2,In,on,j2,o2,a2);const C$=({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(l3,{type:"bar",id:"canvas",options:f,data:p})})})},E$=({onCompanyViewFinancialTabClick:t=()=>{},activeTab:e="Summary"})=>{const n=["Summary","Funding Rounds","Investors"],r=(i,s)=>ge({"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))})})};mn.register(i2,rr,s2,S2,In,on,j2,o2,a2);function A$({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,C=(t[p].y-g)/(v-m);h=g+C*(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(XH,{options:u,data:f})})})}const M$=({revenueHeader:t,revenueData:e})=>{const n=e,r=t,i=b.useMemo(()=>[{Header:"Revenue",accessor:"revenue"},...r],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=z2.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),b.createElement("tr",{...h.getRowProps(),key:`${h.original.publicIdentifier}${h.original.isSelected}`},h.cells.map(f=>l.jsx("td",{...f.getCellProps(),children:f.render("Cell")})))))})]})})},k$=({expensesHeaders:t,revenueHeaders:e,revenueData:n,expensesData:r,isError:i=!1,isLoading:s=!1})=>{const a=r,o=b.useMemo(()=>[{Header:"Expenses",accessor:"expense"},...t],[]),{getTableProps:c,getTableBodyProps:u,headerGroups:h,rows:f,prepareRow:p}=z2.useTable({columns:o,data:a}),m=ge({"":i,"companyViewFinancial--IncomeStatementWrapper":!i||s});return l.jsx("div",{className:m,children:s?l.jsx("div",{className:"companyViewFinancial--IncomeStatementLoading",children:l.jsx($1,{height:"32",width:"32",type:"tailSpin"})}):i?l.jsx("div",{className:"companyViewFinancial--IncomeStatementError",children:"NOT AVAILABLE"}):l.jsxs(l.Fragment,{children:[l.jsx(M$,{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),b.createElement("tr",{...g.getRowProps(),key:`${g.original.publicIdentifier}${g.original.isSelected}`},g.cells.map(v=>l.jsx("td",{...v.getCellProps(),children:v.render("Cell")})))))})]})]})})},S$=({data:t,headers:e,isError:n=!1,isLoading:r=!1})=>{const i=b.useMemo(()=>[...e],[]),{getTableProps:s,getTableBodyProps:a,headerGroups:o,rows:c,prepareRow:u}=z2.useTable({columns:i,data:t}),h=ge({"":n,CompanyViewFinancialGenericTableWrapper:!n||r});return l.jsx("div",{className:h,children:r?l.jsx("div",{className:"GenericTableLoading",children:l.jsx($1,{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),b.createElement("tr",{...f.getRowProps(),key:`${f.original.publicIdentifier}${f.original.isSelected}`},f.cells.map(p=>l.jsx("td",{...p.getCellProps(),children:p.render("Cell")})))))})]})})})},F$=({onCompanyViewSummaryNewsTabClick:t=()=>{},activeCompanyViewSummaryNewsTabs:e="News"})=>{const n=["News","Twitter","Linkedin"],r=(i,s)=>ge({"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))})})},j$=({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(sr,{iconSize:"64",altImageType:"news",iconPath:e==null?void 0: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==null?void 0:e.newsTitle)||"News"})})}),l.jsxs("span",{className:"companyViewSummaryNewsComponent-NewsSource",children:["Source : ",e.sourceName]})]})]}))}),z$=({onCompanyViewBussinessUnitTabsClick:t=()=>{},activeCompanyViewBussinessUnitTabs:e="Food And Meals"})=>{const n=["Food And Meals","Ipo","Logistics"],r=(i,s)=>ge({"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))})})};mn.register(i2,rr,s2,S2,In,on,j2,o2,a2);const L$=({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 An.format(h),An.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(l3,{type:"bar",id:"canvas",options:c,data:u})};mn.register(i2,s2,In,on,j2,o2,a2,rr);const R$=({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(Tv,{options:r,data:s})},y8=t=>typeof t=="number"&&!isNaN(t),Di=t=>typeof t=="string",A2=t=>typeof t=="function",So=t=>Di(t)||A2(t)?t:null,B6=t=>b.isValidElement(t)||Di(t)||A2(t)||y8(t);function D$(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 dl(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=b.useRef(0);return b.useLayoutEffect(()=>{const C=f.current,M=g.split(" "),E=z=>{z.target===f.current&&(m(),C.removeEventListener("animationend",E),C.removeEventListener("animationcancel",E),x.current===0&&z.type!=="animationcancel"&&C.classList.remove(...M))};C.classList.add(...M),C.addEventListener("animationend",E),C.addEventListener("animationcancel",E)},[]),b.useEffect(()=>{const C=f.current,M=()=>{C.removeEventListener("animationend",M),i?D$(C,h,s):h()};p||(u?M():(x.current=1,C.className+=` ${v}`,C.addEventListener("animationend",M)))},[p]),b.createElement(b.Fragment,null,o)}}function pp(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 Qn=new Map;let w8=[];const I6=new Set,N$=t=>I6.forEach(e=>e(t)),rw=()=>Qn.size>0;function iw(t,e){var n;if(e)return!((n=Qn.get(e))==null||!n.isToastActive(t));let r=!1;return Qn.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function sw(t,e){B6(t)&&(rw()||w8.push({content:t,options:e}),Qn.forEach(n=>{n.buildToast(t,e)}))}function mp(t,e){Qn.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function T$(t){const{subscribe:e,getSnapshot:n,setProps:r}=b.useRef(function(s){const a=s.containerId||1;return{subscribe(o){const c=function(h,f,p){let m=1,g=0,v=[],x=[],C=[],M=f;const E=new Map,z=new Set,k=()=>{C=Array.from(E.values()),z.forEach(N=>N())},L=N=>{x=N==null?[]:x.filter(I=>I!==N),k()},D=N=>{const{toastId:I,onOpen:H,updateId:J,children:re}=N.props,fe=J==null;N.staleId&&E.delete(N.staleId),E.set(I,N),x=[...x,N.props.toastId].filter($=>$!==N.staleId),k(),p(pp(N,fe?"added":"updated")),fe&&A2(H)&&H(b.isValidElement(re)&&re.props)};return{id:h,props:M,observe:N=>(z.add(N),()=>z.delete(N)),toggle:(N,I)=>{E.forEach(H=>{I!=null&&I!==H.props.toastId||A2(H.toggle)&&H.toggle(N)})},removeToast:L,toasts:E,clearQueue:()=>{g-=v.length,v=[]},buildToast:(N,I)=>{if((ye=>{let{containerId:xe,toastId:Se,updateId:We}=ye;const ve=xe?xe!==h:h!==1,Re=E.has(Se)&&We==null;return ve||Re})(I))return;const{toastId:H,updateId:J,data:re,staleId:fe,delay:$}=I,te=()=>{L(H)},q=J==null;q&&g++;const Z={...M,style:M.toastStyle,key:m++,...Object.fromEntries(Object.entries(I).filter(ye=>{let[xe,Se]=ye;return Se!=null})),toastId:H,updateId:J,data:re,closeToast:te,isIn:!1,className:So(I.className||M.toastClassName),bodyClassName:So(I.bodyClassName||M.bodyClassName),progressClassName:So(I.progressClassName||M.progressClassName),autoClose:!I.isLoading&&(Q=I.autoClose,oe=M.autoClose,Q===!1||y8(Q)&&Q>0?Q:oe),deleteToast(){const ye=E.get(H),{onClose:xe,children:Se}=ye.props;A2(xe)&&xe(b.isValidElement(Se)&&Se.props),p(pp(ye,"removed")),E.delete(H),g--,g<0&&(g=0),v.length>0?D(v.shift()):k()}};var Q,oe;Z.closeButton=M.closeButton,I.closeButton===!1||B6(I.closeButton)?Z.closeButton=I.closeButton:I.closeButton===!0&&(Z.closeButton=!B6(M.closeButton)||M.closeButton);let X=N;b.isValidElement(N)&&!Di(N.type)?X=b.cloneElement(N,{closeToast:te,toastProps:Z,data:re}):A2(N)&&(X=N({closeToast:te,toastProps:Z,data:re}));const ee={content:X,props:Z,staleId:fe};M.limit&&M.limit>0&&g>M.limit&&q?v.push(ee):y8($)?setTimeout(()=>{D(ee)},$):D(ee)},setProps(N){M=N},setToggle:(N,I)=>{E.get(N).toggle=I},isToastActive:N=>x.some(I=>I===N),getSnapshot:()=>C}}(a,s,N$);Qn.set(a,c);const u=c.observe(o);return w8.forEach(h=>sw(h.content,h.options)),w8=[],()=>{u(),Qn.delete(a)}},setProps(o){var c;(c=Qn.get(a))==null||c.setProps(o)},getSnapshot(){var o;return(o=Qn.get(a))==null?void 0:o.getSnapshot()}}}(t)).current;r(t);const i=b.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:iw,count:i==null?void 0:i.length}}function B$(t){const[e,n]=b.useState(!1),[r,i]=b.useState(!1),s=b.useRef(null),a=b.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(E){const z=s.current;a.canDrag&&z&&(a.didMove=!0,e&&v(),a.delta=t.draggableDirection==="x"?E.clientX-a.start:E.clientY-a.start,a.start!==E.clientX&&(a.canCloseOnClick=!1),z.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,z.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function C(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",C);const E=s.current;if(a.canDrag&&a.didMove&&E){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();E.style.transition="transform 0.2s, opacity 0.2s",E.style.removeProperty("transform"),E.style.removeProperty("opacity")}}(m=Qn.get((p={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||m.setToggle(p.id,p.fn),b.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 M={onPointerDown:function(E){if(t.draggable===!0||t.draggable===E.pointerType){a.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",C);const z=s.current;a.canCloseOnClick=!0,a.canDrag=!0,z.style.transition="none",t.draggableDirection==="x"?(a.start=E.clientX,a.removalDistance=z.offsetWidth*(t.draggablePercent/100)):(a.start=E.clientY,a.removalDistance=z.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(E){const{top:z,bottom:k,left:L,right:D}=s.current.getBoundingClientRect();E.nativeEvent.type!=="touchend"&&t.pauseOnHover&&E.clientX>=L&&E.clientX<=D&&E.clientY>=z&&E.clientY<=k?v():g()}};return o&&c&&(M.onMouseEnter=v,t.stacked||(M.onMouseLeave=g)),f&&(M.onClick=E=>{h&&h(E),a.canCloseOnClick&&u()}),{playToast:g,pauseToast:v,isRunning:e,preventExitTransition:r,toastRef:s,eventHandlers:M}}function I$(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=ge("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=A2(a)?a({rtl:h,type:i,defaultClassName:v}):ge(v,a),C={[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{f&&r()}};return b.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},b.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),b.createElement("div",{role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:x,style:g,...C}))}let P$=1;const aw=()=>""+P$++;function V$(t){return t&&(Di(t.toastId)||y8(t.toastId))?t.toastId:aw()}function J0(t,e){return sw(t,e),e.toastId}function x5(t,e){return{...e,type:e&&e.type||t,toastId:V$(e)}}function Xa(t){return(e,n)=>J0(e,x5(t,n))}function Qt(t,e){return J0(t,x5("default",e))}Qt.loading=(t,e)=>J0(t,x5("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Qt.promise=function(t,e,n){let r,{pending:i,error:s,success:a}=e;i&&(r=Di(i)?Qt.loading(i,n):Qt.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 Qt.dismiss(r);const m={type:h,...o,...n,data:p},g=Di(f)?{render:f}:f;return r?Qt.update(r,{...m,...g}):Qt(g.render,{...m,...g}),p},u=A2(t)?t():t;return u.then(h=>c("success",a,h)).catch(h=>c("error",s,h)),u},Qt.success=Xa("success"),Qt.info=Xa("info"),Qt.error=Xa("error"),Qt.warning=Xa("warning"),Qt.warn=Qt.warning,Qt.dark=(t,e)=>J0(t,x5("default",{theme:"dark",...e})),Qt.dismiss=function(t){(function(e){var n;if(rw()){if(e==null||Di(n=e)||y8(n))Qn.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=Qn.get(e.containerId);r?r.removeToast(e.id):Qn.forEach(i=>{i.removeToast(e.id)})}}else w8=w8.filter(r=>e!=null&&r.options.toastId!==e)})(t)},Qt.clearWaitingQueue=function(t){t===void 0&&(t={}),Qn.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},Qt.isActive=iw,Qt.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var s;let{containerId:a}=i;return(s=Qn.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:aw()};s.toastId!==t&&(s.staleId=t);const a=s.render||i;delete s.render,J0(a,s)}},Qt.done=t=>{Qt.update(t,{progress:1})},Qt.onChange=function(t){return I6.add(t),()=>{I6.delete(t)}},Qt.play=t=>mp(!0,t),Qt.pause=t=>mp(!1,t);const O$=typeof window<"u"?b.useLayoutEffect:b.useEffect,Qa=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return b.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},i9={info:function(t){return b.createElement(Qa,{...t},b.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 b.createElement(Qa,{...t},b.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 b.createElement(Qa,{...t},b.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 b.createElement(Qa,{...t},b.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 b.createElement("div",{className:"Toastify__spinner"})}},H$=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=B$(t),{closeButton:a,children:o,autoClose:c,onClick:u,type:h,hideProgressBar:f,closeToast:p,transition:m,position:g,className:v,style:x,bodyClassName:C,bodyStyle:M,progressClassName:E,progressStyle:z,updateId:k,role:L,progress:D,rtl:N,toastId:I,deleteToast:H,isIn:J,isLoading:re,closeOnClick:fe,theme:$}=t,te=ge("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":N},{"Toastify__toast--close-on-click":fe}),q=A2(v)?v({rtl:N,position:g,type:h,defaultClassName:te}):ge(te,v),Z=function(ee){let{theme:ye,type:xe,isLoading:Se,icon:We}=ee,ve=null;const Re={theme:ye,type:xe};return We===!1||(A2(We)?ve=We({...Re,isLoading:Se}):b.isValidElement(We)?ve=b.cloneElement(We,Re):Se?ve=i9.spinner():(Ye=>Ye in i9)(xe)&&(ve=i9[xe](Re))),ve}(t),Q=!!D||!c,oe={closeToast:p,type:h,theme:$};let X=null;return a===!1||(X=A2(a)?a(oe):b.isValidElement(a)?b.cloneElement(a,oe):function(ee){let{closeToast:ye,theme:xe,ariaLabel:Se="close"}=ee;return b.createElement("button",{className:`Toastify__close-button Toastify__close-button--${xe}`,type:"button",onClick:We=>{We.stopPropagation(),ye(We)},"aria-label":Se},b.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},b.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)),b.createElement(m,{isIn:J,done:H,position:g,preventExitTransition:n,nodeRef:r,playToast:s},b.createElement("div",{id:I,onClick:u,"data-in":J,className:q,...i,style:x,ref:r},b.createElement("div",{...J&&{role:L},className:A2(C)?C({type:h}):ge("Toastify__toast-body",C),style:M},Z!=null&&b.createElement("div",{className:ge("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!re})},Z),b.createElement("div",null,o)),X,b.createElement(I$,{...k&&!Q?{key:`pb-${k}`}:{},rtl:N,theme:$,delay:c,isRunning:e,isIn:J,closeToast:p,hide:f,type:h,style:z,className:E,controlledProgress:Q,progress:D||0})))},ul=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},W$=dl(ul("bounce",!0));dl(ul("slide",!0));dl(ul("zoom"));dl(ul("flip"));const G$={position:"top-right",transition:W$,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function bc(t){let e={...G$,...t};const n=t.stacked,[r,i]=b.useState(!0),s=b.useRef(null),{getToastToRender:a,isToastActive:o,count:c}=T$(e),{className:u,style:h,rtl:f,containerId:p}=e;function m(v){const x=ge("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":f});return A2(u)?u({position:v,rtl:f,defaultClassName:x}):ge(x,So(u))}function g(){n&&(i(!0),Qt.play())}return O$(()=>{if(n){var v;const x=s.current.querySelectorAll('[data-in="true"]'),C=12,M=(v=e.position)==null?void 0:v.includes("top");let E=0,z=0;Array.from(x).reverse().forEach((k,L)=>{const D=k;D.classList.add("Toastify__toast--stacked"),L>0&&(D.dataset.collapsed=`${r}`),D.dataset.pos||(D.dataset.pos=M?"top":"bot");const N=E*(r?.2:1)+(r?0:C*L);D.style.setProperty("--y",`${M?N:-1*N}px`),D.style.setProperty("--g",`${C}`),D.style.setProperty("--s",""+(1-(r?z:0))),E+=D.offsetHeight,z+=.025})}},[r,c,n]),b.createElement("div",{ref:s,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),Qt.pause())},onMouseLeave:g},a((v,x)=>{const C=x.length?{...h}:{...h,pointerEvents:"none"};return b.createElement("div",{className:m(v),style:C,key:`container-${v}`},x.map(M=>{let{content:E,props:z}=M;return b.createElement(H$,{...z,stacked:n,collapseAll:g,isIn:o(z.toastId,z.containerId),style:z.style,key:`toast-${z.key}`},E)}))}))}const U$=({toastText1:t="🦄 Wow so easy!",toastText2:e="🦄 Wow so easy!",showToast:n=!1,delay:r=5e3})=>{console.log("Welcome to Prospect");const i=()=>Qt(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 b.useEffect(()=>{let s;if(n&&(s=i()),s)return()=>Qt.dismiss(s)},[n]),l.jsx("div",{children:l.jsx(bc,{limit:1})})},ow=({checked:t=!1,onClick:e,id:n=Gs(),sizeVariant:r="sm",isAllSelected:i=!1,isSubsetSelected:s=!1,isDisabled:a=!1})=>{const[o,c]=b.useState(t);b.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})},Y$=({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]=b.useState(!1),[m,g]=b.useState(e),v=b.useRef(null),x=b.useRef(null),C=h||i,M=()=>{a||p(I=>(I&&v.current?v.current.close():v.current&&v.current.show(),!I))},E=()=>{a||(s?r():M())};b.useEffect(()=>{function I(H){v.current&&x.current&&!v.current.contains(H.target)&&!x.current.contains(H.target)&&(v.current.close(),p(!1))}return document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)}},[]);const z=()=>{t(C),M()},k=I=>{I>=0&&I<=C&&g(I)},L=()=>{g(0),r(),M()},D=()=>{t(m),M()},N=ge({"selectDropDown--dropdown-list-show":f,"selectDropDown--dropdown-list-hide":!f});return l.jsx(k1,{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:M,disabled:a,className:"selectDropDown--btn--dropdown",ref:x,children:[l.jsx(ow,{sizeVariant:"base",checked:!1,onClick:E,isAllSelected:s,isSubsetSelected:!s&&e>0,isDisabled:a}),e>0&&l.jsxs("p",{children:[e," ",!u&&"selected"]}),l.jsx("span",{children:l.jsx(de,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("dialog",{id:Gs(),ref:v,className:"dropdownContainer",children:l.jsxs("ul",{className:N,children:[l.jsx("li",{onClick:z,"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(nc,{initialNumber:String(m),handleChange:k,props:{style:{width:"70px",maxWidth:"70px"}},dataCy:`${c}-input`})})]}),l.jsx("span",{className:"apply",children:l.jsx(er,{text:"Apply",colorVariant:"orange",onClick:D,isDisabled:m<0,dataCy:`${c}-apply`})}),n&&l.jsx("span",{className:"cancel",children:l.jsx(Ds,{text:"Clear Selection",onClick:L,dataCy:`${c}-clear-selection`})})]})})]})})})},K$=({})=>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"})]})})}),Z$=({onNextClick:t=()=>{},onBackClick:e=()=>{}})=>l.jsx("div",{children:l.jsx("div",{className:"stickyFooter-Wrapper",children:l.jsxs("div",{className:"stickyFooter-Container",children:[l.jsx(er,{colorVariant:"black",onClick:e,text:"Back",primaryButtonClassName:"primaryButton--Back",sizeVariant:"sm"}),l.jsx(er,{colorVariant:"orange",onClick:t,text:"Next",primaryButtonClassName:"primaryButton--Next",sizeVariant:"sm"})]})})}),q$=({numberOfRow:t=1,profileTableColums:e=[]})=>{const n=[];for(let u=1;u<=t;u++)n.push(u);const r=b.useMemo(()=>e,[]),{getTableProps:i,getTableBodyProps:s,headerGroups:a,rows:o,prepareRow:c}=z2.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(ir,{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"})}))})))})]})})},J$=({numberOfRow:t=1,companyTableColums:e=[]})=>{const n=[];for(let u=1;u<=t;u++)n.push(u);const r=b.useMemo(()=>e,[]),{getTableProps:i,getTableBodyProps:s,headerGroups:a,rows:o,prepareRow:c}=z2.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(ir,{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"})}))})))})]})})},X$=({numberOfRow:t=1})=>{const e=[];for(let c=1;c<=t;c++)e.push(c);const n=b.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}=z2.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"})}))})))})]})})},Q$=({})=>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"})})]})})]})]}),_$=({numberOfRow:t=1})=>{const e=[];for(let c=1;c<=t;c++)e.push(c);const n=b.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}=z2.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",{})]})))})]})})},$$="_textBoxWithSuggestionsHeading_f2iuj_136",Pr={"textBoxWithSuggestions-Wrapper":"_textBoxWithSuggestions-Wrapper_f2iuj_131",textBoxWithSuggestionsHeading:$$,"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"},eee=({heading:t,value:e,handleChange:n,suggestionList:r})=>{const[i,s]=b.useState([]),a=F8({extensions:[j8.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:Pr["textBoxWithSuggestions-editor"]}}});b.useEffect(()=>{s(r.map(()=>!1))},[]),b.useEffect(()=>{a&&e!==a.getText()&&a.commands.setContent(e)},[e,a]);const o=c=>{a&&a.chain().focus().insertContent(`${c}
1060
- `).run()};return l.jsxs("div",{className:Pr["textBoxWithSuggestions-Wrapper"],children:[l.jsx("p",{className:Pr.textBoxWithSuggestionsHeading,children:t}),l.jsx("div",{className:Pr["textBoxWithSuggestions-Container"],children:l.jsx(S8,{editor:a})}),l.jsxs("div",{className:Pr["textBoxWithSuggestions-SuggestionsBox"],children:[l.jsx("p",{className:Pr["textBoxWithSuggestions-SuggestionText"],children:"Suggestions"}),l.jsx("div",{className:Pr["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]?Pr["suggestionItem--Active"]:Pr["suggestionItem--Generic"],children:c.suggestionHeading},u))})]})]})},tee=({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(de,{iconType:t,iconSize:"16"}),e]}),nee=({items:t,initialValue:e,initialSvg:n,onChange:r})=>{const[i,s]=b.useState(!1),[a,o]=b.useState(),c=b.useRef(null),u=()=>{s(m=>!m)},h=m=>{console.log("E: ",m),o(m),s(!1)},f=b.useMemo(()=>a||{itemName:e,svgIcon:n},[a,e,n]),p=(m,g)=>{h({itemName:m,svgIcon:g}),r({itemName:m,svgIcon:g})};return b.useEffect(()=>{function m(g){var v;c.current&&!c.current.contains(g.target)&&!((v=c.current.parentElement)!=null&&v.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(de,{iconType:f.svgIcon,iconSize:"16"}),l.jsx("span",{className:"TextDropdown-selectedText",children:f.itemName??""})]}),l.jsx("span",{className:"TextDropdown-dropdownSvg",children:l.jsx(de,{iconType:`${i?"cheveronUp":"cheveronDown"}`})})]}),i&&l.jsx("div",{className:"TextDropdown-dropdownBody",ref:c,children:t.map((m,g)=>l.jsx(tee,{itemName:m.itemName,svgIcon:m.svgIcon,hasBorder:g==t.length-1,onClick:p},m.itemName+g))})]})})},ree=({hourValue:t,minuteValue:e,selectedTime:n,disableBefore:r,alwaysShowTime:i,timezone:s,onTimePicked:a})=>{const[o,c]=b.useState(!1),[u,h]=b.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]=b.useState(String(t||1)),[x,C]=b.useState(String(e||0)),[M,E]=b.useState(n||"AM"),k=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date,oe=new Date(r).getHours(),X=Q.getHours(),ee=X<12?"AM":"PM";return oe>12?(q.push(...Array.from({length:oe-12},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`)),Z.push(...Array.from({length:12},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`))):Z.push(...Array.from({length:oe},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`)),ee==="AM"?X===oe&&Z.pop():X===oe&&q.pop(),{PM:q,AM:Z}})(),D=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date(r),oe=Q.getHours(),X=Q.getMinutes();let ee=Number(g);return M==="PM"&&ee!==12?ee+=12:M==="AM"&&ee===12&&(ee=0),ee!==r.getHours()?{AM:[],PM:[]}:(oe<12&&Number(g)===oe?Z.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)):oe===12&&M==="PM"?q.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)):oe>12&&Number(g)===oe-12&&q.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)),{AM:Z,PM:q})})();b.useEffect(()=>{o&&Array.from(document.getElementsByClassName("timePickerItem--activated")).map(Z=>Z.scrollIntoView())},[o]);const[N,I]=b.useState({x:0,y:0,direction:"top"}),H=b.useRef(null),J=b.useRef(document.getElementById("root")),re=b.useRef(null),fe=()=>{if(re.current){const q=re.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),I({y:Z,x:oe,direction:Q})}},$=q=>{fe(),c(q),h(!q)},te=q=>{const Z=q.target;H.current&&re.current&&Z!==H.current&&!H.current.contains(Z)&&!re.current.contains(Z)&&$(!1)};return b.useEffect(()=>{(Number(g)!==t||Number(x)!==e||M!==n)&&a(`${g}:${x}:${M}`)},[g,x,M]),b.useEffect(()=>(window.addEventListener("click",te),window.addEventListener("wheel",()=>fe()),()=>{window.addEventListener("click",te),window.removeEventListener("wheel",()=>fe())}),[]),l.jsxs("div",{className:"timePickerDropdown--Active",ref:re,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} ${M}`:"Time"}),l.jsx(de,{iconType:"clock",iconSize:"16"})]}),o&&!!J.current&&qi.createPortal(l.jsxs("div",{className:`${o?"":"timePicker-hideTimeDial"} timePicker-Container`,ref:H,style:{[N.direction]:N==null?void 0:N.y,left:N==null?void 0: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[M].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=D[M].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(x)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||C(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===M?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||E(q)},children:q})})})]}),!!s&&l.jsx("div",{className:"timezone",children:s})]}),J.current)]})},iee=({variants:t})=>{const[e,n]=b.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))})},see=({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}=z2.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"})}))})))})]})})},w0={"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"},aee=({value:t,handleChange:e,placeholder:n="",customStyles:r={},maxLength:i})=>{const[s,a]=b.useState(0),o=F8({extensions:[j8.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:w0["textAreaWithTooltip-editor"]},handlePaste:(c,u)=>{var m;if(!i)return!1;const h=((m=u.clipboardData)==null?void 0:m.getData("text/plain"))||"",f=(o==null?void 0:o.getText())||"",p=i-f.length;if(p<=0)return u.preventDefault(),!0;if(h.length>p){const g=h.substring(0,p);return u.preventDefault(),o==null||o.commands.insertContent(g),!0}return!1},handleTextInput:(c,u,h,f)=>i?((o==null?void 0:o.getText())||"").length>=i:!1}});return b.useEffect(()=>{o&&t!==o.getText()&&(o.commands.setContent(t),a(o.getText().length))},[t,o]),b.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:w0["textAreaWithTooltip-Wrapper"],children:[l.jsxs("div",{className:w0["textAreaWithTooltip-Container"],style:r,children:[l.jsx(S8,{editor:o}),!(o!=null&&o.getText())&&l.jsx("div",{className:w0["textAreaWithTooltip-placeholder"],children:n})]}),i&&l.jsxs("p",{className:w0["textAreaWithTooltip-charactersLeft"],children:[i-s," characters left"]})]})},lw=({dropdownOnClickHandler:t})=>{const[e,n]=b.useState(!1),[r,i]=b.useState("Personalise"),[s,a]=b.useState(!1),o=b.useRef(null),c=()=>{n(h=>!h)},u=()=>{c(),a(!s)};return b.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(de,{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"})]})]})},cw=({value:t})=>{const[e,n]=b.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(de,{iconType:"radio",iconSize:"16"})})})},hi=({title:t="Title",content:e="Content",refresh:n=!1,likeState:r,unlikeState:i,refreshState:s})=>{const[a,o]=b.useState(!1),[c,u]=b.useState(!1),[h,f]=b.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(cw,{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(de,{iconType:"like",iconSize:"24"})}),l.jsx("span",{className:`__svg ${c&&"__svg-active"}`,onClick:m,children:l.jsx(de,{iconType:"unlike",iconSize:"24"})}),l.jsx("span",{className:`__svg ${h&&"__svg-active"}`,onClick:g,style:{width:"24px",marginTop:"6px"},children:l.jsx(de,{iconType:"refresh",iconSize:"16"})})]})]}),l.jsx("div",{className:"content",children:e})]})},oee=({characterCount:t,limit:e})=>{const n=r=>{t(r.target.value.length),RX(r.target.value)};return l.jsx("textarea",{className:"text-area",maxLength:e,onChange:n})},dw=({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(de,{iconType:"chevronRight",iconSize:"16"})})]})})})},lee=({initialNumber:t=0,placeholder:e="123",unit:n,handleChange:r=i=>i})=>{const[i,s]=b.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(de,{iconType:"cheveronUp",iconSize:"16"})}),l.jsx("button",{onClick:c,children:l.jsx(de,{iconType:"cheveronDown",iconSize:"16"})})]})]})},cee=({text:t="",iconType:e="",children:n})=>{const[r,i]=b.useState(!1),s=b.useRef(null),a=b.useRef(null),o=()=>{i(u=>!u)};b.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=ge({"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(de,{iconType:e,iconSize:"16"}),t]}),l.jsx(de,{iconType:r?"cheveronUp":"cheveronDown",iconSize:"16"}),r&&l.jsx("div",{ref:s,className:"dropdownWithSvg-Body",children:n})]})},Cc=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1})=>{const c=ge({"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(de,{iconType:a,iconSize:"16"}),e,n&&l.jsx("p",{children:n})]})})},dee=()=>l.jsx("div",{children:"RoundSettingModal"}),uee=({})=>l.jsxs("div",{className:"card-main--add",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(de,{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(hi,{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(hi,{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(hi,{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(hi,{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(hi,{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})]})]})]}),hee=({})=>{const[t,e]=b.useState("Templates"),[n,r]=b.useState("");b.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(lw,{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(gx,{onChange:s,showIconOnLeft:!0})}),l.jsx(er,{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(dw,{getText:a=>r(a)}))})]})},fee=({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(de,{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(de,{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})]})]}),pee=({cards:t})=>{const[e,n]=b.useState(0),r=220,i=b.useRef(null);b.useEffect(()=>{t.length>0&&n(0)},[]),b.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(de,{iconType:"chevronLeft",iconSize:"16"})]}),l.jsx("div",{className:"cards-row",ref:i,children:t.map((o,c)=>l.jsx(fee,{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(de,{iconType:"chevronRight",iconSize:"16"})]})]})},mee=({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(de,{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(Ds,{onClick:r,text:"Edit Template"})}),l.jsx(er,{text:"Use for All recipients",colorVariant:"orange",onClick:n})]})]})},gee=({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(Kx,{progress:e})})]}),vee=({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(de,{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(gee,{title:e.title,progress:e.progress}))})]}),xee=({})=>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"})]})})}),yee=({})=>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"})]})]})]})})}),wee=({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=Qt(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(D1,{onClick:a,showIcon:!1,sizeVariant:"sm",text:s,colorVariant:"orange"}),l.jsx(D1,{onClick:()=>{Qt.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(),Qt.dismiss(u)}})};return b.useEffect(()=>{n&&c()},[]),l.jsx("div",{children:l.jsx(bc,{limit:1,closeButton:!1})})};function bee({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 Cee=({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=b.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}=z2.useTable({columns:s,data:i}),f=({publicIdentifier:p,name:m,isSelected:g,lastUpdated:v,profilePicture:x,index:C,onNameClick:M=E=>{console.log(E)}})=>p?l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(ir,{sizeVariant:"xs",checked:g,onClick:E=>e({index:C,checked:E})}),l.jsx(sr,{iconPath:x,iconSize:"40",borderRadius:"6"},`${p}-${v}`),l.jsx(Fr,{text:m,onClick:()=>M(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),b.createElement("tr",{...p.getRowProps(),key:`${p.original.fullName}${p.original.index}`},p.cells.map(m=>{var g,v;return m.column.Header==="Name"?l.jsx("td",{...m.getCellProps(),children:f({isSelected:m.row.original.isSelected,lastUpdated:m.row.original.lastUpdated||"",name:m==null?void 0:m.value,profilePicture:((v=(g=m==null?void 0:m.row)==null?void 0:g.original)==null?void 0:v.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(bee,{status:m==null?void 0:m.value})}):m.column.Header==="Company"?l.jsx("td",{...m.getCellProps(),children:(m==null?void 0:m.value)&&l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(l2,{iconPath:m.row.original.companyLogo||"",altImageType:"company",iconSize:"40",errorImageContainerSize:"40"}),l.jsx(Fr,{text:m==null?void 0:m.value,onClick:()=>r(m.row.original.companyUniversalName||"",m.row.original.companyUrn||"")})]})}):m.column.Header==="Qlu Link"?l.jsx("td",{...m.getCellProps(),children:(m==null?void 0:m.value)&&l.jsx("span",{className:"enrichmentPersonTable--NameCell",children:l.jsx(Fr,{text:m==null?void 0:m.value,onClick:()=>{m!=null&&m.value&&window.open(m.value,"_blank")}})})}):l.jsx("td",{...m.getCellProps(),children:m.render("Cell")||"N/A"})}))))})]})},Eee=({})=>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"})]})})})})}),uw=({dropdownItemList:t,onLabelClick:e,name:n,dataCyDropdown:r,dataCyChangePass:i,dataCySignout:s})=>{const[a,o]=b.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:Vw(n)})}),l.jsx("span",{className:"chevronButtondropdown--btn--dropdown",children:l.jsx(On,{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}`))})]})})},Aee=({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(l2,{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(ln,{children:r}),"at",l.jsx("span",{onClick:()=>u(s,a),className:"personViewHeaderSummary--CompanyLink",children:l.jsx(ln,{children:i})})]}),l.jsx("h3",{children:o})]})]}),Mee=({text:t="",isSelected:e=!1,props:n={},highlight:r=!1,onCancelClick:i=()=>!1})=>{const s=ge({"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(de,{iconType:"cross",iconSize:"20"})})]})},kee=()=>{const[t,e]=b.useState(20),[n,r]=b.useState(1);b.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]),b.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 See({onClick:t,value:e}){return l.jsx("div",{className:"primaryRadioButton",children:l.jsx("input",{type:"radio",onClick:t,checked:e})})}mn.register(i2,s2,In,S2,j2,o2,a2);const Fee={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 An.format(t),An.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} - ${An.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}}},jee=({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(l3,{type:"bar",id:"canvas",options:{...Fee,aspectRatio:e},data:i})})})},hw=b.createContext({value:"",onChange:()=>{},setShowMenu:()=>{}});function zee({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}){b.Children.forEach(n,N=>{if(b.isValidElement(N)){if(N.type===b.Fragment)b.Children.forEach(N.props.children,I=>{if(b.isValidElement(I)&&!I.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=ge({"select--Container":!0,[`select-${h}`]:!p,[`menu-${s}`]:!0,...p&&{[p]:!0}}),C=ge({"select--Button":!0,[`select--${h}`]:!0}),M=ge({"select-Menu":!0}),[E,z]=b.useState(!1),k=b.useRef(null),L=b.useRef(null);b.useEffect(()=>{function N(I){L.current&&!L.current.contains(I.target)&&k.current&&!k.current.contains(I.target)&&z(!1)}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const D=()=>{z(N=>!N)};return l.jsxs("div",{style:{...m},className:`${x}`,children:[l.jsxs("button",{type:"button",className:C,onClick:D,ref:k,disabled:i,"data-cy":v,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(de,{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(de,{iconType:E?"arrowUp":"arrowDown",iconSize:u})})]}),E&&l.jsx("div",{ref:L,className:M,children:l.jsx(hw.Provider,{value:{value:t,onChange:e,setShowMenu:z},children:l.jsx("div",{className:"select--MenuList",children:n})})})]})}function fw({itemValue:t,children:e,className:n="",dataCy:r,...i}){const{onChange:s,setShowMenu:a,value:o}=b.useContext(hw),c=t===o,u=ge({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(fw,"selectItemComponent",{value:!0,writable:!1});function Lee({separatorText:t="OR"}){return l.jsxs("div",{className:"sectionSeparator--Container",children:[l.jsx("hr",{}),l.jsx("p",{children:t}),l.jsx("hr",{})]})}mn.register(i2,s2,In,on,j2,o2,a2,rr);const Ree=({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}${Bl.format(o)}`:`${r}${Bl.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}${Bl.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(Tv,{options:i,data:a})},Dee="_entityTableGeneric_13b2j_131",Nee={entityTableGeneric:Dee},Tee=({children:t,className:e,...n})=>{const r=ge({[Nee.entityTableGeneric]:!0,...e&&{[e]:!0}});return l.jsx("table",{...n,className:r,children:t})},Bee="_tableHeader_1qi4r_131",Iee={tableHeader:Bee},Pee=({children:t,className:e,...n})=>{const r=ge({[Iee.tableHeader]:!0,...e&&{[e]:!0}});return l.jsx("thead",{...n,className:r,children:t})},Vee="_tableBody_1tw26_131",Oee={tableBody:Vee},Hee=({children:t,className:e,...n})=>{const r=ge({[Oee.tableBody]:!0,...e&&{[e]:!0}});return l.jsx("tbody",{...n,className:r,children:t})},Wee="_tableRow_7i97c_131",Gee={tableRow:Wee},Uee=({children:t,className:e,...n})=>{const r=ge({[Gee.tableRow]:!0,...e&&{[e]:!0}});return l.jsx("tr",{...n,className:r,children:t})},Yee="_tableBodyCell_1nrya_131",Kee="_tableHeaderCell_1nrya_149",gp={tableBodyCell:Yee,tableHeaderCell:Kee},Zee=({children:t,variant:e="body",className:n,align:r="left",...i})=>{const s=ge({[gp.tableBodyCell]:e==="body",[gp.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})},qee=({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(ir,{sizeVariant:"xs",checked:e,onClick:n}),l.jsx(sr,{iconPath:s,iconSize:"40",borderRadius:"6",altImageType:o},a),l.jsxs("span",{className:"nameContainer",children:[l.jsx(Fr,{text:i,onClick:r}),c]})]}),Jee=({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=ge({"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=ge({"selectablePill--Include":!0,"selectablePill--IncludeSelected":i==="selected"}),g=ge({"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(l2,{iconSize:"24",errorImageContainerSize:"34",iconPath:u,altImageType:"company"})}),l.jsx(ln,{maxWidth:"330px",toolTipPosition:"bottom",children:e}),l.jsxs("div",{className:"selectablePill--ActionButton",children:[l.jsx(k1,{content:"Include",children:l.jsx("button",{className:m,"data-cy":`${h}-include`,children:l.jsx(de,{iconType:"tick",iconSize:"24"})})}),l.jsx(k1,{content:"Exclude",children:l.jsx("button",{className:g,onClick:v=>{v.stopPropagation(),r(v)},"data-cy":`${h}-exclude`,children:l.jsx(de,{iconType:"notAllowed",iconSize:"24"})})})]})]})},Xee=({onApplyClick:t,selectedCount:e,showCancel:n,onCancelClick:r,totalCount:i,isAllSelected:s,isDisabled:a,tooltipContent:o})=>{const[c,u]=b.useState(!1),[h,f]=b.useState(e),p=b.useRef(null),m=b.useRef(null),g=()=>{a||u(k=>!k)},v=()=>{a||(s?r():g())};b.useEffect(()=>{function k(L){p.current&&m.current&&!p.current.contains(L.target)&&!m.current.contains(L.target)&&u(!1)}return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]);const x=()=>{t(i),g()},C=k=>{k>=0&&k<=i&&f(k)},M=()=>{f(0),r(),g()},E=()=>{t(h),g()},z=ge({"selectDropDown--dropdown-list-show":c,"selectDropDown--dropdown-list-hide":!c});return l.jsx(k1,{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(ow,{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(de,{iconType:"arrowUp",iconSize:"16"}):l.jsx(de,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("div",{className:"selectDropDown--redo-content",ref:p,children:l.jsxs("ul",{className:z,children:[l.jsx("li",{onClick:x,children:"Select All"}),l.jsxs("li",{children:["Select Top",l.jsx("span",{className:"space",children:c&&l.jsx(nc,{initialNumber:String(h),handleChange:C,props:{style:{width:"70px",maxWidth:"70px"}}})})]}),l.jsx("span",{className:"apply applyRedo",children:l.jsx(Yi,{text:"Apply",colorVariant:"orange",className:"sec",onClick:E,isDisabled:h<0})}),n&&l.jsx("span",{className:"cancel cancelRedo",children:l.jsx(Yi,{colorVariant:"lightGray",text:"Clear Selection",onClick:M})})]})})]})})})},Qee="_discreteSliderGeneric_1amet_149",_ee="_dragging_1amet_176",$ee="_animating_1amet_233",ete="_discreteSliderDisabled_1amet_272",jn={discreteSliderGeneric:Qee,"range-slider-container":"_range-slider-container_1amet_167",dragging:_ee,"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:$ee,"range-slider-thumb--min":"_range-slider-thumb--min_1amet_243","range-slider-thumb--max":"_range-slider-thumb--max_1amet_246",discreteSliderDisabled:ete},tte=({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]=b.useState(u),[m,g]=b.useState(h),[v,x]=b.useState(null),[C,M]=b.useState(!1),[,E]=b.useState({}),z=b.useRef(null),k=b.useRef(!1),L=b.useRef(!1),D=b.useRef(null),N=b.useRef(0),I=b.useRef(null),H=b.useRef(u),J=b.useRef(h),re=32,fe=ge({[jn.discreteSliderGeneric]:!0,[jn.discreteSliderDisabled]:s});b.useEffect(()=>{if(!k.current){const ve=Math.max(0,Math.max(r,Math.min(t,i))),Re=Math.max(0,Math.max(r,Math.min(e,i)));if(Re-ve<1){const Ye=(ve+Re)/2,Ie=Math.max(0,Math.floor(Ye-.5)),Xe=Math.min(i,Math.ceil(Ye+.5));p(Ie),g(Xe),H.current=Ie,J.current=Xe}else p(ve),g(Re),H.current=ve,J.current=Re}},[t,e,r,i]);const $=ve=>s?"":`${ve.toLocaleString()}`,te=ve=>(ve-r)/(i-r)*100,q=ve=>Math.round(r+ve/100*(i-r)),Z=ve=>{const Re=Math.abs(ve-f),Ye=Math.abs(ve-m);return Re<=Ye?"min":"max"},Q=b.useCallback(ve=>{if(s||v||(ve.preventDefault(),ve.stopPropagation(),!z.current))return;const Re=z.current.getBoundingClientRect(),Ye=Math.max(0,Math.min(100,(ve.clientX-Re.left)/Re.width*100)),Ie=q(Ye),Xe=Z(Ie);if(M(!0),I.current&&clearTimeout(I.current),Xe==="min"){const Ge=Math.max(0,Math.min(Ie,m-1));Ge!==f&&(p(Ge),H.current=Ge,n({minRange:Ge,maxRange:Math.min(a,Math.max(0,m))}))}else{const Ge=Math.min(a,Math.max(f+1,Math.max(Ie,f)));Ge!==m&&(g(Ge),J.current=Ge,n({minRange:Math.max(0,f),maxRange:Ge}))}I.current=window.setTimeout(()=>{M(!1)},300)},[s,v,f,m,a,n]),oe=b.useCallback(ve=>Re=>{s||(Re.preventDefault(),Re.stopPropagation(),I.current&&clearTimeout(I.current),M(!1),H.current=f,J.current=m,x(ve),k.current=!0,L.current=!0)},[s,f,m]),X=b.useCallback(ve=>{if(!v||!z.current||s||!L.current)return;D.current&&cancelAnimationFrame(D.current);const Re=Date.now();if(Re-N.current<re){D.current=requestAnimationFrame(()=>{X(ve)});return}N.current=Re,D.current=requestAnimationFrame(()=>{var Ot;if(!z.current||!L.current)return;const Ie=z.current.getBoundingClientRect(),Xe="touches"in ve?(Ot=ve.touches[0])==null?void 0:Ot.clientX:ve.clientX;if(Xe===void 0)return;const Ge=Math.max(0,Math.min(100,(Xe-Ie.left)/Ie.width*100)),me=q(Ge);if(v==="min"){const Kt=Math.max(0,Math.min(me,m-1));H.current=Math.max(0,Math.min(me,J.current-1)),E({}),Kt!==f&&(p(Kt),n({minRange:Kt,maxRange:Math.min(a,Math.max(0,m))}))}else if(v==="max"){const Kt=Math.min(a,Math.max(f+1,Math.max(me,f)));J.current=Math.min(a,Math.max(H.current+1,Math.max(me,H.current))),E({}),Kt!==m&&(g(Kt),n({minRange:Math.max(0,f),maxRange:Kt}))}})},[v,m,f,s,n,a]),ee=b.useCallback(()=>{v&&(k.current=!1),D.current&&(cancelAnimationFrame(D.current),D.current=null),x(null),L.current=!1,H.current=f,J.current=m},[v,f,m]);b.useEffect(()=>{if(v)return document.addEventListener("mousemove",X),document.addEventListener("mouseup",ee),document.addEventListener("touchmove",X,{passive:!1}),document.addEventListener("touchend",ee),()=>{document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",ee),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",ee),D.current&&(cancelAnimationFrame(D.current),D.current=null)}},[v,X,ee]),b.useEffect(()=>()=>{D.current&&cancelAnimationFrame(D.current),I.current&&clearTimeout(I.current)},[]);const ye=v?H.current:f,xe=v?J.current:m,Se=te(ye),We=te(xe);return l.jsx("span",{className:fe,children:l.jsxs("div",{className:`${jn["range-slider-container"]} ${v?jn.dragging:""}`,ref:z,onClick:Q,children:[l.jsx("div",{className:jn["range-slider-track"],children:l.jsx("div",{className:jn["range-slider-track-active"],style:{left:`${Se}%`,width:`${We-Se}%`}})}),l.jsx("div",{className:`${jn["range-slider-thumb"]} ${jn["range-slider-thumb--min"]} ${v==="min"?jn.dragging:""} ${C?jn.animating:""}`,style:{left:`${Se}%`},onMouseDown:oe("min"),onTouchStart:oe("min"),children:l.jsx("div",{className:jn["range-slider-tooltip"],children:$(Math.round(ye))})}),l.jsx("div",{className:`${jn["range-slider-thumb"]} ${jn["range-slider-thumb--max"]} ${v==="max"?jn.dragging:""} ${C?jn.animating:""}`,style:{left:`${We}%`},onMouseDown:oe("max"),onTouchStart:oe("max"),children:l.jsx("div",{className:jn["range-slider-tooltip"],children:$(Math.round(xe))})})]})})},nte="_dropdownContainer_62h7i_131",rte="_dropdownTrigger_62h7i_134",ite="_dropdownLabel_62h7i_145",ste="_dropdownIcon_62h7i_156",ate="_dropdownContent_62h7i_174",ote="_dropdownItem_62h7i_183",v3={dropdownContainer:nte,dropdownTrigger:rte,dropdownLabel:ite,dropdownIcon:ste,dropdownContent:ate,dropdownItem:ote},lte=({items:t,onSelect:e})=>{const[n,r]=b.useState(!1),[i,s]=b.useState(t[0]||""),a=b.useRef(null),o=()=>{r(h=>!h)},c=h=>{s(h),e(h),r(!1)};b.useEffect(()=>{function h(f){a.current&&!a.current.contains(f.target)&&o()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]);const u=h=>ge(v3.dropdownItem,{[v3.itemFirst]:h===0,[v3.itemLast]:h===t.length-1});return l.jsxs("div",{className:v3.dropdownContainer,children:[l.jsxs("button",{type:"button",className:v3.dropdownTrigger,onClick:o,children:[l.jsxs("span",{className:v3.dropdownLabel,children:[" ",i," "]}),l.jsx("span",{className:v3.dropdownIcon,children:l.jsx(de,{iconType:`${n?"cheveronUp":"cheveronDown"}`,iconSize:"18"})})]}),n&&l.jsx("div",{className:v3.dropdownContent,ref:a,children:t.map((h,f)=>l.jsx("div",{className:u(f),onClick:()=>c(h),children:h},h+f))})]})},cte="_CreditBarChart_1vr58_131",dte={CreditBarChart:cte};mn.register(i2,s2,S2,j2,o2,a2);const pw=({revenues:t})=>{const e=b.useRef(null),[n,r]=b.useState({width:0,height:0});b.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)),C=Math.max(8,Math.min(x,31));let M=0,E=14;const k=E*4*g,L=m*.9;return k>L&&(k>L*1.5?(E=10,M=45):k>L*1.2?(E=12,M=45):M=30),{barThickness:C,maxRotation:M,fontSize:E}})(),a=t.map(m=>m.quater),o=t.map(m=>m.amount),c=t.map(m=>m.phoneAmount),u=Math.max(...o),h=u<=10?10:u+u*.1,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=>Xw(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:dte.CreditBarChart,ref:e,children:l.jsx(Bv,{options:p,data:f})})},ute="_creditUsageChartContainer_17paa_131",hte="_creditUsageChartHeader_17paa_142",fte="_options_17paa_160",pte="_option_17paa_160",mte="_color_17paa_175",gte="_dropDownContainer_17paa_198",vte="_creditUsageChart_17paa_131",xte="_creditUsageChartError_17paa_217",yte="_creditUsageChartDataNA_17paa_220",wte="_creditUsageChartLoader_17paa_250",B2={creditUsageChartContainer:ute,creditUsageChartHeader:hte,options:fte,option:pte,color:mte,dropDownContainer:gte,creditUsageChart:vte,creditUsageChartError:xte,creditUsageChartDataNA:yte,creditUsageChartLoader:wte};var mw=(t=>(t.Last7Days="Last7Days",t.LastMonth="LastMonth",t.Last3Months="Last3Months",t.Last6Months="Last6Months",t.LastYear="LastYear",t.Today="Today",t.Custom="Custom",t))(mw||{});const vp={Last7Days:"Last 7 Days",LastMonth:"Last Month",Last3Months:"Last 3 Months",Last6Months:"Last 6 Months",LastYear:"Last Year",Today:"Today",Custom:"Custom"},bte=({title:t,selectedTimeFrame:e,creditUsageData:n,isLoading:r,isError:i,setSelectedTimeFrame:s})=>{const a=()=>l.jsx("div",{className:B2.creditUsageChartLoader,children:l.jsx($1,{width:"24",height:"24"})}),o=()=>l.jsx("div",{className:B2.creditUsageChartError,children:l.jsx("span",{className:B2.creditUsageChartDataNA,children:"No data to show yet"})});return l.jsxs("div",{className:B2.creditUsageChartContainer,children:[l.jsxs("div",{className:B2.creditUsageChartHeader,children:[l.jsx("h3",{children:t}),l.jsxs("div",{className:B2.options,children:[l.jsxs("div",{className:B2.option,children:[l.jsx("div",{className:B2.color}),l.jsx("span",{children:"Email credits"})]}),l.jsxs("div",{className:B2.option,children:[l.jsx("div",{className:B2.color}),l.jsx("span",{children:"Phone credits"})]}),l.jsx("div",{className:B2.dropDownContainer,children:l.jsx(xc,{dropDownText:vp[e],children:Object.values(mw).filter(c=>!["Today","Custom"].includes(c)).map((c,u)=>l.jsx(Cc,{onClick:()=>s(c),text:vp[c],active:e===c},u))})})]})]}),r?a():i?o():l.jsx("div",{className:B2.creditUsageChart,children:l.jsx(pw,{revenues:n})})]})};function Cte({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]=b.useState(o),p=b.useRef(null),m=b.useRef(null),[g,v]=b.useState({top:0,left:0,width:0,isVisible:!1}),x=Ro({"dropDownButton--KebabContainer":!0}),C=Ro({"dropDownButton--Generic":!0}),M=()=>{var fe;if(!p.current)return;const L=p.current.getBoundingClientRect(),D=(fe=m.current)==null?void 0:fe.getBoundingClientRect(),N=10,I=window.innerHeight,H=(D==null?void 0:D.height)||0,re={top:L.top+L.height+H+N>I?L.top-H-N:L.top+L.height+N,left:L.left,width:L.width};v({...re,isVisible:H>0})},E=()=>{f(L=>!L),M(),c==null||c(!h)};function z(L){var D,N,I;!((D=m==null?void 0:m.current)!=null&&D.contains(L.target))&&!Array.from(((N=a==null?void 0:a.current)==null?void 0:N.querySelectorAll("*"))||[]).some(H=>H.contains(L.target))&&!((I=p==null?void 0:p.current)!=null&&I.contains(L.target))&&f(!1)}function k(){c==null||c(!1),f(!1)}return b.useEffect(()=>(document==null||document.addEventListener("mousedown",z),document==null||document.addEventListener("wheel",k),()=>{document==null||document.removeEventListener("mousedown",z),document==null||document.removeEventListener("wheel",k)}),[]),b.useEffect(()=>{o!==void 0&&o!==h&&f(o)},[o]),b.useEffect(()=>{var N;const L=(N=m.current)==null?void 0:N.getBoundingClientRect(),D=(L==null?void 0:L.height)||0;!g.isVisible&&D&&M()},[g]),l.jsxs("div",{className:x,"data-cy":s,children:[l.jsxs("button",{type:"button",className:C,onClick:E,ref:p,disabled:i,style:{width:r,maxWidth:n},children:[l.jsxs("div",{className:"calendar-icon",children:[l.jsx(de,{iconType:"calendar",iconSize:"16"}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:n},children:t})]}),l.jsx("div",{className:"rightIcon",children:l.jsx(de,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),qi.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 Ete=({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=ge({"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(de,{iconType:a,iconSize:"16"}),e,c,n&&l.jsx("p",{children:n})]})})},Ate=t=>{var i;const e=(i=t.eventsData)==null?void 0:i.find(s=>{const a=new Date(s.date);return a.getDate()===t.date.getDate()&&a.getMonth()===t.date.getMonth()&&a.getFullYear()===t.date.getFullYear()}),n=t.date.getTime()>new Date().getTime(),r=ge({"daypicker-day-cell-content":!0,disabled:n});return l.jsx(k1,{content:(e==null?void 0:e.name)||"",toolTipPosition:"top",isDisabled:!e,children:l.jsxs("span",{className:r,children:[t.date.getDate(),!!e&&l.jsx("span",{className:"event-dot"})]})})};function Mte({onDateSelected:t,initialValue:e,eventsData:n,timezone:r,customRootElem:i,isOpen:s}){const[a,o]=b.useState(!!s),[c,u]=b.useState(new Date),[h,f]=b.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=H=>{H.stopPropagation();const J=new Date(c);J.setMonth(c.getMonth()-1),u(J)},x=H=>{H.stopPropagation();const J=new Date(c);J.setMonth(c.getMonth()+1),u(J)},C=H=>{const J=H.toLocaleString("en-US",{month:"long"});return l.jsxs("div",{className:"datePicker-customCaption",children:[l.jsx("span",{className:"datePicker-prevMonthArrow",onClick:v,children:l.jsx(de,{iconType:"arrowLeft",iconSize:"32"})}),J," ",H.getFullYear(),l.jsx("span",{className:"datePicker-nextMonthArrow",onClick:x,children:l.jsx(de,{iconType:"arrowRight",iconSize:"32"})})]})},M=H=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][H.getDay()],[E,z]=b.useState({x:0,y:0,direction:"top"}),k=b.useRef(null),L=b.useRef(null),D=()=>{if(L.current){const H=L.current.getBoundingClientRect();let J=H.y+H.height+8,re="top";const fe=H.x-H.width-90;450>window.innerHeight-H.y&&(re="bottom",J=window.innerHeight-H.y+8),z({y:J,x:fe,direction:re})}},N=H=>{H&&h&&u(h),D(),o(H)},I=H=>{const J=H.target;k.current&&L.current&&J!==k.current&&!k.current.contains(J)&&!L.current.contains(J)&&N(!1)};return b.useEffect(()=>(window.addEventListener("click",I),window.addEventListener("wheel",D),()=>{window.removeEventListener("click",I),window.removeEventListener("wheel",D)}),[]),b.useEffect(()=>{e&&f(e)},[e]),b.useEffect(()=>{a&&!s&&o(!1)},[s]),l.jsxs("div",{className:"datePickerDropdown--Active",ref:L,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(de,{iconType:"calendar",iconSize:"16"})]}),a&&qi.createPortal(l.jsx("div",{className:`${a?"":"datePickerCalender--hidden"} datePickerCalender-Container`,ref:k,style:{[E.direction]:E==null?void 0:E.y,left:E==null?void 0:E.x},children:l.jsx(px,{disableNavigation:!0,mode:"single",month:c,modifiersClassNames:{selected:"datePicker-mySelected",today:"datePicker-myToday"},selected:h,onSelect:(...H)=>{H!=null&&H[0]&&H[0].getTime()<=new Date().getTime()&&(f(H[0]),t(H[0]))},footer:g,formatters:{formatCaption:C,formatWeekdayName:M},showOutsideDays:!0,components:{DayContent:H=>l.jsx(Ate,{date:H.date,displayMonth:H.displayMonth,eventsData:n})},classNames:{day:"datepicker-day-cell"}})}),i||document.body)]})}const kte="_parentInputfield_rtdb0_131",Ste="_inputFieldGeneric_rtdb0_151",Fte="_errorInputField_rtdb0_198",jte="_passwordToggle_rtdb0_218",_a={parentInputfield:kte,inputFieldGeneric:Ste,errorInputField:Fte,passwordToggle:jte},zte=({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]=b.useState(!1),C=()=>{x(E=>!E)},M=Ro({[_a.inputFieldGeneric]:!0,[_a.errorInputField]:a});return l.jsxs("div",{className:_a.parentInputfield,children:[l.jsxs("div",{className:M,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:_a.passwordToggle,onClick:C,"data-cy":m,children:v?l.jsx(de,{iconType:"eye",iconSize:"16"}):l.jsx(de,{iconType:"eyeOff",iconSize:"16"})})]}),a&&l.jsx("span",{children:u})]})},Lte=({type:t="success",label:e,heading:n="Wow so easy!",subText:r="",boldText:i="",showToast:s=!1,showButtons:a=!1,btnText:o="Apply",onBtnClick:c=()=>{},onClose:u=()=>{},delay:h})=>{const f=m=>{switch(m){case"success":return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"};case"warning":return{icon:"exclamationCircleFilled",label:"Warning",className:"headingWarning"};default:return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"}}},p=()=>{const m=f(t),g=e||m.label;Qt(({closeToast:v})=>l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"headingRow",children:[l.jsxs("span",{className:m.className,children:[l.jsx(de,{iconType:m.icon,iconSize:"18"}),g]}),l.jsx("button",{className:"customCloseButton",onClick:v,children:l.jsx(de,{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(D1,{onClick:c,showIcon:!1,sizeVariant:"sm",text:o,colorVariant:"orange"})})]}),{position:"top-right",hideProgressBar:!0,closeOnClick:!1,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",closeButton:!1,onClose:()=>{u()},autoClose:h!==void 0?h:!1})};return b.useEffect(()=>{s&&p()},[]),l.jsx("div",{children:l.jsx(bc,{limit:1,closeButton:!0})})},Rte=({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})]}),Dte=({isSelected:t=!1,isDisabled:e=!1,text:n="NB Button",navbarIcon:r="home",props:i={},onClick:s=()=>{}})=>{const a=ge({"navbarButton--Generic":!0,"navbarButton--Selected":t,"navbarButton--Unselected":!t});return l.jsxs("button",{disabled:e,className:a,onClick:s,...i,children:[l.jsx(de,{iconType:r,iconSize:"18"}),n]})},Nte=({props:t={},navbarTabs:e=[],dropdownItemList:n,onLabelClick:r,isCompleted:i=!1,isTimerShown:s=!1,onViewClick:a,name:o="John Doe"})=>{const c=ge({topNavbarGeneric:!0});return l.jsxs("div",{className:"topNavbar",children:[l.jsxs("div",{className:c,...t,children:[l.jsx(de,{iconType:"qluLogo",iconSize:"32"}),l.jsx("span",{className:"topNavbarGenericButtonsContainer",children:e.map((u,h)=>l.jsx(Dte,{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(de,{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(vc,{className:"rssTimer"})]}):l.jsx(l.Fragment,{}),l.jsx(uw,{onLabelClick:r,dropdownItemList:n,name:o})]})]})},gw=({count:t=1,onClick:e,dataCy:n,isDisabled:r})=>{const i=ge({"countCancelButton--Generic":!0});return l.jsxs("button",{className:i,onClick:e,"data-cy":n,disabled:r,children:[t,l.jsx(de,{iconType:"cross",iconSize:"14"})]})},Tte=({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=ge({"searchFilterButton--Generic":!0,"searchFilterButton--Selected":e!==0}),p=ge({"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(de,{iconType:"boldPlus",iconSize:"18"})}):l.jsx(de,{iconType:n,iconSize:"18"}),t]}),r&&l.jsxs("span",{className:"searchFilterButton-FitlerDetails",children:[l.jsx("span",{className:"searchFilterButton-FitlerDetails-SpinningPlus",children:l.jsx(de,{iconType:"boldPlus",iconSize:"18"})}),t]}),e!==0&&!r&&l.jsx("div",{className:"searchFilterButton-RigthIcon",children:l.jsx(gw,{count:e,onClick:s,dataCy:o,isDisabled:h})})]})},Bte=({images:t=[],initials:e=[],iconSize:n="24",counter:r=0})=>l.jsxs("div",{className:"avatarGroup",children:[t.map(i=>l.jsx(l2,{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,{})]}),Ite=({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}),Pte=({isDisabled:t=!1,sizeVariant:e="xs",variant:n="primary",color:r="orange",iconType:i="searchArrow",iconSize:s="24",onClick:a})=>{const o=ge({[`${e}Size--SearchSvgButton`]:!0,[`${n}-${r}--SearchSvgButton`]:!0});return l.jsx("button",{disabled:t,onClick:a,className:o,children:l.jsx(de,{iconType:i,iconSize:s})})},Ec=({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(Wy,{text:t,length:i})});mn.register(z0,In,on,rr,o2,a2);const P6=({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(qH,{data:i,options:e})},Vte=({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(de,{iconType:a.iconType,iconSize:"18"}),a.name]},o))})]})};exports.AIAnalysisCard=vee;exports.AIAssistant=hi;exports.AIAssistantDetails=uee;exports.AIDetailsCard=hi;exports.AdvanceFilterJobTItleV2=sC;exports.AdvanceFilterTitleWindow=iC;exports.AreaChart=iW;exports.AssignmentBreadCrumb=Rw;exports.AssignmentCreation=yz;exports.AssignmentIdealProfileCard=Rz;exports.AssignmentInfoSubHeader=wz;exports.AssignmentShimmer=xee;exports.AuthNavBar=$M;exports.AuthNavbarLogoSvg=Yp;exports.AuthPhoneNumberInput=Jp;exports.AvatarGroup=Bte;exports.BadgeNonClickable=Qp;exports.BadgeWithCount=rl;exports.BarLineChart=QH;exports.BusinessUnitViewTabsComponent=TW;exports.CampaignMessage=nI;exports.CampaignSubject=sW;exports.CampaignTableShimmer=X$;exports.CardsRow=pee;exports.ChatClickableCard=aW;exports.ChatDropDown=Iv;exports.ChatLoadingWidget=kee;exports.ChatPeopleCard=oW;exports.ChatPopup=lW;exports.CheckboxComponent=ir;exports.ChevronDropDown=uw;exports.CircularIcon=l2;exports.CircularSvgAndEmoji=dW;exports.ClickableCard=dw;exports.ClickableFilterBadge=uW;exports.ClickableText=D1;exports.ColoredButton=hW;exports.CompanyBarChartFinancialTab=T6;exports.CompanyCombinedChartFinancialTab=Gy;exports.CompanyDetailsCard=mW;exports.CompanyLikePillSelectable=gW;exports.CompanyLineChartFinancialTab=ew;exports.CompanyLogoPillSelectable=vW;exports.CompanyPeopleTab=WQ;exports.CompanyPill=mQ;exports.CompanyProductsTab=OQ;exports.CompanyReportsTab=HQ;exports.CompanyTableShimmer=J$;exports.CompanyViewBody=Hv;exports.CompanyViewBussinessUnitTabs=z$;exports.CompanyViewFinancial=Ov;exports.CompanyViewFinancialBody=b$;exports.CompanyViewFinancialGenericTable=S$;exports.CompanyViewFinancialIncomeStatement=k$;exports.CompanyViewFinancialPrivateTabs=E$;exports.CompanyViewFinancialSummary=nw;exports.CompanyViewHeader=Wv;exports.CompanyViewLayout=zW;exports.CompanyViewPeople=Vv;exports.CompanyViewSummary=Pv;exports.CompanyViewSummaryNewsCompoment=j$;exports.CompanyViewSummaryNewsTabs=F$;exports.CompanyViewTabsComponent=Gv;exports.CompetitorsCompanyTab=VQ;exports.ConnectDropdown=uQ;exports.ContinuousRangeComponent=tte;exports.CountCancelButton=gw;exports.CreditBarChart=pw;exports.CreditManagementDatePicker=Mte;exports.CreditManagementDropdownButton=Cte;exports.CreditManagementDropdownItem=Ete;exports.CreditUsageChart=bte;exports.DatePicker=PK;exports.DateTimePicker=v$;exports.DoughnutChart=rW;exports.DropDown=lw;exports.DropDownButton=xc;exports.DropDownForm=lte;exports.DropDownGeneric=x$;exports.DropdownChildButton=Cc;exports.DropdownComponent=mx;exports.DropdownWithSvg=cee;exports.EllipsisPillNotClickable=Ite;exports.EllipsisText=ln;exports.EnrichmentPersonTable=Cee;exports.EntityTable=Tee;exports.FeedbackButton=VK;exports.FileUpload=Rte;exports.FilterAddRemoveBadge=OK;exports.FilterAndSortDropdown=WK;exports.GetSvgIcon=de;exports.IconButton=On;exports.InputField=GK;exports.InputFieldForm=zte;exports.InputFieldWithSvg=gx;exports.LineChart=C$;exports.Loader=$1;exports.LogoButton=lq;exports.LookAlikeProfiles=PQ;exports.Modal=cq;exports.MultiChart=tw;exports.NoteEditor=IQ;exports.NumberInputField=nc;exports.NumberInputFieldWithLimit=dq;exports.NumberStringInput=lee;exports.OTPComponent=uq;exports.PayChart=Ree;exports.PeerSalaryChart=L$;exports.PeopleCard=pQ;exports.PersonCompanyNameClickable=Fr;exports.PersonStatisticsChart=YQ;exports.PersonStatsView=KQ;exports.PersonViewBody=mq;exports.PersonViewExperienceCard=Ux;exports.PersonViewExperienceDetails=Gx;exports.PersonViewGrowthChart=R$;exports.PersonViewHeader=vq;exports.PersonViewHeaderSummary=Aee;exports.PersonViewInfo=gq;exports.PersonViewSummary=Yx;exports.PersonViewTabsComponent=xq;exports.PhoneNumberInputField=Jp;exports.Pill=Mee;exports.PrimaryButton=er;exports.PrimaryRadioButton=See;exports.PrivateFinancialsLineGraph=jee;exports.ProductDetailsViewTabsComponent=OW;exports.ProfileListShimmer=yee;exports.ProfileTableShimmer=q$;exports.ProgressBar=Kx;exports.PromptField=cW;exports.QChatShimmer=Eee;exports.RadarChart=P6;exports.RadioButton=cw;exports.RangeComponent=rc;exports.RectangularIcon=sr;exports.RectangularSvgButton=yq;exports.RoundDetailsShimmer=Q$;exports.RoundSettingModal=dee;exports.SavedSearches=dQ;exports.SearchArrowButton=Pte;exports.SearchCompanyTable=qx;exports.SearchCompanyTableContainer=Sq;exports.SearchFilterButton=Tte;exports.SearchLocationDropdown=wq;exports.SearchPersonTable=Zx;exports.SearchPersonTableContainer=Mq;exports.SearchTabsBar=Fq;exports.SearchTimer=vc;exports.SecondaryButton=Yi;exports.SectionSeparator=Lee;exports.Select=zee;exports.SelectDropDown=Y$;exports.SelectItem=fw;exports.SelectablePill=Jee;exports.SelectionDropDown=Xee;exports.SettingsNavbar=Vte;exports.Shimmer=K$;exports.Sidebar=jq;exports.SkillIndustryBadge=_r;exports.StatsChart=A$;exports.StickyNavigationFooter=Z$;exports.StyleableTextAreaContainer=oQ;exports.SwitchLarge=lQ;exports.TabelHeader=Pee;exports.Table=cQ;exports.TableBody=Hee;exports.TableCell=Zee;exports.TableNameCell=qee;exports.TablePagination=ic;exports.TableRow=Uee;exports.TableShimmer=see;exports.Tabs=Py;exports.TagButtonComponent=Vy;exports.TemplateCard=hee;exports.TemplateDetailCard=mee;exports.TemplateTableShimmer=_$;exports.TertiaryButton=Ds;exports.TextArea=oee;exports.TextAreaWithTooltip=aee;exports.TextBoxWithSuggestions=eee;exports.TextButton=qp;exports.TextDropdown=nee;exports.TextPillNotClickable=Ec;exports.TextWithSvgButton=Oy;exports.TimePicker=ree;exports.ToastWithButton=wee;exports.ToastWithButtonV2=Lte;exports.ToggleComponent=Hy;exports.Tooltip=k1;exports.TopNavbar=Nte;exports.TruncateText=Wy;exports.VariantsList=iee;exports.WelecomeToastComponent=U$;
1060
+ `).run()};return l.jsxs("div",{className:Pr["textBoxWithSuggestions-Wrapper"],children:[l.jsx("p",{className:Pr.textBoxWithSuggestionsHeading,children:t}),l.jsx("div",{className:Pr["textBoxWithSuggestions-Container"],children:l.jsx(S8,{editor:a})}),l.jsxs("div",{className:Pr["textBoxWithSuggestions-SuggestionsBox"],children:[l.jsx("p",{className:Pr["textBoxWithSuggestions-SuggestionText"],children:"Suggestions"}),l.jsx("div",{className:Pr["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]?Pr["suggestionItem--Active"]:Pr["suggestionItem--Generic"],children:c.suggestionHeading},u))})]})]})},tee=({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(de,{iconType:t,iconSize:"16"}),e]}),nee=({items:t,initialValue:e,initialSvg:n,onChange:r})=>{const[i,s]=b.useState(!1),[a,o]=b.useState(),c=b.useRef(null),u=()=>{s(m=>!m)},h=m=>{console.log("E: ",m),o(m),s(!1)},f=b.useMemo(()=>a||{itemName:e,svgIcon:n},[a,e,n]),p=(m,g)=>{h({itemName:m,svgIcon:g}),r({itemName:m,svgIcon:g})};return b.useEffect(()=>{function m(g){var v;c.current&&!c.current.contains(g.target)&&!((v=c.current.parentElement)!=null&&v.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(de,{iconType:f.svgIcon,iconSize:"16"}),l.jsx("span",{className:"TextDropdown-selectedText",children:f.itemName??""})]}),l.jsx("span",{className:"TextDropdown-dropdownSvg",children:l.jsx(de,{iconType:`${i?"cheveronUp":"cheveronDown"}`})})]}),i&&l.jsx("div",{className:"TextDropdown-dropdownBody",ref:c,children:t.map((m,g)=>l.jsx(tee,{itemName:m.itemName,svgIcon:m.svgIcon,hasBorder:g==t.length-1,onClick:p},m.itemName+g))})]})})},ree=({hourValue:t,minuteValue:e,selectedTime:n,disableBefore:r,alwaysShowTime:i,timezone:s,onTimePicked:a})=>{const[o,c]=b.useState(!1),[u,h]=b.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]=b.useState(String(t||1)),[x,C]=b.useState(String(e||0)),[M,E]=b.useState(n||"AM"),k=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date,oe=new Date(r).getHours(),X=Q.getHours(),ee=X<12?"AM":"PM";return oe>12?(q.push(...Array.from({length:oe-12},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`)),Z.push(...Array.from({length:12},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`))):Z.push(...Array.from({length:oe},(ye,xe)=>xe<9?`0${xe+1}`:`${xe+1}`)),ee==="AM"?X===oe&&Z.pop():X===oe&&q.pop(),{PM:q,AM:Z}})(),D=(()=>{if(!r)return{AM:[],PM:[]};const q=[],Z=[],Q=new Date(r),oe=Q.getHours(),X=Q.getMinutes();let ee=Number(g);return M==="PM"&&ee!==12?ee+=12:M==="AM"&&ee===12&&(ee=0),ee!==r.getHours()?{AM:[],PM:[]}:(oe<12&&Number(g)===oe?Z.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)):oe===12&&M==="PM"?q.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)):oe>12&&Number(g)===oe-12&&q.push(...Array.from({length:X},(ye,xe)=>xe<=9?`0${xe}`:`${xe}`)),{AM:Z,PM:q})})();b.useEffect(()=>{o&&Array.from(document.getElementsByClassName("timePickerItem--activated")).map(Z=>Z.scrollIntoView())},[o]);const[N,I]=b.useState({x:0,y:0,direction:"top"}),H=b.useRef(null),J=b.useRef(document.getElementById("root")),re=b.useRef(null),fe=()=>{if(re.current){const q=re.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),I({y:Z,x:oe,direction:Q})}},$=q=>{fe(),c(q),h(!q)},te=q=>{const Z=q.target;H.current&&re.current&&Z!==H.current&&!H.current.contains(Z)&&!re.current.contains(Z)&&$(!1)};return b.useEffect(()=>{(Number(g)!==t||Number(x)!==e||M!==n)&&a(`${g}:${x}:${M}`)},[g,x,M]),b.useEffect(()=>(window.addEventListener("click",te),window.addEventListener("wheel",()=>fe()),()=>{window.addEventListener("click",te),window.removeEventListener("wheel",()=>fe())}),[]),l.jsxs("div",{className:"timePickerDropdown--Active",ref:re,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} ${M}`:"Time"}),l.jsx(de,{iconType:"clock",iconSize:"16"})]}),o&&!!J.current&&qi.createPortal(l.jsxs("div",{className:`${o?"":"timePicker-hideTimeDial"} timePicker-Container`,ref:H,style:{[N.direction]:N==null?void 0:N.y,left:N==null?void 0: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[M].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=D[M].includes(q);return l.jsx("div",{className:`timePickerVerticalList-Item ${Number(q)===Number(x)?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||C(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===M?"timePickerItem--activated":""} ${Z?"timePickerItem--disabled":""}`,onClick:()=>{Z||E(q)},children:q})})})]}),!!s&&l.jsx("div",{className:"timezone",children:s})]}),J.current)]})},iee=({variants:t})=>{const[e,n]=b.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))})},see=({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}=z2.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"})}))})))})]})})},w0={"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"},aee=({value:t,handleChange:e,placeholder:n="",customStyles:r={},maxLength:i})=>{const[s,a]=b.useState(0),o=F8({extensions:[j8.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:w0["textAreaWithTooltip-editor"]},handlePaste:(c,u)=>{var m;if(!i)return!1;const h=((m=u.clipboardData)==null?void 0:m.getData("text/plain"))||"",f=(o==null?void 0:o.getText())||"",p=i-f.length;if(p<=0)return u.preventDefault(),!0;if(h.length>p){const g=h.substring(0,p);return u.preventDefault(),o==null||o.commands.insertContent(g),!0}return!1},handleTextInput:(c,u,h,f)=>i?((o==null?void 0:o.getText())||"").length>=i:!1}});return b.useEffect(()=>{o&&t!==o.getText()&&(o.commands.setContent(t),a(o.getText().length))},[t,o]),b.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:w0["textAreaWithTooltip-Wrapper"],children:[l.jsxs("div",{className:w0["textAreaWithTooltip-Container"],style:r,children:[l.jsx(S8,{editor:o}),!(o!=null&&o.getText())&&l.jsx("div",{className:w0["textAreaWithTooltip-placeholder"],children:n})]}),i&&l.jsxs("p",{className:w0["textAreaWithTooltip-charactersLeft"],children:[i-s," characters left"]})]})},lw=({dropdownOnClickHandler:t})=>{const[e,n]=b.useState(!1),[r,i]=b.useState("Personalise"),[s,a]=b.useState(!1),o=b.useRef(null),c=()=>{n(h=>!h)},u=()=>{c(),a(!s)};return b.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(de,{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"})]})]})},cw=({value:t})=>{const[e,n]=b.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(de,{iconType:"radio",iconSize:"16"})})})},hi=({title:t="Title",content:e="Content",refresh:n=!1,likeState:r,unlikeState:i,refreshState:s})=>{const[a,o]=b.useState(!1),[c,u]=b.useState(!1),[h,f]=b.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(cw,{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(de,{iconType:"like",iconSize:"24"})}),l.jsx("span",{className:`__svg ${c&&"__svg-active"}`,onClick:m,children:l.jsx(de,{iconType:"unlike",iconSize:"24"})}),l.jsx("span",{className:`__svg ${h&&"__svg-active"}`,onClick:g,style:{width:"24px",marginTop:"6px"},children:l.jsx(de,{iconType:"refresh",iconSize:"16"})})]})]}),l.jsx("div",{className:"content",children:e})]})},oee=({characterCount:t,limit:e})=>{const n=r=>{t(r.target.value.length),RX(r.target.value)};return l.jsx("textarea",{className:"text-area",maxLength:e,onChange:n})},dw=({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(de,{iconType:"chevronRight",iconSize:"16"})})]})})})},lee=({initialNumber:t=0,placeholder:e="123",unit:n,handleChange:r=i=>i})=>{const[i,s]=b.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(de,{iconType:"cheveronUp",iconSize:"16"})}),l.jsx("button",{onClick:c,children:l.jsx(de,{iconType:"cheveronDown",iconSize:"16"})})]})]})},cee=({text:t="",iconType:e="",children:n})=>{const[r,i]=b.useState(!1),s=b.useRef(null),a=b.useRef(null),o=()=>{i(u=>!u)};b.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=ge({"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(de,{iconType:e,iconSize:"16"}),t]}),l.jsx(de,{iconType:r?"cheveronUp":"cheveronDown",iconSize:"16"}),r&&l.jsx("div",{ref:s,className:"dropdownWithSvg-Body",children:n})]})},Cc=({onClick:t,text:e="",extraInfo:n="",textColor:r="gray",disabled:i=!1,showIcon:s=!1,iconType:a="cheveronDown",active:o=!1})=>{const c=ge({"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(de,{iconType:a,iconSize:"16"}),e,n&&l.jsx("p",{children:n})]})})},dee=()=>l.jsx("div",{children:"RoundSettingModal"}),uee=({})=>l.jsxs("div",{className:"card-main--add",children:[l.jsxs("div",{className:"title-bar",children:[l.jsx("span",{className:"svg",children:l.jsx(de,{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(hi,{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(hi,{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(hi,{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(hi,{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(hi,{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})]})]})]}),hee=({})=>{const[t,e]=b.useState("Templates"),[n,r]=b.useState("");b.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(lw,{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(gx,{onChange:s,showIconOnLeft:!0})}),l.jsx(er,{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(dw,{getText:a=>r(a)}))})]})},fee=({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(de,{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(de,{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})]})]}),pee=({cards:t})=>{const[e,n]=b.useState(0),r=220,i=b.useRef(null);b.useEffect(()=>{t.length>0&&n(0)},[]),b.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(de,{iconType:"chevronLeft",iconSize:"16"})]}),l.jsx("div",{className:"cards-row",ref:i,children:t.map((o,c)=>l.jsx(fee,{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(de,{iconType:"chevronRight",iconSize:"16"})]})]})},mee=({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(de,{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(Ds,{onClick:r,text:"Edit Template"})}),l.jsx(er,{text:"Use for All recipients",colorVariant:"orange",onClick:n})]})]})},gee=({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(Kx,{progress:e})})]}),vee=({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(de,{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(gee,{title:e.title,progress:e.progress}))})]}),xee=({})=>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"})]})})}),yee=({})=>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"})]})]})]})})}),wee=({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=Qt(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(D1,{onClick:a,showIcon:!1,sizeVariant:"sm",text:s,colorVariant:"orange"}),l.jsx(D1,{onClick:()=>{Qt.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(),Qt.dismiss(u)}})};return b.useEffect(()=>{n&&c()},[]),l.jsx("div",{children:l.jsx(bc,{limit:1,closeButton:!1})})};function bee({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 Cee=({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=b.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}=z2.useTable({columns:s,data:i}),f=({publicIdentifier:p,name:m,isSelected:g,lastUpdated:v,profilePicture:x,index:C,onNameClick:M=E=>{console.log(E)}})=>p?l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(ir,{sizeVariant:"xs",checked:g,onClick:E=>e({index:C,checked:E})}),l.jsx(sr,{iconPath:x,iconSize:"40",borderRadius:"6"},`${p}-${v}`),l.jsx(Fr,{text:m,onClick:()=>M(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),b.createElement("tr",{...p.getRowProps(),key:`${p.original.fullName}${p.original.index}`},p.cells.map(m=>{var g,v;return m.column.Header==="Name"?l.jsx("td",{...m.getCellProps(),children:f({isSelected:m.row.original.isSelected,lastUpdated:m.row.original.lastUpdated||"",name:m==null?void 0:m.value,profilePicture:((v=(g=m==null?void 0:m.row)==null?void 0:g.original)==null?void 0:v.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(bee,{status:m==null?void 0:m.value})}):m.column.Header==="Company"?l.jsx("td",{...m.getCellProps(),children:(m==null?void 0:m.value)&&l.jsxs("span",{className:"enrichmentPersonTable--NameCell",children:[l.jsx(l2,{iconPath:m.row.original.companyLogo||"",altImageType:"company",iconSize:"40",errorImageContainerSize:"40"}),l.jsx(Fr,{text:m==null?void 0:m.value,onClick:()=>r(m.row.original.companyUniversalName||"",m.row.original.companyUrn||"")})]})}):m.column.Header==="Qlu Link"?l.jsx("td",{...m.getCellProps(),children:(m==null?void 0:m.value)&&l.jsx("span",{className:"enrichmentPersonTable--NameCell",children:l.jsx(Fr,{text:m==null?void 0:m.value,onClick:()=>{m!=null&&m.value&&window.open(m.value,"_blank")}})})}):l.jsx("td",{...m.getCellProps(),children:m.render("Cell")||"N/A"})}))))})]})},Eee=({})=>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"})]})})})})}),uw=({dropdownItemList:t,onLabelClick:e,name:n,dataCyDropdown:r,dataCyChangePass:i,dataCySignout:s})=>{const[a,o]=b.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:Vw(n)})}),l.jsx("span",{className:"chevronButtondropdown--btn--dropdown",children:l.jsx(On,{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}`))})]})})},Aee=({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(l2,{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(ln,{children:r}),"at",l.jsx("span",{onClick:()=>u(s,a),className:"personViewHeaderSummary--CompanyLink",children:l.jsx(ln,{children:i})})]}),l.jsx("h3",{children:o})]})]}),Mee=({text:t="",isSelected:e=!1,props:n={},highlight:r=!1,onCancelClick:i=()=>!1})=>{const s=ge({"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(de,{iconType:"cross",iconSize:"20"})})]})},kee=()=>{const[t,e]=b.useState(20),[n,r]=b.useState(1);b.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]),b.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 See({onClick:t,value:e}){return l.jsx("div",{className:"primaryRadioButton",children:l.jsx("input",{type:"radio",onClick:t,checked:e})})}mn.register(i2,s2,In,S2,j2,o2,a2);const Fee={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 An.format(t),An.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} - ${An.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}}},jee=({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(l3,{type:"bar",id:"canvas",options:{...Fee,aspectRatio:e},data:i})})})},hw=b.createContext({value:"",onChange:()=>{},setShowMenu:()=>{}});function zee({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}){b.Children.forEach(n,N=>{if(b.isValidElement(N)){if(N.type===b.Fragment)b.Children.forEach(N.props.children,I=>{if(b.isValidElement(I)&&!I.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=ge({"select--Container":!0,[`select-${h}`]:!p,[`menu-${s}`]:!0,...p&&{[p]:!0}}),C=ge({"select--Button":!0,[`select--${h}`]:!0}),M=ge({"select-Menu":!0}),[E,z]=b.useState(!1),k=b.useRef(null),L=b.useRef(null);b.useEffect(()=>{function N(I){L.current&&!L.current.contains(I.target)&&k.current&&!k.current.contains(I.target)&&z(!1)}return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[]);const D=()=>{z(N=>!N)};return l.jsxs("div",{style:{...m},className:`${x}`,children:[l.jsxs("button",{type:"button",className:C,onClick:D,ref:k,disabled:i,"data-cy":v,children:[o&&l.jsx("div",{className:"leftIcon",children:l.jsx(de,{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(de,{iconType:E?"arrowUp":"arrowDown",iconSize:u})})]}),E&&l.jsx("div",{ref:L,className:M,children:l.jsx(hw.Provider,{value:{value:t,onChange:e,setShowMenu:z},children:l.jsx("div",{className:"select--MenuList",children:n})})})]})}function fw({itemValue:t,children:e,className:n="",dataCy:r,...i}){const{onChange:s,setShowMenu:a,value:o}=b.useContext(hw),c=t===o,u=ge({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(fw,"selectItemComponent",{value:!0,writable:!1});function Lee({separatorText:t="OR"}){return l.jsxs("div",{className:"sectionSeparator--Container",children:[l.jsx("hr",{}),l.jsx("p",{children:t}),l.jsx("hr",{})]})}mn.register(i2,s2,In,on,j2,o2,a2,rr);const Ree=({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}${Bl.format(o)}`:`${r}${Bl.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}${Bl.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(Tv,{options:i,data:a})},Dee="_entityTableGeneric_13b2j_131",Nee={entityTableGeneric:Dee},Tee=({children:t,className:e,...n})=>{const r=ge({[Nee.entityTableGeneric]:!0,...e&&{[e]:!0}});return l.jsx("table",{...n,className:r,children:t})},Bee="_tableHeader_1qi4r_131",Iee={tableHeader:Bee},Pee=({children:t,className:e,...n})=>{const r=ge({[Iee.tableHeader]:!0,...e&&{[e]:!0}});return l.jsx("thead",{...n,className:r,children:t})},Vee="_tableBody_1tw26_131",Oee={tableBody:Vee},Hee=({children:t,className:e,...n})=>{const r=ge({[Oee.tableBody]:!0,...e&&{[e]:!0}});return l.jsx("tbody",{...n,className:r,children:t})},Wee="_tableRow_7i97c_131",Gee={tableRow:Wee},Uee=({children:t,className:e,...n})=>{const r=ge({[Gee.tableRow]:!0,...e&&{[e]:!0}});return l.jsx("tr",{...n,className:r,children:t})},Yee="_tableBodyCell_1nrya_131",Kee="_tableHeaderCell_1nrya_149",gp={tableBodyCell:Yee,tableHeaderCell:Kee},Zee=({children:t,variant:e="body",className:n,align:r="left",...i})=>{const s=ge({[gp.tableBodyCell]:e==="body",[gp.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})},qee=({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(ir,{sizeVariant:"xs",checked:e,onClick:n}),l.jsx(sr,{iconPath:s,iconSize:"40",borderRadius:"6",altImageType:o},a),l.jsxs("span",{className:"nameContainer",children:[l.jsx(Fr,{text:i,onClick:r}),c]})]}),Jee=({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=ge({"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=ge({"selectablePill--Include":!0,"selectablePill--IncludeSelected":i==="selected"}),g=ge({"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(l2,{iconSize:"24",errorImageContainerSize:"34",iconPath:u,altImageType:"company"})}),l.jsx(ln,{maxWidth:"330px",toolTipPosition:"bottom",children:e}),l.jsxs("div",{className:"selectablePill--ActionButton",children:[l.jsx(k1,{content:"Include",children:l.jsx("button",{className:m,"data-cy":`${h}-include`,children:l.jsx(de,{iconType:"tick",iconSize:"24"})})}),l.jsx(k1,{content:"Exclude",children:l.jsx("button",{className:g,onClick:v=>{v.stopPropagation(),r(v)},"data-cy":`${h}-exclude`,children:l.jsx(de,{iconType:"notAllowed",iconSize:"24"})})})]})]})},Xee=({onApplyClick:t,selectedCount:e,showCancel:n,onCancelClick:r,totalCount:i,isAllSelected:s,isDisabled:a,tooltipContent:o})=>{const[c,u]=b.useState(!1),[h,f]=b.useState(e),p=b.useRef(null),m=b.useRef(null),g=()=>{a||u(k=>!k)},v=()=>{a||(s?r():g())};b.useEffect(()=>{function k(L){p.current&&m.current&&!p.current.contains(L.target)&&!m.current.contains(L.target)&&u(!1)}return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]);const x=()=>{t(i),g()},C=k=>{k>=0&&k<=i&&f(k)},M=()=>{f(0),r(),g()},E=()=>{t(h),g()},z=ge({"selectDropDown--dropdown-list-show":c,"selectDropDown--dropdown-list-hide":!c});return l.jsx(k1,{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(ow,{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(de,{iconType:"arrowUp",iconSize:"16"}):l.jsx(de,{iconType:"arrowDown",iconSize:"16"})})]}),l.jsx("div",{className:"selectDropDown--redo-content",ref:p,children:l.jsxs("ul",{className:z,children:[l.jsx("li",{onClick:x,children:"Select All"}),l.jsxs("li",{children:["Select Top",l.jsx("span",{className:"space",children:c&&l.jsx(nc,{initialNumber:String(h),handleChange:C,props:{style:{width:"70px",maxWidth:"70px"}}})})]}),l.jsx("span",{className:"apply applyRedo",children:l.jsx(Yi,{text:"Apply",colorVariant:"orange",className:"sec",onClick:E,isDisabled:h<0})}),n&&l.jsx("span",{className:"cancel cancelRedo",children:l.jsx(Yi,{colorVariant:"lightGray",text:"Clear Selection",onClick:M})})]})})]})})})},Qee="_discreteSliderGeneric_1amet_149",_ee="_dragging_1amet_176",$ee="_animating_1amet_233",ete="_discreteSliderDisabled_1amet_272",jn={discreteSliderGeneric:Qee,"range-slider-container":"_range-slider-container_1amet_167",dragging:_ee,"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:$ee,"range-slider-thumb--min":"_range-slider-thumb--min_1amet_243","range-slider-thumb--max":"_range-slider-thumb--max_1amet_246",discreteSliderDisabled:ete},tte=({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]=b.useState(u),[m,g]=b.useState(h),[v,x]=b.useState(null),[C,M]=b.useState(!1),[,E]=b.useState({}),z=b.useRef(null),k=b.useRef(!1),L=b.useRef(!1),D=b.useRef(null),N=b.useRef(0),I=b.useRef(null),H=b.useRef(u),J=b.useRef(h),re=32,fe=ge({[jn.discreteSliderGeneric]:!0,[jn.discreteSliderDisabled]:s});b.useEffect(()=>{if(!k.current){const ve=Math.max(0,Math.max(r,Math.min(t,i))),Re=Math.max(0,Math.max(r,Math.min(e,i)));if(Re-ve<1){const Ye=(ve+Re)/2,Ie=Math.max(0,Math.floor(Ye-.5)),Xe=Math.min(i,Math.ceil(Ye+.5));p(Ie),g(Xe),H.current=Ie,J.current=Xe}else p(ve),g(Re),H.current=ve,J.current=Re}},[t,e,r,i]);const $=ve=>s?"":`${ve.toLocaleString()}`,te=ve=>(ve-r)/(i-r)*100,q=ve=>Math.round(r+ve/100*(i-r)),Z=ve=>{const Re=Math.abs(ve-f),Ye=Math.abs(ve-m);return Re<=Ye?"min":"max"},Q=b.useCallback(ve=>{if(s||v||(ve.preventDefault(),ve.stopPropagation(),!z.current))return;const Re=z.current.getBoundingClientRect(),Ye=Math.max(0,Math.min(100,(ve.clientX-Re.left)/Re.width*100)),Ie=q(Ye),Xe=Z(Ie);if(M(!0),I.current&&clearTimeout(I.current),Xe==="min"){const Ge=Math.max(0,Math.min(Ie,m-1));Ge!==f&&(p(Ge),H.current=Ge,n({minRange:Ge,maxRange:Math.min(a,Math.max(0,m))}))}else{const Ge=Math.min(a,Math.max(f+1,Math.max(Ie,f)));Ge!==m&&(g(Ge),J.current=Ge,n({minRange:Math.max(0,f),maxRange:Ge}))}I.current=window.setTimeout(()=>{M(!1)},300)},[s,v,f,m,a,n]),oe=b.useCallback(ve=>Re=>{s||(Re.preventDefault(),Re.stopPropagation(),I.current&&clearTimeout(I.current),M(!1),H.current=f,J.current=m,x(ve),k.current=!0,L.current=!0)},[s,f,m]),X=b.useCallback(ve=>{if(!v||!z.current||s||!L.current)return;D.current&&cancelAnimationFrame(D.current);const Re=Date.now();if(Re-N.current<re){D.current=requestAnimationFrame(()=>{X(ve)});return}N.current=Re,D.current=requestAnimationFrame(()=>{var Ot;if(!z.current||!L.current)return;const Ie=z.current.getBoundingClientRect(),Xe="touches"in ve?(Ot=ve.touches[0])==null?void 0:Ot.clientX:ve.clientX;if(Xe===void 0)return;const Ge=Math.max(0,Math.min(100,(Xe-Ie.left)/Ie.width*100)),me=q(Ge);if(v==="min"){const Kt=Math.max(0,Math.min(me,m-1));H.current=Math.max(0,Math.min(me,J.current-1)),E({}),Kt!==f&&(p(Kt),n({minRange:Kt,maxRange:Math.min(a,Math.max(0,m))}))}else if(v==="max"){const Kt=Math.min(a,Math.max(f+1,Math.max(me,f)));J.current=Math.min(a,Math.max(H.current+1,Math.max(me,H.current))),E({}),Kt!==m&&(g(Kt),n({minRange:Math.max(0,f),maxRange:Kt}))}})},[v,m,f,s,n,a]),ee=b.useCallback(()=>{v&&(k.current=!1),D.current&&(cancelAnimationFrame(D.current),D.current=null),x(null),L.current=!1,H.current=f,J.current=m},[v,f,m]);b.useEffect(()=>{if(v)return document.addEventListener("mousemove",X),document.addEventListener("mouseup",ee),document.addEventListener("touchmove",X,{passive:!1}),document.addEventListener("touchend",ee),()=>{document.removeEventListener("mousemove",X),document.removeEventListener("mouseup",ee),document.removeEventListener("touchmove",X),document.removeEventListener("touchend",ee),D.current&&(cancelAnimationFrame(D.current),D.current=null)}},[v,X,ee]),b.useEffect(()=>()=>{D.current&&cancelAnimationFrame(D.current),I.current&&clearTimeout(I.current)},[]);const ye=v?H.current:f,xe=v?J.current:m,Se=te(ye),We=te(xe);return l.jsx("span",{className:fe,children:l.jsxs("div",{className:`${jn["range-slider-container"]} ${v?jn.dragging:""}`,ref:z,onClick:Q,children:[l.jsx("div",{className:jn["range-slider-track"],children:l.jsx("div",{className:jn["range-slider-track-active"],style:{left:`${Se}%`,width:`${We-Se}%`}})}),l.jsx("div",{className:`${jn["range-slider-thumb"]} ${jn["range-slider-thumb--min"]} ${v==="min"?jn.dragging:""} ${C?jn.animating:""}`,style:{left:`${Se}%`},onMouseDown:oe("min"),onTouchStart:oe("min"),children:l.jsx("div",{className:jn["range-slider-tooltip"],children:$(Math.round(ye))})}),l.jsx("div",{className:`${jn["range-slider-thumb"]} ${jn["range-slider-thumb--max"]} ${v==="max"?jn.dragging:""} ${C?jn.animating:""}`,style:{left:`${We}%`},onMouseDown:oe("max"),onTouchStart:oe("max"),children:l.jsx("div",{className:jn["range-slider-tooltip"],children:$(Math.round(xe))})})]})})},nte="_dropdownContainer_62h7i_131",rte="_dropdownTrigger_62h7i_134",ite="_dropdownLabel_62h7i_145",ste="_dropdownIcon_62h7i_156",ate="_dropdownContent_62h7i_174",ote="_dropdownItem_62h7i_183",v3={dropdownContainer:nte,dropdownTrigger:rte,dropdownLabel:ite,dropdownIcon:ste,dropdownContent:ate,dropdownItem:ote},lte=({items:t,onSelect:e})=>{const[n,r]=b.useState(!1),[i,s]=b.useState(t[0]||""),a=b.useRef(null),o=()=>{r(h=>!h)},c=h=>{s(h),e(h),r(!1)};b.useEffect(()=>{function h(f){a.current&&!a.current.contains(f.target)&&o()}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]);const u=h=>ge(v3.dropdownItem,{[v3.itemFirst]:h===0,[v3.itemLast]:h===t.length-1});return l.jsxs("div",{className:v3.dropdownContainer,children:[l.jsxs("button",{type:"button",className:v3.dropdownTrigger,onClick:o,children:[l.jsxs("span",{className:v3.dropdownLabel,children:[" ",i," "]}),l.jsx("span",{className:v3.dropdownIcon,children:l.jsx(de,{iconType:`${n?"cheveronUp":"cheveronDown"}`,iconSize:"18"})})]}),n&&l.jsx("div",{className:v3.dropdownContent,ref:a,children:t.map((h,f)=>l.jsx("div",{className:u(f),onClick:()=>c(h),children:h},h+f))})]})},cte="_CreditBarChart_1vr58_131",dte={CreditBarChart:cte};mn.register(i2,s2,S2,j2,o2,a2);const pw=({revenues:t})=>{const e=b.useRef(null),[n,r]=b.useState({width:0,height:0});b.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)),C=Math.max(8,Math.min(x,31));let M=0,E=14;const k=E*4*g,L=m*.9;return k>L&&(k>L*1.5?(E=10,M=45):k>L*1.2?(E=12,M=45):M=30),{barThickness:C,maxRotation:M,fontSize:E}})(),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=>Xw(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:dte.CreditBarChart,ref:e,children:l.jsx(Bv,{options:p,data:f})})},ute="_creditUsageChartContainer_17paa_131",hte="_creditUsageChartHeader_17paa_142",fte="_options_17paa_160",pte="_option_17paa_160",mte="_color_17paa_175",gte="_dropDownContainer_17paa_198",vte="_creditUsageChart_17paa_131",xte="_creditUsageChartError_17paa_217",yte="_creditUsageChartDataNA_17paa_220",wte="_creditUsageChartLoader_17paa_250",B2={creditUsageChartContainer:ute,creditUsageChartHeader:hte,options:fte,option:pte,color:mte,dropDownContainer:gte,creditUsageChart:vte,creditUsageChartError:xte,creditUsageChartDataNA:yte,creditUsageChartLoader:wte};var mw=(t=>(t.Last7Days="Last7Days",t.LastMonth="LastMonth",t.Last3Months="Last3Months",t.Last6Months="Last6Months",t.LastYear="LastYear",t.Today="Today",t.Custom="Custom",t))(mw||{});const vp={Last7Days:"Last 7 Days",LastMonth:"Last Month",Last3Months:"Last 3 Months",Last6Months:"Last 6 Months",LastYear:"Last Year",Today:"Today",Custom:"Custom"},bte=({title:t,selectedTimeFrame:e,creditUsageData:n,isLoading:r,isError:i,setSelectedTimeFrame:s})=>{const a=()=>l.jsx("div",{className:B2.creditUsageChartLoader,children:l.jsx($1,{width:"24",height:"24"})}),o=()=>l.jsx("div",{className:B2.creditUsageChartError,children:l.jsx("span",{className:B2.creditUsageChartDataNA,children:"No data to show yet"})});return l.jsxs("div",{className:B2.creditUsageChartContainer,children:[l.jsxs("div",{className:B2.creditUsageChartHeader,children:[l.jsx("h3",{children:t}),l.jsxs("div",{className:B2.options,children:[l.jsxs("div",{className:B2.option,children:[l.jsx("div",{className:B2.color}),l.jsx("span",{children:"Email credits"})]}),l.jsxs("div",{className:B2.option,children:[l.jsx("div",{className:B2.color}),l.jsx("span",{children:"Phone credits"})]}),l.jsx("div",{className:B2.dropDownContainer,children:l.jsx(xc,{dropDownText:vp[e],children:Object.values(mw).filter(c=>!["Today","Custom"].includes(c)).map((c,u)=>l.jsx(Cc,{onClick:()=>s(c),text:vp[c],active:e===c},u))})})]})]}),r?a():i?o():l.jsx("div",{className:B2.creditUsageChart,children:l.jsx(pw,{revenues:n})})]})};function Cte({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]=b.useState(o),p=b.useRef(null),m=b.useRef(null),[g,v]=b.useState({top:0,left:0,width:0,isVisible:!1}),x=Ro({"dropDownButton--KebabContainer":!0}),C=Ro({"dropDownButton--Generic":!0}),M=()=>{var fe;if(!p.current)return;const L=p.current.getBoundingClientRect(),D=(fe=m.current)==null?void 0:fe.getBoundingClientRect(),N=10,I=window.innerHeight,H=(D==null?void 0:D.height)||0,re={top:L.top+L.height+H+N>I?L.top-H-N:L.top+L.height+N,left:L.left,width:L.width};v({...re,isVisible:H>0})},E=()=>{f(L=>!L),M(),c==null||c(!h)};function z(L){var D,N,I;!((D=m==null?void 0:m.current)!=null&&D.contains(L.target))&&!Array.from(((N=a==null?void 0:a.current)==null?void 0:N.querySelectorAll("*"))||[]).some(H=>H.contains(L.target))&&!((I=p==null?void 0:p.current)!=null&&I.contains(L.target))&&f(!1)}function k(){c==null||c(!1),f(!1)}return b.useEffect(()=>(document==null||document.addEventListener("mousedown",z),document==null||document.addEventListener("wheel",k),()=>{document==null||document.removeEventListener("mousedown",z),document==null||document.removeEventListener("wheel",k)}),[]),b.useEffect(()=>{o!==void 0&&o!==h&&f(o)},[o]),b.useEffect(()=>{var N;const L=(N=m.current)==null?void 0:N.getBoundingClientRect(),D=(L==null?void 0:L.height)||0;!g.isVisible&&D&&M()},[g]),l.jsxs("div",{className:x,"data-cy":s,children:[l.jsxs("button",{type:"button",className:C,onClick:E,ref:p,disabled:i,style:{width:r,maxWidth:n},children:[l.jsxs("div",{className:"calendar-icon",children:[l.jsx(de,{iconType:"calendar",iconSize:"16"}),l.jsx("span",{style:{textOverflow:"ellipsis",maxWidth:n},children:t})]}),l.jsx("div",{className:"rightIcon",children:l.jsx(de,{iconType:h?"cheveronUp":"cheveronDown",iconSize:"16"})})]}),qi.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 Ete=({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=ge({"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(de,{iconType:a,iconSize:"16"}),e,c,n&&l.jsx("p",{children:n})]})})},Ate=t=>{var i;const e=(i=t.eventsData)==null?void 0:i.find(s=>{const a=new Date(s.date);return a.getDate()===t.date.getDate()&&a.getMonth()===t.date.getMonth()&&a.getFullYear()===t.date.getFullYear()}),n=t.date.getTime()>new Date().getTime(),r=ge({"daypicker-day-cell-content":!0,disabled:n});return l.jsx(k1,{content:(e==null?void 0:e.name)||"",toolTipPosition:"top",isDisabled:!e,children:l.jsxs("span",{className:r,children:[t.date.getDate(),!!e&&l.jsx("span",{className:"event-dot"})]})})};function Mte({onDateSelected:t,initialValue:e,eventsData:n,timezone:r,customRootElem:i,isOpen:s}){const[a,o]=b.useState(!!s),[c,u]=b.useState(new Date),[h,f]=b.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=H=>{H.stopPropagation();const J=new Date(c);J.setMonth(c.getMonth()-1),u(J)},x=H=>{H.stopPropagation();const J=new Date(c);J.setMonth(c.getMonth()+1),u(J)},C=H=>{const J=H.toLocaleString("en-US",{month:"long"});return l.jsxs("div",{className:"datePicker-customCaption",children:[l.jsx("span",{className:"datePicker-prevMonthArrow",onClick:v,children:l.jsx(de,{iconType:"arrowLeft",iconSize:"32"})}),J," ",H.getFullYear(),l.jsx("span",{className:"datePicker-nextMonthArrow",onClick:x,children:l.jsx(de,{iconType:"arrowRight",iconSize:"32"})})]})},M=H=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][H.getDay()],[E,z]=b.useState({x:0,y:0,direction:"top"}),k=b.useRef(null),L=b.useRef(null),D=()=>{if(L.current){const H=L.current.getBoundingClientRect();let J=H.y+H.height+8,re="top";const fe=H.x-H.width-90;450>window.innerHeight-H.y&&(re="bottom",J=window.innerHeight-H.y+8),z({y:J,x:fe,direction:re})}},N=H=>{H&&h&&u(h),D(),o(H)},I=H=>{const J=H.target;k.current&&L.current&&J!==k.current&&!k.current.contains(J)&&!L.current.contains(J)&&N(!1)};return b.useEffect(()=>(window.addEventListener("click",I),window.addEventListener("wheel",D),()=>{window.removeEventListener("click",I),window.removeEventListener("wheel",D)}),[]),b.useEffect(()=>{e&&f(e)},[e]),b.useEffect(()=>{a&&!s&&o(!1)},[s]),l.jsxs("div",{className:"datePickerDropdown--Active",ref:L,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(de,{iconType:"calendar",iconSize:"16"})]}),a&&qi.createPortal(l.jsx("div",{className:`${a?"":"datePickerCalender--hidden"} datePickerCalender-Container`,ref:k,style:{[E.direction]:E==null?void 0:E.y,left:E==null?void 0:E.x},children:l.jsx(px,{disableNavigation:!0,mode:"single",month:c,modifiersClassNames:{selected:"datePicker-mySelected",today:"datePicker-myToday"},selected:h,onSelect:(...H)=>{H!=null&&H[0]&&H[0].getTime()<=new Date().getTime()&&(f(H[0]),t(H[0]))},footer:g,formatters:{formatCaption:C,formatWeekdayName:M},showOutsideDays:!0,components:{DayContent:H=>l.jsx(Ate,{date:H.date,displayMonth:H.displayMonth,eventsData:n})},classNames:{day:"datepicker-day-cell"}})}),i||document.body)]})}const kte="_parentInputfield_rtdb0_131",Ste="_inputFieldGeneric_rtdb0_151",Fte="_errorInputField_rtdb0_198",jte="_passwordToggle_rtdb0_218",_a={parentInputfield:kte,inputFieldGeneric:Ste,errorInputField:Fte,passwordToggle:jte},zte=({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]=b.useState(!1),C=()=>{x(E=>!E)},M=Ro({[_a.inputFieldGeneric]:!0,[_a.errorInputField]:a});return l.jsxs("div",{className:_a.parentInputfield,children:[l.jsxs("div",{className:M,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:_a.passwordToggle,onClick:C,"data-cy":m,children:v?l.jsx(de,{iconType:"eye",iconSize:"16"}):l.jsx(de,{iconType:"eyeOff",iconSize:"16"})})]}),a&&l.jsx("span",{children:u})]})},Lte=({type:t="success",label:e,heading:n="Wow so easy!",subText:r="",boldText:i="",showToast:s=!1,showButtons:a=!1,btnText:o="Apply",onBtnClick:c=()=>{},onClose:u=()=>{},delay:h})=>{const f=m=>{switch(m){case"success":return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"};case"warning":return{icon:"exclamationCircleFilled",label:"Warning",className:"headingWarning"};default:return{icon:"tickCircleFilled",label:"Success",className:"headingSuccess"}}},p=()=>{const m=f(t),g=e||m.label;Qt(({closeToast:v})=>l.jsxs("div",{className:"genericToast--body",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"headingRow",children:[l.jsxs("span",{className:m.className,children:[l.jsx(de,{iconType:m.icon,iconSize:"18"}),g]}),l.jsx("button",{className:"customCloseButton",onClick:v,children:l.jsx(de,{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(D1,{onClick:c,showIcon:!1,sizeVariant:"sm",text:o,colorVariant:"orange"})})]}),{position:"top-right",hideProgressBar:!0,closeOnClick:!1,pauseOnHover:!1,draggable:!0,progress:void 0,theme:"dark",closeButton:!1,onClose:()=>{u()},autoClose:h!==void 0?h:!1})};return b.useEffect(()=>{s&&p()},[]),l.jsx("div",{children:l.jsx(bc,{limit:1,closeButton:!0})})},Rte=({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})]}),Dte=({isSelected:t=!1,isDisabled:e=!1,text:n="NB Button",navbarIcon:r="home",props:i={},onClick:s=()=>{}})=>{const a=ge({"navbarButton--Generic":!0,"navbarButton--Selected":t,"navbarButton--Unselected":!t});return l.jsxs("button",{disabled:e,className:a,onClick:s,...i,children:[l.jsx(de,{iconType:r,iconSize:"18"}),n]})},Nte=({props:t={},navbarTabs:e=[],dropdownItemList:n,onLabelClick:r,isCompleted:i=!1,isTimerShown:s=!1,onViewClick:a,name:o="John Doe"})=>{const c=ge({topNavbarGeneric:!0});return l.jsxs("div",{className:"topNavbar",children:[l.jsxs("div",{className:c,...t,children:[l.jsx(de,{iconType:"qluLogo",iconSize:"32"}),l.jsx("span",{className:"topNavbarGenericButtonsContainer",children:e.map((u,h)=>l.jsx(Dte,{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(de,{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(vc,{className:"rssTimer"})]}):l.jsx(l.Fragment,{}),l.jsx(uw,{onLabelClick:r,dropdownItemList:n,name:o})]})]})},gw=({count:t=1,onClick:e,dataCy:n,isDisabled:r})=>{const i=ge({"countCancelButton--Generic":!0});return l.jsxs("button",{className:i,onClick:e,"data-cy":n,disabled:r,children:[t,l.jsx(de,{iconType:"cross",iconSize:"14"})]})},Tte=({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=ge({"searchFilterButton--Generic":!0,"searchFilterButton--Selected":e!==0}),p=ge({"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(de,{iconType:"boldPlus",iconSize:"18"})}):l.jsx(de,{iconType:n,iconSize:"18"}),t]}),r&&l.jsxs("span",{className:"searchFilterButton-FitlerDetails",children:[l.jsx("span",{className:"searchFilterButton-FitlerDetails-SpinningPlus",children:l.jsx(de,{iconType:"boldPlus",iconSize:"18"})}),t]}),e!==0&&!r&&l.jsx("div",{className:"searchFilterButton-RigthIcon",children:l.jsx(gw,{count:e,onClick:s,dataCy:o,isDisabled:h})})]})},Bte=({images:t=[],initials:e=[],iconSize:n="24",counter:r=0})=>l.jsxs("div",{className:"avatarGroup",children:[t.map(i=>l.jsx(l2,{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,{})]}),Ite=({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}),Pte=({isDisabled:t=!1,sizeVariant:e="xs",variant:n="primary",color:r="orange",iconType:i="searchArrow",iconSize:s="24",onClick:a})=>{const o=ge({[`${e}Size--SearchSvgButton`]:!0,[`${n}-${r}--SearchSvgButton`]:!0});return l.jsx("button",{disabled:t,onClick:a,className:o,children:l.jsx(de,{iconType:i,iconSize:s})})},Ec=({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(Wy,{text:t,length:i})});mn.register(z0,In,on,rr,o2,a2);const P6=({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(qH,{data:i,options:e})},Vte=({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(de,{iconType:a.iconType,iconSize:"18"}),a.name]},o))})]})};exports.AIAnalysisCard=vee;exports.AIAssistant=hi;exports.AIAssistantDetails=uee;exports.AIDetailsCard=hi;exports.AdvanceFilterJobTItleV2=sC;exports.AdvanceFilterTitleWindow=iC;exports.AreaChart=iW;exports.AssignmentBreadCrumb=Rw;exports.AssignmentCreation=yz;exports.AssignmentIdealProfileCard=Rz;exports.AssignmentInfoSubHeader=wz;exports.AssignmentShimmer=xee;exports.AuthNavBar=$M;exports.AuthNavbarLogoSvg=Yp;exports.AuthPhoneNumberInput=Jp;exports.AvatarGroup=Bte;exports.BadgeNonClickable=Qp;exports.BadgeWithCount=rl;exports.BarLineChart=QH;exports.BusinessUnitViewTabsComponent=TW;exports.CampaignMessage=nI;exports.CampaignSubject=sW;exports.CampaignTableShimmer=X$;exports.CardsRow=pee;exports.ChatClickableCard=aW;exports.ChatDropDown=Iv;exports.ChatLoadingWidget=kee;exports.ChatPeopleCard=oW;exports.ChatPopup=lW;exports.CheckboxComponent=ir;exports.ChevronDropDown=uw;exports.CircularIcon=l2;exports.CircularSvgAndEmoji=dW;exports.ClickableCard=dw;exports.ClickableFilterBadge=uW;exports.ClickableText=D1;exports.ColoredButton=hW;exports.CompanyBarChartFinancialTab=T6;exports.CompanyCombinedChartFinancialTab=Gy;exports.CompanyDetailsCard=mW;exports.CompanyLikePillSelectable=gW;exports.CompanyLineChartFinancialTab=ew;exports.CompanyLogoPillSelectable=vW;exports.CompanyPeopleTab=WQ;exports.CompanyPill=mQ;exports.CompanyProductsTab=OQ;exports.CompanyReportsTab=HQ;exports.CompanyTableShimmer=J$;exports.CompanyViewBody=Hv;exports.CompanyViewBussinessUnitTabs=z$;exports.CompanyViewFinancial=Ov;exports.CompanyViewFinancialBody=b$;exports.CompanyViewFinancialGenericTable=S$;exports.CompanyViewFinancialIncomeStatement=k$;exports.CompanyViewFinancialPrivateTabs=E$;exports.CompanyViewFinancialSummary=nw;exports.CompanyViewHeader=Wv;exports.CompanyViewLayout=zW;exports.CompanyViewPeople=Vv;exports.CompanyViewSummary=Pv;exports.CompanyViewSummaryNewsCompoment=j$;exports.CompanyViewSummaryNewsTabs=F$;exports.CompanyViewTabsComponent=Gv;exports.CompetitorsCompanyTab=VQ;exports.ConnectDropdown=uQ;exports.ContinuousRangeComponent=tte;exports.CountCancelButton=gw;exports.CreditBarChart=pw;exports.CreditManagementDatePicker=Mte;exports.CreditManagementDropdownButton=Cte;exports.CreditManagementDropdownItem=Ete;exports.CreditUsageChart=bte;exports.DatePicker=PK;exports.DateTimePicker=v$;exports.DoughnutChart=rW;exports.DropDown=lw;exports.DropDownButton=xc;exports.DropDownForm=lte;exports.DropDownGeneric=x$;exports.DropdownChildButton=Cc;exports.DropdownComponent=mx;exports.DropdownWithSvg=cee;exports.EllipsisPillNotClickable=Ite;exports.EllipsisText=ln;exports.EnrichmentPersonTable=Cee;exports.EntityTable=Tee;exports.FeedbackButton=VK;exports.FileUpload=Rte;exports.FilterAddRemoveBadge=OK;exports.FilterAndSortDropdown=WK;exports.GetSvgIcon=de;exports.IconButton=On;exports.InputField=GK;exports.InputFieldForm=zte;exports.InputFieldWithSvg=gx;exports.LineChart=C$;exports.Loader=$1;exports.LogoButton=lq;exports.LookAlikeProfiles=PQ;exports.Modal=cq;exports.MultiChart=tw;exports.NoteEditor=IQ;exports.NumberInputField=nc;exports.NumberInputFieldWithLimit=dq;exports.NumberStringInput=lee;exports.OTPComponent=uq;exports.PayChart=Ree;exports.PeerSalaryChart=L$;exports.PeopleCard=pQ;exports.PersonCompanyNameClickable=Fr;exports.PersonStatisticsChart=YQ;exports.PersonStatsView=KQ;exports.PersonViewBody=mq;exports.PersonViewExperienceCard=Ux;exports.PersonViewExperienceDetails=Gx;exports.PersonViewGrowthChart=R$;exports.PersonViewHeader=vq;exports.PersonViewHeaderSummary=Aee;exports.PersonViewInfo=gq;exports.PersonViewSummary=Yx;exports.PersonViewTabsComponent=xq;exports.PhoneNumberInputField=Jp;exports.Pill=Mee;exports.PrimaryButton=er;exports.PrimaryRadioButton=See;exports.PrivateFinancialsLineGraph=jee;exports.ProductDetailsViewTabsComponent=OW;exports.ProfileListShimmer=yee;exports.ProfileTableShimmer=q$;exports.ProgressBar=Kx;exports.PromptField=cW;exports.QChatShimmer=Eee;exports.RadarChart=P6;exports.RadioButton=cw;exports.RangeComponent=rc;exports.RectangularIcon=sr;exports.RectangularSvgButton=yq;exports.RoundDetailsShimmer=Q$;exports.RoundSettingModal=dee;exports.SavedSearches=dQ;exports.SearchArrowButton=Pte;exports.SearchCompanyTable=qx;exports.SearchCompanyTableContainer=Sq;exports.SearchFilterButton=Tte;exports.SearchLocationDropdown=wq;exports.SearchPersonTable=Zx;exports.SearchPersonTableContainer=Mq;exports.SearchTabsBar=Fq;exports.SearchTimer=vc;exports.SecondaryButton=Yi;exports.SectionSeparator=Lee;exports.Select=zee;exports.SelectDropDown=Y$;exports.SelectItem=fw;exports.SelectablePill=Jee;exports.SelectionDropDown=Xee;exports.SettingsNavbar=Vte;exports.Shimmer=K$;exports.Sidebar=jq;exports.SkillIndustryBadge=_r;exports.StatsChart=A$;exports.StickyNavigationFooter=Z$;exports.StyleableTextAreaContainer=oQ;exports.SwitchLarge=lQ;exports.TabelHeader=Pee;exports.Table=cQ;exports.TableBody=Hee;exports.TableCell=Zee;exports.TableNameCell=qee;exports.TablePagination=ic;exports.TableRow=Uee;exports.TableShimmer=see;exports.Tabs=Py;exports.TagButtonComponent=Vy;exports.TemplateCard=hee;exports.TemplateDetailCard=mee;exports.TemplateTableShimmer=_$;exports.TertiaryButton=Ds;exports.TextArea=oee;exports.TextAreaWithTooltip=aee;exports.TextBoxWithSuggestions=eee;exports.TextButton=qp;exports.TextDropdown=nee;exports.TextPillNotClickable=Ec;exports.TextWithSvgButton=Oy;exports.TimePicker=ree;exports.ToastWithButton=wee;exports.ToastWithButtonV2=Lte;exports.ToggleComponent=Hy;exports.Tooltip=k1;exports.TopNavbar=Nte;exports.TruncateText=Wy;exports.VariantsList=iee;exports.WelecomeToastComponent=U$;
@@ -66592,7 +66592,7 @@ const m$ = ({ revenues: t }) => {
66592
66592
  maxRotation: A,
66593
66593
  fontSize: C
66594
66594
  };
66595
- })(), a = t.map((m) => m.quater), o = t.map((m) => m.amount), c = t.map((m) => m.phoneAmount), u = Math.max(...o), h = u <= 10 ? 10 : u + u * 0.1, f = {
66595
+ })(), 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 * 0.1, 2), f = {
66596
66596
  labels: a,
66597
66597
  datasets: [
66598
66598
  {
@@ -73,7 +73,7 @@ const CreditBarChart = ({ revenues }) => {
73
73
  const values = revenues.map((data) => data.amount);
74
74
  const phoneValues = revenues.map((data) => data.phoneAmount);
75
75
  const maxValue = Math.max(...values);
76
- const fixedMax = maxValue <= 10 ? 10 : maxValue + maxValue * 0.1;
76
+ const fixedMax = maxValue + Math.max(maxValue * 0.1, 2);
77
77
  const data = {
78
78
  labels,
79
79
  datasets: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qlu-20-ui-library",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",