PageSourceSearch

https://palitramed.ru/local/templates/palitra_new/assets/js/173.9444eb2c2bf4c5ca512f.js

js palitramed.ru collected 2026-09-28 22:49:43 UTC 6,061 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpalitra=self.webpackChunkpalitra||[]).push([[173],{6173:(e,t,a)=>{a.r(t),a.d(t,{default:()=>v});var i=a(3745),l=a(4792),m=a(3592);const s=({email:e,newEmail:t,setNewEmail:a,onSubmit:l,locked:s})=>i.createElement("div",{className:"email-verif"},i.createElement("div",{className:"email-verif__header"},i.createElement("div",{className:"email-verif__text"},"При регистрации Вами был указан адрес ",i.createElement("span",{className:"email-verif__text--pink"},e)),i.createElement("div",{className:"email-verif__text"},"При необходимости Вы можете указать актуальный адрес. Мы отправим Вам письмо с кодом. Укажите его в открывшемся окне.")),i.createElement("div",{className:"email-verif__content"},i.createElement("div",{className:"email-verif__text"},"Адрес, на который будет отправлено письмо"),i.createElement("div",{className:"email-verif__input"},i.createElement("input",{type:"text",className:"form__input",placeholder:"E-mail",value:t,onChange:({target:e})=>a(e.value)}),i.createElement("svg",{className:"email-verif__input-icon",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17.987",viewBox:"0 0 18 17.987"},i.createElement("path",{d:"M6.208 20.529H16.8a2.593 2.593 0 0 0 1.958-.726 2.985 2.985 0 0 0 .7-2.151V8.023l-1.624 1.626v7.878a1.448 1.448 0 0 1-.322 1.026 1.036 1.036 0 0 1-.784.342H6.272a1.373 1.373 0 0 1-1-.342 1.378 1.378 0 0 1-.349-1.026V7.36a1.378 1.378 0 0 1 .349-1.026 1.373 1.373 0 0 1 1-.342h7.978l1.625-1.625H6.208a2.986 2.986 0 0 0-2.177.721A2.893 2.893 0 0 0 3.3 7.243v10.409a2.9 2.9 0 0 0 .731 2.148 2.975 2.975 0 0 0 2.177.729zm3.359-5.972 1.813-.772 8.336-8.329L18.4 4.154l-8.328 8.329-.815 1.75a.218.218 0 0 0 .056.261.214.214 0 0 0 .254.063zm10.814-9.766.668-.69a.825.825 0 0 0 .248-.573.762.762 0 0 0-.239-.563l-.224-.224a.645.645 0 0 0-.533-.2.858.858 0 0 0-.55.26l-.68.669z",transform:"translate(-3.296 -2.542)",fill:"#2b2a29"}))),i.createElement("div",{className:"email-verif__btn-wrapper"},i.createElement(m.Z,{title:"Подтвердить",onClick:l,disabled:s})))),r=({email:e,onSubmit:t,newCode:a,setNewCode:l,error:s,locked:r})=>i.createElement("div",{className:"email-verif"},i.createElement("div",{className:"email-verif__send-code"},i.createElement("div",{className:"email-verif__header"},i.createElement("div",{className:"email-verif__text"},"Вами указан адрес ",i.createElement("span",{className:"email-verif__text--pink"},e)),i.createElement("div",{className:"email-verif__text"},"На данный адрес Вам пришёл 6-значный код. Укажите его в поле ниже.")),i.createElement("div",{className:"email-verif__content"},i.createElement("div",{className:"email-verif__text"},s?i.createElement("div",{className:"email-verif__text--error"},s):"6-значный код"),i.createElement("label",{className:"email-verif__input-code"},i.createElement("input",{type:"text",className:"email-verif__code-input",maxLength:6,value:a,onChange:({target:e})=>l(e.value)}),i.createElement("div",{className:"email-verif__digits"},[0,1,2,3,4,5].map((e=>{let t=null;try{t=a[e]}catch(e){}return i.createElement("div",{className:`email-verif__digit \n\t\t\t\t\t\t\t\t\t\t\t\t${t?"email-verif__digit--active":""}\n\t\t\t\t\t\t\t\t\t\t\t\t${s?"email-verif__digit--error":""}`,key:e},t)}))))),i.createElement("div",{className:"email-verif__btn-wrapper"},i.createElement(m.Z,{title:"Подтвердить",onClick:t,disabled:r})))),c=({onSubmit:e})=>i.createElement("div",{className:"email-verif"},i.createElement("div",{className:"email-verif__success"},i.createElement("div",{className:"email-verif__header"},i.createElement("div",{className:"email-verif__success-icon"},i.createElement("svg",{className:"email-verif__success-icon-img",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("path",{d:"M10 20a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10zm0-18a8 8 0 1 0 8 8 8.009 8.009 0 0 0-8-8zM8 14a.994.994 0 0 1-.707-.293l-2-2a1 1 0 1 1 1.414-1.414L8 11.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6A.994.994 0 0 1 8 14z",fill:"#a82682"}))),i.createElement("div",{className:"email-verif__text"},"Адрес вашей электронной почты успешно подтвержден!")),i.createElement("div",{className:"email-verif__success-btn-wrapper"},i.createElement(m.Z,{title:"Ок",onClick:e}))));var n=a(9671);const v=({code:e,email:t,title:a,modalName:m})=>{const[v,d]=(0,i.useState)(t),[o,_]=(0,i.useState)(!1),[f,E]=(0,i.useState)(a||"Подтвердите электронную почту"),[u,N]=(0,i.useState)(""),[p,w]=(0,i.useState)(!1),[h,g]=(0,i.useState)(""),[x,b]=(0,i.useState)(!1),[k,C]=(0,i.useState)(!1),S=async({verificationCode:e})=>
1{if(x)return;b(!0);const t=new FormData;t.set("sessid",BX.bitrix_sessid()),t.set("method","user.verifyEmailCode"),t.set("code",e||u);try{const{data:e}=await(0,n.get)(t);e&&w(!0),e&&b(!1),e&&C(!0),e&&E("Успешно!")}catch(e){console.log(e),g(e.msg),b(!1),C(!0)}};return(0,i.useEffect)((()=>{e?(E("Код подтверждения"),_(!0),N(e),S({verificationCode:e})):C(!0)}),[]),(0,i.useEffect)((()=>{if(k){const e=new Event("open-modal");e.modalName="email-verification",window.dispatchEvent(e)}}),[k]),i.createElement(l.Z,{title:f,name:m||"email-verification",locked:x},p?i.createElement(c,{onSubmit:()=>{const e=new Event("close-modal");e.modalName=m||"email-verification",window.dispatchEvent(e)}}):o?i.createElement(r,{email:v,onSubmit:S,newCode:u,setNewCode:e=>{g(""),N(e.toUpperCase())},error:h,locked:x}):i.createElement(s,{email:t,onSubmit:async()=>{if(x)return;b(!0);const e=new FormData;e.set("sessid",BX.bitrix_sessid()),e.set("method","user.sendVerificationEmail"),e.set("email",v);try{const{data:t}=await(0,n.get)(e);t&&_(!0),t&&E("Код подтверждения"),b(!1)}catch(e){console.log(e),b(!1)}},newEmail:v,setNewEmail:d,locked:x}))}}}]);

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.