PageSourceSearch

https://app-next.findem.io/static/js/7646.43e908b5.chunk.js

js findem.io collected 2026-10-05 05:22:26 UTC 6,949 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="bdd9d625-ca5a-4e34-a226-29d85b6876d6",e._sentryDebugIdIdentifier="sentry-dbid-bdd9d625-ca5a-4e34-a226-29d85b6876d6")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"HEAD"};(self.webpackChunkapp_next=self.webpackChunkapp_next||[]).push([[2692,7646],{82692:(e,a,l)=>{l.d(a,{A:()=>d,o:()=>i});var n=l(9950),t=l(73878),s=l(80771),o=l(2989),r=l(91103);const i=e=>{var a,l;const i=(0,n.useContext)(r.Ay),{joid:d}=(0,o.zm)(),c=null!==d&&void 0!==d?d:i.uid,u=(0,t.d4)((e=>{var a;return null!==(a=e.appState.jobOwner)&&void 0!==a?a:i})),{data:p}=(0,s.vl)({uid:null!==c&&void 0!==c?c:i.uid,selectedFilters:null!==(a=null===e||void 0===e?void 0:e.specifyFilters)&&void 0!==a?a:[s.b6.candidate_tags,s.b6.talent_communities,s.b6.talent_pools]},{skip:!(null!==u&&void 0!==u&&null!==(l=u.roles)&&void 0!==l&&l.includes("FmCRM"))});return(0,n.useMemo)((()=>{const e=new Set;var a;p&&(null!==p&&void 0!==p&&p.talent_communities&&Object.values(p.talent_communities).forEach((a=>{var l;a.is_applicant_rejection_tc||(null===a||void 0===a||null===(l=a.tags)||void 0===l||l.forEach((a=>e.add(a))))})),null!==p&&void 0!==p&&p.talent_pools&&Object.values(p.talent_pools).forEach((a=>{var l;a.is_applicant_rejection_tc||(null===a||void 0===a||null===(l=a.tags)||void 0===l||l.forEach((a=>e.add(a))))})),null===p||void 0===p||null===(a=p.candidate_tags)||void 0===a||a.forEach((a=>e.add(a))));return Array.from(e).filter((e=>!!e))}),[p])},d=e=>{const a=i(e);return(0,n.useMemo)((()=>a.map((e=>({label:e,value:e}))).sort(((e,a)=>e.label.localeCompare(a.label)))),[a])}},97646:(e,a,l)=>{l.r(a),l.d(a,{default:()=>$});var n=l(85646),t=l(41397),s=l(14185),o=l(9950),r=l(67818),i=l(1368),d=l(60424),c=l(11419),u=l(92815),p=l(82692),g=l(24836),h=l(74635),f=l(35048),b=l(34938);const m=(0,b.Ay)(s.l6).withConfig({componentId:"app-next__sc-12yy3m2-0"})(["width:100%;"]);var _=l(44414);const v=e=>{let{translationSubPath:a,scope:l,setScope:n}=e;const t=(0,o.useCallback)((e=>{e!==c.Y.Org&&e!==c.Y.User||n(e)}),[n]);return(0,_.jsx)(g.A.Item,{label:(0,_.jsxs)(_.Fragment,{children:[(0,h.t)(`global.${a}.shorthand_single_upper`)," Access"]}),children:(0,_.jsx)(m,{allowClear:!1,showArrow:!0,value:l,onChange:t,options:[{label:(0,_.jsxs)(f.rc,{children:[(0,_.jsx)(s.In,{icon:"language"}),(0,_.jsx)("span",{children:"Everyone in my organization"})]}),value:c.Y.Org},{label:(0,_.jsxs)(f.rc,{children:[(0,_.jsx)(s.In,{icon:"lock"}),(0,_.jsx)("span",{children:"Private - Only you can access"})]}),value:c.Y.User}]})})},y=b.Ay.span.withConfig({componentId:"app-next__sc-17592f8-0"})(["display:inline-block;margin-left:3px;opacity:0.4;"]),C=(0,b.Ay)(s.l6).withConfig({componentId:"app-next__sc-17592f8-1"})(["width:100%;"]),w=(0,b.Ay)(s.In).withConfig({componentId:"app-next__sc-17592f8-2"})(["vertical-align:-2px;"]),{TextArea:x}=s.pd,j={name:!1},I=e=>{const a=(0,p.A)(),l=(0,o.useRef)(null),{t:i}=(0,r.Bd)(),{isTesting:g}=(0,n.zm)(),{type:h,onClose:f,onSuccess:b,triggerMutation:m,isTriggerLoading:I,shortlistMutation:$,isShortlistLoading:k,joId:S,accountId:E,profileIds:A,defaultIsLargeCommunity:T=!1}=e,[L,M]=(0,o.useState)(j),[O,F]=(0,o.useState)(!0),[P,D]=(0,o.useState)(),[N,Y]=(0,o.useState)(),[R,V]=(0,o.useState)(),[z,U]=(0,o.useState)(T),[B,W]=(0,o.useState)(c.Y.Org),H=(0,o.useMemo)((()=>(0,u.IX)(h)),[h]),K=(0,o.useCallback)((()=>{F(!1)}),[]),X=(0,o.useCallback)((()=>{f()}),[f]),q=(0,o.useCallback)((e=>{const a=e.target.value.trim();Y(a)}),[]),G=(0,o.useCallback)((e=>{const a=e.target.value.trim();V(a)}),[]),J=(0,o.useCallback)((e=>{(0,t.isArray)(e)&&D(e),setTimeout((()=>{var e;null===(e=l.current)||void 0===e||e.blur()}),0)}),[]),Q=(0,o.useCallback)((()=>{U((e=>!e))}),[]),Z=(0,o.useCallback)((async()=>{M(j);let e=!1;if(N||(M({name:!0}),e=!0),e)return;const a=await m({type:h,name:N,description:R,tags:P,joId:S,isLargeCommunity:z,...h===c.W.TalentPool&&B===c.Y.User?{is_private:!0}:{}});if("error"in a)s.Ew.error({message:`Error Creating ${i(`global.${H}.single_upper`)}`,description:`There was a problem creating ${i(`global.${H}.single_lower`)}`});else{if(null!==A&&void 0!==A&&A.length){if("error"in await $({joId:S,tcId:a.data.ref,profileIds:A,source:d.nl.MatchPortal}))return s.Ew.error({message:"Error Adding Candidates",description:`${N} was created successfully but there was an error adding candidates, please try again.`}),void F(!1);s.Ew.success({message:`${i(`global.${H}.single_upper`)} Created`,description:`${N} was created successfully and candidates have been assigned.`})}else s.Ew.success({message:`${i(`global.${H}.single_upper`)} Created`,description:`${N} created successfully`});F(!1),b&&b(a.data.ref)}}),[h,R,N,P,m,$,S,E,A,b,z,B]);return(0,_.jsxs)(s.aF,{title:`Create New ${i(`global.${H}.shorthand_single_upper`)}`,open:O,onCancel:K,afterClose:X,okText:"Create",wrapClassName:"overlay-modal",onOk:Z,okButtonProps:{disabled:!N,loading:I||k},className:"profile-action",children:[(null===A||void 0===A?void 0:A.length)&&(0,_.jsx)(s.Fc,{type:"info",message:`Create and assign ${A.length} candidate${(0,n.L_)(A.length)}.`}),(0,_.jsxs)(s.lV,{layout:"vertical",children:[(0,_.jsx)(s.lV.Item,{label:`${i(`global.${H}.shorthand_single_upper`)} Name`,children:(0,_.jsx)(s.pd,{placeholder:`Enter a ${i(`global.${H}.shorthand_single_lower`)} name here`,status:L.name?"error":void 0,onChange:q})}),(0,_.jsx)(s.lV.Item,{label:(0,_.jsxs)(_.Fragment,{children:["Description ",(0,_.jsx)(y,{children:"(Optional)"})]}),children:(0,_.jsx)(x,{placeholder:"Enter description here",onChange:G})}),(0,_.jsx)(s.lV.Item,{label:(0,_.jsxs)(_.Fragment,{children:[i(`global.${H}.shorthand_single_upper`)," Tags ",(0,_.jsx)(y,{children:"(Optional)"})]}),children:(0,_.jsx)(C,{ref:l,allowClear:!0,placeholder:`Add ${i(`global.${H}.shorthand_single_lower`)} tag`,showArrow:!1,mode:"tags",optionFilterProp:"label",value:P,onChange:J,options:a,className:"profile-action",dropdownClassName:"profile-action"})}),h===c.W.TalentPool&&(0,_.jsx)(v,{translationSubPath:H,scope:B,setScope:W}),g&&(0,_.jsxs)(s.Sc,{checked:z,onChange:Q,children:["Create a Large ",i(`global.${H}.single_upper`),(0,_.jsx)(s.m_,{title:`${i(`global.${H}.shorthand_plural_upper`)} expected to have more than 10k candidates`,children:(0,_.jsx)(w,{icon:"info",type:"outlined"})})]})]})]})},$=e=>{let{type:a,joId:l,accountId:n,onClose:t,onSuccess:s,profileIds:o,defaultIsLargeCommunity:r}=e;const[d,{isLoading:c}]=(0,i.MK)(),[u,{isLoading:p}]=(0,i.Dv)();return(0,_.jsx)(I,{type:a,triggerMutation:d,isTriggerLoading:c,shortlistMutation:u,isShortlistLoading:p,onClose:t,joId:l,accountId:n,onSuccess:s,profileIds:o,defaultIsLargeCommunity:r})}}}]);

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.