(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{673:function(t,e,r){"use strict";r.r(e);var n=r(338),o=r(20),c=r(7),l=r(4),d=(r(49),r(16),r(22),r(449),r(46),r(58),r(34),r(450),r(36),r(40),r(21),r(9),r(111),r(60),r(24),r(112),r(113),r(114),r(115),r(116),r(117),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(23),r(27),r(69)),h=r(91),_=r(683);function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){Object(c.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w={data:function(){return{weeksList:["Sun.","Mon.","Tue.","Wed.","Thur.","Fri.","Sat."],monthsSum:[],yearMonth:"",imgPathList:[],imgPath:"",scrollList:[],isScroll:!1,showMore:!1,loading:!0,tabs:[],currentTab:"全部活动",calendarActive:!1,settings:{autoplay:!0,dots:!1,infinite:!0,slidesToShow:3,slidesToScroll:1,vertical:!0,verticalSwiping:!0}}},methods:{tranUrl:function(t){try{return"zh_hk"===this.$i18n.locale?Object(h.h)(t):t}catch(t){console.error(t)}},clickSetMonth:function(t){var e=this,r=this.yearMonth,n="prev"===t?Object(_.e)(r):Object(_.d)(r);this.onChange(n.yearMonth,(function(){e.yearMonth=n.yearMonth,e.createCanlendarData(n.yearMonth)}))},onChange:function(t,e){e()},calcClassName:function(t){var e=t.disable,source=t.source,r=t.isCurrentDay,n=t.isFuture,o="";return!0===n&&(o="state-future"),!1===n&&(o="state-after"),e&&null===source?"gridcell__date non-current":e&&null!==source?"gridcell__date non-current ".concat(o):e||null!==source?e||null===source?"gridcell__date":"gridcell__date ".concat(r?"state-today-has":o):"gridcell__date ".concat(r?"state-today":"")},selectImgPath:function(t){this.currentTab=t},filterTab:function(t){var e=this.currentTab;return"全部活动"===e||!!(Array.isArray(t)&&t.length>0)&&t.includes(e)},createCanlendarData:function(t){var e=this;return Object(l.a)(regeneratorRuntime.mark((function r(){var n,c,l,h,f,w,A,k,m,y,C,element,M,j,O,D,Y,B,x,I,S,F,P;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=Object(d.a)().format("YYYY-MM"),c=e.$i18n.t("id"),e.loading=!0,e.currentTab="全部活动",l=[],h=Object(_.b)(t,"prev"),f=Object(_.a)(h&&h.length>0?h[0]:"".concat(t,"-01")),w=Math.floor(Object(d.a)(t).startOf("month").valueOf()/1e3),A=Math.floor(Object(d.a)(t).endOf("month").valueOf()/1e3),n===t&&Object(d.a)().format("DD")>20&&(A=Math.floor(Object(d.a)().add(20,"d").valueOf()/1e3)),r.next=12,$fetch("/webapi/sqtopic/day",{method:"get",params:{TagId:"",LId:c,BeginTime:w,EndTime:A,Rn:200}});case 12:if(k=r.sent,m=k.data.calendars,Array.isArray(m)){for(y={},C=0;C<m.length;C++)element=m[C],M=Object(d.a)(1e3*element.datetime).format("YYYY-MM-DD"),y[M]?y[M].push(element):y[M]=[element];for(O in j=[],y)Object.hasOwnProperty.call(y,O)&&(D=y[O],j.push({year:O,data:D}));l=j}else l=[];e.isScroll=!0,Y=Object(d.a)(new Date),B=Y.format("YYYY-MM-DD"),x=[],I=[],f.map((function(e,r){var n=(Object(d.a)(e).format("YYYY-MM-DD"),!0),o=Object(d.a)(e).format("YYYY-MM")!==t||!n,source=null,c=e===B,h=null;if(l&&l.length>0)for(var f=0,v=l;f<v.length;f++){var dl=v[f];dl.year!==e||(source=dl.data,dl.year!==B&&Array.isArray(dl.data)&&dl.data.length>0&&(h=!Object(d.a)(e).isBefore(B)))}I.push({date:e,day:Object(d.a)(e).format("DD"),week:Object(_.c)(e),source:source,disable:o,isCurrentDay:c,isFuture:h}),(r+1)%7==0&&(x.push(I),I=[])})),S=x.flat().filter((function(t){return Array.isArray(t.source)})).flat().map((function(t){return t.source.map((function(e){return v(v({},e),{},{isFuture:t.isFuture})}))})).flat(),t===n&&(F=Object(d.a)().format("YYYY-MM-DD"),S=S.filter((function(t){return Object(d.a)(1e3*t.datetime).format("YYYY-MM-DD")>=F}))),P=[],S.forEach((function(t){Array.isArray(t.tags)&&P.push.apply(P,Object(o.a)(t.tags))})),Array.isArray(P)&&(e.tabs=Array.from(new Set(P))),e.scrollList=S,e.monthsSum=x,e.loading=!1;case 30:case"end":return r.stop()}}),r)})))()}},mounted:function(){var t=Object(d.a)(new Date).format("YYYY-MM");this.yearMonth=t,this.createCanlendarData(t)}},A=Object.assign(w,{__name:"Calendar",setup:function(t){return{__sfc:!0,dayjs:Object(n.a)()}}}),k=(r(847),r(12)),component=Object(k.a)(A,(function(){var t=this,e=t._self._c,r=t._self._setupProxy;return e("div",[e("div",{staticClass:"calendar__component"},[e("div",{staticClass:"calendar__header"},[e("h3",{staticClass:"side-title"},[e("a",{attrs:{href:"/".concat(t.$i18n.locale,"/calendar/index.html")}},[t._v("\n "+t._s(t.$t("names.celendar"))+"\n ")])]),t._v(" "),e("a",{staticClass:"calendar__link",attrs:{href:"/".concat(t.$i18n.locale,"/calendar/index.html")}},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M16 2V6",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M8 2V6",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M3 9H21",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19 4H5C3.895 4 3 4.895 3 6V19C3 20.105 3.895 21 5 21H19C20.105 21 21 20.105 21 19V6C21 4.895 20.105 4 19 4Z",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M7.01268 12.7305C6.87468 12.7305 6.76268 12.8425 6.76368 12.9805C6.76368 13.1185 6.87568 13.2305 7.01368 13.2305C7.15168 13.2305 7.26368 13.1185 7.26368 12.9805C7.26368 12.8425 7.15168 12.7305 7.01268 12.7305",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M12.0127 12.7305C11.8747 12.7305 11.7627 12.8425 11.7637 12.9805C11.7637 13.1185 11.8757 13.2305 12.0137 13.2305C12.1517 13.2305 12.2637 13.1185 12.2637 12.9805C12.2637 12.8425 12.1517 12.7305 12.0127 12.7305",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M17.0127 12.7305C16.8747 12.7305 16.7627 12.8425 16.7637 12.9805C16.7637 13.1185 16.8757 13.2305 17.0137 13.2305C17.1517 13.2305 17.2637 13.1185 17.2637 12.9805C17.2637 12.8425 17.1517 12.7305 17.0127 12.7305",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M7.01268 16.7305C6.87468 16.7305 6.76268 16.8425 6.76368 16.9805C6.76368 17.1185 6.87568 17.2305 7.01368 17.2305C7.15168 17.2305 7.26368 17.1185 7.26368 16.9805C7.26368 16.8425 7.15168 16.7305 7.01268 16.7305",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M12.0127 16.7305C11.8747 16.7305 11.7627 16.8425 11.7637 16.9805C11.7637 17.1185 11.8757 17.2305 12.0137 17.2305C12.1517 17.2305 12.2637 17.1185 12.2637 16.9805C12.2637 16.8425 12.1517 16.7305 12.0127 16.7305",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})])]),t._v(" "),e("div",{staticClass:"calendar-share"},[e("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M16 3H21V8",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M14 10L21 3",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),e("path",{attrs:{d:"M19 14V19C19 20.105 18.105 21 17 21H5C3.895 21 3 20.105 3 19V7C3 5.895 3.895 5 5 5H10",stroke:"#848B9A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" "),e("div",{staticClass:"calendar-share-outer"},[e("div",{staticClass:"calendar-share-box"},[e("img",{staticClass:"img-wx",attrs:{src:"https://image.panewslab.com/images/share-img4.png",alt:"PANews QR code"}}),t._v(" "),e("p",[t._v(t._s(t.$tc("share.scan_qrcode_to",0,[t.$t("names.wechat")])))]),t._v(" "),e("a",{staticClass:"line",attrs:{href:"#",target:"_blank"}},[e("img",{staticClass:"img-sina",attrs:{src:"https://image.panewslab.com/images/share-img2.png",alt:"PANews QR code"}}),t._v(" "),e("p",[t._v(t._s(t.$tc("share.to",0,[t.$t("names.weibo")])))])])])])]),t._v(" "),e("div",{staticClass:"calendar__header-center"},[e("span",{staticClass:"calendar__prevMonthBtn",attrs:{"data-title":"上个月"},on:{click:function(e){return t.clickSetMonth("prev")}}},[t._v("\n "+t._s(t.$t("other.calendar.prev_month"))+"\n ")]),t._v(" "),e("span",{staticClass:"calendar__yearMonth"},[t._v("\n "+t._s(t.yearMonth)+"\n "),e("button",{class:[t.calendarActive?"calendar__switchBtn calendar__switchBtnClose":"calendar__switchBtn calendar__switchBtnOpen"],on:{click:function(e){t.calendarActive=!t.calendarActive}}},[e("img",{attrs:{alt:"Icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFUSURBVHgB7dTRbYMwFIVhAxP0Dd7aDQAJqduUvnWbqhOUbtAugrsFXQKoj0QkxzEGzDXk4X5SlEAIOr+EIgRjjDHGGLtSVVWOl7gTrj2xeaIsy/e+7yVe+CxOpjZ8uvZE+kGuxHEsjWuatm1fxQkwXr3V+rlhGIpf5XIcr7hPPd3oULbxNol+8KekafoURZH5vOVZlj12XfcjDuAY/yGlbPQTiXmFavg+M2Ju/DiOX2r8m3k+sd3krIiF8bXtN4mYcXSEz3iYDYCjInzHgzMAQkfsGQ+LARAqYu94WBUA1BEU42F1AFBFUI2HTQGwN4JyPGwOAN8I6vHgFQBbI0KMB+8AWBsRajxEgkBRFI2KeLF81UzvtfkFxXggCQBHxA2q8bDrEdI5HqcrlOOBLACWIqjHA2kAzEWEGA/kAYAI9S/0oD4+4zjU+ODyiWCMMcYYY0H8A8/gMVQRFilxAAAAAElFTkSuQmCC"}})])]),t._v(" "),e("span",{staticClass:"calendar__nextMonthBtn",attrs:{"data-title":"下个月"},on:{click:function(e){return t.clickSetMonth("next")}}},[t._v("\n "+t._s(t.$t("other.calendar.next_month"))+"\n ")])]),t._v(" "),e("div",{staticClass:"calendar-label"},[e("a",{class:["全部活动"===t.currentTab?"active ":""],attrs:{href:"javascript:;"},on:{click:function(e){return t.selectImgPath("全部活动")}}},[t._v(t._s(t.$t("other.all_events")))]),t._v(" "),t._l(t.tabs,(function(r){return e("a",{key:r,class:[t.currentTab===r?"active ":""],attrs:{href:"javascript:;"},on:{click:function(e){return t.selectImgPath(r)}}},[t._v(t._s(r))])}))],2)]),t._v(" "),e("div",{class:[t.calendarActive?"calendar__main calendar__mainShow":"calendar__main calendar__mainHide"]},[e("table",{staticClass:"calendar__weeks"},[e("tbody",[e("tr",t._l(t.weeksList,(function(r,n){return e("td",{key:n,staticClass:"calendar__weeksItem"},[t._v("\n "+t._s(r)+"\n ")])})),0)])]),t._v(" "),e("table",{staticClass:"calendar__table",attrs:{cellpadding:"0",cellspacing:"0"}},[e("tbody",t._l(t.monthsSum,(function(r,n){return e("tr",{key:n,class:[t.calendarActive?"calendar__row calendar__rowShow":"calendar__row calendar__rowHide"],style:{transition:"opacity ".concat(.26+.09*n,"s 0.3s cubic-bezier(0.52, 0.16, 0.24, 1)")}},t._l(r,(function(r){return e("td",{key:r.date},[e("div",{staticClass:"calendar__gridcell"},[e("span",{class:"".concat(t.calcClassName(r))},[t._v("\n "+t._s(r.day)+"\n "),Array.isArray(r.source)?e("div",{staticClass:"calendar-list-box"},[e("div",{staticClass:"calendar-list"},t._l(r.source,(function(r,n){return e("div",{key:n},[r.url?t._e():e("a",{attrs:{rel:"nofollow"}},[t._v(t._s(r.title))]),t._v(" "),r.url?e("a",{attrs:{href:t.tranUrl(r.url),target:"_blank",rel:"nofollow"}},[t._v(t._s(r.title))]):t._e()])})),0)]):t._e()])])])})),0)})),0)])]),t._v(" "),t.scrollList.length>0?e("div",{staticClass:"scroll-box"},[e("div",{class:[t.showMore?"scroll-list-showmore":"scroll-list"]},[e("div",{staticClass:"scroll-inner"},t._l(t.scrollList,(function(n,o){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.filterTab(n.tags),expression:"filterTab(item.tags)"}],key:o},[n.url?e("a",{class:!1===n.isFuture?"non-current":"",attrs:{href:t.tranUrl(n.url),rel:"nofollow",target:"_banck"}},[t._v("\n 【"+t._s(r.dayjs(1e3*n.datetime).locale(t.$i18n.locale).format("MMM Do"))+"】"+t._s(n.title)+"\n ")]):t._e(),t._v(" "),n.url?t._e():e("a",{class:!1===n.isFuture?"non-current":""},[t._v("\n 【"+t._s(r.dayjs(1e3*n.datetime).locale(t.$i18n.locale).format("MMM Do"))+"】"+t._s(n.title)+"\n ")])])})),0)])]):t._e(),t._v(" "),t.scrollList.length>4?e("div",{staticClass:"showMore",on:{click:function(e){t.showMore=!t.showMore}}},[t._v("\n "+t._s(t.showMore?t.$t("buttons.showless"):t.$t("buttons.showmore"))+"\n ")]):t._e()])])}),[],!1,null,"4b3fa931",null);e.default=component.exports},683:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"d",(function(){return c})),r.d(e,"c",(function(){return l})),r.d(e,"a",(function(){return d})),r.d(e,"b",(function(){return h}));r(92);var n=r(69);function o(t){var e=t.split("-"),r=e[0],n=e[1],o=r,c=parseInt(n,10)-1;return 0===c&&(o=parseInt(o,10)-1,c=12),c<10&&(c="0"+c),{year:o,month:c,yearMonth:o+"-"+c}}function c(t){var e=t.split("-"),r=e[0],n=e[1],o=r,c=parseInt(n,10)+1;return 13===c&&(o=parseInt(o,10)+1,c=1),c<10&&(c="0"+c),{year:o,month:c,yearMonth:o+"-"+c}}function l(t){if(!t)return null;var e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(t).getDay()];return{week:new Date(t).getDay(),weekStr:e}}function d(t){for(var e=[],r=0;r<42;r++){var o=new Date(t);o.setDate(o.getDate()+r),e.push(Object(n.a)(o).format("YYYY-MM-DD"))}return e}function h(t,e){for(var r="prev"===e?o(t):c(t),n=function(t){for(var e=t.split("-"),r=e[0],n=e[1],o=new Date(r,n,0).getDate(),c=[],i=0;i<o;i++){var l=i+1<10?"0"+(i+1):i+1;c.push(t+"-"+l)}return{days:o,list:c}}(r.yearMonth).days,l=[],i=0;i<n;i++){var d=i+1<10?"0"+(i+1):i+1;l.push(r.yearMonth+"-"+d)}var h=function(t){var e=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(t+"-01").getDay()];return{week:new Date(t).getDay(),weekStr:e}}("next"===e?r.yearMonth:t);if("prev"===e)return l.splice(l.length-h.week);if("next"===e){var _=7-h.week;return 0===h.week&&(_=0),l.splice(0,_)}}},719:function(t,e,r){t.exports={}},847:function(t,e,r){"use strict";r(719)}}]);