1"use strict";(self.webpackChunkreactjs=self.webpackChunkreactjs||[]).push([[6959],{96959:(e,t,r)=>{r.a(e,(async(e,n)=>{try{r.r(t),r.d(t,{default:()=>A});var o=r(9950),i=r(74283),a=r(48089),s=r(46639),c=r(31869),l=r(30357),u=r(42407),p=r(10300),d=r(15918),f=r(51139),y=r(95077),m=r(91343),g=r(44414),h=e([c,u]);[c,u]=h.then?(await h)():h;const j=(e,t)=>({}),b=(e,t)=>({onErrorOccured:t=>e((0,d.f)(t))});class x extends o.Component{constructor(){super(...arguments),this.state={openLoginFailedModal:!1,redirect:!1}}async componentDidMount(){if(!u.Jp)return;const e=decodeURIComponent(i.A.parse(this.props.location.search).userEmail);try{await c.A.silentSignIn(e)}catch(t){f.A.error(t),"user_cancelled"!==(null===t||void 0===t?void 0:t.errorCode)&&await c.A.handleAuthErrors(t)}this.setState({redirect:!0})}onDialogClose(){this.setState({redirect:!0})}render(){const{from:e}={from:{pathname:"/mybooks"}};return this.state.redirect&&c.A.isAuthenticated()?(0,g.jsx)(y.C5,{to:e}):this.state.redirect?(0,g.jsx)(y.C5,{to:"/user/login"}):(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{style:{marginTop:150,display:"flex",justifyContent:"center"},children:(0,g.jsx)("div",{style:{width:"450px",minHeight:"450px"},children:(0,g.jsxs)(a.A,{style:{padding:"10px",height:"100%"},children:[(0,g.jsx)("div",{style:{textAlign:"center"},children:(0,g.jsx)("img",{width:"390px",src:l,alt:"Five Senses Education Portal"})}),(0,g.jsxs)("div",{style:{margin:"auto",marginTop:"20px",padding:"10px",maxWidth:"350px",display:"flex",justifyContent:"center",flexDirection:"column"},children:[(0,g.jsx)("div",{style:{textAlign:"center",marginTop:"20px"},children:(0,g.jsx)(s.A,{})}),(0,g.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,g.jsx)("h2",{children:"Login in progress, please wait..."})})]})]})})})})}}const A=(0,m.A)((0,p.Ng)(j,b)(x));n()}catch(j){n(j)}}))},91343:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(89379),o=r(95077),i=r(44414);const a=e=>t=>{const r=(0,o.zy)();return(0,i.jsx)(e,(0,n.A)((0,n.A)({},t),{},{location:r}))}},30357:(e,t,r)=>{e.exports=r.p+"static/media/fs_logo_big.c3cfebe3545b089e3a70.png"},74283:(e,t,r)=>{r.d(t,{A:()=>N});var n={};r.r(n),r.d(n,{exclude:()=>C,extract:()=>v,parse:()=>k,parseUrl:()=>w,pick:()=>S,stringify:()=>F,stringifyUrl:()=>O});var o=r(89379);const i="%[a-f0-9]{2}",a=new RegExp("("+i+")|([^%]+?)","gi"),s=new RegExp("("+i+")+","gi");function c(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],c(r),c(n))}function l(e){try{return decodeURIComponent(e)}catch(t){let r=e.match(a)||[];for(let n=1;n<r.length;n++)r=(e=c(r,n).join("")).match(a)||[];return e}}function u(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch(t){return function(e){const t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"};let r=s.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(o){const e=l(r[0]);e!==r[0]&&(t[r[0]]=e)}r=s.exec(e)}t["%C2"]="\ufffd";const n=Object.keys(t);for(const i of n)e=e.replace(new RegExp(i,"g"),t[i]);return e}(e)}}function p(e,t){const r={};if(Array.isArray(t))for(const n of t){const t=Object.getOwnPropertyDescriptor(e,n);null!==t&&void 0!==t&&t.enumerable&&Object.defineProperty(r,n,t)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){t(n,e[n],e)&&Object.defineProperty(r,n,o)}}return r}function d(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const r=e.indexOf(t);return-1===r?[]:[e.slice(0,r),e.slice(r+t.length)]}const f=e=>null===e||void 0===e,y=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase()))),m=Symbol("encodeFragmentIdentifier");function g(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?y(e):encodeURIComponent(e):e}function j(e,t){return t.decode?u(e):e}function b(e){return Array.isArray(e)?e.sort():"object"===typeof e?b(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function x(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function A(e,t,r){return"string"===r&&"string"===typeof e?e:"function"===typeof r&&"string"===typeof e?r(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"number"!==r||Number.isNaN(Number(e))||"string"!==typeof e||""===e.trim()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?Number(e):e:Number(e):"true"===e.toLowerCase()}function v(e){const t=(e=x(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function k(e,t){g((t=(0,o.A)({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null)},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[...n[e],r]:n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!o&&j(r,e).includes(e.arrayFormatSeparator);r=i?j(r,e):r;const a=o||i?r.split(e.arrayFormatSeparator).map((t=>j(t,e))):null===r?r:j(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(n[t]=r?j(r,e):r);const i=null===r?[]:j(r,e).split(e.arrayFormatSeparator);void 0!==n[t]?n[t]=[...n[t],...i]:n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,a]=d(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:j(a,t),r(j(i,t),a,n)}for(const[o,i]of Object.entries(n))if("object"===typeof i&&null!==i&&"string"!==t.types[o])for(const[e,r]of Object.entries(i)){const n=t.types[o]?t.types[o].replace("[]",""):void 0;i[e]=A(r,t,n)}else"object"===typeof i&&null!==i&&"string"===t.types[o]?n[o]=Object.values(i).join(t.arrayFormatSeparator):n[o]=A(i,t,t.types[o]);return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return e[t]=Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?b(r):r,e}
1),Object.create(null))}function F(e,t){if(!e)return"";g((t=(0,o.A)({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&f(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),"[",o,"]"].join("")]:[...r,[h(t,e),"[",h(o,e),"]=",h(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),"[]"].join("")]:[...r,[h(t,e),"[]=",h(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[h(t,e),":list="].join("")]:[...r,[h(t,e),":list=",h(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[h(r,e),t,h(o,e)].join("")]:[[n,h(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,h(t,e)]:[...r,[h(t,e),"=",h(n,e)].join("")]}}(t),i={};for(const[o,s]of Object.entries(e))r(o)||(i[o]=s);const a=Object.keys(i);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?h(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?h(r,t)+"[]":o.reduce(n(r),[]).join("&"):h(r,t)+"="+h(o,t)})).filter((e=>e.length>0)).join("&")}function w(e,t){var r,n;t=(0,o.A)({decode:!0},t);let[i,a]=d(e,"#");return void 0===i&&(i=e),(0,o.A)({url:null!==(r=null===(n=i)||void 0===n||null===(n=n.split("?"))||void 0===n?void 0:n[0])&&void 0!==r?r:"",query:k(v(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:j(a,t)}:{})}function O(e,t){t=(0,o.A)({encode:!0,strict:!0,[m]:!0},t);const r=x(e.url).split("?")[0]||"",n=v(e.url);let i=F((0,o.A)((0,o.A)({},k(n,{sort:!1})),e.query),t);i&&(i="?".concat(i));let a=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if("string"===typeof e.fragmentIdentifier){const n=new URL(r);n.hash=e.fragmentIdentifier,a=t[m]?n.hash:"#".concat(e.fragmentIdentifier)}return"".concat(r).concat(i).concat(a)}function S(e,t,r){r=(0,o.A)({parseFragmentIdentifier:!0,[m]:!1},r);const{url:n,query:i,fragmentIdentifier:a}=w(e,r);return O({url:n,query:p(i,t),fragmentIdentifier:a},r)}function C(e,t,r){return S(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const N=n}}]);
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.