1(this["webpackJsonpdressage-spa"]=this["webpackJsonpdressage-spa"]||[]).push([[5],{209:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(14),a=r(0),c=r(2),s=Object(a.createContext)();t.b=function(e){var t=e.children,r=Object(a.useState)(localStorage.getItem("testView")||"list"),i=Object(n.a)(r,2),o=i[0],l=i[1];return Object(a.useEffect)((function(){localStorage.setItem("testView",o)}),[o]),Object(c.jsx)(s.Provider,{value:{view:o,setListView:function(){return l("list")},setTableView:function(){return l("table")}},children:t})}},225:function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),a=r.n(n),c=r(1),s=r(8),i=r(26),o=r(3),l=Object(c.css)(["color:",";"],(function(e){return Object(s.c)(e.colorProp,e.theme)})),u=Object(c.css)(["font-family:",";"],(function(e){return e.theme.paragraph.font.family})),f=c.default.p.withConfig({displayName:"StyledParagraph",componentId:"tbetod-0"})([""," "," "," "," "," ",""],i.f,(function(e){return function(e){var t=e.size||"medium",r=e.theme.paragraph[t];return Object(c.css)(["font-size:",";line-height:",";max-width:",";"],r.size,r.height,e.fillProp?"none":r.maxWidth)}(e)}),(function(e){return e.textAlign&&i.n}),(function(e){return e.colorProp&&l}),(function(e){return e.theme.paragraph.font&&e.theme.paragraph.font.family&&u}),(function(e){return e.theme.paragraph&&e.theme.paragraph.extend}));function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}f.defaultProps={},Object.setPrototypeOf(f.defaultProps,o.a);var d=Object(n.forwardRef)((function(e,t){var r=e.color,n=e.fill,c=function(e,t){if(null==e)return{};var r,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["color","fill"]);return a.a.createElement(f,h({ref:t,colorProp:r,fillProp:n},c))}));d.displayName="Paragraph";var b=d},234:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),a=r.n(n),c=r(11);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=function(e){return a.a.createElement(c.a,s({viewBox:"0 0 24 24",a11yTitle:"Refresh"},e),a.a.createElement("path",{fill:"none",stroke:"#000",strokeWidth:"2",d:"M20,8 C18.5974037,5.04031171 15.536972,3 12,3 C7.02943725,3 3,7.02943725 3,12 C3,16.9705627 7.02943725,21 12,21 L12,21 C16.9705627,21 21,16.9705627 21,12 M21,3 L21,9 L15,9"}))}},263:function(e,t,r){"use strict";r.r(t);var n=r(14),a=r(0),c=r(68),s=r(9),i=r(167),o=r(38),l=r(234),u=r(2),f=function(){window.location.reload()},h=function(){return Object(u.jsxs)(s.a,{border:{color:"status-error",size:"small",style:"solid",side:"all"},pad:"small",children:[Object(u.jsx)(i.a,{textAlign:"center",level:"3",fill:!0,children:"Opps! There has been an error in fetching data from the server."}),Object(u.jsx)("div",{className:"d-flex justify-content-center",children:Object(u.jsx)(o.a,{icon:Object(u.jsx)(l.a,{}),onClick:f,label:"refresh",color:"brand",primary:!0})})]})},d=r(225),b=r(49),j=r(10),p=r(31),O=r(40),g=r(209),m=Object(p.a)((function(e){return Promise.all([r.e(4),r.e(10)]).then(r.bind(null,262))}));t.default=function(){var e=Object(a.useState)({dressage_tests:[]}),t=Object(n.a)(e,2),r=t[0],i=t[1],o=Object(a.useState)(!0),l=Object(n.a)(o,2),f=l[0],p=l[1],v=Object(a.useState)(!1),x=Object(n.a)(v,2),y=x[0],w=x[1],P=Object(j.b)(),k=P.user,C=P.isLoading,S=P.isAuthenticated,A=Object(a.useContext)(O.a).favId;return console.log(k),Object(a.useEffect)((function(){C||(S&&void 0!==k.sub?(p(!0),c.a.getAllWithUser(k.sub).then((function(e){i({dressage_tests:e.dressage_tests}),p(!1)})).catch((function(e){w(!0),p(!1)}))):(p(!0),c.a.getAll().then((function(e){i({dressage_tests:e.dressage_tests}),p(!1)})).catch((function(e){w(!0),p(!1)}))))}),[A]),console.log(r),Object(u.jsx)(g.b,{children:Object(u.jsxs)("div",{className:"index main",children:[f?Object(u.jsxs)(s.a,{justify:"center",children:[Object(u.jsx)(b.a,{}
1),Object(u.jsx)(d.a,{fill:!0,size:"large",textAlign:"center",children:"Please Wait. Fetching data from the server. It may take a few seconds on the first load as the data is on a free Heroku account."})]}):Object(u.jsx)(m,{tests:r,children:" "}),y?Object(u.jsx)(h,{}):""]})})}}}]); 2//# sourceMappingURL=5.f6eed825.chunk.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.