PageSourceSearch

https://zarina.ru/_next/static/chunks/3884-af907ba15f49c78f.js

js zarina.ru collected 2026-10-01 11:38:16 UTC 8,705 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8175c18b-6b8e-46e1-99d5-92e0fcbe9503",e._sentryDebugIdIdentifier="sentry-dbid-8175c18b-6b8e-46e1-99d5-92e0fcbe9503")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3884],{37332:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(95155),l=r(50984),n=r(74640),s=r(22544),o=r(49789),i=r(9442);let c={mask:"+7 (___) ___-__-__",replacement:{_:/\d/}},u=e=>{let{label:t,id:r,name:u,error:d,validation:p,className:f,disabled:x,onEdit:h,isVerified:m,onFocus:g,onBlur:b,variant:y}=e,{control:v}=(0,s.xW)(),{field:{value:w,onChange:C,ref:_}}=(0,s.as)({name:u,control:v,rules:p});return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(o.A,{label:t,type:"text",id:r,name:u,value:w,onChange:e=>{let t=e.target.value.replace(/\D/g,"");t.length>0&&("7"===t[0]||"8"===t[0])&&(t=t.slice(1)),C((0,i.f)(t,c))},inputRef:_,error:d,validation:p,className:f,disabled:x,onFocus:g,onBlur:b,variant:y}),m&&(0,a.jsx)(l.A,{size:16,className:"absolute right-10 top-1/2 -translate-y-1/2 text-done-status"}),x&&h&&(0,a.jsx)("button",{type:"button",onClick:h,className:"absolute top-1/2 -translate-y-1/2 translate-x-1 text-gray-400 hover:text-gray-600 ".concat(m?"right-3":"right-10"),children:(0,a.jsx)(n.A,{size:16})})]})}},49789:(e,t,r)=>{r.d(t,{A:()=>x,m:()=>f});var a=r(71983),l=r(45849),n=r(17389),s=r(95155),o=r(12115),i=r(36654),c=r(57857),u=r(64269),d=r(22544),p=r(11517);let f=e=>{var t,r,{name:f,label:x,id:h,className:m,error:g,validation:b,disabled:y,isPassword:v,mask:w,replacement:C,defaultValue:_,icon:j,onIconClick:N,customText:k,onCustomTextClick:A,type:P,value:B,onChange:z,inputRef:E,onFocus:T,onBlur:D,variant:F="default"}=e,I=(0,n._)(e,["name","label","id","className","error","validation","disabled","isPassword","mask","replacement","defaultValue","icon","onIconClick","customText","onCustomTextClick","type","value","onChange","inputRef","onFocus","onBlur","variant"]);let{register:W,watch:M}=(0,d.xW)(),K=M(f,_),[R,S]=o.useState(!1),[Z,$]=o.useState(!1),G=void 0!==B&&void 0!==z,O=(null==(t=null!=(r=G?B:K)?r:"")?void 0:t.length)>0,X=Z||O,q=o.useRef(null),H=e=>{q.current=e,E&&"function"==typeof E?E(e):E&&"current"in E&&(E.current=e)},Q="outlined"===F?(0,u.cn)("text-sm md:text-base block w-full appearance-none border border-black/30 bg-white px-4 py-4 leading-normal focus:outline-none focus:border-black disabled:bg-gray-50 disabled:opacity-50 group-[.with-error]:border-error group-[.with-error]:focus:border-error"):(0,u.cn)("text-sm md:text-base focus:shadow-outline group-[.with-error]:border-error group-[.with-error]:focus:border-error block w-full appearance-none border-b border-light-gray bg-white bg-clip-text py-0.5 leading-normal focus:border-black focus:outline-none disabled:bg-gray-50 disabled:opacity-50",v?"":"uppercase"),V=()=>{$(!0),null==T||T()},Y=()=>{$(!1),null==D||D()},J=o.useMemo(()=>{if(G)return(0,a._)({id:h,placeholder:" ",disabled:y,value:B,onChange:z,ref:H,className:Q},I);{let e=W(f,b),{ref:t,onChange:r,onBlur:l}=e,s=(0,n._)(e,["ref","onChange","onBlur"]);return(0,a._)({id:h,placeholder:" ",disabled:y,onChange:e=>{r(e),null==z||z(e)},onBlur:e=>{l(e),Y()},onFocus:V,ref:e=>{H(e),"function"==typeof t?t(e):t&&(t.current=e)},className:Q},s,I)}},[G,B,z,W,f,b,I]);return"outlined"===F?(0,s.jsxs)("div",{className:(0,u.cn)("group relative flex w-full flex-col",m,{"with-error":g,"has-value":O}),children:[(0,s.jsxs)("div",{className:"relative mt-3",children:[(0,s.jsxs)("div",{className:"relative flex items-center",children:[w?(0,s.jsx)(p.A,(0,l._)((0,a._)({mask:w,replacement:C},J),{inputRef:H,onFocusCapture:V,onBlurCapture:Y,className:(0,u.cn)(J.className,"flex-1")})):(0,s.jsx)("input",(0,l._)((0,a._)({},J),{type:R?"text":P,onFocusCapture:V,onBlurCapture:Y,className:(0,u.cn)(J.className,"flex-1")})),v&&(0,s.jsx)("div",{className:"absolute right-4 cursor-pointer",onClick:()=>S(!R),children:R?(0,s.jsx)(i.A,{strokeWidth:1,size:20}):(0,s.jsx)(c.A,{strokeWidth:1,size:20})})]}),(0,s.jsx)("label",{htmlFor:h,className:(0,u.cn)("pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-sm uppercase text-[#232323] transition-opacity duration-200 ease-in-out",X?"opacity-0":"opacity-100"),children:x})]}),g&&(0,s.jsx)("div",{className:"mt-1.5 text-xxs uppercase text-error",children:"string"==typeof g?g:null==g?void 0:g.message})]}):(0,s.jsxs)("div",{className:(0,u.cn)("group flex w-full flex-col",m,{"with-error":g,"has-value":O}),children:[(0,s.jsxs)("div",{className:"mt-4.5 float-label-input relative mb-1",children:[(0,s.jsxs)("div",{className:"relative flex items-center",children:[w?(0,s.jsx)(p.A,(0,l._)((0,a._)({mask:w,replacement:C},J),{inputRef:H,onFocusCapture:V,onBlurCapture:Y,className:(0,u.cn)(J.className,"flex-1")})):(0,s.jsx)("input",(0,l._)((0,a._)({},J),{type:R?"text":P,onFocusCapture:V,onBlurCapture:Y,className:(0,u.cn)(J.className,"flex-1")})),(k||j)&&(0,s.jsxs)("div",{className:"absolute right-0 top-1 flex -translate-y-1/2 items-center justify-center gap-2",children:[k&&(0,s.jsx)("button",{type:"button",onClick:A,className:"w-[130px] text-right text-xxs uppercase text-[#BC9E84] md:w-full",children:k}),j&&(0,s.jsx)("button",{type:"button",onClick:N,className:"flex items-center justify-center text-gray-400 hover:text-gray-600",children:j})]}),v&&(0,s.jsx)("div",{className:"absolute right-0 cursor-pointer",onClick:()=>S(!R),children:R?(0,s.jsx)(i.A,{strokeWidth:1,size:20}):(0,s.jsx)(c.A,{strokeWidth:1,size:20})})]}),(0,s.jsx)("label",{htmlFor:h,className:"text-grey-darker pointer-events-none absolute left-0 top-1 bg-transparent text-xxs uppercase text-gray-400 transition duration-200 ease-in-out",children:x})]}),g&&(0,s.jsx)("div",{className:"mt-1.5 text-xxs uppercase text-error",children:g})]})},x=f},64269:(e,t,r)=>{r.d(t,{B9:()=>x,BH:()=>f,PE:()=>h,XV:()=>p,cn:()=>u,fC:()=>g,q5:()=>m,td:()=>d});var a=r(2821),l=r(75889),n=r(17625),s=r(26467),o=r(56753),i=r(14170);let c=(0,l.zu)({extend:{theme:{text:["xxs","app-50","app-40","app-35","app-26","app-25","app-xl","app-l","app-m","app-s","app-xs"]},classGroups:{"text-app-underline":["text-app-underline"]}}});function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c((0,a.$)(t))}let d=(e,t)=>t[e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2]||"",p=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"₽",a=e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ");return t&&(a="".concat(a," ").concat(r)),a},f=e=>{if(!e)return!1;let t=e.replace(/\D/g,"");return 11===t.length&&t.startsWith("79")},x=e=>!!e&&/^(?=.{6,256}$)[a-zA-Z0-9!#$%&'*\/=?^`{|}~.\-_]+@{1}[a-zA-Z0-9-]+\.[a-zA-Z0-9-]{2,}$/.test(e),h=e=>{if(Array.isArray(e)&&e.length>0){var t,r;return null!=(r=null==(t=e[0])?void 0:t.description)?r:"Ошибка валидации"}return"object"==typeof e&&(null==e?void 0:e.message)?e.message:"string"==typeof e?e:"Произошла ошибка"},m=e=>{let t;if(null==e||""===e)return null;if(e instanceof Date)t=e;else if("number"==typeof e)t=new Date(e);else{if("string"!=typeof e)return null;e.match(/^(\d{2})\.(\d{2})\.(\d{4})$/)?t=(0,n.qg)(e,"dd.MM.yyyy",new Date):(t=(0,s.H)(e),(0,o.f)(t)||(t=new Date(e)))}return(0,o.f)(t)?t:null},g=(e,t,r)=>{let a=m(e);if(!a)return null;try{return(0,i.GP)(a,t,r)}catch(e){return null}}},96239:(e,t,r)=>{r.d(t,{N5:()=>n,Of:()=>o});let a=null,l=()=>{"object"==typeof window.smartCaptcha&&"function"==typeof window.smartCaptcha.reset&&null!==a&&(window.smartCaptcha.reset(a),a=null)},n=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smartCaptcha";return new Promise((t,r)=>{o(!0);let a=setInterval(()=>{void 0!==window.smartCaptcha&&(clearInterval(a),setTimeout(()=>{var a,n;let o=null==(n=window.smartCaptcha)||null==(a=n.getResponse)?void 0:a.call(n);if(o)return l(),t(o);s(!1,e,window.innerWidth<760?"ysc1_gKIsC7Ev2vjMgi90TPtMXKmkYeYv2ASe014nTrvXa13138ac":"ysc1_OEgl6zPKaf7fMSCGZ7TkiKsP1wE6fP0ytiPwxmeQcf348e7a").then(a=>{l(),a?t(a):s(!1,e,"ysc1_OEgl6zPKaf7fMSCGZ7TkiKsP1wE6fP0ytiPwxmeQcf348e7a").then(e=>{l(),t(e)}).catch(()=>r("smartCaptchaTokenError"))}).catch(()=>r("smartCaptchaTokenError"))},1e3))},100)})},s=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Promise((e,t)=>
1{e("captcha")})},o=e=>{}}}]);

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.