PageSourceSearch

https://birge.tv/assets/modal_pay_card-BOBkUIJr.js

js birge.tv collected 2026-10-03 02:09:11 UTC 3,558 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-BGzrh1wQ.js";import{p as t}from"./@dnd-kit-wafImMNv.js";import{i as s,r as a}from"./react-helmet-async-BK_lzIDv.js";import{t as r}from"./react-CavA5H9o.js";import{i as o,r as i,t as n}from"./routes-CFIrlgZ5.js";import{t as m}from"./withStore-Cqnz2idy.js";import{t as c}from"./storage-DkRcY3Cn.js";import{t as l}from"./react-device-detect-C0L26kaM.js";import{t as p}from"./react-i18next-BWmZxQXr.js";import{r as u,t as d}from"./formik-BTEE9yy0.js";import{t as h}from"./modal_packet_agreement-la5gm3gx.js";var f=e(t(),1),_=l(),j=r();s();var x=class extends f.Component{constructor(e){super(e);a(this,"setFocus",()=>{setTimeout(()=>{this.inputRef.current?.focus()},100)});a(this,"updateAccount",e=>{const t=this.props.stores.main;this.props.stores.packets;const{t:s}=this.props;this.formikRef&&this.formikRef.current&&this.formikRef.current.setSubmitting(!1);setTimeout(()=>{t.getAccount()},3e3)});a(this,"recharge",e=>{const t=this.props.stores.main,s=this.props.stores.packets,a="qrcode"===s.paySystemShortname;s.setData("chosenPacket",null);c.removeItem("chosenPacket");s.setData("purchaseAmount",e.amount);if("mbank"!==t.partner())if(!a||t.blockData?.status)if((s.isAlmatv||s.isBirgetv)&&s.paySystemShortname?.includes("qrcode")){s.setData("qrCodeAmount",e.amount);s.getQrImageKaspi()}else s.payByCard(e,e=>{this.updateAccount(e);n()});else{s.setData("refillValues",e);s.setData("qrCodeAmount",e.amount);a&&o({id:i.pay_qr})}else{s.setData("purchaseAmount",e.amount);o({id:i.pay_phone_sms})}});this.formikRef=f.createRef();this.inputRef=f.createRef()}componentDidMount(){this.setFocus()}render(){const e=this.props.stores.main,t=this.props.stores.packets,{t:s}=this.props,a="qrcode"===t.paySystemShortname||"qrcode_png"===t.paySystemShortname||_.isMobile,r="mbank"!==e.partner()&&!t.primaryCard&&!a&&!0;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("h2",{className:"modal_header",children:a||t.isAlmatv||t.isBirgetv?(0,j.jsx)(j.Fragment,{children:s("refill_balance")}):t.primaryCard?(0,j.jsxs)(j.Fragment,{children:[s("title_card_pay")," ",(0,j.jsx)("br",{})," ",t.primaryCard.number]}):(0,j.jsx)(j.Fragment,{children:s("title_pay_with_card")})}),(0,j.jsx)(u,{innerRef:this.formikRef,initialValues:{amount:t.refillValues?.amount||t.qrCodeAmount||"",save:!0},onSubmit:e=>{this.recharge(e)},children:({values:e,handleBlur:t,handleSubmit:a,setFieldValue:o,isSubmitting:i})=>(0,j.jsxs)("form",{className:"modal_form",onSubmit:a,children:[(0,j.jsx)("label",{className:"modal_label",htmlFor:"phone",children:s("payment_amount")}),(0,j.jsx)("input",{ref:this.inputRef,className:"modal_input",id:"amount",name:"amount",type:"number",inputMode:"numeric",pattern:"\\d*",required:"required",step:"1",onBeforeInput:e=>{const t=e.nativeEvent?.data||"";/\D/.test(t)&&e.preventDefault()},onChange:e=>{o("amount",e.target.value.replace(/\D/g,""))},onBlur:t,value:e.amount,min:"1",max:9999999999}),(0,j.jsx)("button",{className:"modal_button",type:"submit",disabled:i,"aria-label":s("refill"),children:s(i?"status_processing":"refill")}),r?(0,j.jsx)("div",{className:"modal_checkbox_row",children:(0,j.jsxs)("label",{className:"modal_checkbox_label",htmlFor:"save",children:[(0,j.jsxs)("span",{className:"checkbox_slider_cont",children:[(0,j.jsx)(d,{type:"checkbox",id:"save",name:"save",onChange:()=>{o("save",!e.save)}}),(0,j.jsx)("span",{className:"checkbox_slider",children:" "})]}),(0,j.jsx)("span",{className:"modal_checkbox_row_text",children:s("link_card")})]})}):""]})}),(0,j.jsx)(h,{})]})}},b=p()(m(x));export{b as default};

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.