@scalant/career-hub 9.3.1 → 9.3.2

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.
@@ -39,9 +39,9 @@ Valid keys: `+JSON.stringify(Object.keys(Oe),null," "));var we=Le(Xe,Ue,je,ze,V
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var C=Symbol.for("react.element"),$=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),J=Symbol.for("react.provider"),ee=Symbol.for("react.context"),te=Symbol.for("react.server_context"),ne=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),ce=!1,ue=!1,le=!1,ve=!1,fe=!1,ge;ge=Symbol.for("react.module.reference");function pe(Me){return!!(typeof Me=="string"||typeof Me=="function"||Me===V||Me===K||fe||Me===F||Me===re||Me===ae||ve||Me===se||ce||ue||le||typeof Me=="object"&&Me!==null&&(Me.$$typeof===ie||Me.$$typeof===oe||Me.$$typeof===J||Me.$$typeof===ee||Me.$$typeof===ne||Me.$$typeof===ge||Me.getModuleId!==void 0))}function de(Me){if(typeof Me=="object"&&Me!==null){var He=Me.$$typeof;switch(He){case C:var We=Me.type;switch(We){case V:case K:case F:case re:case ae:return We;default:var Ke=We&&We.$$typeof;switch(Ke){case te:case ee:case ne:case ie:case oe:case J:return Ke;default:return He}}case $:return He}}}var me=ee,ye=J,_e=C,he=ne,be=V,Se=ie,Re=oe,Ce=$,xe=K,$e=F,Ie=re,Fe=ae,Ne=!1,De=!1;function Oe(Me){return Ne||(Ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Te(Me){return De||(De=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ae(Me){return de(Me)===ee}function ke(Me){return de(Me)===J}function je(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===C}function ze(Me){return de(Me)===ne}function Ve(Me){return de(Me)===V}function Xe(Me){return de(Me)===ie}function Ye(Me){return de(Me)===oe}function at(Me){return de(Me)===$}function Ue(Me){return de(Me)===K}function Le(Me){return de(Me)===F}function we(Me){return de(Me)===re}function Pe(Me){return de(Me)===ae}reactIs_development.ContextConsumer=me,reactIs_development.ContextProvider=ye,reactIs_development.Element=_e,reactIs_development.ForwardRef=he,reactIs_development.Fragment=be,reactIs_development.Lazy=Se,reactIs_development.Memo=Re,reactIs_development.Portal=Ce,reactIs_development.Profiler=xe,reactIs_development.StrictMode=$e,reactIs_development.Suspense=Ie,reactIs_development.SuspenseList=Fe,reactIs_development.isAsyncMode=Oe,reactIs_development.isConcurrentMode=Te,reactIs_development.isContextConsumer=Ae,reactIs_development.isContextProvider=ke,reactIs_development.isElement=je,reactIs_development.isForwardRef=ze,reactIs_development.isFragment=Ve,reactIs_development.isLazy=Xe,reactIs_development.isMemo=Ye,reactIs_development.isPortal=at,reactIs_development.isProfiler=Ue,reactIs_development.isStrictMode=Le,reactIs_development.isSuspense=we,reactIs_development.isSuspenseList=Pe,reactIs_development.isValidElementType=pe,reactIs_development.typeOf=de}()),reactIs_development}process.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development();var reactIsExports=reactIs.exports;function useMemo(C,$,V){var F=React__namespace.useRef({});return(!("value"in F.current)||V(F.current.condition,$))&&(F.current.value=C(),F.current.condition=$),F.current.value}var ReactMajorVersion=Number(React.version.split(".")[0]),fillRef=function($,V){typeof $=="function"?$(V):_typeof($)==="object"&&$&&"current"in $&&($.current=V)},composeRef=function(){for(var $=arguments.length,V=new Array($),F=0;F<$;F++)V[F]=arguments[F];var K=V.filter(Boolean);return K.length<=1?K[0]:function(J){V.forEach(function(ee){fillRef(ee,J)})}},useComposeRef=function(){for(var $=arguments.length,V=new Array($),F=0;F<$;F++)V[F]=arguments[F];return useMemo(function(){return composeRef.apply(void 0,V)},V,function(K,J){return K.length!==J.length||K.every(function(ee,te){return ee!==J[te]})})},supportRef=function($){var V,F;if(!$)return!1;if(isReactElement($)&&ReactMajorVersion>=19)return!0;var K=reactIsExports.isMemo($)?$.type.type:$.type;return!(typeof K=="function"&&!((V=K.prototype)!==null&&V!==void 0&&V.render)&&K.$$typeof!==reactIsExports.ForwardRef||typeof $=="function"&&!((F=$.prototype)!==null&&F!==void 0&&F.render)&&$.$$typeof!==reactIsExports.ForwardRef)};function isReactElement(C){return React.isValidElement(C)&&!isFragment$1(C)}var supportNodeRef=function($){return isReactElement($)&&supportRef($)},getNodeRef=function($){if($&&isReactElement($)){var V=$;return V.props.propertyIsEnumerable("ref")?V.props.ref:V.ref}return null},CollectionContext=React__namespace.createContext(null);function Collection(C){var $=C.children,V=C.onBatchResize,F=React__namespace.useRef(0),K=React__namespace.useRef([]),J=React__namespace.useContext(CollectionContext),ee=React__namespace.useCallback(function(te,ne,re){F.current+=1;var ae=F.current;K.current.push({size:te,element:ne,data:re}),Promise.resolve().then(function(){ae===F.current&&(V==null||V(K.current),K.current=[])}),J==null||J(te,ne,re)},[V,J]);return React__namespace.createElement(CollectionContext.Provider,{value:ee},$)}var MapShim=function(){if(typeof Map!="undefined")return Map;function C($,V){var F=-1;return $.some(function(K,J){return K[0]===V?(F=J,!0):!1}),F}return function(){function $(){this.__entries__=[]}return Object.defineProperty($.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),$.prototype.get=function(V){var F=C(this.__entries__,V),K=this.__entries__[F];return K&&K[1]},$.prototype.set=function(V,F){var K=C(this.__entries__,V);~K?this.__entries__[K][1]=F:this.__entries__.push([V,F])},$.prototype.delete=function(V){var F=this.__entries__,K=C(F,V);~K&&F.splice(K,1)},$.prototype.has=function(V){return!!~C(this.__entries__,V)},$.prototype.clear=function(){this.__entries__.splice(0)},$.prototype.forEach=function(V,F){F===void 0&&(F=null);for(var K=0,J=this.__entries__;K<J.length;K++){var ee=J[K];V.call(F,ee[1],ee[0])}},$}()}(),isBrowser$1=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,global$1=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(C){return setTimeout(function(){return C(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$1(C,$){var V=!1,F=!1,K=0;function J(){V&&(V=!1,C()),F&&te()}function ee(){requestAnimationFrame$1(J)}function te(){var ne=Date.now();if(V){if(ne-K<trailingTimeout)return;F=!0}else V=!0,F=!1,setTimeout(ee,$);K=ne}return te}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver!="undefined",ResizeObserverController=function(){function C(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$1(this.refresh.bind(this),REFRESH_DELAY)}return C.prototype.addObserver=function($){~this.observers_.indexOf($)||this.observers_.push($),this.connected_||this.connect_()},C.prototype.removeObserver=function($){var V=this.observers_,F=V.indexOf($);~F&&V.splice(F,1),!V.length&&this.connected_&&this.disconnect_()},C.prototype.refresh=function(){var $=this.updateObservers_();$&&this.refresh()},C.prototype.updateObservers_=function(){var $=this.observers_.filter(function(V){return V.gatherActive(),V.hasActive()});return $.forEach(function(V){return V.broadcastActive()}),$.length>0},C.prototype.connect_=function(){!isBrowser$1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},C.prototype.disconnect_=function(){!isBrowser$1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},C.prototype.onTransitionEnd_=function($){var V=$.propertyName,F=V===void 0?"":V,K=transitionKeys.some(function(J){return!!~F.indexOf(J)});K&&this.refresh()},C.getInstance=function(){return this.instance_||(this.instance_=new C),this.instance_},C.instance_=null,C}(),defineConfigurable=function(C,$){for(var V=0,F=Object.keys($);V<F.length;V++){var K=F[V];Object.defineProperty(C,K,{value:$[K],enumerable:!1,writable:!1,configurable:!0})}return C},getWindowOf=function(C){var $=C&&C.ownerDocument&&C.ownerDocument.defaultView;return $||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(C){return parseFloat(C)||0}function getBordersSize(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];return $.reduce(function(F,K){var J=C["border-"+K+"-width"];return F+toFloat(J)},0)}function getPaddings(C){for(var $=["top","right","bottom","left"],V={},F=0,K=$;F<K.length;F++){var J=K[F],ee=C["padding-"+J];V[J]=toFloat(ee)}return V}function getSVGContentRect(C){var $=C.getBBox();return createRectInit(0,0,$.width,$.height)}function getHTMLElementContentRect(C){var $=C.clientWidth,V=C.clientHeight;if(!$&&!V)return emptyRect;var F=getWindowOf(C).getComputedStyle(C),K=getPaddings(F),J=K.left+K.right,ee=K.top+K.bottom,te=toFloat(F.width),ne=toFloat(F.height);if(F.boxSizing==="border-box"&&(Math.round(te+J)!==$&&(te-=getBordersSize(F,"left","right")+J),Math.round(ne+ee)!==V&&(ne-=getBordersSize(F,"top","bottom")+ee)),!isDocumentElement(C)){var re=Math.round(te+J)-$,ae=Math.round(ne+ee)-V;Math.abs(re)!==1&&(te-=re),Math.abs(ae)!==1&&(ne-=ae)}return createRectInit(K.left,K.top,te,ne)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement!="undefined"?function(C){return C instanceof getWindowOf(C).SVGGraphicsElement}:function(C){return C instanceof getWindowOf(C).SVGElement&&typeof C.getBBox=="function"}}();function isDocumentElement(C){return C===getWindowOf(C).document.documentElement}function getContentRect(C){return isBrowser$1?isSVGGraphicsElement(C)?getSVGContentRect(C):getHTMLElementContentRect(C):emptyRect}function createReadOnlyRect(C){var $=C.x,V=C.y,F=C.width,K=C.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,ee=Object.create(J.prototype);return defineConfigurable(ee,{x:$,y:V,width:F,height:K,top:V,right:$+F,bottom:K+V,left:$}),ee}function createRectInit(C,$,V,F){return{x:C,y:$,width:V,height:F}}var ResizeObservation=function(){function C($){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=$}return C.prototype.isActive=function(){var $=getContentRect(this.target);return this.contentRect_=$,$.width!==this.broadcastWidth||$.height!==this.broadcastHeight},C.prototype.broadcastRect=function(){var $=this.contentRect_;return this.broadcastWidth=$.width,this.broadcastHeight=$.height,$},C}(),ResizeObserverEntry=function(){function C($,V){var F=createReadOnlyRect(V);defineConfigurable(this,{target:$,contentRect:F})}return C}(),ResizeObserverSPI=function(){function C($,V,F){if(this.activeObservations_=[],this.observations_=new MapShim,typeof $!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=$,this.controller_=V,this.callbackCtx_=F}return C.prototype.observe=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var V=this.observations_;V.has($)||(V.set($,new ResizeObservation($)),this.controller_.addObserver(this),this.controller_.refresh())}},C.prototype.unobserve=function($){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!($ instanceof getWindowOf($).Element))throw new TypeError('parameter 1 is not of type "Element".');var V=this.observations_;V.has($)&&(V.delete($),V.size||this.controller_.removeObserver(this))}},C.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},C.prototype.gatherActive=function(){var $=this;this.clearActive(),this.observations_.forEach(function(V){V.isActive()&&$.activeObservations_.push(V)})},C.prototype.broadcastActive=function(){if(this.hasActive()){var $=this.callbackCtx_,V=this.activeObservations_.map(function(F){return new ResizeObserverEntry(F.target,F.broadcastRect())});this.callback_.call($,V,$),this.clearActive()}},C.prototype.clearActive=function(){this.activeObservations_.splice(0)},C.prototype.hasActive=function(){return this.activeObservations_.length>0},C}(),observers=typeof WeakMap!="undefined"?new WeakMap:new MapShim,ResizeObserver$2=function(){function C($){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var V=ResizeObserverController.getInstance(),F=new ResizeObserverSPI($,V,this);observers.set(this,F)}return C}();["observe","unobserve","disconnect"].forEach(function(C){ResizeObserver$2.prototype[C]=function(){var $;return($=observers.get(this))[C].apply($,arguments)}});var index$1=function(){return typeof global$1.ResizeObserver!="undefined"?global$1.ResizeObserver:ResizeObserver$2}(),elementListeners=new Map;function onResize(C){C.forEach(function($){var V,F=$.target;(V=elementListeners.get(F))===null||V===void 0||V.forEach(function(K){return K(F)})})}var resizeObserver=new index$1(onResize);process.env.NODE_ENV,process.env.NODE_ENV;function observe(C,$){elementListeners.has(C)||(elementListeners.set(C,new Set),resizeObserver.observe(C)),elementListeners.get(C).add($)}function unobserve(C,$){elementListeners.has(C)&&(elementListeners.get(C).delete($),elementListeners.get(C).size||(resizeObserver.unobserve(C),elementListeners.delete(C)))}function _classCallCheck(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function _defineProperties(C,$){for(var V=0;V<$.length;V++){var F=$[V];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,toPropertyKey(F.key),F)}}function _createClass(C,$,V){return $&&_defineProperties(C.prototype,$),V&&_defineProperties(C,V),Object.defineProperty(C,"prototype",{writable:!1}),C}function _setPrototypeOf(C,$){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,F){return V.__proto__=F,V},_setPrototypeOf(C,$)}function _inherits(C,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create($&&$.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),$&&_setPrototypeOf(C,$)}function _getPrototypeOf(C){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},_getPrototypeOf(C)}function _isNativeReflectConstruct$7(){try{var C=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(_isNativeReflectConstruct$7=function(){return!!C})()}function _assertThisInitialized(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function _possibleConstructorReturn(C,$){if($&&(_typeof($)=="object"||typeof $=="function"))return $;if($!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(C)}function _createSuper$7(C){var $=_isNativeReflectConstruct$7();return function(){var V,F=_getPrototypeOf(C);if($){var K=_getPrototypeOf(this).constructor;V=Reflect.construct(F,arguments,K)}else V=F.apply(this,arguments);return _possibleConstructorReturn(this,V)}}var DomWrapper$1=function(C){_inherits(V,C);var $=_createSuper$7(V);function V(){return _classCallCheck(this,V),$.apply(this,arguments)}return _createClass(V,[{key:"render",value:function(){return this.props.children}}]),V}(React__namespace.Component);function SingleObserver(C,$){var V=C.children,F=C.disabled,K=React__namespace.useRef(null),J=React__namespace.useRef(null),ee=React__namespace.useContext(CollectionContext),te=typeof V=="function",ne=te?V(K):V,re=React__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ae=!te&&React__namespace.isValidElement(ne)&&supportRef(ne),oe=ae?getNodeRef(ne):null,ie=useComposeRef(oe,K),se=function(){var ve;return findDOMNode(K.current)||(K.current&&_typeof(K.current)==="object"?findDOMNode((ve=K.current)===null||ve===void 0?void 0:ve.nativeElement):null)||findDOMNode(J.current)};React__namespace.useImperativeHandle($,function(){return se()});var ce=React__namespace.useRef(C);ce.current=C;var ue=React__namespace.useCallback(function(le){var ve=ce.current,fe=ve.onResize,ge=ve.data,pe=le.getBoundingClientRect(),de=pe.width,me=pe.height,ye=le.offsetWidth,_e=le.offsetHeight,he=Math.floor(de),be=Math.floor(me);if(re.current.width!==he||re.current.height!==be||re.current.offsetWidth!==ye||re.current.offsetHeight!==_e){var Se={width:he,height:be,offsetWidth:ye,offsetHeight:_e};re.current=Se;var Re=ye===Math.round(de)?de:ye,Ce=_e===Math.round(me)?me:_e,xe=_objectSpread2(_objectSpread2({},Se),{},{offsetWidth:Re,offsetHeight:Ce});ee==null||ee(xe,le,ge),fe&&Promise.resolve().then(function(){fe(xe,le)})}},[]);return React__namespace.useEffect(function(){var le=se();return le&&!F&&observe(le,ue),function(){return unobserve(le,ue)}},[K.current,F]),React__namespace.createElement(DomWrapper$1,{ref:J},ae?React__namespace.cloneElement(ne,{ref:ie}):ne)}var RefSingleObserver=React__namespace.forwardRef(SingleObserver);process.env.NODE_ENV!=="production"&&(RefSingleObserver.displayName="SingleObserver");var INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(C,$){var V=C.children,F=typeof V=="function"?[V]:toArray$6(V);return process.env.NODE_ENV!=="production"&&(F.length>1?warning$6(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):F.length===0&&warning$6(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),F.map(function(K,J){var ee=(K==null?void 0:K.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(J);return React__namespace.createElement(RefSingleObserver,_extends({},C,{key:ee,ref:J===0?$:void 0}),K)})}var RefResizeObserver=React__namespace.forwardRef(ResizeObserver$1);process.env.NODE_ENV!=="production"&&(RefResizeObserver.displayName="ResizeObserver"),RefResizeObserver.Collection=Collection;function _arrayLikeToArray(C,$){($==null||$>C.length)&&($=C.length);for(var V=0,F=Array($);V<$;V++)F[V]=C[V];return F}function _arrayWithoutHoles(C){if(Array.isArray(C))return _arrayLikeToArray(C)}function _iterableToArray(C){if(typeof Symbol!="undefined"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function _unsupportedIterableToArray(C,$){if(C){if(typeof C=="string")return _arrayLikeToArray(C,$);var V={}.toString.call(C).slice(8,-1);return V==="Object"&&C.constructor&&(V=C.constructor.name),V==="Map"||V==="Set"?Array.from(C):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?_arrayLikeToArray(C,$):void 0}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
41
41
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(C){return _arrayWithoutHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableSpread()}var raf=function($){return+setTimeout($,16)},caf=function($){return clearTimeout($)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(raf=function($){return window.requestAnimationFrame($)},caf=function($){return window.cancelAnimationFrame($)});var rafUUID=0,rafIds=new Map;function cleanup(C){rafIds.delete(C)}var wrapperRaf=function($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var F=rafUUID;function K(J){if(J===0)cleanup(F),$();else{var ee=raf(function(){K(J-1)});rafIds.set(F,ee)}}return K(V),F};wrapperRaf.cancel=function(C){var $=rafIds.get(C);return cleanup(C),caf($)},process.env.NODE_ENV!=="production"&&(wrapperRaf.ids=function(){return rafIds});function _arrayWithHoles(C){if(Array.isArray(C))return C}function _iterableToArrayLimit(C,$){var V=C==null?null:typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(V!=null){var F,K,J,ee,te=[],ne=!0,re=!1;try{if(J=(V=V.call(C)).next,$===0){if(Object(V)!==V)return;ne=!1}else for(;!(ne=(F=J.call(V)).done)&&(te.push(F.value),te.length!==$);ne=!0);}catch(ae){re=!0,K=ae}finally{try{if(!ne&&V.return!=null&&(ee=V.return(),Object(ee)!==ee))return}finally{if(re)throw K}}return te}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(C,$){return _arrayWithHoles(C)||_iterableToArrayLimit(C,$)||_unsupportedIterableToArray(C,$)||_nonIterableRest()}function murmur2(C){for(var $=0,V,F=0,K=C.length;K>=4;++F,K-=4)V=C.charCodeAt(F)&255|(C.charCodeAt(++F)&255)<<8|(C.charCodeAt(++F)&255)<<16|(C.charCodeAt(++F)&255)<<24,V=(V&65535)*1540483477+((V>>>16)*59797<<16),V^=V>>>24,$=(V&65535)*1540483477+((V>>>16)*59797<<16)^($&65535)*1540483477+(($>>>16)*59797<<16);switch(K){case 3:$^=(C.charCodeAt(F+2)&255)<<16;case 2:$^=(C.charCodeAt(F+1)&255)<<8;case 1:$^=C.charCodeAt(F)&255,$=($&65535)*1540483477+(($>>>16)*59797<<16)}return $^=$>>>13,$=($&65535)*1540483477+(($>>>16)*59797<<16),(($^$>>>15)>>>0).toString(36)}function canUseDom(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function contains(C,$){if(!C)return!1;if(C.contains)return C.contains($);for(var V=$;V;){if(V===C)return!0;V=V.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=C.mark;return $?$.startsWith("data-")?$:"data-".concat($):MARK_KEY}function getContainer(C){if(C.attachTo)return C.attachTo;var $=document.querySelector("head");return $||document.body}function getOrder(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function findStyles(C){return Array.from((containerCache.get(C)||C).children).filter(function($){return $.tagName==="STYLE"})}function injectCSS(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var V=$.csp,F=$.prepend,K=$.priority,J=K===void 0?0:K,ee=getOrder(F),te=ee==="prependQueue",ne=document.createElement("style");ne.setAttribute(APPEND_ORDER,ee),te&&J&&ne.setAttribute(APPEND_PRIORITY,"".concat(J)),V!=null&&V.nonce&&(ne.nonce=V==null?void 0:V.nonce),ne.innerHTML=C;var re=getContainer($),ae=re.firstChild;if(F){if(te){var oe=($.styles||findStyles(re)).filter(function(ie){if(!["prepend","prependQueue"].includes(ie.getAttribute(APPEND_ORDER)))return!1;var se=Number(ie.getAttribute(APPEND_PRIORITY)||0);return J>=se});if(oe.length)return re.insertBefore(ne,oe[oe.length-1].nextSibling),ne}re.insertBefore(ne,ae)}else re.appendChild(ne);return ne}function findExistNode(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=getContainer($);return($.styles||findStyles(V)).find(function(F){return F.getAttribute(getMark($))===C})}function removeCSS(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=findExistNode(C,$);if(V){var F=getContainer($);F.removeChild(V)}}function syncRealContainer(C,$){var V=containerCache.get(C);if(!V||!contains(document,V)){var F=injectCSS("",$),K=F.parentNode;containerCache.set(C,K),C.removeChild(F)}}function updateCSS(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=getContainer(V),K=findStyles(F),J=_objectSpread2(_objectSpread2({},V),{},{styles:K});syncRealContainer(F,J);var ee=findExistNode($,J);if(ee){var te,ne;if((te=J.csp)!==null&&te!==void 0&&te.nonce&&ee.nonce!==((ne=J.csp)===null||ne===void 0?void 0:ne.nonce)){var re;ee.nonce=(re=J.csp)===null||re===void 0?void 0:re.nonce}return ee.innerHTML!==C&&(ee.innerHTML=C),ee}var ae=injectCSS(C,J);return ae.setAttribute(getMark(J),$),ae}function _objectWithoutPropertiesLoose(C,$){if(C==null)return{};var V={};for(var F in C)if({}.hasOwnProperty.call(C,F)){if($.indexOf(F)!==-1)continue;V[F]=C[F]}return V}function _objectWithoutProperties(C,$){if(C==null)return{};var V,F,K=_objectWithoutPropertiesLoose(C,$);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(C);for(F=0;F<J.length;F++)V=J[F],$.indexOf(V)===-1&&{}.propertyIsEnumerable.call(C,V)&&(K[V]=C[V])}return K}function isEqual(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,F=new Set;function K(J,ee){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ne=F.has(J);if(warningOnce(!ne,"Warning: There may be circular references"),ne)return!1;if(J===ee)return!0;if(V&&te>1)return!1;F.add(J);var re=te+1;if(Array.isArray(J)){if(!Array.isArray(ee)||J.length!==ee.length)return!1;for(var ae=0;ae<J.length;ae++)if(!K(J[ae],ee[ae],re))return!1;return!0}if(J&&ee&&_typeof(J)==="object"&&_typeof(ee)==="object"){var oe=Object.keys(J);return oe.length!==Object.keys(ee).length?!1:oe.every(function(ie){return K(J[ie],ee[ie],re)})}return!1}return K(C,$)}var SPLIT$1="%";function pathKey(C){return C.join(SPLIT$1)}var Entity=function(){function C($){_classCallCheck(this,C),_defineProperty(this,"instanceId",void 0),_defineProperty(this,"cache",new Map),this.instanceId=$}return _createClass(C,[{key:"get",value:function(V){return this.opGet(pathKey(V))}},{key:"opGet",value:function(V){return this.cache.get(V)||null}},{key:"update",value:function(V,F){return this.opUpdate(pathKey(V),F)}},{key:"opUpdate",value:function(V,F){var K=this.cache.get(V),J=F(K);J===null?this.cache.delete(V):this.cache.set(V,J)}}]),C}(),ATTR_TOKEN="data-token-hash",ATTR_MARK="data-css-hash",ATTR_CACHE_PATH="data-cache-path",CSS_IN_JS_INSTANCE="__cssinjs_instance__";function createCache(){var C=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var $=document.body.querySelectorAll("style[".concat(ATTR_MARK,"]"))||[],V=document.head.firstChild;Array.from($).forEach(function(K){K[CSS_IN_JS_INSTANCE]=K[CSS_IN_JS_INSTANCE]||C,K[CSS_IN_JS_INSTANCE]===C&&document.head.insertBefore(K,V)});var F={};Array.from(document.querySelectorAll("style[".concat(ATTR_MARK,"]"))).forEach(function(K){var J=K.getAttribute(ATTR_MARK);if(F[J]){if(K[CSS_IN_JS_INSTANCE]===C){var ee;(ee=K.parentNode)===null||ee===void 0||ee.removeChild(K)}}else F[J]=!0})}return new Entity(C)}var StyleContext=React__namespace.createContext({hashPriority:"low",cache:createCache(),defaultCache:!0});const CssInJsStyleContext=StyleContext;function sameDerivativeOption(C,$){if(C.length!==$.length)return!1;for(var V=0;V<C.length;V++)if(C[V]!==$[V])return!1;return!0}var ThemeCache=function(){function C(){_classCallCheck(this,C),_defineProperty(this,"cache",void 0),_defineProperty(this,"keys",void 0),_defineProperty(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _createClass(C,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(V){var F,K,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee={map:this.cache};return V.forEach(function(te){if(!ee)ee=void 0;else{var ne;ee=(ne=ee)===null||ne===void 0||(ne=ne.map)===null||ne===void 0?void 0:ne.get(te)}}),(F=ee)!==null&&F!==void 0&&F.value&&J&&(ee.value[1]=this.cacheCallTimes++),(K=ee)===null||K===void 0?void 0:K.value}},{key:"get",value:function(V){var F;return(F=this.internalGet(V,!0))===null||F===void 0?void 0:F[0]}},{key:"has",value:function(V){return!!this.internalGet(V)}},{key:"set",value:function(V,F){var K=this;if(!this.has(V)){if(this.size()+1>C.MAX_CACHE_SIZE+C.MAX_CACHE_OFFSET){var J=this.keys.reduce(function(re,ae){var oe=_slicedToArray(re,2),ie=oe[1];return K.internalGet(ae)[1]<ie?[ae,K.internalGet(ae)[1]]:re},[this.keys[0],this.cacheCallTimes]),ee=_slicedToArray(J,1),te=ee[0];this.delete(te)}this.keys.push(V)}var ne=this.cache;V.forEach(function(re,ae){if(ae===V.length-1)ne.set(re,{value:[F,K.cacheCallTimes++]});else{var oe=ne.get(re);oe?oe.map||(oe.map=new Map):ne.set(re,{map:new Map}),ne=ne.get(re).map}})}},{key:"deleteByPath",value:function(V,F){var K=V.get(F[0]);if(F.length===1){var J;return K.map?V.set(F[0],{map:K.map}):V.delete(F[0]),(J=K.value)===null||J===void 0?void 0:J[0]}var ee=this.deleteByPath(K.map,F.slice(1));return(!K.map||K.map.size===0)&&!K.value&&V.delete(F[0]),ee}},{key:"delete",value:function(V){if(this.has(V))return this.keys=this.keys.filter(function(F){return!sameDerivativeOption(F,V)}),this.deleteByPath(this.cache,V)}}]),C}();_defineProperty(ThemeCache,"MAX_CACHE_SIZE",20),_defineProperty(ThemeCache,"MAX_CACHE_OFFSET",5);var uuid$6=0,Theme=function(){function C($){_classCallCheck(this,C),_defineProperty(this,"derivatives",void 0),_defineProperty(this,"id",void 0),this.derivatives=Array.isArray($)?$:[$],this.id=uuid$6,$.length===0&&warning$6($.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),uuid$6+=1}return _createClass(C,[{key:"getDerivativeToken",value:function(V){return this.derivatives.reduce(function(F,K){return K(V,F)},void 0)}}]),C}(),cacheThemes=new ThemeCache;function createTheme(C){var $=Array.isArray(C)?C:[C];return cacheThemes.has($)||cacheThemes.set($,new Theme($)),cacheThemes.get($)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(C,$){for(var V=resultCache,F=0;F<$.length;F+=1){var K=$[F];V.has(K)||V.set(K,new WeakMap),V=V.get(K)}return V.has(RESULT_VALUE)||V.set(RESULT_VALUE,C()),V.get(RESULT_VALUE)}var flattenTokenCache=new WeakMap;function flattenToken(C){var $=flattenTokenCache.get(C)||"";return $||(Object.keys(C).forEach(function(V){var F=C[V];$+=V,F instanceof Theme?$+=F.id:F&&_typeof(F)==="object"?$+=flattenToken(F):$+=F}),$=murmur2($),flattenTokenCache.set(C,$)),$}function token2key(C,$){return murmur2("".concat($,"_").concat(flattenToken(C)))}var isClientSide=canUseDom();function unit$1(C){return typeof C=="number"?"".concat(C,"px"):C}function toStyleStr(C,$,V){var F,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(J)return C;var ee=_objectSpread2(_objectSpread2({},K),{},(F={},_defineProperty(F,ATTR_TOKEN,$),_defineProperty(F,ATTR_MARK,V),F)),te=Object.keys(ee).map(function(ne){var re=ee[ne];return re?"".concat(ne,'="').concat(re,'"'):null}).filter(function(ne){return ne}).join(" ");return"<style ".concat(te,">").concat(C,"</style>")}var token2CSSVar=function($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(V?"".concat(V,"-"):"").concat($).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},serializeCSSVar=function($,V,F){return Object.keys($).length?".".concat(V).concat(F!=null&&F.scope?".".concat(F.scope):"","{").concat(Object.entries($).map(function(K){var J=_slicedToArray(K,2),ee=J[0],te=J[1];return"".concat(ee,":").concat(te,";")}).join(""),"}"):""},transformToken=function($,V,F){var K={},J={};return Object.entries($).forEach(function(ee){var te,ne,re=_slicedToArray(ee,2),ae=re[0],oe=re[1];if(F!=null&&(te=F.preserve)!==null&&te!==void 0&&te[ae])J[ae]=oe;else if((typeof oe=="string"||typeof oe=="number")&&!(F!=null&&(ne=F.ignore)!==null&&ne!==void 0&&ne[ae])){var ie,se=token2CSSVar(ae,F==null?void 0:F.prefix);K[se]=typeof oe=="number"&&!(F!=null&&(ie=F.unitless)!==null&&ie!==void 0&&ie[ae])?"".concat(oe,"px"):String(oe),J[ae]="var(".concat(se,")")}}),[J,serializeCSSVar(K,V,{scope:F==null?void 0:F.scope})]},useInternalLayoutEffect=process.env.NODE_ENV!=="test"&&canUseDom()?React__namespace.useLayoutEffect:React__namespace.useEffect,useLayoutEffect$1=function($,V){var F=React__namespace.useRef(!0);useInternalLayoutEffect(function(){return $(F.current)},V),useInternalLayoutEffect(function(){return F.current=!1,function(){F.current=!0}},[])},useLayoutUpdateEffect=function($,V){useLayoutEffect$1(function(F){if(!F)return $()},V)},fullClone$3=_objectSpread2({},React__namespace),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function($,V,F){React__namespace.useMemo($,F),useLayoutEffect$1(function(){return V(!0)},F)},useCompatibleInsertionEffect=useInsertionEffect$1?function(C,$,V){return useInsertionEffect$1(function(){return C(),$()},V)}:useInsertionEffectPolyfill;const useCompatibleInsertionEffect$1=useCompatibleInsertionEffect;var fullClone$2=_objectSpread2({},React__namespace),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function($){var V=[],F=!1;function K(J){if(F){process.env.NODE_ENV!=="production"&&warning$6(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}V.push(J)}return React__namespace.useEffect(function(){return F=!1,function(){F=!0,V.length&&V.forEach(function(J){return J()})}},$),K},useRun=function(){return function($){$()}},useEffectCleanupRegister=typeof useInsertionEffect!="undefined"?useCleanupRegister:useRun;const useEffectCleanupRegister$1=useEffectCleanupRegister;function useProdHMR(){return!1}var webpackHMR=!1;function useDevHMR(){return webpackHMR}const useHMR=process.env.NODE_ENV==="production"?useProdHMR:useDevHMR;if(process.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var win=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:null;if(win&&typeof win.webpackHotUpdate=="function"){var originWebpackHotUpdate=win.webpackHotUpdate;win.webpackHotUpdate=function(){return webpackHMR=!0,setTimeout(function(){webpackHMR=!1},0),originWebpackHotUpdate.apply(void 0,arguments)}}}function useGlobalCache(C,$,V,F,K){var J=React__namespace.useContext(CssInJsStyleContext),ee=J.cache,te=[C].concat(_toConsumableArray($)),ne=pathKey(te),re=useEffectCleanupRegister$1([ne]),ae=useHMR(),oe=function(ue){ee.opUpdate(ne,function(le){var ve=le||[void 0,void 0],fe=_slicedToArray(ve,2),ge=fe[0],pe=ge===void 0?0:ge,de=fe[1],me=de;process.env.NODE_ENV!=="production"&&de&&ae&&(F==null||F(me,ae),me=null);var ye=me||V(),_e=[pe,ye];return ue?ue(_e):_e})};React__namespace.useMemo(function(){oe()},[ne]);var ie=ee.opGet(ne);process.env.NODE_ENV!=="production"&&!ie&&(oe(),ie=ee.opGet(ne));var se=ie[1];return useCompatibleInsertionEffect$1(function(){K==null||K(se)},function(ce){return oe(function(ue){var le=_slicedToArray(ue,2),ve=le[0],fe=le[1];return ce&&ve===0&&(K==null||K(se)),[ve+1,fe]}),function(){ee.opUpdate(ne,function(ue){var le=ue||[],ve=_slicedToArray(le,2),fe=ve[0],ge=fe===void 0?0:fe,pe=ve[1],de=ge-1;return de===0?(re(function(){(ce||!ee.opGet(ne))&&(F==null||F(pe,!1))}),null):[ge-1,pe]})}},[ne]),se}var EMPTY_OVERRIDE={},hashPrefix=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tokenKeys=new Map;function recordCleanToken(C){tokenKeys.set(C,(tokenKeys.get(C)||0)+1)}function removeStyleTags(C,$){if(typeof document!="undefined"){var V=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(C,'"]'));V.forEach(function(F){if(F[CSS_IN_JS_INSTANCE]===$){var K;(K=F.parentNode)===null||K===void 0||K.removeChild(F)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(C,$){tokenKeys.set(C,(tokenKeys.get(C)||0)-1);var V=Array.from(tokenKeys.keys()),F=V.filter(function(K){var J=tokenKeys.get(K)||0;return J<=0});V.length-F.length>TOKEN_THRESHOLD&&F.forEach(function(K){removeStyleTags(K,$),tokenKeys.delete(K)})}var getComputedToken$1=function($,V,F,K){var J=F.getDerivativeToken($),ee=_objectSpread2(_objectSpread2({},J),V);return K&&(ee=K(ee)),ee},TOKEN_PREFIX="token";function useCacheToken(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=React.useContext(CssInJsStyleContext),K=F.cache.instanceId,J=F.container,ee=V.salt,te=ee===void 0?"":ee,ne=V.override,re=ne===void 0?EMPTY_OVERRIDE:ne,ae=V.formatToken,oe=V.getComputedToken,ie=V.cssVar,se=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray($)))},$),ce=flattenToken(se),ue=flattenToken(re),le=ie?flattenToken(ie):"",ve=useGlobalCache(TOKEN_PREFIX,[te,C.id,ce,ue,le],function(){var fe,ge=oe?oe(se,re,C):getComputedToken$1(se,re,C,ae),pe=_objectSpread2({},ge),de="";if(ie){var me=transformToken(ge,ie.key,{prefix:ie.prefix,ignore:ie.ignore,unitless:ie.unitless,preserve:ie.preserve}),ye=_slicedToArray(me,2);ge=ye[0],de=ye[1]}var _e=token2key(ge,te);ge._tokenKey=_e,pe._tokenKey=token2key(pe,te);var he=(fe=ie==null?void 0:ie.key)!==null&&fe!==void 0?fe:_e;ge._themeKey=he,recordCleanToken(he);var be="".concat(hashPrefix,"-").concat(murmur2(_e));return ge._hashId=be,[ge,be,pe,de,(ie==null?void 0:ie.key)||""]},function(fe){cleanTokenStyle(fe[0]._themeKey,K)},function(fe){var ge=_slicedToArray(fe,4),pe=ge[0],de=ge[3];if(ie&&de){var me=updateCSS(de,murmur2("css-variables-".concat(pe._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:J,priority:-999});me[CSS_IN_JS_INSTANCE]=K,me.setAttribute(ATTR_TOKEN,pe._themeKey)}});return ve}var extract$2=function($,V,F){var K=_slicedToArray($,5),J=K[2],ee=K[3],te=K[4],ne=F||{},re=ne.plain;if(!ee)return null;var ae=J._tokenKey,oe=-999,ie={"data-rc-order":"prependQueue","data-rc-priority":"".concat(oe)},se=toStyleStr(ee,te,ae,ie,re);return[oe,ae,se]},unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",NAMESPACE="@namespace",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode;function trim(C){return C.trim()}function replace(C,$,V){return C.replace($,V)}function indexof(C,$,V){return C.indexOf($,V)}function charat(C,$){return C.charCodeAt($)|0}function substr(C,$,V){return C.slice($,V)}function strlen(C){return C.length}function sizeof(C){return C.length}function append(C,$){return $.push(C),C}var line=1,column=1,length=0,position$1=0,character=0,characters="";function node(C,$,V,F,K,J,ee,te){return{value:C,root:$,parent:V,type:F,props:K,children:J,line,column,length:ee,return:"",siblings:te}}function char(){return character}function prev(){return character=position$1>0?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$1<length?charat(characters,position$1++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$1)}function caret(){return position$1}function slice(C,$){return substr(characters,C,$)}function token(C){switch(C){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(C){return line=column=1,length=strlen(characters=C),position$1=0,[]}function dealloc(C){return characters="",C}function delimit(C){return trim(slice(position$1-1,delimiter(C===91?C+2:C===40?C+1:C)))}function whitespace$1(C){for(;(character=peek())&&character<33;)next();return token(C)>2||token(character)>3?"":" "}function escaping(C,$){for(;--$&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(C,caret()+($<6&&peek()==32&&next()==32))}function delimiter(C){for(;next();)switch(character){case C:return position$1;case 34:case 39:C!==34&&C!==39&&delimiter(character);break;case 40:C===41&&delimiter(C);break;case 92:next();break}return position$1}function commenter(C,$){for(;next()&&C+character!==47+10;)if(C+character===42+42&&peek()===47)break;return"/*"+slice($,position$1-1)+"*"+from(C===47?C:next())}function identifier(C){for(;!token(peek());)next();return slice(C,position$1)}function compile(C){return dealloc(parse("",null,null,null,[""],C=alloc(C),0,[0],C))}function parse(C,$,V,F,K,J,ee,te,ne){for(var re=0,ae=0,oe=ee,ie=0,se=0,ce=0,ue=1,le=1,ve=1,fe=0,ge="",pe=K,de=J,me=F,ye=ge;le;)switch(ce=fe,fe=next()){case 40:if(ce!=108&&charat(ye,oe-1)==58){indexof(ye+=replace(delimit(fe),"&","&\f"),"&\f",abs(re?te[re-1]:0))!=-1&&(ve=-1);break}case 34:case 39:case 91:ye+=delimit(fe);break;case 9:case 10:case 13:case 32:ye+=whitespace$1(ce);break;case 92:ye+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),$,V,ne),ne),(token(ce||1)==5||token(peek()||1)==5)&&strlen(ye)&&substr(ye,-1,void 0)!==" "&&(ye+=" ");break;default:ye+="/"}break;case 123*ue:te[re++]=strlen(ye)*ve;case 125*ue:case 59:case 0:switch(fe){case 0:case 125:le=0;case 59+ae:ve==-1&&(ye=replace(ye,/\f/g,"")),se>0&&(strlen(ye)-oe||ue===0&&ce===47)&&append(se>32?declaration(ye+";",F,V,oe-1,ne):declaration(replace(ye," ","")+";",F,V,oe-2,ne),ne);break;case 59:ye+=";";default:if(append(me=ruleset(ye,$,V,re,ae,K,te,ge,pe=[],de=[],oe,J),J),fe===123)if(ae===0)parse(ye,$,me,me,pe,J,oe,te,de);else{switch(ie){case 99:if(charat(ye,3)===110)break;case 108:if(charat(ye,2)===97)break;default:ae=0;case 100:case 109:case 115:}ae?parse(C,me,me,F&&append(ruleset(C,me,me,0,0,K,te,ge,K,pe=[],oe,de),de),K,de,oe,te,F?pe:de):parse(ye,me,me,me,[""],de,0,te,de)}}re=ae=se=0,ue=ve=1,ge=ye="",oe=ee;break;case 58:oe=1+strlen(ye),se=ce;default:if(ue<1){if(fe==123)--ue;else if(fe==125&&ue++==0&&prev()==125)continue}switch(ye+=from(fe),fe*ue){case 38:ve=ae>0?1:(ye+="\f",-1);break;case 44:te[re++]=(strlen(ye)-1)*ve,ve=1;break;case 64:peek()===45&&(ye+=delimit(next())),ie=peek(),ae=oe=strlen(ge=ye+=identifier(caret())),fe++;break;case 45:ce===45&&strlen(ye)==2&&(ue=0)}}return J}function ruleset(C,$,V,F,K,J,ee,te,ne,re,ae,oe){for(var ie=K-1,se=K===0?J:[""],ce=sizeof(se),ue=0,le=0,ve=0;ue<F;++ue)for(var fe=0,ge=substr(C,ie+1,ie=abs(le=ee[ue])),pe=C;fe<ce;++fe)(pe=trim(le>0?se[fe]+" "+ge:replace(ge,/&\f/g,se[fe])))&&(ne[ve++]=pe);return node(C,$,V,K===0?RULESET:te,ne,re,ae,oe)}function comment(C,$,V,F){return node(C,$,V,COMMENT,from(char()),substr(C,2,-2),0,F)}function declaration(C,$,V,F,K){return node(C,$,V,DECLARATION,substr(C,0,F),substr(C,F+1,-1),F,K)}function serialize(C,$){for(var V="",F=0;F<C.length;F++)V+=$(C[F],F,C,$)||"";return V}function stringify$2(C,$,V,F){switch(C.type){case LAYER:if(C.children.length)break;case IMPORT:case NAMESPACE:case DECLARATION:return C.return=C.return||C.value;case COMMENT:return"";case KEYFRAMES:return C.return=C.value+"{"+serialize(C.children,F)+"}";case RULESET:if(!strlen(C.value=C.props.join(",")))return""}return strlen(V=serialize(C.children,F))?C.return=C.value+"{"+V+"}":""}function lintWarning(C,$){var V=$.path,F=$.parentSelectors;warningOnce(!1,"[Ant Design CSS-in-JS] ".concat(V?"Error in ".concat(V,": "):"").concat(C).concat(F.length?" Selector: ".concat(F.join(" | ")):""))}var linter$1=function($,V,F){if($==="content"){var K=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,J=["normal","none","initial","inherit","unset"];(typeof V!="string"||J.indexOf(V)===-1&&!K.test(V)&&(V.charAt(0)!==V.charAt(V.length-1)||V.charAt(0)!=='"'&&V.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(V,"\"'`."),F)}},linter=function($,V,F){$==="animation"&&F.hashId&&V!=="none"&&lintWarning("You seem to be using hashed animation '".concat(V,"', in which case 'animationName' with Keyframe as value is recommended."),F)},ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__",cachePathMap,fromCSSFile=!0;function prepare(){if(!cachePathMap&&(cachePathMap={},canUseDom())){var C=document.createElement("div");C.className=ATTR_CACHE_MAP,C.style.position="fixed",C.style.visibility="hidden",C.style.top="-9999px",document.body.appendChild(C);var $=getComputedStyle(C).content||"";$=$.replace(/^"/,"").replace(/"$/,""),$.split(";").forEach(function(K){var J=K.split(":"),ee=_slicedToArray(J,2),te=ee[0],ne=ee[1];cachePathMap[te]=ne});var V=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if(V){var F;fromCSSFile=!1,(F=V.parentNode)===null||F===void 0||F.removeChild(V)}document.body.removeChild(C)}}function existPath(C){return prepare(),!!cachePathMap[C]}function getStyleAndHash(C){var $=cachePathMap[C],V=null;if($&&canUseDom())if(fromCSSFile)V=CSS_FILE_STYLE;else{var F=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[C],'"]'));F?V=F.innerHTML:delete cachePathMap[C]}return[V,$]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(C){var $=serialize(compile(C),stringify$2);return $.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(C){return _typeof(C)==="object"&&C&&(SKIP_CHECK in C||MULTI_VALUE in C)}function injectSelectorHash(C,$,V){if(!$)return C;var F=".".concat($),K=V==="low"?":where(".concat(F,")"):F,J=C.split(",").map(function(ee){var te,ne=ee.trim().split(/\s+/),re=ne[0]||"",ae=((te=re.match(/^\w+/))===null||te===void 0?void 0:te[0])||"";return re="".concat(ae).concat(K).concat(re.slice(ae.length)),[re].concat(_toConsumableArray(ne.slice(1))).join(" ")});return J.join(",")}var parseStyle=function C($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},K=F.root,J=F.injectHash,ee=F.parentSelectors,te=V.hashId,ne=V.layer,re=V.path,ae=V.hashPriority,oe=V.transformers,ie=oe===void 0?[]:oe,se=V.linters,ce=se===void 0?[]:se,ue="",le={};function ve(pe){var de=pe.getName(te);if(!le[de]){var me=C(pe.style,V,{root:!1,parentSelectors:ee}),ye=_slicedToArray(me,1),_e=ye[0];le[de]="@keyframes ".concat(pe.getName(te)).concat(_e)}}function fe(pe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return pe.forEach(function(me){Array.isArray(me)?fe(me,de):me&&de.push(me)}),de}var ge=fe(Array.isArray($)?$:[$]);return ge.forEach(function(pe){var de=typeof pe=="string"&&!K?{}:pe;if(typeof de=="string")ue+="".concat(de,`
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(C,$){return _arrayWithHoles(C)||_iterableToArrayLimit(C,$)||_unsupportedIterableToArray(C,$)||_nonIterableRest()}function murmur2(C){for(var $=0,V,F=0,K=C.length;K>=4;++F,K-=4)V=C.charCodeAt(F)&255|(C.charCodeAt(++F)&255)<<8|(C.charCodeAt(++F)&255)<<16|(C.charCodeAt(++F)&255)<<24,V=(V&65535)*1540483477+((V>>>16)*59797<<16),V^=V>>>24,$=(V&65535)*1540483477+((V>>>16)*59797<<16)^($&65535)*1540483477+(($>>>16)*59797<<16);switch(K){case 3:$^=(C.charCodeAt(F+2)&255)<<16;case 2:$^=(C.charCodeAt(F+1)&255)<<8;case 1:$^=C.charCodeAt(F)&255,$=($&65535)*1540483477+(($>>>16)*59797<<16)}return $^=$>>>13,$=($&65535)*1540483477+(($>>>16)*59797<<16),(($^$>>>15)>>>0).toString(36)}function canUseDom(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function contains(C,$){if(!C)return!1;if(C.contains)return C.contains($);for(var V=$;V;){if(V===C)return!0;V=V.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=C.mark;return $?$.startsWith("data-")?$:"data-".concat($):MARK_KEY}function getContainer(C){if(C.attachTo)return C.attachTo;var $=document.querySelector("head");return $||document.body}function getOrder(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function findStyles(C){return Array.from((containerCache.get(C)||C).children).filter(function($){return $.tagName==="STYLE"})}function injectCSS(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var V=$.csp,F=$.prepend,K=$.priority,J=K===void 0?0:K,ee=getOrder(F),te=ee==="prependQueue",ne=document.createElement("style");ne.setAttribute(APPEND_ORDER,ee),te&&J&&ne.setAttribute(APPEND_PRIORITY,"".concat(J)),V!=null&&V.nonce&&(ne.nonce=V==null?void 0:V.nonce),ne.innerHTML=C;var re=getContainer($),ae=re.firstChild;if(F){if(te){var oe=($.styles||findStyles(re)).filter(function(ie){if(!["prepend","prependQueue"].includes(ie.getAttribute(APPEND_ORDER)))return!1;var se=Number(ie.getAttribute(APPEND_PRIORITY)||0);return J>=se});if(oe.length)return re.insertBefore(ne,oe[oe.length-1].nextSibling),ne}re.insertBefore(ne,ae)}else re.appendChild(ne);return ne}function findExistNode(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=getContainer($);return($.styles||findStyles(V)).find(function(F){return F.getAttribute(getMark($))===C})}function removeCSS(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=findExistNode(C,$);if(V){var F=getContainer($);F.removeChild(V)}}function syncRealContainer(C,$){var V=containerCache.get(C);if(!V||!contains(document,V)){var F=injectCSS("",$),K=F.parentNode;containerCache.set(C,K),C.removeChild(F)}}function updateCSS(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=getContainer(V),K=findStyles(F),J=_objectSpread2(_objectSpread2({},V),{},{styles:K});syncRealContainer(F,J);var ee=findExistNode($,J);if(ee){var te,ne;if((te=J.csp)!==null&&te!==void 0&&te.nonce&&ee.nonce!==((ne=J.csp)===null||ne===void 0?void 0:ne.nonce)){var re;ee.nonce=(re=J.csp)===null||re===void 0?void 0:re.nonce}return ee.innerHTML!==C&&(ee.innerHTML=C),ee}var ae=injectCSS(C,J);return ae.setAttribute(getMark(J),$),ae}function _objectWithoutPropertiesLoose(C,$){if(C==null)return{};var V={};for(var F in C)if({}.hasOwnProperty.call(C,F)){if($.indexOf(F)!==-1)continue;V[F]=C[F]}return V}function _objectWithoutProperties(C,$){if(C==null)return{};var V,F,K=_objectWithoutPropertiesLoose(C,$);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(C);for(F=0;F<J.length;F++)V=J[F],$.indexOf(V)===-1&&{}.propertyIsEnumerable.call(C,V)&&(K[V]=C[V])}return K}function isEqual(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,F=new Set;function K(J,ee){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ne=F.has(J);if(warningOnce(!ne,"Warning: There may be circular references"),ne)return!1;if(J===ee)return!0;if(V&&te>1)return!1;F.add(J);var re=te+1;if(Array.isArray(J)){if(!Array.isArray(ee)||J.length!==ee.length)return!1;for(var ae=0;ae<J.length;ae++)if(!K(J[ae],ee[ae],re))return!1;return!0}if(J&&ee&&_typeof(J)==="object"&&_typeof(ee)==="object"){var oe=Object.keys(J);return oe.length!==Object.keys(ee).length?!1:oe.every(function(ie){return K(J[ie],ee[ie],re)})}return!1}return K(C,$)}var SPLIT$1="%";function pathKey(C){return C.join(SPLIT$1)}var Entity=function(){function C($){_classCallCheck(this,C),_defineProperty(this,"instanceId",void 0),_defineProperty(this,"cache",new Map),this.instanceId=$}return _createClass(C,[{key:"get",value:function(V){return this.opGet(pathKey(V))}},{key:"opGet",value:function(V){return this.cache.get(V)||null}},{key:"update",value:function(V,F){return this.opUpdate(pathKey(V),F)}},{key:"opUpdate",value:function(V,F){var K=this.cache.get(V),J=F(K);J===null?this.cache.delete(V):this.cache.set(V,J)}}]),C}(),ATTR_TOKEN="data-token-hash",ATTR_MARK="data-css-hash",ATTR_CACHE_PATH="data-cache-path",CSS_IN_JS_INSTANCE="__cssinjs_instance__";function createCache(){var C=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var $=document.body.querySelectorAll("style[".concat(ATTR_MARK,"]"))||[],V=document.head.firstChild;Array.from($).forEach(function(K){K[CSS_IN_JS_INSTANCE]=K[CSS_IN_JS_INSTANCE]||C,K[CSS_IN_JS_INSTANCE]===C&&document.head.insertBefore(K,V)});var F={};Array.from(document.querySelectorAll("style[".concat(ATTR_MARK,"]"))).forEach(function(K){var J=K.getAttribute(ATTR_MARK);if(F[J]){if(K[CSS_IN_JS_INSTANCE]===C){var ee;(ee=K.parentNode)===null||ee===void 0||ee.removeChild(K)}}else F[J]=!0})}return new Entity(C)}var StyleContext=React__namespace.createContext({hashPriority:"low",cache:createCache(),defaultCache:!0});function sameDerivativeOption(C,$){if(C.length!==$.length)return!1;for(var V=0;V<C.length;V++)if(C[V]!==$[V])return!1;return!0}var ThemeCache=function(){function C(){_classCallCheck(this,C),_defineProperty(this,"cache",void 0),_defineProperty(this,"keys",void 0),_defineProperty(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _createClass(C,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(V){var F,K,J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee={map:this.cache};return V.forEach(function(te){if(!ee)ee=void 0;else{var ne;ee=(ne=ee)===null||ne===void 0||(ne=ne.map)===null||ne===void 0?void 0:ne.get(te)}}),(F=ee)!==null&&F!==void 0&&F.value&&J&&(ee.value[1]=this.cacheCallTimes++),(K=ee)===null||K===void 0?void 0:K.value}},{key:"get",value:function(V){var F;return(F=this.internalGet(V,!0))===null||F===void 0?void 0:F[0]}},{key:"has",value:function(V){return!!this.internalGet(V)}},{key:"set",value:function(V,F){var K=this;if(!this.has(V)){if(this.size()+1>C.MAX_CACHE_SIZE+C.MAX_CACHE_OFFSET){var J=this.keys.reduce(function(re,ae){var oe=_slicedToArray(re,2),ie=oe[1];return K.internalGet(ae)[1]<ie?[ae,K.internalGet(ae)[1]]:re},[this.keys[0],this.cacheCallTimes]),ee=_slicedToArray(J,1),te=ee[0];this.delete(te)}this.keys.push(V)}var ne=this.cache;V.forEach(function(re,ae){if(ae===V.length-1)ne.set(re,{value:[F,K.cacheCallTimes++]});else{var oe=ne.get(re);oe?oe.map||(oe.map=new Map):ne.set(re,{map:new Map}),ne=ne.get(re).map}})}},{key:"deleteByPath",value:function(V,F){var K=V.get(F[0]);if(F.length===1){var J;return K.map?V.set(F[0],{map:K.map}):V.delete(F[0]),(J=K.value)===null||J===void 0?void 0:J[0]}var ee=this.deleteByPath(K.map,F.slice(1));return(!K.map||K.map.size===0)&&!K.value&&V.delete(F[0]),ee}},{key:"delete",value:function(V){if(this.has(V))return this.keys=this.keys.filter(function(F){return!sameDerivativeOption(F,V)}),this.deleteByPath(this.cache,V)}}]),C}();_defineProperty(ThemeCache,"MAX_CACHE_SIZE",20),_defineProperty(ThemeCache,"MAX_CACHE_OFFSET",5);var uuid$6=0,Theme=function(){function C($){_classCallCheck(this,C),_defineProperty(this,"derivatives",void 0),_defineProperty(this,"id",void 0),this.derivatives=Array.isArray($)?$:[$],this.id=uuid$6,$.length===0&&warning$6($.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),uuid$6+=1}return _createClass(C,[{key:"getDerivativeToken",value:function(V){return this.derivatives.reduce(function(F,K){return K(V,F)},void 0)}}]),C}(),cacheThemes=new ThemeCache;function createTheme(C){var $=Array.isArray(C)?C:[C];return cacheThemes.has($)||cacheThemes.set($,new Theme($)),cacheThemes.get($)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(C,$){for(var V=resultCache,F=0;F<$.length;F+=1){var K=$[F];V.has(K)||V.set(K,new WeakMap),V=V.get(K)}return V.has(RESULT_VALUE)||V.set(RESULT_VALUE,C()),V.get(RESULT_VALUE)}var flattenTokenCache=new WeakMap;function flattenToken(C){var $=flattenTokenCache.get(C)||"";return $||(Object.keys(C).forEach(function(V){var F=C[V];$+=V,F instanceof Theme?$+=F.id:F&&_typeof(F)==="object"?$+=flattenToken(F):$+=F}),$=murmur2($),flattenTokenCache.set(C,$)),$}function token2key(C,$){return murmur2("".concat($,"_").concat(flattenToken(C)))}var isClientSide=canUseDom();function unit$1(C){return typeof C=="number"?"".concat(C,"px"):C}function toStyleStr(C,$,V){var F,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(J)return C;var ee=_objectSpread2(_objectSpread2({},K),{},(F={},_defineProperty(F,ATTR_TOKEN,$),_defineProperty(F,ATTR_MARK,V),F)),te=Object.keys(ee).map(function(ne){var re=ee[ne];return re?"".concat(ne,'="').concat(re,'"'):null}).filter(function(ne){return ne}).join(" ");return"<style ".concat(te,">").concat(C,"</style>")}var token2CSSVar=function($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(V?"".concat(V,"-"):"").concat($).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},serializeCSSVar=function($,V,F){return Object.keys($).length?".".concat(V).concat(F!=null&&F.scope?".".concat(F.scope):"","{").concat(Object.entries($).map(function(K){var J=_slicedToArray(K,2),ee=J[0],te=J[1];return"".concat(ee,":").concat(te,";")}).join(""),"}"):""},transformToken=function($,V,F){var K={},J={};return Object.entries($).forEach(function(ee){var te,ne,re=_slicedToArray(ee,2),ae=re[0],oe=re[1];if(F!=null&&(te=F.preserve)!==null&&te!==void 0&&te[ae])J[ae]=oe;else if((typeof oe=="string"||typeof oe=="number")&&!(F!=null&&(ne=F.ignore)!==null&&ne!==void 0&&ne[ae])){var ie,se=token2CSSVar(ae,F==null?void 0:F.prefix);K[se]=typeof oe=="number"&&!(F!=null&&(ie=F.unitless)!==null&&ie!==void 0&&ie[ae])?"".concat(oe,"px"):String(oe),J[ae]="var(".concat(se,")")}}),[J,serializeCSSVar(K,V,{scope:F==null?void 0:F.scope})]},useInternalLayoutEffect=process.env.NODE_ENV!=="test"&&canUseDom()?React__namespace.useLayoutEffect:React__namespace.useEffect,useLayoutEffect$1=function($,V){var F=React__namespace.useRef(!0);useInternalLayoutEffect(function(){return $(F.current)},V),useInternalLayoutEffect(function(){return F.current=!1,function(){F.current=!0}},[])},useLayoutUpdateEffect=function($,V){useLayoutEffect$1(function(F){if(!F)return $()},V)},fullClone$3=_objectSpread2({},React__namespace),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function($,V,F){React__namespace.useMemo($,F),useLayoutEffect$1(function(){return V(!0)},F)},useCompatibleInsertionEffect=useInsertionEffect$1?function(C,$,V){return useInsertionEffect$1(function(){return C(),$()},V)}:useInsertionEffectPolyfill,fullClone$2=_objectSpread2({},React__namespace),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function($){var V=[],F=!1;function K(J){if(F){process.env.NODE_ENV!=="production"&&warning$6(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}V.push(J)}return React__namespace.useEffect(function(){return F=!1,function(){F=!0,V.length&&V.forEach(function(J){return J()})}},$),K},useRun=function(){return function($){$()}},useEffectCleanupRegister=typeof useInsertionEffect!="undefined"?useCleanupRegister:useRun;function useProdHMR(){return!1}var webpackHMR=!1;function useDevHMR(){return webpackHMR}const useHMR=process.env.NODE_ENV==="production"?useProdHMR:useDevHMR;if(process.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var win=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:null;if(win&&typeof win.webpackHotUpdate=="function"){var originWebpackHotUpdate=win.webpackHotUpdate;win.webpackHotUpdate=function(){return webpackHMR=!0,setTimeout(function(){webpackHMR=!1},0),originWebpackHotUpdate.apply(void 0,arguments)}}}function useGlobalCache(C,$,V,F,K){var J=React__namespace.useContext(StyleContext),ee=J.cache,te=[C].concat(_toConsumableArray($)),ne=pathKey(te),re=useEffectCleanupRegister([ne]),ae=useHMR(),oe=function(ue){ee.opUpdate(ne,function(le){var ve=le||[void 0,void 0],fe=_slicedToArray(ve,2),ge=fe[0],pe=ge===void 0?0:ge,de=fe[1],me=de;process.env.NODE_ENV!=="production"&&de&&ae&&(F==null||F(me,ae),me=null);var ye=me||V(),_e=[pe,ye];return ue?ue(_e):_e})};React__namespace.useMemo(function(){oe()},[ne]);var ie=ee.opGet(ne);process.env.NODE_ENV!=="production"&&!ie&&(oe(),ie=ee.opGet(ne));var se=ie[1];return useCompatibleInsertionEffect(function(){K==null||K(se)},function(ce){return oe(function(ue){var le=_slicedToArray(ue,2),ve=le[0],fe=le[1];return ce&&ve===0&&(K==null||K(se)),[ve+1,fe]}),function(){ee.opUpdate(ne,function(ue){var le=ue||[],ve=_slicedToArray(le,2),fe=ve[0],ge=fe===void 0?0:fe,pe=ve[1],de=ge-1;return de===0?(re(function(){(ce||!ee.opGet(ne))&&(F==null||F(pe,!1))}),null):[ge-1,pe]})}},[ne]),se}var EMPTY_OVERRIDE={},hashPrefix=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",tokenKeys=new Map;function recordCleanToken(C){tokenKeys.set(C,(tokenKeys.get(C)||0)+1)}function removeStyleTags(C,$){if(typeof document!="undefined"){var V=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(C,'"]'));V.forEach(function(F){if(F[CSS_IN_JS_INSTANCE]===$){var K;(K=F.parentNode)===null||K===void 0||K.removeChild(F)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(C,$){tokenKeys.set(C,(tokenKeys.get(C)||0)-1);var V=Array.from(tokenKeys.keys()),F=V.filter(function(K){var J=tokenKeys.get(K)||0;return J<=0});V.length-F.length>TOKEN_THRESHOLD&&F.forEach(function(K){removeStyleTags(K,$),tokenKeys.delete(K)})}var getComputedToken$1=function($,V,F,K){var J=F.getDerivativeToken($),ee=_objectSpread2(_objectSpread2({},J),V);return K&&(ee=K(ee)),ee},TOKEN_PREFIX="token";function useCacheToken(C,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},F=React.useContext(StyleContext),K=F.cache.instanceId,J=F.container,ee=V.salt,te=ee===void 0?"":ee,ne=V.override,re=ne===void 0?EMPTY_OVERRIDE:ne,ae=V.formatToken,oe=V.getComputedToken,ie=V.cssVar,se=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray($)))},$),ce=flattenToken(se),ue=flattenToken(re),le=ie?flattenToken(ie):"",ve=useGlobalCache(TOKEN_PREFIX,[te,C.id,ce,ue,le],function(){var fe,ge=oe?oe(se,re,C):getComputedToken$1(se,re,C,ae),pe=_objectSpread2({},ge),de="";if(ie){var me=transformToken(ge,ie.key,{prefix:ie.prefix,ignore:ie.ignore,unitless:ie.unitless,preserve:ie.preserve}),ye=_slicedToArray(me,2);ge=ye[0],de=ye[1]}var _e=token2key(ge,te);ge._tokenKey=_e,pe._tokenKey=token2key(pe,te);var he=(fe=ie==null?void 0:ie.key)!==null&&fe!==void 0?fe:_e;ge._themeKey=he,recordCleanToken(he);var be="".concat(hashPrefix,"-").concat(murmur2(_e));return ge._hashId=be,[ge,be,pe,de,(ie==null?void 0:ie.key)||""]},function(fe){cleanTokenStyle(fe[0]._themeKey,K)},function(fe){var ge=_slicedToArray(fe,4),pe=ge[0],de=ge[3];if(ie&&de){var me=updateCSS(de,murmur2("css-variables-".concat(pe._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:J,priority:-999});me[CSS_IN_JS_INSTANCE]=K,me.setAttribute(ATTR_TOKEN,pe._themeKey)}});return ve}var extract$2=function($,V,F){var K=_slicedToArray($,5),J=K[2],ee=K[3],te=K[4],ne=F||{},re=ne.plain;if(!ee)return null;var ae=J._tokenKey,oe=-999,ie={"data-rc-order":"prependQueue","data-rc-priority":"".concat(oe)},se=toStyleStr(ee,te,ae,ie,re);return[oe,ae,se]},unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",NAMESPACE="@namespace",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode;function trim(C){return C.trim()}function replace(C,$,V){return C.replace($,V)}function indexof(C,$,V){return C.indexOf($,V)}function charat(C,$){return C.charCodeAt($)|0}function substr(C,$,V){return C.slice($,V)}function strlen(C){return C.length}function sizeof(C){return C.length}function append(C,$){return $.push(C),C}var line=1,column=1,length=0,position$1=0,character=0,characters="";function node(C,$,V,F,K,J,ee,te){return{value:C,root:$,parent:V,type:F,props:K,children:J,line,column,length:ee,return:"",siblings:te}}function char(){return character}function prev(){return character=position$1>0?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$1<length?charat(characters,position$1++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$1)}function caret(){return position$1}function slice(C,$){return substr(characters,C,$)}function token(C){switch(C){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(C){return line=column=1,length=strlen(characters=C),position$1=0,[]}function dealloc(C){return characters="",C}function delimit(C){return trim(slice(position$1-1,delimiter(C===91?C+2:C===40?C+1:C)))}function whitespace$1(C){for(;(character=peek())&&character<33;)next();return token(C)>2||token(character)>3?"":" "}function escaping(C,$){for(;--$&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(C,caret()+($<6&&peek()==32&&next()==32))}function delimiter(C){for(;next();)switch(character){case C:return position$1;case 34:case 39:C!==34&&C!==39&&delimiter(character);break;case 40:C===41&&delimiter(C);break;case 92:next();break}return position$1}function commenter(C,$){for(;next()&&C+character!==47+10;)if(C+character===42+42&&peek()===47)break;return"/*"+slice($,position$1-1)+"*"+from(C===47?C:next())}function identifier(C){for(;!token(peek());)next();return slice(C,position$1)}function compile(C){return dealloc(parse("",null,null,null,[""],C=alloc(C),0,[0],C))}function parse(C,$,V,F,K,J,ee,te,ne){for(var re=0,ae=0,oe=ee,ie=0,se=0,ce=0,ue=1,le=1,ve=1,fe=0,ge="",pe=K,de=J,me=F,ye=ge;le;)switch(ce=fe,fe=next()){case 40:if(ce!=108&&charat(ye,oe-1)==58){indexof(ye+=replace(delimit(fe),"&","&\f"),"&\f",abs(re?te[re-1]:0))!=-1&&(ve=-1);break}case 34:case 39:case 91:ye+=delimit(fe);break;case 9:case 10:case 13:case 32:ye+=whitespace$1(ce);break;case 92:ye+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),$,V,ne),ne),(token(ce||1)==5||token(peek()||1)==5)&&strlen(ye)&&substr(ye,-1,void 0)!==" "&&(ye+=" ");break;default:ye+="/"}break;case 123*ue:te[re++]=strlen(ye)*ve;case 125*ue:case 59:case 0:switch(fe){case 0:case 125:le=0;case 59+ae:ve==-1&&(ye=replace(ye,/\f/g,"")),se>0&&(strlen(ye)-oe||ue===0&&ce===47)&&append(se>32?declaration(ye+";",F,V,oe-1,ne):declaration(replace(ye," ","")+";",F,V,oe-2,ne),ne);break;case 59:ye+=";";default:if(append(me=ruleset(ye,$,V,re,ae,K,te,ge,pe=[],de=[],oe,J),J),fe===123)if(ae===0)parse(ye,$,me,me,pe,J,oe,te,de);else{switch(ie){case 99:if(charat(ye,3)===110)break;case 108:if(charat(ye,2)===97)break;default:ae=0;case 100:case 109:case 115:}ae?parse(C,me,me,F&&append(ruleset(C,me,me,0,0,K,te,ge,K,pe=[],oe,de),de),K,de,oe,te,F?pe:de):parse(ye,me,me,me,[""],de,0,te,de)}}re=ae=se=0,ue=ve=1,ge=ye="",oe=ee;break;case 58:oe=1+strlen(ye),se=ce;default:if(ue<1){if(fe==123)--ue;else if(fe==125&&ue++==0&&prev()==125)continue}switch(ye+=from(fe),fe*ue){case 38:ve=ae>0?1:(ye+="\f",-1);break;case 44:te[re++]=(strlen(ye)-1)*ve,ve=1;break;case 64:peek()===45&&(ye+=delimit(next())),ie=peek(),ae=oe=strlen(ge=ye+=identifier(caret())),fe++;break;case 45:ce===45&&strlen(ye)==2&&(ue=0)}}return J}function ruleset(C,$,V,F,K,J,ee,te,ne,re,ae,oe){for(var ie=K-1,se=K===0?J:[""],ce=sizeof(se),ue=0,le=0,ve=0;ue<F;++ue)for(var fe=0,ge=substr(C,ie+1,ie=abs(le=ee[ue])),pe=C;fe<ce;++fe)(pe=trim(le>0?se[fe]+" "+ge:replace(ge,/&\f/g,se[fe])))&&(ne[ve++]=pe);return node(C,$,V,K===0?RULESET:te,ne,re,ae,oe)}function comment(C,$,V,F){return node(C,$,V,COMMENT,from(char()),substr(C,2,-2),0,F)}function declaration(C,$,V,F,K){return node(C,$,V,DECLARATION,substr(C,0,F),substr(C,F+1,-1),F,K)}function serialize(C,$){for(var V="",F=0;F<C.length;F++)V+=$(C[F],F,C,$)||"";return V}function stringify$2(C,$,V,F){switch(C.type){case LAYER:if(C.children.length)break;case IMPORT:case NAMESPACE:case DECLARATION:return C.return=C.return||C.value;case COMMENT:return"";case KEYFRAMES:return C.return=C.value+"{"+serialize(C.children,F)+"}";case RULESET:if(!strlen(C.value=C.props.join(",")))return""}return strlen(V=serialize(C.children,F))?C.return=C.value+"{"+V+"}":""}function lintWarning(C,$){var V=$.path,F=$.parentSelectors;warningOnce(!1,"[Ant Design CSS-in-JS] ".concat(V?"Error in ".concat(V,": "):"").concat(C).concat(F.length?" Selector: ".concat(F.join(" | ")):""))}var linter$1=function($,V,F){if($==="content"){var K=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,J=["normal","none","initial","inherit","unset"];(typeof V!="string"||J.indexOf(V)===-1&&!K.test(V)&&(V.charAt(0)!==V.charAt(V.length-1)||V.charAt(0)!=='"'&&V.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(V,"\"'`."),F)}},linter=function($,V,F){$==="animation"&&F.hashId&&V!=="none"&&lintWarning("You seem to be using hashed animation '".concat(V,"', in which case 'animationName' with Keyframe as value is recommended."),F)},ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__",cachePathMap,fromCSSFile=!0;function prepare(){if(!cachePathMap&&(cachePathMap={},canUseDom())){var C=document.createElement("div");C.className=ATTR_CACHE_MAP,C.style.position="fixed",C.style.visibility="hidden",C.style.top="-9999px",document.body.appendChild(C);var $=getComputedStyle(C).content||"";$=$.replace(/^"/,"").replace(/"$/,""),$.split(";").forEach(function(K){var J=K.split(":"),ee=_slicedToArray(J,2),te=ee[0],ne=ee[1];cachePathMap[te]=ne});var V=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if(V){var F;fromCSSFile=!1,(F=V.parentNode)===null||F===void 0||F.removeChild(V)}document.body.removeChild(C)}}function existPath(C){return prepare(),!!cachePathMap[C]}function getStyleAndHash(C){var $=cachePathMap[C],V=null;if($&&canUseDom())if(fromCSSFile)V=CSS_FILE_STYLE;else{var F=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[C],'"]'));F?V=F.innerHTML:delete cachePathMap[C]}return[V,$]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(C){var $=serialize(compile(C),stringify$2);return $.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(C){return _typeof(C)==="object"&&C&&(SKIP_CHECK in C||MULTI_VALUE in C)}function injectSelectorHash(C,$,V){if(!$)return C;var F=".".concat($),K=V==="low"?":where(".concat(F,")"):F,J=C.split(",").map(function(ee){var te,ne=ee.trim().split(/\s+/),re=ne[0]||"",ae=((te=re.match(/^\w+/))===null||te===void 0?void 0:te[0])||"";return re="".concat(ae).concat(K).concat(re.slice(ae.length)),[re].concat(_toConsumableArray(ne.slice(1))).join(" ")});return J.join(",")}var parseStyle=function C($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},K=F.root,J=F.injectHash,ee=F.parentSelectors,te=V.hashId,ne=V.layer,re=V.path,ae=V.hashPriority,oe=V.transformers,ie=oe===void 0?[]:oe,se=V.linters,ce=se===void 0?[]:se,ue="",le={};function ve(pe){var de=pe.getName(te);if(!le[de]){var me=C(pe.style,V,{root:!1,parentSelectors:ee}),ye=_slicedToArray(me,1),_e=ye[0];le[de]="@keyframes ".concat(pe.getName(te)).concat(_e)}}function fe(pe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return pe.forEach(function(me){Array.isArray(me)?fe(me,de):me&&de.push(me)}),de}var ge=fe(Array.isArray($)?$:[$]);return ge.forEach(function(pe){var de=typeof pe=="string"&&!K?{}:pe;if(typeof de=="string")ue+="".concat(de,`
43
43
  `);else if(de._keyframe)ve(de);else{var me=ie.reduce(function(ye,_e){var he;return(_e==null||(he=_e.visit)===null||he===void 0?void 0:he.call(_e,ye))||ye},de);Object.keys(me).forEach(function(ye){var _e=me[ye];if(_typeof(_e)==="object"&&_e&&(ye!=="animationName"||!_e._keyframe)&&!isCompoundCSSProperty(_e)){var he=!1,be=ye.trim(),Se=!1;(K||J)&&te?be.startsWith("@")?he=!0:be==="&"?be=injectSelectorHash("",te,ae):be=injectSelectorHash(ye,te,ae):K&&!te&&(be==="&"||be==="")&&(be="",Se=!0);var Re=C(_e,V,{root:Se,injectHash:he,parentSelectors:[].concat(_toConsumableArray(ee),[be])}),Ce=_slicedToArray(Re,2),xe=Ce[0],$e=Ce[1];le=_objectSpread2(_objectSpread2({},le),$e),ue+="".concat(be).concat(xe)}else{let Ne=function(De,Oe){process.env.NODE_ENV!=="production"&&(_typeof(_e)!=="object"||!(_e!=null&&_e[SKIP_CHECK]))&&[linter$1,linter].concat(_toConsumableArray(ce)).forEach(function(ke){return ke(De,Oe,{path:re,hashId:te,parentSelectors:ee})});var Te=De.replace(/[A-Z]/g,function(ke){return"-".concat(ke.toLowerCase())}),Ae=Oe;!unitlessKeys[De]&&typeof Ae=="number"&&Ae!==0&&(Ae="".concat(Ae,"px")),De==="animationName"&&Oe!==null&&Oe!==void 0&&Oe._keyframe&&(ve(Oe),Ae=Oe.getName(te)),ue+="".concat(Te,":").concat(Ae,";")};var Ie,Fe=(Ie=_e==null?void 0:_e.value)!==null&&Ie!==void 0?Ie:_e;_typeof(_e)==="object"&&_e!==null&&_e!==void 0&&_e[MULTI_VALUE]&&Array.isArray(Fe)?Fe.forEach(function(De){Ne(ye,De)}):Ne(ye,Fe)}})}}),K?ne&&(ue&&(ue="@layer ".concat(ne.name," {").concat(ue,"}")),ne.dependencies&&(le["@layer ".concat(ne.name)]=ne.dependencies.map(function(pe){return"@layer ".concat(pe,", ").concat(ne.name,";")}).join(`
44
- `))):ue="{".concat(ue,"}"),[ue,le]};function uniqueHash(C,$){return murmur2("".concat(C.join("%")).concat($))}function Empty$3(){return null}var STYLE_PREFIX="style";function useStyleRegister(C,$){var V=C.token,F=C.path,K=C.hashId,J=C.layer,ee=C.nonce,te=C.clientOnly,ne=C.order,re=ne===void 0?0:ne,ae=React__namespace.useContext(CssInJsStyleContext),oe=ae.autoClear,ie=ae.mock,se=ae.defaultCache,ce=ae.hashPriority,ue=ae.container,le=ae.ssrInline,ve=ae.transformers,fe=ae.linters,ge=ae.cache,pe=ae.layer,de=V._tokenKey,me=[de];pe&&me.push("layer"),me.push.apply(me,_toConsumableArray(F));var ye=isClientSide;process.env.NODE_ENV!=="production"&&ie!==void 0&&(ye=ie==="client");var _e=useGlobalCache(STYLE_PREFIX,me,function(){var Ce=me.join("|");if(existPath(Ce)){var xe=getStyleAndHash(Ce),$e=_slicedToArray(xe,2),Ie=$e[0],Fe=$e[1];if(Ie)return[Ie,de,Fe,{},te,re]}var Ne=$(),De=parseStyle(Ne,{hashId:K,hashPriority:ce,layer:pe?J:void 0,path:F.join("-"),transformers:ve,linters:fe}),Oe=_slicedToArray(De,2),Te=Oe[0],Ae=Oe[1],ke=normalizeStyle(Te),je=uniqueHash(me,ke);return[ke,de,je,Ae,te,re]},function(Ce,xe){var $e=_slicedToArray(Ce,3),Ie=$e[2];(xe||oe)&&isClientSide&&removeCSS(Ie,{mark:ATTR_MARK})},function(Ce){var xe=_slicedToArray(Ce,4),$e=xe[0];xe[1];var Ie=xe[2],Fe=xe[3];if(ye&&$e!==CSS_FILE_STYLE){var Ne={mark:ATTR_MARK,prepend:pe?!1:"queue",attachTo:ue,priority:re},De=typeof ee=="function"?ee():ee;De&&(Ne.csp={nonce:De});var Oe=[],Te=[];Object.keys(Fe).forEach(function(ke){ke.startsWith("@layer")?Oe.push(ke):Te.push(ke)}),Oe.forEach(function(ke){updateCSS(normalizeStyle(Fe[ke]),"_layer-".concat(ke),_objectSpread2(_objectSpread2({},Ne),{},{prepend:!0}))});var Ae=updateCSS($e,Ie,Ne);Ae[CSS_IN_JS_INSTANCE]=ge.instanceId,Ae.setAttribute(ATTR_TOKEN,de),process.env.NODE_ENV!=="production"&&Ae.setAttribute(ATTR_CACHE_PATH,me.join("|")),Te.forEach(function(ke){updateCSS(normalizeStyle(Fe[ke]),"_effect-".concat(ke),Ne)})}}),he=_slicedToArray(_e,3),be=he[0],Se=he[1],Re=he[2];return function(Ce){var xe;if(!le||ye||!se)xe=React__namespace.createElement(Empty$3,null);else{var $e;xe=React__namespace.createElement("style",_extends({},($e={},_defineProperty($e,ATTR_TOKEN,Se),_defineProperty($e,ATTR_MARK,Re),$e),{dangerouslySetInnerHTML:{__html:be}}))}return React__namespace.createElement(React__namespace.Fragment,null,xe,Ce)}}var extract$1=function($,V,F){var K=_slicedToArray($,6),J=K[0],ee=K[1],te=K[2],ne=K[3],re=K[4],ae=K[5],oe=F||{},ie=oe.plain;if(re)return null;var se=J,ce={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ae)};return se=toStyleStr(J,ee,te,ce,ie),ne&&Object.keys(ne).forEach(function(ue){if(!V[ue]){V[ue]=!0;var le=normalizeStyle(ne[ue]),ve=toStyleStr(le,ee,"_effect-".concat(ue),ce,ie);ue.startsWith("@layer")?se=ve+se:se+=ve}}),[ae,te,se]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function($,V){var F=$.key,K=$.prefix,J=$.unitless,ee=$.ignore,te=$.token,ne=$.scope,re=ne===void 0?"":ne,ae=React.useContext(CssInJsStyleContext),oe=ae.cache.instanceId,ie=ae.container,se=te._tokenKey,ce=[].concat(_toConsumableArray($.path),[F,re,se]),ue=useGlobalCache(CSS_VAR_PREFIX,ce,function(){var le=V(),ve=transformToken(le,F,{prefix:K,unitless:J,ignore:ee,scope:re}),fe=_slicedToArray(ve,2),ge=fe[0],pe=fe[1],de=uniqueHash(ce,pe);return[ge,pe,de,F]},function(le){var ve=_slicedToArray(le,3),fe=ve[2];isClientSide&&removeCSS(fe,{mark:ATTR_MARK})},function(le){var ve=_slicedToArray(le,3),fe=ve[1],ge=ve[2];if(fe){var pe=updateCSS(fe,ge,{mark:ATTR_MARK,prepend:"queue",attachTo:ie,priority:-999});pe[CSS_IN_JS_INSTANCE]=oe,pe.setAttribute(ATTR_TOKEN,F)}});return ue},extract=function($,V,F){var K=_slicedToArray($,4),J=K[1],ee=K[2],te=K[3],ne=F||{},re=ne.plain;if(!J)return null;var ae=-999,oe={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ae)},ie=toStyleStr(J,te,ee,oe,re);return[ae,ee,ie]},_ExtractStyleFns;_ExtractStyleFns={},_defineProperty(_ExtractStyleFns,STYLE_PREFIX,extract$1),_defineProperty(_ExtractStyleFns,TOKEN_PREFIX,extract$2),_defineProperty(_ExtractStyleFns,CSS_VAR_PREFIX,extract);var Keyframe=function(){function C($,V){_classCallCheck(this,C),_defineProperty(this,"name",void 0),_defineProperty(this,"style",void 0),_defineProperty(this,"_keyframe",!0),this.name=$,this.style=V}return _createClass(C,[{key:"getName",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return V?"".concat(V,"-").concat(this.name):this.name}}]),C}();function noSplit(C){return C.notSplit=!0,C}noSplit(["borderTop","borderBottom"]),noSplit(["borderTop"]),noSplit(["borderBottom"]),noSplit(["borderLeft","borderRight"]),noSplit(["borderLeft"]),noSplit(["borderRight"]);var IconContext=React.createContext({});const Context$2=IconContext;function _toArray(C){return _arrayWithHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableRest()}function get(C,$){for(var V=C,F=0;F<$.length;F+=1){if(V==null)return;V=V[$[F]]}return V}function internalSet(C,$,V,F){if(!$.length)return V;var K=_toArray($),J=K[0],ee=K.slice(1),te;return!C&&typeof J=="number"?te=[]:Array.isArray(C)?te=_toConsumableArray(C):te=_objectSpread2({},C),F&&V===void 0&&ee.length===1?delete te[J][ee[0]]:te[J]=internalSet(te[J],ee,V,F),te}function set(C,$,V){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return $.length&&F&&V===void 0&&!get(C,$.slice(0,-1))?C:internalSet(C,$,V,F)}function isObject(C){return _typeof(C)==="object"&&C!==null&&Object.getPrototypeOf(C)===Object.prototype}function createEmpty(C){return Array.isArray(C)?[]:{}}var keys=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function merge$1(){for(var C=arguments.length,$=new Array(C),V=0;V<C;V++)$[V]=arguments[V];var F=createEmpty($[0]);return $.forEach(function(K){function J(ee,te){var ne=new Set(te),re=get(K,ee),ae=Array.isArray(re);if(ae||isObject(re)){if(!ne.has(re)){ne.add(re);var oe=get(F,ee);ae?F=set(F,ee,[]):(!oe||_typeof(oe)!=="object")&&(F=set(F,ee,createEmpty(re))),keys(re).forEach(function(ie){J([].concat(_toConsumableArray(ee),[ie]),ne)})}}else F=set(F,ee,re)}J([])}),F}function noop$3(){}let deprecatedWarnList=null;function resetWarned(){deprecatedWarnList=null,resetWarned$1()}let warning$4=noop$3;process.env.NODE_ENV!=="production"&&(warning$4=(C,$,V)=>{warningOnce(C,`[antd: ${$}] ${V}`),process.env.NODE_ENV==="test"&&resetWarned()});const WarningContext=React__namespace.createContext({}),devUseWarning=process.env.NODE_ENV!=="production"?C=>{const{strict:$}=React__namespace.useContext(WarningContext),V=(F,K,J)=>{if(!F)if($===!1&&K==="deprecated"){const ee=deprecatedWarnList;deprecatedWarnList||(deprecatedWarnList={}),deprecatedWarnList[C]=deprecatedWarnList[C]||[],deprecatedWarnList[C].includes(J||"")||deprecatedWarnList[C].push(J||""),ee||console.warn("[antd] There exists deprecated usage in your code:",deprecatedWarnList)}else process.env.NODE_ENV!=="production"&&warning$4(F,C,J)};return V.deprecated=(F,K,J,ee)=>{V(F,"deprecated",`\`${K}\` is deprecated. Please use \`${J}\` instead.${ee?` ${ee}`:""}`)},V}:()=>{const C=()=>{};return C.deprecated=noop$3,C},warning$5=warning$4,ValidateMessagesContext=React.createContext(void 0);var locale$4={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},locale$3=_objectSpread2(_objectSpread2({},commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const locale$2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},TimePicker=locale$2,locale$1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},locale$3),timePickerLocale:Object.assign({},TimePicker)},enUS=locale$1,typeTemplate$1="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:locale$4,DatePicker:enUS,TimePicker,Calendar:enUS,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},defaultLocale=localeValues;let runtimeLocale=Object.assign({},defaultLocale.Modal),localeList=[];const generateLocale=()=>localeList.reduce((C,$)=>Object.assign(Object.assign({},C),$),defaultLocale.Modal);function changeConfirmLocale(C){if(C){const $=Object.assign({},C);return localeList.push($),runtimeLocale=generateLocale(),()=>{localeList=localeList.filter(V=>V!==$),runtimeLocale=generateLocale()}}runtimeLocale=Object.assign({},defaultLocale.Modal)}function getConfirmLocale(){return runtimeLocale}const LocaleContext=React.createContext(void 0),LocaleContext$1=LocaleContext,useLocale=(C,$)=>{const V=React__namespace.useContext(LocaleContext$1),F=React__namespace.useMemo(()=>{var J;const ee=$||defaultLocale[C],te=(J=V==null?void 0:V[C])!==null&&J!==void 0?J:{};return Object.assign(Object.assign({},typeof ee=="function"?ee():ee),te||{})},[C,$,V]),K=React__namespace.useMemo(()=>{const J=V==null?void 0:V.locale;return V!=null&&V.exist&&!J?defaultLocale.locale:J},[V]);return[F,K]},useLocale$1=useLocale,ANT_MARK="internalMark",LocaleProvider=C=>{const{locale:$={},children:V,_ANT_MARK__:F}=C;if(process.env.NODE_ENV!=="production"){const J=devUseWarning("LocaleProvider");process.env.NODE_ENV!=="production"&&J(F===ANT_MARK,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}React__namespace.useEffect(()=>changeConfirmLocale($==null?void 0:$.Modal),[$]);const K=React__namespace.useMemo(()=>Object.assign(Object.assign({},$),{exist:!0}),[$]);return React__namespace.createElement(LocaleContext$1.Provider,{value:K},V)};process.env.NODE_ENV!=="production"&&(LocaleProvider.displayName="LocaleProvider");const LocaleProvider$1=LocaleProvider,defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
44
+ `))):ue="{".concat(ue,"}"),[ue,le]};function uniqueHash(C,$){return murmur2("".concat(C.join("%")).concat($))}function Empty$3(){return null}var STYLE_PREFIX="style";function useStyleRegister(C,$){var V=C.token,F=C.path,K=C.hashId,J=C.layer,ee=C.nonce,te=C.clientOnly,ne=C.order,re=ne===void 0?0:ne,ae=React__namespace.useContext(StyleContext),oe=ae.autoClear,ie=ae.mock,se=ae.defaultCache,ce=ae.hashPriority,ue=ae.container,le=ae.ssrInline,ve=ae.transformers,fe=ae.linters,ge=ae.cache,pe=ae.layer,de=V._tokenKey,me=[de];pe&&me.push("layer"),me.push.apply(me,_toConsumableArray(F));var ye=isClientSide;process.env.NODE_ENV!=="production"&&ie!==void 0&&(ye=ie==="client");var _e=useGlobalCache(STYLE_PREFIX,me,function(){var Ce=me.join("|");if(existPath(Ce)){var xe=getStyleAndHash(Ce),$e=_slicedToArray(xe,2),Ie=$e[0],Fe=$e[1];if(Ie)return[Ie,de,Fe,{},te,re]}var Ne=$(),De=parseStyle(Ne,{hashId:K,hashPriority:ce,layer:pe?J:void 0,path:F.join("-"),transformers:ve,linters:fe}),Oe=_slicedToArray(De,2),Te=Oe[0],Ae=Oe[1],ke=normalizeStyle(Te),je=uniqueHash(me,ke);return[ke,de,je,Ae,te,re]},function(Ce,xe){var $e=_slicedToArray(Ce,3),Ie=$e[2];(xe||oe)&&isClientSide&&removeCSS(Ie,{mark:ATTR_MARK})},function(Ce){var xe=_slicedToArray(Ce,4),$e=xe[0];xe[1];var Ie=xe[2],Fe=xe[3];if(ye&&$e!==CSS_FILE_STYLE){var Ne={mark:ATTR_MARK,prepend:pe?!1:"queue",attachTo:ue,priority:re},De=typeof ee=="function"?ee():ee;De&&(Ne.csp={nonce:De});var Oe=[],Te=[];Object.keys(Fe).forEach(function(ke){ke.startsWith("@layer")?Oe.push(ke):Te.push(ke)}),Oe.forEach(function(ke){updateCSS(normalizeStyle(Fe[ke]),"_layer-".concat(ke),_objectSpread2(_objectSpread2({},Ne),{},{prepend:!0}))});var Ae=updateCSS($e,Ie,Ne);Ae[CSS_IN_JS_INSTANCE]=ge.instanceId,Ae.setAttribute(ATTR_TOKEN,de),process.env.NODE_ENV!=="production"&&Ae.setAttribute(ATTR_CACHE_PATH,me.join("|")),Te.forEach(function(ke){updateCSS(normalizeStyle(Fe[ke]),"_effect-".concat(ke),Ne)})}}),he=_slicedToArray(_e,3),be=he[0],Se=he[1],Re=he[2];return function(Ce){var xe;if(!le||ye||!se)xe=React__namespace.createElement(Empty$3,null);else{var $e;xe=React__namespace.createElement("style",_extends({},($e={},_defineProperty($e,ATTR_TOKEN,Se),_defineProperty($e,ATTR_MARK,Re),$e),{dangerouslySetInnerHTML:{__html:be}}))}return React__namespace.createElement(React__namespace.Fragment,null,xe,Ce)}}var extract$1=function($,V,F){var K=_slicedToArray($,6),J=K[0],ee=K[1],te=K[2],ne=K[3],re=K[4],ae=K[5],oe=F||{},ie=oe.plain;if(re)return null;var se=J,ce={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ae)};return se=toStyleStr(J,ee,te,ce,ie),ne&&Object.keys(ne).forEach(function(ue){if(!V[ue]){V[ue]=!0;var le=normalizeStyle(ne[ue]),ve=toStyleStr(le,ee,"_effect-".concat(ue),ce,ie);ue.startsWith("@layer")?se=ve+se:se+=ve}}),[ae,te,se]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function($,V){var F=$.key,K=$.prefix,J=$.unitless,ee=$.ignore,te=$.token,ne=$.scope,re=ne===void 0?"":ne,ae=React.useContext(StyleContext),oe=ae.cache.instanceId,ie=ae.container,se=te._tokenKey,ce=[].concat(_toConsumableArray($.path),[F,re,se]),ue=useGlobalCache(CSS_VAR_PREFIX,ce,function(){var le=V(),ve=transformToken(le,F,{prefix:K,unitless:J,ignore:ee,scope:re}),fe=_slicedToArray(ve,2),ge=fe[0],pe=fe[1],de=uniqueHash(ce,pe);return[ge,pe,de,F]},function(le){var ve=_slicedToArray(le,3),fe=ve[2];isClientSide&&removeCSS(fe,{mark:ATTR_MARK})},function(le){var ve=_slicedToArray(le,3),fe=ve[1],ge=ve[2];if(fe){var pe=updateCSS(fe,ge,{mark:ATTR_MARK,prepend:"queue",attachTo:ie,priority:-999});pe[CSS_IN_JS_INSTANCE]=oe,pe.setAttribute(ATTR_TOKEN,F)}});return ue},extract=function($,V,F){var K=_slicedToArray($,4),J=K[1],ee=K[2],te=K[3],ne=F||{},re=ne.plain;if(!J)return null;var ae=-999,oe={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ae)},ie=toStyleStr(J,te,ee,oe,re);return[ae,ee,ie]},_ExtractStyleFns;_ExtractStyleFns={},_defineProperty(_ExtractStyleFns,STYLE_PREFIX,extract$1),_defineProperty(_ExtractStyleFns,TOKEN_PREFIX,extract$2),_defineProperty(_ExtractStyleFns,CSS_VAR_PREFIX,extract);var Keyframe=function(){function C($,V){_classCallCheck(this,C),_defineProperty(this,"name",void 0),_defineProperty(this,"style",void 0),_defineProperty(this,"_keyframe",!0),this.name=$,this.style=V}return _createClass(C,[{key:"getName",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return V?"".concat(V,"-").concat(this.name):this.name}}]),C}();function noSplit(C){return C.notSplit=!0,C}noSplit(["borderTop","borderBottom"]),noSplit(["borderTop"]),noSplit(["borderBottom"]),noSplit(["borderLeft","borderRight"]),noSplit(["borderLeft"]),noSplit(["borderRight"]);var IconContext=React.createContext({});const Context$2=IconContext;function _toArray(C){return _arrayWithHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableRest()}function get(C,$){for(var V=C,F=0;F<$.length;F+=1){if(V==null)return;V=V[$[F]]}return V}function internalSet(C,$,V,F){if(!$.length)return V;var K=_toArray($),J=K[0],ee=K.slice(1),te;return!C&&typeof J=="number"?te=[]:Array.isArray(C)?te=_toConsumableArray(C):te=_objectSpread2({},C),F&&V===void 0&&ee.length===1?delete te[J][ee[0]]:te[J]=internalSet(te[J],ee,V,F),te}function set(C,$,V){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return $.length&&F&&V===void 0&&!get(C,$.slice(0,-1))?C:internalSet(C,$,V,F)}function isObject(C){return _typeof(C)==="object"&&C!==null&&Object.getPrototypeOf(C)===Object.prototype}function createEmpty(C){return Array.isArray(C)?[]:{}}var keys=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function merge$1(){for(var C=arguments.length,$=new Array(C),V=0;V<C;V++)$[V]=arguments[V];var F=createEmpty($[0]);return $.forEach(function(K){function J(ee,te){var ne=new Set(te),re=get(K,ee),ae=Array.isArray(re);if(ae||isObject(re)){if(!ne.has(re)){ne.add(re);var oe=get(F,ee);ae?F=set(F,ee,[]):(!oe||_typeof(oe)!=="object")&&(F=set(F,ee,createEmpty(re))),keys(re).forEach(function(ie){J([].concat(_toConsumableArray(ee),[ie]),ne)})}}else F=set(F,ee,re)}J([])}),F}function noop$3(){}let deprecatedWarnList=null;function resetWarned(){deprecatedWarnList=null,resetWarned$1()}let warning$4=noop$3;process.env.NODE_ENV!=="production"&&(warning$4=(C,$,V)=>{warningOnce(C,`[antd: ${$}] ${V}`),process.env.NODE_ENV==="test"&&resetWarned()});const WarningContext=React__namespace.createContext({}),devUseWarning=process.env.NODE_ENV!=="production"?C=>{const{strict:$}=React__namespace.useContext(WarningContext),V=(F,K,J)=>{if(!F)if($===!1&&K==="deprecated"){const ee=deprecatedWarnList;deprecatedWarnList||(deprecatedWarnList={}),deprecatedWarnList[C]=deprecatedWarnList[C]||[],deprecatedWarnList[C].includes(J||"")||deprecatedWarnList[C].push(J||""),ee||console.warn("[antd] There exists deprecated usage in your code:",deprecatedWarnList)}else process.env.NODE_ENV!=="production"&&warning$4(F,C,J)};return V.deprecated=(F,K,J,ee)=>{V(F,"deprecated",`\`${K}\` is deprecated. Please use \`${J}\` instead.${ee?` ${ee}`:""}`)},V}:()=>{const C=()=>{};return C.deprecated=noop$3,C},warning$5=warning$4,ValidateMessagesContext=React.createContext(void 0);var locale$4={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},locale$3=_objectSpread2(_objectSpread2({},commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const locale$2={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},TimePicker=locale$2,locale$1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},locale$3),timePickerLocale:Object.assign({},TimePicker)},enUS=locale$1,typeTemplate$1="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:locale$4,DatePicker:enUS,TimePicker,Calendar:enUS,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},defaultLocale=localeValues;let runtimeLocale=Object.assign({},defaultLocale.Modal),localeList=[];const generateLocale=()=>localeList.reduce((C,$)=>Object.assign(Object.assign({},C),$),defaultLocale.Modal);function changeConfirmLocale(C){if(C){const $=Object.assign({},C);return localeList.push($),runtimeLocale=generateLocale(),()=>{localeList=localeList.filter(V=>V!==$),runtimeLocale=generateLocale()}}runtimeLocale=Object.assign({},defaultLocale.Modal)}function getConfirmLocale(){return runtimeLocale}const LocaleContext=React.createContext(void 0),LocaleContext$1=LocaleContext,useLocale=(C,$)=>{const V=React__namespace.useContext(LocaleContext$1),F=React__namespace.useMemo(()=>{var J;const ee=$||defaultLocale[C],te=(J=V==null?void 0:V[C])!==null&&J!==void 0?J:{};return Object.assign(Object.assign({},typeof ee=="function"?ee():ee),te||{})},[C,$,V]),K=React__namespace.useMemo(()=>{const J=V==null?void 0:V.locale;return V!=null&&V.exist&&!J?defaultLocale.locale:J},[V]);return[F,K]},useLocale$1=useLocale,ANT_MARK="internalMark",LocaleProvider=C=>{const{locale:$={},children:V,_ANT_MARK__:F}=C;if(process.env.NODE_ENV!=="production"){const J=devUseWarning("LocaleProvider");process.env.NODE_ENV!=="production"&&J(F===ANT_MARK,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}React__namespace.useEffect(()=>changeConfirmLocale($==null?void 0:$.Modal),[$]);const K=React__namespace.useMemo(()=>Object.assign(Object.assign({},$),{exist:!0}),[$]);return React__namespace.createElement(LocaleContext$1.Provider,{value:K},V)};process.env.NODE_ENV!=="production"&&(LocaleProvider.displayName="LocaleProvider");const LocaleProvider$1=LocaleProvider,defaultPresetColors={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
45
45
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
46
46
  'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),seedToken$1=seedToken,round=Math.round;function splitColorStr(C,$){const V=C.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],F=V.map(K=>parseFloat(K));for(let K=0;K<3;K+=1)F[K]=$(F[K]||0,V[K]||"",K);return V[3]?F[3]=V[3].includes("%")?F[3]/100:F[3]:F[3]=1,F}const parseHSVorHSL=(C,$,V)=>V===0?C:C/100;function limitRange(C,$){const V=$||255;return C>V?V:C<0?0:C}class FastColor{constructor($){_defineProperty(this,"isValid",!0),_defineProperty(this,"r",0),_defineProperty(this,"g",0),_defineProperty(this,"b",0),_defineProperty(this,"a",1),_defineProperty(this,"_h",void 0),_defineProperty(this,"_s",void 0),_defineProperty(this,"_l",void 0),_defineProperty(this,"_v",void 0),_defineProperty(this,"_max",void 0),_defineProperty(this,"_min",void 0),_defineProperty(this,"_brightness",void 0);function V(F){return F[0]in $&&F[1]in $&&F[2]in $}if($)if(typeof $=="string"){let K=function(J){return F.startsWith(J)};const F=$.trim();/^#?[A-F\d]{3,8}$/i.test(F)?this.fromHexString(F):K("rgb")?this.fromRgbString(F):K("hsl")?this.fromHslString(F):(K("hsv")||K("hsb"))&&this.fromHsvString(F)}else if($ instanceof FastColor)this.r=$.r,this.g=$.g,this.b=$.b,this.a=$.a,this._h=$._h,this._s=$._s,this._l=$._l,this._v=$._v;else if(V("rgb"))this.r=limitRange($.r),this.g=limitRange($.g),this.b=limitRange($.b),this.a=typeof $.a=="number"?limitRange($.a,1):1;else if(V("hsl"))this.fromHsl($);else if(V("hsv"))this.fromHsv($);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify($))}setR($){return this._sc("r",$)}setG($){return this._sc("g",$)}setB($){return this._sc("b",$)}setA($){return this._sc("a",$,1)}setHue($){const V=this.toHsv();return V.h=$,this._c(V)}getLuminance(){function $(J){const ee=J/255;return ee<=.03928?ee/12.92:Math.pow((ee+.055)/1.055,2.4)}const V=$(this.r),F=$(this.g),K=$(this.b);return .2126*V+.7152*F+.0722*K}getHue(){if(typeof this._h=="undefined"){const $=this.getMax()-this.getMin();$===0?this._h=0:this._h=round(60*(this.r===this.getMax()?(this.g-this.b)/$+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/$+2:(this.r-this.g)/$+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const $=this.getMax()-this.getMin();$===0?this._s=0:this._s=$/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($=10){const V=this.getHue(),F=this.getSaturation();let K=this.getLightness()-$/100;return K<0&&(K=0),this._c({h:V,s:F,l:K,a:this.a})}lighten($=10){const V=this.getHue(),F=this.getSaturation();let K=this.getLightness()+$/100;return K>1&&(K=1),this._c({h:V,s:F,l:K,a:this.a})}mix($,V=50){const F=this._c($),K=V/100,J=te=>(F[te]-this[te])*K+this[te],ee={r:round(J("r")),g:round(J("g")),b:round(J("b")),a:round(J("a")*100)/100};return this._c(ee)}tint($=10){return this.mix({r:255,g:255,b:255,a:1},$)}shade($=10){return this.mix({r:0,g:0,b:0,a:1},$)}onBackground($){const V=this._c($),F=this.a+V.a*(1-this.a),K=J=>round((this[J]*this.a+V[J]*V.a*(1-this.a))/F);return this._c({r:K("r"),g:K("g"),b:K("b"),a:F})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals($){return this.r===$.r&&this.g===$.g&&this.b===$.b&&this.a===$.a}clone(){return this._c(this)}toHexString(){let $="#";const V=(this.r||0).toString(16);$+=V.length===2?V:"0"+V;const F=(this.g||0).toString(16);$+=F.length===2?F:"0"+F;const K=(this.b||0).toString(16);if($+=K.length===2?K:"0"+K,typeof this.a=="number"&&this.a>=0&&this.a<1){const J=round(this.a*255).toString(16);$+=J.length===2?J:"0"+J}return $}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const $=this.getHue(),V=round(this.getSaturation()*100),F=round(this.getLightness()*100);return this.a!==1?`hsla(${$},${V}%,${F}%,${this.a})`:`hsl(${$},${V}%,${F}%)`}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($,V,F){const K=this.clone();return K[$]=limitRange(V,F),K}_c($){return new this.constructor($)}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($){const V=$.replace("#","");function F(K,J){return parseInt(V[K]+V[J||K],16)}V.length<6?(this.r=F(0),this.g=F(1),this.b=F(2),this.a=V[3]?F(3)/255:1):(this.r=F(0,1),this.g=F(2,3),this.b=F(4,5),this.a=V[6]?F(6,7)/255:1)}fromHsl({h:$,s:V,l:F,a:K}){if(this._h=$%360,this._s=V,this._l=F,this.a=typeof K=="number"?K:1,V<=0){const ie=round(F*255);this.r=ie,this.g=ie,this.b=ie}let J=0,ee=0,te=0;const ne=$/60,re=(1-Math.abs(2*F-1))*V,ae=re*(1-Math.abs(ne%2-1));ne>=0&&ne<1?(J=re,ee=ae):ne>=1&&ne<2?(J=ae,ee=re):ne>=2&&ne<3?(ee=re,te=ae):ne>=3&&ne<4?(ee=ae,te=re):ne>=4&&ne<5?(J=ae,te=re):ne>=5&&ne<6&&(J=re,te=ae);const oe=F-re/2;this.r=round((J+oe)*255),this.g=round((ee+oe)*255),this.b=round((te+oe)*255)}fromHsv({h:$,s:V,v:F,a:K}){this._h=$%360,this._s=V,this._v=F,this.a=typeof K=="number"?K:1;const J=round(F*255);if(this.r=J,this.g=J,this.b=J,V<=0)return;const ee=$/60,te=Math.floor(ee),ne=ee-te,re=round(F*(1-V)*255),ae=round(F*(1-V*ne)*255),oe=round(F*(1-V*(1-ne))*255);switch(te){case 0:this.g=oe,this.b=re;break;case 1:this.r=ae,this.b=re;break;case 2:this.r=re,this.b=oe;break;case 3:this.r=re,this.g=ae;break;case 4:this.r=oe,this.g=re;break;case 5:default:this.g=re,this.b=ae;break}}fromHsvString($){const V=splitColorStr($,parseHSVorHSL);this.fromHsv({h:V[0],s:V[1],v:V[2],a:V[3]})}fromHslString($){const V=splitColorStr($,parseHSVorHSL);this.fromHsl({h:V[0],s:V[1],l:V[2],a:V[3]})}fromRgbString($){const V=splitColorStr($,(F,K)=>K.includes("%")?round(F/100*255):F);this.r=V[0],this.g=V[1],this.b=V[2],this.a=V[3]}}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 getHue(C,$,V){var F;return Math.round(C.h)>=60&&Math.round(C.h)<=240?F=V?Math.round(C.h)-hueStep*$:Math.round(C.h)+hueStep*$:F=V?Math.round(C.h)+hueStep*$:Math.round(C.h)-hueStep*$,F<0?F+=360:F>=360&&(F-=360),F}function getSaturation(C,$,V){if(C.h===0&&C.s===0)return C.s;var F;return V?F=C.s-saturationStep*$:$===darkColorCount?F=C.s+saturationStep:F=C.s+saturationStep2*$,F>1&&(F=1),V&&$===lightColorCount&&F>.1&&(F=.1),F<.06&&(F=.06),Math.round(F*100)/100}function getValue$1(C,$,V){var F;return V?F=C.v+brightnessStep1*$:F=C.v-brightnessStep2*$,F=Math.max(0,Math.min(1,F)),Math.round(F*100)/100}function generate$1(C){for(var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=[],F=new FastColor(C),K=F.toHsv(),J=lightColorCount;J>0;J-=1){var ee=new FastColor({h:getHue(K,J,!0),s:getSaturation(K,J,!0),v:getValue$1(K,J,!0)});V.push(ee)}V.push(F);for(var te=1;te<=darkColorCount;te+=1){var ne=new FastColor({h:getHue(K,te),s:getSaturation(K,te),v:getValue$1(K,te)});V.push(ne)}return $.theme==="dark"?darkColorMap.map(function(re){var ae=re.index,oe=re.amount;return new FastColor($.backgroundColor||"#141414").mix(V[ae],oe).toHexString()}):V.map(function(re){return re.toHexString()})}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},red=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];red.primary=red[5];var volcano=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];volcano.primary=volcano[5];var orange=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];orange.primary=orange[5];var gold=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gold.primary=gold[5];var yellow=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yellow.primary=yellow[5];var lime=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lime.primary=lime[5];var green=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];green.primary=green[5];var cyan=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cyan.primary=cyan[5];var blue=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];blue.primary=blue[5];var geekblue=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];geekblue.primary=geekblue[5];var purple=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];purple.primary=purple[5];var magenta=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];magenta.primary=magenta[5];var grey=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];grey.primary=grey[5];var presetPalettes={red,volcano,orange,gold,yellow,lime,green,cyan,blue,geekblue,purple,magenta,grey};function genColorMapToken(C,$){let{generateColorPalettes:V,generateNeutralColorPalettes:F}=$;const{colorSuccess:K,colorWarning:J,colorError:ee,colorInfo:te,colorPrimary:ne,colorBgBase:re,colorTextBase:ae}=C,oe=V(ne),ie=V(K),se=V(J),ce=V(ee),ue=V(te),le=F(re,ae),ve=C.colorLink||C.colorInfo,fe=V(ve),ge=new FastColor(ce[1]).mix(new FastColor(ce[3]),50).toHexString();return Object.assign(Object.assign({},le),{colorPrimaryBg:oe[1],colorPrimaryBgHover:oe[2],colorPrimaryBorder:oe[3],colorPrimaryBorderHover:oe[4],colorPrimaryHover:oe[5],colorPrimary:oe[6],colorPrimaryActive:oe[7],colorPrimaryTextHover:oe[8],colorPrimaryText:oe[9],colorPrimaryTextActive:oe[10],colorSuccessBg:ie[1],colorSuccessBgHover:ie[2],colorSuccessBorder:ie[3],colorSuccessBorderHover:ie[4],colorSuccessHover:ie[4],colorSuccess:ie[6],colorSuccessActive:ie[7],colorSuccessTextHover:ie[8],colorSuccessText:ie[9],colorSuccessTextActive:ie[10],colorErrorBg:ce[1],colorErrorBgHover:ce[2],colorErrorBgFilledHover:ge,colorErrorBgActive:ce[3],colorErrorBorder:ce[3],colorErrorBorderHover:ce[4],colorErrorHover:ce[5],colorError:ce[6],colorErrorActive:ce[7],colorErrorTextHover:ce[8],colorErrorText:ce[9],colorErrorTextActive:ce[10],colorWarningBg:se[1],colorWarningBgHover:se[2],colorWarningBorder:se[3],colorWarningBorderHover:se[4],colorWarningHover:se[4],colorWarning:se[6],colorWarningActive:se[7],colorWarningTextHover:se[8],colorWarningText:se[9],colorWarningTextActive:se[10],colorInfoBg:ue[1],colorInfoBgHover:ue[2],colorInfoBorder:ue[3],colorInfoBorderHover:ue[4],colorInfoHover:ue[4],colorInfo:ue[6],colorInfoActive:ue[7],colorInfoTextHover:ue[8],colorInfoText:ue[9],colorInfoTextActive:ue[10],colorLinkHover:fe[4],colorLink:fe[6],colorLinkActive:fe[7],colorBgMask:new FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const genRadius=C=>{let $=C,V=C,F=C,K=C;return C<6&&C>=5?$=C+1:C<16&&C>=6?$=C+2:C>=16&&($=16),C<7&&C>=5?V=4:C<8&&C>=7?V=5:C<14&&C>=8?V=6:C<16&&C>=14?V=7:C>=16&&(V=8),C<6&&C>=2?F=1:C>=6&&(F=2),C>4&&C<8?K=4:C>=8&&(K=6),{borderRadius:C,borderRadiusXS:F,borderRadiusSM:V,borderRadiusLG:$,borderRadiusOuter:K}},genRadius$1=genRadius;function genCommonMapToken(C){const{motionUnit:$,motionBase:V,borderRadius:F,lineWidth:K}=C;return Object.assign({motionDurationFast:`${(V+$).toFixed(1)}s`,motionDurationMid:`${(V+$*2).toFixed(1)}s`,motionDurationSlow:`${(V+$*3).toFixed(1)}s`,lineWidthBold:K+1},genRadius$1(F))}const genControlHeight=C=>{const{controlHeight:$}=C;return{controlHeightSM:$*.75,controlHeightXS:$*.5,controlHeightLG:$*1.25}},genControlHeight$1=genControlHeight;function getLineHeight(C){return(C+8)/C}function getFontSizes(C){const $=Array.from({length:10}).map((V,F)=>{const K=F-1,J=C*Math.pow(Math.E,K/5),ee=F>1?Math.floor(J):Math.ceil(J);return Math.floor(ee/2)*2});return $[1]=C,$.map(V=>({size:V,lineHeight:getLineHeight(V)}))}const genFontMapToken=C=>{const $=getFontSizes(C),V=$.map(ae=>ae.size),F=$.map(ae=>ae.lineHeight),K=V[1],J=V[0],ee=V[2],te=F[1],ne=F[0],re=F[2];return{fontSizeSM:J,fontSize:K,fontSizeLG:ee,fontSizeXL:V[3],fontSizeHeading1:V[6],fontSizeHeading2:V[5],fontSizeHeading3:V[4],fontSizeHeading4:V[3],fontSizeHeading5:V[2],lineHeight:te,lineHeightLG:re,lineHeightSM:ne,fontHeight:Math.round(te*K),fontHeightLG:Math.round(re*ee),fontHeightSM:Math.round(ne*J),lineHeightHeading1:F[6],lineHeightHeading2:F[5],lineHeightHeading3:F[4],lineHeightHeading4:F[3],lineHeightHeading5:F[2]}},genFontMapToken$1=genFontMapToken;function genSizeMapToken(C){const{sizeUnit:$,sizeStep:V}=C;return{sizeXXL:$*(V+8),sizeXL:$*(V+4),sizeLG:$*(V+2),sizeMD:$*(V+1),sizeMS:$*V,size:$*V,sizeSM:$*(V-1),sizeXS:$*(V-2),sizeXXS:$*(V-3)}}const getAlphaColor$1=(C,$)=>new FastColor(C).setA($).toRgbString(),getSolidColor=(C,$)=>new FastColor(C).darken($).toHexString(),generateColorPalettes=C=>{const $=generate$1(C);return{1:$[0],2:$[1],3:$[2],4:$[3],5:$[4],6:$[5],7:$[6],8:$[4],9:$[5],10:$[6]}},generateNeutralColorPalettes=(C,$)=>{const V=C||"#fff",F=$||"#000";return{colorBgBase:V,colorTextBase:F,colorText:getAlphaColor$1(F,.88),colorTextSecondary:getAlphaColor$1(F,.65),colorTextTertiary:getAlphaColor$1(F,.45),colorTextQuaternary:getAlphaColor$1(F,.25),colorFill:getAlphaColor$1(F,.15),colorFillSecondary:getAlphaColor$1(F,.06),colorFillTertiary:getAlphaColor$1(F,.04),colorFillQuaternary:getAlphaColor$1(F,.02),colorBgSolid:getAlphaColor$1(F,1),colorBgSolidHover:getAlphaColor$1(F,.75),colorBgSolidActive:getAlphaColor$1(F,.95),colorBgLayout:getSolidColor(V,4),colorBgContainer:getSolidColor(V,0),colorBgElevated:getSolidColor(V,0),colorBgSpotlight:getAlphaColor$1(F,.85),colorBgBlur:"transparent",colorBorder:getSolidColor(V,15),colorBorderSecondary:getSolidColor(V,6)}};function derivative(C){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;const $=Object.keys(defaultPresetColors).map(V=>{const F=C[V]===presetPrimaryColors[V]?presetPalettes[V]:generate$1(C[V]);return Array.from({length:10},()=>1).reduce((K,J,ee)=>(K[`${V}-${ee+1}`]=F[ee],K[`${V}${ee+1}`]=F[ee],K),{})}).reduce((V,F)=>(V=Object.assign(Object.assign({},V),F),V),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},C),$),genColorMapToken(C,{generateColorPalettes,generateNeutralColorPalettes})),genFontMapToken$1(C.fontSize)),genSizeMapToken(C)),genControlHeight$1(C)),genCommonMapToken(C))}const defaultTheme=createTheme(derivative),defaultTheme$1=defaultTheme,defaultConfig={token:seedToken$1,override:{override:seedToken$1},hashed:!0},DesignTokenContext=React.createContext(defaultConfig),defaultPrefixCls="ant",defaultIconPrefixCls="anticon",Variants=["outlined","borderless","filled","underlined"],defaultGetPrefixCls=(C,$)=>$||(C?`${defaultPrefixCls}-${C}`:defaultPrefixCls),ConfigContext=React__namespace.createContext({getPrefixCls:defaultGetPrefixCls,iconPrefixCls:defaultIconPrefixCls}),EMPTY_OBJECT={};function useComponentConfig(C){const $=React__namespace.useContext(ConfigContext),{getPrefixCls:V,direction:F,getPopupContainer:K}=$,J=$[C];return Object.assign(Object.assign({classNames:EMPTY_OBJECT,styles:EMPTY_OBJECT},J),{getPrefixCls:V,direction:F,getPopupContainer:K})}const dynamicStyleMark=`-ant-${Date.now()}-${Math.random()}`;function getStyle$1(C,$){const V={},F=(ee,te)=>{let ne=ee.clone();return ne=(te==null?void 0:te(ne))||ne,ne.toRgbString()},K=(ee,te)=>{const ne=new FastColor(ee),re=generate$1(ne.toRgbString());V[`${te}-color`]=F(ne),V[`${te}-color-disabled`]=re[1],V[`${te}-color-hover`]=re[4],V[`${te}-color-active`]=re[6],V[`${te}-color-outline`]=ne.clone().setA(.2).toRgbString(),V[`${te}-color-deprecated-bg`]=re[0],V[`${te}-color-deprecated-border`]=re[2]};if($.primaryColor){K($.primaryColor,"primary");const ee=new FastColor($.primaryColor),te=generate$1(ee.toRgbString());te.forEach((re,ae)=>{V[`primary-${ae+1}`]=re}),V["primary-color-deprecated-l-35"]=F(ee,re=>re.lighten(35)),V["primary-color-deprecated-l-20"]=F(ee,re=>re.lighten(20)),V["primary-color-deprecated-t-20"]=F(ee,re=>re.tint(20)),V["primary-color-deprecated-t-50"]=F(ee,re=>re.tint(50)),V["primary-color-deprecated-f-12"]=F(ee,re=>re.setA(re.a*.12));const ne=new FastColor(te[0]);V["primary-color-active-deprecated-f-30"]=F(ne,re=>re.setA(re.a*.3)),V["primary-color-active-deprecated-d-02"]=F(ne,re=>re.darken(2))}return $.successColor&&K($.successColor,"success"),$.warningColor&&K($.warningColor,"warning"),$.errorColor&&K($.errorColor,"error"),$.infoColor&&K($.infoColor,"info"),`
47
47
  :root {
@@ -80,7 +80,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
80
80
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
81
81
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
82
82
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
83
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),F)}var __rest$15=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},preserve={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},getComputedToken=(C,$,V)=>{const F=V.getDerivativeToken(C),{override:K}=$,J=__rest$15($,["override"]);let ee=Object.assign(Object.assign({},F),{override:K});return ee=formatToken(ee),J&&Object.entries(J).forEach(te=>{let[ne,re]=te;const{theme:ae}=re,oe=__rest$15(re,["theme"]);let ie=oe;ae&&(ie=getComputedToken(Object.assign(Object.assign({},ee),oe),{override:oe},ae)),ee[ne]=ie}),ee};function useToken(){const{token:C,hashed:$,theme:V,override:F,cssVar:K}=React.useContext(DesignTokenContext),J=`${version$1}-${$||""}`,ee=V||defaultTheme$1,[te,ne,re]=useCacheToken(ee,[seedToken$1,C],{salt:J,override:F,getComputedToken,formatToken,cssVar:K&&{prefix:K.prefix,key:K.key,unitless,ignore,preserve}});return[ee,re,$?ne:"",te,K]}const textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},resetComponent=function(C){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,listStyle:"none",fontFamily:$?"inherit":C.fontFamily}},resetIcon=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle$1=C=>({a:{color:C.colorLink,textDecoration:C.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive},"&:active, &:hover":{textDecoration:C.linkHoverDecoration,outline:0},"&:focus":{textDecoration:C.linkFocusDecoration,outline:0},"&[disabled]":{color:C.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(C,$,V,F)=>{const K=`[class^="${$}"], [class*=" ${$}"]`,J=V?`.${V}`:K,ee={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let te={};return F!==!1&&(te={fontFamily:C.fontFamily,fontSize:C.fontSize}),{[J]:Object.assign(Object.assign(Object.assign({},te),ee),{[K]:ee})}},genFocusOutline=(C,$)=>({outline:`${unit$1(C.lineWidthFocus)} solid ${C.colorPrimaryBorder}`,outlineOffset:$!=null?$:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=(C,$)=>({"&:focus-visible":Object.assign({},genFocusOutline(C,$))}),genIconStyle=C=>({[`.${C}`]:Object.assign(Object.assign({},resetIcon()),{[`.${C} .${C}-icon`]:{display:"block"}})}),operationUnit=C=>Object.assign(Object.assign({color:C.colorLink,textDecoration:C.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${C.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},genFocusStyle(C)),{"&:focus, &:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive}}),{genStyleHooks,genComponentStyleHook,genSubStyleComponent}=genStyleUtils({usePrefix:()=>{const{getPrefixCls:C,iconPrefixCls:$}=React.useContext(ConfigContext);return{rootPrefixCls:C(),iconPrefixCls:$}},useToken:()=>{const[C,$,V,F,K]=useToken();return{theme:C,realToken:$,hashId:V,token:F,cssVar:K}},useCSP:()=>{const{csp:C}=React.useContext(ConfigContext);return C!=null?C:{}},getResetStyles:(C,$)=>{var V;const F=genLinkStyle$1(C);return[F,{"&":F},genIconStyle((V=$==null?void 0:$.prefix.iconPrefixCls)!==null&&V!==void 0?V:defaultIconPrefixCls)]},getCommonStyle:genCommonStyle,getCompUnitless:()=>unitless});function genPresetColor(C,$){return PresetColors.reduce((V,F)=>{const K=C[`${F}1`],J=C[`${F}3`],ee=C[`${F}6`],te=C[`${F}7`];return Object.assign(Object.assign({},V),$(F,{lightColor:K,lightBorderColor:J,darkColor:ee,textColor:te}))},{})}const useResetIconStyle=(C,$)=>{const[V,F]=useToken();return useStyleRegister({theme:V,token:F,hashId:"",path:["ant-design-icons",C],nonce:()=>$==null?void 0:$.nonce,layer:{name:"antd"}},()=>[genIconStyle(C)])},useStyle$D=useResetIconStyle,fullClone$1=Object.assign({},React__namespace),{useId:useId$3}=fullClone$1,useEmptyId=()=>"",useThemeKey=typeof useId$3=="undefined"?useEmptyId:useId$3,useThemeKey$1=useThemeKey;function useTheme(C,$,V){var F,K;const J=devUseWarning("ConfigProvider"),ee=C||{},te=ee.inherit===!1||!$?Object.assign(Object.assign({},defaultConfig),{hashed:(F=$==null?void 0:$.hashed)!==null&&F!==void 0?F:defaultConfig.hashed,cssVar:$==null?void 0:$.cssVar}):$,ne=useThemeKey$1();if(process.env.NODE_ENV!=="production"){const re=ee.cssVar||te.cssVar,ae=!!(typeof ee.cssVar=="object"&&(!((K=ee.cssVar)===null||K===void 0)&&K.key)||ne);process.env.NODE_ENV!=="production"&&J(!re||ae,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return useMemo(()=>{var re,ae;if(!C)return $;const oe=Object.assign({},te.components);Object.keys(C.components||{}).forEach(ce=>{oe[ce]=Object.assign(Object.assign({},oe[ce]),C.components[ce])});const ie=`css-var-${ne.replace(/:/g,"")}`,se=((re=ee.cssVar)!==null&&re!==void 0?re:te.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:V==null?void 0:V.prefixCls},typeof te.cssVar=="object"?te.cssVar:{}),typeof ee.cssVar=="object"?ee.cssVar:{}),{key:typeof ee.cssVar=="object"&&((ae=ee.cssVar)===null||ae===void 0?void 0:ae.key)||ie});return Object.assign(Object.assign(Object.assign({},te),ee),{token:Object.assign(Object.assign({},te.token),ee.token),components:oe,cssVar:se})},[ee,te],(re,ae)=>re.some((oe,ie)=>{const se=ae[ie];return!isEqual(oe,se,!0)}))}var _excluded$U=["children"],Context$1=React__namespace.createContext({});function MotionProvider(C){var $=C.children,V=_objectWithoutProperties(C,_excluded$U);return React__namespace.createElement(Context$1.Provider,{value:V},$)}var DomWrapper=function(C){_inherits(V,C);var $=_createSuper$7(V);function V(){return _classCallCheck(this,V),$.apply(this,arguments)}return _createClass(V,[{key:"render",value:function(){return this.props.children}}]),V}(React__namespace.Component);function useSyncState$2(C){var $=React__namespace.useReducer(function(te){return te+1},0),V=_slicedToArray($,2),F=V[1],K=React__namespace.useRef(C),J=useEvent(function(){return K.current}),ee=useEvent(function(te){K.current=typeof te=="function"?te(K.current):te,F()});return[J,ee]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(C,$){var V={};return V[C.toLowerCase()]=$.toLowerCase(),V["Webkit".concat(C)]="webkit".concat($),V["Moz".concat(C)]="moz".concat($),V["ms".concat(C)]="MS".concat($),V["O".concat(C)]="o".concat($.toLowerCase()),V}function getVendorPrefixes(C,$){var V={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return C&&("AnimationEvent"in $||delete V.animationend.animation,"TransitionEvent"in $||delete V.transitionend.transition),V}var vendorPrefixes=getVendorPrefixes(canUseDom(),typeof window!="undefined"?window:{}),style={};if(canUseDom()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(C){if(prefixedEventNames[C])return prefixedEventNames[C];var $=vendorPrefixes[C];if($)for(var V=Object.keys($),F=V.length,K=0;K<F;K+=1){var J=V[K];if(Object.prototype.hasOwnProperty.call($,J)&&J in style)return prefixedEventNames[C]=$[J],prefixedEventNames[C]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(C,$){if(!C)return null;if(_typeof(C)==="object"){var V=$.replace(/-\w/g,function(F){return F[1].toUpperCase()});return C[V]}return"".concat(C,"-").concat($)}const useDomMotionEvents=function(C){var $=React.useRef();function V(K){K&&(K.removeEventListener(transitionEndName,C),K.removeEventListener(animationEndName,C))}function F(K){$.current&&$.current!==K&&V($.current),K&&K!==$.current&&(K.addEventListener(transitionEndName,C),K.addEventListener(animationEndName,C),$.current=K)}return React__namespace.useEffect(function(){return function(){V($.current)}},[]),[F,V]};var useIsomorphicLayoutEffect$1=canUseDom()?React.useLayoutEffect:React.useEffect;const useNextFrame=function(){var C=React__namespace.useRef(null);function $(){wrapperRaf.cancel(C.current)}function V(F){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;$();var J=wrapperRaf(function(){K<=1?F({isCanceled:function(){return J!==C.current}}):V(F,K-1)});C.current=J}return React__namespace.useEffect(function(){return function(){$()}},[]),[V,$]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(C){return C===STEP_ACTIVE||C===STEP_ACTIVATED}const useStepQueue=function(C,$,V){var F=useSafeState(STEP_NONE),K=_slicedToArray(F,2),J=K[0],ee=K[1],te=useNextFrame(),ne=_slicedToArray(te,2),re=ne[0],ae=ne[1];function oe(){ee(STEP_PREPARE,!0)}var ie=$?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$1(function(){if(J!==STEP_NONE&&J!==STEP_ACTIVATED){var se=ie.indexOf(J),ce=ie[se+1],ue=V(J);ue===SkipStep?ee(ce,!0):ce&&re(function(le){function ve(){le.isCanceled()||ee(ce,!0)}ue===!0?ve():Promise.resolve(ue).then(ve)})}},[C,J]),React__namespace.useEffect(function(){return function(){ae()}},[]),[oe,J]};function useStatus(C,$,V,F){var K=F.motionEnter,J=K===void 0?!0:K,ee=F.motionAppear,te=ee===void 0?!0:ee,ne=F.motionLeave,re=ne===void 0?!0:ne,ae=F.motionDeadline,oe=F.motionLeaveImmediately,ie=F.onAppearPrepare,se=F.onEnterPrepare,ce=F.onLeavePrepare,ue=F.onAppearStart,le=F.onEnterStart,ve=F.onLeaveStart,fe=F.onAppearActive,ge=F.onEnterActive,pe=F.onLeaveActive,de=F.onAppearEnd,me=F.onEnterEnd,ye=F.onLeaveEnd,_e=F.onVisibleChanged,he=useSafeState(),be=_slicedToArray(he,2),Se=be[0],Re=be[1],Ce=useSyncState$2(STATUS_NONE),xe=_slicedToArray(Ce,2),$e=xe[0],Ie=xe[1],Fe=useSafeState(null),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],Te=$e(),Ae=React.useRef(!1),ke=React.useRef(null);function je(){return V()}var ze=React.useRef(!1);function Ve(){Ie(STATUS_NONE),Oe(null,!0)}var Xe=useEvent(function(Je){var ct=$e();if(ct!==STATUS_NONE){var dt=je();if(!(Je&&!Je.deadline&&Je.target!==dt)){var vt=ze.current,ht;ct===STATUS_APPEAR&&vt?ht=de==null?void 0:de(dt,Je):ct===STATUS_ENTER&&vt?ht=me==null?void 0:me(dt,Je):ct===STATUS_LEAVE&&vt&&(ht=ye==null?void 0:ye(dt,Je)),vt&&ht!==!1&&Ve()}}}),Ye=useDomMotionEvents(Xe),at=_slicedToArray(Ye,1),Ue=at[0],Le=function(ct){switch(ct){case STATUS_APPEAR:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,ie),STEP_START,ue),STEP_ACTIVE,fe);case STATUS_ENTER:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,se),STEP_START,le),STEP_ACTIVE,ge);case STATUS_LEAVE:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,ce),STEP_START,ve),STEP_ACTIVE,pe);default:return{}}},we=React__namespace.useMemo(function(){return Le(Te)},[Te]),Pe=useStepQueue(Te,!C,function(Je){if(Je===STEP_PREPARE){var ct=we[STEP_PREPARE];return ct?ct(je()):SkipStep}if(We in we){var dt;Oe(((dt=we[We])===null||dt===void 0?void 0:dt.call(we,je(),null))||null)}return We===STEP_ACTIVE&&Te!==STATUS_NONE&&(Ue(je()),ae>0&&(clearTimeout(ke.current),ke.current=setTimeout(function(){Xe({deadline:!0})},ae))),We===STEP_PREPARED&&Ve(),DoStep}),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=isActive(We);ze.current=Ke;var rt=React.useRef(null);useIsomorphicLayoutEffect$1(function(){if(!(Ae.current&&rt.current===$)){Re($);var Je=Ae.current;Ae.current=!0;var ct;!Je&&$&&te&&(ct=STATUS_APPEAR),Je&&$&&J&&(ct=STATUS_ENTER),(Je&&!$&&re||!Je&&oe&&!$&&re)&&(ct=STATUS_LEAVE);var dt=Le(ct);ct&&(C||dt[STEP_PREPARE])?(Ie(ct),He()):Ie(STATUS_NONE),rt.current=$}},[$]),React.useEffect(function(){(Te===STATUS_APPEAR&&!te||Te===STATUS_ENTER&&!J||Te===STATUS_LEAVE&&!re)&&Ie(STATUS_NONE)},[te,J,re]),React.useEffect(function(){return function(){Ae.current=!1,clearTimeout(ke.current)}},[]);var st=React__namespace.useRef(!1);React.useEffect(function(){Se&&(st.current=!0),Se!==void 0&&Te===STATUS_NONE&&((st.current||Se)&&(_e==null||_e(Se)),st.current=!0)},[Se,Te]);var it=De;return we[STEP_PREPARE]&&We===STEP_START&&(it=_objectSpread2({transition:"none"},it)),[Te,We,it,Se!=null?Se:$]}function genCSSMotion(C){var $=C;_typeof(C)==="object"&&($=C.transitionSupport);function V(K,J){return!!(K.motionName&&$&&J!==!1)}var F=React__namespace.forwardRef(function(K,J){var ee=K.visible,te=ee===void 0?!0:ee,ne=K.removeOnLeave,re=ne===void 0?!0:ne,ae=K.forceRender,oe=K.children,ie=K.motionName,se=K.leavedClassName,ce=K.eventProps,ue=React__namespace.useContext(Context$1),le=ue.motion,ve=V(K,le),fe=React.useRef(),ge=React.useRef();function pe(){try{return fe.current instanceof HTMLElement?fe.current:findDOMNode(ge.current)}catch(Ne){return null}}var de=useStatus(ve,te,pe,K),me=_slicedToArray(de,4),ye=me[0],_e=me[1],he=me[2],be=me[3],Se=React__namespace.useRef(be);be&&(Se.current=!0);var Re=React__namespace.useCallback(function(Ne){fe.current=Ne,fillRef(J,Ne)},[J]),Ce,xe=_objectSpread2(_objectSpread2({},ce),{},{visible:te});if(!oe)Ce=null;else if(ye===STATUS_NONE)be?Ce=oe(_objectSpread2({},xe),Re):!re&&Se.current&&se?Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{className:se}),Re):ae||!re&&!se?Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{style:{display:"none"}}),Re):Ce=null;else{var $e;_e===STEP_PREPARE?$e="prepare":isActive(_e)?$e="active":_e===STEP_START&&($e="start");var Ie=getTransitionName$1(ie,"".concat(ye,"-").concat($e));Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{className:classNames(getTransitionName$1(ie,ye),_defineProperty(_defineProperty({},Ie,Ie&&$e),ie,typeof ie=="string")),style:he}),Re)}if(React__namespace.isValidElement(Ce)&&supportRef(Ce)){var Fe=getNodeRef(Ce);Fe||(Ce=React__namespace.cloneElement(Ce,{ref:Re}))}return React__namespace.createElement(DomWrapper,{ref:ge},Ce)});return F.displayName="CSSMotion",F}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(C){var $;return C&&_typeof(C)==="object"&&"key"in C?$=C:$={key:C},_objectSpread2(_objectSpread2({},$),{},{key:String($.key)})}function parseKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.map(wrapKeyToObject)}function diffKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=[],F=0,K=$.length,J=parseKeys(C),ee=parseKeys($);J.forEach(function(re){for(var ae=!1,oe=F;oe<K;oe+=1){var ie=ee[oe];if(ie.key===re.key){F<oe&&(V=V.concat(ee.slice(F,oe).map(function(se){return _objectSpread2(_objectSpread2({},se),{},{status:STATUS_ADD})})),F=oe),V.push(_objectSpread2(_objectSpread2({},ie),{},{status:STATUS_KEEP})),F+=1,ae=!0;break}}ae||V.push(_objectSpread2(_objectSpread2({},re),{},{status:STATUS_REMOVE}))}),F<K&&(V=V.concat(ee.slice(F).map(function(re){return _objectSpread2(_objectSpread2({},re),{},{status:STATUS_ADD})})));var te={};V.forEach(function(re){var ae=re.key;te[ae]=(te[ae]||0)+1});var ne=Object.keys(te).filter(function(re){return te[re]>1});return ne.forEach(function(re){V=V.filter(function(ae){var oe=ae.key,ie=ae.status;return oe!==re||ie!==STATUS_REMOVE}),V.forEach(function(ae){ae.key===re&&(ae.status=STATUS_KEEP)})}),V}var _excluded$T=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$7=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,V=function(F){_inherits(J,F);var K=_createSuper$7(J);function J(){var ee;_classCallCheck(this,J);for(var te=arguments.length,ne=new Array(te),re=0;re<te;re++)ne[re]=arguments[re];return ee=K.call.apply(K,[this].concat(ne)),_defineProperty(_assertThisInitialized(ee),"state",{keyEntities:[]}),_defineProperty(_assertThisInitialized(ee),"removeKey",function(ae){ee.setState(function(oe){var ie=oe.keyEntities.map(function(se){return se.key!==ae?se:_objectSpread2(_objectSpread2({},se),{},{status:STATUS_REMOVED})});return{keyEntities:ie}},function(){var oe=ee.state.keyEntities,ie=oe.filter(function(se){var ce=se.status;return ce!==STATUS_REMOVED}).length;ie===0&&ee.props.onAllRemoved&&ee.props.onAllRemoved()})}),ee}return _createClass(J,[{key:"render",value:function(){var te=this,ne=this.state.keyEntities,re=this.props,ae=re.component,oe=re.children,ie=re.onVisibleChanged;re.onAllRemoved;var se=_objectWithoutProperties(re,_excluded$T),ce=ae||React__namespace.Fragment,ue={};return MOTION_PROP_NAMES.forEach(function(le){ue[le]=se[le],delete se[le]}),delete se.keys,React__namespace.createElement(ce,se,ne.map(function(le,ve){var fe=le.status,ge=_objectWithoutProperties(le,_excluded2$7),pe=fe===STATUS_ADD||fe===STATUS_KEEP;return React__namespace.createElement($,_extends({},ue,{key:ge.key,visible:pe,eventProps:ge,onVisibleChanged:function(me){ie==null||ie(me,{key:ge.key}),me||te.removeKey(ge.key)}}),function(de,me){return oe(_objectSpread2(_objectSpread2({},de),{},{index:ve}),me)})}))}}],[{key:"getDerivedStateFromProps",value:function(te,ne){var re=te.keys,ae=ne.keyEntities,oe=parseKeys(re),ie=diffKeys(ae,oe);return{keyEntities:ie.filter(function(se){var ce=ae.find(function(ue){var le=ue.key;return se.key===le});return!(ce&&ce.status===STATUS_REMOVED&&se.status===STATUS_REMOVE)})}}}]),J}(React__namespace.Component);return _defineProperty(V,"defaultProps",{component:"div"}),V}const CSSMotionList=genCSSMotionList(supportTransition);function MotionWrapper(C){const{children:$}=C,[,V]=useToken(),{motion:F}=V,K=React__namespace.useRef(!1);return K.current=K.current||F===!1,K.current?React__namespace.createElement(MotionProvider,{motion:F},$):$}const PropWarning=React__namespace.memo(C=>{let{dropdownMatchSelectWidth:$}=C;return devUseWarning("ConfigProvider").deprecated($===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(PropWarning.displayName="PropWarning");const PropWarning$1=process.env.NODE_ENV!=="production"?PropWarning:()=>null;var __rest$14=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};let existThemeConfig=!1;const warnContext=process.env.NODE_ENV!=="production"?C=>{process.env.NODE_ENV!=="production"&&warning$5(!existThemeConfig,C,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,PASSED_PROPS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let globalPrefixCls,globalIconPrefixCls,globalTheme,globalHolderRender;function getGlobalPrefixCls(){return globalPrefixCls||defaultPrefixCls}function getGlobalIconPrefixCls(){return globalIconPrefixCls||defaultIconPrefixCls}function isLegacyTheme(C){return Object.keys(C).some($=>$.endsWith("Color"))}const setGlobalConfig=C=>{const{prefixCls:$,iconPrefixCls:V,theme:F,holderRender:K}=C;$!==void 0&&(globalPrefixCls=$),V!==void 0&&(globalIconPrefixCls=V),"holderRender"in C&&(globalHolderRender=K),F&&(isLegacyTheme(F)?(process.env.NODE_ENV!=="production"&&warning$5(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),registerTheme(getGlobalPrefixCls(),F)):globalTheme=F)},globalConfig=()=>({getPrefixCls:(C,$)=>$||(C?`${getGlobalPrefixCls()}-${C}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=C=>{const{children:$,csp:V,autoInsertSpaceInButton:F,alert:K,anchor:J,form:ee,locale:te,componentSize:ne,direction:re,space:ae,splitter:oe,virtual:ie,dropdownMatchSelectWidth:se,popupMatchSelectWidth:ce,popupOverflow:ue,legacyLocale:le,parentContext:ve,iconPrefixCls:fe,theme:ge,componentDisabled:pe,segmented:de,statistic:me,spin:ye,calendar:_e,carousel:he,cascader:be,collapse:Se,typography:Re,checkbox:Ce,descriptions:xe,divider:$e,drawer:Ie,skeleton:Fe,steps:Ne,image:De,layout:Oe,list:Te,mentions:Ae,modal:ke,progress:je,result:ze,slider:Ve,breadcrumb:Xe,menu:Ye,pagination:at,input:Ue,textArea:Le,empty:we,badge:Pe,radio:Me,rate:He,switch:We,transfer:Ke,avatar:rt,message:st,tag:it,table:Je,card:ct,tabs:dt,timeline:vt,timePicker:ht,upload:bt,notification:Rt,tree:Tt,colorPicker:lt,datePicker:ut,rangePicker:Ge,flex:et,wave:Ze,dropdown:nt,warning:tt,tour:qe,tooltip:ot,popover:ft,popconfirm:yt,floatButtonGroup:$t,variant:kt,inputNumber:Dt,treeSelect:St}=C,Bt=React__namespace.useCallback((qt,ln)=>{const{prefixCls:Cn}=C;if(ln)return ln;const Wt=Cn||ve.getPrefixCls("");return qt?`${Wt}-${qt}`:Wt},[ve.getPrefixCls,C.prefixCls]),It=fe||ve.iconPrefixCls||defaultIconPrefixCls,Pt=V||ve.csp;useStyle$D(It,Pt);const wt=useTheme(ge,ve.theme,{prefixCls:Bt("")});process.env.NODE_ENV!=="production"&&(existThemeConfig=existThemeConfig||!!wt);const Ct={csp:Pt,autoInsertSpaceInButton:F,alert:K,anchor:J,locale:te||le,direction:re,space:ae,splitter:oe,virtual:ie,popupMatchSelectWidth:ce!=null?ce:se,popupOverflow:ue,getPrefixCls:Bt,iconPrefixCls:It,theme:wt,segmented:de,statistic:me,spin:ye,calendar:_e,carousel:he,cascader:be,collapse:Se,typography:Re,checkbox:Ce,descriptions:xe,divider:$e,drawer:Ie,skeleton:Fe,steps:Ne,image:De,input:Ue,textArea:Le,layout:Oe,list:Te,mentions:Ae,modal:ke,progress:je,result:ze,slider:Ve,breadcrumb:Xe,menu:Ye,pagination:at,empty:we,badge:Pe,radio:Me,rate:He,switch:We,transfer:Ke,avatar:rt,message:st,tag:it,table:Je,card:ct,tabs:dt,timeline:vt,timePicker:ht,upload:bt,notification:Rt,tree:Tt,colorPicker:lt,datePicker:ut,rangePicker:Ge,flex:et,wave:Ze,dropdown:nt,warning:tt,tour:qe,tooltip:ot,popover:ft,popconfirm:yt,floatButtonGroup:$t,variant:kt,inputNumber:Dt,treeSelect:St};process.env.NODE_ENV!=="production"&&devUseWarning("ConfigProvider")(!("autoInsertSpaceInButton"in C),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const At=Object.assign({},ve);Object.keys(Ct).forEach(qt=>{Ct[qt]!==void 0&&(At[qt]=Ct[qt])}),PASSED_PROPS.forEach(qt=>{const ln=C[qt];ln&&(At[qt]=ln)}),typeof F!="undefined"&&(At.button=Object.assign({autoInsertSpace:F},At.button));const Ht=useMemo(()=>At,At,(qt,ln)=>{const Cn=Object.keys(qt),Wt=Object.keys(ln);return Cn.length!==Wt.length||Cn.some(Jt=>qt[Jt]!==ln[Jt])}),{layer:Gt}=React__namespace.useContext(CssInJsStyleContext),zt=React__namespace.useMemo(()=>({prefixCls:It,csp:Pt,layer:Gt?"antd":void 0}),[It,Pt,Gt]);let Ft=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(PropWarning$1,{dropdownMatchSelectWidth:se}),$);const Vt=React__namespace.useMemo(()=>{var qt,ln,Cn,Wt;return merge$1(((qt=defaultLocale.Form)===null||qt===void 0?void 0:qt.defaultValidateMessages)||{},((Cn=(ln=Ht.locale)===null||ln===void 0?void 0:ln.Form)===null||Cn===void 0?void 0:Cn.defaultValidateMessages)||{},((Wt=Ht.form)===null||Wt===void 0?void 0:Wt.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Ht,ee==null?void 0:ee.validateMessages]);Object.keys(Vt).length>0&&(Ft=React__namespace.createElement(ValidateMessagesContext.Provider,{value:Vt},Ft)),te&&(Ft=React__namespace.createElement(LocaleProvider$1,{locale:te,_ANT_MARK__:ANT_MARK},Ft)),(It||Pt)&&(Ft=React__namespace.createElement(Context$2.Provider,{value:zt},Ft)),ne&&(Ft=React__namespace.createElement(SizeContextProvider,{size:ne},Ft)),Ft=React__namespace.createElement(MotionWrapper,null,Ft);const Kt=React__namespace.useMemo(()=>{const qt=wt||{},{algorithm:ln,token:Cn,components:Wt,cssVar:Jt}=qt,dn=__rest$14(qt,["algorithm","token","components","cssVar"]),sn=ln&&(!Array.isArray(ln)||ln.length>0)?createTheme(ln):defaultTheme$1,gn={};Object.entries(Wt||{}).forEach(Ot=>{let[pt,_t]=Ot;const Et=Object.assign({},_t);"algorithm"in Et&&(Et.algorithm===!0?Et.theme=sn:(Array.isArray(Et.algorithm)||typeof Et.algorithm=="function")&&(Et.theme=createTheme(Et.algorithm)),delete Et.algorithm),gn[pt]=Et});const mt=Object.assign(Object.assign({},seedToken$1),Cn);return Object.assign(Object.assign({},dn),{theme:sn,token:mt,components:gn,override:Object.assign({override:mt},gn),cssVar:Jt})},[wt]);return ge&&(Ft=React__namespace.createElement(DesignTokenContext.Provider,{value:Kt},Ft)),Ht.warning&&(Ft=React__namespace.createElement(WarningContext.Provider,{value:Ht.warning},Ft)),pe!==void 0&&(Ft=React__namespace.createElement(DisabledContextProvider,{disabled:pe},Ft)),React__namespace.createElement(ConfigContext.Provider,{value:Ht},Ft)},ConfigProvider=C=>{const $=React__namespace.useContext(ConfigContext),V=React__namespace.useContext(LocaleContext$1);return React__namespace.createElement(ProviderChildren,Object.assign({parentContext:$,legacyLocale:V},C))};ConfigProvider.ConfigContext=ConfigContext,ConfigProvider.SizeContext=SizeContext$1,ConfigProvider.config=setGlobalConfig,ConfigProvider.useConfig=useConfig,Object.defineProperty(ConfigProvider,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&warning$5(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),SizeContext$1)}),process.env.NODE_ENV!=="production"&&(ConfigProvider.displayName="ConfigProvider");var CheckCircleFilled$2={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 CheckCircleFilledSvg=CheckCircleFilled$2;function getRoot(C){var $;return C==null||($=C.getRootNode)===null||$===void 0?void 0:$.call(C)}function inShadow(C){return getRoot(C)instanceof ShadowRoot}function getShadowRoot(C){return inShadow(C)?getRoot(C):null}function camelCase(C){return C.replace(/-(.)/g,function($,V){return V.toUpperCase()})}function warning$3(C,$){warningOnce(C,"[@ant-design/icons] ".concat($))}function isIconDefinition(C){return _typeof(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&(_typeof(C.icon)==="object"||typeof C.icon=="function")}function normalizeAttrs(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function($,V){var F=C[V];switch(V){case"class":$.className=F,delete $.class;break;default:delete $[V],$[camelCase(V)]=F}return $},{})}function generate(C,$,V){return V?React.createElement(C.tag,_objectSpread2(_objectSpread2({key:$},normalizeAttrs(C.attrs)),V),(C.children||[]).map(function(F,K){return generate(F,"".concat($,"-").concat(C.tag,"-").concat(K))})):React.createElement(C.tag,_objectSpread2({key:$},normalizeAttrs(C.attrs)),(C.children||[]).map(function(F,K){return generate(F,"".concat($,"-").concat(C.tag,"-").concat(K))}))}function getSecondaryColor(C){return generate$1(C)[0]}function normalizeTwoToneColors(C){return C?Array.isArray(C)?C:[C]:[]}var iconStyles=`
83
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),F)}var __rest$15=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const unitless={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},preserve={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},getComputedToken=(C,$,V)=>{const F=V.getDerivativeToken(C),{override:K}=$,J=__rest$15($,["override"]);let ee=Object.assign(Object.assign({},F),{override:K});return ee=formatToken(ee),J&&Object.entries(J).forEach(te=>{let[ne,re]=te;const{theme:ae}=re,oe=__rest$15(re,["theme"]);let ie=oe;ae&&(ie=getComputedToken(Object.assign(Object.assign({},ee),oe),{override:oe},ae)),ee[ne]=ie}),ee};function useToken(){const{token:C,hashed:$,theme:V,override:F,cssVar:K}=React.useContext(DesignTokenContext),J=`${version$1}-${$||""}`,ee=V||defaultTheme$1,[te,ne,re]=useCacheToken(ee,[seedToken$1,C],{salt:J,override:F,getComputedToken,formatToken,cssVar:K&&{prefix:K.prefix,key:K.key,unitless,ignore,preserve}});return[ee,re,$?ne:"",te,K]}const textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},resetComponent=function(C){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,listStyle:"none",fontFamily:$?"inherit":C.fontFamily}},resetIcon=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle$1=C=>({a:{color:C.colorLink,textDecoration:C.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive},"&:active, &:hover":{textDecoration:C.linkHoverDecoration,outline:0},"&:focus":{textDecoration:C.linkFocusDecoration,outline:0},"&[disabled]":{color:C.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(C,$,V,F)=>{const K=`[class^="${$}"], [class*=" ${$}"]`,J=V?`.${V}`:K,ee={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let te={};return F!==!1&&(te={fontFamily:C.fontFamily,fontSize:C.fontSize}),{[J]:Object.assign(Object.assign(Object.assign({},te),ee),{[K]:ee})}},genFocusOutline=(C,$)=>({outline:`${unit$1(C.lineWidthFocus)} solid ${C.colorPrimaryBorder}`,outlineOffset:$!=null?$:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=(C,$)=>({"&:focus-visible":Object.assign({},genFocusOutline(C,$))}),genIconStyle=C=>({[`.${C}`]:Object.assign(Object.assign({},resetIcon()),{[`.${C} .${C}-icon`]:{display:"block"}})}),operationUnit=C=>Object.assign(Object.assign({color:C.colorLink,textDecoration:C.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${C.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},genFocusStyle(C)),{"&:focus, &:hover":{color:C.colorLinkHover},"&:active":{color:C.colorLinkActive}}),{genStyleHooks,genComponentStyleHook,genSubStyleComponent}=genStyleUtils({usePrefix:()=>{const{getPrefixCls:C,iconPrefixCls:$}=React.useContext(ConfigContext);return{rootPrefixCls:C(),iconPrefixCls:$}},useToken:()=>{const[C,$,V,F,K]=useToken();return{theme:C,realToken:$,hashId:V,token:F,cssVar:K}},useCSP:()=>{const{csp:C}=React.useContext(ConfigContext);return C!=null?C:{}},getResetStyles:(C,$)=>{var V;const F=genLinkStyle$1(C);return[F,{"&":F},genIconStyle((V=$==null?void 0:$.prefix.iconPrefixCls)!==null&&V!==void 0?V:defaultIconPrefixCls)]},getCommonStyle:genCommonStyle,getCompUnitless:()=>unitless});function genPresetColor(C,$){return PresetColors.reduce((V,F)=>{const K=C[`${F}1`],J=C[`${F}3`],ee=C[`${F}6`],te=C[`${F}7`];return Object.assign(Object.assign({},V),$(F,{lightColor:K,lightBorderColor:J,darkColor:ee,textColor:te}))},{})}const useResetIconStyle=(C,$)=>{const[V,F]=useToken();return useStyleRegister({theme:V,token:F,hashId:"",path:["ant-design-icons",C],nonce:()=>$==null?void 0:$.nonce,layer:{name:"antd"}},()=>[genIconStyle(C)])},useStyle$D=useResetIconStyle,fullClone$1=Object.assign({},React__namespace),{useId:useId$3}=fullClone$1,useEmptyId=()=>"",useThemeKey=typeof useId$3=="undefined"?useEmptyId:useId$3,useThemeKey$1=useThemeKey;function useTheme(C,$,V){var F,K;const J=devUseWarning("ConfigProvider"),ee=C||{},te=ee.inherit===!1||!$?Object.assign(Object.assign({},defaultConfig),{hashed:(F=$==null?void 0:$.hashed)!==null&&F!==void 0?F:defaultConfig.hashed,cssVar:$==null?void 0:$.cssVar}):$,ne=useThemeKey$1();if(process.env.NODE_ENV!=="production"){const re=ee.cssVar||te.cssVar,ae=!!(typeof ee.cssVar=="object"&&(!((K=ee.cssVar)===null||K===void 0)&&K.key)||ne);process.env.NODE_ENV!=="production"&&J(!re||ae,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return useMemo(()=>{var re,ae;if(!C)return $;const oe=Object.assign({},te.components);Object.keys(C.components||{}).forEach(ce=>{oe[ce]=Object.assign(Object.assign({},oe[ce]),C.components[ce])});const ie=`css-var-${ne.replace(/:/g,"")}`,se=((re=ee.cssVar)!==null&&re!==void 0?re:te.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:V==null?void 0:V.prefixCls},typeof te.cssVar=="object"?te.cssVar:{}),typeof ee.cssVar=="object"?ee.cssVar:{}),{key:typeof ee.cssVar=="object"&&((ae=ee.cssVar)===null||ae===void 0?void 0:ae.key)||ie});return Object.assign(Object.assign(Object.assign({},te),ee),{token:Object.assign(Object.assign({},te.token),ee.token),components:oe,cssVar:se})},[ee,te],(re,ae)=>re.some((oe,ie)=>{const se=ae[ie];return!isEqual(oe,se,!0)}))}var _excluded$U=["children"],Context$1=React__namespace.createContext({});function MotionProvider(C){var $=C.children,V=_objectWithoutProperties(C,_excluded$U);return React__namespace.createElement(Context$1.Provider,{value:V},$)}var DomWrapper=function(C){_inherits(V,C);var $=_createSuper$7(V);function V(){return _classCallCheck(this,V),$.apply(this,arguments)}return _createClass(V,[{key:"render",value:function(){return this.props.children}}]),V}(React__namespace.Component);function useSyncState$2(C){var $=React__namespace.useReducer(function(te){return te+1},0),V=_slicedToArray($,2),F=V[1],K=React__namespace.useRef(C),J=useEvent(function(){return K.current}),ee=useEvent(function(te){K.current=typeof te=="function"?te(K.current):te,F()});return[J,ee]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(C,$){var V={};return V[C.toLowerCase()]=$.toLowerCase(),V["Webkit".concat(C)]="webkit".concat($),V["Moz".concat(C)]="moz".concat($),V["ms".concat(C)]="MS".concat($),V["O".concat(C)]="o".concat($.toLowerCase()),V}function getVendorPrefixes(C,$){var V={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return C&&("AnimationEvent"in $||delete V.animationend.animation,"TransitionEvent"in $||delete V.transitionend.transition),V}var vendorPrefixes=getVendorPrefixes(canUseDom(),typeof window!="undefined"?window:{}),style={};if(canUseDom()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(C){if(prefixedEventNames[C])return prefixedEventNames[C];var $=vendorPrefixes[C];if($)for(var V=Object.keys($),F=V.length,K=0;K<F;K+=1){var J=V[K];if(Object.prototype.hasOwnProperty.call($,J)&&J in style)return prefixedEventNames[C]=$[J],prefixedEventNames[C]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(C,$){if(!C)return null;if(_typeof(C)==="object"){var V=$.replace(/-\w/g,function(F){return F[1].toUpperCase()});return C[V]}return"".concat(C,"-").concat($)}const useDomMotionEvents=function(C){var $=React.useRef();function V(K){K&&(K.removeEventListener(transitionEndName,C),K.removeEventListener(animationEndName,C))}function F(K){$.current&&$.current!==K&&V($.current),K&&K!==$.current&&(K.addEventListener(transitionEndName,C),K.addEventListener(animationEndName,C),$.current=K)}return React__namespace.useEffect(function(){return function(){V($.current)}},[]),[F,V]};var useIsomorphicLayoutEffect$1=canUseDom()?React.useLayoutEffect:React.useEffect;const useNextFrame=function(){var C=React__namespace.useRef(null);function $(){wrapperRaf.cancel(C.current)}function V(F){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;$();var J=wrapperRaf(function(){K<=1?F({isCanceled:function(){return J!==C.current}}):V(F,K-1)});C.current=J}return React__namespace.useEffect(function(){return function(){$()}},[]),[V,$]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(C){return C===STEP_ACTIVE||C===STEP_ACTIVATED}const useStepQueue=function(C,$,V){var F=useSafeState(STEP_NONE),K=_slicedToArray(F,2),J=K[0],ee=K[1],te=useNextFrame(),ne=_slicedToArray(te,2),re=ne[0],ae=ne[1];function oe(){ee(STEP_PREPARE,!0)}var ie=$?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect$1(function(){if(J!==STEP_NONE&&J!==STEP_ACTIVATED){var se=ie.indexOf(J),ce=ie[se+1],ue=V(J);ue===SkipStep?ee(ce,!0):ce&&re(function(le){function ve(){le.isCanceled()||ee(ce,!0)}ue===!0?ve():Promise.resolve(ue).then(ve)})}},[C,J]),React__namespace.useEffect(function(){return function(){ae()}},[]),[oe,J]};function useStatus(C,$,V,F){var K=F.motionEnter,J=K===void 0?!0:K,ee=F.motionAppear,te=ee===void 0?!0:ee,ne=F.motionLeave,re=ne===void 0?!0:ne,ae=F.motionDeadline,oe=F.motionLeaveImmediately,ie=F.onAppearPrepare,se=F.onEnterPrepare,ce=F.onLeavePrepare,ue=F.onAppearStart,le=F.onEnterStart,ve=F.onLeaveStart,fe=F.onAppearActive,ge=F.onEnterActive,pe=F.onLeaveActive,de=F.onAppearEnd,me=F.onEnterEnd,ye=F.onLeaveEnd,_e=F.onVisibleChanged,he=useSafeState(),be=_slicedToArray(he,2),Se=be[0],Re=be[1],Ce=useSyncState$2(STATUS_NONE),xe=_slicedToArray(Ce,2),$e=xe[0],Ie=xe[1],Fe=useSafeState(null),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],Te=$e(),Ae=React.useRef(!1),ke=React.useRef(null);function je(){return V()}var ze=React.useRef(!1);function Ve(){Ie(STATUS_NONE),Oe(null,!0)}var Xe=useEvent(function(Je){var ct=$e();if(ct!==STATUS_NONE){var dt=je();if(!(Je&&!Je.deadline&&Je.target!==dt)){var vt=ze.current,ht;ct===STATUS_APPEAR&&vt?ht=de==null?void 0:de(dt,Je):ct===STATUS_ENTER&&vt?ht=me==null?void 0:me(dt,Je):ct===STATUS_LEAVE&&vt&&(ht=ye==null?void 0:ye(dt,Je)),vt&&ht!==!1&&Ve()}}}),Ye=useDomMotionEvents(Xe),at=_slicedToArray(Ye,1),Ue=at[0],Le=function(ct){switch(ct){case STATUS_APPEAR:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,ie),STEP_START,ue),STEP_ACTIVE,fe);case STATUS_ENTER:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,se),STEP_START,le),STEP_ACTIVE,ge);case STATUS_LEAVE:return _defineProperty(_defineProperty(_defineProperty({},STEP_PREPARE,ce),STEP_START,ve),STEP_ACTIVE,pe);default:return{}}},we=React__namespace.useMemo(function(){return Le(Te)},[Te]),Pe=useStepQueue(Te,!C,function(Je){if(Je===STEP_PREPARE){var ct=we[STEP_PREPARE];return ct?ct(je()):SkipStep}if(We in we){var dt;Oe(((dt=we[We])===null||dt===void 0?void 0:dt.call(we,je(),null))||null)}return We===STEP_ACTIVE&&Te!==STATUS_NONE&&(Ue(je()),ae>0&&(clearTimeout(ke.current),ke.current=setTimeout(function(){Xe({deadline:!0})},ae))),We===STEP_PREPARED&&Ve(),DoStep}),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=isActive(We);ze.current=Ke;var rt=React.useRef(null);useIsomorphicLayoutEffect$1(function(){if(!(Ae.current&&rt.current===$)){Re($);var Je=Ae.current;Ae.current=!0;var ct;!Je&&$&&te&&(ct=STATUS_APPEAR),Je&&$&&J&&(ct=STATUS_ENTER),(Je&&!$&&re||!Je&&oe&&!$&&re)&&(ct=STATUS_LEAVE);var dt=Le(ct);ct&&(C||dt[STEP_PREPARE])?(Ie(ct),He()):Ie(STATUS_NONE),rt.current=$}},[$]),React.useEffect(function(){(Te===STATUS_APPEAR&&!te||Te===STATUS_ENTER&&!J||Te===STATUS_LEAVE&&!re)&&Ie(STATUS_NONE)},[te,J,re]),React.useEffect(function(){return function(){Ae.current=!1,clearTimeout(ke.current)}},[]);var st=React__namespace.useRef(!1);React.useEffect(function(){Se&&(st.current=!0),Se!==void 0&&Te===STATUS_NONE&&((st.current||Se)&&(_e==null||_e(Se)),st.current=!0)},[Se,Te]);var it=De;return we[STEP_PREPARE]&&We===STEP_START&&(it=_objectSpread2({transition:"none"},it)),[Te,We,it,Se!=null?Se:$]}function genCSSMotion(C){var $=C;_typeof(C)==="object"&&($=C.transitionSupport);function V(K,J){return!!(K.motionName&&$&&J!==!1)}var F=React__namespace.forwardRef(function(K,J){var ee=K.visible,te=ee===void 0?!0:ee,ne=K.removeOnLeave,re=ne===void 0?!0:ne,ae=K.forceRender,oe=K.children,ie=K.motionName,se=K.leavedClassName,ce=K.eventProps,ue=React__namespace.useContext(Context$1),le=ue.motion,ve=V(K,le),fe=React.useRef(),ge=React.useRef();function pe(){try{return fe.current instanceof HTMLElement?fe.current:findDOMNode(ge.current)}catch(Ne){return null}}var de=useStatus(ve,te,pe,K),me=_slicedToArray(de,4),ye=me[0],_e=me[1],he=me[2],be=me[3],Se=React__namespace.useRef(be);be&&(Se.current=!0);var Re=React__namespace.useCallback(function(Ne){fe.current=Ne,fillRef(J,Ne)},[J]),Ce,xe=_objectSpread2(_objectSpread2({},ce),{},{visible:te});if(!oe)Ce=null;else if(ye===STATUS_NONE)be?Ce=oe(_objectSpread2({},xe),Re):!re&&Se.current&&se?Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{className:se}),Re):ae||!re&&!se?Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{style:{display:"none"}}),Re):Ce=null;else{var $e;_e===STEP_PREPARE?$e="prepare":isActive(_e)?$e="active":_e===STEP_START&&($e="start");var Ie=getTransitionName$1(ie,"".concat(ye,"-").concat($e));Ce=oe(_objectSpread2(_objectSpread2({},xe),{},{className:classNames(getTransitionName$1(ie,ye),_defineProperty(_defineProperty({},Ie,Ie&&$e),ie,typeof ie=="string")),style:he}),Re)}if(React__namespace.isValidElement(Ce)&&supportRef(Ce)){var Fe=getNodeRef(Ce);Fe||(Ce=React__namespace.cloneElement(Ce,{ref:Re}))}return React__namespace.createElement(DomWrapper,{ref:ge},Ce)});return F.displayName="CSSMotion",F}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(C){var $;return C&&_typeof(C)==="object"&&"key"in C?$=C:$={key:C},_objectSpread2(_objectSpread2({},$),{},{key:String($.key)})}function parseKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.map(wrapKeyToObject)}function diffKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=[],F=0,K=$.length,J=parseKeys(C),ee=parseKeys($);J.forEach(function(re){for(var ae=!1,oe=F;oe<K;oe+=1){var ie=ee[oe];if(ie.key===re.key){F<oe&&(V=V.concat(ee.slice(F,oe).map(function(se){return _objectSpread2(_objectSpread2({},se),{},{status:STATUS_ADD})})),F=oe),V.push(_objectSpread2(_objectSpread2({},ie),{},{status:STATUS_KEEP})),F+=1,ae=!0;break}}ae||V.push(_objectSpread2(_objectSpread2({},re),{},{status:STATUS_REMOVE}))}),F<K&&(V=V.concat(ee.slice(F).map(function(re){return _objectSpread2(_objectSpread2({},re),{},{status:STATUS_ADD})})));var te={};V.forEach(function(re){var ae=re.key;te[ae]=(te[ae]||0)+1});var ne=Object.keys(te).filter(function(re){return te[re]>1});return ne.forEach(function(re){V=V.filter(function(ae){var oe=ae.key,ie=ae.status;return oe!==re||ie!==STATUS_REMOVE}),V.forEach(function(ae){ae.key===re&&(ae.status=STATUS_KEEP)})}),V}var _excluded$T=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$7=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,V=function(F){_inherits(J,F);var K=_createSuper$7(J);function J(){var ee;_classCallCheck(this,J);for(var te=arguments.length,ne=new Array(te),re=0;re<te;re++)ne[re]=arguments[re];return ee=K.call.apply(K,[this].concat(ne)),_defineProperty(_assertThisInitialized(ee),"state",{keyEntities:[]}),_defineProperty(_assertThisInitialized(ee),"removeKey",function(ae){ee.setState(function(oe){var ie=oe.keyEntities.map(function(se){return se.key!==ae?se:_objectSpread2(_objectSpread2({},se),{},{status:STATUS_REMOVED})});return{keyEntities:ie}},function(){var oe=ee.state.keyEntities,ie=oe.filter(function(se){var ce=se.status;return ce!==STATUS_REMOVED}).length;ie===0&&ee.props.onAllRemoved&&ee.props.onAllRemoved()})}),ee}return _createClass(J,[{key:"render",value:function(){var te=this,ne=this.state.keyEntities,re=this.props,ae=re.component,oe=re.children,ie=re.onVisibleChanged;re.onAllRemoved;var se=_objectWithoutProperties(re,_excluded$T),ce=ae||React__namespace.Fragment,ue={};return MOTION_PROP_NAMES.forEach(function(le){ue[le]=se[le],delete se[le]}),delete se.keys,React__namespace.createElement(ce,se,ne.map(function(le,ve){var fe=le.status,ge=_objectWithoutProperties(le,_excluded2$7),pe=fe===STATUS_ADD||fe===STATUS_KEEP;return React__namespace.createElement($,_extends({},ue,{key:ge.key,visible:pe,eventProps:ge,onVisibleChanged:function(me){ie==null||ie(me,{key:ge.key}),me||te.removeKey(ge.key)}}),function(de,me){return oe(_objectSpread2(_objectSpread2({},de),{},{index:ve}),me)})}))}}],[{key:"getDerivedStateFromProps",value:function(te,ne){var re=te.keys,ae=ne.keyEntities,oe=parseKeys(re),ie=diffKeys(ae,oe);return{keyEntities:ie.filter(function(se){var ce=ae.find(function(ue){var le=ue.key;return se.key===le});return!(ce&&ce.status===STATUS_REMOVED&&se.status===STATUS_REMOVE)})}}}]),J}(React__namespace.Component);return _defineProperty(V,"defaultProps",{component:"div"}),V}const CSSMotionList=genCSSMotionList(supportTransition);function MotionWrapper(C){const{children:$}=C,[,V]=useToken(),{motion:F}=V,K=React__namespace.useRef(!1);return K.current=K.current||F===!1,K.current?React__namespace.createElement(MotionProvider,{motion:F},$):$}const PropWarning=React__namespace.memo(C=>{let{dropdownMatchSelectWidth:$}=C;return devUseWarning("ConfigProvider").deprecated($===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(PropWarning.displayName="PropWarning");const PropWarning$1=process.env.NODE_ENV!=="production"?PropWarning:()=>null;var __rest$14=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};let existThemeConfig=!1;const warnContext=process.env.NODE_ENV!=="production"?C=>{process.env.NODE_ENV!=="production"&&warning$5(!existThemeConfig,C,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,PASSED_PROPS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let globalPrefixCls,globalIconPrefixCls,globalTheme,globalHolderRender;function getGlobalPrefixCls(){return globalPrefixCls||defaultPrefixCls}function getGlobalIconPrefixCls(){return globalIconPrefixCls||defaultIconPrefixCls}function isLegacyTheme(C){return Object.keys(C).some($=>$.endsWith("Color"))}const setGlobalConfig=C=>{const{prefixCls:$,iconPrefixCls:V,theme:F,holderRender:K}=C;$!==void 0&&(globalPrefixCls=$),V!==void 0&&(globalIconPrefixCls=V),"holderRender"in C&&(globalHolderRender=K),F&&(isLegacyTheme(F)?(process.env.NODE_ENV!=="production"&&warning$5(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),registerTheme(getGlobalPrefixCls(),F)):globalTheme=F)},globalConfig=()=>({getPrefixCls:(C,$)=>$||(C?`${getGlobalPrefixCls()}-${C}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=C=>{const{children:$,csp:V,autoInsertSpaceInButton:F,alert:K,anchor:J,form:ee,locale:te,componentSize:ne,direction:re,space:ae,splitter:oe,virtual:ie,dropdownMatchSelectWidth:se,popupMatchSelectWidth:ce,popupOverflow:ue,legacyLocale:le,parentContext:ve,iconPrefixCls:fe,theme:ge,componentDisabled:pe,segmented:de,statistic:me,spin:ye,calendar:_e,carousel:he,cascader:be,collapse:Se,typography:Re,checkbox:Ce,descriptions:xe,divider:$e,drawer:Ie,skeleton:Fe,steps:Ne,image:De,layout:Oe,list:Te,mentions:Ae,modal:ke,progress:je,result:ze,slider:Ve,breadcrumb:Xe,menu:Ye,pagination:at,input:Ue,textArea:Le,empty:we,badge:Pe,radio:Me,rate:He,switch:We,transfer:Ke,avatar:rt,message:st,tag:it,table:Je,card:ct,tabs:dt,timeline:vt,timePicker:ht,upload:bt,notification:Rt,tree:Tt,colorPicker:lt,datePicker:ut,rangePicker:Ge,flex:et,wave:Ze,dropdown:nt,warning:tt,tour:qe,tooltip:ot,popover:ft,popconfirm:yt,floatButtonGroup:$t,variant:kt,inputNumber:Dt,treeSelect:St}=C,Bt=React__namespace.useCallback((qt,ln)=>{const{prefixCls:Cn}=C;if(ln)return ln;const Wt=Cn||ve.getPrefixCls("");return qt?`${Wt}-${qt}`:Wt},[ve.getPrefixCls,C.prefixCls]),It=fe||ve.iconPrefixCls||defaultIconPrefixCls,Pt=V||ve.csp;useStyle$D(It,Pt);const wt=useTheme(ge,ve.theme,{prefixCls:Bt("")});process.env.NODE_ENV!=="production"&&(existThemeConfig=existThemeConfig||!!wt);const Ct={csp:Pt,autoInsertSpaceInButton:F,alert:K,anchor:J,locale:te||le,direction:re,space:ae,splitter:oe,virtual:ie,popupMatchSelectWidth:ce!=null?ce:se,popupOverflow:ue,getPrefixCls:Bt,iconPrefixCls:It,theme:wt,segmented:de,statistic:me,spin:ye,calendar:_e,carousel:he,cascader:be,collapse:Se,typography:Re,checkbox:Ce,descriptions:xe,divider:$e,drawer:Ie,skeleton:Fe,steps:Ne,image:De,input:Ue,textArea:Le,layout:Oe,list:Te,mentions:Ae,modal:ke,progress:je,result:ze,slider:Ve,breadcrumb:Xe,menu:Ye,pagination:at,empty:we,badge:Pe,radio:Me,rate:He,switch:We,transfer:Ke,avatar:rt,message:st,tag:it,table:Je,card:ct,tabs:dt,timeline:vt,timePicker:ht,upload:bt,notification:Rt,tree:Tt,colorPicker:lt,datePicker:ut,rangePicker:Ge,flex:et,wave:Ze,dropdown:nt,warning:tt,tour:qe,tooltip:ot,popover:ft,popconfirm:yt,floatButtonGroup:$t,variant:kt,inputNumber:Dt,treeSelect:St};process.env.NODE_ENV!=="production"&&devUseWarning("ConfigProvider")(!("autoInsertSpaceInButton"in C),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const At=Object.assign({},ve);Object.keys(Ct).forEach(qt=>{Ct[qt]!==void 0&&(At[qt]=Ct[qt])}),PASSED_PROPS.forEach(qt=>{const ln=C[qt];ln&&(At[qt]=ln)}),typeof F!="undefined"&&(At.button=Object.assign({autoInsertSpace:F},At.button));const Ht=useMemo(()=>At,At,(qt,ln)=>{const Cn=Object.keys(qt),Wt=Object.keys(ln);return Cn.length!==Wt.length||Cn.some(Jt=>qt[Jt]!==ln[Jt])}),{layer:Gt}=React__namespace.useContext(StyleContext),zt=React__namespace.useMemo(()=>({prefixCls:It,csp:Pt,layer:Gt?"antd":void 0}),[It,Pt,Gt]);let Ft=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(PropWarning$1,{dropdownMatchSelectWidth:se}),$);const Vt=React__namespace.useMemo(()=>{var qt,ln,Cn,Wt;return merge$1(((qt=defaultLocale.Form)===null||qt===void 0?void 0:qt.defaultValidateMessages)||{},((Cn=(ln=Ht.locale)===null||ln===void 0?void 0:ln.Form)===null||Cn===void 0?void 0:Cn.defaultValidateMessages)||{},((Wt=Ht.form)===null||Wt===void 0?void 0:Wt.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Ht,ee==null?void 0:ee.validateMessages]);Object.keys(Vt).length>0&&(Ft=React__namespace.createElement(ValidateMessagesContext.Provider,{value:Vt},Ft)),te&&(Ft=React__namespace.createElement(LocaleProvider$1,{locale:te,_ANT_MARK__:ANT_MARK},Ft)),(It||Pt)&&(Ft=React__namespace.createElement(Context$2.Provider,{value:zt},Ft)),ne&&(Ft=React__namespace.createElement(SizeContextProvider,{size:ne},Ft)),Ft=React__namespace.createElement(MotionWrapper,null,Ft);const Kt=React__namespace.useMemo(()=>{const qt=wt||{},{algorithm:ln,token:Cn,components:Wt,cssVar:Jt}=qt,dn=__rest$14(qt,["algorithm","token","components","cssVar"]),sn=ln&&(!Array.isArray(ln)||ln.length>0)?createTheme(ln):defaultTheme$1,gn={};Object.entries(Wt||{}).forEach(Ot=>{let[pt,_t]=Ot;const Et=Object.assign({},_t);"algorithm"in Et&&(Et.algorithm===!0?Et.theme=sn:(Array.isArray(Et.algorithm)||typeof Et.algorithm=="function")&&(Et.theme=createTheme(Et.algorithm)),delete Et.algorithm),gn[pt]=Et});const mt=Object.assign(Object.assign({},seedToken$1),Cn);return Object.assign(Object.assign({},dn),{theme:sn,token:mt,components:gn,override:Object.assign({override:mt},gn),cssVar:Jt})},[wt]);return ge&&(Ft=React__namespace.createElement(DesignTokenContext.Provider,{value:Kt},Ft)),Ht.warning&&(Ft=React__namespace.createElement(WarningContext.Provider,{value:Ht.warning},Ft)),pe!==void 0&&(Ft=React__namespace.createElement(DisabledContextProvider,{disabled:pe},Ft)),React__namespace.createElement(ConfigContext.Provider,{value:Ht},Ft)},ConfigProvider=C=>{const $=React__namespace.useContext(ConfigContext),V=React__namespace.useContext(LocaleContext$1);return React__namespace.createElement(ProviderChildren,Object.assign({parentContext:$,legacyLocale:V},C))};ConfigProvider.ConfigContext=ConfigContext,ConfigProvider.SizeContext=SizeContext$1,ConfigProvider.config=setGlobalConfig,ConfigProvider.useConfig=useConfig,Object.defineProperty(ConfigProvider,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&warning$5(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),SizeContext$1)}),process.env.NODE_ENV!=="production"&&(ConfigProvider.displayName="ConfigProvider");var CheckCircleFilled$2={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 CheckCircleFilledSvg=CheckCircleFilled$2;function getRoot(C){var $;return C==null||($=C.getRootNode)===null||$===void 0?void 0:$.call(C)}function inShadow(C){return getRoot(C)instanceof ShadowRoot}function getShadowRoot(C){return inShadow(C)?getRoot(C):null}function camelCase(C){return C.replace(/-(.)/g,function($,V){return V.toUpperCase()})}function warning$3(C,$){warningOnce(C,"[@ant-design/icons] ".concat($))}function isIconDefinition(C){return _typeof(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&(_typeof(C.icon)==="object"||typeof C.icon=="function")}function normalizeAttrs(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function($,V){var F=C[V];switch(V){case"class":$.className=F,delete $.class;break;default:delete $[V],$[camelCase(V)]=F}return $},{})}function generate(C,$,V){return V?React.createElement(C.tag,_objectSpread2(_objectSpread2({key:$},normalizeAttrs(C.attrs)),V),(C.children||[]).map(function(F,K){return generate(F,"".concat($,"-").concat(C.tag,"-").concat(K))})):React.createElement(C.tag,_objectSpread2({key:$},normalizeAttrs(C.attrs)),(C.children||[]).map(function(F,K){return generate(F,"".concat($,"-").concat(C.tag,"-").concat(K))}))}function getSecondaryColor(C){return generate$1(C)[0]}function normalizeTwoToneColors(C){return C?Array.isArray(C)?C:[C]:[]}var iconStyles=`
84
84
  .anticon {
85
85
  display: inline-flex;
86
86
  align-items: center;
@@ -431,7 +431,7 @@ You must add the middleware for RTK-Query to function correctly!`)}}function ge(
431
431
  In the case of an unhandled error, no tags will be "provided" or "invalidated".`,De):console.error(De),De;case 13:return[2]}})})};function oe(ge,pe){var de,me,ye,_e,he=(me=(de=pe[V])==null?void 0:de.queries)==null?void 0:me[ge.queryCacheKey],be=(ye=pe[V])==null?void 0:ye.config.refetchOnMountOrArgChange,Se=he==null?void 0:he.fulfilledTimeStamp,Re=(_e=ge.forceRefetch)!=null?_e:ge.subscribe&&be;return Re?Re===!0||(Number(new Date)-Number(Se))/1e3>=Re:!1}var ie=toolkit.createAsyncThunk(V+"/executeQuery",ae,{getPendingMeta:function(){var ge;return ge={startedTimeStamp:Date.now()},ge[toolkit.SHOULD_AUTOBATCH]=!0,ge},condition:function(ge,pe){var de=pe.getState,me,ye,_e,he=de(),be=(ye=(me=he[V])==null?void 0:me.queries)==null?void 0:ye[ge.queryCacheKey],Se=be==null?void 0:be.fulfilledTimeStamp,Re=ge.originalArgs,Ce=be==null?void 0:be.originalArgs,xe=K[ge.endpointName];return isUpsertQuery(ge)?!0:(be==null?void 0:be.status)==="pending"?!1:oe(ge,he)||isQueryDefinition$1(xe)&&((_e=xe==null?void 0:xe.forceRefetch)!=null&&_e.call(xe,{currentArg:Re,previousArg:Ce,endpointState:be,state:he}))?!0:!Se},dispatchConditionRejection:!0}),se=toolkit.createAsyncThunk(V+"/executeMutation",ae,{getPendingMeta:function(){var ge;return ge={startedTimeStamp:Date.now()},ge[toolkit.SHOULD_AUTOBATCH]=!0,ge}}),ce=function(ge){return"force"in ge},ue=function(ge){return"ifOlderThan"in ge},le=function(ge,pe,de){return function(me,ye){var _e=ce(de)&&de.force,he=ue(de)&&de.ifOlderThan,be=function(xe){return xe===void 0&&(xe=!0),ee.endpoints[ge].initiate(pe,{forceRefetch:xe})},Se=ee.endpoints[ge].select(pe)(ye());if(_e)me(be());else if(he){var Re=Se==null?void 0:Se.fulfilledTimeStamp;if(!Re){me(be());return}var Ce=(Number(new Date)-Number(new Date(Re)))/1e3>=he;Ce&&me(be())}else me(be(!1))}};function ve(ge){return function(pe){var de,me;return((me=(de=pe==null?void 0:pe.meta)==null?void 0:de.arg)==null?void 0:me.endpointName)===ge}}function fe(ge,pe){return{matchPending:toolkit.isAllOf(toolkit.isPending(ge),ve(pe)),matchFulfilled:toolkit.isAllOf(toolkit.isFulfilled(ge),ve(pe)),matchRejected:toolkit.isAllOf(toolkit.isRejected(ge),ve(pe))}}return{queryThunk:ie,mutationThunk:se,prefetch:le,updateQueryData:ne,upsertQueryData:re,patchQueryData:te,buildMatchThunkActions:fe}}function calculateProvidedByThunk(C,$,V,F){return calculateProvidedBy(V[C.meta.arg.endpointName][$],toolkit.isFulfilled(C)?C.payload:void 0,toolkit.isRejectedWithValue(C)?C.payload:void 0,C.meta.arg.originalArgs,"baseQueryMeta"in C.meta?C.meta.baseQueryMeta:void 0,F)}function updateQuerySubstateIfExists(C,$,V){var F=C[$];F&&V(F)}function getMutationCacheKey(C){var $;return($="arg"in C?C.arg.fixedCacheKey:C.fixedCacheKey)!=null?$:C.requestId}function updateMutationSubstateIfExists(C,$,V){var F=C[getMutationCacheKey($)];F&&V(F)}var initialState$8={};function buildSlice(C){var $=C.reducerPath,V=C.queryThunk,F=C.mutationThunk,K=C.context,J=K.endpointDefinitions,ee=K.apiUid,te=K.extractRehydrationInfo,ne=K.hasRehydrationInfo,re=C.assertTagType,ae=C.config,oe=toolkit.createAction($+"/resetApiState"),ie=toolkit.createSlice({name:$+"/queries",initialState:initialState$8,reducers:{removeQueryResult:{reducer:function(de,me){var ye=me.payload.queryCacheKey;delete de[ye]},prepare:toolkit.prepareAutoBatched()},queryResultPatched:function(de,me){var ye=me.payload,_e=ye.queryCacheKey,he=ye.patches;updateQuerySubstateIfExists(de,_e,function(be){be.data=pn(be.data,he.concat())})}},extraReducers:function(de){de.addCase(V.pending,function(me,ye){var _e=ye.meta,he=ye.meta.arg,be,Se,Re=isUpsertQuery(he);(he.subscribe||Re)&&((Se=me[be=he.queryCacheKey])!=null||(me[be]={status:QueryStatus.uninitialized,endpointName:he.endpointName})),updateQuerySubstateIfExists(me,he.queryCacheKey,function(Ce){Ce.status=QueryStatus.pending,Ce.requestId=Re&&Ce.requestId?Ce.requestId:_e.requestId,he.originalArgs!==void 0&&(Ce.originalArgs=he.originalArgs),Ce.startedTimeStamp=_e.startedTimeStamp})}).addCase(V.fulfilled,function(me,ye){var _e=ye.meta,he=ye.payload;updateQuerySubstateIfExists(me,_e.arg.queryCacheKey,function(be){var Se;if(!(be.requestId!==_e.requestId&&!isUpsertQuery(_e.arg))){var Re=J[_e.arg.endpointName].merge;if(be.status=QueryStatus.fulfilled,Re)if(be.data!==void 0){var Ce=_e.fulfilledTimeStamp,xe=_e.arg,$e=_e.baseQueryMeta,Ie=_e.requestId,Fe=toolkit.createNextState(be.data,function(Ne){return Re(Ne,he,{arg:xe.originalArgs,baseQueryMeta:$e,fulfilledTimeStamp:Ce,requestId:Ie})});be.data=Fe}else be.data=he;else be.data=(Se=J[_e.arg.endpointName].structuralSharing)==null||Se?copyWithStructuralSharing(be.data,he):he;delete be.error,be.fulfilledTimeStamp=_e.fulfilledTimeStamp}})}).addCase(V.rejected,function(me,ye){var _e=ye.meta,he=_e.condition,be=_e.arg,Se=_e.requestId,Re=ye.error,Ce=ye.payload;updateQuerySubstateIfExists(me,be.queryCacheKey,function(xe){if(!he){if(xe.requestId!==Se)return;xe.status=QueryStatus.rejected,xe.error=Ce!=null?Ce:Re}})}).addMatcher(ne,function(me,ye){for(var _e=te(ye).queries,he=0,be=Object.entries(_e);he<be.length;he++){var Se=be[he],Re=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&(me[Re]=Ce)}})}}),se=toolkit.createSlice({name:$+"/mutations",initialState:initialState$8,reducers:{removeMutationResult:{reducer:function(de,me){var ye=me.payload,_e=getMutationCacheKey(ye);_e in de&&delete de[_e]},prepare:toolkit.prepareAutoBatched()}},extraReducers:function(de){de.addCase(F.pending,function(me,ye){var _e=ye.meta,he=ye.meta,be=he.requestId,Se=he.arg,Re=he.startedTimeStamp;Se.track&&(me[getMutationCacheKey(_e)]={requestId:be,status:QueryStatus.pending,endpointName:Se.endpointName,startedTimeStamp:Re})}).addCase(F.fulfilled,function(me,ye){var _e=ye.payload,he=ye.meta;he.arg.track&&updateMutationSubstateIfExists(me,he,function(be){be.requestId===he.requestId&&(be.status=QueryStatus.fulfilled,be.data=_e,be.fulfilledTimeStamp=he.fulfilledTimeStamp)})}).addCase(F.rejected,function(me,ye){var _e=ye.payload,he=ye.error,be=ye.meta;be.arg.track&&updateMutationSubstateIfExists(me,be,function(Se){Se.requestId===be.requestId&&(Se.status=QueryStatus.rejected,Se.error=_e!=null?_e:he)})}).addMatcher(ne,function(me,ye){for(var _e=te(ye).mutations,he=0,be=Object.entries(_e);he<be.length;he++){var Se=be[he],Re=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&Re!==(Ce==null?void 0:Ce.requestId)&&(me[Re]=Ce)}})}}),ce=toolkit.createSlice({name:$+"/invalidation",initialState:initialState$8,reducers:{},extraReducers:function(de){de.addCase(ie.actions.removeQueryResult,function(me,ye){for(var _e=ye.payload.queryCacheKey,he=0,be=Object.values(me);he<be.length;he++)for(var Se=be[he],Re=0,Ce=Object.values(Se);Re<Ce.length;Re++){var xe=Ce[Re],$e=xe.indexOf(_e);$e!==-1&&xe.splice($e,1)}}).addMatcher(ne,function(me,ye){for(var _e,he,be,Se,Re=te(ye).provided,Ce=0,xe=Object.entries(Re);Ce<xe.length;Ce++)for(var $e=xe[Ce],Ie=$e[0],Fe=$e[1],Ne=0,De=Object.entries(Fe);Ne<De.length;Ne++)for(var Oe=De[Ne],Te=Oe[0],Ae=Oe[1],ke=(Se=(he=(_e=me[Ie])!=null?_e:me[Ie]={})[be=Te||"__internal_without_id"])!=null?Se:he[be]=[],je=0,ze=Ae;je<ze.length;je++){var Ve=ze[je],Xe=ke.includes(Ve);Xe||ke.push(Ve)}}).addMatcher(toolkit.isAnyOf(toolkit.isFulfilled(V),toolkit.isRejectedWithValue(V)),function(me,ye){for(var _e,he,be,Se,Re=calculateProvidedByThunk(ye,"providesTags",J,re),Ce=ye.meta.arg.queryCacheKey,xe=0,$e=Object.values(me);xe<$e.length;xe++)for(var Ie=$e[xe],Fe=0,Ne=Object.values(Ie);Fe<Ne.length;Fe++){var De=Ne[Fe],Oe=De.indexOf(Ce);Oe!==-1&&De.splice(Oe,1)}for(var Te=0,Ae=Re;Te<Ae.length;Te++){var ke=Ae[Te],je=ke.type,ze=ke.id,Ve=(Se=(he=(_e=me[je])!=null?_e:me[je]={})[be=ze||"__internal_without_id"])!=null?Se:he[be]=[],Xe=Ve.includes(Ce);Xe||Ve.push(Ce)}})}}),ue=toolkit.createSlice({name:$+"/subscriptions",initialState:initialState$8,reducers:{updateSubscriptionOptions:function(de,me){},unsubscribeQueryResult:function(de,me){},internal_probeSubscription:function(de,me){}}}),le=toolkit.createSlice({name:$+"/internalSubscriptions",initialState:initialState$8,reducers:{subscriptionsUpdated:function(de,me){return pn(de,me.payload)}}}),ve=toolkit.createSlice({name:$+"/config",initialState:__spreadValues$1({online:isOnline(),focused:isDocumentVisible(),middlewareRegistered:!1},ae),reducers:{middlewareRegistered:function(de,me){var ye=me.payload;de.middlewareRegistered=de.middlewareRegistered==="conflict"||ee!==ye?"conflict":!0}},extraReducers:function(de){de.addCase(onOnline,function(me){me.online=!0}).addCase(onOffline,function(me){me.online=!1}).addCase(onFocus,function(me){me.focused=!0}).addCase(onFocusLost,function(me){me.focused=!1}).addMatcher(ne,function(me){return __spreadValues$1({},me)})}}),fe=toolkit.combineReducers({queries:ie.reducer,mutations:se.reducer,provided:ce.reducer,subscriptions:le.reducer,config:ve.reducer}),ge=function(de,me){return fe(oe.match(me)?void 0:de,me)},pe=__spreadProps$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1({},ve.actions),ie.actions),ue.actions),le.actions),se.actions),{unsubscribeMutationResult:se.actions.removeMutationResult,resetApiState:oe});return{reducer:ge,actions:pe}}var skipToken=Symbol.for("RTKQ/skipToken"),initialSubState={status:QueryStatus.uninitialized},defaultQuerySubState=toolkit.createNextState(initialSubState,function(){}),defaultMutationSubState=toolkit.createNextState(initialSubState,function(){});function buildSelectors(C){var $=C.serializeQueryArgs,V=C.reducerPath,F=function(ae){return defaultQuerySubState},K=function(ae){return defaultMutationSubState};return{buildQuerySelector:te,buildMutationSelector:ne,selectInvalidatedBy:re};function J(ae){return __spreadValues$1(__spreadValues$1({},ae),getRequestStatusFlags(ae.status))}function ee(ae){var oe=ae[V];if(process.env.NODE_ENV!=="production"&&!oe){if(ee.triggered)return oe;ee.triggered=!0,console.error("Error: No data found at `state."+V+"`. Did you forget to add the reducer to the store?")}return oe}function te(ae,oe){return function(ie){var se=$({queryArgs:ie,endpointDefinition:oe,endpointName:ae}),ce=function(le){var ve,fe,ge;return(ge=(fe=(ve=ee(le))==null?void 0:ve.queries)==null?void 0:fe[se])!=null?ge:defaultQuerySubState},ue=ie===skipToken?F:ce;return toolkit.createSelector(ue,J)}}function ne(){return function(ae){var oe,ie;typeof ae=="object"?ie=(oe=getMutationCacheKey(ae))!=null?oe:skipToken:ie=ae;var se=function(ue){var le,ve,fe;return(fe=(ve=(le=ee(ue))==null?void 0:le.mutations)==null?void 0:ve[ie])!=null?fe:defaultMutationSubState},ce=ie===skipToken?K:se;return toolkit.createSelector(ce,J)}}function re(ae,oe){for(var ie,se=ae[V],ce=new Set,ue=0,le=oe.map(expandTagDescription);ue<le.length;ue++){var ve=le[ue],fe=se.provided[ve.type];if(fe)for(var ge=(ie=ve.id!==void 0?fe[ve.id]:flatten(Object.values(fe)))!=null?ie:[],pe=0,de=ge;pe<de.length;pe++){var me=de[pe];ce.add(me)}}return flatten(Array.from(ce.values()).map(function(ye){var _e=se.queries[ye];return _e?[{queryCacheKey:ye,endpointName:_e.endpointName,originalArgs:_e.originalArgs}]:[]}))}}var cache$1=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs$1=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache$1==null?void 0:cache$1.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache$1==null||cache$1.set(V,J)),F=J}return $+"("+F+")"};function buildCreateApi(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return function(F){var K=defaultMemoize(function(ae){var oe,ie;return(ie=F.extractRehydrationInfo)==null?void 0:ie.call(F,ae,{reducerPath:(oe=F.reducerPath)!=null?oe:"api"})}),J=__spreadProps$1(__spreadValues$1({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},F),{extractRehydrationInfo:K,serializeQueryArgs:function(ae){var oe=defaultSerializeQueryArgs$1;if("serializeQueryArgs"in ae.endpointDefinition){var ie=ae.endpointDefinition.serializeQueryArgs;oe=function(se){var ce=ie(se);return typeof ce=="string"?ce:defaultSerializeQueryArgs$1(__spreadProps$1(__spreadValues$1({},se),{queryArgs:ce}))}}else F.serializeQueryArgs&&(oe=F.serializeQueryArgs);return oe(ae)},tagTypes:__spreadArray$2([],F.tagTypes||[])}),ee={endpointDefinitions:{},batch:function(ae){ae()},apiUid:toolkit.nanoid(),extractRehydrationInfo:K,hasRehydrationInfo:defaultMemoize(function(ae){return K(ae)!=null})},te={injectEndpoints:re,enhanceEndpoints:function(ae){var oe=ae.addTagTypes,ie=ae.endpoints;if(oe)for(var se=0,ce=oe;se<ce.length;se++){var ue=ce[se];J.tagTypes.includes(ue)||J.tagTypes.push(ue)}if(ie)for(var le=0,ve=Object.entries(ie);le<ve.length;le++){var fe=ve[le],ge=fe[0],pe=fe[1];typeof pe=="function"?pe(ee.endpointDefinitions[ge]):Object.assign(ee.endpointDefinitions[ge]||{},pe)}return te}},ne=C.map(function(ae){return ae.init(te,J,ee)});function re(ae){for(var oe=ae.endpoints({query:function(pe){return __spreadProps$1(__spreadValues$1({},pe),{type:DefinitionType$1.query})},mutation:function(pe){return __spreadProps$1(__spreadValues$1({},pe),{type:DefinitionType$1.mutation})}}),ie=0,se=Object.entries(oe);ie<se.length;ie++){var ce=se[ie],ue=ce[0],le=ce[1];if(!ae.overrideExisting&&ue in ee.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+ue+" without specifying `overrideExisting: true`");continue}ee.endpointDefinitions[ue]=le;for(var ve=0,fe=ne;ve<fe.length;ve++){var ge=fe[ve];ge.injectEndpoint(ue,le)}}return te}return te.injectEndpoints({endpoints:F.endpoints})}}function isObjectEmpty(C){for(var $ in C)return!1;return!0}var THIRTY_TWO_BIT_MAX_TIMER_SECONDS=2147483647/1e3-1,buildCacheCollectionHandler=function(C){var $=C.reducerPath,V=C.api,F=C.context,K=C.internalState,J=V.internalActions,ee=J.removeQueryResult,te=J.unsubscribeQueryResult;function ne(ie){var se=K.currentSubscriptions[ie];return!!se&&!isObjectEmpty(se)}var re={},ae=function(ie,se,ce){var ue;if(te.match(ie)){var le=se.getState()[$],ve=ie.payload.queryCacheKey;oe(ve,(ue=le.queries[ve])==null?void 0:ue.endpointName,se,le.config)}if(V.util.resetApiState.match(ie))for(var fe=0,ge=Object.entries(re);fe<ge.length;fe++){var pe=ge[fe],de=pe[0],me=pe[1];me&&clearTimeout(me),delete re[de]}if(F.hasRehydrationInfo(ie))for(var le=se.getState()[$],ye=F.extractRehydrationInfo(ie).queries,_e=0,he=Object.entries(ye);_e<he.length;_e++){var be=he[_e],ve=be[0],Se=be[1];oe(ve,Se==null?void 0:Se.endpointName,se,le.config)}};function oe(ie,se,ce,ue){var le,ve=F.endpointDefinitions[se],fe=(le=ve==null?void 0:ve.keepUnusedDataFor)!=null?le:ue.keepUnusedDataFor;if(fe!==1/0){var ge=Math.max(0,Math.min(fe,THIRTY_TWO_BIT_MAX_TIMER_SECONDS));if(!ne(ie)){var pe=re[ie];pe&&clearTimeout(pe),re[ie]=setTimeout(function(){ne(ie)||ce.dispatch(ee({queryCacheKey:ie})),delete re[ie]},ge*1e3)}}}return ae},buildInvalidationByTagsHandler=function(C){var $=C.reducerPath,V=C.context,F=C.context.endpointDefinitions,K=C.mutationThunk,J=C.api,ee=C.assertTagType,te=C.refetchQuery,ne=J.internalActions.removeQueryResult,re=toolkit.isAnyOf(toolkit.isFulfilled(K),toolkit.isRejectedWithValue(K)),ae=function(ie,se){re(ie)&&oe(calculateProvidedByThunk(ie,"invalidatesTags",F,ee),se),J.util.invalidateTags.match(ie)&&oe(calculateProvidedBy(ie.payload,void 0,void 0,void 0,void 0,ee),se)};function oe(ie,se){var ce=se.getState(),ue=ce[$],le=J.util.selectInvalidatedBy(ce,ie);V.batch(function(){for(var ve,fe=Array.from(le.values()),ge=0,pe=fe;ge<pe.length;ge++){var de=pe[ge].queryCacheKey,me=ue.queries[de],ye=(ve=ue.subscriptions[de])!=null?ve:{};me&&(Object.keys(ye).length===0?se.dispatch(ne({queryCacheKey:de})):me.status!==QueryStatus.uninitialized&&se.dispatch(te(me,de)))}})}return ae},buildPollingHandler=function(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.refetchQuery,J=C.internalState,ee={},te=function(se,ce){(F.internalActions.updateSubscriptionOptions.match(se)||F.internalActions.unsubscribeQueryResult.match(se))&&re(se.payload,ce),(V.pending.match(se)||V.rejected.match(se)&&se.meta.condition)&&re(se.meta.arg,ce),(V.fulfilled.match(se)||V.rejected.match(se)&&!se.meta.condition)&&ne(se.meta.arg,ce),F.util.resetApiState.match(se)&&oe()};function ne(se,ce){var ue=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[ue],fe=J.currentSubscriptions[ue];if(!(!ve||ve.status===QueryStatus.uninitialized)){var ge=ie(fe);if(Number.isFinite(ge)){var pe=ee[ue];pe!=null&&pe.timeout&&(clearTimeout(pe.timeout),pe.timeout=void 0);var de=Date.now()+ge,me=ee[ue]={nextPollTimestamp:de,pollingInterval:ge,timeout:setTimeout(function(){me.timeout=void 0,ce.dispatch(K(ve,ue))},ge)}}}}function re(se,ce){var ue=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[ue],fe=J.currentSubscriptions[ue];if(!(!ve||ve.status===QueryStatus.uninitialized)){var ge=ie(fe);if(!Number.isFinite(ge)){ae(ue);return}var pe=ee[ue],de=Date.now()+ge;(!pe||de<pe.nextPollTimestamp)&&ne({queryCacheKey:ue},ce)}}function ae(se){var ce=ee[se];ce!=null&&ce.timeout&&clearTimeout(ce.timeout),delete ee[se]}function oe(){for(var se=0,ce=Object.keys(ee);se<ce.length;se++){var ue=ce[se];ae(ue)}}function ie(se){se===void 0&&(se={});var ce=Number.POSITIVE_INFINITY;for(var ue in se)se[ue].pollingInterval&&(ce=Math.min(se[ue].pollingInterval,ce));return ce}return te},buildWindowEventHandler=function(C){var $=C.reducerPath,V=C.context,F=C.api,K=C.refetchQuery,J=C.internalState,ee=F.internalActions.removeQueryResult,te=function(re,ae){onFocus.match(re)&&ne(ae,"refetchOnFocus"),onOnline.match(re)&&ne(ae,"refetchOnReconnect")};function ne(re,ae){var oe=re.getState()[$],ie=oe.queries,se=J.currentSubscriptions;V.batch(function(){for(var ce=0,ue=Object.keys(se);ce<ue.length;ce++){var le=ue[ce],ve=ie[le],fe=se[le];if(!(!fe||!ve)){var ge=Object.values(fe).some(function(pe){return pe[ae]===!0})||Object.values(fe).every(function(pe){return pe[ae]===void 0})&&oe.config[ae];ge&&(Object.keys(fe).length===0?re.dispatch(ee({queryCacheKey:le})):ve.status!==QueryStatus.uninitialized&&re.dispatch(K(ve,le)))}}})}return te},neverResolvedError=new Error("Promise never resolved before cacheEntryRemoved."),buildCacheLifecycleHandler=function(C){var $=C.api,V=C.reducerPath,F=C.context,K=C.queryThunk,J=C.mutationThunk;C.internalState;var ee=toolkit.isAsyncThunkAction(K),te=toolkit.isAsyncThunkAction(J),ne=toolkit.isFulfilled(K,J),re={},ae=function(se,ce,ue){var le=oe(se);if(K.pending.match(se)){var ve=ue[V].queries[le],fe=ce.getState()[V].queries[le];!ve&&fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(J.pending.match(se)){var fe=ce.getState()[V].mutations[le];fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(ne(se)){var ge=re[le];ge!=null&&ge.valueResolved&&(ge.valueResolved({data:se.payload,meta:se.meta.baseQueryMeta}),delete ge.valueResolved)}else if($.internalActions.removeQueryResult.match(se)||$.internalActions.removeMutationResult.match(se)){var ge=re[le];ge&&(delete re[le],ge.cacheEntryRemoved())}else if($.util.resetApiState.match(se))for(var pe=0,de=Object.entries(re);pe<de.length;pe++){var me=de[pe],ye=me[0],ge=me[1];delete re[ye],ge.cacheEntryRemoved()}};function oe(se){return ee(se)?se.meta.arg.queryCacheKey:te(se)?se.meta.requestId:$.internalActions.removeQueryResult.match(se)?se.payload.queryCacheKey:$.internalActions.removeMutationResult.match(se)?getMutationCacheKey(se.payload):""}function ie(se,ce,ue,le,ve){var fe=F.endpointDefinitions[se],ge=fe==null?void 0:fe.onCacheEntryAdded;if(ge){var pe={},de=new Promise(function(Se){pe.cacheEntryRemoved=Se}),me=Promise.race([new Promise(function(Se){pe.valueResolved=Se}),de.then(function(){throw neverResolvedError})]);me.catch(function(){}),re[ue]=pe;var ye=$.endpoints[se].select(fe.type===DefinitionType$1.query?ce:ue),_e=le.dispatch(function(Se,Re,Ce){return Ce}),he=__spreadProps$1(__spreadValues$1({},le),{getCacheEntry:function(){return ye(le.getState())},requestId:ve,extra:_e,updateCachedData:fe.type===DefinitionType$1.query?function(Se){return le.dispatch($.util.updateQueryData(se,ce,Se))}:void 0,cacheDataLoaded:me,cacheEntryRemoved:de}),be=ge(ce,he);Promise.resolve(be).catch(function(Se){if(Se!==neverResolvedError)throw Se})}}return ae},buildQueryLifecycleHandler=function(C){var $=C.api,V=C.context,F=C.queryThunk,K=C.mutationThunk,J=toolkit.isPending(F,K),ee=toolkit.isRejected(F,K),te=toolkit.isFulfilled(F,K),ne={},re=function(ae,oe){var ie,se,ce;if(J(ae)){var ue=ae.meta,le=ue.requestId,ve=ue.arg,fe=ve.endpointName,ge=ve.originalArgs,pe=V.endpointDefinitions[fe],de=pe==null?void 0:pe.onQueryStarted;if(de){var me={},ye=new Promise(function($e,Ie){me.resolve=$e,me.reject=Ie});ye.catch(function(){}),ne[le]=me;var _e=$.endpoints[fe].select(pe.type===DefinitionType$1.query?ge:le),he=oe.dispatch(function($e,Ie,Fe){return Fe}),be=__spreadProps$1(__spreadValues$1({},oe),{getCacheEntry:function(){return _e(oe.getState())},requestId:le,extra:he,updateCachedData:pe.type===DefinitionType$1.query?function($e){return oe.dispatch($.util.updateQueryData(fe,ge,$e))}:void 0,queryFulfilled:ye});de(ge,be)}}else if(te(ae)){var Se=ae.meta,le=Se.requestId,Re=Se.baseQueryMeta;(ie=ne[le])==null||ie.resolve({data:ae.payload,meta:Re}),delete ne[le]}else if(ee(ae)){var Ce=ae.meta,le=Ce.requestId,xe=Ce.rejectedWithValue,Re=Ce.baseQueryMeta;(ce=ne[le])==null||ce.reject({error:(se=ae.payload)!=null?se:ae.error,isUnhandledError:!xe,meta:Re}),delete ne[le]}};return re},buildDevCheckHandler=function(C){var $=C.api,V=C.context.apiUid,F=C.reducerPath;return function(K,J){var ee,te;$.util.resetApiState.match(K)&&J.dispatch($.internalActions.middlewareRegistered(V)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&$.internalActions.middlewareRegistered.match(K)&&K.payload===V&&((te=(ee=J.getState()[F])==null?void 0:ee.config)==null?void 0:te.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+F+`".
432
432
  You can only have one api per reducer path, this will lead to crashes in various situations!`+(F==="api"?`
433
433
  If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},promise,queueMicrotaskShim=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(C){return(promise||(promise=Promise.resolve())).then(C).catch(function($){return setTimeout(function(){throw $},0)})},buildBatchedActionsHandler=function(C){var $=C.api,V=C.queryThunk,F=C.internalState,K=$.reducerPath+"/subscriptions",J=null,ee=!1,te=$.internalActions,ne=te.updateSubscriptionOptions,re=te.unsubscribeQueryResult,ae=function(oe,ie){var se,ce,ue,le,ve,fe,ge,pe,de;if(ne.match(ie)){var me=ie.payload,ye=me.queryCacheKey,_e=me.requestId,he=me.options;return(se=oe==null?void 0:oe[ye])!=null&&se[_e]&&(oe[ye][_e]=he),!0}if(re.match(ie)){var be=ie.payload,ye=be.queryCacheKey,_e=be.requestId;return oe[ye]&&delete oe[ye][_e],!0}if($.internalActions.removeQueryResult.match(ie))return delete oe[ie.payload.queryCacheKey],!0;if(V.pending.match(ie)){var Se=ie.meta,Re=Se.arg,_e=Se.requestId;if(Re.subscribe){var Ce=(ue=oe[ce=Re.queryCacheKey])!=null?ue:oe[ce]={};return Ce[_e]=(ve=(le=Re.subscriptionOptions)!=null?le:Ce[_e])!=null?ve:{},!0}}if(V.rejected.match(ie)){var xe=ie.meta,$e=xe.condition,Re=xe.arg,_e=xe.requestId;if($e&&Re.subscribe){var Ce=(ge=oe[fe=Re.queryCacheKey])!=null?ge:oe[fe]={};return Ce[_e]=(de=(pe=Re.subscriptionOptions)!=null?pe:Ce[_e])!=null?de:{},!0}}return!1};return function(oe,ie){var se,ce;if(J||(J=JSON.parse(JSON.stringify(F.currentSubscriptions))),$.internalActions.internal_probeSubscription.match(oe)){var ue=oe.payload,le=ue.queryCacheKey,ve=ue.requestId,fe=!!((se=F.currentSubscriptions[le])!=null&&se[ve]);return[!1,fe]}var ge=ae(F.currentSubscriptions,oe);if(ge){ee||(queueMicrotaskShim(function(){var ye=JSON.parse(JSON.stringify(F.currentSubscriptions)),_e=cn(J,function(){return ye}),he=_e[1];ie.next($.internalActions.subscriptionsUpdated(he)),J=ye,ee=!1}),ee=!0);var pe=!!((ce=oe.type)!=null&&ce.startsWith(K)),de=V.rejected.match(oe)&&oe.meta.condition&&!!oe.meta.arg.subscribe,me=!pe&&!de;return[me,!1]}return[!0,!1]}};function buildMiddleware(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.context,J=K.apiUid,ee={invalidateTags:toolkit.createAction($+"/invalidateTags")},te=function(oe){return!!oe&&typeof oe.type=="string"&&oe.type.startsWith($+"/")},ne=[buildDevCheckHandler,buildCacheCollectionHandler,buildInvalidationByTagsHandler,buildPollingHandler,buildCacheLifecycleHandler,buildQueryLifecycleHandler],re=function(oe){var ie=!1,se={currentSubscriptions:{}},ce=__spreadProps$1(__spreadValues$1({},C),{internalState:se,refetchQuery:ae}),ue=ne.map(function(fe){return fe(ce)}),le=buildBatchedActionsHandler(ce),ve=buildWindowEventHandler(ce);return function(fe){return function(ge){ie||(ie=!0,oe.dispatch(F.internalActions.middlewareRegistered(J)));var pe=__spreadProps$1(__spreadValues$1({},oe),{next:fe}),de=oe.getState(),me=le(ge,pe,de),ye=me[0],_e=me[1],he;if(ye?he=fe(ge):he=_e,oe.getState()[$]&&(ve(ge,pe,de),te(ge)||K.hasRehydrationInfo(ge)))for(var be=0,Se=ue;be<Se.length;be++){var Re=Se[be];Re(ge,pe,de)}return he}}};return{middleware:re,actions:ee};function ae(oe,ie,se){return se===void 0&&(se={}),V(__spreadValues$1({type:"query",endpointName:oe.endpointName,originalArgs:oe.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:ie},se))}}function safeAssign$1(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$2([C],$))}var coreModuleName=Symbol(),coreModule=function(){return{name:coreModuleName,init:function(C,$,V){var F=$.baseQuery,K=$.tagTypes,J=$.reducerPath,ee=$.serializeQueryArgs,te=$.keepUnusedDataFor,ne=$.refetchOnMountOrArgChange,re=$.refetchOnFocus,ae=$.refetchOnReconnect;T();var oe=function(ke){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(K.includes(ke.type)||console.error("Tag type '"+ke.type+"' was used, but not specified in `tagTypes`!")),ke};Object.assign(C,{reducerPath:J,endpoints:{},internalActions:{onOnline,onOffline,onFocus,onFocusLost},util:{}});var ie=buildThunks({baseQuery:F,reducerPath:J,context:V,api:C,serializeQueryArgs:ee}),se=ie.queryThunk,ce=ie.mutationThunk,ue=ie.patchQueryData,le=ie.updateQueryData,ve=ie.upsertQueryData,fe=ie.prefetch,ge=ie.buildMatchThunkActions,pe=buildSlice({context:V,queryThunk:se,mutationThunk:ce,reducerPath:J,assertTagType:oe,config:{refetchOnFocus:re,refetchOnReconnect:ae,refetchOnMountOrArgChange:ne,keepUnusedDataFor:te,reducerPath:J}}),de=pe.reducer,me=pe.actions;safeAssign$1(C.util,{patchQueryData:ue,updateQueryData:le,upsertQueryData:ve,prefetch:fe,resetApiState:me.resetApiState}),safeAssign$1(C.internalActions,me);var ye=buildMiddleware({reducerPath:J,context:V,queryThunk:se,mutationThunk:ce,api:C,assertTagType:oe}),_e=ye.middleware,he=ye.actions;safeAssign$1(C.util,he),safeAssign$1(C,{reducer:de,middleware:_e});var be=buildSelectors({serializeQueryArgs:ee,reducerPath:J}),Se=be.buildQuerySelector,Re=be.buildMutationSelector,Ce=be.selectInvalidatedBy;safeAssign$1(C.util,{selectInvalidatedBy:Ce});var xe=buildInitiate({queryThunk:se,mutationThunk:ce,api:C,serializeQueryArgs:ee,context:V}),$e=xe.buildInitiateQuery,Ie=xe.buildInitiateMutation,Fe=xe.getRunningMutationThunk,Ne=xe.getRunningMutationsThunk,De=xe.getRunningQueriesThunk,Oe=xe.getRunningQueryThunk,Te=xe.getRunningOperationPromises,Ae=xe.removalWarning;return safeAssign$1(C.util,{getRunningOperationPromises:Te,getRunningOperationPromise:Ae,getRunningMutationThunk:Fe,getRunningMutationsThunk:Ne,getRunningQueryThunk:Oe,getRunningQueriesThunk:De}),{name:coreModuleName,injectEndpoint:function(ke,je){var ze,Ve,Xe=C;(Ve=(ze=Xe.endpoints)[ke])!=null||(ze[ke]={}),isQueryDefinition$1(je)?safeAssign$1(Xe.endpoints[ke],{name:ke,select:Se(ke,je),initiate:$e(ke,je)},ge(se,ke)):isMutationDefinition$1(je)&&safeAssign$1(Xe.endpoints[ke],{name:ke,select:Re(),initiate:Ie(ke)},ge(ce,ke))}}}}},__spreadArray$1=globalThis&&globalThis.__spreadArray||function(C,$){for(var V=0,F=$.length,K=C.length;V<F;V++,K++)C[K]=$[V];return C},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(C,$,V){return $ in C?__defProp(C,$,{enumerable:!0,configurable:!0,writable:!0,value:V}):C[$]=V},__spreadValues=function(C,$){for(var V in $||($={}))__hasOwnProp.call($,V)&&__defNormalProp(C,V,$[V]);if(__getOwnPropSymbols)for(var F=0,K=__getOwnPropSymbols($);F<K.length;F++){var V=K[F];__propIsEnum.call($,V)&&__defNormalProp(C,V,$[V])}return C},__spreadProps=function(C,$){return __defProps(C,__getOwnPropDescs($))};function useStableQueryArgs(C,$,V,F){var K=React.useMemo(function(){return{queryArgs:C,serialized:typeof C=="object"?$({queryArgs:C,endpointDefinition:V,endpointName:F}):C}},[C,$,V,F]),J=React.useRef(K);return React.useEffect(function(){J.current.serialized!==K.serialized&&(J.current=K)},[K]),J.current.serialized===K.serialized?J.current.queryArgs:C}var UNINITIALIZED_VALUE=Symbol();function useShallowStableValue(C){var $=React.useRef(C);return React.useEffect(function(){reactRedux.shallowEqual($.current,C)||($.current=C)},[C]),reactRedux.shallowEqual($.current,C)?$.current:C}var cache=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache==null?void 0:cache.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache==null||cache.set(V,J)),F=J}return $+"("+F+")"},useIsomorphicLayoutEffect=typeof window!="undefined"&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect,defaultMutationStateSelector=function(C){return C},noPendingQueryStateSelector=function(C){return C.isUninitialized?__spreadProps(__spreadValues({},C),{isUninitialized:!1,isFetching:!0,isLoading:C.data===void 0,status:QueryStatus.pending}):C};function buildHooks(C){var $=C.api,V=C.moduleOptions,F=V.batch,K=V.useDispatch,J=V.useSelector,ee=V.useStore,te=V.unstable__sideEffectsInRender,ne=C.serializeQueryArgs,re=C.context,ae=te?function(ue){return ue()}:React.useEffect;return{buildQueryHooks:se,buildMutationHook:ce,usePrefetch:ie};function oe(ue,le,ve){if(le!=null&&le.endpointName&&ue.isUninitialized){var fe=le.endpointName,ge=re.endpointDefinitions[fe];ne({queryArgs:le.originalArgs,endpointDefinition:ge,endpointName:fe})===ne({queryArgs:ve,endpointDefinition:ge,endpointName:fe})&&(le=void 0)}var pe=ue.isSuccess?ue.data:le==null?void 0:le.data;pe===void 0&&(pe=ue.data);var de=pe!==void 0,me=ue.isLoading,ye=!de&&me,_e=ue.isSuccess||me&&de;return __spreadProps(__spreadValues({},ue),{data:pe,currentData:ue.data,isFetching:me,isLoading:ye,isSuccess:_e})}function ie(ue,le){var ve=K(),fe=useShallowStableValue(le);return React.useCallback(function(ge,pe){return ve($.util.prefetch(ue,ge,__spreadValues(__spreadValues({},fe),pe)))},[ue,ve,fe])}function se(ue){var le=function(ge,pe){var de=pe===void 0?{}:pe,me=de.refetchOnReconnect,ye=de.refetchOnFocus,_e=de.refetchOnMountOrArgChange,he=de.skip,be=he===void 0?!1:he,Se=de.pollingInterval,Re=Se===void 0?0:Se,Ce=$.endpoints[ue].initiate,xe=K(),$e=useStableQueryArgs(be?skipToken:ge,defaultSerializeQueryArgs,re.endpointDefinitions[ue],ue),Ie=useShallowStableValue({refetchOnReconnect:me,refetchOnFocus:ye,pollingInterval:Re}),Fe=React.useRef(!1),Ne=React.useRef(),De=Ne.current||{},Oe=De.queryCacheKey,Te=De.requestId,Ae=!1;if(Oe&&Te){var ke=xe($.internalActions.internal_probeSubscription({queryCacheKey:Oe,requestId:Te}));if(process.env.NODE_ENV!=="production"&&typeof ke!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+$.reducerPath+`" has not been added to the store.
434
- You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:_e}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,_e,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(ge){var pe=ge===void 0?{}:ge,de=pe.refetchOnReconnect,me=pe.refetchOnFocus,ye=pe.pollingInterval,_e=ye===void 0?0:ye,he=$.endpoints[ue].initiate,be=K(),Se=React.useState(UNINITIALIZED_VALUE),Re=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:de,refetchOnFocus:me,pollingInterval:_e});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var Te;(Te=xe.current)==null||Te.unsubscribe(),xe.current=Oe=be(he(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[be,he]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Re!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Re,!0)},[Re,Fe]),React.useMemo(function(){return[Fe,Re]},[Fe,Re])},fe=function(ge,pe){var de=pe===void 0?{}:pe,me=de.skip,ye=me===void 0?!1:me,_e=de.selectFromResult,he=$.endpoints[ue].select,be=useStableQueryArgs(ye?skipToken:ge,ne,re.endpointDefinitions[ue],ue),Se=React.useRef(),Re=React.useMemo(function(){return toolkit.createSelector([he(be),function(Fe,Ne){return Ne},function(Fe){return be}],oe)},[he,be]),Ce=React.useMemo(function(){return _e?toolkit.createSelector([Re],_e):Re},[Re,_e]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Re($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(ge){var pe=ve(ge),de=pe[0],me=pe[1],ye=fe(me,__spreadProps(__spreadValues({},ge),{skip:me===UNINITIALIZED_VALUE})),_e=React.useMemo(function(){return{lastArg:me}},[me]);return React.useMemo(function(){return[de,ye,_e]},[de,ye,_e])},useQuery:function(ge,pe){var de=le(ge,pe),me=fe(ge,__spreadValues({selectFromResult:ge===skipToken||pe!=null&&pe.skip?void 0:noPendingQueryStateSelector},pe)),ye=me.data,_e=me.status,he=me.isLoading,be=me.isSuccess,Se=me.isError,Re=me.error;return React.useDebugValue({data:ye,status:_e,isLoading:he,isSuccess:be,isError:Se,error:Re}),React.useMemo(function(){return __spreadValues(__spreadValues({},me),de)},[me,de])}}}function ce(ue){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,ge=fe===void 0?defaultMutationStateSelector:fe,pe=ve.fixedCacheKey,de=$.endpoints[ue],me=de.select,ye=de.initiate,_e=K(),he=React.useState(),be=he[0],Se=he[1];React.useEffect(function(){return function(){be!=null&&be.arg.fixedCacheKey||be==null||be.reset()}},[be]);var Re=React.useCallback(function(Ve){var Xe=_e(ye(Ve,{fixedCacheKey:pe}));return Se(Xe),Xe},[_e,ye,pe]),Ce=(be||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([me({fixedCacheKey:pe,requestId:be==null?void 0:be.requestId})],ge)},[me,be,ge,pe]),$e=J(xe,reactRedux.shallowEqual),Ie=pe==null?be==null?void 0:be.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){be&&Se(void 0),pe&&_e($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:pe}))})},[_e,pe,be,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,Te=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:Te,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Re,ze]},[Re,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var ue=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:ue,context:ce}),fe=ve.buildQueryHooks,ge=ve.buildMutationHook,pe=ve.usePrefetch;return safeAssign(le,{usePrefetch:pe}),safeAssign(ce,{batch:F}),{injectEndpoint:function(de,me){if(isQueryDefinition(me)){var ye=fe(de),_e=ye.useQuery,he=ye.useLazyQuery,be=ye.useLazyQuerySubscription,Se=ye.useQueryState,Re=ye.useQuerySubscription;safeAssign(le.endpoints[de],{useQuery:_e,useLazyQuery:he,useLazyQuerySubscription:be,useQueryState:Se,useQuerySubscription:Re}),ie["use"+capitalize$1(de)+"Query"]=_e,ie["useLazy"+capitalize$1(de)+"Query"]=he}else if(isMutationDefinition(me)){var Ce=ge(de);safeAssign(le.endpoints[de],{useMutation:Ce}),ie["use"+capitalize$1(de)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>er(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J,isEligibleForSmartApply:ee})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply",smart_apply_pool:ee}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K,isEligibleForSmartApply:J})=>{const[ee,te]=React.useState(null),[ne,re]=React.useState(null),[ae,{isLoading:oe,isError:ie,error:se,isSuccess:ce}]=useCreateApplicationMutation(),ue=React.useCallback(()=>er(this,null,function*(){var le,ve,fe,ge;try{const pe=yield ae({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K,isEligibleForSmartApply:J});te((ve=(le=pe==null?void 0:pe.data)==null?void 0:le.user_company)==null?void 0:ve.id),re((ge=(fe=pe==null?void 0:pe.data)==null?void 0:fe.user_company)==null?void 0:ge.status)}catch(pe){te(null),re(null)}}),[ae,C,$,V,F,K,J]);return React.useEffect(()=>{ue()},[ue]),{retry:ue,data:{status:ne,applicationId:ee},isLoading:oe,isError:ie,error:se,isSuccess:ce}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>zn(zn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{te([]),re({})},[F]),React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),ue=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:ue,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(pe=>{V(pe)},[]),ce=useDebounce(se,300),ue=React.useCallback(pe=>{K(pe)},[]),le=useDebounce(ue,300),ve=React.useCallback(pe=>{ee(pe)},[]),fe=useDebounce(ve,300),ge=React.useCallback((pe,de)=>pe.map(me=>{const ye=de==null?void 0:de.find(_e=>_e.key===me);return{experience_skill_id:me,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:ge,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{ae?V(setSelectedJobId(ae)):(V(clearSelectedJobId()),V(updateFormFilters({job_ids:null}))),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$b="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$M={container:container$b,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$M.container},React.createElement(Typography$1.Text,{className:styles$M.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$M.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$M.closeIcon}))):React.createElement("div",{className:styles$M.container})}const content="_content_1lda0_1",header$2="_header_1lda0_10",sider="_sider_1lda0_18",layout="_layout_1lda0_23",styles$L={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){var re;const ee=React.useRef(null),[te,ne]=React.useState(0);return React.useEffect(()=>{var ae;ne((ae=ee.current)==null?void 0:ae.clientHeight)},[(re=ee.current)==null?void 0:re.clientHeight]),React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$L.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$L.layout},React.createElement(Content,{style:{height:`${te}px`},className:styles$L.content},V),K&&React.createElement(Sider,{ref:ee,className:styles$L.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received","Draft"],FINAL_OFFERED_STATUSES=["Offer Received","Offer Accepted","Joined","Offer Declined","To Be Offered"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Missed",icon:"InfoCircleOutlined",color:"#FA541C",antdColor:"volcano"};const ne=ee.reduce((ce,ue)=>(ce[ue.label]=ue,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se,eligibleForSmartApply:!0}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var ue=J[ce],le=V[ue],ve=re[ue],fe=le(ve,ae);if(typeof fe=="undefined"){var ge=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(ge?'"'+String(ge)+'"':"(unknown type)")+', the slice reducer for key "'+ue+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[ue]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>zn(zn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=gr(zn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te,ne,re,ae;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;if(V&&F){C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K;const oe=(ae=(re=(ne=C.fitmentScore)==null?void 0:ne[V])==null?void 0:re[F])==null?void 0:ae.remarks;C.activeResumeChecklist=[...oe?[oe]:[],...getBlockerPointsChecklist(C.resumeReviewData[F])]}},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon$2="_icon_gf6im_29",styles$K={tagsSection,tag:tag$1,activeTag,icon:icon$2};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$K.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$K.tag,{[styles$K.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$K.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$K.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_10a9x_1",icon$1="_icon_10a9x_10",styles$J={jobAlert,icon:icon$1};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$J.jobAlert,onClick:V},React.createElement(BellFilled$1,{className:styles$J.icon}),"Job Alerts")}const styles$I={};function Sorting({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>{var ne,re;return((re=(ne=te.scalantCareerHub)==null?void 0:ne.filter)==null?void 0:re.sortings)||[]}),F=React.useMemo(()=>getCurrentSortingValue(V),[V]),K=te=>{const ne=SORTING_OPTIONS[te];ne&&(C==null||C.click("Sorting - Change",PRODUCT_NAME,{sortingValue:te,sortingLabel:ne.label}),$(setSortings([ne.mapping])))},J=Object.values(SORTING_OPTIONS).map(te=>({value:te.value,label:te.value===F?`Sorted By: ${te.label}`:te.label})),ee=te=>{const ne=SORTING_OPTIONS[te.value];return ne?ne.label:te.label};return React.createElement(Select$1,{className:styles$I.sorting,value:F,onChange:K,suffixIcon:React.createElement(DownOutlined$1,null),options:J,optionRender:ee})}const styles$H={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$H.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$2="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$G={search,iconContainer:iconContainer$2,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,ue;return((ue=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:ue.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$G.search},F||J?React.createElement(Input$1,{ref:te,className:styles$G.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$G.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$F={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$F.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,{analytics:C}),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$E={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$E.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1n202_1",profileDetails="_profileDetails_1n202_5",profileDetailsItems="_profileDetailsItems_1n202_13",preferencesTitle="_preferencesTitle_1n202_18",preferencesDivider="_preferencesDivider_1n202_22",preferencesContent="_preferencesContent_1n202_27",preferenceLabel="_preferenceLabel_1n202_31",preferenceValue="_preferenceValue_1n202_37",preferenceTag="_preferenceTag_1n202_42",jobIntentContainer="_jobIntentContainer_1n202_51",notifyMeContainer="_notifyMeContainer_1n202_59",preferencesContainer="_preferencesContainer_1n202_63",styles$D={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,notifyMeContainer,preferencesContainer},resumeService=careerHubApi.injectEndpoints({endpoints:C=>({getResumesEligibility:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/eligibility",params:{job_profile_id:$}})}),getResumeLink:C.query({query:({resumeId:$})=>({url:`/api/v3/user-resumes/${$}/download`,method:"GET"})}),updateResumeDetails:C.mutation({query:({resumeId:$,payload:V})=>({url:`/api/v3/user-resumes/${$}/`,method:"PUT",body:V})})})}),{useGetResumesEligibilityQuery,useGetResumeLinkQuery,useUpdateResumeDetailsMutation}=resumeService,useJobNotification=()=>{var te,ne,re;const C=reactRedux.useSelector(ae=>ae.scalantCareerHub.dashboard.userProfileData),[$]=useUpdateResumeDetailsMutation(),[V,F]=React.useState((ne=(te=C==null?void 0:C.resumeDetails)==null?void 0:te.relevancyAlert)!=null?ne:!1),[K,J]=React.useState(!1);return React.useEffect(()=>{var ae;((ae=C==null?void 0:C.resumeDetails)==null?void 0:ae.relevancyAlert)!==void 0&&F(C.resumeDetails.relevancyAlert)},[(re=C==null?void 0:C.resumeDetails)==null?void 0:re.relevancyAlert]),{jobNotificationsEnabled:V,isUpdatingNotification:K,handleNotificationToggle:ae=>er(this,null,function*(){var oe,ie,se;try{J(!0);const ce={relevancy_alert:ae,form_stage:"preferences_details_v1_form"};ae&&(ce.experience=(C==null?void 0:C.experienceMonths)||(C==null?void 0:C.experienceInMonths),ce.preferred_location=(oe=C==null?void 0:C.userCompanyProfile)==null?void 0:oe.preferredLocation,ce.expected_ctc=(ie=C==null?void 0:C.userCompanyProfile)==null?void 0:ie.expectedCtc);const ue=(se=C==null?void 0:C.resumeDetails)==null?void 0:se.id;ue&&(yield $({resumeId:ue,payload:ce}).unwrap(),F(ae))}catch(ce){console.error("Failed to update notification preference:",ce)}finally{J(!1)}})}},parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0);function ProfilePreferences(){var te,ne,re,ae,oe,ie,se,ce,ue,le,ve;const C=reactRedux.useSelector(fe=>fe.scalantCareerHub.dashboard.userProfileData),[$]=useUpdateResumeDetailsMutation(),[V,F]=React.useState(()=>{var ge;return(((ge=C==null?void 0:C.userCompanyProfile)==null?void 0:ge.preferredLocation)||"").split("/").map(pe=>pe.trim()).includes("Remote")}),[K,J]=React.useState(!1);React.useEffect(()=>{var pe;const ge=(((pe=C==null?void 0:C.userCompanyProfile)==null?void 0:pe.preferredLocation)||"").split("/").map(de=>de.trim()).includes("Remote");F(ge)},[(te=C==null?void 0:C.userCompanyProfile)==null?void 0:te.preferredLocation]);const ee=fe=>er(this,null,function*(){var pe,de;const ge=fe.target.value==="yes";try{J(!0);let ye=(((pe=C==null?void 0:C.userCompanyProfile)==null?void 0:pe.preferredLocation)||"").split("/").map(Se=>Se.trim()).filter(Se=>Se.length>0);ge?ye.includes("Remote")||ye.push("Remote"):ye=ye.filter(Se=>Se!=="Remote");const he={form_stage:"preferences_details_v1_form",preferred_location:ye.join("/")},be=(de=C==null?void 0:C.resumeDetails)==null?void 0:de.id;be&&(yield $({resumeId:be,payload:he}).unwrap(),F(ge))}catch(me){console.error("Failed to update remote preference:",me)}finally{J(!1)}});return React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$D.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},V&&React.createElement(Tag$1,{bordered:!1,className:styles$D.preferenceTag},"Remote"),parsePreferredLocations((ne=C==null?void 0:C.userCompanyProfile)==null?void 0:ne.preferredLocation).map((fe,ge)=>React.createElement(Tag$1,{key:ge,bordered:!1,className:styles$D.preferenceTag},fe)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Remote"),React.createElement(Radio$1.Group,{value:V?"yes":"no",onChange:ee,disabled:K},React.createElement(Radio$1,{value:"yes"},"Yes"),React.createElement(Radio$1,{value:"no"},"No"))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((re=C==null?void 0:C.userCompanyProfile)==null?void 0:re.preferredRole).map((fe,ge)=>React.createElement(Tag$1,{key:ge,className:styles$D.preferenceTag},fe)))),!isNullOrUndefined((ae=C==null?void 0:C.userCompanyProfile)==null?void 0:ae.currentCtc)&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Current CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$D.preferenceValue},(oe=C==null?void 0:C.userCompanyProfile)==null?void 0:oe.currentCtc)),!isNullOrUndefined((ie=C==null?void 0:C.userCompanyProfile)==null?void 0:ie.expectedCtc)&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$D.preferenceValue},(se=C==null?void 0:C.userCompanyProfile)==null?void 0:se.expectedCtc)),((ce=C==null?void 0:C.userEducations)==null?void 0:ce.some(fe=>fe.graduationDate))&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Graduation year:"),React.createElement(Typography$1.Text,{className:styles$D.preferenceValue},new Date((ue=C.userEducations.find(fe=>fe.graduationDate))==null?void 0:ue.graduationDate).getFullYear())),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$D.preferenceValue},(le=C==null?void 0:C.userCompanyProfile)==null?void 0:le.noticePeriod)),React.createElement(Flex$1,{align:"center"},((ve=C==null?void 0:C.userCompanyProfile)==null?void 0:ve.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$D.preferenceLabel},"*Buyout available")))}ProfilePreferences.propTypes={};const DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var le,ve,fe;const K=reactRedux.useSelector(ge=>ge.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null),{jobNotificationsEnabled:re,isUpdatingNotification:ae,handleNotificationToggle:oe}=useJobNotification();React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const ie=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},se=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},ce=ge=>er(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ge];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ue=ge=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ge]||null;return React.createElement("div",{className:classNames(styles$D.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$D.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((le=K==null?void 0:K.mentee)==null?void 0:le.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$D.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ve=K==null?void 0:K.experienceYears)!=null?ve:K==null?void 0:K.experienceInYears,(fe=K==null?void 0:K.experienceMonths)!=null?fe:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:ie},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$D.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ue(te),onChange:ce,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS,prefix:React.createElement(MonitorOutlined$1,null)})),React.createElement(Flex$1,{align:"center",gap:8,className:styles$D.notifyMeContainer},React.createElement(Typography$1.Text,{type:"secondary"},"Notify me:"),React.createElement(Switch$1,{checked:re,onChange:oe,loading:ae,size:"small"}),React.createElement(Typography$1.Text,null,re?"On":"Off"))),React.createElement(Flex$1,{vertical:!0,className:styles$D.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$D.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:se})),React.createElement(Divider$1,{className:styles$D.preferencesDivider}),React.createElement(ProfilePreferences,null)))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string,onViewResume:PropTypes.func,onEditPreferences:PropTypes.func},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:gr(zn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery,useLazyGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,defaultOpenedApplicationId:K,openMockInterviewModal:J=(oe,ie)=>{console.log("Method not implemented. We should get it from MIT"),console.log(oe,ie)},openResume:ee=()=>{console.log("Method not implemented. We should get it from MIT")},skip:te=!1,onCloseResumeBuilder:ne,smartJobApplyEnabled:re,children:ae})=>{const{data:oe,isLoading:ie,error:se,refetch:ce}=useGetJobPreviewQuery(V,{skip:!V||te}),[ue,le]=React.useState(),[ve,fe]=React.useState(null),ge=React.useMemo(()=>{var me;return!re||!(oe!=null&&oe.jobData)||!(oe!=null&&oe.eligibilityCriteria)?!1:((me=determineJobTag(oe==null?void 0:oe.jobData,oe==null?void 0:oe.eligibilityCriteria))==null?void 0:me.eligibleForSmartApply)||!1},[oe==null?void 0:oe.jobData,oe==null?void 0:oe.eligibilityCriteria,re]),pe=me=>{le(me),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:me,jobId:V})};React.useEffect(()=>{K&&fe(K)},[K]);const de={analytics:C,activeApplicationId:ve,setActiveApplicationId:fe,activeTab:ue,setActiveTab:pe,country:$,jobId:V,data:oe,isLoading:ie,error:se,refetch:ce,openMockInterviewModal:J,openResume:ee,jobData:oe==null?void 0:oe.jobData,companyData:oe==null?void 0:oe.companyData,highlights:oe==null?void 0:oe.highlights,eligibilityCriteria:oe==null?void 0:oe.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:ne,isEligibleForSmartApply:ge};return React.createElement(JobPreviewContext.Provider,{value:de},ae)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee,fitmentCheckEnabled:te}){const[ne,re]=React.useState(null),[ae,oe]=React.useState(K),[ie,se]=React.useState(null);return React.useEffect(()=>{K===APPLICATION_STATUS$1.RESUME_CHOICE_SELECT&&te?oe(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):oe(K)},[K,te]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:ne,setFormInstance:re,stepName:ae,setStepName:oe,jobProfileId:J,applicationId:ee,selectedResume:ie,setSelectedResume:se,onEditResume:V,onAddResume:F,fitmentCheckEnabled:te}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_6gwld_1",container$a="_container_6gwld_6",recruiterAvatar="_recruiterAvatar_6gwld_10",recruiterCardContent="_recruiterCardContent_6gwld_14",recruiterName="_recruiterName_6gwld_18",recruiterEmail="_recruiterEmail_6gwld_24",offeredStepItem="_offeredStepItem_6gwld_30",stepItem="_stepItem_6gwld_41",extraInfoText="_extraInfoText_6gwld_46",stageName="_stageName_6gwld_52",pending="_pending_6gwld_58",stageDate="_stageDate_6gwld_62",stageComments="_stageComments_6gwld_66",completedIconContainer="_completedIconContainer_6gwld_71",completedIcon="_completedIcon_6gwld_71",styles$C={descriptionContainer:descriptionContainer$1,container:container$a,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail,offeredStepItem,stepItem,extraInfoText,stageName,pending,stageDate,stageComments,completedIconContainer,completedIcon},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$C.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$C.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$C.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$C.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,{wrap:!0},$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},monthFullNames=["January","February","March","April","May","June","July","August","September","October","November","December"],months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function toStartOfDay(C){const $=new Date(C);return $.setMilliseconds(0),$.setSeconds(0),$.setMinutes(0),$.setHours(0),$}function getDaysDifference(C,$){const V=toStartOfDay(C),F=toStartOfDay($),K=V.getTime()-F.getTime();return parseInt(K/(24*60*60*1e3),10)}function getOrdinal(C){return C>=4&&C<=20||C>=24&&C<=30?"th":["st","nd","rd"][C%10-1]}function toDDMMM(C,{humanFriendly:$,fullMonth:V,withOrdinal:F}={}){const K=new Date(C);if($){const ne=getDaysDifference(Date.now(),K);if(ne===0)return"Today";if(ne===1)return"Yesterday"}const J=K.getDate(),ee=K.getMonth(),te=F?getOrdinal(J):"";return`${J}${te} ${V?monthFullNames[ee]:months[ee]}`}function toDDMMMYYYY(C,{fullMonth:$}={}){const V=new Date(C),F=V.getFullYear();return`${toDDMMM(V,{fullMonth:$})} ${F}`}const toDDMMYY=C=>{const $=new Date(C),V=String($.getMonth()+1).padStart(2,"0"),F=String($.getDate()).padStart(2,"0"),K=$.getFullYear().toString().slice(2);return[F,V,K].join("/")};function getDaysAgo(C){return C?getDaysDifference(new Date,new Date(C)):null}const OFFERED_STATUSES=["offer_received","offer_accepted","joined"],EXCLUDED_STATUSES=["to_be_offered",...OFFERED_STATUSES],APPLICATION_STAGE_STATUSES={ongoing:"ongoing",ongoing_test:"ongoing",rejected:"rejected",completed:"completed",pending:"pending",applicationArchived:"application_archived",applicationWithdrawn:"application_withdrawn"},getCurrentStep=(C,$,V)=>{const F=V.findIndex(J=>J.stageStatus===APPLICATION_STAGE_STATUSES.ongoing);return V.every(J=>J.stageStatus===APPLICATION_STAGE_STATUSES.completed)?V.length:C?$+1:F},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V,status:F,passedCurrentInterview:K}=$||{},J=V.findIndex(oe=>oe.stageStatus===APPLICATION_STAGE_STATUSES.rejected),ee=J!==-1,te=getCurrentStep(ee,J,V),ne=FINAL_OFFERED_STATUSES.includes(F);let re=ee?V.slice(0,J+1):V;re=ne?re:re.filter(oe=>!EXCLUDED_STATUSES.includes(oe.status));const ae=re.map(oe=>{const{expectedUpdateDate:ie,actualUpdateDate:se,stageName:ce,stageComments:ue,stageStatus:le,status:ve}=oe,fe=OFFERED_STATUSES.includes(ve)&&le===APPLICATION_STAGE_STATUSES.completed,ge=!!se,pe=ge&&getDaysDifference(se,ie)<0,de=ge&&getDaysDifference(se,ie)>0,me=ge&&getDaysDifference(se,ie)===0,ye=le===APPLICATION_STAGE_STATUSES.pending,_e=le===APPLICATION_STAGE_STATUSES.rejected,he=le===APPLICATION_STAGE_STATUSES.ongoing;let be=toDDMMMYYYY(ie),Se=null;return ie?pe?(be=toDDMMMYYYY(se),Se=React.createElement(Typography$1.Text,{className:styles$C.extraInfoText},"Completed ",getDaysDifference(ie,se)," ","days early")):(de||me)&&(be=toDDMMMYYYY(se)):be="Not Applicable",{title:React.createElement(Flex$1,{flex:1,justify:"space-between"},React.createElement(Typography$1.Text,{className:classNames(styles$C.stageName,{[styles$C.pending]:ye})},_e&&!se?"Unfortunately the round was not conducted":ce),React.createElement(Typography$1.Text,{className:classNames(styles$C.stageDate,{[styles$C.pending]:ye})},be)),description:React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Text,{className:styles$C.stageComments},ue),Se),status:_e?"error":null,className:fe?styles$C.offeredStepItem:styles$C.stepItem,icon:he&&K?React.createElement("div",{className:styles$C.completedIconContainer},React.createElement(CheckOutlined$1,{className:styles$C.completedIcon})):null}});return React.createElement(Steps$1,{current:te,items:ae,direction:"vertical"})},container$9="_container_all86_1",styles$B={container:container$9},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$B.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$C.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$C.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$C.container},React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$A={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,buttonVariant:J="solid",className:ee,onClick:te,isLoading:ne})=>React.createElement("div",{className:classNames(styles$A.actionBanner,ee)},C,React.createElement("div",{className:styles$A.actionBannerContent},React.createElement("span",{className:styles$A.actionBannerTitle},$),React.createElement("span",{className:styles$A.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,color:"primary",className:styles$A.actionBannerButton,onClick:te,loading:ne,variant:J},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$z={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var se;const C=reactRedux.useSelector(ce=>ce.scalantCareerHub.dashboard.userProfileData),$=(se=C==null?void 0:C.hasCompletedScreeningCall)!=null?se:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te,jobProfileStatus:ne}=F||{},re=te===APPLICATION_STATUS$1.WITHDRAWN,{name:ae}=K||{},oe=ne!==JOB_PROFILE_STATUS$1.active&&te===APPLICATION_STATUS_MAP.Draft,ie=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(ae)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,ae,ee]);return!$||oe||J!==TAG_TO_TAB_MAPPING.applied||re?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$z.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$z.monitorBanner,onClick:ie})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$y={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$y.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$y.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$y.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$y.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$y.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$y.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$y.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$y.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$y.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$x={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$x.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$x.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$x.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$y.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$y.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$y.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$y.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$w={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$w.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$w.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$w.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$y.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$y.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$y.descriptionText},React.createElement("ul",{className:styles$y.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$y.indicatorContainer},React.createElement("div",{className:styles$y.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$y.indicatorDot}))),React.createElement("div",{className:styles$y.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$y.stepTitle},$.title),description:React.createElement("span",{className:styles$y.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$y.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$y.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$y.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$y.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$7="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$v={container:container$7,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$v.dot,styles$v.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$v.dot,styles$v.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$v.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$v.dot,{[styles$v.successDot]:C===STATUS_MAP$1.added,[styles$v.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$v.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS={experience:"Unfortunately! Your profile does not have the relevant years of experience for this role",notice_period:"Unfortunately! Your notice period is not compatible with the notice period required for this role",placed_mentee:"You are ineligible to apply to this job since the CTC offered is less than 1.6x CTC of your previously accepted job offer",diversity:"Unfortunately! Your gender does not match the gender criteria for this role"},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.filter(J=>ADDITIONAL_ELIGIBILITY_MAPPING[J.label]).map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$v.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$v.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$u={bodyContainer,tabs},ExpandedJobViewBody=()=>{var re;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F,analytics:K,jobId:J}=useJobPreview(),{applicationTimeline:ee}=V||{},te=((re=ee==null?void 0:ee.timeline)==null?void 0:re.length)>0&&F===TAG_TO_TAB_MAPPING.applied;React.useEffect(()=>{if(K&&C){const oe={[JOB_BODY_TABS.APPLICATION_TIMELINE.key]:"Application Timeline Tab",[JOB_BODY_TABS.ABOUT_ROLE.key]:"Job Description Tab",[JOB_BODY_TABS.REQUIREMENTS.key]:"Skills Required Tab"}[C]||"Unknown Tab";K.view(`Expanded Job View - ${oe}`,PRODUCT_NAME,{tab:C,jobId:J})}},[K,C,J]);const ne=[te&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$u.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$u.tabs,items:ne,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F},"PipelineJobs"]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon$1="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$t={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon:warningIcon$1,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$t.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$t.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>er(this,null,function*(){var ge,pe;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(ge=fe==null?void 0:fe.data)!=null&&ge.success?(se.success("Application withdrawn successfully"),te(!1),re((pe=WITHDRAW_REASONS[0])==null?void 0:pe.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),ue=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$t.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$t.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$t.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:ue},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>er(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J,isEligibleForSmartApply:ee}=useJobPreview(),{applicationStatus:te,jobProfileStatus:ne}=C||{},{isEligible:re}=$||{},ae=re||ee,oe=te===APPLICATION_STATUS$1.WITHDRAWN,ie=te===APPLICATION_STATUS_MAP.Draft,se=ne===JOB_PROFILE_STATUS$1.active,ce=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F,smartApply:ee})};return React.useEffect(()=>()=>{V(null)},[V]),oe?null:K===TAG_TO_TAB_MAPPING.applied&&!ie?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$t.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:ce,className:styles$t.applyButton,type:"primary",size:"large",disabled:!ae||!se},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$t.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const J=()=>{var re;return C||($&&$[0]&&((re=V[$[0]])!=null&&re.logo)?V[$[0]].logo:missingLogo)},[ee,te]=React.useState(()=>J());React.useEffect(()=>{var re;if(C){te(C);return}if($&&$[0]&&((re=V[$[0]])!=null&&re.logo)){te(V[$[0]].logo);return}te(missingLogo)},[C,$,V]);const ne=()=>{te(missingLogo)};return React.createElement(Avatar$1,{size:K,src:ee,alt:F,onError:ne,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$6="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$s={basicInfo,companyInfo,companyName:companyName$1,container:container$6,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$s.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$s.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$s.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$s.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$s.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$s.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$s.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$s.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$s.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$r={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$r.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,zn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$r.field},React.createElement(Input$1,zn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,q:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>er(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$r.field},React.createElement(Select$1,{mode:"tags",maxCount:1,options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$r.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$r.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$r.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$r.field},React.createElement(Select$1,zn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$r.fieldGroup},React.createElement(Space$1,{className:classNames(styles$r.fieldGroup,styles$r.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$r.field,styles$r.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$r.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$r.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$r.fieldGroup,styles$r.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$r.field,styles$r.checkboxAdjacentField)},React.createElement(Select$1,gr(zn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$r.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$r.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$r.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((nr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:nr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>gr(zn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>gr(zn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>gr(zn({},V),{is_top_5:C==null?void 0:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)});function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$r.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>er(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$r.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$r.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}const form="_form_1ip4j_1",styles$q={form};function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,zn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(zn(zn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$q.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const fitmentService=careerHubApi.injectEndpoints({endpoints:C=>({getFitment:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/job-fitment-evaluation",params:{job_profile_id:$},method:"POST"})})})}),{useGetFitmentQuery}=fitmentService,applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$p={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te,fitmentCheckEnabled:ne}=useApplicationFormContext(),{analytics:re,isEligibleForSmartApply:ae}=useJobPreview(),[oe,{isLoading:ie}]=useUpdateApplicationMutation(),se=()=>er(this,null,function*(){var ue,le;re==null||re.click("Application Form - Next",PRODUCT_NAME);try{const ve={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V),bypass_policy:ae},fe=yield oe({applicationId:F,payload:ve});(ue=fe==null?void 0:fe.data)!=null&&ue.success&&ne?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):(le=fe==null?void 0:fe.data)!=null&&le.success?te(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT):message$1.error("Failed to update application")}catch(ve){console.error(ve),message$1.error("Failed to update application")}}),ce=()=>{re==null||re.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$p.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ce},"Cancel"),React.createElement(Button$2,{loading:ie,type:"primary",onClick:se},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J,isEligibleForSmartApply:ee}=useJobPreview(),[te,{isLoading:ne}]=useUpdateApplicationMutation(),re=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},ae=()=>er(this,null,function*(){var oe;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const se=yield te({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$,bypass_policy:ee}});(oe=se==null?void 0:se.data)!=null&&oe.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(ie){console.error(ie),message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$p.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:re},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:ne,disabled:!$},"Proceed to Apply")))},ResumeFitmentCheckErrorFooter=()=>{const{setStepName:C,jobProfileId:$}=useApplicationFormContext(),{analytics:V}=useJobPreview(),{refetch:F}=useGetFitmentQuery({jobProfileId:$}),K=()=>{C(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT),V==null||V.click("Resume Fitment Check Error - Skip Fitment Check",PRODUCT_NAME)},J=()=>{F(),C(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK),V==null||V.click("Resume Fitment Check Error - Retry Fitment Check",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$p.applicationFormFooterContainer},React.createElement(Button$2,{onClick:K},"Continue to Application"),React.createElement(Button$2,{type:"primary",onClick:J},"Generate your Resume Score"))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR:return React.createElement(ResumeFitmentCheckErrorFooter,null);default:return null}}const transformJobsData=C=>{if(!C||!(C!=null&&C.data)||!Array.isArray(C==null?void 0:C.data))return[];const $={};return C!=null&&C.included&&Array.isArray(C==null?void 0:C.included)&&(C==null||C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=V.attributes)})),C==null?void 0:C.data.map(V=>{if(V.type!=="job_profile"||!V.attributes)return null;const F=V.attributes,K=V.relationships||{};let J=null;if(K.company&&K.company.data){const te=K.company.data.id;J=$[te]||null}return{id:parseInt(V.id,10),title:F.title||"",name:F.title||"",slug:F.slug||"",jobDesc:F.job_desc||"",jobDescText:F.job_desc_text||"",minExperience:F.min_experience?parseFloat(F.min_experience):null,maxExperience:F.max_experience?parseFloat(F.max_experience):null,minCtc:F.min_ctc?parseFloat(F.min_ctc):null,maxCtc:F.max_ctc?parseFloat(F.max_ctc):null,validTill:F.valid_till||null,createdAt:F.created_at||null,jobType:F.job_type||null,preferredCities:F.preferred_cities||"",preferredNoticePeriod:F.preferred_notice_period||null,meritBasedSkills:F.merit_based_skills||[],contestSkills:F.contest_skills||[],applicationStatus:F.application_status||null,expiry:F.expiry||null,applicationId:F.application_id||null,userCompanyStatus:F.user_company_status||null,applicationLastUpdatedAt:F.application_last_upated_at||null,jobSource:F.job_source||null,jobProfileId:F.job_profile_id||null,jobProfileStatus:F.job_profile_status||"active",datePostedOn:F.date_posted_on||null,openForDiscussionCtc:F.open_for_discussion_ctc||!1,appliedOn:F.applied_on||null,seniorityLevel:F.seniority_level||null,roleType:F.role_type||"full_time",duration:F.duration||null,stipend:F.stipend||null,eligibilityCriteria:F.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:F.exceptional_job||!1,isRelevant:F.is_relevant||!1,isInternship:F.role_type==="internship",company:J?[parseInt(K.company.data.id,10)]:[],logo:(J==null?void 0:J.logo)||null,companyName:(J==null?void 0:J.name)||null,companySlug:(J==null?void 0:J.slug)||null,companyLocation:(J==null?void 0:J.location)||null,companyWebsite:(J==null?void 0:J.company_website)||null,companyVision:(J==null?void 0:J.company_vision)||null,companyTagline:(J==null?void 0:J.tagline)||null,companyCategory:(J==null?void 0:J.category)||null,companyEmployeeCount:(J==null?void 0:J.employee_count)||null}}).filter(Boolean)},createCompaniesMap=C=>{const $={};return C!=null&&C.included&&Array.isArray(C.included)&&C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=zn({id:V.id},V.attributes))}),$},normalizeJobsResponse=(C={})=>{var J,ee,te,ne;const $=C.jobs_data||C,V=transformJobsData($),F=createCompaniesMap($),K=(ne=(te=(J=C.total_entries)!=null?J:$.total_entries)!=null?te:(ee=$==null?void 0:$.meta)==null?void 0:ee.total_entries)!=null?ne:null;return{jobs:V,companiesMap:F,results:V,totalEntries:K}},jobsService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAllJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["Jobs"]}),fetchPipelineJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["PipelineJobs"]}),fetchRelevantJobs:C.query({query:($={})=>({url:"/job-tracker/relevancy/",method:"POST",body:gr(zn({},$),{include_exceptional_jobs:!0})}),transformResponse:normalizeJobsResponse,providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery,useFetchPipelineJobsQuery,useFetchRelevantJobsQuery,util:jobsServiceUtil}=jobsService,stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$o={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$4}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F,isEligibleForSmartApply:K}=useJobPreview(),{updateTab:J}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:ee}=useGetJobPreviewQuery(V,{skip:!V}),te=K&&$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED;if(!STEP_MAP[$])return null;const{currentStep:ne,icon:re,title:ae,totalSteps:oe}=STEP_MAP[$]||{},ie=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(jobsServiceUtil.invalidateTags(["PipelineJobs","RelevantJobs","Jobs"]),J(TAG_TO_TAB_MAPPING.applied),ee()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$o.container,direction:"vertical"},React.createElement(Text$4,{className:styles$o.stepText},"Step ",ne,"/",oe),React.createElement(Space$1,{className:styles$o.titleContainer},React.createElement(re,{className:styles$o.titleIcon}),React.createElement(Text$4,{className:styles$o.titleText},ae))),!te&&React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ie}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=Te,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,we){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||we&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
434
+ You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:_e}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,_e,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(ge){var pe=ge===void 0?{}:ge,de=pe.refetchOnReconnect,me=pe.refetchOnFocus,ye=pe.pollingInterval,_e=ye===void 0?0:ye,he=$.endpoints[ue].initiate,be=K(),Se=React.useState(UNINITIALIZED_VALUE),Re=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:de,refetchOnFocus:me,pollingInterval:_e});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var Te;(Te=xe.current)==null||Te.unsubscribe(),xe.current=Oe=be(he(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[be,he]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Re!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Re,!0)},[Re,Fe]),React.useMemo(function(){return[Fe,Re]},[Fe,Re])},fe=function(ge,pe){var de=pe===void 0?{}:pe,me=de.skip,ye=me===void 0?!1:me,_e=de.selectFromResult,he=$.endpoints[ue].select,be=useStableQueryArgs(ye?skipToken:ge,ne,re.endpointDefinitions[ue],ue),Se=React.useRef(),Re=React.useMemo(function(){return toolkit.createSelector([he(be),function(Fe,Ne){return Ne},function(Fe){return be}],oe)},[he,be]),Ce=React.useMemo(function(){return _e?toolkit.createSelector([Re],_e):Re},[Re,_e]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Re($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(ge){var pe=ve(ge),de=pe[0],me=pe[1],ye=fe(me,__spreadProps(__spreadValues({},ge),{skip:me===UNINITIALIZED_VALUE})),_e=React.useMemo(function(){return{lastArg:me}},[me]);return React.useMemo(function(){return[de,ye,_e]},[de,ye,_e])},useQuery:function(ge,pe){var de=le(ge,pe),me=fe(ge,__spreadValues({selectFromResult:ge===skipToken||pe!=null&&pe.skip?void 0:noPendingQueryStateSelector},pe)),ye=me.data,_e=me.status,he=me.isLoading,be=me.isSuccess,Se=me.isError,Re=me.error;return React.useDebugValue({data:ye,status:_e,isLoading:he,isSuccess:be,isError:Se,error:Re}),React.useMemo(function(){return __spreadValues(__spreadValues({},me),de)},[me,de])}}}function ce(ue){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,ge=fe===void 0?defaultMutationStateSelector:fe,pe=ve.fixedCacheKey,de=$.endpoints[ue],me=de.select,ye=de.initiate,_e=K(),he=React.useState(),be=he[0],Se=he[1];React.useEffect(function(){return function(){be!=null&&be.arg.fixedCacheKey||be==null||be.reset()}},[be]);var Re=React.useCallback(function(Ve){var Xe=_e(ye(Ve,{fixedCacheKey:pe}));return Se(Xe),Xe},[_e,ye,pe]),Ce=(be||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([me({fixedCacheKey:pe,requestId:be==null?void 0:be.requestId})],ge)},[me,be,ge,pe]),$e=J(xe,reactRedux.shallowEqual),Ie=pe==null?be==null?void 0:be.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){be&&Se(void 0),pe&&_e($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:pe}))})},[_e,pe,be,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,Te=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:Te,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Re,ze]},[Re,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var ue=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:ue,context:ce}),fe=ve.buildQueryHooks,ge=ve.buildMutationHook,pe=ve.usePrefetch;return safeAssign(le,{usePrefetch:pe}),safeAssign(ce,{batch:F}),{injectEndpoint:function(de,me){if(isQueryDefinition(me)){var ye=fe(de),_e=ye.useQuery,he=ye.useLazyQuery,be=ye.useLazyQuerySubscription,Se=ye.useQueryState,Re=ye.useQuerySubscription;safeAssign(le.endpoints[de],{useQuery:_e,useLazyQuery:he,useLazyQuerySubscription:be,useQueryState:Se,useQuerySubscription:Re}),ie["use"+capitalize$1(de)+"Query"]=_e,ie["useLazy"+capitalize$1(de)+"Query"]=he}else if(isMutationDefinition(me)){var Ce=ge(de);safeAssign(le.endpoints[de],{useMutation:Ce}),ie["use"+capitalize$1(de)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>er(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J,isEligibleForSmartApply:ee})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply",smart_apply_pool:ee}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K,isEligibleForSmartApply:J})=>{const[ee,te]=React.useState(null),[ne,re]=React.useState(null),[ae,{isLoading:oe,isError:ie,error:se,isSuccess:ce}]=useCreateApplicationMutation(),ue=React.useCallback(()=>er(this,null,function*(){var le,ve,fe,ge;try{const pe=yield ae({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K,isEligibleForSmartApply:J});te((ve=(le=pe==null?void 0:pe.data)==null?void 0:le.user_company)==null?void 0:ve.id),re((ge=(fe=pe==null?void 0:pe.data)==null?void 0:fe.user_company)==null?void 0:ge.status)}catch(pe){te(null),re(null)}}),[ae,C,$,V,F,K,J]);return React.useEffect(()=>{ue()},[ue]),{retry:ue,data:{status:ne,applicationId:ee},isLoading:oe,isError:ie,error:se,isSuccess:ce}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>zn(zn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{te([]),re({})},[F]),React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),ue=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:ue,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(pe=>{V(pe)},[]),ce=useDebounce(se,300),ue=React.useCallback(pe=>{K(pe)},[]),le=useDebounce(ue,300),ve=React.useCallback(pe=>{ee(pe)},[]),fe=useDebounce(ve,300),ge=React.useCallback((pe,de)=>pe.map(me=>{const ye=de==null?void 0:de.find(_e=>_e.key===me);return{experience_skill_id:me,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:ge,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{ae?V(setSelectedJobId(ae)):(V(clearSelectedJobId()),V(updateFormFilters({job_ids:null}))),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$b="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$N={container:container$b,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$N.container},React.createElement(Typography$1.Text,{className:styles$N.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$N.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$N.closeIcon}))):React.createElement("div",{className:styles$N.container})}const content="_content_1lda0_1",header$2="_header_1lda0_10",sider="_sider_1lda0_18",layout="_layout_1lda0_23",styles$M={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){var re;const ee=React.useRef(null),[te,ne]=React.useState(0);return React.useEffect(()=>{var ae;ne((ae=ee.current)==null?void 0:ae.clientHeight)},[(re=ee.current)==null?void 0:re.clientHeight]),React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$M.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$M.layout},React.createElement(Content,{style:{height:`${te}px`},className:styles$M.content},V),K&&React.createElement(Sider,{ref:ee,className:styles$M.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received","Draft"],FINAL_OFFERED_STATUSES=["Offer Received","Offer Accepted","Joined","Offer Declined","To Be Offered"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Missed",icon:"InfoCircleOutlined",color:"#FA541C",antdColor:"volcano"};const ne=ee.reduce((ce,ue)=>(ce[ue.label]=ue,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se,eligibleForSmartApply:!0}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var ue=J[ce],le=V[ue],ve=re[ue],fe=le(ve,ae);if(typeof fe=="undefined"){var ge=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(ge?'"'+String(ge)+'"':"(unknown type)")+', the slice reducer for key "'+ue+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[ue]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>zn(zn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=gr(zn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te,ne,re,ae;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;if(V&&F){C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K;const oe=(ae=(re=(ne=C.fitmentScore)==null?void 0:ne[V])==null?void 0:re[F])==null?void 0:ae.remarks;C.activeResumeChecklist=[...oe?[oe]:[],...getBlockerPointsChecklist(C.resumeReviewData[F])]}},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon$2="_icon_gf6im_29",styles$L={tagsSection,tag:tag$1,activeTag,icon:icon$2};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$L.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$L.tag,{[styles$L.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$L.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$L.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_10a9x_1",icon$1="_icon_10a9x_10",styles$K={jobAlert,icon:icon$1};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$K.jobAlert,onClick:V},React.createElement(BellFilled$1,{className:styles$K.icon}),"Job Alerts")}const styles$J={};function Sorting({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>{var ne,re;return((re=(ne=te.scalantCareerHub)==null?void 0:ne.filter)==null?void 0:re.sortings)||[]}),F=React.useMemo(()=>getCurrentSortingValue(V),[V]),K=te=>{const ne=SORTING_OPTIONS[te];ne&&(C==null||C.click("Sorting - Change",PRODUCT_NAME,{sortingValue:te,sortingLabel:ne.label}),$(setSortings([ne.mapping])))},J=Object.values(SORTING_OPTIONS).map(te=>({value:te.value,label:te.value===F?`Sorted By: ${te.label}`:te.label})),ee=te=>{const ne=SORTING_OPTIONS[te.value];return ne?ne.label:te.label};return React.createElement(Select$1,{className:styles$J.sorting,value:F,onChange:K,suffixIcon:React.createElement(DownOutlined$1,null),options:J,optionRender:ee})}const styles$I={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$I.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$2="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$H={search,iconContainer:iconContainer$2,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,ue;return((ue=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:ue.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$H.search},F||J?React.createElement(Input$1,{ref:te,className:styles$H.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$H.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$G={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$G.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,{analytics:C}),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$F={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$F.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1n202_1",profileDetails="_profileDetails_1n202_5",profileDetailsItems="_profileDetailsItems_1n202_13",preferencesTitle="_preferencesTitle_1n202_18",preferencesDivider="_preferencesDivider_1n202_22",preferencesContent="_preferencesContent_1n202_27",preferenceLabel="_preferenceLabel_1n202_31",preferenceValue="_preferenceValue_1n202_37",preferenceTag="_preferenceTag_1n202_42",jobIntentContainer="_jobIntentContainer_1n202_51",notifyMeContainer="_notifyMeContainer_1n202_59",preferencesContainer="_preferencesContainer_1n202_63",styles$E={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,notifyMeContainer,preferencesContainer},resumeService=careerHubApi.injectEndpoints({endpoints:C=>({getResumesEligibility:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/eligibility",params:{job_profile_id:$}})}),getResumeLink:C.query({query:({resumeId:$})=>({url:`/api/v3/user-resumes/${$}/download`,method:"GET"})}),updateResumeDetails:C.mutation({query:({resumeId:$,payload:V})=>({url:`/api/v3/user-resumes/${$}/`,method:"PUT",body:V})})})}),{useGetResumesEligibilityQuery,useGetResumeLinkQuery,useUpdateResumeDetailsMutation}=resumeService,useJobNotification=()=>{var te,ne,re;const C=reactRedux.useSelector(ae=>ae.scalantCareerHub.dashboard.userProfileData),[$]=useUpdateResumeDetailsMutation(),[V,F]=React.useState((ne=(te=C==null?void 0:C.resumeDetails)==null?void 0:te.relevancyAlert)!=null?ne:!1),[K,J]=React.useState(!1);return React.useEffect(()=>{var ae;((ae=C==null?void 0:C.resumeDetails)==null?void 0:ae.relevancyAlert)!==void 0&&F(C.resumeDetails.relevancyAlert)},[(re=C==null?void 0:C.resumeDetails)==null?void 0:re.relevancyAlert]),{jobNotificationsEnabled:V,isUpdatingNotification:K,handleNotificationToggle:ae=>er(this,null,function*(){var oe,ie,se;try{J(!0);const ce={relevancy_alert:ae,form_stage:"preferences_details_v1_form"};ae&&(ce.experience=(C==null?void 0:C.experienceMonths)||(C==null?void 0:C.experienceInMonths),ce.preferred_location=(oe=C==null?void 0:C.userCompanyProfile)==null?void 0:oe.preferredLocation,ce.expected_ctc=(ie=C==null?void 0:C.userCompanyProfile)==null?void 0:ie.expectedCtc);const ue=(se=C==null?void 0:C.resumeDetails)==null?void 0:se.id;ue&&(yield $({resumeId:ue,payload:ce}).unwrap(),F(ae))}catch(ce){console.error("Failed to update notification preference:",ce)}finally{J(!1)}})}},parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0);function ProfilePreferences(){var te,ne,re,ae,oe,ie,se,ce,ue,le,ve;const C=reactRedux.useSelector(fe=>fe.scalantCareerHub.dashboard.userProfileData),[$]=useUpdateResumeDetailsMutation(),[V,F]=React.useState(()=>{var ge;return(((ge=C==null?void 0:C.userCompanyProfile)==null?void 0:ge.preferredLocation)||"").split("/").map(pe=>pe.trim()).includes("Remote")}),[K,J]=React.useState(!1);React.useEffect(()=>{var pe;const ge=(((pe=C==null?void 0:C.userCompanyProfile)==null?void 0:pe.preferredLocation)||"").split("/").map(de=>de.trim()).includes("Remote");F(ge)},[(te=C==null?void 0:C.userCompanyProfile)==null?void 0:te.preferredLocation]);const ee=fe=>er(this,null,function*(){var pe,de;const ge=fe.target.value==="yes";try{J(!0);let ye=(((pe=C==null?void 0:C.userCompanyProfile)==null?void 0:pe.preferredLocation)||"").split("/").map(Se=>Se.trim()).filter(Se=>Se.length>0);ge?ye.includes("Remote")||ye.push("Remote"):ye=ye.filter(Se=>Se!=="Remote");const he={form_stage:"preferences_details_v1_form",preferred_location:ye.join("/")},be=(de=C==null?void 0:C.resumeDetails)==null?void 0:de.id;be&&(yield $({resumeId:be,payload:he}).unwrap(),F(ge))}catch(me){console.error("Failed to update remote preference:",me)}finally{J(!1)}});return React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$E.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},V&&React.createElement(Tag$1,{bordered:!1,className:styles$E.preferenceTag},"Remote"),parsePreferredLocations((ne=C==null?void 0:C.userCompanyProfile)==null?void 0:ne.preferredLocation).map((fe,ge)=>React.createElement(Tag$1,{key:ge,bordered:!1,className:styles$E.preferenceTag},fe)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Remote"),React.createElement(Radio$1.Group,{value:V?"yes":"no",onChange:ee,disabled:K},React.createElement(Radio$1,{value:"yes"},"Yes"),React.createElement(Radio$1,{value:"no"},"No"))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((re=C==null?void 0:C.userCompanyProfile)==null?void 0:re.preferredRole).map((fe,ge)=>React.createElement(Tag$1,{key:ge,className:styles$E.preferenceTag},fe)))),!isNullOrUndefined((ae=C==null?void 0:C.userCompanyProfile)==null?void 0:ae.currentCtc)&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Current CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$E.preferenceValue},(oe=C==null?void 0:C.userCompanyProfile)==null?void 0:oe.currentCtc)),!isNullOrUndefined((ie=C==null?void 0:C.userCompanyProfile)==null?void 0:ie.expectedCtc)&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$E.preferenceValue},(se=C==null?void 0:C.userCompanyProfile)==null?void 0:se.expectedCtc)),((ce=C==null?void 0:C.userEducations)==null?void 0:ce.some(fe=>fe.graduationDate))&&React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Graduation year:"),React.createElement(Typography$1.Text,{className:styles$E.preferenceValue},new Date((ue=C.userEducations.find(fe=>fe.graduationDate))==null?void 0:ue.graduationDate).getFullYear())),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$E.preferenceValue},(le=C==null?void 0:C.userCompanyProfile)==null?void 0:le.noticePeriod)),React.createElement(Flex$1,{align:"center"},((ve=C==null?void 0:C.userCompanyProfile)==null?void 0:ve.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$E.preferenceLabel},"*Buyout available")))}ProfilePreferences.propTypes={};const DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var le,ve,fe;const K=reactRedux.useSelector(ge=>ge.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null),{jobNotificationsEnabled:re,isUpdatingNotification:ae,handleNotificationToggle:oe}=useJobNotification();React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const ie=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},se=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},ce=ge=>er(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ge];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ue=ge=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ge]||null;return React.createElement("div",{className:classNames(styles$E.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$E.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((le=K==null?void 0:K.mentee)==null?void 0:le.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$E.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ve=K==null?void 0:K.experienceYears)!=null?ve:K==null?void 0:K.experienceInYears,(fe=K==null?void 0:K.experienceMonths)!=null?fe:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:ie},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$E.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ue(te),onChange:ce,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS,prefix:React.createElement(MonitorOutlined$1,null)})),React.createElement(Flex$1,{align:"center",gap:8,className:styles$E.notifyMeContainer},React.createElement(Typography$1.Text,{type:"secondary"},"Notify me:"),React.createElement(Switch$1,{checked:re,onChange:oe,loading:ae,size:"small"}),React.createElement(Typography$1.Text,null,re?"On":"Off"))),React.createElement(Flex$1,{vertical:!0,className:styles$E.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$E.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:se})),React.createElement(Divider$1,{className:styles$E.preferencesDivider}),React.createElement(ProfilePreferences,null)))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string,onViewResume:PropTypes.func,onEditPreferences:PropTypes.func},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:gr(zn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery,useLazyGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,defaultOpenedApplicationId:K,openMockInterviewModal:J=(oe,ie)=>{console.log("Method not implemented. We should get it from MIT"),console.log(oe,ie)},openResume:ee=()=>{console.log("Method not implemented. We should get it from MIT")},skip:te=!1,onCloseResumeBuilder:ne,smartJobApplyEnabled:re,children:ae})=>{const{data:oe,isLoading:ie,error:se,refetch:ce}=useGetJobPreviewQuery(V,{skip:!V||te}),[ue,le]=React.useState(),[ve,fe]=React.useState(null),ge=React.useMemo(()=>{var me;return!re||!(oe!=null&&oe.jobData)||!(oe!=null&&oe.eligibilityCriteria)?!1:((me=determineJobTag(oe==null?void 0:oe.jobData,oe==null?void 0:oe.eligibilityCriteria))==null?void 0:me.eligibleForSmartApply)||!1},[oe==null?void 0:oe.jobData,oe==null?void 0:oe.eligibilityCriteria,re]),pe=me=>{le(me),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:me,jobId:V})};React.useEffect(()=>{K&&fe(K)},[K]);const de={analytics:C,activeApplicationId:ve,setActiveApplicationId:fe,activeTab:ue,setActiveTab:pe,country:$,jobId:V,data:oe,isLoading:ie,error:se,refetch:ce,openMockInterviewModal:J,openResume:ee,jobData:oe==null?void 0:oe.jobData,companyData:oe==null?void 0:oe.companyData,highlights:oe==null?void 0:oe.highlights,eligibilityCriteria:oe==null?void 0:oe.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:ne,isEligibleForSmartApply:ge};return React.createElement(JobPreviewContext.Provider,{value:de},ae)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee,fitmentCheckEnabled:te}){const[ne,re]=React.useState(null),[ae,oe]=React.useState(K),[ie,se]=React.useState(null);return React.useEffect(()=>{K===APPLICATION_STATUS$1.RESUME_CHOICE_SELECT&&te?oe(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):oe(K)},[K,te]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:ne,setFormInstance:re,stepName:ae,setStepName:oe,jobProfileId:J,applicationId:ee,selectedResume:ie,setSelectedResume:se,onEditResume:V,onAddResume:F,fitmentCheckEnabled:te}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_6gwld_1",container$a="_container_6gwld_6",recruiterAvatar="_recruiterAvatar_6gwld_10",recruiterCardContent="_recruiterCardContent_6gwld_14",recruiterName="_recruiterName_6gwld_18",recruiterEmail="_recruiterEmail_6gwld_24",offeredStepItem="_offeredStepItem_6gwld_30",stepItem="_stepItem_6gwld_41",extraInfoText="_extraInfoText_6gwld_46",stageName="_stageName_6gwld_52",pending="_pending_6gwld_58",stageDate="_stageDate_6gwld_62",stageComments="_stageComments_6gwld_66",completedIconContainer="_completedIconContainer_6gwld_71",completedIcon="_completedIcon_6gwld_71",styles$D={descriptionContainer:descriptionContainer$1,container:container$a,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail,offeredStepItem,stepItem,extraInfoText,stageName,pending,stageDate,stageComments,completedIconContainer,completedIcon},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$D.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$D.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$D.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$D.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,{wrap:!0},$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},monthFullNames=["January","February","March","April","May","June","July","August","September","October","November","December"],months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function toStartOfDay(C){const $=new Date(C);return $.setMilliseconds(0),$.setSeconds(0),$.setMinutes(0),$.setHours(0),$}function getDaysDifference(C,$){const V=toStartOfDay(C),F=toStartOfDay($),K=V.getTime()-F.getTime();return parseInt(K/(24*60*60*1e3),10)}function getOrdinal(C){return C>=4&&C<=20||C>=24&&C<=30?"th":["st","nd","rd"][C%10-1]}function toDDMMM(C,{humanFriendly:$,fullMonth:V,withOrdinal:F}={}){const K=new Date(C);if($){const ne=getDaysDifference(Date.now(),K);if(ne===0)return"Today";if(ne===1)return"Yesterday"}const J=K.getDate(),ee=K.getMonth(),te=F?getOrdinal(J):"";return`${J}${te} ${V?monthFullNames[ee]:months[ee]}`}function toDDMMMYYYY(C,{fullMonth:$}={}){const V=new Date(C),F=V.getFullYear();return`${toDDMMM(V,{fullMonth:$})} ${F}`}const toDDMMYY=C=>{const $=new Date(C),V=String($.getMonth()+1).padStart(2,"0"),F=String($.getDate()).padStart(2,"0"),K=$.getFullYear().toString().slice(2);return[F,V,K].join("/")};function getDaysAgo(C){return C?getDaysDifference(new Date,new Date(C)):null}const OFFERED_STATUSES=["offer_received","offer_accepted","joined"],EXCLUDED_STATUSES=["to_be_offered",...OFFERED_STATUSES],APPLICATION_STAGE_STATUSES={ongoing:"ongoing",ongoing_test:"ongoing",rejected:"rejected",completed:"completed",pending:"pending",applicationArchived:"application_archived",applicationWithdrawn:"application_withdrawn"},getCurrentStep=(C,$,V)=>{const F=V.findIndex(J=>J.stageStatus===APPLICATION_STAGE_STATUSES.ongoing);return V.every(J=>J.stageStatus===APPLICATION_STAGE_STATUSES.completed)?V.length:C?$+1:F},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V,status:F,passedCurrentInterview:K}=$||{},J=V.findIndex(oe=>oe.stageStatus===APPLICATION_STAGE_STATUSES.rejected),ee=J!==-1,te=getCurrentStep(ee,J,V),ne=FINAL_OFFERED_STATUSES.includes(F);let re=ee?V.slice(0,J+1):V;re=ne?re:re.filter(oe=>!EXCLUDED_STATUSES.includes(oe.status));const ae=re.map(oe=>{const{expectedUpdateDate:ie,actualUpdateDate:se,stageName:ce,stageComments:ue,stageStatus:le,status:ve}=oe,fe=OFFERED_STATUSES.includes(ve)&&le===APPLICATION_STAGE_STATUSES.completed,ge=!!se,pe=ge&&getDaysDifference(se,ie)<0,de=ge&&getDaysDifference(se,ie)>0,me=ge&&getDaysDifference(se,ie)===0,ye=le===APPLICATION_STAGE_STATUSES.pending,_e=le===APPLICATION_STAGE_STATUSES.rejected,he=le===APPLICATION_STAGE_STATUSES.ongoing;let be=toDDMMMYYYY(ie),Se=null;return ie?pe?(be=toDDMMMYYYY(se),Se=React.createElement(Typography$1.Text,{className:styles$D.extraInfoText},"Completed ",getDaysDifference(ie,se)," ","days early")):(de||me)&&(be=toDDMMMYYYY(se)):be="Not Applicable",{title:React.createElement(Flex$1,{flex:1,justify:"space-between"},React.createElement(Typography$1.Text,{className:classNames(styles$D.stageName,{[styles$D.pending]:ye})},_e&&!se?"Unfortunately the round was not conducted":ce),React.createElement(Typography$1.Text,{className:classNames(styles$D.stageDate,{[styles$D.pending]:ye})},be)),description:React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Text,{className:styles$D.stageComments},ue),Se),status:_e?"error":null,className:fe?styles$D.offeredStepItem:styles$D.stepItem,icon:he&&K?React.createElement("div",{className:styles$D.completedIconContainer},React.createElement(CheckOutlined$1,{className:styles$D.completedIcon})):null}});return React.createElement(Steps$1,{current:te,items:ae,direction:"vertical"})},container$9="_container_all86_1",styles$C={container:container$9},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$C.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$D.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$D.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$D.container},React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$B={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,buttonVariant:J="solid",className:ee,onClick:te,isLoading:ne})=>React.createElement("div",{className:classNames(styles$B.actionBanner,ee)},C,React.createElement("div",{className:styles$B.actionBannerContent},React.createElement("span",{className:styles$B.actionBannerTitle},$),React.createElement("span",{className:styles$B.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,color:"primary",className:styles$B.actionBannerButton,onClick:te,loading:ne,variant:J},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$A={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var se;const C=reactRedux.useSelector(ce=>ce.scalantCareerHub.dashboard.userProfileData),$=(se=C==null?void 0:C.hasCompletedScreeningCall)!=null?se:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te,jobProfileStatus:ne}=F||{},re=te===APPLICATION_STATUS$1.WITHDRAWN,{name:ae}=K||{},oe=ne!==JOB_PROFILE_STATUS$1.active&&te===APPLICATION_STATUS_MAP.Draft,ie=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(ae)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,ae,ee]);return!$||oe||J!==TAG_TO_TAB_MAPPING.applied||re?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$A.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$A.monitorBanner,onClick:ie})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$z={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$z.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$z.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$z.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$z.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$z.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$z.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$z.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$z.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$z.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$y={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$y.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$y.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$y.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$z.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$z.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$z.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$z.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$x={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$x.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$x.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$x.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$z.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$z.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$z.descriptionText},React.createElement("ul",{className:styles$z.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$z.indicatorContainer},React.createElement("div",{className:styles$z.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$z.indicatorDot}))),React.createElement("div",{className:styles$z.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$z.stepTitle},$.title),description:React.createElement("span",{className:styles$z.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$z.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$z.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$z.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$z.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$7="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$w={container:container$7,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$w.dot,styles$w.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$w.dot,styles$w.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$w.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$w.dot,{[styles$w.successDot]:C===STATUS_MAP$1.added,[styles$w.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$w.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS={experience:"Unfortunately! Your profile does not have the relevant years of experience for this role",notice_period:"Unfortunately! Your notice period is not compatible with the notice period required for this role",placed_mentee:"You are ineligible to apply to this job since the CTC offered is less than 1.6x CTC of your previously accepted job offer",diversity:"Unfortunately! Your gender does not match the gender criteria for this role"},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.filter(J=>ADDITIONAL_ELIGIBILITY_MAPPING[J.label]).map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$w.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$w.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$v={bodyContainer,tabs},ExpandedJobViewBody=()=>{var re;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F,analytics:K,jobId:J}=useJobPreview(),{applicationTimeline:ee}=V||{},te=((re=ee==null?void 0:ee.timeline)==null?void 0:re.length)>0&&F===TAG_TO_TAB_MAPPING.applied;React.useEffect(()=>{if(K&&C){const oe={[JOB_BODY_TABS.APPLICATION_TIMELINE.key]:"Application Timeline Tab",[JOB_BODY_TABS.ABOUT_ROLE.key]:"Job Description Tab",[JOB_BODY_TABS.REQUIREMENTS.key]:"Skills Required Tab"}[C]||"Unknown Tab";K.view(`Expanded Job View - ${oe}`,PRODUCT_NAME,{tab:C,jobId:J})}},[K,C,J]);const ne=[te&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$v.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$v.tabs,items:ne,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F},"PipelineJobs"]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon$1="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$u={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon:warningIcon$1,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$u.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$u.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>er(this,null,function*(){var ge,pe;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(ge=fe==null?void 0:fe.data)!=null&&ge.success?(se.success("Application withdrawn successfully"),te(!1),re((pe=WITHDRAW_REASONS[0])==null?void 0:pe.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),ue=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$u.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$u.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$u.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:ue},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>er(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J,isEligibleForSmartApply:ee}=useJobPreview(),{applicationStatus:te,jobProfileStatus:ne}=C||{},{isEligible:re}=$||{},ae=re||ee,oe=te===APPLICATION_STATUS$1.WITHDRAWN,ie=te===APPLICATION_STATUS_MAP.Draft,se=ne===JOB_PROFILE_STATUS$1.active,ce=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F,smartApply:ee})};return React.useEffect(()=>()=>{V(null)},[V]),oe?null:K===TAG_TO_TAB_MAPPING.applied&&!ie?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$u.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:ce,className:styles$u.applyButton,type:"primary",size:"large",disabled:!ae||!se},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$u.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const J=()=>{var re;return C||($&&$[0]&&((re=V[$[0]])!=null&&re.logo)?V[$[0]].logo:missingLogo)},[ee,te]=React.useState(()=>J());React.useEffect(()=>{var re;if(C){te(C);return}if($&&$[0]&&((re=V[$[0]])!=null&&re.logo)){te(V[$[0]].logo);return}te(missingLogo)},[C,$,V]);const ne=()=>{te(missingLogo)};return React.createElement(Avatar$1,{size:K,src:ee,alt:F,onError:ne,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$6="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$t={basicInfo,companyInfo,companyName:companyName$1,container:container$6,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$t.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$t.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$t.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$t.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$t.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$t.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$t.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$t.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$t.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$s={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$s.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,zn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$s.field},React.createElement(Input$1,zn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,q:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>er(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$s.field},React.createElement(Select$1,{mode:"tags",maxCount:1,options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$s.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$s.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$s.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$s.field},React.createElement(Select$1,zn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$s.fieldGroup},React.createElement(Space$1,{className:classNames(styles$s.fieldGroup,styles$s.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$s.field,styles$s.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$s.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$s.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$s.fieldGroup,styles$s.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$s.field,styles$s.checkboxAdjacentField)},React.createElement(Select$1,gr(zn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$s.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$s.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$s.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((nr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:nr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>gr(zn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>gr(zn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>gr(zn({},V),{is_top_5:C==null?void 0:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)});function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$s.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>er(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$s.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$s.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}const form="_form_1ip4j_1",styles$r={form};function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,zn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(zn(zn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$r.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const fitmentService=careerHubApi.injectEndpoints({endpoints:C=>({getFitment:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/job-fitment-evaluation",params:{job_profile_id:$},method:"POST"})})})}),{useGetFitmentQuery}=fitmentService,applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$q={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te,fitmentCheckEnabled:ne}=useApplicationFormContext(),{analytics:re,isEligibleForSmartApply:ae}=useJobPreview(),[oe,{isLoading:ie}]=useUpdateApplicationMutation(),se=()=>er(this,null,function*(){var ue,le;re==null||re.click("Application Form - Next",PRODUCT_NAME);try{const ve={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V),bypass_policy:ae},fe=yield oe({applicationId:F,payload:ve});(ue=fe==null?void 0:fe.data)!=null&&ue.success&&ne?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):(le=fe==null?void 0:fe.data)!=null&&le.success?te(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT):message$1.error("Failed to update application")}catch(ve){console.error(ve),message$1.error("Failed to update application")}}),ce=()=>{re==null||re.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$q.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ce},"Cancel"),React.createElement(Button$2,{loading:ie,type:"primary",onClick:se},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J,isEligibleForSmartApply:ee}=useJobPreview(),[te,{isLoading:ne}]=useUpdateApplicationMutation(),re=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},ae=()=>er(this,null,function*(){var oe;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const se=yield te({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$,bypass_policy:ee}});(oe=se==null?void 0:se.data)!=null&&oe.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(ie){console.error(ie),message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$q.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:re},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:ne,disabled:!$},"Proceed to Apply")))},ResumeFitmentCheckErrorFooter=()=>{const{setStepName:C,jobProfileId:$}=useApplicationFormContext(),{analytics:V}=useJobPreview(),{refetch:F}=useGetFitmentQuery({jobProfileId:$}),K=()=>{C(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT),V==null||V.click("Resume Fitment Check Error - Skip Fitment Check",PRODUCT_NAME)},J=()=>{F(),C(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK),V==null||V.click("Resume Fitment Check Error - Retry Fitment Check",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$q.applicationFormFooterContainer},React.createElement(Button$2,{onClick:K},"Continue to Application"),React.createElement(Button$2,{type:"primary",onClick:J},"Generate your Resume Score"))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR:return React.createElement(ResumeFitmentCheckErrorFooter,null);default:return null}}const transformJobsData=C=>{if(!C||!(C!=null&&C.data)||!Array.isArray(C==null?void 0:C.data))return[];const $={};return C!=null&&C.included&&Array.isArray(C==null?void 0:C.included)&&(C==null||C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=V.attributes)})),C==null?void 0:C.data.map(V=>{if(V.type!=="job_profile"||!V.attributes)return null;const F=V.attributes,K=V.relationships||{};let J=null;if(K.company&&K.company.data){const te=K.company.data.id;J=$[te]||null}return{id:parseInt(V.id,10),title:F.title||"",name:F.title||"",slug:F.slug||"",jobDesc:F.job_desc||"",jobDescText:F.job_desc_text||"",minExperience:F.min_experience?parseFloat(F.min_experience):null,maxExperience:F.max_experience?parseFloat(F.max_experience):null,minCtc:F.min_ctc?parseFloat(F.min_ctc):null,maxCtc:F.max_ctc?parseFloat(F.max_ctc):null,validTill:F.valid_till||null,createdAt:F.created_at||null,jobType:F.job_type||null,preferredCities:F.preferred_cities||"",preferredNoticePeriod:F.preferred_notice_period||null,meritBasedSkills:F.merit_based_skills||[],contestSkills:F.contest_skills||[],applicationStatus:F.application_status||null,expiry:F.expiry||null,applicationId:F.application_id||null,userCompanyStatus:F.user_company_status||null,applicationLastUpdatedAt:F.application_last_upated_at||null,jobSource:F.job_source||null,jobProfileId:F.job_profile_id||null,jobProfileStatus:F.job_profile_status||"active",datePostedOn:F.date_posted_on||null,openForDiscussionCtc:F.open_for_discussion_ctc||!1,appliedOn:F.applied_on||null,seniorityLevel:F.seniority_level||null,roleType:F.role_type||"full_time",duration:F.duration||null,stipend:F.stipend||null,eligibilityCriteria:F.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:F.exceptional_job||!1,isRelevant:F.is_relevant||!1,isInternship:F.role_type==="internship",company:J?[parseInt(K.company.data.id,10)]:[],logo:(J==null?void 0:J.logo)||null,companyName:(J==null?void 0:J.name)||null,companySlug:(J==null?void 0:J.slug)||null,companyLocation:(J==null?void 0:J.location)||null,companyWebsite:(J==null?void 0:J.company_website)||null,companyVision:(J==null?void 0:J.company_vision)||null,companyTagline:(J==null?void 0:J.tagline)||null,companyCategory:(J==null?void 0:J.category)||null,companyEmployeeCount:(J==null?void 0:J.employee_count)||null}}).filter(Boolean)},createCompaniesMap=C=>{const $={};return C!=null&&C.included&&Array.isArray(C.included)&&C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=zn({id:V.id},V.attributes))}),$},normalizeJobsResponse=(C={})=>{var J,ee,te,ne;const $=C.jobs_data||C,V=transformJobsData($),F=createCompaniesMap($),K=(ne=(te=(J=C.total_entries)!=null?J:$.total_entries)!=null?te:(ee=$==null?void 0:$.meta)==null?void 0:ee.total_entries)!=null?ne:null;return{jobs:V,companiesMap:F,results:V,totalEntries:K}},jobsService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAllJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["Jobs"]}),fetchPipelineJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["PipelineJobs"]}),fetchRelevantJobs:C.query({query:($={})=>({url:"/job-tracker/relevancy/",method:"POST",body:gr(zn({},$),{include_exceptional_jobs:!0})}),transformResponse:normalizeJobsResponse,providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery,useFetchPipelineJobsQuery,useFetchRelevantJobsQuery,util:jobsServiceUtil}=jobsService,stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$p={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$4}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F,isEligibleForSmartApply:K}=useJobPreview(),{updateTab:J}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:ee}=useGetJobPreviewQuery(V,{skip:!V}),te=K&&$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED;if(!STEP_MAP[$])return null;const{currentStep:ne,icon:re,title:ae,totalSteps:oe}=STEP_MAP[$]||{},ie=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(jobsServiceUtil.invalidateTags(["PipelineJobs","RelevantJobs","Jobs"]),J(TAG_TO_TAB_MAPPING.applied),ee()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$p.container,direction:"vertical"},React.createElement(Text$4,{className:styles$p.stepText},"Step ",ne,"/",oe),React.createElement(Space$1,{className:styles$p.titleContainer},React.createElement(re,{className:styles$p.titleIcon}),React.createElement(Text$4,{className:styles$p.titleText},ae))),!te&&React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ie}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=Te,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,we){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||we&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
435
435
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var We=!0,Ke=!1,rt;return{s:function(){Pe=Pe.call(Le)},n:function(){var it=Pe.next();return We=it.done,it},e:function(it){Ke=!0,rt=it},f:function(){try{!We&&Pe.return!=null&&Pe.return()}finally{if(Ke)throw rt}}}}function re(Le,we){if(Le){if(typeof Le=="string")return ae(Le,we);var Pe=Object.prototype.toString.call(Le).slice(8,-1);if(Pe==="Object"&&Le.constructor&&(Pe=Le.constructor.name),Pe==="Map"||Pe==="Set")return Array.from(Le);if(Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return ae(Le,we)}}function ae(Le,we){(we==null||we>Le.length)&&(we=Le.length);for(var Pe=0,Me=new Array(we);Pe<we;Pe++)Me[Pe]=Le[Pe];return Me}function oe(Le,we,Pe,Me,He,We,Ke){try{var rt=Le[We](Ke),st=rt.value}catch(it){Pe(it);return}rt.done?we(st):Promise.resolve(st).then(Me,He)}function ie(Le){return function(){var we=this,Pe=arguments;return new Promise(function(Me,He){var We=Le.apply(we,Pe);function Ke(st){oe(We,Me,He,Ke,rt,"next",st)}function rt(st){oe(We,Me,He,Ke,rt,"throw",st)}Ke(void 0)})}}function se(Le,we){if(!(Le instanceof we))throw new TypeError("Cannot call a class as a function")}function ce(Le,we){for(var Pe=0;Pe<we.length;Pe++){var Me=we[Pe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Le,Me.key,Me)}}function ue(Le,we,Pe){return we&&ce(Le.prototype,we),Pe&&ce(Le,Pe),Le}function le(Le,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");Le.prototype=Object.create(we&&we.prototype,{constructor:{value:Le,writable:!0,configurable:!0}}),we&&ve(Le,we)}function ve(Le,we){return ve=Object.setPrototypeOf||function(Me,He){return Me.__proto__=He,Me},ve(Le,we)}function fe(Le){var we=de();return function(){var Me=me(Le),He;if(we){var We=me(this).constructor;He=Reflect.construct(Me,arguments,We)}else He=Me.apply(this,arguments);return ge(this,He)}}function ge(Le,we){if(we&&(F(we)==="object"||typeof we=="function"))return we;if(we!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(Le)}function pe(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function de(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Le){return!1}}function me(Le){return me=Object.setPrototypeOf?Object.getPrototypeOf:function(Pe){return Pe.__proto__||Object.getPrototypeOf(Pe)},me(Le)}var ye="noopener noreferrer nofollow",_e="http://www.w3.org/2000/svg",he={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,J.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};$.PixelsPerInch=he;var be=function(Le){le(Pe,Le);var we=fe(Pe);function Pe(){var Me,He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},We=He.ownerDocument,Ke=We===void 0?globalThis.document:We;return se(this,Pe),Me=we.call(this),Me._document=Ke,Me}return ue(Pe,[{key:"_createCanvas",value:function(He,We){var Ke=this._document.createElement("canvas");return Ke.width=He,Ke.height=We,Ke}}]),Pe}(ee.BaseCanvasFactory);$.DOMCanvasFactory=be;function Se(Le){return Re.apply(this,arguments)}function Re(){return Re=ie(K.default.mark(function Le(we){var Pe,Me,He=arguments;return K.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Pe=He.length>1&&He[1]!==void 0?He[1]:!1,!ze(we,document.baseURI)){Ke.next=21;break}return Ke.next=4,fetch(we);case 4:if(Me=Ke.sent,Me.ok){Ke.next=7;break}throw new Error(Me.statusText);case 7:if(!Pe){Ke.next=15;break}return Ke.t1=Uint8Array,Ke.next=11,Me.arrayBuffer();case 11:Ke.t2=Ke.sent,Ke.t0=new Ke.t1(Ke.t2),Ke.next=20;break;case 15:return Ke.t3=J.stringToBytes,Ke.next=18,Me.text();case 18:Ke.t4=Ke.sent,Ke.t0=(0,Ke.t3)(Ke.t4);case 20:return Ke.abrupt("return",Ke.t0);case 21:return Ke.abrupt("return",new Promise(function(rt,st){var it=new XMLHttpRequest;it.open("GET",we,!0),Pe&&(it.responseType="arraybuffer"),it.onreadystatechange=function(){if(it.readyState===XMLHttpRequest.DONE){if(it.status===200||it.status===0){var Je;if(Pe&&it.response?Je=new Uint8Array(it.response):!Pe&&it.responseText&&(Je=(0,J.stringToBytes)(it.responseText)),Je){rt(Je);return}}st(new Error(it.statusText))}},it.send(null)}));case 22:case"end":return Ke.stop()}},Le)})),Re.apply(this,arguments)}var Ce=function(Le){le(Pe,Le);var we=fe(Pe);function Pe(){return se(this,Pe),we.apply(this,arguments)}return ue(Pe,[{key:"_fetchData",value:function(He,We){return Se(He,this.isCompressed).then(function(Ke){return{cMapData:Ke,compressionType:We}})}}]),Pe}(ee.BaseCMapReaderFactory);$.DOMCMapReaderFactory=Ce;var xe=function(Le){le(Pe,Le);var we=fe(Pe);function Pe(){return se(this,Pe),we.apply(this,arguments)}return ue(Pe,[{key:"_fetchData",value:function(He){return Se(He,!0)}}]),Pe}(ee.BaseStandardFontDataFactory);$.DOMStandardFontDataFactory=xe;var $e=function(Le){le(Pe,Le);var we=fe(Pe);function Pe(){return se(this,Pe),we.apply(this,arguments)}return ue(Pe,[{key:"_createSVG",value:function(He){return document.createElementNS(_e,He)}}]),Pe}(ee.BaseSVGFactory);$.DOMSVGFactory=$e;var Ie=function(){function Le(we){var Pe=we.viewBox,Me=we.scale,He=we.rotation,We=we.offsetX,Ke=We===void 0?0:We,rt=we.offsetY,st=rt===void 0?0:rt,it=we.dontFlip,Je=it===void 0?!1:it;se(this,Le),this.viewBox=Pe,this.scale=Me,this.rotation=He,this.offsetX=Ke,this.offsetY=st;var ct=(Pe[2]+Pe[0])/2,dt=(Pe[3]+Pe[1])/2,vt,ht,bt,Rt;switch(He%=360,He<0&&(He+=360),He){case 180:vt=-1,ht=0,bt=0,Rt=1;break;case 90:vt=0,ht=1,bt=1,Rt=0;break;case 270:vt=0,ht=-1,bt=-1,Rt=0;break;case 0:vt=1,ht=0,bt=0,Rt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Je&&(bt=-bt,Rt=-Rt);var Tt,lt,ut,Ge;vt===0?(Tt=Math.abs(dt-Pe[1])*Me+Ke,lt=Math.abs(ct-Pe[0])*Me+st,ut=Math.abs(Pe[3]-Pe[1])*Me,Ge=Math.abs(Pe[2]-Pe[0])*Me):(Tt=Math.abs(ct-Pe[0])*Me+Ke,lt=Math.abs(dt-Pe[1])*Me+st,ut=Math.abs(Pe[2]-Pe[0])*Me,Ge=Math.abs(Pe[3]-Pe[1])*Me),this.transform=[vt*Me,ht*Me,bt*Me,Rt*Me,Tt-vt*Me*ct-bt*Me*dt,lt-ht*Me*ct-Rt*Me*dt],this.width=ut,this.height=Ge}return ue(Le,[{key:"clone",value:function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Me=Pe.scale,He=Me===void 0?this.scale:Me,We=Pe.rotation,Ke=We===void 0?this.rotation:We,rt=Pe.offsetX,st=rt===void 0?this.offsetX:rt,it=Pe.offsetY,Je=it===void 0?this.offsetY:it,ct=Pe.dontFlip,dt=ct===void 0?!1:ct;return new Le({viewBox:this.viewBox.slice(),scale:He,rotation:Ke,offsetX:st,offsetY:Je,dontFlip:dt})}},{key:"convertToViewportPoint",value:function(Pe,Me){return J.Util.applyTransform([Pe,Me],this.transform)}},{key:"convertToViewportRectangle",value:function(Pe){var Me=J.Util.applyTransform([Pe[0],Pe[1]],this.transform),He=J.Util.applyTransform([Pe[2],Pe[3]],this.transform);return[Me[0],Me[1],He[0],He[1]]}},{key:"convertToPdfPoint",value:function(Pe,Me){return J.Util.applyInverseTransform([Pe,Me],this.transform)}}]),Le}();$.PageViewport=Ie;var Fe=function(Le){le(Pe,Le);var we=fe(Pe);function Pe(Me,He){var We;return se(this,Pe),We=we.call(this,Me,"RenderingCancelledException"),We.type=He,We}return Pe}(J.BaseException);$.RenderingCancelledException=Fe;var Ne={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};$.LinkTarget=Ne;function De(Le){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=we.url,Me=we.target,He=we.rel,We=we.enabled,Ke=We===void 0?!0:We;(0,J.assert)(Pe&&typeof Pe=="string",'addLinkAttributes: A valid "url" parameter must provided.');var rt=(0,J.removeNullCharacters)(Pe);Ke?Le.href=Le.title=rt:(Le.href="",Le.title="Disabled: ".concat(rt),Le.onclick=function(){return!1});var st="";switch(Me){case Ne.NONE:break;case Ne.SELF:st="_self";break;case Ne.BLANK:st="_blank";break;case Ne.PARENT:st="_parent";break;case Ne.TOP:st="_top";break}Le.target=st,Le.rel=typeof He=="string"?He:ye}function Oe(Le){for(var we=Le.length,Pe=0;Pe<we&&Le[Pe].trim()==="";)Pe++;return Le.substring(Pe,Pe+5).toLowerCase()==="data:"}function Te(Le){return typeof Le=="string"&&/\.pdf$/i.test(Le)}function Ae(Le){var we=Le.indexOf("#"),Pe=Le.indexOf("?"),Me=Math.min(we>0?we:Le.length,Pe>0?Pe:Le.length);return Le.substring(Le.lastIndexOf("/",Me)+1,Me)}function ke(Le){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof Le!="string")return we;if(Oe(Le))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),we;var Pe=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Me=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,He=Pe.exec(Le),We=Me.exec(He[1])||Me.exec(He[2])||Me.exec(He[3]);if(We&&(We=We[0],We.includes("%")))try{We=Me.exec(decodeURIComponent(We))[0]}catch(Ke){}return We||we}var je=function(){function Le(){se(this,Le),this.started=Object.create(null),this.times=[]}return ue(Le,[{key:"time",value:function(Pe){Pe in this.started&&(0,J.warn)("Timer is already running for ".concat(Pe)),this.started[Pe]=Date.now()}},{key:"timeEnd",value:function(Pe){Pe in this.started||(0,J.warn)("Timer has not been started for ".concat(Pe)),this.times.push({name:Pe,start:this.started[Pe],end:Date.now()}),delete this.started[Pe]}},{key:"toString",value:function(){var Pe=[],Me=0,He=ne(this.times),We;try{for(He.s();!(We=He.n()).done;){var Ke=We.value,rt=Ke.name;rt.length>Me&&(Me=rt.length)}}catch(dt){He.e(dt)}finally{He.f()}var st=ne(this.times),it;try{for(st.s();!(it=st.n()).done;){var Je=it.value,ct=Je.end-Je.start;Pe.push("".concat(Je.name.padEnd(Me)," ").concat(ct,`ms
436
436
  `))}}catch(dt){st.e(dt)}finally{st.f()}return Pe.join("")}}]),Le}();$.StatTimer=je;function ze(Le,we){try{var Pe=we?new URL(Le,we):new URL(Le),Me=Pe.protocol;return Me==="http:"||Me==="https:"}catch(He){return!1}}function Ve(Le){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(Pe,Me){var He=document.createElement("script");He.src=Le,He.onload=function(We){we&&He.remove(),Pe(We)},He.onerror=function(){Me(new Error("Cannot load script at: ".concat(He.src)))},(document.head||document.documentElement).appendChild(He)})}function Xe(Le){console.log("Deprecated API usage: "+Le)}var Ye,at=function(){function Le(){se(this,Le)}return ue(Le,null,[{key:"toDateObject",value:function(Pe){if(!Pe||!(0,J.isString)(Pe))return null;Ye||(Ye=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var Me=Ye.exec(Pe);if(!Me)return null;var He=parseInt(Me[1],10),We=parseInt(Me[2],10);We=We>=1&&We<=12?We-1:0;var Ke=parseInt(Me[3],10);Ke=Ke>=1&&Ke<=31?Ke:1;var rt=parseInt(Me[4],10);rt=rt>=0&&rt<=23?rt:0;var st=parseInt(Me[5],10);st=st>=0&&st<=59?st:0;var it=parseInt(Me[6],10);it=it>=0&&it<=59?it:0;var Je=Me[7]||"Z",ct=parseInt(Me[8],10);ct=ct>=0&&ct<=23?ct:0;var dt=parseInt(Me[9],10)||0;return dt=dt>=0&&dt<=59?dt:0,Je==="-"?(rt+=ct,st+=dt):Je==="+"&&(rt-=ct,st-=dt),new Date(Date.UTC(He,We,Ke,rt,st,it))}}]),Le}();$.PDFDateString=at;function Ue(Le,we){var Pe=we.scale,Me=Pe===void 0?1:Pe,He=we.rotation,We=He===void 0?0:He,Ke=Le.attributes.style,rt=Ke.width,st=Ke.height,it=[0,0,parseInt(rt),parseInt(st)];return new Ie({viewBox:it,scale:Me,rotation:We})}},(C,$,V)=>{C.exports=V(3)},(C,$,V)=>{C=V.nmd(C);function F(J){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(te){return typeof te}:F=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},F(J)}var K=function(J){var ee=Object.prototype,te=ee.hasOwnProperty,ne,re=typeof Symbol=="function"?Symbol:{},ae=re.iterator||"@@iterator",oe=re.asyncIterator||"@@asyncIterator",ie=re.toStringTag||"@@toStringTag";function se(Te,Ae,ke){return Object.defineProperty(Te,Ae,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Te[Ae]}try{se({},"")}catch(Te){se=function(ke,je,ze){return ke[je]=ze}}function ce(Te,Ae,ke,je){var ze=Ae&&Ae.prototype instanceof de?Ae:de,Ve=Object.create(ze.prototype),Xe=new Ne(je||[]);return Ve._invoke=xe(Te,ke,Xe),Ve}J.wrap=ce;function ue(Te,Ae,ke){try{return{type:"normal",arg:Te.call(Ae,ke)}}catch(je){return{type:"throw",arg:je}}}var le="suspendedStart",ve="suspendedYield",fe="executing",ge="completed",pe={};function de(){}function me(){}function ye(){}var _e={};se(_e,ae,function(){return this});var he=Object.getPrototypeOf,be=he&&he(he(De([])));be&&be!==ee&&te.call(be,ae)&&(_e=be);var Se=ye.prototype=de.prototype=Object.create(_e);me.prototype=ye,se(Se,"constructor",ye),se(ye,"constructor",me),me.displayName=se(ye,ie,"GeneratorFunction");function Re(Te){["next","throw","return"].forEach(function(Ae){se(Te,Ae,function(ke){return this._invoke(Ae,ke)})})}J.isGeneratorFunction=function(Te){var Ae=typeof Te=="function"&&Te.constructor;return Ae?Ae===me||(Ae.displayName||Ae.name)==="GeneratorFunction":!1},J.mark=function(Te){return Object.setPrototypeOf?Object.setPrototypeOf(Te,ye):(Te.__proto__=ye,se(Te,ie,"GeneratorFunction")),Te.prototype=Object.create(Se),Te},J.awrap=function(Te){return{__await:Te}};function Ce(Te,Ae){function ke(Ve,Xe,Ye,at){var Ue=ue(Te[Ve],Te,Xe);if(Ue.type==="throw")at(Ue.arg);else{var Le=Ue.arg,we=Le.value;return we&&F(we)==="object"&&te.call(we,"__await")?Ae.resolve(we.__await).then(function(Pe){ke("next",Pe,Ye,at)},function(Pe){ke("throw",Pe,Ye,at)}):Ae.resolve(we).then(function(Pe){Le.value=Pe,Ye(Le)},function(Pe){return ke("throw",Pe,Ye,at)})}}var je;function ze(Ve,Xe){function Ye(){return new Ae(function(at,Ue){ke(Ve,Xe,at,Ue)})}return je=je?je.then(Ye,Ye):Ye()}this._invoke=ze}Re(Ce.prototype),se(Ce.prototype,oe,function(){return this}),J.AsyncIterator=Ce,J.async=function(Te,Ae,ke,je,ze){ze===void 0&&(ze=Promise);var Ve=new Ce(ce(Te,Ae,ke,je),ze);return J.isGeneratorFunction(Ae)?Ve:Ve.next().then(function(Xe){return Xe.done?Xe.value:Ve.next()})};function xe(Te,Ae,ke){var je=le;return function(Ve,Xe){if(je===fe)throw new Error("Generator is already running");if(je===ge){if(Ve==="throw")throw Xe;return Oe()}for(ke.method=Ve,ke.arg=Xe;;){var Ye=ke.delegate;if(Ye){var at=$e(Ye,ke);if(at){if(at===pe)continue;return at}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(je===le)throw je=ge,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);je=fe;var Ue=ue(Te,Ae,ke);if(Ue.type==="normal"){if(je=ke.done?ge:ve,Ue.arg===pe)continue;return{value:Ue.arg,done:ke.done}}else Ue.type==="throw"&&(je=ge,ke.method="throw",ke.arg=Ue.arg)}}}function $e(Te,Ae){var ke=Te.iterator[Ae.method];if(ke===ne){if(Ae.delegate=null,Ae.method==="throw"){if(Te.iterator.return&&(Ae.method="return",Ae.arg=ne,$e(Te,Ae),Ae.method==="throw"))return pe;Ae.method="throw",Ae.arg=new TypeError("The iterator does not provide a 'throw' method")}return pe}var je=ue(ke,Te.iterator,Ae.arg);if(je.type==="throw")return Ae.method="throw",Ae.arg=je.arg,Ae.delegate=null,pe;var ze=je.arg;if(!ze)return Ae.method="throw",Ae.arg=new TypeError("iterator result is not an object"),Ae.delegate=null,pe;if(ze.done)Ae[Te.resultName]=ze.value,Ae.next=Te.nextLoc,Ae.method!=="return"&&(Ae.method="next",Ae.arg=ne);else return ze;return Ae.delegate=null,pe}Re(Se),se(Se,ie,"Generator"),se(Se,ae,function(){return this}),se(Se,"toString",function(){return"[object Generator]"});function Ie(Te){var Ae={tryLoc:Te[0]};1 in Te&&(Ae.catchLoc=Te[1]),2 in Te&&(Ae.finallyLoc=Te[2],Ae.afterLoc=Te[3]),this.tryEntries.push(Ae)}function Fe(Te){var Ae=Te.completion||{};Ae.type="normal",delete Ae.arg,Te.completion=Ae}function Ne(Te){this.tryEntries=[{tryLoc:"root"}],Te.forEach(Ie,this),this.reset(!0)}J.keys=function(Te){var Ae=[];for(var ke in Te)Ae.push(ke);return Ae.reverse(),function je(){for(;Ae.length;){var ze=Ae.pop();if(ze in Te)return je.value=ze,je.done=!1,je}return je.done=!0,je}};function De(Te){if(Te){var Ae=Te[ae];if(Ae)return Ae.call(Te);if(typeof Te.next=="function")return Te;if(!isNaN(Te.length)){var ke=-1,je=function ze(){for(;++ke<Te.length;)if(te.call(Te,ke))return ze.value=Te[ke],ze.done=!1,ze;return ze.value=ne,ze.done=!0,ze};return je.next=je}}return{next:Oe}}J.values=De;function Oe(){return{value:ne,done:!0}}return Ne.prototype={constructor:Ne,reset:function(Ae){if(this.prev=0,this.next=0,this.sent=this._sent=ne,this.done=!1,this.delegate=null,this.method="next",this.arg=ne,this.tryEntries.forEach(Fe),!Ae)for(var ke in this)ke.charAt(0)==="t"&&te.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=ne)},stop:function(){this.done=!0;var Ae=this.tryEntries[0],ke=Ae.completion;if(ke.type==="throw")throw ke.arg;return this.rval},dispatchException:function(Ae){if(this.done)throw Ae;var ke=this;function je(Ue,Le){return Xe.type="throw",Xe.arg=Ae,ke.next=Ue,Le&&(ke.method="next",ke.arg=ne),!!Le}for(var ze=this.tryEntries.length-1;ze>=0;--ze){var Ve=this.tryEntries[ze],Xe=Ve.completion;if(Ve.tryLoc==="root")return je("end");if(Ve.tryLoc<=this.prev){var Ye=te.call(Ve,"catchLoc"),at=te.call(Ve,"finallyLoc");if(Ye&&at){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0);if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else if(Ye){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0)}else if(at){if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ae,ke){for(var je=this.tryEntries.length-1;je>=0;--je){var ze=this.tryEntries[je];if(ze.tryLoc<=this.prev&&te.call(ze,"finallyLoc")&&this.prev<ze.finallyLoc){var Ve=ze;break}}Ve&&(Ae==="break"||Ae==="continue")&&Ve.tryLoc<=ke&&ke<=Ve.finallyLoc&&(Ve=null);var Xe=Ve?Ve.completion:{};return Xe.type=Ae,Xe.arg=ke,Ve?(this.method="next",this.next=Ve.finallyLoc,pe):this.complete(Xe)},complete:function(Ae,ke){if(Ae.type==="throw")throw Ae.arg;return Ae.type==="break"||Ae.type==="continue"?this.next=Ae.arg:Ae.type==="return"?(this.rval=this.arg=Ae.arg,this.method="return",this.next="end"):Ae.type==="normal"&&ke&&(this.next=ke),pe},finish:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.finallyLoc===Ae)return this.complete(je.completion,je.afterLoc),Fe(je),pe}},catch:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.tryLoc===Ae){var ze=je.completion;if(ze.type==="throw"){var Ve=ze.arg;Fe(je)}return Ve}}throw new Error("illegal catch attempt")},delegateYield:function(Ae,ke,je){return this.delegate={iterator:De(Ae),resultName:ke,nextLoc:je},this.method==="next"&&(this.arg=ne),pe}},J}(F(C)==="object"?C.exports:{});try{regeneratorRuntime=K}catch(J){(typeof globalThis=="undefined"?"undefined":F(globalThis))==="object"?globalThis.regeneratorRuntime=K:Function("r","regeneratorRuntime = r")(K)}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.VerbosityLevel=$.Util=$.UnknownErrorException=$.UnexpectedResponseException=$.UNSUPPORTED_FEATURES=$.TextRenderingMode=$.StreamType=$.RenderingIntentFlag=$.PermissionFlag=$.PasswordResponses=$.PasswordException=$.PageActionEventType=$.OPS=$.MissingPDFException=$.IsLittleEndianCached=$.IsEvalSupportedCached=$.InvalidPDFException=$.ImageKind=$.IDENTITY_MATRIX=$.FormatError=$.FontType=$.FONT_IDENTITY_MATRIX=$.DocumentActionEventType=$.CMapCompressionType=$.BaseException=$.AnnotationType=$.AnnotationStateModelType=$.AnnotationReviewState=$.AnnotationReplyType=$.AnnotationMode=$.AnnotationMarkedState=$.AnnotationFlag=$.AnnotationFieldFlag=$.AnnotationBorderStyleType=$.AnnotationActionEventType=$.AbortException=void 0,$.arrayByteLength=ft,$.arraysToBytes=yt,$.assert=it,$.bytesToString=qe,$.createObjectURL=gn,$.createPromiseCapability=sn,$.createValidAbsoluteUrl=dt,$.escapeString=Gt,$.getModificationDate=dn,$.getVerbosityLevel=We,$.info=Ke,$.isArrayBuffer=Wt,$.isArrayEqual=Jt,$.isAscii=zt,$.isBool=qt,$.isNum=ln,$.isSameOrigin=Je,$.isString=Cn,$.objectFromMap=Dt,$.objectSize=kt,$.removeNullCharacters=tt,$.setVerbosityLevel=He,$.shadow=vt,$.string32=$t,$.stringToBytes=ot,$.stringToPDFString=Ht,$.stringToUTF16BEString=Ft,$.stringToUTF8String=Vt,$.unreachable=st,$.utf8StringToString=Kt,$.warn=rt,V(5);function F(mt,Ot){for(var pt=0;pt<Ot.length;pt++){var _t=Ot[pt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(mt,_t.key,_t)}}function K(mt,Ot,pt){return Ot&&F(mt.prototype,Ot),pt&&F(mt,pt),mt}function J(mt){return ne(mt)||te(mt)||ce(mt)||ee()}function ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
437
437
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(mt){if(typeof Symbol!="undefined"&&mt[Symbol.iterator]!=null||mt["@@iterator"]!=null)return Array.from(mt)}function ne(mt){if(Array.isArray(mt))return ue(mt)}function re(mt,Ot){return ie(mt)||oe(mt,Ot)||ce(mt,Ot)||ae()}function ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -466,4 +466,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
466
466
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve=!0,Xe=!1,Ye;return{s:function(){ke=ke.call(Te)},n:function(){var Ue=ke.next();return Ve=Ue.done,Ue},e:function(Ue){Xe=!0,Ye=Ue},f:function(){try{!Ve&&ke.return!=null&&ke.return()}finally{if(Xe)throw Ye}}}}function fe(Te,Ae){if(Te){if(typeof Te=="string")return ge(Te,Ae);var ke=Object.prototype.toString.call(Te).slice(8,-1);if(ke==="Object"&&Te.constructor&&(ke=Te.constructor.name),ke==="Map"||ke==="Set")return Array.from(Te);if(ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke))return ge(Te,Ae)}}function ge(Te,Ae){(Ae==null||Ae>Te.length)&&(Ae=Te.length);for(var ke=0,je=new Array(Ae);ke<Ae;ke++)je[ke]=Te[ke];return je}function pe(Te,Ae){if(!(Te instanceof Ae))throw new TypeError("Cannot call a class as a function")}function de(Te,Ae){for(var ke=0;ke<Ae.length;ke++){var je=Ae[ke];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(Te,je.key,je)}}function me(Te,Ae,ke){return Ae&&de(Te.prototype,Ae),ke&&de(Te,ke),Te}var ye=require$$5,_e=require$$5,he=require$$5,be=require$$5,Se=/^file:\/\/\/[a-zA-Z]:\//;function Re(Te){var Ae=be.parse(Te);return Ae.protocol==="file:"||Ae.host?Ae:/^[a-z]:[/\\]/i.test(Te)?be.parse("file:///".concat(Te)):(Ae.host||(Ae.protocol="file:"),Ae)}var Ce=function(){function Te(Ae){pe(this,Te),this.source=Ae,this.url=Re(Ae.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&Ae.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return me(Te,[{key:"_progressiveDataLength",get:function(){var ke,je;return(ke=(je=this._fullRequestReader)===null||je===void 0?void 0:je._loaded)!==null&&ke!==void 0?ke:0}},{key:"getFullReader",value:function(){return(0,J.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new De(this):new Fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(ke,je){if(je<=this._progressiveDataLength)return null;var ze=this.isFsUrl?new Oe(this,ke,je):new Ne(this,ke,je);return this._rangeRequestReaders.push(ze),ze}},{key:"cancelAllRequests",value:function(ke){this._fullRequestReader&&this._fullRequestReader.cancel(ke);var je=ve(this._rangeRequestReaders.slice(0)),ze;try{for(je.s();!(ze=je.n()).done;){var Ve=ze.value;Ve.cancel(ke)}}catch(Xe){je.e(Xe)}finally{je.f()}}}]),Te}();$.PDFNodeStream=Ce;var xe=function(){function Te(Ae){pe(this,Te),this._url=Ae.url,this._done=!1,this._storedError=null,this.onProgress=null;var ke=Ae.source;this._contentLength=ke.length,this._loaded=0,this._filename=null,this._disableRange=ke.disableRange||!1,this._rangeChunkSize=ke.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!ke.disableStream,this._isRangeSupported=!ke.disableRange,this._readableStream=null,this._readCapability=(0,J.createPromiseCapability)(),this._headersCapability=(0,J.createPromiseCapability)()}return me(Te,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var Ae=le(K.default.mark(function je(){var ze,Ve;return K.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this._readCapability.promise;case 2:if(!this._done){Ye.next=4;break}return Ye.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ye.next=6;break}throw this._storedError;case 6:if(ze=this._readableStream.read(),ze!==null){Ye.next=10;break}return this._readCapability=(0,J.createPromiseCapability)(),Ye.abrupt("return",this.read());case 10:return this._loaded+=ze.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Ve=new Uint8Array(ze).buffer,Ye.abrupt("return",{value:Ve,done:!1});case 14:case"end":return Ye.stop()}},je,this)}));function ke(){return Ae.apply(this,arguments)}return ke}()},{key:"cancel",value:function(ke){if(!this._readableStream){this._error(ke);return}this._readableStream.destroy(ke)}},{key:"_error",value:function(ke){this._storedError=ke,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(ke){var je=this;this._readableStream=ke,ke.on("readable",function(){je._readCapability.resolve()}),ke.on("end",function(){ke.destroy(),je._done=!0,je._readCapability.resolve()}),ke.on("error",function(ze){je._error(ze)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new J.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),Te}(),$e=function(){function Te(Ae){pe(this,Te),this._url=Ae.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,J.createPromiseCapability)();var ke=Ae.source;this._isStreamingSupported=!ke.disableStream}return me(Te,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var Ae=le(K.default.mark(function je(){var ze,Ve;return K.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this._readCapability.promise;case 2:if(!this._done){Ye.next=4;break}return Ye.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ye.next=6;break}throw this._storedError;case 6:if(ze=this._readableStream.read(),ze!==null){Ye.next=10;break}return this._readCapability=(0,J.createPromiseCapability)(),Ye.abrupt("return",this.read());case 10:return this._loaded+=ze.length,this.onProgress&&this.onProgress({loaded:this._loaded}),Ve=new Uint8Array(ze).buffer,Ye.abrupt("return",{value:Ve,done:!1});case 14:case"end":return Ye.stop()}},je,this)}));function ke(){return Ae.apply(this,arguments)}return ke}()},{key:"cancel",value:function(ke){if(!this._readableStream){this._error(ke);return}this._readableStream.destroy(ke)}},{key:"_error",value:function(ke){this._storedError=ke,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(ke){var je=this;this._readableStream=ke,ke.on("readable",function(){je._readCapability.resolve()}),ke.on("end",function(){ke.destroy(),je._done=!0,je._readCapability.resolve()}),ke.on("error",function(ze){je._error(ze)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),Te}();function Ie(Te,Ae){return{protocol:Te.protocol,auth:Te.auth,host:Te.hostname,port:Te.port,path:Te.path,method:"GET",headers:Ae}}var Fe=function(Te){ne(ke,Te);var Ae=ae(ke);function ke(je){var ze;pe(this,ke),ze=Ae.call(this,je);var Ve=function(Ye){if(Ye.statusCode===404){var at=new J.MissingPDFException('Missing PDF "'.concat(ze._url,'".'));ze._storedError=at,ze._headersCapability.reject(at);return}ze._headersCapability.resolve(),ze._setReadableStream(Ye);var Ue=function(He){return ze._readableStream.headers[He.toLowerCase()]},Le=(0,ee.validateRangeRequestCapabilities)({getResponseHeader:Ue,isHttp:je.isHttp,rangeChunkSize:ze._rangeChunkSize,disableRange:ze._disableRange}),we=Le.allowRangeRequests,Pe=Le.suggestedLength;ze._isRangeSupported=we,ze._contentLength=Pe||ze._contentLength,ze._filename=(0,ee.extractFilenameFromHeader)(Ue)};return ze._request=null,ze._url.protocol==="http:"?ze._request=_e.request(Ie(ze._url,je.httpHeaders),Ve):ze._request=he.request(Ie(ze._url,je.httpHeaders),Ve),ze._request.on("error",function(Xe){ze._storedError=Xe,ze._headersCapability.reject(Xe)}),ze._request.end(),ze}return ke}(xe),Ne=function(Te){ne(ke,Te);var Ae=ae(ke);function ke(je,ze,Ve){var Xe;pe(this,ke),Xe=Ae.call(this,je),Xe._httpHeaders={};for(var Ye in je.httpHeaders){var at=je.httpHeaders[Ye];typeof at!="undefined"&&(Xe._httpHeaders[Ye]=at)}Xe._httpHeaders.Range="bytes=".concat(ze,"-").concat(Ve-1);var Ue=function(we){if(we.statusCode===404){var Pe=new J.MissingPDFException('Missing PDF "'.concat(Xe._url,'".'));Xe._storedError=Pe;return}Xe._setReadableStream(we)};return Xe._request=null,Xe._url.protocol==="http:"?Xe._request=_e.request(Ie(Xe._url,Xe._httpHeaders),Ue):Xe._request=he.request(Ie(Xe._url,Xe._httpHeaders),Ue),Xe._request.on("error",function(Le){Xe._storedError=Le}),Xe._request.end(),Xe}return ke}($e),De=function(Te){ne(ke,Te);var Ae=ae(ke);function ke(je){var ze;pe(this,ke),ze=Ae.call(this,je);var Ve=decodeURIComponent(ze._url.path);return Se.test(ze._url.href)&&(Ve=Ve.replace(/^\//,"")),ye.lstat(Ve,function(Xe,Ye){if(Xe){Xe.code==="ENOENT"&&(Xe=new J.MissingPDFException('Missing PDF "'.concat(Ve,'".'))),ze._storedError=Xe,ze._headersCapability.reject(Xe);return}ze._contentLength=Ye.size,ze._setReadableStream(ye.createReadStream(Ve)),ze._headersCapability.resolve()}),ze}return ke}(xe),Oe=function(Te){ne(ke,Te);var Ae=ae(ke);function ke(je,ze,Ve){var Xe;pe(this,ke),Xe=Ae.call(this,je);var Ye=decodeURIComponent(Xe._url.path);return Se.test(Xe._url.href)&&(Ye=Ye.replace(/^\//,"")),Xe._setReadableStream(ye.createReadStream(Ye,{start:ze,end:Ve-1})),Xe}return ke}($e)},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.createResponseStatusError=ne,$.extractFilenameFromHeader=te,$.validateRangeRequestCapabilities=ee,$.validateResponseStatus=re;var F=V(4),K=V(155),J=V(1);function ee(ae){var oe=ae.getResponseHeader,ie=ae.isHttp,se=ae.rangeChunkSize,ce=ae.disableRange;(0,F.assert)(se>0,"Range chunk size must be larger than zero");var ue={allowRangeRequests:!1,suggestedLength:void 0},le=parseInt(oe("Content-Length"),10);if(!Number.isInteger(le)||(ue.suggestedLength=le,le<=2*se)||ce||!ie||oe("Accept-Ranges")!=="bytes")return ue;var ve=oe("Content-Encoding")||"identity";return ve!=="identity"||(ue.allowRangeRequests=!0),ue}function te(ae){var oe=ae("Content-Disposition");if(oe){var ie=(0,K.getFilenameFromContentDispositionHeader)(oe);if(ie.includes("%"))try{ie=decodeURIComponent(ie)}catch(se){}if((0,J.isPdfFile)(ie))return ie}return null}function ne(ae,oe){return ae===404||ae===0&&oe.startsWith("file:")?new F.MissingPDFException('Missing PDF "'+oe+'".'):new F.UnexpectedResponseException("Unexpected server response (".concat(ae,') while retrieving PDF "').concat(oe,'".'),ae)}function re(ae){return ae===200||ae===206}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.getFilenameFromContentDispositionHeader=ae;var F=V(4);function K(oe,ie){return re(oe)||ne(oe,ie)||ee(oe,ie)||J()}function J(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
467
467
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(oe,ie){if(oe){if(typeof oe=="string")return te(oe,ie);var se=Object.prototype.toString.call(oe).slice(8,-1);if(se==="Object"&&oe.constructor&&(se=oe.constructor.name),se==="Map"||se==="Set")return Array.from(oe);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return te(oe,ie)}}function te(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var se=0,ce=new Array(ie);se<ie;se++)ce[se]=oe[se];return ce}function ne(oe,ie){var se=oe==null?null:typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(se!=null){var ce=[],ue=!0,le=!1,ve,fe;try{for(se=se.call(oe);!(ue=(ve=se.next()).done)&&(ce.push(ve.value),!(ie&&ce.length===ie));ue=!0);}catch(ge){le=!0,fe=ge}finally{try{!ue&&se.return!=null&&se.return()}finally{if(le)throw fe}}return ce}}function re(oe){if(Array.isArray(oe))return oe}function ae(oe){var ie=!0,se=ve("filename\\*","i").exec(oe);if(se){se=se[1];var ce=de(se);return ce=unescape(ce),ce=me(ce),ce=ye(ce),ge(ce)}if(se=pe(oe),se){var ue=ye(se);return ge(ue)}if(se=ve("filename","i").exec(oe),se){se=se[1];var le=de(se);return le=ye(le),ge(le)}function ve(_e,he){return new RegExp("(?:^|;)\\s*"+_e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',he)}function fe(_e,he){if(_e){if(!/^[\x00-\xFF]+$/.test(he))return he;try{var be=new TextDecoder(_e,{fatal:!0}),Se=(0,F.stringToBytes)(he);he=be.decode(Se),ie=!1}catch(Re){if(/^utf-?8$/i.test(_e))try{he=decodeURIComponent(escape(he)),ie=!1}catch(Ce){}}}return he}function ge(_e){return ie&&/[\x80-\xff]/.test(_e)&&(_e=fe("utf-8",_e),ie&&(_e=fe("iso-8859-1",_e))),_e}function pe(_e){for(var he=[],be,Se=ve("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(be=Se.exec(_e))!==null;){var Re=be,Ce=K(Re,4),xe=Ce[1],$e=Ce[2],Ie=Ce[3];if(xe=parseInt(xe,10),xe in he){if(xe===0)break;continue}he[xe]=[$e,Ie]}for(var Fe=[],Ne=0;Ne<he.length&&Ne in he;++Ne){var De=K(he[Ne],2),Oe=De[0],Te=De[1];Te=de(Te),Oe&&(Te=unescape(Te),Ne===0&&(Te=me(Te))),Fe.push(Te)}return Fe.join("")}function de(_e){if(_e.startsWith('"')){for(var he=_e.slice(1).split('\\"'),be=0;be<he.length;++be){var Se=he[be].indexOf('"');Se!==-1&&(he[be]=he[be].slice(0,Se),he.length=be+1),he[be]=he[be].replace(/\\(.)/g,"$1")}_e=he.join('"')}return _e}function me(_e){var he=_e.indexOf("'");if(he===-1)return _e;var be=_e.slice(0,he),Se=_e.slice(he+1),Re=Se.replace(/^[^']*'/,"");return fe(be,Re)}function ye(_e){return!_e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(_e)?_e:_e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(he,be,Se,Re){if(Se==="q"||Se==="Q")return Re=Re.replace(/_/g," "),Re=Re.replace(/=([0-9a-fA-F]{2})/g,function(Ce,xe){return String.fromCharCode(parseInt(xe,16))}),fe(be,Re);try{Re=atob(Re)}catch(Ce){}return fe(be,Re)})}return""}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.PDFNetworkStream=void 0;var F=ee(V(2)),K=V(4),J=V(154);function ee(me){return me&&me.__esModule?me:{default:me}}function te(me,ye,_e,he,be,Se,Re){try{var Ce=me[Se](Re),xe=Ce.value}catch($e){_e($e);return}Ce.done?ye(xe):Promise.resolve(xe).then(he,be)}function ne(me){return function(){var ye=this,_e=arguments;return new Promise(function(he,be){var Se=me.apply(ye,_e);function Re(xe){te(Se,he,be,Re,Ce,"next",xe)}function Ce(xe){te(Se,he,be,Re,Ce,"throw",xe)}Re(void 0)})}}function re(me,ye){var _e=typeof Symbol!="undefined"&&me[Symbol.iterator]||me["@@iterator"];if(!_e){if(Array.isArray(me)||(_e=ae(me))||ye&&me&&typeof me.length=="number"){_e&&(me=_e);var he=0,be=function(){};return{s:be,n:function(){return he>=me.length?{done:!0}:{done:!1,value:me[he++]}},e:function($e){throw $e},f:be}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
468
468
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se=!0,Re=!1,Ce;return{s:function(){_e=_e.call(me)},n:function(){var $e=_e.next();return Se=$e.done,$e},e:function($e){Re=!0,Ce=$e},f:function(){try{!Se&&_e.return!=null&&_e.return()}finally{if(Re)throw Ce}}}}function ae(me,ye){if(me){if(typeof me=="string")return oe(me,ye);var _e=Object.prototype.toString.call(me).slice(8,-1);if(_e==="Object"&&me.constructor&&(_e=me.constructor.name),_e==="Map"||_e==="Set")return Array.from(me);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return oe(me,ye)}}function oe(me,ye){(ye==null||ye>me.length)&&(ye=me.length);for(var _e=0,he=new Array(ye);_e<ye;_e++)he[_e]=me[_e];return he}function ie(me,ye){if(!(me instanceof ye))throw new TypeError("Cannot call a class as a function")}function se(me,ye){for(var _e=0;_e<ye.length;_e++){var he=ye[_e];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(me,he.key,he)}}function ce(me,ye,_e){return ye&&se(me.prototype,ye),_e&&se(me,_e),me}var ue=200,le=206;function ve(me){var ye=me.response;if(typeof ye!="string")return ye;var _e=(0,K.stringToBytes)(ye);return _e.buffer}var fe=function(){function me(ye){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,me),this.url=ye,this.isHttp=/^https?:/i.test(ye),this.httpHeaders=this.isHttp&&_e.httpHeaders||Object.create(null),this.withCredentials=_e.withCredentials||!1,this.getXhr=_e.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return ce(me,[{key:"requestRange",value:function(_e,he,be){var Se={begin:_e,end:he};for(var Re in be)Se[Re]=be[Re];return this.request(Se)}},{key:"requestFull",value:function(_e){return this.request(_e)}},{key:"request",value:function(_e){var he=this.getXhr(),be=this.currXhrId++,Se=this.pendingRequests[be]={xhr:he};he.open("GET",this.url),he.withCredentials=this.withCredentials;for(var Re in this.httpHeaders){var Ce=this.httpHeaders[Re];typeof Ce!="undefined"&&he.setRequestHeader(Re,Ce)}return this.isHttp&&"begin"in _e&&"end"in _e?(he.setRequestHeader("Range","bytes=".concat(_e.begin,"-").concat(_e.end-1)),Se.expectedStatus=le):Se.expectedStatus=ue,he.responseType="arraybuffer",_e.onError&&(he.onerror=function(xe){_e.onError(he.status)}),he.onreadystatechange=this.onStateChange.bind(this,be),he.onprogress=this.onProgress.bind(this,be),Se.onHeadersReceived=_e.onHeadersReceived,Se.onDone=_e.onDone,Se.onError=_e.onError,Se.onProgress=_e.onProgress,he.send(null),be}},{key:"onProgress",value:function(_e,he){var be,Se=this.pendingRequests[_e];Se&&((be=Se.onProgress)===null||be===void 0||be.call(Se,he))}},{key:"onStateChange",value:function(_e,he){var be=this.pendingRequests[_e];if(be){var Se=be.xhr;if(Se.readyState>=2&&be.onHeadersReceived&&(be.onHeadersReceived(),delete be.onHeadersReceived),Se.readyState===4&&_e in this.pendingRequests){if(delete this.pendingRequests[_e],Se.status===0&&this.isHttp){var Re;(Re=be.onError)===null||Re===void 0||Re.call(be,Se.status);return}var Ce=Se.status||ue,xe=Ce===ue&&be.expectedStatus===le;if(!xe&&Ce!==be.expectedStatus){var $e;($e=be.onError)===null||$e===void 0||$e.call(be,Se.status);return}var Ie=ve(Se);if(Ce===le){var Fe=Se.getResponseHeader("Content-Range"),Ne=/bytes (\d+)-(\d+)\/(\d+)/.exec(Fe);be.onDone({begin:parseInt(Ne[1],10),chunk:Ie})}else if(Ie)be.onDone({begin:0,chunk:Ie});else{var De;(De=be.onError)===null||De===void 0||De.call(be,Se.status)}}}}},{key:"getRequestXhr",value:function(_e){return this.pendingRequests[_e].xhr}},{key:"isPendingRequest",value:function(_e){return _e in this.pendingRequests}},{key:"abortRequest",value:function(_e){var he=this.pendingRequests[_e].xhr;delete this.pendingRequests[_e],he.abort()}}]),me}(),ge=function(){function me(ye){ie(this,me),this._source=ye,this._manager=new fe(ye.url,{httpHeaders:ye.httpHeaders,withCredentials:ye.withCredentials}),this._rangeChunkSize=ye.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(me,[{key:"_onRangeRequestReaderClosed",value:function(_e){var he=this._rangeRequestReaders.indexOf(_e);he>=0&&this._rangeRequestReaders.splice(he,1)}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new pe(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(_e,he){var be=new de(this._manager,_e,he);return be.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(be),be}},{key:"cancelAllRequests",value:function(_e){var he;(he=this._fullRequestReader)===null||he===void 0||he.cancel(_e);var be=re(this._rangeRequestReaders.slice(0)),Se;try{for(be.s();!(Se=be.n()).done;){var Re=Se.value;Re.cancel(_e)}}catch(Ce){be.e(Ce)}finally{be.f()}}}]),me}();$.PDFNetworkStream=ge;var pe=function(){function me(ye,_e){ie(this,me),this._manager=ye;var he={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=_e.url,this._fullRequestId=ye.requestFull(he),this._headersReceivedCapability=(0,K.createPromiseCapability)(),this._disableRange=_e.disableRange||!1,this._contentLength=_e.length,this._rangeChunkSize=_e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return ce(me,[{key:"_onHeadersReceived",value:function(){var _e=this._fullRequestId,he=this._manager.getRequestXhr(_e),be=function($e){return he.getResponseHeader($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:be,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),Re=Se.allowRangeRequests,Ce=Se.suggestedLength;Re&&(this._isRangeSupported=!0),this._contentLength=Ce||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(be),this._isRangeSupported&&this._manager.abortRequest(_e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(_e){if(_e)if(this._requests.length>0){var he=this._requests.shift();he.resolve({value:_e.chunk,done:!1})}else this._cachedChunks.push(_e.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){var be=re(this._requests),Se;try{for(be.s();!(Se=be.n()).done;){var Re=Se.value;Re.resolve({value:void 0,done:!0})}}catch(Ce){be.e(Ce)}finally{be.f()}this._requests.length=0}}},{key:"_onError",value:function(_e){this._storedError=(0,J.createResponseStatusError)(_e,this._url),this._headersReceivedCapability.reject(this._storedError);var he=re(this._requests),be;try{for(he.s();!(be=he.n()).done;){var Se=be.value;Se.reject(this._storedError)}}catch(Re){he.e(Re)}finally{he.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(_e){var he;(he=this.onProgress)===null||he===void 0||he.call(this,{loaded:_e.loaded,total:_e.lengthComputable?_e.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var ye=ne(F.default.mark(function he(){var be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!this._storedError){Ce.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){Ce.next=5;break}return be=this._cachedChunks.shift(),Ce.abrupt("return",{value:be,done:!1});case 5:if(!this._done){Ce.next=7;break}return Ce.abrupt("return",{value:void 0,done:!0});case 7:return Se=(0,K.createPromiseCapability)(),this._requests.push(Se),Ce.abrupt("return",Se.promise);case 10:case"end":return Ce.stop()}},he,this)}));function _e(){return ye.apply(this,arguments)}return _e}()},{key:"cancel",value:function(_e){this._done=!0,this._headersReceivedCapability.reject(_e);var he=re(this._requests),be;try{for(he.s();!(be=he.n()).done;){var Se=be.value;Se.resolve({value:void 0,done:!0})}}catch(Re){he.e(Re)}finally{he.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),me}(),de=function(){function me(ye,_e,he){ie(this,me),this._manager=ye;var be={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ye.url,this._requestId=ye.requestRange(_e,he,be),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return ce(me,[{key:"_close",value:function(){var _e;(_e=this.onClosed)===null||_e===void 0||_e.call(this,this)}},{key:"_onDone",value:function(_e){var he=_e.chunk;if(this._requests.length>0){var be=this._requests.shift();be.resolve({value:he,done:!1})}else this._queuedChunk=he;this._done=!0;var Se=re(this._requests),Re;try{for(Se.s();!(Re=Se.n()).done;){var Ce=Re.value;Ce.resolve({value:void 0,done:!0})}}catch(xe){Se.e(xe)}finally{Se.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(_e){this._storedError=(0,J.createResponseStatusError)(_e,this._url);var he=re(this._requests),be;try{for(he.s();!(be=he.n()).done;){var Se=be.value;Se.reject(this._storedError)}}catch(Re){he.e(Re)}finally{he.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(_e){if(!this.isStreamingSupported){var he;(he=this.onProgress)===null||he===void 0||he.call(this,{loaded:_e.loaded})}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var ye=ne(F.default.mark(function he(){var be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!this._storedError){Ce.next=2;break}throw this._storedError;case 2:if(this._queuedChunk===null){Ce.next=6;break}return be=this._queuedChunk,this._queuedChunk=null,Ce.abrupt("return",{value:be,done:!1});case 6:if(!this._done){Ce.next=8;break}return Ce.abrupt("return",{value:void 0,done:!0});case 8:return Se=(0,K.createPromiseCapability)(),this._requests.push(Se),Ce.abrupt("return",Se.promise);case 11:case"end":return Ce.stop()}},he,this)}));function _e(){return ye.apply(this,arguments)}return _e}()},{key:"cancel",value:function(_e){this._done=!0;var he=re(this._requests),be;try{for(he.s();!(be=he.n()).done;){var Se=be.value;Se.resolve({value:void 0,done:!0})}}catch(Re){he.e(Re)}finally{he.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),me}()},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.PDFFetchStream=void 0;var F=ee(V(2)),K=V(4),J=V(154);function ee(pe){return pe&&pe.__esModule?pe:{default:pe}}function te(pe,de,me,ye,_e,he,be){try{var Se=pe[he](be),Re=Se.value}catch(Ce){me(Ce);return}Se.done?de(Re):Promise.resolve(Re).then(ye,_e)}function ne(pe){return function(){var de=this,me=arguments;return new Promise(function(ye,_e){var he=pe.apply(de,me);function be(Re){te(he,ye,_e,be,Se,"next",Re)}function Se(Re){te(he,ye,_e,be,Se,"throw",Re)}be(void 0)})}}function re(pe,de){var me=typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(!me){if(Array.isArray(pe)||(me=ae(pe))||de&&pe&&typeof pe.length=="number"){me&&(pe=me);var ye=0,_e=function(){};return{s:_e,n:function(){return ye>=pe.length?{done:!0}:{done:!1,value:pe[ye++]}},e:function(Ce){throw Ce},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
469
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he=!0,be=!1,Se;return{s:function(){me=me.call(pe)},n:function(){var Ce=me.next();return he=Ce.done,Ce},e:function(Ce){be=!0,Se=Ce},f:function(){try{!he&&me.return!=null&&me.return()}finally{if(be)throw Se}}}}function ae(pe,de){if(pe){if(typeof pe=="string")return oe(pe,de);var me=Object.prototype.toString.call(pe).slice(8,-1);if(me==="Object"&&pe.constructor&&(me=pe.constructor.name),me==="Map"||me==="Set")return Array.from(pe);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return oe(pe,de)}}function oe(pe,de){(de==null||de>pe.length)&&(de=pe.length);for(var me=0,ye=new Array(de);me<de;me++)ye[me]=pe[me];return ye}function ie(pe,de){if(!(pe instanceof de))throw new TypeError("Cannot call a class as a function")}function se(pe,de){for(var me=0;me<de.length;me++){var ye=de[me];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(pe,ye.key,ye)}}function ce(pe,de,me){return de&&se(pe.prototype,de),me&&se(pe,me),pe}function ue(pe,de,me){return{method:"GET",headers:pe,signal:me==null?void 0:me.signal,mode:"cors",credentials:de?"include":"same-origin",redirect:"follow"}}function le(pe){var de=new Headers;for(var me in pe){var ye=pe[me];typeof ye!="undefined"&&de.append(me,ye)}return de}var ve=function(){function pe(de){ie(this,pe),this.source=de,this.isHttp=/^https?:/i.test(de.url),this.httpHeaders=this.isHttp&&de.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(pe,[{key:"_progressiveDataLength",get:function(){var me,ye;return(me=(ye=this._fullRequestReader)===null||ye===void 0?void 0:ye._loaded)!==null&&me!==void 0?me:0}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(me,ye){if(ye<=this._progressiveDataLength)return null;var _e=new ge(this,me,ye);return this._rangeRequestReaders.push(_e),_e}},{key:"cancelAllRequests",value:function(me){this._fullRequestReader&&this._fullRequestReader.cancel(me);var ye=re(this._rangeRequestReaders.slice(0)),_e;try{for(ye.s();!(_e=ye.n()).done;){var he=_e.value;he.cancel(me)}}catch(be){ye.e(be)}finally{ye.f()}}}]),pe}();$.PDFFetchStream=ve;var fe=function(){function pe(de){var me=this;ie(this,pe),this._stream=de,this._reader=null,this._loaded=0,this._filename=null;var ye=de.source;this._withCredentials=ye.withCredentials||!1,this._contentLength=ye.length,this._headersCapability=(0,K.createPromiseCapability)(),this._disableRange=ye.disableRange||!1,this._rangeChunkSize=ye.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!ye.disableStream,this._isRangeSupported=!ye.disableRange,this._headers=le(this._stream.httpHeaders);var _e=ye.url;fetch(_e,ue(this._headers,this._withCredentials,this._abortController)).then(function(he){if(!(0,J.validateResponseStatus)(he.status))throw(0,J.createResponseStatusError)(he.status,_e);me._reader=he.body.getReader(),me._headersCapability.resolve();var be=function($e){return he.headers.get($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:be,isHttp:me._stream.isHttp,rangeChunkSize:me._rangeChunkSize,disableRange:me._disableRange}),Re=Se.allowRangeRequests,Ce=Se.suggestedLength;me._isRangeSupported=Re,me._contentLength=Ce||me._contentLength,me._filename=(0,J.extractFilenameFromHeader)(be),!me._isStreamingSupported&&me._isRangeSupported&&me.cancel(new K.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return ce(pe,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var de=ne(F.default.mark(function ye(){var _e,he,be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._headersCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(_e=Ce.sent,he=_e.value,be=_e.done,!be){Ce.next=9;break}return Ce.abrupt("return",{value:he,done:be});case 9:return this._loaded+=he.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Se=new Uint8Array(he).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function me(){return de.apply(this,arguments)}return me}()},{key:"cancel",value:function(me){this._reader&&this._reader.cancel(me),this._abortController&&this._abortController.abort()}}]),pe}(),ge=function(){function pe(de,me,ye){var _e=this;ie(this,pe),this._stream=de,this._reader=null,this._loaded=0;var he=de.source;this._withCredentials=he.withCredentials||!1,this._readCapability=(0,K.createPromiseCapability)(),this._isStreamingSupported=!he.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=le(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(me,"-").concat(ye-1));var be=he.url;fetch(be,ue(this._headers,this._withCredentials,this._abortController)).then(function(Se){if(!(0,J.validateResponseStatus)(Se.status))throw(0,J.createResponseStatusError)(Se.status,be);_e._readCapability.resolve(),_e._reader=Se.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return ce(pe,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var de=ne(F.default.mark(function ye(){var _e,he,be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._readCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(_e=Ce.sent,he=_e.value,be=_e.done,!be){Ce.next=9;break}return Ce.abrupt("return",{value:he,done:be});case 9:return this._loaded+=he.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),Se=new Uint8Array(he).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function me(){return de.apply(this,arguments)}return me}()},{key:"cancel",value:function(me){this._reader&&this._reader.cancel(me),this._abortController&&this._abortController.abort()}}]),pe}()}],__webpack_module_cache__={};function __w_pdfjs_require__(C){var $=__webpack_module_cache__[C];if($!==void 0)return $.exports;var V=__webpack_module_cache__[C]={id:C,loaded:!1,exports:{}};return __webpack_modules__[C].call(V.exports,V,V.exports,__w_pdfjs_require__),V.loaded=!0,V.exports}__w_pdfjs_require__.nmd=C=>(C.paths=[],C.children||(C.children=[]),C);var __webpack_exports__={};return(()=>{var C=__webpack_exports__;Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"AnnotationLayer",{enumerable:!0,get:function(){return K.AnnotationLayer}}),Object.defineProperty(C,"AnnotationMode",{enumerable:!0,get:function(){return V.AnnotationMode}}),Object.defineProperty(C,"CMapCompressionType",{enumerable:!0,get:function(){return V.CMapCompressionType}}),Object.defineProperty(C,"GlobalWorkerOptions",{enumerable:!0,get:function(){return J.GlobalWorkerOptions}}),Object.defineProperty(C,"InvalidPDFException",{enumerable:!0,get:function(){return V.InvalidPDFException}}),Object.defineProperty(C,"LinkTarget",{enumerable:!0,get:function(){return $.LinkTarget}}),Object.defineProperty(C,"LoopbackPort",{enumerable:!0,get:function(){return F.LoopbackPort}}),Object.defineProperty(C,"MissingPDFException",{enumerable:!0,get:function(){return V.MissingPDFException}}),Object.defineProperty(C,"OPS",{enumerable:!0,get:function(){return V.OPS}}),Object.defineProperty(C,"PDFDataRangeTransport",{enumerable:!0,get:function(){return F.PDFDataRangeTransport}}),Object.defineProperty(C,"PDFDateString",{enumerable:!0,get:function(){return $.PDFDateString}}),Object.defineProperty(C,"PDFWorker",{enumerable:!0,get:function(){return F.PDFWorker}}),Object.defineProperty(C,"PasswordResponses",{enumerable:!0,get:function(){return V.PasswordResponses}}),Object.defineProperty(C,"PermissionFlag",{enumerable:!0,get:function(){return V.PermissionFlag}}),Object.defineProperty(C,"PixelsPerInch",{enumerable:!0,get:function(){return $.PixelsPerInch}}),Object.defineProperty(C,"RenderingCancelledException",{enumerable:!0,get:function(){return $.RenderingCancelledException}}),Object.defineProperty(C,"SVGGraphics",{enumerable:!0,get:function(){return ne.SVGGraphics}}),Object.defineProperty(C,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return V.UNSUPPORTED_FEATURES}}),Object.defineProperty(C,"UnexpectedResponseException",{enumerable:!0,get:function(){return V.UnexpectedResponseException}}),Object.defineProperty(C,"Util",{enumerable:!0,get:function(){return V.Util}}),Object.defineProperty(C,"VerbosityLevel",{enumerable:!0,get:function(){return V.VerbosityLevel}}),Object.defineProperty(C,"XfaLayer",{enumerable:!0,get:function(){return re.XfaLayer}}),Object.defineProperty(C,"addLinkAttributes",{enumerable:!0,get:function(){return $.addLinkAttributes}}),Object.defineProperty(C,"build",{enumerable:!0,get:function(){return F.build}}),Object.defineProperty(C,"createObjectURL",{enumerable:!0,get:function(){return V.createObjectURL}}),Object.defineProperty(C,"createPromiseCapability",{enumerable:!0,get:function(){return V.createPromiseCapability}}),Object.defineProperty(C,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return V.createValidAbsoluteUrl}}),Object.defineProperty(C,"getDocument",{enumerable:!0,get:function(){return F.getDocument}}),Object.defineProperty(C,"getFilenameFromUrl",{enumerable:!0,get:function(){return $.getFilenameFromUrl}}),Object.defineProperty(C,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return $.getPdfFilenameFromUrl}}),Object.defineProperty(C,"getXfaPageViewport",{enumerable:!0,get:function(){return $.getXfaPageViewport}}),Object.defineProperty(C,"isPdfFile",{enumerable:!0,get:function(){return $.isPdfFile}}),Object.defineProperty(C,"loadScript",{enumerable:!0,get:function(){return $.loadScript}}),Object.defineProperty(C,"removeNullCharacters",{enumerable:!0,get:function(){return V.removeNullCharacters}}),Object.defineProperty(C,"renderTextLayer",{enumerable:!0,get:function(){return te.renderTextLayer}}),Object.defineProperty(C,"shadow",{enumerable:!0,get:function(){return V.shadow}}),Object.defineProperty(C,"version",{enumerable:!0,get:function(){return F.version}});var $=__w_pdfjs_require__(1),V=__w_pdfjs_require__(4),F=__w_pdfjs_require__(136),K=__w_pdfjs_require__(148),J=__w_pdfjs_require__(142),ee=__w_pdfjs_require__(6),te=__w_pdfjs_require__(151),ne=__w_pdfjs_require__(152),re=__w_pdfjs_require__(150);if(ee.isNodeJS){var ae=__w_pdfjs_require__(153),oe=ae.PDFNodeStream;(0,F.setPDFNetworkStreamFactory)(function(le){return new oe(le)})}else{var ie=__w_pdfjs_require__(156),se=ie.PDFNetworkStream,ce=__w_pdfjs_require__(157),ue=ce.PDFFetchStream;(0,F.setPDFNetworkStreamFactory)(function(le){return(0,$.isValidFetchUrl)(le.url)?new ue(le):new se(le)})}})(),__webpack_exports__})()})})(pdf);var pdfExports=pdf.exports,__spreadArray=globalThis&&globalThis.__spreadArray||function(C,$,V){if(V||arguments.length===2)for(var F=0,K=$.length,J;F<K;F++)(J||!(F in $))&&(J||(J=Array.prototype.slice.call($,0,F)),J[F]=$[F]);return C.concat(J||Array.prototype.slice.call($))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(C,$){var V={};return allEvents.forEach(function(F){var K=C[F];K&&($?V[F]=function(J){return K(J,$(F))}:V[F]=K)}),V}function makeCancellablePromise(C){var $=!1,V=new Promise(function(F,K){C.then(function(J){return!$&&F(J)}).catch(function(J){return!$&&K(J)})});return{promise:V,cancel:function(){$=!0}}}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(C,$){return C.concat($)},[]).filter(function(C){return typeof C=="string"}).join(" ")}var isProduction$1=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(C,$){if(!C){if(isProduction$1)throw new Error(prefix);var V=typeof $=="function"?$():$,F=V?"".concat(prefix,": ").concat(V):prefix;throw new Error(F)}}var isProduction=process.env.NODE_ENV==="production";function warning(C,$){if(!isProduction){if(C)return;var V="Warning: "+$;typeof console!="undefined"&&console.warn(V);try{throw Error(V)}catch(F){}}}const DocumentContext=React.createContext(null);function Message(C){var $=C.children,V=C.type;return React.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(V)},$)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=function(){function C(){_classCallCheck(this,C),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass(C,[{key:"setDocument",value:function(V){this.pdfDocument=V}},{key:"setViewer",value:function(V){this.pdfViewer=V}},{key:"setExternalLinkRel",value:function(V){this.externalLinkRel=V}},{key:"setExternalLinkTarget",value:function(V){this.externalLinkTarget=V}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(V){this.pdfViewer.currentPageNumber=V}},{key:"rotation",get:function(){return 0},set:function(V){}},{key:"goToDestination",value:function(V){var F=this;new Promise(function(K){typeof V=="string"?F.pdfDocument.getDestination(V).then(K):Array.isArray(V)?K(V):V.then(K)}).then(function(K){invariant(Array.isArray(K),'"'.concat(K,'" is not a valid destination array.'));var J=K[0];new Promise(function(ee){J instanceof Object?F.pdfDocument.getPageIndex(J).then(function(te){ee(te)}).catch(function(){invariant(!1,'"'.concat(J,'" is not a valid page reference.'))}):typeof J=="number"?ee(J):invariant(!1,'"'.concat(J,'" is not a valid destination reference.'))}).then(function(ee){var te=ee+1;invariant(te>=1&&te<=F.pagesCount,'"'.concat(te,'" is not a valid page number.')),F.pdfViewer.scrollPageIntoView({dest:V,pageIndex:ee,pageNumber:te})})})}},{key:"navigateTo",value:function(V){this.goToDestination(V)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(V,F,K){V.href=F,V.rel=this.externalLinkRel||DEFAULT_LINK_REL,V.target=K?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),C}(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window!="undefined",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(C){return typeof C!="undefined"}function isProvided(C){return isDefined(C)&&C!==null}function isString(C){return typeof C=="string"}function isArrayBuffer(C){return C instanceof ArrayBuffer}function isBlob(C){return invariant(isBrowser,"isBlob can only be used in a browser environment"),C instanceof Blob}function isFile$1(C){return invariant(isBrowser,"isFile can only be used in a browser environment"),C instanceof File}function isDataURI(C){return isString(C)&&/^data:/.test(C)}function dataURItoByteString(C){invariant(isDataURI(C),"Invalid data URI.");var $=C.split(","),V=_slicedToArray($,2),F=V[0],K=V[1],J=F.split(";");return J.indexOf("base64")!==-1?atob(K):unescape(K)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}var allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning(!isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function displayWorkerWarning(){warning(!isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function cancelRunningTask(C){C&&C.cancel&&C.cancel()}function makePageCallback(C,$){return Object.defineProperty(C,"width",{get:function(){return this.view[2]*$},configurable:!0}),Object.defineProperty(C,"height",{get:function(){return this.view[3]*$},configurable:!0}),Object.defineProperty(C,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(C,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),C}function isCancelException(C){return C.name==="RenderingCancelledException"}function loadFromFile(C){return new Promise(function($,V){var F=new FileReader;return F.onload=function(){return $(new Uint8Array(F.result))},F.onerror=function(K){switch(K.target.error.code){case K.target.error.NOT_FOUND_ERR:return V(new Error("Error while reading a file: File not found."));case K.target.error.NOT_READABLE_ERR:return V(new Error("Error while reading a file: File not readable."));case K.target.error.SECURITY_ERR:return V(new Error("Error while reading a file: Security error."));case K.target.error.ABORT_ERR:return V(new Error("Error while reading a file: Aborted."));default:return V(new Error("Error while reading a file."))}},F.readAsArrayBuffer(C),null})}var eventProps=function(){var C={};return[].concat(_toConsumableArray(mouseEvents),_toConsumableArray(touchEvents),_toConsumableArray(keyboardEvents)).forEach(function($){C[$]=PropTypes.func}),C}(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File!="undefined"&&fileTypes.push(PropTypes.instanceOf(File)),typeof Blob!="undefined"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function C($,V,F){var K=$[V],J=$.pageNumber,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<0)return new Error("Expected `".concat(V,"` to be greater or equal to 0."));var te=ee.numPages;if(K+1>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te-1,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPageNumber=function C($,V,F){var K=$[V],J=$.pageIndex,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<1)return new Error("Expected `".concat(V,"` to be greater or equal to 1."));var te=ee.numPages;if(K>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$2(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$2(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$2(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper$6(C){var $=_isNativeReflectConstruct$6();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document$1=function(C){_inherits(V,C);var $=_createSuper$6(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{pdf:null}),_defineProperty(_assertThisInitialized(F),"viewer",{scrollPageIntoView:function(ne){var re=ne.dest,ae=ne.pageIndex,oe=ne.pageNumber,ie=F.props.onItemClick;if(ie){ie({dest:re,pageIndex:ae,pageNumber:oe});return}var se=F.pages[ae];if(se){se.scrollIntoView();return}warning(!1,"An internal link leading to page ".concat(oe," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),_defineProperty(_assertThisInitialized(F),"linkService",new LinkService),_defineProperty(_assertThisInitialized(F),"loadDocument",function(){cancelRunningTask(F.runningTask),F.loadingTask&&F.loadingTask.destroy();var te=makeCancellablePromise(F.findDocumentSource());F.runningTask=te,te.promise.then(function(ne){if(F.onSourceSuccess(),!!ne){F.setState(function(ce){return ce.pdf?{pdf:null}:null});var re=F.props,ae=re.options,oe=re.onLoadProgress,ie=re.onPassword;F.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},ne),ae)),F.loadingTask.onPassword=ie,oe&&(F.loadingTask.onProgress=oe);var se=makeCancellablePromise(F.loadingTask.promise);F.runningTask=se,se.promise.then(function(ce){F.setState(function(ue){return ue.pdf&&ue.pdf.fingerprint===ce.fingerprint?null:{pdf:ce}},F.onLoadSuccess)}).catch(function(ce){F.onLoadError(ce)})}}).catch(function(ne){F.onSourceError(ne)})}),_defineProperty(_assertThisInitialized(F),"setupLinkService",function(){var te=F.props,ne=te.externalLinkRel,re=te.externalLinkTarget;F.linkService.setViewer(F.viewer),F.linkService.setExternalLinkRel(ne),F.linkService.setExternalLinkTarget(re)}),_defineProperty(_assertThisInitialized(F),"onSourceSuccess",function(){var te=F.props.onSourceSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onSourceError",function(te){warning(te);var ne=F.props.onSourceError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onLoadSuccess,ne=F.state.pdf;te&&te(ne),F.pages=new Array(ne.numPages),F.linkService.setDocument(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({pdf:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"findDocumentSource",function(){return new Promise(function(te){var ne=F.props.file;if(ne||te(null),typeof ne=="string"){if(isDataURI(ne)){var re=dataURItoByteString(ne);te({data:re})}displayCORSWarning(),te({url:ne})}if(ne instanceof PDFDataRangeTransport&&te({range:ne}),isArrayBuffer(ne)&&te({data:ne}),isBrowser&&(isBlob(ne)||isFile$1(ne))){loadFromFile(ne).then(function(se){te({data:se})});return}if(invariant(_typeof(ne)==="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(ne.url||ne.data||ne.range,"Invalid parameter object: need either .data, .range or .url"),typeof ne.url=="string"){if(isDataURI(ne.url)){var ae=ne.url,oe=_objectWithoutProperties(ne,_excluded),ie=dataURItoByteString(ae);te(_objectSpread$2({data:ie},oe))}displayCORSWarning()}te(ne)})}),_defineProperty(_assertThisInitialized(F),"registerPage",function(te,ne){F.pages[te]=ne}),_defineProperty(_assertThisInitialized(F),"unregisterPage",function(te){delete F.pages[te]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(K){var J=this.props.file;J!==K.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var K=this.linkService,J=this.registerPage,ee=this.unregisterPage,te=this.props,ne=te.imageResourcesPath,re=te.renderMode,ae=te.rotate,oe=this.state.pdf;return{imageResourcesPath:ne,linkService:K,pdf:oe,registerPage:J,renderMode:re,rotate:ae,unregisterPage:ee}}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){return K.state.pdf})}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(DocumentContext.Provider,{value:this.childContext},K)}},{key:"renderContent",value:function(){var K=this.props.file,J=this.state.pdf;if(!K){var ee=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof ee=="function"?ee():ee)}if(J===null){var te=this.props.loading;return React.createElement(Message,{type:"loading"},typeof te=="function"?te():te)}if(J===!1){var ne=this.props.error;return React.createElement(Message,{type:"error"},typeof ne=="function"?ne():ne)}return this.renderChildren()}},{key:"render",value:function(){var K=this.props,J=K.className,ee=K.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Document",J),ref:ee},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);Document$1.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function C($,V){switch(V){case PasswordResponses.NEED_PASSWORD:{var F=prompt("Enter the password to open this PDF file.");$(F);break}case PasswordResponses.INCORRECT_PASSWORD:{var K=prompt("Invalid password. Please try again.");$(K);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document$1.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$1(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$1(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$1(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);function mergeRefs(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];var V=C.filter(Boolean);if(V.length<=1){var F=V[0];return F||null}return function(J){V.forEach(function(ee){typeof ee=="function"?ee(J):ee&&(ee.current=J)})}}const PageContext=React.createContext(null);function _createSuper$5(C){var $=_isNativeReflectConstruct$5();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=function(C){_inherits(V,C);var $=_createSuper$5(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"canvasElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"drawPageOnCanvas",function(){var te=F.canvasElement.current;if(!te)return null;var ne=_assertThisInitialized(F),re=ne.renderViewport,ae=ne.viewport,oe=F.props,ie=oe.canvasBackground,se=oe.page,ce=oe.renderForms;te.width=re.width,te.height=re.height,te.style.width="".concat(Math.floor(ae.width),"px"),te.style.height="".concat(Math.floor(ae.height),"px");var ue={annotationMode:ce?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return te.getContext("2d")},viewport:re};return ie&&(ue.background=ie),F.cancelRenderingTask(),F.renderer=se.render(ue),F.renderer.promise.then(F.onRenderSuccess).catch(F.onRenderError)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.canvasBackground,te=J.page,ne=J.renderForms;(ee!==K.canvasBackground||ne!==K.renderForms)&&(te.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var K=this.canvasElement.current;K&&(K.width=0,K.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale,ne=getPixelRatio();return J.getViewport({scale:te*ne,rotation:ee})}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this.props.canvasRef;return React.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(K,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),V}(React.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageCanvasInternal,_extends({},$,C))})}function _createSuper$4(C){var $=_isNativeReflectConstruct$4();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PageSVGInternal=function(C){_inherits(V,C);var $=_createSuper$4(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{svg:null}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"renderSVG",function(){var te=F.props.page;return F.renderer=te.getOperatorList(),F.renderer.then(function(ne){var re=new pdfExports.SVGGraphics(te.commonObjs,te.objs);F.renderer=re.getSVG(ne,F.viewport).then(function(ae){F.setState({svg:ae},F.onRenderSuccess)}).catch(F.onRenderError)}).catch(F.onRenderError)}),_defineProperty(_assertThisInitialized(F),"drawPageOnContainer",function(te){var ne=F.state.svg;if(!(!te||!ne)){te.firstElementChild||te.appendChild(ne);var re=F.viewport,ae=re.width,oe=re.height;ne.setAttribute("width",ae),ne.setAttribute("height",oe)}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this,J=this.viewport,ee=J.width,te=J.height;return React.createElement("div",{className:"react-pdf__Page__svg",ref:function(re){return K.drawPageOnContainer(re)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:ee,height:te,userSelect:"none"}})}}]),V}(React.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageSVGInternal,_extends({},$,C))})}function _createSuper$3(C){var $=_isNativeReflectConstruct$3();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerItemInternal=function(C){_inherits(V,C);var $=_createSuper$3(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"itemElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"getElementWidth",function(te){var ne=_assertThisInitialized(F),re=ne.sideways;return te.getBoundingClientRect()[re?"height":"width"]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"sideways",get:function(){var K=this.rotate;return K%180!==0}},{key:"defaultSideways",get:function(){var K=this.unrotatedViewport.rotation;return K%180!==0}},{key:"fontSize",get:function(){var K=this.props.transform,J=this.defaultSideways,ee=_slicedToArray(K,2),te=ee[0],ne=ee[1];return J?ne:te}},{key:"top",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[2],re=te[3],ae=te[4],oe=te[5],ie=_slicedToArray(J.viewBox,4),se=ie[1],ce=ie[3];return ee?ae+ne+se:ce-(oe+re)}},{key:"left",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[4],re=te[5],ae=_slicedToArray(J.viewBox,1),oe=ae[0];return ee?re-oe:ne-oe}},{key:"getFontData",value:function(K){var J=this.props.page;return new Promise(function(ee){J.commonObjs.get(K,ee)})}},{key:"alignTextItem",value:function(){var K=this,J=this.itemElement.current;if(J){J.style.transform="";var ee=this.props,te=ee.fontName,ne=ee.scale,re=ee.width;J.style.fontFamily="".concat(te,", sans-serif"),this.getFontData(te).then(function(ae){var oe=ae?ae.fallbackName:"sans-serif";J.style.fontFamily="".concat(te,", ").concat(oe);var ie=re*ne,se=K.getElementWidth(J),ce="scaleX(".concat(ie/se,")"),ue=ae?ae.ascent:0;ue&&(ce+=" translateY(".concat((1-ue)*100,"%)")),J.style.transform=ce,J.style.WebkitTransform=ce})}}},{key:"render",value:function(){var K=this.fontSize,J=this.top,ee=this.left,te=this.props,ne=te.customTextRenderer,re=te.scale,ae=te.str;return React.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(K*re,"px"),position:"absolute",top:"".concat(J*re,"px"),left:"".concat(ee*re,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},ne?ne(this.props):ae)}}]),V}(React.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerItemInternal,_extends({},$,C))})}function _createSuper$2(C){var $=_isNativeReflectConstruct$2();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerInternal=function(C){_inherits(V,C);var $=_createSuper$2(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{textItems:null}),_defineProperty(_assertThisInitialized(F),"loadTextItems",function(){var te=F.props.page,ne=makeCancellablePromise(te.getTextContent());F.runningTask=ne,ne.promise.then(function(re){var ae=re.items;F.setState({textItems:ae},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetTextSuccess,ne=F.state.textItems;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({textItems:!1}),warning(te);var ne=F.props.onGetTextError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page text content, but no page was specified."),this.loadTextItems()}},{key:"componentDidUpdate",value:function(K){var J=this.props.page;K.page&&J!==K.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"renderTextItems",value:function(){var K=this.state.textItems;return K?K.map(function(J,ee){return React.createElement(TextLayerItem,_extends({key:ee,itemIndex:ee},J))}):null}},{key:"render",value:function(){var K=this.unrotatedViewport,J=this.rotate;return React.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(K.width,"px"),height:"".concat(K.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),V}(React.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerInternal,_extends({},$,C))})}function _createSuper$1(C){var $=_isNativeReflectConstruct$1();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var AnnotationLayerInternal=function(C){_inherits(V,C);var $=_createSuper$1(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{annotations:null}),_defineProperty(_assertThisInitialized(F),"layerElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"loadAnnotations",function(){var te=F.props.page,ne=makeCancellablePromise(te.getAnnotations());F.runningTask=ne,ne.promise.then(function(re){F.setState({annotations:re},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetAnnotationsSuccess,ne=F.state.annotations;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({annotations:!1}),warning(te);var ne=F.props.onGetAnnotationsError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){var te=F.props.onRenderAnnotationLayerSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){warning(te);var ne=F.props.onRenderAnnotationLayerError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page annotations, but no page was specified."),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.page,te=J.renderForms;(K.page&&ee!==K.page||te!==K.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"renderAnnotationLayer",value:function(){var K=this.state.annotations;if(K){var J=this.props,ee=J.imageResourcesPath,te=J.linkService,ne=J.page,re=J.renderForms,ae=this.viewport.clone({dontFlip:!0}),oe={annotations:K,div:this.layerElement.current,imageResourcesPath:ee,linkService:te,page:ne,renderForms:re,viewport:ae};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(oe),this.onRenderSuccess()}catch(ie){this.onRenderError(ie)}}}},{key:"render",value:function(){return React.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),V}(React.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function C($){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageContext.Consumer,null,function(F){return React.createElement(AnnotationLayerInternal,_extends({},V,F,$))})})};function ownKeys(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper(C){var $=_isNativeReflectConstruct();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var defaultScale=1,PageInternal=function(C){_inherits(V,C);var $=_createSuper(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{page:null}),_defineProperty(_assertThisInitialized(F),"pageElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props,ne=te.onLoadSuccess,re=te.registerPage,ae=F.state.page;ne&&ne(makePageCallback(ae,F.scale)),re&&re(F.pageIndex,F.pageElement.current)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({page:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"loadPage",function(){var te=F.props.pdf,ne=F.getPageNumber();if(ne){F.setState(function(ae){return ae.page?{page:null}:null});var re=makeCancellablePromise(te.getPage(ne));F.runningTask=re,re.promise.then(function(ae){F.setState({page:ae},F.onLoadSuccess)}).catch(function(ae){F.onLoadError(ae)})}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.pdf;invariant(K,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(K){var J=this.props.pdf;if(K.pdf&&J!==K.pdf||this.getPageNumber()!==this.getPageNumber(K)){var ee=this.props.unregisterPage;ee&&ee(this.getPageIndex(K)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var K=this.props.unregisterPage;K&&K(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var K=this.state.page;if(!K)return{};var J=this.props,ee=J.canvasBackground,te=J.customTextRenderer,ne=J.onGetAnnotationsError,re=J.onGetAnnotationsSuccess,ae=J.onGetTextError,oe=J.onGetTextSuccess,ie=J.onRenderAnnotationLayerError,se=J.onRenderAnnotationLayerSuccess,ce=J.onRenderError,ue=J.onRenderSuccess,le=J.renderForms,ve=J.renderInteractiveForms;return{canvasBackground:ee,customTextRenderer:te,onGetAnnotationsError:ne,onGetAnnotationsSuccess:re,onGetTextError:ae,onGetTextSuccess:oe,onRenderAnnotationLayerError:ie,onRenderAnnotationLayerSuccess:se,onRenderError:ce,onRenderSuccess:ue,page:K,renderForms:le!=null?le:ve,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber-1:isProvided(K.pageIndex)?K.pageIndex:null}},{key:"getPageNumber",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber:isProvided(K.pageIndex)?K.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var K=this.props.rotate;if(isProvided(K))return K;var J=this.state.page;return J?J.rotate:null}},{key:"scale",get:function(){var K=this.state.page;if(!K)return null;var J=this.props,ee=J.scale,te=J.width,ne=J.height,re=this.rotate,ae=1,oe=ee===null?defaultScale:ee;if(te||ne){var ie=K.getViewport({scale:1,rotation:re});ae=te?te/ie.width:ne/ie.height}return oe*ae}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){var J=K.state.page;return J&&makePageCallback(J,K.scale)})}},{key:"pageKey",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var K=this.props,J=K.canvasRef,ee=K.renderMode;switch(ee){case"none":return null;case"svg":return React.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return React.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:J})}}},{key:"renderTextLayer",value:function(){var K=this.props.renderTextLayer;return K?React.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var K=this.props.renderAnnotationLayer;return K?React.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),K)}},{key:"renderContent",value:function(){var K=this.pageNumber,J=this.props.pdf,ee=this.state.page;if(!K){var te=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof te=="function"?te():te)}if(J===null||ee===null){var ne=this.props.loading;return React.createElement(Message,{type:"loading"},typeof ne=="function"?ne():ne)}if(J===!1||ee===!1){var re=this.props.error;return React.createElement(Message,{type:"error"},typeof re=="function"?re():re)}return this.renderChildren()}},{key:"render",value:function(){var K=this.pageNumber,J=this.props,ee=J.className,te=J.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Page",ee),"data-page-number":K,ref:mergeRefs(te,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(C,$){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageInternal,_extends({ref:$},V,C))})}const Page$1=React.forwardRef(Page);displayWorkerWarning(),pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";const container$5="_container_j5pfu_1",resumeChoiceOptionLabel="_resumeChoiceOptionLabel_j5pfu_5",resumeChoiceOptionLabelChecked="_resumeChoiceOptionLabelChecked_j5pfu_16",resumeChoiceOptionLabelContent="_resumeChoiceOptionLabelContent_j5pfu_27",resumeChoiceOptionLabelName="_resumeChoiceOptionLabelName_j5pfu_31",resumeChoiceOptionLabelModifiedAt="_resumeChoiceOptionLabelModifiedAt_j5pfu_37",resumeChoiceOptionLabelCard="_resumeChoiceOptionLabelCard_j5pfu_42",resumeChoiceOptionLabelCardHeader="_resumeChoiceOptionLabelCardHeader_j5pfu_46",resumeChoiceOptionLabelEditButton="_resumeChoiceOptionLabelEditButton_j5pfu_50",resumeChoiceOptionLabelImprovementsList="_resumeChoiceOptionLabelImprovementsList_j5pfu_54",resumePreviewContainer="_resumePreviewContainer_j5pfu_59",fitmentScoreTitle="_fitmentScoreTitle_j5pfu_69",styles$n={container:container$5,resumeChoiceOptionLabel,resumeChoiceOptionLabelChecked,resumeChoiceOptionLabelContent,resumeChoiceOptionLabelName,resumeChoiceOptionLabelModifiedAt,resumeChoiceOptionLabelCard,resumeChoiceOptionLabelCardHeader,resumeChoiceOptionLabelEditButton,resumeChoiceOptionLabelImprovementsList,resumePreviewContainer,fitmentScoreTitle};function FitmentScore({score:C}){let $={"0%":"#FC2119","60%":"#FF9C40"},V="#FFD5C0";return Number(C)>=60&&($={"0%":"#FC8019","80%":"#FFD284"},V="#FC910033"),Number(C)>=80&&($={"0%":"#03522D","100%":"#22C477"},V="#1A845233"),isNullOrUndefined(C)?null:React.createElement(Flex$1,{vertical:!0,gap:4,className:styles$n.fitmentScore},React.createElement(Typography$1.Text,{className:styles$n.fitmentScoreTitle},"Resume Fit Score:"),React.createElement(Progress$1,{size:["default",12],percent:C,className:styles$n.fitmentScoreProgress,strokeColor:$,trailColor:V}))}function BlockerPoints({value:C}){var ge,pe;const $=reactRedux.useDispatch(),[V,F]=React.useState(!0),{onEditResume:K,jobProfileId:J}=useApplicationFormContext(),{resumeReviewData:ee,fitmentScore:te}=reactRedux.useSelector(de=>de.scalantCareerHub.resumeFitment)||{},{analytics:ne}=useJobPreview(),{resume_details:re}=C||{},{id:ae,name:oe}=re||{},ie=getBlockerPointsChecklist(ee==null?void 0:ee[ae]),se=(pe=(ge=te==null?void 0:te[J])==null?void 0:ge[ae])==null?void 0:pe.remarks,ce=[...se?[se]:[],...ie],ue=ce.length,le=ce.length>0,ve=()=>{ne==null||ne.click("Blocker Points - Collapse",PRODUCT_NAME),F(!V)},fe=()=>{ne==null||ne.click("Blocker Points - Edit Resume",PRODUCT_NAME),K(ae),$(setActiveResume({jobProfileId:J,resumeId:ae,blockerPoints:ce,resumeName:oe})),$(setChecklistOpen({syncWithBlockerPoints:!0}))};return React.createElement(Card$1,{size:"small",rootClassName:styles$n.resumeChoiceOptionLabelCard},React.createElement(Flex$1,{gap:8,className:styles$n.resumeChoiceOptionLabelCardHeader},le&&React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FAAD14"}),!le&&React.createElement(CheckCircleTwoTone$1,{twoToneColor:"#52c41a"}),React.createElement(Typography$1.Text,null,le?`Improvements to be made (${ue})`:"No improvements to be made"),React.createElement(Button$2,{type:"link",className:styles$n.resumeChoiceOptionLabelEditButton,onClick:fe},"Edit"),le&&React.createElement(Button$2,{type:"text",className:styles$n.resumeChoiceOptionLabelCollapseButton,onClick:ve},V?React.createElement(DownOutlined$1,null):React.createElement(UpOutlined$1,null))),!V&&React.createElement("ul",{className:styles$n.resumeChoiceOptionLabelImprovementsList},ce.map((de,me)=>React.createElement("li",{key:me},de))))}pdfExports.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfExports.version}/pdf.worker.min.js`;const MAX_RETRY_COUNT=6;function ResumeChoiceOptionLabel({value:C}){var se,ce;const{selectedResume:$,setSelectedResume:V,jobProfileId:F,fitmentCheckEnabled:K}=useApplicationFormContext(),J=reactRedux.useSelector(ue=>{var le;return(le=ue.scalantCareerHub.resumeFitment)==null?void 0:le.fitmentScore}),{resume_details:ee}=C||{},{id:te,name:ne,modified_at:re}=ee||{},ae=$===te,oe=(ce=(se=J==null?void 0:J[F])==null?void 0:se[te])==null?void 0:ce.score,ie=()=>{V(te)};return React.createElement(Radio$1,{onChange:ie,checked:ae,className:classNames(styles$n.resumeChoiceOptionLabel,{[styles$n.resumeChoiceOptionLabelChecked]:ae})},React.createElement(Flex$1,{vertical:!0,gap:12,className:styles$n.resumeChoiceOptionLabelContent},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{vertical:!0,gap:4},React.createElement(Typography$1.Text,{className:styles$n.resumeChoiceOptionLabelName},ne),React.createElement(Typography$1.Text,{className:styles$n.resumeChoiceOptionLabelModifiedAt},"Last Modified: ",toDDMMYY(re))),K&&React.createElement(FitmentScore,{score:oe})),K&&React.createElement(BlockerPoints,{value:C})))}function ResumePreview(){const[C,$]=React.useState(0),{selectedResume:V}=useApplicationFormContext(),{data:F,isFetching:K}=useGetResumeLinkQuery({resumeId:V},{skip:!V}),J=ee=>{C<MAX_RETRY_COUNT?setTimeout(()=>{$(C+1)},1e3):console.error("Error while loading pdf! ",ee.message)};return!(F!=null&&F.link)||K?React.createElement(Skeleton$1,{active:!0}):React.createElement(Document$1,{className:styles$n.resumePreview,file:F==null?void 0:F.link,loading:React.createElement(Skeleton$1,{active:!0}),onLoadError:J,error:React.createElement(Skeleton$1,{active:!0}),key:C},React.createElement(Page$1,{pageNumber:1}))}function ResumeChoiceSelect(){const{setSelectedResume:C,fitmentCheckEnabled:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useGetResumesEligibilityQuery({jobProfileId:V}),{analytics:J}=useJobPreview();return useGetFitmentQuery({jobProfileId:V},{skip:!V||!$}),React.useEffect(()=>{var te,ne;if(!F)return;const ee=(ne=(te=Object.values(F).find(re=>{var ae;return(ae=re==null?void 0:re.resume_details)==null?void 0:ae.default}))==null?void 0:te.resume_details)==null?void 0:ne.id;C(ee)},[F,C]),React.useEffect(()=>{J==null||J.view("Resume Choice Select - Render",PRODUCT_NAME)},[J]),K||!F?React.createElement(Skeleton$1,{active:!0}):React.createElement(Flex$1,{className:styles$n.container},React.createElement(Flex$1,{flex:1,vertical:!0,gap:16},Object.entries(F).map(([ee,te])=>React.createElement(ResumeChoiceOptionLabel,{key:ee,value:te}))),React.createElement(Flex$1,{className:styles$n.resumePreviewContainer,flex:1},React.createElement(ResumePreview,null)))}const container$4="_container_132pc_1",carouselContainer$1="_carouselContainer_132pc_6",dots="_dots_132pc_12",title$2="_title_132pc_40",description$2="_description_132pc_46",iconContainer$1="_iconContainer_132pc_52",pulse="_pulse_132pc_1",iconScannerLine="_iconScannerLine_132pc_64",scan="_scan_132pc_1",styles$m={container:container$4,carouselContainer:carouselContainer$1,dots,title:title$2,description:description$2,iconContainer:iconContainer$1,pulse,iconScannerLine,scan},EVALUATION_COMPLETION_TIMEOUT=6e4,TIPS=[{title:"Analysing the Right Resume for you to Apply!",description:"We’re preparing a fitment score and instant insights to know which resume works best for this application"},{title:"Preparing quick steps to Strengthen your Resume!",description:"We’re also figuring out suggestions to improve your resume with final touch ups at lightning speed"},{title:"Your Analysis will be Ready in just a Few Seconds!",description:"Fix key gaps we identify and boost your chances of getting noticed by top companies"}];function ResumeFitmentCheck(){reactRedux.useDispatch();const{jobProfileId:C,setStepName:$}=useApplicationFormContext(),{isError:V,data:F}=useGetFitmentQuery({jobProfileId:C}),{data:K}=useGetResumesEligibilityQuery({jobProfileId:C}),{fitmentScore:J}=reactRedux.useSelector(ee=>ee.scalantCareerHub.resumeFitment)||{};return React.useEffect(()=>{const ee=Object.keys(K||{});ee.length>0&&Object.keys((J==null?void 0:J[C])||{}).length===ee.length&&$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},[J,C,K,$]),React.useEffect(()=>{const ee=setTimeout(()=>{$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},EVALUATION_COMPLETION_TIMEOUT);return()=>clearTimeout(ee)},[$]),React.useEffect(()=>{V&&(message$1.error("Failed to evaluate job fitment"),$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT))},[V,$]),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$m.container,justify:"center",align:"center"},React.createElement("div",{className:styles$m.iconContainer},React.createElement("div",{className:styles$m.iconScannerLine})),React.createElement("div",{className:styles$m.carouselContainer},React.createElement(Carousel$1,{autoplay:!0,autoplaySpeed:1e4,dots:{className:styles$m.dots},effect:"fade",className:styles$m.carousel,adaptiveHeight:!0},TIPS.map((ee,te)=>React.createElement("div",{key:te},React.createElement(Flex$1,{className:styles$m.tip,vertical:!0,gap:8,key:ee.title},React.createElement(Typography$1.Text,{className:styles$m.title,strong:!0},ee.title),React.createElement(Typography$1.Text,{className:styles$m.description},ee.description)))))))}const container$3="_container_hsd3q_1",carouselContainer="_carouselContainer_hsd3q_6",title$1="_title_hsd3q_12",description$1="_description_hsd3q_18",iconContainer="_iconContainer_hsd3q_24",warningIcon="_warningIcon_hsd3q_35",styles$l={container:container$3,carouselContainer,title:title$1,description:description$1,iconContainer,warningIcon};function ResumeFitmentCheckError(){return React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$l.container,justify:"center",align:"center"},React.createElement("div",{className:styles$l.iconContainer},React.createElement(WarningFilled$1,{className:styles$l.warningIcon})),React.createElement("div",{className:styles$l.carouselContainer},React.createElement(Flex$1,{className:styles$l.tip,vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$l.title,strong:!0},"Oops, Your Session has Timed Out!"),React.createElement(Typography$1.Text,{className:styles$l.description},"We're facing some technical difficulties. Please refresh to continue, or go ahead without checking your Resume scores"))))}const container$2="_container_1pyap_1",footer="_footer_1pyap_10",text="_text_1pyap_14",heading$1="_heading_1pyap_18",checkbox="_checkbox_1pyap_24",styles$k={container:container$2,footer,text,heading:heading$1,checkbox},NOTIFICATION_KEY="resume-fitment-checklist",MAX_CHECKLIST_ITEMS=5,Description=()=>{const{activeResumeChecklist:C}=reactRedux.useSelector($=>$.scalantCareerHub.resumeFitment)||{};return React.createElement(Flex$1,{vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$k.text},"Please update the remaining sections as per the feedback to boost hiring chances"),React.createElement(Typography$1.Text,{strong:!0,className:styles$k.heading},"Improvements to be made"),C.slice(0,MAX_CHECKLIST_ITEMS).map(($,V)=>React.createElement(Checkbox$1,{className:styles$k.checkbox,key:V},React.createElement(Typography$1.Text,{className:styles$k.text,key:V},$))))},Footer=({closeNotification:C})=>React.createElement(Flex$1,{justify:"space-between",className:styles$k.footer},React.createElement(Flex$1,{gap:4,align:"center"},React.createElement(CheckCircleFilled$1,{style:{color:"#20A164"}}),React.createElement(Typography$1.Text,{className:styles$k.text},"When your resume is ready")),React.createElement(Button$2,{type:"primary",onClick:C},"Proceed to Apply"));function ResumeFitmentChecklist(){const C=reactRedux.useDispatch(),[$,V]=notification$1.useNotification(),{activeResumeChecklist:F,activeResumeName:K,isChecklistOpen:J}=reactRedux.useSelector(se=>se.scalantCareerHub.resumeFitment)||{},{setActiveApplicationId:ee,jobId:te,analytics:ne,onCloseResumeBuilder:re}=useJobPreview(),ae=React.useCallback(()=>{$.destroy(NOTIFICATION_KEY),ee(te),C(setChecklistOpen({isOpen:!1})),ne==null||ne.click("Resume Fitment Checklist - Close",PRODUCT_NAME)},[ne,C,te,ee,$]),oe=React.useCallback(()=>{ae(),re(),ne==null||ne.click("Resume Fitment Checklist - Proceed to Apply",PRODUCT_NAME)},[ne,ae,re]),ie=React.useCallback(()=>{!K||!(F!=null&&F.length)||($.warning({key:NOTIFICATION_KEY,message:K,placement:"bottomRight",description:React.createElement(Description,null),onClose:ae,closeIcon:null,duration:null,btn:React.createElement(Footer,{closeNotification:oe}),className:styles$k.container}),ne==null||ne.click("Resume Fitment Checklist - Open",PRODUCT_NAME))},[K,F,$,ae,oe,ne]);return React.useEffect(()=>{J?ie():ae()},[J,ie,ae]),V}const banner="_banner_1jh00_1",icon="_icon_1jh00_7",styles$j={banner,icon};function BoostInterviewChanceBanner({onClose:C}){const{analytics:$,setActiveTab:V,jobId:F}=useJobPreview(),{stepName:K}=useApplicationFormContext(),{updateTab:J}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),[ee]=useLazyGetJobPreviewQuery(),te=()=>er(this,null,function*(){K===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(jobsServiceUtil.invalidateTags(["PipelineJobs","RelevantJobs","Jobs"]),J(TAG_TO_TAB_MAPPING.applied),ee(F)),V(JOB_BODY_TABS.REQUIREMENTS.key),C==null||C(),$==null||$.click("Boost Interview Chance Banner - Complete Tasks",PRODUCT_NAME)});return React.createElement(ActionBanner,{icon:React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FA541C",className:styles$j.icon}),title:"Boost your Interview Chances by 3x",description:"Take the next steps now to increase your chances of cracking the interview post shortlisting",buttonText:"Complete Tasks",buttonIcon:React.createElement(EditOutlined$1,null),className:styles$j.banner,onClick:te})}const screeningCallService=careerHubApi.injectEndpoints({endpoints:C=>({issueScreeningCall:C.mutation({query:()=>({url:"/api/v3/screening_calls/issue",method:"POST"})})})}),{useIssueScreeningCallMutation}=screeningCallService,screeningCallBanner="_screeningCallBanner_1ltmt_1",screeningCallIcon="_screeningCallIcon_1ltmt_7",screeningCallButtonIcon="_screeningCallButtonIcon_1ltmt_12",styles$i={screeningCallBanner,screeningCallIcon,screeningCallButtonIcon},ScreeningCallBanner=({forceShow:C=!1})=>{var se;const $=reactRedux.useSelector(ce=>ce.scalantCareerHub.dashboard.userProfileData),V=(se=$==null?void 0:$.hasCompletedScreeningCall)!=null?se:!1,{analytics:F,jobData:K,currentTab:J}=useJobPreview(),{applicationStatus:ee,jobProfileStatus:te}=K||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=te!==JOB_PROFILE_STATUS$1.active&&ee===APPLICATION_STATUS_MAP.Draft,[ae,{isLoading:oe}]=useIssueScreeningCallMutation(),ie=React.useCallback(()=>er(this,null,function*(){var ue;const ce=yield ae();(ue=ce==null?void 0:ce.data)!=null&&ue.url?globalThis.open(ce.data.url,"_blank"):message$1.error("Failed to initiate screening call. Please try again."),F==null||F.click("Screening Call - Take Call",PRODUCT_NAME)}),[F,ae]);return V||re||!C&&(J!==TAG_TO_TAB_MAPPING.applied||ne)?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.airplay,className:styles$i.screeningCallIcon}),title:"Complete your 5-minute Screening Call now",description:"Verify your details with a quick screening call and become a priority applicant for us",buttonText:"Take Call",buttonIcon:React.createElement(PhoneOutlined$1,{className:styles$i.screeningCallButtonIcon}),className:styles$i.screeningCallBanner,onClick:ie,isLoading:oe})},container$1="_container_16lhm_1",likeBadge="_likeBadge_16lhm_12",description="_description_16lhm_18",styles$h={container:container$1,likeBadge,description},SuccessScreen=({onClose:C})=>{const{isEligibleForSmartApply:$}=useJobPreview();return React.createElement(Flex$1,{vertical:!0,className:styles$h.container},React.createElement("img",{src:ICONS.likeBadge,alt:"like-badge",className:styles$h.likeBadge}),React.createElement(Typography$1.Title,{level:3},"Application Submitted successfully!"),React.createElement(Typography$1.Text,{className:styles$h.description},"Your job application has now been received by the team, you can track your status within the job details itself"),!$&&React.createElement(ScreeningCallBanner,{forceShow:!0}),$&&React.createElement(BoostInterviewChanceBanner,{onClose:C}))};function FormStep({onClose:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationForm,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK:return React.createElement(ResumeFitmentCheck,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR:return React.createElement(ResumeFitmentCheckError,null);case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelect,null);case APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED:return React.createElement(SuccessScreen,{onClose:C});default:return null}}function FormContainer({onClose:C,currentTab:$,jobProfileId:V,utmId:F,utmMedium:K,utmSource:J,onUploadFile:ee,onEditResume:te,onAddResume:ne,fitmentCheckEnabled:re}){const[ae,oe]=React.useState(),{isEligibleForSmartApply:ie}=useJobPreview(),{data:se,isLoading:ce}=useCreateApplication({jobProfileId:V,utmMedium:K,utmSource:J,currentTab:$,utmId:F,isEligibleForSmartApply:ie}),{applicationId:ue,status:le}=se||{},ve=()=>{C(),oe(!1)};return React.useEffect(()=>{oe(!!V&&!!ue&&!!le)},[ue,V,le]),React.createElement(ApplicationFormProvider,{onUploadFile:ee,stepName:le,jobProfileId:V,applicationId:ue,onEditResume:te,onAddResume:ne,fitmentCheckEnabled:re},React.createElement(Drawer$1,{closable:!1,loading:ce,open:ae,placement:"bottom",height:600,title:React.createElement(FormHeader,{onClose:ve}),footer:React.createElement(Footer$1,{onCancel:ve}),zIndex:96},React.createElement(FormStep,{onClose:ve})),React.createElement(ResumeFitmentChecklist,null))}FormContainer.propTypes={currentTab:PropTypes.string.isRequired,jobProfileId:PropTypes.number.isRequired,utmId:PropTypes.string,utmMedium:PropTypes.string,utmSource:PropTypes.string};const JobApplicationForm=({currentTab:C,onUploadFile:$,onEditResume:V,onAddResume:F,fitmentCheckEnabled:K})=>{const{activeApplicationId:J,setActiveApplicationId:ee}=useJobPreview(),te=()=>{ee(null)};return J?React.createElement(FormContainer,{onUploadFile:$,jobProfileId:J,onClose:te,currentTab:C,onEditResume:V,onAddResume:F,fitmentCheckEnabled:K}):null},container="_container_fi17i_1",actionAlert="_actionAlert_fi17i_14",ineligible="_ineligible_fi17i_24",stepsToApply="_stepsToApply_fi17i_29",missed="_missed_fi17i_34",actionAlertIcon="_actionAlertIcon_fi17i_40",actionAlertTitle="_actionAlertTitle_fi17i_51",eligible="_eligible_fi17i_57",title="_title_fi17i_62",highlightsList="_highlightsList_fi17i_69",keywordsList="_keywordsList_fi17i_77",keyword="_keyword_fi17i_77",exceptions="_exceptions_fi17i_106",exceptionsIconContainer="_exceptionsIconContainer_fi17i_112",exceptionsIcon="_exceptionsIcon_fi17i_112",exceptionsTitle="_exceptionsTitle_fi17i_121",exception="_exception_fi17i_106",exceptionItem="_exceptionItem_fi17i_129",exceptionsList="_exceptionsList_fi17i_136",styles$g={container,actionAlert,ineligible,stepsToApply,missed,actionAlertIcon,actionAlertTitle,eligible,title,highlightsList,keywordsList,keyword,exceptions,exceptionsIconContainer,exceptionsIcon,exceptionsTitle,exception,exceptionItem,exceptionsList},MissedReason=()=>React.createElement("div",{className:classNames(styles$g.actionAlert,styles$g.missed)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$g.actionAlertTitle},"We are no longer accepting applications for this role, in case you have already applied, do not worry we still have your application")),InEligibleReason=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label!=="skills"&&J.showText&&!J.isEligible),K=ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS[F==null?void 0:F.label];return K?React.createElement("div",{className:classNames(styles$g.actionAlert,styles$g.ineligible)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$g.actionAlertTitle},K)):null},ActionAlert=({eligibilityStatus:C,metric:$,onScrollToEnd:V})=>{const{analytics:F,setActiveTab:K,isEligibleForSmartApply:J}=useJobPreview(),ee=J?`${$} more steps pending!`:`Eligible to apply in ${$} more steps`,te=J?"Complete these steps to improve your interview performance":"Complete these three test to become eligible to apply!",ne=J?"Check Pending":"Complete Tasks",re=()=>{K(JOB_BODY_TABS.REQUIREMENTS.key),V(),F==null||F.click("Job Highlights - Complete Tasks",PRODUCT_NAME)};return C===ELIGIBILITY_TYPES.ineligible?React.createElement(InEligibleReason,null):C===ELIGIBILITY_TYPES.steps_to_apply?React.createElement(ActionBanner,{icon:React.createElement(ClockCircleTwoTone$1,{className:styles$g.actionAlertIcon}),title:ee,description:te,buttonText:ne,buttonIcon:React.createElement(EditOutlined$1,null),className:styles$g.stepsToApply,buttonVariant:J?"text":"solid",onClick:re}):null},HighlightsList=({highlights:C})=>React.createElement(React.Fragment,null,React.createElement("div",{className:styles$g.title},"Top Reasons to Apply"),React.createElement("ul",{className:styles$g.highlightsList},C==null?void 0:C.map($=>React.createElement("li",{key:$,className:styles$g.highlight},React.createElement("span",{className:styles$g.highlightText},$))))),Keywords=({keywords:C,eligibilityStatus:$})=>React.createElement("div",{className:styles$g.keywordsList},C==null?void 0:C.map((V,F)=>React.createElement("div",{key:F,className:classNames(styles$g.keyword,styles$g[toCamelCase($)])},V))),Exceptions=({exceptionalJob:C})=>{if(!C)return null;const $=["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 React.createElement("div",{className:styles$g.exceptions},React.createElement("div",{className:styles$g.exceptionsIconContainer},React.createElement(StarTwoTone$1,{size:20,twoToneColor:"#FAAD14",className:styles$g.exceptionsIcon})),React.createElement("div",null,React.createElement("div",{className:styles$g.exceptionsTitle},"We've made an exception for you!"),React.createElement("ul",{className:styles$g.exceptionsList},$.map((V,F)=>React.createElement("li",{className:[styles$g.exception],key:F},V)))))},JobHighlights=()=>{const{jobData:C,highlights:$,eligibilityCriteria:V,currentTab:F}=useJobPreview(),K=React.useRef(null),{jobProfileStatus:J,applicationStatus:ee}=C||{},{highlights:te,keywords:ne}=$||(C==null?void 0:C.highlights)||{},{tag:re,count:ae}=determineJobTag(C,V||{}),oe=()=>{if(K.current&&typeof window!="undefined"){const se=K.current.getBoundingClientRect(),ce=se.top+window.pageYOffset,ue=se.height,le=window.innerHeight,ve=ce+ue-le/2;window.scrollTo({top:ve,behavior:"smooth"})}};return F===TAG_TO_TAB_MAPPING.applied&&J!==JOB_PROFILE_STATUS$1.active&&ee===APPLICATION_STATUS_MAP.Draft||J!==JOB_PROFILE_STATUS$1.active&&F!==TAG_TO_TAB_MAPPING.applied?React.createElement(MissedReason,null):F===TAG_TO_TAB_MAPPING.applied?null:te!=null&&te.length?React.createElement(React.Fragment,null,React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob}),React.createElement("div",{ref:K,className:classNames(styles$g.container,styles$g[re])},React.createElement(ActionAlert,{eligibilityStatus:re,metric:ae,onScrollToEnd:oe}),React.createElement(HighlightsList,{highlights:te}),React.createElement(Keywords,{keywords:ne,eligibilityStatus:re}))):React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob})},expandedJobView="_expandedJobView_1lt4c_2",loadingCard="_loadingCard_1lt4c_18",styles$f={expandedJobView,loadingCard},ExpandedJobViewContent=()=>React.createElement("div",{className:styles$f.expandedJobView},React.createElement(ExpandedJobViewHeader,null),React.createElement(JobHighlights,null),React.createElement(ScreeningCallBanner,null),React.createElement(InterviewExperiencesBanner,null),React.createElement(ExpandedJobViewBody,null)),ExpandedJobView=({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:J,currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se})=>{var fe;const{data:ce,isLoading:ue,isFetching:le,error:ve}=useGetJobPreviewQuery(K,{skip:!K||!J});return!J||!K?null:ue||le?React.createElement(Card$1,{className:`${styles$f.expandedJobView} ${styles$f.loadingCard}`},React.createElement(Spin$1,{size:"large"})):ve?React.createElement(Card$1,{className:styles$f.expandedJobView},React.createElement(Alert$1,{type:"error",message:"Failed to load job details",description:((fe=ve==null?void 0:ve.data)==null?void 0:fe.message)||(ve==null?void 0:ve.message)||"Please try again later",showIcon:!0})):ce?React.createElement(App$1,null,React.createElement(JobPreviewProvider,{analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,skip:!J,currentTab:ee,onCloseResumeBuilder:ae,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se},React.createElement(ExpandedJobViewContent,null),React.createElement(JobApplicationForm,{currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,fitmentCheckEnabled:oe}))):null},jobDetails="_jobDetails_1gavc_1",styles$e={jobDetails};function JobDetails({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,className:J,onUploadFile:ee,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se}){return React.useEffect(()=>{K&&(C==null||C.view("Job Details - Render",PRODUCT_NAME,{jobId:K,currentTab:te}))},[C,te,K]),K?React.createElement("div",{className:classNames(styles$e.jobDetails,J)},React.createElement(ExpandedJobView,{analytics:C,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:!!K,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se})):null}JobDetails.propTypes={country:PropTypes.string,openMockInterviewModal:PropTypes.func,openResume:PropTypes.func,jobId:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),className:PropTypes.string},JobDetails.defaultProps={jobId:null,className:""};const header$1="_header_t5dcb_1",jobTitle="_jobTitle_t5dcb_6",titleContainer="_titleContainer_t5dcb_14",titleContainerExpanded="_titleContainerExpanded_t5dcb_19",titleContainerCollapsed="_titleContainerCollapsed_t5dcb_23",companyName="_companyName_t5dcb_27",postedDate="_postedDate_t5dcb_32",separatorDot="_separatorDot_t5dcb_37",actions="_actions_t5dcb_47",styles$d={header:header$1,jobTitle,titleContainer,titleContainerExpanded,titleContainerCollapsed,companyName,postedDate,separatorDot,actions},{Title:Title$1,Text:Text$3}=Typography$1,JobTitleAndCompany=({title:C,companyName:$,isExpanded:V,isInternship:F,createdAt:K})=>{const J=getDaysAgo(K);let ee="";return J!==null&&(J===0?ee="Posted Today":J===1?ee="Posted Yesterday":ee=`Posted ${J}d ago`),React.createElement(Space$1,{direction:"vertical",size:4,className:classNames(styles$d.titleContainer,{[styles$d.titleContainerExpanded]:V,[styles$d.titleContainerCollapsed]:!V})},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Title$1,{level:5,className:styles$d.jobTitle,ellipsis:{rows:1}},C),F&&React.createElement(Tag$1,{color:"purple"},"Experience Builder")),React.createElement(Text$3,{ellipsis:!0,className:styles$d.companyName},$,J!==null&&React.createElement(React.Fragment,null,React.createElement("span",{className:styles$d.separatorDot}),React.createElement("span",{className:styles$d.postedDate},ee))))};JobTitleAndCompany.propTypes={title:PropTypes.string.isRequired,companyName:PropTypes.string.isRequired,isExpanded:PropTypes.bool,isInternship:PropTypes.bool,createdAt:PropTypes.string},JobTitleAndCompany.defaultProps={isExpanded:!1};const tag="_tag_5fhgn_1",styles$c={tag},ICON_MAP={CheckCircleOutlined:CheckCircleOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1,RocketOutlined:RocketOutlined$1,InfoCircleOutlined:InfoCircleOutlined$1},PipelineJobTag=({applicationStatus:C,jobProfileStatus:$})=>{if($!==JOB_PROFILE_STATUS$1.active&&C===APPLICATION_STATUS_MAP.Draft)return React.createElement(Tag$1,{icon:React.createElement(InfoCircleOutlined$1,null),color:"volcano",className:styles$c.tag,style:{color:"#FA541C",borderColor:"#FA541C",backgroundColor:"#FFF2E8"}},"Missed");const V=APPLICATION_STATUS_JOB_TAG_MAPPING[C]||C,F=APPLICATION_STATUS_JOB_TAG_TEXT_MAPPING[C]||C,K=JOB_TAG_ICON_MAPPING[V],J=JOB_TAG_COLOR_MAPPING[V]||{};return V?React.createElement(Tag$1,{icon:K&&React.createElement(K,{style:{color:J.primary}}),color:J.primary,className:styles$c.tag,style:{color:J.primary,borderColor:J.primary,backgroundColor:J.secondary}},F):null},EligibilityTag=({jobData:C,currentTab:$,tagData:V})=>{const{applicationStatus:F,jobProfileStatus:K}=C||{};if($===TAG_TO_TAB_MAPPING.applied||Object.values(APPLIED_JOB_TABS).some(ee=>ee.key===$))return React.createElement(PipelineJobTag,{applicationStatus:F,jobProfileStatus:K});if(!V)return null;const J=ICON_MAP[V.icon];return React.createElement(Tag$1,{icon:J&&React.createElement(J,null),color:V.antdColor,className:styles$c.tag,style:V.tag==="expired"?{color:V.color,borderColor:V.color}:{}},V.text)};EligibilityTag.propTypes={jobData:PropTypes.shape({isRelevant:PropTypes.bool,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.shape({label:PropTypes.string,isEligible:PropTypes.bool,data:PropTypes.object}))})}).isRequired,currentTab:PropTypes.string},EligibilityTag.defaultProps={currentTab:"all"};const JobCardActions=({jobData:C,currentTab:$,tagData:V})=>React.createElement("div",{className:styles$d.actions},React.createElement(EligibilityTag,{jobData:C,currentTab:$,tagData:V}));JobCardActions.propTypes={jobData:PropTypes.object.isRequired,currentTab:PropTypes.string,tagData:PropTypes.object},JobCardActions.defaultProps={currentTab:"all",tagData:null};const JobCardHeader=({jobData:C,companiesList:$,currentTab:V,isExpanded:F,tagData:K,isInternship:J})=>{var te;const ee=C.companyName||C.company&&C.company[0]&&((te=$[C.company[0]])==null?void 0:te.name)||"";return React.createElement(Row$1,{gutter:[12,8],className:styles$d.header},React.createElement(Col$1,{flex:"auto"},React.createElement(Row$1,{gutter:12,align:"top",wrap:!1},React.createElement(Col$1,null,React.createElement(CompanyLogo,{logo:C.logo,company:C.company,companiesList:$,companyName:ee})),React.createElement(Col$1,{flex:"auto"},React.createElement(JobTitleAndCompany,{title:C.title,companyName:ee,isExpanded:F,isInternship:J,createdAt:C.createdAt})))),React.createElement(Flex$1,null,React.createElement(JobCardActions,{jobData:C,currentTab:V,tagData:K})))};JobCardHeader.propTypes={jobData:PropTypes.object.isRequired,companiesList:PropTypes.object,currentTab:PropTypes.string,isExpanded:PropTypes.bool},JobCardHeader.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const saveButton="_saveButton_1g9sw_1",savedButton="_savedButton_1g9sw_12",styles$b={saveButton,savedButton},SaveButton=({analytics:C,jobProfileId:$,applicationStatus:V,applicationLastUpdatedAt:F,onSave:K,disabled:J=!1})=>{const[ee,te]=React.useState(!1),ne=reactRedux.useSelector(ie=>{var se,ce,ue;return(ue=(ce=(se=ie.scalantCareerHub)==null?void 0:se.savedJobs)==null?void 0:ce.savedJobs)==null?void 0:ue[$]}),re=ne?ne.status==="Saved":V==="Saved",ae=(ne==null?void 0:ne.lastUpdatedAt)||F,oe=ie=>er(this,null,function*(){if(ie.stopPropagation(),!re){C==null||C.click("Job Card - Save",PRODUCT_NAME),te(!0);try{yield K($,"save")}catch(se){}finally{te(!1)}}});return re&&ae?React.createElement(Button$2,{type:"text",icon:React.createElement(SaveTwoTone$1,{twoToneColor:"#8c8c8c"}),onClick:oe,disabled:!0,className:styles$b.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",formatDate(ae)):React.createElement(Button$2,{type:"text",icon:React.createElement(SaveOutlined$1,{twoToneColor:"#006AFF"}),onClick:oe,disabled:J||ee,loading:ee,className:styles$b.saveButton,size:"small"},re?"Saved":"Save")};SaveButton.propTypes={analytics:PropTypes.object,jobProfileId:PropTypes.number.isRequired,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,onSave:PropTypes.func.isRequired,disabled:PropTypes.bool},SaveButton.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const body="_body_1d5d8_1",detailsRowContainer="_detailsRowContainer_1d5d8_6",detailsRow="_detailsRow_1d5d8_6",detailText="_detailText_1d5d8_22",saveButtonWrapper="_saveButtonWrapper_1d5d8_28",inActiveJobError="_inActiveJobError_1d5d8_33",inActiveJobErrorText="_inActiveJobErrorText_1d5d8_39",styles$a={body,detailsRowContainer,detailsRow,detailText,saveButtonWrapper,inActiveJobError,inActiveJobErrorText},{Text:Text$2}=Typography$1,DetailItem=({text:C})=>C?React.createElement(Text$2,{className:styles$a.detailText},C):null;DetailItem.propTypes={text:PropTypes.string};const JobDetailsRow=({analytics:C,jobData:$,cardConfig:V,currentTab:F,userCountry:K,onSave:J,selectedJobId:ee,onClick:te})=>{const{jobProfileStatus:ne,applicationStatus:re,preferredCities:ae,minExperience:oe,maxExperience:ie,minCtc:se,maxCtc:ce,openForDiscussionCtc:ue,isInternship:le,stipend:ve,preferredNoticePeriod:fe}=$,ge=formatLocation(ae),pe=ee===null&&V.isExperienceCtcAvailable?formatExperience$1(oe,ie):null,de=V.isExperienceCtcAvailable?formatCtc({minCtc:se,maxCtc:ce,openForDiscussionCtc:ue,isInternship:le,stipend:ve,userCountry:K}):null,me=ee===null&&V.isNoticePeriodAvailable?formatNoticePeriod(fe):null,ye=[ge&&{text:ge},pe&&{text:pe},de&&{text:de},me&&{text:me}].filter(Boolean),_e=F!==TAG_TO_TAB_MAPPING.applied,he=(F===TAG_TO_TAB_MAPPING.applied||Object.values(APPLIED_JOB_TABS).some(Se=>Se.key===F))&&re===APPLICATION_STATUS_MAP.Draft,be=Se=>{Se.stopPropagation(),te($.id,!0),C==null||C.click("Job Card - Complete Application",PRODUCT_NAME)};return React.createElement("div",{className:styles$a.detailsRowContainer},ye.length>0&&React.createElement(Space$1,{split:React.createElement(Divider$1,{type:"vertical"}),className:styles$a.detailsRow},ye.map((Se,Re)=>React.createElement(DetailItem,{key:Re,text:Se.text}))),React.createElement("div",{className:styles$a.saveButtonWrapper},_e&&React.createElement(SaveButton,{analytics:C,jobProfileId:$.id,applicationStatus:$.applicationStatus,applicationLastUpdatedAt:$.applicationLastUpdatedAt,onSave:J}),he&&ne===JOB_PROFILE_STATUS$1.active&&React.createElement(Button$2,{color:"primary",variant:"outlined",onClick:be},"Complete Application")))};JobDetailsRow.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,preferredCities:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,preferredNoticePeriod:PropTypes.number,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string}).isRequired,cardConfig:PropTypes.shape({isExperienceCtcAvailable:PropTypes.bool,isNoticePeriodAvailable:PropTypes.bool}).isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobDetailsRow.defaultProps={userCountry:"IN",selectedJobId:null};const JobCardBody=({analytics:C,jobData:$,cardConfig:V,currentTab:F,userCountry:K,onSave:J,selectedJobId:ee,onClick:te})=>{const{jobProfileStatus:ne,applicationStatus:re}=$||{};return React.createElement("div",{className:styles$a.body},React.createElement(JobDetailsRow,{analytics:C,jobData:$,cardConfig:V,userCountry:K,currentTab:F,onSave:J,selectedJobId:ee,onClick:te}),ne!==JOB_PROFILE_STATUS$1.active&&re===APPLICATION_STATUS_MAP.Draft&&React.createElement(Flex$1,{gap:8,className:styles$a.inActiveJobError},React.createElement(InfoCircleOutlined$1,null),React.createElement(Typography$1.Text,{className:styles$a.inActiveJobErrorText},"No longer accepting applications")))};JobCardBody.propTypes={analytics:PropTypes.object,jobData:PropTypes.object.isRequired,cardConfig:PropTypes.object.isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobCardBody.defaultProps={userCountry:"IN",selectedJobId:null};const jobCard="_jobCard_1we13_1",expired="_expired_1we13_12",active$1="_active_1we13_15",archived="_archived_1we13_28",cardContent="_cardContent_1we13_37",styles$9={jobCard,expired,active:active$1,archived,cardContent},JobCard=({analytics:C,jobData:$,isActive:V,currentTab:F,onClick:K,onSave:J,companiesList:ee,userCountry:te,className:ne,selectedJobId:re})=>{const{cardConfig:ae,shouldShowBody:oe}=useJobCardState({currentTab:F,isActive:V,jobData:$}),{eligibilityCriteria:ie,roleType:se}=$||{},ce=se==="internship",ue=determineJobTag($,ie),le=()=>{K&&K($.id),C==null||C.click("Job Card - Click",PRODUCT_NAME,{tag:ue==null?void 0:ue.text,isInternship:ce})};return React.createElement(Card$1,{className:classNames(styles$9.jobCard,{[styles$9.active]:V,[styles$9.archived]:$.applicationStatus==="Archived"},ne),onClick:le},React.createElement("div",{className:styles$9.cardContent},React.createElement(JobCardHeader,{jobData:$,companiesList:ee,currentTab:F,isExpanded:!re,tagData:ue,isInternship:ce}),oe&&React.createElement(JobCardBody,{analytics:C,jobData:$,cardConfig:ae,currentTab:F,userCountry:te,onSave:J,selectedJobId:re,onClick:K})))};JobCard.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,title:PropTypes.string.isRequired,name:PropTypes.string.isRequired,company:PropTypes.arrayOf(PropTypes.number),logo:PropTypes.string,preferredCities:PropTypes.string,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,isRelevant:PropTypes.bool,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,preferredNoticePeriod:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.object)})}).isRequired,isActive:PropTypes.bool,currentTab:PropTypes.string,onClick:PropTypes.func,onSave:PropTypes.func.isRequired,companiesList:PropTypes.object,userCountry:PropTypes.oneOf(["IN","US"]),className:PropTypes.string,selectedJobId:PropTypes.number},JobCard.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const heading="_heading_mxb02_1",spinner="_spinner_mxb02_8",alert="_alert_mxb02_14",header="_header_mxb02_18",sentinel="_sentinel_mxb02_23",loadingMore="_loadingMore_mxb02_30",jobsList="_jobsList_mxb02_39",noJobsContainer="_noJobsContainer_mxb02_46",noJobsImage="_noJobsImage_mxb02_56",noJobsHeading="_noJobsHeading_mxb02_60",jobsListContainer="_jobsListContainer_mxb02_64",styles$8={heading,spinner,alert,header,sentinel,loadingMore,jobsList,noJobsContainer,noJobsImage,noJobsHeading,jobsListContainer},{Title,Text:Text$1}=Typography$1;function JobsList({analytics:C,className:$,currentTab:V,jobs:F=[],companiesMap:K={},isLoading:J=!1,error:ee=null,isFetchingMore:te=!1,hasMore:ne=!0,onOpenApplicationForm:re,hideHeader:ae=!1}){var _e;const oe=reactRedux.useDispatch(),ie=reactRedux.useSelector(he=>{var be,Se;return((Se=(be=he.scalantCareerHub)==null?void 0:be.dashboard)==null?void 0:Se.processCounts)||{}}),se=ne!==void 0?ne:!0,[ce]=useUpdateApplicationStatusMutation(),{selectedJobId:ue,updateJobId:le,updateTab:ve}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{sentinelRef:fe}=useInfiniteScroll({hasMore:se,isLoading:J,isFetchingMore:te});React.useEffect(()=>{F&&F.length>0&&oe(initializeSavedJobs(F))},[F,oe]),React.useEffect(()=>{if(F&&F.length>0){const be=new URLSearchParams(window.location.search).get("job_ids");if(be){const Se=Number(be),Re=F.find(Ce=>Ce.id===Se||Ce.jobProfileId===Se||String(Ce.id)===be||String(Ce.jobProfileId)===be);Re&&ue!==Re.id&&le(Re.id)}}},[F,ue,le]);const ge=(he,be=!1)=>{C==null||C.click("Jobs List - Job Card Click",PRODUCT_NAME),ue===he?(le(null),oe(updateFormFilters({job_ids:null})),re&&re(null)):(le(he),re&&be&&re(he))},pe=(he,be)=>er(this,null,function*(){if(be!=="save")return;const Re=yield ce({job_profile_id:he,update_action:"save"}).unwrap();return oe(setJobSavedStatus({jobId:he,status:"Saved",lastUpdatedAt:(Re==null?void 0:Re.applicationLastUpdatedAt)||new Date().toISOString()})),Re}),de=()=>{C==null||C.click("Jobs List - Go to All Jobs",PRODUCT_NAME),ve(TAG_TO_TAB_MAPPING.all)},me=TAB_HEADINGS[V]||TAB_HEADINGS[TAG_TO_TAB_MAPPING.all],ye=()=>V===TAG_TO_TAB_MAPPING.applied?ie.applications-ie.draft||0:ie[V]||0;return J?React.createElement("div",{className:$},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement(Spin$1,{size:"large",className:styles$8.spinner})):ee?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$8.header},React.createElement(Alert$1,{message:"Error loading jobs",description:((_e=ee==null?void 0:ee.data)==null?void 0:_e.message)||(ee==null?void 0:ee.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:styles$8.alert}))):!F||F.length===0?React.createElement("div",{className:$},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$8.noJobsContainer},React.createElement("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/464/original/3cd470a8085619f7775acfa9e3f15053ee5eb687.png?1766383387",alt:"No Jobs Found",className:styles$8.noJobsImage}),React.createElement(Title,{level:3,className:styles$8.noJobsHeading},TAB_TO_EMPTY_HEADING_MAPPING[V]||"No Suitable Roles Available at the Moment"),React.createElement(Text$1,{className:styles$8.noJobsText},TAB_TO_FALLBACK_DESCRIPTION_MAPPING[V]),V!==TAG_TO_TAB_MAPPING.all&&React.createElement(Button$2,{type:"primary",onClick:de},"Go to All Jobs ",React.createElement(RightOutlined$1,null)))):React.createElement("div",{className:classNames($,styles$8.jobsListContainer)},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$8.jobsList},F.map(he=>React.createElement(JobCard,{key:he.id,jobData:he,isActive:ue===he.id,currentTab:V,analytics:C,onClick:ge,onSave:pe,companiesList:K,userCountry:"IN",selectedJobId:ue})),se&&React.createElement("div",{ref:fe,className:styles$8.sentinel},te&&React.createElement("div",{className:styles$8.loadingMore},React.createElement(Spin$1,{size:"small"}),React.createElement("span",null,"Loading more jobs...")))))}JobsList.propTypes={analytics:PropTypes.object,className:PropTypes.string,currentTab:PropTypes.string,jobs:PropTypes.arrayOf(PropTypes.object),companiesMap:PropTypes.object,isLoading:PropTypes.bool,error:PropTypes.object,isFetchingMore:PropTypes.bool,hasMore:PropTypes.bool,hideHeader:PropTypes.bool},JobsList.defaultProps={className:"",currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0,hideHeader:!1};const relevantJobsPage="_relevantJobsPage_8cpir_1",styles$7={relevantJobsPage};function RelevantJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchRelevantJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.relevant);return React.useEffect(()=>{C&&!F&&C.view("Relevant Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$7.relevantJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const allJobsPage="_allJobsPage_f25va_1",styles$6={allJobsPage};function AllJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchAllJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.all);return React.useEffect(()=>{C&&!F&&C.view("All Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$6.allJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.all,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const savedJobsPage="_savedJobsPage_1mbf6_1",styles$5={savedJobsPage};function SavedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(zn({type:TAG_TO_TAB_MAPPING.saved},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.saved);return React.useEffect(()=>{C&&!F&&C.view("Saved Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$5.savedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.saved,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const appliedJobsPage="_appliedJobsPage_1n6xk_1",fixedHeader="_fixedHeader_1n6xk_9",headerSection="_headerSection_1n6xk_17",sectionTitle="_sectionTitle_1n6xk_22",headerRow="_headerRow_1n6xk_29",divider="_divider_1n6xk_33",contentSection="_contentSection_1n6xk_39",filterTags="_filterTags_1n6xk_50",filterTag="_filterTag_1n6xk_50",active="_active_1n6xk_75",tagIcon="_tagIcon_1n6xk_82",styles$4={appliedJobsPage,fixedHeader,headerSection,sectionTitle,headerRow,divider,contentSection,filterTags,filterTag,active,tagIcon},AppliedJobsHeader=({activeTab:C})=>React.createElement("div",{className:styles$4.headerSection},React.createElement(Flex$1,{align:"center",gap:16,className:styles$4.headerRow},React.createElement(Typography$1.Title,{level:4,className:styles$4.sectionTitle},TAB_HEADER_MAPPING[C]||"Your Job Applications"),React.createElement(Divider$1,{className:styles$4.divider})));AppliedJobsHeader.propTypes={activeTab:PropTypes.string};function AppliedJobsPage({analytics:C,onOpenApplicationForm:$}){const V=reactRedux.useDispatch(),[F,K]=React.useState(null),J=useJobFilters(),{data:ee,isLoading:te,error:ne,isFetching:re}=useFetchPipelineJobsQuery(gr(zn({},J),{tab:F||"applications"})),{data:ae}=useFetchPipelineJobsQuery({tab:APPLIED_JOB_TABS.pending.key,return_only_count:!0}),{data:oe}=useFetchPipelineJobsQuery({tab:APPLIED_JOB_TABS.underReview.key,return_only_count:!0}),ie=ge=>{const pe=Object.values(APPLIED_JOB_TABS).find(me=>me.key===ge);if(!pe)return"";let de=null;return ge===APPLIED_JOB_TABS.pending.key?de=ae==null?void 0:ae.totalEntries:ge===APPLIED_JOB_TABS.underReview.key&&(de=oe==null?void 0:oe.totalEntries),de!=null?`${pe.label} (${de})`:pe.label},se=ge=>{K(pe=>pe===ge?null:ge),V(setPageNumber(1)),C&&C.track("Applied Jobs Tab Clicked",{tab:ge})},{accumulatedJobs:ce,accumulatedCompaniesMap:ue,hasMore:le,isFetchingMore:ve,isLoading:fe}=useAccumulatedJobs(ee,re,te,F);return React.useEffect(()=>{C&&!te&&C.view("Applied Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ce==null?void 0:ce.length)||0})},[C,te,ce==null?void 0:ce.length]),React.createElement("div",{className:styles$4.appliedJobsPage},React.createElement("div",{className:styles$4.fixedHeader},React.createElement(AppliedJobsHeader,{activeTab:F}),React.createElement(Flex$1,{gap:8,wrap:"wrap",className:styles$4.filterTags},Object.values(APPLIED_JOB_TABS).map(ge=>{const pe={CheckCircleOutlined:CheckCircleOutlined$1,SyncOutlined:SyncOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1}[ge.icon];return React.createElement("div",{key:ge.key,className:`${styles$4.filterTag} ${F===ge.key?styles$4.active:""}`,onClick:()=>se(ge.key)},pe&&React.createElement(pe,{className:styles$4.tagIcon}),ie(ge.key))}))),React.createElement("div",{className:styles$4.contentSection},React.createElement(JobsList,{analytics:C,currentTab:F||"applications",jobs:ce,companiesMap:ue,isLoading:fe,error:ne,isFetchingMore:ve,hasMore:le,onOpenApplicationForm:$,hideHeader:!0})))}const ExpertMbeRating=({fieldName:C,subjectOptions:$,ratingOptions:V})=>{const F=reactRedux.useDispatch(),J=reactRedux.useSelector(ue=>ue.scalantCareerHub.filterForm)[C],ee=React.useMemo(()=>J||{},[J]),te=React.useMemo(()=>typeof ee=="object"&&!Array.isArray(ee)?ee:{},[ee]);React.useEffect(()=>{(!ee||Object.keys(te).length===0)&&F(addRatingFilterInput())},[ee,te,F]);const ne=React.useMemo(()=>Object.values(te).map(ue=>{var le;return((le=ue==null?void 0:ue.subject)==null?void 0:le.key)||(ue==null?void 0:ue.subject)}).filter(Boolean),[te]),re=React.useMemo(()=>$.filter(ue=>!ne.includes(ue.key)),[$,ne]),ae=React.useCallback(()=>{F(addRatingFilterInput())},[F]),oe=React.useCallback(ue=>{F(deleteRatingFilterInput({inputFieldKey:ue}))},[F]),ie=React.useCallback((ue,le)=>{const ve=$.find(fe=>fe.key===le);F(updateRatingFilterInput({inputFilterSubKey:`${ue}_subject`,value:ve||le}))},[$,F]),se=React.useCallback((ue,le)=>{F(updateRatingFilterInput({inputFilterSubKey:`${ue}_rating`,value:le}))},[F]),ce=Object.keys(te);return React.createElement(Space$1,{direction:"vertical",style:{width:"100%"},size:"middle"},ce.map(ue=>{var pe;const le=te[ue],ve=((pe=le==null?void 0:le.subject)==null?void 0:pe.key)||(le==null?void 0:le.subject),fe=le==null?void 0:le.rating,ge=[...$.filter(de=>de.key===ve),...re];return React.createElement(Row$1,{key:ue,gutter:16,align:"middle"},React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select skill",value:ve,onChange:de=>ie(ue,de),showSearch:!0,filterOption:(de,me)=>{var ye;return((ye=me==null?void 0:me.label)!=null?ye:"").toLowerCase().includes(de.toLowerCase())},options:ge.map(de=>({label:de.value,value:de.key}))})),React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select rating",value:fe,onChange:de=>se(ue,de),options:V.map(de=>({label:de.label,value:de.value}))})),React.createElement(Col$1,{span:4},React.createElement(Space$1,null,React.createElement(Button$2,{type:"text",icon:React.createElement(PlusOutlined$1,null),onClick:ae,style:{color:"#1890ff"}}),ce.length>1&&React.createElement(Button$2,{type:"text",icon:React.createElement(DeleteOutlined$1,null),onClick:()=>oe(ue),danger:!0}))))}))};ExpertMbeRating.propTypes={fieldName:PropTypes.string.isRequired,subjectOptions:PropTypes.arrayOf(PropTypes.shape({key:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),value:PropTypes.string})).isRequired,ratingOptions:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),label:PropTypes.string})).isRequired};const drawerContent="_drawerContent_fqkgw_1",filterForm="_filterForm_fqkgw_5",drawerHeaderSubtitle$1="_drawerHeaderSubtitle_fqkgw_9",filterIcon$1="_filterIcon_fqkgw_14",buttonContainer="_buttonContainer_fqkgw_18",drawer="_drawer_fqkgw_1",styles$3={drawerContent,filterForm,drawerHeaderSubtitle:drawerHeaderSubtitle$1,filterIcon:filterIcon$1,buttonContainer,drawer},{Option:Option$1}=Select$1;function FilterForm(){var Se,Re,Ce,xe;const C=reactRedux.useDispatch(),$=reactRedux.useSelector($e=>$e.scalantCareerHub.filterForm),V=reactRedux.useSelector($e=>$e.scalantCareerHub.filterOptions||{}),[F]=Form$1.useForm();React.useEffect(()=>{F.setFieldsValue($)},[F,$]);const{handleCompanySearch:K,handleTitleSearch:J,handleExperienceSkillSearch:ee,handleExperienceSkillChange:te,loadingCompanies:ne,loadingTitles:re,loadingExperienceSkills:ae}=useAsyncFilterOptions(),{jobTypes:oe,functions:ie,seniorityLevels:se,companyCategories:ce,locations:ue,mbeSkills:le,ctcRanges:ve,stipendRanges:fe,durationRanges:ge,noticePeriods:pe,datePostedOptions:de,skillRatings:me}=useFilterMetaOptions(),ye=($e,Ie)=>{C(updateFormField({field:$e,value:Ie}))},_e=$.role_type,he=_e==="full_time",be=_e==="internship";return React.createElement(Form$1,{layout:"vertical",className:styles$3.filterForm,form:F,initialValues:$},React.createElement(Form$1.Item,{label:"Job Types",name:"role_type"},React.createElement(Select$1,{placeholder:"Select job profile",value:$.role_type,onChange:$e=>ye("role_type",$e)},oe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Company Name",name:"company_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:K,loading:ne,value:$.company_ids,onChange:$e=>ye("company_ids",$e),notFoundContent:ne?"Loading...":"Type at least 3 characters to search"},(Se=V.companyOptions)==null?void 0:Se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Title",name:"job_title"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:J,loading:re,value:$.job_title,onChange:$e=>ye("job_title",$e),notFoundContent:re?"Loading...":"Type at least 3 characters to search"},(Re=V.titleOptions)==null?void 0:Re.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),React.createElement(Form$1.Item,{label:"Function",name:"job_category"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select function",value:$.job_category,onChange:$e=>ye("job_category",$e)},ie.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Role seniority level",name:"seniority_level"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select level",value:$.seniority_level,onChange:$e=>ye("seniority_level",$e)},se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Company category",name:"company_categories"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select category",value:$.company_categories,onChange:$e=>ye("company_categories",$e)},ce.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))))),React.createElement(Form$1.Item,{label:"Location",name:"location"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select location",value:$.location,onChange:$e=>ye("location",$e)},ue.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),!be&&React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_ctc,onChange:$e=>ye("min_ctc",$e)},ve.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))),!he&&React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Stipend (INR per month)",name:"min_stipend"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_stipend,onChange:$e=>ye("min_stipend",$e)},fe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Internship duration (in months)",name:"min_duration"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_duration,onChange:$e=>ye("min_duration",$e)},ge.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Notice period requirement",name:"notice_period"},React.createElement(Select$1,{placeholder:"Choose period",value:$.notice_period,onChange:$e=>ye("notice_period",$e)},pe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Job posted date",name:"date_posted_on"},React.createElement(Select$1,{placeholder:"Pick date",value:$.date_posted_on,onChange:$e=>ye("date_posted_on",$e)},de.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Form$1.Item,{label:"Expert Mock Interview Skills Required"},React.createElement(ExpertMbeRating,{fieldName:"mbe_skill_ids",subjectOptions:le,ratingOptions:me})),React.createElement(Form$1.Item,{label:"Experienced based skills",name:"experience_skill_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:ee,loading:ae,value:((Ce=$.experience_skill_ids)==null?void 0:Ce.map($e=>typeof $e=="object"?$e.experience_skill_id:$e))||[],onChange:$e=>{const Ie=te($e,V.experienceSkillOptions);ye("experience_skill_ids",Ie)},notFoundContent:ae?"Loading...":"Type at least 2 characters to search"},(xe=V.experienceSkillOptions)==null?void 0:xe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)? *"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number",value:$.min_experience,onChange:$e=>ye("min_experience",$e.target.value)}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number",value:$.max_experience,onChange:$e=>ye("max_experience",$e.target.value)}))))))}function FilterDrawerTitle({onClose:C}){return React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:5},React.createElement(FilterOutlined$1,{className:styles$3.filterIcon}),"Filters"),React.createElement(CloseOutlined$1,{onClick:C})),React.createElement("div",{className:styles$3.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function FilterDrawer({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>te.scalantCareerHub.dashboard.filterModalOpen),F=reactRedux.useSelector(te=>te.scalantCareerHub.filterForm);React.useEffect(()=>{C&&V&&C.view("Filter Drawer - Open",PRODUCT_NAME)},[C,V]);const K=()=>{C==null||C.click("Filter Drawer - Close",PRODUCT_NAME),$(closeFilterModal())},J=()=>{var re,ae,oe,ie,se,ce,ue;C==null||C.click("Filter Drawer - Apply",PRODUCT_NAME);let te;F.mbe_skill_ids&&typeof F.mbe_skill_ids=="object"&&!Array.isArray(F.mbe_skill_ids)&&Object.keys(F.mbe_skill_ids).length>0&&(te=Object.values(F.mbe_skill_ids).filter(le=>!le||le.rating===void 0||le.rating===null?!1:le.subject?typeof le.subject=="object"?le.subject.key!==void 0&&le.subject.key!==null:le.subject!==void 0&&le.subject!==null:!1).map(le=>{var fe;let ve;return typeof le.subject=="object"&&((fe=le.subject)==null?void 0:fe.key)!==void 0?ve=le.subject.key:ve=le.subject,{mbe_skill_id:ve,rating:le.rating}}),te.length===0&&(te=void 0));const ne={role_type:F.role_type||void 0,company_ids:(re=F.company_ids)!=null&&re.length?F.company_ids:void 0,job_title:(ae=F.job_title)!=null&&ae.length?F.job_title:void 0,job_category:(oe=F.job_category)!=null&&oe.length?F.job_category:void 0,seniority_level:(ie=F.seniority_level)!=null&&ie.length?F.seniority_level:void 0,location:(se=F.location)!=null&&se.length?F.location:void 0,min_ctc:F.min_ctc||void 0,min_stipend:F.min_stipend||void 0,min_duration:F.min_duration||void 0,notice_period:F.notice_period||void 0,date_posted_on:F.date_posted_on||void 0,mbe_skill_ids:te,experience_skill_ids:(ce=F.experience_skill_ids)!=null&&ce.length?F.experience_skill_ids:void 0,min_experience:F.min_experience||void 0,max_experience:F.max_experience||void 0,company_categories:(ue=F.company_categories)!=null&&ue.length?F.company_categories:void 0};Object.keys(ne).forEach(le=>{ne[le]===void 0&&delete ne[le]}),$(updateFiltersFromForm(ne)),updateURLWithFilters(ne),K()},ee=()=>{C==null||C.click("Filter Drawer - Reset",PRODUCT_NAME),$(resetForm()),$(clearAllOptions()),$(updateFiltersFromForm({})),updateURLWithFilters({})};return React.createElement(Drawer$1,{title:React.createElement(FilterDrawerTitle,{onClose:K}),placement:"right",onClose:K,open:V,closable:!1,width:550,className:styles$3.drawer},React.createElement("div",{className:styles$3.drawerContent},React.createElement(FilterForm,null),React.createElement("div",{className:styles$3.buttonContainer},React.createElement(Button$2,{className:styles$3.resetButton,onClick:ee},"Reset Filters"),React.createElement(Button$2,{type:"primary",className:styles$3.applyButton,onClick:J},"Apply"))))}const alertService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAlerts:C.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:$=>$.data||[],providesTags:["JobAlerts"]}),createAlert:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/",method:"POST",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlertStatus:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlert:C.mutation({query:({id:$,payload:V})=>({url:`/job-tracker/v1/alerts/${$}`,method:"PUT",body:V}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery,useCreateAlertMutation,useUpdateAlertStatusMutation,useUpdateAlertMutation}=alertService,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",styles$2={modalTitle,modalTitleHeader,modalTitleContent,modalCloseIcon,modalDescription,modalFooter,createAlertContent,formField,formLabel,requiredAsterisk,formInput,experienceInputs,modal,radioGroup,drawerHeaderSubtitle,filterIcon},{Option}=Select$1;function JobAlertForm({form:C,initialValues:$,onSubmit:V,isSubmitting:F}){const{functions:K,locations:J,ctcRanges:ee}=useFilterMetaOptions(),[te,ne]=React.useState("realtime");React.useEffect(()=>{var oe,ie;if($&&C){const ce={[ALERT_FREQUENCY.REALTIME]:"realtime",[ALERT_FREQUENCY.DAILY]:"daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"alternate",[ALERT_FREQUENCY.WEEKLY]:"weekly"}[$.frequency]||"realtime",ue={name:$.name,job_functions:$.job_functions||[],min_ctc:$.min_ctc,locations:$.locations||[],min_experience:((oe=$.min_experience)==null?void 0:oe.toString())||"",max_experience:((ie=$.max_experience)==null?void 0:ie.toString())||"",frequency:ce,notification_type:$.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL};C.setFieldsValue(ue),ne(ce)}},[$,C]);const re=()=>er(this,null,function*(){try{const oe=yield C.validateFields(),ie={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},se=oe.frequency==="realtime",ce={alert:{name:oe.name,job_functions:oe.job_functions||[],min_ctc:oe.min_ctc,locations:oe.locations||[],min_experience:oe.min_experience?parseInt(oe.min_experience,10):0,max_experience:oe.max_experience?parseInt(oe.max_experience,10):null,frequency:ie[oe.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:se&&oe.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};V&&(yield V(ce))}catch(oe){console.error("Error submitting form:",oe)}});React.useEffect(()=>{C&&V&&(C.submit=re)},[C,V]);const ae=Form$1.useWatch("frequency",C)||"realtime";return React.useEffect(()=>{ne(ae)},[ae]),React.createElement(Form$1,{form:C,layout:"vertical",className:styles$2.createAlertContent,initialValues:{frequency:"realtime"}},React.createElement(Form$1.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},React.createElement(Input$1,{placeholder:"Give your job alert a name"})),React.createElement(Form$1.Item,{label:"Job Function",name:"job_functions"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select job function",className:styles$2.formInput},K.map(oe=>React.createElement(Option,{key:oe.key,value:oe.key},oe.value)))),React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",className:styles$2.formInput},ee.map(oe=>React.createElement(Option,{key:oe.value,value:oe.value},oe.label)))),React.createElement(Form$1.Item,{label:"Locations?",name:"locations"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select locations",className:styles$2.formInput},J.map(oe=>React.createElement(Option,{key:oe.key,value:oe.value},oe.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)?"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number"}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number"}))))),React.createElement(Form$1.Item,{label:"Alert Frequency",name:"frequency"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup,onChange:oe=>{ne(oe.target.value),oe.target.value!=="realtime"&&C.setFieldsValue({notification_type:ALERT_NOTIFICATION_TYPE.EMAIL})}},React.createElement(Radio$1,{value:"realtime"},"Realtime"),React.createElement(Radio$1,{value:"daily"},"Daily"),React.createElement(Radio$1,{value:"alternate"},"Every alternate day"),React.createElement(Radio$1,{value:"weekly"},"Weekly"))),te==="realtime"&&React.createElement(Form$1.Item,{label:"Alert mode",name:"notification_type"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup},React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.EMAIL},"Email"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.WHATSAPP},"Whatsapp"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.BOTH},"Both"))))}const alertCard="_alertCard_1k2nv_1",alertHeader="_alertHeader_1k2nv_14",alertIcon="_alertIcon_1k2nv_20",inactiveIcon="_inactiveIcon_1k2nv_25",alertActions="_alertActions_1k2nv_29",editFormCard="_editFormCard_1k2nv_35",styles$1={alertCard,alertHeader,alertIcon,inactiveIcon,alertActions,editFormCard};function ExistingAlerts({analytics:C}){const $=reactRedux.useDispatch(),{data:V=[],isLoading:F,error:K}=useFetchAlertsQuery(),[J]=useUpdateAlertStatusMutation(),[ee,{isLoading:te}]=useUpdateAlertMutation(),[ne,re]=React.useState(null),[ae]=Form$1.useForm();React.useEffect(()=>{V&&$(setAlerts(V))},[V,$]);const oe=ge=>ALERT_FREQUENCY_LABELS[ge]||ALERT_FREQUENCY_LABELS[ALERT_FREQUENCY.REALTIME],ie=ge=>ALERT_NOTIFICATION_LABELS[ge]||ALERT_NOTIFICATION_LABELS[ALERT_NOTIFICATION_TYPE.EMAIL],se=ge=>ge===ALERT_STATUS.ACTIVE,ce=(ge,pe)=>er(this,null,function*(){try{const de=pe===ALERT_STATUS.ACTIVE?ALERT_STATUS.INACTIVE:ALERT_STATUS.ACTIVE;yield J({id:ge,status:de}).unwrap(),message$1.success(`Alert ${de===ALERT_STATUS.ACTIVE?"activated":"deactivated"} successfully`)}catch(de){message$1.error("Failed to update alert status"),console.error("Error updating alert status:",de)}}),ue=ge=>{C==null||C.click("Existing Alerts - Edit",PRODUCT_NAME),re(ge)},le=()=>{C==null||C.click("Existing Alerts - Cancel Edit",PRODUCT_NAME),re(null),ae.resetFields()},ve=ge=>er(this,null,function*(){try{C==null||C.click("Existing Alerts - Update Alert",PRODUCT_NAME),yield ee({id:ne,payload:ge}).unwrap(),message$1.success("Alert updated successfully"),re(null),ae.resetFields()}catch(pe){throw message$1.error("Failed to update alert"),console.error("Error updating alert:",pe),pe}}),fe=ge=>er(this,null,function*(){try{C==null||C.click("Existing Alerts - Delete",PRODUCT_NAME),yield J({id:ge,status:ALERT_STATUS.DELETED}).unwrap(),message$1.success("Alert deleted successfully")}catch(pe){message$1.error("Failed to delete alert"),console.error("Error deleting alert:",pe)}});return F?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.loadingText},"Loading alerts...")):K?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.errorText},"Error loading alerts")):!V||V.length===0?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.emptyText},"No alerts found")):React.createElement("div",{className:styles$1.existingAlertContent},V.map(ge=>{const pe=ge.attributes||ge,de=ge.id||pe.id,me=se(pe.status),ye=oe(pe.frequency),_e=ie(pe.notification_type),he=ne===de;return React.createElement("div",{key:de,className:styles$1.alertCard},React.createElement(Flex$1,{align:"center",className:styles$1.alertHeader},React.createElement(AlertFilled$1,{className:classNames(styles$1.alertIcon,{[styles$1.inactiveIcon]:!me})}),React.createElement("div",null,pe.name)),React.createElement("div",{className:styles$1.alertSettings},React.createElement(Flex$1,{align:"center",gap:16,wrap:!0},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Switch$1,{checked:me,onChange:()=>ce(de,pe.status),size:"small",disabled:he}),React.createElement("span",null,"Active")),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(ClockCircleOutlined$1,null),React.createElement("span",null,ye)),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(AlertFilled$1,null),React.createElement("span",null,_e)))),!he&&React.createElement("div",{className:styles$1.alertActions},React.createElement(Button$2,{type:"text",danger:!0,icon:React.createElement(DeleteOutlined$1,null),onClick:()=>fe(de),className:styles$1.deleteButton},"Delete"),React.createElement(Button$2,{type:"primary",icon:React.createElement(EditOutlined$1,null),onClick:()=>ue(de),className:styles$1.editButton},"Edit")),he&&React.createElement("div",{className:styles$1.editFormCard},React.createElement(JobAlertForm,{form:ae,initialValues:pe,onSubmit:ve,isSubmitting:te}),React.createElement(Flex$1,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},React.createElement(Button$2,{onClick:le,disabled:te},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:()=>er(this,null,function*(){try{const be=yield ae.validateFields(),Se={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},Re=be.frequency==="realtime",Ce={alert:{name:be.name,job_functions:be.job_functions||[],min_ctc:be.min_ctc,locations:be.locations||[],min_experience:be.min_experience?parseInt(be.min_experience,10):0,max_experience:be.max_experience?parseInt(be.max_experience,10):null,frequency:Se[be.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:Re&&be.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};yield ve(Ce)}catch(be){}}),loading:te},"Update Alert"))))}))}function JobAlertModal({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.jobAlertModalOpen),[F,K]=React.useState("create"),[J]=Form$1.useForm(),[ee,{isLoading:te}]=useCreateAlertMutation();React.useEffect(()=>{V?C&&V&&C.view("Job Alert Modal - Open",PRODUCT_NAME):(J.resetFields(),K("create"))},[V,J,C]);const ne=()=>{C==null||C.click("Job Alert Modal - Close",PRODUCT_NAME),$(closeJobAlertModal())},re=()=>{C==null||C.click("Job Alert Modal - Cancel",PRODUCT_NAME),ne()},ae=()=>er(this,null,function*(){try{const ue=yield J.validateFields(),le={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},ve=ue.frequency==="realtime",fe={alert:{name:ue.name,job_functions:ue.job_functions||[],min_ctc:ue.min_ctc,locations:ue.locations||[],min_experience:ue.min_experience?parseInt(ue.min_experience,10):0,max_experience:ue.max_experience?parseInt(ue.max_experience,10):null,frequency:le[ue.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:ve&&ue.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL},resume_alert:!1},ge=yield ee(fe).unwrap();ge.success&&ge.alert&&(C==null||C.click("Job Alert Modal - Create Alert",PRODUCT_NAME),J.resetFields(),K("existing"),message$1.success("Alert created successfully"))}catch(ue){message$1.error("Failed to create alert"),console.error("Error creating alert:",ue)}}),oe=ue=>er(this,null,function*(){const le=gr(zn({},ue),{resume_alert:!1});return yield ee(le).unwrap()}),ie=React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(BellOutlined$1,{className:styles$2.filterIcon}),"Curate your Job Alert"),React.createElement(CloseOutlined$1,{onClick:ne})),React.createElement("div",{className:styles$2.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),se=React.createElement("div",{className:styles$2.modalFooter},React.createElement(Button$2,{onClick:re},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:te},"Create Alert")),ce=React.createElement(JobAlertForm,{form:J,onSubmit:oe,isSubmitting:te});return React.createElement(Modal$1,{title:ie,open:V,onCancel:ne,footer:se,width:600,closable:!1,className:styles$2.modal},React.createElement(Tabs$1,{activeKey:F,onChange:ue=>{C==null||C.click(`Job Alert Modal - Tab ${ue}`,PRODUCT_NAME),K(ue)},items:[{key:"create",label:"Create alert",children:ce},{key:"existing",label:"Existing alerts",children:React.createElement(ExistingAlerts,{analytics:C})}]}))}const{Text}=Typography$1,FEEDBACK_URL="https://interviewbit.typeform.com/to/LONfH7DT",STORAGE_KEY_PREFIX="CAREERS_HUB_JOBS_V2_FEEDBACK",STORAGE_KEYS={TIME_SPENT:`${STORAGE_KEY_PREFIX}#feedback_time_spent`,SUBMITTED:`${STORAGE_KEY_PREFIX}#feedback_submitted`,SHOWN_COUNT:`${STORAGE_KEY_PREFIX}#feedback_shown_count`},TIME_THRESHOLD=7.5*60,MAX_SHOW_COUNT=3,Feedback=({analytics:C})=>{const[$,V]=React.useState(!1),F=React.useRef(null),K=React.useRef(Date.now()),J=React.useRef(!1),ee=React.useRef(!1),te=reactRedux.useSelector(oe=>oe.scalantCareerHub.dashboard.userProfileData),{email:ne}=te||{};React.useEffect(()=>{const oe=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10),ie=localStorage.getItem(STORAGE_KEYS.SUBMITTED)==="true",se=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);ie||se>=MAX_SHOW_COUNT||oe>=TIME_THRESHOLD&&(V(!0),ee.current=!0,localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT,String(se+1)),C==null||C.click("Feedback - Auto Open Feedback Modal",PRODUCT_NAME))},[C]),React.useEffect(()=>{const oe=localStorage.getItem(STORAGE_KEYS.SUBMITTED)==="true",ie=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);if(!(oe||ie>=MAX_SHOW_COUNT))return K.current=Date.now(),F.current=setInterval(()=>{const ce=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10)+1,ue=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);localStorage.setItem(STORAGE_KEYS.TIME_SPENT,String(ce)),ce>=TIME_THRESHOLD&&!ee.current&&!J.current&&ue<MAX_SHOW_COUNT&&(V(!0),ee.current=!0,localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT,String(ue+1)),C==null||C.click("Feedback - Auto Open Feedback Modal - Interval",PRODUCT_NAME))},1e3),()=>{if(F.current){clearInterval(F.current);const se=Math.floor((Date.now()-K.current)/1e3);if(se>0){const ce=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10);localStorage.setItem(STORAGE_KEYS.TIME_SPENT,String(ce+se))}}}},[C]);const re=()=>{V(!1),J.current=!0,C==null||C.click("Feedback - Cancel Feedback",PRODUCT_NAME)},ae=()=>{localStorage.setItem(STORAGE_KEYS.SUBMITTED,"true"),V(!1),C==null||C.click("Feedback - Submit Feedback",PRODUCT_NAME)};return React.createElement(Modal$1,{title:React.createElement(Flex$1,{align:"center",gap:8},React.createElement(SmileTwoTone$1,null),React.createElement(Text,null,"Your feedback is important to us!")),open:$,onCancel:re,cancelText:"Go Back",okText:"Submit Feedback",okButtonProps:{href:`${FEEDBACK_URL}#email=${ne}`,target:"_blank"},onOk:ae,centered:!0},React.createElement(Text,null,"We recently made some changes to the careers hub and would love to hear your feedback!"))},jobsPageContent="_jobsPageContent_pk7y3_1",styles={jobsPageContent};function JobsPage({analytics:C,country:$,openMockInterviewModal:V,openResume:F,processCounts:K=DEFAULT_PROCESS_COUNTS,userProfileData:J,onUploadFile:ee,onViewResume:te,onEditPreferences:ne,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe,fitmentCheckEnabled:ie=!1,smartJobApplyEnabled:se=!1}){const ce=reactRedux.useDispatch(),ue=reactRedux.useSelector(he=>{var be,Se;return((Se=(be=he.scalantCareerHub)==null?void 0:be.filter)==null?void 0:Se.tab)||TAG_TO_TAB_MAPPING.relevant}),le=React.useRef(!1),[ve,fe]=React.useState(!1),{selectedJobId:ge}=useJobQueryParams({syncToURL:!0,syncFromURL:!0}),pe=he=>{fe(he)};React.useLayoutEffect(()=>{if(!le.current){const he=getFiltersFromURL(),be=zn({},he),Re=new URLSearchParams(window.location.search).get("job_ids");Re&&(be.job_ids=[Re]),Object.keys(be).length>0&&ce(updateFiltersFromForm(be)),le.current=!0}},[ce]),React.useEffect(()=>{ce(setProcessCounts(K))},[K,ce]),React.useEffect(()=>{J&&ce(setUserProfileData(J))},[J,ce]);const de=React.createElement(JobsHeader,{analytics:C}),me=ge?React.createElement(JobDetails,{analytics:C,currentTab:ue,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:ge,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe,fitmentCheckEnabled:ie,smartJobApplyEnabled:se,defaultOpenedApplicationId:ve===ge?ge:null}):React.createElement(ProfileDetails,{analytics:C,onViewResume:te,onEditPreferences:ne}),ye=ge?SIDER_WIDTH.JOB_DETAILS:SIDER_WIDTH.PROFILE_DETAILS;React.useEffect(()=>{C&&C.view("Jobs Page - Tab Rendered",PRODUCT_NAME,{currentTab:ue})},[C,ue]);const _e=()=>{switch(ue){case TAG_TO_TAB_MAPPING.relevant:return React.createElement(RelevantJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.saved:return React.createElement(SavedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.applied:return React.createElement(AppliedJobsPage,{analytics:C,onOpenApplicationForm:pe});case TAG_TO_TAB_MAPPING.all:default:return React.createElement(AllJobsPage,{analytics:C})}};return React.createElement(React.Fragment,null,React.createElement(JobsLayout,{analytics:C,header:de,sider:me,siderWidth:ye,className:styles.jobsPage},_e()),React.createElement(FilterDrawer,{analytics:C}),React.createElement(JobAlertModal,{analytics:C}),React.createElement(Feedback,{analytics:C}))}JobsPage.propTypes={processCounts:PropTypes.shape({all:PropTypes.number,relevant:PropTypes.number,draft:PropTypes.number,applications:PropTypes.number,saved:PropTypes.number,archived:PropTypes.number}),userProfileData:PropTypes.object},exports.APPLICATION_STATUS=APPLICATION_STATUS,exports.JOB_CARD_CONFIG=JOB_CARD_CONFIG,exports.JOB_PROFILE_STATUS=JOB_PROFILE_STATUS,exports.JobsLayout=JobsLayout,exports.JobsPage=JobsPage,exports.TABS=TABS,exports.careerHubApi=careerHubApi,exports.checkAllOtherRequirementsMet=checkAllOtherRequirementsMet,exports.countPendingSteps=countPendingSteps,exports.default=HelloWorld,exports.determineJobTag=determineJobTag,exports.formatCtc=formatCtc,exports.formatDate=formatDate,exports.formatExperience=formatExperience$1,exports.formatLocation=formatLocation,exports.formatNoticePeriod=formatNoticePeriod,exports.setBaseUrl=setBaseUrl,exports.setChecklistOpen=setChecklistOpen,exports.setFitmentScore=setFitmentScore,exports.setResumeReviewData=setResumeReviewData,exports.store=rootReducer,exports.useApplicationForm=useApplicationForm,exports.useCreateApplication=useCreateApplication,exports.useJobCardState=useJobCardState,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
469
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he=!0,be=!1,Se;return{s:function(){me=me.call(pe)},n:function(){var Ce=me.next();return he=Ce.done,Ce},e:function(Ce){be=!0,Se=Ce},f:function(){try{!he&&me.return!=null&&me.return()}finally{if(be)throw Se}}}}function ae(pe,de){if(pe){if(typeof pe=="string")return oe(pe,de);var me=Object.prototype.toString.call(pe).slice(8,-1);if(me==="Object"&&pe.constructor&&(me=pe.constructor.name),me==="Map"||me==="Set")return Array.from(pe);if(me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(me))return oe(pe,de)}}function oe(pe,de){(de==null||de>pe.length)&&(de=pe.length);for(var me=0,ye=new Array(de);me<de;me++)ye[me]=pe[me];return ye}function ie(pe,de){if(!(pe instanceof de))throw new TypeError("Cannot call a class as a function")}function se(pe,de){for(var me=0;me<de.length;me++){var ye=de[me];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(pe,ye.key,ye)}}function ce(pe,de,me){return de&&se(pe.prototype,de),me&&se(pe,me),pe}function ue(pe,de,me){return{method:"GET",headers:pe,signal:me==null?void 0:me.signal,mode:"cors",credentials:de?"include":"same-origin",redirect:"follow"}}function le(pe){var de=new Headers;for(var me in pe){var ye=pe[me];typeof ye!="undefined"&&de.append(me,ye)}return de}var ve=function(){function pe(de){ie(this,pe),this.source=de,this.isHttp=/^https?:/i.test(de.url),this.httpHeaders=this.isHttp&&de.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(pe,[{key:"_progressiveDataLength",get:function(){var me,ye;return(me=(ye=this._fullRequestReader)===null||ye===void 0?void 0:ye._loaded)!==null&&me!==void 0?me:0}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(me,ye){if(ye<=this._progressiveDataLength)return null;var _e=new ge(this,me,ye);return this._rangeRequestReaders.push(_e),_e}},{key:"cancelAllRequests",value:function(me){this._fullRequestReader&&this._fullRequestReader.cancel(me);var ye=re(this._rangeRequestReaders.slice(0)),_e;try{for(ye.s();!(_e=ye.n()).done;){var he=_e.value;he.cancel(me)}}catch(be){ye.e(be)}finally{ye.f()}}}]),pe}();$.PDFFetchStream=ve;var fe=function(){function pe(de){var me=this;ie(this,pe),this._stream=de,this._reader=null,this._loaded=0,this._filename=null;var ye=de.source;this._withCredentials=ye.withCredentials||!1,this._contentLength=ye.length,this._headersCapability=(0,K.createPromiseCapability)(),this._disableRange=ye.disableRange||!1,this._rangeChunkSize=ye.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!ye.disableStream,this._isRangeSupported=!ye.disableRange,this._headers=le(this._stream.httpHeaders);var _e=ye.url;fetch(_e,ue(this._headers,this._withCredentials,this._abortController)).then(function(he){if(!(0,J.validateResponseStatus)(he.status))throw(0,J.createResponseStatusError)(he.status,_e);me._reader=he.body.getReader(),me._headersCapability.resolve();var be=function($e){return he.headers.get($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:be,isHttp:me._stream.isHttp,rangeChunkSize:me._rangeChunkSize,disableRange:me._disableRange}),Re=Se.allowRangeRequests,Ce=Se.suggestedLength;me._isRangeSupported=Re,me._contentLength=Ce||me._contentLength,me._filename=(0,J.extractFilenameFromHeader)(be),!me._isStreamingSupported&&me._isRangeSupported&&me.cancel(new K.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return ce(pe,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var de=ne(F.default.mark(function ye(){var _e,he,be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._headersCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(_e=Ce.sent,he=_e.value,be=_e.done,!be){Ce.next=9;break}return Ce.abrupt("return",{value:he,done:be});case 9:return this._loaded+=he.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Se=new Uint8Array(he).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function me(){return de.apply(this,arguments)}return me}()},{key:"cancel",value:function(me){this._reader&&this._reader.cancel(me),this._abortController&&this._abortController.abort()}}]),pe}(),ge=function(){function pe(de,me,ye){var _e=this;ie(this,pe),this._stream=de,this._reader=null,this._loaded=0;var he=de.source;this._withCredentials=he.withCredentials||!1,this._readCapability=(0,K.createPromiseCapability)(),this._isStreamingSupported=!he.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=le(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(me,"-").concat(ye-1));var be=he.url;fetch(be,ue(this._headers,this._withCredentials,this._abortController)).then(function(Se){if(!(0,J.validateResponseStatus)(Se.status))throw(0,J.createResponseStatusError)(Se.status,be);_e._readCapability.resolve(),_e._reader=Se.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return ce(pe,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var de=ne(F.default.mark(function ye(){var _e,he,be,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._readCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(_e=Ce.sent,he=_e.value,be=_e.done,!be){Ce.next=9;break}return Ce.abrupt("return",{value:he,done:be});case 9:return this._loaded+=he.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),Se=new Uint8Array(he).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function me(){return de.apply(this,arguments)}return me}()},{key:"cancel",value:function(me){this._reader&&this._reader.cancel(me),this._abortController&&this._abortController.abort()}}]),pe}()}],__webpack_module_cache__={};function __w_pdfjs_require__(C){var $=__webpack_module_cache__[C];if($!==void 0)return $.exports;var V=__webpack_module_cache__[C]={id:C,loaded:!1,exports:{}};return __webpack_modules__[C].call(V.exports,V,V.exports,__w_pdfjs_require__),V.loaded=!0,V.exports}__w_pdfjs_require__.nmd=C=>(C.paths=[],C.children||(C.children=[]),C);var __webpack_exports__={};return(()=>{var C=__webpack_exports__;Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"AnnotationLayer",{enumerable:!0,get:function(){return K.AnnotationLayer}}),Object.defineProperty(C,"AnnotationMode",{enumerable:!0,get:function(){return V.AnnotationMode}}),Object.defineProperty(C,"CMapCompressionType",{enumerable:!0,get:function(){return V.CMapCompressionType}}),Object.defineProperty(C,"GlobalWorkerOptions",{enumerable:!0,get:function(){return J.GlobalWorkerOptions}}),Object.defineProperty(C,"InvalidPDFException",{enumerable:!0,get:function(){return V.InvalidPDFException}}),Object.defineProperty(C,"LinkTarget",{enumerable:!0,get:function(){return $.LinkTarget}}),Object.defineProperty(C,"LoopbackPort",{enumerable:!0,get:function(){return F.LoopbackPort}}),Object.defineProperty(C,"MissingPDFException",{enumerable:!0,get:function(){return V.MissingPDFException}}),Object.defineProperty(C,"OPS",{enumerable:!0,get:function(){return V.OPS}}),Object.defineProperty(C,"PDFDataRangeTransport",{enumerable:!0,get:function(){return F.PDFDataRangeTransport}}),Object.defineProperty(C,"PDFDateString",{enumerable:!0,get:function(){return $.PDFDateString}}),Object.defineProperty(C,"PDFWorker",{enumerable:!0,get:function(){return F.PDFWorker}}),Object.defineProperty(C,"PasswordResponses",{enumerable:!0,get:function(){return V.PasswordResponses}}),Object.defineProperty(C,"PermissionFlag",{enumerable:!0,get:function(){return V.PermissionFlag}}),Object.defineProperty(C,"PixelsPerInch",{enumerable:!0,get:function(){return $.PixelsPerInch}}),Object.defineProperty(C,"RenderingCancelledException",{enumerable:!0,get:function(){return $.RenderingCancelledException}}),Object.defineProperty(C,"SVGGraphics",{enumerable:!0,get:function(){return ne.SVGGraphics}}),Object.defineProperty(C,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return V.UNSUPPORTED_FEATURES}}),Object.defineProperty(C,"UnexpectedResponseException",{enumerable:!0,get:function(){return V.UnexpectedResponseException}}),Object.defineProperty(C,"Util",{enumerable:!0,get:function(){return V.Util}}),Object.defineProperty(C,"VerbosityLevel",{enumerable:!0,get:function(){return V.VerbosityLevel}}),Object.defineProperty(C,"XfaLayer",{enumerable:!0,get:function(){return re.XfaLayer}}),Object.defineProperty(C,"addLinkAttributes",{enumerable:!0,get:function(){return $.addLinkAttributes}}),Object.defineProperty(C,"build",{enumerable:!0,get:function(){return F.build}}),Object.defineProperty(C,"createObjectURL",{enumerable:!0,get:function(){return V.createObjectURL}}),Object.defineProperty(C,"createPromiseCapability",{enumerable:!0,get:function(){return V.createPromiseCapability}}),Object.defineProperty(C,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return V.createValidAbsoluteUrl}}),Object.defineProperty(C,"getDocument",{enumerable:!0,get:function(){return F.getDocument}}),Object.defineProperty(C,"getFilenameFromUrl",{enumerable:!0,get:function(){return $.getFilenameFromUrl}}),Object.defineProperty(C,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return $.getPdfFilenameFromUrl}}),Object.defineProperty(C,"getXfaPageViewport",{enumerable:!0,get:function(){return $.getXfaPageViewport}}),Object.defineProperty(C,"isPdfFile",{enumerable:!0,get:function(){return $.isPdfFile}}),Object.defineProperty(C,"loadScript",{enumerable:!0,get:function(){return $.loadScript}}),Object.defineProperty(C,"removeNullCharacters",{enumerable:!0,get:function(){return V.removeNullCharacters}}),Object.defineProperty(C,"renderTextLayer",{enumerable:!0,get:function(){return te.renderTextLayer}}),Object.defineProperty(C,"shadow",{enumerable:!0,get:function(){return V.shadow}}),Object.defineProperty(C,"version",{enumerable:!0,get:function(){return F.version}});var $=__w_pdfjs_require__(1),V=__w_pdfjs_require__(4),F=__w_pdfjs_require__(136),K=__w_pdfjs_require__(148),J=__w_pdfjs_require__(142),ee=__w_pdfjs_require__(6),te=__w_pdfjs_require__(151),ne=__w_pdfjs_require__(152),re=__w_pdfjs_require__(150);if(ee.isNodeJS){var ae=__w_pdfjs_require__(153),oe=ae.PDFNodeStream;(0,F.setPDFNetworkStreamFactory)(function(le){return new oe(le)})}else{var ie=__w_pdfjs_require__(156),se=ie.PDFNetworkStream,ce=__w_pdfjs_require__(157),ue=ce.PDFFetchStream;(0,F.setPDFNetworkStreamFactory)(function(le){return(0,$.isValidFetchUrl)(le.url)?new ue(le):new se(le)})}})(),__webpack_exports__})()})})(pdf);var pdfExports=pdf.exports,__spreadArray=globalThis&&globalThis.__spreadArray||function(C,$,V){if(V||arguments.length===2)for(var F=0,K=$.length,J;F<K;F++)(J||!(F in $))&&(J||(J=Array.prototype.slice.call($,0,F)),J[F]=$[F]);return C.concat(J||Array.prototype.slice.call($))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(C,$){var V={};return allEvents.forEach(function(F){var K=C[F];K&&($?V[F]=function(J){return K(J,$(F))}:V[F]=K)}),V}function makeCancellablePromise(C){var $=!1,V=new Promise(function(F,K){C.then(function(J){return!$&&F(J)}).catch(function(J){return!$&&K(J)})});return{promise:V,cancel:function(){$=!0}}}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(C,$){return C.concat($)},[]).filter(function(C){return typeof C=="string"}).join(" ")}var isProduction$1=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(C,$){if(!C){if(isProduction$1)throw new Error(prefix);var V=typeof $=="function"?$():$,F=V?"".concat(prefix,": ").concat(V):prefix;throw new Error(F)}}var isProduction=process.env.NODE_ENV==="production";function warning(C,$){if(!isProduction){if(C)return;var V="Warning: "+$;typeof console!="undefined"&&console.warn(V);try{throw Error(V)}catch(F){}}}const DocumentContext=React.createContext(null);function Message(C){var $=C.children,V=C.type;return React.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(V)},$)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=function(){function C(){_classCallCheck(this,C),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass(C,[{key:"setDocument",value:function(V){this.pdfDocument=V}},{key:"setViewer",value:function(V){this.pdfViewer=V}},{key:"setExternalLinkRel",value:function(V){this.externalLinkRel=V}},{key:"setExternalLinkTarget",value:function(V){this.externalLinkTarget=V}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(V){this.pdfViewer.currentPageNumber=V}},{key:"rotation",get:function(){return 0},set:function(V){}},{key:"goToDestination",value:function(V){var F=this;new Promise(function(K){typeof V=="string"?F.pdfDocument.getDestination(V).then(K):Array.isArray(V)?K(V):V.then(K)}).then(function(K){invariant(Array.isArray(K),'"'.concat(K,'" is not a valid destination array.'));var J=K[0];new Promise(function(ee){J instanceof Object?F.pdfDocument.getPageIndex(J).then(function(te){ee(te)}).catch(function(){invariant(!1,'"'.concat(J,'" is not a valid page reference.'))}):typeof J=="number"?ee(J):invariant(!1,'"'.concat(J,'" is not a valid destination reference.'))}).then(function(ee){var te=ee+1;invariant(te>=1&&te<=F.pagesCount,'"'.concat(te,'" is not a valid page number.')),F.pdfViewer.scrollPageIntoView({dest:V,pageIndex:ee,pageNumber:te})})})}},{key:"navigateTo",value:function(V){this.goToDestination(V)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(V,F,K){V.href=F,V.rel=this.externalLinkRel||DEFAULT_LINK_REL,V.target=K?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),C}(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window!="undefined",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(C){return typeof C!="undefined"}function isProvided(C){return isDefined(C)&&C!==null}function isString(C){return typeof C=="string"}function isArrayBuffer(C){return C instanceof ArrayBuffer}function isBlob(C){return invariant(isBrowser,"isBlob can only be used in a browser environment"),C instanceof Blob}function isFile$1(C){return invariant(isBrowser,"isFile can only be used in a browser environment"),C instanceof File}function isDataURI(C){return isString(C)&&/^data:/.test(C)}function dataURItoByteString(C){invariant(isDataURI(C),"Invalid data URI.");var $=C.split(","),V=_slicedToArray($,2),F=V[0],K=V[1],J=F.split(";");return J.indexOf("base64")!==-1?atob(K):unescape(K)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}var allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning(!isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function displayWorkerWarning(){warning(!isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function cancelRunningTask(C){C&&C.cancel&&C.cancel()}function makePageCallback(C,$){return Object.defineProperty(C,"width",{get:function(){return this.view[2]*$},configurable:!0}),Object.defineProperty(C,"height",{get:function(){return this.view[3]*$},configurable:!0}),Object.defineProperty(C,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(C,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),C}function isCancelException(C){return C.name==="RenderingCancelledException"}function loadFromFile(C){return new Promise(function($,V){var F=new FileReader;return F.onload=function(){return $(new Uint8Array(F.result))},F.onerror=function(K){switch(K.target.error.code){case K.target.error.NOT_FOUND_ERR:return V(new Error("Error while reading a file: File not found."));case K.target.error.NOT_READABLE_ERR:return V(new Error("Error while reading a file: File not readable."));case K.target.error.SECURITY_ERR:return V(new Error("Error while reading a file: Security error."));case K.target.error.ABORT_ERR:return V(new Error("Error while reading a file: Aborted."));default:return V(new Error("Error while reading a file."))}},F.readAsArrayBuffer(C),null})}var eventProps=function(){var C={};return[].concat(_toConsumableArray(mouseEvents),_toConsumableArray(touchEvents),_toConsumableArray(keyboardEvents)).forEach(function($){C[$]=PropTypes.func}),C}(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File!="undefined"&&fileTypes.push(PropTypes.instanceOf(File)),typeof Blob!="undefined"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function C($,V,F){var K=$[V],J=$.pageNumber,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<0)return new Error("Expected `".concat(V,"` to be greater or equal to 0."));var te=ee.numPages;if(K+1>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te-1,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPageNumber=function C($,V,F){var K=$[V],J=$.pageIndex,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<1)return new Error("Expected `".concat(V,"` to be greater or equal to 1."));var te=ee.numPages;if(K>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$2(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$2(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$2(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper$6(C){var $=_isNativeReflectConstruct$6();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document$1=function(C){_inherits(V,C);var $=_createSuper$6(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{pdf:null}),_defineProperty(_assertThisInitialized(F),"viewer",{scrollPageIntoView:function(ne){var re=ne.dest,ae=ne.pageIndex,oe=ne.pageNumber,ie=F.props.onItemClick;if(ie){ie({dest:re,pageIndex:ae,pageNumber:oe});return}var se=F.pages[ae];if(se){se.scrollIntoView();return}warning(!1,"An internal link leading to page ".concat(oe," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),_defineProperty(_assertThisInitialized(F),"linkService",new LinkService),_defineProperty(_assertThisInitialized(F),"loadDocument",function(){cancelRunningTask(F.runningTask),F.loadingTask&&F.loadingTask.destroy();var te=makeCancellablePromise(F.findDocumentSource());F.runningTask=te,te.promise.then(function(ne){if(F.onSourceSuccess(),!!ne){F.setState(function(ce){return ce.pdf?{pdf:null}:null});var re=F.props,ae=re.options,oe=re.onLoadProgress,ie=re.onPassword;F.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},ne),ae)),F.loadingTask.onPassword=ie,oe&&(F.loadingTask.onProgress=oe);var se=makeCancellablePromise(F.loadingTask.promise);F.runningTask=se,se.promise.then(function(ce){F.setState(function(ue){return ue.pdf&&ue.pdf.fingerprint===ce.fingerprint?null:{pdf:ce}},F.onLoadSuccess)}).catch(function(ce){F.onLoadError(ce)})}}).catch(function(ne){F.onSourceError(ne)})}),_defineProperty(_assertThisInitialized(F),"setupLinkService",function(){var te=F.props,ne=te.externalLinkRel,re=te.externalLinkTarget;F.linkService.setViewer(F.viewer),F.linkService.setExternalLinkRel(ne),F.linkService.setExternalLinkTarget(re)}),_defineProperty(_assertThisInitialized(F),"onSourceSuccess",function(){var te=F.props.onSourceSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onSourceError",function(te){warning(te);var ne=F.props.onSourceError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onLoadSuccess,ne=F.state.pdf;te&&te(ne),F.pages=new Array(ne.numPages),F.linkService.setDocument(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({pdf:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"findDocumentSource",function(){return new Promise(function(te){var ne=F.props.file;if(ne||te(null),typeof ne=="string"){if(isDataURI(ne)){var re=dataURItoByteString(ne);te({data:re})}displayCORSWarning(),te({url:ne})}if(ne instanceof PDFDataRangeTransport&&te({range:ne}),isArrayBuffer(ne)&&te({data:ne}),isBrowser&&(isBlob(ne)||isFile$1(ne))){loadFromFile(ne).then(function(se){te({data:se})});return}if(invariant(_typeof(ne)==="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(ne.url||ne.data||ne.range,"Invalid parameter object: need either .data, .range or .url"),typeof ne.url=="string"){if(isDataURI(ne.url)){var ae=ne.url,oe=_objectWithoutProperties(ne,_excluded),ie=dataURItoByteString(ae);te(_objectSpread$2({data:ie},oe))}displayCORSWarning()}te(ne)})}),_defineProperty(_assertThisInitialized(F),"registerPage",function(te,ne){F.pages[te]=ne}),_defineProperty(_assertThisInitialized(F),"unregisterPage",function(te){delete F.pages[te]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(K){var J=this.props.file;J!==K.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var K=this.linkService,J=this.registerPage,ee=this.unregisterPage,te=this.props,ne=te.imageResourcesPath,re=te.renderMode,ae=te.rotate,oe=this.state.pdf;return{imageResourcesPath:ne,linkService:K,pdf:oe,registerPage:J,renderMode:re,rotate:ae,unregisterPage:ee}}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){return K.state.pdf})}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(DocumentContext.Provider,{value:this.childContext},K)}},{key:"renderContent",value:function(){var K=this.props.file,J=this.state.pdf;if(!K){var ee=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof ee=="function"?ee():ee)}if(J===null){var te=this.props.loading;return React.createElement(Message,{type:"loading"},typeof te=="function"?te():te)}if(J===!1){var ne=this.props.error;return React.createElement(Message,{type:"error"},typeof ne=="function"?ne():ne)}return this.renderChildren()}},{key:"render",value:function(){var K=this.props,J=K.className,ee=K.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Document",J),ref:ee},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);Document$1.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function C($,V){switch(V){case PasswordResponses.NEED_PASSWORD:{var F=prompt("Enter the password to open this PDF file.");$(F);break}case PasswordResponses.INCORRECT_PASSWORD:{var K=prompt("Invalid password. Please try again.");$(K);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document$1.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$1(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$1(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$1(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);function mergeRefs(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];var V=C.filter(Boolean);if(V.length<=1){var F=V[0];return F||null}return function(J){V.forEach(function(ee){typeof ee=="function"?ee(J):ee&&(ee.current=J)})}}const PageContext=React.createContext(null);function _createSuper$5(C){var $=_isNativeReflectConstruct$5();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=function(C){_inherits(V,C);var $=_createSuper$5(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"canvasElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"drawPageOnCanvas",function(){var te=F.canvasElement.current;if(!te)return null;var ne=_assertThisInitialized(F),re=ne.renderViewport,ae=ne.viewport,oe=F.props,ie=oe.canvasBackground,se=oe.page,ce=oe.renderForms;te.width=re.width,te.height=re.height,te.style.width="".concat(Math.floor(ae.width),"px"),te.style.height="".concat(Math.floor(ae.height),"px");var ue={annotationMode:ce?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return te.getContext("2d")},viewport:re};return ie&&(ue.background=ie),F.cancelRenderingTask(),F.renderer=se.render(ue),F.renderer.promise.then(F.onRenderSuccess).catch(F.onRenderError)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.canvasBackground,te=J.page,ne=J.renderForms;(ee!==K.canvasBackground||ne!==K.renderForms)&&(te.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var K=this.canvasElement.current;K&&(K.width=0,K.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale,ne=getPixelRatio();return J.getViewport({scale:te*ne,rotation:ee})}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this.props.canvasRef;return React.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(K,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),V}(React.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageCanvasInternal,_extends({},$,C))})}function _createSuper$4(C){var $=_isNativeReflectConstruct$4();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PageSVGInternal=function(C){_inherits(V,C);var $=_createSuper$4(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{svg:null}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"renderSVG",function(){var te=F.props.page;return F.renderer=te.getOperatorList(),F.renderer.then(function(ne){var re=new pdfExports.SVGGraphics(te.commonObjs,te.objs);F.renderer=re.getSVG(ne,F.viewport).then(function(ae){F.setState({svg:ae},F.onRenderSuccess)}).catch(F.onRenderError)}).catch(F.onRenderError)}),_defineProperty(_assertThisInitialized(F),"drawPageOnContainer",function(te){var ne=F.state.svg;if(!(!te||!ne)){te.firstElementChild||te.appendChild(ne);var re=F.viewport,ae=re.width,oe=re.height;ne.setAttribute("width",ae),ne.setAttribute("height",oe)}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this,J=this.viewport,ee=J.width,te=J.height;return React.createElement("div",{className:"react-pdf__Page__svg",ref:function(re){return K.drawPageOnContainer(re)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:ee,height:te,userSelect:"none"}})}}]),V}(React.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageSVGInternal,_extends({},$,C))})}function _createSuper$3(C){var $=_isNativeReflectConstruct$3();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerItemInternal=function(C){_inherits(V,C);var $=_createSuper$3(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"itemElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"getElementWidth",function(te){var ne=_assertThisInitialized(F),re=ne.sideways;return te.getBoundingClientRect()[re?"height":"width"]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"sideways",get:function(){var K=this.rotate;return K%180!==0}},{key:"defaultSideways",get:function(){var K=this.unrotatedViewport.rotation;return K%180!==0}},{key:"fontSize",get:function(){var K=this.props.transform,J=this.defaultSideways,ee=_slicedToArray(K,2),te=ee[0],ne=ee[1];return J?ne:te}},{key:"top",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[2],re=te[3],ae=te[4],oe=te[5],ie=_slicedToArray(J.viewBox,4),se=ie[1],ce=ie[3];return ee?ae+ne+se:ce-(oe+re)}},{key:"left",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[4],re=te[5],ae=_slicedToArray(J.viewBox,1),oe=ae[0];return ee?re-oe:ne-oe}},{key:"getFontData",value:function(K){var J=this.props.page;return new Promise(function(ee){J.commonObjs.get(K,ee)})}},{key:"alignTextItem",value:function(){var K=this,J=this.itemElement.current;if(J){J.style.transform="";var ee=this.props,te=ee.fontName,ne=ee.scale,re=ee.width;J.style.fontFamily="".concat(te,", sans-serif"),this.getFontData(te).then(function(ae){var oe=ae?ae.fallbackName:"sans-serif";J.style.fontFamily="".concat(te,", ").concat(oe);var ie=re*ne,se=K.getElementWidth(J),ce="scaleX(".concat(ie/se,")"),ue=ae?ae.ascent:0;ue&&(ce+=" translateY(".concat((1-ue)*100,"%)")),J.style.transform=ce,J.style.WebkitTransform=ce})}}},{key:"render",value:function(){var K=this.fontSize,J=this.top,ee=this.left,te=this.props,ne=te.customTextRenderer,re=te.scale,ae=te.str;return React.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(K*re,"px"),position:"absolute",top:"".concat(J*re,"px"),left:"".concat(ee*re,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},ne?ne(this.props):ae)}}]),V}(React.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerItemInternal,_extends({},$,C))})}function _createSuper$2(C){var $=_isNativeReflectConstruct$2();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerInternal=function(C){_inherits(V,C);var $=_createSuper$2(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{textItems:null}),_defineProperty(_assertThisInitialized(F),"loadTextItems",function(){var te=F.props.page,ne=makeCancellablePromise(te.getTextContent());F.runningTask=ne,ne.promise.then(function(re){var ae=re.items;F.setState({textItems:ae},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetTextSuccess,ne=F.state.textItems;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({textItems:!1}),warning(te);var ne=F.props.onGetTextError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page text content, but no page was specified."),this.loadTextItems()}},{key:"componentDidUpdate",value:function(K){var J=this.props.page;K.page&&J!==K.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"renderTextItems",value:function(){var K=this.state.textItems;return K?K.map(function(J,ee){return React.createElement(TextLayerItem,_extends({key:ee,itemIndex:ee},J))}):null}},{key:"render",value:function(){var K=this.unrotatedViewport,J=this.rotate;return React.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(K.width,"px"),height:"".concat(K.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),V}(React.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerInternal,_extends({},$,C))})}function _createSuper$1(C){var $=_isNativeReflectConstruct$1();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var AnnotationLayerInternal=function(C){_inherits(V,C);var $=_createSuper$1(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{annotations:null}),_defineProperty(_assertThisInitialized(F),"layerElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"loadAnnotations",function(){var te=F.props.page,ne=makeCancellablePromise(te.getAnnotations());F.runningTask=ne,ne.promise.then(function(re){F.setState({annotations:re},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetAnnotationsSuccess,ne=F.state.annotations;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({annotations:!1}),warning(te);var ne=F.props.onGetAnnotationsError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){var te=F.props.onRenderAnnotationLayerSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){warning(te);var ne=F.props.onRenderAnnotationLayerError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page annotations, but no page was specified."),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.page,te=J.renderForms;(K.page&&ee!==K.page||te!==K.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"renderAnnotationLayer",value:function(){var K=this.state.annotations;if(K){var J=this.props,ee=J.imageResourcesPath,te=J.linkService,ne=J.page,re=J.renderForms,ae=this.viewport.clone({dontFlip:!0}),oe={annotations:K,div:this.layerElement.current,imageResourcesPath:ee,linkService:te,page:ne,renderForms:re,viewport:ae};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(oe),this.onRenderSuccess()}catch(ie){this.onRenderError(ie)}}}},{key:"render",value:function(){return React.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),V}(React.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function C($){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageContext.Consumer,null,function(F){return React.createElement(AnnotationLayerInternal,_extends({},V,F,$))})})};function ownKeys(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper(C){var $=_isNativeReflectConstruct();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var defaultScale=1,PageInternal=function(C){_inherits(V,C);var $=_createSuper(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{page:null}),_defineProperty(_assertThisInitialized(F),"pageElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props,ne=te.onLoadSuccess,re=te.registerPage,ae=F.state.page;ne&&ne(makePageCallback(ae,F.scale)),re&&re(F.pageIndex,F.pageElement.current)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({page:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"loadPage",function(){var te=F.props.pdf,ne=F.getPageNumber();if(ne){F.setState(function(ae){return ae.page?{page:null}:null});var re=makeCancellablePromise(te.getPage(ne));F.runningTask=re,re.promise.then(function(ae){F.setState({page:ae},F.onLoadSuccess)}).catch(function(ae){F.onLoadError(ae)})}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.pdf;invariant(K,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(K){var J=this.props.pdf;if(K.pdf&&J!==K.pdf||this.getPageNumber()!==this.getPageNumber(K)){var ee=this.props.unregisterPage;ee&&ee(this.getPageIndex(K)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var K=this.props.unregisterPage;K&&K(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var K=this.state.page;if(!K)return{};var J=this.props,ee=J.canvasBackground,te=J.customTextRenderer,ne=J.onGetAnnotationsError,re=J.onGetAnnotationsSuccess,ae=J.onGetTextError,oe=J.onGetTextSuccess,ie=J.onRenderAnnotationLayerError,se=J.onRenderAnnotationLayerSuccess,ce=J.onRenderError,ue=J.onRenderSuccess,le=J.renderForms,ve=J.renderInteractiveForms;return{canvasBackground:ee,customTextRenderer:te,onGetAnnotationsError:ne,onGetAnnotationsSuccess:re,onGetTextError:ae,onGetTextSuccess:oe,onRenderAnnotationLayerError:ie,onRenderAnnotationLayerSuccess:se,onRenderError:ce,onRenderSuccess:ue,page:K,renderForms:le!=null?le:ve,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber-1:isProvided(K.pageIndex)?K.pageIndex:null}},{key:"getPageNumber",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber:isProvided(K.pageIndex)?K.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var K=this.props.rotate;if(isProvided(K))return K;var J=this.state.page;return J?J.rotate:null}},{key:"scale",get:function(){var K=this.state.page;if(!K)return null;var J=this.props,ee=J.scale,te=J.width,ne=J.height,re=this.rotate,ae=1,oe=ee===null?defaultScale:ee;if(te||ne){var ie=K.getViewport({scale:1,rotation:re});ae=te?te/ie.width:ne/ie.height}return oe*ae}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){var J=K.state.page;return J&&makePageCallback(J,K.scale)})}},{key:"pageKey",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var K=this.props,J=K.canvasRef,ee=K.renderMode;switch(ee){case"none":return null;case"svg":return React.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return React.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:J})}}},{key:"renderTextLayer",value:function(){var K=this.props.renderTextLayer;return K?React.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var K=this.props.renderAnnotationLayer;return K?React.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),K)}},{key:"renderContent",value:function(){var K=this.pageNumber,J=this.props.pdf,ee=this.state.page;if(!K){var te=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof te=="function"?te():te)}if(J===null||ee===null){var ne=this.props.loading;return React.createElement(Message,{type:"loading"},typeof ne=="function"?ne():ne)}if(J===!1||ee===!1){var re=this.props.error;return React.createElement(Message,{type:"error"},typeof re=="function"?re():re)}return this.renderChildren()}},{key:"render",value:function(){var K=this.pageNumber,J=this.props,ee=J.className,te=J.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Page",ee),"data-page-number":K,ref:mergeRefs(te,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(C,$){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageInternal,_extends({ref:$},V,C))})}const Page$1=React.forwardRef(Page);displayWorkerWarning(),pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";const container$5="_container_j5pfu_1",resumeChoiceOptionLabel="_resumeChoiceOptionLabel_j5pfu_5",resumeChoiceOptionLabelChecked="_resumeChoiceOptionLabelChecked_j5pfu_16",resumeChoiceOptionLabelContent="_resumeChoiceOptionLabelContent_j5pfu_27",resumeChoiceOptionLabelName="_resumeChoiceOptionLabelName_j5pfu_31",resumeChoiceOptionLabelModifiedAt="_resumeChoiceOptionLabelModifiedAt_j5pfu_37",resumeChoiceOptionLabelCard="_resumeChoiceOptionLabelCard_j5pfu_42",resumeChoiceOptionLabelCardHeader="_resumeChoiceOptionLabelCardHeader_j5pfu_46",resumeChoiceOptionLabelEditButton="_resumeChoiceOptionLabelEditButton_j5pfu_50",resumeChoiceOptionLabelImprovementsList="_resumeChoiceOptionLabelImprovementsList_j5pfu_54",resumePreviewContainer="_resumePreviewContainer_j5pfu_59",fitmentScoreTitle="_fitmentScoreTitle_j5pfu_69",styles$o={container:container$5,resumeChoiceOptionLabel,resumeChoiceOptionLabelChecked,resumeChoiceOptionLabelContent,resumeChoiceOptionLabelName,resumeChoiceOptionLabelModifiedAt,resumeChoiceOptionLabelCard,resumeChoiceOptionLabelCardHeader,resumeChoiceOptionLabelEditButton,resumeChoiceOptionLabelImprovementsList,resumePreviewContainer,fitmentScoreTitle};function FitmentScore({score:C}){let $={"0%":"#FC2119","60%":"#FF9C40"},V="#FFD5C0";return Number(C)>=60&&($={"0%":"#FC8019","80%":"#FFD284"},V="#FC910033"),Number(C)>=80&&($={"0%":"#03522D","100%":"#22C477"},V="#1A845233"),isNullOrUndefined(C)?null:React.createElement(Flex$1,{vertical:!0,gap:4,className:styles$o.fitmentScore},React.createElement(Typography$1.Text,{className:styles$o.fitmentScoreTitle},"Resume Fit Score:"),React.createElement(Progress$1,{size:["default",12],percent:C,className:styles$o.fitmentScoreProgress,strokeColor:$,trailColor:V}))}function BlockerPoints({value:C}){var ge,pe;const $=reactRedux.useDispatch(),[V,F]=React.useState(!0),{onEditResume:K,jobProfileId:J}=useApplicationFormContext(),{resumeReviewData:ee,fitmentScore:te}=reactRedux.useSelector(de=>de.scalantCareerHub.resumeFitment)||{},{analytics:ne}=useJobPreview(),{resume_details:re}=C||{},{id:ae,name:oe}=re||{},ie=getBlockerPointsChecklist(ee==null?void 0:ee[ae]),se=(pe=(ge=te==null?void 0:te[J])==null?void 0:ge[ae])==null?void 0:pe.remarks,ce=[...se?[se]:[],...ie],ue=ce.length,le=ce.length>0,ve=()=>{ne==null||ne.click("Blocker Points - Collapse",PRODUCT_NAME),F(!V)},fe=()=>{ne==null||ne.click("Blocker Points - Edit Resume",PRODUCT_NAME),K(ae),$(setActiveResume({jobProfileId:J,resumeId:ae,blockerPoints:ce,resumeName:oe})),$(setChecklistOpen({syncWithBlockerPoints:!0}))};return React.createElement(Card$1,{size:"small",rootClassName:styles$o.resumeChoiceOptionLabelCard},React.createElement(Flex$1,{gap:8,className:styles$o.resumeChoiceOptionLabelCardHeader},le&&React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FAAD14"}),!le&&React.createElement(CheckCircleTwoTone$1,{twoToneColor:"#52c41a"}),React.createElement(Typography$1.Text,null,le?`Improvements to be made (${ue})`:"No improvements to be made"),React.createElement(Button$2,{type:"link",className:styles$o.resumeChoiceOptionLabelEditButton,onClick:fe},"Edit"),le&&React.createElement(Button$2,{type:"text",className:styles$o.resumeChoiceOptionLabelCollapseButton,onClick:ve},V?React.createElement(DownOutlined$1,null):React.createElement(UpOutlined$1,null))),!V&&React.createElement("ul",{className:styles$o.resumeChoiceOptionLabelImprovementsList},ce.map((de,me)=>React.createElement("li",{key:me},de))))}pdfExports.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfExports.version}/pdf.worker.min.js`;const MAX_RETRY_COUNT=6;function ResumeChoiceOptionLabel({value:C}){var se,ce;const{selectedResume:$,setSelectedResume:V,jobProfileId:F,fitmentCheckEnabled:K}=useApplicationFormContext(),J=reactRedux.useSelector(ue=>{var le;return(le=ue.scalantCareerHub.resumeFitment)==null?void 0:le.fitmentScore}),{resume_details:ee}=C||{},{id:te,name:ne,modified_at:re}=ee||{},ae=$===te,oe=(ce=(se=J==null?void 0:J[F])==null?void 0:se[te])==null?void 0:ce.score,ie=()=>{V(te)};return React.createElement(Radio$1,{onChange:ie,checked:ae,className:classNames(styles$o.resumeChoiceOptionLabel,{[styles$o.resumeChoiceOptionLabelChecked]:ae})},React.createElement(Flex$1,{vertical:!0,gap:12,className:styles$o.resumeChoiceOptionLabelContent},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{vertical:!0,gap:4},React.createElement(Typography$1.Text,{className:styles$o.resumeChoiceOptionLabelName},ne),React.createElement(Typography$1.Text,{className:styles$o.resumeChoiceOptionLabelModifiedAt},"Last Modified: ",toDDMMYY(re))),K&&React.createElement(FitmentScore,{score:oe})),K&&React.createElement(BlockerPoints,{value:C})))}function ResumePreview(){const[C,$]=React.useState(0),{selectedResume:V}=useApplicationFormContext(),{data:F,isFetching:K}=useGetResumeLinkQuery({resumeId:V},{skip:!V}),J=ee=>{C<MAX_RETRY_COUNT?setTimeout(()=>{$(C+1)},1e3):console.error("Error while loading pdf! ",ee.message)};return!(F!=null&&F.link)||K?React.createElement(Skeleton$1,{active:!0}):React.createElement(Document$1,{className:styles$o.resumePreview,file:F==null?void 0:F.link,loading:React.createElement(Skeleton$1,{active:!0}),onLoadError:J,error:React.createElement(Skeleton$1,{active:!0}),key:C},React.createElement(Page$1,{pageNumber:1}))}function ResumeChoiceSelect(){const{setSelectedResume:C,fitmentCheckEnabled:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useGetResumesEligibilityQuery({jobProfileId:V}),{analytics:J}=useJobPreview();return useGetFitmentQuery({jobProfileId:V},{skip:!V||!$}),React.useEffect(()=>{var te,ne;if(!F)return;const ee=(ne=(te=Object.values(F).find(re=>{var ae;return(ae=re==null?void 0:re.resume_details)==null?void 0:ae.default}))==null?void 0:te.resume_details)==null?void 0:ne.id;C(ee)},[F,C]),React.useEffect(()=>{J==null||J.view("Resume Choice Select - Render",PRODUCT_NAME)},[J]),K||!F?React.createElement(Skeleton$1,{active:!0}):React.createElement(Flex$1,{className:styles$o.container},React.createElement(Flex$1,{flex:1,vertical:!0,gap:16},Object.entries(F).map(([ee,te])=>React.createElement(ResumeChoiceOptionLabel,{key:ee,value:te}))),React.createElement(Flex$1,{className:styles$o.resumePreviewContainer,flex:1},React.createElement(ResumePreview,null)))}const container$4="_container_132pc_1",carouselContainer$1="_carouselContainer_132pc_6",dots="_dots_132pc_12",title$2="_title_132pc_40",description$2="_description_132pc_46",iconContainer$1="_iconContainer_132pc_52",pulse="_pulse_132pc_1",iconScannerLine="_iconScannerLine_132pc_64",scan="_scan_132pc_1",styles$n={container:container$4,carouselContainer:carouselContainer$1,dots,title:title$2,description:description$2,iconContainer:iconContainer$1,pulse,iconScannerLine,scan},EVALUATION_COMPLETION_TIMEOUT=6e4,TIPS=[{title:"Analysing the Right Resume for you to Apply!",description:"We’re preparing a fitment score and instant insights to know which resume works best for this application"},{title:"Preparing quick steps to Strengthen your Resume!",description:"We’re also figuring out suggestions to improve your resume with final touch ups at lightning speed"},{title:"Your Analysis will be Ready in just a Few Seconds!",description:"Fix key gaps we identify and boost your chances of getting noticed by top companies"}];function ResumeFitmentCheck(){reactRedux.useDispatch();const{jobProfileId:C,setStepName:$}=useApplicationFormContext(),{isError:V,data:F}=useGetFitmentQuery({jobProfileId:C}),{data:K}=useGetResumesEligibilityQuery({jobProfileId:C}),{fitmentScore:J}=reactRedux.useSelector(ee=>ee.scalantCareerHub.resumeFitment)||{};return React.useEffect(()=>{const ee=Object.keys(K||{});ee.length>0&&Object.keys((J==null?void 0:J[C])||{}).length===ee.length&&$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},[J,C,K,$]),React.useEffect(()=>{const ee=setTimeout(()=>{$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},EVALUATION_COMPLETION_TIMEOUT);return()=>clearTimeout(ee)},[$]),React.useEffect(()=>{V&&(message$1.error("Failed to evaluate job fitment"),$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT))},[V,$]),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$n.container,justify:"center",align:"center"},React.createElement("div",{className:styles$n.iconContainer},React.createElement("div",{className:styles$n.iconScannerLine})),React.createElement("div",{className:styles$n.carouselContainer},React.createElement(Carousel$1,{autoplay:!0,autoplaySpeed:1e4,dots:{className:styles$n.dots},effect:"fade",className:styles$n.carousel,adaptiveHeight:!0},TIPS.map((ee,te)=>React.createElement("div",{key:te},React.createElement(Flex$1,{className:styles$n.tip,vertical:!0,gap:8,key:ee.title},React.createElement(Typography$1.Text,{className:styles$n.title,strong:!0},ee.title),React.createElement(Typography$1.Text,{className:styles$n.description},ee.description)))))))}const container$3="_container_hsd3q_1",carouselContainer="_carouselContainer_hsd3q_6",title$1="_title_hsd3q_12",description$1="_description_hsd3q_18",iconContainer="_iconContainer_hsd3q_24",warningIcon="_warningIcon_hsd3q_35",styles$m={container:container$3,carouselContainer,title:title$1,description:description$1,iconContainer,warningIcon};function ResumeFitmentCheckError(){return React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$m.container,justify:"center",align:"center"},React.createElement("div",{className:styles$m.iconContainer},React.createElement(WarningFilled$1,{className:styles$m.warningIcon})),React.createElement("div",{className:styles$m.carouselContainer},React.createElement(Flex$1,{className:styles$m.tip,vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$m.title,strong:!0},"Oops, Your Session has Timed Out!"),React.createElement(Typography$1.Text,{className:styles$m.description},"We're facing some technical difficulties. Please refresh to continue, or go ahead without checking your Resume scores"))))}const container$2="_container_1pyap_1",footer="_footer_1pyap_10",text="_text_1pyap_14",heading$1="_heading_1pyap_18",checkbox="_checkbox_1pyap_24",styles$l={container:container$2,footer,text,heading:heading$1,checkbox},NOTIFICATION_KEY="resume-fitment-checklist",MAX_CHECKLIST_ITEMS=5,Description=()=>{const{activeResumeChecklist:C}=reactRedux.useSelector($=>$.scalantCareerHub.resumeFitment)||{};return React.createElement(Flex$1,{vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$l.text},"Please update the remaining sections as per the feedback to boost hiring chances"),React.createElement(Typography$1.Text,{strong:!0,className:styles$l.heading},"Improvements to be made"),C.slice(0,MAX_CHECKLIST_ITEMS).map(($,V)=>React.createElement(Checkbox$1,{className:styles$l.checkbox,key:V},React.createElement(Typography$1.Text,{className:styles$l.text,key:V},$))))},Footer=({closeNotification:C})=>React.createElement(Flex$1,{justify:"space-between",className:styles$l.footer},React.createElement(Flex$1,{gap:4,align:"center"},React.createElement(CheckCircleFilled$1,{style:{color:"#20A164"}}),React.createElement(Typography$1.Text,{className:styles$l.text},"When your resume is ready")),React.createElement(Button$2,{type:"primary",onClick:C},"Proceed to Apply"));function ResumeFitmentChecklist(){const C=reactRedux.useDispatch(),[$,V]=notification$1.useNotification(),{activeResumeChecklist:F,activeResumeName:K,isChecklistOpen:J}=reactRedux.useSelector(se=>se.scalantCareerHub.resumeFitment)||{},{setActiveApplicationId:ee,jobId:te,analytics:ne,onCloseResumeBuilder:re}=useJobPreview(),ae=React.useCallback(()=>{$.destroy(NOTIFICATION_KEY),ee(te),C(setChecklistOpen({isOpen:!1})),ne==null||ne.click("Resume Fitment Checklist - Close",PRODUCT_NAME)},[ne,C,te,ee,$]),oe=React.useCallback(()=>{ae(),re(),ne==null||ne.click("Resume Fitment Checklist - Proceed to Apply",PRODUCT_NAME)},[ne,ae,re]),ie=React.useCallback(()=>{!K||!(F!=null&&F.length)||($.warning({key:NOTIFICATION_KEY,message:K,placement:"bottomRight",description:React.createElement(Description,null),onClose:ae,closeIcon:null,duration:null,btn:React.createElement(Footer,{closeNotification:oe}),className:styles$l.container}),ne==null||ne.click("Resume Fitment Checklist - Open",PRODUCT_NAME))},[K,F,$,ae,oe,ne]);return React.useEffect(()=>{J?ie():ae()},[J,ie,ae]),V}const banner="_banner_1jh00_1",icon="_icon_1jh00_7",styles$k={banner,icon};function BoostInterviewChanceBanner({onClose:C}){const{analytics:$,setActiveTab:V,jobId:F}=useJobPreview(),{stepName:K}=useApplicationFormContext(),{updateTab:J}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),[ee]=useLazyGetJobPreviewQuery(),te=()=>er(this,null,function*(){K===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(jobsServiceUtil.invalidateTags(["PipelineJobs","RelevantJobs","Jobs"]),J(TAG_TO_TAB_MAPPING.applied),ee(F)),V(JOB_BODY_TABS.REQUIREMENTS.key),C==null||C(),$==null||$.click("Boost Interview Chance Banner - Complete Tasks",PRODUCT_NAME)});return React.createElement(ActionBanner,{icon:React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FA541C",className:styles$k.icon}),title:"Boost your Interview Chances by 3x",description:"Take the next steps now to increase your chances of cracking the interview post shortlisting",buttonText:"Complete Tasks",buttonIcon:React.createElement(EditOutlined$1,null),className:styles$k.banner,onClick:te})}const screeningCallService=careerHubApi.injectEndpoints({endpoints:C=>({issueScreeningCall:C.mutation({query:()=>({url:"/api/v3/screening_calls/issue",method:"POST"})})})}),{useIssueScreeningCallMutation}=screeningCallService,screeningCallBanner="_screeningCallBanner_1ltmt_1",screeningCallIcon="_screeningCallIcon_1ltmt_7",screeningCallButtonIcon="_screeningCallButtonIcon_1ltmt_12",styles$j={screeningCallBanner,screeningCallIcon,screeningCallButtonIcon},ScreeningCallBanner=({forceShow:C=!1})=>{var se;const $=reactRedux.useSelector(ce=>ce.scalantCareerHub.dashboard.userProfileData),V=(se=$==null?void 0:$.hasCompletedScreeningCall)!=null?se:!1,{analytics:F,jobData:K,currentTab:J}=useJobPreview(),{applicationStatus:ee,jobProfileStatus:te}=K||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=te!==JOB_PROFILE_STATUS$1.active&&ee===APPLICATION_STATUS_MAP.Draft,[ae,{isLoading:oe}]=useIssueScreeningCallMutation(),ie=React.useCallback(()=>er(this,null,function*(){var ue;const ce=yield ae();(ue=ce==null?void 0:ce.data)!=null&&ue.url?globalThis.open(ce.data.url,"_blank"):message$1.error("Failed to initiate screening call. Please try again."),F==null||F.click("Screening Call - Take Call",PRODUCT_NAME)}),[F,ae]);return V||re||!C&&(J!==TAG_TO_TAB_MAPPING.applied||ne)?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.airplay,className:styles$j.screeningCallIcon}),title:"Complete your 5-minute Screening Call now",description:"Verify your details with a quick screening call and become a priority applicant for us",buttonText:"Take Call",buttonIcon:React.createElement(PhoneOutlined$1,{className:styles$j.screeningCallButtonIcon}),className:styles$j.screeningCallBanner,onClick:ie,isLoading:oe})},container$1="_container_16lhm_1",likeBadge="_likeBadge_16lhm_12",description="_description_16lhm_18",styles$i={container:container$1,likeBadge,description},SuccessScreen=({onClose:C})=>{const{isEligibleForSmartApply:$}=useJobPreview();return React.createElement(Flex$1,{vertical:!0,className:styles$i.container},React.createElement("img",{src:ICONS.likeBadge,alt:"like-badge",className:styles$i.likeBadge}),React.createElement(Typography$1.Title,{level:3},"Application Submitted successfully!"),React.createElement(Typography$1.Text,{className:styles$i.description},"Your job application has now been received by the team, you can track your status within the job details itself"),!$&&React.createElement(ScreeningCallBanner,{forceShow:!0}),$&&React.createElement(BoostInterviewChanceBanner,{onClose:C}))};function FormStep({onClose:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationForm,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK:return React.createElement(ResumeFitmentCheck,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK_ERROR:return React.createElement(ResumeFitmentCheckError,null);case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelect,null);case APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED:return React.createElement(SuccessScreen,{onClose:C});default:return null}}function FormContainer({onClose:C,currentTab:$,jobProfileId:V,utmId:F,utmMedium:K,utmSource:J,onUploadFile:ee,onEditResume:te,onAddResume:ne,fitmentCheckEnabled:re}){const[ae,oe]=React.useState(),{isEligibleForSmartApply:ie}=useJobPreview(),{data:se,isLoading:ce}=useCreateApplication({jobProfileId:V,utmMedium:K,utmSource:J,currentTab:$,utmId:F,isEligibleForSmartApply:ie}),{applicationId:ue,status:le}=se||{},ve=()=>{C(),oe(!1)};return React.useEffect(()=>{oe(!!V&&!!ue&&!!le)},[ue,V,le]),React.createElement(ApplicationFormProvider,{onUploadFile:ee,stepName:le,jobProfileId:V,applicationId:ue,onEditResume:te,onAddResume:ne,fitmentCheckEnabled:re},React.createElement(Drawer$1,{closable:!1,loading:ce,open:ae,placement:"bottom",height:600,title:React.createElement(FormHeader,{onClose:ve}),footer:React.createElement(Footer$1,{onCancel:ve}),zIndex:96},React.createElement(FormStep,{onClose:ve})),React.createElement(ResumeFitmentChecklist,null))}FormContainer.propTypes={currentTab:PropTypes.string.isRequired,jobProfileId:PropTypes.number.isRequired,utmId:PropTypes.string,utmMedium:PropTypes.string,utmSource:PropTypes.string};const JobApplicationForm=({currentTab:C,onUploadFile:$,onEditResume:V,onAddResume:F,fitmentCheckEnabled:K})=>{const{activeApplicationId:J,setActiveApplicationId:ee}=useJobPreview(),te=()=>{ee(null)};return J?React.createElement(FormContainer,{onUploadFile:$,jobProfileId:J,onClose:te,currentTab:C,onEditResume:V,onAddResume:F,fitmentCheckEnabled:K}):null},container="_container_fi17i_1",actionAlert="_actionAlert_fi17i_14",ineligible="_ineligible_fi17i_24",stepsToApply="_stepsToApply_fi17i_29",missed="_missed_fi17i_34",actionAlertIcon="_actionAlertIcon_fi17i_40",actionAlertTitle="_actionAlertTitle_fi17i_51",eligible="_eligible_fi17i_57",title="_title_fi17i_62",highlightsList="_highlightsList_fi17i_69",keywordsList="_keywordsList_fi17i_77",keyword="_keyword_fi17i_77",exceptions="_exceptions_fi17i_106",exceptionsIconContainer="_exceptionsIconContainer_fi17i_112",exceptionsIcon="_exceptionsIcon_fi17i_112",exceptionsTitle="_exceptionsTitle_fi17i_121",exception="_exception_fi17i_106",exceptionItem="_exceptionItem_fi17i_129",exceptionsList="_exceptionsList_fi17i_136",styles$h={container,actionAlert,ineligible,stepsToApply,missed,actionAlertIcon,actionAlertTitle,eligible,title,highlightsList,keywordsList,keyword,exceptions,exceptionsIconContainer,exceptionsIcon,exceptionsTitle,exception,exceptionItem,exceptionsList},MissedReason=()=>React.createElement("div",{className:classNames(styles$h.actionAlert,styles$h.missed)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$h.actionAlertTitle},"We are no longer accepting applications for this role, in case you have already applied, do not worry we still have your application")),InEligibleReason=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label!=="skills"&&J.showText&&!J.isEligible),K=ADDITIONAL_ELIGIBILITY_MAPPING_INELIGIBLE_REASONS[F==null?void 0:F.label];return K?React.createElement("div",{className:classNames(styles$h.actionAlert,styles$h.ineligible)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$h.actionAlertTitle},K)):null},ActionAlert=({eligibilityStatus:C,metric:$,onScrollToEnd:V})=>{const{analytics:F,setActiveTab:K,isEligibleForSmartApply:J}=useJobPreview(),ee=J?`${$} more steps pending!`:`Eligible to apply in ${$} more steps`,te=J?"Complete these steps to improve your interview performance":"Complete these three test to become eligible to apply!",ne=J?"Check Pending":"Complete Tasks",re=()=>{K(JOB_BODY_TABS.REQUIREMENTS.key),V(),F==null||F.click("Job Highlights - Complete Tasks",PRODUCT_NAME)};return C===ELIGIBILITY_TYPES.ineligible?React.createElement(InEligibleReason,null):C===ELIGIBILITY_TYPES.steps_to_apply?React.createElement(ActionBanner,{icon:React.createElement(ClockCircleTwoTone$1,{className:styles$h.actionAlertIcon}),title:ee,description:te,buttonText:ne,buttonIcon:React.createElement(EditOutlined$1,null),className:styles$h.stepsToApply,buttonVariant:J?"text":"solid",onClick:re}):null},HighlightsList=({highlights:C})=>React.createElement(React.Fragment,null,React.createElement("div",{className:styles$h.title},"Top Reasons to Apply"),React.createElement("ul",{className:styles$h.highlightsList},C==null?void 0:C.map($=>React.createElement("li",{key:$,className:styles$h.highlight},React.createElement("span",{className:styles$h.highlightText},$))))),Keywords=({keywords:C,eligibilityStatus:$})=>React.createElement("div",{className:styles$h.keywordsList},C==null?void 0:C.map((V,F)=>React.createElement("div",{key:F,className:classNames(styles$h.keyword,styles$h[toCamelCase($)])},V))),Exceptions=({exceptionalJob:C})=>{if(!C)return null;const $=["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 React.createElement("div",{className:styles$h.exceptions},React.createElement("div",{className:styles$h.exceptionsIconContainer},React.createElement(StarTwoTone$1,{size:20,twoToneColor:"#FAAD14",className:styles$h.exceptionsIcon})),React.createElement("div",null,React.createElement("div",{className:styles$h.exceptionsTitle},"We've made an exception for you!"),React.createElement("ul",{className:styles$h.exceptionsList},$.map((V,F)=>React.createElement("li",{className:[styles$h.exception],key:F},V)))))},JobHighlights=()=>{const{jobData:C,highlights:$,eligibilityCriteria:V,currentTab:F}=useJobPreview(),K=React.useRef(null),{jobProfileStatus:J,applicationStatus:ee}=C||{},{highlights:te,keywords:ne}=$||(C==null?void 0:C.highlights)||{},{tag:re,count:ae}=determineJobTag(C,V||{}),oe=()=>{if(K.current&&typeof window!="undefined"){const se=K.current.getBoundingClientRect(),ce=se.top+window.pageYOffset,ue=se.height,le=window.innerHeight,ve=ce+ue-le/2;window.scrollTo({top:ve,behavior:"smooth"})}};return F===TAG_TO_TAB_MAPPING.applied&&J!==JOB_PROFILE_STATUS$1.active&&ee===APPLICATION_STATUS_MAP.Draft||J!==JOB_PROFILE_STATUS$1.active&&F!==TAG_TO_TAB_MAPPING.applied?React.createElement(MissedReason,null):F===TAG_TO_TAB_MAPPING.applied?null:te!=null&&te.length?React.createElement(React.Fragment,null,React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob}),React.createElement("div",{ref:K,className:classNames(styles$h.container,styles$h[re])},React.createElement(ActionAlert,{eligibilityStatus:re,metric:ae,onScrollToEnd:oe}),React.createElement(HighlightsList,{highlights:te}),React.createElement(Keywords,{keywords:ne,eligibilityStatus:re}))):React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob})},expandedJobView="_expandedJobView_1lt4c_2",loadingCard="_loadingCard_1lt4c_18",styles$g={expandedJobView,loadingCard},ExpandedJobViewContent=()=>React.createElement("div",{className:styles$g.expandedJobView},React.createElement(ExpandedJobViewHeader,null),React.createElement(JobHighlights,null),React.createElement(ScreeningCallBanner,null),React.createElement(InterviewExperiencesBanner,null),React.createElement(ExpandedJobViewBody,null)),ExpandedJobView=({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:J,currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se})=>{var fe;const{data:ce,isLoading:ue,isFetching:le,error:ve}=useGetJobPreviewQuery(K,{skip:!K||!J});return!J||!K?null:ue||le?React.createElement(Card$1,{className:`${styles$g.expandedJobView} ${styles$g.loadingCard}`},React.createElement(Spin$1,{size:"large"})):ve?React.createElement(Card$1,{className:styles$g.expandedJobView},React.createElement(Alert$1,{type:"error",message:"Failed to load job details",description:((fe=ve==null?void 0:ve.data)==null?void 0:fe.message)||(ve==null?void 0:ve.message)||"Please try again later",showIcon:!0})):ce?React.createElement(App$1,null,React.createElement(JobPreviewProvider,{analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,skip:!J,currentTab:ee,onCloseResumeBuilder:ae,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se},React.createElement(ExpandedJobViewContent,null),React.createElement(JobApplicationForm,{currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,fitmentCheckEnabled:oe}))):null},jobDetails="_jobDetails_1gavc_1",styles$f={jobDetails};function JobDetails({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,className:J,onUploadFile:ee,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se}){return React.useEffect(()=>{K&&(C==null||C.view("Job Details - Render",PRODUCT_NAME,{jobId:K,currentTab:te}))},[C,te,K]),K?React.createElement("div",{className:classNames(styles$f.jobDetails,J)},React.createElement(ExpandedJobView,{analytics:C,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:!!K,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae,fitmentCheckEnabled:oe,smartJobApplyEnabled:ie,defaultOpenedApplicationId:se})):null}JobDetails.propTypes={country:PropTypes.string,openMockInterviewModal:PropTypes.func,openResume:PropTypes.func,jobId:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),className:PropTypes.string},JobDetails.defaultProps={jobId:null,className:""};const header$1="_header_t5dcb_1",jobTitle="_jobTitle_t5dcb_6",titleContainer="_titleContainer_t5dcb_14",titleContainerExpanded="_titleContainerExpanded_t5dcb_19",titleContainerCollapsed="_titleContainerCollapsed_t5dcb_23",companyName="_companyName_t5dcb_27",postedDate="_postedDate_t5dcb_32",separatorDot="_separatorDot_t5dcb_37",actions="_actions_t5dcb_47",styles$e={header:header$1,jobTitle,titleContainer,titleContainerExpanded,titleContainerCollapsed,companyName,postedDate,separatorDot,actions},{Title:Title$1,Text:Text$3}=Typography$1,JobTitleAndCompany=({title:C,companyName:$,isExpanded:V,isInternship:F,createdAt:K})=>{const J=getDaysAgo(K);let ee="";return J!==null&&(J===0?ee="Posted Today":J===1?ee="Posted Yesterday":ee=`Posted ${J}d ago`),React.createElement(Space$1,{direction:"vertical",size:4,className:classNames(styles$e.titleContainer,{[styles$e.titleContainerExpanded]:V,[styles$e.titleContainerCollapsed]:!V})},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Title$1,{level:5,className:styles$e.jobTitle,ellipsis:{rows:1}},C),F&&React.createElement(Tag$1,{color:"purple"},"Experience Builder")),React.createElement(Text$3,{ellipsis:!0,className:styles$e.companyName},$,J!==null&&React.createElement(React.Fragment,null,React.createElement("span",{className:styles$e.separatorDot}),React.createElement("span",{className:styles$e.postedDate},ee))))};JobTitleAndCompany.propTypes={title:PropTypes.string.isRequired,companyName:PropTypes.string.isRequired,isExpanded:PropTypes.bool,isInternship:PropTypes.bool,createdAt:PropTypes.string},JobTitleAndCompany.defaultProps={isExpanded:!1};const tag="_tag_5fhgn_1",styles$d={tag},ICON_MAP={CheckCircleOutlined:CheckCircleOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1,RocketOutlined:RocketOutlined$1,InfoCircleOutlined:InfoCircleOutlined$1},PipelineJobTag=({applicationStatus:C,jobProfileStatus:$})=>{if($!==JOB_PROFILE_STATUS$1.active&&C===APPLICATION_STATUS_MAP.Draft)return React.createElement(Tag$1,{icon:React.createElement(InfoCircleOutlined$1,null),color:"volcano",className:styles$d.tag,style:{color:"#FA541C",borderColor:"#FA541C",backgroundColor:"#FFF2E8"}},"Missed");const V=APPLICATION_STATUS_JOB_TAG_MAPPING[C]||C,F=APPLICATION_STATUS_JOB_TAG_TEXT_MAPPING[C]||C,K=JOB_TAG_ICON_MAPPING[V],J=JOB_TAG_COLOR_MAPPING[V]||{};return V?React.createElement(Tag$1,{icon:K&&React.createElement(K,{style:{color:J.primary}}),color:J.primary,className:styles$d.tag,style:{color:J.primary,borderColor:J.primary,backgroundColor:J.secondary}},F):null},EligibilityTag=({jobData:C,currentTab:$,tagData:V})=>{const{applicationStatus:F,jobProfileStatus:K}=C||{};if($===TAG_TO_TAB_MAPPING.applied||Object.values(APPLIED_JOB_TABS).some(ee=>ee.key===$))return React.createElement(PipelineJobTag,{applicationStatus:F,jobProfileStatus:K});if(!V)return null;const J=ICON_MAP[V.icon];return React.createElement(Tag$1,{icon:J&&React.createElement(J,null),color:V.antdColor,className:styles$d.tag,style:V.tag==="expired"?{color:V.color,borderColor:V.color}:{}},V.text)};EligibilityTag.propTypes={jobData:PropTypes.shape({isRelevant:PropTypes.bool,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.shape({label:PropTypes.string,isEligible:PropTypes.bool,data:PropTypes.object}))})}).isRequired,currentTab:PropTypes.string},EligibilityTag.defaultProps={currentTab:"all"};const JobCardActions=({jobData:C,currentTab:$,tagData:V})=>React.createElement("div",{className:styles$e.actions},React.createElement(EligibilityTag,{jobData:C,currentTab:$,tagData:V}));JobCardActions.propTypes={jobData:PropTypes.object.isRequired,currentTab:PropTypes.string,tagData:PropTypes.object},JobCardActions.defaultProps={currentTab:"all",tagData:null};const JobCardHeader=({jobData:C,companiesList:$,currentTab:V,isExpanded:F,tagData:K,isInternship:J})=>{var te;const ee=C.companyName||C.company&&C.company[0]&&((te=$[C.company[0]])==null?void 0:te.name)||"";return React.createElement(Row$1,{gutter:[12,8],className:styles$e.header},React.createElement(Col$1,{flex:"auto"},React.createElement(Row$1,{gutter:12,align:"top",wrap:!1},React.createElement(Col$1,null,React.createElement(CompanyLogo,{logo:C.logo,company:C.company,companiesList:$,companyName:ee})),React.createElement(Col$1,{flex:"auto"},React.createElement(JobTitleAndCompany,{title:C.title,companyName:ee,isExpanded:F,isInternship:J,createdAt:C.createdAt})))),React.createElement(Flex$1,null,React.createElement(JobCardActions,{jobData:C,currentTab:V,tagData:K})))};JobCardHeader.propTypes={jobData:PropTypes.object.isRequired,companiesList:PropTypes.object,currentTab:PropTypes.string,isExpanded:PropTypes.bool},JobCardHeader.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const saveButton="_saveButton_1g9sw_1",savedButton="_savedButton_1g9sw_12",styles$c={saveButton,savedButton},SaveButton=({analytics:C,jobProfileId:$,applicationStatus:V,applicationLastUpdatedAt:F,onSave:K,disabled:J=!1})=>{const[ee,te]=React.useState(!1),ne=reactRedux.useSelector(ie=>{var se,ce,ue;return(ue=(ce=(se=ie.scalantCareerHub)==null?void 0:se.savedJobs)==null?void 0:ce.savedJobs)==null?void 0:ue[$]}),re=ne?ne.status==="Saved":V==="Saved",ae=(ne==null?void 0:ne.lastUpdatedAt)||F,oe=ie=>er(this,null,function*(){if(ie.stopPropagation(),!re){C==null||C.click("Job Card - Save",PRODUCT_NAME),te(!0);try{yield K($,"save")}catch(se){}finally{te(!1)}}});return re&&ae?React.createElement(Button$2,{type:"text",icon:React.createElement(SaveTwoTone$1,{twoToneColor:"#8c8c8c"}),onClick:oe,disabled:!0,className:styles$c.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",formatDate(ae)):React.createElement(Button$2,{type:"text",icon:React.createElement(SaveOutlined$1,{twoToneColor:"#006AFF"}),onClick:oe,disabled:J||ee,loading:ee,className:styles$c.saveButton,size:"small"},re?"Saved":"Save")};SaveButton.propTypes={analytics:PropTypes.object,jobProfileId:PropTypes.number.isRequired,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,onSave:PropTypes.func.isRequired,disabled:PropTypes.bool},SaveButton.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const body="_body_1d5d8_1",detailsRowContainer="_detailsRowContainer_1d5d8_6",detailsRow="_detailsRow_1d5d8_6",detailText="_detailText_1d5d8_22",saveButtonWrapper="_saveButtonWrapper_1d5d8_28",inActiveJobError="_inActiveJobError_1d5d8_33",inActiveJobErrorText="_inActiveJobErrorText_1d5d8_39",styles$b={body,detailsRowContainer,detailsRow,detailText,saveButtonWrapper,inActiveJobError,inActiveJobErrorText},{Text:Text$2}=Typography$1,DetailItem=({text:C})=>C?React.createElement(Text$2,{className:styles$b.detailText},C):null;DetailItem.propTypes={text:PropTypes.string};const JobDetailsRow=({analytics:C,jobData:$,cardConfig:V,currentTab:F,userCountry:K,onSave:J,selectedJobId:ee,onClick:te})=>{const{jobProfileStatus:ne,applicationStatus:re,preferredCities:ae,minExperience:oe,maxExperience:ie,minCtc:se,maxCtc:ce,openForDiscussionCtc:ue,isInternship:le,stipend:ve,preferredNoticePeriod:fe}=$,ge=formatLocation(ae),pe=ee===null&&V.isExperienceCtcAvailable?formatExperience$1(oe,ie):null,de=V.isExperienceCtcAvailable?formatCtc({minCtc:se,maxCtc:ce,openForDiscussionCtc:ue,isInternship:le,stipend:ve,userCountry:K}):null,me=ee===null&&V.isNoticePeriodAvailable?formatNoticePeriod(fe):null,ye=[ge&&{text:ge},pe&&{text:pe},de&&{text:de},me&&{text:me}].filter(Boolean),_e=F!==TAG_TO_TAB_MAPPING.applied,he=(F===TAG_TO_TAB_MAPPING.applied||Object.values(APPLIED_JOB_TABS).some(Se=>Se.key===F))&&re===APPLICATION_STATUS_MAP.Draft,be=Se=>{Se.stopPropagation(),te($.id,!0),C==null||C.click("Job Card - Complete Application",PRODUCT_NAME)};return React.createElement("div",{className:styles$b.detailsRowContainer},ye.length>0&&React.createElement(Space$1,{split:React.createElement(Divider$1,{type:"vertical"}),className:styles$b.detailsRow},ye.map((Se,Re)=>React.createElement(DetailItem,{key:Re,text:Se.text}))),React.createElement("div",{className:styles$b.saveButtonWrapper},_e&&React.createElement(SaveButton,{analytics:C,jobProfileId:$.id,applicationStatus:$.applicationStatus,applicationLastUpdatedAt:$.applicationLastUpdatedAt,onSave:J}),he&&ne===JOB_PROFILE_STATUS$1.active&&React.createElement(Button$2,{color:"primary",variant:"outlined",onClick:be},"Complete Application")))};JobDetailsRow.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,preferredCities:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,preferredNoticePeriod:PropTypes.number,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string}).isRequired,cardConfig:PropTypes.shape({isExperienceCtcAvailable:PropTypes.bool,isNoticePeriodAvailable:PropTypes.bool}).isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobDetailsRow.defaultProps={userCountry:"IN",selectedJobId:null};const JobCardBody=({analytics:C,jobData:$,cardConfig:V,currentTab:F,userCountry:K,onSave:J,selectedJobId:ee,onClick:te})=>{const{jobProfileStatus:ne,applicationStatus:re}=$||{};return React.createElement("div",{className:styles$b.body},React.createElement(JobDetailsRow,{analytics:C,jobData:$,cardConfig:V,userCountry:K,currentTab:F,onSave:J,selectedJobId:ee,onClick:te}),ne!==JOB_PROFILE_STATUS$1.active&&re===APPLICATION_STATUS_MAP.Draft&&React.createElement(Flex$1,{gap:8,className:styles$b.inActiveJobError},React.createElement(InfoCircleOutlined$1,null),React.createElement(Typography$1.Text,{className:styles$b.inActiveJobErrorText},"No longer accepting applications")))};JobCardBody.propTypes={analytics:PropTypes.object,jobData:PropTypes.object.isRequired,cardConfig:PropTypes.object.isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobCardBody.defaultProps={userCountry:"IN",selectedJobId:null};const jobCard="_jobCard_1we13_1",expired="_expired_1we13_12",active$1="_active_1we13_15",archived="_archived_1we13_28",cardContent="_cardContent_1we13_37",styles$a={jobCard,expired,active:active$1,archived,cardContent},JobCard=({analytics:C,jobData:$,isActive:V,currentTab:F,onClick:K,onSave:J,companiesList:ee,userCountry:te,className:ne,selectedJobId:re})=>{const{cardConfig:ae,shouldShowBody:oe}=useJobCardState({currentTab:F,isActive:V,jobData:$}),{eligibilityCriteria:ie,roleType:se}=$||{},ce=se==="internship",ue=determineJobTag($,ie),le=()=>{K&&K($.id),C==null||C.click("Job Card - Click",PRODUCT_NAME,{tag:ue==null?void 0:ue.text,isInternship:ce})};return React.createElement(Card$1,{className:classNames(styles$a.jobCard,{[styles$a.active]:V,[styles$a.archived]:$.applicationStatus==="Archived"},ne),onClick:le},React.createElement("div",{className:styles$a.cardContent},React.createElement(JobCardHeader,{jobData:$,companiesList:ee,currentTab:F,isExpanded:!re,tagData:ue,isInternship:ce}),oe&&React.createElement(JobCardBody,{analytics:C,jobData:$,cardConfig:ae,currentTab:F,userCountry:te,onSave:J,selectedJobId:re,onClick:K})))};JobCard.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,title:PropTypes.string.isRequired,name:PropTypes.string.isRequired,company:PropTypes.arrayOf(PropTypes.number),logo:PropTypes.string,preferredCities:PropTypes.string,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,isRelevant:PropTypes.bool,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,preferredNoticePeriod:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.object)})}).isRequired,isActive:PropTypes.bool,currentTab:PropTypes.string,onClick:PropTypes.func,onSave:PropTypes.func.isRequired,companiesList:PropTypes.object,userCountry:PropTypes.oneOf(["IN","US"]),className:PropTypes.string,selectedJobId:PropTypes.number},JobCard.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const heading="_heading_mxb02_1",spinner="_spinner_mxb02_8",alert="_alert_mxb02_14",header="_header_mxb02_18",sentinel="_sentinel_mxb02_23",loadingMore="_loadingMore_mxb02_30",jobsList="_jobsList_mxb02_39",noJobsContainer="_noJobsContainer_mxb02_46",noJobsImage="_noJobsImage_mxb02_56",noJobsHeading="_noJobsHeading_mxb02_60",jobsListContainer="_jobsListContainer_mxb02_64",styles$9={heading,spinner,alert,header,sentinel,loadingMore,jobsList,noJobsContainer,noJobsImage,noJobsHeading,jobsListContainer},{Title,Text:Text$1}=Typography$1;function JobsList({analytics:C,className:$,currentTab:V,jobs:F=[],companiesMap:K={},isLoading:J=!1,error:ee=null,isFetchingMore:te=!1,hasMore:ne=!0,onOpenApplicationForm:re,hideHeader:ae=!1}){var _e;const oe=reactRedux.useDispatch(),ie=reactRedux.useSelector(he=>{var be,Se;return((Se=(be=he.scalantCareerHub)==null?void 0:be.dashboard)==null?void 0:Se.processCounts)||{}}),se=ne!==void 0?ne:!0,[ce]=useUpdateApplicationStatusMutation(),{selectedJobId:ue,updateJobId:le,updateTab:ve}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{sentinelRef:fe}=useInfiniteScroll({hasMore:se,isLoading:J,isFetchingMore:te});React.useEffect(()=>{F&&F.length>0&&oe(initializeSavedJobs(F))},[F,oe]),React.useEffect(()=>{if(F&&F.length>0){const be=new URLSearchParams(window.location.search).get("job_ids");if(be){const Se=Number(be),Re=F.find(Ce=>Ce.id===Se||Ce.jobProfileId===Se||String(Ce.id)===be||String(Ce.jobProfileId)===be);Re&&ue!==Re.id&&le(Re.id)}}},[F,ue,le]);const ge=(he,be=!1)=>{C==null||C.click("Jobs List - Job Card Click",PRODUCT_NAME),ue===he?(le(null),oe(updateFormFilters({job_ids:null})),re&&re(null)):(le(he),re&&be&&re(he))},pe=(he,be)=>er(this,null,function*(){if(be!=="save")return;const Re=yield ce({job_profile_id:he,update_action:"save"}).unwrap();return oe(setJobSavedStatus({jobId:he,status:"Saved",lastUpdatedAt:(Re==null?void 0:Re.applicationLastUpdatedAt)||new Date().toISOString()})),Re}),de=()=>{C==null||C.click("Jobs List - Go to All Jobs",PRODUCT_NAME),ve(TAG_TO_TAB_MAPPING.all)},me=TAB_HEADINGS[V]||TAB_HEADINGS[TAG_TO_TAB_MAPPING.all],ye=()=>V===TAG_TO_TAB_MAPPING.applied?ie.applications-ie.draft||0:ie[V]||0;return J?React.createElement("div",{className:$},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$9.header},React.createElement(Title,{level:4,className:styles$9.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement(Spin$1,{size:"large",className:styles$9.spinner})):ee?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$9.header},React.createElement(Title,{level:4,className:styles$9.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$9.header},React.createElement(Alert$1,{message:"Error loading jobs",description:((_e=ee==null?void 0:ee.data)==null?void 0:_e.message)||(ee==null?void 0:ee.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:styles$9.alert}))):!F||F.length===0?React.createElement("div",{className:$},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$9.header},React.createElement(Title,{level:4,className:styles$9.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$9.noJobsContainer},React.createElement("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/464/original/3cd470a8085619f7775acfa9e3f15053ee5eb687.png?1766383387",alt:"No Jobs Found",className:styles$9.noJobsImage}),React.createElement(Title,{level:3,className:styles$9.noJobsHeading},TAB_TO_EMPTY_HEADING_MAPPING[V]||"No Suitable Roles Available at the Moment"),React.createElement(Text$1,{className:styles$9.noJobsText},TAB_TO_FALLBACK_DESCRIPTION_MAPPING[V]),V!==TAG_TO_TAB_MAPPING.all&&React.createElement(Button$2,{type:"primary",onClick:de},"Go to All Jobs ",React.createElement(RightOutlined$1,null)))):React.createElement("div",{className:classNames($,styles$9.jobsListContainer)},!ae&&React.createElement(Space$1,{direction:"vertical",className:styles$9.header},React.createElement(Title,{level:4,className:styles$9.heading},me," ",React.createElement(Tag$1,{color:"green"},ye()," Found")),React.createElement(Text$1,null,TAB_TO_DESCRIPTION_MAPPING[V])),React.createElement("div",{className:styles$9.jobsList},F.map(he=>React.createElement(JobCard,{key:he.id,jobData:he,isActive:ue===he.id,currentTab:V,analytics:C,onClick:ge,onSave:pe,companiesList:K,userCountry:"IN",selectedJobId:ue})),se&&React.createElement("div",{ref:fe,className:styles$9.sentinel},te&&React.createElement("div",{className:styles$9.loadingMore},React.createElement(Spin$1,{size:"small"}),React.createElement("span",null,"Loading more jobs...")))))}JobsList.propTypes={analytics:PropTypes.object,className:PropTypes.string,currentTab:PropTypes.string,jobs:PropTypes.arrayOf(PropTypes.object),companiesMap:PropTypes.object,isLoading:PropTypes.bool,error:PropTypes.object,isFetchingMore:PropTypes.bool,hasMore:PropTypes.bool,hideHeader:PropTypes.bool},JobsList.defaultProps={className:"",currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0,hideHeader:!1};const relevantJobsPage="_relevantJobsPage_8cpir_1",styles$8={relevantJobsPage};function RelevantJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchRelevantJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.relevant);return React.useEffect(()=>{C&&!F&&C.view("Relevant Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$8.relevantJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const allJobsPage="_allJobsPage_f25va_1",styles$7={allJobsPage};function AllJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchAllJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.all);return React.useEffect(()=>{C&&!F&&C.view("All Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$7.allJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.all,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const savedJobsPage="_savedJobsPage_1mbf6_1",styles$6={savedJobsPage};function SavedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(zn({type:TAG_TO_TAB_MAPPING.saved},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.saved);return React.useEffect(()=>{C&&!F&&C.view("Saved Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ee==null?void 0:ee.length)||0})},[C,F,ee==null?void 0:ee.length]),React.createElement("div",{className:styles$6.savedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.saved,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const appliedJobsPage="_appliedJobsPage_1n6xk_1",fixedHeader="_fixedHeader_1n6xk_9",headerSection="_headerSection_1n6xk_17",sectionTitle="_sectionTitle_1n6xk_22",headerRow="_headerRow_1n6xk_29",divider="_divider_1n6xk_33",contentSection="_contentSection_1n6xk_39",filterTags="_filterTags_1n6xk_50",filterTag="_filterTag_1n6xk_50",active="_active_1n6xk_75",tagIcon="_tagIcon_1n6xk_82",styles$5={appliedJobsPage,fixedHeader,headerSection,sectionTitle,headerRow,divider,contentSection,filterTags,filterTag,active,tagIcon},AppliedJobsHeader=({activeTab:C})=>React.createElement("div",{className:styles$5.headerSection},React.createElement(Flex$1,{align:"center",gap:16,className:styles$5.headerRow},React.createElement(Typography$1.Title,{level:4,className:styles$5.sectionTitle},TAB_HEADER_MAPPING[C]||"Your Job Applications"),React.createElement(Divider$1,{className:styles$5.divider})));AppliedJobsHeader.propTypes={activeTab:PropTypes.string};function AppliedJobsPage({analytics:C,onOpenApplicationForm:$}){const V=reactRedux.useDispatch(),[F,K]=React.useState(null),J=useJobFilters(),{data:ee,isLoading:te,error:ne,isFetching:re}=useFetchPipelineJobsQuery(gr(zn({},J),{tab:F||"applications"})),{data:ae}=useFetchPipelineJobsQuery({tab:APPLIED_JOB_TABS.pending.key,return_only_count:!0}),{data:oe}=useFetchPipelineJobsQuery({tab:APPLIED_JOB_TABS.underReview.key,return_only_count:!0}),ie=ge=>{const pe=Object.values(APPLIED_JOB_TABS).find(me=>me.key===ge);if(!pe)return"";let de=null;return ge===APPLIED_JOB_TABS.pending.key?de=ae==null?void 0:ae.totalEntries:ge===APPLIED_JOB_TABS.underReview.key&&(de=oe==null?void 0:oe.totalEntries),de!=null?`${pe.label} (${de})`:pe.label},se=ge=>{K(pe=>pe===ge?null:ge),V(setPageNumber(1)),C&&C.track("Applied Jobs Tab Clicked",{tab:ge})},{accumulatedJobs:ce,accumulatedCompaniesMap:ue,hasMore:le,isFetchingMore:ve,isLoading:fe}=useAccumulatedJobs(ee,re,te,F);return React.useEffect(()=>{C&&!te&&C.view("Applied Jobs Page - Render",PRODUCT_NAME,{jobsCount:(ce==null?void 0:ce.length)||0})},[C,te,ce==null?void 0:ce.length]),React.createElement("div",{className:styles$5.appliedJobsPage},React.createElement("div",{className:styles$5.fixedHeader},React.createElement(AppliedJobsHeader,{activeTab:F}),React.createElement(Flex$1,{gap:8,wrap:"wrap",className:styles$5.filterTags},Object.values(APPLIED_JOB_TABS).map(ge=>{const pe={CheckCircleOutlined:CheckCircleOutlined$1,SyncOutlined:SyncOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1}[ge.icon];return React.createElement("div",{key:ge.key,className:`${styles$5.filterTag} ${F===ge.key?styles$5.active:""}`,onClick:()=>se(ge.key)},pe&&React.createElement(pe,{className:styles$5.tagIcon}),ie(ge.key))}))),React.createElement("div",{className:styles$5.contentSection},React.createElement(JobsList,{analytics:C,currentTab:F||"applications",jobs:ce,companiesMap:ue,isLoading:fe,error:ne,isFetchingMore:ve,hasMore:le,onOpenApplicationForm:$,hideHeader:!0})))}const ExpertMbeRating=({fieldName:C,subjectOptions:$,ratingOptions:V})=>{const F=reactRedux.useDispatch(),J=reactRedux.useSelector(ue=>ue.scalantCareerHub.filterForm)[C],ee=React.useMemo(()=>J||{},[J]),te=React.useMemo(()=>typeof ee=="object"&&!Array.isArray(ee)?ee:{},[ee]);React.useEffect(()=>{(!ee||Object.keys(te).length===0)&&F(addRatingFilterInput())},[ee,te,F]);const ne=React.useMemo(()=>Object.values(te).map(ue=>{var le;return((le=ue==null?void 0:ue.subject)==null?void 0:le.key)||(ue==null?void 0:ue.subject)}).filter(Boolean),[te]),re=React.useMemo(()=>$.filter(ue=>!ne.includes(ue.key)),[$,ne]),ae=React.useCallback(()=>{F(addRatingFilterInput())},[F]),oe=React.useCallback(ue=>{F(deleteRatingFilterInput({inputFieldKey:ue}))},[F]),ie=React.useCallback((ue,le)=>{const ve=$.find(fe=>fe.key===le);F(updateRatingFilterInput({inputFilterSubKey:`${ue}_subject`,value:ve||le}))},[$,F]),se=React.useCallback((ue,le)=>{F(updateRatingFilterInput({inputFilterSubKey:`${ue}_rating`,value:le}))},[F]),ce=Object.keys(te);return React.createElement(Space$1,{direction:"vertical",style:{width:"100%"},size:"middle"},ce.map(ue=>{var pe;const le=te[ue],ve=((pe=le==null?void 0:le.subject)==null?void 0:pe.key)||(le==null?void 0:le.subject),fe=le==null?void 0:le.rating,ge=[...$.filter(de=>de.key===ve),...re];return React.createElement(Row$1,{key:ue,gutter:16,align:"middle"},React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select skill",value:ve,onChange:de=>ie(ue,de),showSearch:!0,filterOption:(de,me)=>{var ye;return((ye=me==null?void 0:me.label)!=null?ye:"").toLowerCase().includes(de.toLowerCase())},options:ge.map(de=>({label:de.value,value:de.key}))})),React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select rating",value:fe,onChange:de=>se(ue,de),options:V.map(de=>({label:de.label,value:de.value}))})),React.createElement(Col$1,{span:4},React.createElement(Space$1,null,React.createElement(Button$2,{type:"text",icon:React.createElement(PlusOutlined$1,null),onClick:ae,style:{color:"#1890ff"}}),ce.length>1&&React.createElement(Button$2,{type:"text",icon:React.createElement(DeleteOutlined$1,null),onClick:()=>oe(ue),danger:!0}))))}))};ExpertMbeRating.propTypes={fieldName:PropTypes.string.isRequired,subjectOptions:PropTypes.arrayOf(PropTypes.shape({key:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),value:PropTypes.string})).isRequired,ratingOptions:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),label:PropTypes.string})).isRequired};const drawerContent="_drawerContent_fqkgw_1",filterForm="_filterForm_fqkgw_5",drawerHeaderSubtitle$1="_drawerHeaderSubtitle_fqkgw_9",filterIcon$1="_filterIcon_fqkgw_14",buttonContainer="_buttonContainer_fqkgw_18",drawer="_drawer_fqkgw_1",styles$4={drawerContent,filterForm,drawerHeaderSubtitle:drawerHeaderSubtitle$1,filterIcon:filterIcon$1,buttonContainer,drawer},{Option:Option$1}=Select$1;function FilterForm(){var Se,Re,Ce,xe;const C=reactRedux.useDispatch(),$=reactRedux.useSelector($e=>$e.scalantCareerHub.filterForm),V=reactRedux.useSelector($e=>$e.scalantCareerHub.filterOptions||{}),[F]=Form$1.useForm();React.useEffect(()=>{F.setFieldsValue($)},[F,$]);const{handleCompanySearch:K,handleTitleSearch:J,handleExperienceSkillSearch:ee,handleExperienceSkillChange:te,loadingCompanies:ne,loadingTitles:re,loadingExperienceSkills:ae}=useAsyncFilterOptions(),{jobTypes:oe,functions:ie,seniorityLevels:se,companyCategories:ce,locations:ue,mbeSkills:le,ctcRanges:ve,stipendRanges:fe,durationRanges:ge,noticePeriods:pe,datePostedOptions:de,skillRatings:me}=useFilterMetaOptions(),ye=($e,Ie)=>{C(updateFormField({field:$e,value:Ie}))},_e=$.role_type,he=_e==="full_time",be=_e==="internship";return React.createElement(Form$1,{layout:"vertical",className:styles$4.filterForm,form:F,initialValues:$},React.createElement(Form$1.Item,{label:"Job Types",name:"role_type"},React.createElement(Select$1,{placeholder:"Select job profile",value:$.role_type,onChange:$e=>ye("role_type",$e)},oe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Company Name",name:"company_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:K,loading:ne,value:$.company_ids,onChange:$e=>ye("company_ids",$e),notFoundContent:ne?"Loading...":"Type at least 3 characters to search"},(Se=V.companyOptions)==null?void 0:Se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Title",name:"job_title"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:J,loading:re,value:$.job_title,onChange:$e=>ye("job_title",$e),notFoundContent:re?"Loading...":"Type at least 3 characters to search"},(Re=V.titleOptions)==null?void 0:Re.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),React.createElement(Form$1.Item,{label:"Function",name:"job_category"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select function",value:$.job_category,onChange:$e=>ye("job_category",$e)},ie.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Role seniority level",name:"seniority_level"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select level",value:$.seniority_level,onChange:$e=>ye("seniority_level",$e)},se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Company category",name:"company_categories"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select category",value:$.company_categories,onChange:$e=>ye("company_categories",$e)},ce.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))))),React.createElement(Form$1.Item,{label:"Location",name:"location"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select location",value:$.location,onChange:$e=>ye("location",$e)},ue.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),!be&&React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_ctc,onChange:$e=>ye("min_ctc",$e)},ve.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))),!he&&React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Stipend (INR per month)",name:"min_stipend"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_stipend,onChange:$e=>ye("min_stipend",$e)},fe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Internship duration (in months)",name:"min_duration"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_duration,onChange:$e=>ye("min_duration",$e)},ge.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Notice period requirement",name:"notice_period"},React.createElement(Select$1,{placeholder:"Choose period",value:$.notice_period,onChange:$e=>ye("notice_period",$e)},pe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Job posted date",name:"date_posted_on"},React.createElement(Select$1,{placeholder:"Pick date",value:$.date_posted_on,onChange:$e=>ye("date_posted_on",$e)},de.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Form$1.Item,{label:"Expert Mock Interview Skills Required"},React.createElement(ExpertMbeRating,{fieldName:"mbe_skill_ids",subjectOptions:le,ratingOptions:me})),React.createElement(Form$1.Item,{label:"Experienced based skills",name:"experience_skill_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:ee,loading:ae,value:((Ce=$.experience_skill_ids)==null?void 0:Ce.map($e=>typeof $e=="object"?$e.experience_skill_id:$e))||[],onChange:$e=>{const Ie=te($e,V.experienceSkillOptions);ye("experience_skill_ids",Ie)},notFoundContent:ae?"Loading...":"Type at least 2 characters to search"},(xe=V.experienceSkillOptions)==null?void 0:xe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)? *"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number",value:$.min_experience,onChange:$e=>ye("min_experience",$e.target.value)}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number",value:$.max_experience,onChange:$e=>ye("max_experience",$e.target.value)}))))))}function FilterDrawerTitle({onClose:C}){return React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:5},React.createElement(FilterOutlined$1,{className:styles$4.filterIcon}),"Filters"),React.createElement(CloseOutlined$1,{onClick:C})),React.createElement("div",{className:styles$4.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function FilterDrawer({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>te.scalantCareerHub.dashboard.filterModalOpen),F=reactRedux.useSelector(te=>te.scalantCareerHub.filterForm);React.useEffect(()=>{C&&V&&C.view("Filter Drawer - Open",PRODUCT_NAME)},[C,V]);const K=()=>{C==null||C.click("Filter Drawer - Close",PRODUCT_NAME),$(closeFilterModal())},J=()=>{var re,ae,oe,ie,se,ce,ue;C==null||C.click("Filter Drawer - Apply",PRODUCT_NAME);let te;F.mbe_skill_ids&&typeof F.mbe_skill_ids=="object"&&!Array.isArray(F.mbe_skill_ids)&&Object.keys(F.mbe_skill_ids).length>0&&(te=Object.values(F.mbe_skill_ids).filter(le=>!le||le.rating===void 0||le.rating===null?!1:le.subject?typeof le.subject=="object"?le.subject.key!==void 0&&le.subject.key!==null:le.subject!==void 0&&le.subject!==null:!1).map(le=>{var fe;let ve;return typeof le.subject=="object"&&((fe=le.subject)==null?void 0:fe.key)!==void 0?ve=le.subject.key:ve=le.subject,{mbe_skill_id:ve,rating:le.rating}}),te.length===0&&(te=void 0));const ne={role_type:F.role_type||void 0,company_ids:(re=F.company_ids)!=null&&re.length?F.company_ids:void 0,job_title:(ae=F.job_title)!=null&&ae.length?F.job_title:void 0,job_category:(oe=F.job_category)!=null&&oe.length?F.job_category:void 0,seniority_level:(ie=F.seniority_level)!=null&&ie.length?F.seniority_level:void 0,location:(se=F.location)!=null&&se.length?F.location:void 0,min_ctc:F.min_ctc||void 0,min_stipend:F.min_stipend||void 0,min_duration:F.min_duration||void 0,notice_period:F.notice_period||void 0,date_posted_on:F.date_posted_on||void 0,mbe_skill_ids:te,experience_skill_ids:(ce=F.experience_skill_ids)!=null&&ce.length?F.experience_skill_ids:void 0,min_experience:F.min_experience||void 0,max_experience:F.max_experience||void 0,company_categories:(ue=F.company_categories)!=null&&ue.length?F.company_categories:void 0};Object.keys(ne).forEach(le=>{ne[le]===void 0&&delete ne[le]}),$(updateFiltersFromForm(ne)),updateURLWithFilters(ne),K()},ee=()=>{C==null||C.click("Filter Drawer - Reset",PRODUCT_NAME),$(resetForm()),$(clearAllOptions()),$(updateFiltersFromForm({})),updateURLWithFilters({})};return React.createElement(Drawer$1,{title:React.createElement(FilterDrawerTitle,{onClose:K}),placement:"right",onClose:K,open:V,closable:!1,width:550,className:styles$4.drawer},React.createElement("div",{className:styles$4.drawerContent},React.createElement(FilterForm,null),React.createElement("div",{className:styles$4.buttonContainer},React.createElement(Button$2,{className:styles$4.resetButton,onClick:ee},"Reset Filters"),React.createElement(Button$2,{type:"primary",className:styles$4.applyButton,onClick:J},"Apply"))))}const alertService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAlerts:C.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:$=>$.data||[],providesTags:["JobAlerts"]}),createAlert:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/",method:"POST",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlertStatus:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlert:C.mutation({query:({id:$,payload:V})=>({url:`/job-tracker/v1/alerts/${$}`,method:"PUT",body:V}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery,useCreateAlertMutation,useUpdateAlertStatusMutation,useUpdateAlertMutation}=alertService,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",styles$3={modalTitle,modalTitleHeader,modalTitleContent,modalCloseIcon,modalDescription,modalFooter,createAlertContent,formField,formLabel,requiredAsterisk,formInput,experienceInputs,modal,radioGroup,drawerHeaderSubtitle,filterIcon},{Option}=Select$1;function JobAlertForm({form:C,initialValues:$,onSubmit:V,isSubmitting:F}){const{functions:K,locations:J,ctcRanges:ee}=useFilterMetaOptions(),[te,ne]=React.useState("realtime");React.useEffect(()=>{var oe,ie;if($&&C){const ce={[ALERT_FREQUENCY.REALTIME]:"realtime",[ALERT_FREQUENCY.DAILY]:"daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"alternate",[ALERT_FREQUENCY.WEEKLY]:"weekly"}[$.frequency]||"realtime",ue={name:$.name,job_functions:$.job_functions||[],min_ctc:$.min_ctc,locations:$.locations||[],min_experience:((oe=$.min_experience)==null?void 0:oe.toString())||"",max_experience:((ie=$.max_experience)==null?void 0:ie.toString())||"",frequency:ce,notification_type:$.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL};C.setFieldsValue(ue),ne(ce)}},[$,C]);const re=()=>er(this,null,function*(){try{const oe=yield C.validateFields(),ie={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},se=oe.frequency==="realtime",ce={alert:{name:oe.name,job_functions:oe.job_functions||[],min_ctc:oe.min_ctc,locations:oe.locations||[],min_experience:oe.min_experience?parseInt(oe.min_experience,10):0,max_experience:oe.max_experience?parseInt(oe.max_experience,10):null,frequency:ie[oe.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:se&&oe.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};V&&(yield V(ce))}catch(oe){console.error("Error submitting form:",oe)}});React.useEffect(()=>{C&&V&&(C.submit=re)},[C,V]);const ae=Form$1.useWatch("frequency",C)||"realtime";return React.useEffect(()=>{ne(ae)},[ae]),React.createElement(Form$1,{form:C,layout:"vertical",className:styles$3.createAlertContent,initialValues:{frequency:"realtime"}},React.createElement(Form$1.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},React.createElement(Input$1,{placeholder:"Give your job alert a name"})),React.createElement(Form$1.Item,{label:"Job Function",name:"job_functions"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select job function",className:styles$3.formInput},K.map(oe=>React.createElement(Option,{key:oe.key,value:oe.key},oe.value)))),React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",className:styles$3.formInput},ee.map(oe=>React.createElement(Option,{key:oe.value,value:oe.value},oe.label)))),React.createElement(Form$1.Item,{label:"Locations?",name:"locations"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select locations",className:styles$3.formInput},J.map(oe=>React.createElement(Option,{key:oe.key,value:oe.value},oe.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)?"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number"}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number"}))))),React.createElement(Form$1.Item,{label:"Alert Frequency",name:"frequency"},React.createElement(Radio$1.Group,{className:styles$3.radioGroup,onChange:oe=>{ne(oe.target.value),oe.target.value!=="realtime"&&C.setFieldsValue({notification_type:ALERT_NOTIFICATION_TYPE.EMAIL})}},React.createElement(Radio$1,{value:"realtime"},"Realtime"),React.createElement(Radio$1,{value:"daily"},"Daily"),React.createElement(Radio$1,{value:"alternate"},"Every alternate day"),React.createElement(Radio$1,{value:"weekly"},"Weekly"))),te==="realtime"&&React.createElement(Form$1.Item,{label:"Alert mode",name:"notification_type"},React.createElement(Radio$1.Group,{className:styles$3.radioGroup},React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.EMAIL},"Email"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.WHATSAPP},"Whatsapp"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.BOTH},"Both"))))}const alertCard="_alertCard_1k2nv_1",alertHeader="_alertHeader_1k2nv_14",alertIcon="_alertIcon_1k2nv_20",inactiveIcon="_inactiveIcon_1k2nv_25",alertActions="_alertActions_1k2nv_29",editFormCard="_editFormCard_1k2nv_35",styles$2={alertCard,alertHeader,alertIcon,inactiveIcon,alertActions,editFormCard};function ExistingAlerts({analytics:C}){const $=reactRedux.useDispatch(),{data:V=[],isLoading:F,error:K}=useFetchAlertsQuery(),[J]=useUpdateAlertStatusMutation(),[ee,{isLoading:te}]=useUpdateAlertMutation(),[ne,re]=React.useState(null),[ae]=Form$1.useForm();React.useEffect(()=>{V&&$(setAlerts(V))},[V,$]);const oe=ge=>ALERT_FREQUENCY_LABELS[ge]||ALERT_FREQUENCY_LABELS[ALERT_FREQUENCY.REALTIME],ie=ge=>ALERT_NOTIFICATION_LABELS[ge]||ALERT_NOTIFICATION_LABELS[ALERT_NOTIFICATION_TYPE.EMAIL],se=ge=>ge===ALERT_STATUS.ACTIVE,ce=(ge,pe)=>er(this,null,function*(){try{const de=pe===ALERT_STATUS.ACTIVE?ALERT_STATUS.INACTIVE:ALERT_STATUS.ACTIVE;yield J({id:ge,status:de}).unwrap(),message$1.success(`Alert ${de===ALERT_STATUS.ACTIVE?"activated":"deactivated"} successfully`)}catch(de){message$1.error("Failed to update alert status"),console.error("Error updating alert status:",de)}}),ue=ge=>{C==null||C.click("Existing Alerts - Edit",PRODUCT_NAME),re(ge)},le=()=>{C==null||C.click("Existing Alerts - Cancel Edit",PRODUCT_NAME),re(null),ae.resetFields()},ve=ge=>er(this,null,function*(){try{C==null||C.click("Existing Alerts - Update Alert",PRODUCT_NAME),yield ee({id:ne,payload:ge}).unwrap(),message$1.success("Alert updated successfully"),re(null),ae.resetFields()}catch(pe){throw message$1.error("Failed to update alert"),console.error("Error updating alert:",pe),pe}}),fe=ge=>er(this,null,function*(){try{C==null||C.click("Existing Alerts - Delete",PRODUCT_NAME),yield J({id:ge,status:ALERT_STATUS.DELETED}).unwrap(),message$1.success("Alert deleted successfully")}catch(pe){message$1.error("Failed to delete alert"),console.error("Error deleting alert:",pe)}});return F?React.createElement("div",{className:styles$2.existingAlertContent},React.createElement("div",{className:styles$2.loadingText},"Loading alerts...")):K?React.createElement("div",{className:styles$2.existingAlertContent},React.createElement("div",{className:styles$2.errorText},"Error loading alerts")):!V||V.length===0?React.createElement("div",{className:styles$2.existingAlertContent},React.createElement("div",{className:styles$2.emptyText},"No alerts found")):React.createElement("div",{className:styles$2.existingAlertContent},V.map(ge=>{const pe=ge.attributes||ge,de=ge.id||pe.id,me=se(pe.status),ye=oe(pe.frequency),_e=ie(pe.notification_type),he=ne===de;return React.createElement("div",{key:de,className:styles$2.alertCard},React.createElement(Flex$1,{align:"center",className:styles$2.alertHeader},React.createElement(AlertFilled$1,{className:classNames(styles$2.alertIcon,{[styles$2.inactiveIcon]:!me})}),React.createElement("div",null,pe.name)),React.createElement("div",{className:styles$2.alertSettings},React.createElement(Flex$1,{align:"center",gap:16,wrap:!0},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Switch$1,{checked:me,onChange:()=>ce(de,pe.status),size:"small",disabled:he}),React.createElement("span",null,"Active")),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(ClockCircleOutlined$1,null),React.createElement("span",null,ye)),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(AlertFilled$1,null),React.createElement("span",null,_e)))),!he&&React.createElement("div",{className:styles$2.alertActions},React.createElement(Button$2,{type:"text",danger:!0,icon:React.createElement(DeleteOutlined$1,null),onClick:()=>fe(de),className:styles$2.deleteButton},"Delete"),React.createElement(Button$2,{type:"primary",icon:React.createElement(EditOutlined$1,null),onClick:()=>ue(de),className:styles$2.editButton},"Edit")),he&&React.createElement("div",{className:styles$2.editFormCard},React.createElement(JobAlertForm,{form:ae,initialValues:pe,onSubmit:ve,isSubmitting:te}),React.createElement(Flex$1,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},React.createElement(Button$2,{onClick:le,disabled:te},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:()=>er(this,null,function*(){try{const be=yield ae.validateFields(),Se={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},Re=be.frequency==="realtime",Ce={alert:{name:be.name,job_functions:be.job_functions||[],min_ctc:be.min_ctc,locations:be.locations||[],min_experience:be.min_experience?parseInt(be.min_experience,10):0,max_experience:be.max_experience?parseInt(be.max_experience,10):null,frequency:Se[be.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:Re&&be.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};yield ve(Ce)}catch(be){}}),loading:te},"Update Alert"))))}))}function JobAlertModal({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.jobAlertModalOpen),[F,K]=React.useState("create"),[J]=Form$1.useForm(),[ee,{isLoading:te}]=useCreateAlertMutation();React.useEffect(()=>{V?C&&V&&C.view("Job Alert Modal - Open",PRODUCT_NAME):(J.resetFields(),K("create"))},[V,J,C]);const ne=()=>{C==null||C.click("Job Alert Modal - Close",PRODUCT_NAME),$(closeJobAlertModal())},re=()=>{C==null||C.click("Job Alert Modal - Cancel",PRODUCT_NAME),ne()},ae=()=>er(this,null,function*(){try{const ue=yield J.validateFields(),le={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},ve=ue.frequency==="realtime",fe={alert:{name:ue.name,job_functions:ue.job_functions||[],min_ctc:ue.min_ctc,locations:ue.locations||[],min_experience:ue.min_experience?parseInt(ue.min_experience,10):0,max_experience:ue.max_experience?parseInt(ue.max_experience,10):null,frequency:le[ue.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:ve&&ue.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL},resume_alert:!1},ge=yield ee(fe).unwrap();ge.success&&ge.alert&&(C==null||C.click("Job Alert Modal - Create Alert",PRODUCT_NAME),J.resetFields(),K("existing"),message$1.success("Alert created successfully"))}catch(ue){message$1.error("Failed to create alert"),console.error("Error creating alert:",ue)}}),oe=ue=>er(this,null,function*(){const le=gr(zn({},ue),{resume_alert:!1});return yield ee(le).unwrap()}),ie=React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(BellOutlined$1,{className:styles$3.filterIcon}),"Curate your Job Alert"),React.createElement(CloseOutlined$1,{onClick:ne})),React.createElement("div",{className:styles$3.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),se=React.createElement("div",{className:styles$3.modalFooter},React.createElement(Button$2,{onClick:re},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:te},"Create Alert")),ce=React.createElement(JobAlertForm,{form:J,onSubmit:oe,isSubmitting:te});return React.createElement(Modal$1,{title:ie,open:V,onCancel:ne,footer:se,width:600,closable:!1,className:styles$3.modal},React.createElement(Tabs$1,{activeKey:F,onChange:ue=>{C==null||C.click(`Job Alert Modal - Tab ${ue}`,PRODUCT_NAME),K(ue)},items:[{key:"create",label:"Create alert",children:ce},{key:"existing",label:"Existing alerts",children:React.createElement(ExistingAlerts,{analytics:C})}]}))}const{Text}=Typography$1,FEEDBACK_URL="https://interviewbit.typeform.com/to/LONfH7DT",STORAGE_KEY_PREFIX="CAREERS_HUB_JOBS_V2_FEEDBACK",STORAGE_KEYS={TIME_SPENT:`${STORAGE_KEY_PREFIX}#feedback_time_spent`,SUBMITTED:`${STORAGE_KEY_PREFIX}#feedback_submitted`,SHOWN_COUNT:`${STORAGE_KEY_PREFIX}#feedback_shown_count`},TIME_THRESHOLD=7.5*60,MAX_SHOW_COUNT=3,Feedback=({analytics:C})=>{const[$,V]=React.useState(!1),F=React.useRef(null),K=React.useRef(Date.now()),J=React.useRef(!1),ee=React.useRef(!1),te=reactRedux.useSelector(oe=>oe.scalantCareerHub.dashboard.userProfileData),{email:ne}=te||{};React.useEffect(()=>{const oe=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10),ie=localStorage.getItem(STORAGE_KEYS.SUBMITTED)==="true",se=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);ie||se>=MAX_SHOW_COUNT||oe>=TIME_THRESHOLD&&(V(!0),ee.current=!0,localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT,String(se+1)),C==null||C.click("Feedback - Auto Open Feedback Modal",PRODUCT_NAME))},[C]),React.useEffect(()=>{const oe=localStorage.getItem(STORAGE_KEYS.SUBMITTED)==="true",ie=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);if(!(oe||ie>=MAX_SHOW_COUNT))return K.current=Date.now(),F.current=setInterval(()=>{const ce=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10)+1,ue=parseInt(localStorage.getItem(STORAGE_KEYS.SHOWN_COUNT)||"0",10);localStorage.setItem(STORAGE_KEYS.TIME_SPENT,String(ce)),ce>=TIME_THRESHOLD&&!ee.current&&!J.current&&ue<MAX_SHOW_COUNT&&(V(!0),ee.current=!0,localStorage.setItem(STORAGE_KEYS.SHOWN_COUNT,String(ue+1)),C==null||C.click("Feedback - Auto Open Feedback Modal - Interval",PRODUCT_NAME))},1e3),()=>{if(F.current){clearInterval(F.current);const se=Math.floor((Date.now()-K.current)/1e3);if(se>0){const ce=parseInt(localStorage.getItem(STORAGE_KEYS.TIME_SPENT)||"0",10);localStorage.setItem(STORAGE_KEYS.TIME_SPENT,String(ce+se))}}}},[C]);const re=()=>{V(!1),J.current=!0,C==null||C.click("Feedback - Cancel Feedback",PRODUCT_NAME)},ae=()=>{localStorage.setItem(STORAGE_KEYS.SUBMITTED,"true"),V(!1),C==null||C.click("Feedback - Submit Feedback",PRODUCT_NAME)};return React.createElement(Modal$1,{title:React.createElement(Flex$1,{align:"center",gap:8},React.createElement(SmileTwoTone$1,null),React.createElement(Text,null,"Your feedback is important to us!")),open:$,onCancel:re,cancelText:"Go Back",okText:"Submit Feedback",okButtonProps:{href:`${FEEDBACK_URL}#email=${ne}`,target:"_blank"},onOk:ae,centered:!0},React.createElement(Text,null,"We recently made some changes to the careers hub and would love to hear your feedback!"))},jobsPageContent="_jobsPageContent_pk7y3_1",styles$1={jobsPageContent};function JobsPage({analytics:C,country:$,openMockInterviewModal:V,openResume:F,processCounts:K=DEFAULT_PROCESS_COUNTS,userProfileData:J,onUploadFile:ee,onViewResume:te,onEditPreferences:ne,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe,fitmentCheckEnabled:ie=!1,smartJobApplyEnabled:se=!1}){const ce=reactRedux.useDispatch(),ue=reactRedux.useSelector(he=>{var be,Se;return((Se=(be=he.scalantCareerHub)==null?void 0:be.filter)==null?void 0:Se.tab)||TAG_TO_TAB_MAPPING.relevant}),le=React.useRef(!1),[ve,fe]=React.useState(!1),{selectedJobId:ge}=useJobQueryParams({syncToURL:!0,syncFromURL:!0}),pe=he=>{fe(he)};React.useLayoutEffect(()=>{if(!le.current){const he=getFiltersFromURL(),be=zn({},he),Re=new URLSearchParams(window.location.search).get("job_ids");Re&&(be.job_ids=[Re]),Object.keys(be).length>0&&ce(updateFiltersFromForm(be)),le.current=!0}},[ce]),React.useEffect(()=>{ce(setProcessCounts(K))},[K,ce]),React.useEffect(()=>{J&&ce(setUserProfileData(J))},[J,ce]);const de=React.createElement(JobsHeader,{analytics:C}),me=ge?React.createElement(JobDetails,{analytics:C,currentTab:ue,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:ge,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe,fitmentCheckEnabled:ie,smartJobApplyEnabled:se,defaultOpenedApplicationId:ve===ge?ge:null}):React.createElement(ProfileDetails,{analytics:C,onViewResume:te,onEditPreferences:ne}),ye=ge?SIDER_WIDTH.JOB_DETAILS:SIDER_WIDTH.PROFILE_DETAILS;React.useEffect(()=>{C&&C.view("Jobs Page - Tab Rendered",PRODUCT_NAME,{currentTab:ue})},[C,ue]);const _e=()=>{switch(ue){case TAG_TO_TAB_MAPPING.relevant:return React.createElement(RelevantJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.saved:return React.createElement(SavedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.applied:return React.createElement(AppliedJobsPage,{analytics:C,onOpenApplicationForm:pe});case TAG_TO_TAB_MAPPING.all:default:return React.createElement(AllJobsPage,{analytics:C})}};return React.createElement(React.Fragment,null,React.createElement(JobsLayout,{analytics:C,header:de,sider:me,siderWidth:ye,className:styles$1.jobsPage},_e()),React.createElement(FilterDrawer,{analytics:C}),React.createElement(JobAlertModal,{analytics:C}),React.createElement(Feedback,{analytics:C}))}JobsPage.propTypes={processCounts:PropTypes.shape({all:PropTypes.number,relevant:PropTypes.number,draft:PropTypes.number,applications:PropTypes.number,saved:PropTypes.number,archived:PropTypes.number}),userProfileData:PropTypes.object};const headIcon="_headIcon_u77zd_1",styles={headIcon};function GetStartedResumeModal({buttonText:C="Go to Builder",descriptionText:$,open:V,onClose:F,onClick:K,titleText:J}){const ee=React.createElement(Flex$1,{align:"center",gap:8},React.createElement(InfoCircleFilled$1,{className:styles.headIcon}),React.createElement("span",null,J)),te=React.createElement("div",null,React.createElement(Button$2,{type:"primary",onClick:K},C));return React.createElement(Modal$1,{title:ee,open:V,onCancel:F,footer:te,centered:!0,closable:!0,closeIcon:React.createElement(CloseOutlined$1,null),width:520},$)}exports.APPLICATION_STATUS=APPLICATION_STATUS,exports.GetStartedResumeModal=GetStartedResumeModal,exports.JOB_CARD_CONFIG=JOB_CARD_CONFIG,exports.JOB_PROFILE_STATUS=JOB_PROFILE_STATUS,exports.JobsLayout=JobsLayout,exports.JobsPage=JobsPage,exports.TABS=TABS,exports.careerHubApi=careerHubApi,exports.checkAllOtherRequirementsMet=checkAllOtherRequirementsMet,exports.countPendingSteps=countPendingSteps,exports.default=HelloWorld,exports.determineJobTag=determineJobTag,exports.formatCtc=formatCtc,exports.formatDate=formatDate,exports.formatExperience=formatExperience$1,exports.formatLocation=formatLocation,exports.formatNoticePeriod=formatNoticePeriod,exports.setBaseUrl=setBaseUrl,exports.setChecklistOpen=setChecklistOpen,exports.setFitmentScore=setFitmentScore,exports.setResumeReviewData=setResumeReviewData,exports.store=rootReducer,exports.useApplicationForm=useApplicationForm,exports.useCreateApplication=useCreateApplication,exports.useJobCardState=useJobCardState,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});