1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5465],{5094:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/status",function(){return r(915)}])},9698:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(1438),i=r(2951),o=function(){function e(t){(0,n.Z)(this,e),this.items=t||[]}return(0,i.Z)(e,[{key:"getItems",value:function(){return this.items||[]}},{key:"setItems",value:function(e){this.items=e}},{key:"isItemsEqual",value:function(e,t){return(null==e?void 0:e.image)&&e.image!=(null==t?void 0:t.image)||(null==e?void 0:e.svg)&&e.svg!=(null==t?void 0:t.svg)}},{key:"hasNext",value:function(e){return this.isItemsEqual(this.items[this.items.length-1],e)}},{key:"hasPrevious",value:function(e){return this.isItemsEqual(this.items[0],e)}},{key:"next",value:function(e){return this.items[e+1]}},{key:"previous",value:function(e){return this.items[e-1]}},{key:"setOnMoreNeeded",value:function(e){this.onMoreNeeded=e}},{key:"fireOnMoreNeeded",value:function(){return this.onMoreNeeded?this.onMoreNeeded():Promise.resolve()}}]),e}()},915:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return L}});var n=r(7568),i=r(6042),o=r(9396),s=r(9815),l=r(7582),a=r(5893),u=r(7294);r(1664);var c=r(346),d=r(3193),f=r(9277),h=r(6486),p=r(5121),v=r(246),m=r.n(v),g=r(6746),y=r(4256),w=r(9698),b=r(7411);function x(e){var t,r=(0,u.useState)(!1),c=r[0],d=r[1],f=(0,u.useState)(!1),v=(f[0],f[1]),w=(0,u.useState)(!0),b=w[0],x=w[1],E=(0,u.useState)(!1),L=E[0],k=E[1];(0,u.useEffect)(function(){e.itemsProvider.setOnMoreNeeded(function(){return j()})},[e.itemsProvider]);var j=(t=(0,n.Z)(function(){var t,r,n,i,o,a,u,f,h,m,g;return(0,l.__generator)(this,function(l){switch(l.label){case 0:if(c)return[2];t=e.itemsProvider.getItems()||[],d(!0),k(!1),l.label=1;case 1:return l.trys.push([1,3,4,5]),[4,p.Z.get("/api/status-monkey?from=".concat(t.length))];case 2:if(k(!(u=(null==(a=l.sent())?void 0:null===(r=a.data)||void 0===r?void 0:r.results)||[]).length&&!t.length),(null===(n=(h=t||[])[h.length-1])||void 0===n?void 0:n.image)==(null===(i=u[u.length-1])||void 0===i?void 0:i.image))return[2,h];return m=(0,s.Z)(h).concat((0,s.Z)(u)),null===(o=e.itemsProvider)||void 0===o||o.setItems(m),u.length||x(!1),[3,5];case 3:return g=l.sent(),console.error(g),v(!0),x(!1),[3,5];case 4:return d(!1),[7];case 5:return[2]}})}),function(){return t.apply(this,arguments)}),P=u.useMemo(function(){return(0,h.throttle)(j,1e3)});return L?(0,a.jsx)("div",{className:"flex flex-col my-12 items-center justify-center h-full",children:(0,a.jsx)("div",{className:"text-2xl font-bold text-gray-500",children:"No results found"})}):(0,a.jsx)(m(),{loadMore:P,hasMore:b,initialLoad:Boolean((0,h.isEmpty)(e.initialImages)),threshold:20,loader:(0,a.jsx)(g.$,{className:"my-8"},"spinner"),children:(0,a.jsx)("div",{id:"scrollableDiv",className:("left"===e.align?"items-center justify-center sm:items-start sm:justify-start":"items-center justify-center")+" w-full h-full flex flex-wrap group",children:e.itemsProvider.getItems().map(function(t,r){return(0,a.jsx)(y.a,(0,o.Z)((0,i.Z)({},t),{onItemClick:function(){var n;return null===(n=e.onItemClick)||void 0===n?void 0:n.call(e,t,r)}}),r)})})})}function E(){var e=(0,u.useState)(null),t=e[0],r=e[1];return(0,u.useEffect)(function(){p.Z.get("/api/random-monkey").then(function(e){var t,n;r(null===(t=e.data)||void 0===t?void 0:null===(n=t.image)||void 0===n?void 0:n.url)})},[]),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center",children:(0,a.jsx)("div",{className:"w-24 h-24 flex items-center justify-center rounded-full overflow-hidden",children:t&&(0,a.jsx)("img",{className:"w-24 h-24",src:t,alt:"Monkey"})})})}function L(e){var t=(0,u.useContext)(f.Z),r=t.user,n=t.supabase,s=(0,u.useRef)(new w.Z(e.initialImages||[])),l=(0,u.useState)(e.initialItem||null),h=l[0],p=l[1],v=(0,u.useState)(null),m=v[0],g=v[1];return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"relative bg-gradient-to-b from-gray-200 to-gray-50 md:pb-2 border-b border-gray-200 dark:border-gray-800 dark:from-primary-superdark dark:to-gray-900",children:(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsx)(c.Z,(0,o.Z)((0,i.Z)({className:"secondary"},e),{supabase:n,user:r,title:"Status Monkey"}))})}),(0,a.jsx)("div",{className:" bg-white dark:bg-gray-900 py-8 md:pt-10",children:(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsxs)("div",{className:"lg:mx-32 md:mx-16 sm:mx-8 text-center",children:[(0,a.jsx)("div",{children:(0,a.jsx)(E,{})}),(0,a.jsx)("h1",{className:"lg:mx-32 md:mx-16 sm:mx-8 my-8 text-3xl font-serif",children:"Status Monkey"}),(0,a.jsx)("div",{className:"lg:mx-32 md:mx-16 mx-8 my-8 text-lg text-left",children:"At VectorArt.ai we like to test things. In fact we have a crew of pelicans, monkeys and kiwi's that are constantly testing our systems. Here are some of the things they have been up to. Every few minutes they will update this page with their latest status, just to let you know they are still working hard."}),(0,a.jsx)(x,{onItemClick:function(e,t){p(e),g(t)}
1,itemsProvider:s.current}),h&&(0,a.jsx)(b.Z,{supabase:n,item:h,hasNext:function(){return null!==m&&s.current.hasNext(h)},hasPrev:function(){return null!==m&&s.current.hasPrevious(h)},next:function(){var e=s.current.next(m);e&&(g(function(e){return e+1}),p(e))},prev:function(){var e=s.current.previous(m);e&&(g(function(e){return e-1}),p(e))},onClose:function(){p(null),g(null)}})]})})}),(0,a.jsx)(d.Z,(0,o.Z)((0,i.Z)({},e),{user:r}))]})}},7761:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(7294),o=a(i),s=r(5697),l=a(s);function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.scrollListener=r.scrollListener.bind(r),r.eventListenerOptions=r.eventListenerOptions.bind(r),r.mousewheelListener=r.mousewheelListener.bind(r),r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(r){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,r=this.getParentElement(e),n=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;n=this.props.isReverse?o:this.calculateOffset(e,o)}else n=this.props.isReverse?r.scrollTop:e.scrollHeight-r.scrollTop-r.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),r=t.children,n=t.element,i=t.hasMore,s=(t.initialLoad,t.isReverse),l=t.loader,a=(t.loadMore,t.pageStart,t.ref),u=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));
1u.ref=function(t){e.scrollComponent=t,a&&a(t)};var c=[r];return i&&(l?s?c.unshift(l):c.push(l):this.defaultLoader&&(s?c.unshift(this.defaultLoader):c.push(this.defaultLoader))),o.default.createElement(n,u,c)}}]),t}(i.Component);u.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},u.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=u,e.exports=t.default},246:function(e,t,r){e.exports=r(7761)},6897:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{d:"M10.75 2.75a.75.75 0 00-1.5 0v8.614L6.295 8.235a.75.75 0 10-1.09 1.03l4.25 4.5a.75.75 0 001.09 0l4.25-4.5a.75.75 0 00-1.09-1.03l-2.955 3.129V2.75z"}),n.createElement("path",{d:"M3.5 12.75a.75.75 0 00-1.5 0v2.5A2.75 2.75 0 004.75 18h10.5A2.75 2.75 0 0018 15.25v-2.5a.75.75 0 00-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5z"}))});t.Z=i},7349:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))});t.Z=i},6713:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{d:"M15.993 1.385a1.87 1.87 0 012.623 2.622l-4.03 5.27a12.749 12.749 0 01-4.237 3.562 4.508 4.508 0 00-3.188-3.188 12.75 12.75 0 013.562-4.236l5.27-4.03zM6 11a3 3 0 00-3 3 .5.5 0 01-.72.45.75.75 0 00-1.035.931A4.001 4.001 0 009 14.004V14a3.01 3.01 0 00-1.66-2.685A2.99 2.99 0 006 11z"}))});t.Z=i},9714:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{d:"M5.127 3.502L5.25 3.5h9.5c.041 0 .082 0 .123.002A2.251 2.251 0 0012.75 2h-5.5a2.25 2.25 0 00-2.123 1.502zM1 10.25A2.25 2.25 0 013.25 8h13.5A2.25 2.25 0 0119 10.25v5.5A2.25 2.25 0 0116.75 18H3.25A2.25 2.25 0 011 15.75v-5.5zM3.25 6.5c-.04 0-.082 0-.123.002A2.25 2.25 0 015.25 5h9.5c.98 0 1.814.627 2.123 1.502a3.819 3.819 0 00-.123-.002H3.25z"}))});t.Z=i},5485:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))});t.Z=i},4414:function(e,t,r){"use strict";var n=r(7294);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))});t.Z=i},943:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},7568:function(e,t,r){"use strict";function n(e,t,r,n,i,o,s){try{var l=e[o](s),a=l.value}catch(u){r(u);return}l.done?t(a):Promise.resolve(a).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var s=e.apply(t,r);function l(e){n(s,i,o,l,a,"next",e)}function a(e){n(s,i,o,l,a,"throw",e)}l(void 0)})}}r.d(t,{Z:function(){return i}})},1438:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},2951:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{Z:function(){return i}})},3375:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},9815:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(943),i=r(3375),o=r(1566);function s(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1566:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(943);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}}},function(e){e.O(0,[3662,1664,7897,4522,2713,617,2055,4238,9774,2888,179],function(){return e(e.s=5094)}),_N_E=e.O()}]); 2//# sourceMappingURL=status-28734db43bff2857.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.