1(this["webpackJsonpclassplus-web-react"]=this["webpackJsonpclassplus-web-react"]||[]).push([[128],{2800:function(e,a,t){},2801:function(e,a,t){e.exports=t.p+"static/media/homeIcon.68fc7b75.svg"},3383:function(e,a,t){"use strict";t.r(a);var n=t(1),o=t.n(n),l=(t(2800),t(2801)),i=t.n(l),r=t(140),s=t(151),c=t(18),d=t(4),u=t(5);a.default=Object(r.connect)(null,e=>({makeApiCall(){e(Object(s.b)())}}))(e=>{var a,t,l;const[r,s]=Object(n.useState)(!0),[p,m]=Object(n.useState)(""),[v,h]=Object(n.useState)(""),b=null===e||void 0===e||null===(a=e.history)||void 0===a||null===(t=a.location)||void 0===t||null===(l=t.state)||void 0===l?void 0:l.userType,E=3==b?"Thank you!":"Download our app and start learning!";Object(n.useEffect)(()=>{b||c.history.push("/login"),w()},[]);const w=async()=>{try{var a,t,n,o,l,i,r,p=await fetch(d.B.API_BASE_URL+"/v2/org/details",{method:"GET",headers:{"x-access-token":null===e||void 0===e||null===(a=e.history)||void 0===a||null===(t=a.location)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.token}}),v=await p.json();m(null===v||void 0===v||null===(o=v.data)||void 0===o||null===(l=o.organization)||void 0===l?void 0:l.name),h(null===v||void 0===v||null===(i=v.data)||void 0===i||null===(r=i.organization)||void 0===r?void 0:r.appUrl),s(!1)}catch(b){u.toastr.error("Something went wrong"),c.history.push("/login")}};return r?o.a.createElement("div",{className:"loader"},"Loading....."):o.a.createElement("div",{className:"parentContainer"},o.a.createElement("div",{className:"parentContainerTopSection"},o.a.createElement("div",{className:"parentContainerTopSection_icon"},o.a.createElement("img",{src:i.a,alt:"homeicon"})),o.a.createElement("div",{className:"parentContainerTopSection_heading"},"Welcome to ",p)),o.a.createElement("div",{className:"parentContainerText"},o.a.createElement("div",{className:"parentContainerText_primary"},"Our website is designed for desktop use only. For the best experience, please try accessing it from a computer or laptop",3!==b&&o.a.createElement("span",null,o.a.createElement("br",null),"or")),o.a.createElement("div",{className:"parentContainerText_secondary"},E)),3!==b&&v?o.a.createElement("div",{className:"downloadButtonContainer"},o.a.createElement("button",{className:"downloadButton",onClick:()=>window.open(v)},"Download App")):null)})}}]);
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.