PageSourceSearch

https://www.hk01.com/_next/static/chunks/pages/download-6b0c540f77602463.js

js hk01.com collected 2026-09-24 08:38:02 UTC 12,482 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7648],{22674:(e,t,n)=>{for(var r=n(60847),o="undefined"==typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!l&&c<i.length;c++)l=o[i[c]+"Request"+a],s=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!l||!s){var u=0,d=0,f=[],p=1e3/60;l=function(e){if(0===f.length){var t=r(),n=Math.max(0,p-(t-u));u=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},s=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}},37267:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>N,default:()=>T});var r=n(89099),o=n(14232),i=n(32938),a=n(81438),l=n(27),s=n(71799),c=n(15039),u=n.n(c),d=n(57694),f=n(34291),p=n(86829),m=n(30915),h=n.n(m),b=n(26924),g=n(37876);let{androidDownloadLink:x,huaweiDownloadLink:y,iosDownloadLink:w}=a.P,v=({className:e,downloadText:t,qrSrc:n})=>{let{0:r,1:i}=(0,o.useState)(null);return(0,o.useEffect)(()=>{(async()=>{let e=await b.T.get("/page-app",{params:{populate:["metadata.ogImage","blocks.image","blocks.qrCodeImage","downloadLogoAppStore","downloadLogoPlayStore","downloadLogoHuawei"]},paramsSerializer:e=>h().stringify(e,{encodeValuesOnly:!0})});i({appStore:e.data.downloadLogoAppStore.url,huawei:e.data.downloadLogoHuawei.url,playStore:e.data.downloadLogoPlayStore.url})})()},[]),(0,g.jsx)("div",{className:u()("overflow-hidden",e),children:(0,g.jsxs)("div",{className:"flex items-end lg:flex-col lg:items-center",children:[(0,g.jsx)("div",{className:"flex w-[168px] justify-center",children:(0,g.jsx)("img",{src:n})}),(0,g.jsxs)("div",{className:"flex-col items-center text-center lg:mt-8",children:[t&&(0,g.jsx)("div",{className:u()("overflow-hidden text-clip whitespace-nowrap lg:mb-3","text-light-p4 lg:text-[24px]","font-semibold"),children:t}),(0,g.jsxs)("div",{className:"mx-0 flex flex-wrap items-center justify-center lg:mb-4",children:[(0,g.jsx)("div",{className:"w-full whitespace-nowrap text-light-n7 lg:mb-3 lg:text-[18px]",children:"掃描 QR Code 或搜尋"}),(0,g.jsxs)("div",{className:u()("flex h-9 w-[95px] shrink-0 items-center justify-center","rounded-full border px-4 py-1","border-light-p4 text-[12px] text-light-p4"),children:[(0,g.jsx)(f.C0,{className:"[&>svg]:size-[18px]"}),(0,g.jsx)("div",{className:"ml-[5px] whitespace-nowrap lg:text-[16px]",children:"香港01"})]})]}),(0,g.jsxs)("div",{className:"grid grid-cols-3 items-center justify-center gap-3 lg:pt-2",children:[(0,g.jsx)(p.A,{className:"max-w-[108px]",href:w,target:"_blank",children:r&&(0,g.jsx)("img",{src:r.appStore})}),(0,g.jsx)(p.A,{className:"max-w-[108px]",href:x,target:"_blank",children:r&&(0,g.jsx)("img",{src:r.playStore})}),(0,g.jsx)(p.A,{className:"max-w-[108px]",href:y,target:"_blank",children:r&&(0,g.jsx)("img",{src:r.huawei})})]})]})]})})},j=(0,o.forwardRef)((e,t)=>{let{downloadText:n,downloadUrl:r}=e;return(0,g.jsx)("div",{ref:t,className:u()("flex p-4 lg:hidden mobileOnly:py-3","rbl-0 fixed"),children:(0,g.jsx)(p.A,{className:u()("h-12 w-full rounded-full py-3","bg-light-p4 text-white","flex items-center justify-center lg:hidden"),href:r,target:"_blank",children:n})})});j.displayName="MobileFixedDownloadButton";let _=e=>{let{descriptionHtml:t,downloadText:n,downloadUrl:r,posterSrc:o,qrSrc:i,title:a}=e;return(0,g.jsxs)(d.XF,{className:"cmp-page-grid",children:[(0,g.jsx)("div",{className:u()("ml-4 md:ml-6 lg:ml-20","mt-4 md:mt-6 lg:mt-20"),children:(0,g.jsx)(p.A,{href:"/",children:(0,g.jsx)(f.DX,{className:"w-[60px] text-light-p4 lg:w-[128px]"})})}),(0,g.jsx)("div",{className:u()("mt-2 md:mt-4 lg:mt-10","mx-4 md:mx-6 lg:mx-4","text-left text-light-p4 lg:text-center","text-[24px] md:text-[32px] lg:text-[32px]","font-semibold"),children:a}),(0,g.jsxs)("div",{className:u()("flex flex-col justify-center lg:flex-row","mx-4 mt
1-2 lg:mt-10","md:mx-6 lg:mx-20 lg:mb-8"),children:[(0,g.jsx)("div",{className:u()("mb-18 lg:mb-0","w-full shrink-0 lg:w-1/3","order-last lg:order-first"),children:(0,g.jsx)("img",{className:"w-full lg:w-4/5",src:o})}),(0,g.jsx)("div",{className:u()("leading-[1.56]","mt-2 lg:mt-0","text-[18px] text-light-n7","mb-10 lg:mx-4"),dangerouslySetInnerHTML:{__html:t}}),(0,g.jsx)(v,{className:"hidden shrink-0 lg:block lg:w-1/3 lg:min-w-[230px]",downloadText:n,qrSrc:i})]}),(0,g.jsx)(d.ib,{disableCompensation:!0,children:()=>(0,g.jsx)(j,{downloadText:n,downloadUrl:r})})]})};var S=n(47597),k=n(4586);let{customAppDownloadPageHost:O}=a.P;var N=!0;let T=e=>{let t=(0,r.useRouter)(),{pageConfig:n}=e,{source:a}=t.query,{appDownloadURL:c,backgroundImageFileName:u,content:d,downloadText:f,imageFileName:p,qrCodeImageFileName:m,title:h}=n??{};return(0,o.useEffect)(()=>{(0,l.u4)(l.sV.CUSTOM_APP_DOWNLOAD_PAGE_VIEW,{eventTitle:h})},[]),(0,g.jsx)(k.A,{value:{trackingOptions:{screen:"download"}},children:(0,g.jsx)(S.A,{className:"bg-contain bg-right-top bg-no-repeat",style:{backgroundImage:`url(${O}/${a}/${u})`},metadata:i.Ay.custom_app_download,children:(0,g.jsx)(_,{descriptionHtml:d,downloadText:f,downloadUrl:(0,s.Nf)(c),posterSrc:`${O}/${a}/${p}`,qrSrc:`${O}/${a}/${m}`,title:h})})})}},57694:(e,t,n)=>{"use strict";t.XF=t.ib=void 0;var r=i(n(66509)),o=i(n(86209));function i(e){return e&&e.__esModule?e:{default:e}}t.ib=r.default,t.XF=o.default,r.default},60847:function(e,t,n){var r=n(99742);(function(){var t,n,o,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=r&&r.hrtime?(e.exports=function(){return(t()-i)/1e6},n=r.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()-1e9*r.uptime()):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return new Date().getTime()-o},o=new Date().getTime())}).call(this)},66509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(14232),i=s(o),a=s(n(98477)),l=s(n(95062));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var u=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={isSticky:!1,wasSticky:!1,style:{}},r.handleContainerEvent=function(e){var t=e.distanceFromTop,n=e.distanceFromBottom,o=e.eventSource,i=r.context.getParent(),a=!1;r.props.relative&&(a=o!==i,t=-(o.scrollTop+o.offsetTop)+r.placeholder.offsetTop);var l=r.placeholder.getBoundingClientRect(),s=r.content.getBoundingClientRect().height,c=n-r.props.bottomOffset-s,u=!!r.state.isSticky,d=a?u:t<=-r.props.topOffset&&n>-r.props.bottomOffset;n=(r.props.relative?i.scrollHeight-i.scrollTop:n)-s;var f=d?{position:"fixed",top:c>0?r.props.relative?i.offsetTop-i.offsetParent.scrollTop:0:c,left:l.left,width:l.width}:{};r.props.disableHardwareAcceleration||(f.transform="translateZ(0)"),r.setState({isSticky:d,wasSticky:u,distanceFromTop:t,distanceFromBottom:n,calculatedHeight:s,style:f})},c(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(t,[{key:"componentWillMount",value:function(){if(!this.context.subscribe)throw TypeError("Expected Sticky to be mounted within StickyContainer");this.context.subscribe(this.handleContainerEvent)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.handleContainerEvent)}},{key:"componentDidUpdate",value:function(){this.placeholder.style.paddingBottom=this.props.disableCompensation?0:(this.state.isSticky?this.state.calculatedHeight:0)+"px"}},{key:"render",value:function(){var e=this,t=i.default.cloneElement(this.props.children({isSticky:this.state.isSticky,wasSticky:this.state.wasSticky,distanceFromTop:this.state.distanceFromTop,distanceFromBottom:this.state.distanceFromBottom,calculatedHeight:this.state.calculatedHeight,style:this.state.style}),{ref:function(t){e.content=a.default.findDOMNode(t)}});return i.default.createElement("div",null,i.default.createElement("div",{ref:function(t){return e.placeholder=t}}),t)}}]),t}(o.Component);u.propTypes={topOffset:l.default.number,bottomOffset:l.default.number,relative:l.default.bool,children:l.default.func.isRequired},u.defaultProps={relative:!1,topOffset:0,bottomOffset:0,disableCompensation:!1,disableHardwareAcceleration:!1},u.contextTypes={subscribe:l.default.func,unsubscribe:l.default.func,getParent:l.default.func},t.default=u},75380:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/download",function(){return n(37267)}])},86209:(e,t,n)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(14232),a=c(i),l=c(n(95062)),s=c(n(22674));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var d=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,r,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.events=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],r.subscribers=[],r.rafHandle=null,r.subscribe=function(e){r.subscribers=r.subscribers.concat(e)},r.unsubscribe=function(e){r.subscribers=r.subscribers.filter(function(t){return t!==e})},r.notifySubscribers=function(e){if(!r.framePending){var t=e.currentTarget;r.rafHandle=(0,s.default)(function(){r.framePending=!1;var e=r.node.getBoundingClientRect(),n=e.top,o=e.bottom;r.subscribers.forEach(function(e){return e({distanceFromTop:n,distanceFromBottom:o,eventSource:t===window?document.body:r.node})})}),r.framePending=!0}},r.getParent=function(){return r.node},u(r,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),o(t,[{key:"getChildContext",value:function(){return{subscribe:this.subscribe,unsubscribe:this.unsubscribe,getParent:this.getParent}}},{key:"componentDidMount",value:function(){var e=this;this.events.forEach(function(t){return window.addEventListener(t,e.notifySubscribers)})}},{key:"componentWillUnmount",value:function(){var e=this;this.rafHandle&&(s.default.cancel(this.rafHandle),this.rafHandle=null),this.events.forEach(function(t){return window.removeEventListener(t,e.notifySubscribers)})}},{key:"render",value:function(){var e=this;return a.default.createElement("div",r({},this.props,{ref:function(t){return e.node=t},onScroll:this.notifySubscribers,onTouchStart:this.notifySubscribers,onTouchMove:this.notifySubscribers,onTouchEnd:this.notifySubscribers}))}}]),t}(i.PureComponent);d.childContextTypes={subscribe:l.default.func,unsubscribe:l.default.func,getParent:l.default.func},t.default=d}},e=>{e.O(0,[3314,636,6593,8792],()=>e(e.s=75380)),_N_E=e.O()}]);
2//# sourceMappingURL=download-6b0c540f77602463.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.