1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1511],{1479:(e,t,n)=>{(e.exports=n(60335)).tz.load(n(13557))},15162:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/partner/account/user",function(){return n(88701)}])},17183:e=>{e.exports={"nav-item":"Filters_nav-item___jjhN","tab-button":"Filters_tab-button__uLFis","scroll-tabs":"Filters_scroll-tabs__2wb4z",nav:"Filters_nav__ZcOXF","process-list":"Filters_process-list__LUl18",item:"Filters_item__OJnPx","progress-bar":"Filters_progress-bar__NnQPz",deadline:"Filters_deadline__xtmdI","content-block":"Filters_content-block__yj7SO","info-section":"Filters_info-section__X9Jng","process-section":"Filters_process-section__YOQtD",tools:"Filters_tools__PIumC","filters-container":"Filters_filters-container__0oPsz","filter-item":"Filters_filter-item__Wi6FD","select-group":"Filters_select-group__xtCQy","select-btn":"Filters_select-btn__nn1Y9",title:"Filters_title__LxX5l",content:"Filters_content__Rr4dT","item-content":"Filters_item-content__8IbUH",label:"Filters_label__lL03p","selected-item":"Filters_selected-item___Xni1","select-content":"Filters_select-content__YCom0",open:"Filters_open__u4w23",candidates:"Filters_candidates__3bCmM",backgrounded:"Filters_backgrounded__heBQm",award:"Filters_award__jfiek",icon:"Filters_icon__wrZ9W",all:"Filters_all__PUC1q",review:"Filters_review__SubGv",draft:"Filters_draft__3HtvE",scheduled:"Filters_scheduled__OHinG",active:"Filters_active__LWrrn","search-section":"Filters_search-section__owGtD",search:"Filters_search__jv_QT","input-group":"Filters_input-group__hDSjs","search-data":"Filters_search-data__V17Ri","show-flex":"Filters_show-flex__J7__8",hide:"Filters_hide__KOzjD"}},42839:e=>{e.exports={"add-button":"Filters_add-button__AsxDv","search-filter":"Filters_search-filter__TxuOz"}},44700:e=>{e.exports={"bg-black":"style_bg-black__Alm5y","bg-white":"style_bg-white__bshbF","bg-eclipse":"style_bg-eclipse__0Dye6","bg-dark-light-gray":"style_bg-dark-light-gray__OgCwa","bg-light-gray":"style_bg-light-gray__NHEJ0","bg-lightdark-gray":"style_bg-lightdark-gray__nu_yN","bg-blue-light2":"style_bg-blue-light2__vUGMr","bg-red-light2":"style_bg-red-light2__d_bTP","bg-yellow-light2":"style_bg-yellow-light2__KaMYF","bg-green-light2":"style_bg-green-light2__ZnqHu","bg-gray4":"style_bg-gray4__Q0hyg","bg-gray2":"style_bg-gray2__ZBCtS","bg-gray3":"style_bg-gray3__zajks","bg-gold":"style_bg-gold__8IFqq","text-gold":"style_text-gold__THHin","text-white":"style_text-white__XEICv","text-gray-3":"style_text-gray-3__j4UjQ","text-gray-5":"style_text-gray-5__KY0TE","bg-red":"style_bg-red__BHSN0","bg-dark":"style_bg-dark__TMl2P","border-gray":"style_border-gray__mTAT7","input-container":"style_input-container__07pED","custom-input-container":"style_custom-input-container__BcnI9",box:"style_box__UgJBy","box-input-container":"style_box-input-container__LqRdh",title:"style_title__Izy3N",dashed:"style_dashed__341Ok","password-icon":"style_password-icon__n3mUw"}},55494:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var a=n(37876),s=n(17183),r=n.n(s),i=n(69241),o=n(54587),l=n.n(o);let c=n.p+"static/media/search.e265736c.svg";var d=n(84123),u=n(14232);let _=function({handleChange:e,value:t,prop:n,gridClass:s}){let o=(0,u.useRef)(null);return(0,u.useEffect)(()=>
1{let t=o.current,a=a=>{("Enter"===a.key||13===a.keyCode)&&(e(n,a.target.value),t.value="")};return t.addEventListener("keyup",a),()=>t.removeEventListener("keyup",a)},[]),(0,a.jsx)("div",{className:(0,i.A)(r()["filter-item"],r()["search-section"],s),children:(0,a.jsxs)("div",{className:r().search,children:[(0,a.jsxs)("div",{className:(0,i.A)(r()["input-group"],t&&r().hide),children:[(0,a.jsx)("div",{className:r().icon,children:(0,a.jsx)(l(),{src:c,alt:"search icon"})}),(0,a.jsx)("input",{ref:o,className:r()["search-input"],placeholder:"Search"})]}),(0,a.jsx)("div",{className:r()["search-data"],children:t&&(0,a.jsxs)("div",{className:`${r().item} align-items-center d-flex`,children:[t,(0,a.jsx)(l(),{src:d,alt:"clear search",onClick:()=>{e(n,"")}})]})})]})})}},56650:e=>{e.exports={"bg-black":"style_bg-black__Vze7k","bg-white":"style_bg-white__QNnpA","bg-eclipse":"style_bg-eclipse__fvdKK","bg-dark-light-gray":"style_bg-dark-light-gray__LsZDr","bg-light-gray":"style_bg-light-gray__W_6Lv","bg-lightdark-gray":"style_bg-lightdark-gray__7nfoo","bg-blue-light2":"style_bg-blue-light2__D0KBx","bg-red-light2":"style_bg-red-light2__5_veR","bg-yellow-light2":"style_bg-yellow-light2__oX7jY","bg-green-light2":"style_bg-green-light2__yGoc4","bg-gray4":"style_bg-gray4__1pi6B","bg-gray2":"style_bg-gray2__BXbiA","bg-gray3":"style_bg-gray3__BKd__","bg-gold":"style_bg-gold__ssO11","text-gold":"style_text-gold___4KI_","text-white":"style_text-white__kYNAY","text-gray-3":"style_text-gray-3___IUVH","text-gray-5":"style_text-gray-5__bow7A","bg-red":"style_bg-red__gGKi5","bg-dark":"style_bg-dark__GPO0Q","border-gray":"style_border-gray__g7dLS","input-container":"style_input-container__ziTJg","custom-input-container":"style_custom-input-container__AOet5",box:"style_box__dPRsj","box-input-container":"style_box-input-container__p2RA_","css-xyedy-Control":"style_css-xyedy-Control__vIKkr",title:"style_title__SaDIY",bg:"style_bg__nJVRw",dashed:"style_dashed__zzNvZ"}},58353:(e,t,n)=>{"use strict";n.d(t,{KR:()=>o,Yx:()=>r,m4:()=>i,yy:()=>l});var a=n(1479),s=n.n(a);function r(e){return s().tz(e,"Europe/Berlin").format("YYYY-MM-DD")}function i(e=Date.now()){let t=s().tz(e,"Europe/Berlin");return{year:t.get("year"),month:t.get("month")+1,day:t.get("date")}}let o=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(e){return new Promise(t=>setTimeout(t,e))}},60335:function(e,t,n){var a,s,r;!function(i,o){"use strict";e.exports?e.exports=o(n(10841)):(s=[n(10841)],void 0===(r="function"==typeof(a=o)?a.apply(t,s):a)||(e.exports=r))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n,a={},s={},r={},i={},o={};e&&"string"==typeof e.version||z("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var l=e.version.split("."),c=+l[0],d=+l[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function _(e){var t,n=0,a=e.split("."),s=a[0],r=a[1]||"",i=1,o=0,l=1;for(45===e.charCodeAt(0)&&(n=1,l=-1);n<s.length;n++)o=60*o+(t=u(s.charCodeAt(n)));for(n=0;n<r.length;n++)i/=60,o+=(t=u(r.charCodeAt(n)))*i;return o*l}function m(e){for(var t=0;t<e.length;t++)e[t]=_(e[t])}function p(e,t){var n,a=[];for(n=0;n<t.length;n++)a[n]=e[t[n]];return a}function g(e){var t=e.split("|"),n=t[2].split(" "),a=t[3].split(""),s=t[4].split(" ");m(n),m(a),m(s);for(var r=a.length,i=0;i<r;i++)s[i]=Math.round((s[i-1]||0)+6e4*s[i]);return s[r-1]=1/0,{name:t[0],abbrs:p(t[1].split(" "),a),offsets:p(n,a),untils:s,population:0|t[5]}}function h(e){e&&this._set(g(e))}function f(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function v(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function x(e){return(e||"").toLowerCase().replace(/\//g,"_")}function N(e){var t,n,s,r;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a[r=x(n=(s=e[t].split("|"))[0])]=e[t],i[r]=n,function(e,t){var n,a;for(m(t),n=0;n<t.length;n++)o[a=t[n]]=o[a]||{},o[a][e]=!0}(r,s[2].split(" "))}function j(e,t){var n,r=a[e=x(e)];return r instanceof h?r:"string"==typeof r?(r=new h(r),a[e]=r,r):s[e]&&t!==j&&(n=j(s[e],j))?((r=a[e]=new h)._set(n),r.name=i[e],r):null}function w(e){var t,n,a,r;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a=x((n=e[t].split("|"))[0]),r=x(n[1]),s[a]=r,i[a]=n[0],s[r]=a,i[r]=n[1]}function A(e){return A.didShowError||(A.didShowError=!0,z("moment.tz.zoneExists('"+e+"') has been deprecated
1in favor of !moment.tz.zone('"+e+"')")),!!j(e)}function C(e){var t="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!t)}function z(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function I(t){var n,a=Array.prototype.slice.call(arguments,0,-1),s=arguments[arguments.length-1],r=e.utc.apply(null,a);return!e.isMoment(t)&&C(r)&&(n=j(s))&&r.add(n.parse(r),"minutes"),r.tz(s),r}(c<2||2===c&&d<6)&&z("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),h.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,a=t.length;if(e<t[0])return 0;if(a>1&&t[a-1]===1/0&&e>=t[a-2])return a-1;if(e>=t[a-1])return -1;for(var s=0,r=a-1;r-s>1;)t[n=Math.floor((s+r)/2)]<=e?s=n:r=n;return r}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter(function(t){return -1!==r[t].zones.indexOf(e)})},parse:function(e){var t,n,a,s,r=+e,i=this.offsets,o=this.untils,l=o.length-1;for(s=0;s<l;s++)if(t=i[s],n=i[s+1],a=i[s?s-1:s],t<n&&I.moveAmbiguousForward?t=n:t>a&&I.moveInvalidForward&&(t=a),r<o[s]-6e4*t)return i[s];return i[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return z("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},I.version="0.6.0",I.dataVersion="",I._zones=a,I._links=s,I._names=i,I._countries=r,I.add=N,I.link=w,I.load=function(e){N(e.zones),w(e.links),function(e){var t,n,a,s;if(e&&e.length)for(t=0;t<e.length;t++)n=(s=e[t].split("|"))[0].toUpperCase(),a=s[1].split(" "),r[n]=new f(n,a)}(e.countries),I.dataVersion=e.version},I.zone=j,I.zoneExists=A,I.guess=function(e){return(!n||e)&&(n=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[x(e)];if(t)return t;z("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,a,s,r=function(){var e,t,n,a,s=new Date().getFullYear()-2,r=new y(new Date(s,0,1)),i=r.offset,o=[r];for(a=1;a<48;a++)(n=new Date(s,a,1).getTimezoneOffset())!==i&&(o.push(e=function(e,t){for(var n,a;a=((t.at-e.at)/12e4|0)*6e4;)(n=new y(new Date(e.at+a))).offset===e.offset?e=n:t=n;return e}(r,t=new y(new Date(s,a,1)))),o.push(new y(new Date(e.at+6e4))),r=t,i=n);for(a=0;a<4;a++)o.push(new y(new Date(s+a,0,1))),o.push(new y(new Date(s+a,6,1)));return o}(),l=r.length,c=function(e){var t,n,a,s,r=e.length,l={},c=[],d={};for(t=0;t<r;t++)if(a=e[t].offset,!d.hasOwnProperty(a)){for(n in s=o[a]||{})s.hasOwnProperty(n)&&(l[n]=!0);d[a]=!0}for(t in l)l.hasOwnProperty(t)&&c.push(i[t]);return c}(r),d=[];for(a=0;a<c.length;a++){for(s=0,n=new b(j(c[a]),l);s<l;s++)n.scoreOffsetAt(r[s]);d.push(n)}return d.sort(v),d.length>0?d[0].zone.name:void 0}()),n},I.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(a[e]||a[s[e]])&&i[e]&&t.push(i[e]);return t.sort()},I.Zone=h,I.unpack=g,I.unpackBase60=_,I.needsOffset=C,I.moveInvalidForward=!0,I.moveAmbiguousForward=!1,I.countries=function(){return Object.keys(r)},I.zonesForCountry=function(e,t){if(!(e=r[e.toUpperCase()]||null))return null;var n=e.zones.sort();return t?n.map(function(e){var t=j(e);return{name:e,offset:t.utcOffset(new Date)}}):n};var k=e.fn;function F(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function S(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=I,e.defaultZone=null,e.updateOffset=function(t,n){var a,s=e.defaultZone;if(void 0===t._z&&(s&&C(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(s.parse(t),"minutes")),t._z=s),t._z)if(16>Math.abs(a=t._z.utcOffset(t))&&(a/=60),void 0!==t.utcOffset){var r=t._z;t.utcOffset(-a,n),t._z=r}else t.zone(a,n)},k.tz=function(t,n){if(t){if("string"!=typeof t)throw Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=j(t),this._z?e.updateOffset(this,n):z("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},k.zoneName=F(k.zoneName),k.zoneAbbr=F(k.zoneAbbr),k.utc=S(k.utc),k.local=S(k.local),t=k.utcOffset,k.utcOffset=function(){return arguments.length>0&&(this._z=null),t.apply(this,arguments)},e.tz.setDefault=function(t){return(c<2||2===c&&d<9)&&z("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?j(t):null,e};var E=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(E)?(E.push("_z"),E.push("_a")):E&&(E._z=null),e})}
1,84123:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/xmark.a77f10ae.svg"},88701:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>et,default:()=>en});var a=n(37876),s=n(82709),r=n(63630),i=n(37663),o=n(5824),l=n(60117),c=n(17183),d=n.n(c),u=n(55494);let _=n.p+"static/media/Plus.63057674.svg";var m=n(42839),p=n.n(m),g=n(54587),h=n.n(g),f=n(93736),y=n(14232),b=n(10841),v=n.n(b),x=n(69964),N=n.n(x),j=n(69241);function w({item:e,calculatePositionOfStickyHeaders:t,config:n,index:s}){return(0,a.jsx)("td",{className:`text-${n.direction||"center"} ${0===s?N()["first-cell"]:""} align-middle`,style:{...t(n),paddingRight:26,paddingLeft:26},children:e[n.prop]})}var A=n(56650),C=n.n(A);function z(e){let t={className:`prevent input-field ${e.inputClass||""}`,type:e.type||"text",value:e.value,onChange:e.handleChange,disabled:e.disabled,name:e.name};return e.validate&&(t.onBlur=t=>{e.validate(t.target.value)}),(0,a.jsxs)("div",{className:`${C()["input-container"]} ${e.validationError&&"invalid"} ${e.className||""} ${C()["box-input-container"]} ${e.custom&&C()["custom-input-container"]}`,children:[(0,a.jsxs)("div",{className:`d-flex align-items-center ${C().box}`,children:[(0,a.jsx)("div",{className:"h-100 d-flex justify-content-center align-items-center",children:(0,a.jsx)("div",{className:`${C().title} ${e.placeholder?"":"d-none"}`,children:e.placeholder})}),(0,a.jsx)("div",{className:(0,j.A)(C()["input-container"],"flex-grow-1"),children:(0,a.jsx)("input",{...t,style:{color:t.disabled&&"#BDC0C6"}})})]}),e.validationError&&(0,a.jsx)("p",{className:"input-validation-error mt-1 text-left",children:e.validationError})]})}let I=y.memo(function({item:e,prop:t,placeholder:n,custom:s,disabled:r,handleChange:i}){return(0,a.jsx)(z,{type:"text",value:e[t]||"",placeholder:n,inputClass:"form-control",disabled:r,className:"dashed",custom:s,handleChange:e=>{r||i(t,e.target.value)}})});var k=n(83903),F=n(6413),S=n(91075);let E=y.memo(function({item:e,handleChange:t}){let[n,s]=(0,y.useState)(!1),[r,i]=(0,y.useState)(void 0),o=e.avatar||r&&r.success,l=e?.avatar||r?.liveURL;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:(0,j.A)(N()["image-container"],"d-flex","align-items-center","justify-content-center","bg-white","ms-3","me-3","pointer","position-relative","border-gray"),onClick:()=>s(!0),children:[e.avatar&&(0,a.jsx)("div",{className:(0,j.A)(N()["delete-avatar-container"],"position-absolute"),children:(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),t("avatar",null),t("logoId",null)},className:"btn-link position-absolute",children:(0,a.jsx)("img",{src:S.src,alt:"delete icon",className:N()["btn-image"]})})}),(0,a.jsx)("div",{className:N()["avatar-container"],children:e.avatar?(0,a.jsx)("img",{src:e.avatar,alt:e.firstName,className:N()["avatar-image"]}):o?(0,a.jsx)("img",{src:l,className:N()["avatar-image"]}):(0,a.jsxs)("button",{type:"button",className:"btn-link",children:[(0,a.jsx)("img",{src:F.src,alt:"add icon"}),(0,a.jsx)("div",{className:(0,j.A)("text-center","mt-2",N()["add-avatar-text"]),children:"Avatar"})]})}),n&&(0,a.jsx)(k.A,{type:"users",typeKey:"users",userId:e?._id,onSelect:e=>{t("logoId",e._id),t("avatar",e.liveURL),setTimeout(()=>{s(!1)})},onClose:()=>{s(!1)},onSetUploadList:e=>{i({...e.file})}})]})})});var O=n(95127),D=n.n(O);function P(e){let t={className:`prevent input-field ${e.firstName.inputClass||""}`,type:e.firstName.type||"text",value:e.firstName.value,onChange:e.firstName.handleChange,disabled:e.firstName.disabled,name:e.firstName.name},n={className:`prevent input-field ${e.lastName.inputClass||""}`,type:e.lastName.type||"text",value:e.lastName.value,onChange:e.lastName.handleChange,disabled:e.lastName.disabled,name:e.lastName.name};return e.firstName.validate&&(t.onBlur=t=>{e.lastName.validate(t.target.value)}),e.lastName.validate&&(n.onBlur=t=>{e.lastName.validate(t.target.value)}),(0,a.jsxs)("div",{className:`${D()["input-container"]} ${e.validationError&&"invalid"} ${e.className||""} ${D()["box-input-container"]} ${D()["custom-input-container"]}`,children:[(0,a.jsxs)("div",{className:`d-flex align-items-center ${D().box}`,children:[(0,a.jsx)("div",{className:"h-100 d-flex justify-content-center align-items-center",children:(0,a.jsx)("div",{className:`${D().title} ${e.placeholder?"":"d-none"}`,children:e.placeholder})}),(0,a.jsx)("div",{className:D()["input-container"],children:(0,a.jsx)("input",{...t})}),(0,a.jsx)("div",{className:(0,j.A)(D()["input-container"],"flex-grow-1"),
1children:(0,a.jsx)("input",{...n})})]}),e.validationError&&(0,a.jsx)("p",{className:"input-validation-error mt-1 text-left",children:e.validationError})]})}let M=y.memo(function({item:e,handleChange:t}){let n=n=>({value:e[n],inputClass:"form-control",handleChange:e=>t(n,e.target.value)});return(0,a.jsx)(P,{type:"text",firstName:n("firstName"),lastName:n("lastName"),className:"dashed custom-input-container",placeholder:"NAME"})});var $=n(44700),T=n.n($);function L(e){let t={className:`prevent input-field ${e.inputClass||""}`,type:e.type||"text",value:e.value,onChange:e.handleChange,disabled:e.disabled,name:e.name};return e.validate&&(t.onBlur=t=>{e.validate(t.target.value)}),(0,a.jsxs)("div",{className:`${T()["input-container"]} ${e.validationError&&"invalid"} ${e.className||""} ${T()["box-input-container"]} ${e.custom&&T()["custom-input-container"]}`,children:[(0,a.jsxs)("div",{className:(0,j.A)("d-flex","align-items-center",T().box,"position-relative"),children:[(0,a.jsx)("div",{className:"h-100 d-flex justify-content-center align-items-center",children:(0,a.jsx)("div",{className:`${T().title} ${e.placeholder?"":"d-none"}`,children:e.placeholder})}),(0,a.jsx)("div",{className:(0,j.A)(T()["input-container"],"flex-grow-1"),children:(0,a.jsx)("input",{...t})}),e.icon?e.icon:null]}),e.validationError&&(0,a.jsx)("p",{className:"input-validation-error mt-1 text-left",children:e.validationError})]})}let U=n.p+"static/media/year.32a5100b.svg";var Y=n(14088);let R=y.memo(function({item:e,handleChange:t,custom:n}){return(0,a.jsx)(L,{type:"text",value:e.password||"",placeholder:"PASSWORD",handleChange:e=>t("password",e.target.value),icon:(0,a.jsx)("img",{src:U.src,className:N()["password-icon"],onClick:()=>{t("password",(0,Y.bk)())}}),inputClass:"form-control",className:"",custom:n})}),B=(0,y.createContext)({countries:[]});var W=n(58353);let Z=y.memo(function({item:e,prop:t,placeholder:n,custom:s,disabled:r,handleChange:i}){return(0,a.jsx)(z,{type:"text",value:(0,W.Yx)(e[t])||"-",placeholder:n,inputClass:"form-control",disabled:r,className:"dashed",custom:s,handleChange:e=>{r||i(t,e.target.value)}})}),J=y.memo(function({item:e,prop:t,placeholder:n,custom:s,disabled:r,handleChange:i,defaultText:o}){let l=e.isCompanyAdmin?"Admin":"User";return(0,a.jsx)(z,{type:"text",value:l,placeholder:n,inputClass:"form-control",disabled:r,className:"dashed",custom:s,handleChange:e=>{r||i(t,e.target.value)}})}),K={headers:{id:{index:0,name:"ID",prop:"uniqueId",sticky:!0,style:{minWidth:120},component:w,componentName:"DefaultCell",componentProps:{}},ip:{index:1,name:"IP (LAST LOGIN)",sticky:!0,style:{minWidth:120},component:function({item:e,calculatePositionOfStickyHeaders:t,config:n,index:s}){let{countries:r}=(0,y.useContext)(B),i=r.find(t=>t._id===e.location)??{};return(0,a.jsx)("td",{className:`text-center ${N()["nationality-td"]} ${0===s?N()["first-cell"]:""}`,style:{...t(n),verticalAlign:"middle"},children:(0,a.jsx)("img",{src:i.avatar||"https://upload.jidipi.com/categories/location/worldwide.svg",alt:"nationality",width:28,loading:"lazy"})})},componentName:"NationalityCell",componentProps:{}},name:{index:2,name:"NAME",sticky:!0,style:{minWidth:320},component:f.A,componentName:"NameCell",componentProps:{}},email:{index:3,name:"EMAIL",sticky:!0,style:{minWidth:272},prop:"email",direction:"right",component:w,componentName:"DefaultCell",componentProps:{}},joint:{index:4,name:"JOINT",style:{minWidth:174},component:function({item:e,calculatePositionOfStickyHeaders:t,config:n,index:s}){let r=(0,y.useMemo)(()=>e.registrationDate?v()(e.registrationDate).format("YYYY-MM-DD"):"-",[e.createdAt]);return(0,a.jsx)("td",{className:`text-center ${0===s?N()["first-cell"]:""}`,style:t(n),children:r})},componentName:"JointCell",componentProps:{}},hours:{index:5,name:"HOURS",style:{minWidth:160},component:w,componentName:"DefaultCell",componentProps:{}},upload:{index:6,name:"UPLOAD",style:{minWidth:160},component:w,componentName:"DefaultCell",componentProps:{}}
1,activity:{index:7,name:"ACTIVITY",style:{minWidth:160},component:w,componentName:"DefaultCell",componentProps:{}},lastLogin:{index:8,name:"LAST LOGIN",style:{minWidth:160},component:function({item:e,calculatePositionOfStickyHeaders:t,config:n,config:{prop:s="lastLoginAt"},index:r}){let i=(0,y.useMemo)(()=>e.lastLoginAt?v()(e[s]).format("YYYY-MM-DD hh:mm"):"-",[e.lastLoginAt]);return(0,a.jsx)("td",{className:`text-center ${0===r?N()["first-cell"]:""}`,style:t(n),children:i})},componentName:"LastLoginCell",componentProps:{}},status:{index:9,name:"STATUS",style:{minWidth:140},component:function({item:e,calculatePositionOfStickyHeaders:t,config:n,setUpdating:s,setSelectedItem:r,createUpdateItem:i,getItems:o,activeName:l,unActiveName:c,team:d,index:u,unEditable:_,clickCondition:m}){let[p,g]=(0,y.useState)(e.isActive);return(0,y.useEffect)(()=>{g(e.isActive)},[e.isActive]),(0,a.jsxs)("td",{className:`text-end ${0===u?N()["first-cell"]:""}`,style:{...t(n),...!m({item:e})&&{pointerEvents:"none"}},children:[(0,a.jsx)("span",{className:"me-2",children:p?l:c}),(0,a.jsxs)("label",{className:(0,j.A)(N().switch,"m-0","me-3"),children:[(0,a.jsx)("input",{type:"checkbox",checked:p,onChange:t=>{let n=t.target.checked;if(g(n),"new_user"!==e._id){let t;t=e._id||e.userId,i(_?{isActive:n}:{teamId:e.teamId,userId:t,isActive:n},t),s(!0),setTimeout(()=>{o(),s(!1)},1e3)}else r(e=>({...e,isActive:n}))}}),(0,a.jsx)("span",{className:(0,j.A)(N().slider,N().round)})]})]})},componentName:"StatusCell",componentProps:{activeName:"activate",unActiveName:"deactivate"}}},inputs:{right:{id:{index:0,component:I,componentName:"Input",componentProps:{prop:"uniqueId",disabled:!0,custom:!0,placeholder:"ID"}},role:{index:1,component:J,componentName:"PartnerRoleInput",componentProps:{disabled:!0,custom:!0,placeholder:"ROLE"}},createdAt:{index:2,component:Z,componentName:"Input",componentProps:{prop:"createdAt",disabled:!0,custom:!0,placeholder:"Date"}}},middle:{avatar:{index:3,name:"Avatar",component:E,componentName:"Avatar",componentProps:{}}},left:{name:{index:4,name:"NAME",component:M,componentName:"NameInput",componentProps:{custom:!0}},email:{index:5,name:"EMAIL",component:I,componentName:"Input",componentProps:{prop:"email",placeholder:"EMAIL",custom:!0}},password:{index:6,name:"PASSWORD",component:R,componentName:"PasswordInput",componentProps:{prop:"password",custom:!0}}}},unEditable:!1,noContextMenu:!1,isStaff:!0,initialRow:e=>({_id:"initial_user",uniqueId:"",location:"",firstName:"",lastName:"",email:"",registrationDate:"",avatar:"",logoId:"",roleId:"",isActive:!1,teamId:e._id}),firstInitItemState:e=>({password:"",firstName:"",lastName:"",email:"",avatar:"",logoId:"",team:"",teamName:e.name,roles:[]}),selectExistingUser:(e,t,n)=>(t.roles.push(e),{...t,teamId:n,isExistingUser:!0,roles:t.roles}),resetOnSelectItem:(e,t)=>({uniqueId:e.uniqueId,firstName:e.firstName,lastName:e.lastName,avatar:e.avatar,email:e.email,logoId:e.logoId,teamName:t.name,_id:e._id,userId:e._id,username:e.email,teamId:t._id,roles:e.roles,isExistingUser:e.isExistingUser,createdAt:e.createdAt,isCompanyAdmin:e.isCompanyAdmin}),onAddMemberItemRemap(e,t,n){let a={...e,username:e.email,teamId:e.teamId||t._id};return n.email===e.email&&(delete a.email,delete a.username),"new_user"===a._id&&(delete a._id,delete a.userId),a},clickCondition({item:e}){return!this.unEditable&&"initial_user"!==e._id&&!e.isCompanyAdmin},validationErrors:{firstName:{isValid:!1},lastName:{isValid:!1},email:{isValid:!1},password:{isValid:!1}},addNewMember:()=>{}};function q({handleChange:e,filterParameters:t}){return(0,a.jsxs)("div",{className:d()["filters-container"],children:[(0,a.jsx)("button",{className:p()["add-button"],onClick:()=>{K.addNewMember()},children:(0,a.jsxs)("div",{className:"d-flex justify-content-center align-items-center",children:[(0,a.jsx)(h(),{src:_,alt:"add icon"}),(0,a.jsx)("span",{className:"ms-3",children:"Add"})]})}),(0,a.jsx)(u.A,{handleChange:e,value:t.searchKey,prop:"searchKey",gridClass:p()["search-filter"]})]})}var G=n(71928),H=n(80996);function X({team:e,getItems:t,createUpdateItem:n,deleteItem:s}){let[r,i]=(0,y.useState)([]),o={index:e.users?.length};return(0,y.useEffect)(()=>{i(e.users||[])},[e.users]),(0,a.jsx)(H.A,{team:e,index:1,tableData:K,items:r,setItems:i,createUpdateItem:n,getItems:t,setInitalItemProps:e=>({password:"",firstName:"",lastName:"",email:"",avatar:void 0,teamOrder:o.index+1,_id:e}),contextData:o,menuId:"USER_MENU_1",deleteItem:s})}var V=n(75656),Q=n(14709),ee=n(40090),et=!0;function en({company:e,filters:t,countries:n}){let c={...e,logo:e?.logoId?.liveURL??""},[d,u]=(0,y.useState)(t.postFilters),{data:_,error:m,mutate:p}=(0,V.Ay)(ea(d),l.fG),{session:{user:g},removeSession:h}=(0,Q.As)(),{routeObj:f}=(0,ee.A)();(0,y.useEffect)(()=>{(0,G.Mt)({},d,{})},[d]);let b={name:"USER",users:_?_.users:[]},v=(0,y.useCallback)(async(e,t)=>{let n={result:null,error:null};try{t?n.result=await (0,l.Uc)(`/user/${t}`,e):n.result=await (0,l.LO)("/user/register",e)}catch(e){n.error=e.message}return n},[]),x=(0,y.useCallback)(async e=>{let t={result:null,error:null};try{t.result=await (0,l.SJ)(`/user/${e}`)}catch(e){t.error=e.message}return g?._id===e&&(h(),window.location.href=`${f.protocol}//dashboard.${f.mainDomain}${f.port?`:${f.port}`:""}/login`),t},[f,g]);return(0,a.jsx)(s.N,{TopDropdownComponent:(0,a.jsx)(r.A,{company:c}),TopDropdownComponentWrapper:i.A,TopDropdownButtonName:"PROFILE",tab:(0,a.jsx)(o.A,{}),paddingBottom:!0,children:(0,a.jsxs)("div",{className:"bg-white main-content",children:[(0,a.jsx)("div",{children:(0,a.jsx)(q,{handleChange:(e,t)=>
1{u(n=>(n[e]=t,{...n}))},filterParameters:d})}),(0,a.jsx)("div",{children:(0,a.jsx)(B.Provider,{value:{countries:n},children:(0,a.jsx)(X,{team:b,getItems:()=>{p().then()},createUpdateItem:v,deleteItem:x})})})]})})}let ea=e=>{let t="";return Object.entries(e).forEach(([e,n])=>{null!=n&&""!==n&&(t+=`&${e}=${n}`)}),t=t?"?"+t.slice(1):"",`/user/filterByParams${t}`}},95127:e=>{e.exports={"bg-black":"style_bg-black__8X92j","bg-white":"style_bg-white__S2qDi","bg-eclipse":"style_bg-eclipse__1zjcX","bg-dark-light-gray":"style_bg-dark-light-gray__haCfT","bg-light-gray":"style_bg-light-gray__IZ0o1","bg-lightdark-gray":"style_bg-lightdark-gray__72U_v","bg-blue-light2":"style_bg-blue-light2__6lz1v","bg-red-light2":"style_bg-red-light2__EIuFG","bg-yellow-light2":"style_bg-yellow-light2__Wiu4_","bg-green-light2":"style_bg-green-light2__HaSxn","bg-gray4":"style_bg-gray4___zJRD","bg-gray2":"style_bg-gray2__xtN94","bg-gray3":"style_bg-gray3__nYiOF","bg-gold":"style_bg-gold___diSe","text-gold":"style_text-gold__Kzix0","text-white":"style_text-white__8ouM_","text-gray-3":"style_text-gray-3__oXup6","text-gray-5":"style_text-gray-5__O_0fy","bg-red":"style_bg-red__PkwTi","bg-dark":"style_bg-dark__4QHkr","border-gray":"style_border-gray__Fc_Uj","input-container":"style_input-container__yERc5","custom-input-container":"style_custom-input-container__SmiZL",box:"style_box__MJ0wt","box-input-container":"style_box-input-container__ogUcr","css-xyedy-Control":"style_css-xyedy-Control__NTdS7",title:"style_title__mhMG1",bg:"style_bg__Nx4rb",dashed:"style_dashed__pwEwH"}}},e=>{e.O(0,[3716,123,4587,9124,6212,2262,6717,1950,1777,7379,2826,6898,5783,636,6593,8792],()=>e(e.s=15162)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.