PageSourceSearch

https://www.tba.org.tw/component---src-templates-joins-print-preview-index-js-abec9dcdc9700d70513e.js

js tba.org.tw collected 2026-09-24 09:57:04 UTC 2,688 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_hello_world=self.webpackChunkgatsby_starter_hello_world||[]).push([[6677],{89395:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var i=a(60436),n=a(96540),r=a(35830),l=a(86663),o=a(40847),s=a(81768),d=a(55307),c=a(54306);function m(e){const t=(0,s.useOutlet)("user")[0],a=l.parse(e.location.search).type,r=void 0===a?"course":a,m=n.useState(null),g=m[0],p=m[1];if(n.useEffect(()=>{t&&async function(){o.setLoading(!0);try{let e=await d.req(c.apiHost+"/study/joins?token="+t.token,{method:"POST",data:{first_years:[]}}),a=e.joins,i=e.lectures;if(a=a.map(e=>Object.assign({id:e._id.$oid},e)),i=i.map(e=>Object.assign({id:e._id.$oid},e)),"lecture"===r)p(i);else{const e={course:"課程",activity:"活動"};p(a.filter(t=>{for(const a of t.labels||[])if(a.indexOf(e[r])>-1)return!0;return!1}))}}catch(e){console.warn(e)}o.setLoading(!1)}()},[t,r]),null===g)return n.createElement(u,null);const h=function(e,t){const a=[],n=(0,i.A)(e);for(;n.length>t;)a.push(n.slice(0,t)),n.splice(0,t);return n.length>0&&a.push(n.slice()),a}(g,10);return 0===h.length?n.createElement("div",{style:{maxWidth:600,margin:"80px auto"}},n.createElement("h2",{style:{textAlign:"center"}},"查無紀錄")):n.createElement(u,null,h.map((e,a)=>{var i;return n.createElement("div",{className:"page",key:a},n.createElement("h1",null,"課程活動核定參與紀錄 ","("+(a+1)+"/"+h.length+")"),n.createElement("div",{className:"content"},n.createElement("h3",null,"會員姓名:",(null===(i=t.data)||void 0===i?void 0:i.name)||"---"),e.map((e,t)=>n.createElement("div",{style:{display:"flex",alignItems:"center",padding:10,borderBottom:"1px solid #ccc"},key:t},n.createElement("div",{style:{flex:1}},e.name),n.createElement("div",null,"核給時數:"+(e.tba_hours||0)+"小時")))))}))}const u=r.default.div.withConfig({displayName:"JoinsPrintPreview__Wrapper",componentId:"sc-ch5ipb-0"})(["border:1px solid #fafafa;background-color:#fafafa;margin:0;padding:0;& > .page{width:210mm;min-height:297mm;padding:20mm;margin:10mm auto;border:1px #d3d3d3 solid;border-radius:5px;background:white;box-shadow:0 0 5px rgba(0,0,0,0.1);& > h1{margin-bottom:30px;text-align:center;}& > div.content{margin-bottom:50px;& > h3{margin-bottom:5px;}}& > div.sign{& > h2{margin-bottom:10px;}}}@page{size:A4 portrait;margin:0 auto;}@media print{html,body{width:210mm;height:297mm;}.page{margin:0;border:initial;border-radius:initial;width:initial;min-height:initial;box-shadow:initial;background:initial;page-break-after:always;:last-child{page-break-after:avoid;}}}"])}}]);
2//# sourceMappingURL=component---src-templates-joins-print-preview-index-js-abec9dcdc9700d70513e.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.