PageSourceSearch

https://shop.wordup.com.tw/_next/static/chunks/pages/campaign/[slug]-3c4808e743058ae6.js

js wordup.com.tw collected 2026-09-24 09:45:20 UTC 8,124 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]="5fe45357-08a0-4ec1-89b3-d79725b465e3",e._sentryDebugIdIdentifier="sentry-dbid-5fe45357-08a0-4ec1-89b3-d79725b465e3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8930],{33826:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/campaign/[slug]",function(){return a(93262)}])},44626:(e,t,a)=>{"use strict";a.d(t,{KV:()=>i,L0:()=>n,Z3:()=>l,gQ:()=>r});let r="public_administrative_courses",n=["public-exam-questions"],l=["picked_product_list","crowdfunding_product","recommended_product_list","time_limited_product_list"],i="public-administrative-courses-picked-product-list"},93262:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>j,default:()=>T});var r=a(2860),n=a(51652),l=a(71024),i=a.n(l),o=a(8588),s=a.n(o);let c=e=>{let{mobileBannerBgUrl:t,mobileBannerUrl:a,alt:n}=e;return(0,r.Y)("header",{className:"mobileUp:hidden block bg-cover",style:{backgroundImage:"url(".concat(t,")")},children:(0,r.Y)(s(),{src:a,alt:n,width:414,height:606,style:{width:"100%",height:"auto"}})})},p=e=>{let{desktopBannerUrl:t,desktopBannerBgUrl:a,alt:n}=e;return(0,r.FD)("header",{className:"mobileUp:block relative hidden",children:[(0,r.Y)(s(),{src:a,alt:n,className:"z-0",fill:!0,style:{objectFit:"cover"},quality:60,sizes:"100vw"}),(0,r.Y)(s(),{src:t,alt:n,width:800,height:255,style:{width:"auto",height:"100%"},className:"relative z-10 mx-auto max-w-full"})]})};var d=a(55729),u=a(43124),m=a(26515),h=a(69001),g=a(400),b=a(32678);let w="data-track-event",_="data-track-",f="text/x-strapi-deferred-script",v=(0,d.memo)(e=>{let{html:t,rawCss:a,className:n}=e,l=(0,d.useId)().replace(/:/g,"-"),i=(0,d.useRef)(null),o=(0,d.useMemo)(()=>a?(0,u.GJ)(a,l):"",[a,l]),s=(0,d.useMemo)(()=>(0,h.F)((0,g._)(t.replace(/<!DOCTYPE[^>]*>/gi,"").replace(/<\/?(?:html|head|body)\b[^>]*>/gi,"").replace(/<meta\b[^>]*>/gi,"").replace(/<link\b[^>]*\/?>/gi,"").replace(/<title\b[^>]*>[\s\S]*?<\/title\s*>/gi,"").replace(/<script(\s+[^>]*)?>/gi,(e,t)=>{let a=(null!=t?t:"").replace(/\s+type\s*=\s*(?:"[^"]*"|'[^']*'|\S+)/gi,"");return"<script".concat(a,' type="').concat(f,'">')}))),[t]);(0,d.useEffect)(()=>{let e=i.current;e&&e.querySelectorAll('script[type="'.concat(f,'"]')).forEach(e=>{var t;let a=document.createElement("script");for(let t of Array.from(e.attributes))"type"!==t.name.toLowerCase()&&a.setAttribute(t.name,t.value);a.text=null!=(t=e.textContent)?t:"",e.replaceWith(a)})},[s]);let c=(0,d.useCallback)(e=>{let t=e.target;if(!t)return;let a=t.closest("[".concat(w,"]"));if(!a)return;let r=a.getAttribute(w);r&&(0,b.sendGtagEvent)({name:r,params:(e=>{let t={};for(let a of Array.from(e.attributes))a.name.startsWith(_)&&a.name!==w&&(t[a.name.slice(_.length)]=a.value);return t})(a)})},[]);return(0,r.FD)(r.FK,{children:[(0,r.Y)(m.A,{html:s}),o&&(0,r.Y)("style",{dangerouslySetInnerHTML:{__html:o}}),(0,r.Y)("div",{ref:i,id:"scope-".concat(l),className:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},onClick:c})]})});var x=a(97043),y=a(42011);let k=e=>{let{pageComponentResponse:t}=e;return(0,d.useEffect)(()=>{(e=>{try{(e=>{let{pageComponentResponse:t}=e,{extraTrackingPixel:a}=t.meta;a&&(y.Lw.initPixel(a),y.Lw.external.pageView(a))})(e),(e=>{let{pageComponentResponse:t}=e,{extraTrackingGa:a,extraTrackingGoogleAds:r}=t.meta;a&&y.w6.external.pageView(a),r&&r.pageView&&y.w6.external.sendEvent({name:"conversion",params:{page_location:window.location.href},gtagID:r.pageView})})(e)}catch(e){(0,x.me)({err:e,context:{key:"campaign Page",message:"page visited"}})}})({pageComponentResponse:t})},[]),null};var Y=a(44626),C=a(78547),E=a(6329);let I=function(){let{enabled:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,a]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(!e||t)return;if(void 0!==window.google_tag_manager)return void a(!0);let r=window.setInterval(()=>{void 0!==window.google_tag_manager&&(window.clearInterval(r),a(!0))},50);return()=>window.clearInterval(r)},[e,t]),t}
1,N="https://public.wordup.com.tw/shop/products/manual/hero_desk_update.jpg",F="https://public.wordup.com.tw/shop/products/manual/hero_mobile.png",D=e=>e.includes(N)||e.includes(F)?e.split(N).join("https://public.wordup.com.tw/web-assets/public-exam-campaign-page/3840_1760.jpg").split(F).join("https://public.wordup.com.tw/web-assets/public-exam-campaign-page/750_1208.jpg").replace(/(background-image:\s*)linear-gradient\([^;{}]*?\)\s*,\s*(url\()/g,"$1$2")+"\n.hero__title,.hero__subtitle{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}\n.hero__cta{margin-top:auto!important}\n@media (max-width:767px){.hero{justify-content:flex-end!important;min-height:calc(100vw * 1208 / 750 + 28px)!important}}\n@media (min-width:768px) and (max-width:1023px){.hero{justify-content:flex-end!important;min-height:calc(100vw * 1760 / 3840 + 56px)!important}}\n@media (min-width:1024px){.hero{aspect-ratio:auto!important;justify-content:flex-end!important;background-size:100% calc(100vw * 1760 / 3840)!important;background-position:top center!important;min-height:calc(100vw * 1760 / 3840 + 96px)!important}}\n":(E.O_||console.warn("[public_administrative_courses hero A/B] expected hero background URLs not found in heroCss; serving variant A"),e),S=i()(()=>a.e(7806).then(a.bind(a,7806)),{loadableGenerated:{webpack:()=>[7806]},ssr:!1}),L=i()(()=>Promise.all([a.e(4549),a.e(187),a.e(3331),a.e(9275),a.e(5219)]).then(a.bind(a,35219)),{loadableGenerated:{webpack:()=>[35219]},ssr:!1}),U=i()(()=>Promise.all([a.e(8004),a.e(8434),a.e(2935)]).then(a.bind(a,53305)).then(e=>{let{PageComponents:t}=e;return t}),{loadableGenerated:{webpack:()=>[53305]},ssr:!1});var j=!0;let T=e=>{var t,a;let{slug:l,pageComponentResponse:i,customPageContent:o}=e,s=(e=>{let{slug:t,heroCss:a}=e,r=(0,C.mf)(),n=!!a&&t===Y.gQ,[l,i]=(0,d.useState)(!1);(0,d.useEffect)(()=>{n&&i(!0)},[n]);let o=(()=>{if(E.O_)return null;let e=new URLSearchParams(window.location.search).get("hero_variant");return"a"===e||"b"===e?e:null})(),s=I({enabled:n&&!o});return a&&t===Y.gQ&&l?o?"b"===o?D(a):a:s&&(null==r?void 0:r.getFeatureValue("shop-public_administrative_courses-hero",!1))===!0?D(a):a:a})({slug:l,heroCss:null==o?void 0:o.heroCss});if(!l)return null;let{name:u,description:m,imageUrls:h,introHtml:g,ogImage:b}=null!=(t=null==i?void 0:i.meta.page.attributes)?t:{},{seoTitle:w,seoDescription:_}=null!=(a=null==i?void 0:i.meta)?a:{},{desktopBannerBgUrl:f,desktopBannerUrl:x,mobileBannerBgUrl:y,mobileBannerUrl:N,ogImageUrl:F}=h||{},j=b||F||x,T={title:u,titleTemplate:"%s",description:m,openGraph:{title:w||u,description:_||m,images:j?[{url:j,alt:"".concat(l,"-cover")}]:void 0,url:"".concat("https://shop.wordup.com.tw","/campaign/").concat(l)}},A=!!o;return(0,r.FD)(r.FK,{children:[(0,r.Y)(n.bV,{...T}),(0,r.FD)("div",{className:"relative w-full text-gray-800",children:[!A&&(0,r.FD)(r.FK,{children:[N&&y&&(0,r.Y)(c,{alt:l,mobileBannerUrl:N,mobileBannerBgUrl:y}),x&&f&&(0,r.Y)(p,{alt:l,desktopBannerUrl:x,desktopBannerBgUrl:f})]}),g?(0,r.Y)("div",{children:(0,r.Y)("div",{className:"mobileUp:py-4 mobileUp:px-0 [&_a]:border-primary-500 [&_a]:text-primary-500 mx-auto my-0 flex w-full max-w-[920px] flex-col items-center gap-2 p-4 text-center leading-[150%] [&_*]:m-0 [&_a]:border-b [&_a]:no-underline [&_h2]:text-xl [&_p]:text-base",dangerouslySetInnerHTML:{__html:g}})}):null,A?(0,r.FD)(r.FK,{children:[o.navbarHtml?(0,r.Y)(v,{html:o.navbarHtml,rawCss:o.navbarCss,className:"contents"}):null,(0,r.Y)(v,{html:o.heroHtml,rawCss:s}),Y.L0.includes(l)?(0,r.Y)(L,{}):(0,r.Y)(S,{pageComponentResponse:i}),(0,r.Y)(v,{html:o.footerHtml,rawCss:o.footerCss})]}):i?(0,r.Y)(U,{pageComponentResponse:i}):null,i&&(0,r.Y)(k,{pageComponentResponse:i})]})]})}}},e=>{e.O(0,[4917,2045,3124,636,6593,8792],()=>e(e.s=33826)),_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.