PageSourceSearch

https://artinki.ru/_next/static/chunks/pages/register-79a8801d6516463a.js

js artinki.ru collected 2026-10-04 14:52:47 UTC 10,372 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{54722:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return r(66618)}])},86775:function(e,t,r){"use strict";var s=r(85893);r(67294),t.Z=e=>{let{msg:t}=e;return(0,s.jsx)("div",{className:"my-2 flex items-center rounded bg-danger-light p-3.5 text-danger dark:bg-danger-dark-light",children:(0,s.jsx)("span",{className:"ltr:pr-2 rtl:pl-2",children:t})})}},61607:function(e,t,r){"use strict";var s=r(85893);r(67294);var a=r(9473),i=r(9274);t.Z=e=>{let{text:t="Sign In"}=e,{settings:r}=(0,a.v9)(e=>e.common.data);return(0,s.jsx)("div",{children:(0,s.jsx)("button",{className:"flex  items-center justify-center rounded-full bg-gray-800 p-0.5 font-semibold text-white shadow-md hover:bg-gray-900",onClick:()=>{if(!(null==r?void 0:r.github_auth_client_id))return;let e=null==r?void 0:r.github_auth_client_id,t=window.location.origin,s="https://github.com/login/oauth/authorize?client_id=".concat(e,"&redirect_uri=").concat("".concat(t,"/login"),"&scope=user");window.location.href=s},children:(0,s.jsx)(i.hJX,{size:36})})})}},94879:function(e,t,r){"use strict";r.d(t,{Z:function(){return SectionLoader}});var s=r(85893);function SectionLoader(){return(0,s.jsx)("div",{className:"section-loader-css dark:bg-black"})}r(67294)},66618:function(e,t,r){"use strict";r.r(t);var s=r(85893),a=r(67294),i=r(9008),l=r.n(i),n=r(41664),c=r.n(n),d=r(9473),o=r(67421),m=r(86426),h=r(19153),x=r(94879),u=r(86775),p=r(61607),g=r(39770),b=r(95539),f=r(5265);let RegisterCover=()=>{var e,t,r,i;let{t:n}=(0,o.$G)(),[h,j]=(0,a.useState)(!0),[v,y]=(0,a.useState)(!1),{errors:N,handleSubmit:k,register:w,handleSignup:_,isLoading:C}=(0,g.T4)(),{handleGoogleLogin:q,handleVKLogin:S,handleYandexLogin:Z}=(0,g.zq)(),{settings:E}=(0,d.v9)(e=>e.common.data),[F,z]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{S();let e=setInterval(()=>{var t;(null===(t=window)||void 0===t?void 0:t.YaAuthSuggest)&&(clearInterval(e),Z("register"))},500);return()=>clearInterval(e)},[]),C)?(0,s.jsx)(x.Z,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:"Регистрация на Artinki — получите 2026 бонусных кредитов"}),(0,s.jsx)("meta",{name:"description",content:"Зарегистрируйтесь на Artinki и получите 2026 бонусных кредитов. Генерируйте изображения, видео, тексты и оживляйте фото с помощью нейросетей за секунды!"}),(0,s.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,s.jsx)("link",{rel:"canonical",href:"https://artinki.ru/register"})]}),(0,s.jsxs)("div",{className:"flex min-h-screen dark:text-white",children:[(0,s.jsx)("div",{className:"relative hidden min-h-screen w-1/2 flex-col items-center justify-center p-4 text-white before:absolute before:-z-10 before:h-full before:w-full before:bg-black before:bg-[url('/assets/images/reg.webp')] before:bg-cover before:bg-center before:bg-no-repeat lg:flex"}),(0,s.jsx)("div",{className:"relative flex w-full items-center justify-center bg-white dark:bg-black lg:w-1/2 ",children:(0,s.jsxs)("div",{className:"w-full max-w-[480px] p-5 md:p-10",children:[(0,s.jsxs)("div",{className:"mb-8 flex justify-center gap-8 border-b border-gray-200",children:[(0,s.jsx)(c(),{href:"/login",className:"pb-2 text-gray-500 transition hover:text-[#333333] dark:text-white",children:"Войти"}),(0,s.jsx)("div",{className:"border-b-2 border-[#9100ff] pb-2 font-medium text-[#333333] dark:text-white",children:"Регистрация"})]}),(0,s.jsx)("div",{children:(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)("img",{src:"/assets/images/logo2.svg",alt:"логотип",className:"mx-auto mb-3 h-[48px]"})})}),(0,s.jsx)("p",{className:"mb-5 text-center font-bold",children:n("Получите 2026 бонусов на баланс сейчас. Используйте их в любое время.")}),(0,s.jsxs)("form",{className:"space-y-5",onSubmit:k(e=>{if(!h){(0,b.Jc)("Пожалуйста, примите правила пользования сайтом и политику конфиденциальности");return}_(e.email,e.password,e.first_name,e.last_name,v)}),children:[(0,s.jsxs)("div",{className:"space-y-3 text-sm leading-5 text-gray-700 dark:text-gray-300",children:[(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg transition-colors",children:[(0,s.jsx)("input",{type:"checkbox",required:!0,className:"mt-1 h-4 w-4 shrink-0",style:{accentColor:"#8400ff"},checked:h,onChange:e=>j(e.target.checked)}),(0,s.jsxs)("span",{children:["Я соглашаюсь с"," ",(0,s.jsx)(c(),{href:"/terms",target:"_blank",className:"text-primary underline",children:"правилами пользования сайтом"})," ","и"," ",(0,s.jsx)(c(),{href:"/privacy",target:"_blank",className:"text-primary underline",children:"политикой конфиденциальности"})]})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg transition-colors",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-1 h-4 w-4 shrink-0",style:{accentColor:"#8400ff"},checked:v,onChange:e=>y(e.target.checked)}),(0,s.jsx)("span",{children:"Хочу получать короткие полезные инструкции и идеи для работы с сервисом."})]})]}),(0,s.jsx)("h1",{className:"text-center text-xl font-bold",children:"Быстрая регистрация:"}),(0,s.jsxs)("div",{className:"relative space-y-5",children:[Number(null==E?void 0:E.social_login_google_status)===f.iN&&(0,s.jsx)("div",{className:"flex w-full items-center justify-center gap-x-4",children:(0,s.jsx)(m.kZ,{onSuccess:e=>{q(e)},type:"standard",shape:"pill",size:"large",theme:"outline",onError:()=>{}})}),Number(null==E?void 0:E.social_login_github_status)===f.iN&&(0,s.jsx)("div",{className:"flex items-center justify-center gap-x-4",children:(0,s.jsx)(p.Z,{text:n("Signup With Github")})}),(0,s.jsx)("div",{id:"yandex-id"}),(0,s.jsx)("div",{id:"vk-id"})]}),(0,s.jsxs)("div",{className:"relative my-7 text-center md:mb-9",children:[(0,s.jsx)("span",{className:"absolute inset-x-0 top-1/2 h-px w-full -translate-y-1/2 bg-white-light dark:bg-white-dark"}),(0,s.jsx)("span",{className:"relative bg-white px-2 dark:bg-black dark:text-white-light",children:n("or")})]}),(0,s.jsx)("button",{type:"button",onClick:()=>z(e=>!e),className:"text-color mt-4 w-full rounded-md bg-gray-200 px-4 py-2 transition duration-300 hover:bg-gray-300 dark:text-gray-700",children:"Регистрация через e-mail"}),F&&(0,s.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",children:n("Email")}),(0,s.jsx)("input",{id:"email",type:"email",className:"form-input",placeholder:"*Введите адрес e-mail",...w("email",{required:!0})}),(null===(e=N.email)||void 0===e?void 0:e.type)==="required"&&(0,s.jsx)(u.Z,{msg:"Пожалуйста, укажите правильный существующий адрес e-mail"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"password",children:n("Password")}),(0,s.jsx)("input",{id:"password",type:"password",className:"form-input",placeholder:"*Придумайте пароль",...w("password",{required:!0})}),(null===(t=N.password)||void 0===t?void 0:t.type)==="required"&&(0,s.jsx)(u.Z,{msg:"Пожалуйста, придумайте и напишите пароль"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"first_name",children:n("First Name")}
1),(0,s.jsx)("input",{id:"first_name",type:"text",className:"form-input",placeholder:"*Укажите имя",...w("first_name",{required:!0})}),(null===(r=N.first_name)||void 0===r?void 0:r.type)==="required"&&(0,s.jsx)(u.Z,{msg:"Пожалуйста, укажите имя"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"last_name",children:n("Last Name")}),(0,s.jsx)("input",{id:"last_name",type:"text",className:"form-input",placeholder:"*Укажите фамилию",...w("last_name",{required:!0})}),(null===(i=N.last_name)||void 0===i?void 0:i.type)==="required"&&(0,s.jsx)(u.Z,{msg:"Пожалуйста, укажите фамилию"})]}),(0,s.jsxs)("div",{className:"space-y-3 text-sm leading-5 text-gray-700 dark:text-gray-300",children:[(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg transition-colors",children:[(0,s.jsx)("input",{type:"checkbox",required:!0,className:"mt-1 h-4 w-4 shrink-0",style:{accentColor:"#8400ff"},checked:h,onChange:e=>j(e.target.checked)}),(0,s.jsxs)("span",{children:["Я соглашаюсь с"," ",(0,s.jsx)(c(),{href:"/terms",target:"_blank",className:"text-primary underline",children:"правилами пользования сайтом"})," ","и"," ",(0,s.jsx)(c(),{href:"/privacy",target:"_blank",className:"text-primary underline",children:"политикой конфиденциальности"})]})]}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg transition-colors",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-1 h-4 w-4 shrink-0",style:{accentColor:"#8400ff"},checked:v,onChange:e=>y(e.target.checked)}),(0,s.jsx)("span",{children:"Хочу получать короткие полезные инструкции и идеи для работы с сервисом."})]})]}),(0,s.jsxs)("button",{type:"submit",disabled:!h||C,className:"btn btn-primary hover:bg-primary-dark mt-4 w-full rounded-md bg-primary px-4 py-2 text-white transition duration-300 disabled:cursor-not-allowed disabled:opacity-50",children:[C&&(0,s.jsx)("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-white border-l-transparent align-middle ltr:mr-4 rtl:ml-4"}),n("Register")]})]})]}),(0,s.jsxs)("div",{className:"mt-8 flex hidden items-center justify-center gap-x-2 text-center",children:[(0,s.jsx)("p",{children:n("Already have an account?")}),(0,s.jsx)(c(),{href:"/login",className:"font-bold underline",children:n("Sign In")})]})]})})]})]})};RegisterCover.getLayout=e=>(0,s.jsx)(h.Z,{children:e}),t.default=RegisterCover}},function(e){e.O(0,[4738,3365,1876,7066,7848,2947,7630,686,2878,2032,9774,2888,179],function(){return e(e.s=54722)}),_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.