Files
FBSAdminTool/build/static/js/6.38f44f4e.chunk.js
2021-08-18 15:42:31 +05:30

2 lines
9.3 KiB
JavaScript

(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[6,15],{655:function(e,t,n){"use strict";function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],c=!0,s=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(c=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);c=!0);}catch(i){s=!0,a=i}finally{try{c||null==o.return||o.return()}finally{if(s)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return s}))},657:function(e,t,n){e.exports=n(386)},658:function(e,t,n){"use strict";function c(e,t,n,c,s,a,r){try{var o=e[a](r),i=o.value}catch(l){return void n(l)}o.done?t(i):Promise.resolve(i).then(c,s)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(s,a){var r=e.apply(t,n);function o(e){c(r,s,a,o,i,"next",e)}function i(e){c(r,s,a,o,i,"throw",e)}o(void 0)}))}}n.d(t,"a",(function(){return s}))},670:function(e,t,n){"use strict";n.r(t);n(1),n(642);var c=n(637),s=(n(636),n(18));t.default=function(){return Object(s.jsx)("div",{className:"c-app c-default-layout flex-row align-items-center",children:Object(s.jsx)(c.l,{children:Object(s.jsx)(c.K,{className:"justify-content-center",children:Object(s.jsx)(c.k,{md:"8",children:Object(s.jsxs)(c.i,{children:[Object(s.jsx)(c.f,{className:"p-4",children:Object(s.jsx)(c.g,{children:Object(s.jsxs)(c.s,{children:[Object(s.jsx)("h1",{children:"\u30ed\u30b0\u30a4\u30f3"}),Object(s.jsx)("p",{className:"text-muted",children:"SSO\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u306b\u306f\u3001\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044"}),Object(s.jsx)(c.K,{children:Object(s.jsx)(c.k,{children:Object(s.jsx)(c.e,{color:"primary",className:"px-4",onClick:function(){console.log("launch sso"),window.open("https://fsbsso.sumasen.net/Shibboleth.sso/Login","_self")},children:"SSO\u3067\u30ed\u30b0\u30a4\u30f3"})})})]})})}),Object(s.jsx)(c.f,{className:"text-white bg-primary py-5 d-md-down-none",style:{width:"44%"},children:Object(s.jsx)(c.g,{className:"text-center",children:Object(s.jsxs)("div",{children:[Object(s.jsx)("h2",{children:"\u30ed\u30b0\u30a4\u30f3\u65b9\u6cd5"}),Object(s.jsx)("p",{children:"\u3053\u308c\u306fSSO\u30ed\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001SSO\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002"})]})})})]})})})})})}},776:function(e,t,n){"use strict";n.r(t);var c=n(1),s=n.n(c),a=n(657),r=n.n(a),o=n(43),i=n(658),l=n(655),d=n(642),u=n.n(d),j=n(21),b=n(637),m=s.a.lazy((function(){return n.e(9).then(n.bind(null,771))})),h=s.a.lazy((function(){return Promise.all([n.e(5),n.e(7)]).then(n.bind(null,772))})),p=s.a.lazy((function(){return n.e(8).then(n.bind(null,773))})),x=s.a.lazy((function(){return n.e(14).then(n.bind(null,774))})),f=[{path:"/",exact:!0,name:"Home"},{path:"/dashboard",name:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",component:m},{path:"/reports",exact:!0,name:"\u30ec\u30dd\u30fc\u30c8",component:h},{path:"/uploader",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:p},{path:"/secret",exact:!0,name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",component:x}],O=(n(670),n(18)),v=Object(O.jsx)("div",{className:"pt-3 text-center",children:Object(O.jsx)("div",{className:"sk-spinner sk-spinner-pulse",children:" "})}),y=function(){var e={expiration:479,client_address:"123.231.121.140",protocol:"urn:oasis:names:tc:SAML:2.0:protocol",identity_provider:"https://sso.ts.bizside.biz/idp/shibboleth",authn_instant:"2021-08-16T11:29:41.254Z",authncontext_class:"urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport",attributes:[{name:"mail",values:["akira.miyata@mobilous.com"]}]};Object(c.useEffect)((function(){a(e)}),[]);var t=Object(c.useState)(""),n=Object(l.a)(t,2),s=n[0],a=n[1],d=Object(c.useState)(""),m=Object(l.a)(d,2),h=m[0],p=m[1];function x(){return(x=Object(i.a)(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(s.attributes[0].values[0]),t=s.attributes[0].values[0],console.log(t),"FBS","api","c558a56c63c44f65956adde8863ecc3558f3e55a465d4338bb2e7d2692866fd8",console.log("making request"),e.next=9,u.a.get("https://fsbsso.sumasen.net/users?email=akira.miyata@mobilous.com",{auth:{username:"api",password:"c558a56c63c44f65956adde8863ecc3558f3e55a465d4338bb2e7d2692866fd8"}});case 9:n=e.sent,console.log(n.data),p(n.data);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(){console.log("calling .."),function(){return x.apply(this,arguments)}().then((function(){return console.log("requesting user data"),console.log(h),!0}))}return Object(O.jsxs)("main",{className:"c-main",children:[Object(O.jsx)(b.l,{fluid:!0,children:Object(O.jsxs)(c.Suspense,{fallback:v,children:[Object(O.jsxs)(j.d,{children:[" ",f.map((function(e,t){return e.component&&Object(O.jsx)(j.b,{path:e.path,exact:e.exact,name:e.name,render:function(t){return null!==y()?Object(O.jsx)(e.component,Object(o.a)({},t)):Object(O.jsx)(j.a,{to:{pathname:"/sso"}})}},t)})),Object(O.jsx)(j.a,{from:"/",to:"/dashboard"})]})," "]})})," "]})},S=s.a.memo(y),N=function(){return Object(O.jsxs)(b.r,{fixed:!1,children:[Object(O.jsxs)("div",{children:[Object(O.jsx)("a",{href:"sumasen.net",target:"_blank",rel:"noopener noreferrer",children:"FBS"}),Object(O.jsx)("span",{className:"ml-1",children:"\xa9 2021 DigitalVox."})]}),Object(O.jsxs)("div",{className:"mfs-auto",children:[Object(O.jsx)("span",{className:"mr-1",children:"\u642d\u8f09"}),Object(O.jsx)("a",{href:"#",target:"_blank",rel:"noopener noreferrer",children:"DigitalVox"})]})]})},g=s.a.memo(N),w=n(166),k=n(636),C=function(){var e=Object(w.b)(),t=Object(w.c)((function(e){return e.sidebarShow}));return Object(O.jsxs)(b.u,{withSubheader:!0,children:[Object(O.jsx)(b.V,{inHeader:!0,className:"ml-md-3 d-lg-none",onClick:function(){var n=!![!1,"responsive"].includes(t)||"responsive";e({type:"set",sidebarShow:n})}}),Object(O.jsx)(b.V,{inHeader:!0,className:"ml-3 d-md-down-none",onClick:function(){var n=![!0,"responsive"].includes(t)&&"responsive";e({type:"set",sidebarShow:n})}}),Object(O.jsx)(b.v,{className:"mx-auto d-lg-none",to:"/",children:Object(O.jsx)("h2",{children:"FBS"})}),Object(O.jsx)(b.w,{className:"d-md-down-none mr-auto",children:Object(O.jsx)(b.x,{className:"px-3",children:Object(O.jsx)(b.y,{to:"/dashboard",children:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9"})})}),Object(O.jsx)(b.w,{className:"px-3",children:Object(O.jsx)(_,{})}),Object(O.jsx)(b.U,{className:"px-3 justify-content-between",children:Object(O.jsx)(b.d,{className:"border-0 c-subheader-nav m-0 px-0 px-md-3",routes:f})})]})},_=function(){return Object(O.jsxs)(b.n,{inNav:!0,className:"c-header-nav-items mx-2",direction:"down",children:[Object(O.jsx)(b.q,{className:"c-header-nav-link",caret:!1,children:"\u30a2\u30ab\u30a6\u30f3\u30c8"}),Object(O.jsxs)(b.p,{className:"pt-0",placement:"bottom-end",children:[Object(O.jsx)(b.o,{header:!0,tag:"div",color:"light",className:"text-center",children:Object(O.jsx)("strong",{children:"\u30a2\u30ab\u30a6\u30f3\u30c8"})}),Object(O.jsxs)(b.o,{onClick:function(){console.log("launch sso"),window.open("https://fsbsso.sumasen.net/Shibboleth.sso/Login","_self")},children:[Object(O.jsx)(k.a,{name:"cil-bell",className:"mfe-2"}),"SSO \u30ed\u30b0\u30a4\u30f3"]})]})]})},A=[{_tag:"CSidebarNavItem",name:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",to:"/dashboard",icon:Object(O.jsx)(k.a,{name:"cil-speedometer",customClasses:"c-sidebar-nav-icon"})},{_tag:"CSidebarNavTitle",_children:["\u30ec\u30dd\u30fc\u30c8"]},{_tag:"CSidebarNavItem",name:"\u5831\u544a\u66f8",to:"/reports",icon:"cil-drop"},{_tag:"CSidebarNavItem",name:"\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9",to:"/uploader",icon:"cil-drop"}],z=function(){var e=Object(w.b)(),t=Object(w.c)((function(e){return e.sidebarShow}));return Object(O.jsxs)(b.M,{show:t,onShowChange:function(t){return e({type:"set",sidebarShow:t})},children:[Object(O.jsxs)(b.N,{className:"d-md-down-none",to:"/",children:[Object(O.jsx)("h2",{children:"FBS"}),Object(O.jsx)(k.a,{className:"c-sidebar-brand-minimized",name:"sygnet",height:35})]}),Object(O.jsx)(b.P,{children:Object(O.jsx)(b.m,{items:A,components:{CSidebarNavDivider:b.Q,CSidebarNavDropdown:b.R,CSidebarNavItem:b.S,CSidebarNavTitle:b.T}})}),Object(O.jsx)(b.O,{className:"c-d-md-down-none"})]})},I=s.a.memo(z);t.default=function(){return Object(O.jsxs)("div",{className:"c-app c-default-layout",children:[Object(O.jsx)(I,{}),Object(O.jsxs)("div",{className:"c-wrapper",children:[Object(O.jsx)(C,{}),Object(O.jsx)("div",{className:"c-body",children:Object(O.jsx)(S,{})}),Object(O.jsx)(g,{})]})]})}}}]);
//# sourceMappingURL=6.38f44f4e.chunk.js.map