PageSourceSearch

https://shop.wordup.com.tw/_next/static/chunks/pages/product/%5Bid%5D-f332659efe4cc42f.js

js wordup.com.tw collected 2026-10-01 12:02:38 UTC 6,158 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9e550a17-cbb0-461a-a7b4-28bb91416ffb",e._sentryDebugIdIdentifier="sentry-dbid-9e550a17-cbb0-461a-a7b4-28bb91416ffb")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1697],{34675:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(2860),l=r(84660),i=r(49511);let n=e=>{let{children:t,isVisible:r,className:n}=e;return(0,a.Y)("header",{className:(0,l.Q)("transition-[opacity,top] duration-200 ease-linear","z-navbar sticky left-0 text-center opacity-0",(0,i.Al)()?"top-[var(--app-nav-height,44px)]":"top-[var(--nav-top,var(--browser-main-nav-height))]",r?"opacity-100":"hidden"),children:(0,a.Y)("div",{className:(0,l.Q)("bg-grayscale-50",n),children:t})})}},65261:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(2860),l=r(98986),i=r(10764),n=r(57165),o=r(83855),u=r(47126),d=r(15553),s=r(34675);let c=e=>{let{t}=(0,l.Bd)(),{data:r}=((e,t)=>{let r="referrer"in e?e.referrer:`${e.productId}-${e.referralCode}`,a=async()=>{if("referrer"in e)return e.referrer;let{productId:t,referralCode:r=window.sessionStorage.getItem(i.aO)}=e;return t&&r?(await (e=>{let{referralCode:t,productId:r}=e;return(0,o.A)({url:`/v1/shop/referral_codes/${t}/referrer?product_id=${r}`,method:"GET"})})({productId:t,referralCode:r})).data.data.partialName:""};return(0,n.Ay)(r,a,t)})(e,{onSuccess:e=>{document.documentElement.style.setProperty("--referral-header-height",e?"37px":"0px")}});return(0,a.FD)(s.A,{isVisible:!!r,className:"flex h-[var(--referral-header-height)] items-center justify-center gap-1",children:[(0,a.Y)(u.I,{type:"handshake",color:"peach-500"}),(0,a.Y)(d.E,{variant:"label_s_500",children:t("crowdin:referral-program.referrer",{referrer:r})})]})}},67945:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>D,default:()=>x});var a=r(2860),l=r(81278),i=r(51652),n=r(10764),o=r(65261),u=r(68552),d=r(22114),s=r(19806),c=r(53921),b=r(55729),p=r(98986),f=r(41642),h=r(6329),m=r(77903),v=r(5415),w=r(83403),g=r(95722),y=r(50870),_=r(93530),A=r(38654),Y=r(36154),E=r(54713),N=r(54980),D=!0;let x=e=>{var t,r,D,x,I;let{videoJsonLd:T,productJsonLd:C,productId:R,product:O,faqList:k}=e,{tabs:P,tabsBarTopRef:S,breadcrumbItems:$}=(e=>{let{product:t}=e,r=(0,b.useRef)(null),a=(0,l.useRouter)(),{t:i,i18n:o}=(0,p.Bd)(),u=a.query.tab,d=(0,v.BR)("pageKey");return(0,b.useEffect)(()=>{if(u&&r.current){let e=r.current.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:e,behavior:"smooth"})}},[u]),(0,b.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get(n.aO);e&&window.sessionStorage.setItem(n.aO,String(e))},[]),{tabs:(0,b.useMemo)(()=>{var e,r,a,l,n,o,u,d,s,c,b,p,f,v,g;let y=(0,m.A)(i(`crowdin:product-detail-page.tabs-v2${h.O_?"":"-staging"}`),[]),_=(null==t||null==(r=t.data)||null==(e=r.attributes)?void 0:e.showRating)&&(null==t||null==(l=t.data)||null==(a=l.attributes)?void 0:a.ratingCount)>0,A=null==t||null==(o=t.data)||null==(n=o.attributes)?void 0:n.showCommentTab,Y=!h.O_||(null==(d=(0,m.A)(i("crowdin:product-detail-page.allow-outcomes-tab-ids"),[]))?void 0:d.includes((null==t||null==(u=t.data)?void 0:u.id)??"")),E=null==t||null==(c=t.data)||null==(s=c.attributes)?void 0:s.showExemplarySharingTab,N=(null==t||null==(p=t.data)||null==(b=p.attributes)?void 0:b.productableType)==="LiveCourse"||(0,m.A)(i(`crowdin:product-detail-page.disable-toc-tab-product-ids${h.O_?"":"-staging"}`),[]).includes(Number(null==t||null==(f=t.data)?void 0:f.id)),D=null==t||null==(g=t.data)||null==(v=g.attributes)?void 0:v.withMoneybackMission,x=(0,w.h)(t);return y.filter(e=>{let{key:t}=e;return"reviews"===t?_:"comments"===t?A:"outcomes"===t?Y:"toc"===t?!N:"moneyback"===t?D:"exemplar"===t?E:"ai_tutor"===t?x:!!t})},[t,i]),tabsBarTopRef:r,breadcrumbItems:(0,b.useMemo)(()=>{var e,r,a,l,n,u;let s=null==t||null==(l=t.meta)||null==(a=l.categories)||null==(r=a[0])||null==(e=r[0])?void 0:e.slug,c=[{text:i("common:common.all_materials"),href:f.H.SEARCH_TEMPLATE},{text:(null==t||null==(u=t.data)||null==(n=u.attributes)?void 0:n.name)??""}];return d&&c.splice(0,1,{text:i("common.to_home_page"),href:f.H.BRAND(d)}),s&&o&&"function"==typeof o.exists&&o.exists(`crowdin:search-page.filters.subject.${s}`)&&!d&&c.splice(1,0,{text:i(`crowdin:search-page.filters.subject.${s}`),href:f.H.SEARCH({subject:s})}),c},[t,d,o,i])}})({product:O}),F=(0,l.useRouter)();if(!(null==O?void 0:O.data))return null;let M=null==(D=O.data.attributes)||null==(r=D.variants.filter(e=>null===e.availableQty||e.availableQty>0))||null==(t=r[0])?void 0:t.id;return(0,a.FD)(a.FK,{children:[(0,a.Y)(i.bV,{...c.A.basic({apiData:O,uri:"https://shop.wordup.com.tw"+F.asPath,referralCode:F.query[n.aO]})}),(0,a.Y)(i.gk,{itemListElements:c.A.breadcrumbJsonLd({id:R,breadcrumbItems:$})}),(0,a.Y)(i.wc,{...C}),(0,a.Y)(i.Q2,{mainEntity:k}),T&&(0,a.Y)(i.WR,{...T}),(null==(I=O.data)||null==(x=I.attributes)?void 0:x.productableType)==="LiveCourse"&&(0,a.Y)(i.Gz,{courseName:O.data.attributes.name,description:O.data.attributes.description||"",provider:{name:"WORD UP",url:"https://shop.wordup.com.tw"}}),(0,a.Y)(o.A,{productId:R,referralCode:F.query[n.aO]}),(0,a.Y)(s.A,{apiData:O,children:(0,a.FD)(N.MW,{children:[(0,a.Y)(A.A,{}),(0,a.FD)("div",{className:"mobileUp:pb-8 relative flex h-full w-full justify-center pb-36 pt-300 lg:pt-1000",children:[(0,a.FD)("div",{className:g.G,children:[(0,a.Y)("div",{className:"h-auto w-full lg:col-start-2 lg:row-start-1 lg:row-end-3",children:O&&(0,a.Y)(d.A,{})}),(0,a.Y)("div",{ref:S,children:(0,a.FD)(_.A,{tabs:P,productId:R,children:[O&&(0,a.Y)(y.A,{initialMaterialId:R,defaultProductVariantId:M,tocPreloadData:e.materialAllToc}),(0,a.Y)(E.A,{tabs:P})]})})]}),O&&(0,a.Y)(Y.A,{})]}),(0,a.Y)(u.wi,{})]})})]})}},72404:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[id]",function(){return r(67945)}])}},e=>{e.O(0,[3771,2057,8004,4549,187,3331,7198,1136,4917,8749,2045,7757,3776,4980,9951,6210,832,6866,3124,2721,636,6593,8792],()=>e(e.s=72404)),_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.