text: (function(e){function n(n){for(var t,a,r=n[0],u=n[1],s=n[2],i=0,f=[];i<r.length;i++)a=r[i],Object.prototype.hasOwnProperty.call(d,a)&&d[a]&&f.push(d[a][0]),d[a]=0;for(t in u)Object.prototype.hasOwnProperty.call(u,t)&&(e[t]=u[t]);l&&l(n);while(f.length)f.shift()();return o.push.apply(o,s||[]),c()}function c(){for(var e,n=0;n<o.length;n++){for(var c=o[n],t=!0,a=1;a<c.length;a++){var r=c[a];0!==d[r]&&(t=!1)}t&&(o.splice(n--,1),e=u(u.s=c[0]))}return e}var t={},a={app:0},d={app:0},o=[];function r(e){return u.p+"js/"+({"polyfills-core-js":"polyfills-core-js","polyfills-css-shim":"polyfills-css-shim","polyfills-dom":"polyfills-dom"}[e]||e)+"."+{"chunk-02c995b5":"90d2af25","chunk-04f8a86f":"36f1a9d2","chunk-09155df3":"52876540","chunk-09162720":"5fa9ec89","chunk-097e0872":"6c480f03","chunk-0a8963fe":"a694a774","chunk-0e93a01c":"7c8be212","chunk-0f78c12b":"de74e843","chunk-106fab1a":"a2194329","chunk-17725551":"387b4ab9","chunk-1af68f81":"7a0b0625","chunk-1bff95de":"6335095d","chunk-1d800ad7":"6ff72e88","chunk-1dbc15a2":"5bbc8af9","chunk-21a76241":"5db3fd0a","chunk-25b85234":"212d42b8","chunk-25d83ca8":"ae77f3fe","chunk-2a0d4422":"d8f7497b","chunk-2d0a463b":"181a281c","chunk-2d0abfcf":"8417852b","chunk-2d0b26e6":"f44e7e1b","chunk-2d0b2d3b":"825a8c25","chunk-2d0b722b":"ddbb227b","chunk-2d0bad0a":"c62fafa7","chunk-2d0c073f":"017f6960","chunk-2d0c9398":"50fc4edd","chunk-2d0cf6e3":"e5b7633e","chunk-2d0d43da":"b14f9e1d","chunk-2d0d6d65":"c0a075ab","chunk-2d0d7c42":"79be26d5","chunk-2d0da04a":"620f425b","chunk-2d0dd0bc":"b5c4bb06","chunk-2d0e5812":"730e6176","chunk-2d208de0":"04efcebb","chunk-2d209182":"7a9f1f4b","chunk-2d213189":"2b11f265","chunk-2d217172":"ebd9715e","chunk-2d217e6a":"9d5e5387","chunk-2d218068":"4ad272c9","chunk-2d21d0be":"2bf26885","chunk-2d21da73":"1dd5d4ed","chunk-2d228cf2":"2eb22644","chunk-2d22c8fe":"51558486","chunk-2d22dbc9":"648f0502","chunk-2d2304d2":"72233652","chunk-2d23154f":"8621d2da","chunk-2d237b00":"17ee064a","chunk-2d238683":"98cbbf51","chunk-30dd9750":"fb1fe266","chunk-37f2300e":"2b375e96","chunk-3ed29de3":"1276ef40","chunk-41c0f7a4":"b1c70fb5","chunk-462c869e":"f3907a37","chunk-47245a33":"ca01aa9b","chunk-4739acd0":"11f12e18","chunk-485adc83":"9e8ca448","chunk-4c09b414":"874a6442","chunk-53b1137a":"9c20f966","chunk-541ea42d":"cb739116","chunk-54bbd082":"aaf76913","chunk-576c85ba":"ded3b6a0","chunk-59a544b9":"4792e9a0","chunk-59d4c87c":"d2c0dc6c","chunk-5a8ac886":"84d7c134","chunk-5c16a8d7":"3c5b23e3","chunk-5ff96a24":"09081d93","chunk-69eb8776":"8c7da8f6","chunk-6d375f34":"fff43d43","chunk-7548ca2d":"1e259580","chunk-79f1dac7":"b3b5eaff","chunk-858cd918":"fa1f982c","chunk-8bb7f81e":"1c060df2","chunk-a9395c36":"eab30296","chunk-d0e8aa0a":"995b91d7","chunk-d5047ad6":"bafb3ab6","chunk-d8413eac":"2d2a414f","chunk-d8708fd0":"e3634051","chunk-e5275ddc":"75509abe","chunk-e5e547a4":"16131496","chunk-eaa2b130":"56fe9f30","chunk-f993edd8":"d87498c4","polyfills-core-js":"ab37e09a","polyfills-css-shim":"ac087954","polyfills-dom":"64b5cdb3","chunk-2d2297f7":"52f02239","chunk-2d2073d6":"9e36930f","chunk-2d0b33e3":"2e69defc","chunk-2d0b9280":"199a57da","chunk-2d0baac9":"ecbd8a2b","chunk-2d21a589":"3dace732","chunk-2d2376e6":"a05b70ee"}[e]+".js"}function u(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,u),c.l=!0,c.exports}u.e=function(e){var n=[],c={"chunk-0a8963fe":1,"chunk-0f78c12b":1,"chunk-25b85234":1,"chunk-4c09b414":1,"chunk-d5047ad6":1};a[e]?n.push(a[e]):0!==a[e]&&c[e]&&n.push(a[e]=new Promise((function(n,c){for(var t="css/"+({"polyfills-core-js":"polyfills-core-js","polyfills-css-shim":"polyfills-css-shim","polyfills-dom":"polyfills-dom"}[e]||e)+"."+{"chunk-02c995b5":"31d6cfe0","chunk-04f8a86f":"31d6cfe0","chunk-09155df3":"31d6cfe0","chunk-09162720":"31d6cfe0","chunk-097e0872":"31d6cfe0","chunk-0a8963fe":"f8658267","chunk-0e93a01c":"31d6cfe0","chunk-0f78c12b":"9c474f63","chunk-106fab1a":"31d6cfe0","chunk-17725551":"31d6cfe0","chunk-1af68f81":"31d6cfe0","chunk-1bff95de":"31d6cfe0","chunk-1d800ad7":"31d6cfe0","chunk-1dbc15a2":"31d6cfe0","chunk-21a76241":"31d6cfe0","chunk-25b85234":"9e9d6ec4","chunk-25d83ca8":"31d6cfe0","chunk-2a0d4422":"31d6cfe0","chunk-2d0a463b":"31d6cfe0","chunk-2d0abfcf":"31d6cfe0","chunk-2d0b26e6":"31d6cfe0","chunk-2d0b2d3b":"31d6cfe0","chunk-2d0b722b":"31d6cfe0","chunk-2d0bad0a":"31d6cfe0","chunk-2d0c073f":"31d6cfe0","chunk-2d0c9398":"31d6cfe0","chunk-2d0cf6e3":"31d6cfe0","chunk-2d0d43da":"31d6cfe0","chunk-2d0d6d65":"31d6cfe0","chunk-2d0d7c42":"31d6cfe0","chunk-2d0da04a":"31d6cfe0","chunk-2d0dd0bc":"31d6cfe0","chunk-2d0e5812":"31d6cfe0","chunk-2d208de0":"31d6cfe0","chunk-2d209182":"31d6cfe0","chunk-2d213189":"31d6cfe0","chunk-2d217172":"31d6cfe0","chunk-2d217e6a":"31d6cfe0","chunk-2d218068":"31d6cfe0","chunk-2d21d0be":"31d6cfe0","chunk-2d21da73":"31d6cfe0","chunk-2d228cf2":"31d6cfe0","chunk-2d22c8fe":"31d6cfe0","chunk-2d22dbc9":"31d6cfe0","chunk-2d2304d2":"31d6cfe0","chunk-2d23154f":"31d6cfe0","chunk-2d237b00":"31d6cfe0","chunk-2d238683":"31d6cfe0","chunk-30dd9750":"31d6cfe0","chunk-37f2300e":"31d6cfe0","chunk-3ed29de3":"31d6cfe0","chunk-41c0f7a4":"31d6cfe0","chunk-462c869e":"31d6cfe0","chunk-47245a33":"31d6cfe0","chunk-4739acd0":"31d6cfe0","chunk-485adc83":"31d6cfe0","chunk-4c09b414":"d67db659","chunk-53b1137a":"31d6cfe0","chunk-541ea42d":"31d6cfe0","chunk-54bbd082":"31d6cfe0","chunk-576c85ba":"31d6cfe0","chunk-59a544b9":"31d6cfe0","chunk-59d4c87c":"31d6cfe0","chunk-5a8ac886":"31d6cfe0","chunk-5c16a8d7":"31d6cfe0","chunk-5ff96a24":"31d6cfe0","chunk-69eb8776":"31d6cfe0","chunk-6d375f34":"31d6cfe0","chunk-7548ca2d":"31d6cfe0","chunk-79f1dac7":"31d6cfe0","chunk-858cd918":"31d6cfe0","chunk-8bb7f81e":"31d6cfe0","chunk-a9395c36":"31d6cfe0","chunk-d0e8aa0a":"31d6cfe0","chunk-d5047ad6":"b5dc5f57","chunk-d8413eac":"31d6cfe0","chunk-d8708fd0":"31d6cfe0","chunk-e5275ddc":"31d6cfe0","chunk-e5e547a4":"31d6cfe0","chunk-eaa2b130":"31d6cfe0","chunk-f993edd8":"31d6cfe0","polyfills-core-js":"31d6cfe0","polyfills-css-shim":"31d6cfe0","polyfills-dom":"31d6cfe0","chunk-2d2297f7":"31d6cfe0","chunk-2d2073d6":"31d6cfe0","chunk-2d0b33e3":"31d6cfe0","chunk-2d0b9280":"31d6cfe0","chunk-2d0baac9":"31d6cfe0","chunk-2d21a589":"31d6cfe0","chunk-2d2376e6":"31d6cfe0"}[e]+".css",d=u.p+t,o=document.getElementsByTagName("link"),r=0;r<o.length;r++){var s=o[r],i=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===t||i===d))return n()}var f=document.getElementsByTagName("style");for(r=0;r<f.length;r++){s=f[r],i=s.getAttribute("data-href");if(i===t||i===d)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var t=n&&n.target&&n.target.src||d,o=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=t,delete a[e],l.parentNode.removeChild(l),c(o)},l.href=d;var h=document.getElementsByTagName("head")[0];h.appendChild(l)})).then((function(){a[e]=0})));var t=d[e];if(0!==t)if(t)n.push(t[2]);else{var o=new Promise((function(n,c){t=d[e]=[n,c]}));n.push(t[2]=o);var s,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=r(e);var f=new Error;s=function(n){i.onerror=i.onload=null,clearTimeout(l);var c=d[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+t+": "+a+")",f.name="ChunkLoadError",f.type=t,f.request=a,c[1](f)}d[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:i})}),12e4);i.onerror=i.onload=s,document.head.appendChild(i)}return Promise.all(n)},u.m=e,u.c=t,u.d=function(e,n,c){u.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,n){if(1&n&&(e=u(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(u.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)u.d(c,t,function(n){return e[n]}.bind(null,t));return c},u.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(n,"a",n),n},u.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.p="/app/",u.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],i=s.push.bind(s);s.push=n,s=s.slice();for(var f=0;f<s.length;f++)n(s[f]);var l=i;o.push([0,"chunk-vendors"]),c()})({0:function(e,n,c){e.exports=c("cd49")},"0613":function(e,n,c){"use strict";c.d(n,"a",(function(){return E})),c.d(n,"b",(function(){return y})),c.d(n,"c",(function(){return S})),c.d(n,"d",(function(){return T}));var t=c("1b29"),a=c("9755"),d=c("bc3a"),o=c.n(d);const r="murderhungrystories190715-dev";function u(e,n){const c=T(),t=`http://${r}.s3.amazonaws.com/public/${e}_${c.state.locale}.${n}`;return console.log("download "+t),o.a.get(t)}var s=c("5502"),i=c("6ac3"),f=c("1547");const l={id:0,abstract:{title:"No game available",story:"To join a dinner enter the 8 digit code"},players:[],rounds:[]},h="murderhungryapi",b="/game",k={stories:[],gameStateId:"",game:l,loggedIn:!1,username:"",locale:"en"};function _(e){return k.gameState?k.gameState.cast.get(e):"na"}function p(){t["a"].post(h,b,{body:{gameid:k.gameStateId,playerid:_(k.username),username:k.username,token:k.pushToken?k.pushToken:"na",role:_(k.username)}}).then(e=>{}).catch(e=>{console.log(e.response)})}var m,E;(function(e){e["SET_GAME"]="SET_GAME",e["SET_STORY"]="SET_STORY",e["SET_STORIES"]="SET_STORIES",e["SET_STATE"]="SET_STATE",e["SET_STATE_ID"]="SET_STATE_ID",e["SET_LOGGED_IN_USER"]="SET_LOGGED_IN_USER",e["SET_PUSH_TOKEN"]="SET_PUSH_TOKEN",e["SET_LOCALE"]="SET_LOCALE"})(m||(m={})),function(e){e["SET_STORY"]="SET_STORY",e["GET_STATE"]="GET_STATE",e["GET_STORIES"]="GET_STORIES",e["GET_GAME"]="GET_GAME",e["SET_STATE_ID"]="SET_STATE_ID",e["SET_LOGGED_IN_USER"]="SET_LOGGED_IN_USER",e["SET_PUSH_TOKEN"]="SET_PUSH_TOKEN",e["SET_LOCALE"]="SET_LOCALE"}(E||(E={}));const y=Symbol(),j={[m.SET_GAME](e,n){e.game=n.localizations.get(e.locale)},[m.SET_STATE](e,n){e.gameState=n,g()},[m.SET_STATE_ID](e,n){e.gameStateId=n},[m.SET_STORIES](e,n){e.stories=n},[m.SET_PUSH_TOKEN](e,n){e.pushToken=n,p()},[m.SET_LOGGED_IN_USER](e,n){e.username=n,e.loggedIn=!!n},[m.SET_LOCALE](e,n){e.locale=n}},O={[E.SET_LOGGED_IN_USER](e,n){e.commit(m.SET_LOGGED_IN_USER,n),e.commit(m.SET_STATE_ID,"")},[E.SET_STATE_ID](e,n){return e.commit(m.SET_STATE_ID,n),e.dispatch(E.GET_STATE)},[E.SET_PUSH_TOKEN](e,n){e.commit(m.SET_PUSH_TOKEN,n)},[E.SET_LOCALE](e,n){e.commit(m.SET_LOCALE,n)},[E.GET_STORIES](e){return new Promise((n,c)=>{u("stories","json").then(c=>{const t=c.data;console.log("result "+t),e.commit(m.SET_STORIES,t),n(t)}).catch(e=>c(e))})},[E.GET_GAME](e,n){a["b"].get(`story-${n}.json`,{download:!0}).then(n=>{function c(e,n){return"object"===typeof n&&null!==n&&"Map"===n.dataType?new Map(n.value):n}new Response(n.Body).text().then(n=>{console.log("got game"),e.commit(m.SET_GAME,JSON.parse(n,c))})})},[E.GET_STATE](e){return console.log(`loading state ${k.gameStateId}.json`),a["b"].get(k.gameStateId+".json",{download:!0}).then(n=>{new Response(n.Body).text().then(n=>{function c(e,n){return"object"===typeof n&&null!==n&&"Map"===n.dataType?new Map(n.value):n}console.log("result "+n);const t=JSON.parse(n,c);e.commit(m.SET_STATE,t),this.dispatch(E.GET_GAME,t.story)})})}},S=Object(s["a"])({state:k,mutations:j,actions:O});function g(){"web"!==f["a"].getPlatform()&&(i["a"].requestPermissions().then(e=>{console.log("result "+JSON.stringify(e)),i["a"].register()}),i["a"].addListener("registration",e=>{S.dispatch(E.SET_PUSH_TOKEN,e.value)}).catch(e=>{console.log("error "+e)}))}function T(){return Object(s["b"])(y)}},"08d1":function(e,n,c){"use strict";c("e3b1")},1:function(e,n){},2:function(e,n){},"45b3":function(e,n,c){var t={"./ion-icon.entry.js":["ec64","chunk-2d2304d2"]};function a(e){if(!c.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],a=n[0];return c.e(n[1]).then((function(){return c(a)}))}a.keys=function(){return Object.keys(t)},a.id="45b3",e.exports=a},"521b":function(e,n,c){var t={"./amplify-amazon-button_5.entry.js":["77e1","chunk-2d0d7c42"],"./amplify-auth-container.entry.js":["398f","chunk-2d0bad0a"],"./amplify-auth-fields_9.entry.js":["2689","chunk-2d0b2d3b"],"./amplify-authenticator.entry.js":["b836","chunk-04f8a86f"],"./amplify-button_3.entry.js":["efa9","chunk-2d23154f"],"./amplify-chatbot.entry.js":["9b2c","chunk-576c85ba"],"./amplify-checkbox.entry.js":["db86","chunk-2d228cf2"],"./amplify-confirm-sign-in_7.entry.js":["e862","chunk-59a544b9"],"./amplify-container.entry.js":["a72f","chunk-2d208de0"],"./amplify-federated-buttons_2.entry.js":["644c","chunk-2d0cf6e3"],"./amplify-federated-sign-in.entry.js":["a81f","chunk-2d209182"],"./amplify-form-field_4.entry.js":["f988","chunk-2d22dbc9"],"./amplify-greetings.entry.js":["57dd","chunk-2d0c9398"],"./amplify-icon-button.entry.js":["182d","chunk-2d0abfcf"],"./amplify-icon.entry.js":["b8f5","chunk-e5e547a4"],"./amplify-link.entry.js":["f482","chunk-2d22c8fe"],"./amplify-nav_2.entry.js":["23a0","chunk-2d0b26e6"],"./amplify-photo-picker.entry.js":["c4f1","chunk-2d217172"],"./amplify-picker.entry.js":["d040","chunk-2d21d0be"],"./amplify-radio-button_3.entry.js":["97a4","chunk-5c16a8d7"],"./amplify-s3-album.entry.js":["4e6f","chunk-d8708fd0"],"./amplify-s3-image-picker.entry.js":["b90a","chunk-17725551"],"./amplify-s3-image.entry.js":["76ad","chunk-1d800ad7"],"./amplify-s3-text-picker.entry.js":["5af2","chunk-1af68f81"],"./amplify-s3-text.entry.js":["dce0","chunk-2a0d4422"],"./amplify-select-mfa-type.entry.js":["fef4","chunk-2d238683"],"./amplify-sign-in-button.entry.js":["7358","chunk-f993edd8"],"./amplify-tooltip.entry.js":["1faa","chunk-2d0b722b"]};function a(e){if(!c.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],a=n[0];return c.e(n[1]).then((function(){return c(a)}))}a.keys=function(){return Object.keys(t)},a.id="521b",e.exports=a},"8c28":function(e,n,c){},aa55:function(e,n,c){var t={"./ion-action-sheet.entry.js":["6618","chunk-485adc83"],"./ion-alert.entry.js":["f06c","chunk-106fab1a"],"./ion-app_8.entry.js":["c215","chunk-53b1137a"],"./ion-avatar_3.entry.js":["cf12","chunk-59d4c87c"],"./ion-back-button.entry.js":["4b35","chunk-69eb8776"],"./ion-backdrop.entry.js":["429d","chunk-2d0c073f"],"./ion-button_2.entry.js":["4453","chunk-25d83ca8"],"./ion-card_5.entry.js":["070b","chunk-541ea42d"],"./ion-checkbox.entry.js":["dfd8","chunk-09162720"],"./ion-chip.entry.js":["430d","chunk-09155df3"],"./ion-col_3.entry.js":["6a8a","chunk-2d0da04a"],"./ion-datetime_3.entry.js":["c15b","chunk-21a76241"],"./ion-fab_3.entry.js":["dd47","chunk-3ed29de3"],"./ion-img.entry.js":["9588","chunk-2d0e5812"],"./ion-infinite-scroll_2.entry.js":["d1e5","chunk-2d21da73"],"./ion-input.entry.js":["d111","chunk-37f2300e"],"./ion-item-option_3.entry.js":["1bb3","chunk-5ff96a24"],"./ion-item_8.entry.js":["69da","chunk-5a8ac886"],"./ion-loading.entry.js":["53a5","chunk-6d375f34"],"./ion-menu_3.entry.js":["cb00","chunk-097e0872"],"./ion-modal.entry.js":["1ad0","chunk-1bff95de"],"./ion-nav_2.entry.js":["e44f","chunk-4739acd0"],"./ion-popover.entry.js":["4285","chunk-e5275ddc"],"./ion-progress-bar.entry.js":["9b72","chunk-1dbc15a2"],"./ion-radio_2.entry.js":["beb3","chunk-0e93a01c"],"./ion-range.entry.js":["719f","chunk-54bbd082"],"./ion-refresher_2.entry.js":["0a47","chunk-d8413eac"],"./ion-reorder_2.entry.js":["6672","chunk-d0e8aa0a"],"./ion-ripple-effect.entry.js":["c8da","chunk-2d218068"],"./ion-route_4.entry.js":["10e8","chunk-858cd918"],"./ion-searchbar.entry.js":["8625","chunk-a9395c36"],"./ion-segment_2.entry.js":["0c02","chunk-462c869e"],"./ion-select_3.entry.js":["d25f","chunk-79f1dac7"],"./ion-slide_2.entry.js":["05dd","chunk-2d0a463b"],"./ion-spinner.entry.js":["e11b","chunk-8bb7f81e"],"./ion-split-pane.entry.js":["aae8","chunk-2d213189"],"./ion-tab-bar_2.entry.js":["a2bb","chunk-02c995b5"],"./ion-tab_2.entry.js":["6725","chunk-47245a33"],"./ion-text.entry.js":["ed3b","chunk-30dd9750"],"./ion-textarea.entry.js":["8798","chunk-eaa2b130"],"./ion-toast.entry.js":["c1a5","chunk-41c0f7a4"],"./ion-toggle.entry.js":["bef2","chunk-7548ca2d"],"./ion-virtual-scroll.entry.js":["5fd7","chunk-2d0d43da"]};function a(e){if(!c.o(t,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],a=n[0];return c.e(n[1]).then((function(){return c(a)}))}a.keys=function(){return Object.keys(t)},a.id="aa55",e.exports=a},cd49:function(e,n,c){"use strict";c.r(n);var t=c("7a23");const a=Object(t["j"])("5");function d(e,n,c,d,o,r){const u=Object(t["D"])("ion-icon"),s=Object(t["D"])("ion-label"),i=Object(t["D"])("ion-item"),f=Object(t["D"])("ion-badge"),l=Object(t["D"])("ion-menu-toggle"),h=Object(t["D"])("ion-list"),b=Object(t["D"])("amplify-sign-out"),k=Object(t["D"])("ion-content"),_=Object(t["D"])("ion-menu"),p=Object(t["D"])("ion-router-outlet"),m=Object(t["D"])("IonSplitPane"),E=Object(t["D"])("IonApp");return Object(t["w"])(),Object(t["f"])(E,null,{default:Object(t["I"])(()=>[Object(t["k"])(m,{"content-id":"main-content"},{default:Object(t["I"])(()=>[Object(t["k"])(_,{"content-id":"main-content",type:"overlay"},{default:Object(t["I"])(()=>[Object(t["k"])(k,null,{default:Object(t["I"])(()=>[Object(t["k"])(h,{id:"inbox-list"},{default:Object(t["I"])(()=>[Object(t["k"])(l,{"auto-hide":"false"},{default:Object(t["I"])(()=>[Object(t["k"])(i,{onClick:n[0]||(n[0]=n=>e.selectedIndex=0),"router-direction":"root","router-link":"/market",lines:"none",detail:"false",class:Object(t["r"])(["hydrated",{selected:0===e.selectedIndex}])},{default:Object(t["I"])(()=>[Object(t["k"])(u,{slot:"start",ios:"personOutline",md:"personSharp"}),Object(t["k"])(s,null,{default:Object(t["I"])(()=>[Object(t["j"])(Object(t["F"])(e.t("menu.market")),1)]),_:1})]),_:1},8,["class"]),e.store.state.gameStateId?(Object(t["w"])(),Object(t["f"])(i,{key:0,onClick:n[1]||(n[1]=n=>e.selectedIndex=1),"router-direction":"root","router-link":"/story",lines:"none",detail:"false",class:Object(t["r"])(["hydrated",{selected:1===e.selectedIndex}])},{default:Object(t["I"])(()=>[Object(t["k"])(u,{slot:"start",ios:"bookOutline",md:"bookSharp"}),Object(t["k"])(s,null,{default:Object(t["I"])(()=>[Object(t["j"])(Object(t["F"])(e.t("menu.story")),1)]),_:1})]),_:1},8,["class"])):Object(t["g"])("",!0),e.store.state.gameStateId?(Object(t["w"])(),Object(t["f"])(i,{key:1,onClick:n[2]||(n[2]=n=>e.selectedIndex=2),"router-direction":"root","router-link":"/part/mariannemichaels",lines:"none",detail:"false",class:Object(t["r"])(["hydrated",{selected:2===e.selectedIndex}])},{default:Object(t["I"])(()=>[Object(t["k"])(u,{slot:"start",ios:"personOutline",md:"personSharp"}),Object(t["k"])(s,null,{default:Object(t["I"])(()=>[Object(t["j"])(Object(t["F"])(e.t("menu.role")),1)]),_:1})]),_:1},8,["class"])):Object(t["g"])("",!0),e.store.state.gameStateId?(Object(t["w"])(),Object(t["f"])(i,{key:2,onClick:n[3]||(n[3]=n=>e.selectedIndex=3),"router-direction":"root","router-link":"/messages",lines:"none",detail:"false",class:Object(t["r"])(["hydrated",{selected:3===e.selectedIndex}])},{default:Object(t["I"])(()=>[Object(t["k"])(u,{slot:"start",ios:"mailOutline",md:"mailSharp"}),Object(t["k"])(s,null,{default:Object(t["I"])(()=>[Object(t["j"])(Object(t["F"])(e.t("menu.messages")),1)]),_:1}),Object(t["k"])(f,{color:"danger"},{default:Object(t["I"])(()=>[a]),_:1})]),_:1},8,["class"])):Object(t["g"])("",!0)]),_:1})]),_:1}),Object(t["k"])(b)]),_:1})]),_:1}),Object(t["k"])(p,{id:"main-content"})]),_:1})]),_:1})}var o=c("d867"),r=c("6c02"),u=c("ff79"),s=c("c50f"),i=c("2482"),f=c("bf82"),l=c("0613"),h=c("47e2"),b=Object(t["l"])({name:"App",components:{IonApp:o["a"],IonContent:o["m"],IonIcon:o["q"],IonItem:o["t"],IonBadge:o["c"],IonLabel:o["u"],IonList:o["v"],IonMenu:o["w"],IonMenuToggle:o["y"],IonRouterOutlet:o["B"],IonSplitPane:o["E"]},setup(){const{t:e,locale:n}=Object(h["b"])(),c=Object(l["d"])();Object(t["H"])(()=>c.state.gameStateId,(e,n)=>{console.log(`value changed from ${e} to ${n}`)}),i["a"].putVocabulariesForLanguage("de-DE",{[s["a"].SIGN_OUT]:"Ausloggen",[s["a"].SIGN_IN_HEADER_TEXT]:"Bitte melden Sie sich an",[s["a"].SIGN_IN_ACTION]:"Anmelden",[s["a"].FORGOT_PASSWORD_TEXT]:"Password vergessen?",[s["a"].RESET_PASSWORD_TEXT]:"Password zurücksetzen",[s["a"].NO_ACCOUNT_TEXT]:"Nicht Registriert?",[s["a"].CREATE_ACCOUNT_TEXT]:"Benutzer anlegen",[s["a"].PASSWORD_LABEL]:"Passwort*",[s["a"].PASSWORD_PLACEHOLDER]:"Bitte Passwort eingeben",[s["a"].EMAIL_LABEL]:"Email Adresse*",[s["a"].EMAIL_PLACEHOLDER]:"Bitte Email eingeben",[s["a"].CREATE_ACCOUNT_TEXT]:"Benutzer anlegen",[s["a"].SIGN_UP_HAVE_ACCOUNT_TEXT]:"Schon registriert?",[s["a"].SIGN_UP_HEADER_TEXT]:"Benutzer anlegen",[s["a"].SIGN_IN_TEXT]:"Anmelden",[s["a"].BACK_TO_SIGN_IN]:"Anmelden",[s["a"].SIGN_UP_SUBMIT_BUTTON_TEXT]:"Benutzer anlegen",[s["a"].PREFERRED_USERNAME_LABEL]:"Bevorzugter Benutzername",[s["a"].PREFERRED_USERNAME_PLACEHOLDER]:"Bitte bevorzugten Benutzernamen eingeben",[s["a"].RESET_PASSWORD_TEXT]:"Passwort zurücksetzen",[s["a"].RESET_YOUR_PASSWORD]:"Passwort zurücksetzen",[s["a"].SEND_CODE]:"Code senden"});const a=[{type:"preferred_username",label:"Bevorzugter Benutzername*",placeholder:"Bitte bevorzugten Benutzernamen eingeben"},{type:"email"},{type:"given_name",label:"Vorname*",placeholder:"Bitte Vornamen eingeben"},{type:"family_name",label:"Nachname*",placeholder:"Bitte Nachnamen eingeben"},{type:"password"}],d=Object(t["B"])(0),o=Object(r["h"])(),b=Object(t["B"])(null),k=Object(t["B"])(null);let _=null;return Object(t["u"])(()=>{_=Object(s["b"])((e,n)=>{b.value=e,k.value=n,console.log(b.value),"signedin"==b.value?f["a"].currentAuthenticatedUser().then(e=>{c.dispatch(l["a"].SET_LOGGED_IN_USER,e.attributes.preferred_username)}).catch(e=>{console.log(e),c.dispatch(l["a"].SET_LOGGED_IN_USER,"")}):c.dispatch(l["a"].SET_LOGGED_IN_USER,"")})}),Object(t["v"])(()=>{_()}),{selectedIndex:d,bookOutline:u["b"],bookSharp:u["c"],personOutline:u["o"],personSharp:u["p"],mailOutline:u["j"],mailSharp:u["k"],isSelected:e=>e===o.path?"selected":"",formFields:a,user:k,curAuthState:b,t:e,locale:n,store:c}}}),k=(c("08d1"),c("6b0d")),_=c.n(k);const p=_()(b,[["render",d],["__scopeId","data-v-0a180196"]]);var m=p,E=c("bec5");const y=[{path:"",redirect:"/market"},{path:"/story",component:()=>c.e("chunk-0f78c12b").then(c.bind(null,"095a"))},{path:"/dates",name:"dates",component:()=>c.e("chunk-2d0d6d65").then(c.bind(null,"73f9"))},{path:"/market",component:()=>c.e("chunk-4c09b414").then(c.bind(null,"3580"))},{path:"/market/:id",name:"market",component:()=>c.e("chunk-0a8963fe").then(c.bind(null,"1a3c"))},{path:"/part/:id",component:()=>c.e("chunk-25b85234").then(c.bind(null,"fd7f"))},{path:"/messages",component:()=>c.e("chunk-d5047ad6").then(c.bind(null,"eaad"))}],j=Object(E["a"])({history:Object(E["b"])("/app/"),routes:y});var O=j,S=(c("4b63"),c("4041"),c("51ef"),c("a237"),c("e09e"),c("46e5"),c("98b6"),c("2d22"),c("66b0"),c("ce1f"),c("8c28"),c("d6a3")),g=c("00bd");const T={aws_project_region:"eu-central-1",aws_cognito_identity_pool_id:"eu-central-1:91b8c6da-e334-40de-8093-84b3c35655cc",aws_cognito_region:"eu-central-1",aws_user_pools_id:"eu-central-1_6N39H8BHp",aws_user_pools_web_client_id:"4h5rhm6pifvqg3qsja1mhufipk",oauth:{},aws_cognito_login_mechanisms:["EMAIL"],aws_cognito_signup_attributes:["EMAIL","PREFERRED_USERNAME","GIVEN_NAME","FAMILY_NAME"],aws_cognito_mfa_configuration:"OFF",aws_cognito_mfa_types:["SMS"],aws_cognito_password_protection_settings:{passwordPolicyMinLength:8,passwordPolicyCharacters:["REQUIRES_LOWERCASE","REQUIRES_NUMBERS","REQUIRES_SYMBOLS","REQUIRES_UPPERCASE"]},aws_cognito_verification_mechanisms:["EMAIL"],aws_user_files_s3_bucket:"murderhungrystories190715-dev",aws_user_files_s3_bucket_region:"eu-central-1",aws_dynamodb_all_tables_region:"eu-central-1",aws_dynamodb_table_schemas:[{tableName:"murderhungrydb-dev",region:"eu-central-1"},{tableName:"gamestate-dev",region:"eu-central-1"}],aws_cloud_logic_custom:[{name:"murderhungryapi",endpoint:"https://6slyyxzse2.execute-api.eu-central-1.amazonaws.com/dev",region:"eu-central-1"}]};var I=T,A=c("49fc"),v=c.n(A);console.log("app launched"),g["default"].configure(I);const R=["en","de"],w=v()(),N={};try{w.forEach(e=>{if(console.log("language "+e),R.includes(e.substring(0,2)))throw console.log("set locale to supported language "+e),l["c"].dispatch(l["a"].SET_LOCALE,e.substring(0,2)),N})}catch(G){console.log("found a supported language")}Object(S["a"])().then(()=>{Object(S["b"])(window)});const L={de:{menu:{hello:"Hallo ",messages:"Nachrichten",story:"Die Story",role:"Deine Rolle",market:"Abenteuer finden",games:"Abenteuer finden"}},en:{menu:{hello:"Hello ",messages:"Messages",story:"The Story",role:"Your Role",market:"Find Stories"}}},D=Object(h["a"])({locale:w[0],fallbackLocale:"en",messages:L,legacy:!1}),P=Object(t["e"])(m).use(l["c"],l["b"]).use(o["I"]).use(O).use(D);O.isReady().then(()=>{P.mount("#app")})},e3b1:function(e,n,c){}});
  //# sourceMappingURL=app.6ef3e292.js.map