1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4082],{2493:function(e,t,n){var r=n(5893),a=n(4945),c=n(9795),o=n(1664),i=n.n(o),l=function(e){var t=e.item,n=e.index,o=e.color,l=e.section,s=t.title;return(0,r.jsx)("div",{className:"p-2 pt-0 ".concat(n%2&&"ml-0 lg:ml-[8vw]"),children:(0,r.jsx)(i(),{href:"/".concat(void 0===l?"news":l,"/").concat(decodeURIComponent(t.slug)),children:(0,r.jsxs)("a",{className:"opacity-100 hover:opacity-60 transition-opacity duration-500 ease-out",children:[(0,r.jsx)(a.Z,{title:s,className:"lg:w-full lowercase text-4xl lg:text-8xl",breakWords:!1}),(0,r.jsx)(c.Z,{color:o,dateRange:t.acf.date_range||null,className:"text-xs md:text-sm lg:text-base px-1"})]})})})};t.Z=l},1766:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(5893),a=n(7294);n(5675);var c=n(5152),o=n.n(c);n(6873),n(9554),o()(function(){return n.e(2004).then(n.bind(n,2004))},{loadableGenerated:{webpack:function(){return[2004]}},ssr:!1});var i=n(4945),l=n(9795),s=n(9412),u=n(1163),d=n(8504),f=n(6038),p=function(e){var t=e.item,n=e.color,c=e.children,o=function(e){b.current=f.p8.timeline().to(h.current,{opacity:0,duration:.5,onComplete:function(){N(e),_(!1)}})},p=(0,u.useRouter)(),m=p.locale,v=p.query.slug,g=(0,a.useRef)(null),h=(0,a.useRef)(null),x=(0,a.useRef)([]),b=(0,a.useRef)(null),j=(0,a.useState)(m),y=j[0],N=j[1],w=(0,a.useState)(!0),Z=w[0],_=w[1],k=(0,a.useState)("auto"),R=k[0],E=k[1],P=(0,d.Z)(),C=t.title,S=[{label:"Eng",value:"en",enabled:!!t.acf.description},{label:"䏿",value:"zh",enabled:!!t.acf.description_chinese},];return(0,a.useEffect)(function(){N(m)},[m]),(0,a.useEffect)(function(){f.p8.set(h.current,{height:"auto"})},[v]),(0,a.useEffect)(function(){if(g.current){var e,t,n,r=null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect(),a=r.top,c=Math.floor(r.height);if(x.current[y]){var o=(null===(t=null==x?void 0:x.current[y])||void 0===t?void 0:t.getBoundingClientRect()).height,i=null===(n=null==x?void 0:x.current[y])||void 0===n?void 0:n.offsetTop;_(!0),E(Math.floor(i-a+o<c?c-i+a:o))}}},[y,g,x,P]),(0,a.useEffect)(function(){if(Z)return b.current=f.p8.timeline().to(h.current,{height:R,duration:1,ease:"power2.inOut"}).to(h.current,{opacity:1,duration:.5,ease:"power2.out"},"-=1"),function(){b.current.kill()}},[R,Z]),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-2",children:[(0,r.jsx)("div",{ref:g,className:"relative lg:sticky lg:top-10 mb-10 lg:mb-0 h-min",children:t.acf.images&&c}),(0,r.jsxs)("div",{className:"px-5 lg:px-10 p-2 pt-0",children:[(0,r.jsx)(i.Z,{title:C,className:"mb-5 lg:mb-2 text-5xl",breakWords:!1}),!t.acf.timeslots&&(0,r.jsx)(l.Z,{color:n,dateRange:t.acf.date_range||null}),t.acf.timeslots&&(0,r.jsx)("div",{className:"flex gap-3",children:t.acf.timeslots.map(function(e,t){return(0,r.jsx)(l.Z,{color:n,dateRange:e.date||null,time:e.time},t)})}),(0,r.jsx)("div",{className:"tabs mt-5 mb-10",children:S.map(function(e){var t=e.label,n=e.value;return e.enabled&&(0,r.jsx)("a",{className:"tab tab-bordered ".concat(n==y?"tab-active":""),onClick:function(){o(n)},children:t},n)})}),(0,r.jsxs)("div",{ref:h,children:["en"==y&&(0,r.jsx)(s.Z,{ref:function(e){return x.current[y]=e},children:t.acf.description}),"zh"==y&&(0,r.jsx)(s.Z,{ref:function(e){return x.current[y]=e},children:t.acf.description_chinese})]})]})]})}},9795:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(2222),a=n(5893),c=n(2416);function o(e){e.children;var t=e.color,n=e.dateRange,o=void 0===n?null:n,i=e.time,l=void 0===i?null:i,s=e.className,u=void 0===o?"undefined":(0,r.Z)(o);if(("string"!=u||o)&&("object"!=u||o.from))return(0,a.jsxs)("div",{className:"w-max ".concat(c.bG.bg[void 0===t?"red":t]," ").concat(void 0===s?"px-1 py-0.5 md:px-2 md:py-1 my-3 lg:my-4":s),children:[(0,a.jsxs)("span",{className:"text-sm lg:text-base",children:["string"==u&&""!=o&&o,"object"==u&&""!=o.from&&o.from,"object"==u&&o.to&&o.to!=o.from&&" - ".concat(null==o?void 0:o.to)]}),l&&(0,a.jsx)("span",{className:"text-sm lg:text-base ml-2",children:l})]})}},5449:function(e,t,n){n.d(t,{K:function(){return u}});var r=n(6492),a=n(7568),c=n(6042),o=n(9396),i=n(655),l=n(120);function s(){return(s=(0,a.Z)(function(e){var t,n,r,a,s,u,d,f,p,m,v,g,h,x,b,j;return(0,i.__generator)(this,function(i){switch(i.label){case 0:return n=void 0===(t=e.postType)?"news":t,a=void 0===(r=e.perPage)?5:r,u=void 0===(s=e.pageParam)?1:s,f=void 0===(d=e.fields)?"id,title,slug,acf.date_range":d,m=void 0===(p=e.exclude)?null:p,g=void 0===(v=e.offset)?null:v,h="".concat("https://api.videotage.org.hk/wp-json/wp/v2/").concat(n,"?_fields=").concat(f,"&acf_format=standard&orderby=menu_order&order=asc&per_page=").concat(a,"&page=").concat(u).
1concat(m?"&exclude=".concat(m):"").concat(g?"&offset=".concat(g):""),(0,l.LE)(h),[4,fetch(h).catch(l.S3)];case 1:if(!(x=i.sent()).ok)return[2,Promise.reject(JSON.stringify(x))];return[4,x.json()];case 2:return[2,i.sent().map(function(e){return(0,o.Z)((0,c.Z)({},e),{title:(0,l.$Q)(e.title.rendered||null,e.acf||null)})})]}})})).apply(this,arguments)}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["news",pageParam],t=arguments.length>1?arguments[1]:void 0,n=t.perPage,a=void 0===n?5:n,c=t.postType,o=void 0===c?"news":c,i=t.fields,l=t.exclude,u=void 0===l?null:l,d=t.offset,f=void 0===d?null:d,p=t.enabled;return(0,r.a)(e,function(e){var t=e.pageParam;return function(e){return s.apply(this,arguments)}({postType:o,pageParam:void 0===t?1:t,perPage:a,exclude:u,offset:f,fields:i})},{enabled:p})}},2222:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return e&&e.constructor===Symbol?"symbol":typeof e}}}]);
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.