PageSourceSearch

https://dream.jobs/_next/static/chunks/953-307a466c99e413f8.js

js dream.jobs collected 2026-10-08 07:49:23 UTC 6,970 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[953],{65953:function(e,n,r){r.d(n,{Z:function(){return D}});var i=r(2784),t=r(65992),l=r(48601),a=r(80178),o=r(77729),s=r(83919),u="yyyy-MM-dd",d=r(87488),c=r(36048),m=r(69692),f=r(62197),h=r(95789),p=r(63397),v=r(39470),x=r(6823),b=r(2519),j=r(5027),g=r(64173),F=r(18234),Z=r(95235),y=r(66125),P=r(80982),C=r(52322),S=(0,t.ZP)("div",{shouldForwardProp:function(e){return"isSelected"!==e},target:"e19jvlek1"})(function(e){var n=e.theme;return{display:"flex",minWidth:"144px",border:"1px solid transparent",borderColor:e.isSelected?n.palette.primary.main:n.palette.grey[300],borderRadius:"8px",alignItems:"center",width:"100%","&:hover":{cursor:"pointer",backgroundColor:n.palette.action.hover}}},""),w=(0,t.ZP)("div",{target:"e19jvlek0"})(function(e){var n=e.theme;return(0,Z.Z)({display:"flex",gap:"8px",width:"100%"},n.breakpoints.down("sm"),{flexDirection:"column",width:"100%"})},""),k=function(e){var n=e.data,r=e.initialValue,t=e.handleChange,l=e.error,a=(0,i.useState)(r),o=a[0],s=a[1];return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(w,{children:n.map(function(e){var r,i=o===e;return(0,C.jsxs)(S,{isSelected:i,onClick:(r=e.value,function(){s(n.find(function(e){return e.value===r})),t(r)}),children:[(0,C.jsx)(y.Z,{checked:i,inputProps:{"aria-label":e.label},size:"small",value:e.value}),(0,C.jsx)(f.Z,{variant:"body2",children:e.label})]},e.value)})}),l&&(0,C.jsx)(P.Z,{component:"p",sx:{color:"error.main",marginLeft:"14px"},children:l})]})},A="job-alert-form",E=(0,t.ZP)("div",{target:"e1lan2jx3"})(function(e){return{background:e.theme.palette.background.paper,padding:"16px",borderRadius:"16px",gap:"16px",boxShadow:"0px 0px 0px 1px #E0E0E0"}},""),q=(0,t.ZP)("div",{target:"e1lan2jx2"})(function(){return{display:"flex",justifyContent:"space-between",alignItems:"center"}},""),T=(0,t.ZP)("form",{target:"e1lan2jx1"})(function(){return{display:"flex",flexDirection:"column",alignItems:"flex-start",maxWidth:600,margin:"0 auto",width:"100%",gap:"24px",padding:" 16px 0"}},""),W=(0,t.ZP)(h.Z,{target:"e1lan2jx0"})(function(){return{border:"1px solid transparent !important",boxShadow:"none !important",fontSize:"20px","& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},""),I=function(e,n,r){var i=e.location,t=e.company,l=e.type,a=e.workEnvironment,o=e.radius,s=e.salary,u=e.hasSalary,m=(0,d.YB)(n),f=(0,d.x4)(n),h=(0,v.IX)(i,o),p=(0,v.$Z)(o),x=(0,v.T)(s,!!u),b=h&&h.length>0?h.map(c.mv).join(",")+" (+".concat(p," km)"):n("userProfile:section.jobAlerts.edit.form.name.allLocations"),j=a.length>0?m.filter(function(e){return a.includes(e.value)}).map(function(e){return e.label}).join(", "):"",g=l.length>0?f.filter(function(e){return l.includes(e.value)}).map(function(e){return e.label}).join(", "):"",F=t.length>0?t.map(function(e){var n;return(null===(n=r.find(function(n){return n.value===e}))||void 0===n?void 0:n.label)||""}).join(", "):n("userProfile:section.jobAlerts.edit.form.name.allCompanies"),Z=j||g?[j,g].filter(function(e){return!!e}).join(", "):n("userProfile:section.jobAlerts.edit.form.name.noFilters");return n("userProfile:section.jobAlerts.edit.form.name.nameFromFilters",{filters:Z,locations:b,companies:F,salary:null!=x&&x.from?(0,c.sx)({from:x.from,currency:x.currency})+" ":""})},D=function(e){var n,r,t=e.data,c=e.onDiscardEdit,v=e.onFormSubmit,Z=(0,s.$G)([d.yq.OPPORTUNITIES,d.yq.USER_PROFILE]).t,y=(0,x.ne)(),P=y.currentUrlParams,S=y.handleFilterChanged,w=y.handleLocationFilterChanged,D=y.handleSalaryFilterChanged,_=y.handleFullTextSearchChanged,O=y.handleSavedFilterChanged,M=y.handleSimilarFilterChanged,R=y.gqlFilters,L=(0,a.Y6)().data,N=(0,i.useMemo)(function(){var e;return null==L?void 0:null===(e=L.companies)||void 0===e?void 0:e.companies.map(function(e){return{label:e.name,value:e.id}})},[L]),V=(0,i.useMemo)(function(){return[{label:Z("userProfile:section.jobAlerts.edit.form.activeFrom.options.now"),value:(0,j.Z)(new Date,u)},{label:Z("userProfile:section.jobAlerts.edit.form.activeFrom.options.tomorrow"),value:(0,j.Z)((0,g.Z)(new Date,{days:1}),u)},{label:Z("userProfile:section.jobAlerts.edit.form.activeFrom.options.nextWeek"),value:(0,j.Z)((0,F.Z)(new Date),u)},{label:Z("userProfile:section.jobAlerts.edit.form.activeFrom.options.inTwoWeeks"),value:(0,j.Z)((0,g.Z)(new Date,{weeks:2}),u)}]}
1,[Z]),z=(0,i.useMemo)(function(){return l.Ry({email:l.Z_().required("Email is required").email("Needs to be valid email"),activeFrom:l.Z_().required("Start from date is required"),name:l.Z_().required("Name is required")})},[Z]),B=V.find(function(e){return e.value===(null==t?void 0:t.activeFrom)}),U=(0,p.TA)({initialValues:{name:(null==t?void 0:t.name)||"",activeFrom:(null==B?void 0:B.value)||"",email:(null==t?void 0:t.email)||"",id:(null==t?void 0:t.id)||"",filters:(null==t?void 0:t.filters)||{}},validationSchema:z,onSubmit:function(e){v(e)}}),Y=U.handleChange,$=U.handleBlur,G=U.handleSubmit,H=U.values,X=U.setFieldValue,J=U.errors,K=U.touched,Q=U.dirty;(0,i.useEffect)(function(){null!=t&&t.name||K.name||X("name",I(P,Z,N||[]),!1)},[P,null==t?void 0:t.name,Q,X,Z,K,N]),(0,i.useEffect)(function(){X("filters",R,!1)},[R,X]);var ee=Object.keys(J).length>0;return(0,C.jsxs)(E,{children:[(0,C.jsxs)(q,{children:[(0,C.jsx)(o.Z,{color:"error",onClick:c,variant:"text",children:Z("userProfile:section.jobAlerts.edit.discard")}),(0,C.jsx)(o.Z,{"data-testid":"job-alert-save",disabled:ee,form:A,type:"submit",variant:"outlined",children:Z("userProfile:section.jobAlerts.edit.save")})]}),(0,C.jsxs)(T,{id:A,onSubmit:G,noValidate:!0,children:[(0,C.jsx)(m.Z,{display:"flex",flexDirection:"column",width:"100%",children:(0,C.jsx)(W,{error:!!J.name,helperText:null!==(n=J.name)&&void 0!==n?n:Z("userProfile:section.jobAlerts.edit.subtitle"),InputProps:{style:{fontSize:"20px",fontWeight:700}},name:"name",onBlur:$,onChange:Y,placeholder:Z("userProfile:section.jobAlerts.edit.createTitle"),value:H.name,variant:"outlined",fullWidth:!0,multiline:!0})}),(0,C.jsx)(h.Z,{error:!!J.email,helperText:null!==(r=J.email)&&void 0!==r?r:Z("userProfile:section.jobAlerts.edit.form.email.helperText"),label:Z("userProfile:section.jobAlerts.edit.form.email.label"),name:"email",onChange:Y,size:"small",value:null==H?void 0:H.email,variant:"outlined",fullWidth:!0,required:!0}),(0,C.jsxs)(m.Z,{children:[(0,C.jsx)(f.Z,{fontWeight:700,mb:1,variant:"subtitle2",children:Z("userProfile:section.jobAlerts.edit.form.filters.label")}),(0,C.jsx)(m.Z,{display:"flex",flexWrap:"wrap",gap:1,children:(0,C.jsx)(b.HO,{hiddenFilters:[],onFilterChanged:S,onFulltextFilterChanged:_,onLocationFilterChanged:w,onSalaryFilterChanged:D,onSavedFilterChanged:O,onSimilarFilterChanged:M})})]}),(0,C.jsxs)(m.Z,{width:"100%",children:[(0,C.jsx)(f.Z,{fontWeight:700,mb:1,variant:"subtitle2",children:Z("userProfile:section.jobAlerts.edit.form.activeFrom.label")}),(0,C.jsx)(k,{data:V,error:J.activeFrom,handleChange:function(e){X("activeFrom",e)},initialValue:B})]})]})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.