PageSourceSearch

https://www.popchill.com/_next/static/chunks/9027-a7c0d2e2151763d1.js

js popchill.com collected 2026-10-01 12:34:40 UTC 10,302 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9027],{92105:function(e,t,l){var a=l(85893);l(67294),t.Z=()=>(0,a.jsxs)("svg",{id:"Group_2204","data-name":"Group 2204",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"14",height:"14",viewBox:"0 0 14 14",children:[(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip-path",children:(0,a.jsx)("rect",{id:"Rectangle_379","data-name":"Rectangle 379",width:"14",height:"14",fill:"none"})})}),(0,a.jsxs)("g",{id:"Group_2204-2","data-name":"Group 2204",clipPath:"url(#clip-path)",children:[(0,a.jsx)("path",{id:"Path_520","data-name":"Path 520",d:"M7,1A6,6,0,1,1,1,7,6.007,6.007,0,0,1,7,1M7,0a7,7,0,1,0,7,7A7,7,0,0,0,7,0",fill:"#e32000"}),(0,a.jsx)("path",{id:"Path_521","data-name":"Path 521",d:"M7,11H7a.752.752,0,0,1-.75-.75V6.75a.75.75,0,0,1,1.5,0v3.5A.752.752,0,0,1,7,11",fill:"#e32000"}),(0,a.jsx)("path",{id:"Path_522","data-name":"Path 522",d:"M8,4A1,1,0,1,1,7,3,1,1,0,0,1,8,4",fill:"#e32000"})]})]})},74541:function(e,t,l){var a=l(85893);l(67294),t.Z=e=>{let{width:t="100%",height:l="100%",...n}=e;return(0,a.jsx)("svg",{style:{width:t,height:l},...n,width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.4404 4.76923C11.1446 2.30178 9.13865 0.313609 6.67119 0.035503C6.24516 -0.0118343 5.83687 -0.0118343 5.41675 0.035503C2.94338 0.313609 0.937464 2.30178 0.641606 4.76923C0.428588 6.53254 1.04989 8.22485 2.33983 9.42604C2.99664 10.0355 3.37533 10.7751 3.41675 11.5148C3.42859 11.6923 3.45226 11.8757 3.49959 12.0533C3.7422 12.9941 4.50551 13.7337 5.44634 13.9408C5.63569 13.9822 5.83096 14.0059 6.04397 14.0059C6.25699 14.0059 6.44634 13.9822 6.64161 13.9408C7.58243 13.7337 8.35167 12.9882 8.58835 12.0533C8.63569 11.8757 8.65936 11.6923 8.67119 11.5148C8.70669 10.7751 9.09131 10.0355 9.74811 9.42604C11.0381 8.22485 11.6594 6.53254 11.4463 4.76923H11.4404ZM6.44634 13.071C6.1919 13.1302 5.89604 13.1302 5.63569 13.071C5.02622 12.9349 4.51143 12.4379 4.35758 11.8284C4.328 11.7219 4.31616 11.6213 4.31025 11.5148H7.77178C7.76587 11.6213 7.74811 11.7219 7.72445 11.8284C7.5706 12.4379 7.05581 12.9349 6.44634 13.071ZM9.13865 8.76923C8.55285 9.31361 8.14456 9.95266 7.93746 10.6213H6.48776V7.52663C7.09131 7.3787 7.52326 6.94083 7.52326 6.40237C7.52326 6.15976 7.32208 5.95858 7.07948 5.95858C6.83687 5.95858 6.63569 6.15976 6.63569 6.40237C6.63569 6.52071 6.399 6.69823 6.04397 6.69823C5.68894 6.69823 5.45226 6.50888 5.45226 6.40237C5.45226 6.15976 5.25107 5.95858 5.00847 5.95858C4.76587 5.95858 4.56468 6.15976 4.56468 6.40237C4.56468 6.94083 4.99664 7.3787 5.60019 7.52663V10.6213H4.15048C3.94338 9.94675 3.5351 9.30769 2.9493 8.76923C1.86646 7.76923 1.35167 6.34319 1.52918 4.86982C1.7777 2.81065 3.45817 1.14793 5.51735 0.91716C5.69486 0.899408 5.87238 0.887574 6.04397 0.887574C6.21557 0.887574 6.39309 0.893491 6.5706 0.91716C8.63569 1.14793 10.3102 2.81065 10.5588 4.86982C10.7363 6.34319 10.2215 7.76923 9.13865 8.76923Z",fill:"#E0A100"})})}},39027:function(e,t,l){l.d(t,{Z:function(){return Wallet}});var a=l(85893),n=l(41664),s=l.n(n),r=l(68952),i=l(67294),c=l(2804),d=l(47872),o=l(21179),x=l(46216),h=l(69203),u=l(64691),wallet_WalletLog=e=>{let{walletLog:t,i:l,userCurrency:n}=e;return(0,a.jsxs)("div",{className:"flex py-3 border-b border-gray-light",children:[(0,a.jsx)("div",{className:"w-[58px] h-[58px] mr-3",children:(0,a.jsx)(h.yo,{src:"https://images.popchill.com/site/wallet/".concat(t.type,".png"),alt:"image wallet item ".concat(l),aspectRatio:1})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap justify-between text-sm",children:[(0,a.jsx)("div",{className:"flex-1",children:t.title}),(0,a.jsxs)("div",{className:"mt-[2px] ml-2",children:[t.amount>0?"+":"-",(0,u.fm)(t.amount,n)]})]}),(0,a.jsxs)("div",{className:"flex justify-between mt-[2px] leading-[17px] text-gray-heavy text-xs",children:[(0,a.jsx)("div",{className:"flex-1",children:t.note_short}),"withdraw"===t.type&&(0,a.jsxs)("div",{className:"ml-2 ".concat(2===t.status?"text-warning":""),children:[0===t.status&&"轉帳中",1===t.status&&"轉帳完成",2===t.status&&"轉帳失敗"]})]}),(0,a.jsx)("div",{className:"mt-[2px] leading-[18px] text-gray-heavy text-xs",children:(0,x.Z)(new Date(t.date),"yyyy-MM-dd")})]})]})},m=l(34750),g=l(13785),f=l(31863),v=l(92105),p=l(11163),j=l(74541),Wallet=()=>{var e;let t=(0,c.sJ)(d.KL),l=(0,c.Zl)(d.z8),n=(0,c.sJ)(d.z8),x=(0,p.useRouter)(),{isLg:b}=(0,o.Z)(),{isLoading:w,data:y}=(0,m.b)(t.user_id,{enabled:!!t.user_id});(0,i.useEffect)(()=>{y&&0===y.code&&l(y.data.bank_account_status)},[l,y]);let C=(null==y?void 0:y.data.wallet_balance)?y.data.wallet_balance:0,N=C<0,{isLoading:_,hasNextPage:k,data:M,fetchNextPage:Z}=(0,g.b)(t.user_id,30,{enabled:!!t.user_id}),L=!!(null==M?void 0:null===(e=M.pages[0])||void 0===e?void 0:e.data.data.length),P=(null==M?void 0:M.pages.length)?M.pages:[],[F]=(0,r.Z)({loading:_,hasNextPage:!!k,onLoadMore:Z,rootMargin:"0px 0px 200px 0px"}),creatWalletLogLinkHandler=(e,t)=>"order"===e?"/my/sell/".concat(t):"refund"===e?"/my/purchase/".concat(t):"withdraw"===e||"withdraw_recover"===e?"/my/withdraw/".concat(t):"others"===e?"/my/wallet/".concat(t):"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"bg-white py-[30px] lg:py-0 lg:flex justify-between items-center lg:pb-5 ",children:[(0,a.jsx)("div",{className:"text-xl font-bold mr-3 hidden lg:block",children:"我的錢包"}),(0,a.jsx)("div",{className:"text-sm lg:hidden text-center",children:"錢包餘額"}),(0,a.jsxs)("div",{className:"lg:hidden text-4xl font-bold my-3 text-center",children:[N&&"-",(0,u.fm)(C,t.currency)]}),(0,a.jsxs)("div",{className:"flex items-center text-sm justify-center",children:[0===n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.Z,{}),(0,a.jsx)("span",{className:"ml-1.5 mr-2",children:"銀行帳號轉帳失敗"}),(0,a.jsx)(s(),{href:"/my/bankAccount",className:"text-primary underline",children:"前往更新"})]}),1===n&&(0,a.jsx)(s(),{href:"/my/bankAccount",className:"text-primary underline",children:"查看銀行帳戶"}),2===n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"銀行帳號尚未設定"}),(0,a.jsx)(s(),{href:"/my/bankAccount",className:"ml-2 text-primary underline",children:"前往設定"})]})]})]}),(0,a.jsx)("div",{className:"hidden lg:block mb-[30px]",children:"/my/wallet"===x.pathname&&(0,a.jsxs)("div",{className:"flex items-center justify-center text-sm bg-[#FFF8DD] p-3",children:[(0,a.jsx)("span",{className:"mr-1.5 shrink-0",children:(0,a.jsx)(j.Z,{})}),(0,a.jsx)("div",{children:"2025/03 起的訂單款項將不再透過拍拍錢包進行存入及提領,如有餘額請儘快設定銀行帳戶,款項將自動提領至銀行帳戶ã€
1‚"})]})}),(0,a.jsxs)("div",{children:[w&&(0,a.jsx)("div",{className:"mt-20",children:(0,a.jsx)(h.gb,{})}),!w&&!L&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center leading-[50px] text-4xl font-bold hidden lg:block",children:[N&&"-","$",(0,u.fm)(C,t.currency)]}),(0,a.jsx)("div",{className:"mt-3 text-center text-sm hidden lg:block",children:"錢包餘額"}),(0,a.jsx)("div",{className:"flex justify-center mt-[30px]",children:(0,a.jsx)(f.Z,{})}),(0,a.jsx)("div",{className:"mt-[30px] text-center text-sm",children:"尚無紀錄"})]}),!w&&L&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"hidden lg:block text-center leading-[50px] text-4xl font-bold",children:[N&&"-",(0,u.fm)(C,t.currency)]}),(0,a.jsx)("div",{className:"hidden lg:block mt-3 text-center text-sm",children:"錢包餘額"}),(0,a.jsx)("div",{className:"lg:hidden pt-6 pb-3 px-3  font-bold text-sm",children:"錢包紀錄"}),(0,a.jsxs)("div",{className:"w-full px-3 bg-white lg:w-[616px] lg:mt-[30px] mx-auto",children:[P.map((e,l)=>(0,a.jsx)(i.Fragment,{children:(null==e?void 0:e.data.data)&&e.data.data.map((e,l)=>(0,a.jsx)(i.Fragment,{children:(0,a.jsx)(s(),{href:creatWalletLogLinkHandler(e.type,e.object_id),target:b?"_blank":"_self",className:"block",children:(0,a.jsx)(wallet_WalletLog,{walletLog:e,i:l,userCurrency:t.currency||"TWD"})})},e.object_id))},l)),!!k&&(0,a.jsx)("div",{ref:F})]})]})]})]})}},68952:function(e,t,l){l.d(t,{Z:function(){return react_infinite_scroll_hook_esm}});var a,n=l(67294),s=[0],r=(a=new Map,{getObserver:function(e){var t=e.root,l=e.rootMargin,n=e.threshold,s=a.get(t);s||(s=new Map,a.set(t,s));var r=JSON.stringify({rootMargin:l,threshold:n}),i=s.get(r);if(!i){var c=new Map;i={observer:new IntersectionObserver(function(e){e.forEach(function(e){var t=c.get(e.target);null==t||t(e)})},{root:t,rootMargin:l,threshold:n}),entryCallbacks:c},s.set(r,i)}return{observe:function(e,t){var l,a;null==(l=i)||l.entryCallbacks.set(e,t),null==(a=i)||a.observer.observe(e)},unobserve:function(e){var t,l;null==(t=i)||t.entryCallbacks.delete(e),null==(l=i)||l.observer.unobserve(e)}}}});function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e}).apply(this,arguments)}var react_infinite_scroll_hook_esm=function(e){var t,l,a,i,c,d,o,x,h,u,m,g,f,v,p,j,b,w,y,C,N,_=e.loading,k=e.hasNextPage,M=e.onLoadMore,Z=e.rootMargin,L=e.disabled,P=e.delayInMs,F=void 0===P?100:P,R=(j=(i=null!=(l=(t={rootMargin:Z}).rootMargin)?l:"0px",c=null!=(a=null==t?void 0:t.threshold)?a:s,d=(0,n.useRef)(null),o=(0,n.useRef)(null),x=(0,n.useRef)(null),u=(h=(0,n.useState)())[0],m=h[1],g=(0,n.useCallback)(function(){var e=d.current;if(!e){m(void 0);return}var t=r.getObserver({root:o.current,rootMargin:i,threshold:c});t.observe(e,function(e){m(e)}),x.current=t},[i,c]),f=(0,n.useCallback)(function(){var e=x.current,t=d.current;t&&(null==e||e.unobserve(t)),x.current=null},[]),p=[(0,n.useCallback)(function(e){f(),d.current=e,g()},[g,f]),{entry:u,rootRef:(0,n.useCallback)(function(e){f(),o.current=e,g()},[g,f])}])[0],w=!!(null==(v=(b=p[1]).entry)?void 0:v.isIntersecting),C=(y=(0,n.use
1State)(w))[0],N=y[1],w&&!C&&N(!0),[j,_extends({},b,{isVisible:w,wasEverVisible:C})]),A=R[0],E=R[1],H=E.rootRef,O=E.isVisible,W=!L&&!_&&O&&k;return(0,n.useEffect)(function(){if(W){var e=setTimeout(function(){M()},F);return function(){clearTimeout(e)}}},[M,W,F]),[A,{rootRef:H}]}}}]);

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.