@scalant/career-hub 2.7.0-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.
- package/dist/career-hub.es.js +9520 -0
- package/dist/career-hub.umd.js +90 -0
- package/dist/style.css +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
(function(W,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("react"),require("@reduxjs/toolkit"),require("react-redux"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","@reduxjs/toolkit","react-redux","antd"],i):(W=typeof globalThis!="undefined"?globalThis:W||self,i(W.CareerHub={},W.React,W.ReduxToolkit,W.ReactRedux,W.antd))})(this,function(W,i,q,G,m){"use strict";var Pf=Object.defineProperty,Mf=Object.defineProperties;var Df=Object.getOwnPropertyDescriptors;var Io=Object.getOwnPropertySymbols;var jf=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable;var xo=(W,i,q)=>i in W?Pf(W,i,{enumerable:!0,configurable:!0,writable:!0,value:q}):W[i]=q,Ee=(W,i)=>{for(var q in i||(i={}))jf.call(i,q)&&xo(W,q,i[q]);if(Io)for(var q of Io(i))Lf.call(i,q)&&xo(W,q,i[q]);return W},st=(W,i)=>Mf(W,Df(i));var _e=(W,i,q)=>new Promise((G,m)=>{var pn=Ae=>{try{nt(q.next(Ae))}catch(Ue){m(Ue)}},Q=Ae=>{try{nt(q.throw(Ae))}catch(Ue){m(Ue)}},nt=Ae=>Ae.done?G(Ae.value):Promise.resolve(Ae.value).then(pn,Q);nt((q=q.apply(W,i)).next())});function pn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=pn(i),nt=()=>i.createElement("div",{style:{padding:"20px",textAlign:"center"}},i.createElement("h1",null,"Hello World - Career Hub"),i.createElement("p",null,"This is a dummy component."));function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Ot={exports:{}},te={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var Nr;function ko(){if(Nr)return te;Nr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function y(f){if(typeof f=="object"&&f!==null){var S=f.$$typeof;switch(S){case t:switch(f=f.type,f){case c:case u:case r:case o:case a:case d:return f;default:switch(f=f&&f.$$typeof,f){case s:case p:case _:case v:case l:return f;default:return S}}case n:return S}}}function b(f){return y(f)===u}return te.AsyncMode=c,te.ConcurrentMode=u,te.ContextConsumer=s,te.ContextProvider=l,te.Element=t,te.ForwardRef=p,te.Fragment=r,te.Lazy=_,te.Memo=v,te.Portal=n,te.Profiler=o,te.StrictMode=a,te.Suspense=d,te.isAsyncMode=function(f){return b(f)||y(f)===c},te.isConcurrentMode=b,te.isContextConsumer=function(f){return y(f)===s},te.isContextProvider=function(f){return y(f)===l},te.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},te.isForwardRef=function(f){return y(f)===p},te.isFragment=function(f){return y(f)===r},te.isLazy=function(f){return y(f)===_},te.isMemo=function(f){return y(f)===v},te.isPortal=function(f){return y(f)===n},te.isProfiler=function(f){return y(f)===o},te.isStrictMode=function(f){return y(f)===a},te.isSuspense=function(f){return y(f)===d},te.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===u||f===o||f===a||f===d||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===_||f.$$typeof===v||f.$$typeof===l||f.$$typeof===s||f.$$typeof===p||f.$$typeof===E||f.$$typeof===A||f.$$typeof===T||f.$$typeof===h)},te.typeOf=y,te}var ne={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var Pr;function No(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function y(L){return typeof L=="string"||typeof L=="function"||L===r||L===u||L===o||L===a||L===d||L===g||typeof L=="object"&&L!==null&&(L.$$typeof===_||L.$$typeof===v||L.$$typeof===l||L.$$typeof===s||L.$$typeof===p||L.$$typeof===E||L.$$typeof===A||L.$$typeof===T||L.$$typeof===h)}function b(L){if(typeof L=="object"&&L!==null){var ue=L.$$typeof;switch(ue){case t:var De=L.type;switch(De){case c:case u:case r:case o:case a:case d:return De;default:var lt=De&&De.$$typeof;switch(lt){case s:case p:case _:case v:case l:return lt;default:return ue}}case n:return ue}}}var f=c,S=u,C=s,x=l,k=t,w=p,N=r,M=_,j=v,F=n,O=o,V=a,K=d,Y=!1;function R(L){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(L)||b(L)===c}function P(L){return b(L)===u}function D(L){return b(L)===s}function H(L){return b(L)===l}function B(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function $(L){return b(L)===p}function J(L){return b(L)===r}function z(L){return b(L)===_}function U(L){return b(L)===v}function Z(L){return b(L)===n}function ee(L){return b(L)===o}function X(L){return b(L)===a}function ie(L){return b(L)===d}ne.AsyncMode=f,ne.ConcurrentMode=S,ne.ContextConsumer=C,ne.ContextProvider=x,ne.Element=k,ne.ForwardRef=w,ne.Fragment=N,ne.Lazy=M,ne.Memo=j,ne.Portal=F,ne.Profiler=O,ne.StrictMode=V,ne.Suspense=K,ne.isAsyncMode=R,ne.isConcurrentMode=P,ne.isContextConsumer=D,ne.isContextProvider=H,ne.isElement=B,ne.isForwardRef=$,ne.isFragment=J,ne.isLazy=z,ne.isMemo=U,ne.isPortal=Z,ne.isProfiler=ee,ne.isStrictMode=X,ne.isSuspense=ie,ne.isValidElementType=y,ne.typeOf=b}()),ne}var Mr;function Dr(){return Mr||(Mr=1,process.env.NODE_ENV==="production"?Ot.exports=ko():Ot.exports=No()),Ot.exports}/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var fn,jr;function Po(){if(jr)return fn;jr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var l={},s=0;s<10;s++)l["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(p){return!1}}return fn=a()?Object.assign:function(o,l){for(var s,c=r(o),u,p=1;p<arguments.length;p++){s=Object(arguments[p]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){u=e(s);for(var g=0;g<u.length;g++)n.call(s,u[g])&&(c[u[g]]=s[u[g]])}}return c},fn}var mn,Lr;function vn(){if(Lr)return mn;Lr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mn=e,mn}var hn,Fr;function qr(){return Fr||(Fr=1,hn=Function.call.bind(Object.prototype.hasOwnProperty)),hn}var gn,$r;function Mo(){if($r)return gn;$r=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vn(),n={},r=qr();e=function(o){var l="Warning: "+o;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(s){}}}function a(o,l,s,c,u){if(process.env.NODE_ENV!=="production"){for(var p in o)if(r(o,p)){var d;try{if(typeof o[p]!="function"){var g=Error((c||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=o[p](l,p,c,s,null,t)}catch(_){d=_}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var v=u?u():"";e("Failed "+s+" type: "+d.message+(v!=null?v:""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},gn=a,gn}var yn,Br;function Do(){if(Br)return yn;Br=1;var e=Dr(),t=Po(),n=vn(),r=qr(),a=Mo(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var c="Warning: "+s;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function l(){return null}return yn=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function d(P){var D=P&&(u&&P[u]||P[p]);if(typeof D=="function")return D}var g="<<anonymous>>",v={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(),arrayOf:y,element:b(),elementType:f(),instanceOf:S,node:w(),objectOf:x,oneOf:C,oneOfType:k,shape:M,exact:j};function _(P,D){return P===D?P!==0||1/P===1/D:P!==P&&D!==D}function h(P,D){this.message=P,this.data=D&&typeof D=="object"?D:{},this.stack=""}h.prototype=Error.prototype;function E(P){if(process.env.NODE_ENV!=="production")var D={},H=0;function B(J,z,U,Z,ee,X,ie){if(Z=Z||g,X=X||U,ie!==n){if(c){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ue=Z+":"+U;!D[ue]&&H<3&&(o("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ue]=!0,H++)}}return z[U]==null?J?z[U]===null?new h("The "+ee+" `"+X+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new h("The "+ee+" `"+X+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:P(z,U,Z,ee,X)}var $=B.bind(null,!1);return $.isRequired=B.bind(null,!0),$}function A(P){function D(H,B,$,J,z,U){var Z=H[B],ee=V(Z);if(ee!==P){var X=K(Z);return new h("Invalid "+J+" `"+z+"` of type "+("`"+X+"` supplied to `"+$+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return E(D)}function T(){return E(l)}function y(P){function D(H,B,$,J,z){if(typeof P!="function")return new h("Property `"+z+"` of component `"+$+"` has invalid PropType notation inside arrayOf.");var U=H[B];if(!Array.isArray(U)){var Z=V(U);return new h("Invalid "+J+" `"+z+"` of type "+("`"+Z+"` supplied to `"+$+"`, expected an array."))}for(var ee=0;ee<U.length;ee++){var X=P(U,ee,$,J,z+"["+ee+"]",n);if(X instanceof Error)return X}return null}return E(D)}function b(){function P(D,H,B,$,J){var z=D[H];if(!s(z)){var U=V(z);return new h("Invalid "+$+" `"+J+"` of type "+("`"+U+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return E(P)}function f(){function P(D,H,B,$,J){var z=D[H];if(!e.isValidElementType(z)){var U=V(z);return new h("Invalid "+$+" `"+J+"` of type "+("`"+U+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return E(P)}function S(P){function D(H,B,$,J,z){if(!(H[B]instanceof P)){var U=P.name||g,Z=R(H[B]);return new h("Invalid "+J+" `"+z+"` of type "+("`"+Z+"` supplied to `"+$+"`, expected ")+("instance of `"+U+"`."))}return null}return E(D)}function C(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),l;function D(H,B,$,J,z){for(var U=H[B],Z=0;Z<P.length;Z++)if(_(U,P[Z]))return null;var ee=JSON.stringify(P,function(ie,L){var ue=K(L);return ue==="symbol"?String(L):L});return new h("Invalid "+J+" `"+z+"` of value `"+String(U)+"` "+("supplied to `"+$+"`, expected one of "+ee+"."))}return E(D)}function x(P){function D(H,B,$,J,z){if(typeof P!="function")return new h("Property `"+z+"` of component `"+$+"` has invalid PropType notation inside objectOf.");var U=H[B],Z=V(U);if(Z!=="object")return new h("Invalid "+J+" `"+z+"` of type "+("`"+Z+"` supplied to `"+$+"`, expected an object."));for(var ee in U)if(r(U,ee)){var X=P(U,ee,$,J,z+"."+ee,n);if(X instanceof Error)return X}return null}return E(D)}function k(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<P.length;D++){var H=P[D];if(typeof H!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(H)+" at index "+D+"."),l}function B($,J,z,U,Z){for(var ee=[],X=0;X<P.length;X++){var ie=P[X],L=ie($,J,z,U,Z,n);if(L==null)return null;L.data&&r(L.data,"expectedType")&&ee.push(L.data.expectedType)}var ue=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new h("Invalid "+U+" `"+Z+"` supplied to "+("`"+z+"`"+ue+"."))}return E(B)}function w(){function P(D,H,B,$,J){return F(D[H])?null:new h("Invalid "+$+" `"+J+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return E(P)}function N(P,D,H,B,$){return new h((P||"React class")+": "+D+" type `"+H+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+$+"`.")}function M(P){function D(H,B,$,J,z){var U=H[B],Z=V(U);if(Z!=="object")return new h("Invalid "+J+" `"+z+"` of type `"+Z+"` "+("supplied to `"+$+"`, expected `object`."));for(var ee in P){var X=P[ee];if(typeof X!="function")return N($,J,z,ee,K(X));var ie=X(U,ee,$,J,z+"."+ee,n);if(ie)return ie}return null}return E(D)}function j(P){function D(H,B,$,J,z){var U=H[B],Z=V(U);if(Z!=="object")return new h("Invalid "+J+" `"+z+"` of type `"+Z+"` "+("supplied to `"+$+"`, expected `object`."));var ee=t({},H[B],P);for(var X in ee){var ie=P[X];if(r(P,X)&&typeof ie!="function")return N($,J,z,X,K(ie));if(!ie)return new h("Invalid "+J+" `"+z+"` key `"+X+"` supplied to `"+$+"`.\nBad object: "+JSON.stringify(H[B],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var L=ie(U,X,$,J,z+"."+X,n);if(L)return L}return null}return E(D)}function F(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(F);if(P===null||s(P))return!0;var D=d(P);if(D){var H=D.call(P),B;if(D!==P.entries){for(;!(B=H.next()).done;)if(!F(B.value))return!1}else for(;!(B=H.next()).done;){var $=B.value;if($&&!F($[1]))return!1}}else return!1;return!0;default:return!1}}function O(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function V(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":O(D,P)?"symbol":D}function K(P){if(typeof P=="undefined"||P===null)return""+P;var D=V(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Y(P){var D=K(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function R(P){return!P.constructor||!P.constructor.name?g:P.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},yn}var bn,zr;function jo(){if(zr)return bn;zr=1;var e=vn();function t(){}function n(){}return n.resetWarningCache=t,bn=function(){function r(l,s,c,u,p,d){if(d!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},bn}if(process.env.NODE_ENV!=="production"){var Lo=Dr(),Fo=!0;Ue.exports=Do()(Lo.isElement,Fo)}else Ue.exports=jo()();var qo=Ue.exports;const I=Ae(qo);function pe(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var a=Wo[e],o=a?typeof a=="function"?a.apply(null,n):a:"unknown error nr: "+e;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function We(e){return!!e&&!!e[Se]}function Fe(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var a=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ko}(e)||Array.isArray(e)||!!e[ut]||!!(!((t=e.constructor)===null||t===void 0)&&t[ut])||wt(e)||It(e))}function rt(e,t,n){n===void 0&&(n=!1),Be(e)===0?(n?Object.keys:Pn)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,a){return t(a,r,e)})}function Be(e){var t=e[Se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wt(e)?2:It(e)?3:0}function ct(e,t){return Be(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function At(e,t){return Be(e)===2?e.get(t):e[t]}function Hr(e,t,n){var r=Be(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $o(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wt(e){return Jo&&e instanceof Map}function It(e){return Uo&&e instanceof Set}function Ke(e){return e.o||e.t}function _n(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Yo(e);delete t[Se];for(var n=Pn(t),r=0;r<n.length;r++){var a=n[r],o=t[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function En(e,t){return t===void 0&&(t=!1),Sn(e)||We(e)||!Fe(e)||(Be(e)>1&&(e.set=e.add=e.clear=e.delete=Bo),Object.freeze(e),t&&rt(e,function(n,r){return En(r,!0)},!0)),e}function Bo(){pe(2)}function Sn(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function we(e){var t=Mn[e];return t||pe(18,e),t}function zo(e,t){Mn[e]||(Mn[e]=t)}function Qr(){return process.env.NODE_ENV==="production"||it||pe(0),it}function Cn(e,t){t&&(we("Patches"),e.u=[],e.s=[],e.v=t)}function xt(e){Tn(e),e.p.forEach(Ho),e.p=null}function Tn(e){e===it&&(it=e.l)}function Vr(e){return it={p:[],l:it,h:e,m:!0,_:0}}function Ho(e){var t=e[Se];t.i===0||t.i===1?t.j():t.g=!0}function On(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||we("ES5").S(t,e,r),r?(n[Se].P&&(xt(t),pe(4)),Fe(e)&&(e=kt(t,e),t.l||Nt(t,e)),t.u&&we("Patches").M(n[Se].t,e,t.u,t.s)):e=kt(t,n,[]),xt(t),t.u&&t.v(t.u,t.s),e!==Nn?e:void 0}function kt(e,t,n){if(Sn(t))return t;var r=t[Se];if(!r)return rt(t,function(s,c){return Jr(e,r,t,s,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Nt(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=r.i===4||r.i===5?r.o=_n(r.k):r.o,o=a,l=!1;r.i===3&&(o=new Set(a),a.clear(),l=!0),rt(o,function(s,c){return Jr(e,r,a,s,c,n,l)}),Nt(e,a,!1),n&&e.u&&we("Patches").N(r,n,e.u,e.s)}return r.o}function Jr(e,t,n,r,a,o,l){if(process.env.NODE_ENV!=="production"&&a===n&&pe(5),We(a)){var s=kt(e,a,o&&t&&t.i!==3&&!ct(t.R,r)?o.concat(r):void 0);if(Hr(n,r,s),!We(s))return;e.m=!1}else l&&n.add(a);if(Fe(a)&&!Sn(a)){if(!e.h.D&&e._<1)return;kt(e,a),t&&t.A.l||Nt(e,a)}}function Nt(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&En(t,n)}function An(e,t){var n=e[Se];return(n?Ke(n):e)[t]}function Ur(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function wn(e){e.P||(e.P=!0,e.l&&wn(e.l))}function In(e){e.o||(e.o=_n(e.t))}function xn(e,t,n){var r=wt(t)?we("MapSet").F(t,n):It(t)?we("MapSet").T(t,n):e.O?function(a,o){var l=Array.isArray(a),s={i:l?1:0,A:o?o.A:Qr(),P:!1,I:!1,R:{},l:o,t:a,k:null,o:null,j:null,C:!1},c=s,u=Dn;l&&(c=[s],u=dt);var p=Proxy.revocable(c,u),d=p.revoke,g=p.proxy;return s.k=g,s.j=d,g}(t,n):we("ES5").J(t,n);return(n?n.A:Qr()).p.push(r),r}function Qo(e){return We(e)||pe(22,e),function t(n){if(!Fe(n))return n;var r,a=n[Se],o=Be(n);if(a){if(!a.P&&(a.i<4||!we("ES5").K(a)))return a.t;a.I=!0,r=Wr(n,o),a.I=!1}else r=Wr(n,o);return rt(r,function(l,s){a&&At(a.t,l)===s||Hr(r,l,t(s))}),o===3?new Set(r):r}(e)}function Wr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _n(e)}function Vo(){function e(r){if(!Fe(r))return r;if(Array.isArray(r))return r.map(e);if(wt(r))return new Map(Array.from(r.entries()).map(function(l){return[l[0],e(l[1])]}));if(It(r))return new Set(Array.from(r).map(e));var a=Object.create(Object.getPrototypeOf(r));for(var o in r)a[o]=e(r[o]);return ct(r,ut)&&(a[ut]=r[ut]),a}function t(r){return We(r)?e(r):r}var n="add";zo("Patches",{$:function(r,a){return a.forEach(function(o){for(var l=o.path,s=o.op,c=r,u=0;u<l.length-1;u++){var p=Be(c),d=l[u];typeof d!="string"&&typeof d!="number"&&(d=""+d),p!==0&&p!==1||d!=="__proto__"&&d!=="constructor"||pe(24),typeof c=="function"&&d==="prototype"&&pe(24),typeof(c=At(c,d))!="object"&&pe(15,l.join("/"))}var g=Be(c),v=e(o.value),_=l[l.length-1];switch(s){case"replace":switch(g){case 2:return c.set(_,v);case 3:pe(16);default:return c[_]=v}case n:switch(g){case 1:return _==="-"?c.push(v):c.splice(_,0,v);case 2:return c.set(_,v);case 3:return c.add(v);default:return c[_]=v}case"remove":switch(g){case 1:return c.splice(_,1);case 2:return c.delete(_);case 3:return c.delete(o.value);default:return delete c[_]}default:pe(17,s)}}),r},N:function(r,a,o,l){switch(r.i){case 0:case 4:case 2:return function(s,c,u,p){var d=s.t,g=s.o;rt(s.R,function(v,_){var h=At(d,v),E=At(g,v),A=_?ct(d,v)?"replace":n:"remove";if(h!==E||A!=="replace"){var T=c.concat(v);u.push(A==="remove"?{op:A,path:T}:{op:A,path:T,value:E}),p.push(A===n?{op:"remove",path:T}:A==="remove"?{op:n,path:T,value:t(h)}:{op:"replace",path:T,value:t(h)})}})}(r,a,o,l);case 5:case 1:return function(s,c,u,p){var d=s.t,g=s.R,v=s.o;if(v.length<d.length){var _=[v,d];d=_[0],v=_[1];var h=[p,u];u=h[0],p=h[1]}for(var E=0;E<d.length;E++)if(g[E]&&v[E]!==d[E]){var A=c.concat([E]);u.push({op:"replace",path:A,value:t(v[E])}),p.push({op:"replace",path:A,value:t(d[E])})}for(var T=d.length;T<v.length;T++){var y=c.concat([T]);u.push({op:n,path:y,value:t(v[T])})}d.length<v.length&&p.push({op:"replace",path:c.concat(["length"]),value:d.length})}(r,a,o,l);case 3:return function(s,c,u,p){var d=s.t,g=s.o,v=0;d.forEach(function(_){if(!g.has(_)){var h=c.concat([v]);u.push({op:"remove",path:h,value:_}),p.unshift({op:n,path:h,value:_})}v++}),v=0,g.forEach(function(_){if(!d.has(_)){var h=c.concat([v]);u.push({op:n,path:h,value:_}),p.unshift({op:"remove",path:h,value:_})}v++})}(r,a,o,l)}},M:function(r,a,o,l){o.push({op:"replace",path:[],value:a===Nn?void 0:a}),l.push({op:"replace",path:[],value:r})}})}var Kr,it,kn=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Jo=typeof Map!="undefined",Uo=typeof Set!="undefined",Yr=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Nn=kn?Symbol.for("immer-nothing"):((Kr={})["immer-nothing"]=!0,Kr),ut=kn?Symbol.for("immer-draftable"):"__$immer_draftable",Se=kn?Symbol.for("immer-state"):"__$immer_state",Wo={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Ko=""+Object.prototype.constructor,Pn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(e){var t={};return Pn(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Mn={},Dn={get:function(e,t){if(t===Se)return e;var n=Ke(e);if(!ct(n,t))return function(a,o,l){var s,c=Ur(o,l);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(a.k):void 0}(e,n,t);var r=n[t];return e.I||!Fe(r)?r:r===An(e.t,t)?(In(e),e.o[t]=xn(e.A.h,r,e)):r},has:function(e,t){return t in Ke(e)},ownKeys:function(e){return Reflect.ownKeys(Ke(e))},set:function(e,t,n){var r=Ur(Ke(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=An(Ke(e),t),o=a==null?void 0:a[Se];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if($o(n,a)&&(n!==void 0||ct(e.t,t)))return!0;In(e),wn(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return An(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,In(e),wn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ke(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){pe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pe(12)}},dt={};rt(Dn,function(e,t){dt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),dt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&pe(13),dt.set.call(this,e,t,void 0)},dt.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&pe(14),Dn.set.call(this,e[0],t,n,e[0])};var Go=function(){function e(n){var r=this;this.O=Yr,this.D=!0,this.produce=function(a,o,l){if(typeof a=="function"&&typeof o!="function"){var s=o;o=a;var c=r;return function(h){var E=this;h===void 0&&(h=s);for(var A=arguments.length,T=Array(A>1?A-1:0),y=1;y<A;y++)T[y-1]=arguments[y];return c.produce(h,function(b){var f;return(f=o).call.apply(f,[E,b].concat(T))})}}var u;if(typeof o!="function"&&pe(6),l!==void 0&&typeof l!="function"&&pe(7),Fe(a)){var p=Vr(r),d=xn(r,a,void 0),g=!0;try{u=o(d),g=!1}finally{g?xt(p):Tn(p)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(h){return Cn(p,l),On(h,p)},function(h){throw xt(p),h}):(Cn(p,l),On(u,p))}if(!a||typeof a!="object"){if((u=o(a))===void 0&&(u=a),u===Nn&&(u=void 0),r.D&&En(u,!0),l){var v=[],_=[];we("Patches").M(a,u,v,_),l(v,_)}return u}pe(21,a)},this.produceWithPatches=function(a,o){if(typeof a=="function")return function(u){for(var p=arguments.length,d=Array(p>1?p-1:0),g=1;g<p;g++)d[g-1]=arguments[g];return r.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(d))})};var l,s,c=r.produce(a,o,function(u,p){l=u,s=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(u){return[u,l,s]}):[c,l,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Fe(n)||pe(8),We(n)&&(n=Qo(n));var r=Vr(this),a=xn(this,n,void 0);return a[Se].C=!0,Tn(r),a},t.finishDraft=function(n,r){var a=n&&n[Se];process.env.NODE_ENV!=="production"&&(a&&a.C||pe(9),a.I&&pe(10));var o=a.A;return Cn(o,r),On(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Yr&&pe(20),this.O=n},t.applyPatches=function(n,r){var a;for(a=r.length-1;a>=0;a--){var o=r[a];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}a>-1&&(r=r.slice(a+1));var l=we("Patches").$;return We(n)?l(n,r):this.produce(n,function(s){return l(s,r)})},e}(),Ce=new Go;Ce.produce;var Gr=Ce.produceWithPatches.bind(Ce);Ce.setAutoFreeze.bind(Ce),Ce.setUseProxies.bind(Ce);var Rr=Ce.applyPatches.bind(Ce);Ce.createDraft.bind(Ce),Ce.finishDraft.bind(Ce);var Pt="NOT_FOUND";function Ro(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Pt},put:function(r,a){t={key:r,value:a}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Zo(e,t){var n=[];function r(s){var c=n.findIndex(function(p){return t(s,p.key)});if(c>-1){var u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Pt}function a(s,c){r(s)===Pt&&(n.unshift({key:s,value:c}),n.length>e&&n.pop())}function o(){return n}function l(){n=[]}return{get:r,put:a,getEntries:o,clear:l}}var Xo=function(t,n){return t===n};function el(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var a=n.length,o=0;o<a;o++)if(!e(n[o],r[o]))return!1;return!0}}function Zr(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,a=r===void 0?Xo:r,o=n.maxSize,l=o===void 0?1:o,s=n.resultEqualityCheck,c=el(a),u=l===1?Ro(c):Zo(l,c);function p(){var d=u.get(arguments);if(d===Pt){if(d=e.apply(null,arguments),s){var g=u.getEntries(),v=g.find(function(_){return s(_.value,d)});v&&(d=v.value)}u.put(arguments,d)}return d}return p.clearCache=function(){return u.clear()},p}var Mt=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(u){return function(p){return c([u,p])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(p){u=[6,p],a=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Dt=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},tl=Object.defineProperty,nl=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ti=function(e,t,n){return t in e?tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},fe=function(e,t){for(var n in t||(t={}))Xr.call(t,n)&&ti(e,n,t[n]);if(jt)for(var r=0,a=jt(t);r<a.length;r++){var n=a[r];ei.call(t,n)&&ti(e,n,t[n])}return e},Ie=function(e,t){return nl(e,rl(t))},ni=function(e,t){var n={};for(var r in e)Xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jt)for(var a=0,o=jt(e);a<o.length;a++){var r=o[a];t.indexOf(r)<0&&ei.call(e,r)&&(n[r]=e[r])}return n},Lt=function(e,t,n){return new Promise(function(r,a){var o=function(c){try{s(n.next(c))}catch(u){a(u)}},l=function(c){try{s(n.throw(c))}catch(u){a(u)}},s=function(c){return c.done?r(c.value):Promise.resolve(c.value).then(o,l)};s((n=n.apply(e,t)).next())})},le;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(le||(le={}));function il(e){return{status:e,isUninitialized:e===le.uninitialized,isLoading:e===le.pending,isSuccess:e===le.fulfilled,isError:e===le.rejected}}function al(e){return new RegExp("(^|:)//").test(e)}var ol=function(e){return e.replace(/\/$/,"")},ll=function(e){return e.replace(/^\//,"")};function sl(e,t){if(!e)return t;if(!t)return e;if(al(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=ol(e),t=ll(t),""+e+n+t}var ri=function(e){return[].concat.apply([],e)};function cl(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function ul(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var ii=q.isPlainObject;function ai(e,t){if(e===t||!(ii(e)&&ii(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),a=n.length===r.length,o=Array.isArray(t)?[]:{},l=0,s=n;l<s.length;l++){var c=s[l];o[c]=ai(e[c],t[c]),a&&(a=e[c]===o[c])}return a?e:o}var oi=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},dl=function(e){return e.status>=200&&e.status<=299},pl=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function li(e){if(!q.isPlainObject(e))return e;for(var t=fe({},e),n=0,r=Object.entries(t);n<r.length;n++){var a=r[n],o=a[0],l=a[1];l===void 0&&delete t[o]}return t}function fl(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,a=n.prepareHeaders,o=a===void 0?function(T){return T}:a,l=n.fetchFn,s=l===void 0?oi:l,c=n.paramsSerializer,u=n.isJsonContentType,p=u===void 0?pl:u,d=n.jsonContentType,g=d===void 0?"application/json":d,v=n.jsonReplacer,_=n.timeout,h=n.validateStatus,E=ni(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&s===oi&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(T,y){return Lt(t,null,function(){var b,f,S,C,x,k,w,N,M,j,F,O,V,K,Y,R,P,D,H,B,$,J,z,U,Z,ee,X,ie,L,ue,De,lt,dn,xr,kr,wo;return Mt(this,function(je){switch(je.label){case 0:return b=y.signal,f=y.getState,S=y.extra,C=y.endpoint,x=y.forced,k=y.type,N=typeof T=="string"?{url:T}:T,M=N.url,j=N.headers,F=j===void 0?new Headers(E.headers):j,O=N.params,V=O===void 0?void 0:O,K=N.responseHandler,Y=K===void 0?"json":K,R=N.validateStatus,P=R===void 0?h!=null?h:dl:R,D=N.timeout,H=D===void 0?_:D,B=ni(N,["url","headers","params","responseHandler","validateStatus","timeout"]),$=fe(Ie(fe({},E),{signal:b}),B),F=new Headers(li(F)),J=$,[4,o(F,{getState:f,extra:S,endpoint:C,forced:x,type:k})];case 1:J.headers=je.sent()||F,z=function(Le){return typeof Le=="object"&&(q.isPlainObject(Le)||Array.isArray(Le)||typeof Le.toJSON=="function")},!$.headers.has("content-type")&&z($.body)&&$.headers.set("content-type",g),z($.body)&&p($.headers)&&($.body=JSON.stringify($.body,v)),V&&(U=~M.indexOf("?")?"&":"?",Z=c?c(V):new URLSearchParams(li(V)),M+=U+Z),M=sl(r,M),ee=new Request(M,$),X=ee.clone(),w={request:X},L=!1,ue=H&&setTimeout(function(){L=!0,y.abort()},H),je.label=2;case 2:return je.trys.push([2,4,5,6]),[4,s(ee)];case 3:return ie=je.sent(),[3,6];case 4:return De=je.sent(),[2,{error:{status:L?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(De)},meta:w}];case 5:return ue&&clearTimeout(ue),[7];case 6:lt=ie.clone(),w.response=lt,xr="",je.label=7;case 7:return je.trys.push([7,9,,10]),[4,Promise.all([A(ie,Y).then(function(Le){return dn=Le},function(Le){return kr=Le}),lt.text().then(function(Le){return xr=Le},function(){})])];case 8:if(je.sent(),kr)throw kr;return[3,10];case 9:return wo=je.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:ie.status,data:xr,error:String(wo)},meta:w}];case 10:return[2,P(ie,dn)?{data:dn,meta:w}:{error:{status:ie.status,data:dn},meta:w}]}})})};function A(T,y){return Lt(this,null,function(){var b;return Mt(this,function(f){switch(f.label){case 0:return typeof y=="function"?[2,y(T)]:(y==="content-type"&&(y=p(T.headers)?"json":"text"),y!=="json"?[3,2]:[4,T.text()]);case 1:return b=f.sent(),[2,b.length?JSON.parse(b):null];case 2:return[2,T.text()]}})})}}var si=function(){function e(t,n){n===void 0&&(n=void 0),this.value=t,this.meta=n}return e}(),jn=q.createAction("__rtkq/focused"),ci=q.createAction("__rtkq/unfocused"),Ln=q.createAction("__rtkq/online"),ui=q.createAction("__rtkq/offline"),xe;(function(e){e.query="query",e.mutation="mutation"})(xe||(xe={}));function di(e){return e.type===xe.query}function ml(e){return e.type===xe.mutation}function pi(e,t,n,r,a,o){return vl(e)?e(t,n,r,a).map(Fn).map(o):Array.isArray(e)?e.map(Fn).map(o):[]}function vl(e){return typeof e=="function"}function Fn(e){return typeof e=="string"?{type:e}:e}function qn(e){return e!=null}var pt=Symbol("forceQueryFn"),$n=function(e){return typeof e[pt]=="function"};function hl(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,a=e.api,o=e.context,l=new Map,s=new Map,c=a.internalActions,u=c.unsubscribeQueryResult,p=c.removeMutationResult,d=c.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:b,getRunningQueryThunk:_,getRunningMutationThunk:h,getRunningQueriesThunk:E,getRunningMutationsThunk:A,getRunningOperationPromises:v,removalWarning:g};function g(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
21
|
+
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
22
|
+
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function v(){if(typeof process!="undefined"&&process.env.NODE_ENV==="development")g();else{var f=function(S){return Array.from(S.values()).flatMap(function(C){return C?Object.values(C):[]})};return Dt(Dt([],f(l)),f(s)).filter(qn)}}function _(f,S){return function(C){var x,k=o.endpointDefinitions[f],w=t({queryArgs:S,endpointDefinition:k,endpointName:f});return(x=l.get(C))==null?void 0:x[w]}}function h(f,S){return function(C){var x;return(x=s.get(C))==null?void 0:x[S]}}function E(){return function(f){return Object.values(l.get(f)||{}).filter(qn)}}function A(){return function(f){return Object.values(s.get(f)||{}).filter(qn)}}function T(f){if(process.env.NODE_ENV!=="production"){if(T.triggered)return;var S=f(a.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(T.triggered=!0,typeof S!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+a.reducerPath+`" has not been added to the store.
|
|
23
|
+
You must add the middleware for RTK-Query to function correctly!`)}}function y(f,S){var C=function(x,k){var w=k===void 0?{}:k,N=w.subscribe,M=N===void 0?!0:N,j=w.forceRefetch,F=w.subscriptionOptions,O=pt,V=w[O];return function(K,Y){var R,P,D=t({queryArgs:x,endpointDefinition:S,endpointName:f}),H=n((R={type:"query",subscribe:M,forceRefetch:j,subscriptionOptions:F,endpointName:f,originalArgs:x,queryCacheKey:D},R[pt]=V,R)),B=a.endpoints[f].select(x),$=K(H),J=B(Y());T(K);var z=$.requestId,U=$.abort,Z=J.requestId!==z,ee=(P=l.get(K))==null?void 0:P[D],X=function(){return B(Y())},ie=Object.assign(V?$.then(X):Z&&!ee?Promise.resolve(J):Promise.all([ee,$]).then(X),{arg:x,requestId:z,subscriptionOptions:F,queryCacheKey:D,abort:U,unwrap:function(){return Lt(this,null,function(){var ue;return Mt(this,function(De){switch(De.label){case 0:return[4,ie];case 1:if(ue=De.sent(),ue.isError)throw ue.error;return[2,ue.data]}})})},refetch:function(){return K(C(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&K(u({queryCacheKey:D,requestId:z}))},updateSubscriptionOptions:function(ue){ie.subscriptionOptions=ue,K(d({endpointName:f,requestId:z,queryCacheKey:D,options:ue}))}});if(!ee&&!Z&&!V){var L=l.get(K)||{};L[D]=ie,l.set(K,L),ie.then(function(){delete L[D],Object.keys(L).length||l.delete(K)})}return ie}};return C}function b(f){return function(S,C){var x=C===void 0?{}:C,k=x.track,w=k===void 0?!0:k,N=x.fixedCacheKey;return function(M,j){var F=r({type:"mutation",endpointName:f,originalArgs:S,track:w,fixedCacheKey:N}),O=M(F);T(M);var V=O.requestId,K=O.abort,Y=O.unwrap,R=O.unwrap().then(function(B){return{data:B}}).catch(function(B){return{error:B}}),P=function(){M(p({requestId:V,fixedCacheKey:N}))},D=Object.assign(R,{arg:O.arg,requestId:V,abort:K,unwrap:Y,unsubscribe:P,reset:P}),H=s.get(M)||{};return s.set(M,H),H[V]=D,D.then(function(){delete H[V],Object.keys(H).length||s.delete(M)}),N&&(H[N]=D,D.then(function(){H[N]===D&&(delete H[N],Object.keys(H).length||s.delete(M))})),D}}}}function fi(e){return e}function gl(e){var t=this,n=e.reducerPath,r=e.baseQuery,a=e.context.endpointDefinitions,o=e.serializeQueryArgs,l=e.api,s=function(y,b,f){return function(S){var C=a[y];S(l.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:b,endpointDefinition:C,endpointName:y}),patches:f}))}},c=function(y,b,f){return function(S,C){var x,k,w=l.endpoints[y].select(b)(C()),N={patches:[],inversePatches:[],undo:function(){return S(l.util.patchQueryData(y,b,N.inversePatches))}};if(w.status===le.uninitialized)return N;if("data"in w)if(Fe(w.data)){var M=Gr(w.data,f),j=M[1],F=M[2];(x=N.patches).push.apply(x,j),(k=N.inversePatches).push.apply(k,F)}else{var O=f(w.data);N.patches.push({op:"replace",path:[],value:O}),N.inversePatches.push({op:"replace",path:[],value:w.data})}return S(l.util.patchQueryData(y,b,N.patches)),N}},u=function(y,b,f){return function(S){var C;return S(l.endpoints[y].initiate(b,(C={subscribe:!1,forceRefetch:!0},C[pt]=function(){return{data:f}},C)))}},p=function(y,b){return Lt(t,[y,b],function(f,S){var C,x,k,w,N,M,j,F,O,V,K,Y,R,P,D,H,B,$,J=S.signal,z=S.abort,U=S.rejectWithValue,Z=S.fulfillWithValue,ee=S.dispatch,X=S.getState,ie=S.extra;return Mt(this,function(L){switch(L.label){case 0:C=a[f.endpointName],L.label=1;case 1:return L.trys.push([1,8,,13]),x=fi,k=void 0,w={signal:J,abort:z,dispatch:ee,getState:X,extra:ie,endpoint:f.endpointName,type:f.type,forced:f.type==="query"?d(f,X()):void 0},N=f.type==="query"?f[pt]:void 0,N?(k=N(),[3,6]):[3,2];case 2:return C.query?[4,r(C.query(f.originalArgs),w,C.extraOptions)]:[3,4];case 3:return k=L.sent(),C.transformResponse&&(x=C.transformResponse),[3,6];case 4:return[4,C.queryFn(f.originalArgs,w,C.extraOptions,function(ue){return r(ue,w,C.extraOptions)})];case 5:k=L.sent(),L.label=6;case 6:if(typeof process!="undefined"&&process.env.NODE_ENV==="development"){if(M=C.query?"`baseQuery`":"`queryFn`",j=void 0,!k)j=M+" did not return anything.";else if(typeof k!="object")j=M+" did not return an object.";else if(k.error&&k.data)j=M+" returned an object containing both `error` and `result`.";else if(k.error===void 0&&k.data===void 0)j=M+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(F=0,O=Object.keys(k);F<O.length;F++)if(V=O[F],V!=="error"&&V!=="data"&&V!=="meta"){j="The object returned by "+M+" has the unknown property "+V+".";break}j&&console.error("Error encountered handling the endpoint "+f.endpointName+`.
|
|
24
|
+
`+j+"\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:",k)}if(k.error)throw new si(k.error,k.meta);return K=Z,[4,x(k.data,k.meta,f.originalArgs)];case 7:return[2,K.apply(void 0,[L.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta},B[q.SHOULD_AUTOBATCH]=!0,B)])];case 8:if(Y=L.sent(),R=Y,!(R instanceof si))return[3,12];P=fi,C.query&&C.transformErrorResponse&&(P=C.transformErrorResponse),L.label=9;case 9:return L.trys.push([9,11,,12]),D=U,[4,P(R.value,R.meta,f.originalArgs)];case 10:return[2,D.apply(void 0,[L.sent(),($={baseQueryMeta:R.meta},$[q.SHOULD_AUTOBATCH]=!0,$)])];case 11:return H=L.sent(),R=H,[3,12];case 12:throw typeof process!="undefined"&&process.env.NODE_ENV!=="production"?console.error('An unhandled error occurred processing a request for the endpoint "'+f.endpointName+`".
|
|
25
|
+
In the case of an unhandled error, no tags will be "provided" or "invalidated".`,R):console.error(R),R;case 13:return[2]}})})};function d(y,b){var f,S,C,x,k=(S=(f=b[n])==null?void 0:f.queries)==null?void 0:S[y.queryCacheKey],w=(C=b[n])==null?void 0:C.config.refetchOnMountOrArgChange,N=k==null?void 0:k.fulfilledTimeStamp,M=(x=y.forceRefetch)!=null?x:y.subscribe&&w;return M?M===!0||(Number(new Date)-Number(N))/1e3>=M:!1}var g=q.createAsyncThunk(n+"/executeQuery",p,{getPendingMeta:function(){var y;return y={startedTimeStamp:Date.now()},y[q.SHOULD_AUTOBATCH]=!0,y},condition:function(y,b){var f=b.getState,S,C,x,k=f(),w=(C=(S=k[n])==null?void 0:S.queries)==null?void 0:C[y.queryCacheKey],N=w==null?void 0:w.fulfilledTimeStamp,M=y.originalArgs,j=w==null?void 0:w.originalArgs,F=a[y.endpointName];return $n(y)?!0:(w==null?void 0:w.status)==="pending"?!1:d(y,k)||di(F)&&((x=F==null?void 0:F.forceRefetch)!=null&&x.call(F,{currentArg:M,previousArg:j,endpointState:w,state:k}))?!0:!N},dispatchConditionRejection:!0}),v=q.createAsyncThunk(n+"/executeMutation",p,{getPendingMeta:function(){var y;return y={startedTimeStamp:Date.now()},y[q.SHOULD_AUTOBATCH]=!0,y}}),_=function(y){return"force"in y},h=function(y){return"ifOlderThan"in y},E=function(y,b,f){return function(S,C){var x=_(f)&&f.force,k=h(f)&&f.ifOlderThan,w=function(F){return F===void 0&&(F=!0),l.endpoints[y].initiate(b,{forceRefetch:F})},N=l.endpoints[y].select(b)(C());if(x)S(w());else if(k){var M=N==null?void 0:N.fulfilledTimeStamp;if(!M){S(w());return}var j=(Number(new Date)-Number(new Date(M)))/1e3>=k;j&&S(w())}else S(w(!1))}};function A(y){return function(b){var f,S;return((S=(f=b==null?void 0:b.meta)==null?void 0:f.arg)==null?void 0:S.endpointName)===y}}function T(y,b){return{matchPending:q.isAllOf(q.isPending(y),A(b)),matchFulfilled:q.isAllOf(q.isFulfilled(y),A(b)),matchRejected:q.isAllOf(q.isRejected(y),A(b))}}return{queryThunk:g,mutationThunk:v,prefetch:E,updateQueryData:c,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:T}}function mi(e,t,n,r){return pi(n[e.meta.arg.endpointName][t],q.isFulfilled(e)?e.payload:void 0,q.isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Ft(e,t,n){var r=e[t];r&&n(r)}function ft(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function vi(e,t,n){var r=e[ft(t)];r&&n(r)}var mt={};function yl(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,a=e.context,o=a.endpointDefinitions,l=a.apiUid,s=a.extractRehydrationInfo,c=a.hasRehydrationInfo,u=e.assertTagType,p=e.config,d=q.createAction(t+"/resetApiState"),g=q.createSlice({name:t+"/queries",initialState:mt,reducers:{removeQueryResult:{reducer:function(f,S){var C=S.payload.queryCacheKey;delete f[C]},prepare:q.prepareAutoBatched()},queryResultPatched:function(f,S){var C=S.payload,x=C.queryCacheKey,k=C.patches;Ft(f,x,function(w){w.data=Rr(w.data,k.concat())})}},extraReducers:function(f){f.addCase(n.pending,function(S,C){var x=C.meta,k=C.meta.arg,w,N,M=$n(k);(k.subscribe||M)&&((N=S[w=k.queryCacheKey])!=null||(S[w]={status:le.uninitialized,endpointName:k.endpointName})),Ft(S,k.queryCacheKey,function(j){j.status=le.pending,j.requestId=M&&j.requestId?j.requestId:x.requestId,k.originalArgs!==void 0&&(j.originalArgs=k.originalArgs),j.startedTimeStamp=x.startedTimeStamp})}).addCase(n.fulfilled,function(S,C){var x=C.meta,k=C.payload;Ft(S,x.arg.queryCacheKey,function(w){var N;if(!(w.requestId!==x.requestId&&!$n(x.arg))){var M=o[x.arg.endpointName].merge;if(w.status=le.fulfilled,M)if(w.data!==void 0){var j=x.fulfilledTimeStamp,F=x.arg,O=x.baseQueryMeta,V=x.requestId,K=q.createNextState(w.data,function(Y){return M(Y,k,{arg:F.originalArgs,baseQueryMeta:O,fulfilledTimeStamp:j,requestId:V})});w.data=K}else w.data=k;else w.data=(N=o[x.arg.endpointName].structuralSharing)==null||N?ai(w.data,k):k;delete w.error,w.fulfilledTimeStamp=x.fulfilledTimeStamp}})}).addCase(n.rejected,function(S,C){var x=C.meta,k=x.condition,w=x.arg,N=x.requestId,M=C.error,j=C.payload;Ft(S,w.queryCacheKey,function(F){if(!k){if(F.requestId!==N)return;F.status=le.rejected,F.error=j!=null?j:M}})}).addMatcher(c,function(S,C){for(var x=s(C).queries,k=0,w=Object.entries(x);k<w.length;k++){var N=w[k],M=N[0],j=N[1];((j==null?void 0:j.status)===le.fulfilled||(j==null?void 0:j.status)===le.rejected)&&(S[M]=j)}})}}),v=q.createSlice({name:t+"/mutations",initialState:mt,reducers:{removeMutationResult:{reducer:function(f,S){var C=S.payload,x=ft(C);x in f&&delete f[x]},prepare:q.prepareAutoBatched()}},extraReducers:function(f){f.addCase(r.pending,function(S,C){var x=C.meta,k=C.meta,w=k.requestId,N=k.arg,M=k.startedTimeStamp;N.track&&(S[ft(x)]={requestId:w,status:le.pending,endpointName:N.endpointName,startedTimeStamp:M})}).addCase(r.fulfilled,function(S,C){var x=C.payload,k=C.meta;k.arg.track&&vi(S,k,function(w){w.requestId===k.requestId&&(w.status=le.fulfilled,w.data=x,w.fulfilledTimeStamp=k.fulfilledTimeStamp)})}).addCase(r.rejected,function(S,C){var x=C.payload,k=C.error,w=C.meta;w.arg.track&&vi(S,w,function(N){N.requestId===w.requestId&&(N.status=le.rejected,N.error=x!=null?x:k)})}).addMatcher(c,function(S,C){for(var x=s(C).mutations,k=0,w=Object.entries(x);k<w.length;k++){var N=w[k],M=N[0],j=N[1];((j==null?void 0:j.status)===le.fulfilled||(j==null?void 0:j.status)===le.rejected)&&M!==(j==null?void 0:j.requestId)&&(S[M]=j)}})}}),_=q.createSlice({name:t+"/invalidation",initialState:mt,reducers:{},extraReducers:function(f){f.addCase(g.actions.removeQueryResult,function(S,C){for(var x=C.payload.queryCacheKey,k=0,w=Object.values(S);k<w.length;k++)for(var N=w[k],M=0,j=Object.values(N);M<j.length;M++){var F=j[M],O=F.indexOf(x);O!==-1&&F.splice(O,1)}}).addMatcher(c,function(S,C){for(var x,k,w,N,M=s(C).provided,j=0,F=Object.entries(M);j<F.length;j++)for(var O=F[j],V=O[0],K=O[1],Y=0,R=Object.entries(K);Y<R.length;Y++)for(var P=R[Y],D=P[0],H=P[1],B=(N=(k=(x=S[V])!=null?x:S[V]={})[w=D||"__internal_without_id"])!=null?N:k[w]=[],$=0,J=H;$<J.length;$++){var z=J[$],U=B.includes(z);U||B.push(z)}}).addMatcher(q.isAnyOf(q.isFulfilled(n),q.isRejectedWithValue(n)),function(S,C){for(var x,k,w,N,M=mi(C,"providesTags",o,u),j=C.meta.arg.queryCacheKey,F=0,O=Object.values(S);F<O.length;F++)for(var V=O[F],K=0,Y=Object.values(V);K<Y.length;K++){var R=Y[K],P=R.indexOf(j);P!==-1&&R.splice(P,1)}for(var D=0,H=M;D<H.length;D++){var B=H[D],$=B.type,J=B.id,z=(N=(k=(x=S[$])!=null?x:S[$]={})[w=J||"__internal_without_id"])!=null?N:k[w]=[],U=z.includes(j);U||z.push(j)}})}}),h=q.createSlice({name:t+"/subscriptions",initialState:mt,reducers:{updateSubscriptionOptions:function(f,S){},unsubscribeQueryResult:function(f,S){},internal_probeSubscription:function(f,S){}}}),E=q.createSlice({name:t+"/internalSubscriptions",initialState:mt,reducers:{subscriptionsUpdated:function(f,S){return Rr(f,S.payload)}}}),A=q.createSlice({name:t+"/config",initialState:fe({online:cl(),focused:ul(),middlewareRegistered:!1},p),reducers:{middlewareRegistered:function(f,S){var C=S.payload;f.middlewareRegistered=f.middlewareRegistered==="conflict"||l!==C?"conflict":!0}},extraReducers:function(f){f.addCase(Ln,function(S){S.online=!0}).addCase(ui,function(S){S.online=!1}).addCase(jn,function(S){S.focused=!0}).addCase(ci,function(S){S.focused=!1}).addMatcher(c,function(S){return fe({},S)})}}),T=q.combineReducers({queries:g.reducer,mutations:v.reducer,provided:_.reducer,subscriptions:E.reducer,config:A.reducer}),y=function(f,S){return T(d.match(S)?void 0:f,S)},b=Ie(fe(fe(fe(fe(fe({},A.actions),g.actions),h.actions),E.actions),v.actions),{unsubscribeMutationResult:v.actions.removeMutationResult,resetApiState:d});return{reducer:y,actions:b}}var Ye=Symbol.for("RTKQ/skipToken"),hi={status:le.uninitialized},gi=q.createNextState(hi,function(){}),yi=q.createNextState(hi,function(){});function bl(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(p){return gi},a=function(p){return yi};return{buildQuerySelector:s,buildMutationSelector:c,selectInvalidatedBy:u};function o(p){return fe(fe({},p),il(p.status))}function l(p){var d=p[n];if(process.env.NODE_ENV!=="production"&&!d){if(l.triggered)return d;l.triggered=!0,console.error("Error: No data found at `state."+n+"`. Did you forget to add the reducer to the store?")}return d}function s(p,d){return function(g){var v=t({queryArgs:g,endpointDefinition:d,endpointName:p}),_=function(E){var A,T,y;return(y=(T=(A=l(E))==null?void 0:A.queries)==null?void 0:T[v])!=null?y:gi},h=g===Ye?r:_;return q.createSelector(h,o)}}function c(){return function(p){var d,g;typeof p=="object"?g=(d=ft(p))!=null?d:Ye:g=p;var v=function(h){var E,A,T;return(T=(A=(E=l(h))==null?void 0:E.mutations)==null?void 0:A[g])!=null?T:yi},_=g===Ye?a:v;return q.createSelector(_,o)}}function u(p,d){for(var g,v=p[n],_=new Set,h=0,E=d.map(Fn);h<E.length;h++){var A=E[h],T=v.provided[A.type];if(T)for(var y=(g=A.id!==void 0?T[A.id]:ri(Object.values(T)))!=null?g:[],b=0,f=y;b<f.length;b++){var S=f[b];_.add(S)}}return ri(Array.from(_.values()).map(function(C){var x=v.queries[C];return x?[{queryCacheKey:C,endpointName:x.endpointName,originalArgs:x.originalArgs}]:[]}))}}var qt=WeakMap?new WeakMap:void 0,bi=function(e){var t=e.endpointName,n=e.queryArgs,r="",a=qt==null?void 0:qt.get(n);if(typeof a=="string")r=a;else{var o=JSON.stringify(n,function(l,s){return q.isPlainObject(s)?Object.keys(s).sort().reduce(function(c,u){return c[u]=s[u],c},{}):s});q.isPlainObject(n)&&(qt==null||qt.set(n,o)),r=o}return t+"("+r+")"};function _l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){var a=Zr(function(p){var d,g;return(g=r.extractRehydrationInfo)==null?void 0:g.call(r,p,{reducerPath:(d=r.reducerPath)!=null?d:"api"})}),o=Ie(fe({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:a,serializeQueryArgs:function(p){var d=bi;if("serializeQueryArgs"in p.endpointDefinition){var g=p.endpointDefinition.serializeQueryArgs;d=function(v){var _=g(v);return typeof _=="string"?_:bi(Ie(fe({},v),{queryArgs:_}))}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(p)},tagTypes:Dt([],r.tagTypes||[])}),l={endpointDefinitions:{},batch:function(p){p()},apiUid:q.nanoid(),extractRehydrationInfo:a,hasRehydrationInfo:Zr(function(p){return a(p)!=null})},s={injectEndpoints:u,enhanceEndpoints:function(p){var d=p.addTagTypes,g=p.endpoints;if(d)for(var v=0,_=d;v<_.length;v++){var h=_[v];o.tagTypes.includes(h)||o.tagTypes.push(h)}if(g)for(var E=0,A=Object.entries(g);E<A.length;E++){var T=A[E],y=T[0],b=T[1];typeof b=="function"?b(l.endpointDefinitions[y]):Object.assign(l.endpointDefinitions[y]||{},b)}return s}},c=e.map(function(p){return p.init(s,o,l)});function u(p){for(var d=p.endpoints({query:function(b){return Ie(fe({},b),{type:xe.query})},mutation:function(b){return Ie(fe({},b),{type:xe.mutation})}}),g=0,v=Object.entries(d);g<v.length;g++){var _=v[g],h=_[0],E=_[1];if(!p.overrideExisting&&h in l.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+h+" without specifying `overrideExisting: true`");continue}l.endpointDefinitions[h]=E;for(var A=0,T=c;A<T.length;A++){var y=T[A];y.injectEndpoint(h,E)}}return s}return s.injectEndpoints({endpoints:r.endpoints})}}function El(e){for(var t in e)return!1;return!0}var Sl=2147483647/1e3-1,Cl=function(e){var t=e.reducerPath,n=e.api,r=e.context,a=e.internalState,o=n.internalActions,l=o.removeQueryResult,s=o.unsubscribeQueryResult;function c(g){var v=a.currentSubscriptions[g];return!!v&&!El(v)}var u={},p=function(g,v,_){var h;if(s.match(g)){var E=v.getState()[t],A=g.payload.queryCacheKey;d(A,(h=E.queries[A])==null?void 0:h.endpointName,v,E.config)}if(n.util.resetApiState.match(g))for(var T=0,y=Object.entries(u);T<y.length;T++){var b=y[T],f=b[0],S=b[1];S&&clearTimeout(S),delete u[f]}if(r.hasRehydrationInfo(g))for(var E=v.getState()[t],C=r.extractRehydrationInfo(g).queries,x=0,k=Object.entries(C);x<k.length;x++){var w=k[x],A=w[0],N=w[1];d(A,N==null?void 0:N.endpointName,v,E.config)}};function d(g,v,_,h){var E,A=r.endpointDefinitions[v],T=(E=A==null?void 0:A.keepUnusedDataFor)!=null?E:h.keepUnusedDataFor;if(T!==1/0){var y=Math.max(0,Math.min(T,Sl));if(!c(g)){var b=u[g];b&&clearTimeout(b),u[g]=setTimeout(function(){c(g)||_.dispatch(l({queryCacheKey:g})),delete u[g]},y*1e3)}}}return p},Tl=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,a=e.mutationThunk,o=e.api,l=e.assertTagType,s=e.refetchQuery,c=o.internalActions.removeQueryResult,u=q.isAnyOf(q.isFulfilled(a),q.isRejectedWithValue(a)),p=function(g,v){u(g)&&d(mi(g,"invalidatesTags",r,l),v),o.util.invalidateTags.match(g)&&d(pi(g.payload,void 0,void 0,void 0,void 0,l),v)};function d(g,v){var _=v.getState(),h=_[t],E=o.util.selectInvalidatedBy(_,g);n.batch(function(){for(var A,T=Array.from(E.values()),y=0,b=T;y<b.length;y++){var f=b[y].queryCacheKey,S=h.queries[f],C=(A=h.subscriptions[f])!=null?A:{};S&&(Object.keys(C).length===0?v.dispatch(c({queryCacheKey:f})):S.status!==le.uninitialized&&v.dispatch(s(S,f)))}})}return p},Ol=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,a=e.refetchQuery,o=e.internalState,l={},s=function(v,_){(r.internalActions.updateSubscriptionOptions.match(v)||r.internalActions.unsubscribeQueryResult.match(v))&&u(v.payload,_),(n.pending.match(v)||n.rejected.match(v)&&v.meta.condition)&&u(v.meta.arg,_),(n.fulfilled.match(v)||n.rejected.match(v)&&!v.meta.condition)&&c(v.meta.arg,_),r.util.resetApiState.match(v)&&d()};function c(v,_){var h=v.queryCacheKey,E=_.getState()[t],A=E.queries[h],T=o.currentSubscriptions[h];if(!(!A||A.status===le.uninitialized)){var y=g(T);if(Number.isFinite(y)){var b=l[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);var f=Date.now()+y,S=l[h]={nextPollTimestamp:f,pollingInterval:y,timeout:setTimeout(function(){S.timeout=void 0,_.dispatch(a(A,h))},y)}}}}function u(v,_){var h=v.queryCacheKey,E=_.getState()[t],A=E.queries[h],T=o.currentSubscriptions[h];if(!(!A||A.status===le.uninitialized)){var y=g(T);if(!Number.isFinite(y)){p(h);return}var b=l[h],f=Date.now()+y;(!b||f<b.nextPollTimestamp)&&c({queryCacheKey:h},_)}}function p(v){var _=l[v];_!=null&&_.timeout&&clearTimeout(_.timeout),delete l[v]}function d(){for(var v=0,_=Object.keys(l);v<_.length;v++){var h=_[v];p(h)}}function g(v){v===void 0&&(v={});var _=Number.POSITIVE_INFINITY;for(var h in v)v[h].pollingInterval&&(_=Math.min(v[h].pollingInterval,_));return _}return s},Al=function(e){var t=e.reducerPath,n=e.context,r=e.api,a=e.refetchQuery,o=e.internalState,l=r.internalActions.removeQueryResult,s=function(u,p){jn.match(u)&&c(p,"refetchOnFocus"),Ln.match(u)&&c(p,"refetchOnReconnect")};function c(u,p){var d=u.getState()[t],g=d.queries,v=o.currentSubscriptions;n.batch(function(){for(var _=0,h=Object.keys(v);_<h.length;_++){var E=h[_],A=g[E],T=v[E];if(!(!T||!A)){var y=Object.values(T).some(function(b){return b[p]===!0})||Object.values(T).every(function(b){return b[p]===void 0})&&d.config[p];y&&(Object.keys(T).length===0?u.dispatch(l({queryCacheKey:E})):A.status!==le.uninitialized&&u.dispatch(a(A,E)))}}})}return s},_i=new Error("Promise never resolved before cacheEntryRemoved."),wl=function(e){var t=e.api,n=e.reducerPath,r=e.context,a=e.queryThunk,o=e.mutationThunk;e.internalState;var l=q.isAsyncThunkAction(a),s=q.isAsyncThunkAction(o),c=q.isFulfilled(a,o),u={},p=function(v,_,h){var E=d(v);if(a.pending.match(v)){var A=h[n].queries[E],T=_.getState()[n].queries[E];!A&&T&&g(v.meta.arg.endpointName,v.meta.arg.originalArgs,E,_,v.meta.requestId)}else if(o.pending.match(v)){var T=_.getState()[n].mutations[E];T&&g(v.meta.arg.endpointName,v.meta.arg.originalArgs,E,_,v.meta.requestId)}else if(c(v)){var y=u[E];y!=null&&y.valueResolved&&(y.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete y.valueResolved)}else if(t.internalActions.removeQueryResult.match(v)||t.internalActions.removeMutationResult.match(v)){var y=u[E];y&&(delete u[E],y.cacheEntryRemoved())}else if(t.util.resetApiState.match(v))for(var b=0,f=Object.entries(u);b<f.length;b++){var S=f[b],C=S[0],y=S[1];delete u[C],y.cacheEntryRemoved()}};function d(v){return l(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.requestId:t.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:t.internalActions.removeMutationResult.match(v)?ft(v.payload):""}function g(v,_,h,E,A){var T=r.endpointDefinitions[v],y=T==null?void 0:T.onCacheEntryAdded;if(y){var b={},f=new Promise(function(N){b.cacheEntryRemoved=N}),S=Promise.race([new Promise(function(N){b.valueResolved=N}),f.then(function(){throw _i})]);S.catch(function(){}),u[h]=b;var C=t.endpoints[v].select(T.type===xe.query?_:h),x=E.dispatch(function(N,M,j){return j}),k=Ie(fe({},E),{getCacheEntry:function(){return C(E.getState())},requestId:A,extra:x,updateCachedData:T.type===xe.query?function(N){return E.dispatch(t.util.updateQueryData(v,_,N))}:void 0,cacheDataLoaded:S,cacheEntryRemoved:f}),w=y(_,k);Promise.resolve(w).catch(function(N){if(N!==_i)throw N})}}return p},Il=function(e){var t=e.api,n=e.context,r=e.queryThunk,a=e.mutationThunk,o=q.isPending(r,a),l=q.isRejected(r,a),s=q.isFulfilled(r,a),c={},u=function(p,d){var g,v,_;if(o(p)){var h=p.meta,E=h.requestId,A=h.arg,T=A.endpointName,y=A.originalArgs,b=n.endpointDefinitions[T],f=b==null?void 0:b.onQueryStarted;if(f){var S={},C=new Promise(function(O,V){S.resolve=O,S.reject=V});C.catch(function(){}),c[E]=S;var x=t.endpoints[T].select(b.type===xe.query?y:E),k=d.dispatch(function(O,V,K){return K}),w=Ie(fe({},d),{getCacheEntry:function(){return x(d.getState())},requestId:E,extra:k,updateCachedData:b.type===xe.query?function(O){return d.dispatch(t.util.updateQueryData(T,y,O))}:void 0,queryFulfilled:C});f(y,w)}}else if(s(p)){var N=p.meta,E=N.requestId,M=N.baseQueryMeta;(g=c[E])==null||g.resolve({data:p.payload,meta:M}),delete c[E]}else if(l(p)){var j=p.meta,E=j.requestId,F=j.rejectedWithValue,M=j.baseQueryMeta;(_=c[E])==null||_.reject({error:(v=p.payload)!=null?v:p.error,isUnhandledError:!F,meta:M}),delete c[E]}};return u},xl=function(e){var t=e.api,n=e.context.apiUid,r=e.reducerPath;return function(a,o){var l,s;t.util.resetApiState.match(a)&&o.dispatch(t.internalActions.middlewareRegistered(n)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&t.internalActions.middlewareRegistered.match(a)&&a.payload===n&&((s=(l=o.getState()[r])==null?void 0:l.config)==null?void 0:s.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+r+`".
|
|
26
|
+
You can only have one api per reducer path, this will lead to crashes in various situations!`+(r==="api"?`
|
|
27
|
+
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},Ei,kl=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(e){return(Ei||(Ei=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Nl=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,a=t.reducerPath+"/subscriptions",o=null,l=!1,s=t.internalActions,c=s.updateSubscriptionOptions,u=s.unsubscribeQueryResult,p=function(d,g){var v,_,h,E,A,T,y,b,f;if(c.match(g)){var S=g.payload,C=S.queryCacheKey,x=S.requestId,k=S.options;return(v=d==null?void 0:d[C])!=null&&v[x]&&(d[C][x]=k),!0}if(u.match(g)){var w=g.payload,C=w.queryCacheKey,x=w.requestId;return d[C]&&delete d[C][x],!0}if(t.internalActions.removeQueryResult.match(g))return delete d[g.payload.queryCacheKey],!0;if(n.pending.match(g)){var N=g.meta,M=N.arg,x=N.requestId;if(M.subscribe){var j=(h=d[_=M.queryCacheKey])!=null?h:d[_]={};return j[x]=(A=(E=M.subscriptionOptions)!=null?E:j[x])!=null?A:{},!0}}if(n.rejected.match(g)){var F=g.meta,O=F.condition,M=F.arg,x=F.requestId;if(O&&M.subscribe){var j=(y=d[T=M.queryCacheKey])!=null?y:d[T]={};return j[x]=(f=(b=M.subscriptionOptions)!=null?b:j[x])!=null?f:{},!0}}return!1};return function(d,g){var v,_;if(o||(o=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.internalActions.internal_probeSubscription.match(d)){var h=d.payload,E=h.queryCacheKey,A=h.requestId,T=!!((v=r.currentSubscriptions[E])!=null&&v[A]);return[!1,T]}var y=p(r.currentSubscriptions,d);if(y){l||(kl(function(){var C=JSON.parse(JSON.stringify(r.currentSubscriptions)),x=Gr(o,function(){return C}),k=x[1];g.next(t.internalActions.subscriptionsUpdated(k)),o=C,l=!1}),l=!0);var b=!!((_=d.type)!=null&&_.startsWith(a)),f=n.rejected.match(d)&&d.meta.condition&&!!d.meta.arg.subscribe,S=!b&&!f;return[S,!1]}return[!0,!1]}};function Pl(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,a=e.context,o=a.apiUid,l={invalidateTags:q.createAction(t+"/invalidateTags")},s=function(d){return!!d&&typeof d.type=="string"&&d.type.startsWith(t+"/")},c=[xl,Cl,Tl,Ol,wl,Il],u=function(d){var g=!1,v={currentSubscriptions:{}},_=Ie(fe({},e),{internalState:v,refetchQuery:p}),h=c.map(function(T){return T(_)}),E=Nl(_),A=Al(_);return function(T){return function(y){g||(g=!0,d.dispatch(r.internalActions.middlewareRegistered(o)));var b=Ie(fe({},d),{next:T}),f=d.getState(),S=E(y,b,f),C=S[0],x=S[1],k;if(C?k=T(y):k=x,d.getState()[t]&&(A(y,b,f),s(y)||a.hasRehydrationInfo(y)))for(var w=0,N=h;w<N.length;w++){var M=N[w];M(y,b,f)}return k}}};return{middleware:u,actions:l};function p(d,g,v){return v===void 0&&(v={}),n(fe({type:"query",endpointName:d.endpointName,originalArgs:d.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:g},v))}}function ze(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Dt([e],t))}var Si=Symbol(),Ml=function(){return{name:Si,init:function(e,t,n){var r=t.baseQuery,a=t.tagTypes,o=t.reducerPath,l=t.serializeQueryArgs,s=t.keepUnusedDataFor,c=t.refetchOnMountOrArgChange,u=t.refetchOnFocus,p=t.refetchOnReconnect;Vo();var d=function(B){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(a.includes(B.type)||console.error("Tag type '"+B.type+"' was used, but not specified in `tagTypes`!")),B};Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:Ln,onOffline:ui,onFocus:jn,onFocusLost:ci},util:{}});var g=gl({baseQuery:r,reducerPath:o,context:n,api:e,serializeQueryArgs:l}),v=g.queryThunk,_=g.mutationThunk,h=g.patchQueryData,E=g.updateQueryData,A=g.upsertQueryData,T=g.prefetch,y=g.buildMatchThunkActions,b=yl({context:n,queryThunk:v,mutationThunk:_,reducerPath:o,assertTagType:d,config:{refetchOnFocus:u,refetchOnReconnect:p,refetchOnMountOrArgChange:c,keepUnusedDataFor:s,reducerPath:o}}),f=b.reducer,S=b.actions;ze(e.util,{patchQueryData:h,updateQueryData:E,upsertQueryData:A,prefetch:T,resetApiState:S.resetApiState}),ze(e.internalActions,S);var C=Pl({reducerPath:o,context:n,queryThunk:v,mutationThunk:_,api:e,assertTagType:d}),x=C.middleware,k=C.actions;ze(e.util,k),ze(e,{reducer:f,middleware:x});var w=bl({serializeQueryArgs:l,reducerPath:o}),N=w.buildQuerySelector,M=w.buildMutationSelector,j=w.selectInvalidatedBy;ze(e.util,{selectInvalidatedBy:j});var F=hl({queryThunk:v,mutationThunk:_,api:e,serializeQueryArgs:l,context:n}),O=F.buildInitiateQuery,V=F.buildInitiateMutation,K=F.getRunningMutationThunk,Y=F.getRunningMutationsThunk,R=F.getRunningQueriesThunk,P=F.getRunningQueryThunk,D=F.getRunningOperationPromises,H=F.removalWarning;return ze(e.util,{getRunningOperationPromises:D,getRunningOperationPromise:H,getRunningMutationThunk:K,getRunningMutationsThunk:Y,getRunningQueryThunk:P,getRunningQueriesThunk:R}),{name:Si,injectEndpoint:function(B,$){var J,z,U=e;(z=(J=U.endpoints)[B])!=null||(J[B]={}),di($)?ze(U.endpoints[B],{name:B,select:N(B,$),initiate:O(B,$)},y(v,B)):ml($)&&ze(U.endpoints[B],{name:B,select:M(),initiate:V(B)},y(_,B))}}}}},Dl=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},jl=Object.defineProperty,Ll=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertySymbols,ql=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Ti=function(e,t,n){return t in e?jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},qe=function(e,t){for(var n in t||(t={}))ql.call(t,n)&&Ti(e,n,t[n]);if(Ci)for(var r=0,a=Ci(t);r<a.length;r++){var n=a[r];$l.call(t,n)&&Ti(e,n,t[n])}return e},$t=function(e,t){return Ll(e,Fl(t))};function Oi(e,t,n,r){var a=i.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),o=i.useRef(a);return i.useEffect(function(){o.current.serialized!==a.serialized&&(o.current=a)},[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}var Bn=Symbol();function zn(e){var t=i.useRef(e);return i.useEffect(function(){G.shallowEqual(t.current,e)||(t.current=e)},[e]),G.shallowEqual(t.current,e)?t.current:e}var Bt=WeakMap?new WeakMap:void 0,Bl=function(e){var t=e.endpointName,n=e.queryArgs,r="",a=Bt==null?void 0:Bt.get(n);if(typeof a=="string")r=a;else{var o=JSON.stringify(n,function(l,s){return q.isPlainObject(s)?Object.keys(s).sort().reduce(function(c,u){return c[u]=s[u],c},{}):s});q.isPlainObject(n)&&(Bt==null||Bt.set(n,o)),r=o}return t+"("+r+")"},zl=typeof window!="undefined"&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect,Hl=function(e){return e},Ql=function(e){return e.isUninitialized?$t(qe({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:le.pending}):e};function Vl(e){var t=e.api,n=e.moduleOptions,r=n.batch,a=n.useDispatch,o=n.useSelector,l=n.useStore,s=n.unstable__sideEffectsInRender,c=e.serializeQueryArgs,u=e.context,p=s?function(h){return h()}:i.useEffect;return{buildQueryHooks:v,buildMutationHook:_,usePrefetch:g};function d(h,E,A){if(E!=null&&E.endpointName&&h.isUninitialized){var T=E.endpointName,y=u.endpointDefinitions[T];c({queryArgs:E.originalArgs,endpointDefinition:y,endpointName:T})===c({queryArgs:A,endpointDefinition:y,endpointName:T})&&(E=void 0)}var b=h.isSuccess?h.data:E==null?void 0:E.data;b===void 0&&(b=h.data);var f=b!==void 0,S=h.isLoading,C=!f&&S,x=h.isSuccess||S&&f;return $t(qe({},h),{data:b,currentData:h.data,isFetching:S,isLoading:C,isSuccess:x})}function g(h,E){var A=a(),T=zn(E);return i.useCallback(function(y,b){return A(t.util.prefetch(h,y,qe(qe({},T),b)))},[h,A,T])}function v(h){var E=function(y,b){var f=b===void 0?{}:b,S=f.refetchOnReconnect,C=f.refetchOnFocus,x=f.refetchOnMountOrArgChange,k=f.skip,w=k===void 0?!1:k,N=f.pollingInterval,M=N===void 0?0:N,j=t.endpoints[h].initiate,F=a(),O=Oi(w?Ye:y,Bl,u.endpointDefinitions[h],h),V=zn({refetchOnReconnect:S,refetchOnFocus:C,pollingInterval:M}),K=i.useRef(!1),Y=i.useRef(),R=Y.current||{},P=R.queryCacheKey,D=R.requestId,H=!1;if(P&&D){var B=F(t.internalActions.internal_probeSubscription({queryCacheKey:P,requestId:D}));if(process.env.NODE_ENV!=="production"&&typeof B!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+t.reducerPath+`" has not been added to the store.
|
|
28
|
+
You must add the middleware for RTK-Query to function correctly!`);H=!!B}var $=!H&&K.current;return p(function(){K.current=H}),p(function(){$&&(Y.current=void 0)},[$]),p(function(){var J,z=Y.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log($),O===Ye){z==null||z.unsubscribe(),Y.current=void 0;return}var U=(J=Y.current)==null?void 0:J.subscriptionOptions;if(!z||z.arg!==O){z==null||z.unsubscribe();var Z=F(j(O,{subscriptionOptions:V,forceRefetch:x}));Y.current=Z}else V!==U&&z.updateSubscriptionOptions(V)},[F,j,x,O,V,$]),i.useEffect(function(){return function(){var J;(J=Y.current)==null||J.unsubscribe(),Y.current=void 0}},[]),i.useMemo(function(){return{refetch:function(){var J;if(!Y.current)throw new Error("Cannot refetch a query that has not been started yet.");return(J=Y.current)==null?void 0:J.refetch()}}},[])},A=function(y){var b=y===void 0?{}:y,f=b.refetchOnReconnect,S=b.refetchOnFocus,C=b.pollingInterval,x=C===void 0?0:C,k=t.endpoints[h].initiate,w=a(),N=i.useState(Bn),M=N[0],j=N[1],F=i.useRef(),O=zn({refetchOnReconnect:f,refetchOnFocus:S,pollingInterval:x});p(function(){var Y,R,P=(Y=F.current)==null?void 0:Y.subscriptionOptions;O!==P&&((R=F.current)==null||R.updateSubscriptionOptions(O))},[O]);var V=i.useRef(O);p(function(){V.current=O},[O]);var K=i.useCallback(function(Y,R){R===void 0&&(R=!1);var P;return r(function(){var D;(D=F.current)==null||D.unsubscribe(),F.current=P=w(k(Y,{subscriptionOptions:V.current,forceRefetch:!R})),j(Y)}),P},[w,k]);return i.useEffect(function(){return function(){var Y;(Y=F==null?void 0:F.current)==null||Y.unsubscribe()}},[]),i.useEffect(function(){M!==Bn&&!F.current&&K(M,!0)},[M,K]),i.useMemo(function(){return[K,M]},[K,M])},T=function(y,b){var f=b===void 0?{}:b,S=f.skip,C=S===void 0?!1:S,x=f.selectFromResult,k=t.endpoints[h].select,w=Oi(C?Ye:y,c,u.endpointDefinitions[h],h),N=i.useRef(),M=i.useMemo(function(){return q.createSelector([k(w),function(K,Y){return Y},function(K){return w}],d)},[k,w]),j=i.useMemo(function(){return x?q.createSelector([M],x):M},[M,x]),F=o(function(K){return j(K,N.current)},G.shallowEqual),O=l(),V=M(O.getState(),N.current);return zl(function(){N.current=V},[V]),F};return{useQueryState:T,useQuerySubscription:E,useLazyQuerySubscription:A,useLazyQuery:function(y){var b=A(y),f=b[0],S=b[1],C=T(S,$t(qe({},y),{skip:S===Bn})),x=i.useMemo(function(){return{lastArg:S}},[S]);return i.useMemo(function(){return[f,C,x]},[f,C,x])},useQuery:function(y,b){var f=E(y,b),S=T(y,qe({selectFromResult:y===Ye||b!=null&&b.skip?void 0:Ql},b)),C=S.data,x=S.status,k=S.isLoading,w=S.isSuccess,N=S.isError,M=S.error;return i.useDebugValue({data:C,status:x,isLoading:k,isSuccess:w,isError:N,error:M}),i.useMemo(function(){return qe(qe({},S),f)},[S,f])}}}function _(h){return function(E){var A=E===void 0?{}:E,T=A.selectFromResult,y=T===void 0?Hl:T,b=A.fixedCacheKey,f=t.endpoints[h],S=f.select,C=f.initiate,x=a(),k=i.useState(),w=k[0],N=k[1];i.useEffect(function(){return function(){w!=null&&w.arg.fixedCacheKey||w==null||w.reset()}},[w]);var M=i.useCallback(function(z){var U=x(C(z,{fixedCacheKey:b}));return N(U),U},[x,C,b]),j=(w||{}).requestId,F=i.useMemo(function(){return q.createSelector([S({fixedCacheKey:b,requestId:w==null?void 0:w.requestId})],y)},[S,w,y,b]),O=o(F,G.shallowEqual),V=b==null?w==null?void 0:w.arg.originalArgs:void 0,K=i.useCallback(function(){r(function(){w&&N(void 0),b&&x(t.internalActions.removeMutationResult({requestId:j,fixedCacheKey:b}))})},[x,b,w,j]),Y=O.endpointName,R=O.data,P=O.status,D=O.isLoading,H=O.isSuccess,B=O.isError,$=O.error;i.useDebugValue({endpointName:Y,data:R,status:P,isLoading:D,isSuccess:H,isError:B,error:$});var J=i.useMemo(function(){return $t(qe({},O),{originalArgs:V,reset:K})},[O,V,K]);return i.useMemo(function(){return[M,J]},[M,J])}}}var zt;(function(e){e.query="query",e.mutation="mutation"})(zt||(zt={}));function Jl(e){return e.type===zt.query}function Ul(e){return e.type===zt.mutation}function Hn(e){return e.replace(e[0],e[0].toUpperCase())}function Ht(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Dl([e],t))}var Wl=Symbol(),Kl=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?G.batch:n,a=t.useDispatch,o=a===void 0?G.useDispatch:a,l=t.useSelector,s=l===void 0?G.useSelector:l,c=t.useStore,u=c===void 0?G.useStore:c,p=t.unstable__sideEffectsInRender,d=p===void 0?!1:p;return{name:Wl,init:function(g,v,_){var h=v.serializeQueryArgs,E=g,A=Vl({api:g,moduleOptions:{batch:r,useDispatch:o,useSelector:s,useStore:u,unstable__sideEffectsInRender:d},serializeQueryArgs:h,context:_}),T=A.buildQueryHooks,y=A.buildMutationHook,b=A.usePrefetch;return Ht(E,{usePrefetch:b}),Ht(_,{batch:r}),{injectEndpoint:function(f,S){if(Jl(S)){var C=T(f),x=C.useQuery,k=C.useLazyQuery,w=C.useLazyQuerySubscription,N=C.useQueryState,M=C.useQuerySubscription;Ht(E.endpoints[f],{useQuery:x,useLazyQuery:k,useLazyQuerySubscription:w,useQueryState:N,useQuerySubscription:M}),g["use"+Hn(f)+"Query"]=x,g["useLazy"+Hn(f)+"Query"]=k}else if(Ul(S)){var j=y(f);Ht(E.endpoints[f],{useMutation:j}),g["use"+Hn(f)+"Mutation"]=j}}}}}},Yl=_l(Ml(),Kl());let Qn="http://localhost:8000";const ke=Yl({reducerPath:"careerHubApi",baseQuery:(e,t,n)=>_e(this,null,function*(){return fl({baseUrl:Qn,prepareHeaders:a=>{if(a.set("Content-Type","application/json"),typeof window!="undefined"){const o=document.querySelector('meta[name="csrf-token"]');o&&a.set("X-CSRF-Token",o.content)}return a}})(e,t,n)}),tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),Gl=e=>{e!==Qn&&(Qn=e)},Rl=ke.injectEndpoints({endpoints:e=>({createApplication:e.mutation({query:({jobProfileId:t,utmMedium:n,utmSource:r,currentTab:a,utmId:o})=>({url:"/api/v3/careers-hub/applications/",method:"POST",body:{job_profile_id:t,medium:n!=null?n:"ch",origin:r!=null?r:"direct",tab_name:a,action_type:o!=null?o:"apply"}})}),getApplication:e.query({query:({applicationId:t,jobProfileId:n,status:r})=>({url:`/api/v3/careers-hub/applications/${t}`,params:{job_profile_id:n,step_name:r}})})})}),{useCreateApplicationMutation:Zl,useGetApplicationQuery:Xl}=Rl,Ai=({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:a})=>{const[o,l]=i.useState(null),[s,c]=i.useState(null),[u,{isLoading:p,isError:d,error:g,isSuccess:v}]=Zl(),_=i.useCallback(()=>_e(this,null,function*(){var E,A,T,y;const h=yield u({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:a});l((A=(E=h==null?void 0:h.data)==null?void 0:E.user_company)==null?void 0:A.id),c((y=(T=h==null?void 0:h.data)==null?void 0:T.user_company)==null?void 0:y.status)}),[u,e,t,n,r,a]);return i.useEffect(()=>{_()},[_]),{retry:_,data:{status:s,applicationId:o},isLoading:p,isError:d,error:g,isSuccess:v}},wi=({jobProfileId:e,applicationId:t,status:n})=>{var u;const{data:r,isLoading:a,isError:o,error:l,isSuccess:s,refetch:c}=Xl({applicationId:t,jobProfileId:e,status:n},{skip:!t||!n});return{retry:c,data:(u=r==null?void 0:r.details)==null?void 0:u.data,isLoading:a,isError:o,error:l,isSuccess:s}};function es(e){return e.map(t=>({label:t,value:t}))}const Vn={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:!1,isNoticePeriodAvailable:!1,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},ts={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},ns={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},rs={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},vt=es(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),Ii=({currentTab:e,isActive:t,jobData:n})=>{const r=i.useMemo(()=>Vn[e]||Vn.all,[e]),a=i.useMemo(()=>!0,[]),o=i.useMemo(()=>n.expiry?new Date(n.expiry)<new Date||n.jobProfileStatus!=="active":!1,[n.expiry,n.jobProfileStatus]);return{cardConfig:r,shouldShowBody:a,isExpired:o}},Qt=()=>{const e=G.useSelector(n=>{var r;return((r=n.scalantCareerHub)==null?void 0:r.filter)||{}});return i.useMemo(()=>{const{filters:n,per_page:r,tab:a,page_number:o,sortings:l,skip_expired_jobs:s}=e;return{per_page:r,tab:a,filters:n||{keyword:""},sortings:l,page_number:o,skip_expired_jobs:s}},[e])},xi={per_page:18,tab:"all",filters:{keyword:""},sortings:[{property:"eligibility",direction:"DESC"}],page_number:1,skip_expired_jobs:!1},ki=q.createSlice({name:"filter",initialState:xi,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.page_number=1},setKeyword:(e,t)=>{e.filters.keyword=t.payload,e.page_number=1},setPageNumber:(e,t)=>{e.page_number=t.payload},setPerPage:(e,t)=>{e.per_page=t.payload,e.page_number=1},setSortings:(e,t)=>{e.sortings=t.payload},setSkipExpiredJobs:(e,t)=>{e.skip_expired_jobs=t.payload},resetFilters:e=>st(Ee({},xi),{tab:e.tab}),updateFiltersFromForm:(e,t)=>{var r;const n=((r=e.filters)==null?void 0:r.keyword)||"";e.filters=Ee({keyword:n},t.payload),e.page_number=1}}}),{setTab:is,setKeyword:as,setPageNumber:os,setPerPage:qf,setSortings:ls,setSkipExpiredJobs:$f,resetFilters:Bf,updateFiltersFromForm:Ni}=ki.actions,ss=ki.reducer,cs=({hasMore:e=!0,isLoading:t=!1,isFetchingMore:n=!1,rootMargin:r="100px",threshold:a=.1}={})=>{const o=G.useDispatch(),l=G.useSelector(d=>{var g,v;return((v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.page_number)||1}),s=i.useRef(null),c=i.useRef(null),u=i.useCallback(()=>{!t&&!n&&e&&o(os(l+1))},[o,l,t,n,e]);return i.useEffect(()=>{const d=s.current;if(c.current&&(d&&c.current.unobserve(d),c.current=null),!d||!e||t||n)return;const g=new IntersectionObserver(v=>{const[_]=v;_.isIntersecting&&u()},{root:null,rootMargin:r,threshold:a});return g.observe(d),c.current=g,()=>{c.current&&d&&(c.current.unobserve(d),c.current=null)}},[u,e,t,n,r,a]),{sentinelRef:i.useCallback(d=>{if(s.current&&c.current&&(c.current.unobserve(s.current),c.current=null),s.current=d,d&&e&&!t&&!n){const g=new IntersectionObserver(v=>{const[_]=v;_.isIntersecting&&u()},{root:null,rootMargin:r,threshold:a});g.observe(d),c.current=g}},[u,e,t,n,r,a])}};var us=i.createContext({});const Pi=us;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}function ds(e){if(Array.isArray(e))return e}function ps(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(p){u=!0,a=p}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}function Mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fs(e,t){if(e){if(typeof e=="string")return Mi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mi(e,t):void 0}}function ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Di(e,t){return ds(e)||ps(e,t)||fs(e,t)||ms()}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}function vs(e,t){if(Ge(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ge(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hs(e){var t=vs(e,"string");return Ge(t)=="symbol"?t:t+""}function ge(e,t,n){return(t=hs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ji(e,t){if(e==null)return{};var n,r,a=gs(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Li={exports:{}};/*!
|
|
30
|
+
Copyright (c) 2018 Jed Watson.
|
|
31
|
+
Licensed under the MIT License (MIT), see
|
|
32
|
+
http://jedwatson.github.io/classnames
|
|
33
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=a(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)t.call(o,s)&&o[s]&&(l=a(l,s));return l}function a(o,l){return l?o?o+" "+l:o+l:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Li);var ys=Li.exports;const ye=Ae(ys),ve=Math.round;function Jn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Fi=(e,t,n)=>n===0?e:e/100;function ht(e,t){const n=t||255;return e>n?n:e<0?0:e}class at{constructor(t){ge(this,"isValid",!0),ge(this,"r",0),ge(this,"g",0),ge(this,"b",0),ge(this,"a",1),ge(this,"_h",void 0),ge(this,"_s",void 0),ge(this,"_l",void 0),ge(this,"_v",void 0),ge(this,"_max",void 0),ge(this,"_min",void 0),ge(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof at)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ht(t.r),this.g=ht(t.g),this.b=ht(t.b),this.a=typeof t.a=="number"?ht(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const l=o/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ve(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=s=>(r[s]-this[s])*a+this[s],l={r:ve(o("r")),g:ve(o("g")),b:ve(o("b")),a:ve(o("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ve((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ve(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ve(this.getSaturation()*100),r=ve(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=ht(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const g=ve(r*255);this.r=g,this.g=g,this.b=g}let o=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,p=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,l=p):c>=1&&c<2?(o=p,l=u):c>=2&&c<3?(l=u,s=p):c>=3&&c<4?(l=p,s=u):c>=4&&c<5?(o=p,s=u):c>=5&&c<6&&(o=u,s=p);const d=r-u/2;this.r=ve((o+d)*255),this.g=ve((l+d)*255),this.b=ve((s+d)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ve(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=ve(r*(1-n)*255),p=ve(r*(1-n*c)*255),d=ve(r*(1-n*(1-c))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=p,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=p;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=p;break}}fromHsvString(t){const n=Jn(t,Fi);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Jn(t,Fi);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Jn(t,(r,a)=>a.includes("%")?ve(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Vt=2,qi=.16,bs=.05,_s=.05,Es=.15,$i=5,Bi=4,Ss=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function zi(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Vt*t:Math.round(e.h)+Vt*t:r=n?Math.round(e.h)+Vt*t:Math.round(e.h)-Vt*t,r<0?r+=360:r>=360&&(r-=360),r}function Hi(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-qi*t:t===Bi?r=e.s+qi:r=e.s+bs*t,r>1&&(r=1),n&&t===$i&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Qi(e,t,n){var r;return n?r=e.v+_s*t:r=e.v-Es*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Cs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new at(e),a=r.toHsv(),o=$i;o>0;o-=1){var l=new at({h:zi(a,o,!0),s:Hi(a,o,!0),v:Qi(a,o,!0)});n.push(l)}n.push(r);for(var s=1;s<=Bi;s+=1){var c=new at({h:zi(a,s),s:Hi(a,s),v:Qi(a,s)});n.push(c)}return t.theme==="dark"?Ss.map(function(u){var p=u.index,d=u.amount;return new at(t.backgroundColor||"#141414").mix(n[p],d).toHexString()}):n.map(function(u){return u.toHexString()})}var Un=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Un.primary=Un[5];function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vi(Object(n),!0).forEach(function(r){ge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ts(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Os(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Ji="data-rc-order",Ui="data-rc-priority",As="rc-util-key",Wn=new Map;function Wi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):As}function Kn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ws(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Yn(e){return Array.from((Wn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ts())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,l=ws(r),s=l==="prependQueue",c=document.createElement("style");c.setAttribute(Ji,l),s&&o&&c.setAttribute(Ui,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Kn(t),p=u.firstChild;if(r){if(s){var d=(t.styles||Yn(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(Ji)))return!1;var v=Number(g.getAttribute(Ui)||0);return o>=v});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,p)}else u.appendChild(c);return c}function Is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Kn(t);return(t.styles||Yn(n)).find(function(r){return r.getAttribute(Wi(t))===e})}function xs(e,t){var n=Wn.get(e);if(!n||!Os(document,n)){var r=Ki("",t),a=r.parentNode;Wn.set(e,a),e.removeChild(r)}}function ks(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kn(n),a=Yn(r),o=Ne(Ne({},n),{},{styles:a});xs(r,o);var l=Is(t,o);if(l){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&l.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;l.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var p=Ki(e,o);return p.setAttribute(Wi(o),t),p}function Yi(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ns(e){return Yi(e)instanceof ShadowRoot}function Ps(e){return Ns(e)?Yi(e):null}var Gn={},Rn=[],Ms=function(t){Rn.push(t)};function Ds(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Rn.reduce(function(r,a){return a(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function js(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Rn.reduce(function(r,a){return a(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function Ls(){Gn={}}function Gi(e,t,n){!t&&!Gn[n]&&(e(!1,n),Gn[n]=!0)}function Jt(e,t){Gi(Ds,e,t)}function Fs(e,t){Gi(js,e,t)}Jt.preMessage=Ms,Jt.resetWarned=Ls,Jt.noteOnce=Fs;function qs(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $s(e,t){Jt(e,"[@ant-design/icons] ".concat(t))}function Ri(e){return Ge(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ge(e.icon)==="object"||typeof e.icon=="function")}function Zi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[qs(n)]=r}return t},{})}function Zn(e,t,n){return n?i.createElement(e.tag,Ne(Ne({key:t},Zi(e.attrs)),n),(e.children||[]).map(function(r,a){return Zn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):i.createElement(e.tag,Ne({key:t},Zi(e.attrs)),(e.children||[]).map(function(r,a){return Zn(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Xi(e){return Cs(e)[0]}function ea(e){return e?Array.isArray(e)?e:[e]:[]}var Bs=`
|
|
34
|
+
.anticon {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
color: inherit;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
line-height: 0;
|
|
40
|
+
text-align: center;
|
|
41
|
+
text-transform: none;
|
|
42
|
+
vertical-align: -0.125em;
|
|
43
|
+
text-rendering: optimizeLegibility;
|
|
44
|
+
-webkit-font-smoothing: antialiased;
|
|
45
|
+
-moz-osx-font-smoothing: grayscale;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.anticon > * {
|
|
49
|
+
line-height: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.anticon svg {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.anticon::before {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.anticon .anticon-icon {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.anticon[tabindex] {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.anticon-spin::before,
|
|
69
|
+
.anticon-spin {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
72
|
+
animation: loadingCircle 1s infinite linear;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@-webkit-keyframes loadingCircle {
|
|
76
|
+
100% {
|
|
77
|
+
-webkit-transform: rotate(360deg);
|
|
78
|
+
transform: rotate(360deg);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes loadingCircle {
|
|
83
|
+
100% {
|
|
84
|
+
-webkit-transform: rotate(360deg);
|
|
85
|
+
transform: rotate(360deg);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`,zs=function(t){var n=i.useContext(Pi),r=n.csp,a=n.prefixCls,o=n.layer,l=Bs;a&&(l=l.replace(/anticon/g,a)),o&&(l="@layer ".concat(o,` {
|
|
89
|
+
`).concat(l,`
|
|
90
|
+
}`)),i.useEffect(function(){var s=t.current,c=Ps(s);ks(l,"@ant-design-icons",{prepend:!o,csp:r,attachTo:c})},[])},Hs=["icon","className","onClick","style","primaryColor","secondaryColor"],gt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qs(e){var t=e.primaryColor,n=e.secondaryColor;gt.primaryColor=t,gt.secondaryColor=n||Xi(t),gt.calculated=!!n}function Vs(){return Ne({},gt)}var Ut=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,l=t.primaryColor,s=t.secondaryColor,c=ji(t,Hs),u=Q.useRef(),p=gt;if(l&&(p={primaryColor:l,secondaryColor:s||Xi(l)}),zs(u),$s(Ri(n),"icon should be icon definiton, but got ".concat(n)),!Ri(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Ne(Ne({},d),{},{icon:d.icon(p.primaryColor,p.secondaryColor)})),Zn(d.icon,"svg-".concat(d.name),Ne(Ne({className:r,onClick:a,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Ut.displayName="IconReact",Ut.getTwoToneColors=Vs,Ut.setTwoToneColors=Qs;const Xn=Ut;function ta(e){var t=ea(e),n=Di(t,2),r=n[0],a=n[1];return Xn.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Js(){var e=Xn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Us=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ta(Un.primary);var Wt=Q.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=ji(e,Us),p=Q.useContext(Pi),d=p.prefixCls,g=d===void 0?"anticon":d,v=p.rootClassName,_=ye(v,g,ge(ge({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),h=l;h===void 0&&s&&(h=-1);var E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,A=ea(c),T=Di(A,2),y=T[0],b=T[1];return Q.createElement("span",re({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:_}),Q.createElement(Xn,{icon:r,primaryColor:y,secondaryColor:b,style:E}))});Wt.displayName="AntdIcon",Wt.getTwoToneColor=Js,Wt.setTwoToneColor=ta;const ae=Wt;var Ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const Ks=Ws;var Ys=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ks}))},na=Q.forwardRef(Ys);process.env.NODE_ENV!=="production"&&(na.displayName="AlertFilled");const er=na;var Gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const Rs=Gs;var Zs=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Rs}))},ra=Q.forwardRef(Zs);process.env.NODE_ENV!=="production"&&(ra.displayName="BellOutlined");const Xs=ra;var ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const tc=ec;var nc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:tc}))},ia=Q.forwardRef(nc);process.env.NODE_ENV!=="production"&&(ia.displayName="CheckCircleFilled");const aa=ia;var rc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const ic=rc;var ac=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:ic}))},oa=Q.forwardRef(ac);process.env.NODE_ENV!=="production"&&(oa.displayName="CheckCircleOutlined");const la=oa;var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const lc=oc;var sc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:lc}))},sa=Q.forwardRef(sc);process.env.NODE_ENV!=="production"&&(sa.displayName="ClockCircleOutlined");const ca=sa;var cc={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:n}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:t}}]}},name:"clock-circle",theme:"twotone"};const uc=cc;var dc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:uc}))},ua=Q.forwardRef(dc);process.env.NODE_ENV!=="production"&&(ua.displayName="ClockCircleTwoTone");const pc=ua;var fc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const mc=fc;var vc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:mc}))},da=Q.forwardRef(vc);process.env.NODE_ENV!=="production"&&(da.displayName="CloseCircleOutlined");const hc=da;var gc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const yc=gc;var bc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:yc}))},pa=Q.forwardRef(bc);process.env.NODE_ENV!=="production"&&(pa.displayName="CloseOutlined");const fa=pa;var _c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Ec=_c;var Sc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ec}))},ma=Q.forwardRef(Sc);process.env.NODE_ENV!=="production"&&(ma.displayName="DeleteOutlined");const va=ma;var Cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Tc=Cc;var Oc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Tc}))},ha=Q.forwardRef(Oc);process.env.NODE_ENV!=="production"&&(ha.displayName="DoubleRightOutlined");const Ac=ha;var wc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Ic=wc;var xc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Ic}))},ga=Q.forwardRef(xc);process.env.NODE_ENV!=="production"&&(ga.displayName="DownOutlined");const ya=ga;var kc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Nc=kc;var Pc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Nc}))},ba=Q.forwardRef(Pc);process.env.NODE_ENV!=="production"&&(ba.displayName="DownloadOutlined");const Mc=ba;var Dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const jc=Dc;var Lc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:jc}))},_a=Q.forwardRef(Lc);process.env.NODE_ENV!=="production"&&(_a.displayName="EditOutlined");const Ea=_a;var Fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const qc=Fc;var $c=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:qc}))},Sa=Q.forwardRef($c);process.env.NODE_ENV!=="production"&&(Sa.displayName="ExclamationCircleOutlined");const Bc=Sa;var zc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const Hc=zc;var Qc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Hc}))},Ca=Q.forwardRef(Qc);process.env.NODE_ENV!=="production"&&(Ca.displayName="FilterOutlined");const Vc=Ca;var Jc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Uc=Jc;var Wc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Uc}))},Ta=Q.forwardRef(Wc);process.env.NODE_ENV!=="production"&&(Ta.displayName="InfoCircleFilled");const Kc=Ta;var Yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const Gc=Yc;var Rc=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Gc}))},Oa=Q.forwardRef(Rc);process.env.NODE_ENV!=="production"&&(Oa.displayName="LinkOutlined");const Aa=Oa;var Zc={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:n}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:n}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:t}}]}},name:"mail",theme:"twotone"};const Xc=Zc;var eu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Xc}))},wa=Q.forwardRef(eu);process.env.NODE_ENV!=="production"&&(wa.displayName="MailTwoTone");const tu=wa;var nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ru=nu;var iu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:ru}))},Ia=Q.forwardRef(iu);process.env.NODE_ENV!=="production"&&(Ia.displayName="PlusOutlined");const au=Ia;var ou={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const lu=ou;var su=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:lu}))},xa=Q.forwardRef(su);process.env.NODE_ENV!=="production"&&(xa.displayName="RiseOutlined");const ka=xa;var cu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const uu=cu;var du=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:uu}))},Na=Q.forwardRef(du);process.env.NODE_ENV!=="production"&&(Na.displayName="RocketOutlined");const pu=Na;var fu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const mu=fu;var vu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:mu}))},Pa=Q.forwardRef(vu);process.env.NODE_ENV!=="production"&&(Pa.displayName="SaveOutlined");const hu=Pa;var gu={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const yu=gu;var bu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:yu}))},Ma=Q.forwardRef(bu);process.env.NODE_ENV!=="production"&&(Ma.displayName="SaveTwoTone");const Da=Ma;var _u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Eu=_u;var Su=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Eu}))},ja=Q.forwardRef(Su);process.env.NODE_ENV!=="production"&&(ja.displayName="SearchOutlined");const La=ja;var Cu={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:n}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"};const Tu=Cu;var Ou=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Tu}))},Fa=Q.forwardRef(Ou);process.env.NODE_ENV!=="production"&&(Fa.displayName="StarTwoTone");const Au=Fa;var wu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const Iu=wu;var xu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Iu}))},qa=Q.forwardRef(xu);process.env.NODE_ENV!=="production"&&(qa.displayName="UnlockOutlined");const ku=qa;var Nu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const Pu=Nu;var Mu=function(t,n){return Q.createElement(ae,re({},t,{ref:n,icon:Pu}))},$a=Q.forwardRef(Mu);process.env.NODE_ENV!=="production"&&($a.displayName="WarningFilled");const Du=$a,ot={APPLICATION_FORM:"application_form",SAVED:"Saved",WITHDRAWN:"Application Withdrawn"},Ba={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},tr={relevant:{label:"Unlocked Jobs",icon:ku},all:{label:"All Jobs",icon:ka},saved:{label:"Saved",icon:Mc},applied:{label:"Applied",icon:la}},de={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},ju={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},Kt={eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},Re={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},se={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},za={[se.REALTIME]:"Realtime",[se.DAILY]:"Daily",[se.ALTERNATE_DAY]:"Every alternate day",[se.WEEKLY]:"Weekly"},be={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},Ha={[be.EMAIL]:"On Email",[be.WHATSAPP]:"On Whatsapp",[be.BOTH]:"On Email & Whatsapp"},yt={ACTIVE:"active",INACTIVE:"inactive"},Qa={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},Lu=(e=[])=>{if(!e||e.length===0)return"eligibility";const t=e[0];for(const n of Object.values(Kt))if(n.mapping.property===t.property&&n.mapping.direction===t.direction)return n.value;return"eligibility"},Fu=(e=[],t=[])=>{if(!t||t.length===0)return e;const n=new Set(e.map(a=>a.id)),r=t.filter(a=>!n.has(a.id));return[...e,...r]},qu=(e={},t={})=>Ee(Ee({},e),t),Yt=(e,t=!1,n=!1,r=null)=>{const a=G.useSelector(E=>{var A,T;return((T=(A=E.scalantCareerHub)==null?void 0:A.filter)==null?void 0:T.page_number)||1}),o=G.useSelector(E=>{var A,T;return((T=(A=E.scalantCareerHub)==null?void 0:A.dashboard)==null?void 0:T.processCounts)||{}}),[l,s]=i.useState([]),[c,u]=i.useState({}),p=i.useMemo(()=>(e==null?void 0:e.jobs)||(e==null?void 0:e.results)||[],[e==null?void 0:e.jobs,e==null?void 0:e.results]),d=i.useMemo(()=>(e==null?void 0:e.companiesMap)||{},[e==null?void 0:e.companiesMap]),g=i.useMemo(()=>r||null,[r]),v=i.useMemo(()=>g?o[g]||0:null,[g,o]);i.useEffect(()=>{a===1?(s(p),u(d)):p.length>0&&(s(E=>Fu(E,p)),u(E=>qu(E,d)))},[p,d,a]);const _=i.useMemo(()=>v===null?p.length>0:l.length<v,[v,l.length,p.length]),h=t&&a>1;return{accumulatedJobs:l,accumulatedCompaniesMap:c,hasMore:_,isFetchingMore:h,isLoading:n&&a===1}},Gt=ke.injectEndpoints({endpoints:e=>({getCompanies:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:t}}),transformResponse:t=>(t.data||[]).map(r=>({id:r.id,value:r.attributes.name})),providesTags:["FilterOptions"]}),getTitles:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"title",q:t}}),transformResponse:t=>{const n=(t.data||[]).map(a=>({id:a.id,value:a.attributes.title||a.attributes.name}));let r={};return n.forEach(a=>{r[a.value]=a.value}),Object.keys(r).map(a=>({key:a,value:r[a]}))},providesTags:["FilterOptions"]}),getExperienceSkills:e.query({query:t=>({url:"/user/skills/all",params:{prefix_q:t}}),transformResponse:t=>(t.all_skills||[]).map(r=>({skill_id:r.skill_id,key:r.key,skill_type:r.skill_type})).filter(r=>r.key&&r.skill_id&&r.skill_type).map(r=>({key:r.skill_id,value:r.key,type:r.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery:$u,useGetTitlesQuery:Bu,useGetExperienceSkillsQuery:zu}=Gt,He=(e,t,n=t)=>!e||!Array.isArray(e)?[]:e.map(r=>({key:r[t],value:r[n]})),Va=new Array(5).fill(1).map((e,t)=>({value:(e+t)*5,label:`>= ${(e+t)*5} Lakhs`})),Ja=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],Ua=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],Hu=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],Qu=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],Vu=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],Ju=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],Uu=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],Wu=new Array(3).fill(1).map((e,t)=>({value:((e+t+1)*30).toString(),label:`greater than ${e+t+1} Months`})),Ku=[{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"},...Wu],Ze={minCtcOptions:Va,minCtcUSOptions:Ja,getMinCtcOptions:e=>e?Ja:Va,mockInterviewSkillOptions:Ua,datePostedOnOptions:Hu,seniorityLevelOptions:Qu,stipendOptions:Vu,internshipDurationOptions:Ju,jobTypeOptions:Uu,NOTICE_PERIOD_OPTIONS:Ku,convertToSelectOption:He,getProficiencyOptions:e=>e?Object.entries(e).map(([t,n])=>({value:n,label:t})):Ua,getMeritBasedSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.id,label:t.title})),getExperienceSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.subtopic_id,label:t.subtopic,type:t.eligible_class||"SubTopic"}))},Yu={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},Wa=q.createSlice({name:"filterOptions",initialState:Yu,reducers:{setCompanyOptions:(e,t)=>{e.companyOptions=He(t.payload,"id","value")},setTitleOptions:(e,t)=>{e.titleOptions=t.payload},setExperienceSkillOptions:(e,t)=>{e.experienceSkillOptions=t.payload},clearCompanyOptions:e=>{e.companyOptions=[]},clearTitleOptions:e=>{e.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:e=>{e.companyOptions=[],e.titleOptions=[],e.experienceSkillOptions=[]}},extraReducers:e=>{e.addMatcher(Gt.endpoints.getCompanies.matchFulfilled,(t,n)=>{t.companyOptions=He(n.payload,"id","value")}),e.addMatcher(Gt.endpoints.getTitles.matchFulfilled,(t,n)=>{t.titleOptions=n.payload}),e.addMatcher(Gt.endpoints.getExperienceSkills.matchFulfilled,(t,n)=>{const r=n.payload||[],a=t.experienceSkillOptions||[],o=new Map(a.map(l=>[l.key,l]));r.forEach(l=>{o.set(l.key,l)}),t.experienceSkillOptions=Array.from(o.values())})}}),{setCompanyOptions:Jf,setTitleOptions:Uf,setExperienceSkillOptions:Wf,clearCompanyOptions:Gu,clearTitleOptions:Ru,clearExperienceSkillOptions:Zu,clearAllOptions:Xu}=Wa.actions,ed=Wa.reducer,nr=(e,t)=>{const n=i.useRef(null);return i.useCallback((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...r)},t)},[e,t])},td=()=>{const e=G.useDispatch(),[t,n]=i.useState(""),[r,a]=i.useState(""),[o,l]=i.useState(""),{isLoading:s,isFetching:c}=$u(t,{skip:!t||t.length<3}),{isLoading:u,isFetching:p}=Bu(r,{skip:!r||r.length<3}),{isLoading:d,isFetching:g}=zu(o,{skip:!o||o.length<2});i.useEffect(()=>{(!t||t.length<3)&&e(Gu())},[t,e]),i.useEffect(()=>{(!r||r.length<3)&&e(Ru())},[r,e]),i.useEffect(()=>{(!o||o.length<2)&&e(Zu())},[o,e]);const v=i.useCallback(b=>{n(b)},[]),_=nr(v,300),h=i.useCallback(b=>{a(b)},[]),E=nr(h,300),A=i.useCallback(b=>{l(b)},[]),T=nr(A,300),y=i.useCallback((b,f)=>b.map(S=>{const C=f==null?void 0:f.find(x=>x.key===S);return{experience_skill_id:S,skill_type:(C==null?void 0:C.type)||"SubTopic"}}),[]);return{handleCompanySearch:_,handleTitleSearch:E,handleExperienceSkillSearch:T,handleExperienceSkillChange:y,loadingCompanies:s||c,loadingTitles:u||p,loadingExperienceSkills:d||g}},Ka=()=>{const e=G.useSelector(v=>{var _;return((_=v.scalantCareerHub.metaData)==null?void 0:_.meta)||{}}),t=i.useMemo(()=>Ze.jobTypeOptions,[]),n=i.useMemo(()=>He(e.jobCategories||[],"value","label"),[e.jobCategories]),r=i.useMemo(()=>He(e.seniorityLevels||[],"value","label"),[e.seniorityLevels]),a=i.useMemo(()=>He(e.companyCategories||[],"value","label"),[e.companyCategories]),o=i.useMemo(()=>He(e.jobLocations||[],"label"),[e.jobLocations]),l=i.useMemo(()=>He(e.meritBasedSkills||[],"id","title"),[e.meritBasedSkills]),s=i.useMemo(()=>Ze.getMinCtcOptions(!1),[]),c=i.useMemo(()=>Ze.stipendOptions,[]),u=i.useMemo(()=>Ze.internshipDurationOptions,[]),p=i.useMemo(()=>Ze.NOTICE_PERIOD_OPTIONS,[]),d=i.useMemo(()=>Ze.datePostedOnOptions,[]),g=i.useMemo(()=>Ze.mockInterviewSkillOptions,[]);return{jobTypes:t,functions:n,seniorityLevels:r,companyCategories:a,locations:o,mbeSkills:l,ctcRanges:s,stipendRanges:c,durationRanges:u,noticePeriods:p,datePostedOptions:d,skillRatings:g}};function rr({applicationData:e}){switch(e.status){case ot.APPLICATION_FORM:return i.createElement(i.Fragment,null,"Application Form");default:return null}}rr.propTypes={applicationData:I.object.isRequired};function Ya({jobProfileId:e,applicationId:t,status:n}){const{data:r,isLoading:a}=wi({jobProfileId:e,applicationId:t,status:n});return a?i.createElement("div",null,"Loading..."):i.createElement(rr,{applicationData:r||{status:n}})}Ya.propTypes={jobProfileId:I.number.isRequired,applicationId:I.number,status:I.string};const bt={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:Ga}=m.Typography;function ir({currentStep:e,icon:t,title:n,totalSteps:r}){return i.createElement(m.Space,{className:bt.container,direction:"vertical"},i.createElement(Ga,{className:bt.stepText},"Step ",e,"/",r),i.createElement(m.Space,{className:bt.titleContainer},i.createElement(t,{className:bt.titleIcon}),i.createElement(Ga,{className:bt.titleText},n)))}ir.propTypes={currentStep:I.number.isRequired,icon:I.elementType.isRequired,title:I.string.isRequired,totalSteps:I.number.isRequired};function nd({applicationData:e}){switch(e.status){case ot.APPLICATION_FORM:return i.createElement(i.Fragment,null,"Application Form");default:return null}}function Ra({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:a}){const[o,l]=i.useState(!0),{data:s,isLoading:c}=Ai({jobProfileId:t,utmMedium:r,utmSource:a,currentTab:e,utmId:n}),u=()=>{l(!1)};return i.createElement(m.Drawer,{closable:{placement:"end"},loading:c,onClose:u,open:o,placement:"bottom",title:i.createElement(ir,{currentStep:1,icon:Kc,title:"Required Details",totalSteps:2})},i.createElement(nd,{applicationData:s}))}Ra.propTypes={currentTab:I.string.isRequired,jobProfileId:I.number.isRequired,utmId:I.string,utmMedium:I.string,utmSource:I.string};const Za="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",Rt=({logo:e,company:t,companiesList:n,companyName:r,size:a=48})=>{const[o,l]=i.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:Za)}),s=()=>{l(Za)};return i.createElement(m.Avatar,{size:a,src:o,alt:r,onError:s,shape:"square"})};Rt.propTypes={logo:I.string,company:I.arrayOf(I.number),companiesList:I.object,companyName:I.string,size:I.number},Rt.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const Xe={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:rd,Text:id}=m.Typography,ar=({title:e,companyName:t,isExpanded:n})=>i.createElement(m.Space,{direction:"vertical",size:4,className:ye(Xe.titleContainer,{[Xe.titleContainerExpanded]:n,[Xe.titleContainerCollapsed]:!n})},i.createElement(rd,{level:5,className:Xe.jobTitle,ellipsis:{rows:1}},e),i.createElement(id,{type:"secondary",ellipsis:!0,className:Xe.companyName},t));ar.propTypes={title:I.string.isRequired,companyName:I.string.isRequired,isExpanded:I.bool},ar.defaultProps={isExpanded:!1};const Xa=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},or=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const a=e[r];return!a||a.isEligible}),lr={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},ad=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],sr=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:a}=e,{isEligible:o,reasons:l=[]}=t||{};if(r&&(new Date(r)<new Date||a!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=l.reduce((_,h)=>(_[h.label]=h,_),{}),u=c.experience,p=c.notice_period,d=c.skills,g=c.tech_stacks;if(o&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(o)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(p&&!p.isEligible&&or(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const v=Xa(d,g);return v>0&&or(c,"skills")?{tag:"steps_to_apply",text:`${v} ${v===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:v}:{tag:lr.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},od={tag:"_tag_ueyiz_1"},ld={CheckCircleOutlined:la,CloseCircleOutlined:hc,ClockCircleOutlined:ca,RocketOutlined:pu},Zt=({jobData:e,currentTab:t})=>{const n=sr(e,e.eligibilityCriteria);if(!n)return null;const r=ld[n.icon];return i.createElement(m.Tag,{icon:r&&i.createElement(r,null),color:n.antdColor,className:od.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};Zt.propTypes={jobData:I.shape({isRelevant:I.bool,expiry:I.string,jobProfileStatus:I.string,eligibilityCriteria:I.shape({isEligible:I.bool,reasons:I.arrayOf(I.shape({label:I.string,isEligible:I.bool,data:I.object}))})}).isRequired,currentTab:I.string},Zt.defaultProps={currentTab:"all"};const cr=({jobData:e,currentTab:t})=>i.createElement("div",{className:Xe.actions},i.createElement(Zt,{jobData:e,currentTab:t}));cr.propTypes={jobData:I.object.isRequired,currentTab:I.string},cr.defaultProps={currentTab:"all"};const ur=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>i.createElement(m.Row,{gutter:[12,8],className:Xe.header},i.createElement(m.Col,{flex:"auto"},i.createElement(m.Row,{gutter:12,align:"top",wrap:!1},i.createElement(m.Col,null,i.createElement(Rt,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),i.createElement(m.Col,{flex:"auto"},i.createElement(ar,{title:e.title,companyName:e.name,isExpanded:r})))),i.createElement(m.Col,null,i.createElement(cr,{jobData:e,currentTab:n})));ur.propTypes={jobData:I.object.isRequired,companiesList:I.object,currentTab:I.string,isExpanded:I.bool},ur.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const dr=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},pr=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:a,userCountry:o="IN"})=>{if(r)return a?`₹${a}/month`:"Unpaid Internship";const l=o==="US"?"$":"₹",s=o==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${l} (Flexible)`:n?`${l}${e}${s}+ (Negotiable)`:e===t?`${l}${e}${s} CTC`:`${l}${e}${s} - ${l}${t}${s} CTC`},fr=e=>!e||e===0?"Immediate":`${e} days Notice Period`,eo=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),a=t.getFullYear();return`${n}/${r}/${a}`},mr=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},to={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},Xt=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:a=!1})=>{const[o,l]=i.useState(!1),s=t==="Saved",c=u=>_e(this,null,function*(){u.stopPropagation(),l(!0);try{yield r(e,s?"unsave":"save")}catch(p){console.error("Save action failed:",p)}finally{l(!1)}});return s&&n?i.createElement(m.Button,{type:"text",icon:i.createElement(Da,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:a||o,loading:o,className:to.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",eo(n)):i.createElement(m.Button,{type:"text",icon:i.createElement(hu,null),onClick:c,disabled:a||o,loading:o,className:to.saveButton,size:"small"},s?"Saved":"Save")};Xt.propTypes={jobProfileId:I.number.isRequired,applicationStatus:I.string,applicationLastUpdatedAt:I.string,onSave:I.func.isRequired,disabled:I.bool},Xt.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const _t={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:sd}=m.Typography,no=({text:e})=>e?i.createElement(sd,{className:_t.detailText},e):null;no.propTypes={text:I.string};const vr=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a})=>{const{preferredCities:o,minExperience:l,maxExperience:s,minCtc:c,maxCtc:u,openForDiscussionCtc:p,isInternship:d,stipend:g,preferredNoticePeriod:v}=e,_=mr(o),h=a===null&&t.isExperienceCtcAvailable?dr(l,s):null,E=t.isExperienceCtcAvailable?pr({minCtc:c,maxCtc:u,openForDiscussionCtc:p,isInternship:d,stipend:g,userCountry:n}):null,A=a===null&&t.isNoticePeriodAvailable?fr(v):null,T=[_&&{text:_},h&&{text:h},E&&{text:E},A&&{text:A}].filter(Boolean);return i.createElement("div",{className:_t.detailsRowContainer},T.length>0&&i.createElement(m.Space,{split:i.createElement(m.Divider,{type:"vertical"}),className:_t.detailsRow},T.map((y,b)=>i.createElement(no,{key:b,text:y.text}))),i.createElement("div",{className:_t.saveButtonWrapper},i.createElement(Xt,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};vr.propTypes={jobData:I.shape({id:I.number.isRequired,preferredCities:I.string,minExperience:I.number,maxExperience:I.number,minCtc:I.number,maxCtc:I.number,openForDiscussionCtc:I.bool,isInternship:I.bool,stipend:I.string,preferredNoticePeriod:I.number,applicationStatus:I.string,applicationLastUpdatedAt:I.string}).isRequired,cardConfig:I.shape({isExperienceCtcAvailable:I.bool,isNoticePeriodAvailable:I.bool}).isRequired,userCountry:I.oneOf(["IN","US"]),onSave:I.func.isRequired,selectedJobId:I.number},vr.defaultProps={userCountry:"IN",selectedJobId:null};const hr=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a})=>i.createElement("div",{className:_t.body},i.createElement(vr,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:a}));hr.propTypes={jobData:I.object.isRequired,cardConfig:I.object.isRequired,userCountry:I.oneOf(["IN","US"]),onSave:I.func.isRequired,selectedJobId:I.number},hr.defaultProps={userCountry:"IN",selectedJobId:null};const en={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},tn=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:a,companiesList:o,userCountry:l,className:s,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:p}=Ii({currentTab:n,isActive:t,jobData:e}),d=()=>{r&&r(e.id)};return i.createElement(m.Card,{className:ye(en.jobCard,{[en.active]:t,[en.archived]:e.applicationStatus==="Archived"},s),onClick:d},i.createElement("div",{className:en.cardContent},i.createElement(ur,{jobData:e,companiesList:o,currentTab:n,isExpanded:!c}),p&&i.createElement(hr,{jobData:e,cardConfig:u,userCountry:l,onSave:a,selectedJobId:c})))};tn.propTypes={jobData:I.shape({id:I.number.isRequired,title:I.string.isRequired,name:I.string.isRequired,company:I.arrayOf(I.number),logo:I.string,preferredCities:I.string,expiry:I.string,jobProfileStatus:I.string,isRelevant:I.bool,applicationStatus:I.string,applicationLastUpdatedAt:I.string,minExperience:I.number,maxExperience:I.number,minCtc:I.number,maxCtc:I.number,preferredNoticePeriod:I.number,openForDiscussionCtc:I.bool,isInternship:I.bool,stipend:I.string,eligibilityCriteria:I.shape({isEligible:I.bool,reasons:I.arrayOf(I.object)})}).isRequired,isActive:I.bool,currentTab:I.string,onClick:I.func,onSave:I.func.isRequired,companiesList:I.object,userCountry:I.oneOf(["IN","US"]),className:I.string,selectedJobId:I.number},tn.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const gr=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),yr=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),cd=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return gr(t);case"titleCase":return yr(t);default:return t}},nn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(nn);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=gr(n);t[r]=nn(e[n])}),t}return e},ud=ke.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var l,s,c;const n=nn(t),r=((l=n==null?void 0:n.data)==null?void 0:l.attributes)||{},a=((c=(s=n==null?void 0:n.included)==null?void 0:s.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},o=r.contestSkills||[];return{jobData:st(Ee({},r),{contestSkills:o,name:r.name||(a==null?void 0:a.name)||"Company"}),companyData:a,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:ro}=ud,io=i.createContext(null),dd=({country:e="IN",jobId:t,openMockInterviewModal:n=(l,s)=>{console.log("Method not implemented. We should get it from MIT"),console.log(l,s)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:a=!1,children:o})=>{const{data:l,isLoading:s,error:c,refetch:u}=ro(t,{skip:!t||a}),[p,d]=i.useState(),g={activeTab:p,setActiveTab:d,country:e,jobId:t,data:l,isLoading:s,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:l==null?void 0:l.jobData,companyData:l==null?void 0:l.companyData,highlights:l==null?void 0:l.highlights,eligibilityCriteria:l==null?void 0:l.eligibilityCriteria};return i.createElement(io.Provider,{value:g},o)},oe=()=>{const e=i.useContext(io);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},et={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},pd=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return i.createElement(m.Card,{size:"small"},i.createElement(m.Space,{direction:"horizontal"},i.createElement(m.Avatar,{size:48,src:n,className:et.recruiterAvatar}),i.createElement(m.Space,{direction:"vertical",className:et.recruiterCardContent},i.createElement(m.Typography.Text,{className:et.recruiterName},t),i.createElement(m.Typography.Link,{className:et.recruiterEmail,href:`mailto:${r}`},i.createElement(tu,null),"Send Email To Recruiter"))))},fd=()=>{const{jobData:e}=oe(),{recruiters:t}=e||{};return i.createElement(m.Space,null,t.map((n,r)=>i.createElement(pd,{key:r,recruiter:n})))},md=()=>{const{jobData:e}=oe(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(o=>({title:o.stageName,description:o.stageComments})),a=n.findIndex(o=>o.stageStatus==="ongoing");return i.createElement(m.Steps,{current:a,items:r,direction:"vertical"})},vd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:et.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Your Application Status"),i.createElement(md,null)),hd=()=>{const{jobData:e}=oe(),{recruiters:t}=e||{};return!t||t.length===0?null:i.createElement(m.Space,{direction:"vertical",size:"large",className:et.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Recruiter Details"),i.createElement(fd,null))},gd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:et.container},i.createElement(vd,null),i.createElement(hd,null)),br={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"},Et={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},ao=({icon:e,title:t,description:n,buttonText:r,buttonIcon:a,className:o,onClick:l,isLoading:s})=>i.createElement("div",{className:ye(Et.actionBanner,o)},e,i.createElement("div",{className:Et.actionBannerContent},i.createElement("span",{className:Et.actionBannerTitle},t),i.createElement("span",{className:Et.actionBannerDescription},n)),i.createElement(m.Button,{icon:a,type:"primary",className:Et.actionBannerButton,onClick:l,loading:s},r)),oo={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},yd="https://companion.scaler.com/interview-experiences",lo=()=>{const{jobData:e,companyData:t}=oe(),{appliedOn:n,title:r,applicationStatus:a}=e||{},o=a===ot.WITHDRAWN,{name:l}=t||{},s=i.useCallback(()=>{globalThis.open(`${yd}?company=${encodeURIComponent(l)}&role=${encodeURIComponent(r)}`,"_blank")},[l,r]);return!n||o?null:i.createElement(ao,{icon:i.createElement("img",{src:br.monitor,className:oo.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:i.createElement(Ac,null),className:oo.monitorBanner,onClick:s})},ce={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},bd=()=>{const{companyData:e}=oe(),{name:t,employeeCount:n,companyVision:r,location:a,category:o,companyWebsite:l}=e||{};return i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"About ",t,l&&i.createElement(m.Typography.Link,{className:ce.descriptionLink,href:l,target:"_blank"},i.createElement(m.Space,null,i.createElement(Aa,null),"Company Website"))),r&&i.createElement(m.Typography.Paragraph,{className:ce.descriptionText},i.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),a&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Office Location:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},a)),o&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Company Category:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},yr(o))),n&&i.createElement(m.Space,null,i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"No. of Employees:"),i.createElement(m.Typography.Text,{className:ce.descriptionText},n)))},_r={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},_d=({html:e,contentClassName:t})=>{const[n,r]=i.useState(!1);return i.createElement("div",{className:_r.collapsableContainer},i.createElement("div",{className:ye(t,{[_r.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),i.createElement(m.Typography.Link,{className:_r.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},Ed=()=>{const{jobData:e}=oe(),{jobDescText:t,jobDesc:n}=e||{};return i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"About the Role",n&&i.createElement(m.Typography.Link,{className:ce.descriptionLink,href:n,target:"_blank"},i.createElement(m.Space,null,i.createElement(Aa,null),"Know More"))),t&&i.createElement(_d,{html:t,contentClassName:ce.descriptionText}))},Er={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},Sd=({children:e,contentClassName:t})=>{const[n,r]=i.useState(!1);return i.createElement("div",{className:Er.collapsableContainer},i.createElement("div",{className:ye(t,{[Er.collapsed]:!n})},e),i.createElement(m.Typography.Link,{className:Er.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},Cd=()=>{const{jobData:e,country:t}=oe(),{benefits:n,visaSponsorship:r}=e||{},a=r==="yes";return!n&&!a||t!=="US"?null:i.createElement(m.Space,{className:ce.contentContainer,direction:"vertical",size:"large"},i.createElement(m.Typography.Text,{className:ce.descriptionTitle},"Benefits"),i.createElement(Sd,{contentClassName:ce.descriptionText},i.createElement("ul",{className:ce.list},n==null?void 0:n.map(o=>i.createElement("li",{key:o},o)),a&&i.createElement("li",null,"Visa sponsorship available"))))},Td=()=>{const{jobData:e}=oe(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:i.createElement("span",{className:ce.descriptionTitle},r.stepName),description:i.createElement("span",{className:ce.descriptionText},r.interviewType)}));return i.createElement(m.Steps,{className:ce.steps,current:-1,progressDot:!0,items:n})},Od=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Job Description"),i.createElement(bd,null),i.createElement(Ed,null),i.createElement(Cd,null)),Ad=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.descriptionContainer},i.createElement(m.Typography.Title,{level:4},"Post Application Process"),i.createElement(Td,null)),wd=()=>i.createElement(m.Space,{direction:"vertical",size:"large",className:ce.container},i.createElement(Od,null),i.createElement(Ad,null),i.createElement(lo,null)),Qe={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Oe={completed:"Completed",pending:"Pending",notRequired:"Not Required"},Id=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],xd=({status:e})=>i.createElement(m.Tag,{color:e===Oe.completed?"success":"warning"},e),kd=({contestDetails:e})=>{if(!e)return Oe.notRequired;const{cleared:t,joinLink:n}=e;return t?i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,Qe.successDot)}),i.createElement(m.Typography.Text,null,"Success")):i.createElement(m.Typography.Link,{href:n,underline:!0},"Attempt Contest")},Nd=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=oe();if(!e)return Oe.notRequired;const{cleared:a}=e;return a?i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,Qe.successDot)}),i.createElement(m.Typography.Text,null,"Success")):i.createElement(m.Typography.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},Pd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(o=>o.label==="skills");if(!r)return null;const a=Object.entries(r.data).map(([o,l])=>{const s=l.contests,c=s?l.contests.cleared?Oe.completed:Oe.pending:Oe.notRequired,u=l.skills,p=u?l.skills.cleared?Oe.completed:Oe.pending:Oe.notRequired,d=[c,p].every(g=>g!==Oe.pending)?Oe.completed:Oe.pending;return{skillType:o,status:i.createElement(xd,{status:d}),contests:i.createElement(kd,{contestDetails:s}),mockInterview:i.createElement(Nd,{mockInterviewDetails:u,skillId:l.skillId,skillName:l.skillName})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Scaler certifications you need to apply"),columns:Id,dataSource:a,pagination:!1})},St={added:"Added",missing:"Missing"},Md=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],Dd=({status:e})=>i.createElement(m.Space,null,i.createElement("div",{className:ye(Qe.dot,{[Qe.successDot]:e===St.added,[Qe.errorDot]:e===St.missing})}),i.createElement(m.Typography.Text,null,e)),jd=({status:e})=>{const{openResume:t}=oe();return e===St.added?null:i.createElement(m.Typography.Link,{onClick:t,underline:!0},"Add Skill")},Ld=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(o=>o.label==="tech_stacks");if(!r)return null;const a=Object.entries(r.data).map(([o,l])=>{var c;const s=(c=l.data)!=null&&c.cleared?St.added:St.missing;return{stackType:o,experience:`${Math.floor(l.proficiencyPeriod/12)}+`,status:i.createElement(Dd,{status:s}),action:i.createElement(jd,{status:s})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:Md,dataSource:a,pagination:!1})},Fd=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,a=`${n}${r}`;if(!t)return`${a}+ Experience`;const o=`${Math.floor(t/12)}y`,l=t%12===0?"":`${t%12}m`;return`${a} - ${o} ${l} Experience`},qd=e=>e===0?"Immediate":e==null?"NA":`${e} days`,$d={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>Fd(e,t),notice_period:({preferredNoticePeriod:e})=>`${qd(e)} Notice Period`},Sr={eligible:"Eligible",ineligible:"Ineligible"},Bd=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],zd=({status:e})=>e===Sr.eligible?i.createElement(m.Tag,{color:"success"},"Eligible"):i.createElement(m.Tag,{color:"error"},"Ineligible"),Hd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(o=>o.label!=="skills"&&o.showText);if(!r)return null;const a=r.map(o=>{const l=o.isEligible?Sr.eligible:Sr.ineligible;return{requirement:yr(o.label),details:$d[o.label](e),status:i.createElement(zd,{status:l})}});return i.createElement(m.Table,{title:()=>i.createElement(m.Typography.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:Bd,dataSource:a,pagination:!1})},Qd=()=>{const{jobData:e}=oe(),{eligibilityCriteria:t}=e||{};return t?i.createElement(m.Space,{direction:"vertical",size:"large",className:Qe.container},i.createElement(m.Typography.Title,{level:4},"Job Check-list"),i.createElement(Pd,null),i.createElement(Ld,null),i.createElement(Hd,null)):null},so={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},Vd=()=>{var l;const{activeTab:e,setActiveTab:t,jobData:n}=oe(),{applicationTimeline:r}=n||{},o=[((l=r==null?void 0:r.timeline)==null?void 0:l.length)>0&&{key:Re.APPLICATION_TIMELINE.key,label:Re.APPLICATION_TIMELINE.label,children:i.createElement(gd,null)},{key:Re.ABOUT_ROLE.key,label:Re.ABOUT_ROLE.label,children:i.createElement(wd,null)},{key:Re.REQUIREMENTS.key,label:Re.REQUIREMENTS.label,children:i.createElement(Qd,null)}].filter(Boolean);return i.createElement("div",{className:so.bodyContainer},i.createElement(m.Tabs,{activeKey:e,className:so.tabs,items:o,onChange:t}))},Jd=ke.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:co}=Jd,Ve={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},Ud=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const a=l=>{const s=l.target.value;t(s),s!=="Other"&&r("")},o=l=>{r(l.target.value)};return i.createElement(i.Fragment,null,i.createElement(m.Typography.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),i.createElement(m.Form,{className:Ve.withdrawalReasonForm},i.createElement(m.Form.Item,{layout:"vertical",label:"Select reason"},i.createElement(m.Radio.Group,{className:Ve.withdrawalReasonRadioGroup,onChange:a,value:e},vt.map(l=>i.createElement(m.Radio,{key:l.value,value:l.value},l.label))),e==="Other"&&i.createElement(m.Form.Item,null,i.createElement(m.Input.TextArea,{value:n,onChange:o,placeholder:"Please specify your reason"})))))},Wd=()=>{var E;const{jobId:e,jobData:t,refetch:n}=oe(),{applicationStatus:r,appliedOn:a}=t||{},[o,l]=i.useState(!1),[s,c]=i.useState((E=vt[0])==null?void 0:E.value),[u,p]=i.useState(""),[d]=co(),{message:g}=m.App.useApp(),v=()=>_e(this,null,function*(){var T,y;const A=yield d({job_profile_id:e,update_action:"withdraw",message:u||s});(T=A==null?void 0:A.data)!=null&&T.success?(g.success("Application withdrawn successfully"),l(!1),c((y=vt[0])==null?void 0:y.value),p(""),n()):g.error("Failed to withdraw application")}),_=()=>{var A;l(!1),c((A=vt[0])==null?void 0:A.value),p("")},h=()=>{var A;c((A=vt[0])==null?void 0:A.value),p(""),l(!0)};return r===ot.WITHDRAWN?i.createElement("div",{className:Ve.withdrawnText},i.createElement(aa,null),"Your Application has been Withdrawn"):a&&!ad.includes(r)?i.createElement(i.Fragment,null,i.createElement(m.Button,{icon:i.createElement("img",{src:br.exit,alt:"exit"}),onClick:h,className:Ve.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),i.createElement(m.Modal,{title:i.createElement(m.Space,null,i.createElement(Du,{className:Ve.warningIcon}),i.createElement(m.Typography.Text,null,"Withdraw My Application")),open:o,onOk:v,onCancel:_},i.createElement(Ud,{withdrawalReason:s,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:p}))):null},Kd=()=>{const{jobId:e,jobData:t,refetch:n}=oe(),[r,{isLoading:a}]=co(),{applicationStatus:o,appliedOn:l}=t||{},s=o===ot.SAVED,c=()=>_e(this,null,function*(){var p;const u=yield r({job_profile_id:e,update_action:"save"});(p=u==null?void 0:u.data)!=null&&p.success?(m.message.success("Application saved successfully"),n()):m.message.error("Failed to save application")});return l?null:s?i.createElement(m.Button,{icon:i.createElement("img",{src:br.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):i.createElement(m.Button,{icon:i.createElement(Da,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:a},"Save")},Yd=()=>{const{jobData:e,eligibilityCriteria:t}=oe(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:a}=t||{},o=r===ot.WITHDRAWN,l=()=>{};return o?null:n?i.createElement(m.Button,{icon:i.createElement(aa,null),className:Ve.appliedButton,type:"text",size:"large"},"Applied"):i.createElement(m.Button,{icon:i.createElement(ka,null),onClick:l,className:Ve.applyButton,type:"primary",size:"large",disabled:!a},"Apply Now")},Gd=()=>i.createElement("div",{className:Ve.jobActions},i.createElement(Yd,null),i.createElement(Kd,null),i.createElement(Wd,null)),$e={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Rd=()=>{const{companyData:e}=oe(),{logo:t,name:n}=e||{};return i.createElement("div",{className:$e.companyInfo},i.createElement(Rt,{logo:t,companyName:n,size:50}),i.createElement("div",{className:$e.companyName},n))},Zd=()=>{const{jobData:e}=oe(),{title:t}=e||{};return i.createElement(m.Typography.Text,{ellipsis:!0,className:$e.jobTitle},t)},Xd=()=>{const{jobData:e}=oe(),{preferredCities:t}=e||{},n=mr(t);return i.createElement("div",{className:$e.jobLocation},n)},ep=()=>i.createElement("div",{className:$e.basicInfo},i.createElement(Rd,null),i.createElement(Zd,null),i.createElement(Xd,null)),tp=()=>{const{jobData:e}=oe(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:a,stipend:o,preferredNoticePeriod:l,minExperience:s,maxExperience:c}=e||{},u=pr({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:a,stipend:o}),p=dr(s,c),d=fr(l);return i.createElement("div",{className:$e.extraDetails},[u,p,d].filter(Boolean).map((g,v)=>i.createElement(i.Fragment,{key:v},i.createElement("div",{className:$e.detail},g),i.createElement(m.Divider,{size:"large",type:"vertical",className:$e.extraDetailsDivider}))))},np=()=>i.createElement("div",{className:$e.container},i.createElement(ep,null),i.createElement(tp,null),i.createElement(Gd,null)),me={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},rp=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=oe(),a=()=>{r(Re.REQUIREMENTS.key),n()};return e===lr.ineligible?i.createElement("div",{className:ye(me.actionAlert,me.ineligible)},i.createElement(Bc,null),i.createElement("span",{className:me.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===lr.steps_to_apply?i.createElement(ao,{icon:i.createElement(pc,{className:me.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:i.createElement(Ea,null),className:me.stepsToApply,onClick:a}):null},ip=({highlights:e})=>i.createElement(i.Fragment,null,i.createElement("div",{className:me.title},"Top Reasons to Apply"),i.createElement("ul",{className:me.highlightsList},e==null?void 0:e.map(t=>i.createElement("li",{key:t,className:me.highlight},i.createElement("span",{className:me.highlightText},t))))),ap=({keywords:e,eligibilityStatus:t})=>i.createElement("div",{className:me.keywordsList},e==null?void 0:e.map((n,r)=>i.createElement("div",{key:r,className:ye(me.keyword,me[gr(t)])},n))),op=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return i.createElement("div",{className:me.exceptions},i.createElement("div",{className:me.exceptionsIconContainer},i.createElement(Au,{size:20,twoToneColor:"#FAAD14",className:me.exceptionsIcon})),i.createElement("div",null,i.createElement("div",{className:me.exceptionsTitle},"We've made an exception for you!"),i.createElement("ul",{className:me.exceptionsList},t.map((n,r)=>i.createElement("li",{className:[me.exception],key:r},n)))))},lp=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=oe(),r=i.useRef(null),{highlights:a,keywords:o}=t||(e==null?void 0:e.highlights)||{},{tag:l,count:s}=sr(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const p=r.current.getBoundingClientRect(),d=p.top+window.pageYOffset,g=p.height,v=window.innerHeight,_=d+g-v/2;window.scrollTo({top:_,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(a!=null&&a.length)?null:i.createElement("div",{ref:r,className:ye(me.container,me[l])},i.createElement(rp,{eligibilityStatus:l,metric:s,onScrollToEnd:c}),i.createElement(ip,{highlights:a}),i.createElement(ap,{keywords:o,eligibilityStatus:l}),i.createElement(op,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},sp=ke.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:cp}=sp,Lv={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},up=()=>{oe();const[e,{isLoading:t}]=cp();return i.useCallback(()=>_e(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):m.message.error("Failed to initiate screening call. Please try again.")}),[e]),null},rn={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},dp=()=>i.createElement("div",{className:rn.expandedJobView},i.createElement(np,null),i.createElement(lp,null),i.createElement(up,null),i.createElement(lo,null),i.createElement(Vd,null)),pp=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:a,currentTab:o})=>{var u;const{data:l,isLoading:s,error:c}=ro(r,{skip:!r||!a});return!a||!r?null:s?i.createElement(m.Card,{className:`${rn.expandedJobView} ${rn.loadingCard}`},i.createElement(m.Spin,{size:"large"})):c?i.createElement(m.Card,{className:rn.expandedJobView},i.createElement(m.Alert,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):l?i.createElement(m.App,null,i.createElement(dd,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!a},i.createElement(dp,{currentTab:o}))):null},an={content:"_content_koeg3_1",header:"_header_koeg3_8",sider:"_sider_koeg3_16",layout:"_layout_koeg3_20"},{Header:fp,Sider:mp,Content:vp}=m.Layout;function on({header:e,children:t,className:n,sider:r,siderWidth:a}){return i.createElement(m.Layout,{className:n},i.createElement(fp,{className:an.header},e||"Header"),i.createElement(m.Layout,{className:an.layout},i.createElement(vp,{className:an.content},t),r&&i.createElement(mp,{className:an.sider,width:a||"25%"},r)))}on.propTypes={children:I.node.isRequired,className:I.string,sider:I.node,siderWidth:I.oneOfType([I.string,I.number])},on.defaultProps={className:"",sider:null,siderWidth:"25%"};const Ct={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function hp(){const e=G.useDispatch(),t=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.filter)==null?void 0:c.tab)||"all"}),n=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.dashboard)==null?void 0:c.processCounts)||{}}),r=l=>{const s=de[l];s&&e(is(s))},a=l=>{const s=de[l];return t===s},o=l=>{const s=ju[l];return n[s]||0};return i.createElement("div",{className:Ct.tagsSection},Object.keys(tr).map(l=>i.createElement(m.Tag,{className:ye(Ct.tag,{[Ct.activeTag]:a(l)}),key:l,onClick:()=>r(l)},i.createElement(tr[l].icon,{className:Ct.icon}),tr[l].label," ",i.createElement("span",{className:Ct.count},"(",o(l),")"))))}const gp={processCounts:Qa,filterModalOpen:!1,jobAlertModalOpen:!1},uo=q.createSlice({name:"dashboard",initialState:gp,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:yp,openFilterModal:bp,closeFilterModal:_p,openJobAlertModal:Ep,closeJobAlertModal:Sp}=uo.actions,Cp=uo.reducer,po={jobAlert:"_jobAlert_sfx7a_1"};function Tp(){const e=G.useDispatch(),t=()=>{e(Ep())};return i.createElement("div",{className:po.jobAlert,onClick:t},i.createElement(er,{className:po.icon}),"Job Alerts")}const Op={};function Ap(){const e=G.useDispatch(),t=G.useSelector(l=>{var s,c;return((c=(s=l.scalantCareerHub)==null?void 0:s.filter)==null?void 0:c.sortings)||[]}),n=i.useMemo(()=>Lu(t),[t]),r=l=>{const s=Kt[l];s&&e(ls([s.mapping]))},a=Object.values(Kt).map(l=>({value:l.value,label:l.value===n?`Sorted By: ${l.label}`:l.label})),o=l=>{const s=Kt[l.value];return s?s.label:l.label};return i.createElement(m.Select,{className:Op.sorting,value:n,onChange:r,suffixIcon:i.createElement(ya,null),options:a,optionRender:o})}const wp={};function Ip(){const e=G.useDispatch(),t=()=>{e(bp())};return i.createElement(m.Button,{type:"primary",className:wp.filter,onClick:t},"Filters ",i.createElement(ya,null))}const Cr={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function xp(){const e=G.useDispatch(),t=G.useSelector(d=>{var g,v,_;return((_=(v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.filters)==null?void 0:_.keyword)||""}),[n,r]=i.useState(!1),[a,o]=i.useState(t),l=i.useRef(null),s=i.useRef(null);i.useEffect(()=>{o(t)},[t]),i.useEffect(()=>{n&&l.current&&l.current.focus()},[n]);const c=()=>{r(!0)},u=d=>{const g=d.target.value;o(g),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{e(as(g))},300)},p=()=>{a.trim()||r(!1)};return i.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),i.createElement("div",{className:Cr.search},n||a?i.createElement(m.Input,{ref:l,className:Cr.input,placeholder:"Search for job or Company Name",value:a,onChange:u,onBlur:p,suffix:i.createElement(La,null)}):i.createElement("div",{className:Cr.iconContainer,onClick:c},i.createElement(La,null)))}const kp={actions:"_actions_nxp1u_1"};function Np(){return i.createElement("div",{className:kp.actions},i.createElement(Tp,null),i.createElement(Ap,null),i.createElement(Ip,null),i.createElement(xp,null))}const Pp={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function ln({className:e}){return i.createElement("div",{className:ye(e,Pp.jobsHeaderContainer)},i.createElement(hp,null),i.createElement(Np,null))}ln.propTypes={className:I.string},ln.defaultProps={className:""};function sn({className:e}){return i.createElement("div",{className:e},i.createElement("h1",{style:{textAlign:"center"}},"Profile Details"))}sn.propTypes={className:I.string},sn.defaultProps={className:""};function cn({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:a}){return r?i.createElement("div",{className:a},i.createElement(pp,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}cn.propTypes={country:I.string,openMockInterviewModal:I.func,openResume:I.func,jobId:I.oneOfType([I.string,I.number]),className:I.string},cn.defaultProps={jobId:null,className:""};const Tr=e=>{if(!e||!e.data||!Array.isArray(e.data))return[];const t={};return e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=n.attributes)}),e.data.map(n=>{if(n.type!=="job_profile"||!n.attributes)return null;const r=n.attributes,a=n.relationships||{};let o=null;if(a.company&&a.company.data){const s=a.company.data.id;o=t[s]||null}return{id:parseInt(n.id,10),title:r.title||"",name:r.title||"",slug:r.slug||"",jobDesc:r.job_desc||"",jobDescText:r.job_desc_text||"",minExperience:r.min_experience?parseFloat(r.min_experience):null,maxExperience:r.max_experience?parseFloat(r.max_experience):null,minCtc:r.min_ctc?parseFloat(r.min_ctc):null,maxCtc:r.max_ctc?parseFloat(r.max_ctc):null,validTill:r.valid_till||null,createdAt:r.created_at||null,jobType:r.job_type||null,preferredCities:r.preferred_cities||"",preferredNoticePeriod:r.preferred_notice_period||null,meritBasedSkills:r.merit_based_skills||[],contestSkills:r.contest_skills||[],applicationStatus:r.application_status||null,expiry:r.expiry||r.valid_till||null,applicationId:r.application_id||null,userCompanyStatus:r.user_company_status||null,applicationLastUpdatedAt:r.application_last_upated_at||null,jobSource:r.job_source||null,jobProfileId:r.job_profile_id||null,jobProfileStatus:r.job_profile_status||"active",datePostedOn:r.date_posted_on||null,openForDiscussionCtc:r.open_for_discussion_ctc||!1,appliedOn:r.applied_on||null,seniorityLevel:r.seniority_level||null,roleType:r.role_type||"full_time",duration:r.duration||null,stipend:r.stipend||null,eligibilityCriteria:r.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:r.exceptional_job||!1,isRelevant:r.is_relevant||!1,isInternship:r.role_type==="internship",company:o?[parseInt(a.company.data.id,10)]:[],logo:(o==null?void 0:o.logo)||null,companyName:(o==null?void 0:o.name)||null,companySlug:(o==null?void 0:o.slug)||null,companyLocation:(o==null?void 0:o.location)||null,companyWebsite:(o==null?void 0:o.company_website)||null,companyVision:(o==null?void 0:o.company_vision)||null,companyTagline:(o==null?void 0:o.tagline)||null,companyCategory:(o==null?void 0:o.category)||null,companyEmployeeCount:(o==null?void 0:o.employee_count)||null}}).filter(Boolean)},Or=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=Ee({id:n.id},n.attributes))}),t},Mp=ke.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Tr(t),r=Or(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:Dp,useFetchPipelineJobsQuery:fo,useFetchRelevantJobsQuery:jp}=Mp,Lp={selectedJobId:null},mo=q.createSlice({name:"layout",initialState:Lp,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:Fp,clearSelectedJobId:qp}=mo.actions,$p=mo.reducer,Pe={heading:"_heading_1jbzw_1",spinner:"_spinner_1jbzw_8",alert:"_alert_1jbzw_14",header:"_header_1jbzw_18",sentinel:"_sentinel_1jbzw_23",loadingMore:"_loadingMore_1jbzw_30"},{Title:un,Text:Bp}=m.Typography,vo={[de.relevant]:"Unlocked Jobs",[de.all]:"All Jobs",[de.saved]:"Saved Jobs",[de.applied]:"Applied Jobs"};function tt({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:a=!1,error:o=null,isFetchingMore:l=!1,hasMore:s=!0}){var A;const c=G.useDispatch(),u=G.useSelector(T=>T.scalantCareerHub.layout.selectedJobId),p=G.useSelector(T=>{var y,b;return((b=(y=T.scalantCareerHub)==null?void 0:y.dashboard)==null?void 0:b.processCounts)||{}}),d=s!==void 0?s:!0,{sentinelRef:g}=cs({hasMore:d,isLoading:a,isFetchingMore:l}),v=T=>{c(u===T?qp():Fp(T))},_=()=>_e(this,null,function*(){return Promise.resolve()}),h=vo[t]||vo[de.all],E=()=>p[t]||0;return a?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Spin,{size:"large",className:Pe.spinner})):o?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Alert,{message:"Error loading jobs",description:((A=o==null?void 0:o.data)==null?void 0:A.message)||(o==null?void 0:o.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:Pe.alert})):!n||n.length===0?i.createElement("div",{className:e},i.createElement(un,{level:2,className:Pe.heading},h),i.createElement(m.Alert,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:Pe.alert})):i.createElement("div",{className:e},i.createElement(m.Space,{direction:"vertical",className:Pe.header},i.createElement(un,{level:4,className:Pe.heading},h," ",i.createElement(m.Tag,{color:"green"},E()," Found")),i.createElement(Bp,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),i.createElement("div",null,n.map(T=>i.createElement(tn,{key:T.id,jobData:T,isActive:u===T.id,currentTab:t,onClick:v,onSave:_,companiesList:r,userCountry:"IN",selectedJobId:u})),d&&i.createElement("div",{ref:g,className:Pe.sentinel},l&&i.createElement("div",{className:Pe.loadingMore},i.createElement(m.Spin,{size:"small"}),i.createElement("span",null,"Loading more jobs...")))))}tt.propTypes={className:I.string,currentTab:I.string,jobs:I.arrayOf(I.object),companiesMap:I.object,isLoading:I.bool,error:I.object,isFetchingMore:I.bool,hasMore:I.bool},tt.defaultProps={className:"",currentTab:de.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const zp={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function Hp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=jp(e),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.relevant);return i.createElement("div",{className:zp.relevantJobsPage},i.createElement(tt,{currentTab:de.relevant,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Qp={allJobsPage:"_allJobsPage_10f3p_1"};function Vp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=Dp(e),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.all);return i.createElement("div",{className:Qp.allJobsPage},i.createElement(tt,{currentTab:de.all,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Jp={savedJobsPage:"_savedJobsPage_km19z_1"};function Up(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=fo(Ee({type:de.saved},e)),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.saved);return i.createElement("div",{className:Jp.savedJobsPage},i.createElement(tt,{currentTab:de.saved,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const Wp={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function Kp(){const e=Qt(),{data:t,isLoading:n,error:r,isFetching:a}=fo(Ee({type:de.applied},e)),{accumulatedJobs:o,accumulatedCompaniesMap:l,hasMore:s,isFetchingMore:c,isLoading:u}=Yt(t,a,n,de.applied);return i.createElement("div",{className:Wp.appliedJobsPage},i.createElement(tt,{currentTab:de.applied,jobs:o,companiesMap:l,isLoading:u,error:r,isFetchingMore:c,hasMore:s}))}const ho={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},go=q.createSlice({name:"filterForm",initialState:ho,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>ho,setFormData:(e,t)=>Ee(Ee({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const a=n.split("_").slice(-1)[0],o=n.replace(`_${a}`,"");e.mbe_skill_ids[o]||(e.mbe_skill_ids[o]={subject:null,rating:null}),a==="subject"?e.mbe_skill_ids[o].subject=r:a==="rating"&&(e.mbe_skill_ids[o].rating=r)}}}),{updateFormField:Yp,resetForm:Gp,setFormData:uh,addRatingFilterInput:yo,deleteRatingFilterInput:Rp,updateRatingFilterInput:bo}=go.actions,Zp=go.reducer,_o=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=G.useDispatch(),o=G.useSelector(h=>h.scalantCareerHub.filterForm)[e],l=i.useMemo(()=>o||{},[o]),s=i.useMemo(()=>typeof l=="object"&&!Array.isArray(l)?l:{},[l]);i.useEffect(()=>{(!l||Object.keys(s).length===0)&&r(yo())},[l,s,r]);const c=i.useMemo(()=>Object.values(s).map(h=>{var E;return((E=h==null?void 0:h.subject)==null?void 0:E.key)||(h==null?void 0:h.subject)}).filter(Boolean),[s]),u=i.useMemo(()=>t.filter(h=>!c.includes(h.key)),[t,c]),p=i.useCallback(()=>{r(yo())},[r]),d=i.useCallback(h=>{r(Rp({inputFieldKey:h}))},[r]),g=i.useCallback((h,E)=>{const A=t.find(T=>T.key===E);r(bo({inputFilterSubKey:`${h}_subject`,value:A||E}))},[t,r]),v=i.useCallback((h,E)=>{r(bo({inputFilterSubKey:`${h}_rating`,value:E}))},[r]),_=Object.keys(s);return i.createElement(m.Space,{direction:"vertical",style:{width:"100%"},size:"middle"},_.map(h=>{var b;const E=s[h],A=((b=E==null?void 0:E.subject)==null?void 0:b.key)||(E==null?void 0:E.subject),T=E==null?void 0:E.rating,y=[...t.filter(f=>f.key===A),...u];return i.createElement(m.Row,{key:h,gutter:16,align:"middle"},i.createElement(m.Col,{span:10},i.createElement(m.Select,{placeholder:"Select skill",value:A,onChange:f=>g(h,f),showSearch:!0,filterOption:(f,S)=>{var C;return((C=S==null?void 0:S.label)!=null?C:"").toLowerCase().includes(f.toLowerCase())},options:y.map(f=>({label:f.value,value:f.key}))})),i.createElement(m.Col,{span:10},i.createElement(m.Select,{placeholder:"Select rating",value:T,onChange:f=>v(h,f),options:n.map(f=>({label:f.label,value:f.value}))})),i.createElement(m.Col,{span:4},i.createElement(m.Space,null,i.createElement(m.Button,{type:"text",icon:i.createElement(au,null),onClick:p,style:{color:"#1890ff"}}),_.length>1&&i.createElement(m.Button,{type:"text",icon:i.createElement(va,null),onClick:()=>d(h),danger:!0}))))}))};_o.propTypes={fieldName:I.string.isRequired,subjectOptions:I.arrayOf(I.shape({key:I.oneOfType([I.string,I.number]),value:I.string})).isRequired,ratingOptions:I.arrayOf(I.shape({value:I.oneOfType([I.string,I.number]),label:I.string})).isRequired};const Je={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:Te}=m.Select;function Xp(){var N,M,j,F;const e=G.useDispatch(),t=G.useSelector(O=>O.scalantCareerHub.filterForm),n=G.useSelector(O=>O.scalantCareerHub.filterOptions||{}),[r]=m.Form.useForm();i.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:a,handleTitleSearch:o,handleExperienceSkillSearch:l,handleExperienceSkillChange:s,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:p}=td(),{jobTypes:d,functions:g,seniorityLevels:v,companyCategories:_,locations:h,mbeSkills:E,ctcRanges:A,stipendRanges:T,durationRanges:y,noticePeriods:b,datePostedOptions:f,skillRatings:S}=Ka(),C=(O,V)=>{e(Yp({field:O,value:V}))},x=t.role_type,k=x==="full_time",w=x==="internship";return i.createElement(m.Form,{layout:"vertical",className:Je.filterForm,form:r,initialValues:t},i.createElement(m.Form.Item,{label:"Job Types",name:"role_type"},i.createElement(m.Select,{placeholder:"Select job profile",value:t.role_type,onChange:O=>C("role_type",O)},d.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Company Name",name:"company_ids"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:a,loading:c,value:t.company_ids,onChange:O=>C("company_ids",O),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(N=n.companyOptions)==null?void 0:N.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Title",name:"job_title"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:o,loading:u,value:t.job_title,onChange:O=>C("job_title",O),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(M=n.titleOptions)==null?void 0:M.map(O=>i.createElement(Te,{key:O.key,value:O.value},O.value)))),i.createElement(m.Form.Item,{label:"Function",name:"job_category"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:O=>C("job_category",O)},g.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Role seniority level",name:"seniority_level"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:O=>C("seniority_level",O)},v.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Company category",name:"company_categories"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:O=>C("company_categories",O)},_.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))))),i.createElement(m.Form.Item,{label:"Location",name:"location"},i.createElement(m.Select,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:O=>C("location",O)},h.map(O=>i.createElement(Te,{key:O.key,value:O.value},O.value)))),!w&&i.createElement(m.Form.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_ctc,onChange:O=>C("min_ctc",O)},A.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))),!k&&i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Stipend (INR per month)",name:"min_stipend"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_stipend,onChange:O=>C("min_stipend",O)},T.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Internship duration (in months)",name:"min_duration"},i.createElement(m.Select,{placeholder:"Select range",value:t.min_duration,onChange:O=>C("min_duration",O)},y.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))))),i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Notice period requirement",name:"notice_period"},i.createElement(m.Select,{placeholder:"Choose period",value:t.notice_period,onChange:O=>C("notice_period",O)},b.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label))))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{label:"Job posted date",name:"date_posted_on"},i.createElement(m.Select,{placeholder:"Pick date",value:t.date_posted_on,onChange:O=>C("date_posted_on",O)},f.map(O=>i.createElement(Te,{key:O.value,value:O.value},O.label)))))),i.createElement(m.Form.Item,{label:"Expert Mock Interview Skills Required"},i.createElement(_o,{fieldName:"mbe_skill_ids",subjectOptions:E,ratingOptions:S})),i.createElement(m.Form.Item,{label:"Experienced based skills",name:"experience_skill_ids"},i.createElement(m.Select,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:l,loading:p,value:((j=t.experience_skill_ids)==null?void 0:j.map(O=>typeof O=="object"?O.experience_skill_id:O))||[],onChange:O=>{const V=s(O,n.experienceSkillOptions);C("experience_skill_ids",V)},notFoundContent:p?"Loading...":"Type at least 2 characters to search"},(F=n.experienceSkillOptions)==null?void 0:F.map(O=>i.createElement(Te,{key:O.key,value:O.key},O.value)))),i.createElement(m.Form.Item,{label:"Experience (Years)? *"},i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"min_experience",noStyle:!0},i.createElement(m.Input,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:O=>C("min_experience",O.target.value)}))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"max_experience",noStyle:!0},i.createElement(m.Input,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:O=>C("max_experience",O.target.value)}))))))}function ef({onClose:e}){return i.createElement(m.Flex,{vertical:!0},i.createElement(m.Flex,{justify:"space-between"},i.createElement(m.Flex,{align:"center",gap:5},i.createElement(Vc,{className:Je.filterIcon}),"Filters"),i.createElement(fa,{onClick:e})),i.createElement("div",{className:Je.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function tf(){const e=G.useDispatch(),t=G.useSelector(l=>l.scalantCareerHub.dashboard.filterModalOpen),n=G.useSelector(l=>l.scalantCareerHub.filterForm),r=()=>{e(_p())},a=()=>{var c,u,p,d,g,v,_;let l;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(l=Object.values(n.mbe_skill_ids).filter(h=>!h||h.rating===void 0||h.rating===null?!1:h.subject?typeof h.subject=="object"?h.subject.key!==void 0&&h.subject.key!==null:h.subject!==void 0&&h.subject!==null:!1).map(h=>{var A;let E;return typeof h.subject=="object"&&((A=h.subject)==null?void 0:A.key)!==void 0?E=h.subject.key:E=h.subject,{mbe_skill_id:E,rating:h.rating}}),l.length===0&&(l=void 0));const s={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(p=n.job_category)!=null&&p.length?n.job_category:void 0,seniority_level:(d=n.seniority_level)!=null&&d.length?n.seniority_level:void 0,location:(g=n.location)!=null&&g.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:l,experience_skill_ids:(v=n.experience_skill_ids)!=null&&v.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(_=n.company_categories)!=null&&_.length?n.company_categories:void 0};Object.keys(s).forEach(h=>{s[h]===void 0&&delete s[h]}),e(Ni(s)),r()},o=()=>{e(Gp()),e(Xu()),e(Ni({}))};return i.createElement(m.Drawer,{title:i.createElement(ef,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Je.drawer},i.createElement("div",{className:Je.drawerContent},i.createElement(Xp,null),i.createElement("div",{className:Je.buttonContainer},i.createElement(m.Button,{className:Je.resetButton,onClick:o},"Reset Filters"),i.createElement(m.Button,{type:"primary",className:Je.applyButton,onClick:a},"Apply"))))}const nf=ke.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:rf,useCreateAlertMutation:af,useUpdateAlertStatusMutation:of,useDeleteAlertMutation:lf,useUpdateAlertMutation:sf}=nf,cf={alerts:[],loading:!1,error:null},Eo=q.createSlice({name:"alerts",initialState:cf,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:uf,addAlert:gh,setLoading:yh,setError:bh}=Eo.actions,df=Eo.reducer,Me={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Ar}=m.Select;function So({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:a,locations:o,ctcRanges:l}=Ka(),[s,c]=i.useState("realtime");i.useEffect(()=>{var d,g;if(t&&e){const _={[se.REALTIME]:"realtime",[se.DAILY]:"daily",[se.ALTERNATE_DAY]:"alternate",[se.WEEKLY]:"weekly"}[t.frequency]||"realtime",h={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((d=t.min_experience)==null?void 0:d.toString())||"",max_experience:((g=t.max_experience)==null?void 0:g.toString())||"",frequency:_,notification_type:t.notification_type||be.EMAIL};e.setFieldsValue(h),c(_)}},[t,e]);const u=()=>_e(this,null,function*(){try{const d=yield e.validateFields(),g={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},v=d.frequency==="realtime",_={alert:{name:d.name,job_functions:d.job_functions||[],min_ctc:d.min_ctc,locations:d.locations||[],min_experience:d.min_experience?parseInt(d.min_experience,10):0,max_experience:d.max_experience?parseInt(d.max_experience,10):null,frequency:g[d.frequency]||se.REALTIME,notification_type:v&&d.notification_type||be.EMAIL}};n&&(yield n(_))}catch(d){console.error("Error submitting form:",d)}});i.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const p=m.Form.useWatch("frequency",e)||"realtime";return i.useEffect(()=>{c(p)},[p]),i.createElement(m.Form,{form:e,layout:"vertical",className:Me.createAlertContent,initialValues:{frequency:"realtime"}},i.createElement(m.Form.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},i.createElement(m.Input,{placeholder:"Give your job alert a name"})),i.createElement(m.Form.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},i.createElement(m.Select,{mode:"multiple",placeholder:"Select job function",className:Me.formInput},a.map(d=>i.createElement(Ar,{key:d.key,value:d.key},d.value)))),i.createElement(m.Form.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},i.createElement(m.Select,{placeholder:"Select range",className:Me.formInput},l.map(d=>i.createElement(Ar,{key:d.value,value:d.value},d.label)))),i.createElement(m.Form.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},i.createElement(m.Select,{mode:"multiple",placeholder:"Select locations",className:Me.formInput},o.map(d=>i.createElement(Ar,{key:d.key,value:d.value},d.value)))),i.createElement(m.Form.Item,{label:"Experience (Years)?"},i.createElement(m.Row,{gutter:16},i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},i.createElement(m.Input,{placeholder:"Minimum",type:"number"}))),i.createElement(m.Col,{span:12},i.createElement(m.Form.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},i.createElement(m.Input,{placeholder:"Maximum",type:"number"}))))),i.createElement(m.Form.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},i.createElement(m.Radio.Group,{className:Me.radioGroup,onChange:d=>{c(d.target.value),d.target.value!=="realtime"&&e.setFieldsValue({notification_type:be.EMAIL})}},i.createElement(m.Radio,{value:"realtime"},"Realtime"),i.createElement(m.Radio,{value:"daily"},"Daily"),i.createElement(m.Radio,{value:"alternate"},"Every alternate day"),i.createElement(m.Radio,{value:"weekly"},"Weekly"))),s==="realtime"&&i.createElement(m.Form.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},i.createElement(m.Radio.Group,{className:Me.radioGroup},i.createElement(m.Radio,{value:be.EMAIL},"Email"),i.createElement(m.Radio,{value:be.WHATSAPP},"Whatsapp"),i.createElement(m.Radio,{value:be.BOTH},"Both"))))}const he={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function pf(){const e=G.useDispatch(),{data:t=[],isLoading:n,error:r}=rf(),[a]=of(),[o]=lf(),[l,{isLoading:s}]=sf(),[c,u]=i.useState(null),[p]=m.Form.useForm();i.useEffect(()=>{t&&e(uf(t))},[t,e]);const d=y=>za[y]||za[se.REALTIME],g=y=>Ha[y]||Ha[be.EMAIL],v=y=>y===yt.ACTIVE,_=(y,b)=>_e(this,null,function*(){try{const f=b===yt.ACTIVE?yt.INACTIVE:yt.ACTIVE;yield a({id:y,status:f}).unwrap(),m.message.success(`Alert ${f===yt.ACTIVE?"activated":"deactivated"} successfully`)}catch(f){m.message.error("Failed to update alert status"),console.error("Error updating alert status:",f)}}),h=y=>{u(y)},E=()=>{u(null),p.resetFields()},A=y=>_e(this,null,function*(){try{yield l({id:c,payload:y}).unwrap(),m.message.success("Alert updated successfully"),u(null),p.resetFields()}catch(b){throw m.message.error("Failed to update alert"),console.error("Error updating alert:",b),b}}),T=y=>_e(this,null,function*(){try{yield o(y).unwrap(),m.message.success("Alert deleted successfully")}catch(b){m.message.error("Failed to delete alert"),console.error("Error deleting alert:",b)}});return n?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.loadingText},"Loading alerts...")):r?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.errorText},"Error loading alerts")):!t||t.length===0?i.createElement("div",{className:he.existingAlertContent},i.createElement("div",{className:he.emptyText},"No alerts found")):i.createElement("div",{className:he.existingAlertContent},t.map(y=>{const b=y.attributes||y,f=y.id||b.id,S=v(b.status),C=d(b.frequency),x=g(b.notification_type),k=c===f;return i.createElement("div",{key:f,className:he.alertCard},i.createElement(m.Flex,{align:"center",className:he.alertHeader},i.createElement(er,{className:ye(he.alertIcon,{[he.inactiveIcon]:!S})}),i.createElement("div",null,b.name)),i.createElement("div",{className:he.alertSettings},i.createElement(m.Flex,{align:"center",gap:16,wrap:!0},i.createElement(m.Flex,{align:"center",gap:8},i.createElement(m.Switch,{checked:S,onChange:()=>_(f,b.status),size:"small",disabled:k}),i.createElement("span",null,"Active")),i.createElement(m.Flex,{align:"center",gap:8},i.createElement(ca,null),i.createElement("span",null,C)),i.createElement(m.Flex,{align:"center",gap:8},i.createElement(er,null),i.createElement("span",null,x)))),!k&&i.createElement("div",{className:he.alertActions},i.createElement(m.Button,{type:"text",danger:!0,icon:i.createElement(va,null),onClick:()=>T(f),className:he.deleteButton},"Delete"),i.createElement(m.Button,{type:"primary",icon:i.createElement(Ea,null),onClick:()=>h(f),className:he.editButton},"Edit")),k&&i.createElement("div",{className:he.editFormCard},i.createElement(So,{form:p,initialValues:b,onSubmit:A,isSubmitting:s}),i.createElement(m.Flex,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},i.createElement(m.Button,{onClick:E,disabled:s},"Cancel"),i.createElement(m.Button,{type:"primary",onClick:()=>_e(this,null,function*(){try{const w=yield p.validateFields(),N={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},M=w.frequency==="realtime",j={alert:{name:w.name,job_functions:w.job_functions||[],min_ctc:w.min_ctc,locations:w.locations||[],min_experience:w.min_experience?parseInt(w.min_experience,10):0,max_experience:w.max_experience?parseInt(w.max_experience,10):null,frequency:N[w.frequency]||se.REALTIME,notification_type:M&&w.notification_type||be.EMAIL}};yield A(j)}catch(w){}}),loading:s},"Update Alert"))))}))}function ff(){const e=G.useDispatch(),t=G.useSelector(h=>h.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=i.useState("create"),[a]=m.Form.useForm(),[o,{isLoading:l}]=af();i.useEffect(()=>{t||(a.resetFields(),r("create"))},[t,a]);const s=()=>{e(Sp())},c=()=>{s()},u=()=>_e(this,null,function*(){try{const h=yield a.validateFields(),E={realtime:se.REALTIME,daily:se.DAILY,alternate:se.ALTERNATE_DAY,weekly:se.WEEKLY},A=h.frequency==="realtime",T={alert:{name:h.name,job_functions:h.job_functions||[],min_ctc:h.min_ctc,locations:h.locations||[],min_experience:h.min_experience?parseInt(h.min_experience,10):0,max_experience:h.max_experience?parseInt(h.max_experience,10):null,frequency:E[h.frequency]||se.REALTIME,notification_type:A&&h.notification_type||be.EMAIL},resume_alert:!1},y=yield o(T).unwrap();y.success&&y.alert&&(a.resetFields(),r("existing"),m.message.success("Alert created successfully"))}catch(h){m.message.error("Failed to create alert"),console.error("Error creating alert:",h)}}),p=h=>_e(this,null,function*(){const E=st(Ee({},h),{resume_alert:!1});return yield o(E).unwrap()}),d=i.createElement(m.Flex,{vertical:!0},i.createElement(m.Flex,{justify:"space-between"},i.createElement(m.Flex,{align:"center",gap:8},i.createElement(Xs,{className:Me.filterIcon}),"Curate your Job Alert"),i.createElement(fa,{onClick:s})),i.createElement("div",{className:Me.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),g=i.createElement("div",{className:Me.modalFooter},i.createElement(m.Button,{onClick:c},"Cancel"),i.createElement(m.Button,{type:"primary",onClick:u,loading:l},"Create Alert")),v=i.createElement(So,{form:a,onSubmit:p,isSubmitting:l}),_=i.createElement(pf,null);return i.createElement(m.Modal,{title:d,open:t,onCancel:s,footer:g,width:600,closable:!1,className:Me.modal},i.createElement(m.Tabs,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:v},{key:"existing",label:"Existing alerts",children:_}]}))}const mf={jobsPageContent:"_jobsPageContent_pk7y3_1"};function Co({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Qa}){const a=G.useDispatch(),o=G.useSelector(d=>d.scalantCareerHub.layout.selectedJobId),l=G.useSelector(d=>{var g,v;return((v=(g=d.scalantCareerHub)==null?void 0:g.filter)==null?void 0:v.tab)||de.all});i.useEffect(()=>{a(yp(r))},[r,a]);const s=i.createElement(ln,null),c=o?i.createElement(cn,{country:e,openMockInterviewModal:t,openResume:n,jobId:o}):i.createElement(sn,null),u=o?Ba.JOB_DETAILS:Ba.PROFILE_DETAILS,p=()=>{switch(l){case de.relevant:return i.createElement(Hp,null);case de.saved:return i.createElement(Up,null);case de.applied:return i.createElement(Kp,null);case de.all:default:return i.createElement(Vp,null)}};return i.createElement(i.Fragment,null,i.createElement(on,{header:s,sider:c,siderWidth:u,className:mf.jobsPage},p()),i.createElement(tf,null),i.createElement(ff,null))}Co.propTypes={processCounts:I.shape({all:I.number,relevant:I.number,draft:I.number,applications:I.number,saved:I.number,archived:I.number})};function wr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ir=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tt={INIT:"@@redux/INIT"+Ir(),REPLACE:"@@redux/REPLACE"+Ir(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ir()}};function vf(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function hf(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(bf(e))return"date";if(yf(e))return"error";var n=gf(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function gf(e){return typeof e.constructor=="function"?e.constructor.name:null}function yf(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function bf(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function _f(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=hf(e)),t}function To(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function Ef(e,t,n,r){var a=Object.keys(t),o=n&&n.type===Tt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.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(!vf(e))return"The "+o+' has unexpected type of "'+_f(e)+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"');var l=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!r[s]});if(l.forEach(function(s){r[s]=!0}),!(n&&n.type===Tt.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}function Sf(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Tt.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?wr(12):'The slice reducer for key "'+t+`" 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 n(void 0,{type:Tt.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?wr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Tt.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 Cf(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];process.env.NODE_ENV!=="production"&&typeof e[a]=="undefined"&&To('No reducer provided for key "'+a+'"'),typeof e[a]=="function"&&(n[a]=e[a])}var o=Object.keys(n),l;process.env.NODE_ENV!=="production"&&(l={});var s;try{Sf(n)}catch(c){s=c}return function(u,p){if(u===void 0&&(u={}),s)throw s;if(process.env.NODE_ENV!=="production"){var d=Ef(u,n,p,l);d&&To(d)}for(var g=!1,v={},_=0;_<o.length;_++){var h=o[_],E=n[h],A=u[h],T=E(A,p);if(typeof T=="undefined"){var y=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?wr(14):"When called with an action of type "+(y?'"'+String(y)+'"':"(unknown type)")+', the slice reducer for key "'+h+'" 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.')}v[h]=T,g=g||T!==A}return g=g||o.length!==Object.keys(u).length,g?v:u}}const Tf={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"}]},Of=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),Af=e=>!e||!Array.isArray(e)?e:e.map(t=>st(Ee({},t),{label:Of(t.label||"").replace(/_/g," ")})),wf=e=>!e||!Array.isArray(e)?e:e.map(t=>st(Ee({},t),{label:cd("titleCase",t.label||"")})),Oo=e=>{if(!e||typeof e!="object")return e;const t=nn(e);return t.companyCategories&&(t.companyCategories=Af(t.companyCategories)),t.roleTypes&&(t.roleTypes=wf(t.roleTypes)),t},If=window.__CAREERS_HUB__||Tf,xf={meta:Oo(If)},Ao=q.createSlice({name:"metaData",initialState:xf,reducers:{setMetaData:(e,t)=>{e.meta=Oo(t.payload)}}});Ao.actions;const kf=Ao.reducer,Nf=Cf({[ke.reducerPath]:ke.reducer,layout:$p,filter:ss,dashboard:Cp,filterForm:Zp,metaData:kf,filterOptions:ed,alerts:df});W.APPLICATION_STATUS=ts,W.ApplicationForm=Ya,W.EligibilityTag=Zt,W.FormContainer=Ra,W.FormContent=rr,W.FormHeader=ir,W.HelloWorld=nt,W.JOB_CARD_CONFIG=Vn,W.JOB_PROFILE_STATUS=ns,W.JobCard=tn,W.JobDetails=cn,W.JobsHeader=ln,W.JobsLayout=on,W.JobsList=tt,W.JobsPage=Co,W.ProfileDetails=sn,W.SaveButton=Xt,W.TABS=rs,W.careerHubApi=ke,W.checkAllOtherRequirementsMet=or,W.countPendingSteps=Xa,W.default=nt,W.determineJobTag=sr,W.formatCtc=pr,W.formatDate=eo,W.formatExperience=dr,W.formatLocation=mr,W.formatNoticePeriod=fr,W.setBaseUrl=Gl,W.store=Nf,W.useApplicationForm=wi,W.useCreateApplication=Ai,W.useJobCardState=Ii,Object.defineProperties(W,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|