(window.webpackJsonp=window.webpackJsonp||[]).push([["mainapp"],{"/Mos":
/*!**********************************!*\
  !*** ./components/PersonList.js ***!
  \**********************************/
/*! exports provided: PersonList */
/*! exports used: PersonList */function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(/*! @babel/runtime/helpers/esm/extends */"IKa1"),a=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Yh9w"),c=n(/*! @emotion/core */"xH0s"),i=n(/*! react */"r0ML"),o=n(/*! ../utils */"2RAV"),s=n(/*! ../utils */"4iFE"),u=n(/*! ../utils */"zehm"),l=n(/*! ./PickList */"z8hX");function b(e){var t=e.people,n=e.iconPresent,u=e.iconAbsent,b=Object(a.a)(e,["people","iconPresent","iconAbsent"]),O=Object(i.useCallback)(function(e){return Object(c.a)("span",null,Object(o.a)(e),function(){switch(e.present){case!0:return Object(c.a)(s.a,{icon:n,pull:"right"});case!1:return Object(c.a)(s.a,{icon:u,pull:"right"});default:return null}}())},[n,u]);return Object(c.a)(l.a,Object(r.a)({},b,{items:t,renderItem:O}))}b.propTypes={people:u.a.arrayOf(u.a.shape({id:u.a.string.isRequired})),iconPresent:u.a.string.isRequired,iconAbsent:u.a.string.isRequired},b.defaultProps={iconPresent:"far:user-circle",iconAbsent:"far:circle"}},"40yP":
/*!***************************************!*\
  !*** ./mainapp/index.js + 13 modules ***!
  \***************************************/
/*! exports provided: default */
/*! all exports used */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@babel/runtime/helpers/esm/defineProperty.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@babel/runtime/helpers/esm/extends.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@emotion/core/dist/core.browser.esm.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/@reach/router/es/index.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/bluebird/js/browser/bluebird.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/clsx/dist/clsx.m.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/at.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/filter.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/flatten.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/fromPairs.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/get.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/isEmpty.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/isFunction.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/isObject.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/keys.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/map.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/pick.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/some.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/lodash/transform.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/react-json-tree/lib/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/react/index.js (<- Module is not an ECMAScript module) */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Col.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Collapse.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Container.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/DropdownItem.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/DropdownMenu.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/DropdownToggle.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Nav.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/NavItem.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/NavLink.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Navbar.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/NavbarBrand.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/NavbarToggler.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/Row.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/node_modules/reactstrap/es/UncontrolledDropdown.js */
/*! ModuleConcatenation bailout: Cannot concat with ./app/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./components/InfoBlock.js */
/*! ModuleConcatenation bailout: Cannot concat with ./components/PersonList.js */
/*! ModuleConcatenation bailout: Cannot concat with ./context/config.js */
/*! ModuleConcatenation bailout: Cannot concat with ./context/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./hooks/useDebug.js */
/*! ModuleConcatenation bailout: Cannot concat with ./icons/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./overlays/index.js */
/*! ModuleConcatenation bailout: Cannot concat with ./utils/Button.js */
/*! ModuleConcatenation bailout: Cannot concat with ./utils/ErrorBox.js */
/*! ModuleConcatenation bailout: Cannot concat with ./utils/Loading.js */
/*! ModuleConcatenation bailout: Cannot concat with ./utils/prop-types.js */
/*! ModuleConcatenation bailout: Cannot concat with /Users/jasonkohles/personal/swiper/packages/core/src/log.js */function(e,t,n){"use strict";n.r(t);var r=n("xH0s"),a=n("r0ML"),c=n.n(a),i=n("zehm"),o=n("6e2+"),s=n("a28/"),u=n("Yh9w"),l=n("IKa1"),b=n("/NDV"),O=n.n(b),j=n("2Z+u"),d=n.n(j),f=n("jJDv"),p=n.n(f),g=n("B42D"),v=n.n(g),h=n("xzHw"),m=n.n(h),y=n("XOPw"),w=n("6nre"),k=n("LzIX"),P=n("+H65"),N=n("2Uiu"),R=n("RlOU"),E=n("nFhv"),M=n("wqzj"),A=n("y2Rf"),D=n("DGi4"),T=n("4iFE"),q=n("X7uO"),x=n("fetq"),C=n("MPav");function F(e){var t=e.icon,n=e.label,a=e.className,c=e.children,i=Object(u.a)(e,["icon","label","className","children"]);return n&&!c&&(c=Object(r.a)(T.a,{icon:t,label:n})),i.className=Object(C.a)("navlink",a),Object(r.a)(x.a,Object(l.a)({tag:q.a},i),c)}F.propTypes={to:i.a.string,disabled:i.a.bool,active:i.a.bool,innerRef:i.a.func,tag:i.a.node,icon:i.a.string,label:i.a.string,children:i.a.node,className:i.a.className};var G=n("2Xtx"),I=n("AmVM");function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){var t=e.label,n=e.icon,a=e.items;e.to;return Object(r.a)(y.a,{nav:!0,inNavbar:!0},Object(r.a)(w.a,{nav:!0,caret:!0},Object(r.a)(T.a,{icon:n,label:t})),Object(r.a)(k.a,{right:!0},p()(a,function(e){return Object(r.a)(z,Object(l.a)({key:e.label},e))})))}function z(e){var t=e.divider,n=Object(u.a)(e,["divider"]);if(t)return Object(r.a)(P.a,{divider:!0});var a=d()(n,O()(F.propTypes));return Object(r.a)(P.a,null,Object(r.a)(F,a))}function H(e){var t=e.label,n=e.icon,a=e.to;return Object(r.a)(N.a,null,Object(r.a)(F,{to:a},Object(r.a)(T.a,{icon:n,label:t})))}function X(){var e,t,n=(e=Object(G.b)(),t=Object(I.b)().member,Object(a.useMemo)(function(){var n={member:t,config:e.data,station:e.get("station")};return m()(e.get("menus"),function(e){return!e.when||Boolean(v()(n,e.when,!1))})},[t,e])),c=Object(a.useState)(!0),i=Object(o.a)(c,2),s=i[0],u=i[1];return Object(r.a)(R.a,{color:"light",light:!0,expand:"md"},Object(r.a)(E.a,{href:"/"},"Swiper"),Object(r.a)(M.a,{onClick:function(){return u(function(e){return!e})}}),Object(r.a)(A.a,{isOpen:s,navbar:!0},Object(r.a)(D.a,{className:"ml-auto",navbar:!0},p()(n,function(e){if(e.items)return Object(r.a)(S,Object(l.a)({key:e.label},e));if(e.to)return Object(r.a)(H,Object(l.a)({key:e.label},e));throw new Error("Invalid menu: ".concat(e))}))))}S.propTypes={label:i.a.string.isRequired,items:i.a.arrayOf(i.a.shape(z.propTypes)),icon:i.a.string,to:i.a.string},z.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(n,!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({divider:i.a.bool},F.propTypes),H.propTypes={label:i.a.string.isRequired,icon:i.a.string,to:i.a.string};var B=n("W/kx");function V(){return Object(r.a)(B.a,{error:"Nothing here, somebody must have swiped it!"})}var Y=n("ePEb"),_=n.n(Y),J=n("1+qw"),K=n.n(J),Q=n("8Doe"),U=n.n(Q),Z=n("KFC0"),W=n.n(Z),$=n("30c9"),ee=n.n($),te=n("hmas"),ne=n("dxsL"),re=n("QzYW"),ae=n("ZMRi"),ce=n("/Mos"),ie=n("27JV"),oe=n("fRGg"),se=n("/nod");function ue(){var e=Object(G.b)(),t=Object(I.b)(),n=t.session,c=t.error,i=t.swipe,s=t.dispatch,u=t.member,l=Object(a.useState)(null),b=Object(o.a)(l,2),O=b[0],j=b[1];ae.a.debug("MEMBER",u);var d=Object(a.useCallback)(function(){j(!1)},[j]);Object(se.a)("session",n);var f=Object(a.useMemo)(function(){return u?ee()(p()(["family","friend","guest"],function(e){return[e,u.flag("bring_".concat(e),"bring_".concat(e,"s"))]})):{}},[u]),g=Object(a.useCallback)(function(e){if(ae.a.debug("handlePick",e),W()(ie[e.id]))j(e.id);else{if(e.id===i.member.id)return i.toggle(e);f[e.relation]&&i.toggle(e)}},[i,f]),v=Object(a.useMemo)(function(){var t=e.guest_limit||3,a=m()(U()(K()(n,["friends","guests"])),"present").length<t,c=[].concat(n.guests),i=[].concat(n.friends);return ae.a.debug("CANBRING",f),f.guest&&(a?c.push({id:"AddGuestOverlay",displayName:Object(r.a)("i",null,"Add a Guest")}):c.push({displayName:Object(r.a)("i",null,"Guest Limit Reached")})),f.friend&&(a?i.push({id:"AddFriendOverlay",displayName:Object(r.a)("i",null,"Add a Friend")}):i.push({displayName:Object(r.a)("i",null,"Guest Limit Reached")})),{friends:i,guests:c}},[e,n,f]),h=v.friends,y=v.guests;ae.a.debug("F/G",{friends:h,guests:y,can_bring:f});var w=Object(a.useMemo)(function(){if(u.is_staff);else if(_()(f))return Object(r.a)("div",{className:"my-5"},Object(r.a)("p",null,"To sign someone in or out, press the ",Object(r.a)("kbd",null,"letter")," or ",Object(r.a)("kbd",null,"number")," next to their name."),Object(r.a)(T.a,{icon:"far:user-circle"})," = Signed in        ",Object(r.a)(T.a,{icon:"far:circle"})," = Signed out")},[u,f]);if(c)return Object(r.a)(B.a,{error:c});if(O){ae.a.debug("OVERLAY ENABLED",O);var k=O&&ie[O];return k?Object(r.a)(k,{close:d}):Object(r.a)(B.a,{error:'Invalid overlay "'.concat(O,'"')})}return Object(r.a)(te.a,{className:"actions h-100",fluid:!0},Object(r.a)(ne.a,null,Object(r.a)(re.a,null,Object(r.a)(ce.a,{title:"Family",people:n.members,onPick:g,selectors:"letters","data-testid":"family-list"})),Object(r.a)(re.a,null,Object(r.a)(ce.a,{title:"Guests",people:y,onPick:g,selectors:"numbers","data-testid":"guests-list"}),Object(r.a)(ce.a,{title:"Friends",people:h,onPick:g,selectors:"numbers",startAt:y.length,"data-testid":"friends-list"}),w,Object(r.a)(oe.a,{block:!0,onClick:s.reset,shortcut:"Escape"},"Finished"))))}ue.propTypes={};var le=n("HeQM");function be(e){return Object(r.a)(le.a,{id:e.id})}be.propTypes={id:i.a.string.isRequired};var Oe=n("jeeD"),je=n("Q33P"),de=n.n(je),fe=n("ZjvN"),pe=n.n(fe),ge=n("XCkn"),ve=n.n(ge);var he=n("5HGt"),me=n.n(he);function ye(e,t){switch(t.type){case"pending":return{state:"pending"};case"resolved":return{result:t.result,state:"resolved"};case"rejected":return{error:t.error,state:"rejected"};default:return e}}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(a.useReducer)(ye,{state:"pending"}),r=Object(o.a)(n,2),c=r[0],i=r[1];return Object(a.useEffect)(function(){if(e=function(e){return"function"==typeof e?me.a.try(e):e}(e)){var t=!1;return i({type:"pending"}),e.then(function(e){return t?null:i({state:"resolved",result:e})}).catch(function(e){return t?null:i({state:"rejected",error:e})}),function(){return t=!0}}},t),c.loading="resolved"!==c.state&&"rejected"!==c.state,c}var ke=n("xATA");function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){!t&&ve()(e)&&(t=e,e="unnamed");var n=Object(a.useRef)(t);Object(a.useEffect)(function(){var r=pe()(t,function(e,t,r){n.current[r]!==t&&(e[r]=[n.current[r],t])},{});de()(r)||console.log("[useUpdateMonitor] ".concat(e," props changed:"),r),n.current=t})}("useQuery",{service:e,query:t,opts:n});var r=Object(a.useState)({}),c=Object(o.a)(r,2),i=c[0],u=c[1];return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(n,!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},we(Object(a.useCallback)(function(){n.live?ke.a.service(e).watch().find({query:t}).subscribe(function(e){return u({data:e})},function(e){return u({error:e})}):ke.a.service(e).find({query:t}).then(function(e){return u({data:e})}).catch(function(e){return u({error:e})})},[e,t,n.live,u])),{},i)}function Re(){console.log("Rendering InfoIndex");var e=Ne("info"),t=e.data,n=e.error;return n?Object(r.a)(B.a,{error:n}):t?Object(r.a)("ul",null,t.map(function(e){if(!e.hide){console.log("FILE",e);var t=e.id,n="/info/".concat(e.id),a=e.title||e.id;return Object(r.a)("li",{key:t},Object(r.a)(q.a,{to:n},a))}})):Object(r.a)(Oe.a,null)}var Ee=n("+m9i"),Me=n.n(Ee);function Ae(){var e=Object(G.b)();return Object(r.a)(te.a,{fluid:!0},Object(r.a)(ne.a,null,Object(r.a)(re.a,null,Object(r.a)("h1",null,"Configuration"),Object(r.a)(Me.a,{data:e.data}))))}var De={};function Te(){return Object(r.a)(te.a,{fluid:!0},p()(De,function(e,t){return Object(r.a)(ne.a,null,Object(r.a)(re.a,{xs:"3"},Object(r.a)("kbd",null,t)),Object(r.a)(re.a,{xs:"9"},e))}))}function qe(){return Object(r.a)(q.c,{id:"info-router"},Object(r.a)(Re,{path:"/"}),Object(r.a)(Ae,{path:"system"}),Object(r.a)(Te,{path:"keys"}),Object(r.a)(be,{path:":id"}))}function xe(){return Object(r.a)(q.c,{id:"router"},Object(r.a)(Ce,{path:"/sessions"}),Object(r.a)(q.b,{from:"/session",to:"/sessions"}),Object(r.a)(ue,{path:"/session/:id"}),Object(r.a)(qe,{path:"/info/*"}),Object(r.a)(V,{default:!0}))}function Ce(){return Object(r.a)("div",null)}function Fe(){return Object(r.a)(c.a.Fragment,null,Object(r.a)("header",null,Object(r.a)(X,null)),Object(r.a)("main",null,Object(r.a)(xe,null)),Object(r.a)("footer",null))}n.d(t,"default",function(){return Fe}),Fe.propTypes={children:i.a.node}},fRGg:
/*!*************************!*\
  !*** ./utils/Button.js ***!
  \*************************/
/*! exports provided: Button */
/*! exports used: Button */function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(/*! @babel/runtime/helpers/esm/extends */"IKa1"),a=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Yh9w"),c=n(/*! @emotion/core */"xH0s"),i=n(/*! react */"r0ML"),o=n(/*! ./ */"MPav"),s=n(/*! ./ */"zehm"),u=n(/*! ../hooks */"5Eku"),l=n(/*! reactstrap */"tG/F");function b(e){var t=e.shortcut,n=e.className,s=e.children,b=Object(a.a)(e,["shortcut","className","children"]),O=b.onClick;return Object(u.a)(Object(i.useCallback)(function(e){return!!t&&(e===t&&(O(),!0))},[t,O])),b.className=Object(o.a)("focusable",n),Object(c.a)(l.a,Object(r.a)({outline:!0},b),t&&Object(c.a)("kbd",{className:"mr-4"},t),Object(c.a)("span",null,s))}b.propTypes={shortcut:s.a.string,onClick:s.a.func.isRequired}}}]);
//# sourceMappingURL=mainapp.cd2b4e9d.chunk.js.map