1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9240],{27484:function(e){var t,n,r,i,o,a,s,l,c,u,d,p,m,f,h,y,g,b,v,x,j,_;e.exports=(t="millisecond",n="second",r="minute",i="hour",o="week",a="month",s="quarter",l="year",c="date",u="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},(h={})[f="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}},y="$isDayjsObject",g=function(e){return e instanceof j||!(!e||!e[y])},b=function e(t,n,r){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();h[o]&&(i=o),n&&(h[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;h[s]=t,i=s}return!r&&i&&(f=i),i||!r&&f},v=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new j(n)},(x={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+m(Math.floor(n/60),2,"0")+":"+m(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,a),o=n-i<0,s=t.clone().add(r+(o?-1:1),a);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:a,y:l,w:o,d:"day",D:c,h:i,m:r,s:n,ms:t,Q:s})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=b,x.i=g,x.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},_=(j=function(){function e(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var m=e.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return this.$d.toString()!==u},m.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return v(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<v(e)},m.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var s=this,u=!!x.u(t)||t,d=x.p(e),p=function(e,t){var n=x.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return u?n:n.endOf("day")},m=function(e,t){return x.w(s.toDate()[e].apply(s.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},f=this.$W,h=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(d){case l:return u?p(1,0):p(31,11);case a:return u?p(1,h):p(0,h+1);case o:var b=this.$locale().weekStart||0,v=(f<b?f+7:f)-b;return p(u?y-v:y+(6-v),h);case"day":case c:return m(g+"Hours",0);case i:return m(g+"Minutes",1);case r:return m(g+"Seconds",2);case n:return m(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,o){var s,u=x.p(e),d="set"+(this.$u?"UTC":""),p=((s={}).day=d+"Date",s[c]=d+"Date",s[a]=d+"Month",s[l]=d+"FullYear",s[i]=d+"Hours",s[r]=d+"Minutes",s[n]=d+"Seconds",s[t]=d+"Milliseconds",s)[u],m="day"===u?this.$D+(o-this.$W):o;if(u===a||u===l){var f=this.clone().set(c,1);f.$d[p](m),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[x.p(e)]()},m.add=function(e,t){var s,c=this;e=Number(e);var u=x.p(t),d=function(t){var n=v(c);return x.w(n.date(n.date()+Math.round(t*e)),c)};if(u===a)return this.set(a,this.$M+e);if(u===l)return this.set(l,this.$y+e);if("day"===u)return d(1);if(u===o)return d(7);var p=((s={})[r]=6e4,s[i]=36e5,s[n]=1e3,s)[u]||1,m=this.$d.getTime()+e*p;return x.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,d=n.meridiem,m=function(e,n,i,o){return e&&(e[
1n]||e(t,r))||i[n].slice(0,o)},f=function(e){return x.s(o%12||12,e,"0")},h=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return m(n.monthsShort,s,c,3);case"MMMM":return m(c,s);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return m(n.weekdaysMin,t.$W,l,2);case"ddd":return m(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return x.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return x.s(a,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},m.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},m.diff=function(e,t,c){var u,d=this,p=x.p(t),m=v(e),f=(m.utcOffset()-this.utcOffset())*6e4,h=this-m,y=function(){return x.m(d,m)};switch(p){case l:u=y()/12;break;case a:u=y();break;case s:u=y()/3;break;case o:u=(h-f)/6048e5;break;case"day":u=(h-f)/864e5;break;case i:u=h/36e5;break;case r:u=h/6e4;break;case n:u=h/1e3;break;default:u=h}return c?u:x.a(u)},m.daysInMonth=function(){return this.endOf(a).$D},m.$locale=function(){return h[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=b(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},e}()).prototype,v.prototype=_,[["$ms",t],["$s",n],["$m",r],["$H",i],["$W","day"],["$M",a],["$y",l],["$D",c]].forEach(function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,j,v),e.$i=!0),v},v.locale=b,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=h[f],v.Ls=h,v.p={},v)},26235:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var r=n(59499),i=n(67294),o=n(18876),a=n(46508);n(54692),n(5083),n(21857);var s=n(97143);n(76985),n(99870);var l=n(44122);n(98130);var c=n(85893),u=n(96808),d=n(82580);n(27420);var p=n(33124),m=n(17030),f=n(61676),h=n(4614),y=n(36129),g=n(10853),b=n(3528),v=function(e){var t=(0,i.useContext)(m.Tr),n=(t.onCancel,t.onSubmit),r=t.t_steps,o=t.submit_errors,a=t.isSubmitting,u=(0,i.useContext)(b.ko).user;return(0,c.jsx)(s.Z,{fullHight:!0,vertically_center:!1,children:(0,c.jsx)(p.Z,{children:(0,c.jsx)("div",{className:"flex flex-col md:flex-row",children:(0,c.jsx)("div",{className:"w-full pb-6 md:pr-8 ",children:(0,c.jsx)(d.J9,{validate:function(e){return{}},initialValues:{newsletter:!1,bio:"",initBio:""},onSubmit:n,children:function(e){var t=e.errors,n=e.handleSubmit,i=(e.handleChange,e.setFieldValue),s=(e.handleBlur,e.submitForm),d=e.values;return e.touched,(0,c.jsxs)("form",{onSubmit:n,children:[!u&&(0,c.jsx)(g.Z,{children:(0,c.jsx)("div",{className:"py-4",children:(0,c.jsxs)(l.Z,{children:[(0,c.jsx)("strong",{children:"Success!"}),(0,c.jsx)("p",{children:"You will now be emailed an activation email to put your account live. If your donât receive it in your inbox in 1 minute please check your spam filter."}),(0,c.jsx)("p",{className:"mt-4",children:"Please, continue to edit your account below"}),r>2&&(0,c.jsx)("p",{className:"mt-4",children:"Please activate your account and proceed to next step."})]})})}),(0,c.jsx)(f.Z,{type:"file",onChange:function(e){i("image",e)},value:d.image,upload_type:"profile",size:"news",label:"Profile image",placeholder:"Image",margin:"normal",variant:"outlined",name:"image",isError:!!t.image||o&&o.image}),(0,c.jsx)(h.Z,{uploadType:h.i.PROFILE,placeholder:"About",onChange:function(e){d.bio=e,i("bio",e)},options:{height:300},setContents:d.initBio,isError:!!t.bio||o&&o.bio}),(0,c.jsxs)("div",{className:"flex justify-between items-center pt-4",children:[(0,c.jsx)("div",{}),(0,c.jsx)("div",{className:"space-y-4 ",children:(0,c.jsx)(y.Z,{onClick:function(){s()},icon:"icon-ok_circle",label:"Save",isSubmitting:a})})]})]})}})})})})})},x=n(30279),j=n(55827),_=n(75187),w=n(30120),O=n(66275),S=n(50653),C=function(){var e=(0,i.useContext)(m.Tr),t=(e.onCancel,e.onSubmit),n=(e.company_name,e.company_type,e.isFreelancer),r=(e.location,e.loading),o=e.types,a=e.step3_init_values,l=e.submit_errors,f=e.isSubmitting,h=e.getSchoolData;return(0,c.jsx)(s.Z,{fullHight:!0,vertically_center:!1,data_cy:"Layout",children:(0,c.jsx)(p.Z,{loading:r,children:(0,c.jsx)("div",{className:"flex flex-col md:flex-row",children:(0,c.jsxs)("div",{className:"w-full pb-6 md:pr-8 ",children:[a&&(0,c.jsx)(d.J9,{validate:function(e){return{}},initialValues:a,onSubmit:t,children:function(e){var t=e.errors,r=e.handleSubmit,i=e.handleChange,s=e.setFieldValue,d=e.handleBlur,p=e.submitForm,m=e.values,g=e.touched;return(0,c.jsx)("form",{onSubmit:r,children:null!=a&&a.isStudent?(0,c.jsxs)("div",{children:[(0,c.jsx)(S.Z,{type:"text",getSuggestions:h,isSearchable:!0,onChange:function(e){Array.isArray(e)?(m.school=e[1],s("school",e[1]),s("schoolId",null)):(m.schoolId=e.id,s("schoolId",e.id),s("school",null))},value:m.school,label:"School / Institution",onBlur:d,error:!!t.schoolId||l&&l.schoolId}),(0,c.jsx)(O.Z,{placeholder:"Study Start Date",value:m.studyStartDate,onChange:function(e){m.studyStartDate=e.startDate,
1s("studyStartDate",e.startDate)},label:"Study Start Date",name:"studyStartDate",onBlur:d,error:!!t.studyStartDate||l&&l.studyStartDate}),(0,c.jsx)(O.Z,{placeholder:"Study End Date",value:m.studyEndDate,minDate:m.studyEndDate||Date.parse(w.ou.fromISO(new Date).toFormat("LLL dd, yyyy")),onChange:function(e){m.studyEndDate=e.endDate,s("studyEndDate",e.endDate)},label:"Study End Date",name:"studyEndDate",onBlur:d,error:!!t.studyEndDate||l&&l.studyEndDate}),(0,c.jsx)(u.Z,{label:"ISIC",type:"text",name:"isic",placeholder:"ISIC",onChange:i,onBlur:d,value:m.isic,error:t.isic||l&&l.isic,touched:g.isic}),(0,c.jsxs)("div",{className:"flex justify-between items-center pt-4",children:[(0,c.jsx)("div",{}),(0,c.jsx)("div",{className:"space-y-4 ",children:(0,c.jsx)(y.Z,{onClick:function(){p()},icon:"icon-ok_circle",label:"Next",isSubmitting:f})})]})]}):(0,c.jsxs)("div",{children:[(0,c.jsx)(u.Z,{label:n?"Pro account name":"Company name",type:"text",name:"name",placeholder:n?"Pro account name":"Company name",onChange:i,onBlur:d,value:m.name,error:t.name||l&&l.name,touched:g.name}),(0,c.jsx)(j.Z,{label:"City",type:"text",name:"googlePlaceId",onChange:function(e){m.googlePlaceId=e,s("googlePlaceId",e),m.cityId=null,s("cityId",null)},onBlur:d,value:m.googlePlaceId,error:!!t.googlePlaceId||l&&l.googlePlaceId}),!n&&(0,c.jsx)(x.Z,{label:"Company type",type:"text",name:"companyTypeId",options:o.map(function(e){return{value:e.id,label:e.name}}),isSearchable:!0,onChange:function(e){m.companyTypeId=e.value,s("companyTypeId",e.value)},onBlur:d,value:m.companyTypeId,error:t.companyTypeId||l&&l.companyTypeId,touched:g.companyTypeId}),(0,c.jsxs)("div",{className:"flex justify-between items-center pt-4",children:[(0,c.jsx)("div",{}),(0,c.jsx)("div",{className:"space-y-4 ",children:(0,c.jsx)(y.Z,{onClick:function(){p()},icon:"icon-ok_circle",label:"Next",isSubmitting:f})})]})]})})}}),!a&&(0,c.jsx)("div",{className:"pt-4",children:(0,c.jsx)(_.Z,{})})]})})})})},I=n(92946),P=function(e){var t=(0,i.useContext)(m.Tr),n=(t.onCancel,t.onSubmit),r=t.company_name,o=t.location,a=t.groups,g=t.association,v=t.holding_company,j=t.company_type,_=t.types,w=t.submit_errors,O=t.isSubmitting,S=(t.is_freelancer,t.is_student);return(0,i.useContext)(b.ko).user,(0,c.jsx)(s.Z,{fullHight:!0,vertically_center:!1,children:(0,c.jsx)(p.Z,{children:(0,c.jsx)("div",{className:"flex flex-col md:flex-row",children:(0,c.jsx)("div",{className:"w-full ",children:(0,c.jsx)(d.J9,{validate:function(e){return{}},initialValues:{newsletter:!1,contacts:[{email:"",name:"",title:""}],links:[{title:"",url:""}],images:[{image:null}],description:"",specialities:"",awards:"",clients:"",initDescription:"",initAwards:"",initSpecialities:"",initClients:"",name:r,location:o,company_type:j},onSubmit:n,children:function(e){var t,n=e.errors,i=e.handleSubmit,s=e.handleChange,d=e.setFieldValue,p=e.handleBlur,m=e.submitForm,b=e.values,C=e.touched;return(0,c.jsxs)("form",{onSubmit:i,children:[(0,c.jsx)("div",{className:"py-2",children:(0,c.jsxs)(l.Z,{children:["Name: ",(0,c.jsx)("strong",{children:r})]})}),j&&(0,c.jsx)("div",{className:"py-2",children:(0,c.jsxs)(l.Z,{children:["Company type:"," ",(0,c.jsx)("strong",{children:(null==_?void 0:null===(t=_.find(function(e){return e.id==j}))||void 0===t?void 0:t.name)||""})]})}),(0,c.jsx)("div",{className:"py-2 pb-4",children:(0,c.jsxs)(l.Z,{children:["Location: ",(0,c.jsx)("strong",{children:o})]})}),!S&&(0,c.jsxs)("div",{children:[(0,c.jsx)(x.Z,{label:"Company group",type:"text",name:"companyId",options:a.map(function(e){return{value:e.id,label:e.name}}),isSearchable:!0,onChange:function(e){b.company=e.value,d("companyId",e.value)},onBlur:p,value:b.companyId,error:n.companyId||w&&w.companyId,touched:C.companyId}),(0,c.jsx)(x.Z,{label:"Associations",type:"text",name:"partnersIds",options:g.map(function(e){return{value:e.id,label:e.name}}),multiselect:!0,isSearchable:!0,onChange:function(e){b.partnersIds=e.map(function(e){return e.value}),d("partnersIds",e.map(function(e){return e.value}))},onBlur:p,value:b.partnersIds,error:n.partnersIds||w&&w.partnersIds,touched:C.partnersIds}),(0,c.jsx)(x.Z,{label:"Network",type:"text",name:"holdingCompanyId",options:v.map(function(e){return{value:e.id,label:e.name}}),isSearchable:!0,onChange:function(e){b.holdingCompanyId=e.value,d("holdingCompanyId",e.value)},onBlur:p,value:b.holdingCompanyId,error:n.holdingCompanyId||w&&w.holdingCompanyId,touched:C.holdingCompanyId}),(0,c.jsx)(u.Z,{label:"Address",type:"text",name:"address",placeholder:"Address",onChange:s,onBlur:p,value:b.address,error:n.address||w&&w.address,touched:C.address}),(0,c.jsx)(u.Z,{label:"Zipcode",type:"text",name:"zipcode",placeholder:"Zipcode",onChange:s,onBlur:p,value:b.zipcode,error:n.zipcode||w&&w.zipcode,touched:C.zipcode}),(0,c.jsx)(u.Z,{label:"Phone",type:"text",name:"phone",placeholder:"Phone",onChange:s,onBlur:p,value:b.phone,error:n.phone||w&&w.phone,touched:C.phone}),(0,c.jsx)(u.Z,{label:"Email",type:"text",name:"email",placeholder:"Email",onChange:s,onBlur:p,value:b.email,error:n.email||w&&w.email,touched:C.email}),(0,c.jsx)(u.Z,{label:"Url",type:"text",name:"url",placeholder:"Url",onCh
1ange:s,onBlur:p,value:b.url,error:n.url||w&&w.url,touched:C.url}),(0,c.jsx)(f.Z,{type:"file",onChange:function(e){d("logo",e)},size:"news",label:"Logo",placeholder:"Image",margin:"normal",variant:"outlined",name:"logo",isError:!!n.logo||w&&w.logo}),(0,c.jsxs)("div",{className:"py-2 space-y-2",children:[(0,c.jsx)(l.Z,{children:"About"}),(0,c.jsx)(h.Z,{uploadType:h.i.COMPANY_OFFICE,placeholder:"About",onChange:function(e){b.description=e,d("description",e)},options:{height:300},setContents:b.initDescription,isError:!!n.description||w&&w.description})]})]}),(0,c.jsxs)("div",{className:"py-2 space-y-2",children:[(0,c.jsx)(l.Z,{children:"Specialities"}),(0,c.jsx)(h.Z,{uploadType:h.i.COMPANY_OFFICE,placeholder:"Specialities",onChange:function(e){b.specialities=e,d("specialities",e)},options:{height:300},setContents:b.initSpecialities,isError:!!n.specialities||w&&w.specialities})]}),(0,c.jsxs)("div",{className:"py-2 space-y-2",children:[(0,c.jsx)(l.Z,{children:"Awards"}),(0,c.jsx)(h.Z,{uploadType:h.i.COMPANY_OFFICE,placeholder:"Awards",onChange:function(e){b.awards=e,d("awards",e)},options:{height:300},setContents:b.initAwards,isError:!!n.awards||w&&w.awards})]}),(0,c.jsxs)("div",{className:"py-2 space-y-2",children:[(0,c.jsx)(l.Z,{children:"Clients"}),(0,c.jsx)(h.Z,{uploadType:h.i.COMPANY_OFFICE,placeholder:"Clients",onChange:function(e){b.clients=e,d("clients",e)},options:{height:300},setContents:b.initClients,isError:!!n.clients||w&&w.clients})]}),(0,c.jsxs)("div",{className:"flex justify-between items-center pt-4",children:[(0,c.jsx)("div",{}),(0,c.jsx)("div",{className:"space-y-4 ",children:(0,c.jsx)(y.Z,{onClick:function(){m()},icon:"icon-ok_circle",label:"Save",isSubmitting:O})})]})]})}})})})})})},Z=n(86664);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var k=function(e){var t=(0,i.useContext)(m.Tr),n=t.step,r=t.stripePromise;return 2==n?(0,c.jsx)(v,N({},e)):3==n?(0,c.jsx)(C,{}):4==n?(0,c.jsx)(Z.Elements,{stripe:r,children:(0,c.jsx)(Z.ElementsConsumer,{children:function(e){var t=e.stripe,n=e.elements;return(0,c.jsx)(I.Z,{stripe:t,elements:n,remaining:!1})}})}):5==n?(0,c.jsx)(P,N({},e)):(0,c.jsx)("div",{})},$=n(34579),T=n(50029),A=n(87794),E=n.n(A),M=n(31955),F=n(86885),B=n(54465),z=n(11163),L=n.n(z),Y=n(99850),J=n(72635),H=n.n(J),V=n(67067),U=n(43517),R=n.n(U),W=n(150);n(39646);var q=n(91444),G=n(11752);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Q=n.n(G)()().publicRuntimeConfig,ee=Q.stripeKey,et=Q.mylbbUrl,en={id:8,title:"Free",category:"free",stripe_plan:null},er=function(e){var t,n,r,o,a=(0,z.useRouter)(),s=(a.pathname,a.query);a.push;var l=(0,i.useContext)(b.ko),u=l.messagesCallback,d=l.clearMessages,p=l.user,f=(0,i.useState)({submit_errors:null,plan:null,plan_id:null,isSubmitting:!1,step:s.step,tax_rate:Y.h3,taxAmount:0,promotaxAmount:null,promoTotalAmount:null,promoerror:null,promoAmount:null,submitting_code:!1,planPrice:0,country:"US",codeApplied:!1,store:{},step3_init_values:null,totalAmount:0,canSubmit:!0,countries:H()().getData()||[]}),h=f[0],y=f[1],g=function(e,t){e==Y.xj?y(function(t){return X(X({},t),{},{country:e,tax_rate:Y.h3,taxAmount:parseFloat(h.planPrice*Y.h3).toFixed(2),promotaxAmount:h.promoAmount?parseFloat(h.promoAmount*Y.h3).toFixed(2):null,totalAmount:(parseFloat(h.planPrice)+parseFloat(h.planPrice*Y.h3)).toFixed(2),promoTotalAmount:h.promoAmount?(parseFloat(h.promoAmount)+parseFloat(h.promoAmount*Y.h3)).toFixed(2):null,canSubmit:!0})}):y(function(t){return X(X({},t),{},{country:e,tax_rate:0,taxAmount:0,promotaxAmount:h.promoAmount?0:null,totalAmount:h.planPrice,promoTotalAmount:h.promoAmount?parseFloat(h.promoAmount).toFixed(2):null,canSubmit:!0})})};(0,i.useEffect)(function(){g("US")},[h.planPrice]),(0,i.useEffect)(function(){g(h.country)},[h.promoAmount]);var v=(t=(0,T.Z)(E().mark(function e(t,n,r){var i,o,a,s;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d(),y(function(e){return X(X({},e),{},{canSubmit:!1})}),e.next=4,n.createPaymentMethod({type:"card",card:r.getElement(Z.CardElement)});case 4:o=(i=e.sent).error,a=i.paymentMethod,o&&(y(function(e){return X(X({},e),{},{canSubmit:!0,submit_errors:o})}),u({message:o.message,type:"error"})),a&&(s={plan:h.plan.stripe_plan||h.store.stripe_plan_im,company_
1slug:h.store.company_slug,description:t.name,payment_method:a.id,tax_rate:100*t.tax_rate,country:Array.isArray(t.country)&&t.country?t.country[0]:t.country,vat:t.vat},h.promoAmount?s.code=t.code:s.code=null,(0,W.CZ)(s,p).then(function(e){var r=e.latest_invoice.payment_intent;if(r){var i=r.client_secret,o=r.status;"requires_action"===o||"requires_source_action"===o?n.confirmCardPayment(i).then(function(n){n.error||(t.company_slug=h.store.company_slug,t.plan=h.store.plan_id_im||h.store.plan_id,t.stripe_id=e.id,I(t))}):(t.company_slug=h.store.company_slug,t.plan=h.store.plan_id_im||h.store.plan_id,t.stripe_id=e.id,I(t))}},function(e){y(function(t){return X(X({},t),{},{canSubmit:!0,submit_errors:e})}),e.message&&u({message:e.message,type:"error"})}));case 9:case"end":return e.stop()}},e)})),function(e,n,r){return t.apply(this,arguments)});(0,i.useEffect)(function(){var e=new(R())(Y.XZ),t=null;if(M.Z.get("lbbtmp"))try{var t=JSON.parse(e.decrypt(M.Z.get("lbbtmp")))}catch(n){var t=e.decrypt(M.Z.get("lbbtmp"))}else t={};y(function(e){return X(X({},e),{},{store:t})});var n=s.plan||t.plan_id||en.id;(0,W.Z6)({id:n}).then(function(e){n!=en.id&&(0,W.V3)().then(function(n){y(function(t){return X(X({},t),{},{plan:e})});var r=n.filter(function(t){return t.id==e.stripe_plan})[0],i=null==r?void 0:r.amount;i=(i/100).toFixed(2),"Student"===t.plan_title?y(function(n){var r,o;return X(X({},n),{},{plans:e,planPrice:i,remaining_amount:0,new_plan_amount:i,step3_init_values:{school:"",schoolId:"",isStudent:t.is_student,name:t.company_name,cityId:t.location_id||(null==p?void 0:null===(r=p.profilesByUserId[0])||void 0===r?void 0:null===(o=r.location)||void 0===o?void 0:o.id),studyStartDate:"",studyEndDate:"",companyTypeId:t.company_type}})}):y(function(n){return X(X({},n),{},{plans:e,planPrice:i,remaining_amount:0,new_plan_amount:i,step3_init_values:{newsletter:!1,bio:"",isFreelancer:t.is_freelancer,name:t.company_name,cityId:t.cityId,companyTypeId:t.company_type,initBio:""}})})},function(e){})},function(){})},[p]);var x=(0,i.useState)(null);x[0],x[1];var j=(n=(0,T.Z)(E().mark(function e(t){var n;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.NQ)({text:t});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),_=(r=(0,T.Z)(E().mark(function e(t){return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.Br)({name:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)}),w=(0,F.a$)({news_type:!1,job_category:!1,continent:!1,countriesByNews:!1,countriesByWork:!1,countriesByJobs:!1,countriesByCompanies:!1,location:!1,genre:!1,category:!1,company_type:!0,association:!0,groups:!0,holding_company:!0,award_medium:!1,award_category:!1,award_company_type:!1,credit_fields:!1}),O=w.data,S=w.loading,C=w.error,I=function(e){d(),y(function(e){return X(X({},e),{},{canSubmit:!1,isSubmitting:!0})});var t=new(R())(Y.XZ),n={};if(M.Z.get("lbbtmp")){try{var r=JSON.parse(t.decrypt(M.Z.get("lbbtmp")))}catch(e){var r=t.decrypt(M.Z.get("lbbtmp"))}n=X({},r)}if(2==s.step){e.googlePlaceId=h.store.googlePlaceId;var i=(0,W.IS)(X({},e));(0,V.ie)(i).then(function(e){if(8===h.store.plan_id){n={},t.encrypt(JSON.stringify(n));var r=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",r),L().push(et+"/auth/login")}else{if(M.Z.get("lbbtmp")){try{var i=JSON.parse(t.decrypt(M.Z.get("lbbtmp")))}catch(e){var i=t.decrypt(M.Z.get("lbbtmp"))}n=X({},i)}n.reg_step=3;var r=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",r),q.Am.success("Please activate your account",{position:q.Am.POSITION.BOTTOM_RIGHT}),L().push(et+"/auth/login?plan="+h.store.plan_id)}},function(e){y(function(t){return X(X({},t),{},{submit_errors:e,isSubmitting:!1})}),e.status&&u({message:(0,Y.IM)(e),type:"error"})})}if(3==s.step){var o,a,l=(0,W.IS)(e);l.isStudent?(l=X(X({},l),{},{cityId:h.store.cityId||(null==p?void 0:null===(o=p.profilesByUserId[0])||void 0===o?void 0:null===(a=o.location)||void 0===a?void 0:a.id)}),l=(0,W.IS)(l),e.schoolId?delete l.school:delete l.schoolId,(0,W.Q1)(l,p).then(function(e){if(M.Z.get("lbbtmp")){try{var r,i,o,a,s=JSON.parse(t.decrypt(M.Z.get("lbbtmp")))}catch(e){var s=t.decrypt(M.Z.get("lbbtmp"))}n=X({},s)}
1n.reg_step=5,n.company_name=e.name,n.company_slug=e.slug,n.companyTypeId=n.company_type,n.cityId=n.location_id||(null==p?void 0:null===(r=p.profilesByUserId[0])||void 0===r?void 0:null===(i=r.location)||void 0===i?void 0:i.id),n.cityName=n.location||(null==p?void 0:null===(o=p.profilesByUserId[0])||void 0===o?void 0:null===(a=o.location)||void 0===a?void 0:a.location),n.isic=e.isic,n.studyStartDate=e.studyStartDate,n.studyEndDate=e.studyEndDate;var l=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",l),window.location.href="/accounts/register/step/5"},function(e){y(function(t){return X(X({},t),{},{submit_errors:e,isSubmitting:!1})}),e.status&&u({message:(0,Y.IM)(e),type:"error"})})):(e.cityId?delete l.googlePlaceId:delete l.cityId,(0,W.Ce)(l,p).then(function(e){if(M.Z.get("lbbtmp")){try{var r=JSON.parse(t.decrypt(M.Z.get("lbbtmp")))}catch(e){var r=t.decrypt(M.Z.get("lbbtmp"))}n=X({},r)}n.reg_step=4,n.company_name=e.name,n.company_slug=e.slug,n.companyTypeId=e.companyTypeId,n.cityId=e.city.id,n.cityName=e.city.location;var i=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",i),window.location.href="/accounts/register/step/4"},function(e){y(function(t){return X(X({},t),{},{submit_errors:e,isSubmitting:!1})}),e.status&&u({message:(0,Y.IM)(e),type:"error"})}))}if(4==s.step){if(h.store&&h.store.is_freelancer){n={},t.encrypt(JSON.stringify(n));var c=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",c),q.Am.success("Profile created successfully",{position:q.Am.POSITION.BOTTOM_RIGHT}),p?L().push("/mylbb"):L().push("/")}else{if(M.Z.get("lbbtmp")){try{var r=JSON.parse(t.decrypt(M.Z.get("lbbtmp")))}catch(e){var r=t.decrypt(M.Z.get("lbbtmp"))}n=X({},r)}n.reg_step=5;var c=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",c),window.location.href="/accounts/register/step/5"}}if(5==s.step){var m=(0,W.IS)(e);m=X(X({},m),{},{name:h.store.company_name,companyTypeId:h.store.companyTypeId,company_slug:h.store.company_slug,cityId:h.store.cityId}),m=(0,W.IS)(m),(0,V.j1)(m).then(function(e){n={},t.encrypt(JSON.stringify(n));var r=t.encrypt(JSON.stringify(n));M.Z.set("lbbtmp",r),q.Am.success("Profile created successfully",{position:q.Am.POSITION.BOTTOM_RIGHT}),p?L().push("/mylbb"):L().push("/")},function(e){y(function(t){return X(X({},t),{},{submit_errors:e,isSubmitting:!1})}),e.status&&u({message:(0,Y.IM)(e),type:"error"})})}},P=(0,B.J)(ee);return(0,c.jsx)(m.Tr.Provider,{value:X(X({error:C,setTax:g},h.store),{},{tax_rate:h.tax_rate,applypromo:function(e){y(function(e){return X(X({},e),{},{promoerror:null,submitting_code:!0})}),(0,W.PW)({code:e,price:h.plan.stripe_plan}).then(function(e){y(function(t){return X(X({},t),{},{promoAmount:e.price,codeApplied:!0,submitting_code:!1})})},function(e){y(function(t){return X(X({},t),{},{promoerror:e.message,promoAmount:null,codeApplied:!1,submitting_code:!1})})})},promoTotalAmount:h.promoTotalAmount,promoerror:h.promoerror,codeApplied:h.codeApplied,submitting_code:h.submitting_code,planPrice:h.planPrice,taxAmount:h.taxAmount,totalAmount:h.totalAmount,step3_init_values:h.step3_init_values,loading:S,plan_title:null===(o=h.plan)||void 0===o?void 0:o.title,new_plan_amount:h.new_plan_amount,startPaymentProcess:v,countries:h.countries,canSubmit:h.canSubmit,stripePromise:P,groups:O?O.groups:[],association:O?O.association:[],holding_company:O?O.holding_company:[],types:O?O.company_type:[],step:s.step,isSubmitting:h.isSubmitting,onSubmit:I,submit_errors:h.submit_errors,getCompaniesData:j,getSchoolData:_,credit_fields:O?O.credit_fields:[],location:h.store.cityName,company_type:h.store.is_student?"":h.store.companyTypeId||h.store.company_type,is_freelancer:h.store.is_freelancer,is_student:h.store.is_student}),children:e.children})};function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ea=(0,$.h)((0,o.C)(function(e){return(0,c.jsx)(b.Kv,eo(eo({},e),{},{children:(0,c.jsxs)(er,eo(eo({},e),{},{children:[(0,c.jsx)(a.Z,{meta:{},noindexprop:!0}),(0,c.jsx)(k,eo({},e))]}))}))}))},4614:function(e,t,n){"use strict";n.d(t,{i:function(){return f}});var r=n(59499),i=n(4730),o=n(5152),a=n.n(o),s=n(67294),l=n(44122),c=n(85893),u=["options","isError","height"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=a()(function(){return Promise.all([n.e(5714),n.e(3126),n.e(8598),n.e(5902)]).then(n.bind(n,77185))},{ssr:!1,loadableGenerated:{webpack:function(){return[77185]}}}),f={AWARD_ENTRY:"award-entry-wysiwyg",COMPANY_OFFICE:"company-office-wysiwyg",COMPANY:"company-wysiwyg",JOB:"job-wysiwyg",NEWS:"news-wysiwyg",PROFILE:"profile-wysiwyg",WORK:"work-wysiwyg"};t.Z=function(e){var t=e.options,n=e.isError,r=e.height,o=(0,i.Z)(e,u),a=(0,s.useState)({error:null}),d=a[0],f=a[1];return(0,c.jsxs)(c.Fragment,{children:[d.error&&(0,c.jsx)("div",{style:{color:"red"},children:d.error}),(0,c.jsx)(m,{defaultValue:o.text,placeholder:o.placeholder||"Description",onChange:o.onChange,setContents:o.setContents,setOptions:void 0===t?{}:t,uploadType:o.uploadType,height:void 0===r?200:r,onImageUploadError:function(e){f(function(t){return p(p({},t),{},{error:e})})},onImageUpload:function(){f(function(e){return p(p({},e),{},{error:null})})}}),n?(0,c.jsx)("div",{className:"relative",children:(0,c.jsx)(l.Z,{alarm:!0,size:"small",children:n})}):null]})}},76985:function(e,t,n){"use strict";var r=n(4730),i=n(21857);n(54692),n(5083);var o=n(44122),a=n(28509),s=n(62145),l=n(85893),c=["style","className","fullHight"];t.Z=function(e){return e.style,e.className,e.fullHight,(0,r.Z)(e,c),(0,l.jsx)(i.Z,{children:(0,l.jsxs)("div",{className:"flex flex-row mt-[18px]",children:[(0,l.jsx)(o.Z,{size:"text-size_13_20",className:"text-light_grey mt-0.5",children:"\xa9 2005-2023 LBB Ltd"}),(0,l.jsx)(s.Z,{small:!0,lightgrey:!0,mx_sm:!0,className:"mt-1"}),(0,l.jsx)(a.Z,{href:"/about/privacy-policy/",children:(0,l.jsx)(o.Z,{light_grey:!0,underline:!0,size:"text-size_13_20",className:"text-light_grey",children:"Privacy and Cookie Policy"})}),(0,l.jsx)(s.Z,{small:!0,lightgrey:!0,mx_sm:!0,className:"mt-1"}),(0,l.jsx)(a.Z,{href:"/about/TermsAndConditions/",children:(0,l.jsx)(o.Z,{light_grey:!0,underline:!0,size:"text-size_13_20",className:"text-light_grey",children:"Terms and Conditions"})})]})})}},50653:function(e,t,n){"use strict";var r=n(59499),i=n(50029),o=n(4730),a=n(87794),s=n.n(a),l=n(67294),c=n(58808),u=n.n(c),d=n(44122),p=n(85893),m=["label","type","endIcon","isIconClicked","onIconClick","name","multiselect","options","getSuggestions","isSearchable","value","onKeyUp","isDisabled","onSuggestionSelected","placeholder","onBlur","search","onChange","touched","error"];function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y=function(e){return(0,p.jsx)("div",{children:e.name||e[1]})};
1t.Z=function(e){var t,n=e.label,r=(e.type,e.endIcon,e.isIconClicked,e.onIconClick,e.name,e.multiselect,e.options,e.getSuggestions),a=(e.isSearchable,e.value),c=e.onKeyUp,f=(e.isDisabled,e.onSuggestionSelected),g=(e.placeholder,e.onBlur,e.search),b=e.onChange,v=(e.touched,e.error),x=(0,o.Z)(e,m),j=(0,l.useState)(""),_=j[0],w=j[1];(0,l.useEffect)(function(){a?Array.isArray(a)?w(a[1]):w(a):""==a&&w(a)},[a]);var O=(0,l.useState)([]),S=O[0],C=O[1],I=(t=(0,i.Z)(s().mark(function e(t){var n;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.value,e.t0=C,e.next=4,r(n);case 4:e.t1=e.sent,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)});return(0,p.jsxs)("div",{className:"relative mb-3 w-full",children:[n&&(0,p.jsx)("div",{className:"h-[29px] capitalize",children:(0,p.jsx)(d.Z,{children:n})}),(0,p.jsxs)("div",{className:"flex items-center relative",children:[(0,p.jsx)(u(),{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return e.query,(0,p.jsx)("div",{className:"relative h-0",children:(0,p.jsx)("div",h(h({},t),{},{children:n}))})},theme:{container:" w-full relative rounded-md ".concat(v?"border border-alert_red":""),containerOpen:" w-full relative",input:"",inputOpen:"",inputFocused:"",suggestionsContainer:" absolute top left-0 w-full z-40 max-h-48 shadow-lg rounded-md overflow-y-auto ",suggestionsContainerOpen:" absolute w-full z-40",suggestionsList:" w-full bg-white text-gray-900 text-sm border border-lbb_green w-full rounded-md",suggestion:" p-2 cursor-pointer w-full bg-white z-40"},suggestions:S,renderInputComponent:function(e){return(0,p.jsx)("input",h(h({},e),{},{className:"text-gray-900 text-sm rounded-md block w-full p-2 border border-light_grey h-10"}))},onSuggestionsFetchRequested:I,onSuggestionsClearRequested:function(){C([])},getSuggestionValue:function(e){return b(e),e.name||e},renderSuggestion:y,inputProps:{placeholder:"Start typing ..",value:_,onChange:function(e,t){var n=t.newValue;try{var r=n;("string"==typeof n||n instanceof String)&&n.indexOf("[")>=0&&(r=JSON.parse(n)),Array.isArray(r)?(w(r[1]),"change"==e.type&&b(r)):(w(n),"change"==e.type&&b([-1,n]))}catch(e){w(n)}},onKeyUp:c},onSuggestionSelected:f}),g&&(0,p.jsx)("div",{className:"icon-search absolute right-2",style:{fontSize:20}})]}),v?(0,p.jsx)("div",{className:"relative",children:(0,p.jsx)(d.Z,{alarm:!0,size:"small",children:v})}):null,x.children]})}},66275:function(e,t,n){"use strict";var r=n(4730);n(67294);var i=n(44122),o=n(22096),a=n(30120),s=n(5152),l=n.n(s),c=n(85893),u=["label","type","endIcon","isIconClicked","onIconClick","name","multiselect","options","minDate","maxDate","isSearchable","value","useRange","asFull","tooltip","isDisabled","placeholder","onBlur","onChange","touched","error"],d=l()(function(){return Promise.all([n.e(4434),n.e(1299),n.e(4455)]).then(n.bind(n,48613)).then(function(e){return e.Tooltip})},{ssr:!1,loadableGenerated:{webpack:function(){return[48613]}}});t.Z=function(e){var t=e.label,n=(e.type,e.endIcon,e.isIconClicked,e.onIconClick,e.name),s=(e.multiselect,e.options,e.minDate),l=e.maxDate,p=(e.isSearchable,e.value),m=e.useRange,f=void 0!==m&&m,h=(e.asFull,e.tooltip),y=(e.isDisabled,e.placeholder),g=(e.onBlur,e.onChange),b=(e.touched,e.error),v=(0,r.Z)(e,u),x=a.ou.now(),j={start:x.year+"-01-01",end:x},_={start:x.year-1+"-01-01",end:x.year-1+"-12-31"};return(0,c.jsxs)("div",{className:"relative mb-3",children:[t&&(0,c.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,c.jsx)("div",{className:"h-[29px] capitalize",children:(0,c.jsx)(i.Z,{children:t})}),h&&(0,c.jsx)(d,{content:h,className:" max-w-2xl",children:(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"h-5 w-5 cursor-pointer text-blue-gray-500",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"})})})]}),(0,c.jsx)("div",{className:"flex items-center",children:(0,c.jsx)(o.Z,{minDate:s,maxDate:l,inputClassName:"relative text-gray-900 text-sm rounded-md block w-full p-2 border ".concat(b?"border-alert_red":"border-light_grey"," h-10"),toggleClassName:"absolute right-0 top-0 h-full px-3 text-gray-400 focus:outline-none disabled:opacity-40 disabled:cursor-not-allowed",placeholder:y||t,useRange:f,name:n,showShortcuts:f,configs:{shortcuts:{currentMonth:"This month",pastMonth:"Last month",thisYear:{text:"This Year",period:j},lastYear:{text:"Last Year",period:_},allTime:{text:"All Time",period:{start:"2012-01-01",end:x}}}},asSingle:!f,value:f?p:{startDate:p,endDate:p},onChange:g,displayFormat:"DD/MM/YYYY"})}),b?(0,c.jsx)("div",{className:"relative",children:(0,c.jsx)(i.Z,{alarm:!0,size:"small",children:b})}):null,v.children]})}},61676:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(4730),i=n(67294),o=n(59499);n(65624);var a=n(44122),s=n(3924),l=n(99850),c=n(150),u=n(85893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach(function(t){(0,o.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m={news:"1850x1042",job:"600x600",company_logo:"600x600",office_image:"920X600",profile:"600x600",work_thumbnail:"620x360"},f=function(e){var t,n,r=null,o=(0,i.useState)({infotext:"Drop files or click to Browse.",draggedOver:"",file:null,file_url:null,error_message:null}),d=o[0],f=o[1];(0,i.useEffect)(function(){d.file&&h(d.file)},[d.file]);var h=function(t){var n=new FormData;t&&(n.append("file",t),(0,c.CO)({url:"upload/?type=".concat(e.upload_type),method:"POST",headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){f(function(t){return p(p({},t),{},{progress:e.loaded/e.total})})},data:n}).then(function(t){f(function(e){return p(p({},e),{},{file_url:t})}),e.onChange&&e.onChange(t.file)}).catch(function(){}))},y=function(e){var t=e.type,n=e.name;if(n.length>90)return f(function(e){return p(p({},e),{},{error_message:"File name must be less than 90 characters."})}),!1;if(n.indexOf("#")>=0||n.indexOf("&")>=0||n.indexOf("+")>=0||n.indexOf("?")>=0)return f(function(e){return p(p({},e),{},{error_message:"This file features unsupported characters. Please rename the file and remove characters such as #&?+"})}),!1;var r=t.split("/")[0],i=t.split("/")[1];return"image"==r&&i&&"webp"!=i.toLowerCase()&&"avif"!=i.toLowerCase()&&"png"!=i.toLowerCase()&&"jpg"!=i.toLowerCase()&&"jpeg"!=i.toLowerCase()?(f(function(e){return p(p({},e),{},{error_message:"Please upload png,webp,avif or jpeg image formats only."})}),!1):(f(function(e){return p(p({},e),{},{error_message:null})}),!0)};return(0,u.jsx)("div",{className:"flex items-center flex-col justify-center w-full space-y-2 "+d.draggedOver,children:(0,u.jsxs)("label",{droppable:"true",onClick:function(e){r.click()},onDrop:function(e){return e.persist(),e.stopPropagation(),e.preventDefault(),f(function(e){return p(p({},e),{},{error_message:null})}),!(e.dataTransfer.files.length>1)&&(0>e.dataTransfer.files[0].type.indexOf("image")?(f(function(e){return p(p({},e),{},{error_message:"Please upload an image file."})}),!1):!!y(e.dataTransfer.files[0])&&void f(function(t){return p(p({},t),{},{file:e.dataTransfer.files[0]})}))},onDragLeave:function(){f(p(p({},d),{},{draggedOver:""}))},onDragOver:function(e){e.stopPropagation(),e.preventDefault(),f(p(p({},d),{},{draggedOver:"dragged-over"}))},for:"dropzone-file",className:"flex flex-col px-4 py-8 justify-center w-full border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600 "+d.draggedOver,children:[d.file?"":(0,u.jsx)(a.Z,{children:e.infotext?e.infotext:d.infotext}),(0,u.jsx)("input",{onChange:function(e){if(e.persist(),e.target.files.length>1||!y(e.target.files[0]))return!1;f(function(t){return p(p({},t),{},{file:e.target.files[0]})})},ref:function(e){r=e},className:"hidden","data-cy":e["data-cy"],name:e.name,type:"file",accept:e.accept?e.accept:"image/*",multiple:!1}),e.isError?(0,u.jsx)(a.Z,{alarm:!0,children:e.helperText}):"",d.error_message?(0,u.jsx)(a.Z,{alarm:!0,children:d.error_message}):"",d.file_url||e.existing?(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"image p-2 border border-[#eeeeee] bg-white inline-block",children:(0,u.jsx)("img",{className:"h-[30px]",alt:"205011",src:(null===(t=d.file_url)||void 0===t?void 0:t.preview)||(0,l.AJ)(e.existing,0,0,0,!0)})}),(0,u.jsx)(a.Z,{green:!0,children:(null===(n=d.file_url)||void 0===n?void 0:n.name)||"Current Thumbnail"})]}):"",d.file?(0,u.jsx)(s.Z,{value:d.progress}):"",(0,u.jsxs)(a.Z,{children:["Recommended image resolution is ",m[e.size]||m.news,". Maximum image size 3.5MB. Please ensure the file name has no invalid characters e.g. #&+?"]})]})})},h=["label","upload_type","endIcon","isIconClicked","onIconClick","name","value","placeholder","onBlur","onChange","touched","isError"],y=function(e){var t=e.label,n=e.upload_type,i=(e.endIcon,e.isIconCl
1icked,e.onIconClick,e.name),o=e.value,s=(e.placeholder,e.onBlur,e.onChange),l=(e.touched,e.isError),c=(0,r.Z)(e,h);return(0,u.jsxs)("div",{className:"relative mb-3",children:[(0,u.jsx)("div",{className:"h-[29px] capitalize",children:(0,u.jsx)(a.Z,{children:t})}),(0,u.jsx)("div",{className:"flex items-center",children:(0,u.jsx)(f,{type:"file",onChange:s,size:"news",upload_type:void 0===n?"news":n,label:t,placeholder:t,margin:"normal",variant:"outlined",name:i,existing:o,isError:l})}),l?(0,u.jsx)("div",{className:"relative",children:(0,u.jsx)(a.Z,{alarm:!0,size:"small",children:l})}):null,c.children]})}},3924:function(e,t,n){"use strict";n(67294);var r=n(85893);t.Z=function(e){var t=e.value;return(0,r.jsx)("div",{className:"w-full h-5 rounded-md overflow-hidden bg-back_dark block m-auto",children:(0,r.jsx)("div",{className:"w-0 h-full bg-lbb_green",style:{width:Math.ceil(100*t)+"%",background:t>=1?"#006600":"#006699"}})})}},39646:function(e,t,n){"use strict";n.d(t,{Ii:function(){return l},Sp:function(){return a},u9:function(){return s},z2:function(){return o}});var r=n(150),i=n(78084),o=function(e){return(0,r.CO)({url:e.company_slug?"register/".concat(e.company_slug,"/").concat(e.token):"register",method:i.Is.POST,data:e})},a=function(e){return(0,r.CO)({url:"activate/".concat(e.user_name,"/").concat(e.activation_key),method:i.Is.POST})},s=function(e){return(0,r.CO)({url:"login/google",method:i.Is.POST,data:e})},l=function(e){return(0,r.CO)({url:"login/linkedin",method:i.Is.POST,data:e})}},16932:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/accounts/register/step/[step]",function(){return n(26235)}])},65624:function(){},27420:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.toFormikValidate=t.toFormikValidationSchema=t.ValidationError=void 0;var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name="ValidationError",n.inner=[],n}return r(t,e),t}(Error);t.ValidationError=a,t.toFormikValidationSchema=function(e,t){return{validate:function(n){return i(this,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.parseAsync(n,t)];case 1:return r.sent(),[3,3];case 2:var i,o;throw i=r.sent(),(o=new a(i.message)).inner=i.errors.map(function(e){return{message:e.message,path:e.path.join(".")}}),o;case 3:return[2]}})})}}},t.toFormikValidate=function(e,t){var n=this;return function(r){return i(n,void 0,void 0,function(){var n;return o(this,function(i){switch(i.label){case 0:return[4,e.safeParseAsync(r,t)];case 1:if(!(n=i.sent()).success)return[2,function(e){for(var t={},n=0,r=e.errors;n<r.length;n++){var i=r[n];
1t[i.path.filter(Boolean).join(".")]=i.message}return t}(n.error)];return[2]}})})}}}},function(e){e.O(0,[3662,1739,2842,6115,6037,7614,2580,1664,9621,8808,8561,381,5470,4630,8471,9774,2888,179],function(){return e(e.s=16932)}),_N_E=e.O()}]);
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.