PageSourceSearch

https://www.leaderonomics.com/_next/static/chunks/pages/complete-profile-111044efac9b0f2a.js

js leaderonomics.com collected 2026-10-02 04:58:23 UTC 2,709 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8431],{4869:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/complete-profile",function(){return n(7287)}])},7287:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSG:function(){return p}});var i=n(5893),a=n(4549),l=n(2825),t=n(9006),c=n(7407),d=n(9879),r=n(9510),u=n(2962),o=n(1163),m=n(7294),h=n(6501),p=!0;s.default=()=>{let e=(0,o.useRouter)(),[s,n]=(0,m.useState)(""),{t:p}=(0,r.$G)("profile"),x=(0,m.useRef)(null),{mutate:f,isLoading:b}=c.h.auth.completeProfile.useMutation({onSuccess:async s=>{s&&(h.Am.success("Your profile has been updated successfully!"),e.push("/"))},onError:e=>{n(e.message)}}),{data:g}=c.h.publication.getFilters.useQuery({locale:e.locale});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.PB,{title:p("complete_profile")}),(0,i.jsx)("section",{className:"py-10 md:py-16",children:(0,i.jsxs)("div",{className:"container-bootstrap",children:[(0,i.jsx)("h1",{className:"text-center text-2xl font-bold md:text-[1.75rem]",children:p("complete_profile_heading")}),g&&g.audiences&&g.audiences.length>0&&(0,i.jsx)(d.J9,{innerRef:x,initialValues:{audiences:[],gender:""},validationSchema:t.Cy,onSubmit:async e=>{n(""),await (0,l.G7)()&&f({audiences:e.audiences,gender:e.gender})},children:e=>(0,i.jsxs)(d.l0,{onSubmit:e.handleSubmit,className:"mx-auto mt-6 max-w-md",children:[(0,i.jsxs)(a._3,{name:"gender",id:"gender",label:p("gender"),required:!0,children:[(0,i.jsx)("option",{value:"",disabled:!0,hidden:!0,children:p("select_option")}),(0,i.jsx)("option",{value:"Male",children:p("male")}),(0,i.jsx)("option",{value:"Female",children:p("female")}),(0,i.jsx)("option",{value:"Not Applicable",children:p("not_applicable")})]}),(0,i.jsxs)("div",{className:"mt-6",children:[(0,i.jsxs)("label",{className:"mb-4 block font-medium",children:[p("i_am"),(0,i.jsx)("span",{className:"ml-1 text-red-600",children:"*"})]}),(0,i.jsx)("div",{className:"space-y-5",children:null==g?void 0:g.audiences.map(e=>(0,i.jsx)(a.pj,{id:"audience-".concat(e.id),name:"audiences",value:e.id,labelClassName:"text-base !leading-tight",className:"h-5 w-5",children:e.name},"audience-".concat(e.id)))}),e.errors.audiences&&(0,i.jsx)("div",{className:"mt-6 text-red-500",children:e.errors.audiences})]}),s&&(0,i.jsx)("div",{className:"mt-6 text-red-500",children:s}),(0,i.jsx)(a.X7,{type:"submit",isBusy:e.isSubmitting||b,className:"mt-8 w-full rounded bg-black px-5 py-4 text-center font-medium text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2 disabled:bg-gray-500",children:p("update_profile")})]})})]})})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=4869)}),_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.