PageSourceSearch

https://portal.money-charger.com/_next/static/chunks/pages/users/affiliate-6b3157dd95f9ef4f.js

js money-charger.com collected 2026-10-08 10:38:46 UTC 10,815 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7220],{9337:(e,r,o)=>{"use strict";o.d(r,{e:()=>a});var t=o(17187),i=o(25258),s=o(76176);let a=({noBg:e,...r})=>{let o=(0,i.dU)("white","gray.700");return(0,t.jsx)(s.a,{bg:e?void 0:o,py:{base:8,sm:8},px:{base:4,md:8,sm:4},width:{base:"100%"},maxW:"100%",boxShadow:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.03) 0px 12px 16px 0px, rgba(0, 0, 0, 0.04) 0px 1px 2px 0px",rounded:{base:"none",md:"lg"},...r,overflow:"hidden"})}},18543:(e,r,o)=>{"use strict";o.d(r,{S:()=>a});var t=o(50916),i=o(50443),s=o(20534);let a=()=>{let e=(0,t.d)(),r=(0,i.useContext)(s.F),o=r?.defaultDuration??5e3,a=r?.isClosable??!0,l=(0,i.useCallback)((r,t)=>{e({description:r,status:"success",duration:o,isClosable:a,...t})},[e,o,a]),n=(0,i.useCallback)((r,t)=>{e({description:r,status:"error",duration:o,isClosable:a,...t})},[e,o,a]),d=(0,i.useCallback)((r,t)=>{e({description:r,status:"info",duration:o,isClosable:a,...t})},[e,o,a]),c=(0,i.useCallback)((r,t)=>{e({description:r,status:"warning",duration:o,isClosable:a,...t})},[e,o,a]);return(0,i.useMemo)(()=>({success:l,error:n,info:d,warning:c}),[l,n,d,c])}},25395:(e,r,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/affiliate",function(){return o(66292)}])},66292:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>K});var t=o(17187),i=o(35596),s=o.n(i),a=o(27639),l=o(97072),n=o(76176),d=o(18806),c=o(53456),p=o(84578),x=o(4915),b=o(60395),h=o(27157),u=o(65924),f=o(20958),g=o(
178607),m=o(70444),_=o(694),j=o(59783),w=o.n(j),k=o(9554),y=o.n(k),C=o(86066),S=o(50443),v=o(52795),R=o(30319),z=o(9337),E=o(18543),A=o(89338),D=o(68023),$=o(27361),M=o(51240);let F="#F5C518",W="#D4AB16",L="#1A1A1A",H="#00E5A0",B="#F7F8FA",N="#E2E8F0",I="#718096",T="#1A202C",q=/^https:\/\/money-charger\.com\/.+/,P=({isCopied:e,onClick:r,AffiliateResources:o,isDisabled:i=!1})=>(0,t.jsx)(p.$,{onClick:r,isDisabled:i,bg:e?H:F,color:"black",fontSize:"12px",leftIcon:e?(0,t.jsx)(v.CMH,{}):(0,t.jsx)(R.nxz,{}),_hover:{bg:e?H:W},_active:{transform:"scale(0.97)"},transition:"all 0.2s",size:"sm",h:"32px",children:e?o.portal.btn_copied:o.portal.btn_copy_url}),U=({onClick:e,AffiliateResources:r,isDisabled:o=!1})=>(0,t.jsx)(p.$,{onClick:e,isDisabled:o,bg:"white",color:I,border:`1px solid ${N}`,fontSize:"12px",leftIcon:(0,t.jsx)(R.KFS,{}),_hover:{borderColor:"gray.400"},_active:{transform:"scale(0.97)"},size:"sm",h:"32px",children:r.portal.btn_show_qr}),O=()=>{let{resources:e}=(0,A.r)(),{warning:r,error:o}=(0,E.S)(),i=e.users_affiliate_link_page,s="object"==typeof i&&null!==i&&"portal"in i?i:{portal:{}},j=(0,D.Jd)(),k=j?.uid||null,[v,O]=(0,S.useState)(""),[X,J]=(0,S.useState)(""),[K,Q]=(0,S.useState)(!0),Y=!!(v&&v.trim().length>0),[G,V]=(0,S.useState)(""),[Z,ee]=(0,S.useState)(""),[er,eo]=(0,S.useState)({}),{isOpen:et,onOpen:ei,onClose:es}=(0,a.j)(),[ea,el]=(0,S.useState)(""),[en,ed]=(0,S.useState)("");(0,S.useEffect)(()=>{J(window.location.origin),(async()=>{if(!k){O(""),ee(""),Q(!1);return}try{Q(!0),O(""),ee("");let e=(0,_.H9)($.db,M.b.users,k),o=await (0,_.x7)(e);if(o.exists()){let e=o.data().affiliate_code;e?O(e):(O(""),ee(""),r(s.portal.toast_no_affiliate_code||"アフィリエイトコードが登録されていません",{duration:5e3}))}else O(""),ee("")}catch(e){O(""),ee(""),o(s.portal.toast_affiliate_code_fetch_failed||"アフィリエイトコードの取得に失敗しました",{duration:3e3})}finally{Q(!1)}})()},[k,r,o,s.portal.toast_affiliate_code_fetch_failed,s.portal.toast_no_affiliate_code]);let ec=async(e,r)=>{if(Y&&e)try{await navigator.clipboard.writeText(e),eo(e=>({...e,[r]:!0})),setTimeout(()=>{eo(e=>({...e,[r]:!1}))},2e3)}catch(e){o(s.portal.toast_copy_failed,{duration:3e3})}},ep=e=>{if(Y&&e)try{let r=(0,C.Ay)(0,"M");r.addData(e),r.make();let o=r.createDataURL(5,2);el(o),ed(e),ei()}catch(e){console.error(e),o(s.portal.toast_qr_generate_failed,{duration:3e3})}},ex=e=>{let r=window.getSelection(),o=document.createRange();o.selectNodeContents(e.currentTarget),r?.removeAllRanges(),r?.addRange(o)},eb=Y?`${X}/register?ref=${v}`:"",eh=Y?`https://money-charger.com/?ref=${v}`:"",eu=e.table_cmp?.loading||"Loading...";return(0,t.jsxs)(z.e,{mt:5,children:[(0,t.jsxs)(l.s,{alignItems:"center",gap:3,mb:6,children:[(0,t.jsx)(l.s,{w:"28px",h:"28px",bg:`${F}1A`,rounded:"md",align:"center",justify:"center",children:(0,t.jsx)(n.a,{as:"svg",w:"16px",h:"16px",color:F,fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})}),(0,t.jsx)(d.E,{fontSize:"20px",fontWeight:"bold",color:T,children:s.portal.page_title}),(0,t.jsx)(n.a,{display:{base:"none",md:"block"},children:(0,t.jsx)(w(),{src:"/affiliater/口笛 1.png",alt:"Neko",width:86,height:86,style:{objectFit:"contain"}})})]}),(0,t.jsxs)(n.a,{bg:"white",border:`1px solid ${N}`,borderRadius:"10px",p:5,mb:5,children:[(0,t.jsxs)(l.s,{align:"center",gap:3,mb:3,flexWrap:"wrap",children:[(0,t.jsx)(d.E,{fontSize:"16px",fontWeight:"bold",color:T,children:s.portal.register_title}),(0,t.jsx)(n.a,{display:"inline-flex",bg:L,px:3,py:"4px",borderRadius:"6px",children:(0,t.jsx)(d.E,{color:F,fontSize:"12px",fontWeight:"bold",fontFamily:"'DM Mono', monospace",children:s.portal.badge_recommend})})]}),(0,t.jsxs)(d.E,{color:I,fontSize:"14px",mb:4,lineHeight:"1.7",children:[s.portal.register_desc," "]}),(0,t.jsx)(n.a,{bg:B,border:`1px solid ${N}`,borderRadius:"lg",px:4,py:3,mb:4,children:(0,t.jsx)(d.E,{fontSize:"14px",color:"#4a5568",fontFamily:"'DM Mono', monospace",wordBreak:"break-all",onClick:ex,cursor:"text",children:K?eu:eb||"-"})}),(0,t.jsxs)(l.s,{gap:3,children:[(0,t.jsx)(P,{isCopied:er.register,onClick:()=>ec(eb,"register"),AffiliateResources:s,isDisabled:K||!Y}),(0,t.jsx)(U,{onClick:()=>ep(eb),AffiliateResources:s,isDisabled:K||!Y})]})]}),(0,t.jsxs)(n.a,{bg:"white",border:`1px solid ${N}`,borderRadius:"10px",p:5,mb:5,children:[(0,t.jsxs)(l.s,{align:"center",gap:3,mb:3,children:[(0,t.jsx)(d.E,{fontSize:"16px",fontWeight:"bold",color:T,children:s.portal.site_top_title}),(0,t.jsx)(d.E,{fontSize:"12px",color:I,bg:B,px:2,py:1,borderRadius:"md",children:s.portal.badge_site_top})]}),(0,t.jsxs)(d.E,{color:I,fontSize:"14px",mb:4,lineHeight:"1.7",children:[s.portal.site_top_desc," "]}),(0,t.jsx)(n.a,{bg:B,border:`1px solid ${N}`,borderRadius:"lg",px:4,py:3,mb:4,children:(0,t.jsx)(d.E,{fontSize:"14px",color:"#4a5568",fontFamily:"'DM Mono', monospace",wordBreak:"break-all",onClick:ex,cursor:"text",children:K?eu:eh||"-"})}),(0,t.jsxs)(l.s,{gap:3,children:[(0,t.jsx)(P,{isCopied:er.top,onClick:()=>ec(eh,"top"),AffiliateResources:s,isDisabled:K||!Y}),(0,t.jsx)(U,{onClick:()=>ep(eh),AffiliateResources:s,isDisabled:K||!Y})]})]}),(0,t.jsxs)(n.a,{bg:"white",border:`1px solid ${N}`,borderRadius:"10px",p:5,mb:5,children:[(0,t.jsxs)(l.s,{align:"center",gap:3,mb:3,children:[(0,t.jsx)(d.E,{fontSize:"16px",fontWeight:"bold",color:T,children:s.portal.custom_url_title}),(0,t.jsx)(d.E,{fontSize:"12px",color:I,bg:B,px:2,py:1,borderRadius:"md",children:s.portal.badge_custom_url})]}),(0,t.jsx)(d.E,{color:I,fontSize:"14px",mb:4,lineHeight:"1.7",children:s.portal.custom_url_desc}),(0,t.jsxs)(l.s,{gap:3,mb:4,direction:{base:"column",md:"row"},children:[(0,t.jsx)(c.p,{flex:"1",w:{base:"100%",md:"auto"},size:"md",minH:{base:"44px",md:"40px"},lineHeight:{base:"44px",md:"40px"},bg:B,fontSize:"14px",px:4,borderRadius:"md",fontFamily:"'DM Mono', monospace",placeholder:s.portal.custom_url_placeholder,value:G,onChange:e=>V(e.target.value),focusBorderColor:F,_focus:{boxShadow:`0 0 0 1px ${F}`,borderColor:F}}),(0,t.jsx)(p.$,{w:{base:"100%",md:"auto"},bg:L,color:F,fontSize:"14px",minH:{base:"44px",md:"40px"},px:5,leftIcon:(0,t.jsx)(R.ayE,{}),onClick:()=>
1{if(!Y)return void r(s.portal.toast_no_affiliate_code,{duration:3e3});let e=G.trim();if(!e||!q.test(e))return void o(s.portal.toast_custom_url_invalid,{duration:3e3});try{let r=new URL(e);r.searchParams.set("ref",v),ee(r.toString())}catch(e){o(s.portal.toast_custom_url_invalid||"Invalid URL format",{duration:3e3})}},_hover:{bg:"gray.800"},isDisabled:K||!Y,children:s.portal.btn_generate_link})]}),Z&&(0,t.jsxs)(n.a,{children:[(0,t.jsx)(n.a,{bg:B,border:`1px solid ${N}`,borderRadius:"lg",px:4,py:3,mb:4,children:(0,t.jsx)(d.E,{fontSize:"14px",color:"#4a5568",fontFamily:"'DM Mono', monospace",wordBreak:"break-all",onClick:ex,cursor:"text",children:Z})}),(0,t.jsxs)(l.s,{gap:3,children:[(0,t.jsx)(P,{isCopied:er.custom,onClick:()=>ec(Z,"custom"),AffiliateResources:s,isDisabled:K||!Y}),(0,t.jsx)(U,{onClick:()=>ep(Z),AffiliateResources:s,isDisabled:K||!Y})]})]})]}),(0,t.jsxs)(l.s,{as:y(),href:"/users/affiliate-history",align:"center",justify:"space-between",bg:"white",border:`1px solid ${N}`,borderRadius:"10px",px:4,py:4,_hover:{bg:"gray.50",textDecoration:"none"},transition:"all 0.2s",role:"group",children:[(0,t.jsxs)(l.s,{align:"center",gap:3,textAlign:"left",children:[(0,t.jsx)(n.a,{w:"8px",h:"8px",bg:H,borderRadius:"full"}),(0,t.jsx)(d.E,{fontSize:"14px",color:I,fontWeight:"bold",children:s.portal.accordion_reward_history})]}),(0,t.jsx)(n.a,{as:"svg",w:"5",h:"5",color:I,fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",transition:"transform 0.2s ease",_groupHover:{transform:"translateY(2px)"},children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),(0,t.jsxs)(x.aF,{isOpen:et,onClose:es,isCentered:!0,children:[(0,t.jsx)(b.m,{bg:"blackAlpha.600"}),(0,t.jsxs)(h.$,{borderRadius:"2xl",maxW:"380px",mx:4,textAlign:"center",p:6,children:[(0,t.jsx)(u.r,{fontSize:"18px",fontWeight:"bold",p:0,mb:4,children:s.portal.modal_qr_title}),(0,t.jsx)(f.s,{mt:2}),(0,t.jsxs)(g.c,{p:0,children:[(0,t.jsx)(l.s,{w:"200px",h:"200px",mx:"auto",mb:5,border:`1px solid ${N}`,borderRadius:"xl",bg:B,align:"center",justify:"center",overflow:"hidden",children:ea&&(0,t.jsx)(m._,{src:ea,alt:"QR Code",w:"100%",h:"100%"})}),(0,t.jsx)(d.E,{fontSize:"13px",color:I,fontFamily:"'DM Mono', monospace",wordBreak:"break-all",mb:6,children:en}),(0,t.jsxs)(l.s,{justify:"center",gap:3,children:[(0,t.jsx)(p.$,{bg:F,color:"black",_hover:{bg:W},fontSize:"14px",height:"40px",px:6,borderRadius:"xl",onClick:()=>{let e=document.createElement("a");e.download="moneycharger-partner-qr.png",e.href=ea,e.click()},children:s.portal.btn_save_image}),(0,t.jsx)(p.$,{bg:L,color:"white",_hover:{bg:"gray.800"},fontSize:"14px",height:"40px",px:6,borderRadius:"xl",onClick:es,children:s.portal.btn_close})]})]})]})]})]})};var X=o(45483),J=o(52967);let K=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s(),{children:(0,t.jsx)("title",{children:"アフィリエイト"})}),(0,t.jsx)(X.P,{children:(0,t.jsx)(J.A,{children:(0,t.jsx)(O,{})})})]})}},e=>{e.O(0,[6094,63,636,6593,8792],()=>e(e.s=25395)),_N_E=e.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.