PageSourceSearch

https://media2.star-tex.ru/_next/static/chunks/1897-0fb7cc54e7f2b196.js

js star-tex.ru collected 2026-09-24 19:01:05 UTC 10,322 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]="a970fcf9-37d5-4813-af46-da9743f0f29e",e._sentryDebugIdIdentifier="sentry-dbid-a970fcf9-37d5-4813-af46-da9743f0f29e")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1897],{11897:(e,t,n)=>{n.d(t,{A:()=>k});var s=n(37876),a=n(14232),l=n(58103),i=n.n(l),d=n(58307),o=n(47864),r=n(26978),c=n.n(r),u=n(82525),p=n(59870),m=n(29046),f=n(65835),h=n(19213),y=n(75667),x=n.n(y);let v=e=>{let{mask:t,onChange:n,defaultSlug:l}=e,[d,r]=(0,a.useState)(t?Object.keys(m.uE).find(e=>m.uE[e].mask===t&&(!l||e===l)):Object.keys(m.uE).find(e=>m.uE[e].default||"ru"===e)),[c,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>(!t&&d&&m.uE[d]&&n(null===m.uE||void 0===m.uE?void 0:m.uE[d].mask),()=>{c&&(window.removeEventListener("click",f),window.removeEventListener("keydown",h))}),[]),(0,a.useEffect)(()=>{t&&l&&r(Object.keys(m.uE).find(e=>m.uE[e].mask===t&&(!l||e===l)))},[t,l]),(0,a.useEffect)(()=>{c&&(window.addEventListener("click",f),window.addEventListener("keydown",h)),c||(window.removeEventListener("click",f),window.removeEventListener("keydown",h))},[c]);let p=e=>{let t=e&&e.currentTarget&&e.currentTarget.dataset,s=t&&e.currentTarget.dataset.slug,a=t&&e.currentTarget.dataset.mask;r(s),n(a),y()},f=e=>{let t=e.target;for(;t&&"__next"!==t.id;){if(!(0,o.A)(t.classList)&&t.classList.contains("phone-country-select"))return;t=t.parentNode}c&&u(!1)},h=e=>{27===e.keyCode&&c&&u(!1)},y=()=>{u(!c)};return(0,s.jsx)("span",{className:"".concat(x().phoneCountrySelect," phone-country-select"),children:(0,s.jsx)("span",{className:i()(x().phoneCountrySelectList,"phone-country-select__list",{["".concat(x().phoneCountrySelectListOpened," phone-country-select__list_opened")]:c}),children:Object.keys(m.uE).map(e=>{let t=e===d;return(0,s.jsxs)("span",{className:i()(x().phoneCountrySelectItem,"phone-country-select__item",{["".concat(x().phoneCountrySelectItemActive," phone-country-select__item_active")]:t}),"data-slug":e,"data-mask":m.uE[e].mask,title:m.uE[e].title,onClickCapture:t?y:p,children:[(0,s.jsx)("span",{className:i()(x().phoneCountrySelectIcon,"phone-country-select__icon",["phone-country-select__icon_".concat(e)])}),(0,s.jsx)("span",{className:"".concat(x().phoneCountrySelectText," phone-country-select__text"),children:e})]},"phone-mask-item-".concat(e))})})})};var _=n(61279),g=n.n(_);let b={required:!1,type:"text",name:"textField",value:"",mask:null,disabled:!1},k=e=>{let{inputParams:t,style:n,error:l,success:r,hint:y,showLoader:x,noYesWordForCheckbox:_,requiredPlaceholder:k,modern:j,title:w,reason:E,titleNote:N,onPhoneMaskSelect:C,onFocus:L,onBlur:S,dataset:O,forceInlineHint:I,onChange:T,defaultPhoneMaskSlug:M}=e,W=(0,u.GV)(p.dG),A=(0,a.useRef)({value:""}),B=(0,a.useRef)({value:null}),D=(0,a.useRef)(null),H=(0,a.useRef)(null),[V,R]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=D.current.getElementsByTagName("input"),t=D.current.getElementsByTagName("select");if(O){for(let t=0;t<e.length;t++)Object.keys(O).forEach(n=>{e[t].dataset[n]=O[n]});for(let e=0;e<t.length;e++)Object.keys(O).forEach(n=>{t[e].dataset[n]=O[n]})}y&&I&&z()},[]),(0,a.useEffect)(()=>{y&&I&&z()},[I,y]);let F=e=>{"function"==typeof T&&(t.mask===m.uE.ru.mask&&("Backspace"!==e.key||B.current.value||(B.current.value=!0),"+7 89"!==e.target.value||B.current.value||(e.target.value="+7 9")),"multiSelect"===t.type||"select2"===t.type?T(e):T(e.target,A))},z=()=>{if(!(0,f.MaB)())return;let e=D.current.getElementsByTagName("input"),n=document.createElement("span"),s=document.createElement("span"),a=document.createElement("span");n.innerHTML=(null==t?void 0:t.value)||"",s.innerHTML=(null==t?void 0:t.placeholder)||"",a.innerHTML=y||"";let l=window.getComputedStyle(e[0]);n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.fontSize=l.fontSize,n.style.paddingLeft=l.paddingLeft,s.style=n.style,a.style=n.style,document.body.appendChild(n),document.body.appendChild(s),document.body.appendChild(a);let i=n.offsetWidth,d=s.offsetWidth+parseInt(l.paddingLeft),o=a.offsetWidth+parseInt(l.paddingLeft);document.body.removeChild(n),document.body.removeChild(s),document.body.removeChild(a);let r=Math.max(d,i),c=D.current.clientWidth,u=e[0].clientWidth,p=D.current.getElementsByClassName("hint")&&D.current.getElementsByClassName("hint")[0];p&&(e[0]&&r+o>e[0].offsetWidth?p.style.display="none":(p.style.display="block",p.style.left="".concat(c-u+r+10,"px")))},q=e=>(0,s.jsxs)("div",{className:"field-reason",children:[(0,s.jsx)("span",{className:"field-reason__title",children:"для чего"}),(0,s.jsx)("div",{className:"field-reason__content",children:e})]}),{ref:G,required:K,type:Z,name:P,value:U,checked:J,mask:Q,alwaysShowMask:X,placeholder:Y,disabled:$,readOnly:ee,step:et,options:en,getOptionLabel:es,getOptionValue:ea,formatOptionLabel:el,classNamePrefix:ei,isClearable:ed,className:eo,showSelectedOption:er,notSearchable:ec,onMenuOpen:eu,menuIsOpen:ep,styles:em,id:ef,inputStyle:eh}={...b,...t},ey={ref:G,type:Z,name:P,value:U,checked:J,placeholder:Y,disabled:$,readOnly:ee,title:w,step:et,id:ef,className:eo,style:eh,onChange:F,onFocus:e=>{"function"==typeof L&&L(e.target)},onBlur:e=>{"function"==typeof S&&S(e.target)},onKeyUp:()=>A.current.value="",onKeyDown:e=>A.current.value=e.key}
1,ex=i()({fieldset:!0,error:l,success:r,"fieldset_with-phone-mask-select":"function"==typeof C,"fieldset_with-title":!!w,fieldset_modern:j,"fieldset_modern-empty":j&&!U&&!Y,"fieldset_modern-filled":j&&(U||Y),fieldset_select:"select2"===Z,[g().inputFieldset]:!0}),ev=Q&&Object.values(m.uE).find(e=>e.mask===Q)||{},e_=ev&&ev.altMask,eg=ev&&ev.formatChars||{};return(0,s.jsxs)("div",{className:ex,style:n,ref:D,children:[(0,s.jsxs)("label",{children:[w&&!j&&(0,s.jsxs)("span",{className:i()("title",{"title_for-checkbox":"checkbox"===Z}),children:[w,K&&!k&&(0,s.jsx)("span",{className:"required",children:"*"}),N&&" ",N&&(0,s.jsx)("span",{className:"title-note",children:N}),E&&W&&q(E)]}),!Q&&"textarea"!==Z&&"select"!==Z&&"multiSelect"!==Z&&"select2"!==Z&&"radio"!==Z&&"password"!==P&&"confirm_password"!==P&&(0,s.jsx)("input",{...ey}),("password"===P||"confirm_password"===P)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:i()(g().passwordIcon,"password-icon",{[g().passwordIcon_Hidden]:!V}),onClick:()=>R(!V),children:(0,s.jsx)("div",{className:"".concat(g().passwordHint," password-hint"),children:V?"Скрыть пароль":"Показать пароль"})}),(0,s.jsx)("input",{...ey,type:V?"text":"password"})]}),!_&&"checkbox"===Z&&"да","select"===Z&&(0,s.jsxs)("select",{className:i()({"has-empty-value":!U}),value:U||"",disabled:$||ee,onChange:F,name:P,ref:H,children:[Y&&(0,s.jsx)("option",{disabled:!0,value:"",hidden:!0,children:Y}),(0,f.uGO)(en)&&en.map(e=>(0,s.jsx)("option",{value:e.value,disabled:!!e.disabled,children:e.name},e.value))]}),"multiSelect"===Z&&(0,s.jsx)(d.Ay,{name:P,placeholder:"выбрать из списка",styles:em||h.Ay,options:en,onChange:F,value:U,isMulti:!0,hideSelectedOptions:!0,getOptionLabel:es,getOptionValue:ea,menuIsOpen:ep}),"select2"===Z&&(0,s.jsx)(d.Ay,{name:P,placeholder:j?!ec&&Y||null:Y||"выбрать из списка",className:eo,styles:eo?{}:em||h.Vk,options:en,onChange:F,onFocus:j?()=>{D.current&&(D.current.classList.contains("fieldset_modern-focus")||D.current.classList.add("fieldset_modern-focus"))}:void 0,onBlur:j?()=>{D.current&&D.current.classList.contains("fieldset_modern-focus")&&D.current.classList.remove("fieldset_modern-focus")}:void 0,value:U||"",isMulti:!1,isDisabled:$,isClearable:ed,hideSelectedOptions:!er,isSearchable:!ec,getOptionLabel:es,getOptionValue:ea,formatOptionLabel:el,classNamePrefix:ei,menuIsOpen:ep,onMenuOpen:eu,blurInputOnSelect:!0,noOptionsMessage:()=>"Ничего не найдено"}),"radio"===Z&&(0,s.jsx)("div",{className:"field-value__list",children:en.map(e=>(0,s.jsx)("div",{className:"field-value__item field-value__item_inline",children:(0,s.jsxs)("label",{className:"field-value__item-label",children:[(0,s.jsx)("input",{type:"radio",className:"field-value__item-input",name:P,value:e.value,checked:e.value===U,disabled:e.disabled||$,onChange:F},e.value),e.name]})},"field-".concat(P,"-value-").concat(e.value)))}),Q&&"textarea"!==Z&&(0,s.jsx)(c(),{...ey,ref:G,mask:e_||Q,alwaysShowMask:X||!1,maskChar:null,formatChars:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]",...eg}}),"textarea"===Z&&(0,s.jsx)("textarea",{...ey,ref:G}),w&&j&&(0,s.jsxs)("span",{className:i()("title","title_modern",{"title_modern-filled":!(0,o.A)(ey.value)}),children:[w,K&&!k&&(0,s.jsx)("span",{className:"required",children:"*"}),N&&" ",N&&(0,s.jsx)("span",{className:"title-note",children:N}),E&&W&&q(E)]}),!U&&k&&(0,s.jsx)("span",{className:"placeholder",children:k})]}),"function"==typeof C&&(0,s.jsx)(v,{mask:Q,onChange:e=>{"function"==typeof C&&(H.current&&"function"==typeof H.current.getInputDOMNode&&H.current.getInputDOMNode().focus(),C(e,null==t?void 0:t.name))},defaultSlug:M}),l&&(0,s.jsx)("span",{className:"error",children:l.errorText}),r&&(0,s.jsx)("span",{className:"success",children:r}),y&&(0,s.jsx)("span",{className:"hint",children:y}),E&&!W&&q(E),x&&(0,s.jsxs)("span",{className:i()("fieldset__loader","bubble-preloader","bubble-preloader_blue",{fieldset__loader_offset:["select","select2","multiSelect"].includes(Z)}),children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})]})}},19213:(e,t,n)=>{n.d(t,{Ay:()=>a,Vk:()=>l});let s={control:e=>({...e,backgroundColor:"white",border:"1px solid #d7d7d7",borderRadius:0,maxWidth:"240px",minWidth:"180px",minHeight:"35px"}),valueContainer:e=>({...e,maxWidth:"69%",padding:"0 8px"}),multiValue:e=>({...e,maxWidth:"100%"}),multiValueLabel:e=>({...e}),multiValueRemove:e=>({...e}),input:e=>({...e,height:"28px",lineHeight:"28px",padding:"0"}),clearIndicator:e=>({...e,padding:"6px"}),dropdownIndicator:e=>({...e,padding:"6px"}),indicatorSeparator:e=>({...e,marginTop:"6px",marginBottom:"6px"}),menu:e=>({...e,maxWidth:"240px"})},a=s,l={...s,control:e=>({...e,backgroundColor:"white",border:"1px solid #d7d7d7",borderRadius:0,maxWidth:"100%",minWidth:"180px",minHeight:"35px"})}}}]);

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.