1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1250],{6978:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-profile",function(){return l(5872)}])},168:function(e,s,l){"use strict";var t=l(5893),a=l(9008),r=l.n(a),i=l(1163);l(3733);let n=e=>{let{jsonBG:s={},jsonEN:l={}}=e,a=(0,i.useRouter)(),n="bg"===a.locale,c=n?s:l;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r(),{children:c&&(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(c)}})})})};s.Z=n},5872:function(e,s,l){"use strict";l.r(s),l.d(s,{__N_SSP:function(){return G},default:function(){return E}});var t=l(5893),a=l(7294),r=l(9473),i=l(2640),n=l(3213),c=l(5675),d=l.n(c),o=l(1664),x=l.n(o);let m=e=>{let{items:s}=e;return(0,t.jsx)(t.Fragment,{children:s&&s.map((e,s)=>(0,t.jsxs)("div",{className:"mx-auto shadow-xl w-12/13 sm:w-11/12 gap-5 lg:w-full lg:mx-0 grid grid-cols-1 md:grid-cols-2 divide-x divide-lightGray rounded-lg bg-lightGray",children:[(0,t.jsx)("div",{className:"flex h-[250px] lg:h-[150px] justify-center overflow-hidden relative rounded-lg lg:rounded-l-lg lg:rounded-r-none",children:(0,t.jsx)(d(),{src:e.image,alt:"image"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-evenly p-3",children:[e.online&&(0,t.jsx)("span",{className:"mb-2 rounded bg-secondary p-1 text-center text-sm text-white w-3/4",children:"ONLINE"}),(0,t.jsx)("p",{className:"text-sm",children:e.title}),(0,t.jsx)(x(),{passHref:!0,href:e.url.path,children:(0,t.jsx)("button",{className:"h-12 w-12 text-secondary underline",children:e.url.title})})]})]},s))})};var h=l(1163),u=l(2090),p=l(1254),j=l(2802),g=l(1195),y=l(3806),b=l(9652);let f=()=>{let e=(0,h.useRouter)(),s=(0,r.I0)(),l=(0,r.v9)(u.lI),n=(0,r.v9)(p.xU),[c,o]=(0,a.useState)(1),[x,m]=(0,a.useState)(""),[f,v]=(0,a.useState)(),[N,_]=(0,a.useState)(),w=async()=>{await s((0,u.Ko)())};(0,a.useEffect)(()=>{w()},[]);let C=async()=>{var e;let l=await s((0,u.qW)({policyNumber:x.trimEnd()}));return(null===(e=l.payload)||void 0===e?void 0:e.data.claims.length)>0?s((0,p.vC)({type:"ClaimStatusCheck",policyNumber:x})):s((0,p.vC)({type:"Info",message:"ÐÑма заведени ÑеÑи за Ñази полиÑа."}))},k=async l=>{let t=await s((0,b.is)({policyNumber:l}));(null==t?void 0:t.error)&&(s((0,b.oA)()),await s((0,b.kk)({policyNumber:l}))),e.push("/insurance-claim")},G=async(e,l)=>{s((0,u.yy)(e)),s((0,p.vC)({type:"MyInsurances",hideInfo:l}))};return(0,a.useEffect)(()=>{l.length>0&&(v(l.filter(e=>"ÐлаÑена"==e.policy_activation_status||"ЧаÑÑиÑно плаÑена"==e.policy_activation_status||"ÐеплаÑена"==e.policy_activation_status)),_(l.filter(e=>"ÐÑекÑаÑена"==e.policy_activation_status||"ÐзÑекла"==e.policy_activation_status)))},[l]),l.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mx-2 mt-5 md:mx-0 md:mt-0 ",children:[(0,t.jsxs)("div",{className:"grid grid-cols-3 text-center text-gray-500",children:[(0,t.jsx)("div",{onClick:()=>o(1),children:(0,t.jsx)("a",{className:"".concat(1==c?"border-l border-t border-r border-lightGray bg-white ":"bg-lightGray"," flex cursor-pointer justify-center rounded-tl-xl rounded-tr-xl px-4 py-3 font-bold text-black"),children:"ÐÐТÐÐÐÐ ÐÐÐÐЦÐ"})}),(0,t.jsx)("div",{onClick:()=>o(2),children:(0,t.jsx)("a",{className:"".concat(2==c?"border-l border-t border-r border-lightGray bg-white":"bg-lightGray"," shadow-xl-r flex cursor-pointer justify-center rounded-tl-xl rounded-tr-lg rounded-tr-xl px-4 py-3 font-bold text-black "),children:"ÐÐТÐÐÐÐ ÐÐÐÐЦÐ"})})]}),(0,t.jsx)("div",{className:"-mt-0.5 rounded-bl-xl rounded-br-xl rounded-tr-xl border border-lightGray bg-white py-5 text-gray-700 shadow-xl md:p-8",children:1==c&&l?(0,t.jsxs)("table",{className:"grid table-auto text-left",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"grid grid-cols-4 pb-2",children:[(0,t.jsx)("th",{className:"col-span-2 px-5 text-sm",children:"ÐÐСТРÐÐ¥ÐÐÐÐ"}),(0,t.jsx)("th",{className:"px-5 text-sm",children:"ÐÐÐСÐÐ"}),(0,t.jsx)("th",{className:"px-5 text-sm",children:"СТÐТУС"})]})}),(0,t.jsx)("tbody",{className:"h-[480px] overflow-y-auto",children:f&&f.map((e,s)=>(0,t.jsxs)("tr",{className:"grid grid-cols-4 ".concat(s%2==1&&"bg-lightGray"),children:[(0,t.jsxs)("td",{className:"col-span-2 flex grid items-center px-5 py-3",children:[(0,t.jsx)("span",{className:"font-bold",children:e.policy_name}),(0,t.jsxs)("span",{className:"text-sm",children:["ÐÐÐÐЦРâ ",e.policy_number," ",e.car_registration_number&&"| Ð ÐÐ. ÐÐÐÐÐ ".concat(e.car_registration_number)]}),(0,t.jsxs)("div",{className:"flex gap-5",children:[e.is_eligible_for_claim&&(0,t.jsx)("button",{className:"text-left text-sm text-secondary underline",onClick:()=>k(e.policy_number),children:"ÐÐÐÐÐРЩÐТÐ"}),!e.no_payments&&("ÐеплаÑена"===e.policy_activation_status||"ЧаÑÑиÑно плаÑена"===e.policy_activation_status)&&(0,t.jsx)("button",{className:"text-left text-sm text-secondary underline",onClick:()=>G(e,!0),children:"ÐÐÐТРÐÐÐСÐÐ"})]})]}),(0,t.jsx)("td",{className:"flex items-center p-5 font-bold",children:e.installment_number}),(0,t.jsxs)("td",{className:"flex flex-col items-center justify-between p-3 sm:md:flex-row",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("span",{className:"font-bold",children:e.policy_activation_status}),(0,t.jsxs)("span",{className:"text-sm",children:["ÐÐ ",e.policy_last_covered_date?(0,y.p6)(e.policy_last_covered_date):(0,y.p6)(e.policy_end_date)]})]}),(0,t.jsx)("div",{onClick:()=>G(e),className:"flex cursor-pointer items-center",children:(0,t.jsx)(d(),{width:28,height:28,src:i.IL,alt:"right arrow"})})]}),(0,t.jsx)("td",{})]},s))})]}):(0,t.jsxs)("table",{className:"grid table-auto text-left",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"grid grid-cols-3 pb-2",children:[(0,t.jsx)("th",{className:"col-span-2 px-5 text-sm",children:"ÐÐСТРÐÐ¥ÐÐÐÐ"}),(0,t.jsx)("th",{className:"px-5 text-sm",children:"СТÐТУС"})]})}),(0,t.jsx)("tbody",{className:"h-[480px] overflow-auto",children:N.map((e,s)=>(0,t.jsxs)("tr",{className:"grid grid-cols-3 ".concat(s%2==1&&"bg-lightGray"),children:[(0,t.jsxs)("td",{className:"col-span-2 grid px-5 py-3",children:[(0,t.jsx)("span",{className:"font-bold",children:e.policy_name}),(0,t.jsxs)("span",{className:"text-sm",children:["ÐÐÐÐЦРâ ",e.policy_number," | Ð ÐÐ. ÐÐÐÐÐ ",e.car_registration_number]}),e.is_eligible_for_claim&&(0,t.jsx)("button",{className:"text-left text-sm text-secondary underline",onClick:()=>k(e.policy_number),children:"ÐÐÐÐÐРЩÐТÐ"})]}),(0,t.jsxs)("td",{className:"grid p-5",children:[(0,t.jsx)("span",{className:"font-bold",children:e.policy_activation_status}),(0,t.jsxs)("span",{className:"text-sm",children:["ÐÐ ","ÐÑекÑаÑена"===e.policy_activation_status?(0,y.p6)(e.policy_cancel_date):(0,y.p6)(e.policy_end_date)]})]})]},s))})]})})]}),(0,t.jsxs)("div",{className:"mx-2 mt-14 flex flex-col font-bold lg:mx-0",children:[(0,t.jsx)("h5",{children:"ÐÐ ÐÐÐÐ ÐÐ ÐРСТÐТУС ÐÐ ÐÐ ÐТÐÐЦÐЯ ÐРЩÐТÐ"}),(0,t.jsx)("hr",{className:"mx-auto mt-3 w-full border-b-2 border-t-0 border-lightGray"}),(0,t.jsxs)("label",{className:"mt-8 mb-2 block text-left font-bold",children:["ÐÐ¾Ð¼ÐµÑ Ð½Ð° полиÑа:",(0,t.jsx)("span",{className:"mx-0.5 text-red-600",children:"*"})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-6 md:flex-row",children:[(0,t.jsx)("div",{className:"block w-full items-center md:w-2/3",children:(0,t.jsx)(j.Lt,{getCustomStyles:g.K,label:"",required:!0,options:(e=>{let s=[];
1return e&&e.forEach(e=>{let l={id:e.policy_number,value:e.policy_number,label:e.policy_number};s.push(l)}),s})(l),onChange:e=>m(e.value),placeholder:"ÐзбеÑеÑе",noOptionsMessage:()=>"ÐÑма намеÑени ÑезÑлÑаÑи..."})}),(0,t.jsx)("div",{className:"flex w-1/4 items-center justify-center",children:(0,t.jsx)(j.zx,{className:"m-2 rounded-md bg-secondary px-10 py-3 font-sans text-sm uppercase hover:bg-primary md:m-0",label:"ÐÑовеÑеÑе",onClick:()=>C()})})]})]})]}):(0,t.jsx)("div",{className:"pt-10 text-center",children:n?(0,t.jsx)("h3",{children:"ÐÑовеÑÑваме за налиÑни заÑÑÑаÑ
овки..."}):(0,t.jsx)("h3",{children:"ÐÑмаÑе налиÑни заÑÑÑаÑ
овки..."})})};var v=l(9800),N=l(5290);let _=()=>{let e=(0,r.I0)(),s=(0,r.v9)(v.tT),l=(0,r.v9)((0,N.XL)("General")),a=null==s?void 0:s.name.split(" ")[0],c=null==s?void 0:s.name.split(" ")[1],o=null==s?void 0:s.name.split(" ")[2];return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"grid grid-cols-3 text-center text-gray-500",children:(0,t.jsx)("h5",{className:"border-l border-t border-r border-lightGray flex justify-center uppercase rounded-tl-xl rounded-tr-xl bg-white px-4 py-3 font-bold text-black",children:l("my_data")})}),(0,t.jsxs)("div",{className:"-mt-0.5 rounded-bl-xl rounded-br-xl rounded-tr-xl border border-lightGray bg-white p-5 md:p-8 text-gray-700 shadow-xl",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 mt-5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(n.oi,{title:l("name"),defaultValue:a,disabled:!0,placeholder:" "})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.oi,{title:l("surname"),defaultValue:c,disabled:!0,placeholder:" "})}),(0,t.jsx)("div",{children:(0,t.jsx)(n.oi,{title:l("lastname"),defaultValue:o,disabled:!0,placeholder:" "})})]}),(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("div",{className:"font-bold",children:l("personal_data")}),(0,t.jsx)("hr",{className:"mx-auto mt-3 w-full border-b-2 border-t-0 border-lightGray"}),(0,t.jsxs)("div",{className:"grid grid cols-3 gap-3 mt-3",children:[(0,t.jsxs)("div",{className:"grid items-center grid-cols-4 gap-
15",children:[(0,t.jsxs)("span",{children:[l("phone"),":"]}),(0,t.jsx)("span",{className:"col-span-2 font-bold",children:null==s?void 0:s.phone_number})]}),(0,t.jsxs)("div",{className:"grid items-center grid-cols-4 gap-5",children:[(0,t.jsxs)("span",{children:[l("email"),":"]}),(0,t.jsxs)("div",{className:"flex gap-2 col-span-2",children:[(0,t.jsx)("span",{className:"font-bold",children:null==s?void 0:s.email}),(null==s?void 0:s.email_confirmed)&&(0,t.jsx)(d(),{src:i.nQ,alt:"",width:20,height:20})]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 mt-12",children:[(0,t.jsxs)("div",{className:"flex py-5 justify-center md:justify-start gap-5",children:[(0,t.jsx)("div",{className:"flex rounded-xl bg-lightGray w-32 h-32 justify-center items-center",children:(0,t.jsx)(d(),{src:i.LP,alt:"",width:60,height:60})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{children:l("change_phone_number")}),(0,t.jsx)("button",{className:"h-12 w-12 text-secondary underline",onClick:()=>e((0,p.vC)({type:"ChangePhone"})),children:l("change_it")})]})]}),(0,t.jsxs)("div",{className:"flex py-5 justify-center md:justify-end gap-5",children:[(0,t.jsx)("div",{className:"flex rounded-xl bg-lightGray w-32 h-32 justify-center items-center",children:(0,t.jsx)(d(),{src:i._X,alt:"",width:60,height:60})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h5",{children:l("change_email_address")}),(0,t.jsx)("button",{className:"h-12 w-12 text-secondary underline",onClick:()=>e((0,p.vC)({type:"ChangeEmail"})),children:l("change_it")})]})]})]})]})]})]})})};var w=l(127);let C=()=>{let e=(0,h.useRouter)(),s=(0,r.I0)(),l=(0,r.v9)(u.Up),c=(0,r.v9)(v.Qb),d=(0,r.v9)(v.hB),o=(0,r.v9)(w.W7),x=(0,r.v9)((0,N.XL)("General")),j=[{label:x("my_profile"),link:null}],g=[{title:x("my_insurances"),section:"my-insurances"},{title:x("my_data"),section:"my-data"}],y=[{title:x("casco_claim"),url:{path:"/insurance-claim",title:x("submit_a_request")},image:i.YT,online:!0}];return(0,a.useEffect)(()=>{if(o)return s((0,p.vC)({type:"MaintanceModal",shouldRedirectToHome:!0}));d&&!c&&e.push("/")},[c]),c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mx-auto max-w-screen-xl",children:[(0,t.jsx)("div",{className:"flex px-2 py-2 text-gray-500 lg:p-5",children:(0,t.jsx)(n.aG,{breadcrumbs:j})}),(0,t.jsxs)("div",{className:"mt-20 grid grid-cols-1 gap-10 px-2 lg:grid-cols-3 lg:px-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{children:x("my_profile")}),(0,t.jsx)(n.YE,{items:g}),(0,t.jsx)("div",{className:"mt-20 grid gap-6",children:(0,t.jsx)(m,{items:y})})]}),(0,t.jsx)("div",{className:"col-span-1 lg:col-span-2",children:l&&(0,t.jsx)(n.YD,{currentStep:l,steps:{"my-insurances":f,"my-data":_}})})]})]}),(0,t.jsx)("div",{className:"mt-20 flex flex-col",children:(0,t.jsx)(n.U0,{})})]})};var k=l(168),G=!0;function E(e){let{children:s}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.Z,{}),(0,t.jsx)(C,{})]})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=6978)}),_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.