PageSourceSearch

https://flowing.tel/assets/MypagePage.1790586790423.Clu9fl1l.js

js flowing.tel collected 2026-10-02 02:08:48 UTC 11,152 bytes, 2 lines download raw bytes

1try{let s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new s.Error).stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="aa3d3dca-8878-495c-8f21-c7efb8a865d0",s._sentryDebugIdIdentifier="sentry-dbid-aa3d3dca-8878-495c-8f21-c7efb8a865d0")}catch(J){}import{m as s,r as e,j as o,B as r,T as i,D as t,f as n,I as l,C as a,h as c,u as x,A as d,a as f,b as h,E as p,ac as m,K as j}from"./index.1790586790423.D_PIcbR4.js";import{u}from"./useVendorRole.1790586790423.CG1YMcH6.js";import{C as g,P as b,f as S,N as v,g as y}from"./Nav.1790586790423.DtN1pcV9.js";import{A as z}from"./ArrowBack.1790586790423.NS6myjqP.js";import{u as I}from"./shop3OrderStore.1790586790423.CKcVcGwl.js";import{u as k,M as w}from"./layout.1790586790423.B65hemge.js";import{R as C}from"./RecentProductsSection.1790586790423.D9iIbMlr.js";import{g as W}from"./shop3.service.1790586790423.PLB1Ew9e.js";import{H as L}from"./HomeContainer.1790586790423.CW3ZbZcX.js";import{S as R}from"./Skeleton.1790586790423.CgV2ODnE.js";import{D as $}from"./Divider.1790586790423.d_Kx3hLG.js";import{L as D}from"./SelectFocusSourceContext.1790586790423.CrWUkCNG.js";import{L as P}from"./ListItem.1790586790423.Bleo646O.js";import{L as T}from"./ListItemText.1790586790423.DVVw5AHt.js";import{M as H,P as N,R as A,H as B,A as F,a as E,C as V,b as _}from"./mypageMenu.1790586790423.Bm9vJ298.js";import{L as M}from"./LocalShippingOutlined.1790586790423.CiwrpaWs.js";import{C as X}from"./CardGiftcard.1790586790423.CwNZ2HwD.js";import{A as G}from"./Avatar.1790586790423.BnUoW1AH.js";import"./loginFormDialogStore.1790586790423.IRwAeQhk.js";import"./AppBar.1790586790423.Dw33l-XT.js";import"./TextField.1790586790423.BJd3ZD_1.js";import"./getThemeProps.1790586790423.Cd_Qx_Tm.js";import"./recentViewedStore.1790586790423.DTEIVdxz.js";import"./useDialog.1790586790423.B215KVtN.js";import"./loadingDialogStore.1790586790423.C2S2djBo.js";import"./Shop3LoginDialog.1790586790423.DqjQ9GvP.js";import"./VendorPasswordResetDialog.1790586790423._6FR1eNV.js";import"./index.esm.1790586790423.Dn58uWVV.js";import"./Link.1790586790423.DVsu7JYg.js";import"./listItemTextClasses.1790586790423.CiMq3e96.js";const O=({wallet:x,isLoading:d,colors:f,subscription:h,isSubscriptionLoading:p,deposits:m,currentSupplierId:j,currentSupplierName:u,vendorPath:b})=>{var S;const v=s(),[y,z]=e.useState(!1),I=s=>s.toLocaleString(),k=j&&(null==(S=m.find(s=>s.supplierId===j))?void 0:S.amount)||0,w=m.reduce((s,e)=>s+Number(e.amount),0);return o.jsxs(o.Fragment,{children:[o.jsxs(r,{sx:{bgcolor:"#fff",borderRadius:3,border:"1px solid #eee",mb:2,overflow:"hidden"},children:[o.jsxs(r,{onClick:()=>{b&&v(`/${b}/subscription/plans`)},sx:{p:{xs:1.5,sm:2},cursor:"pointer",transition:"background-color 0.2s","&:hover":{bgcolor:"#fafafa"},display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p?o.jsx(R,{variant:"text",width:200,height:24}):o.jsx(i,{sx:{fontSize:{xs:13,sm:14},fontWeight:500,color:f.main},children:(()=>{if(!(null==h?void 0:h.plan))return"플랜 정보 없음";return`${h.plan.name} · 사입비 ${I(Number(h.plan.sourcingFee))}원 · 중계수수료 무료`})()}),o.jsx(g,{sx:{fontSize:18,color:"#999"}})]}),o.jsx($,{}),o.jsxs(r,{sx:{display:"grid",gridTemplateColumns:"1fr 1px 1fr"},children:[o.jsxs(r,{onClick:()=>v(`/${b}/cash/charge`),sx:{p:{xs:2,sm:2.5},display:"flex",flexDirection:"column",cursor:"pointer",transition:"background-color 0.2s","&:hover":{bgcolor:"#fafafa"}},children:[o.jsxs(r,{sx:{display:"flex",alignItems:"center",gap:.5,mb:1},children:[o.jsx(i,{sx:{fontSize:{xs:13,sm:14},color:"#666"},children:"캐시"}),o.jsx(g,{sx:{fontSize:16,color:"#999"}})]}),d?o.jsx(R,{variant:"text",width:80,height:32}):o.jsxs(i,{sx:{fontSize:{xs:18,sm:22},fontWeight:700,color:((null==x?void 0:x.availableBalance)??0)<0?"#E53935":"#222"},children:[I((null==x?void 0:x.availableBalance)??0),o.jsx(i,{component:"span",sx:{fontSize:{xs:14,sm:16},fontWeight:600,color:((null==x?void 0:x.availableBalance)??0)<0?"#E53935":"#222"},children:"원"})]})]}),o.jsx(r,{sx:{bgcolor:"#eee"}}),o.jsxs(r,{onClick:()=>{z(!0)},sx:{p:{xs:2,sm:2.5},display:"flex",flexDirection:"column",cursor:"pointer",transition:"background-color 0.2s","&:hover":{bgcolor:"#fafafa"}},children:[o.jsxs(r,{sx:{display:"flex",alignItems:"center",gap:.5,mb:1},children:[o.jsx(i,{sx:{fontSize:{xs:13,sm:14},color:"#666"},children:"예치금"}),o.jsx(g,{sx:{fontSize:16,color:"#999"}})]}),d?o.jsx(R,{variant:"text",width:80,height:32}):o.jsxs(o.Fragment,{children:[o.jsxs(i,{sx:{fontSize:{xs:18,sm:22},fontWeight:700,color:"#222"},children:[I(Number(k)),o.jsx(i,{component:"span",sx:{fontSize:{xs:14,sm:16},fontWeight:600,color:"#222"},children:"원"})]}),u&&o.jsxs(i,{sx:{fontSize:{xs:11,sm:12},color:"#999",mt:.5},children:[u," 거래처에서 사용가능"]})]})]})]})]}),o.jsxs(t,{open:y,onClose:()=>z(!1),maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:3}},children:[o.jsxs(n,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",pb:1},children:[o.jsx(i,{sx:{fontSize:18,fontWeight:700},children:"보유 예치금"}),o.jsx(l,{onClick:()=>z(!1),size:"small","aria-label":"닫기",children:o.jsx(a,{})})]}),o.jsxs(c,{sx:{pt:0},children:[o.jsxs(r,{sx:{bgcolor:"#f5f5f5",borderRadius:2,p:2,mb:2},children:[o.jsx(i,{sx:{fontSize:13,color:"#666",mb:.5},children:"전체 예치금"}),o.jsxs(i,{sx:{fontSize:24,fontWeight:700},children:[I(w),"원"]})]}),m.length>0?o.jsx(D,{disablePadding:!0,children:[...m].sort((s,e)=>s.supplierId===j?-1:e.supplierId===j?1:0).map((s,e)=>
1o.jsxs(P,{sx:{px:0,py:1.5,borderBottom:e<m.length-1?"1px solid #eee":"none"},children:[o.jsx(T,{primary:s.supplierName,primaryTypographyProps:{fontSize:14,fontWeight:400,color:"#333"}}),o.jsxs(i,{sx:{fontSize:15,fontWeight:600,color:"#222"},children:[I(Number(s.amount)),"원"]})]},s.id))}):o.jsx(r,{sx:{textAlign:"center",py:4},children:o.jsx(i,{sx:{fontSize:14,color:"#999"},children:"보유한 예치금이 없습니다"})})]})]})]})},K=({vendorPath:e,onRecentProductsClick:t})=>{const n=s(),l={home:o.jsx(_,{sx:{fontSize:22,color:"#666"}}),subscription:o.jsx(V,{sx:{fontSize:22,color:"#666"}}),orders:o.jsx(E,{sx:{fontSize:22,color:"#666"}}),returns:o.jsx(F,{sx:{fontSize:22,color:"#666"}}),backorder:o.jsx(M,{sx:{fontSize:22,color:"#666"}}),sample:o.jsx(X,{sx:{fontSize:22,color:"#666"}}),recent:o.jsx(B,{sx:{fontSize:22,color:"#666"}}),cashCharge:o.jsx(b,{sx:{fontSize:22,color:"#666"}}),cashHistory:o.jsx(A,{sx:{fontSize:22,color:"#666"}}),depositHistory:o.jsx(N,{sx:{fontSize:22,color:"#666"}})},a={home:()=>n(`/${e}/mypage`),subscription:()=>n(`/${e}/settings/subscription`),orders:()=>n(`/${e}/orders`),returns:()=>n(`/${e}/returns`),backorder:()=>n(`/${e}/backorder`),sample:()=>n(`/${e}/sample`),recent:t,cashCharge:()=>n(`/${e}/cash/charge`),cashHistory:()=>n(`/${e}/cash/history`),depositHistory:()=>n(`/${e}/deposit/history`)},c=H.filter(s=>"home"!==s.id).map(s=>({...s,icon:l[s.id],onClick:a[s.id]}));return o.jsx(r,{sx:{bgcolor:"#fff",borderRadius:3,border:"1px solid #eee",overflow:"hidden"},children:c.map((s,e)=>o.jsxs(r,{children:[o.jsxs(r,{onClick:s.onClick,sx:{display:"flex",alignItems:"center",p:{xs:2,sm:2.5},cursor:"pointer",transition:"background-color 0.2s","&:hover":{bgcolor:"#fafafa"}},children:[o.jsx(r,{sx:{mr:2},children:s.icon}),o.jsx(i,{sx:{flex:1,fontSize:{xs:14,sm:15},fontWeight:500,color:s.disabled?"#999":"#222"},children:s.label}),o.jsx(g,{sx:{fontSize:20,color:"#ccc"}})]}),e<c.length-1&&o.jsx($,{})]},s.label))})},Z=()=>{const t=x(),n=k(t.breakpoints.down("md")),{vendorPath:a}=d(),c=s(),u=f(),b=e.useRef(null),$=j("supplier"),{isLoggedIn:D,openLoginDialog:P}=S(),T=h(s=>s.vendorId),H=h(s=>s.vendorInfo),{shop:N}=p(),A=I(s=>s.wallet),B=I(s=>s.deposits),F=I(s=>s.isWalletLoading),E=I(s=>s.fetchWalletAndDeposits),[V,_]=e.useState(null),[M,X]=e.useState(!1),Z=e.useCallback(async s=>{X(!0);try{const e=await W(s);_(e)}catch{_(null)}finally{X(!1)}},[]);e.useEffect(()=>{D||P(`/${a}/mypage`)},[D,P,a]),e.useEffect(()=>{D&&T&&(E(T),Z(T))},[D,T,E,Z]),e.useEffect(()=>{if(D&&"#recent-products"===u.hash){const s=setTimeout(()=>{var s;null==(s=b.current)||s.scrollIntoView({behavior:"smooth"})},100);return()=>clearTimeout(s)}},[D,u.hash]);if(!D)return n?o.jsxs(o.Fragment,{children:[o.jsx(m,{}),o.jsxs(r,{sx:{minHeight:"100vh",width:"100%",maxWidth:"100%",bgcolor:"#f5f5f5",overflowX:"hidden"},children:[o.jsx(r,{sx:{position:"sticky",top:0,bgcolor:"#fff",zIndex:10,borderBottom:"1px solid #eee"},children:o.jsxs(r,{sx:{display:"flex",alignItems:"center",p:2},children:[o.jsx(l,{onClick:()=>c(-1),sx:{mr:1},"aria-label":"뒤로가기",children:o.jsx(z,{})}),o.jsx(i,{sx:{fontSize:18,fontWeight:700},children:"주문관리"})]})}),o.jsxs(r,{sx:{px:2,pt:3},children:[o.jsx(R,{variant:"rectangular",height:150,sx:{borderRadius:3,mb:2}}),o.jsx(R,{variant:"rectangular",height:200,sx:{borderRadius:3}})]})]})]}):o.jsxs(L,{children:[o.jsx(m,{}),o.jsx(v,{}),o.jsx(r,{sx:{minHeight:"100vh",bgcolor:"#f5f5f5",pt:3},children:o.jsxs(r,{sx:{maxWidth:w,mx:"auto",px:{xs:2,sm:3}},children:[o.jsx(R,{variant:"rectangular",height:150,sx:{borderRadius:3,mb:2}}),o.jsx(R,{variant:"rectangular",height:200,sx:{borderRadius:3}})]})})]});const q=o.jsxs(o.Fragment,{children:[o.jsxs(r,{onClick:()=>c(`/${a}/settings`),sx:{display:"flex",alignItems:"center",gap:1.5,mb:2,cursor:"pointer"},children:[o.jsx(G,{src:null==H?void 0:H.profileImage,sx:{width:32,height:32,bgcolor:"#e0e0e0"},children:!(null==H?void 0:H.profileImage)&&o.jsx(y,{sx:{fontSize:18,color:"#999"}})}),o.jsx(i,{sx:{fontSize:{xs:15,sm:16},fontWeight:500,color:"#222"},children:(null==H?void 0:H.storeName)||(null==H?void 0:H.nickname)||"사용자"}),o.jsx(g,{sx:{fontSize:18,color:"#999"}})]}),o.jsx(O,{wallet:A,isLoading:F,colors:$,subscription:V,isSubscriptionLoading:M,deposits:B,currentSupplierId:null==N?void 0:N.id,currentSupplierName:(null==N?void 0:N.storeName)??(null==N?void 0:N.nickname),vendorPath:a}),o.jsx(K,{vendorPath:a||"",onRecentProductsClick:()=>{var s;null==(s=b.current)||s.scrollIntoView({behavior:"smooth"})}}),o.jsx(r,{ref:b,children:o.jsx(C,{isMobileView:n})})]});return n?o.jsxs(o.Fragment,{children:[o.jsx(m,{}),o.jsxs(r,{sx:{minHeight:"100vh",width:"100%",maxWidth:"100%",bgcolor:"#f5f5f5",overflowX:"hidden"},children:[o.jsx(r,{sx:{position:"sticky",top:0,bgcolor:"#fff",zIndex:10,borderBottom:"1px solid #eee"},children:o.jsxs(r,{sx:{display:"flex",alignItems:"center",p:2},children:[o.jsx(l,{onClick:()=>c(-1),sx:{mr:1},"aria-label":"뒤로가기",children:o.jsx(z,{})}),o.jsx(i,{sx:{fontSize:18,fontWeight:700},children:"주문관리"})]})}),o.jsx(r,{sx:{px:2,pt:3,pb:10},children:q})]})]}):o.jsxs(L,{children:[o.jsx(m,{}),o.jsx(v,{}),o.jsx(r,{sx:{minHeight:"100vh",bgcolor:"#f5f5f5",pb:10},children:o.jsxs(r,{sx:{maxWidth:w,mx:"auto",px:3,pt:3},children:[o.jsx(i,{sx:{fontSize:28,fontWeight:700,color:"#222",mb:4,textAlign:"center"},children:"주문관리"}),q]})})]})},q=()=>{const{isSupplier:s}=u();return o.jsx(Z,{})};export{q as default};
2//# sourceMappingURL=MypagePage.1790586790423.Clu9fl1l.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.