PageSourceSearch

https://forum.hkgolden.com/static/js/5795.b210b119.chunk.js

js hkgolden.com collected 2026-10-02 03:35:24 UTC 3,923 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkhkg_web_mui=globalThis.webpackChunkhkg_web_mui||[]).push([[5795],{55795:(n,t,e)=>{e.r(t),e.d(t,{default:()=>S});var i,s=e(15917),o=e(84863),a=e(99621),r=e(53720),l=e(12741),h=e(67282),d=e(20931);class c extends d.A{}i=c,c.donateByThreadId=async(n,t,e)=>{const s=new FormData;s.append("pin",n),s.append("id",t),s.append("amount",e);return await i.HKGRequest(i.REQUEST_METHOD.POST,"v1/view/donate",s)};const p=c;var u;class m extends h.A{}u=m,m.donateByThreadId=async(n,t,e)=>{const i=new FormData;i.append("pin",n),i.append("id",t),i.append("amount",e);return await u.HKGRequest(u.REQUEST_METHOD.POST,"api/ApiPost/donate",i)};class C extends h.A{}C.donateByThreadId=async(n,t,e)=>await p.donateByThreadId(n,t,e);const P=C;var b=e(46472),E=e(78239),g=e(13055),w=e(35265),A=e(14381),M=e(78004),v=e(22979),y=e(34222);class I extends s.PureComponent{constructor(){super(...arguments),this.state={initCoinPinVisible:!1,enterCoinPinVisible:!1},this.form={id:"",amount:0},this.handleChange=n=>t=>{let{target:{value:e}}=t;this.form[n]=e},this.handleSubmit=async()=>{let{amount:n}=this.form;0===n.length||n<=0?(0,g.$)(E.sM.WARN,"\u8acb\u8f38\u5165\u6b63\u78ba\u81a0\u5e63\u6578\u91cf"):this.showPinModal()},this.showInitCoinPinModal=()=>{this.setInitCoinPinVisible(!0)},this.hideInitCoinPinModal=()=>{this.setInitCoinPinVisible(!1)},this.showEnterCoinPinModal=()=>{this.setEnterCoinPinVisible(!0)},this.hideEnterCoinPinModal=()=>{this.setEnterCoinPinVisible(!1)},this.processDonateCoin=async n=>{const{amount:t}=this.form,{id:e}=this.props;try{(await P.donateByThreadId(n,e,t)).result&&((0,g.$)(E.sM.SUCCESS,"\u9001\u5e63\u6210\u529f"),this.props.onClose())}catch(i){const n=i&&i.message||i;if("string"===typeof n&&(n.includes("\u767b\u5165")||n.includes("\u521d\u7d1a\u6703\u54e1")))return this.props.onClose(),void M.A.dispatch((0,v.YE)());(0,b.Q)("\u9001\u5e63\u5931\u6557",i),this.setState({loading:!1})}}}componentDidMount(){const n=(0,y.e)();this.props.visible&&!n&&(this.props.onClose(),M.A.dispatch((0,v.YE)()))}componentDidUpdate(n){const t=(0,y.e)();this.props.visible&&!t&&(this.props.onClose(),M.A.dispatch((0,v.YE)()))}setInitCoinPinVisible(n){this.setState({initCoinPinVisible:n})}setEnterCoinPinVisible(n){this.setState({enterCoinPinVisible:n})}async showPinModal(){if(!(0,y.e)())return this.props.onClose(),void M.A.dispatch((0,v.YE)());M.A.getState().getIn(["configs","userInfo","hasPin"])?this.showEnterCoinPinModal():this.showInitCoinPinModal()}renderForm(){const{classes:n}=this.props;return s.createElement("div",null,s.createElement(a.A,{id:"amount",name:"amount",label:"\u9001\u5e63\u6578\u91cf",className:n.input,onChange:this.handleChange("amount"),type:"number"}))}renderButtons(){const{onClose:n,classes:t}=this.props;return s.createElement(s.Fragment,null,s.createElement(r.A,{className:t.button,variant:"outlined",color:"primary",size:"small",onClick:n},"\u53d6\u6d88"),this.renderSendButton())}renderSendButton(){const{classes:n}=this.props;return s.createElement(r.A,{className:n.button,variant:"contained",color:"primary",size:"small",onClick:this.handleSubmit},"\u9001\u5e63")}render(){const{visible:n,onClose:t,classes:e,id:i}=this.props,{initCoinPinVisible:o,enterCoinPinVisible:a}=this.state,r=(0,y.e)();if(n&&!r)return null;const h=n&&r;return s.createElement(s.Fragment,null,s.createElement(l.A,{className:e.root,open:h,onClose:t,title:"\u9001\u5e63\u7d66\u6a13\u4e3b",contents:this.renderForm(),actionButtons:this.renderButtons(),fullWidth:!1,actionBtnAlignRight:!0}),s.createElement(w.A,{id:i,visible:o,onClose:this.hideInitCoinPinModal,showEnterCoinPinModal:this.showEnterCoinPinModal}),s.createElement(A.A,{id:i,visible:a,onClose:this.hideEnterCoinPinModal,confirmAction:this.processDonateCoin,showInitCoinPinModal:this.showInitCoinPinModal}))}}const S=(0,o.A)(n=>({root:{margin:n.spacing(1)},input:{width:300},button:{marginLeft:n.spacing(1)}}))(I)}}]);

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.