1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="53f9b0fe-a33c-4ff2-a852-f6eb0b61303a",t._sentryDebugIdIdentifier="sentry-dbid-53f9b0fe-a33c-4ff2-a852-f6eb0b61303a")}catch(t){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"2026-10-07-e42bdd47"},(self.webpackChunkfront=self.webpackChunkfront||[]).push([[419],{66573:function(t,e,n){n.d(e,{E:function(){return o}});var i=n(29365),s=(n(85152),n(24682)),r=n(20729),a=n(81403),o=function Progress(t){return(0,a.jsx)(r.Z,(0,i.Z)({size:[120,8],strokeColor:s.ek[5],style:{marginRight:0,marginBottom:0},showInfo:!1},t))}},79621:function(t,e,n){n.d(e,{X:function(){return Row}});var i=n(29365),s=n(32319),r=(n(85152),n(68305)),a=n(81403),o=["width"];function Row(t){var e=t.width,n=(0,s.Z)(t,o);return(0,a.jsx)(r.Z,(0,i.Z)({style:{width:e}},n))}},42278:function(t,e,n){n.d(e,{P:function(){return x}});var i=n(6054),s=n.n(i),r=n(3872),a=n.n(r),o=(n(85152),n(2705)),c=n(79621),u=n(29365),l=n(71905),d=n(81403),p=function Col(t){return(0,d.jsx)(l.Z,(0,u.Z)({},t))},h=n(17079),f=n(75545),m=n(80406),g=n(68635),v="ModalTaskList-line-169f81f4",_=(0,o.Pi)(function(t){var e,n=t.task,i=t.amount,s=null===(e=n.data.document_number)||void 0===e?void 0:e.number;return(0,d.jsxs)(c.X,{className:v,wrap:!1,children:[(0,d.jsx)(p,{flex:"none",style:{width:60,marginRight:8},children:(0,d.jsx)(h.x,{type:"secondary",children:s})}),(0,d.jsx)(p,{flex:"auto",children:(0,d.jsxs)(c.X,{gutter:8,children:[(0,d.jsx)(p,{span:12,children:(0,d.jsx)(h.x,{children:n.data.title||g.KW})}),(0,d.jsx)(p,{span:6,children:(0,d.jsx)(h.x,{children:n.data.contractor?n.data.contractor.data.name:g.KW})}),(0,d.jsx)(p,{span:6,style:{textAlign:"right"},children:(0,d.jsx)(m._,{secondary:!0,amount:null==i?n.data.act.amount:i})})]})})]})}),x=(0,o.Pi)(function(t){var e=t.caption,n=t.banner,i=t.tasks,r=t.amounts;return(0,d.jsxs)(f.w,{size:20,children:[e&&(0,d.jsx)(h.x,{children:e}),n,(0,d.jsx)(f.w,{size:20,style:{maxHeight:400,overflowY:"auto"},children:s()(i).call(i,function(t){var e;return(0,d.jsx)(_,{task:t,amount:null===r||void 0===r||null===(e=a()(r).call(r,function(e){return e.id===t.id}))||void 0===e?void 0:e.amount},t.id)})})]})})},30419:function(t,e,n){n.d(e,{ZP:function(){return Zt}});var i=n(29365),s=n(61249),r=n(45144),a=n(35527),o=n(52797),c=(n(48108),n(83229),n(75970),n(19257),n(20390)),u=n.n(c),l=n(6054),d=n.n(l),p=n(3872),h=n.n(p),f=n(6095),m=n.n(f),g=n(12767),v=n.n(g),_=n(430),x=n(2705),y=n(20322),k=(n(802),n(47417)),S=n(63641),P=n(83800),j=n(82471),w=n(91413),Z=n(66761),b=n(80656),C=n(85152),D=n(67393),A=n(85932),T=n(39359),M=n(58488),F=n(23185),L=n(41763),E=n(46833),R=n(99792),I=n(17969),$=n(88478),U=n(50759),O=n(56289),N=n.n(O),q=function(){function SignService(t){(0,a.Z)(this,SignService),this.commissionState="idle",this.sendCodeState="idle",this.signState="idle",this.signStatusState="idle",this._initialActs=[],this._store=void 0,(0,_.ky)(this),this._store=t,this._initialActs=t.actionDialogProps?(0,U.Z)(t.actionDialogProps.tasks):[]}return(0,o.Z)(SignService,[{key:"setActsForRequest",value:function setActsForRequest(t){var e,n=N()(e=this._initialActs).call(e,function(e){return t.some(function(t){return t===e.id})});n&&this._store.actionDialogProps&&(this._store.actionDialogProps=(0,i.Z)((0,i.Z)({},this._store.actionDialogProps),{},{tasks:n}))}},{key:"getCommission",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee(t){var e,n;return(0,s.Z)().wrap(function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return this.commissionState="loading",this.setActsForRequest(t.body.ids),i.prev=2,i.next=5,this._store.getCommissions();case 5:return this.commissionState="success",i.abrupt("return",{commission:null===(e=this._store.actionDialogProps)||void 0===e?void 0:e.info.commission,payment_amount:null===(n=this._store.actionDialogProps)||void 0===n?void 0:n.info.payment_amount});case 9:throw i.prev=9,i.t0=i.catch(2),this.commissionState="error",i.t0;case 13:case"end":return i.stop()}},_callee,this,[[2,9]])}
1));return function getCommission(e){return t.apply(this,arguments)}}()},{key:"sendCode",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee2(t){var e;return(0,s.Z)().wrap(function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return this.setActsForRequest(t.body.ids),this.sendCodeState="loading",n.prev=2,n.next=5,this._store.sendCode(t.body);case 5:if(this.sendCodeState="success",null!==(e=this._store.actionDialogProps)&&void 0!==e&&e.signId){n.next=8;break}throw new Error("no sign_id");case 8:return n.abrupt("return",{sign_id:this._store.actionDialogProps.signId,status:this._store.actionDialogProps.status});case 11:throw n.prev=11,n.t0=n.catch(2),this.sendCodeState="error",n.t0;case 15:case"end":return n.stop()}},_callee2,this,[[2,11]])}));return function sendCode(e){return t.apply(this,arguments)}}()},{key:"getSignStatus",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee3(t){var e=this;return(0,s.Z)().wrap(function _callee3$(n){for(;;)switch(n.prev=n.next){case 0:return this.signStatusState="loading",n.abrupt("return",(0,P.a)({url:"bus/alpha/tasks/multi_signs/".concat(t),withPrefix:!1}).then(function(t){return e.signStatusState="success",t}).catch(function(t){throw e.signStatusState="error",t}));case 2:case"end":return n.stop()}},_callee3,this)}));return function getSignStatus(e){return t.apply(this,arguments)}}()},{key:"sign",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee4(t){var e,n;return(0,s.Z)().wrap(function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:return this.signState="loading",this._store.actionPayload.forceTaskPayments=t.body.autopay,i.prev=2,i.next=5,this._store.onSign(t.body);case 5:return e=i.sent,n=e,this.signState="success",i.abrupt("return",{success:n.success,task_multi_sign_uuid:n.task_multi_sign_uuid});case 11:throw i.prev=11,i.t0=i.catch(2),this.signState="error",i.t0;case 15:case"end":return i.stop()}},_callee4,this,[[2,11]])}));return function sign(e){return t.apply(this,arguments)}}()}]),SignService}(),z=n(2870),V=n(52064),W=n(81403),G=(0,x.Pi)(function(t){var e=t.store,n=(0,D.TH)().pathname,i=(0,D.UO)().id,s=(0,$.lr)(),r=(0,b.Z)(s,1)[0],a=e.actionDialogProps.tasks,o=d()(a).call(a,function(t){var e,n=t.data;return{id:n.id,title:n.title,actNumber:n.document_number?n.document_number.number:0,name:(null===(e=n.contractor)||void 0===e?void 0:e.data.name)||"",amount:n.act.amount}}),c=e.currentUser.hasFeature("bundles_autopay")&&e.currentUser.hasPermission("tasks.autopay"),l=(0,C.useMemo)(function(){return new q(e)},[]),p=(0,C.useMemo)(function(){return new A.k},[]),h=(0,C.useMemo)(function(){return new R.U(o,c,p,l)},[]),f={checkout:(0,W.jsx)(M.p,{}),limits:(0,W.jsx)(F.s,{}),onlySign:(0,W.jsx)(L.l,{}),confirm:(0,W.jsx)(E.F,{onSignSuccess:function onSignSuccess(){i&&u()(n).call(n,"acts")&&r.get("open_sign_dialog")&&(0,V.Au)("act_sign"),k.nE.refresh()}})};return(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(I.V.Provider,{value:h,children:(0,W.jsx)(T.a,{isLoading:h.isLoading,tip:h.tip,children:f[h.step]})})})}),H=n(50752),X=n(57723),K=n(42278),Y=n(66573),B=n(19879),Q=n(53459),J=n(87393),tt=n(12442),et=(0,x.Pi)(function(t){var e=t.store,n=(0,tt.LM)(),i=e.actionDialogProps,s=e.found_is_suspended_customers;if(!i)return null;var r=vt[s?"is_suspended":i.action];if(!r)return null;var a=i.result;if(s)return(0,W.jsx)(z.Ms.Footer,{children:(0,W.jsxs)("div",{className:"flex w-full justify-end gap-2",children:[(0,W.jsx)(z.zx,{variant:"default",onClick:function onClickCancel(){return e.closeDialog()},children:"\u041e\u0442\u043c\u0435\u043d\u0430"}),(0,W.jsx)(z.zx,{variant:"primary",onClick:function onClickContinue(){e.closeDialog(),i&&e.openActionDialog(i.action,i.tasks)},isLoading:e.opening,children:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c"})]})});if(a){var o=100*a.completed/a.total;return(0,W.jsx)(z.Ms.Footer,{children:(0,W.jsxs)("div",{className:"flex w-full justify-end gap-2",children:[(0,W.jsx)(Y.E,{percent:o}),(0,W.jsx)(z.ZT,{textColor:"secondary",children:"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f..."})]})})}var c,u,l,d="autopay"===i.action?"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043a\u043e\u0434 \u0438\u0437 \u0441\u043c\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043e\u043f\u043b\u0430\u0442\u044b":", \u0447\u0442\u043e\u0431\u044b ".concat(r.signText)||0,p="autopay"===i.action?", \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u043e\u043f\u043b\u0430\u0442\u044b":", \u0447\u0442\u043e\u0431\u044b ".concat(r.signText)||0;return(0,W.jsx)(z.Ms.Footer,{children:(0,W.jsx)("div",{className:"flex w-full gap-2",children:(null===(c=e.actionDialogProps)||void 0===c?void 0:c.status)===J.o.pinCodeVerification?(0,W.jsx)(Q.Z,{store:n,text:p,onComplete:e.onSign.bind(e),isLoading:n.isPinCodeLoading,isValidate:!1}):(0,W.jsx)(B.Z,{signStatus:null!==(u=null===(l=e.actionDialogProps)||void 0===l?void 0:l.status)&&void 0!==u?u:J.o.otpCodeVerification,text:d,skipTextPrefix:"autopay"===i.action,onSign:e.onSign.bind(e)})})})}),nt=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps.tasks;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(z.Ms.Content,{children:[(0,W.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,W.jsxs)(z.ZT,{weight:"medium",children:["\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c ",(0,H.Z)(n.length,X.$G)]}),(0,W.jsx)(z.ZT,{children:"\u0415\u0441\u043b\u0438 \u0430\u043a\u0442\u044b \u0443\u0436\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b, \u0442\u043e \u043f\u043e \u043d\u0438\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u044f \u043e\u0431 \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435. \u041d\u0435\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0430\u043a\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u043e\u0434\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435."})]}),(0,W.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,W.jsx)(z.ZT,{children:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439"}),(0,W.jsx)(z.gx,{placeholder:"\u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f",rows:4,value:e.actionPayload.annulC
1omment,onChange:function onChange(t){return e.actionPayload.annulComment=t.target.value}})]}),(0,W.jsx)(K.P,{tasks:n})]}),(0,W.jsx)(et,{store:e})]})}),it=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps.tasks;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(K.P,{caption:(0,W.jsxs)(W.Fragment,{children:["\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c ",(0,H.Z)(n.length,X.fE)]}),tasks:n})}),(0,W.jsx)(et,{store:e})]})}),st=n(45589),rt=n(30582),at=n(94559),ot=n(15146),ct=n(34750),ut=function(){function PaymentService(t){(0,a.Z)(this,PaymentService),this.commissionState="idle",this.sendCodeState="idle",this.payActsState="idle",this._initialActs=[],this._store=void 0,(0,_.ky)(this),this._store=t,this._initialActs=t.actionDialogProps?(0,U.Z)(t.actionDialogProps.tasks):[]}return(0,o.Z)(PaymentService,[{key:"setActsForRequest",value:function setActsForRequest(t){var e,n=N()(e=this._initialActs).call(e,function(e){return t.some(function(t){return t===e.id})});n&&this._store.actionDialogProps&&(this._store.actionDialogProps=(0,i.Z)((0,i.Z)({},this._store.actionDialogProps),{},{tasks:n}))}},{key:"getCommission",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee(t){var e,n;return(0,s.Z)().wrap(function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return this.commissionState="loading",this.setActsForRequest(t.body.ids),i.prev=2,i.next=5,this._store.getCommissions();case 5:if(this.commissionState="success",null!==(e=this._store.actionDialogProps)&&void 0!==e&&e.info.payment_amount){i.next=8;break}throw new Error("no commission");case 8:return i.abrupt("return",{commission:null!==(n=this._store.actionDialogProps.info.commission)&&void 0!==n?n:null,payment_amount:this._store.actionDialogProps.info.payment_amount});case 11:throw i.prev=11,i.t0=i.catch(2),this.commissionState="error",i.t0;case 15:case"end":return i.stop()}},_callee,this,[[2,11]])}));return function getCommission(e){return t.apply(this,arguments)}}()},{key:"sendCode",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee2(t){var e;return(0,s.Z)().wrap(function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return this.sendCodeState="loading",this.setActsForRequest(t.body.ids),n.prev=2,n.next=5,this._store.sendCode();case 5:if(this.sendCodeState="success",null!==(e=this._store.actionDialogProps)&&void 0!==e&&e.signId){n.next=8;break}throw new Error("no sign_id");case 8:return n.abrupt("return",{sign_id:this._store.actionDialogProps.signId,status:this._store.actionDialogProps.status});case 11:throw n.prev=11,n.t0=n.catch(2),this.sendCodeState="error",n.t0;case 15:case"end":return n.stop()}},_callee2,this,[[2,11]])}));return function sendCode(e){return t.apply(this,arguments)}}()},{key:"payActs",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee3(t){return(0,s.Z)().wrap(function _callee3$(e){for(;;)switch(e.prev=e.next){case 0:return this.payActsState="loading",e.prev=1,e.next=4,this._store.onSign({code:t.body.code});case 4:this.payActsState="success",e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),this.payActsState="error",e.t0;case 11:case"end":return e.stop()}},_callee3,this,[[1,7]])}));return function payActs(e){return t.apply(this,arguments)}}()}]),PaymentService}(),lt=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps.tasks,i=(0,C.useState)("\u0410\u0432\u0442\u043e\u043e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432"),s=(0,b.Z)(i,2),r=s[0],a=s[1],o=(0,z.aZ)().setWidth,c=d()(n).call(n,function(t){var e,n,i,s;return{id:t.id,actNumber:null!==(e=null===(n=t.data.document_number)||void 0===n?void 0:n.number)&&void 0!==e?e:0,title:t.data.title,name:null!==(i=null===(s=t.data.contractor)||void 0===s?void 0:s.data.name)&&void 0!==i?i:"",amount:t.data.act.amount}}),u=new ut(e),l=(0,C.useMemo)(function(){return new A.k},[]),p=(0,C.useMemo)(function(){return new rt.S(c,"autopay",l,u)},[]);(0,C.useEffect)(function(){if(l.problemType){var t=(0,st.zu)(l.problemType);a(t.title),o(t.width)}return function(){a("\u0410\u0432\u0442\u043e\u043e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432"),o("md")}},[l.problemType]);var h={limits:(0,W.jsx)(ot.s,{onReturnToActsClick:function onReturnToActsClick(){return e.closeDialog()}}),confirm:(0,W.jsx)(ct.F,{onCancelClick:function onCancelClick(){return e.closeDialog()}})},f="loading"===l.limitsState?"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u0438\u043c\u0438\u0442\u044b...":"";return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Title,{children:r}),(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(at.L.Provider,{value:p,children:(0,W.jsx)(T.a,{isLoading:p.isLoading,tip:f,children:h[p.step]})})})]})}),dt=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps.tasks;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(K.P,{caption:(0,W.jsx)(W.Fragment,{children:"\u041d\u043e\xa0\u0432\u044b\xa0\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u043a\u0442\u044b \u0438\xa0\u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043e\u043f\u043b\u0430\u0442\u0443. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445\xa0\u0438\u0437\xa0\u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430\xa0\u043e\u043f\u043b\u0430\u0442\u0443 \u0432\u0435\u0440\u043d\u0438\u0442\u0435\u0441\u044c \u0432\xa0\u0440\u0430\u0437\u0434\u0435\u043b \xab\u0410\u043a\u0442\u044b\xbb"}),tasks:N()(n).call(n,function(t){var e;return null===(e=t.data.contractor)||void 0===e?void 0:e.data.is_suspended})})}),(0,W.jsx)(et,{store:e})]})}),pt=n(80406),ht=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps,i=n.tasks,s=n.info;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(K.P,{caption:(0,W.jsxs)(W.Fragment,{children:["\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438 ",(0,H.Z)(i.length,X.$G)," \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 ",(0,W.jsx)(pt._,{amount:s.payment_amount})]}),tasks:i,amounts:s.payment_amounts})}),(0,W.jsx)(et,{store:e})]})}),ft=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps,i=n.tasks,s=n.info;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(K.P,{caption:(0,W.jsxs)(W.Fragment,{children:["\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u043a\u0438 \u0438 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438"," ",(0,H.Z)(i.length,X.$G)," \u043d\u0430 \u0441\u0443\u043c\u043c\u0443"," ",(0,W.jsx)(pt._,{amount:s.payment_amount})]}),tasks:i,amounts:s.payment_amounts})}),(0,W.jsx)(et,{store:e})]})}),mt=(0,x.Pi)(function(t){var e=t.store,n=(0,C.useState)("\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432"),i=(0,b.Z)(n,2),s=i[0],r=i[1],a=e.actionDialogProps.tasks,o=(0,z.aZ)().setWi
1dth,c=d()(a).call(a,function(t){var e,n,i,s;return{id:t.id,actNumber:null!==(e=null===(n=t.data.document_number)||void 0===n?void 0:n.number)&&void 0!==e?e:0,title:t.data.title,name:null!==(i=null===(s=t.data.contractor)||void 0===s?void 0:s.data.name)&&void 0!==i?i:"",amount:t.data.act.amount}}),u=new ut(e),l=(0,C.useMemo)(function(){return new A.k},[]),p=(0,C.useMemo)(function(){return new rt.S(c,"pay",l,u)},[]);(0,C.useEffect)(function(){if(l.problemType){var t=(0,st.zu)(l.problemType);r(t.title),o(t.width)}return function(){r("\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432"),o("md")}},[l.problemType]);var h={limits:(0,W.jsx)(ot.s,{onReturnToActsClick:function onReturnToActsClick(){return e.closeDialog()}}),confirm:(0,W.jsx)(ct.F,{onCancelClick:function onCancelClick(){return e.closeDialog()}})},f="loading"===l.limitsState?"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043b\u0438\u043c\u0438\u0442\u044b...":"";return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Title,{children:s}),(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(at.L.Provider,{value:p,children:(0,W.jsx)(T.a,{isLoading:p.isLoading,tip:f,children:h[p.step]})})})]})}),gt=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps.tasks;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(z.Ms.Content,{children:(0,W.jsx)(T.a,{isLoading:e.loading,tip:e.tip,children:(0,W.jsx)(K.P,{caption:(0,W.jsxs)(W.Fragment,{children:["\u0412\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c ",n.length," \u0422\u0417"]}),tasks:n})})}),(0,W.jsx)(et,{store:e})]})}),vt={assign_contractor:{title:"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0439",signText:"\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u044f",render:function render(t){return(0,W.jsx)(it,{store:t})}},sign_terms:{title:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0422\u0417",signText:"\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0422\u0417",render:function render(t){return(0,W.jsx)(gt,{store:t})}},accept:{title:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0430\u043a\u0442\u043e\u0432",signText:"\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u043a\u0442\u044b",render:function render(t){return(0,W.jsx)(G,{store:t})}},is_suspended:{title:"\u0423\u0441\u043b\u0443\u0433\u0430 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0441 \u044d\u0442\u0438\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f\u043c\u0438",render:function render(t){return(0,W.jsx)(dt,{store:t})}},pay:{title:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432",signText:"\u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0430\u043a\u0442\u044b",render:function render(t){return(0,W.jsx)(mt,{store:t})}},mark_paid:{title:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432",signText:"\u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0430\u043a\u0442\u044b \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438",render:function render(t){return(0,W.jsx)(ht,{store:t})}},autopay:{title:"\u0410\u0432\u0442\u043e\u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c",render:function render(t){return(0,W.jsx)(lt,{store:t})}},mark_paid_with_receipt:{title:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432",signText:"\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u043a\u0438 \u0438 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438",render:function render(t){return(0,W.jsx)(ft,{store:t})}},annul:{title:"\u0410\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043a\u0442\u043e\u0432",signText:"\u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u044b",render:function render(t){return(0,W.jsx)(nt,{store:t})}}},_t=(0,x.Pi)(function(t){var e=t.store,n=e.actionDialogProps,i=e.found_is_suspended_customers;if(!n)return null;var s=vt[i?"is_suspended":n.action];if(!s)return null;var r=s.render(e);return(0,W.jsxs)(z.Ms,{open:!0,width:"md",onOpenChange:function onOpenChange(t){t||function onClose(){return e.closeDialog()}()},children:[(0,W.jsx)(z.Ms.Title,{children:s.title}),r]})}),xt=function getTaskMultiActionErrorMessage(t,e){return(0,Z.Hq)(t,{context:e,t:w.ZP.t})},yt=function getTaskMultiActionErrorContext(t){if(t)return"accept"===t?"contractorSign":u()(kt).call(kt,t)?"payout":void 0},kt=["pay","autopay","mark_paid","mark_paid_with_receipt"],St=["accept","pay","autopay"],Pt={assign_contractor:'\u0427\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u0441\u0442\u0430\u0442\u0443\u0441 "\u0421\u043e\u0437\u0434\u0430\u043d\u043e"',sign_terms:"\u0422\u0417 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b",accept:"\u0410\u043a\u0442\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b",pay:"\u0410\u043a\u0442\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443",mark_paid:"\u0410\u043a\u0442\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438",autopay:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0430\u043a\u0442\u043e\u0432 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0430",cancel_autopay:"\u041e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u0435 \u043e\u043f\u043b\u0430\u0442\u044b \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u043e",mark_paid_with_receipt:"\u0427\u0435\u043a\u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0430\u043a\u0442\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438",annul:"\u0410\u043a\u0442\u044b \u0430\u043d\u043d\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b",delete:"\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e",mark_paid_without_sms:"\u0410\u043a\u0442\u044b \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043e\u043f\u043b\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438"},jt={assign_contractor:"assign_contractor",sign_terms:"sign_terms",accept:"accept",autopay:"autopay",cancel_autopay:"cancel_autopay",pay:"pay",mark_paid:"pay",mark_paid_with_receipt:"pay",annul:"annul",delete:"delete",is_suspended:"is_suspended",mark_paid_without_sms:"mark_paid"},wt=function(){function TasksMultiActionsStore(t){var e=this,n=t.currentUser,i=t.api,s=t.onCompleteAction,r=t.channel,o=t.history;(0,a.Z)(this,TasksMultiActionsStore),this.actsPaymentLimitsStore=void 0,this.currentUser=void 0,this.api=void 0,this.found_is_suspended_customers=void 0,this.onCompleteAction=void 0,this.dispose=void 0,this.opening=!1,this.loading=!1,this.tip="",this.sendCodeStateRef=void 0,this.actionState=(0,j.vy)(),this.actionDialogIsOpen=!1,this.actionDialogProps=void 0,this.actionPayload={},this.history=void 0,this.history=o,this.currentUser=n,this.api=i,this.actsPaymentLimitsStore=new A.k,this.onCompleteAction=s,this.found_is_suspended_customers=!1;var c=function callback(t){if(e.actionDialogIsOpen){var n=e.actionDialogProps,i=n.signId,s=n.action;i===t.sign_id&&e.handleActionResult(s,t)}};null===r||void 0===r||r.bind("multi-action-result",c),this.dispose=function(){return null===r||void 0===r?void 0:r.unbind("multi-action-result",c)},(0,_.ky)(this,{actsPaymentLimitsStore:!1,api:!1,currentUser:!1,dispose:!1,history:!1,onCompleteAction:!1})}return(0,o.Z)(TasksMultiActionsStore,[{key:"multiAction",value:function multiAction(t,e){this.baseMultiAction(t,{ids:d()(e).call(e,function(t){return t.id})})}},{key:"openDialog",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee(t,e){return(0,s.Z)().wrap(function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.openActionDialog(t,e,{checkSuspendedStep:!0});case 2:case"end":return n.stop()}},_callee,this)}));return function openDialog(e,n){return t.apply(this,arguments)}}()},{key:"checkSuspendedStep",value:function checkSuspendedStep(t,e){return!(!1!==this.found_is_suspended_customers||!u()(St).call(St,t))&&(this.found_is_suspended_customers=!!h()(e).call(e,function(t){var e;return null===(e=t.data.contractor)||void 0===e?void 0:e.data.is_suspended}))}}
1,{key:"setLoading",value:function setLoading(t){this.loading=t}},{key:"setTip",value:function setTip(t){this.tip=t}},{key:"getCommissions",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee2(){var t,e;return(0,s.Z)().wrap(function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!this.actionDialogProps){n.next=13;break}if(t="accept"===this.actionDialogProps.action,!(t||u()(kt).call(kt,this.actionDialogProps.action))){n.next=10;break}return n.next=7,this.fetchCommissions(this.actionDialogProps.tasks);case 7:n.t0=n.sent,n.next=11;break;case 10:n.t0={};case 11:e=n.t0,this.actionDialogProps=(0,i.Z)((0,i.Z)({},this.actionDialogProps),{},{info:e});case 13:n.next=18;break;case 15:n.prev=15,n.t1=n.catch(0),S.A.error(n.t1);case 18:case"end":return n.stop()}},_callee2,this,[[0,15]])}));return function getCommissions(){return t.apply(this,arguments)}}()},{key:"openActionDialog",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee3(t,e,n){var i,r,a,o;return(0,s.Z)().wrap(function _callee3$(s){for(;;)switch(s.prev=s.next){case 0:if(!this.opening){s.next=2;break}return s.abrupt("return");case 2:if(this.opening=!0,s.prev=3,r=(null===n||void 0===n?void 0:n.checkSuspendedStep)&&this.checkSuspendedStep(t,e),a=!u()(i=["accept","pay","autopay"]).call(i,t),this.actionDialogProps={action:t,tasks:e,payload:n,suspended:r,info:{},status:J.o.otpCodeVerification},r||!a){s.next=10;break}return s.next=10,this.sendCodeUnsafe();case 10:this.actionDialogIsOpen=!0,s.next=16;break;case 13:s.prev=13,s.t0=s.catch(3),S.A.error(null!==(o=xt(s.t0,yt(t)))&&void 0!==o?o:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a");case 16:return s.prev=16,this.opening=!1,s.finish(16);case 19:case"end":return s.stop()}},_callee3,this,[[3,13,16,19]])}));return function openActionDialog(e,n,i){return t.apply(this,arguments)}}()},{key:"sendCodeUnsafe",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee4(t){var e,n,r,a,o,c,u,l=this;return(0,s.Z)().wrap(function _callee4$(s){for(;;)switch(s.prev=s.next){case 0:return e=this.actionDialogProps,n=e.tasks,r=e.action,a=e.payload,this.sendCodeStateRef=(0,y.p4)((0,P.a)({method:"POST",url:"tasks/code_for_multi_".concat(jt[r]),data:(0,i.Z)((0,i.Z)({ids:d()(n).call(n,function(t){return t.id})},a),t)})),s.next=4,this.sendCodeStateRef;case 4:o=s.sent,c=o.sign_id,u=o.status,(0,_.z)(function(){var t,e;l.actionState=(0,j.vy)();var i=null!==(t=null===(e=l.actionDialogProps)||void 0===e?void 0:e.info)&&void 0!==t?t:{};l.actionDialogProps={action:r,tasks:n,signId:c,status:u,info:i}});case 8:case"end":return s.stop()}},_callee4,this)}));return function sendCodeUnsafe(e){return t.apply(this,arguments)}}()},{key:"sendCode",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee5(t){var e,n;return(0,s.Z)().wrap(function _callee5$(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,this.sendCodeUnsafe(t);case 3:i.next=9;break;case 5:i.prev=5,i.t0=i.catch(0),S.A.error(null!==(e=xt(i.t0,yt(null===(n=this.actionDialogProps)||void 0===n?void 0:n.action)))&&void 0!==e?e:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a"),this.closeDialog();case 9:case"end":return i.stop()}},_callee5,this,[[0,5]])}));return function sendCode(e){return t.apply(this,arguments)}}()},{key:"closeDialog",value:function closeDialog(){this.actionDialogIsOpen=!1,this.actionDialogProps=void 0,this.sendCodeStateRef=void 0,this.actionPayload={},this.found_is_suspended_customers=!1}},{key:"onSign",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee6(t){var e,n,i,r,a,o,c,u,l,d=this;return(0,s.Z)().wrap(function _callee6$(s){for(;;)switch(s.prev=s.next){case 0:if(this.currentUser.setIsPinCodeLoading(!0),s.prev=1,i=this.actionDialogProps,r=i.action,a=i.signId,o={sign_id:a,code:null!==(e=null!==(n=null===t||void 0===t?void 0:t.code)&&void 0!==n?n:t)&&void 0!==e?e:""},"sign_terms"!==r){s.next=8;break}return s.next=7,this.multiSignTermsAction(o);case 7:return s.abrupt("return",s.sent);case 8:if("accept"!==r){s.next=13;break}return o.autopay=this.actionPayload.forceTaskPayments,s.next=12,this.multiSignAction(o);case 12:return s.abrupt("return",s.sent);
1case 13:return"annul"===r&&(o.comment=this.actionPayload.annulComment),s.next=16,this.baseMultiAction(r,o);case 16:return s.abrupt("return",s.sent);case 19:s.prev=19,s.t0=s.catch(1),s.t0&&(s.t0.response&&423===s.t0.response.status?(S.A.error("\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0438\u043d-\u043a\u043e\u0434 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435"),this.currentUser.setPinError("\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0438\u043d-\u043a\u043e\u0434 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435"),this.currentUser.setIsEditPinCodeVisible(!0),setTimeout(function(){var t;null===(t=d.history)||void 0===t||t.push("/profile")},2500)):(l=null!==(c=xt(s.t0,yt(null===(u=this.actionDialogProps)||void 0===u?void 0:u.action)))&&void 0!==c?c:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a",S.A.error(l),this.currentUser.setPinError(l)));case 22:return s.prev=22,this.currentUser.setIsPinCodeLoading(!1),s.finish(22);case 25:case"end":return s.stop()}},_callee6,this,[[1,19,22,25]])}));return function onSign(e){return t.apply(this,arguments)}}()},{key:"fetchSignStatus",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee7(t){return(0,s.Z)().wrap(function _callee7$(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.a)({url:"bus/alpha/tasks/multi_signs/".concat(t),withPrefix:!1}));case 1:case"end":return e.stop()}},_callee7)}));return function fetchSignStatus(e){return t.apply(this,arguments)}}()},{key:"multiSignTermsAction",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee8(t){var e,n=this;return(0,s.Z)().wrap(function _callee8$(i){for(;;)switch(i.prev=i.next){case 0:return this.setLoading(!0),this.setTip("\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f..."),i.next=4,(0,P.a)({method:"POST",url:"tasks/multi_sign_terms",data:t});case 4:return e=i.sent,i.abrupt("return",this.poolingSignStatus(e.task_multi_sign_uuid).then(function(t){return k.nE.refresh(),n.setLoading(!1),t}));case 6:case"end":return i.stop()}},_callee8,this)}));return function multiSignTermsAction(e){return t.apply(this,arguments)}}()},{key:"poolingSignStatus",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee10(t){var e=this;return(0,s.Z)().wrap(function _callee10$(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.fetchSignStatus(t).then(function(){var n=(0,r.Z)((0,s.Z)().mark(function _callee9(n){var i,r,a,o,c;return(0,s.Z)().wrap(function _callee9$(s){for(;;)switch(s.prev=s.next){case 0:if(!n.error_details){s.next=6;break}throw e.setLoading(!1),e.setTip(""),new Error(Array.isArray(n.error_details)?n.error_details.join(", "):n.error_details);case 6:if("completed"!==n.status){s.next=12;break}return e.setLoading(!1),e.setTip(""),s.abrupt("return",n);case 12:if("autopay_process_started"!==n.status){s.next=19;break}return e.setTip("\u0418\u0434\u0451\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0422\u0417. \u041e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0442 5 \u0434\u043e 20 \u043c\u0438\u043d\u0443\u0442, \u043d\u043e \u0442\u043e\u0447\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043e\u0431\u044a\u0451\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u043b\u044c\u0448\u0435. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u043e\u043a\u043d\u043e \u2014 \u043e\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438"),s.next=16,new(m())(function(t){return setTimeout(t,5e3)});case 16:case 24:return s.abrupt("return",e.poolingSignStatus(t));case 19:return o=null!==(i=n.processed_tasks_count)&&void 0!==i?i:0,c=null!==(r=n.tasks_to_process_count)&&void 0!==r?r:0,e.setTip(v()(a="\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043e \u0422\u0417 ".concat(o," \u0438\u0437 ")).call(a,c,".\n\u041d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u043e\u043a\u043d\u043e \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.")),s.next=24,new(m())(function(t){return setTimeout(t,5e3)});case 25:case"end":return s.stop()}},_callee9)}));return function(t){return n.apply(this,arguments)}}()).catch(function(t){throw e.setLoading(!1),t}));case 1:case"end":return n.stop()}},_callee10,this)}));return function poolingSignStatus(e){return t.apply(this,arguments)}}()},{key:"multiSignAction",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee11(t){return(0,s.Z)().wrap(function _callee11$(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.a)({method:"POST",url:"tasks/multi_accept",data:t}));case 1:case"end":return e.stop()}},_callee11)}));return function multiSignAction(e){return t.apply(this,arguments)}}()},{key:"baseMultiAction",value:function baseMultiAction(t,e){var n=this;return this.actionState=(0,y.p4)((0,P.a)({method:"delete"===t?"DELET
1E":"POST",url:"tasks/multi_".concat(jt[t]),data:e})),this.actionState.then(function(t){return k.nE.refresh(),t}).then(function(e){n.handleActionResult(t,e),n.onCompleteAction&&n.onCompleteAction()}),this.actionState}},{key:"handleActionResult",value:function handleActionResult(t,e){var n,i,s=this;(null===(n=e.tasks)||void 0===n||n.forEach(function(t){var e,n;return null===(e=s.api.entities.tasks)||void 0===e||null===(n=e.get(t.id))||void 0===n?void 0:n.setData(t)}),"annul"===t)&&(null===(i=this.actionDialogProps)||void 0===i||i.tasks.forEach(function(t){t.fetch()}));this.actionDialogIsOpen&&(this.actionDialogProps.result=e),e.total===e.completed&&(S.A.success(Pt[t]),this.closeDialog())}},{key:"render",value:function render(){var t=this;return(0,W.jsx)(x.Qj,{children:function children(){return(0,W.jsx)(W.Fragment,{children:t.actionDialogIsOpen&&(0,W.jsx)(_t,{store:t})})}})}},{key:"toggleActionPayload",value:function toggleActionPayload(){this.actionPayload.forceTaskPayments=!this.actionPayload.forceTaskPayments}},{key:"fetchCommissions",value:function(){var t=(0,r.Z)((0,s.Z)().mark(function _callee12(t){return(0,s.Z)().wrap(function _callee12$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.a)({method:"POST",url:"tasks/commission",data:{ids:d()(t).call(t,function(t){return t.id})}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee12)}));return function fetchCommissions(e){return t.apply(this,arguments)}}()}]),TasksMultiActionsStore}(),Zt=wt}}]);
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.