PageSourceSearch

https://www.popchill.com/_next/static/chunks/4682-20f60d16a0b66916.js

js popchill.com collected 2026-09-24 10:08:27 UTC 13,165 bytes, 20 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4682],{45163:function(e,t,l){"use strict";l.d(t,{h:function(){return a.Z}});var a=l(44300);l(86662)},56320:function(e,t,l){"use strict";var a=l(85893);l(67294),t.Z=e=>{let{width:t=50,height:l=50}=e;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:l,viewBox:"0 0 50 50",children:(0,a.jsxs)("g",{id:"Group_1422","data-name":"Group 1422",transform:"translate(-3804 -9126)",children:[(0,a.jsx)("rect",{id:"Rectangle_293","data-name":"Rectangle 293",width:"50",height:"50",transform:"translate(3804 9126)",fill:"none"}),(0,a.jsxs)("g",{id:"Group_1355","data-name":"Group 1355",transform:"translate(3772 9013)",children:[(0,a.jsx)("path",{id:"Path_406","data-name":"Path 406",d:"M67.809,130.3,53.531,143.526l-7.257-8.546a1,1,0,0,0-1.525,1.295l7.934,9.342a1,1,0,0,0,.7.351l.059,0a1,1,0,0,0,.68-.267l15.043-13.939a1,1,0,0,0-1.359-1.467Z",className:"fill-[#55cecb]"}),(0,a.jsx)("path",{id:"Path_407","data-name":"Path 407",d:"M57,113a25,25,0,1,0,12.823,46.464,1,1,0,0,0-1.027-1.715,23.01,23.01,0,1,1,6.677-6.045,1,1,0,1,0,1.605,1.193A25,25,0,0,0,57,113Z",className:"fill-[#55cecb]"})]})]})})}},1342:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var l in t)Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}(t,{noSSR:function(){return noSSR},default:function(){return dynamic}});let a=l(38754),n=(l(67294),a._(l(24304)));function convertModule(e){return{default:(null==e?void 0:e.default)||e}}function noSSR(e,t){return delete t.webpack,delete t.modules,e(t)}function dynamic(e,t){let l=n.default,a={loading:e=>{let{error:t,isLoading:l,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e}),a={...a,...t};let r=a.loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?l({...a,loader:()=>null!=r?r().then(convertModule):Promise.resolve(convertModule(()=>null))}):(delete a.webpack,delete a.modules,noSSR(l,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30043:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let a=l(38754),n=a._(l(67294)),r=n.default.createContext(null)},24304:function(e,t,l){"use strict";/**
2@copyright (c) 2017-present James Kyle <[email protected]>
3 MIT License
4 Permission is hereby granted, free of charge, to any person obtaining
5a copy of this software and associated documentation files (the
6"Software"), to deal in the Software without restriction, including
7without limitation the rights to use, copy, modify, merge, publish,
8distribute, sublicense, and/or sell copies of the Software, and to
9permit persons to whom the Software is furnished to do so, subject to
10the following conditions:
11 The above copyright notice and this permission notice shall be
12included in all copies or substantial portions of the Software.
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
17LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
20*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let a=l(38754),n=a._(l(67294)),r=l(30043),i=[],s=[],o=!1;function load(e){let t=e(),l={loading:!0,loaded:null,error:null};return l.promise=t.then(e=>(l.loading=!1,l.loaded=e,e)).catch(e=>{throw l.loading=!1,l.error=e,e}),l}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e}
20,this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(e){return function(e,t){let l=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function init(){if(!a){let t=new LoadableSubscription(e,l);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!o){let e=l.webpack?l.webpack():l.modules;e&&s.push(t=>{for(let l of e)if(t.includes(l))return init()})}function LoadableComponent(e,t){!function(){init();let e=n.default.useContext(r.LoadableContext);e&&Array.isArray(l.modules)&&l.modules.forEach(t=>{e(t)})}();let i=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return i.loading||i.error?n.default.createElement(l.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:a.retry}):i.loaded?n.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",n.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,t){let l=[];for(;e.length;){let a=e.pop();l.push(a(t))}return Promise.all(l).then(()=>{if(e.length)return flushInitializers(e,t)})}Loadable.preloadAll=()=>new Promise((e,t)=>{flushInitializers(i).then(e,t)}),Loadable.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let res=()=>(o=!0,t());flushInitializers(s,e).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let d=Loadable},57871:function(e,t,l){"use strict";var a=l(85893),n=l(41664),r=l.n(n);l(67294);var i=l(24836),s=l(63736),o=l(2804),d=l(4728),u=l(11163),c=l(75689);t.Z=e=>{let{className:t="fixed bottom-6 right-3"}=e,l=(0,u.useRouter)(),n=(0,o.sJ)(d.K);return(0,a.jsxs)(r(),{href:"https://popchill.onelink.me/TEC1/uxlqydil",className:"".concat(t," bg-primary text-white text-sm rounded-full  z-20  py-1.5 px-3 flex w-[72px] items-center justify-center"),style:{boxShadow:"0px 3px 10px 0px rgba(0, 0, 0, 0.15)"},onClick:()=>{let e={click_source:"floating_button",user_status:"login"===n.status?"registered":"unregistered",page_path:"/"+l.locale+l.asPath};s.sendGA4Event("upload_item_clicked",e),c.rr("trackCustom","upload_item_clicked",e)},children:[(0,a.jsx)(i.Z,{width:"14",height:"14"}),(0,a.jsx)("span",{className:"ml-1.5",children:"上架"})]})}},52289:function(e,t,l){"use strict";l.d(t,{Z:function(){return CreateProductMenuMweb}});var a=l(85893),n=l(67294),r=l(41664),i=l.n(r),s=l(24836),o=l(63736),d=l(75689),u=l(2804),c=l(4728),h=l(11163);function CreateProductMenuMweb(e){let{className:t=""}=e,[l,r]=(0,n.useState)(!1),p=(0,n.useRef)(null),m=(0,h.useRouter)(),f=(0,u.sJ)(c.K);(0,n.useEffect)(()=>{let handleClickOutside=e=>{p.current&&!p.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",handleClickOutside),document.addEventListener("touchstart",handleClickOutside),()=>{document.removeEventListener("mousedown",handleClickOutside),document.removeEventListener("touchstart",handleClickOutside)}},[]);let trackClick=e=>{if("selflisting"===e){let e={click_source:"product_create",type:"product_create",user_status:"login"===f.status?"registered":"unregistered",page_path:"/"+m.locale+m.asPath};o.sendGA4Event("click",e),d.rr("trackCustom","product_create",e)}else o.sendGA4Event("click",{click_source:"product_create",type:"consignment"})};return(0,a.jsxs)("div",{ref:p,className:"".concat(t," fixed bottom-6 right-3 z-30"),children:[(0,a.jsxs)("div",{className:"absolute bottom-12 right-0 flex flex-col items-end gap-2 transition-all duration-200 ".concat(l?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none"),children:[(0,a.jsx)(i(),{href:"https://popchill-sh
20ort.onelink.me/gc8z/tvuoqahg",onClick:()=>trackClick("consignment"),className:"w-[24vw] block bg-white text-primary text-sm font-semibold rounded-full py-2 box-shadow-10 text-center",children:"寄賣/賣斷"}),(0,a.jsx)(i(),{href:"https://popchill.onelink.me/TEC1/uxlqydil",onClick:()=>trackClick("selflisting"),className:"w-[21.333vw] block bg-white text-primary text-sm font-semibold rounded-full  py-2 box-shadow-10 text-center",children:"自助上架"})]}),(0,a.jsxs)("button",{onClick:()=>r(e=>!e),className:"bg-primary text-white text-sm rounded-full py-2 px-3 flex w-[72px] items-center justify-center shadow-10 active:scale-95 transition-transform",children:[(0,a.jsx)(s.Z,{width:"14",height:"14"}),(0,a.jsx)("span",{className:"ml-1.5",children:"上架"})]})]})}},24836:function(e,t,l){"use strict";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:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{id:"Path 203",d:"M13.2227 6.2223H7.77695V0.778057C7.77695 0.571898 7.69506 0.374183 7.54928 0.228406C7.4035 0.0826299 7.20579 0.000732422 6.99963 0.000732422C6.79347 0.000732422 6.59576 0.0826299 6.44998 0.228406C6.3042 0.374183 6.2223 0.571898 6.2223 0.778057V6.2223H0.778067C0.675925 6.2222 0.574765 6.24223 0.48037 6.28125C0.385975 6.32027 0.300196 6.37752 0.227936 6.44971C0.155676 6.5219 0.0983524 6.60762 0.0592418 6.70198C0.0201313 6.79634 3.07742e-07 6.89748 3.54242e-07 6.99962C-9.72158e-05 7.10182 0.0199616 7.20304 0.0590286 7.29749C0.0980955 7.39193 0.155404 7.47774 0.227673 7.55001C0.299943 7.62228 0.385755 7.67959 0.480198 7.71866C0.574642 7.75773 0.675862 7.77778 0.778067 7.77769H6.2223V13.2219C6.2223 13.4281 6.3042 13.6258 6.44998 13.7716C6.59576 13.9174 6.79347 13.9992 6.99963 13.9992C7.20579 13.9992 7.4035 13.9174 7.54928 13.7716C7.69506 13.6258 7.77695 13.4281 7.77695 13.2219V7.77769H13.2227C13.3248 7.77769 13.426 7.75756 13.5203 7.71844C13.6147 7.67933 13.7004 7.62201 13.7726 7.54975C13.8448 7.47749 13.902 7.39171 13.941 7.29732C13.9801 7.20292 14.0001 7.10176 14 6.99962C14 6.79346 13.9181 6.59574 13.7723 6.44997C13.6265 6.30419 13.4288 6.2223 13.2227 6.2223Z",fill:"white"})})}},51959:function(e,t,l){"use strict";l.d(t,{Z:function(){return layout_MainLayout}});var a=l(85893),n=l(67294),r=l(21179),i=l(11163),s=l(96465);l(44300);var o=l(58727),d=l(43971),u=l(45163),c=l(41795),h=l(31955),p=l(5152),m=l.n(p),f=l(52289),b=l(57871),_=l(2804),g=l(47872);let x=m()(()=>l.e(797).then(l.bind(l,797)),{loadableGenerated:{webpack:()=>[797]},ssr:!1});var layout_MainLayout=e=>{var t;let{children:l,headerHidden:p=!1,footerHidden:m=!1,subheaderHidden:y=!1,isAppWebview:w=!1,className:C="",showDownloadAppButton:v=!1,showCreateProductButton:k=!1}=e;(0,_.sJ)(g.KL);let j=(0,i.useRouter)(),{isLg:P}=(0,r.Z)(),{isWebview:L}=(0,c.Z)(),E=h.Z.get("in_popchill_app"),N=w||j.query&&"1"===j.query.inapp||L&&E,[Z,O]=(0,n.useState)(!1),[M,S]=(0,n.useState)(!1),T=null!==(t=h.Z.get("downloadAppTipHide"))&&void 0!==t?t:null;return(0,n.useEffect)(()=>{let e,t;if(!v||Z||T||N||P){S(!1);return}let schedulePanel=()=>{e=window.setTimeout(()=>{S(!0)},1200)};return"requestIdleCallback"in window?t=window.requestIdleCallback(schedulePanel,{timeout:2e3}):schedulePanel(),()=>{e&&window.clearTimeout(e),t&&"cancelIdleCallback"in window&&window.cancelIdleCallback(t)}},[T,Z,N,P,v]),(0,a.jsx)("div",{className:"".concat(C," relative"),children:N?(0,a.jsx)("main",{className:"min-h-screen",children:l}):(0,a.jsxs)(a.Fragment,{children:[!p&&(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(u.h,{})}),!p&&(0,a.jsx)("div",{className:"block lg:hidden",children:(0,a.jsx)(o.Z,{})}),!y&&(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)(d.f,{})}),(0,a.jsx)("main",{className:"min-h-[812px] bg-gray-lighter lg:bg-inherit pb-[50px] lg:pb-0",children:l}),!m&&(0,a.jsx)(s.Z,{}),(0,a.jsxs)("div",{className:"block lg:hidden",children:[v&&M&&!Z&&!T&&(0,a.jsx)(x,{handle:()=>{let e=new Date;e.setDate(e.getDate()+1),h.Z.set("downloadAppTipHide","1",{expires:e}),O(!0)}}
20),k&&(0,a.jsx)(a.Fragment,{children:"zh-TW"!==j.locale?(0,a.jsx)(b.Z,{}):(0,a.jsx)(f.Z,{})})]})]})})}},5152:function(e,t,l){e.exports=l(1342)}}]);

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.