PageSourceSearch

https://hyint.typl.gov.tw/component---src-pages-openidssologin-js-99444542a1da33638f66.js

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

1"use strict";(self.webpackChunkjumperrwd=self.webpackChunkjumperrwd||[]).push([[7083],{60666:function(e,t,n){n.r(t);var r,o,i,s=n(10434),p=n.n(s),a=n(17156),u=n.n(a),c=n(7867),d=n.n(c),h=n(46877),f=n.n(h),l=n(19452),S=n.n(l),m=n(64687),v=n.n(m),g=n(67294),w=n(3343),y=n(45238),O=n(59470),k=n(37587),b=n(99593),L=n(89639),C=n(87761),Z=n(15886),j=(0,k.ZP)(r||(r=S()(["\n  mutation setOpenidSSOLogin($form: OpenidSSOLoginForm) {\n    result: setOpenidSSOLogin(Input: $form) {\n      success\n      errorType\n    }\n  }\n"]))),U=(0,y.a)(["common"])(o=(0,L.M)((i=function(e){function t(t){var n;n=e.call(this,t)||this;var r="1"===t.appStore.globalConfig["jumperrwd.login.alertHidden"];return n.state={auth:t.readerStore.auth,alertHidden:r},n}d()(t,e);var n=t.prototype;return n.componentDidMount=function(){this.openidSSOLogin(this.props)},n.UNSAFE_componentWillReceiveProps=function(e){this.state.auth!==e.readerStore.auth&&(this.setState({auth:e.readerStore.auth}),e.readerStore.auth?(0,C.Z)("/"):this.openidSSOLogin(e))},n.openidSSOLogin=function(){var e=u()(v().mark((function e(t){var n,r,o,i,s,a,c,d,h,f=this;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.search,r=p()({},n),o=r.code,i=void 0===o?"":o,s=r.token,a=void 0===s?"":s,c=r.setAleph,d=void 0===c?"":c,"https://hyerm.ntl.edu.tw/openidssologin",""===i?(h={client_id:"ec23b28135404fc8a1bf79b82906c31b",scope:"User.Mail,User.BasicInfo,User.Application,User.Identity,UserInfo,User.ContactInfo",state:"",redirect_uri:"https://hyerm.ntl.edu.tw/openidssologin",response_type:"code"},window.location.href=["https://auth.ntpc.edu.tw/oauth/authorize.php",Z.Z.stringify(h)].join("?")):b.Z.jumperrwdClient.mutate({mutation:j,variables:{form:{code:i,token:a,setAleph:d}}}).then(function(){var e=u()(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.data.result).success?f.props.readerStore.syncSe
1ssionCookie().then((function(){(0,C.Z)("/")})):1===n.errorType?f.props.readerStore.syncSessionCookie().then((function(){(0,C.Z)("/openidSSOLoginAleph")})):(alert("登入失敗"),(0,C.Z)("/"));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),n.render=function(){var e=this,t=this.props,n=t.t,r=t.isprivate,o=t.i18n;return g.createElement(w.Z,{t:n,i18n:o,isprivate:r,hiddenBg:!0},g.createElement("div",{ref:function(t){e.container=t}}))},t}(g.Component),f()(i.prototype,"openidSSOLogin",[O.Nj],Object.getOwnPropertyDescriptor(i.prototype,"openidSSOLogin"),i.prototype),o=i))||o)||o;t.default=U}}]);
2//# sourceMappingURL=component---src-pages-openidssologin-js-99444542a1da33638f66.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.