PageSourceSearch

https://simplelocalize.io/_next/static/chunks/pages/join-55774b7702d1b47f.js

js simplelocalize.io collected 2026-09-25 14:16:03 UTC 7,128 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a404de15-3206-4b01-973e-5524fcff6541",e._sentryDebugIdIdentifier="sentry-dbid-a404de15-3206-4b01-973e-5524fcff6541")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[66233],{67360:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/join",function(){return n(49776)}])},43242:function(e,t,n){"use strict";var a=n(20567),s=n(14932),i=n(47702),o=n(85893);n(67294);var r=n(43210),l=n.n(r),c=n(45371);t.Z=e=>{var t,n,r,{isLoading:d,disabled:u,children:m,className:x,dark:h=!1,style:v}=e,p=(0,i._)(e,["isLoading","disabled","children","className","dark","style"]),y=null===(t=x||"")||void 0===t?void 0:t.includes("btn-primary"),f="#fff";return h&&!y&&(f="#aaa"),((null===(n=x||"")||void 0===n?void 0:n.includes("text-link"))||(null===(r=x||"")||void 0===r?void 0:r.includes("btn-link")))&&(f="#0D6EFDFF"),(0,o.jsxs)("button",(0,s._)((0,a._)({},p),{disabled:u,style:(0,a._)({pointerEvents:d||u?"none":"auto"},v),className:"overflow-hidden ".concat(x),"data-sentry-component":"LoadableButton","data-sentry-source-file":"LoadableButton.tsx",children:[!d&&(0,o.jsx)("div",{children:m}),d&&(0,o.jsx)("span",{className:l().loader,style:{color:f,position:d?"relative":"absolute",opacity:d?1:0},children:(0,o.jsx)(c.Z,{})})]}))}},2283:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var a=n(85893),s=n(67294),i=n(74231),o=n(86652),r=n(13294),l=n(11163),c=n(23908),d=n(44173),u=n(41618),m=n(43242),x=i.Ry().shape({password:i.Z_().trim().min(7).max(50).required()}),h="isInvitedByEmail";t.Z=e=>{var{email:t,invitationHash:n,projectName:i}=e,v=(0,l.useRouter)(),[p,y]=(0,u.Z)(h,!1),[f,b]=(0,s.useState)(!1);return(0,a.jsxs)("div",{"data-sentry-component":"AcceptInvitationForm","data-sentry-source-file":"AcceptInvitationForm.tsx",children:[(0,a.jsxs)("p",{className:"text-muted text-justify my-3 px-3",children:["You have been invited to collaborate on ",i," project at SimpleLocalize. Please fill the registration form below to join the translation project."]}),(0,a.jsx)(r.J9,{initialValues:{password:""},validateOnChange:!0,validateOnBlur:!0,validateOnMount:!0,validationSchema:x,onSubmit:(e,t)=>{var{setSubmitting:a}=t;(0,o._d)(n,e).then(()=>{y(!0),setTimeout(()=>{v.push(c.DV)},2500)}).catch(e=>{var t,n,s=(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.msg)||"There was a problem with your invitation.";d.Am.warning(s),a(!1)})},"data-sentry-element":"Formik","data-sentry-source-file":"AcceptInvitationForm.tsx",children:e=>{var{values:n,handleChange:s,handleBlur:i,handleSubmit:o,isSubmitting:r,isValid:l}=e;return(0,a.jsxs)("form",{onSubmit:o,className:"p-3",children:[(0,a.jsxs)("div",{className:"col-md-12",children:[(0,a.jsx)("label",{children:"Your account e-mail"}),(0,a.jsx)("input",{className:"form-control",disabled:!0,value:t})]}),(0,a.jsxs)("div",{className:"my-3 col-md-12",children:[(0,a.jsx)("label",{htmlFor:"password",className:"required",children:"Password"}),(0,a.jsxs)("div",{className:"d-flex w-100 align-items-center",children:[(0,a.jsx)("input",{style:{flex:12},id:"password",disabled:r,className:"form-control me-2",type:f?"text":"password",placeholder:"Please use at least 7 characters",value:n.password,onChange:s,onBlur:i}),(0,a.jsxs)("button",{type:"button",style:{flex:1},className:"btn btn-link btn-lg",onClick:e=>{e.preventDefault(),b(!f)},children:[!f&&(0,a.jsx)("i",{className:"fa fa-eye"}),f&&(0,a.jsx)("i",{className:"fa fa-low-vision"})]})]})]}),(0,a.jsx)(m.Z,{isLoading:r,type:"submit",disabled:r||!l,className:"btn btn-primary w-100 btn-sign-in",children:"Create account"}),(0,a.jsxs)("div",{className:"text-muted mt-3 text-center",style:{maxWidth:500,fontSize:12},children:['By clicking "Create account", you agree to our ',(0,a.jsx)("a",{href:"/tos/",target:"_blank",children:"terms of service"})," and ",(0,a.jsx)("a",{href:"/privacy-policy/",target:"_blank",children:"privacy statement"}),". We’ll occasionally send you account related emails."]})]})}})]})}},49776:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var a=n(85893),s=n(67294),i=n(48786),o=n(86189),r=n(2283),l=n(86652),c=n(44173),d=n(23908),u=n(11163),m=e=>{var{invitationHash:t="",projectName:n=""}
1=e,[i,o]=(0,s.useState)(!1),r=(0,u.useRouter)();return(0,a.jsxs)("div",{className:"w-100","data-sentry-component":"AcceptInvitationButton","data-sentry-source-file":"AcceptInvitationButton.tsx",children:[(0,a.jsxs)("p",{className:"text-muted text-justify my-3 px-3",children:["You have been invited to collaborate on ",n," project at SimpleLocalize. Click the button below to join the translation project."]}),(0,a.jsx)("button",{type:"submit",onClick:()=>{o(!0),(0,l.XX)(t).then(()=>(c.Am.success("Invitation accepted"),o(!1),r.push("".concat(d.h1)))).catch(()=>{c.Am.warning("There was a problem with accepting invitation."),o(!1)})},disabled:i,className:"my-4 btn btn-sign-in btn-primary w-100",children:"Accept invitation"})]})},x=n(42719),h=n(54362),v=n.n(h),p=n(27582),y=n(88767),f=()=>{var e=(0,u.useRouter)().query.token,{isError:t,isSuccess:n,data:s={}}=(0,y.useQuery)("invitation-".concat(e),()=>(0,l.Pk)(e),{enabled:!!e,retry:0,refetchOnWindowFocus:!1}),{projectName:c,email:d,role:h,mustCreatePassword:f}=s,b=f?o.Mw.MUST_CREATE_PASSWORD:o.Mw.ACCOUNT_EXISTS;return(0,a.jsxs)(x.Z,{"data-sentry-element":"InvitationLayout","data-sentry-component":"JoinWithLinkPage","data-sentry-source-file":"index.tsx",children:[n&&(0,a.jsx)("div",{className:"align-items-center justify-content-between d-flex px-0 mb-2 mt-4 ".concat(v().container),children:(0,a.jsxs)("div",{className:v().title,children:["Project invitation: ",h]})}),(0,a.jsx)("div",{className:"entrance-card ".concat(v().container),children:(0,a.jsx)("div",{className:"body d-flex",children:(0,a.jsxs)("div",{className:"w-100",children:[(0,a.jsx)("div",{className:"px-3 pt-3",children:n&&(0,a.jsx)(p.Z,{projectName:c})}),(0,a.jsxs)(i.V2,{"data-sentry-element":"Choose","data-sentry-source-file":"index.tsx",children:[(0,a.jsx)(i.V2.When,{condition:b===o.Mw.MUST_CREATE_PASSWORD&&n,"data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:(0,a.jsx)(r.Z,{invitationHash:e,projectName:c,email:d,"data-sentry-element":"AcceptInvitationForm","data-sentry-source-file":"index.tsx"})}),(0,a.jsx)(i.V2.When,{condition:b===o.Mw.ACCOUNT_EXISTS&&n,"data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:(0,a.jsx)(m,{invitationHash:e,projectName:c,"data-sentry-element":"AcceptInvitationButton","data-sentry-source-file":"index.tsx"})}),(0,a.jsx)(i.V2.When,{condition:t,"data-sentry-element":"unknown","data-sentry-source-file":"index.tsx",children:(0,a.jsx)("p",{className:"text-center",children:"Invitation expired"})})]})]})})})]})}},43210:function(e){e.exports={loader:"LoadableButton_loader___yV5D"}}},function(e){e.O(0,[98195,18709,92888,49774,40179],function(){return e(e.s=67360)}),_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.