1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4433],{8607:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/password",function(){return r(3279)}])},4604:function(e,s,r){"use strict";r.d(s,{Z:function(){return l}});var n=r(4335);let o="/groups",a="/users",i="/items",t="/orders",d="/carts",c="/companies";var l={groups:{index:e=>(0,n.R1)(`${o}`,e),show:(e,s,r)=>(s={...s,id:void 0},(0,n.R1)(`${o}/${e}`,s,r))},users:{index:e=>(0,n.R1)(`${a}`,e),create:e=>(0,n.sg)(`${a}`,e),show:e=>(0,n.R1)(`${a}/${e}`),init:e=>(0,n.sg)("/init"),profile:()=>(0,n.R1)(`${a}/profile`),signIn:e=>(0,n.sg)("/sign_in",e),update:(e,s)=>(0,n.nc)(`${a}/${e}`,s),change_password:e=>(0,n.nc)(`${a}/change_password`,e),remember_password:e=>(0,n.sg)(`${a}/remember_password`,e)},items:{show:e=>(0,n.R1)(`${i}/${e}`),rand:()=>(0,n.R1)(`${i}/rand`),set_favorite:e=>(0,n.sg)(`${i}/${e}/set_favorite`)},orders:{sync:e=>(0,n.sg)(`${t}/sync`,e),init:()=>(0,n.R1)(`${t}/init`),checkOut:e=>(0,n.sg)(`${t}/checkout`,e),index:e=>(0,n.R1)(`${t}`,{page:e}),show:e=>(0,n.R1)(`${t}/${e}`)},search:{index:e=>(0,n.R1)("/search",e)},carts:{index:()=>(0,n.R1)(`${d}`),show:e=>(0,n.R1)(`${d}/${e}`),quote:(e,s)=>(0,n.sg)(`${d}/${e}/quote`,{excludedItemIds:s}),add_item:e=>(0,n.sg)(`${d}/add_item`,e),create_cart:e=>(0,n.sg)(`${d}`,e),move_item:e=>(0,n.sg)([d,"move_item"].join("/"),e),deleteItem:e=>(0,n.sg)([d,"delete_item"].join("/"),e),checkout:e=>(0,n.sg)([d,"checkout"].join("/"),e)},companies:{index:()=>(0,n.R1)(`${c}`),create:e=>(0,n.sg)(c,e),update:(e,s)=>(0,n.nc)([c,e].join("/"),s)}}},6150:function(e,s,r){"use strict";var n=r(5893);r(7294),s.Z=e=>(e.error&&["Input"].push("Input--error"),(0,n.jsx)("input",{...e,className:"bg-gray-50 border border-gray-300 text-gray-900 rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"}))},448:function(e,s,r){"use strict";var n=r(5893);r(7294),s.Z=e=>(0,n.jsxs)("div",{className:"Form_Line",children:[(0,n.jsx)("div",{className:"Form_Line_label",children:e.label}),(0,n.jsx)("div",{className:"Form_Line_children",children:e.children})]})},8132:function(e,s,r){"use strict";var n=r(5893);r(7294);var o=r(1664),a=r.n(o);s.Z=e=>(0,n.jsxs)("div",{className:"mt-5",children:[(0,n.jsx)("div",{className:"bg-[#f5f5f5] text-center text-xs font-semibold uppercase text-[#666]",children:"ÐÐЩÐÐ"}),(0,n.jsx)(a(),{href:"/orders",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"ÐаказÑ"}),(0,n.jsx)(a(),{href:"/accounting",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"ÐзаимоÑаÑÑеÑÑ"}),(0,n.jsx)("div",{className:"bg-[#f5f5f5] text-center text-xs font-semibold uppercase text-[#666]",children:"ÐаÑÑÑойки"}),(0,n.jsx)(a(),{href:"/settings/companies",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"ÐÑганизаÑиÑ"}),(0,n.jsx)(a(),{href:"/settings/password",className:"block border-l-[3px] border-transparent px-[15px] py-[10px] text-[13px] font-semibold text-[#333] no-underline hover:border-[#111] hover:bg-[#f0f0f0]",children:"Смена паÑолÑ"})]})},9814:function(e,s,r){"use strict";var n=r(5893),o=r(7294),a=r(8132),i=r(4981),t=r(1594);s.Z=({children:e})=>{let[s,r]=o.useState(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"MobileMenuBar",children:(0,n.jsxs)("button",{type:"button",className:"MobileMenuButton",onClick:()=>r(!0),children:[(0,n.jsx)(i.Z,{"aria-hidden":"true"}),(0,n.jsx)("span",{children:"РазделÑ"})]})}),(0,n.jsxs)("div",{className:`MobileMenuDrawer ${s?"MobileMenuDrawer--open":""}`,"aria-hidden":!s,children:[(0,n.jsx)("button",{type:"button",className:"MobileMenuDrawer-backdrop",onClick:()=>r(!1),"aria-label":"ÐакÑÑÑÑ Ð¼ÐµÐ½Ñ"}),(0,n.jsxs)("div",{className:"MobileMenuDrawer-panel",children:[(0,n.jsxs)("div",{className:"MobileMenuDrawer-header",children:[(0,n.jsx)("span",{children:"РазделÑ"}),(0,n.jsx)("button",{type:"button",className:"MobileMenuDrawer-close",onClick:()=>r(!1),"aria-label":"ÐакÑÑÑÑ Ð¼ÐµÐ½Ñ",children:(0,n.jsx)(t.Z,{"aria-hidden":"true"})})]}),(0,n.jsx)("div",{onClick:()=>r(!1),children:(0,n.jsx)(a.Z,{})})]})]}),(0,n.jsxs)("div",{className:"App-wrapper",children:[(0,n.jsx)("div",{className:"App-spacer"}),(0,n.jsx)("div",{className:"App-menu App-column--sticky",children:(0,n.jsx)(a.Z,{})}),(0,n.jsx)("div",{className:"App-content",children:e}),(0,n.jsx)("div",{className:"App-sidebar"})]})]})}},3279:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return x}});
1var n=r(5893),o=r(7294),a=r(512),i=r(6150),t=r(6310),d=r(448),c=r(4604),l=r(1163),p=()=>{let[e,s]=o.useState(void 0),r=(0,l.useRouter)(),p=t.Ry().shape({password:t.Z_().required("ÐеобÑ
одимо ввеÑÑи новÑй паÑолÑ"),password_confirmation:t.Z_().oneOf([t.iH("password"),void 0],"ÐодÑвеÑждение паÑÐ¾Ð»Ñ Ð½Ðµ ÑÐ¾Ð²Ð¿Ð°Ð´Ð°ÐµÑ Ñ Ð½Ð¾Ð²Ñй паÑолем.")});return(0,n.jsxs)("div",{children:[r.query&&r.query.should_update&&(0,n.jsx)("p",{children:"ÐÑ Ð¿ÐµÑеÑли по ÑÑÑлки воÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð°ÑолÑ. ÐведиÑе новÑй паÑолÑ."}),(0,n.jsx)(a.J9,{initialValues:{password:"",password_confirmation:""},validationSchema:p,onSubmit:async(e,r)=>{s(void 0);let n=await c.Z.users.change_password({user:e});n.success?s({message:n.message}):r.setErrors(n.errors),r.setSubmitting(!1)},render:({values:s,errors:r,touched:o,handleChange:t,handleBlur:c})=>(0,n.jsxs)(a.l0,{children:[e&&(0,n.jsx)(d.Z,{children:(0,n.jsx)("div",{children:e.message})}),(0,n.jsxs)(d.Z,{label:"ÐовÑй паÑолÑ",children:[(0,n.jsx)(i.Z,{type:"password",name:"password",placeholder:"ÐовÑй паÑолÑ",onChange:e=>{t(e),console.log(e)},onBlur:e=>{c(e),console.log(e)},value:s.password}),r.password&&o.password&&(0,n.jsxs)("div",{className:"Form_Error",children:[" ",r.password]})]}),(0,n.jsxs)(d.Z,{label:"ÐодÑвеÑждение паÑолÑ",children:[(0,n.jsx)(i.Z,{type:"password",name:"password_confirmation",placeholder:"ÐодÑвеÑждение паÑолÑ",onChange:e=>{t(e),console.log(e)},onBlur:e=>{c(e),console.log(e)},value:s.password_confirmation}),r.password_confirmation&&o.password_confirmation&&(0,n.jsxs)("div",{className:"Form_Error",children:[" ",r.password_confirmation]})]}),(0,n.jsx)(d.Z,{children:(0,n.jsx)("button",{className:"Button",type:"submit",children:"СоÑ
ÑаниÑÑ"})})]})})]})},u=r(9814),x=()=>(0,n.jsx)(u.Z,{children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h1",{children:"Смена паÑолÑ"}),(0,n.jsx)(p,{})]})})}},function(e){e.O(0,[6310,512,2888,9774,179],function(){return e(e.s=8607)}),_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.