1(self.webpackChunkkds_web=self.webpackChunkkds_web||[]).push([[840],{91208:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var a=s(65043),n=s(22019),o=s(39513),i=s(96603),l=s(21622),c=s(87892),r=s(84765),d=s(80802),m=s(8764),u=s(70579);const p=function(e){let{userInfo:t={},visible:s=!1,title:p="",onClose:g=()=>{},width:v=320}=e;const[h,x]=(0,a.useState)(!1),[f,j]=(0,a.useState)(""),[y,b]=(0,a.useState)(60),[w,_]=(0,a.useState)(!1),[N,S]=(0,a.useState)(1),[A,C]=(0,a.useState)({}),[k,E]=(0,a.useState)(!1),[I,T]=(0,a.useState)(!1),[q,L]=(0,a.useState)(!1);function P(e){return null===e||void 0===e?"":e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}(0,a.useEffect)((()=>{null!==A&&void 0!==A&&A.recharge_id&&s&&L(!0)}),[null===A||void 0===A?void 0:A.recharge_id,s]),(0,a.useEffect)((()=>{let e;return q&&null!==A&&void 0!==A&&A.recharge_id&&(e=setInterval((async()=>{200===(await(0,m.mX)({recharge_id:A.recharge_id})).data.status&&(T(!0),L(!1),clearInterval(e))}),5e3)),()=>clearInterval(e)}),[q,null===A||void 0===A?void 0:A.recharge_id]),(0,a.useEffect)((()=>{if(s){0!==y&&(async()=>{try{E(!0);const e=await(0,m.Ob)({peach:y,pay_way:N});e&&200===e.data.status?C(e.data.data):n.Ay.error((null===e||void 0===e?void 0:e.msg)||"\u8bf7\u6c42\u5931\u8d25")}catch(e){n.Ay.error("\u7f51\u7edc\u9519\u8bef\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5")}finally{E(!1)}})()}else b(60),j(""),S(1),_(!1),x(!1),T(!1),L(!1)}),[s,N,y]);const B=e=>{e!==N&&(C({}),S(e))};return(0,u.jsx)(o.A,{width:v,open:s,onCancel:g,footer:null,closable:!I,closeIcon:(0,u.jsx)("img",{src:l.A,alt:"close"}),centered:!0,maskClosable:!1,children:I?(0,u.jsxs)("div",{className:"topUp-success",children:[(0,u.jsx)("img",{src:d.A,alt:"wechat-pay"}),(0,u.jsx)("div",{className:"success-title sys-article-subtitle",children:"\u652f\u4ed8\u6210\u529f"}),(0,u.jsx)("button",{className:"ok-btn sys-regular-bold-font",onClick:g,children:"\u6211\u77e5\u9053\u4e86"})]}):(0,u.jsxs)("div",{className:"topUp-modal-content",children:[p&&(0,u.jsx)("span",{className:"modal-title sys-section-name",children:p}),(0,u.jsxs)("div",{className:"peach-content",children:[(0,u.jsx)("div",{className:"content-tip sys-regular-font",children:"\u9009\u62e9\u6570\u91cf"}),(0,u.jsxs)("div",{className:"content-count",children:[[60,300,980,3280,6480].map((e=>(0,u.jsx)("div",{onClick:()=>{x(!1)},className:"".concat(y===e?"":"item-out"),children:(0,u.jsxs)("div",{className:"count-item ".concat(y===e?"active":""),onClick:()=>b(e),children:[(0,u.jsxs)("div",{className:"item-top",children:[60!==e&&(0,u.jsxs)("div",{className:"tip sys-regular-font",children:["\u989d\u5916\u9001",P(e<3280?.15*e:.3*e),"\u4e2a\u6843\u5b50"]}),(0,u.jsx)("div",{className:"item-num",children:P(e)}),(0,u.jsx)("div",{className:"item-name sys-article-body",children:"\u6843\u5b50"})]}),(0,u.jsxs)("div",{className:"item-bottom sys-regular-font",children:["\uffe5",e/10]})]})},e))),(0,u.jsx)("div",{className:"".concat(h?"":"item-out"),children:(0,u.jsxs)("div",{className:"count-item ".concat(h?"active":""),onClick:()=>{x(!0),b(Number(f))},children:[(0,u.jsxs)("div",{className:"item-top",children:[(0,u.jsx)("div",{className:"tip sys-regular-font",children:"\u989d\u5916\u900130%\u6843\u5b50"}),(0,u.jsx)("input",{className:"input-new",value:f,placeholder:"\u81ea\u5b9a\u4e49",onChange:e=>{let t=e.target.value.replace(/[^\d]/g,"");t=t.replace(/^0+/,""),t&&!/^\d+$/.test(t)||(t=Number(t),j(t),E(!0))},onBlur:e=>{let t=e.target.value.replace(/[^\d]/g,"");if(t=t.replace(/^0+/,""),!t||/^\d+$/.test(t))return t=Number(t),t&&Number(t)<=6480?(j(6481),b(6481),void n.Ay.warning("\u8bf7\u8f93\u5165\u5927\u4e8e6480\u7684\u6b63\u6574\u6570")):t&&Number(t)>1e5?(j(1e5),b(1e5),void n.Ay.warning("\u5355\u6b21\u6700\u591a\u8d2d\u4e7010\u4e07\u4e2a\u6843\u5b50")):void b(t)}})]}),(0,u.jsx)("div",{className:"item-bottom sys-regular-font",children:"\u8bf7\u8f93\u5165\uff1e6,480\u7684\u6570\u5b57"})]})})]}),(0,u.jsxs)("div",{className:"content-result",children:[(0,u.jsx)("div",{className:"sys-min-font",children:"\u652f\u4ed8\u65b9\u5f0f\uff1a"}),(0,u.jsxs)("div",{className:"payment-container",children:[(0,u.jsxs)("div",{className:"payment-tabs",children:[(0,u.jsxs)("div",{className:"sys-regular-bold-font tab-item ".concat(1===N?"active":""),onClick:()=>B(1),children:[(0,u.jsx)("img",{src:r.A,alt:"wechat-pay"}),"\u5fae\u4fe1"]}),(0,u.jsxs)("div",{className:"sys-regular-bold-font tab-item ".concat(2===N?"active":""),onClick:()=>
1B(2),children:[(0,u.jsx)("img",{src:c.A,alt:"alipay"}),"\u652f\u4ed8\u5b9d"]})]}),(0,u.jsxs)("div",{className:"result",children:[(0,u.jsxs)("div",{className:"qr-code-wrapper",children:[(0,u.jsx)("div",{className:2===N?"qr-code":"qr-code-wechat",children:k?(0,u.jsx)("div",{style:{textAlign:"center",padding:"60px 0",fontSize:"12px"},children:"\u8bf7\u6c42\u4e2d..."}):2===N?(0,u.jsx)("iframe",{src:null===A||void 0===A?void 0:A.pay_url,style:{height:"163px",scale:"0.8",border:"none",aspectRatio:"1 / 1"},title:"\u5145\u503c\u9875\u9762"}):(0,u.jsx)("img",{src:null===A||void 0===A?void 0:A.pay_url,alt:"\u5fae\u4fe1\u652f\u4ed8\u4e8c\u7ef4\u7801",style:{width:"100%",height:"126px",border:"none"}})}),!w&&(0,u.jsxs)("div",{className:2===N?"qr-mask":"qr-mask-wechat",children:[(0,u.jsxs)("div",{className:"tips",children:[(0,u.jsx)("span",{children:"\u8bf7\u5148\u9605\u8bfb\u5e76\u540c\u610f"}),(0,u.jsx)("span",{children:"\u76f8\u5173\u534f\u8bae\u518d\u626b\u7801\u652f\u4ed8"})]}),(0,u.jsx)("button",{onClick:()=>_(!0),className:"mask-button ",children:"\u786e\u8ba4\u540c\u610f"})]})]}),(0,u.jsxs)("div",{className:"payment-section",children:[(0,u.jsxs)("div",{className:"payment-info sys-section-name",children:["\u540c\u610f\u5e76\u652f\u4ed8",(0,u.jsxs)("span",{className:"money sys-article-title",children:["\uffe5",k?"-":P((null===A||void 0===A?void 0:A.price)||0)]})]}),(0,u.jsx)(i.Ay,{checked:w,onClick:()=>{_(!w)},children:(0,u.jsxs)("div",{className:"agreement-radio sys-min-font",children:[(0,u.jsx)("span",{className:"font",children:"\u9605\u8bfb\u5e76\u540c\u610f"}),(0,u.jsx)("span",{className:"agreement-text",children:(0,u.jsx)("a",{href:"https://club.kdslife.com/new/terms/peach.html",target:"_blank",rel:"noopener noreferrer",children:"\u6843\u5b50\u7528\u6237\u534f\u8bae"})}),(0,u.jsx)("span",{className:"font",children:"|"}),(0,u.jsx)("span",{className:"agreement-text",children:(0,u.jsx)("a",{href:"https://render.alipay.com/p/yuyan/180020010001196791/preview.html?agreementId=AG00000051",target:"_blank",rel:"noopener noreferrer",children:"\u4ed8\u8d39\u6388\u6743\u534f\u8bae"})})]})})]})]})]})]})]})]})})}},13407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>X});var a=s(89379),n=s(65043),o=s(83003),i=s(61308),l=s(66580),c=s(29775),r=s(22019),d=s(83720),m=s(96603),u=s(95206),p=(s(44014),s(92823)),g=s.n(p),v=s(18489),h=s(3567),x=s(39513),f=s(80914),j=(s(25884),s(84102)),y=s(3421),b=s(87138),w=s(51096),_=s(68178),N=s(19141),S=s(33713),A=s(99287),C=s(27956),k=s(64538),E=s(18383),I=s(42400),T=s(21622);const q=s.p+"static/media/redbag.f733fbbf64b097c144c5.riv";const L=s.p+"static/media/redbag.84dccea050ae2c9043c3ce7fc70ca8a3.svg";const P=s.p+"static/media/delete-redbag.0b1833bd1289d24983fbf6dee0394fe7.svg";var B=s(70857),F=s(91208),D=s(31822),R=s(70579);const O=p.Quill.import("blots/embed");class U extends O{static create(e){const t=super.create();return t.setAttribute("src",e),t.classList.add(U.className),t}static value(e){return e.getAttribute("src")}static match(e){return e.tagName===this.tagName.toUpperCase()&&e.classList.contains(this.className)}}U.blotName="emoji",U.tagName="img",U.className="ql-emoji",p.Quill.register(U);const M=["image","at","link","emoji"],V={tabs:[{id:"newEmoji",prefix:"01",count:46,offset:0},{id:"jingdian",prefix:"ico_00",count:52,offset:35}]};const z=function(e){let{userInfo:t,onChange:s,value:a,redEnvelope:i,currentTheme:l,onUserInfoUpdate:c}=e;const[m,p]=(0,n.useState)(a||""),O=(0,n.useRef)(null),[U,z]=(0,n.useState)(!1),[H,J]=(0,n.use
1State)(!1),[G,K]=(0,n.useState)(i),[W,X]=(0,n.useState)(!1),[$,Y]=(0,n.useState)(null),[Z,Q]=(0,n.useState)(!1),[ee,te]=(0,n.useState)(!1),se=[20,50,100,200,500],ae=[1,5,10,20,50],[ne,oe]=(0,n.useState)(!1),[ie,le]=(0,n.useState)(null),ce=(0,n.useRef)(0),[re,de]=(0,n.useState)(!1),[me,ue]=(0,n.useState)(0),pe=8e3,[ge,ve]=(0,n.useState)(!1),[he,xe]=(0,n.useState)(""),[fe,je]=(0,n.useState)([]),[ye,be]=(0,n.useState)(!1),[we,_e]=(0,n.useState)(l||localStorage.getItem("theme")||"light"),Ne=(0,n.useMemo)((()=>i),[null===i||void 0===i?void 0:i.envelopeType,null===i||void 0===i?void 0:i.selectAmount,null===i||void 0===i?void 0:i.totalAmount,null===i||void 0===i?void 0:i.envelopeCount,null===i||void 0===i?void 0:i.isCustomAmount,null===i||void 0===i?void 0:i.customAmount]);(0,n.useEffect)((()=>{l&&_e(l)}),[l]),(0,n.useEffect)((()=>{if(Ne!==G&&(K(Ne),Ne)){X(!0),$&&clearTimeout($);const e=setTimeout((()=>{const e=document.querySelector(".red-envelope-tooltip");e?(e.classList.add("closing"),setTimeout((()=>{X(!1),e.classList.remove("closing")}),800)):(X(!1),K(null))}),2e3);Y(e)}}),[Ne,G,$]);const Se=(0,o.d4)((e=>e.friends));(0,n.useEffect)((()=>{p(a||"")}),[a]),(0,n.useEffect)((()=>{var e;const t=null===(e=O.current)||void 0===e?void 0:e.getEditor();if(t){const e=t.getText();let s=e.trim().length;if(s>pe){const a=e.substring(0,8001);t.setText(a),s=pe,t.setSelection(ce.current)}ue(s)}}),[m]),(0,n.useEffect)((()=>{var e;const t=null===(e=O.current)||void 0===e?void 0:e.getEditor();if(t){t.on("selection-change",(e=>{e&&(ce.current=e.index)})),t.root.addEventListener("blur",(()=>{const e=t.getSelection();e&&(ce.current=e.index)}));const e=async e=>{const s=e.clipboardData||window.clipboardData,a=(null===s||void 0===s?void 0:s.items)||[],n=window.scrollY,o=window.scrollX,i=t.root.closest(".ql-container")||t.root,l=i.scrollTop,c=i.scrollLeft,d=()=>{window.scrollTo(o,n),i.scrollTop=l,i.scrollLeft=c};let m=null;const u=t.getSelection();m=u?u.index:null!==ce.current&&void 0!==ce.current?ce.current:t.getLength();const p=[];for(let t=0;t<a.length;t++){const e=a[t];if("file"===e.kind&&e.type&&-1!==e.type.indexOf("image")){const t=e.getAsFile();t&&p.push(t)}}if(p.length>0){e.preventDefault();let s=m;for(let e=0;e<p.length;e++){const a=p[e],{file:n,tooLarge:o,isWebp:i}=await(0,b.w)(a);if(o){r.Ay.error("\u56fe\u7247\u8fc7\u5927\uff0c\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u4e0a\u4f20\u5c0f\u4e8e10MB\u7684\u56fe\u7247");continue}if(i){r.Ay.error("\u6682\u4e0d\u652f\u6301\u4e0a\u4f20webp");continue}const l=new FormData;l.append("attachment",n),l.append("id","WU_FILE_".concat(Date.now(),"_").concat(e)),l.append("name",n.name),l.append("type",n.type),l.append("sid",(0,y.R)("sid"));try{const e=await fetch("https://clubv2.kdslife.com/index.php?c=attachment/attachment&m=upload_attachment&fid=15&anonymous=0",{method:"POST",body:l}),a=await e.json();"SUCCESS"===a.state&&a.url?(t.insertEmbed(s,"image",a.url),s+=1):r.Ay.error("\u56fe\u7247\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5")}catch(v){r.Ay.error("\u56fe\u7247\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5")}}const a=Element.prototype.scrollIntoView;try{Element.prototype.scrollIntoView=function(){},t.setSelection(s,0,"api")}finally{Element.prototype.scrollIntoView=a}return d(),void requestAnimationFrame((()=>{d(),setTimeout((()=>d()),100)}))}const g=null===s||void 0===s?void 0:s.getData("text/html");if(g){e.preventDefault();const a=m,n=(g.replace(/<img[^>]*>/gi,""),s.getData("text/plain")||"");if(0===t.getText().trim().length&&a<=1)t.setText(n),setTimeout((()=>{const e=Element.prototype.scrollIntoView;try{Element.prototype.scrollIntoView=function(){},t.setSelection(n.length,0,"api")}finally{Element.prototype.scrollIntoView=e}}),50),d(),requestAnimationFrame((()=>{d(),setTimeout((()=>d()),100)}));else{u&&u.length>0?setTimeout((()=>{var e;const t=null===(e=O.current)||void 0===e?void 0:e.getEditor();if(!t)return;t.deleteText(u.index,u.length),t.insertText(u.index,n);const s=u.index+n.length,a=Element.prototype.scrollIntoView;try{Element.prototype.scrollIntoView=function(){},t.setSelection(s,0,"api")}finally{Element.prototype.scrollIntoView=a}}),50):setTimeout((()=>{var e;const t=null===(e=O.current)||void 0===e?void 0:e.getEditor();if(!t)return;t.insertText(a,n);const s=a+n.length,o=Element.prototype.scrollIntoView;try{Element.prototype.scrollIntoView=function(){},t.setSelection(s,0,"api")}finally{Element.prototype.scrollIntoView=o}}),50),d(),requestAnimationFrame((()=>{d(),setTimeout((()=>d()),100)}))}}};return t.root.addEventListener("paste",e),()=>{t.root.removeEventListener("paste",e)}}}),[]);const Ae=(0,R.jsxs)("div",{children:[(0,R.jsx)("img",{src:"light"===we?k.A:E.A,alt:"imgIcon",className:"upload-icon"}),(0,R.jsx)("div",{style:{marginTop:8,color:"var(--secondary-text-color)"},children:"\u4e0a\u4f20"})]}),Ce=()=>(0,R.jsx)("span",{className:"ql-formats",children:(0,R.jsx)(u.Ay,{className:"ql-btn",onClick:()=>be(!0),autoInsertSpace:!1,icon:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("img",{width:28,height:28,src:"light"===we?w.A:S.A,alt:"imgIcon",className:"upload-icon"}),(0,R.jsx)("span",{className:"text",children:"\u56fe\u7247"})]})})}),ke=(e,t)=>
1{const s=O.current.getEditor(),a=s.getSelection()||{index:ce.current},n="newEmoji"===e?"https://jscss.kdslife.com/pc/PCemoji/".concat(String(t).padStart(2,"0"),"_40.gif"):"https://jscss.kdslife.com/club/html/images/icon/".concat(e,"/").concat(V.tabs.find((t=>t.id===e)).prefix).concat(String(t).padStart(2,"0"),".gif");if(s.focus(),s.insertEmbed(a.index,"emoji",n),"newEmoji"===e){const e=s.root.querySelector('img[src="'.concat(n,'"]'));e&&(e.width=32,e.height=32)}s.setSelection(a.index+1),de(!1)},Ee=e=>{let{src:t,onClick:s}=e;return(0,R.jsx)("div",{style:{padding:"5px"},onClick:s,children:(0,R.jsx)("img",{src:t,alt:"emoji",style:{width:"50px",height:"50px",objectFit:"contain"}})})},Ie=()=>(0,R.jsx)("div",{style:{width:"400px",paddingBottom:"12px"},children:(0,R.jsx)(v.A,{defaultActiveKey:"newEmoji",children:V.tabs.map((e=>(0,R.jsx)(v.A.TabPane,{tab:"jingdian"===e.id?"\u7ecf\u5178\u539f\u5473":"\u5168\u65b0\u8868\u60c5",children:(0,R.jsx)("div",{className:"ql-emoji-picker",style:{display:"grid",gridTemplateColumns:"newEmoji"===e.id?"repeat(6, 1fr)":"repeat(11, 1fr)",gap:"5px",placeItems:"center",height:"250px",overflowY:"auto"},children:Array.from({length:e.count},((t,s)=>{const a="newEmoji"===e.id?"https://jscss.kdslife.com/pc/PCemoji/".concat(String(s+1).padStart(2,"0"),".gif"):"https://jscss.kdslife.com/club/html/images/icon/".concat(e.id,"/").concat(e.prefix).concat(String(s+1).padStart(2,"0"),".gif");return(0,R.jsx)(h.A,{content:(0,R.jsx)(Ee,{src:a,onClick:()=>ke(e.id,s+1)}),placement:"top",children:(0,R.jsx)("img",{src:a,className:"ql-emoji",alt:"",style:{width:"newEmoji"===e.id?"40px":"20px",height:"newEmoji"===e.id?"40px":"20px",cursor:"pointer",objectFit:"contain"},onClick:()=>ke(e.id,s+1)})},s)}))})},e.id)))})}),Te=()=>{const[e,t]=(0,n.useState)(""),[s,a]=(0,n.useState)(Se);return(0,R.jsx)(x.A,{open:U,footer:null,maskClosable:!1,onCancel:()=>{z(!1),t(""),a(Se)},width:433,height:226,centered:!0,destroyOnClose:!1,children:(0,R.jsxs)("div",{className:"at-modal-content",children:[(0,R.jsx)("div",{className:"at-tips",children:"\u641c\u7d22\u4f60\u60f3\u8981@\u7684\u597d\u53cb"}),(0,R.jsx)(d.A.Search,{placeholder:"\u641c\u7d22\u597d\u53cb",value:e,onChange:e=>t(e.target.value),onSearch:e=>{const t=Se.filter((t=>t.nick_name.toLowerCase().includes(e.toLowerCase())||t.user_name.toString().includes(e)));a(t)},style:{marginBottom:16},allowClear:!0,className:"at-search-input"}),(0,R.jsxs)("div",{className:"at-friends-list",children:[s.map((e=>(0,R.jsxs)("div",{className:"at-friend-item",onClick:()=>{return s=e.user_id,qe(s),t(""),void a(Se);var s},children:[e.nick_name,"[",e.user_name,"]"]},e.user_id))),0===s.length&&(0,R.jsx)("div",{className:"at-no-result",children:"\u6682\u65e0\u641c\u7d22\u7ed3\u679c"})]})]})})},qe=e=>{const t=Se.find((t=>t.user_id===e));if(!t)return;const s=O.current.getEditor();if(null!==ie)s.deleteText(ie,1),s.insertText(ie,"@".concat(t.nick_name),"link","/new/personalSet?_i=".concat(t.user_id)),s.setSelection(ie+t.nick_name.length+1);else{const e=ce.current;s.insertText(e,"@".concat(t.nick_name),"link","/new/personalSet?_i=".concat(t.user_id)),s.setSelection(e+t.nick_name.length+1,0)}z(!1),le(null)},Le=()=>{const e=O.current.getEditor(),t=ce.current;e.focus(),e.setSelection(t,0),le(null),z(!0)};function Pe(e){return null===e||void 0===e?"":e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const Be=()=>{J(!0),X(!1)},Fe=()=>{const{RiveComponent:e}=(0,j.useRive)({src:q,stateMachines:"loop",layout:new j.Layout({fit:j.Fit.Contain,alignment:j.Alignment.Center}),autoplay:!0});return(0,R.jsx)(e,{})},De=()=>{const[e,a]=(0,n.useState)((null===G||void 0===G?void 0:G.envelopeType)||"grab"),[o,i]=(0,n.useState)((null===G||void 0===G?void 0:G.selectAmount)||20),[l,c]=(0,n.useState)((null===G||void 0===G?void 0:G.totalAmount)||20),[u,p]=(0,n.useState)((null===G||void 0===G?void 0:G.envelopeCount)||2),[g,v]=(0,n.useState)((null===G||void 0===G?void 0:G.isCustomAmount)||!1),[h,f]=(0,n.useState)((null===G||void 0===G?void 0:G.customAmount)||""),[j,y]=(0,n.useState)(!1),b=e=>{let t=e.target.value.replace(/[^\d]/g,"");t=t.replace(/^0+/,""),t&&!/^\d+$/.test(t)||(t=Number(t),f(t))},w=t=>{let s=t.target.value.replace(/[^\d]/g,"");if(s=s.replace(/^0+/,""),s&&!/^\d+$/.test(s))return;let a=0;if("grab"===e)if(a=Number(s)||u,a<u){const e=u;f(e),i(e),c(e),r.Ay.warning("\u6843\u5b50\u603b\u6570\u4e0d\u80fd\u5c0f\u4e8e\u7ea2\u5305\u6570\u91cf")}else f(a),i(a),c(a);else{a=Number(s)||1;const e=a<1?1:a;f(e),i(e),c(e*u)}},_=t=>{e!==t&&(a(t),p(2),f(""),v(!1),"equal"===t?(i(1),c(2)):(i(20),c(20)))};return(0,R.jsx)(x.A,{open:H,footer:null,maskClosable:!1,onCancel:()=>{J(!1)},width:433,centered:!0,closeIcon:(0,R.jsx)("img",{src:T.A,alt:"close"}),children:(0,R.jsxs)("div",{className:"red-envelope-modal-content",children:[(0,R.jsx)("span",{className:"modal-title sys-regular-font",children:"\u53d1\u7ea2\u5305"}),(0,R.jsxs)("div",{className:"red-envelope-content",children:[(0,R.jsx)("div",{className:"red-envelope-icon",children:(0,R.jsx)(Fe,{})}),(0,R.jsxs)("div",{className:"red-envelope-type",children:[(0,R.jsx)("div",{className:"label sys-min-font",children:"\u7ea2\u5305\u7c7b\u578b\uff1a"}),(0,R.jsxs)("div",{className:"options",children:[(0,R.jsx)("div",{className:"sys-regular-font option ".concat("grab"===e?"active":""),onClick:()=>_("grab"),children:"\u62fc\u624b\u6c14\u7ea2\u5305"}),(0,R.jsx)("div",{className:"sys-regular-font option ".concat("equal"===e?"active":""),onClick:()=>_("equal"),children:"\u7b49\u989d\u7ea2\u5305"})]})]}),"grab"===e&&(0,R.jsxs)("div",{className:"red-envelope-amount",children:[(0,R.jsx)("div",{className:"label sys-min-font",children:"\u53d1\u51fa\u6843\u5b50\u603b\u91cf\uff1a"}),(0,R.jsxs)("div",{className:"amount-options",children:[se.map((e=>(0,R.jsxs)("div",{className:"amount-option ".concat(g||o!==e?"":"active"),onClick:()=>{i(e),c(e),v(!1),f("")},children:[(0,R.jsx)("img",{src:I,alt:"peach"})," ",e]},e))),(0,R.jsx)("div",{className:"amount-option ".concat(g?"active":""),onClick:()=>{v(!0)},children:(0,R.jsx)("input",{className:"input-new",value:h,placeholder:"\u81ea\u5b9a\u4e49",onCh
1ange:b,onBlur:w})})]})]}),"equal"===e&&(0,R.jsxs)("div",{className:"red-envelope-amount",children:[(0,R.jsx)("div",{className:"label sys-min-font",children:"\u6bcf\u4e2a\u4eba\u80fd\u5f97\u5230\u7684\u6843\u5b50\uff1a"}),(0,R.jsxs)("div",{className:"amount-options",children:[ae.map((e=>(0,R.jsxs)("div",{className:"amount-option ".concat(g||o!==e?"":"active"),onClick:()=>{i(e),c(e*u),v(!1),f("")},children:[(0,R.jsx)("img",{src:I,alt:"peach"})," ",e]},e))),(0,R.jsx)("div",{className:"amount-option ".concat(g?"active":""),onClick:()=>{v(!0)},children:(0,R.jsx)("input",{className:"input-new",value:h,placeholder:"\u81ea\u5b9a\u4e49",onChange:b,onBlur:w})})]})]}),(0,R.jsxs)("div",{className:"red-envelope-count",children:[(0,R.jsx)("div",{className:"label sys-min-font",children:"\u7ea2\u5305\u6570\u91cf\uff1a"}),(0,R.jsx)("div",{className:"count-input",children:(0,R.jsx)(d.A,{placeholder:"\u8bf7\u8f93\u5165\u7ea2\u5305\u6570\u91cf",value:u,onChange:t=>{const s=t.target.value.replace(/[^\d]/g,"");if(""===s)return void p("");let a=Number(s);if(a>1e5&&(a=1e5),p(a),"equal"===e&&c(o*a),"grab"===e&&l<a){const e=a;c(e),i(e),se.includes(e)?(v(!1),f("")):(v(!0),f(e))}},onBlur:()=>{if(""===u||Number(u)<2){const t=2;p(t),r.Ay.warning("\u7ea2\u5305\u6570\u91cf\u6700\u5c11\u4e3a2\u4e2a"),"equal"===e?c(o*t):"grab"===e&&l<t&&(c(t),i(t),se.includes(t)?(v(!1),f("")):(v(!0),f(t)))}}})})]}),(0,R.jsxs)("div",{className:"red-envelope-balance",children:[(0,R.jsx)("div",{className:"label sys-min-font",children:"\u6843\u5b50\u4f59\u989d:"}),(0,R.jsx)("div",{className:"balance sys-regular-font",children:Pe((null===t||void 0===t?void 0:t.peach)||0)}),(0,R.jsx)("div",{className:"blue sys-min-font",onClick:()=>{oe(!0),J(!1)},children:"\u5145\u503c"})]}),(0,R.jsx)("div",{className:"red-count sys-min-font",children:j?(0,R.jsx)("span",{style:{color:"var(--red-color)"},children:"\u5355\u6b21\u7ea2\u5305\u6700\u591a\u53ea\u80fd\u53d1100,000\u4e2a\u6843\u5b50"}):(0,R.jsxs)(R.Fragment,{children:["\u652f\u4ed8\u6843\u5b50\u603b\u989d: ",Pe(l)]})}),(0,R.jsx)("div",{className:"red-envelope-confirm sys-regular-bold-font",onClick:()=>{if(l>1e5)return y(!0),void setTimeout((()=>{y(!1)}),2e3);if((null===t||void 0===t?void 0:t.peach)<l)return void r.Ay.warning("\u60a8\u7684\u6843\u5b50\u4f59\u989d\u4e0d\u8db3");if("grab"===e&&o<u)return void r.Ay.warning("\u6843\u5b50\u603b\u6570\u4e0d\u80fd\u5c0f\u4e8e\u7ea2\u5305\u6570\u91cf");const a={envelopeType:e,selectAmount:o,totalAmount:l,envelopeCount:u,isCustomAmount:g,customAmount:h};K(a),J(!1),s&&s(m,a)},children:"\u786e\u5b9a"}),(0,R.jsx)("div",{className:"red-envelope-agreement sys-min-font",children:(0,R.jsx)("a",{href:"https://club.kdslife.com/new/terms/redenvelope.html",target:"_blank",rel:"noopener noreferrer",children:"\u300a\u7ea2\u5305\u5e16\u7528\u6237\u534f\u8bae\u300b"})})]})]})})},Re=()=>(0,R.jsxs)("span",{className:"ql-formats",style:{position:"relative"},children:[(0,R.jsx)(u.Ay,{className:"ql-btn",onClick:Be,autoInsertSpace:!1,onMouseEnter:()=>{$&&(clearTimeout($),Y(null)),G&&X(!0)},onMouseLeave:()=>{$&&clearTimeout($);const e=setTimeout((()=>{const e=document.querySelector(".red-envelope-tooltip");e?(e.classList.add("closing"),setTimeout((()=>{X(!1),Q(!1),e.classList.remove("closing")}),800)):(X(!1),Q(!1),K(null))}),2e3);Y(e)},icon:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("img",{width:28,height:28,src:L,alt:"\u7ea2\u5305",className:"red-icon"})," ",(0,R.jsx)("span",{className:"text",children:"\u7ea2\u5305"})]})}),W&&G&&(0,R.jsxs)("div",{className:"red-envelope-tooltip",onMouseEnter:()=>{$&&(clearTimeout($),Y(null)),Q(!0)},onMouseLeave:()=>{$&&clearTimeout($),Q(!1);const e=setTimeout((()=>{const e=document.querySelector(".red-envelope-tooltip");e?(e.classList.add("closing"),setTimeout((()=>{X(!1),Q(!1),e.classList.remove("closing")}),800)):(X(!1),Q(!1),K(null))}),2e3);Y(e)},children:[(0,R.jsx)("div",{className:"tooltip-content",children:(0,R.jsx)("img",{src:B,alt:"\u7ea2\u5305"})}),Z&&(0,R.jsxs)("div",{className:"tooltip-overlay",onClick:()=>{X(!1),Q(!1),te(!0)},children:[(0,R.jsx)("img",{src:P,alt:"\u5220\u9664\u7ea2\u5305"}),(0,R.jsx)("div",{className:"sys-regular-font",children:"\u5220\u9664\u7ea2\u5305"})]})]})]}),Oe=()=>(0,R.jsx)("span",{className:"ql-formats",children:(0,R.jsx)(u.Ay,{className:"ql-btn",onClick:Le,autoInsertSpace:!1,icon:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("img",{width:28,height:28,src:"light"===we?_.A:A.A,alt:"@",className:"at-icon"})," ",(0,R.jsx)("span",{className:"text",children:"\u597d\u53cb"})]})})}),Ue=()=>(0,R.jsx)("span",{className:"ql-formats",children:(0,R.jsx)(h.A,{content:(0,R.jsx)(Ie,{}),trigger:"click",open:re,onOpenChange:de,placement:"bottom",children:(0,R.jsx)(u.Ay,{className:"ql-emoji-btn",autoInsertSpace:!1,icon:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("img",{width:28,height:28,src:"light"===we?N.A:C.A,alt:"@",className:"emoji-icon"})," ",(0,R.jsx)("span",{className:"text",children:"\u8868\u60c5\u5305"})]})})})});return(0,R.jsxs)("div",{className:"rich-editor-container",children:[(0,R.jsx)("div",{className:"editor-wrapper",children:(0,R.jsx)(g(),{ref:O,value:m,onChange:e=>{p(e),s&&s(e)},modules:{toolbar:{container:"#toolbar"}},formats:M,theme:"snow",onKeyDown:e=>{if("@"===e.key){e.preventDefault();const t=O.current.getEditor(),s=t.getSelection();s&&(le(s.index),t.insertText(s.index,"@"),t.setSelection(s.index+1)),z(!0)}},placeholder:"\u5f00\u59cb\u5206\u4eab\u4f60\u7684\u6545\u4e8b..."})}),(0,R.jsxs)("div",{className:"quill-toolbar",children:[(0,R.jsxs)("div",{id:"toolbar",children:[(0,R.jsx)(Re,{}),(0,R.jsx)(Ce,{}),(0,R.jsx)(Oe,{}),(0,R.jsx)(Ue,{})]}),(0,R.jsxs)("div",{className:"text-count",style:{color:8e3===me?"var(--red-color)":""},children:[me,"/",pe]})]}),(0,R.jsx)(x.A,{open:ye,title:"\u4e0a\u4f20\u56fe\u7247",okText:"\u786e\u8ba4\u4e0a\u4f20",cancelText:"\u53d6\u6d88",closable:!1,maskClosable:!1,onOk:()=>{const e=O.current.getEditor(),t=e.getSelection()||{index:ce.current};fe.forEach((s=>{"done"===s.status&&s.response&&"SUCCESS"===s.response.state&&s.response.url?(e.insertEmbed(t.index,"image",s.response.url),e.setSelection(t.index+1)):r.Ay.error("\u56fe\u7247\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5")})),je([]),be(!1)},onCancel:()=>{be(!1),je([])},className:"upload-modal",centered:!0,okButtonProps:{style:{backgroundColor:"var(--btn-theme-color)",color:"var(--btn-white-color)",fontSize:"13px",padding:"8px 30px",gap:"4px",borderRadius:"2px",border:"none",cursor:"pointer"}},children:(0,R.jsx)(f.A,{accept:"image/jpg, image/jpeg, image/png, image/gif",action:"https://clubv2.kdslife.com/index.php?c=attachment/attachment&m=upload_attachment&fid=15&anonymous=0",name:"attachment",headers:{"X-Requested-With":null},data:e=>({id:"WU_FILE_0",name:e.name,type:e.type,sid:(0,y.R)("sid")}),beforeUpload:async e=>{if(e.type.startsWith("video/"))return r.Ay.error("\u8bf7\u524d\u5f80APP\u53d1\u5e03\u89c6\u9891\u5e16"),f.A.LIST_IGNORE;const{file:t,tooLarge:s}=await(0,b.w)(e);return s?(r.Ay.error("\u56fe\u7247\u8fc7\u5927\uff0c\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u4e0a\u4f20\u5c0f\u4e8e10MB\u7684\u56fe\u7247"),f.A.LIST_IGNORE):t},listType:"picture-card",fileList:fe,onPreview:async e=>{e.url||e.preview||(e.preview=await(e=>new Promise(((t,s)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>s(e)})))(e.originFileObj)),xe(e.url||e.preview),ve(!0)},onChange:e=>{let{fileList:t}=e;je(t)},multiple:!0,maxCount:9,children:fe.length>=9?null:Ae})}
1),(0,R.jsx)(x.A,{open:ge,footer:null,onCancel:()=>ve(!1),children:(0,R.jsx)("img",{alt:"preview",style:{width:"100%"},src:he})}),(0,R.jsx)(Te,{}),(0,R.jsx)(De,{}),(0,R.jsx)(F.A,{userInfo:t,visible:ne,title:"\u5145\u503c\u6843\u5b50",onClose:()=>{oe(!1),c&&"function"===typeof c&&c()},width:680}),(0,R.jsx)(D.A,{visible:ee,onClose:()=>te(!1),onConfirm:()=>{K(null),te(!1),s&&s(m,null)},width:320,confirmText:"\u786e\u8ba4\u5220\u9664",cancelText:"\u53d6\u6d88",title:"\u662f\u5426\u5220\u9664\u7ea2\u5305",message:"\u5220\u9664\u7ea2\u5305\u540e\uff0c\u5f53\u524d\u914d\u7f6e\u4e0d\u4f1a\u4fdd\u7559"})]})};var H=s(71558),J=s(30505),G=s(17752),K=s(72872),W=s(17688);const X=function(){const{theme:e,toggleTheme:t}=(0,n.useContext)(J.Dx),[p,g]=r.Ay.useMessage(),v=(0,n.useRef)([]),[h]=(0,l.ok)(),x=(0,n.useRef)(h.get("tid")),f=(0,n.useRef)(""),{TextArea:j}=d.A,[y,b]=(0,n.useState)(""),[w,_]=(0,n.useState)("0"),[N,S]=(0,n.useState)("immediate"),[A,C]=(0,n.useState)(null),[k,E]=(0,n.useState)(""),[I,T]=(0,n.useState)(null),[q,L]=(0,n.useState)(!1),[P,B]=(0,n.useState)(!1),[F,O]=(0,n.useState)(!1),[U,M]=(0,n.useState)(!1),[V,X]=(0,n.useState)(!1),[$,Y]=(0,n.use
1State)(!1),Z=(0,o.wA)(),[Q,ee]=(0,n.useState)(!1),[te,se]=(0,n.useState)(""),[ae,ne]=(0,n.useState)(1);(0,n.useEffect)((()=>{(0,K.ht)({ad_id:41}).then((e=>{v.current=e.data.data})),(0,G.Fs)({tid:x.current}).then((e=>{if(200===e.data.status){var t,s,a,n;b(null===(t=e.data.data)||void 0===t||null===(s=t.thread_info)||void 0===s?void 0:s.subject),E(null===(a=e.data.data)||void 0===a||null===(n=a.detail)||void 0===n?void 0:n.message)}else{const e=localStorage.getItem("title"),t=localStorage.getItem("content");(e||t)&&oe()}}))}),[]),(0,n.useEffect)((()=>{const e=e=>{(e.ctrlKey||e.metaKey)&&"Enter"===e.key&&ce()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y,k,I]),(0,n.useEffect)((()=>{(0,G.Fm)({}).then((e=>{Z((0,c.m)(e.data.data.friend_list))})),(0,G.e6)({}).then((e=>{C(e.data.data),localStorage.setItem("userInfo",JSON.stringify(e.data.data))}))}),[Z]);const oe=()=>{L(!0);const e=localStorage.getItem("title"),t=localStorage.getItem("ueditor_preference"),s=localStorage.getItem("redEnvelope");if(s)try{const e=JSON.parse(s);T(e)}catch(a){console.error("Failed to parse red envelope data:",a)}if(e&&b(e),t)try{const e=JSON.parse(t);E(e["https_club_kdslife_com_index_phpthread_message-drafts-data"])}catch(a){console.error("Failed to parse draft content:",a)}},ie=()=>{localStorage.removeItem("title"),localStorage.removeItem("ueditor_preference"),localStorage.removeItem("redEnvelope")},le=()=>{y.trim()&&k.trim()?(localStorage.setItem("title",y),localStorage.setItem("ueditor_preference",JSON.stringify({"https_club_kdslife_com_index_phpthread_message-drafts-data":k})),I?localStorage.setItem("redEnvelope",JSON.stringify(I)):localStorage.removeItem("redEnvelope"),O(!0)):r.Ay.error("\u6807\u9898\u548c\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a"),M(!1)},ce=()=>{const{msg:e,images:t}=(0,i.processHtml)(k);if(y.trim().length<=0)p.open({type:"warning",content:"\u8bf7\u8f93\u5165\u6807\u9898"});else if(k.trim().length<=0)p.open({type:"warning",content:"\u8bf7\u8f93\u5165\u5185\u5bb9"});else if(B(!0),x.current&&!q)(0,G.il)({tid:x.current,subject:y,message:k,msg:e,images:t}).then((e=>{var t,s,a,n;0===(null===(t=e.data)||void 0===t?void 0:t.status)?(f.current=null===(s=e.data)||void 0===s?void 0:s.msg,Y(!0)):(ie(),X(!0),x.current=null===(a=e.data)||void 0===a||null===(n=a.data)||void 0===n?void 0:n.tid);B(!1)})).catch((()=>{B(!1),p.open({type:"error",content:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"})}));else{let s={};I&&("equal"===I.envelopeType&&(s.red_envelop_each=I.selectAmount),s.special="5",s.red_envelop_type="grab"===I.envelopeType?"1":"2",s.total_num=I.envelopeCount,s.red_envelop_sum=I.totalAmount),(0,G.PZ)((0,a.A)({fid:"15",special:"0",tag_id:"0",subject:y,message:k,msg:e,is_anonymous:w,images:t},s)).then((e=>{var t,s,a,n,o,i,l,c,d,m,u,p,g,v,h,f,j,y,b;if(B(!1),200===(null===(t=e.data)||void 0===t?void 0:t.status)){if(ie(),X(!0),x.current=null===(s=e.data)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.tid,null!==(n=e.data)&&void 0!==n&&null!==(o=n.data)&&void 0!==o&&o.pp_reward)if(1===(null===(i=e.data)||void 0===i||null===(l=i.data)||void 0===l||null===(c=l.pp_reward)||void 0===c?void 0:c.type))r.Ay.success("\u65b0\u4eba\u4efb\u52a1\u5df2\u5b8c\u6210\uff0c\u83b7\u5f97".concat(null===(p=e.data)||void 0===p||null===(g=p.data)||void 0===g||null===(v=g.pp_reward)||void 0===v?void 0:v.reward,"PP"));else if(2===(null===(d=e.data)||void 0===d||null===(m=d.data)||void 0===m||null===(u=m.pp_reward)||void 0===u?void 0:u.type)){var w,_,N;r.Ay.success("\u6bcf\u65e5\u4efb\u52a1\u5df2\u5b8c\u6210\uff0c\u83b7\u5f97".concat(null===(w=e.data)||void 0===w||null===(_=w.data)||void 0===_||null===(N=_.pp_reward)||void 0===N?void 0:N.reward,"PP"))}}else 403===e.data.status?(ee(!0),se(null===(h=e.data)||void 0===h||null===(f=h.data)||void 0===f?void 0:f.end_time),ne(null===(j=e.data)||void 0===j||null===(y=j.data)||void 0===y?void 0:y.is_admin)):r.Ay.warning(null===(b=e.data)||void 0===b?void 0:b.msg)})).catch((()=>{B(!1),p.open({type:"error",content:"\u63d0\u4ea4\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"})}))}};function re(e){return e.keys().reduce(((t,s)=>(0,a.A)((0,a.A)({},t),{},{[s.split("/").pop()]:e(s)})),{})}const de=re(s(79458)),me=(re(s(19389)),re(s(9632)));return(0,R.jsxs)("div",{className:"new-post",children:[g,(0,R.jsx)("div",{className:"new-details-tab",style:{zIndex:999},children:(0,R.jsx)(H.A,{canScroll:!1,transparent:!1,isMy:!1,userInfo:A,bannerList:v.current,placeholder:"",onShowCompactChange:!0})}),(0,R.jsx)("div",{className:"new-post-inner",children:(0,R.jsxs)("div",{className:"new-post-content",children:[(0,R.jsxs)("div",{className:"rich-text-title sys-article-title",children:[(0,R.jsx)(j,{value:y,onChange:e=>{const t=e.target.value.replace(/[\r\n]+/g,"");b(t)},onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},"word-count":!0,onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text").replace(/[\r\n]+/g,""),s=e.target.selectionStart,a=y.slice(0,s)+t+y.slice(e.target.selectionEnd);b(a.slice(0,50))},placeholder:"\u8bf7\u8f93\u5165\u5e16\u5b50\u6807\u9898\uff0850\u4e2a\u5b57\u4ee5\u4e0b\uff09",maxLength:50,autoSize:{minRows:1,maxRows:2},className:"title-textarea sys-article-title"}),y.length>40&&(0,R.jsxs)("div",{className:"word-count sys-regular-font",style:{color:y.length>=50?"var(--red-color)":""},children:[y.length,"/50"]})]}),(0,R.jsx)("div",{className:"rich-text-content sys-editor-body",children:(0,R.jsx)(z,{userInfo:A,currentTheme:e,value:k,redEnvelope:I,onUserInfoUpdate:()=>{(0,G.e6)({}).then((e=>{var t,s;e.data&&"\u767b\u5f55\u540e\u6709\u503c"!==(null===(t=e.data)||void 0===t?void 0:t.msg)&&C(null===(s=e.data)||void 0===s?void 0:s.data)}))},onChange:(e,t)=>
1{E("<p><br></p>"===e?"":e),void 0!==t&&T(t)}})}),(0,R.jsxs)("div",{className:"rich-text-tags sys-post-title",children:[(0,R.jsx)("div",{className:"rich-text-tags-info",children:"\u53d1\u5e03\u8bbe\u7f6e"}),(0,R.jsxs)(m.Ay.Group,{onChange:e=>_(e.target.value),value:w,children:[(0,R.jsx)(m.Ay,{value:"0",className:"sys-regular-font",children:"\u516c\u5f00\uff08\u6240\u6709\u4eba\u53ef\u89c1\uff09"}),A&&A.PP>10&&(0,R.jsx)(m.Ay,{value:"1",className:"sys-regular-font",children:"\u533f\u540d\u53d1\u5e03"})]}),(0,R.jsx)(m.Ay.Group,{onChange:e=>S(e.target.value),value:N,style:{marginTop:10}})]}),(0,R.jsxs)("div",{className:"new-post-content-btns",children:[(0,R.jsx)(u.Ay,{className:"save sys-regular-font",onClick:()=>{localStorage.getItem("title")&&localStorage.getItem("ueditor_preference")?M(!0):le()},children:"\u4fdd \u5b58"}),(0,R.jsx)(u.Ay,{type:"primary",className:"submit",onClick:ce,loading:P,children:"\u53d1 \u5e03"})]})]})}),(0,R.jsx)(D.A,{visible:V,onClose:()=>X(!1),imageUrl:de["sent_ok.svg"],title:"\u5df2\u6210\u529f\u63d0\u4ea4\u5ba1\u6838!",showConfirmButton:!1,showCancelButton:!1,showCountdownButton:!0,countdownSeconds:5,countdownText:"\u8df3\u8f6c\u5230\u9884\u89c8\u9875\u9762",onCountdownComplete:()=>{X(!1),window.location.href="/new/thread/detail?tid=".concat(x.current)}}),(0,R.jsx)(D.A,{visible:$,onClose:()=>Y(!1),title:f.current,showConfirmButton:!1,showCancelButton:!1,showCountdownButton:!0,countdownSeconds:5,onCountdownComplete:()=>{Y(!1),window.location.href="/new/thread/detail?tid=".concat(x.current)},countdownText:"\u8df3\u8f6c\u5230\u5e16\u5b50\u9875\u9762"}),(0,R.jsx)(D.A,{visible:F,onClose:()=>O(!1),showConfirmButton:!1,showCancelButton:!1,countdownSeconds:1,onCountdownComplete:()=>{O(!1)},title:"\u4fdd\u5b58\u6210\u529f"}),(0,R.jsx)(D.A,{visible:U,onClose:()=>M(!1),onConfirm:le,confirmText:"\u4fdd\u5b58",confirmButtonType:"warning",title:"\u4fdd\u5b58\u5c06\u8986\u76d6\u4e4b\u524d\u7684\u5185\u5bb9",message:"\u4fdd\u5b58\u5c06\u8986\u76d6\u4e4b\u524d\u7684\u5185\u5bb9\uff0c\u4e14\u65e0\u6cd5\u6062\u590d\uff0c\u662f\u5426\u4fdd\u5b58\uff1f"}),(0,R.jsx)(D.A,{visible:Q,onConfirm:()=>{1===ae?window.open("/new/download","_blank"):ee(!1)},imageUrl:me["locked.svg"],showCancelButton:1===ae,confirmText:1===ae?"\u4e0b\u8f7dAPP\u53c2\u4e0e\u5b66\u4e60":"\u597d\u7684",onClose:()=>ee(!1),title:"\u8d26\u6237\u53d7\u9650\u901a\u77e5",width:320,message:'<p>\u60a8\u7684\u53d1\u8a00\u6743\u9650\u56e0\u53d1\u8868\u4e0d\u5f53\u8a00\u8bba\u88ab\u6682\u65f6\u9650\u5236\uff0c\u89e3\u7981\u65f6\u95f4\u4e3a<span style="color: #54B577"> [ '.concat((0,W.t)(te)," ]</span></p>\n ").concat(1===ae?"<p>\u60a8\u4e5f\u53ef\u4ee5\u53c2\u52a0\u793e\u533a\u884c\u4e3a\u89c4\u8303\u7684\u5b66\u4e60\u4e0e\u8003\u8bd5\uff0c\u901a\u8fc7\u5373\u53ef\u89e3\u9664\u9650\u5236</p>":""," ")})]})}},61308:e=>{e.exports={processHtml:function(e){if(!e)return{msg:"",images:[],pureText:"",richPureText:"",newHtml:"",noImgHtml:"",onlyImages:[]};const t=/<img[^>]+src\s*=\s*['"]([^'"]+)['"][^>]*>/gi;let s=[],a=e.match(t);a&&a.forEach((e=>{const t=e.includes('class="ql-emoji"'),a=e.match(/src\s*=\s*['"]([^'"]+)['"]/i);a&&s.push({url:a[1],isEmoji:t})}));let n=e;n=n.replace(/(<a[^>]*>)?(<img[^>]+src\s*=\s*['"]([^'"]+)['"][^>]*>)(<\/a>)?/gi,((e,t,a,n,o)=>{if(t){const e=n.includes("https://jscss.kdslife.com"),t=s.findIndex((e=>e.url===n));return e?"{{emoji_".concat(t,"}}"):"{{img_".concat(t,"}}")}return e})),n=n.replace(t,((e,t)=>{const a=t.includes("https://jscss.kdslife.com"),n=s.findIndex((e=>e.url===t));return a?"{{emoji_".concat(n,"}}"):"{{img_".concat(n,"}}")})),n=n.replace(/<a[^>]+href="([^">]+)"[^>]*>(.*?)<\/a>/g,((e,t,s)=>{const a=/https?:\/\/my\.kdslife\.com\/home_(\d+)\.html/.exec(t);return a?"{{at_".concat(a[1],"_").concat(s,"}}"):"{{A_S_".concat(t,"}}").concat(s,"{{A_E}}")})),n=n.replace(/<iframe[^>]*is_video\s*=\s*["']true["'][^>]*src\s*=\s*["']([^"']+)["'][^>]*><\/iframe>/gi,((e,t)=>"{{iframe_".concat(t,"}}"))),n=n.replace(/<p[^>]*>/g,"{{P_S}}").replace(/<\/p>/g,"{{P_E}}"),n=n.replace(/<\/?[^>]+(>|$)/g,"");let o=n;o=o.replace(/\{\{at_(\d+)_([^}]+)\}\}/g,((e,t,s)=>" ".concat(s," "))),o=o.replace(/\{\{A_S_([^}]+)\}\}(.*?)\{\{A_E\}\}/g,((e,t,s)=>" ".concat(s," "))),o=o.replace(/\{\{(emoji|img)_\d+[^}]*\}?\}?/g,((e,t,s)=>"")),o=o.replace(/\{\{iframe_([^}]+)\}\}/g,((e,t,s)=>"")),o=o.replace(/&/g,"&"),o=o.replace(/ /g," "),o=o.replace(/{{P_S}}/g,"").replace(/{{P_E}}/g,"");let i=n;i=i.replace(/\{\{at_(\d+)_([^}]+)\}\}/g,((e,t,s)=>" ".concat(s," "))),i=i.replace(/\{\{A_S_([^}]+)\}\}(.*?)\{\{A_E\}\}/g,((e,t,s)=>" [\u94fe\u63a5:".concat(s,"] "))),i=i.replace(/\{\{(emoji|img)_\d+[^}]*\}?\}?/g,((e,t)=>
1"emoji"===t?"[emoji]":"img"===t?"[\u56fe\u7247]":e)),i=i.replace(/\{\{iframe_([^}]+)\}\}/g,((e,t,s)=>"[\u89c6\u9891]")),i=i.replace(/&/g,"&"),i=i.replace(/ /g," "),i=i.replace(/{{P_S}}/g,"").replace(/{{P_E}}/g,"");const l=s.map((e=>e.url));let c=n;c=c.replace(/&/g,"&"),c=c.replace(/\{\{at_(\d+)_([^}]+)\}\}/g,((e,t,s)=>'<a href="/new/personalSet?_i='.concat(t,'">').concat(s,"</a>"))),c=c.replace(/\{\{A_S_([^}]+)\}\}(.*?)\{\{A_E\}\}/g,((e,t,s)=>'<a href="'.concat(t,'">').concat(s,"</a>"))),c=c.replace(/\{\{(emoji|img)_(\d+)\}\}/g,((e,t,s)=>{const a=parseInt(s,10);if(a<0||a>=l.length)return e;const n=l[a];return"emoji"===t?'<img class="ql-emoji" src="'.concat(n,'">'):"img"===t?'<p><img class="ql-img" src="'.concat(function(e){return e?e.replace(/watermark,image_d2F0ZXJtYXJrLnBuZw==,g_se,x_0,y_0/g,""):e}(n),'" /></p>'):e})),c=c.replace(/\{\{iframe_([^}]+)\}\}/g,((e,t)=>'<iframe is_video="true" src="'.concat(t,'" frameborder="0" allowfullscreen scrolling="no" style="width: 80%; height: 40vw; margin: 0; padding: 0; border: none;"\n loading="lazy"></iframe>'))),c=c.replace(/(?<!["'=])(https?:\/\/[^\s{<>"']+)/gi,(e=>'<a href="'.concat(e,'" target="_blank">').concat(e,"</a>"))),c=c.replace(/{{P_S}}/g,"<p>").replace(/{{P_E}}/g,"</p>");let r=n;const d=[];return r=r.replace(/&/g,"&"),r=r.replace(/\{\{at_(\d+)_([^}]+)\}\}/g,((e,t,s)=>'<a href="/new/personalSet?_i='.concat(t,'">').concat(s,"</a>"))),r=r.replace(/\{\{A_S_([^}]+)\}\}(.*?)\{\{A_E\}\}/g,((e,t,s)=>'<a href="'.concat(t,'">').concat(s,"</a>"))),r=r.replace(/\{\{(emoji|img)_(\d+)\}\}/g,((e,t,s)=>{const a=parseInt(s,10);if(a<0||a>=l.length)return e;const n=l[a];return"emoji"===t?'<img class="ql-emoji" src="'.concat(n,'">'):"img"===t?(d.push(n),""):e})),r=r.replace(/\{\{iframe_([^}]+)\}\}/g,((e,t)=>'<iframe is_video="true" src="'.concat(t,'" frameborder="0" className=\'iframe\' allowfullscreen scrolling="no" style="width: 80%; height: 40vw; margin: 0; padding: 0; border: none;"\n loading="lazy"></iframe>'))),r=r.replace(/(?<!["'=])(https?:\/\/[^\s{<>"']+)/gi,(e=>'<a href="'.concat(e,'" target="_blank">').concat(e,"</a>"))),r=r.replace(/{{P_S}}/g,"<p>").replace(/{{P_E}}/g,"</p>"),{msg:n.trim(),images:l,pureText:o.trim(),richPureText:i.trim(),newHtml:c,noImgHtml:r,onlyImages:d}}}},63390:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(58168),n=s(65043);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var i=s(22172),l=function(e,t){return n.createElement(i.A,(0,a.A)({},e,{ref:t,icon:o}))};const c=n.forwardRef(l)},79458:(e,t,s)=>{var a={"./at.svg":10343,"./at_active.svg":80768,"./at_d.svg":32370,"./emoji.svg":95474,"./emoji_active.svg":95967,"./emoji_d.svg":76855,"./image.svg":52495,"./image_active.svg":3960,"./image_d.svg":92970,"./kds_logo.svg":7290,"./oh.svg":48421,"./sad.svg":8044,"./sent_ok.svg":14943,"./upload_add.svg":15555,"./upload_add_d.svg":36558};function n(e){var t=o(e);return s(t)}function o(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=o,e.exports=n,n.id=79458},10343:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/at.709950a7602846abb0c2.svg"},80768:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/at_active.f56b664e1ba98105c150.svg"},32370:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/at_d.a32ba60cc6edcf347bbc.svg"},95474:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/emoji.f3586cc4c532f7c373b8.svg"},95967:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/emoji_active.7c6d57ea90d0dd74119a.svg"},76855:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/emoji_d.611ce52b58d738ea4c95.svg"},52495:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/image.3f47d6d4d1e5568c570d.svg"},3960:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/image_active.0c4202c42eb91f80be39.svg"},92970:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/image_d.1234f89e0085432b8316.svg"},7290:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/kds_logo.242ea4dc450eac7d888c.svg"},48421:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/oh.fc0dbcb0a1335adcbd93.svg"},8044:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/sad.2bbc76913fbb9f030f15.svg"},14943:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/sent_ok.b7880c9fe66cbba77cd8.svg"},15555:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/upload_add.d256e22bb7d2b870751d.svg"},36558:(e,t,s)=>{"use strict";e.exports=s.p+"static/media/upload_add_d.743b7bbbd4e1992bd819.svg"}}]); 2//# sourceMappingURL=840.97e15dc6.chunk.js.map
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.