"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1264],{6772:function(e,t,n){var r,o=n(69804);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",i({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=o.createElement("path",{d:"M11 8a1 1 0 0 1 1-1 1 1 0 0 1 .85.51A.9.9 0 0 1 13 8a1 1 0 0 1-2 0m11 4a10 10 0 1 1-20 0 10 10 0 0 1 20 0m-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0m-7 2v-3a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v3a1 1 0 0 0 1 1h1a1 1 0 0 0 0-2",fill:"currentColor"})))}},46996:function(e,t,n){n.d(t,{T:function(){return u}});var r=n(81675),o=n(48724),i=n(57780),l=n(78701),a=n(28979);let c=(0,i.ZP)(l.Y).withConfig({componentId:"sc-87b97ab5-0"})(["height:max-content;padding:0;background:none;border:none;color:",";&:disabled{color:",";}"],a.default.light.color.purple[500],a.default.light.color.gray[200]),u=e=>{let{...t}=e;return(0,r.jsx)(c,{...t,children:(0,r.jsx)(o.BodySMd,{children:t.label})})}},2190:function(e,t,n){n.d(t,{f:function(){return a}});var r=n(81675),o=n(28979),i=n(48724);let l=n(57780).ZP.div.withConfig({componentId:"sc-97fa0bc9-0"})(["display:flex;flex-direction:column;padding:1px 24px;"]),a=e=>{let{error:t,supportingText:n}=e;return(0,r.jsxs)(l,{children:[n&&(0,r.jsx)(i.BodyXsRg,{color:o.default.light.color.gray[400],children:n}),t&&(0,r.jsxs)(i.BodyXsRg,{color:o.default.light.color.red["500"],children:["string"==typeof(null==t?void 0:t.message)?null==t?void 0:t.message:JSON.stringify(null==t?void 0:t.message)," "]})]})}},17245:function(e,t,n){n.d(t,{Z:function(){return N}});var r,o,i,l,a,c,u,d,s,f,g=n(81675),h=n(23180),p=n(57780),v=n(28979);let m=(0,p.iv)(["background-color:",";color:",";border:1px solid;border-color:rgba(235,87,87,0.5);background-color:rgba(235,87,87,0.05);box-shadow:none;margin:0px;padding:8px;border-radius:8px;margin:0;margin-bottom:0px;height:40px;gap:8px;"],v.default.light.color.purple[500],v.default.light.color.red[300]),w=(0,p.iv)(["color:",";margin-right:0;"],v.default.light.color.red[300]),x=p.ZP.div.withConfig({componentId:"sc-b0fde680-0"})(["display:flex;align-items:center;justify-content:center;margin:10px;padding:10px 20px;border-radius:4px;margin-bottom:10px;box-shadow:0 2px 4px rgba(0,0,0,0.1);border:2px solid;border-color:",";background-color:",";color:",";",""],e=>{switch(e.type){case"success":return"".concat(v.default.light.color.notification.success);case"warning":return"".concat(v.default.light.color.notification.warning);case"error":return"".concat(v.default.light.color.notification.error);default:return"".concat(v.default.light.color.notification.info)}},e=>{switch(e.type){case"success":return"".concat(v.default.light.color.notification.background.mint);case"warning":return"".concat(v.default.light.color.notification.background.linen);case"error":return"".concat(v.default.light.color.notification.background.blush);default:return"".concat(v.default.light.color.notification.background.sky)}},v.default.light.color.gray[800],e=>"validationError"===e.type&&m),b=p.ZP.div.withConfig({componentId:"sc-b0fde680-1"})(["margin-right:15px;display:flex;align-items:center;color:",";",""],e=>{switch(e.type){case"success":return"".concat(v.default.light.color.notification.success);case"warning":return"".concat(v.default.light.color.notification.warning);case"error":return"".concat(v.default.light.color.notification.error);default:return"".concat(v.default.light.color.notification.info)}},e=>"validationError"===e.type&&w),y=p.ZP.div.withConfig({componentId:"sc-b0fde680-2"})(["flex-grow:1;display:flex;align-items:center;"]),C=p.ZP.div.withConfig({componentId:"sc-b0fde680-3"})(["cursor:pointer;display:flex;align-items:center;margin-left:15px;color:",";"],e=>{switch(e.type){case"success":return"".concat(v.default.light.color.notification.success);case"warning":return"".concat(v.default.light.color.notification.warning);case"error":return"".concat(v.default.light.color.notification.error);default:return"".concat(v.default.light.color.notification.info)}});var j=n(6772),k=n(69804);function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var O=function(e){return k.createElement("svg",E({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),r||(r=k.createElement("path",{d:"M15.64 9.36a.91.91 0 0 1 0 1.28l-4 4a.91.91 0 0 1-1.28 0l-2-2a.91.91 0 0 1 1.28-1.28L11 12.73l3.36-3.37a.91.91 0 0 1 1.28 0M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0m-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0",fill:"currentColor"})))};function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var M=function(e){return k.createElement("svg",_({width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),o||(o=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0v-5a1 1 0 0 1 1-1",fill:"currentColor"})),i||(i=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.501 3.403a2.987 2.987 0 0 1 4.09 1.098l.002.002L29.59 23.5a3 3 0 0 1-2.588 4.5H4.996a3 3 0 0 1-2.587-4.5L13.407 4.503l.001-.002a3 3 0 0 1 1.093-1.098M14.275 5l.865.5-11 19a1 1 0 0 0 .365 1.364 1 1 0 0 0 .497.136h21.996a1 1 0 0 0 .861-1.5L16.857 5.497a.988.988 0 0 0-1.714 0z",fill:"currentColor"})),l||(l=k.createElement("path",{d:"M16 24a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",fill:"currentColor"})))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var R=function(e){return k.createElement("svg",S({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),a||(a=k.createElement("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 18a8 8 0 1 1 0-16.001A8 8 0 0 1 12 20m3-9.54L13.41 12 15 13.54A1.032 1.032 0 1 1 13.54 15L12 13.41 10.46 15A1.032 1.032 0 1 1 9 13.54L10.59 12 9 10.46A1.032 1.032 0 0 1 10.46 9L12 10.59 13.54 9A1.032 1.032 0 1 1 15 10.46",fill:"currentColor"})))};function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var L=function(e){return k.createElement("svg",Z({width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img"},e),c||(c=k.createElement("path",{d:"M17.71 16.29a1.004 1.004 0 1 1-1.42 1.42L12 13.41l-4.29 4.3a1.004 1.004 0 1 1-1.42-1.42l4.3-4.29-4.3-4.29a1.004 1.004 0 0 1 1.42-1.42l4.29 4.3 4.29-4.3a1.004 1.004 0 0 1 1.42 1.42L13.41 12z",fill:"currentColor"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var B=function(e){return k.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",role:"img"},e),u||(u=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75ZM2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12Z",fill:"currentColor"})),d||(d=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 12C7.5 11.5858 7.83579 11.25 8.25 11.25H15.75C16.1642 11.25 16.5 11.5858 16.5 12C16.5 12.4142 16.1642 12.75 15.75 12.75H8.25C7.83579 12.75 7.5 12.4142 7.5 12Z",fill:"currentColor"})),s||(s=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75ZM2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12Z",stroke:"currentColor",strokeWidth:.571429,strokeLinecap:"round",strokeLinejoin:"round"})),f||(f=k.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 12C7.5 11.5858 7.83579 11.25 8.25 11.25H15.75C16.1642 11.25 16.5 11.5858 16.5 12C16.5 12.4142 16.1642 12.75 15.75 12.75H8.25C7.83579 12.75 7.5 12.4142 7.5 12Z",stroke:"currentColor",strokeWidth:.571429,strokeLinecap:"round",strokeLinejoin:"round"})))},I=n(48724),N=e=>{let{type:t="info",message:n,dismissTime:r=5e3,autoDismiss:o=!0,onClose:i,showClose:l=!0}=e,[a,c]=(0,h.useState)(!0);(0,h.useEffect)(()=>{if(o){let e=setTimeout(()=>{u()},r);return()=>clearTimeout(e)}},[r]);let u=()=>{c(!1),i&&i()};return a?(0,g.jsxs)(x,{type:t,children:[(0,g.jsx)(b,{type:t,children:(()=>{switch(t){case"success":return(0,g.jsx)(O,{height:"24px",width:"24px","data-testid":"notification-success-icon"});case"warning":return(0,g.jsx)(M,{height:"24px",width:"24px","data-testid":"notification-warning-icon"});case"error":return(0,g.jsx)(R,{height:"24px",width:"24px","data-testid":"notification-error-icon"});case"validationError":return(0,g.jsx)(B,{height:"24px",width:"24px","data-testid":"validation-error-icon"});default:return(0,g.jsx)(j.Z,{height:"24px",width:"24px","data-testid":"notification-info-icon"})}})()}),(0,g.jsx)(y,{children:"validationError"===t?(0,g.jsx)(I.BodySMd,{children:n}):(0,g.jsx)(I.BodyXsRg,{children:n})}),l&&(0,g.jsx)(C,{type:t,onClick:u,children:(0,g.jsx)(L,{height:"24px",width:"24px","data-testid":"notification-close-icon"})})]}):null}},82878:function(e,t,n){function r(e){let{key:t,value:n}=e;localStorage.setItem(t,JSON.stringify(n))}function o(e){let{key:t}=e;{var n,r;let e=JSON.parse(null!==(r=null===(n=localStorage)||void 0===n?void 0:n.getItem(t))&&void 0!==r?r:"{}");return 0!==Object.keys(e).length?e:void 0}}function i(e){let{key:t}=e;localStorage.removeItem(t)}n.d(t,{_m:function(){return r},bZ:function(){return i},fp:function(){return o}})},86801:function(e,t,n){function r(e){let{key:t,value:n}=e;sessionStorage.setItem(t,JSON.stringify(n))}function o(e){let{key:t}=e;try{var n;return JSON.parse(null!==(n=sessionStorage.getItem(t))&&void 0!==n?n:"null")}catch(e){return}}n.d(t,{Kk:function(){return o},sn:function(){return r}})},80339:function(e,t,n){n.d(t,{O:function(){return l}});var r=n(91916),o=n(60574),i=n(72032);let l=()=>{let{setUserJobAlerts:e}=(0,r.S)(),{sendEvents:t}=(0,i.rR)();return async function(n){let r=await (0,o.Tn)();e(r);let i=null==r?void 0:r.some(e=>e.keyword===n.title&&e.location===n.location),l=r?r.length:0;if(l<5&&!i){let r={keyword:n.title,location:n.location},i=await (0,o.G6)(r);(null==i?void 0:i.id)&&(t({event_type:"customized_job_alert_created",alert_id:i.id,keyword:n.title,location:n.location}),0===l&&t({event_type:"customized_job_alert_subscribed",channel:"email",data:{alert_id:i.id,keyword:n.title,location:n.location}}),e(e=>[...e,i]))}}}},60574:function(e,t,n){n.d(t,{F_:function(){return a},G6:function(){return l},Tn:function(){return i},XD:function(){return o}}),n(62128);var r=n(40536),o=(0,r.$)("f0358229581809ce14a67d40086f3318d2415a08"),i=(0,r.$)("797123519c55233b66f6d7bbe9d53b752ef53be7"),l=(0,r.$)("30d31e87616071069e9881b5082f359de9e90709"),a=(0,r.$)("e21b483a44ae55e94adecfc06f7e3a60075710ee")},10191:function(e,t,n){n.d(t,{D:function(){return a},w:function(){return c}});var r=n(81675),o=n(23180),i=n(21698);let l=o.createContext(!0);function a(){return(0,o.useContext)(l)}let c=e=>{let{children:t}=e,n=(0,i.useTranslations)(),[a,c]=o.useState(!1),[u,d]=o.useState(""),[s,f]=o.useState(!0);(0,o.useEffect)(()=>{a&&s&&setTimeout(()=>{g()},3e3)},[a]);let g=()=>{c(!1),f(!0)};return(0,r.jsx)(l.Provider,{value:{show:e=>{let{message:t,autoclose:n}=e;!1===n&&f(!1),d(t),c(!0)},hide:g,error:()=>{d(n("serp_jobs.error_messages.we_re_experiencing")),c(!0)},message:u,isVisible:a},children:t})}}}]);