1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d8871a34-1e84-47aa-b3a6-81a240b7f58f",e._sentryDebugIdIdentifier="sentry-dbid-d8871a34-1e84-47aa-b3a6-81a240b7f58f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9635],{38397:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/users",function(){return t(67840)}])},28747:function(e,n,t){"use strict";var r=t(27149),o=t(47746);n.Z=function(){var e=(0,o.Z)();return(0,r.Z)(e.breakpoints.up("md"))}},74555:function(e,n,t){"use strict";var r=t(87963),o=t(2784);n.Z=function(){var e=(0,r._)((0,o.useState)(null),2),n=e[0],t=e[1],i=!!n,a=(0,o.useCallback)(function(e){t(e.currentTarget)},[]),s=(0,o.useCallback)(function(){t(null)},[]);return(0,o.useMemo)(function(){return{anchorEl:n,open:i,handleClick:a,handleClose:s}},[n,i,a,s])}},36757:function(e,n){"use strict";n.Z=function(e){return e.condition?e.children:e.fallback}},74209:function(e,n,t){"use strict";var r=t(24022),o=t(4670),i=t(83286),a=t(73509),s=t(52322);t(2784);var l=t(38677),c=t(18831),d=t(5632),u=t(15670),p=t(37520),h={root:{color:function(e){return[e.palette.common.white,"important"]},textDecoration:"none"}};n.Z=function(e){var n=e.sx,t=e.onClick,x=(0,i._)(e,["sx","onClick"]),f=(0,d.useRouter)().asPath,m=(0,u.Z)().authDialogV1Flag,b=(0,p.dn)().openLogin,g=m?{onClick:function(e){m&&(e.preventDefault(),b()),null==t||t(e)}}:{component:c.C,href:"/login?absolutePath=".concat(encodeURIComponent(f))};return(0,s.jsx)(l.Z,(0,o._)((0,r._)({fullWidth:!0,sx:[h.root].concat((0,a._)(n?Array.isArray(n)?n:[n]:[])),color:"primary",variant:"contained"},g,x),{children:"Login"}))}},53232:function(e,n,t){"use strict";t.d(n,{o:function(){return XCircleIcon}});var r=t(24022),o=t(4670),i=t(52322),a=t(5007),XCircleIcon=function(e){return(0,i.jsx)(a.Z,(0,o._)((0,r._)({},e),{children:(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_19545_25567)",children:[(0,i.jsx)("path",{d:"M9.99935 18.3333C14.6017 18.3333 18.3327 14.6024 18.3327 9.99999C18.3327 5.39762 14.6017 1.66666 9.99935 1.66666C5.39698 1.66666 1.66602 5.39762 1.66602 9.99999C1.66602 14.6024 5.39698 18.3333 9.99935 18.3333Z",fill:"#8E8E8E",stroke:"#8E8E8E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M12.5 7.5L7.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.5 7.5L12.5 12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_19545_25567",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}))}},20732:function(e,n,t){"use strict";var r=t(24022),o=t(52322),i=t(18960),a=t(65992),s=t(47591),l=(0,a.ZP)(function(e){return(0,o.jsx)(i.Z,(0,r._)({elevation:0},e))})(function(e){var n=e.theme;return{"& .MuiPaper-root":{borderRadius:"6px",border:"1px solid #ECECEC",boxShadow:"0px 0px 8px 0px rgba(20, 20, 20, 0.06)",filter:"none",minWidth:205,"& .MuiMenu-list":{padding:0},"& .MuiMenuItem-root":{padding:n.spacing(1,2),fontSize:"1rem",lineHeight:"1.42857rem","& .MuiSvgIcon-root":{fontSize:18,color:n.palette.text.secondary,marginRight:n.spacing(1)},"&:active":{backgroundColor:(0,s.Fq)(n.palette.grey.main,n.palette.action.selectedOpacity)}},"& .MuiDivider-root":{margin:0}}}});n.Z=l},57827:function(e,n,t){"use strict";t.d(n,{Aj:function(){return MobileDrawer},G7:function(){return DesktopMenu}});var r=t(32670),o=t(24022),i=t(4670),a=t(83286),s=t(22970),l=t(52322),c=t(80422),d=t(56961),u=t(14117),p=t(79312),h=t(42921),x=t(90838),f=t(95341),m=t(58784),b=t(2784),g=t(83776),v=t(20732),C=t(13497),j=(0,g.e)({icon:{display:"flex",alignSelf:"center",my:"auto",mr:1.5,svg:{width:"16px",height:"16px",m:"0 !important"}},iconMobile:{svg:{width:"18px",height:"18px"}},menuItem:{position:"relative",color:function(e){return e.palette.neutral[700]},p:"10px 16px !important"},list:{py:0},listItemLoading:{"& .MuiTypography-root":{opacity:.5},"& svg":{opacity:.5}},borderBottom:{borderBottom:"1px solid",borderColor:function(e){return e.brand.black[300]}},drawerMenuItem:{p:"16px 20px !important",position:"relative",color:function(e){return e.palette.neutral[700]}},listItemDivider:{borderColor:function(e){return e.brand.black[300]}},loader:{position:"absolute",top:"calc(50% - ".concat(7.5,"px)"),left:"calc(50% - ".concat(7.5,"px)"),transform:"translate(-50%, -50%)",color:function(e){return e.brand.black[600]}},mobileDrawer:{zIndex:function(e){return e.zIndex.modal+1}}}),MobileDrawer=function(e){var n=e.open,t=e.options,r=e.enableDrawerCancelButton,s=e.onClose,h=(0,a._)(e,["open","options","enableDrawerCancelButton","onClose"]);return(0,l.jsx)(C.Z,(0,i._)((0,o._)({onOpen:function(){return null},onClose:s,open:n,sx:j.mobileDrawer},h),{children:(0,l.jsxs)(c.Z,{sx:j.list,children:[t.map(function(e,n){var t=e.wrapperComponent||b.Fragment;return(0,l.jsxs)(b.Fragment,{children:[0!==n&&(0,l.jsx)(d.Z,{sx:j.listItemDivider}),(0,l.jsx)(t,{children:(0,l.jsx)(MobileMenuItem,{option:e,handleClose:s})})]},n)}),!!r&&(0,l.jsxs)(b.Fragment,{children:[(0,l.jsx)(d.Z,{sx:j.listItemDivider}),(0,l.jsx)(u.Z,{onClick:s,sx:[j.drawerMenuItem],children:(0,l.jsx)(p.Z,{variant:"medium",children:"Cancel"})})]})]})}))},DesktopMenu=function(e){var n=e.options,t=e.placement,r=void 0===t?"bottom":t,s=e.sx,c=e.TransitionComponent,d=e.onClose,u=(0,a._)(e,["options","placement","sx","TransitionComponent","onClose"]);return(0,l.jsx)(v.Z,(0,i._)((0,o._)({onClose:d,anchorOrigin:{vertical:"bottom"==r?"bottom":"top",horizontal:"bottom"==r?"right":"left"},transformOrigin:{vertical:"bottom"==r?"top":"bottom",horizontal:"bottom"==r?"right":"left"},TransitionProps:{unmountOnExit:!0},TransitionComponent:c,sx:s},u),{children:n.map(function(e,t){var r=e.wrapperComponent||b.Fragment;return(0,l.jsx)(h.Z,{children:(0,l.jsx)(r,{children:(0,l.jsx)(DesktopMenuItem,{option:e,handleClose:function(e){return d(e,"backdropClick")},hasDivider:t!==n.length-1})})},t)})}))},Loader=function(){return(0,l.jsx)(x.Z,{sx:j.loader,size:15})},MobileMenuItem=function(e){var n,t=e.option,o=e.handleClose;return(0,l.jsxs)(u.Z,{onClick:(n=(0,r._)(function(e){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.handleClick(e)];case 1:return n.sent(),[3,3];case 2:return console.error(n.sent()),[3,3];case 3:return t.keepOpen||o(e),[2]}})}),function(e){return n.apply(this,arguments)}),sx:(0,g.E)([j.drawerMenuItem,t.loading&&j.listItemLoading,!!t.color&&{color:t.color}],t.menuItemSxProps),disabled:t.disabled||t.loading,children:[(0,l.jsx)(h.Z,{sx:[j.icon,j.iconMobile],children:t.icon}),(0,l.jsx)(p.Z,{variant:"brandedBody",children:t.label}),!!t.loading&&(0,l.jsx)(Loader,{})]})},DesktopMenuItem=function(e){var n,t=e.option,o=e.handleClose,i=e.hasDivider;return(0,l.jsxs)(f.Z,{onClick:(n=(0,r._)(function(e){return(0,s.Jh)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.handleClick(e)];case 1:return n.sent(),[3,3];case 2:return console.error(n.sent()),[3,3];case 3:return t.keepOpen||o(),[2]}})}),function(e){return n.apply(this,arguments)}),disabled:t.disabled||t.loading,sx:(0,g.E)([j.menuItem,t.loading&&j.listItemLoading,i&&j.borderBottom,t.color&&{color:t.color}],t.menuItemSxProps),children:[(0,l.jsx)(h.Z,{sx:j.icon,children:t.icon}),(0,l.jsx)(p.Z,{variant:"small",children:t.label}),i?(0,l.jsx)(d.Z,{}):null,!!t.loading&&(0,l.jsx)(Loader,{})]})};n.ZP=function(e){var n=e.options,t=e.isMobileOverride,r=e.open,i=e.anchorEl,a=e.handleClose,s=e.enableDrawerCancelButton,c=e.placement,d=e.disableSwipeToOpen,u=e.menuProps,p=(0,m.Z)();return(0,l.jsx)(b.Fragment,{children:(null!=t?t:p)?(0,l.jsx)(MobileDrawer,{options:n,open:r,onClose:a,enableDrawerCancelButton:s,disableSwipeToOpen:d}):(0,l.jsx)(DesktopMenu,(0,o._)({options:n,onClose:a,anchorEl:i,open:r,placement:c},u))})}},20108:function(e,n,t){"use strict";t.d(n,{j:function(){return BrandedSearchField}});var r=t(87963),o=t(52322),i=t(42921),a=t(12115),s=t(80422),l=t(69811),c=t(87037),d=t(82056),u=t(58784),p=t(53232),h=t(2784),x=t(32465),f=t(51107),m=t(27866),b=t(83776),g=t(10173),v=(0,b.e)({searchField:{"& .MuiFilledInput-root":{background:function(e){return"".concat(e.brand.white[100]," !important")}},"& .MuiInputBase-root":{p:"4px 12px",height:"48px",borderRadius:"12px",border:function(e){return"1px solid ".concat(e.palette.neutral[50])},background:function(e){return e.brand.white[100]},"&.Mui-focused":{border:function(e){return"1.2px solid ".concat(e.palette.neutral[100])},background:function(e){return e.brand.white[100]}}},"& .MuiInputBase-input":{ml:"8px",p:"0px","&::placeholder":{color:function(e){return e.palette.neutral[600]},opacity:1,fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},"& .MuiFilledInput-input":{color:function(e){return e.palette.neutral[800]},fontSize:{xs:"14px",sm:"14px",md:"16px"},fontWeight:"400"}},searchIcon:{color:function(e){return e.palette.neutral[600]},width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},optionIcon:{width:"16px",height:"16px"},clearIcon:{width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{cursor:"pointer"}},dropdownContainer:{position:"relative",width:"100%"},dropdown:{position:"absolute",top:"100%",left:0,right:0,mt:1,maxHeight:"500px",overflow:"auto",borderRadius:"8px",boxShadow:"0px 0px 12px 0px rgba(20, 20, 20, 0.08)",zIndex:function(e){return e.zIndex.appBar-1}},optionItem:{color:function(e){return e.palette.neutral[700]},px:{xs:0,md:1.5},py:1,cursor:"pointer",position:"relative","&:hover":{backgroundColor:function(e){return e.brand.black[100]}},"&.selected":{backgroundColor:function(e){return e.palette.neutral[100]}}},deleteButton:{color:function(e){return e.palette.neutral[200]},width:"24px",height:"24px",padding:"4px","&:hover":{color:function(e){return e.palette.neutral[600]},backgroundColor:function(e){return e.palette.neutral[100]}}}}),Input=function(e){var n=e.value,t=e.onChange,r=e.placeholder,a=e.fullWidth,s=e.onKeyDown,l=e.showStartIcon,c=e.onFocus,d=e.onBlur,u=e.onClear,h=e.autoFocus,f=e["aria-expanded"],m=e["aria-controls"];return(0,o.jsx)(g.Z,{id:"search-field-input",fullWidth:void 0===a||a,placeholder:void 0===r?"Search...":r,sx:v.searchField,autoFocus:void 0!==h&&h,InputProps:{startAdornment:void 0===l||l?(0,o.jsx)(i.Z,{component:x.Z,sx:v.searchIcon}):null,endAdornment:(null==n?void 0:n.length)?(0,o.jsx)(i.Z,{sx:v.clearIcon,component:p.o,onClick:function(){t(""),null==u||u()}}):null},inputProps:{"aria-expanded":f,"aria-controls":m,"aria-autocomplete":"list",role:"combobox",autoComplete:"off"},value:n,onChange:function(e){t(e.target.value)},onKeyDown:s,onFocus:c,onBlur:d})},Dropdown=function(e){var n=e.isOpen,t=e.handleClose,r=e.children,i=(0,h.useRef)(null);return((0,m.Z)(i,function(){n&&t()}),n)?(0,o.jsx)(a.Z,{ref:i,sx:v.dropdown,id:"search-field-dropdown",role:"listbox","aria-labelledby":"search-field-input",children:"function"==typeof r?r({close:t}):r}):null},BrandedSearchField=function(e){var n=e.value,t=e.onChange,a=e.placeholder,s=e.fullWidth,l=e.onKeyDown,c=e.showStartIcon,d=e.onFocus,u=e.onBlur,p=e.onClear,x=e.children,f=e.enableDropdown,m=void 0!==f&&f,b=e.autoFocus,g=(0,r._)((0,h.useState)(!1),2),C=g[0],j=g[1];return(0,o.jsxs)(i.Z,{sx:v.dropdownContainer,children:[(0,o.jsx)(Input,{value:n,onChange:function(e){t(e),m&&j(!0)},placeholder:void 0===a?"Search...":a,fullWidth:void 0===s||s,onKeyDown:function(e){"Escape"===e.key&&C&&(j(!1),e.preventDefault()),"Enter"===e.key&&(j(function(e){return!e}),e.preventDefault()),null==l||l(e)},showStartIcon:void 0===c||c,onFocus:function(){m&&j(!0),null==d||d()},onBlur:function(){null==u||u()},onClear:function(){j(!0),null==p||p()},autoFocus:void 0!==b&&b,"aria-expanded":C,"aria-controls":"search-field-dropdown"}),!!m&&(0,o.jsx)(Dropdown,{isOpen:C,handleClose:function(){j(!1)},children:x})]})};BrandedSearchField.Input=Input,BrandedSearchField.DropdownList=function(e){var n=e.onSelect,t=e.options,r=e.startIcon,a=void 0===r?x.Z:r,p=e.onDelete,h=(0,u.Z)(),handleOptionClick=function(e){n(e)},handleDelete=function(e,n){e.stopPropagation(),null==p||p(n)};return(0,o.jsx)(s.Z,{dense:!0,children:t.map(function(e,n){return(0,o.jsxs)(l.ZP,{sx:v.optionItem,onClick:function(){return handleOptionClick(e)},secondaryAction:p?(0,o.jsx)(c.Z,{sx:v.deleteButton,onClick:function(n){return handleDelete(n,e)},children:(0,o.jsx)(f.Z,{size:16})}):null,children:[(0,o.jsx)(i.Z,{component:a,sx:[v.optionIcon,{mr:h?1.5:1}]}),(0,o.jsx)(d.Z,{primary:e,primaryTypographyProps:{fontSize:"16px",fontWeight:"400"}})]},"".concat(e,"-").concat(n))})})}},13497:function(e,n,t){"use strict";var r=t(24022),o=t(52322),i=t(76649),a=(0,t(65992).ZP)(function(e){return(0,o.jsx)(i.Z,(0,r._)({anchor:"bottom"},e))},{shouldForwardProp:function(e){return"hideDragHandle"!==e}})(function(e){return{"& .MuiPaper-root":{":before":e.hideDragHandle?{}
1:{content:'""',display:"block",margin:"auto",marginTop:"8.5px",marginBottom:"8.5px",width:"92px",height:"3px !important",minHeight:"4px !important",maxHeight:"4px !important",backgroundColor:"rgb(149, 149, 149)",borderRadius:"10px"},borderTopLeftRadius:12,borderTopRightRadius:12}}});n.Z=a},19881:function(e,n,t){"use strict";t.d(n,{ZP:function(){return missingData_MissingDataButton}});var r=t(87963),o=t(52322),i=t(40671),a=t(42921),s=t(38677),l=t(87037),c=t(2784),d=t(76940),u=t(89178),p=t(47591),h=(0,t(45118).Z)(function(e){return{pulseAnimate:{animation:"$pulse 1.2s infinite"},"@keyframes pulse":{"0%":{MozBoxShadow:"0 0 0 0 ".concat((0,p.Fq)(e.palette.primary.main,1)),boxShadow:"0 0 0 0 ".concat((0,p.Fq)(e.palette.primary.main,1))},"70%":{MozBoxShadow:"0 0 0 15px ".concat((0,p.Fq)(e.palette.primary.main,0)),boxShadow:"0 0 0 15px ".concat((0,p.Fq)(e.palette.primary.main,0))},"100%":{MozBoxShadow:"0 0 0 0 ".concat((0,p.Fq)(e.palette.primary.main,0)),boxShadow:"0 0 0 0 ".concat((0,p.Fq)(e.palette.primary.main,0))}}}}),x=t(58784),f=t(60369),m=t(69089),b=t(35936),g=t(6060),v=t(5971),C=t(23883),j=t(79312),Z=t(44835),y=t(69675),w=t(46031),k=t(64688),I=t(27083),BusinessFunctionsTagSelector=function(){return(0,o.jsx)(I.r,{tags:k.PN,field:"businessFunctionsTagIds",label:"What kind of work are you excited about?",description:"Select at least 1 to improve your experience:"})},ContentTopicsTagSelector=function(){return(0,o.jsx)(I.r,{tags:k.Ci,field:"contentTopicsTagIds",label:"Choose the topics that spark your curiosity!",description:"Select at least 1 to improve your experience:"})},_=[{description:"Business Functions",isMissing:function(e){var n;return!(null===(n=e.businessFunctionsTagIds)||void 0===n?void 0:n.length)},component:function(){return BusinessFunctionsTagSelector}},{description:"Content Topics",isMissing:function(e){var n;return!(null===(n=e.contentTopicsTagIds)||void 0===n?void 0:n.length)},component:function(){return ContentTopicsTagSelector}},{description:"Field of study",isMissing:function(e){var n,t;return!(null===(n=e.fieldOfStudy)||void 0===n?void 0:n.name)||!(null===(t=e.fieldOfStudy)||void 0===t?void 0:t.id)},component:function(){return y.t}},{description:"Level of study",isMissing:function(e){var n,t;return!(null===(n=e.levelOfStudy)||void 0===n?void 0:n.name)||!(null===(t=e.levelOfStudy)||void 0===t?void 0:t.id)},component:function(){return w.L}}],missingData_UserDataModal=function(e){var n=e.isModalOpen,t=e.handleModalClose,i=e.missingFields,l=(0,r._)((0,c.useState)(0),2),d=l[0],p=l[1],h=(0,u.a)().userData,x=i[d],f=d===i.length-1,y=!x.isMissing(h);return(0,o.jsxs)(m.Z,{onClose:t,"aria-labelledby":"filldata-dialog-title",open:n,disableEscapeKeyDown:!0,children:[(0,o.jsxs)(b.Z,{component:"div",sx:{m:0,p:2},id:"filldata-dialog-title",children:[(0,o.jsx)(j.Z,{id:"modal-modal-title",variant:"h6",component:"h2",children:"You are missing important data on your profile"}),(0,o.jsx)(j.Z,{id:"modal-modal-description",color:"textSecondary",children:"To improve your experience, fill in the missing data"})]}),(0,o.jsx)(g.Z,{dividers:!0,children:(0,o.jsx)(a.Z,{mt:1,children:(0,o.jsx)(Z.Z,{steps:i,currentStep:d,setCurrentStep:p})})}),(0,o.jsxs)(v.Z,{sx:{p:2,justifyContent:"space-between"},children:[(0,o.jsx)(a.Z,{children:(0,o.jsxs)(j.Z,{variant:"body2",color:"textSecondary",children:["Step ",d+1," of ",i.length]})}),(0,o.jsxs)(a.Z,{sx:{textAlign:"right"},children:[(0,o.jsx)(C.Z,{title:"Temporarily dismiss, you will be remembered again in the future to fill the data.",children:(0,o.jsx)(s.Z,{onClick:t,disabled:f?y:null,children:"Dismiss"})}),(0,o.jsx)(s.Z,{onClick:function(){f?t(null,"end"):p(function(e){return e+1})},disabled:!y,variant:"contained",children:y&&f?"Save":"Next"})]})]})]})},S={containerIcon:{width:"26px",height:"26px",backgroundColor:"primary.main",borderRadius:"50%",display:"flex",justifyContent:"center"}},missingData_MissingDataButton=function(e){var n=e.switchInterval,t=void 0===n?1e3:n,p=(0,u.a)(),m=p.authenticatedUser,b=p.userData,g=p.isLoggedOut,v=(0,x.Z)(),C=h(),j=(0,c.useRef)(null),Z=(0,r._)((0,c.useState)([]),2),y=Z[0],w=Z[1],k=(0,r._)((0,c.useState)(!0),2),I=k[0],D=k[1],M=(0,r._)((0,c.useState)(!1),2),P=M[0],B=M[1],F=(0,r._)((0,c.useState)(!1),2),T=F[0],A=F[1],E=(0,r._)((0,d.Z)("cf_missing_data",null),3),z=E[0],L=E[1],W=E[2];(0,c.useEffect)(function(){if(0===y.length){D(!0);return}if(z)try{if(Date.now()-z>604800){D(!1),W();return}}catch(e){console.error(e)}else D(!1)},[z,y]),(0,c.useEffect)(function(){!T&&m&&b&&w(_.filter(function(e){return e.isMissing(b)}))},[m,b,T]),(0,c.useEffect)(function(){if(y.length>0&&!T){var e=setTimeout(function(){B(!0)},t,y);return function(){return clearTimeout(e)}}},[t,y,T]);var handleModalOpen=function(){A(!0)},O=(0,c.useCallback)(function(e,n){void 0===n&&(L(Date.now()),D(!0)),"end"===n&&D(!0),A(!1)},[L]);return I||g?null:(0,o.jsxs)(a.Z,{children:[(0,o.jsx)(f.l,{title:"You have missing data in your profile",children:P&&!v?(0,o.jsx)(s.Z,{variant:"contained",size:"medium",disableElevation:!0,className:T?"":C.pulseAnimate,onClick:handleModalOpen,children:"Fill in missing data"}):(0,o.jsx)(l.Z,{ref:j,color:"primary",size:"small",onClick:handleModalOpen,children:(0,o.jsx)(a.Z,{component:"span",sx:S.containerIcon,className:T?"":C.pulseAnimate,children:(0,o.jsx)(i.Z,{sx:{color:"white"}})})})}),T?(0,o.jsx)(missingData_UserDataModal,{handleModalClose:O,isModalOpen:T,missingFields:y}):null]})}},43958:function(e,n,t){"use strict";var r=t(24022),o=t(4670),i=t(83286),a=t(52322),s=t(92679),l=t(41712),c=t(35199),d=t(79312),u=t(15694),p=t(76649),h=t(28207),x=t(69089),f=t(5971),m=t(6060),b=t(35936),g=t(87037),v=t(94131),C=t(58784),j=t(83776),Z={xs:56,tablet:64},y=(0,j.e)({iconWrapper:{"& svg":{height:{xs:Z.xs,tablet:Z.tablet},width:{xs:Z.xs,tablet:Z.tablet}
1,fontSize:{xs:Z.xs,tablet:Z.tablet}}},closeIcon:{position:"absolute",top:0,right:0,p:2.5,"& svg":{width:"32px !important",height:"32px !important"}},titleWrapper:{position:"relative",pt:2.5,px:4,pb:0},description:{textAlign:"center",color:"neutral.700",pt:1.5,pb:{xs:4,tablet:3}},actions:{justifyContent:"center","& button":{whiteSpace:"nowrap"},pb:3,pt:0,px:4},actionsStack:{pt:4},content:{pb:0,px:4},paper:{py:3,px:3.5,borderRadius:"12px 12px 0 0"},defaultMaxWidth:{maxWidth:430}}),MobileDrawer=function(e){var n=e.open,t=e.handleClose,i=e.hideCloseIcon,s=e.title,l=e.description,u=e.additionalContent,x=e.icon,f=e.primaryAction,m=e.secondaryAction,b=e.sx,g=e.mobileButtonsHorizontal,v=!!t,C=v?p.Z:h.ZP;return(0,a.jsxs)(C,(0,o._)((0,r._)({onClose:t,open:n,anchor:"bottom",PaperProps:{sx:y.paper}},v&&{onOpen:function(){}}),{sx:b,ModalProps:{keepMounted:!1},children:[(0,a.jsxs)(c.Z,{alignItems:"center",spacing:{xs:2,tablet:3},sx:y.iconWrapper,children:[x,(0,a.jsx)(d.Z,{fontWeight:600,variant:"desktopBrandedH4",textAlign:"center",children:s})]}),!!(t&&!i)&&(0,a.jsx)(CloseIconButton,{handleClose:t}),!!l&&(0,a.jsx)(d.Z,{id:"confirmation-dialog-description",sx:y.description,variant:"medium",children:l}),u,(0,a.jsxs)(c.Z,{direction:g?"row":{xs:"column-reverse",sm:"row"},spacing:1.5,justifyContent:"center",width:"100%",children:[!!m&&(0,a.jsx)(ActionButton,(0,r._)({},m)),(0,a.jsx)(ActionButton,(0,r._)({autoFocus:!0},f))]})]}))},CloseIconButton=function(e){var n=e.handleClose;return(0,a.jsx)(v.Z,{sx:y.closeIcon,children:(0,a.jsx)(g.Z,{color:"inherit",onClick:n,"aria-label":"close",children:(0,a.jsx)(s.Z,{})})})},ActionButton=function(e){var n=e.text,t=e.callback,s=(0,i._)(e,["text","callback"]);return(0,a.jsx)(l.Z,(0,o._)((0,r._)({},s),{onClick:t,translate:"no",children:n}))};n.Z=function(e){var n=e.open,t=e.handleClose,o=e.hideCloseIcon,i=e.title,s=e.description,l=e.additionalContent,p=e.icon,h=e.primaryAction,g=e.secondaryAction,v=e.width,j=e.sx,Z=e.TransitionComponent,w=(0,C.Z)();return w?(0,a.jsx)(MobileDrawer,(0,r._)({},e)):(0,a.jsxs)(x.Z,{open:n,onClose:t,"aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",maxWidth:!v&&"xs",TransitionComponent:Z,TransitionProps:{unmountOnExit:!0},fullScreen:w,PaperProps:{sx:[v?{width:v}:y.defaultMaxWidth]},sx:j,children:[(0,a.jsxs)(b.Z,{sx:[y.titleWrapper,y.iconWrapper],id:"confirmation-dialog-title",children:[(0,a.jsxs)(c.Z,{alignItems:"center",spacing:{xs:2,tablet:3},children:[p,(0,a.jsx)(d.Z,{fontWeight:700,variant:"desktopBrandedH4",component:"h4",textAlign:"center",children:i})]}),!!(t&&!o)&&(0,a.jsx)(CloseIconButton,{handleClose:t})]}),(0,a.jsxs)(m.Z,{sx:y.content,children:[!!s&&(0,a.jsx)(d.Z,{id:"confirmation-dialog-description",sx:y.description,variant:"medium",component:u.Z,children:s}),l]}),(0,a.jsx)(f.Z,{sx:y.actions,children:(0,a.jsxs)(c.Z,{direction:"row",spacing:1.5,width:"100%",children:[!!g&&(0,a.jsx)(ActionButton,(0,r._)({fullWidth:!0},g)),(0,a.jsx)(ActionButton,(0,r._)({fullWidth:!0,autoFocus:!0},h))]})})]})}},67840:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return AdminUsersPage}});var r=t(52322),o=t(20606),i=t(24022),a=t(4670),s=t(87963),l=t(27104),c=t(79312),d=t(42921),u=t(35199),p=t(90838),h=t(701),x=t(11511),f=t(50075),m=t(64626),b=t(70969),g=t(36908),v=t(97423),C=t(86617),j=t(38677),Z=t(20108),y=t(2784),w=t(95157),k=t(65),I=t(83776),_=t(32670),S=t(22970),D=t(87037),M=t(74555),P=t(9926),B=t(57827),F=t(43958),T=t(41992),A=t(5145),E=t(88715),z=t(49604),L=t(63293),W=t(45),users_useSetAdminUserDisabled=function(){var e,n=(0,W.dJ)(),t=(0,s._)((0,y.useState)(!1),2),r=t[0],o=t[1];return{setUserDisabled:(0,y.useCallback)((e=(0,_._)(function(e,t){return(0,S.Jh)(this,function(r){switch(r.label){case 0:o(!0),r.label=1;case 1:return r.trys.push([1,,3,4]),[4,(0,L.V1)(n,z.Gn.setAdminUserDisabled)({userId:e,disabled:t})];case 2:return[2,r.sent().data];case 3:return o(!1),[7];case 4:return[2]}})}),function(n,t){return e.apply(this,arguments)}),[n]),isUpdating:r}},O=(0,I.e)({menuButton:{color:"neutral.700",p:.75,"&:hover":{backgroundColor:"neutral.100"}}});function UserActionsMenu(e){var n=e.user,t=e.onStatusChange,o=(0,M.Z)(),i=o.anchorEl,a=o.open,l=o.handleClick,c=o.handleClose,u=(0,s._)((0,y.useState)(!1),2),p=u[0],h=u[1],x=(0,s._)((0,y.useState)(n.disabled),2),f=x[0],m=x[1],b=users_useSetAdminUserDisabled(),g=b.setUserDisabled,v=b.isUpdating,C=(0,P.Z)(),j=C.successNotification,Z=C.errorNotification,w=!f,k=(0,y.useCallback)(function(){h(!0)},[]),I=(0,y.useCallback)(function(){v||h(!1)},[v]),z=(0,y.useCallback)((0,_._)(function(){var e;return(0,S.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,g(n.id,w)];case 1:return r.sent(),m(w),null==t||t(n.id,w),h(!1),j("".concat(n.id," has been ").concat(w?"disabled":"enabled",".")),[3,3];case 2:return Z((e=r.sent())instanceof Error?e:Error(String(e)),"Unable to ".concat(w?"disable":"enable"," ").concat(n.id,". Please try again."),{userId:n.id}),[3,3];case 3:return[2]}})}),[Z,w,t,g,j,n.id]),L=(0,y.useMemo)(function(){return f?[{label:"Enable user",icon:(0,r.jsx)(T.Z,{size:16}),handleClick:k,color:"primary.dark"}]:[{label:"Disable user",icon:(0,r.jsx)(A.Z,{size:16}),handleClick:k,color:"error.main"}]},[k,f]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D.Z,{size:"small",onClick:l,sx:O.menuButton,"aria-label":"Open actions for ".concat(n.id),children:(0,r.jsx)(E.Z,{size:18})}),(0,r.jsx)(B.ZP,{options:L,open:a,anchorEl:i,handleClose:c,enableDrawerCancelButton:!0}),(0,r.jsx)(F.Z,{open:p,handleClose:I,hideCloseIcon:!0,title:f?"Enable this user?":"Disable this user?",description:f?"".concat(n.id," will be re-enabled in Firebase Auth and able to sign in again."):"".concat(n.id," will be disabled in Firebase Auth and will no longer be able to sign in."),icon:f?(0,r.jsx)(d.Z,{component:T.Z,color:"primary.main"}):(0,r.jsx)(d.Z,{component:A.Z,color:"error.main"}),primaryAction:{text:f?"Enable user":"Disable user",callback:z,color:f?"primary":"error",variant:"contained",loading:v},secondaryAction:{text:"Cancel",callback:I,color:"grey",variant:"outlined",disabled:v}})]})}var R=t(63761),U=t(63611),N=t(3255),H=(0,a._)((0,i._)({},R.k),{suspense:!1,keepPreviousData:!1}),users_useAdminUsers=function(){var e,n,t,r=(0,s._)((0,y.useState)(""),2),o=r[0],i=r[1],a=(0,s._)((0,y.useState)(""),2),l=a[0],c=a[1],d=(0,s._)((0,y.useState)(0),2),u=d[0],p=d[1],h=(0,s._)((0,y.useState)([null]),2),x=h[0],f=h[1],m=(0,R.Z)();(0,U.Z)(function(){return c(o)},300,[o]);var b=o!==l,g=null!==(e=x[u])&&void 0!==e?e:null,v=(0,N.ZP)(b?null:[z.Gn.getAdminUsers,{prefix:l,cursor:g}],m,H),C=v.data,j=v.error,Z=v.isLoading,w=(0,y.useCallback)(function(e){i(e),p(0),f([null])},[]),k=(0,y.useCallback)(function(){p(function(e){return Math.max(0,e-1)})},[]),I=(0,y.useCallback)(function(){(null==C?void 0:C.hasNextPage)&&C.nextCursor&&(f(function(e){var n=e.slice(0,u+1);return n[u+1]=C.nextCursor,n}),p(u+1))},[C,u]);return{users:null!==(n=null==C?void 0:C.users)&&void 0!==n?n:[],searchInput:o,setSearchInput:w,page:u,isLoading:b||Z,error:j,hasPreviousPage:u>0,hasNextPage:null!==(t=null==C?void 0:C.hasNextPage)&&void 0!==t&&t,goToPreviousPage:k,goToNextPage:I}},q=(0,I.e)({root:{py:4},header:{mb:3},search:{maxWidth:640,mb:3},card:{backgroundColor:function(e){return e.brand.white[100]},borderRadius:"16px",border:"1px solid",borderColor:"secondary.50",px:1},tableContainer:{width:"100%",overflowX:"auto",scrollbarWidth:"thin",scrollbarColor:function(e){return"".concat(e.palette.neutral[200]," transparent")}},table:{minWidth:960,borderCollapse:"separate",borderSpacing:"0px 8px"},headerCell:{borderBottom:"none",backgroundColor:"transparent",whiteSpace:"nowrap",height:28,py:0,px:2},bodyRow:{"& .MuiTableCell-root":{border:"1px solid",borderColor:function(e){return e.brand.purple[50]},backgroundColor:function(e){return e.brand.white[200]},transition:"all 0.2s ease-in-out",whiteSpace:"nowrap",py:1.5,px:2,"&:first-of-type":{borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",borderRight:"none"},"&:not(:first-of-type):not(:last-child)":{borderLeft:"none",borderRight:"none"},"&:last-child":{borderTopRightRadius:"8px",borderBottomRightRadius:"8px",borderLeft:"none"}},"&:hover .MuiTableCell-root":{borderColor:"secondary.100",backgroundColor:function(e){return e.brand.white[400]}}},actionsCell:{width:64,textAlign:"right"},disabledRow:{"& .MuiTableCell-root .MuiTypography-root":{color:function(e){return e.palette.neutral[400]}}},activeChip:{color:"success.700",borderColor:function(e){return e.brand.success[300]},backgroundColor:function(e){return e.brand.success[50]}},disabledChip:{color:function(e){return e.brand.error[500]},borderColor:function(e){return e.brand.error[300]},backgroundColor:function(e){return e.brand.error[50]}},state:{minHeight:240,display:"flex",alignItems:"center",justifyContent:"center",p:3,my:1,backgroundColor:function(e){return e.brand.white[200]},border:function(e){return"1px solid ".concat(e.brand.white[400])},borderRadius:2},pagination:{justifyContent:"flex-end",alignItems:"center",pt:1,pb:1.5,px:1}}),formatDate=function(e){if(!e)return"â";var n=new Date(e);return Number.isNaN(n.getTime())?"â":new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short",year:"numeric"}).format(n)},HeaderCell=function(e){var n=e.children,t=e.sx;return(0,r.jsx)(l.Z,{sx:(0,I.E)(q.headerCell,t),children:(0,r.jsx)(c.Z,{variant:"xsmall",color:"neutral.900",children:n})})};function UsersView(){var e=users_useAdminUsers(),n=e.users,t=e.searchInput,_=e.setSearchInput,S=e.page,D=e.isLoading,M=e.error,P=e.hasPreviousPage,B=e.hasNextPage,F=e.goToPreviousPage,T=e.goToNextPage,A=(0,s._)((0,y.useState)({}),2),E=A[0],z=A[1],L=(0,y.useCallback)(function(e,n){z(function(t){return(0,a._)((0,i._)({},t),(0,o._)({},e,n))})},[]),W=D?(0,r.jsx)(d.Z,{sx:q.state,role:"status",children:(0,r.jsxs)(u.Z,{spacing:2,alignItems:"center",children:[(0,r.jsx)(p.Z,{size:32}),(0,r.jsx)(c.Z,{variant:"medium",color:"neutral.700",children:"Loading usersâ¦"})]})}):M?(0,r.jsx)(d.Z,{sx:q.state,children:(0,r.jsx)(h.Z,{severity:"error",children:"Users could not be loaded. Please try again."})}):0===n.length?(0,r.jsx)(d.Z,{sx:q.state,children:(0,r.jsx)(c.Z,{variant:"medium",color:"neutral.700",children:"No users found."})}):(0,r.jsx)(x.Z,{sx:q.tableContainer,children:(0,r.jsxs)(f.Z,{size:"small",sx:q.table,"aria-label":"Users directory",children:[(0,r.jsx)(m.Z,{children:(0,r.jsxs)(b.Z,{children:[(0,r.jsx)(HeaderCell,{children:"ID"}),(0,r.jsx)(HeaderCell,{children:"Full name"}),(0,r.jsx)(HeaderCell,{children:"Role"}),(0,r.jsx)(HeaderCell,{children:"Created date"}),(0,r.jsx)(HeaderCell,{children:"Last activity"}),(0,r.jsx)(HeaderCell,{children:"Marketing emails"}),(0,r.jsx)(HeaderCell,{children:"Status"}),(0,r.jsx)(HeaderCell,{sx:q.actionsCell,children:"Actions"})]})}),(0,r.jsx)(g.Z,{children:n.map(function(e){var n,t=null!==(n=E[e.id])&&void 0!==n?n:e.disabled,o="CF_Admin"!==e.role||t;return(0,r.jsxs)(b.Z,{sx:(0,I.E)(q.bodyRow,t?q.disabledRow:void 0),children:[(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",children:e.id})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",children:e.fullName||"â"})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",color:"neutral.700",children:e.role})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",color:"neutral.700",children:formatDate(e.createdAt)})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",color:"neutral.700",children:formatDate(e.lastActivityAt)})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(c.Z,{variant:"small",color:e.unsubscribed?"neutral.500":"neutral.700",children:e.unsubscribed?"Unsubscribed":"Subscribed"})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(v.Z,{size:"small",variant:"outlined",label:t?"Disabled":"Active",sx:t?q.disabledChip:q.activeChip})}),(0,r.jsx)(l.Z,{sx:q.actionsCell,children:o?(0,r.jsx)(UserActionsMenu,{user:(0,a._)((0,i._)({},e),{disabled:t}),onStatusChange:L}):null})]},e.id)})})]})});return(0,r.jsxs)(C.Z,{maxWidth:"xl",sx:q.root,children:[(0,r.jsxs)(u.Z,{spacing:.5,sx:q.header,children:[(0,r.jsx)(c.Z,{variant:"brandedH2",children:"Users"}),(0,r.jsx)(c.Z,{variant:"medium",color:"neutral.700",children:"Browse all CareerFairy user records by ID."})]}),(0,r.jsx)(d.Z,{sx:q.search,children:(0,r.jsx)(Z.j,{value:t,onChange:_,placeholder:"Search by user ID prefix"})}),(0,r.jsxs)(d.Z,{sx:q.card,children:[W,(0,r.jsxs)(u.Z,{direction:"row",spacing:2,sx:q.pagination,children:[(0,r.jsx)(j.Z,{variant:"outlined",color:"grey",size:"small",startIcon:(0,r.jsx)(w.Z,{size:18}),onClick:F,disabled:!P||D,children:"Previous"}),(0,r.jsxs)(c.Z,{variant:"small",color:"neutral.700",children:["Page ",S+1]}),(0,r.jsx)(j.Z,{variant:"outlined",color:"grey",size:"small",endIcon:(0,r.jsx)(k.Z,{size:18}),onClick:T,disabled:!B||D||!!M,children:"Next"})]})]})]})}var J=t(97729),K=t.n(J),X=t(3865);function AdminUsersPage(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K(),{children:(0,r.jsx)("title",{children:"CareerFairy | Users"})}),(0,r.jsx)(X.Z,{children:(0,r.jsx)(UsersView,{})})]})}}},function(e){e.O(0,[2212,6523,5925,4381,6931,6659,6262,1171,3865,9774,2888,179],function(){return e(e.s=38397)}),_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.