PageSourceSearch

https://mirra.ru/_next/static/chunks/pages/customer/account/business/points-bc9dd037346292ea.js

js mirra.ru collected 2026-10-03 20:17:56 UTC 29,626 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1458],{51890:function(e,n,t){"use strict";var i,a=t(67294),o=["title","titleId"];function r(){return r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,i,a=function(e,n){if(null==e)return{};var t,i,a={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}n.Z=function(e){var n=e.title,t=e.titleId,s=d(e,o);return a.createElement("svg",r({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t},s),n?a.createElement("title",{id:t},n):null,i||(i=a.createElement("path",{d:"m2 5 6.171 6L14 5",stroke:"currentColor",strokeLinejoin:"round",fill:"transparent"})))}},78877:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deletePoints"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"trn_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mirraDeletePoints"},arguments:[{kind:"Argument",name:{kind:"Name",value:"trn_id"},value:{kind:"Variable",name:{kind:"Name",value:"trn_id"}}}],directives:[]}]}}],loc:{start:0,end:78}};n.loc.source={body:"mutation deletePoints($trn_id: Int!) {\n  mirraDeletePoints(trn_id: $trn_id)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.deletePoints=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,d=new Set;for(o.forEach((function(e){d.add(e)}));d.size>0;){var s=d;d=new Set,s.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"deletePoints")},60301:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"reservePoints"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"from_month_i
1d"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ptp_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mirraReservePoints"},arguments:[{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"from_month_id"},value:{kind:"Variable",name:{kind:"Name",value:"from_month_id"}}},{kind:"Argument",name:{kind:"Name",value:"ptp_id"},value:{kind:"Variable",name:{kind:"Name",value:"ptp_id"}}}],directives:[]}]}}],loc:{start:0,end:191}};n.loc.source={body:"mutation reservePoints(\n  $amount: Float!,\n  $from_month_id: Int!,\n  $ptp_id: Int!\n) {\n  mirraReservePoints(\n    amount: $amount,\n    from_month_id: $from_month_id,\n    ptp_id: $ptp_id\n  )\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.reservePoints=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,d=new Set;for(o.forEach((function(e){d.add(e)}));d.size>0;){var s=d;d=new Set,s.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"reservePoints")},90745:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"transferPoints"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"to_dst_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"from_month_i
1d"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ptp_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mirraTransferPoints"},arguments:[{kind:"Argument",name:{kind:"Name",value:"to_dst_id"},value:{kind:"Variable",name:{kind:"Name",value:"to_dst_id"}}},{kind:"Argument",name:{kind:"Name",value:"amount"},value:{kind:"Variable",name:{kind:"Name",value:"amount"}}},{kind:"Argument",name:{kind:"Name",value:"from_month_id"},value:{kind:"Variable",name:{kind:"Name",value:"from_month_id"}}},{kind:"Argument",name:{kind:"Name",value:"ptp_id"},value:{kind:"Variable",name:{kind:"Name",value:"ptp_id"}}}],directives:[]}]}}],loc:{start:0,end:240}};n.loc.source={body:"mutation transferPoints(\n  $to_dst_id: Int!,\n  $amount: Float!,\n  $from_month_id: Int!,\n  $ptp_id: Int!\n) {\n  mirraTransferPoints(\n    to_dst_id: $to_dst_id,\n    amount: $amount,\n    from_month_i
1d: $from_month_id,\n    ptp_id: $ptp_id\n  )\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.transferPoints=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,d=new Set;for(o.forEach((function(e){d.add(e)}));d.size>0;){var s=d;d=new Set,s.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"transferPoints")},28346:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getPointsInfo"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mirraPointsInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cnt_text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mth_text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"transfers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"trn_ID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_cnt_ID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_dpt_ID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_mth_IDFrom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_mth_IDTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_dst_IDFrom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_dst_IDTo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_dst_ToFIO"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_Amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_ptp_ID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_Date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"trn_ptp_FullName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mth_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pv_amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reserve_pv"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sch_Date"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:368}};n.loc.source={body:"query getPointsInfo {\n  mirraPointsInfo {\n    cnt_text\n    mth_text\n    transfers {\n      trn_ID\n      trn_cnt_ID\n      trn_dpt_ID\n      trn_mth_IDFrom\n      trn_mth_IDTo\n      trn_dst_IDFrom\n      trn_dst_IDTo\n      trn_dst_ToFIO\n      trn_Amount\n      trn_ptp_ID\n      trn_Date\n      trn_ptp_FullName\n    }\n    mth_id\n    pv_amount\n    reserve_pv\n    sch_Date\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){t(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){t(e,n)})),e.definitions&&e.definitions.forEach((function(e){t(e,n)}))}var i={};function a(e,n){for(var t=0;t<e.definitions.length;t++){var i=e.definitions[t];if(i.name&&i.name.value==n)return i}}n.definitions.forEach((function(e){if(e.name){var n=new Set;t(e,n),i[e.name.value]=n}})),e.exports=n,e.exports.getPointsInfo=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=i[n]||new Set,r=new Set,d=new Set;
1for(o.forEach((function(e){d.add(e)}));d.size>0;){var s=d;d=new Set,s.forEach((function(e){r.has(e)||(r.add(e),(i[e]||new Set).forEach((function(e){d.add(e)})))}))}return r.forEach((function(n){var i=a(e,n);i&&t.definitions.push(i)})),t}(n,"getPointsInfo")},66033:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/account/business/points",function(){return t(91837)}])},91837:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return Ee},default:function(){return Pe}});var i=t(35944),a=t(43919),o=t(59663),r=t(88078),d=t(67294),s=t(51890),l=t(60583),u=t(31279),c=t(37887),m=t(28346),f=t.n(m),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,c.a)(f(),e)},p=t(1380),_=t(70615),h=t(48127),k=t(47568),N=t(828),g=t(34051),Z=t.n(g),b=t(82580),y=t(23807),S=t(30884),D=t(99582),I=t(74231),w=t(42243),x=I.Z_().test("1-digit",w.Bj,(function(e){return"string"!==typeof e||w._w.test(e)})).test("min-1-points","\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 - 1",(function(e){return"string"!==typeof e||parseFloat(e)>=1})),E={amount:x.required(w.zR)},P={to_dst_id:I.Z_().max(9,w.Gs).required(w.zR),amount:x.required(w.zR)},F=I.Ry().shape(E),T=I.Ry().shape(P),M={amount:""},O={to_dst_id:"",amount:""},V=t(50319),C=t(60301),R=t.n(C),A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,V.D)(R(),e)},B=t(43282),X=t(82109),$=function(e){var n=e.monthId,t=e.refetchPointsInfo,a=(0,B.Z)(),o=a.alertComponent,r=a.setAlertMessage,d=(0,N.Z)(A({onCompleted:function(){r({type:"success",message:"\u041e\u0447\u043a\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u044b"}),t()},onError:function(e){var n;r({type:"error",message:null!==(n=e.graphQLErrors[0].message)&&void 0!==n?n:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430"})}}),1)[0],s=function(){var e=(0,k.Z)(Z().mark((function e(t,i){var a,o,r,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=i.resetForm,n){e.next=4;break}return e.abrupt("return");case 4:return r=t.amount,e.next=7,d({variables:{amount:r,ptp_id:1,from_month_i
1d:n}});case 7:s=e.sent,(null===(o=s.data)||void 0===o?void 0:o.mirraReservePoints)&&a();case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,i.tZ)(b.J9,{initialValues:M,validationSchema:F,onSubmit:s,children:function(e){var t,a=e.setFieldValue,r=e.setFieldError,d=e.values,s=e.errors,l=e.isValid,u=e.isSubmitting;return(0,i.BX)(i.HY,{children:[(0,i.BX)(b.l0,{className:"form form-points points__form-points",children:[(0,i.BX)("fieldset",{className:"form__fieldset form-points__fieldset",children:[(0,i.tZ)("legend",{className:"form__legend form-points__legend",children:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432"}),(0,i.tZ)(D.nv,{type:"number",className:"form-points__field-text",value:d.amount,label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432",helperText:"\u041f\u0440\u0438\u043c\u0435\u0440: 123,4",floating:!0,onKeyDown:(0,X._)(["e","-","+"]),error:s.amount,onChange:(t="amount",function(e){r(t,void 0),a(t,e)})})]}),(0,i.tZ)("div",{className:"field-actions form-points__field-actions",children:(0,i.tZ)(y.Z,{type:"submit",disabled:!l||u||!n,variant:S.Wu.PRIMARY,children:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"})})]}),o]})}})},L=t(90745),H=t.n(L),j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,V.D)(H(),e)},q=function(e){var n=e.monthId,t=e.refetchPointsInfo,a=(0,B.Z)(),o=a.alertComponent,r=a.setAlertMessage,d=(0,N.Z)(j({onCompleted:function(){r({type:"success",message:"\u041e\u0447\u043a\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043d\u044b"}),t()},onError:function(e){var n;r({type:"error",message:null!==(n=e.graphQLErrors[0].message)&&void 0!==n?n:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430"})}}),1)[0],s=function(){var e=(0,k.Z)(Z().mark((function e(t,i){var a,o,r,s,l;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=i.resetForm,n){e.next=4;break}return e.abrupt("return");case 4:return r=t.to_dst_id,s=t.amount,e.next=7,d({variables:{to_dst_id:r,amount:s,ptp_id:1,from_month_i
1d:n}});case 7:l=e.sent,(null===(o=l.data)||void 0===o?void 0:o.mirraTransferPoints)&&a();case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,i.tZ)(b.J9,{initialValues:O,onSubmit:s,validationSchema:T,children:function(e){var t=e.setFieldValue,a=e.setFieldError,r=e.values,d=e.errors,s=e.isValid,l=e.isSubmitting,u=function(e){return function(n){a(e,void 0),t(e,n)}};return(0,i.BX)(i.HY,{children:[(0,i.BX)(b.l0,{className:"form form-points points__form-points",children:[(0,i.BX)("fieldset",{className:"form__fieldset form-points__fieldset",children:[(0,i.tZ)("legend",{className:"form__legend form-points__legend",children:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u043e\u0447\u043a\u043e\u0432"}),(0,i.BX)("div",{className:"form-points__grid",children:[(0,i.tZ)(D.nv,{type:"number",className:"form-points__field-text",value:r.to_dst_id,onChange:u("to_dst_id"),label:"\u041a\u043e\u043c\u0443 (\u2116 \u0434\u0438\u0441\u0442\u0440.)",helperText:"\u041f\u0440\u0438\u043c\u0435\u0440: 54484546",floating:!0,error:d.to_dst_id,onKeyDown:(0,X._)(["e","-","+",".",","])}),(0,i.tZ)(D.nv,{type:"number",className:"form-points__field-text",value:r.amount,onChange:u("amount"),label:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432",helperText:"\u041f\u0440\u0438\u043c\u0435\u0440: 123,4",floating:!0,error:d.amount,onKeyDown:(0,X._)(["e","-","+"])})]})]}),(0,i.tZ)("div",{className:"field-actions form-points__field-actions",children:(0,i.tZ)(y.Z,{type:"submit",disabled:!s||l||!n,variant:S.Wu.PRIMARY,children:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"})})]}),o]})}})},z=t(50657),Q=t(1048),Y=t(32793),G=t(86010),K=t(94780),W=t(90948),J=t(33616),U=t(1588),ee=t(34867);function ne(e){return(0,ee.Z)("MuiDialogActions",e)}(0,U.Z)("MuiDialogActions",["root","spacing"]);var te=t(85893);const ie=["className","disableSpacing"],ae=(0,W.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,!t.disableSpacing&&n.spacing]}})((({ownerState:e})=>(0,Y.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})));var oe=d.forwardRef((function(e,n){const t=(0,J.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=t,o=(0,Q.Z)(t,ie),r=(0,Y.Z)({},t,{disableSpacing:a}),d=(e=>{const{classes:n,disableSpacing:t}=e,i={root:["root",!t&&"spacing"]};return(0,K.Z)(i,ne,n)})(r);return(0,te.jsx)(ae,(0,Y.Z)({className:(0,G.Z)(d.root,i),ownerState:r,ref:n},o))}));function re(e){return(0,ee.Z)("MuiDialogContent",e)}(0,U.Z)("MuiDialogContent",["root","dividers"]);function de(e){return(0,ee.Z)("MuiDialogTitle",e)}var se=(0,U.Z)("MuiDialogTitle",["root"]);const le=["className","dividers"],ue=(0,W.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.dividers&&n.dividers]}})((({theme:e,ownerState:n})=>(0,Y.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${se.root} + &`]:{paddingTop:0}})));var ce=d.forwardRef((function(e,n){const t=(0,J.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=t,o=(0,Q.Z)(t,le),r=(0,Y.Z)({},t,{dividers:a}),d=(e=>{const{classes:n,dividers:t}=e,i={root:["root",t&&"dividers"]};return(0,K.Z)(i,re,n)})(r);return(0,te.jsx)(ue,(0,Y.Z)({className:(0,G.Z)(d.root,i),ownerState:r,ref:n},o))})),me=t(15861),fe=t(34182);const ve=["className","id"],pe=(0,W.ZP)(me.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,n)=>n.root})({padding:"16px 24px",flex:"0 0 auto"});var _e=d.forwardRef((function(e,n){const t=(0,J.Z)({props:e,name:"MuiDialogTitle"}),{className:i,id:a}=t,o=(0,Q.Z)(t,ve),r=t,s=(e=>{const{classes:n}=e;return(0,K.Z)({root:["root"]},de,n)})(r),{titleId:l=a}=d.useContext(fe.Z);return(0,te.jsx)(pe,(0,Y.Z)({component:"h2",className:(0,G.Z)(s.root,i),ownerState:r,ref:n,variant:"h6",id:l},o))})),he=t(48446),ke=function(e){var n=e.open,t=e.setOpen,a=e.content,o=e.onDelete,r=e.deleteLoading,d=function(){t(!1)};return(0,i.BX)(z.Z,{className:"points-dialog",open:n,onClose:d,"aria-labelledby":"responsive-dialog-title",children:[(0,i.tZ)(_e,{className:"points-dialog__title",children:"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e?"}),(0,i.tZ)(ce,{className:"points-dialog__content",children:(0,i.tZ)("div",{dangerouslySetInnerHTML:{__html:a}})}),(0,i.BX)(oe,{children:[(0,i.tZ)(S.ZP,{className:"points-dialog__btn",type:"button",variant:S.Wu.PRIMARY,size:S.qE.SM,onClick:d,children:"\u041d\u0435\u0442"}),(0,i.tZ)(S.ZP,{className:"points-dialog__btn",type:"button",variant:S.Wu.OUTLINE,size:S.qE.SM,onClick:function(){o()},children:r?(0,i.tZ)(he.Z,{size:20}):"\u0414\u0430"})]})]})},Ne=t(9964),ge=t(78877),Ze=t.n(ge),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,V.D)(Ze(),e)},ye=t(14866),Se=t(29290),De=function(e){var n=e.transfers,t=e.error,a=e.isLoading,o=e.refetchPointsInfo,r=(0,d.useState)(!1),s=r[0],l=r[1],u=(0,d.useState)(!1),c=u[0],m=u[1],f=(0,d.useState)(""),v=f[0],p=f[1],_=(0,d.useState)(""),h=_[0],k=_[1],g=(0,d.useState)(""),Z=g[0],b=g[1],y=(0,N.Z)(be({onCompleted:function(){o(),l(!1),m(!0),p("\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0430")},onError:function(){p("\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438")}}),2),S=y[0],D=y[1].loading,I=function(){p("")};return(0,i.BX)("div",{className:"points-list",children:[(0,i.tZ)(ye.Z,{open:Boolean(v),autoHideDuration:6e3,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,i.tZ)(Se.Z,{onClose:I,severity:c?"success":"error",children:v})}),(0,i.tZ)(ke,{open:s,setOpen:l,content:h,onDelete:function(){Z&&S({variables:{trn_id:parseInt(Z)}})},deleteLoading:D}),(0,i.tZ)("p",{className:"points-list__header",children:"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u0432"}),t?(0,i.tZ)("p",{className:"points-list__error",children:"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439"}):a?(0,i.tZ)(he.Z,{}):(null===n||void 0===n?void 0:n.length)?null===n||void 0===n?void 0:n.map((function(e,n){var t=e.trn_dst_IDFrom===e.trn_dst_IDTo?"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0441\u044f\u0446 <b>".concat(e.trn_Amount,"</b> (").concat(e.trn_ptp_FullName,") \u043e\u0442 ").concat(e.trn_Date&&(0,Ne.o0)(e.trn_Date)):"\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043d\u0430 \u2116 ".concat(e.trn_dst_IDTo," <b>").concat(e.trn_dst_ToFIO,"</b> <b>").concat(e.trn_Amount,"</b> (").concat(e.trn_ptp_FullName,") \u043e\u0442 ").concat(e.trn_Date&&(0,Ne.o0)(e.trn_Date));return(0,i.BX)("div",{className:"points-list__item",children:[(0,i.tZ)("div",{className:"points-list__description",children:(0,i.tZ)("p",{className:"points-list__text",dangerouslySetInnerHTML:{__html:t}})}),(0,i.tZ)("button",{onClick:function(){return function(e,n){k(e),b(n),l(!0),m(!1)}(t,e.trn_ID)},className:"points-list__delete-button",children:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c"})]},n)})):"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439"]})},Ie=[1],we=function(e){var n,t=e.customer,a=(0,_.Z)().isMobile,o=(0,d.useState)(1),c=o[0],m=o[
11],f=v(),k=f.data,N=f.refetch,g=f.loading,Z=f.error,b=(0,p.Z)({defaultExpandedIds:Ie}),y=b.setExpandedIds,S=b.expandedIds,D=b.handleChangeAccordion,I=null===k||void 0===k||null===(n=k.mirraPointsInfo)||void 0===n?void 0:n.transfers,w=null===k||void 0===k?void 0:k.mirraPointsInfo,x=[{id:1,name:a?"\u041f\u0435\u0440\u0435\u043d\u043e\u0441":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u043e\u0441"},{id:2,name:a?"\u0420\u0435\u0437\u0435\u0440\u0432":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432"}];return(0,d.useEffect)((function(){y(a?[]:Ie)}),[a]),(0,i.BX)("div",{className:"points",children:[(0,i.BX)("div",{className:"points__container",children:[(0,i.BX)("div",{className:"points__header",children:[(0,i.tZ)("h2",{className:"points__title",children:void 0!==(null===w||void 0===w?void 0:w.mth_text)?"\u0417\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u0441\u044f\u0446 ".concat(null===w||void 0===w?void 0:w.mth_text," \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 \u2116").concat(t.mirra_di_isn):(0,i.tZ)(r.Z,{variant:"text"})}),(0,i.tZ)("p",{className:"points__subtitle",children:void 0!==(null===w||void 0===w?void 0:w.cnt_text)?null===w||void 0===w?void 0:w.cnt_text:(0,i.tZ)(r.Z,{variant:"text"})}),(0,i.tZ)("p",{className:"points__info",children:void 0!==(null===w||void 0===w?void 0:w.sch_Date)?"\u0418\u0434\u0435\u0442 \u043f\u0440\u0438\u0435\u043c \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u0432 \u0434\u043e ".concat(null===w||void 0===w?void 0:w.sch_Date):(0,i.tZ)(r.Z,{variant:"text"})}),(0,i.tZ)(u.Z,{className:"points__nav-menu",menu:x,activeMenuItem:c,onMenuItemClick:m})]}),1===c&&(0,i.tZ)(q,{monthId:null===w||void 0===w?void 0:w.mth_id,refetchPointsInfo:N}),2===c&&(0,i.tZ)($,{monthId:null===w||void 0===w?void 0:w.mth_id,refetchPointsInfo:N}),(0,i.tZ)("div",{className:"points-status points__status",children:(0,i.BX)(h.Z,{onChange:D(1),expanded:S.includes(1),className:"points-status__accordion",title:(0,i.BX)(i.HY,{children:[(0,i.BX)("div",{className:"points-status__field",children:[(0,i.tZ)("span",{className:"points-status__label",children:"\u0422\u0435\u043a\u0443\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e"}),(0,i.tZ)("span",{className:"points-status__value",children:void 0===(null===w||void 0===w?void 0:w.pv_amount)||g?(0,i.tZ)(r.Z,{variant:"text"}):null===w||void 0===w?void 0:w.pv_amount})]}),a?(0,i.tZ)(l.Z,{orientation:"vertical"}):(0,i.tZ)(l.Z,{}),(0,i.BX)("div",{className:"points-status__field",children:[(0,i.tZ)("span",{className:"points-status__label",children:"\u0418\u0437 \u043d\u0438\u0445 \u0440\u0435\u0437\u0435\u0440\u0432"}),(0,i.tZ)("span",{className:"points-status__value",children:void 0===(null===w||void 0===w?void 0:w.reserve_pv)||g?(0,i.tZ)(r.Z,{variant:"text"}):null===w||void 0===w?void 0:w.reserve_pv})]}),(0,i.tZ)(l.Z,{})]}),iconClose:(0,i.tZ)(s.Z,{className:"icon accordion__icon",width:"16",height:"16"}),iconOpen:(0,i.tZ)(s.Z,{className:"icon accordion__icon",width:"16",height:"16"}),children:[(0,i.tZ)("p",{className:"points-status__text",children:"\u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0438\u043b\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 - 1"}),(0,i.tZ)("p",{className:"points-status__text",children:"\u041c\u0438\u043d\u0438\u043c\u0443\u043c 100 \u043e\u0447\u043a\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u0438\u0447\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043c\u0435 \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u043e\u0432 \u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439."})]})})]}),(0,i.tZ)(De,{transfers:I,error:Z,isLoading:g,refetchPointsInfo:N})]})},xe=t(51109),Ee=!0,Pe=function(){var e=(0,xe.Z)().data;return(0,i.tZ)(a.Z,{children:(0,i.tZ)(o.Z,{children:(null===e||void 0===e?void 0:e.customer)&&(0,i.tZ)(we,{customer:null===e||void 0===e?void 0:e.customer})})})}},58749:function(e,n,t){"use strict";t.d(n,{K_:function(){return i},Qo:function(){return o},_r:function(){return a},k0:function(){return d},nb:function(){return r}});var i="dd.MM.yyyy",a="HH:mm",o="yyyy-MM-dd HH:mm:ss",r="yyyy-MM-dd'T'HH:mm:ss.SSS",d="yyyy-MM-dd"},9964:function(e,n,t){"use strict";t.d(n,{mr:function(){return s},o0:function(){return l},p6:function(){return d}});var i=t(24002),a=t(74201),o=t(71806),r=t(58749),d=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.K_,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.Qo,d=(0,i.Z)(e,t,new Date);return(0,a.Z)(d,n,{locale:o.Z})},s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r._r,t=(0,i.Z)(e,r.Qo,new Date);return(0,a.Z)(t,n,{locale:o.Z})},l=function(e){var n=(0,i.Z)(e,r.nb,new Date);return(0,a.Z)(n,"dd.MM.yyyy HH:mm",{locale:o.Z})}},82109:function(e,n,t){"use strict";t.d(n,{_:function(){return i}});var i=function(e){return function(n){e.includes(n.key)&&n.preventDefault()}}}},function(e){e.O(0,[3955,4002,2036,9774,2888,179],(function(){return n=66033,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.