PageSourceSearch

https://shtrafovnet.ru/_next/static/chunks/6316-5aab852fbfc69621.js

js shtrafovnet.ru collected 2026-10-05 18:46:59 UTC 16,033 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6316],{16576:function(t,e,o){o.d(e,{Fs:function(){return getCompaniesService},HR:function(){return editCompanyService},KM:function(){return getDDataCompanyService},b0:function(){return getCompanyService},x0:function(){return createCompanyService}});var c=o(43796);let getCompaniesService=(t,e)=>(0,c.W)({url:"/proxy/v3/companies",method:"GET",params:t},{ctx:e}),getCompanyService=(t,e)=>(0,c.W)({url:"/proxy/v3/companies/".concat(t),method:"GET"},{ctx:e}),editCompanyService=(t,e)=>(0,c.W)({url:"/proxy/v3/companies/".concat(t.company_id),method:"PUT",data:t},{ctx:e}),getDDataCompanyService=(t,e)=>(0,c.W)({url:"/proxy/v3/companies/inn",method:"PUT",data:t},{ctx:e}),createCompanyService=(t,e)=>(0,c.W)({url:"/proxy/v3/companies",method:"POST",data:t},{ctx:e})},16626:function(t,e,o){o.d(e,{x:function(){return r}});var c=o(85893),a=o(51259),n=o.n(a),s=o(67294),i=o(14120);let r=(0,s.forwardRef)((t,e)=>{let{children:o,className:a,id:s,dis:r="block",pos:u,jc:l,ai:d,fw:x,fd:m,fg:y,fs:p,gap:_,gta:g,gtc:b,gtr:h,ga:f,gaf:S,gac:v,top:A,bottom:w,left:C,right:E,minw:N,maxw:j,minh:T,maxh:W,w:P,h:F,p:R,ofx:k,ofy:D,mt:I,mr:M,mb:U,ml:O,pt:G,pr:z,pb:V,pl:J,zi:H,...K}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{id:s,ref:e,...K,className:n().dynamic([["48a9251c8f658199",[r,r,u,u,l,l,d,d,x,x,m,m,y,y,p,p,_,_,g,b,h,f,S,v,A,A,w,w,C,C,E,E,H,H,N,N,j,j,T,T,W,W,P,F,R,k,k,D,D,I,"auto"===I?"auto":I+"px",M,"auto"===M?"auto":M+"px",U,"auto"===U?"auto":U+"px",O,"auto"===O?"auto":O+"px",G,"auto"===G?"auto":G+"px",z,"auto"===z?"auto":z+"px",V,"auto"===V?"auto":V+"px",J,"auto"===J?"auto":J+"px"]]])+" "+(K&&null!=K.className&&K.className||(0,i.Ch)("box",a,"box_display-".concat(r),u&&"box_pos-".concat(u),l&&"box_jc-".concat(l),d&&"box_ai-".concat(d),x&&"box_fw-".concat(x),m&&"box_fd-".concat(m),y&&"box_fg-".concat(y),void 0!==p&&"box_fs-".concat(p),_&&"box_gap-".concat(_),void 0!==g&&"box_gta",void 0!==b&&"box_gtc",void 0!==h&&"box_gtr",void 0!==f&&"box_ga",void 0!==S&&"box_gaf",void 0!==v&&"box_gac",void 0!==A&&"box_top-".concat(A),void 0!==w&&"box_bottom-".concat(w),void 0!==C&&"box_left-".concat(C),void 0!==E&&"box_right-".concat(E),void 0!==H&&"box_zi-".concat(H),N&&"box_minw-".concat(N),j&&"box_maxw-".concat(j),T&&"box_minh-".concat(T),W&&"box_maxh-".concat(W),void 0!==P&&"box_w",void 0!==F&&"box_h",void 0!==R&&"box_p",k&&"box_ofx-".concat(k),D&&"box_ofy-".concat(D),I&&"box_mt-".concat(I),M&&"box_mr-".concat(M),U&&"box_mb-".concat(U),O&&"box_ml-".concat(O),G&&"box_pt-".concat(G),z&&"box_pr-".concat(z),V&&"box_pb-".concat(V),J&&"box_pl-".concat(J))||""),children:o}),(0,c.jsx)(n(),{id:"48a9251c8f658199",dynamic:[r,r,u,u,l,l,d,d,x,x,m,m,y,y,p,p,_,_,g,b,h,f,S,v,A,A,w,w,C,C,E,E,H,H,N,N,j,j,T,T,W,W,P,F,R,k,k,D,D,I,"auto"===I?"auto":I+"px",M,"auto"===M?"auto":M+"px",U,"auto"===U?"auto":U+"px",O,"auto"===O?"auto":O+"px",G,"auto"===G?"auto":G+"px",z,"auto"===z?"auto":z+"px",V,"auto"===V?"auto":V+"px",J,"auto"===J?"auto":J+"px"],children:".box.__jsx-style-dynamic-selector{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.box_display-".concat(r,".__jsx-style-dynamic-selector{display:").concat(r,"}.box_pos-").concat(u,".__jsx-style-dynamic-selector{position:").concat(u,"}.box_jc-").concat(l,".__jsx-style-dynamic-selector{-webkit-box-pack:").concat(l,";-webkit-justify-content:").concat(l,";-moz-box-pack:").concat(l,";-ms-flex-pack:").concat(l,";justify-content:").concat(l,"}.box_ai-").concat(d,".__jsx-style-dynamic-selector{-webkit-box-align:").concat(d,";-webkit-align-items:").concat(d,";-moz-box-align:").concat(d,";-ms-flex-align:").concat(d,";align-items:").concat(d,"}.box_fw-").concat(x,".__jsx-style-dynamic-selector{-webkit-flex-wrap:").concat(x,";-ms-flex-wrap:").concat(x,";flex-wrap:").concat(x,"}.box_fd-").concat(m,".__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(m,";-ms-flex-direction:").concat(m,";flex-direction:").concat(m,"}.box_fg-").concat(y,".__jsx-style-dynamic-selector{-webkit-box-flex:").concat(y,";-webkit-flex-grow:").concat(y,";-moz-box-flex:").concat(y,";-ms-flex-positive:").concat(y,";flex-grow:").concat(y,"}.box_fs-").concat(p,".__jsx-style-dynamic-selector{-webkit-flex-shrink:").concat(p,";-ms-flex-negative:").concat(p,";flex-shrink:").concat(p,"}.box_gap-").concat(_,".__jsx-style-dynamic-selector{gap:").concat(_,"px}.box_gta.__jsx-style-dynamic-selector{grid-template-areas:").concat(g,"}.box_gtc.__jsx-style-dynamic-selector{grid-template-columns:").concat(b,"}.box_gtr.__jsx-style-dynamic-selector{grid-template-rows:").concat(h,"}.box_ga.__jsx-style-dynamic-selector{grid-area:").concat(f,"}.box_gaf.__jsx-style-dynamic-selector{grid-auto-flow:").concat(S,"}.box_gac.__jsx-style-dynamic-selector{grid-auto-columns:").concat(v,"}.box_top-").concat(A,".__jsx-style-dynamic-selector{top:").concat(A,"px}.box_bottom-").concat(w,".__jsx-style-dynamic-selector{bottom:").concat(w,"px}.box_left-").concat(C,".__jsx-style-dynamic-selector{left:").concat(C,"px}.box_right-").concat(E,".__jsx-style-dynamic-selector{right:").concat(E,"px}.box_zi-").concat(H,".__jsx-style-dynamic-selector{z-index:").concat(H,"}.box_minw-").concat(N,".__jsx-style-dynamic-selector{min-width:").concat(N,"px}.box_maxw-").concat(j,".__jsx-style-dynamic-selector{max-width:").concat(j,"px}.box_minh-").concat(T,".__jsx-style-dynamic-selector{min-height:").concat(T,"px}.box_maxh-").concat(W,".__jsx-style-dynamic-selector{max-height:").concat(W,"px}.box_w.__jsx-style-dynamic-selector{width:").concat(P,"}.box_h.__jsx-style-dynamic-selector{height:").concat(F,"}.box_p.__jsx-style-dynamic-selector{padding:").concat(R,"}.box_ofx-").concat(k,".__jsx-style-dynamic-selector{overflow-x:").concat(k,"}.box_ofy-").concat(D,".__jsx-style-dynamic-selector{overflow-y:").concat(D,"}.box_mt-").concat(I,".__jsx-style-dynamic-selector{margin-top:").concat("auto"===I?"auto":I+"px","}.box_mr-").concat(M,".__jsx-style-dynamic-selector{margin-right:").concat("auto"===M?"auto":M+"px","}.box_mb-").concat(U,".__jsx-style-dynamic-selector{margin-bottom:").concat("auto"===U?"auto":U+"px","}.box_ml-").concat(O,".__jsx-style-dynamic-selector{margin-left:").concat("auto"===O?"auto":O+"px","}.box_pt-").concat(G,".__jsx-style-dynamic-selector{padding-top:").concat("auto"===G?"auto":G+"px","}.box_pr-").concat(z,".__jsx-style-dynamic-selector{padding-right:").concat("auto"===z?"auto":z+"px","}.box_pb-").concat(V,".__jsx-style-dynamic-selector{padding-bottom:").concat("auto"===V?"auto":V+"px","}.box_pl-").concat(J,".__jsx-style-dynamic-selector{padding-left:").concat("auto"===J?"auto":J+"px","}")})]})})},42276:function(t,e,o){o.d(e,{n:function(){return CompanyProvider},y:function(){return useCompanyContext}});var c=o(85893),a=o(67294),n=o(93513),s=o(28607),i=o(24860),r=o(16576);let u={getCompany:"WAIT",editCompany:"WAIT",getDDataCompany:"WAIT"},useCompanyState=t=>{let e=(0,s.Z)(),o=(0,i.tJ)(),c={company:null==t?void 0:t.initialCompany,dDataCompany:void 0,fetchingStatuses:u,errorMessage:"",error:void 0},[l,d]=(0,a.useState)(c),x={setFetchingStatus:(t,e,o,c)=>{d(a=>{let s=(0,n.Uy)(a,a=>{a.fetchingStatuses[t]=e,a.errorMessage=null!=c?c:"",a.error=o});return s})},setCompany:t=>{d(e=>{let o=(0,n.Uy)(e,e=>{e.company=t.company,e.fetchingStatuses.getCompany=void 0!==t.status?t.status:e.fetchingStatuses.getCompany,e.errorMessage="",e.error=void 0});return o}
1)},setDDataCompany:t=>{d(e=>{let o=(0,n.Uy)(e,e=>{e.dDataCompany=t.company,e.fetchingStatuses.getDDataCompany=void 0!==t.status?t.status:e.fetchingStatuses.getDDataCompany,e.errorMessage="",e.error=void 0});return o})},editCompany:t=>{d(e=>{let o=(0,n.Uy)(e,e=>{e.company=t.company,e.fetchingStatuses.editCompany=void 0!==t.status?t.status:e.fetchingStatuses.editCompany,e.errorMessage="",e.error=void 0});return o})},resetState:()=>{d({company:void 0,dDataCompany:void 0,fetchingStatuses:u,errorMessage:"",error:void 0})}};return{companyState:l,companyActions:x,companyThunks:{getCompany:async()=>{x.setFetchingStatus("getCompany","PENDING");try{let t=await (0,r.b0)(e);return x.setCompany({company:t,status:"WAIT"}),t}catch(e){let t="Не удалось получить компанию";x.setFetchingStatus("getCompany","ERROR",e,t),o.translatedError(e,t)}},editCompany:async t=>{let{successMessage:c,errorMessage:a,...n}=t;x.setFetchingStatus("editCompany","PENDING");try{var s;let c=await (0,r.HR)({company_id:e,...n});return x.editCompany({company:c,status:"WAIT"}),o.successful(null!==(s=t.successMessage)&&void 0!==s?s:"Редактирование данных компании успешно завершено"),c}catch(e){let t=null!=a?a:"Не удалось отредактировать компанию";x.setFetchingStatus("editCompany","ERROR",e,t),o.translatedError(e,t)}},getDDataCompany:async t=>{x.setFetchingStatus("getDDataCompany","PENDING");try{let e=await (0,r.KM)(t);return x.setDDataCompany({company:e.company,status:"WAIT"}),e}catch(e){let t="Не удалось получить данные компании";x.setFetchingStatus("getDDataCompany","ERROR",e,t),o.translatedError(e,t)}}}}},l=(0,a.createContext)(null),useCompanyContext=()=>{let t=(0,a.useContext)(l);if(!t)throw Error("Can not 'useCompanyContext' outside of the 'CompanyProvider'");return t},CompanyProvider=t=>{let{children:e,...o}=t,a=useCompanyState(o);return(0,c.jsx)(l.Provider,{value:a,children:e})}},7055:function(t,e,o){o.d(e,{U:function(){return useAccountState},N:function(){return useAdditionalAccountState}});var c=o(67294),a=o(93513),n=o(24860),s=o(43796);let getAccount=t=>(0,s.W)({url:"/proxy/v3/account",method:"GET"},{ctx:t}),editAccount=(t,e)=>(0,s.W)({url:"/proxy/v3/account",method:"PUT",data:t},{ctx:e}),editSubscriptionToNotifications=(t,e)=>(0,s.W)({url:"/proxy/v3/account/subscription",method:"PUT",data:t},{ctx:e}),editAccountEmailService=(t,e)=>(0,s.W)({url:"/proxy/v3/account/email",method:"POST",data:t},{ctx:e}),editAccountFullNameService=(t,e)=>(0,s.W)({url:"/proxy/v3/account/name",method:"POST",data:t},{ctx:e}),resendVerificationService=(t,e)=>(0,s.W)({url:"/proxy/v3/account/resend-verification",method:"POST",data:t},{ctx:e}),editAccountPasswordService=(t,e)=>(0,s.W)({url:"/proxy/v3/account/password",method:"POST",data:t},{ctx:e}),editAccountWorkPhoneService=(t,e)=>(0,s.W)({url:"/proxy/v3/account",method:"PUT",data:t},{ctx:e});var i=o(60820);let r={getAccount:"WAIT",editAccount:"WAIT",editSubscriptionToNotifications:"WAIT",editAccountEmail:"WAIT",editAccountFullName:"WAIT",editAccountWorkPhone:"WAIT"},useAccountState=t=>{let e=(0,n.tJ)(),o={account:null==t?void 0:t.initialAccount,fetchingStatuses:r,errorMessage:"",error:void 0},[s,u]=(0,c.useState)(o),l={setFetchingStatus:(t,e,o,c)=>{u(n=>{let s=(0,a.Uy)(n,a=>{a.fetchingStatuses[t]=e,a.errorMessage=null!=c?c:"",a.error=o});return s})},setAccount:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.getAccount=void 0!==t.status?t.status:e.fetchingStatuses.getAccount,e.errorMessage="",e.error=void 0});return o})},editAccount:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.editAccount=void 0!==t.status?t.status:e.fetchingStatuses.editAccount,e.errorMessage="",e.error=void 0});return o})},editAccountEmail:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.editAccountEmail=void 0!==t.status?t.status:e.fetchingStatuses.editAccountEmail,e.errorMessage="",e.error=void 0});return o})},editAccountFullName:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.editAccountFullName=void 0!==t.status?t.status:e.fetchingStatuses.editAccountFullName,e.errorMessage="",e.error=void 0});return o}
1)},editSubscriptionToNotifications:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.editSubscriptionToNotifications=void 0!==t.status?t.status:e.fetchingStatuses.editSubscriptionToNotifications,e.errorMessage="",e.error=void 0});return o})},editAccountWorkPhone:t=>{u(e=>{let o=(0,a.Uy)(e,e=>{e.account=t.account,e.fetchingStatuses.editAccountWorkPhone=void 0!==t.status?t.status:e.fetchingStatuses.editAccountWorkPhone,e.errorMessage="",e.error=void 0});return o})},resetState:()=>{u({account:void 0,fetchingStatuses:r,errorMessage:"",error:void 0})}};return{state:s,actions:l,thunks:{getAccount:async()=>{l.setFetchingStatus("getAccount","PENDING");try{let t=await getAccount();return l.setAccount({account:t,status:"WAIT"}),t}catch(o){let t="Не удалось получить аккаунт";l.setFetchingStatus("getAccount","ERROR",o,t),e.translatedError(o,t)}},editAccount:async t=>{l.setFetchingStatus("editAccount","PENDING");try{let o=await editAccount({...t,work_phone:i.phone.parse(t.work_phone)});return l.editAccount({account:o,status:"WAIT"}),e.successful("Аккаунт отредатирован"),o}catch(o){let t="Не удалось отредактировать аккаунт";l.setFetchingStatus("editAccount","ERROR",o,t),e.translatedError(o,t)}},editAccountEmail:async t=>{let{req:o,isSuccessMessageVisible:c=!0}=t;l.setFetchingStatus("editAccountEmail","PENDING");try{let{account:t}=await editAccountEmailService(o);return l.editAccountEmail({account:t,status:"WAIT"}),c&&e.successful("Email отредатирован"),t}catch(o){let t="Не удалось отредактировать email";l.setFetchingStatus("editAccountEmail","ERROR",o,t),e.translatedError(o,t)}},editAccountFullName:async t=>{let{req:o,isSuccessMessageVisible:c=!0}=t;l.setFetchingStatus("editAccountFullName","PENDING");try{let{account:t}=await editAccountFullNameService(o);return l.editAccountFullName({account:t,status:"WAIT"}),c&&e.successful("ФИО отредатированы"),t}catch(o){let t="Не удалось отредактировать ФИО";l.setFetchingStatus("editAccountFullName","ERROR",o,t),e.translatedError(o,t)}},editSubscriptionToNotifications:async t=>{l.setFetchingStatus("editSubscriptionToNotifications","PENDING");try{let o=await editSubscriptionToNotifications(t);return l.editSubscriptionToNotifications({account:o,status:"WAIT"}),t.subscribed?e.successful("Уведомления включены"):e.successful("Уведомления выключены"),o}catch(o){let t="Не удалось отредактировать уведомления";l.setFetchingStatus("editSubscriptionToNotifications","ERROR",o,t),e.translatedError(o,t)}},editAccountWorkPhone:async t=>{l.setFetchingStatus("editAccountWorkPhone","PENDING");try{let o=await editAccountWorkPhoneService(t);return l.editAccountWorkPhone({account:o,status:"WAIT"}),e.successful("Рабочий телефон отредатирован"),o}catch(o){let t="Не удалось отредактировать рабочий телефон";l.setFetchingStatus("editAccountWorkPhone","ERROR",o,t),e.translatedError(o,t)}}}}},u={resendVerification:"WAIT",editPassword:"WAIT"},useAdditionalAccountState=()=>{let t=(0,n.tJ)(),[e,o]=(0,c.useState)({fetchingStatuses:u,errorMessage:"",error:void 0}),s={setFetchingStatus:(t,e,c,n)=>{o(o=>{let s=(0,a.Uy)(o,o=>{o.fetchingStatuses[t]=e,o.errorMessage=null!=n?n:"",o.error=c});return s})},resetState:()=>{o({fetchingStatuses:u,errorMessage:"",error:void 0})}};return{state:e,actions:s,thunks:{resendVerification:async e=>{s.setFetchingStatus("resendVerification","PENDING");try{let o=await resendVerificationService({...e});return s.setFetchingStatus("resendVerification","WAIT"),t.successful("Письмо с активацией повторно отправлено на почту"),o}catch(o){let e="Не удалось активировать email";s.setFetchingStatus("resendVerification","ERROR",o,e),t.translatedError(o,e)}},editPassword:async e=>{s.setFetchingStatus("editPassword","PENDING");try{let o=await editAccountPasswordService(e);return s.setFetchingStatus("editPassword","WAIT"),t.successful("Пароль изменён"),o}catch(o){let e="Не удалось изменить пароль";s.setFetchingStatus("editPassword","ERROR",o,e),t.translatedError(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.