1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2173],{32173:function(e,t,i){i.r(t),i.d(t,{ResponsibilityDeleteModalContainer:function(){return ResponsibilityDeleteModalContainer},useOpenResponsibilityDeleteModal:function(){return useOpenResponsibilityDeleteModal}});var n=i(85893),s=i(60820),l=i(27461),a=i(15035),o=i(10722);let ResponsibilityDeleteModalContainer=e=>{var t,i,r,d;let{responsibility:c,entityType:u,onClose:b,onSuccess:p}=e,{state:h,thunks:m}=(0,a.T)(),y=(0,l.C)(async()=>{let e=await m.deleteResponsibility({responsibility:c});void 0!==e&&("function"==typeof p&&p(),b())}),v=(0,l.C)(()=>{"PENDING"!==h.fetchingStatuses.deleteResponsibility&&b()}),D=(0,n.jsxs)(n.Fragment,{children:["ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ
оÑиÑе ÑдалиÑÑ Ð¿ÐµÑиод Ñ"," ",(0,n.jsx)("b",{children:s.date.getNumericDate(c.start_at,{withTime:!0})})," ","по"," ",(0,n.jsx)("b",{children:c.end_at?s.date.getNumericDate(c.end_at,{withTime:!0}):"беÑÑÑоÑно"})," "]}),x={car:(0,n.jsxs)(n.Fragment,{children:["Ð´Ð»Ñ Ð²Ð¾Ð´Ð¸ÑÐµÐ»Ñ ",(0,n.jsx)("b",{children:null!==(r=null===(t=c.driver)||void 0===t?void 0:t.license_number)&&void 0!==r?r:""}),"?"]}),driver:(0,n.jsxs)(n.Fragment,{children:["Ñ Ð¢Ð¡ ",(0,n.jsx)("b",{children:null!==(d=null===(i=c.best_match_car)||void 0===i?void 0:i.sts)&&void 0!==d?d:""}),"?"]})}[u],C=(0,n.jsxs)(n.Fragment,{children:[D,x]});return(0,n.jsx)(o.$P,{className:"responsibilityDeleteModal",header:{car:"УдалиÑÑ Ð¿ÐµÑиод оÑвеÑÑÑвенноÑÑи",driver:"УдалиÑÑ Ð·Ð°ÐºÑепленное ТС"}[u],description:C,width:"380px",submitButtonText:"PENDING"===h.fetchingStatuses.deleteResponsibility?"УдалÑем...":"УдалиÑÑ",cancelButtonText:"ÐÑмена",disabled:"PENDING"===h.fetchingStatuses.deleteResponsibility,onSubmit:y,onClose:v})};var r=i(67294),d=i(91962);let useOpenResponsibilityDeleteModal=()=>{let e=(0,d.h_)(),t=(0,r.useCallback)(t=>{let i={name:"ResponsibilityDeleteModalContainer",isVisible:!0,onClose:()=>{e.remove("ResponsibilityDeleteModalContainer")},...t};e.add(i)},[]);return t}}}]);
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.