1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31821],{16394:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var o=(0,r(23480).A)("mail","IconMail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]])},21270:(e,t,r)=>{"use strict";r.d(t,{j:()=>k});var o=r(14232),n=r(47169),a=r(78753),i=r(26991),l=r(96533),s=r(57372),c=r(807),d=r(84629),u=r(21484),p=r(13079),f=(0,r(80802).r)(()=>({wrapper:{position:"relative"}})),m=r(80885),h=r(91692),b=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,x=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))j.call(t,r)&&x(e,r,t[r]);if(v)for(var r of v(t))w.call(t,r)&&x(e,r,t[r]);return e},A=(e,t)=>g(e,y(t));let O={required:!1,size:"sm",shadow:"sm",limit:5,itemComponent:d.T,transitionProps:{transition:"fade",duration:0},initiallyOpened:!1,filter:function(e,t){return t.value.toLowerCase().trim().includes(e.toLowerCase().trim())},switchDirectionOnFlip:!1,zIndex:(0,l.I)("popover"),dropdownPosition:"flip",maxDropdownHeight:"auto",positionDependencies:[]},k=(0,o.forwardRef)((e,t)=>{let r=(0,m.I)("Autocomplete",O,e),{inputProps:l,wrapperProps:d,shadow:b,data:g,limit:y,value:x,defaultValue:k,onChange:E,unstyled:D,itemComponent:z,onItemSubmit:C,onKeyDown:P,onFocus:I,onBlur:_,onClick:T,transitionProps:N,initiallyOpened:R,classNames:F,styles:Y,filter:B,nothingFound:L,onDropdownClose:H,onDropdownOpen:M,withinPortal:Q,switchDirectionOnFlip:V,zIndex:q,dropdownPosition:W,maxDropdownHeight:X,dropdownComponent:$,positionDependencies:G,readOnly:U,hoverOnSearchChange:K}=r,Z=((e,t)=>{var r={};for(var o in e)j.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&v)for(var o of v(e))0>t.indexOf(o)&&w.call(e,o)&&(r[o]=e[o]);return r})(r,["inputProps","wrapperProps","shadow","data","limit","value","defaultValue","onChange","unstyled","itemComponent","onItemSubmit","onKeyDown","onFocus","onBlur","onClick","transitionProps","initiallyOpened","classNames","styles","filter","nothingFound","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","dropdownPosition","maxDropdownHeight","dropdownComponent","positionDependencies","readOnly","hoverOnSearchChange"]),{classes:J}=f(null,{classNames:F,styles:Y,name:"Autocomplete",unstyled:D}),[ee,et]=(0,o.useState)(R),[er,eo]=(0,o.useState)(-1),[en,ea]=(0,o.useState)("column"),ei=(0,o.useRef)(null),[el,es]=(0,o.useState)(!1),[ec,ed]=(0,n.Z)({value:x,defaultValue:k,finalValue:"",onChange:E}),eu=e=>{et(e);let t=e?M:H;"function"==typeof t&&t()};(0,a.C)(()=>{K&&ec?eo(0):eo(-1)},[ec,K]);let ep=g.map(e=>"string"==typeof e?{value:e}:e),ef=(0,s.M)({data:function(e){let{data:t,limit:r,value:o,filter:n}=e,a=[];for(let e=0;e<t.length&&(n(o,t[e])&&a.push(t[e]),!(a.length>=r));e+=1);return a}({data:ep,value:ec,limit:y,filter:B})}),em=ee&&(ef.length>0||0===ef.length&&!!L);return o.createElement(h.p.Wrapper,A(S({},d),{__staticSelector:"Autocomplete"}),o.createElement(u.k,{opened:em,transitionProps:N,shadow:"sm",withinPortal:Q,__staticSelector:"Autocomplete",onDirectionChange:ea,switchDirectionOnFlip:V,zIndex:q,dropdownPosition:W,positionDependencies:G,classNames:F,styles:Y,unstyled:D,readOnly:U,variant:l.variant},o.createElement(u.k.Target,null,o.createElement("div",{className:J.wrapper,"aria-controls":l.id,onMouseLeave:()=>eo(-1),tabIndex:-1},o.createElement(h.p,A(S(S({type:"search",autoComplete:"off"},l),Z),{readOnly:U,"data-mantine-stop-propagation":ee,ref:(0,i.p)(t,ei),onKeyDown:e=>{if(el)return;"function"==typeof P&&P(e);let t="column"===en,r=()=>{eo(e=>e<ef.length-1?e+1:e)},o=()=>{eo(e=>e>0?e-1:e)};switch(e.key){case"ArrowUp":e.preventDefault(),t?o():r();break;case"ArrowDown":e.preventDefault(),t?r():o();break;case"Enter":ef[er]&&ee&&(e.preventDefault(),ed(ef[er].value),"function"==typeof C&&C(ef[er]),eu(!1));break;case"Escape":ee&&(e.preventDefault(),eu(!1))}},classNames:F,styles:Y,__staticSelector:"Autocomplete",value:ec,onChange:e=>{ed(e.currentTarget.value),eu(!0)},onFocus:e=>{"function"==typeof I&&I(e),eu(!0)},onBlur:e=>{"function"==typeof _&&_(e),eu(!1)},onClick:e=>{"function"==typeof T&&T(e),eu(!0)},onCompositionStart:()=>es(!0),onCompositionEnd:()=>es(!1),role:"combobox","aria-haspopup":"listbox","aria-owns":em?"".concat(l.id,"-items"):null,"aria-expanded":em,"aria-autocomplete":"list","aria-controls":em?"".concat(l.id,"-items"):null,"aria-activedescendant":er>=0?"".concat(l.id,"-").concat(er):null})))),o.createElement(u.k.Dropdown,{component:$||p.F,maxHeight:X,direction:en,id:l.id,__staticSelector:"Autocomplete",classNames:F,styles:Y},o.createElement(c.p,{data:ef,hovered:er,classNames:F,styles:Y,uuid:l.id,__staticSelector:"Autocomplete",onItemHover:eo,onItemSelect:e=>{ed(e.value),"function"==typeof C&&C(e),eu(!1)},itemComponent:z,size:l.size,nothingFound:L,variant:l.variant}))))});k.displayName="@mantine/core/Autocomplete"},28026:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/features/[key]",function(){return r(82203)}])},38561:(e,t,r)=>{"use strict";r.d(t,{X:()=>O});var o=r(14232),n=r(62117),a=r(80802),i=r(1577),l=r(44307),s=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(0,a.r)((e,t)=>{let{captionSide:r,horizontalSpacing:o,verticalSpacing:n,fontSize:a,withBorder:s,withColumnBorders:h}=t,b="".concat((0,i.D)(1)," solid ").concat("dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]);return{root:c(((e,t)=>{for(var r in t||(t={}))p.call(t,r)&&m(e,r,t[r]);if(u)for(var r of u(t))f.call(t,r)&&m(e,r,t[r]);return e})({},e.fn.fontStyles()),d({width:"100%",borderCollapse:"collapse",captionSide:r,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,lineHeight:e.lineHeight,border:s?b:void 0,"& > caption":{marginTop:"top"===r?0:e.spacing.xs,marginBottom:"bottom"===r?0:e.spacing.xs,fontSize:e.fontSizes.sm,color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6]},"& > thead > tr > th, & > tfoot > tr > th, & > tbody > tr > th":{textAlign:"left",fontWeight:"bold",color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],fontSize:(0,l.Y)({size:a,sizes:e.fontSizes}),padding:"".concat((0,l.Y)({size:n,sizes:e.spacing})," ").concat((0,l.Y)({size:o,sizes:e.spacing}))},"& > thead > tr > th":{borderBottom:b},"& > tfoot > tr > th, & > tbody > tr > th":{borderTop:b},"& > tbody > tr > td":{padding:"".concat((0,l.Y)({size:n,sizes:e.spacing})," ").concat((0,l.Y)({size:o,sizes:e.spacing})),borderTop:b,fontSize:(0,l.Y)({size:a,sizes:e.fontSizes})},"& > tbody > tr:first-of-type > td, & > tbody > tr:first-of-type > th":{borderTop:"none"},"& > thead > tr > th, & > tbody > tr > td":{borderRight:h?b:"none","&:last-of-type":{borderRight:"none",borderLeft:h?b:"none"}},"& > tbody > tr > th":{borderRight:h?b:"none"},"&[data-striped] > tbody > tr:nth-of-type(odd)":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[0]},"&[data-hover] > tbody > tr":e.fn.hover({backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1]})}))}}),b=r(52885),g=Object.defineProperty,y=Object.defineProperties,v=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let A={striped:!1,highlightOnHover:!1,captionSide:"top",horizontalSpacing:"xs",fontSize:"sm",verticalSpacing:7,withBorder:!1,withColumnBorders:!1},O=(0,o.forwardRef)((e,t)=>{let r=(0,n.a1)("Table",A,e),{className:a,children:i,striped:l,highlightOnHover:s,captionSide:c,horizontalSpacing:d,verticalSpacing:u,fontSize:p,unstyled:f,withBorder:m,withColumnBorders:g,variant:O}=r,k=((e,t)=>{var r={};for(var o in e)w.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&j)for(var o of j(e))0>t.indexOf(o)&&x.call(e,o)&&(r[o]=e[o]);return r})(r,["className","children","striped","highlightOnHover","captionSide","horizontalSpacing","verticalSpacing","fontSize","unstyled","withBorder","withColumnBorders","variant"]),{classes:E,cx:D}=h({captionSide:c,verticalSpacing:u,horizontalSpacing:d,fontSize:p,withBorder:m,withColumnBorders:g},{unstyled:f,name:"Table",variant:O});return o.createElement(b.a,y(((e,t)=>{for(var r in t||(t={}))w.call(t,r)&&S(e,r,t[r]);if(j)for(var r of j(t))x.call(t,r)&&S(e,r,t[r]);return e})({},k),v({component:"table",ref:t,className:D(E.root,a),"data-striped":l||void 0,"data-hover":s||void 0})),i)});O.displayName="@mantine/core/Table"},82203:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>M});var o=r(37876),n=r(62117),a=r(38834),i=r(14640),l=r(48204),s=r(1577),c=r(6493),d=r(68101),u=r(35538),p=r(38561),f=r(94792),m=r(80802),h=r(89099),b=r(89855),g=r(47909),y=r(56557),v=r.n(y),j=r(66315),w=r.n(j),x=r
1(40895),S=r(39466),A=r(94812),O=r(29982),k=r(29853),E=r(43877),D=r(1561),z=r(59861),C=r(21270),P=r(48598),I=r(95991),_=r(16394),T=r(89718),N=r(88775),R=r(85461),F=r(15526);function Y(e){var t;let{feature:r}=e,n=(0,N.i)(),a=(0,P.m)({initialValues:{email:""},validate:(0,I.u)(B)}),i=function(){let e=(0,R.jE)();return(0,F.n)(e=>(0,E.A)().put("/features/".concat(e.feature,"/emails"),{body:e}).isSuccess(),{onSettled:(t,r,o)=>{e.invalidateQueries(["featureDetail",o.feature])}})}();function l(e){i.mutateAsync({feature:r,email:e.email}).then(()=>a.reset())}return(0,o.jsx)("form",{onSubmit:a.onSubmit(l),children:(0,o.jsx)(C.j,{...a.getInputProps("email"),data:(null==(t=n.data)?void 0:t.entities.map(e=>e.email||""))||[],placeholder:"Add new email",disabled:i.isLoading,limit:1/0,maxDropdownHeight:300,icon:(0,o.jsx)(_.A,{size:"0.9rem",stroke:1.5}),onItemSubmit:e=>l({email:e.value})})})}let B=T.Ik({email:T.Yj().email()});v().extend(w());let L=(0,m.r)(e=>({featureEnabledNotice:{backgroundColor:e.colors.green[6],padding:e.spacing.md,borderRadius:e.radius.md,marginTop:e.spacing.md,marginBottom:e.spacing.md,"> *":{color:e.white}}}));function H(e){let t=function(){let e=(0,R.jE)();return(0,F.n)(e=>(0,E.A)().delete("/features/".concat(e.feature,"/emails"),{body:e}).isSuccess(),{onSettled:(t,r,o)=>{e.invalidateQueries(["featureDetail",o.feature])}})}();return(0,o.jsx)(i.$,{variant:"default",onClick:()=>t.mutate(e),loading:t.isLoading,children:"Remove"})}let M=(0,O.T)({isUserLoggedInRequired:!0,isAdminRequired:!0})(function(){var e,t,r,m,y;let j=String((0,h.useRouter)().query.key),{classes:w}=L(),O=(0,k.IT)(["featureDetail",j],async()=>await (0,E.A)().get("/features/".concat(j)).json()),C=function(){let e=(0,R.jE)();return(0,F.n)(e=>{let{feature:t,...r}=e;return(0,E.A)().patch("/features/".concat(t),{body:r}).isSuccess()},{onSettled:(t,r,o)=>{e.invalidateQueries(["featureDetail",o.feature]),e.invalidateQueries(["features"])}})}(),P=(0,A.W)(),I=(0,n.xd)(),_=function(e,t){if(!t||!e)return null;let r=t.split("."),o=e.split(".");for(let e=0;e<o.length;e++)if(Number(o[e])>Number(r[e]))return!1;return!0}(null==(e=O.data)?void 0:e.apiVersion,null==(t=P.data)?void 0:t.version),T=null!=(r=O.data)&&!!r.enabledAt&&Date.now()>new Date(null==(m=O.data)?void 0:m.enabledAt).valueOf();return(0,o.jsxs)(S.P,{title:"Features",loading:O.isLoading,children:[(0,o.jsx)(D.A,{href:z.Routes.ADMIN_FEATURES,children:(0,o.jsx)(i.$,{variant:"default",component:"div",leftIcon:(0,o.jsx)(b.A,{}),mb:"lg",children:"All Features"})}),(0,o.jsxs)(l.t,{withBorder:!0,p:"xl",mb:"md",radius:"lg",style:{borderTop:T?"".concat((0,s.D)(6)," ").concat(I.colors.green[6]," solid"):void 0},children:[(0,o.jsxs)(c.Y,{position:"apart",align:"top",children:[(0,o.jsx)(d.h,{order:2,children:null==(y=O.data)?void 0:y.title}),!T&&(0,o.jsx)(i.$,{onClick:function(){(0,x.GE)({title:"Are you sure?",centered:!0,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.E,{mb:"md",children:"This enables the feature for all users immediately."}),(0,o.jsx)(a.E,{children:"If you're looking to enable this feature for individual users, please use the emails section."})]}),labels:{confirm:"Enable for everyone",cancel:"Cancel"},onConfirm:()=>C.mutateAsync({feature:j,enabledAt:Date.now()})})},loading:C.isLoading,variant:"default",children:"Enable"})]}),O.data&&(0,o.jsxs)(o.Fragment,{children:[O.data.enabledAt&&(0,o.jsx)("div",{className:w.featureEnabledNotice,children:(0,o.jsxs)(c.Y,{position:"apart",children:[(0,o.jsxs)(c.Y,{children:[(0,o.jsx)(g.A,{size:"1rem"}),(0,o.jsxs)(a.E,{children:["Feature was enabled ",v()(O.data.enabledAt).fromNow()]})]}),(0,o.jsx)(i.$,{variant:"default",onClick:function(){(0,x.GE)({title:"Are you sure?",centered:!0,children:(0,o.jsx)(a.E,{mb:"md",children:"This disables the feature for all users immediately."}),labels:{confirm:"Disable for everyone",cancel:"Cancel"},onConfirm:()=>C.mutateAsync({feature:j,enabledAt:null})})},children:"Disable"})]})}),(0,o.jsxs)(c.Y,{position:"apart",mb:"lg",children:[(0,o.jsx)(a.E,{children:O.data.description}),(0,o.jsxs)(u.E,{color:!1===_?"red":"green",children:["API ",O.data.apiVersion||"N/A"]})]}),(0,o.jsx)(Y,{feature:j}),O.data.emails.length>0&&(0,o.jsxs)(p.X,{miw:800,verticalSpacing:"sm",children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{children:"Email"}),(0,o.jsx)("th",{style:{width:"0%"}})]})}),(0,o.jsx)("tbody",{children:O.data.emails.map(e=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:(0,o.jsxs)(c.Y,{spacing:"sm",children:[(0,o.jsx)(f.e,{size:40,radius:40}),(0,o.jsx)(a.E,{fz:"sm",fw:500,children:e})]})}),(0,o.jsx)("td",{style:{display:"flex",justifyContent:"flex-end"},children:(0,o.jsx)(H,{feature:j,email:e})})]},e))})]})]})]})]})})},88775:(e,t,r)=>{"use strict";r.d(t,{i:()=>i});var o=r(29853),n=r(43877),a=r(41969);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t={...l,...e};return(0,o.IT)(["recruiters",t],async e=>{let{queryKey:t}=e,r=(0,a.createQueryString)(t[1]);return await (0,n.A)().get("/recruiters".concat(r)).json()},{staleTime:1/0,onError:()=>{}})}let l={hydrateAuth0RecruiterGroup:!1,limit:1e3,offset:0,sort:"email",order:"ascending"}},89855:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var o=(0,r(23480).A)("arrow-left","IconArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]])},94812:(e,t,r)=>{"use strict";r.d(t,{W:()=>a});var o=r(29853),n=r(43877);function a(){return(0,o.IT)(["api-version"],()=>(0,n.A)().get("/version").json())}},95991:(e,t,r)=>{"use strict";function o(e){return t=>{let r=e.safeParse(t);if(r.success)return{};let o={};return r.error.errors.forEach(e=>{o[e.path.join(".")]=e.message}),o}}r.d(t,{u:()=>o})}},e=>{e.O(0,[72895,85289,26373,48598,77124,57483,90636,46593,38792],()=>e(e.s=28026)),_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.