PageSourceSearch

https://hyint.typl.gov.tw/component---src-pages-seminar-js-6b30d5147cec3e58e78d.js

js typl.gov.tw collected 2026-10-01 12:22:42 UTC 5,851 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkjumperrwd=self.webpackChunkjumperrwd||[]).push([[8785],{25632:function(e,t,a){a.r(t),a.d(t,{default:function(){return F}});var n,r=a(10434),s=a.n(r),i=a(7867),l=a.n(i),o=a(46877),c=a.n(o),p=a(19452),u=a.n(p),m=a(67294),y=a(3343),h=a(45238),d=a(73028),f=a(59470),g=a(89639),E=a(37587),b=a(6406),v=a(13514),N=a(45697),C=a.n(N),_=a(87761),k=a(75635),w=(n=function(e){function t(t){var a;return(a=e.call(this,t)||this).state={},a}l()(t,e);var a=t.prototype;return a.apply=function(e){if(e.preventDefault(),""!==e.target.dataset.applyurl)window.open(e.target.dataset.applyurl,"_blank");else{var t="/seminarDetail?id="+e.target.dataset.sn;(0,_.Z)(t)}},a.render=function(){var e=this,t=this.props,a=t.data,n=t.t,r=(0,k.bq)(a),s=r.sn,i=r.seminar_name,l=r.activity_time,o=r.location,c=r.speakers,p=r.target,u=r.register_sdate,y=r.register_edate,h=r.apply_url,d=r.applyCnt,f=r.max_attendence,g=new Date,E=g.getFullYear()+""+(g.getMonth()<9?"0":"")+(g.getMonth()+1)+(g.getDate()<10?"0":"")+g.getDate();return m.createElement(m.Fragment,null,m.createElement("div",{className:"col"},m.createElement("div",{className:"featured_data"},m.createElement("h3",null,m.createElement("a",{href:"#",tabIndex:"0","data-sn":s,"data-applyurl":h,onClick:this.apply.bind(this),onKeyDown:function(t){"Enter"===t.key&&e.apply(t)}},i)),m.createElement("div",{className:"content"},m.createElement("ul",null,m.createElement("li",{className:"m_show"},m.createElement("span",null,n("hyint.esource.seminar.activity_time"),n("hyint.esource.seminar.colon")),l),m.createElement("li",null,m.createElement("span",null,n("hyint.esource.seminar.location"),n("hyint.esource.seminar.colon")),o),m.createElement("li",null,m.createElement("span",null,n("hyint.esource.seminar.speakers"),n("hyint.esource.seminar.colon")),c),m.createElement("li",null,m.createElement("span",null,n("hyint.esource.seminar.target"),n("hyint.esource.seminar.colon")),p),m.createElement("li",{className:"m_show"},m.createElement("span",null,"報名期限",n("hyint.esource.seminar.colon")),u.substring(0,8)," ~"," ",void 0!==y?y.substring(0,8):n("hyint.esource.seminar.Infinite"))),m.createElement("div",{className:"quota"},m.createElement("div",{className:"status"},parseInt(r.register_edate.substring(0,8))<parseInt(E)?"已截止報名":"0"!==r.max_attendence&&parseInt(r.max_attendence)<=parseInt(r.applyCnt)?"人數已滿":parseInt(r.register_sdate.substring(0,8))>parseInt(E)?"尚未開始":"報名中"),m.createElement("div",{className:"amount"},"0"===f?n("hyint.esource.seminar.Infinite"):m.createElement(m.Fragment,null,m.createElement("span",null,d),m.createElement("span",{className:"total"},f))))),parseInt(r.register_edate.substring(0,8))<parseInt(E)?m.createElement("a",{href:"#",className:"apply"},"已截止報名"):"0"!==r.max_attendence&&parseInt(r.max_attendence)<=parseInt(r.applyCnt)?m.createElement("a",{href:"#",className:"apply"},"人數已滿"):parseInt(r.register_sdate.substring(0,8))>parseInt(E)?m.createElement("a",{href:"#",className:"apply"},"尚未開始"):m.createElement("a",{href:"#",tabIndex:"0",className:"apply","data-sn":s,"data-applyurl":h,onClick:this.apply.bind(this),onKeyDown:function(t){"Enter"===t.key&&e.apply(t)}},"我要報名"))))},t}(a(68727).Z),c()(n.prototype,"apply",[f.Nj],Object.getOwnPropertyDescriptor(n.prototype,"apply"),n.prototype),n);w.propTypes={displayConfig:C().array.isRequired,data:C().array,functionConfigList:C().array,functionRightConfigList:C().array,functionLeftConfigList:C().array,detailList:C().object,buttonEvent:C().func,batchConfig:C().array,serialNo:C().number,checked:C().bool,rowStyle:C().string},w.defaultProps={buttonEvent:function(){},functionConfigList:[],functionRightConfigList:[],functionLeftConfigList:[],detailList:[],batchConfig:[],serialNo:-1,checked:!1,rowStyle:""};var S,I,L,j=w,D=(0,E.ZP)(S||(S=u()(["\n  query getSeminarList($searchForm: SearchForm){\n    getSeminarList(Input: $searchForm){\n      ","\n    }\n  }\n  "," \n"])),b.Z.defaultLayoutReturn,b.Z.defaultLayoutFragment),F=(0,h.a)(["common"])(I=(0,g.M)((L=function(e){function t(t){var a,n=(a=e.call(this,t)||this).getQueryState(t);return a.state=n,a}l()(t,e);var a=t.prototype;return a.UNSAFE_componentWillReceiveProps=function(e){this.props!==e&&this.setQueryState(e)},a.setQueryState=function(e){var t=this.getQueryState(e);JSON.stringify(t)!==JSON.stringify(this.state)&&this.setState(s()({},t))},a.getQueryState=function(e){var t=e.search,a=e.readerStore,n=s()({},t),r=n.pageNo,i=(n.limit,n.resourceType);var l={pageNo:r=r||1,limit:99999,resourceType:i};return Object.keys(l).map((function(e){return(null===l[e]||"string"==typeof l[e]&&""===l[e].trim())&&delete l[e],""})),{searchForm:l,auth:a.auth,resourceType:i}},a.render=function(){return m.createElement(y.Z,this.props,m.createElement("div",{className:"main sp",id:"center"},m.createElement(d.Z,null),m.createElement("section",{className:"col-6-6 main_content"},m.createElement("div",{className:"container"},m.createElement("a",{className:"accesskey",href:"javascript:;",id:"aC",accessKey:"C",title:this.props.t("jumperrwd.common.mainContenctArea")},":::"),m.createElement("h2",null,this.props.t("hyint.common.seminar")),m.createElement("a",{href:"#!",className:"back",onClick:function(e){e.preventDefault(),(0,_.Z)(-1)}},this.props.t("hyint.common.table.back")),m.createElement(v.Z,{query:D,variables:{searchForm:this.state.searchForm},fetchPolicy:"network-only",displayComp:j,pagination:"NormalPagination",showPagination:!1})))))},t}(m.Component),c()(L.prototype,"setQueryState",[f.Nj],Object.getOwnPropertyDescriptor(L.prototype,"setQueryState"),L.prototype),c()(L.prototype,"getQueryState",[f.Nj],Object.getOwnPropertyDescriptor(L.prototype,"getQueryState"),L.prototype),I=L))||I)||I}}]);
2//# sourceMappingURL=component---src-pages-seminar-js-6b30d5147cec3e58e78d.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.