1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3112],{85790:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/[payment_id]",function(){return e(1555)}])},49343:function(n,t,e){"use strict";e.d(t,{DP:function(){return p},Eg:function(){return c},F4:function(){return o},PT:function(){return a},ef:function(){return r},qu:function(){return s},wt:function(){return u}});var i=e(10610);async function r(n,t){let e={};return n&&(e.tariff=n),t&&(e.subscription_description=t),(await (0,i.bA)("/api/v1/subscription/props/",e)).json()}async function s(n,t,e,r,s,c){let a={tariff:t,subscription_description:e,name:r,phone:s};return c&&(a.use_balance=!0),(0,i.bg)("/api/v1/subscription/?city=".concat(n),a)}async function c(n){return(await (0,i.bA)("/api/v1/subscription/active/",{player_id:n})).json()}async function a(n){return(await (0,i.bA)("/api/v1/subscription/archived/",{player_id:n})).json()}async function u(n,t){return(await (0,i.bA)("/api/v1/subscription/".concat(n,"/subscription-games/"),{player_id:t})).json()}async function o(n){return(0,i.bA)("/api/v1/payment/".concat(n,"/status/"))}async function p(n){return(0,i.bg)("/api/v1/payment/".concat(n,"/pay/"),{})}},1555:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return j},default:function(){return x}});var i=e(85893),r=e(67294),s=e(12918),c=e.n(s),a=e(41664),u=e.n(a),o=e(9008),p=e.n(o),d=e(16318),l=e(49343);function f(n){let{payment:t}=n,[e,s]=(0,r.useState)(!1),[c,a]=(0,r.useState)(t.error),u=async()=>{s(!0);let n=await (0,l.DP)(t.payment_id),e=await n.json();n.ok?e.redirect?location.href=e.redirect:(a(e.error),s(!1)):(a("ÐÑибка ÑабоÑÑ Ñ ÑеÑвеÑом (".concat(n.status,").")),s(!1))};return(0,i.jsxs)("div",{className:"payment",children:[(0,i.jsxs)("h2",{children:["СÑÑÑ â ",t.id]}),(0,i.jsxs)("h4",{children:["СÑмма: ",(0,i.jsx)("b",{className:"text-primary",children:t.amount})," ÑÑб"]}),t.description&&(0,i.jsx)("p",{children:t.description}),c&&(0,i.jsx)("p",{className:"text-danger text-prewrap mx-5",children:c}),!t.error&&(0,i.jsx)("p",{children:(0,i.jsx)("button",{type:"button",className:"btn btn-primary",disabled:e,onClick:u,children:"ÐплаÑиÑÑ"})})]})}function h(n){let{payment:t,currentCity:e}=n;return(0,i.jsxs)("div",{className:"payment",children:[(0,i.jsxs)("h2",{children:["СÑÑÑ â ",t.id]}),t.is_cancelled?(0,i.jsx)("p",{children:"ÐплаÑа по ÑÑÐ¾Ð¼Ñ ÑÑÑÑÑ Ð¾Ñменена."}):(0,i.jsx)("p",{children:"ÐплаÑа по ÑÑÐ¾Ð¼Ñ ÑÑÑÑÑ Ñже завеÑÑена."}),(0,i.jsx)("p",{children:(0,i.jsx)(u(),{href:"/".concat(e.slug,"/"),className:"btn btn-primary",children:"ÐеÑнÑÑÑÑÑ Ð½Ð° главнÑÑ"})})]})}var j=!0;function x(n){let{layoutProps:t,errorCode:e,payment:r,currentCity:s}=n;return e?(0,i.jsx)(c(),{statusCode:e}):(0,i.jsxs)(d.Z,{pageClass:"page-payment",...t,children:[(0,i.jsx)(p(),{children:(0,i.jsxs)("title",{children:["СÑÑÑ â ",r.id]})}),(0,i.jsx)("div",{className:"container-fluid d-flex justify-content-center",children:r.is_pending?(0,i.jsx)(f,{payment:r}):(0,i.jsx)(h,{payment:r,currentCity:s})})]})}},12918:function(n,t,e){n.exports=e(2111)}},function(n){n.O(0,[2888,9774,179],function(){return n(n.s=85790)}),_N_E=n.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.