@scalant/career-hub 4.0.7-alpha.0 → 4.0.8-alpha.0

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.
@@ -54587,7 +54587,7 @@ function ApplicationFormProvider({
54587
54587
  }) {
54588
54588
  const [te, ne] = useState(null), [re, ae] = useState(K), [oe, ie] = useState(null);
54589
54589
  return useEffect(() => {
54590
- ae(K);
54590
+ K === APPLICATION_STATUS$1.RESUME_CHOICE_SELECT ? ae(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK) : ae(K);
54591
54591
  }, [K]), /* @__PURE__ */ React__default.createElement(
54592
54592
  ApplicationFormContext.Provider,
54593
54593
  {
@@ -431,7 +431,7 @@ You must add the middleware for RTK-Query to function correctly!`)}}function he(
431
431
  In the case of an unhandled error, no tags will be "provided" or "invalidated".`,De):console.error(De),De;case 13:return[2]}})})};function oe(he,me){var ue,pe,ye,be,ge=(pe=(ue=me[V])==null?void 0:ue.queries)==null?void 0:pe[he.queryCacheKey],_e=(ye=me[V])==null?void 0:ye.config.refetchOnMountOrArgChange,Se=ge==null?void 0:ge.fulfilledTimeStamp,Ee=(be=he.forceRefetch)!=null?be:he.subscribe&&_e;return Ee?Ee===!0||(Number(new Date)-Number(Se))/1e3>=Ee:!1}var ie=toolkit.createAsyncThunk(V+"/executeQuery",ae,{getPendingMeta:function(){var he;return he={startedTimeStamp:Date.now()},he[toolkit.SHOULD_AUTOBATCH]=!0,he},condition:function(he,me){var ue=me.getState,pe,ye,be,ge=ue(),_e=(ye=(pe=ge[V])==null?void 0:pe.queries)==null?void 0:ye[he.queryCacheKey],Se=_e==null?void 0:_e.fulfilledTimeStamp,Ee=he.originalArgs,Ce=_e==null?void 0:_e.originalArgs,xe=K[he.endpointName];return isUpsertQuery(he)?!0:(_e==null?void 0:_e.status)==="pending"?!1:oe(he,ge)||isQueryDefinition$1(xe)&&((be=xe==null?void 0:xe.forceRefetch)!=null&&be.call(xe,{currentArg:Ee,previousArg:Ce,endpointState:_e,state:ge}))?!0:!Se},dispatchConditionRejection:!0}),se=toolkit.createAsyncThunk(V+"/executeMutation",ae,{getPendingMeta:function(){var he;return he={startedTimeStamp:Date.now()},he[toolkit.SHOULD_AUTOBATCH]=!0,he}}),ce=function(he){return"force"in he},de=function(he){return"ifOlderThan"in he},le=function(he,me,ue){return function(pe,ye){var be=ce(ue)&&ue.force,ge=de(ue)&&ue.ifOlderThan,_e=function(xe){return xe===void 0&&(xe=!0),ee.endpoints[he].initiate(me,{forceRefetch:xe})},Se=ee.endpoints[he].select(me)(ye());if(be)pe(_e());else if(ge){var Ee=Se==null?void 0:Se.fulfilledTimeStamp;if(!Ee){pe(_e());return}var Ce=(Number(new Date)-Number(new Date(Ee)))/1e3>=ge;Ce&&pe(_e())}else pe(_e(!1))}};function ve(he){return function(me){var ue,pe;return((pe=(ue=me==null?void 0:me.meta)==null?void 0:ue.arg)==null?void 0:pe.endpointName)===he}}function fe(he,me){return{matchPending:toolkit.isAllOf(toolkit.isPending(he),ve(me)),matchFulfilled:toolkit.isAllOf(toolkit.isFulfilled(he),ve(me)),matchRejected:toolkit.isAllOf(toolkit.isRejected(he),ve(me))}}return{queryThunk:ie,mutationThunk:se,prefetch:le,updateQueryData:ne,upsertQueryData:re,patchQueryData:te,buildMatchThunkActions:fe}}function calculateProvidedByThunk(C,$,V,F){return calculateProvidedBy(V[C.meta.arg.endpointName][$],toolkit.isFulfilled(C)?C.payload:void 0,toolkit.isRejectedWithValue(C)?C.payload:void 0,C.meta.arg.originalArgs,"baseQueryMeta"in C.meta?C.meta.baseQueryMeta:void 0,F)}function updateQuerySubstateIfExists(C,$,V){var F=C[$];F&&V(F)}function getMutationCacheKey(C){var $;return($="arg"in C?C.arg.fixedCacheKey:C.fixedCacheKey)!=null?$:C.requestId}function updateMutationSubstateIfExists(C,$,V){var F=C[getMutationCacheKey($)];F&&V(F)}var initialState$8={};function buildSlice(C){var $=C.reducerPath,V=C.queryThunk,F=C.mutationThunk,K=C.context,J=K.endpointDefinitions,ee=K.apiUid,te=K.extractRehydrationInfo,ne=K.hasRehydrationInfo,re=C.assertTagType,ae=C.config,oe=toolkit.createAction($+"/resetApiState"),ie=toolkit.createSlice({name:$+"/queries",initialState:initialState$8,reducers:{removeQueryResult:{reducer:function(ue,pe){var ye=pe.payload.queryCacheKey;delete ue[ye]},prepare:toolkit.prepareAutoBatched()},queryResultPatched:function(ue,pe){var ye=pe.payload,be=ye.queryCacheKey,ge=ye.patches;updateQuerySubstateIfExists(ue,be,function(_e){_e.data=pn(_e.data,ge.concat())})}},extraReducers:function(ue){ue.addCase(V.pending,function(pe,ye){var be=ye.meta,ge=ye.meta.arg,_e,Se,Ee=isUpsertQuery(ge);(ge.subscribe||Ee)&&((Se=pe[_e=ge.queryCacheKey])!=null||(pe[_e]={status:QueryStatus.uninitialized,endpointName:ge.endpointName})),updateQuerySubstateIfExists(pe,ge.queryCacheKey,function(Ce){Ce.status=QueryStatus.pending,Ce.requestId=Ee&&Ce.requestId?Ce.requestId:be.requestId,ge.originalArgs!==void 0&&(Ce.originalArgs=ge.originalArgs),Ce.startedTimeStamp=be.startedTimeStamp})}).addCase(V.fulfilled,function(pe,ye){var be=ye.meta,ge=ye.payload;updateQuerySubstateIfExists(pe,be.arg.queryCacheKey,function(_e){var Se;if(!(_e.requestId!==be.requestId&&!isUpsertQuery(be.arg))){var Ee=J[be.arg.endpointName].merge;if(_e.status=QueryStatus.fulfilled,Ee)if(_e.data!==void 0){var Ce=be.fulfilledTimeStamp,xe=be.arg,$e=be.baseQueryMeta,Ie=be.requestId,Fe=toolkit.createNextState(_e.data,function(Ne){return Ee(Ne,ge,{arg:xe.originalArgs,baseQueryMeta:$e,fulfilledTimeStamp:Ce,requestId:Ie})});_e.data=Fe}else _e.data=ge;else _e.data=(Se=J[be.arg.endpointName].structuralSharing)==null||Se?copyWithStructuralSharing(_e.data,ge):ge;delete _e.error,_e.fulfilledTimeStamp=be.fulfilledTimeStamp}})}).addCase(V.rejected,function(pe,ye){var be=ye.meta,ge=be.condition,_e=be.arg,Se=be.requestId,Ee=ye.error,Ce=ye.payload;updateQuerySubstateIfExists(pe,_e.queryCacheKey,function(xe){if(!ge){if(xe.requestId!==Se)return;xe.status=QueryStatus.rejected,xe.error=Ce!=null?Ce:Ee}})}).addMatcher(ne,function(pe,ye){for(var be=te(ye).queries,ge=0,_e=Object.entries(be);ge<_e.length;ge++){var Se=_e[ge],Ee=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&(pe[Ee]=Ce)}})}}),se=toolkit.createSlice({name:$+"/mutations",initialState:initialState$8,reducers:{removeMutationResult:{reducer:function(ue,pe){var ye=pe.payload,be=getMutationCacheKey(ye);be in ue&&delete ue[be]},prepare:toolkit.prepareAutoBatched()}},extraReducers:function(ue){ue.addCase(F.pending,function(pe,ye){var be=ye.meta,ge=ye.meta,_e=ge.requestId,Se=ge.arg,Ee=ge.startedTimeStamp;Se.track&&(pe[getMutationCacheKey(be)]={requestId:_e,status:QueryStatus.pending,endpointName:Se.endpointName,startedTimeStamp:Ee})}).addCase(F.fulfilled,function(pe,ye){var be=ye.payload,ge=ye.meta;ge.arg.track&&updateMutationSubstateIfExists(pe,ge,function(_e){_e.requestId===ge.requestId&&(_e.status=QueryStatus.fulfilled,_e.data=be,_e.fulfilledTimeStamp=ge.fulfilledTimeStamp)})}).addCase(F.rejected,function(pe,ye){var be=ye.payload,ge=ye.error,_e=ye.meta;_e.arg.track&&updateMutationSubstateIfExists(pe,_e,function(Se){Se.requestId===_e.requestId&&(Se.status=QueryStatus.rejected,Se.error=be!=null?be:ge)})}).addMatcher(ne,function(pe,ye){for(var be=te(ye).mutations,ge=0,_e=Object.entries(be);ge<_e.length;ge++){var Se=_e[ge],Ee=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&Ee!==(Ce==null?void 0:Ce.requestId)&&(pe[Ee]=Ce)}})}}),ce=toolkit.createSlice({name:$+"/invalidation",initialState:initialState$8,reducers:{},extraReducers:function(ue){ue.addCase(ie.actions.removeQueryResult,function(pe,ye){for(var be=ye.payload.queryCacheKey,ge=0,_e=Object.values(pe);ge<_e.length;ge++)for(var Se=_e[ge],Ee=0,Ce=Object.values(Se);Ee<Ce.length;Ee++){var xe=Ce[Ee],$e=xe.indexOf(be);$e!==-1&&xe.splice($e,1)}}).addMatcher(ne,function(pe,ye){for(var be,ge,_e,Se,Ee=te(ye).provided,Ce=0,xe=Object.entries(Ee);Ce<xe.length;Ce++)for(var $e=xe[Ce],Ie=$e[0],Fe=$e[1],Ne=0,De=Object.entries(Fe);Ne<De.length;Ne++)for(var Oe=De[Ne],we=Oe[0],Ae=Oe[1],ke=(Se=(ge=(be=pe[Ie])!=null?be:pe[Ie]={})[_e=we||"__internal_without_id"])!=null?Se:ge[_e]=[],je=0,ze=Ae;je<ze.length;je++){var Ve=ze[je],Xe=ke.includes(Ve);Xe||ke.push(Ve)}}).addMatcher(toolkit.isAnyOf(toolkit.isFulfilled(V),toolkit.isRejectedWithValue(V)),function(pe,ye){for(var be,ge,_e,Se,Ee=calculateProvidedByThunk(ye,"providesTags",J,re),Ce=ye.meta.arg.queryCacheKey,xe=0,$e=Object.values(pe);xe<$e.length;xe++)for(var Ie=$e[xe],Fe=0,Ne=Object.values(Ie);Fe<Ne.length;Fe++){var De=Ne[Fe],Oe=De.indexOf(Ce);Oe!==-1&&De.splice(Oe,1)}for(var we=0,Ae=Ee;we<Ae.length;we++){var ke=Ae[we],je=ke.type,ze=ke.id,Ve=(Se=(ge=(be=pe[je])!=null?be:pe[je]={})[_e=ze||"__internal_without_id"])!=null?Se:ge[_e]=[],Xe=Ve.includes(Ce);Xe||Ve.push(Ce)}})}}),de=toolkit.createSlice({name:$+"/subscriptions",initialState:initialState$8,reducers:{updateSubscriptionOptions:function(ue,pe){},unsubscribeQueryResult:function(ue,pe){},internal_probeSubscription:function(ue,pe){}}}),le=toolkit.createSlice({name:$+"/internalSubscriptions",initialState:initialState$8,reducers:{subscriptionsUpdated:function(ue,pe){return pn(ue,pe.payload)}}}),ve=toolkit.createSlice({name:$+"/config",initialState:__spreadValues$1({online:isOnline(),focused:isDocumentVisible(),middlewareRegistered:!1},ae),reducers:{middlewareRegistered:function(ue,pe){var ye=pe.payload;ue.middlewareRegistered=ue.middlewareRegistered==="conflict"||ee!==ye?"conflict":!0}},extraReducers:function(ue){ue.addCase(onOnline,function(pe){pe.online=!0}).addCase(onOffline,function(pe){pe.online=!1}).addCase(onFocus,function(pe){pe.focused=!0}).addCase(onFocusLost,function(pe){pe.focused=!1}).addMatcher(ne,function(pe){return __spreadValues$1({},pe)})}}),fe=toolkit.combineReducers({queries:ie.reducer,mutations:se.reducer,provided:ce.reducer,subscriptions:le.reducer,config:ve.reducer}),he=function(ue,pe){return fe(oe.match(pe)?void 0:ue,pe)},me=__spreadProps$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1({},ve.actions),ie.actions),de.actions),le.actions),se.actions),{unsubscribeMutationResult:se.actions.removeMutationResult,resetApiState:oe});return{reducer:he,actions:me}}var skipToken=Symbol.for("RTKQ/skipToken"),initialSubState={status:QueryStatus.uninitialized},defaultQuerySubState=toolkit.createNextState(initialSubState,function(){}),defaultMutationSubState=toolkit.createNextState(initialSubState,function(){});function buildSelectors(C){var $=C.serializeQueryArgs,V=C.reducerPath,F=function(ae){return defaultQuerySubState},K=function(ae){return defaultMutationSubState};return{buildQuerySelector:te,buildMutationSelector:ne,selectInvalidatedBy:re};function J(ae){return __spreadValues$1(__spreadValues$1({},ae),getRequestStatusFlags(ae.status))}function ee(ae){var oe=ae[V];if(process.env.NODE_ENV!=="production"&&!oe){if(ee.triggered)return oe;ee.triggered=!0,console.error("Error: No data found at `state."+V+"`. Did you forget to add the reducer to the store?")}return oe}function te(ae,oe){return function(ie){var se=$({queryArgs:ie,endpointDefinition:oe,endpointName:ae}),ce=function(le){var ve,fe,he;return(he=(fe=(ve=ee(le))==null?void 0:ve.queries)==null?void 0:fe[se])!=null?he:defaultQuerySubState},de=ie===skipToken?F:ce;return toolkit.createSelector(de,J)}}function ne(){return function(ae){var oe,ie;typeof ae=="object"?ie=(oe=getMutationCacheKey(ae))!=null?oe:skipToken:ie=ae;var se=function(de){var le,ve,fe;return(fe=(ve=(le=ee(de))==null?void 0:le.mutations)==null?void 0:ve[ie])!=null?fe:defaultMutationSubState},ce=ie===skipToken?K:se;return toolkit.createSelector(ce,J)}}function re(ae,oe){for(var ie,se=ae[V],ce=new Set,de=0,le=oe.map(expandTagDescription);de<le.length;de++){var ve=le[de],fe=se.provided[ve.type];if(fe)for(var he=(ie=ve.id!==void 0?fe[ve.id]:flatten(Object.values(fe)))!=null?ie:[],me=0,ue=he;me<ue.length;me++){var pe=ue[me];ce.add(pe)}}return flatten(Array.from(ce.values()).map(function(ye){var be=se.queries[ye];return be?[{queryCacheKey:ye,endpointName:be.endpointName,originalArgs:be.originalArgs}]:[]}))}}var cache$1=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs$1=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache$1==null?void 0:cache$1.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache$1==null||cache$1.set(V,J)),F=J}return $+"("+F+")"};function buildCreateApi(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return function(F){var K=defaultMemoize(function(ae){var oe,ie;return(ie=F.extractRehydrationInfo)==null?void 0:ie.call(F,ae,{reducerPath:(oe=F.reducerPath)!=null?oe:"api"})}),J=__spreadProps$1(__spreadValues$1({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},F),{extractRehydrationInfo:K,serializeQueryArgs:function(ae){var oe=defaultSerializeQueryArgs$1;if("serializeQueryArgs"in ae.endpointDefinition){var ie=ae.endpointDefinition.serializeQueryArgs;oe=function(se){var ce=ie(se);return typeof ce=="string"?ce:defaultSerializeQueryArgs$1(__spreadProps$1(__spreadValues$1({},se),{queryArgs:ce}))}}else F.serializeQueryArgs&&(oe=F.serializeQueryArgs);return oe(ae)},tagTypes:__spreadArray$2([],F.tagTypes||[])}),ee={endpointDefinitions:{},batch:function(ae){ae()},apiUid:toolkit.nanoid(),extractRehydrationInfo:K,hasRehydrationInfo:defaultMemoize(function(ae){return K(ae)!=null})},te={injectEndpoints:re,enhanceEndpoints:function(ae){var oe=ae.addTagTypes,ie=ae.endpoints;if(oe)for(var se=0,ce=oe;se<ce.length;se++){var de=ce[se];J.tagTypes.includes(de)||J.tagTypes.push(de)}if(ie)for(var le=0,ve=Object.entries(ie);le<ve.length;le++){var fe=ve[le],he=fe[0],me=fe[1];typeof me=="function"?me(ee.endpointDefinitions[he]):Object.assign(ee.endpointDefinitions[he]||{},me)}return te}},ne=C.map(function(ae){return ae.init(te,J,ee)});function re(ae){for(var oe=ae.endpoints({query:function(me){return __spreadProps$1(__spreadValues$1({},me),{type:DefinitionType$1.query})},mutation:function(me){return __spreadProps$1(__spreadValues$1({},me),{type:DefinitionType$1.mutation})}}),ie=0,se=Object.entries(oe);ie<se.length;ie++){var ce=se[ie],de=ce[0],le=ce[1];if(!ae.overrideExisting&&de in ee.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+de+" without specifying `overrideExisting: true`");continue}ee.endpointDefinitions[de]=le;for(var ve=0,fe=ne;ve<fe.length;ve++){var he=fe[ve];he.injectEndpoint(de,le)}}return te}return te.injectEndpoints({endpoints:F.endpoints})}}function isObjectEmpty(C){for(var $ in C)return!1;return!0}var THIRTY_TWO_BIT_MAX_TIMER_SECONDS=2147483647/1e3-1,buildCacheCollectionHandler=function(C){var $=C.reducerPath,V=C.api,F=C.context,K=C.internalState,J=V.internalActions,ee=J.removeQueryResult,te=J.unsubscribeQueryResult;function ne(ie){var se=K.currentSubscriptions[ie];return!!se&&!isObjectEmpty(se)}var re={},ae=function(ie,se,ce){var de;if(te.match(ie)){var le=se.getState()[$],ve=ie.payload.queryCacheKey;oe(ve,(de=le.queries[ve])==null?void 0:de.endpointName,se,le.config)}if(V.util.resetApiState.match(ie))for(var fe=0,he=Object.entries(re);fe<he.length;fe++){var me=he[fe],ue=me[0],pe=me[1];pe&&clearTimeout(pe),delete re[ue]}if(F.hasRehydrationInfo(ie))for(var le=se.getState()[$],ye=F.extractRehydrationInfo(ie).queries,be=0,ge=Object.entries(ye);be<ge.length;be++){var _e=ge[be],ve=_e[0],Se=_e[1];oe(ve,Se==null?void 0:Se.endpointName,se,le.config)}};function oe(ie,se,ce,de){var le,ve=F.endpointDefinitions[se],fe=(le=ve==null?void 0:ve.keepUnusedDataFor)!=null?le:de.keepUnusedDataFor;if(fe!==1/0){var he=Math.max(0,Math.min(fe,THIRTY_TWO_BIT_MAX_TIMER_SECONDS));if(!ne(ie)){var me=re[ie];me&&clearTimeout(me),re[ie]=setTimeout(function(){ne(ie)||ce.dispatch(ee({queryCacheKey:ie})),delete re[ie]},he*1e3)}}}return ae},buildInvalidationByTagsHandler=function(C){var $=C.reducerPath,V=C.context,F=C.context.endpointDefinitions,K=C.mutationThunk,J=C.api,ee=C.assertTagType,te=C.refetchQuery,ne=J.internalActions.removeQueryResult,re=toolkit.isAnyOf(toolkit.isFulfilled(K),toolkit.isRejectedWithValue(K)),ae=function(ie,se){re(ie)&&oe(calculateProvidedByThunk(ie,"invalidatesTags",F,ee),se),J.util.invalidateTags.match(ie)&&oe(calculateProvidedBy(ie.payload,void 0,void 0,void 0,void 0,ee),se)};function oe(ie,se){var ce=se.getState(),de=ce[$],le=J.util.selectInvalidatedBy(ce,ie);V.batch(function(){for(var ve,fe=Array.from(le.values()),he=0,me=fe;he<me.length;he++){var ue=me[he].queryCacheKey,pe=de.queries[ue],ye=(ve=de.subscriptions[ue])!=null?ve:{};pe&&(Object.keys(ye).length===0?se.dispatch(ne({queryCacheKey:ue})):pe.status!==QueryStatus.uninitialized&&se.dispatch(te(pe,ue)))}})}return ae},buildPollingHandler=function(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.refetchQuery,J=C.internalState,ee={},te=function(se,ce){(F.internalActions.updateSubscriptionOptions.match(se)||F.internalActions.unsubscribeQueryResult.match(se))&&re(se.payload,ce),(V.pending.match(se)||V.rejected.match(se)&&se.meta.condition)&&re(se.meta.arg,ce),(V.fulfilled.match(se)||V.rejected.match(se)&&!se.meta.condition)&&ne(se.meta.arg,ce),F.util.resetApiState.match(se)&&oe()};function ne(se,ce){var de=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[de],fe=J.currentSubscriptions[de];if(!(!ve||ve.status===QueryStatus.uninitialized)){var he=ie(fe);if(Number.isFinite(he)){var me=ee[de];me!=null&&me.timeout&&(clearTimeout(me.timeout),me.timeout=void 0);var ue=Date.now()+he,pe=ee[de]={nextPollTimestamp:ue,pollingInterval:he,timeout:setTimeout(function(){pe.timeout=void 0,ce.dispatch(K(ve,de))},he)}}}}function re(se,ce){var de=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[de],fe=J.currentSubscriptions[de];if(!(!ve||ve.status===QueryStatus.uninitialized)){var he=ie(fe);if(!Number.isFinite(he)){ae(de);return}var me=ee[de],ue=Date.now()+he;(!me||ue<me.nextPollTimestamp)&&ne({queryCacheKey:de},ce)}}function ae(se){var ce=ee[se];ce!=null&&ce.timeout&&clearTimeout(ce.timeout),delete ee[se]}function oe(){for(var se=0,ce=Object.keys(ee);se<ce.length;se++){var de=ce[se];ae(de)}}function ie(se){se===void 0&&(se={});var ce=Number.POSITIVE_INFINITY;for(var de in se)se[de].pollingInterval&&(ce=Math.min(se[de].pollingInterval,ce));return ce}return te},buildWindowEventHandler=function(C){var $=C.reducerPath,V=C.context,F=C.api,K=C.refetchQuery,J=C.internalState,ee=F.internalActions.removeQueryResult,te=function(re,ae){onFocus.match(re)&&ne(ae,"refetchOnFocus"),onOnline.match(re)&&ne(ae,"refetchOnReconnect")};function ne(re,ae){var oe=re.getState()[$],ie=oe.queries,se=J.currentSubscriptions;V.batch(function(){for(var ce=0,de=Object.keys(se);ce<de.length;ce++){var le=de[ce],ve=ie[le],fe=se[le];if(!(!fe||!ve)){var he=Object.values(fe).some(function(me){return me[ae]===!0})||Object.values(fe).every(function(me){return me[ae]===void 0})&&oe.config[ae];he&&(Object.keys(fe).length===0?re.dispatch(ee({queryCacheKey:le})):ve.status!==QueryStatus.uninitialized&&re.dispatch(K(ve,le)))}}})}return te},neverResolvedError=new Error("Promise never resolved before cacheEntryRemoved."),buildCacheLifecycleHandler=function(C){var $=C.api,V=C.reducerPath,F=C.context,K=C.queryThunk,J=C.mutationThunk;C.internalState;var ee=toolkit.isAsyncThunkAction(K),te=toolkit.isAsyncThunkAction(J),ne=toolkit.isFulfilled(K,J),re={},ae=function(se,ce,de){var le=oe(se);if(K.pending.match(se)){var ve=de[V].queries[le],fe=ce.getState()[V].queries[le];!ve&&fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(J.pending.match(se)){var fe=ce.getState()[V].mutations[le];fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(ne(se)){var he=re[le];he!=null&&he.valueResolved&&(he.valueResolved({data:se.payload,meta:se.meta.baseQueryMeta}),delete he.valueResolved)}else if($.internalActions.removeQueryResult.match(se)||$.internalActions.removeMutationResult.match(se)){var he=re[le];he&&(delete re[le],he.cacheEntryRemoved())}else if($.util.resetApiState.match(se))for(var me=0,ue=Object.entries(re);me<ue.length;me++){var pe=ue[me],ye=pe[0],he=pe[1];delete re[ye],he.cacheEntryRemoved()}};function oe(se){return ee(se)?se.meta.arg.queryCacheKey:te(se)?se.meta.requestId:$.internalActions.removeQueryResult.match(se)?se.payload.queryCacheKey:$.internalActions.removeMutationResult.match(se)?getMutationCacheKey(se.payload):""}function ie(se,ce,de,le,ve){var fe=F.endpointDefinitions[se],he=fe==null?void 0:fe.onCacheEntryAdded;if(he){var me={},ue=new Promise(function(Se){me.cacheEntryRemoved=Se}),pe=Promise.race([new Promise(function(Se){me.valueResolved=Se}),ue.then(function(){throw neverResolvedError})]);pe.catch(function(){}),re[de]=me;var ye=$.endpoints[se].select(fe.type===DefinitionType$1.query?ce:de),be=le.dispatch(function(Se,Ee,Ce){return Ce}),ge=__spreadProps$1(__spreadValues$1({},le),{getCacheEntry:function(){return ye(le.getState())},requestId:ve,extra:be,updateCachedData:fe.type===DefinitionType$1.query?function(Se){return le.dispatch($.util.updateQueryData(se,ce,Se))}:void 0,cacheDataLoaded:pe,cacheEntryRemoved:ue}),_e=he(ce,ge);Promise.resolve(_e).catch(function(Se){if(Se!==neverResolvedError)throw Se})}}return ae},buildQueryLifecycleHandler=function(C){var $=C.api,V=C.context,F=C.queryThunk,K=C.mutationThunk,J=toolkit.isPending(F,K),ee=toolkit.isRejected(F,K),te=toolkit.isFulfilled(F,K),ne={},re=function(ae,oe){var ie,se,ce;if(J(ae)){var de=ae.meta,le=de.requestId,ve=de.arg,fe=ve.endpointName,he=ve.originalArgs,me=V.endpointDefinitions[fe],ue=me==null?void 0:me.onQueryStarted;if(ue){var pe={},ye=new Promise(function($e,Ie){pe.resolve=$e,pe.reject=Ie});ye.catch(function(){}),ne[le]=pe;var be=$.endpoints[fe].select(me.type===DefinitionType$1.query?he:le),ge=oe.dispatch(function($e,Ie,Fe){return Fe}),_e=__spreadProps$1(__spreadValues$1({},oe),{getCacheEntry:function(){return be(oe.getState())},requestId:le,extra:ge,updateCachedData:me.type===DefinitionType$1.query?function($e){return oe.dispatch($.util.updateQueryData(fe,he,$e))}:void 0,queryFulfilled:ye});ue(he,_e)}}else if(te(ae)){var Se=ae.meta,le=Se.requestId,Ee=Se.baseQueryMeta;(ie=ne[le])==null||ie.resolve({data:ae.payload,meta:Ee}),delete ne[le]}else if(ee(ae)){var Ce=ae.meta,le=Ce.requestId,xe=Ce.rejectedWithValue,Ee=Ce.baseQueryMeta;(ce=ne[le])==null||ce.reject({error:(se=ae.payload)!=null?se:ae.error,isUnhandledError:!xe,meta:Ee}),delete ne[le]}};return re},buildDevCheckHandler=function(C){var $=C.api,V=C.context.apiUid,F=C.reducerPath;return function(K,J){var ee,te;$.util.resetApiState.match(K)&&J.dispatch($.internalActions.middlewareRegistered(V)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&$.internalActions.middlewareRegistered.match(K)&&K.payload===V&&((te=(ee=J.getState()[F])==null?void 0:ee.config)==null?void 0:te.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+F+`".
432
432
  You can only have one api per reducer path, this will lead to crashes in various situations!`+(F==="api"?`
433
433
  If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},promise,queueMicrotaskShim=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(C){return(promise||(promise=Promise.resolve())).then(C).catch(function($){return setTimeout(function(){throw $},0)})},buildBatchedActionsHandler=function(C){var $=C.api,V=C.queryThunk,F=C.internalState,K=$.reducerPath+"/subscriptions",J=null,ee=!1,te=$.internalActions,ne=te.updateSubscriptionOptions,re=te.unsubscribeQueryResult,ae=function(oe,ie){var se,ce,de,le,ve,fe,he,me,ue;if(ne.match(ie)){var pe=ie.payload,ye=pe.queryCacheKey,be=pe.requestId,ge=pe.options;return(se=oe==null?void 0:oe[ye])!=null&&se[be]&&(oe[ye][be]=ge),!0}if(re.match(ie)){var _e=ie.payload,ye=_e.queryCacheKey,be=_e.requestId;return oe[ye]&&delete oe[ye][be],!0}if($.internalActions.removeQueryResult.match(ie))return delete oe[ie.payload.queryCacheKey],!0;if(V.pending.match(ie)){var Se=ie.meta,Ee=Se.arg,be=Se.requestId;if(Ee.subscribe){var Ce=(de=oe[ce=Ee.queryCacheKey])!=null?de:oe[ce]={};return Ce[be]=(ve=(le=Ee.subscriptionOptions)!=null?le:Ce[be])!=null?ve:{},!0}}if(V.rejected.match(ie)){var xe=ie.meta,$e=xe.condition,Ee=xe.arg,be=xe.requestId;if($e&&Ee.subscribe){var Ce=(he=oe[fe=Ee.queryCacheKey])!=null?he:oe[fe]={};return Ce[be]=(ue=(me=Ee.subscriptionOptions)!=null?me:Ce[be])!=null?ue:{},!0}}return!1};return function(oe,ie){var se,ce;if(J||(J=JSON.parse(JSON.stringify(F.currentSubscriptions))),$.internalActions.internal_probeSubscription.match(oe)){var de=oe.payload,le=de.queryCacheKey,ve=de.requestId,fe=!!((se=F.currentSubscriptions[le])!=null&&se[ve]);return[!1,fe]}var he=ae(F.currentSubscriptions,oe);if(he){ee||(queueMicrotaskShim(function(){var ye=JSON.parse(JSON.stringify(F.currentSubscriptions)),be=cn(J,function(){return ye}),ge=be[1];ie.next($.internalActions.subscriptionsUpdated(ge)),J=ye,ee=!1}),ee=!0);var me=!!((ce=oe.type)!=null&&ce.startsWith(K)),ue=V.rejected.match(oe)&&oe.meta.condition&&!!oe.meta.arg.subscribe,pe=!me&&!ue;return[pe,!1]}return[!0,!1]}};function buildMiddleware(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.context,J=K.apiUid,ee={invalidateTags:toolkit.createAction($+"/invalidateTags")},te=function(oe){return!!oe&&typeof oe.type=="string"&&oe.type.startsWith($+"/")},ne=[buildDevCheckHandler,buildCacheCollectionHandler,buildInvalidationByTagsHandler,buildPollingHandler,buildCacheLifecycleHandler,buildQueryLifecycleHandler],re=function(oe){var ie=!1,se={currentSubscriptions:{}},ce=__spreadProps$1(__spreadValues$1({},C),{internalState:se,refetchQuery:ae}),de=ne.map(function(fe){return fe(ce)}),le=buildBatchedActionsHandler(ce),ve=buildWindowEventHandler(ce);return function(fe){return function(he){ie||(ie=!0,oe.dispatch(F.internalActions.middlewareRegistered(J)));var me=__spreadProps$1(__spreadValues$1({},oe),{next:fe}),ue=oe.getState(),pe=le(he,me,ue),ye=pe[0],be=pe[1],ge;if(ye?ge=fe(he):ge=be,oe.getState()[$]&&(ve(he,me,ue),te(he)||K.hasRehydrationInfo(he)))for(var _e=0,Se=de;_e<Se.length;_e++){var Ee=Se[_e];Ee(he,me,ue)}return ge}}};return{middleware:re,actions:ee};function ae(oe,ie,se){return se===void 0&&(se={}),V(__spreadValues$1({type:"query",endpointName:oe.endpointName,originalArgs:oe.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:ie},se))}}function safeAssign$1(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$2([C],$))}var coreModuleName=Symbol(),coreModule=function(){return{name:coreModuleName,init:function(C,$,V){var F=$.baseQuery,K=$.tagTypes,J=$.reducerPath,ee=$.serializeQueryArgs,te=$.keepUnusedDataFor,ne=$.refetchOnMountOrArgChange,re=$.refetchOnFocus,ae=$.refetchOnReconnect;T();var oe=function(ke){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(K.includes(ke.type)||console.error("Tag type '"+ke.type+"' was used, but not specified in `tagTypes`!")),ke};Object.assign(C,{reducerPath:J,endpoints:{},internalActions:{onOnline,onOffline,onFocus,onFocusLost},util:{}});var ie=buildThunks({baseQuery:F,reducerPath:J,context:V,api:C,serializeQueryArgs:ee}),se=ie.queryThunk,ce=ie.mutationThunk,de=ie.patchQueryData,le=ie.updateQueryData,ve=ie.upsertQueryData,fe=ie.prefetch,he=ie.buildMatchThunkActions,me=buildSlice({context:V,queryThunk:se,mutationThunk:ce,reducerPath:J,assertTagType:oe,config:{refetchOnFocus:re,refetchOnReconnect:ae,refetchOnMountOrArgChange:ne,keepUnusedDataFor:te,reducerPath:J}}),ue=me.reducer,pe=me.actions;safeAssign$1(C.util,{patchQueryData:de,updateQueryData:le,upsertQueryData:ve,prefetch:fe,resetApiState:pe.resetApiState}),safeAssign$1(C.internalActions,pe);var ye=buildMiddleware({reducerPath:J,context:V,queryThunk:se,mutationThunk:ce,api:C,assertTagType:oe}),be=ye.middleware,ge=ye.actions;safeAssign$1(C.util,ge),safeAssign$1(C,{reducer:ue,middleware:be});var _e=buildSelectors({serializeQueryArgs:ee,reducerPath:J}),Se=_e.buildQuerySelector,Ee=_e.buildMutationSelector,Ce=_e.selectInvalidatedBy;safeAssign$1(C.util,{selectInvalidatedBy:Ce});var xe=buildInitiate({queryThunk:se,mutationThunk:ce,api:C,serializeQueryArgs:ee,context:V}),$e=xe.buildInitiateQuery,Ie=xe.buildInitiateMutation,Fe=xe.getRunningMutationThunk,Ne=xe.getRunningMutationsThunk,De=xe.getRunningQueriesThunk,Oe=xe.getRunningQueryThunk,we=xe.getRunningOperationPromises,Ae=xe.removalWarning;return safeAssign$1(C.util,{getRunningOperationPromises:we,getRunningOperationPromise:Ae,getRunningMutationThunk:Fe,getRunningMutationsThunk:Ne,getRunningQueryThunk:Oe,getRunningQueriesThunk:De}),{name:coreModuleName,injectEndpoint:function(ke,je){var ze,Ve,Xe=C;(Ve=(ze=Xe.endpoints)[ke])!=null||(ze[ke]={}),isQueryDefinition$1(je)?safeAssign$1(Xe.endpoints[ke],{name:ke,select:Se(ke,je),initiate:$e(ke,je)},he(se,ke)):isMutationDefinition$1(je)&&safeAssign$1(Xe.endpoints[ke],{name:ke,select:Ee(),initiate:Ie(ke)},he(ce,ke))}}}}},__spreadArray$1=globalThis&&globalThis.__spreadArray||function(C,$){for(var V=0,F=$.length,K=C.length;V<F;V++,K++)C[K]=$[V];return C},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(C,$,V){return $ in C?__defProp(C,$,{enumerable:!0,configurable:!0,writable:!0,value:V}):C[$]=V},__spreadValues=function(C,$){for(var V in $||($={}))__hasOwnProp.call($,V)&&__defNormalProp(C,V,$[V]);if(__getOwnPropSymbols)for(var F=0,K=__getOwnPropSymbols($);F<K.length;F++){var V=K[F];__propIsEnum.call($,V)&&__defNormalProp(C,V,$[V])}return C},__spreadProps=function(C,$){return __defProps(C,__getOwnPropDescs($))};function useStableQueryArgs(C,$,V,F){var K=React.useMemo(function(){return{queryArgs:C,serialized:typeof C=="object"?$({queryArgs:C,endpointDefinition:V,endpointName:F}):C}},[C,$,V,F]),J=React.useRef(K);return React.useEffect(function(){J.current.serialized!==K.serialized&&(J.current=K)},[K]),J.current.serialized===K.serialized?J.current.queryArgs:C}var UNINITIALIZED_VALUE=Symbol();function useShallowStableValue(C){var $=React.useRef(C);return React.useEffect(function(){reactRedux.shallowEqual($.current,C)||($.current=C)},[C]),reactRedux.shallowEqual($.current,C)?$.current:C}var cache=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache==null?void 0:cache.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache==null||cache.set(V,J)),F=J}return $+"("+F+")"},useIsomorphicLayoutEffect=typeof window!="undefined"&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect,defaultMutationStateSelector=function(C){return C},noPendingQueryStateSelector=function(C){return C.isUninitialized?__spreadProps(__spreadValues({},C),{isUninitialized:!1,isFetching:!0,isLoading:C.data===void 0,status:QueryStatus.pending}):C};function buildHooks(C){var $=C.api,V=C.moduleOptions,F=V.batch,K=V.useDispatch,J=V.useSelector,ee=V.useStore,te=V.unstable__sideEffectsInRender,ne=C.serializeQueryArgs,re=C.context,ae=te?function(de){return de()}:React.useEffect;return{buildQueryHooks:se,buildMutationHook:ce,usePrefetch:ie};function oe(de,le,ve){if(le!=null&&le.endpointName&&de.isUninitialized){var fe=le.endpointName,he=re.endpointDefinitions[fe];ne({queryArgs:le.originalArgs,endpointDefinition:he,endpointName:fe})===ne({queryArgs:ve,endpointDefinition:he,endpointName:fe})&&(le=void 0)}var me=de.isSuccess?de.data:le==null?void 0:le.data;me===void 0&&(me=de.data);var ue=me!==void 0,pe=de.isLoading,ye=!ue&&pe,be=de.isSuccess||pe&&ue;return __spreadProps(__spreadValues({},de),{data:me,currentData:de.data,isFetching:pe,isLoading:ye,isSuccess:be})}function ie(de,le){var ve=K(),fe=useShallowStableValue(le);return React.useCallback(function(he,me){return ve($.util.prefetch(de,he,__spreadValues(__spreadValues({},fe),me)))},[de,ve,fe])}function se(de){var le=function(he,me){var ue=me===void 0?{}:me,pe=ue.refetchOnReconnect,ye=ue.refetchOnFocus,be=ue.refetchOnMountOrArgChange,ge=ue.skip,_e=ge===void 0?!1:ge,Se=ue.pollingInterval,Ee=Se===void 0?0:Se,Ce=$.endpoints[de].initiate,xe=K(),$e=useStableQueryArgs(_e?skipToken:he,defaultSerializeQueryArgs,re.endpointDefinitions[de],de),Ie=useShallowStableValue({refetchOnReconnect:pe,refetchOnFocus:ye,pollingInterval:Ee}),Fe=React.useRef(!1),Ne=React.useRef(),De=Ne.current||{},Oe=De.queryCacheKey,we=De.requestId,Ae=!1;if(Oe&&we){var ke=xe($.internalActions.internal_probeSubscription({queryCacheKey:Oe,requestId:we}));if(process.env.NODE_ENV!=="production"&&typeof ke!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+$.reducerPath+`" has not been added to the store.
434
- You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:be}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,be,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(he){var me=he===void 0?{}:he,ue=me.refetchOnReconnect,pe=me.refetchOnFocus,ye=me.pollingInterval,be=ye===void 0?0:ye,ge=$.endpoints[de].initiate,_e=K(),Se=React.useState(UNINITIALIZED_VALUE),Ee=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:ue,refetchOnFocus:pe,pollingInterval:be});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var we;(we=xe.current)==null||we.unsubscribe(),xe.current=Oe=_e(ge(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[_e,ge]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Ee!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Ee,!0)},[Ee,Fe]),React.useMemo(function(){return[Fe,Ee]},[Fe,Ee])},fe=function(he,me){var ue=me===void 0?{}:me,pe=ue.skip,ye=pe===void 0?!1:pe,be=ue.selectFromResult,ge=$.endpoints[de].select,_e=useStableQueryArgs(ye?skipToken:he,ne,re.endpointDefinitions[de],de),Se=React.useRef(),Ee=React.useMemo(function(){return toolkit.createSelector([ge(_e),function(Fe,Ne){return Ne},function(Fe){return _e}],oe)},[ge,_e]),Ce=React.useMemo(function(){return be?toolkit.createSelector([Ee],be):Ee},[Ee,be]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Ee($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(he){var me=ve(he),ue=me[0],pe=me[1],ye=fe(pe,__spreadProps(__spreadValues({},he),{skip:pe===UNINITIALIZED_VALUE})),be=React.useMemo(function(){return{lastArg:pe}},[pe]);return React.useMemo(function(){return[ue,ye,be]},[ue,ye,be])},useQuery:function(he,me){var ue=le(he,me),pe=fe(he,__spreadValues({selectFromResult:he===skipToken||me!=null&&me.skip?void 0:noPendingQueryStateSelector},me)),ye=pe.data,be=pe.status,ge=pe.isLoading,_e=pe.isSuccess,Se=pe.isError,Ee=pe.error;return React.useDebugValue({data:ye,status:be,isLoading:ge,isSuccess:_e,isError:Se,error:Ee}),React.useMemo(function(){return __spreadValues(__spreadValues({},pe),ue)},[pe,ue])}}}function ce(de){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,he=fe===void 0?defaultMutationStateSelector:fe,me=ve.fixedCacheKey,ue=$.endpoints[de],pe=ue.select,ye=ue.initiate,be=K(),ge=React.useState(),_e=ge[0],Se=ge[1];React.useEffect(function(){return function(){_e!=null&&_e.arg.fixedCacheKey||_e==null||_e.reset()}},[_e]);var Ee=React.useCallback(function(Ve){var Xe=be(ye(Ve,{fixedCacheKey:me}));return Se(Xe),Xe},[be,ye,me]),Ce=(_e||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([pe({fixedCacheKey:me,requestId:_e==null?void 0:_e.requestId})],he)},[pe,_e,he,me]),$e=J(xe,reactRedux.shallowEqual),Ie=me==null?_e==null?void 0:_e.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){_e&&Se(void 0),me&&be($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:me}))})},[be,me,_e,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,we=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:we,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Ee,ze]},[Ee,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var de=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:de,context:ce}),fe=ve.buildQueryHooks,he=ve.buildMutationHook,me=ve.usePrefetch;return safeAssign(le,{usePrefetch:me}),safeAssign(ce,{batch:F}),{injectEndpoint:function(ue,pe){if(isQueryDefinition(pe)){var ye=fe(ue),be=ye.useQuery,ge=ye.useLazyQuery,_e=ye.useLazyQuerySubscription,Se=ye.useQueryState,Ee=ye.useQuerySubscription;safeAssign(le.endpoints[ue],{useQuery:be,useLazyQuery:ge,useLazyQuerySubscription:_e,useQueryState:Se,useQuerySubscription:Ee}),ie["use"+capitalize$1(ue)+"Query"]=be,ie["useLazy"+capitalize$1(ue)+"Query"]=ge}else if(isMutationDefinition(pe)){var Ce=he(ue);safeAssign(le.endpoints[ue],{useMutation:Ce}),ie["use"+capitalize$1(ue)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>sr(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply"}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K})=>{const[J,ee]=React.useState(null),[te,ne]=React.useState(null),[re,{isLoading:ae,isError:oe,error:ie,isSuccess:se}]=useCreateApplicationMutation(),ce=React.useCallback(()=>sr(this,null,function*(){var le,ve,fe,he;const de=yield re({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K});ee((ve=(le=de==null?void 0:de.data)==null?void 0:le.user_company)==null?void 0:ve.id),ne((he=(fe=de==null?void 0:de.data)==null?void 0:fe.user_company)==null?void 0:he.status)}),[re,C,$,V,F,K]);return React.useEffect(()=>{ce()},[ce]),{retry:ce,data:{status:te,applicationId:J},isLoading:ae,isError:oe,error:ie,isSuccess:se}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>Hn(Hn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),de=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:de,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(me=>{V(me)},[]),ce=useDebounce(se,300),de=React.useCallback(me=>{K(me)},[]),le=useDebounce(de,300),ve=React.useCallback(me=>{ee(me)},[]),fe=useDebounce(ve,300),he=React.useCallback((me,ue)=>me.map(pe=>{const ye=ue==null?void 0:ue.find(be=>be.key===pe);return{experience_skill_id:pe,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:he,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{V(ae?setSelectedJobId(ae):clearSelectedJobId()),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$a="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$K={container:container$a,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$K.container},React.createElement(Typography$1.Text,{className:styles$K.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$K.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$K.closeIcon}))):React.createElement("div",{className:styles$K.container})}const content="_content_rx5qt_1",header$2="_header_rx5qt_10",sider="_sider_rx5qt_18",layout="_layout_rx5qt_22",styles$J={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){return React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$J.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$J.layout},React.createElement(Content,{className:styles$J.content},V),K&&React.createElement(Sider,{className:styles$J.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#FF9C6E",antdColor:"volcano"};const ne=ee.reduce((ce,de)=>(ce[de.label]=de,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var de=J[ce],le=V[de],ve=re[de],fe=le(ve,ae);if(typeof fe=="undefined"){var he=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(he?'"'+String(he)+'"':"(unknown type)")+', the slice reducer for key "'+de+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[de]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>Hn(Hn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=br(Hn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;V&&F&&(C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K,C.activeResumeChecklist=getBlockerPointsChecklist(C.resumeReviewData[F]))},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon="_icon_gf6im_29",styles$I={tagsSection,tag:tag$1,activeTag,icon};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$I.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$I.tag,{[styles$I.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$I.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$I.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_kiep6_1",styles$H={jobAlert};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$H.jobAlert,onClick:V},React.createElement(AlertFilled$1,{className:styles$H.icon}),"Job Alerts")}const styles$G={};function Sorting(){const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ee=>{var te,ne;return((ne=(te=ee.scalantCareerHub)==null?void 0:te.filter)==null?void 0:ne.sortings)||[]}),V=React.useMemo(()=>getCurrentSortingValue($),[$]),F=ee=>{const te=SORTING_OPTIONS[ee];te&&C(setSortings([te.mapping]))},K=Object.values(SORTING_OPTIONS).map(ee=>({value:ee.value,label:ee.value===V?`Sorted By: ${ee.label}`:ee.label})),J=ee=>{const te=SORTING_OPTIONS[ee.value];return te?te.label:ee.label};return React.createElement(Select$1,{className:styles$G.sorting,value:V,onChange:F,suffixIcon:React.createElement(DownOutlined$1,null),options:K,optionRender:J})}const styles$F={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$F.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$1="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$E={search,iconContainer:iconContainer$1,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,de;return((de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:de.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$E.search},F||J?React.createElement(Input$1,{ref:te,className:styles$E.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$E.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$D={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$D.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,null),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$C={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$C.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0),dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1vhkf_1",profileDetails="_profileDetails_1vhkf_5",profileDetailsItems="_profileDetailsItems_1vhkf_13",preferencesTitle="_preferencesTitle_1vhkf_18",preferencesDivider="_preferencesDivider_1vhkf_22",preferencesContent="_preferencesContent_1vhkf_27",preferenceLabel="_preferenceLabel_1vhkf_31",preferenceValue="_preferenceValue_1vhkf_37",preferenceTag="_preferenceTag_1vhkf_42",jobIntentContainer="_jobIntentContainer_1vhkf_51",preferencesContainer="_preferencesContainer_1vhkf_55",styles$B={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,preferencesContainer},DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var se,ce,de,le,ve,fe,he,me;const K=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null);React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const re=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},ae=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},oe=ue=>sr(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ue];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ie=ue=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ue]||null;return React.createElement("div",{className:classNames(styles$B.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$B.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((se=K==null?void 0:K.mentee)==null?void 0:se.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$B.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ce=K==null?void 0:K.experienceYears)!=null?ce:K==null?void 0:K.experienceInYears,(de=K==null?void 0:K.experienceMonths)!=null?de:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:re},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$B.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ie(te),onChange:oe,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS}))),React.createElement(Flex$1,{vertical:!0,className:styles$B.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$B.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:ae})),React.createElement(Divider$1,{className:styles$B.preferencesDivider}),React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$B.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredLocations((le=K==null?void 0:K.userCompanyProfile)==null?void 0:le.preferredLocation).map((ue,pe)=>React.createElement(Tag$1,{key:pe,bordered:!1,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((ve=K==null?void 0:K.userCompanyProfile)==null?void 0:ve.preferredRole).map((ue,pe)=>React.createElement(Tag$1,{key:pe,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(fe=K==null?void 0:K.userCompanyProfile)==null?void 0:fe.expectedCtc)),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(he=K==null?void 0:K.userCompanyProfile)==null?void 0:he.noticePeriod)),React.createElement(Flex$1,{align:"center"},((me=K==null?void 0:K.userCompanyProfile)==null?void 0:me.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"*Buyout available:")))))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:br(Hn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,openMockInterviewModal:K=(re,ae)=>{console.log("Method not implemented. We should get it from MIT"),console.log(re,ae)},openResume:J=()=>{console.log("Method not implemented. We should get it from MIT")},skip:ee=!1,onCloseResumeBuilder:te,children:ne})=>{const{data:re,isLoading:ae,error:oe,refetch:ie}=useGetJobPreviewQuery(V,{skip:!V||ee}),[se,ce]=React.useState(),[de,le]=React.useState(null),fe={analytics:C,activeApplicationId:de,setActiveApplicationId:le,activeTab:se,setActiveTab:he=>{ce(he),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:he,jobId:V})},country:$,jobId:V,data:re,isLoading:ae,error:oe,refetch:ie,openMockInterviewModal:K,openResume:J,jobData:re==null?void 0:re.jobData,companyData:re==null?void 0:re.companyData,highlights:re==null?void 0:re.highlights,eligibilityCriteria:re==null?void 0:re.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:te};return React.createElement(JobPreviewContext.Provider,{value:fe},ne)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee}){const[te,ne]=React.useState(null),[re,ae]=React.useState(K),[oe,ie]=React.useState(null);return React.useEffect(()=>{ae(K)},[K]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:te,setFormInstance:ne,stepName:re,setStepName:ae,jobProfileId:J,applicationId:ee,selectedResume:oe,setSelectedResume:ie,onEditResume:V,onAddResume:F}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_sd7fu_1",container$9="_container_sd7fu_6",recruiterAvatar="_recruiterAvatar_sd7fu_10",recruiterCardContent="_recruiterCardContent_sd7fu_14",recruiterName="_recruiterName_sd7fu_18",recruiterEmail="_recruiterEmail_sd7fu_24",styles$A={descriptionContainer:descriptionContainer$1,container:container$9,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$A.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$A.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$A.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$A.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,null,$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V}=$||{},F=V.map(J=>({title:J.stageName,description:J.stageComments})),K=V.findIndex(J=>J.stageStatus==="ongoing");return React.createElement(Steps$1,{current:K,items:F,direction:"vertical"})},Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.container},React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$z={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,className:J,onClick:ee,isLoading:te})=>React.createElement("div",{className:classNames(styles$z.actionBanner,J)},C,React.createElement("div",{className:styles$z.actionBannerContent},React.createElement("span",{className:styles$z.actionBannerTitle},$),React.createElement("span",{className:styles$z.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,type:"primary",className:styles$z.actionBannerButton,onClick:ee,loading:te},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$y={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var oe;const C=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),$=(oe=C==null?void 0:C.hasCompletedScreeningCall)!=null?oe:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te}=F||{},ne=te===APPLICATION_STATUS$1.WITHDRAWN,{name:re}=K||{},ae=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(re)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,re,ee]);return!$||J!==TAG_TO_TAB_MAPPING.applied||ne?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$y.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$y.monitorBanner,onClick:ae})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$x={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$x.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$x.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$w={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$w.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$w.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$w.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$x.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$x.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$v={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$v.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$v.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$v.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$x.descriptionText},React.createElement("ul",{className:styles$x.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$x.indicatorContainer},React.createElement("div",{className:styles$x.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$x.indicatorDot}))),React.createElement("div",{className:styles$x.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$x.stepTitle},$.title),description:React.createElement("span",{className:styles$x.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$x.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},container$7="_container_all86_1",styles$u={container:container$7},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$u.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$6="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$t={container:container$6,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,{[styles$t.successDot]:C===STATUS_MAP$1.added,[styles$t.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$t.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$s={bodyContainer,tabs},ExpandedJobViewBody=()=>{var te;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F}=useJobPreview(),{applicationTimeline:K}=V||{},ee=[((te=K==null?void 0:K.timeline)==null?void 0:te.length)>0&&F===TAG_TO_TAB_MAPPING.applied&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$s.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$s.tabs,items:ee,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F}]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$r={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$r.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$r.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>sr(this,null,function*(){var he,me;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(he=fe==null?void 0:fe.data)!=null&&he.success?(se.success("Application withdrawn successfully"),te(!1),re((me=WITHDRAW_REASONS[0])==null?void 0:me.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),de=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$r.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$r.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$r.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:de},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>sr(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J}=useJobPreview(),{applicationStatus:ee}=C||{},{isEligible:te}=$||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F})};return React.useEffect(()=>()=>{V(null)},[V]),ne?null:K===TAG_TO_TAB_MAPPING.applied?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$r.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:re,className:styles$r.applyButton,type:"primary",size:"large",disabled:!te},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$r.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const[J,ee]=React.useState(()=>{var ne;return C||($&&$[0]&&((ne=V[$[0]])!=null&&ne.logo)?V[$[0]].logo:missingLogo)}),te=()=>{ee(missingLogo)};return React.createElement(Avatar$1,{size:K,src:J,alt:F,onError:te,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$5="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$q={basicInfo,companyInfo,companyName:companyName$1,container:container$5,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$q.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$q.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$q.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$q.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$q.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$q.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$q.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$q.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$q.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$p={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$p.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,Hn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,Hn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,query:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>sr(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$p.field},React.createElement(Select$1,{options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$p.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$p.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$p.field},React.createElement(Select$1,Hn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$p.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$p.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,br(Hn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$p.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$p.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((er=window==null?void 0:window[HYDRATION_KEY])==null?void 0:er.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>br(Hn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>br(Hn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>br(Hn({},V),{is_top_5:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)}),form="_form_1ip4j_1",styles$o={form};function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>sr(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$p.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,Hn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(Hn(Hn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$o.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$n={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(se=>se.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te}=useApplicationFormContext(),{analytics:ne}=useJobPreview(),[re,{isLoading:ae}]=useUpdateApplicationMutation(),oe=()=>sr(this,null,function*(){var se;ne==null||ne.click("Application Form - Next",PRODUCT_NAME);try{const ce={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V)},de=yield re({applicationId:F,payload:ce});(se=de==null?void 0:de.data)!=null&&se.success?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):message$1.error("Failed to update application")}catch(ce){message$1.error("Failed to update application")}}),ie=()=>{ne==null||ne.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$n.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ie},"Cancel"),React.createElement(Button$2,{loading:ae,type:"primary",onClick:oe},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J}=useJobPreview(),[ee,{isLoading:te}]=useUpdateApplicationMutation(),ne=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},re=()=>sr(this,null,function*(){var ae;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const ie=yield ee({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$}});(ae=ie==null?void 0:ie.data)!=null&&ae.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(oe){message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$n.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:ne},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:re,loading:te,disabled:!$},"Proceed to Apply")))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);default:return null}}const stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$m={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$3}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F}=useJobPreview(),{updateTab:K}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:J}=useGetJobPreviewQuery(V,{skip:!V});if(!STEP_MAP[$])return null;const{currentStep:ee,icon:te,title:ne,totalSteps:re}=STEP_MAP[$]||{},ae=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(K(TAG_TO_TAB_MAPPING.applied),J()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$m.container,direction:"vertical"},React.createElement(Text$3,{className:styles$m.stepText},"Step ",ee,"/",re),React.createElement(Space$1,{className:styles$m.titleContainer},React.createElement(te,{className:styles$m.titleIcon}),React.createElement(Text$3,{className:styles$m.titleText},ne))),React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ae}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=we,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,Te){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||Te&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
434
+ You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:be}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,be,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(he){var me=he===void 0?{}:he,ue=me.refetchOnReconnect,pe=me.refetchOnFocus,ye=me.pollingInterval,be=ye===void 0?0:ye,ge=$.endpoints[de].initiate,_e=K(),Se=React.useState(UNINITIALIZED_VALUE),Ee=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:ue,refetchOnFocus:pe,pollingInterval:be});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var we;(we=xe.current)==null||we.unsubscribe(),xe.current=Oe=_e(ge(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[_e,ge]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Ee!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Ee,!0)},[Ee,Fe]),React.useMemo(function(){return[Fe,Ee]},[Fe,Ee])},fe=function(he,me){var ue=me===void 0?{}:me,pe=ue.skip,ye=pe===void 0?!1:pe,be=ue.selectFromResult,ge=$.endpoints[de].select,_e=useStableQueryArgs(ye?skipToken:he,ne,re.endpointDefinitions[de],de),Se=React.useRef(),Ee=React.useMemo(function(){return toolkit.createSelector([ge(_e),function(Fe,Ne){return Ne},function(Fe){return _e}],oe)},[ge,_e]),Ce=React.useMemo(function(){return be?toolkit.createSelector([Ee],be):Ee},[Ee,be]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Ee($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(he){var me=ve(he),ue=me[0],pe=me[1],ye=fe(pe,__spreadProps(__spreadValues({},he),{skip:pe===UNINITIALIZED_VALUE})),be=React.useMemo(function(){return{lastArg:pe}},[pe]);return React.useMemo(function(){return[ue,ye,be]},[ue,ye,be])},useQuery:function(he,me){var ue=le(he,me),pe=fe(he,__spreadValues({selectFromResult:he===skipToken||me!=null&&me.skip?void 0:noPendingQueryStateSelector},me)),ye=pe.data,be=pe.status,ge=pe.isLoading,_e=pe.isSuccess,Se=pe.isError,Ee=pe.error;return React.useDebugValue({data:ye,status:be,isLoading:ge,isSuccess:_e,isError:Se,error:Ee}),React.useMemo(function(){return __spreadValues(__spreadValues({},pe),ue)},[pe,ue])}}}function ce(de){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,he=fe===void 0?defaultMutationStateSelector:fe,me=ve.fixedCacheKey,ue=$.endpoints[de],pe=ue.select,ye=ue.initiate,be=K(),ge=React.useState(),_e=ge[0],Se=ge[1];React.useEffect(function(){return function(){_e!=null&&_e.arg.fixedCacheKey||_e==null||_e.reset()}},[_e]);var Ee=React.useCallback(function(Ve){var Xe=be(ye(Ve,{fixedCacheKey:me}));return Se(Xe),Xe},[be,ye,me]),Ce=(_e||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([pe({fixedCacheKey:me,requestId:_e==null?void 0:_e.requestId})],he)},[pe,_e,he,me]),$e=J(xe,reactRedux.shallowEqual),Ie=me==null?_e==null?void 0:_e.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){_e&&Se(void 0),me&&be($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:me}))})},[be,me,_e,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,we=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:we,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Ee,ze]},[Ee,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var de=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:de,context:ce}),fe=ve.buildQueryHooks,he=ve.buildMutationHook,me=ve.usePrefetch;return safeAssign(le,{usePrefetch:me}),safeAssign(ce,{batch:F}),{injectEndpoint:function(ue,pe){if(isQueryDefinition(pe)){var ye=fe(ue),be=ye.useQuery,ge=ye.useLazyQuery,_e=ye.useLazyQuerySubscription,Se=ye.useQueryState,Ee=ye.useQuerySubscription;safeAssign(le.endpoints[ue],{useQuery:be,useLazyQuery:ge,useLazyQuerySubscription:_e,useQueryState:Se,useQuerySubscription:Ee}),ie["use"+capitalize$1(ue)+"Query"]=be,ie["useLazy"+capitalize$1(ue)+"Query"]=ge}else if(isMutationDefinition(pe)){var Ce=he(ue);safeAssign(le.endpoints[ue],{useMutation:Ce}),ie["use"+capitalize$1(ue)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>sr(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply"}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K})=>{const[J,ee]=React.useState(null),[te,ne]=React.useState(null),[re,{isLoading:ae,isError:oe,error:ie,isSuccess:se}]=useCreateApplicationMutation(),ce=React.useCallback(()=>sr(this,null,function*(){var le,ve,fe,he;const de=yield re({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K});ee((ve=(le=de==null?void 0:de.data)==null?void 0:le.user_company)==null?void 0:ve.id),ne((he=(fe=de==null?void 0:de.data)==null?void 0:fe.user_company)==null?void 0:he.status)}),[re,C,$,V,F,K]);return React.useEffect(()=>{ce()},[ce]),{retry:ce,data:{status:te,applicationId:J},isLoading:ae,isError:oe,error:ie,isSuccess:se}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>Hn(Hn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),de=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:de,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(me=>{V(me)},[]),ce=useDebounce(se,300),de=React.useCallback(me=>{K(me)},[]),le=useDebounce(de,300),ve=React.useCallback(me=>{ee(me)},[]),fe=useDebounce(ve,300),he=React.useCallback((me,ue)=>me.map(pe=>{const ye=ue==null?void 0:ue.find(be=>be.key===pe);return{experience_skill_id:pe,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:he,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{V(ae?setSelectedJobId(ae):clearSelectedJobId()),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$a="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$K={container:container$a,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$K.container},React.createElement(Typography$1.Text,{className:styles$K.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$K.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$K.closeIcon}))):React.createElement("div",{className:styles$K.container})}const content="_content_rx5qt_1",header$2="_header_rx5qt_10",sider="_sider_rx5qt_18",layout="_layout_rx5qt_22",styles$J={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){return React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$J.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$J.layout},React.createElement(Content,{className:styles$J.content},V),K&&React.createElement(Sider,{className:styles$J.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#FF9C6E",antdColor:"volcano"};const ne=ee.reduce((ce,de)=>(ce[de.label]=de,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var de=J[ce],le=V[de],ve=re[de],fe=le(ve,ae);if(typeof fe=="undefined"){var he=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(he?'"'+String(he)+'"':"(unknown type)")+', the slice reducer for key "'+de+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[de]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>Hn(Hn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=br(Hn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;V&&F&&(C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K,C.activeResumeChecklist=getBlockerPointsChecklist(C.resumeReviewData[F]))},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon="_icon_gf6im_29",styles$I={tagsSection,tag:tag$1,activeTag,icon};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$I.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$I.tag,{[styles$I.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$I.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$I.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_kiep6_1",styles$H={jobAlert};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$H.jobAlert,onClick:V},React.createElement(AlertFilled$1,{className:styles$H.icon}),"Job Alerts")}const styles$G={};function Sorting(){const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ee=>{var te,ne;return((ne=(te=ee.scalantCareerHub)==null?void 0:te.filter)==null?void 0:ne.sortings)||[]}),V=React.useMemo(()=>getCurrentSortingValue($),[$]),F=ee=>{const te=SORTING_OPTIONS[ee];te&&C(setSortings([te.mapping]))},K=Object.values(SORTING_OPTIONS).map(ee=>({value:ee.value,label:ee.value===V?`Sorted By: ${ee.label}`:ee.label})),J=ee=>{const te=SORTING_OPTIONS[ee.value];return te?te.label:ee.label};return React.createElement(Select$1,{className:styles$G.sorting,value:V,onChange:F,suffixIcon:React.createElement(DownOutlined$1,null),options:K,optionRender:J})}const styles$F={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$F.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$1="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$E={search,iconContainer:iconContainer$1,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,de;return((de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:de.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$E.search},F||J?React.createElement(Input$1,{ref:te,className:styles$E.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$E.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$D={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$D.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,null),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$C={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$C.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0),dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1vhkf_1",profileDetails="_profileDetails_1vhkf_5",profileDetailsItems="_profileDetailsItems_1vhkf_13",preferencesTitle="_preferencesTitle_1vhkf_18",preferencesDivider="_preferencesDivider_1vhkf_22",preferencesContent="_preferencesContent_1vhkf_27",preferenceLabel="_preferenceLabel_1vhkf_31",preferenceValue="_preferenceValue_1vhkf_37",preferenceTag="_preferenceTag_1vhkf_42",jobIntentContainer="_jobIntentContainer_1vhkf_51",preferencesContainer="_preferencesContainer_1vhkf_55",styles$B={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,preferencesContainer},DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var se,ce,de,le,ve,fe,he,me;const K=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null);React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const re=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},ae=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},oe=ue=>sr(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ue];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ie=ue=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ue]||null;return React.createElement("div",{className:classNames(styles$B.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$B.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((se=K==null?void 0:K.mentee)==null?void 0:se.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$B.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ce=K==null?void 0:K.experienceYears)!=null?ce:K==null?void 0:K.experienceInYears,(de=K==null?void 0:K.experienceMonths)!=null?de:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:re},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$B.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ie(te),onChange:oe,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS}))),React.createElement(Flex$1,{vertical:!0,className:styles$B.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$B.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:ae})),React.createElement(Divider$1,{className:styles$B.preferencesDivider}),React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$B.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredLocations((le=K==null?void 0:K.userCompanyProfile)==null?void 0:le.preferredLocation).map((ue,pe)=>React.createElement(Tag$1,{key:pe,bordered:!1,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((ve=K==null?void 0:K.userCompanyProfile)==null?void 0:ve.preferredRole).map((ue,pe)=>React.createElement(Tag$1,{key:pe,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(fe=K==null?void 0:K.userCompanyProfile)==null?void 0:fe.expectedCtc)),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(he=K==null?void 0:K.userCompanyProfile)==null?void 0:he.noticePeriod)),React.createElement(Flex$1,{align:"center"},((me=K==null?void 0:K.userCompanyProfile)==null?void 0:me.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"*Buyout available:")))))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:br(Hn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,openMockInterviewModal:K=(re,ae)=>{console.log("Method not implemented. We should get it from MIT"),console.log(re,ae)},openResume:J=()=>{console.log("Method not implemented. We should get it from MIT")},skip:ee=!1,onCloseResumeBuilder:te,children:ne})=>{const{data:re,isLoading:ae,error:oe,refetch:ie}=useGetJobPreviewQuery(V,{skip:!V||ee}),[se,ce]=React.useState(),[de,le]=React.useState(null),fe={analytics:C,activeApplicationId:de,setActiveApplicationId:le,activeTab:se,setActiveTab:he=>{ce(he),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:he,jobId:V})},country:$,jobId:V,data:re,isLoading:ae,error:oe,refetch:ie,openMockInterviewModal:K,openResume:J,jobData:re==null?void 0:re.jobData,companyData:re==null?void 0:re.companyData,highlights:re==null?void 0:re.highlights,eligibilityCriteria:re==null?void 0:re.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:te};return React.createElement(JobPreviewContext.Provider,{value:fe},ne)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee}){const[te,ne]=React.useState(null),[re,ae]=React.useState(K),[oe,ie]=React.useState(null);return React.useEffect(()=>{K===APPLICATION_STATUS$1.RESUME_CHOICE_SELECT?ae(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):ae(K)},[K]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:te,setFormInstance:ne,stepName:re,setStepName:ae,jobProfileId:J,applicationId:ee,selectedResume:oe,setSelectedResume:ie,onEditResume:V,onAddResume:F}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_sd7fu_1",container$9="_container_sd7fu_6",recruiterAvatar="_recruiterAvatar_sd7fu_10",recruiterCardContent="_recruiterCardContent_sd7fu_14",recruiterName="_recruiterName_sd7fu_18",recruiterEmail="_recruiterEmail_sd7fu_24",styles$A={descriptionContainer:descriptionContainer$1,container:container$9,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$A.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$A.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$A.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$A.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,null,$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V}=$||{},F=V.map(J=>({title:J.stageName,description:J.stageComments})),K=V.findIndex(J=>J.stageStatus==="ongoing");return React.createElement(Steps$1,{current:K,items:F,direction:"vertical"})},Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.container},React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$z={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,className:J,onClick:ee,isLoading:te})=>React.createElement("div",{className:classNames(styles$z.actionBanner,J)},C,React.createElement("div",{className:styles$z.actionBannerContent},React.createElement("span",{className:styles$z.actionBannerTitle},$),React.createElement("span",{className:styles$z.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,type:"primary",className:styles$z.actionBannerButton,onClick:ee,loading:te},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$y={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var oe;const C=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),$=(oe=C==null?void 0:C.hasCompletedScreeningCall)!=null?oe:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te}=F||{},ne=te===APPLICATION_STATUS$1.WITHDRAWN,{name:re}=K||{},ae=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(re)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,re,ee]);return!$||J!==TAG_TO_TAB_MAPPING.applied||ne?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$y.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$y.monitorBanner,onClick:ae})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$x={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$x.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$x.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$w={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$w.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$w.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$w.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$x.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$x.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$v={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$v.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$v.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$v.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$x.descriptionText},React.createElement("ul",{className:styles$x.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$x.indicatorContainer},React.createElement("div",{className:styles$x.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$x.indicatorDot}))),React.createElement("div",{className:styles$x.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$x.stepTitle},$.title),description:React.createElement("span",{className:styles$x.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$x.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},container$7="_container_all86_1",styles$u={container:container$7},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$u.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$6="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$t={container:container$6,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,{[styles$t.successDot]:C===STATUS_MAP$1.added,[styles$t.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$t.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$s={bodyContainer,tabs},ExpandedJobViewBody=()=>{var te;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F}=useJobPreview(),{applicationTimeline:K}=V||{},ee=[((te=K==null?void 0:K.timeline)==null?void 0:te.length)>0&&F===TAG_TO_TAB_MAPPING.applied&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$s.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$s.tabs,items:ee,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F}]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$r={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$r.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$r.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>sr(this,null,function*(){var he,me;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(he=fe==null?void 0:fe.data)!=null&&he.success?(se.success("Application withdrawn successfully"),te(!1),re((me=WITHDRAW_REASONS[0])==null?void 0:me.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),de=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$r.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$r.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$r.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:de},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>sr(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J}=useJobPreview(),{applicationStatus:ee}=C||{},{isEligible:te}=$||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F})};return React.useEffect(()=>()=>{V(null)},[V]),ne?null:K===TAG_TO_TAB_MAPPING.applied?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$r.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:re,className:styles$r.applyButton,type:"primary",size:"large",disabled:!te},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$r.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const[J,ee]=React.useState(()=>{var ne;return C||($&&$[0]&&((ne=V[$[0]])!=null&&ne.logo)?V[$[0]].logo:missingLogo)}),te=()=>{ee(missingLogo)};return React.createElement(Avatar$1,{size:K,src:J,alt:F,onError:te,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$5="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$q={basicInfo,companyInfo,companyName:companyName$1,container:container$5,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$q.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$q.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$q.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$q.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$q.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$q.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$q.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$q.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$q.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$p={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$p.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,Hn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,Hn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,query:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>sr(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$p.field},React.createElement(Select$1,{options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$p.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$p.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$p.field},React.createElement(Select$1,Hn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$p.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$p.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,br(Hn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$p.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$p.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((er=window==null?void 0:window[HYDRATION_KEY])==null?void 0:er.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>br(Hn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>br(Hn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>br(Hn({},V),{is_top_5:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)}),form="_form_1ip4j_1",styles$o={form};function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>sr(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$p.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,Hn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(Hn(Hn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$o.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$n={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(se=>se.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te}=useApplicationFormContext(),{analytics:ne}=useJobPreview(),[re,{isLoading:ae}]=useUpdateApplicationMutation(),oe=()=>sr(this,null,function*(){var se;ne==null||ne.click("Application Form - Next",PRODUCT_NAME);try{const ce={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V)},de=yield re({applicationId:F,payload:ce});(se=de==null?void 0:de.data)!=null&&se.success?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):message$1.error("Failed to update application")}catch(ce){message$1.error("Failed to update application")}}),ie=()=>{ne==null||ne.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$n.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ie},"Cancel"),React.createElement(Button$2,{loading:ae,type:"primary",onClick:oe},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J}=useJobPreview(),[ee,{isLoading:te}]=useUpdateApplicationMutation(),ne=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},re=()=>sr(this,null,function*(){var ae;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const ie=yield ee({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$}});(ae=ie==null?void 0:ie.data)!=null&&ae.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(oe){message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$n.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:ne},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:re,loading:te,disabled:!$},"Proceed to Apply")))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);default:return null}}const stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$m={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$3}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F}=useJobPreview(),{updateTab:K}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:J}=useGetJobPreviewQuery(V,{skip:!V});if(!STEP_MAP[$])return null;const{currentStep:ee,icon:te,title:ne,totalSteps:re}=STEP_MAP[$]||{},ae=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(K(TAG_TO_TAB_MAPPING.applied),J()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$m.container,direction:"vertical"},React.createElement(Text$3,{className:styles$m.stepText},"Step ",ee,"/",re),React.createElement(Space$1,{className:styles$m.titleContainer},React.createElement(te,{className:styles$m.titleIcon}),React.createElement(Text$3,{className:styles$m.titleText},ne))),React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ae}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=we,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,Te){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||Te&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
435
435
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var We=!0,Ke=!1,rt;return{s:function(){Pe=Pe.call(Le)},n:function(){var it=Pe.next();return We=it.done,it},e:function(it){Ke=!0,rt=it},f:function(){try{!We&&Pe.return!=null&&Pe.return()}finally{if(Ke)throw rt}}}}function re(Le,Te){if(Le){if(typeof Le=="string")return ae(Le,Te);var Pe=Object.prototype.toString.call(Le).slice(8,-1);if(Pe==="Object"&&Le.constructor&&(Pe=Le.constructor.name),Pe==="Map"||Pe==="Set")return Array.from(Le);if(Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return ae(Le,Te)}}function ae(Le,Te){(Te==null||Te>Le.length)&&(Te=Le.length);for(var Pe=0,Me=new Array(Te);Pe<Te;Pe++)Me[Pe]=Le[Pe];return Me}function oe(Le,Te,Pe,Me,He,We,Ke){try{var rt=Le[We](Ke),st=rt.value}catch(it){Pe(it);return}rt.done?Te(st):Promise.resolve(st).then(Me,He)}function ie(Le){return function(){var Te=this,Pe=arguments;return new Promise(function(Me,He){var We=Le.apply(Te,Pe);function Ke(st){oe(We,Me,He,Ke,rt,"next",st)}function rt(st){oe(We,Me,He,Ke,rt,"throw",st)}Ke(void 0)})}}function se(Le,Te){if(!(Le instanceof Te))throw new TypeError("Cannot call a class as a function")}function ce(Le,Te){for(var Pe=0;Pe<Te.length;Pe++){var Me=Te[Pe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Le,Me.key,Me)}}function de(Le,Te,Pe){return Te&&ce(Le.prototype,Te),Pe&&ce(Le,Pe),Le}function le(Le,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");Le.prototype=Object.create(Te&&Te.prototype,{constructor:{value:Le,writable:!0,configurable:!0}}),Te&&ve(Le,Te)}function ve(Le,Te){return ve=Object.setPrototypeOf||function(Me,He){return Me.__proto__=He,Me},ve(Le,Te)}function fe(Le){var Te=ue();return function(){var Me=pe(Le),He;if(Te){var We=pe(this).constructor;He=Reflect.construct(Me,arguments,We)}else He=Me.apply(this,arguments);return he(this,He)}}function he(Le,Te){if(Te&&(F(Te)==="object"||typeof Te=="function"))return Te;if(Te!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(Le)}function me(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function ue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Le){return!1}}function pe(Le){return pe=Object.setPrototypeOf?Object.getPrototypeOf:function(Pe){return Pe.__proto__||Object.getPrototypeOf(Pe)},pe(Le)}var ye="noopener noreferrer nofollow",be="http://www.w3.org/2000/svg",ge={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,J.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};$.PixelsPerInch=ge;var _e=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){var Me,He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},We=He.ownerDocument,Ke=We===void 0?globalThis.document:We;return se(this,Pe),Me=Te.call(this),Me._document=Ke,Me}return de(Pe,[{key:"_createCanvas",value:function(He,We){var Ke=this._document.createElement("canvas");return Ke.width=He,Ke.height=We,Ke}}]),Pe}(ee.BaseCanvasFactory);$.DOMCanvasFactory=_e;function Se(Le){return Ee.apply(this,arguments)}function Ee(){return Ee=ie(K.default.mark(function Le(Te){var Pe,Me,He=arguments;return K.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Pe=He.length>1&&He[1]!==void 0?He[1]:!1,!ze(Te,document.baseURI)){Ke.next=21;break}return Ke.next=4,fetch(Te);case 4:if(Me=Ke.sent,Me.ok){Ke.next=7;break}throw new Error(Me.statusText);case 7:if(!Pe){Ke.next=15;break}return Ke.t1=Uint8Array,Ke.next=11,Me.arrayBuffer();case 11:Ke.t2=Ke.sent,Ke.t0=new Ke.t1(Ke.t2),Ke.next=20;break;case 15:return Ke.t3=J.stringToBytes,Ke.next=18,Me.text();case 18:Ke.t4=Ke.sent,Ke.t0=(0,Ke.t3)(Ke.t4);case 20:return Ke.abrupt("return",Ke.t0);case 21:return Ke.abrupt("return",new Promise(function(rt,st){var it=new XMLHttpRequest;it.open("GET",Te,!0),Pe&&(it.responseType="arraybuffer"),it.onreadystatechange=function(){if(it.readyState===XMLHttpRequest.DONE){if(it.status===200||it.status===0){var Je;if(Pe&&it.response?Je=new Uint8Array(it.response):!Pe&&it.responseText&&(Je=(0,J.stringToBytes)(it.responseText)),Je){rt(Je);return}}st(new Error(it.statusText))}},it.send(null)}));case 22:case"end":return Ke.stop()}},Le)})),Ee.apply(this,arguments)}var Ce=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_fetchData",value:function(He,We){return Se(He,this.isCompressed).then(function(Ke){return{cMapData:Ke,compressionType:We}})}}]),Pe}(ee.BaseCMapReaderFactory);$.DOMCMapReaderFactory=Ce;var xe=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_fetchData",value:function(He){return Se(He,!0)}}]),Pe}(ee.BaseStandardFontDataFactory);$.DOMStandardFontDataFactory=xe;var $e=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_createSVG",value:function(He){return document.createElementNS(be,He)}}]),Pe}(ee.BaseSVGFactory);$.DOMSVGFactory=$e;var Ie=function(){function Le(Te){var Pe=Te.viewBox,Me=Te.scale,He=Te.rotation,We=Te.offsetX,Ke=We===void 0?0:We,rt=Te.offsetY,st=rt===void 0?0:rt,it=Te.dontFlip,Je=it===void 0?!1:it;se(this,Le),this.viewBox=Pe,this.scale=Me,this.rotation=He,this.offsetX=Ke,this.offsetY=st;var ct=(Pe[2]+Pe[0])/2,dt=(Pe[3]+Pe[1])/2,vt,ht,bt,Rt;switch(He%=360,He<0&&(He+=360),He){case 180:vt=-1,ht=0,bt=0,Rt=1;break;case 90:vt=0,ht=1,bt=1,Rt=0;break;case 270:vt=0,ht=-1,bt=-1,Rt=0;break;case 0:vt=1,ht=0,bt=0,Rt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Je&&(bt=-bt,Rt=-Rt);var wt,lt,ut,Ge;vt===0?(wt=Math.abs(dt-Pe[1])*Me+Ke,lt=Math.abs(ct-Pe[0])*Me+st,ut=Math.abs(Pe[3]-Pe[1])*Me,Ge=Math.abs(Pe[2]-Pe[0])*Me):(wt=Math.abs(ct-Pe[0])*Me+Ke,lt=Math.abs(dt-Pe[1])*Me+st,ut=Math.abs(Pe[2]-Pe[0])*Me,Ge=Math.abs(Pe[3]-Pe[1])*Me),this.transform=[vt*Me,ht*Me,bt*Me,Rt*Me,wt-vt*Me*ct-bt*Me*dt,lt-ht*Me*ct-Rt*Me*dt],this.width=ut,this.height=Ge}return de(Le,[{key:"clone",value:function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Me=Pe.scale,He=Me===void 0?this.scale:Me,We=Pe.rotation,Ke=We===void 0?this.rotation:We,rt=Pe.offsetX,st=rt===void 0?this.offsetX:rt,it=Pe.offsetY,Je=it===void 0?this.offsetY:it,ct=Pe.dontFlip,dt=ct===void 0?!1:ct;return new Le({viewBox:this.viewBox.slice(),scale:He,rotation:Ke,offsetX:st,offsetY:Je,dontFlip:dt})}},{key:"convertToViewportPoint",value:function(Pe,Me){return J.Util.applyTransform([Pe,Me],this.transform)}},{key:"convertToViewportRectangle",value:function(Pe){var Me=J.Util.applyTransform([Pe[0],Pe[1]],this.transform),He=J.Util.applyTransform([Pe[2],Pe[3]],this.transform);return[Me[0],Me[1],He[0],He[1]]}},{key:"convertToPdfPoint",value:function(Pe,Me){return J.Util.applyInverseTransform([Pe,Me],this.transform)}}]),Le}();$.PageViewport=Ie;var Fe=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(Me,He){var We;return se(this,Pe),We=Te.call(this,Me,"RenderingCancelledException"),We.type=He,We}return Pe}(J.BaseException);$.RenderingCancelledException=Fe;var Ne={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};$.LinkTarget=Ne;function De(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Te.url,Me=Te.target,He=Te.rel,We=Te.enabled,Ke=We===void 0?!0:We;(0,J.assert)(Pe&&typeof Pe=="string",'addLinkAttributes: A valid "url" parameter must provided.');var rt=(0,J.removeNullCharacters)(Pe);Ke?Le.href=Le.title=rt:(Le.href="",Le.title="Disabled: ".concat(rt),Le.onclick=function(){return!1});var st="";switch(Me){case Ne.NONE:break;case Ne.SELF:st="_self";break;case Ne.BLANK:st="_blank";break;case Ne.PARENT:st="_parent";break;case Ne.TOP:st="_top";break}Le.target=st,Le.rel=typeof He=="string"?He:ye}function Oe(Le){for(var Te=Le.length,Pe=0;Pe<Te&&Le[Pe].trim()==="";)Pe++;return Le.substring(Pe,Pe+5).toLowerCase()==="data:"}function we(Le){return typeof Le=="string"&&/\.pdf$/i.test(Le)}function Ae(Le){var Te=Le.indexOf("#"),Pe=Le.indexOf("?"),Me=Math.min(Te>0?Te:Le.length,Pe>0?Pe:Le.length);return Le.substring(Le.lastIndexOf("/",Me)+1,Me)}function ke(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof Le!="string")return Te;if(Oe(Le))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),Te;var Pe=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Me=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,He=Pe.exec(Le),We=Me.exec(He[1])||Me.exec(He[2])||Me.exec(He[3]);if(We&&(We=We[0],We.includes("%")))try{We=Me.exec(decodeURIComponent(We))[0]}catch(Ke){}return We||Te}var je=function(){function Le(){se(this,Le),this.started=Object.create(null),this.times=[]}return de(Le,[{key:"time",value:function(Pe){Pe in this.started&&(0,J.warn)("Timer is already running for ".concat(Pe)),this.started[Pe]=Date.now()}},{key:"timeEnd",value:function(Pe){Pe in this.started||(0,J.warn)("Timer has not been started for ".concat(Pe)),this.times.push({name:Pe,start:this.started[Pe],end:Date.now()}),delete this.started[Pe]}},{key:"toString",value:function(){var Pe=[],Me=0,He=ne(this.times),We;try{for(He.s();!(We=He.n()).done;){var Ke=We.value,rt=Ke.name;rt.length>Me&&(Me=rt.length)}}catch(dt){He.e(dt)}finally{He.f()}var st=ne(this.times),it;try{for(st.s();!(it=st.n()).done;){var Je=it.value,ct=Je.end-Je.start;Pe.push("".concat(Je.name.padEnd(Me)," ").concat(ct,`ms
436
436
  `))}}catch(dt){st.e(dt)}finally{st.f()}return Pe.join("")}}]),Le}();$.StatTimer=je;function ze(Le,Te){try{var Pe=Te?new URL(Le,Te):new URL(Le),Me=Pe.protocol;return Me==="http:"||Me==="https:"}catch(He){return!1}}function Ve(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(Pe,Me){var He=document.createElement("script");He.src=Le,He.onload=function(We){Te&&He.remove(),Pe(We)},He.onerror=function(){Me(new Error("Cannot load script at: ".concat(He.src)))},(document.head||document.documentElement).appendChild(He)})}function Xe(Le){console.log("Deprecated API usage: "+Le)}var Ye,at=function(){function Le(){se(this,Le)}return de(Le,null,[{key:"toDateObject",value:function(Pe){if(!Pe||!(0,J.isString)(Pe))return null;Ye||(Ye=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var Me=Ye.exec(Pe);if(!Me)return null;var He=parseInt(Me[1],10),We=parseInt(Me[2],10);We=We>=1&&We<=12?We-1:0;var Ke=parseInt(Me[3],10);Ke=Ke>=1&&Ke<=31?Ke:1;var rt=parseInt(Me[4],10);rt=rt>=0&&rt<=23?rt:0;var st=parseInt(Me[5],10);st=st>=0&&st<=59?st:0;var it=parseInt(Me[6],10);it=it>=0&&it<=59?it:0;var Je=Me[7]||"Z",ct=parseInt(Me[8],10);ct=ct>=0&&ct<=23?ct:0;var dt=parseInt(Me[9],10)||0;return dt=dt>=0&&dt<=59?dt:0,Je==="-"?(rt+=ct,st+=dt):Je==="+"&&(rt-=ct,st-=dt),new Date(Date.UTC(He,We,Ke,rt,st,it))}}]),Le}();$.PDFDateString=at;function Ue(Le,Te){var Pe=Te.scale,Me=Pe===void 0?1:Pe,He=Te.rotation,We=He===void 0?0:He,Ke=Le.attributes.style,rt=Ke.width,st=Ke.height,it=[0,0,parseInt(rt),parseInt(st)];return new Ie({viewBox:it,scale:Me,rotation:We})}},(C,$,V)=>{C.exports=V(3)},(C,$,V)=>{C=V.nmd(C);function F(J){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(te){return typeof te}:F=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},F(J)}var K=function(J){var ee=Object.prototype,te=ee.hasOwnProperty,ne,re=typeof Symbol=="function"?Symbol:{},ae=re.iterator||"@@iterator",oe=re.asyncIterator||"@@asyncIterator",ie=re.toStringTag||"@@toStringTag";function se(we,Ae,ke){return Object.defineProperty(we,Ae,{value:ke,enumerable:!0,configurable:!0,writable:!0}),we[Ae]}try{se({},"")}catch(we){se=function(ke,je,ze){return ke[je]=ze}}function ce(we,Ae,ke,je){var ze=Ae&&Ae.prototype instanceof ue?Ae:ue,Ve=Object.create(ze.prototype),Xe=new Ne(je||[]);return Ve._invoke=xe(we,ke,Xe),Ve}J.wrap=ce;function de(we,Ae,ke){try{return{type:"normal",arg:we.call(Ae,ke)}}catch(je){return{type:"throw",arg:je}}}var le="suspendedStart",ve="suspendedYield",fe="executing",he="completed",me={};function ue(){}function pe(){}function ye(){}var be={};se(be,ae,function(){return this});var ge=Object.getPrototypeOf,_e=ge&&ge(ge(De([])));_e&&_e!==ee&&te.call(_e,ae)&&(be=_e);var Se=ye.prototype=ue.prototype=Object.create(be);pe.prototype=ye,se(Se,"constructor",ye),se(ye,"constructor",pe),pe.displayName=se(ye,ie,"GeneratorFunction");function Ee(we){["next","throw","return"].forEach(function(Ae){se(we,Ae,function(ke){return this._invoke(Ae,ke)})})}J.isGeneratorFunction=function(we){var Ae=typeof we=="function"&&we.constructor;return Ae?Ae===pe||(Ae.displayName||Ae.name)==="GeneratorFunction":!1},J.mark=function(we){return Object.setPrototypeOf?Object.setPrototypeOf(we,ye):(we.__proto__=ye,se(we,ie,"GeneratorFunction")),we.prototype=Object.create(Se),we},J.awrap=function(we){return{__await:we}};function Ce(we,Ae){function ke(Ve,Xe,Ye,at){var Ue=de(we[Ve],we,Xe);if(Ue.type==="throw")at(Ue.arg);else{var Le=Ue.arg,Te=Le.value;return Te&&F(Te)==="object"&&te.call(Te,"__await")?Ae.resolve(Te.__await).then(function(Pe){ke("next",Pe,Ye,at)},function(Pe){ke("throw",Pe,Ye,at)}):Ae.resolve(Te).then(function(Pe){Le.value=Pe,Ye(Le)},function(Pe){return ke("throw",Pe,Ye,at)})}}var je;function ze(Ve,Xe){function Ye(){return new Ae(function(at,Ue){ke(Ve,Xe,at,Ue)})}return je=je?je.then(Ye,Ye):Ye()}this._invoke=ze}Ee(Ce.prototype),se(Ce.prototype,oe,function(){return this}),J.AsyncIterator=Ce,J.async=function(we,Ae,ke,je,ze){ze===void 0&&(ze=Promise);var Ve=new Ce(ce(we,Ae,ke,je),ze);return J.isGeneratorFunction(Ae)?Ve:Ve.next().then(function(Xe){return Xe.done?Xe.value:Ve.next()})};function xe(we,Ae,ke){var je=le;return function(Ve,Xe){if(je===fe)throw new Error("Generator is already running");if(je===he){if(Ve==="throw")throw Xe;return Oe()}for(ke.method=Ve,ke.arg=Xe;;){var Ye=ke.delegate;if(Ye){var at=$e(Ye,ke);if(at){if(at===me)continue;return at}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(je===le)throw je=he,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);je=fe;var Ue=de(we,Ae,ke);if(Ue.type==="normal"){if(je=ke.done?he:ve,Ue.arg===me)continue;return{value:Ue.arg,done:ke.done}}else Ue.type==="throw"&&(je=he,ke.method="throw",ke.arg=Ue.arg)}}}function $e(we,Ae){var ke=we.iterator[Ae.method];if(ke===ne){if(Ae.delegate=null,Ae.method==="throw"){if(we.iterator.return&&(Ae.method="return",Ae.arg=ne,$e(we,Ae),Ae.method==="throw"))return me;Ae.method="throw",Ae.arg=new TypeError("The iterator does not provide a 'throw' method")}return me}var je=de(ke,we.iterator,Ae.arg);if(je.type==="throw")return Ae.method="throw",Ae.arg=je.arg,Ae.delegate=null,me;var ze=je.arg;if(!ze)return Ae.method="throw",Ae.arg=new TypeError("iterator result is not an object"),Ae.delegate=null,me;if(ze.done)Ae[we.resultName]=ze.value,Ae.next=we.nextLoc,Ae.method!=="return"&&(Ae.method="next",Ae.arg=ne);else return ze;return Ae.delegate=null,me}Ee(Se),se(Se,ie,"Generator"),se(Se,ae,function(){return this}),se(Se,"toString",function(){return"[object Generator]"});function Ie(we){var Ae={tryLoc:we[0]};1 in we&&(Ae.catchLoc=we[1]),2 in we&&(Ae.finallyLoc=we[2],Ae.afterLoc=we[3]),this.tryEntries.push(Ae)}function Fe(we){var Ae=we.completion||{};Ae.type="normal",delete Ae.arg,we.completion=Ae}function Ne(we){this.tryEntries=[{tryLoc:"root"}],we.forEach(Ie,this),this.reset(!0)}J.keys=function(we){var Ae=[];for(var ke in we)Ae.push(ke);return Ae.reverse(),function je(){for(;Ae.length;){var ze=Ae.pop();if(ze in we)return je.value=ze,je.done=!1,je}return je.done=!0,je}};function De(we){if(we){var Ae=we[ae];if(Ae)return Ae.call(we);if(typeof we.next=="function")return we;if(!isNaN(we.length)){var ke=-1,je=function ze(){for(;++ke<we.length;)if(te.call(we,ke))return ze.value=we[ke],ze.done=!1,ze;return ze.value=ne,ze.done=!0,ze};return je.next=je}}return{next:Oe}}J.values=De;function Oe(){return{value:ne,done:!0}}return Ne.prototype={constructor:Ne,reset:function(Ae){if(this.prev=0,this.next=0,this.sent=this._sent=ne,this.done=!1,this.delegate=null,this.method="next",this.arg=ne,this.tryEntries.forEach(Fe),!Ae)for(var ke in this)ke.charAt(0)==="t"&&te.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=ne)},stop:function(){this.done=!0;var Ae=this.tryEntries[0],ke=Ae.completion;if(ke.type==="throw")throw ke.arg;return this.rval},dispatchException:function(Ae){if(this.done)throw Ae;var ke=this;function je(Ue,Le){return Xe.type="throw",Xe.arg=Ae,ke.next=Ue,Le&&(ke.method="next",ke.arg=ne),!!Le}for(var ze=this.tryEntries.length-1;ze>=0;--ze){var Ve=this.tryEntries[ze],Xe=Ve.completion;if(Ve.tryLoc==="root")return je("end");if(Ve.tryLoc<=this.prev){var Ye=te.call(Ve,"catchLoc"),at=te.call(Ve,"finallyLoc");if(Ye&&at){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0);if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else if(Ye){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0)}else if(at){if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ae,ke){for(var je=this.tryEntries.length-1;je>=0;--je){var ze=this.tryEntries[je];if(ze.tryLoc<=this.prev&&te.call(ze,"finallyLoc")&&this.prev<ze.finallyLoc){var Ve=ze;break}}Ve&&(Ae==="break"||Ae==="continue")&&Ve.tryLoc<=ke&&ke<=Ve.finallyLoc&&(Ve=null);var Xe=Ve?Ve.completion:{};return Xe.type=Ae,Xe.arg=ke,Ve?(this.method="next",this.next=Ve.finallyLoc,me):this.complete(Xe)},complete:function(Ae,ke){if(Ae.type==="throw")throw Ae.arg;return Ae.type==="break"||Ae.type==="continue"?this.next=Ae.arg:Ae.type==="return"?(this.rval=this.arg=Ae.arg,this.method="return",this.next="end"):Ae.type==="normal"&&ke&&(this.next=ke),me},finish:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.finallyLoc===Ae)return this.complete(je.completion,je.afterLoc),Fe(je),me}},catch:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.tryLoc===Ae){var ze=je.completion;if(ze.type==="throw"){var Ve=ze.arg;Fe(je)}return Ve}}throw new Error("illegal catch attempt")},delegateYield:function(Ae,ke,je){return this.delegate={iterator:De(Ae),resultName:ke,nextLoc:je},this.method==="next"&&(this.arg=ne),me}},J}(F(C)==="object"?C.exports:{});try{regeneratorRuntime=K}catch(J){(typeof globalThis=="undefined"?"undefined":F(globalThis))==="object"?globalThis.regeneratorRuntime=K:Function("r","regeneratorRuntime = r")(K)}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.VerbosityLevel=$.Util=$.UnknownErrorException=$.UnexpectedResponseException=$.UNSUPPORTED_FEATURES=$.TextRenderingMode=$.StreamType=$.RenderingIntentFlag=$.PermissionFlag=$.PasswordResponses=$.PasswordException=$.PageActionEventType=$.OPS=$.MissingPDFException=$.IsLittleEndianCached=$.IsEvalSupportedCached=$.InvalidPDFException=$.ImageKind=$.IDENTITY_MATRIX=$.FormatError=$.FontType=$.FONT_IDENTITY_MATRIX=$.DocumentActionEventType=$.CMapCompressionType=$.BaseException=$.AnnotationType=$.AnnotationStateModelType=$.AnnotationReviewState=$.AnnotationReplyType=$.AnnotationMode=$.AnnotationMarkedState=$.AnnotationFlag=$.AnnotationFieldFlag=$.AnnotationBorderStyleType=$.AnnotationActionEventType=$.AbortException=void 0,$.arrayByteLength=ft,$.arraysToBytes=yt,$.assert=it,$.bytesToString=qe,$.createObjectURL=gn,$.createPromiseCapability=sn,$.createValidAbsoluteUrl=dt,$.escapeString=Gt,$.getModificationDate=dn,$.getVerbosityLevel=We,$.info=Ke,$.isArrayBuffer=Wt,$.isArrayEqual=Jt,$.isAscii=zt,$.isBool=qt,$.isNum=ln,$.isSameOrigin=Je,$.isString=Cn,$.objectFromMap=Dt,$.objectSize=kt,$.removeNullCharacters=tt,$.setVerbosityLevel=He,$.shadow=vt,$.string32=$t,$.stringToBytes=ot,$.stringToPDFString=Ht,$.stringToUTF16BEString=Ft,$.stringToUTF8String=Vt,$.unreachable=st,$.utf8StringToString=Kt,$.warn=rt,V(5);function F(mt,Ot){for(var pt=0;pt<Ot.length;pt++){var _t=Ot[pt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(mt,_t.key,_t)}}function K(mt,Ot,pt){return Ot&&F(mt.prototype,Ot),pt&&F(mt,pt),mt}function J(mt){return ne(mt)||te(mt)||ce(mt)||ee()}function ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
437
437
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(mt){if(typeof Symbol!="undefined"&&mt[Symbol.iterator]!=null||mt["@@iterator"]!=null)return Array.from(mt)}function ne(mt){if(Array.isArray(mt))return de(mt)}function re(mt,Ot){return ie(mt)||oe(mt,Ot)||ce(mt,Ot)||ae()}function ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalant/career-hub",
3
- "version": "4.0.7-alpha.0",
3
+ "version": "4.0.8-alpha.0",
4
4
  "description": "Career Hub package for MIT",
5
5
  "license": "MIT",
6
6
  "main": "dist/career-hub.umd.js",
@@ -28,7 +28,7 @@
28
28
  "@vitejs/plugin-react": "^4.0.0",
29
29
  "vite": "^4.3.9"
30
30
  },
31
- "gitHead": "835604f2274124fc22b466628cecfc701eeaf617",
31
+ "gitHead": "00c87acfdc190dc224098df40c16185a0005d7a6",
32
32
  "dependencies": {
33
33
  "react-pdf": "5.7.2"
34
34
  }