webpackJsonp([1],{"+GU0":function(e,t,n){var o=n("kxFB");(e.exports=n("FZ+f")(!1)).push([e.i,'\n@font-face {\n font-family: "Proxima Nova";\n src: url('+o(n("Bzol"))+');\n}\n@font-face {\n font-family: "Proxima Nova Bold";\n src: url('+o(n("xW23"))+');\n}\n@font-face {\n font-family: "Ambroise std demi";\n src: url('+o(n("EudG"))+");\n}\nhtml {\n font-family: 'Proxima Nova', sans-serif;\n}\nh1, h2, h3, h4, h5, p {\n font-weight: normal;\n font-style: normal;\n margin: 0;\n padding: 0;\n}\n@media screen and (min-width: calc(650px + 6rem)) {\nh1.slipping-left, h2.slipping-left, h3.slipping-left, h4.slipping-left, h5.slipping-left, p.slipping-left {\n margin-left: -5rem;\n}\n}\nh1 {\n font-family: 'Ambroise std demi', sans-serif;\n font-weight: 400;\n line-height: 1.2em;\n font-size: 34px;\n text-transform: lowercase;\n text-decoration: none;\n text-align: left;\n letter-spacing: .01em;\n color: #cb0b0b;\n margin-bottom: 2rem;\n}\n.form {\n -webkit-box-shadow: rgba(128, 128, 128, 0) 0px 0px 0px 1px inset;\n box-shadow: rgba(128, 128, 128, 0) 0px 0px 0px 1px inset;\n clear: both;\n color: rgba(0, 0, 0, 0.701961);\n letter-spacing: normal;\n line-height: 22.399999618530273px;\n outline-color: rgba(0, 0, 0, 0.701961);\n outline-style: none;\n outline-width: 0px;\n padding: 0px 15px 17px;\n position: relative;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0.2s;\n transition-duration: 0.2s;\n -webkit-transition-property: -webkit-box-shadow;\n transition-property: -webkit-box-shadow;\n transition-property: box-shadow;\n transition-property: box-shadow, -webkit-box-shadow;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n}\n.form-item {\n border-width: 0px;\n color: rgba(0, 0, 0, 0.701961);\n display: block;\n font-family: 'Proxima Nova';\n font-size: 14px;\n line-height: 17px;\n margin: 0 0 1rem -12px;\n min-width: -webkit-min-content;\n min-width: -moz-min-content;\n min-width: min-content;\n padding: 0px;\n}\n.form-item .title {\n color: rgba(0, 0, 0, 0.701961);\n display: block;\n font-family: 'Proxima Nova';\n font-size: 14px;\n font-style: normal;\n font-weight: 300;\n height: 17px;\n letter-spacing: normal;\n line-height: 17px;\n}\n.form-item .field {\n display: block;\n float: left;\n position: relative;\n width: 290.9375px;\n}\n@media screen and (max-width: 650px) {\n.form-item .field {\n max-width: 40vw;\n min-width: 120px;\n}\n}\n.form-item .field:last-of-type {\n margin-left: 11px;\n}\n.form-item .field .caption {\n cursor: pointer;\n display: inline;\n font-family: 'Proxima Nova';\n font-size: 12px;\n font-style: normal;\n font-weight: 300;\n height: auto;\n letter-spacing: normal;\n line-height: 14px;\n}\n.form input {\n -webkit-appearance: none;\n -webkit-rtl-ordering: logical;\n -webkit-user-select: text;\n background-color: #fafafa;\n border: 1px solid #cccccc;\n border-radius: 3px;\n border-image-outset: 0px;\n border-image-repeat: stretch;\n border-image-slice: 100%;\n border-image-source: none;\n border-image-width: 1;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: auto;\n display: inline-block;\n height: 42px;\n font-family: 'Proxima Nova';\n letter-spacing: normal;\n font-size: 14px;\n line-height: 16px;\n margin: 6px 0 4px;\n padding: 12px;\n width: 100%;\n}\n.form textarea {\n -webkit-appearance: none;\n -webkit-rtl-ordering: logical;\n -webkit-user-select: text;\n border-color: #cccccc;\n border-left-radius: 2px;\n border-right-radius: 2px;\n border-style: solid;\n border-width: 1px;\n font-family: 'Proxima Nova';\n letter-spacing: normal;\n font-size: 14px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 14px;\n margin: 6px 0px 4px;\n min-height: 100px;\n overflow-x: auto;\n overflow-y: auto;\n padding: 12px;\n resize: vertical;\n text-align: start;\n text-indent: 0px;\n text-shadow: none;\n text-transform: none;\n vertical-align: top;\n white-space: pre-wrap;\n width: 100%;\n word-spacing: 0px;\n word-wrap: break-word;\n -webkit-writing-mode: horizontal-tb;\n -ms-writing-mode: lr-tb;\n writing-mode: horizontal-tb;\n}\nhtml, body {\n height: 100%;\n margin: 0px;\n padding: 0px;\n line-height: 1;\n}\n.disableScroll {\n overflow: hidden;\n}\na {\n cursor: pointer;\n}\n#app {\n color: black;\n font-weight: 400;\n}\n.site-header {\n border-bottom: 1px solid #e8e8e1;\n}\n.hidden {\n display: none;\n}\n",""])},"/HXj":function(e,t,n){var o=n("1Fiz");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("7b069a4a",o,!0,{})},"/mRj":function(e,t,n){var o=n("b9P+");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("02df3403",o,!0,{})},"1/oy":function(e,t){},"1Fiz":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.gallery--header[data-v-56a4e95a] {\n padding-bottom: 1rem;\n}\n.gallery--info[data-v-56a4e95a] {\n font-size: 15px;\n line-height: 1.6rem;\n letter-spacing: 0rem;\n color: rgba(0, 0, 0, 0.8);\n}\n.gallery--info[data-v-56a4e95a]:first-of-type {\n margin-top: 0.8rem;\n}\n.gallery--info a[data-v-56a4e95a] {\n font-family: 'Ambroise std demi';\n font-style: normal;\n}\n.gallery--info a[data-v-56a4e95a]:visited {\n color: #3b70a2;\n}\n.gallery--subtext[data-v-56a4e95a] {\n font-size: 15px;\n line-height: 1.6rem;\n letter-spacing: 0rem;\n color: rgba(0, 0, 0, 0.8);\n}\n.form[data-v-56a4e95a] {\n display: absolute;\n float: right;\n margin-top: 1rem;\n margin-right: 1rem;\n}\n.button[data-v-56a4e95a] {\n -webkit-appearance: none;\n -webkit-backface-visibility: none;\n border: 2.5px solid #c91119;\n border-radius: 3px;\n background-color: white;\n color: #c91119;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n height: 42px;\n letter-spacing: 1px;\n line-height: 14px;\n margin-left: -10px;\n padding: 0 1rem;\n text-transform: uppercase;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0.1s;\n transition-duration: 0.1s;\n -webkit-transition-property: opacity;\n transition-property: opacity;\n -webkit-transition-timing-function: linear;\n transition-timing-function: linear;\n vertical-align: baseline;\n white-space: pre;\n -webkit-writing-mode: horizontal-tb;\n -ms-writing-mode: lr-tb;\n writing-mode: horizontal-tb;\n}\n.button[data-v-56a4e95a]:hover, .button[data-v-56a4e95a]:active, .button[data-v-56a4e95a]:focus {\n color: white;\n background-color: #c91119;\n}\n",""])},"4caJ":function(e,t,n){var o=n("AyGg");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("75d7f362",o,!0,{})},"7BRB":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".header[data-v-1c522e76]{margin-bottom:5rem}h2[data-v-1c522e76]{text-align:center;font-weight:400}.container[data-v-1c522e76]{min-height:1029px;margin:25px auto 85px;padding:4em;max-width:888px;background-color:#fff}",""])},"7Xkr":function(e,t,n){var o=n("7BRB");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);(0,n("po5z").default)("338047d7",o,!0,{})},AyGg:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\ndiv[data-v-5bff958b] {\n width: 70%;\n display: block;\n margin: 6rem auto 0;\n}\n",""])},B5sO:function(e,t,n){var o=n("myJO");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("043e3d4c",o,!0,{})},Bzol:function(e,t,n){e.exports=n.p+"static/fonts/Proxima-Nova.8232099.ttf"},Dwu1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mtWM"),i=n.n(o),a=n("SFAN"),r=n.n(a),s=n("dDoS"),l=n.n(s),c={data:()=>({timeout:void 0,resultMapboxLocations:[],showAutocompleted:!1,chosenLocation:void 0,locationInput:void 0,highlightedLocation:-1}),watch:{locationInput:function(e,t){if(""===e)return void(this.resultMapboxLocations=[]);console.log("input changed"),(!!this.chosenLocation&&this.LocationName)!==e&&this.debounce(this.getMapboxPlaces)}},computed:{LocationName(){return this.chosenLocation?this.chosenLocation.place_name_no:void 0},tabIndex:e=>4+e},methods:{highlightNext(){let e=this.highlightedLocation;if(e0)return e--,console.log("curr",e,this.$refs.listElement[e]),this.$refs.listElement[e].focus(),void(this.highlightedLocation=e);this.$refs.listInput.focus(),this.highlightedLocation=-1},debounce(e,t=1e3){clearTimeout(this.timeout),this.timeout=setTimeout(()=>e.apply(this,arguments),t)},locationSelected(e){console.log("Chosen"),this.chosenLocation=e,this.locationInput=this.LocationName,this.showAutocompleted=!1,this.$emit("newLocation",e)},hide(){this.showAutocompleted=!1},show(){this.showAutocompleted=!0},getMapboxPlaces(){i.a.get(`https://api.mapbox.com/geocoding/v5/mapbox.places/${this.locationInput}.json`,{params:{access_token:"pk.eyJ1Ijoia2V2aW5taWRib2UiLCJhIjoiY2pydWhlamQyMHJ2NTRhdGN1em5ndXVyMyJ9.Ejdo_3iuuGOD662Bh6es4w",autocomplete:!0,language:"no"}}).then(e=>{this.resultMapboxLocations=e.data.features,this.showAutocompleted=!0}),console.log("CALLING")}},directives:{ClickOutside:l.a}},d=n("XyMi");var p=function(e){n("Y9Cw")},m=Object(d.a)(c,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-item required",staticStyle:{overflow:"hidden"}},[e._m(0),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.locationInput,expression:"locationInput"}],ref:"listInput",attrs:{tabindex:4,type:"text"},domProps:{value:e.locationInput},on:{keyup:[function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?e.highlightNext(t):null},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.getMapboxPlaces(t):null}],click:e.show,input:function(t){t.target.composing||(e.locationInput=t.target.value)}}}),e._v(" "),e.showAutocompleted&&e.resultMapboxLocations.length>1?n("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.hide,expression:"hide"}],staticClass:"field-autocompleted"},e._l(e.resultMapboxLocations,function(t,o){return n("li",{ref:"listElement",refInFor:!0,attrs:{tabindex:5+o},on:{click:function(n){e.locationSelected(t)},keyup:[function(n){if(!("button"in n)&&e._k(n.keyCode,"enter",13,n.key,"Enter"))return null;e.locationSelected(t)},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?e.highlightNext(t):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?e.highlightPrev(t):null}]}},[e._v("\n \n "+e._s(t.place_name_no)+"\n ")])})):e._e()])},[function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"title"},[this._v("sted"),t("span",{staticClass:"required"},[this._v("*")])])}],!1,p,"data-v-38344836",null).exports,h=n("olkN"),u={data:()=>({files:[],previewFiles:[]}),watch:{files(){this.$emit("newFiles",this.files)}},methods:{setPopoverAlbum:e=>h.a.dispatch("setPopoverAlbum",e),setPopoverAlbumIndex:e=>h.a.dispatch("setPopoverAlbumIndex",e),showPopover:()=>h.a.dispatch("showPopover"),processFiles(e){const t=e.target.files;let n=[],o=this.files;for(var i=t.length-1;i>=0;i--)n.push({url:URL.createObjectURL(t[i]),index:i});n.reverse(),o=[...o,...t],console.log("Packed uploaded album:",o),this.setPopoverAlbum(o),this.files=o},popOver(e){console.log("popover called"),this.setPopoverAlbumIndex(e.index),this.showPopover()}}};var v=function(e){n("B5sO")},f={components:{FormElementLocation:m,FormElementUpload:Object(d.a)(u,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-item"},[n("label",{staticClass:"title"},[e._v("last opp bilder")]),e._v(" "),n("input",{attrs:{id:"file-upload",type:"file",multiple:""},on:{change:e.processFiles}}),e._v(" "),e.files.length?n("div",{staticClass:"previewWindow"},[n("p",{staticClass:"previewWindow--title"},[e._v(e._s(e.files.length)+" bilder lagt til")]),e._v(" "),n("div",{staticClass:"previewWindow--image"},e._l(e.files,function(t){return n("div",{staticClass:"img",style:{"background-image":"url("+t.url},on:{click:function(n){e.popOver(t)}}})}))]):e._e()])},[],!1,v,"data-v-4e7cb34e",null).exports},data:()=>({title:"",dateStart:"",dateEnd:"",chosenLocation:void 0,chosenFiles:void 0,subtext:""}),computed:{LocationName(){return this.chosenLocation?this.chosenLocation.place_name_no:void 0},LocationGeoposition(){return this.chosenLocation?this.chosenLocation.geometry.coordinates:void 0}},methods:{setLocation(e){console.log("detected location changed"),console.log("inputLocation",e),this.chosenLocation=e},setFiles(e){this.chosenFiles=e},processForm:function(){let e={title:this.title,dateStart:this.dateStart,dateEnd:this.dateEnd,subtext:this.subtext,locationName:this.LocationName,geoposition:this.LocationGeoposition,mapboxData:this.chosenLocation};fetch("http://localhost:5000/api/adventure",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>console.log("response from posting to server:",e)).catch(e=>console.error("error from post request:",e))}}};var g=function(e){n("/mRj")},b=Object(d.a)(f,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"form",on:{submit:function(e){e.preventDefault()}}},[n("div",{staticClass:"form-item required"},[e._m(0),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"title"}],staticClass:"field-element",attrs:{type:"text",tabindex:1},domProps:{value:e.title},on:{input:function(t){t.target.composing||(e.title=t.target.value)}}})]),e._v(" "),n("fieldset",{staticClass:"form-item"},[e._m(1),e._v(" "),n("div",{staticClass:"field first-name"},[n("label",{staticClass:"caption"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.dateStart,expression:"dateStart"}],attrs:{type:"date",spellcheck:"false",maxlength:"30",tabindex:2},domProps:{value:e.dateStart},on:{input:function(t){t.target.composing||(e.dateStart=t.target.value)}}}),e._v("\n fra dato\n ")])]),e._v(" "),n("div",{staticClass:"field last-name"},[n("label",{staticClass:"caption"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.dateEnd,expression:"dateEnd"}],attrs:{type:"date",spellcheck:"false",maxlength:"30",tabindex:3},domProps:{value:e.dateEnd},on:{input:function(t){t.target.composing||(e.dateEnd=t.target.value)}}}),e._v("\n til dato\n ")])])]),e._v(" "),n("form-element-location",{on:{newLocation:e.setLocation}}),e._v(" "),n("div",{staticClass:"form-item"},[e._m(2),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.subtext,expression:"subtext"}],domProps:{value:e.subtext},on:{input:function(t){t.target.composing||(e.subtext=t.target.value)}}})]),e._v(" "),n("form-element-upload",{on:{newFiles:e.setFiles}}),e._v(" "),e._m(3),e._v(" "),n("div",{staticClass:"hidden form-submission-text"},[e._v("Thank you!")]),e._v(" "),n("div",{staticClass:"hidden form-submission-html",attrs:{"data-submission-html":""}})],1)},[function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"title"},[this._v("tittel "),t("span",{staticClass:"required"},[this._v("*")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("dato "),t("span",{staticClass:"required"},[this._v("*")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("label",{staticClass:"title"},[this._v("love letter "),t("span",{staticClass:"required"},[this._v("*")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("button",{staticClass:"button",attrs:{type:"submit"}},[this._v("Legg til")])])}],!1,g,"data-v-a482c2dc",null).exports,x={components:{GridLayout:r.a.GridLayout,GridItem:r.a.GridItem,EventForm:b},computed:{rowHeight:function(){return this.imageGrid?this.grid.rows[this.imageGrid.lastBreakpoint]:150}},data:()=>({timeout:void 0,features:[],showAutocompleted:!1,selectedPlace:void 0,imageGrid:void 0,title:"",dateStart:"",dateEnd:"",subtext:"",location:void 0,files:[],reorder:!1,grid:{cols:{lg:6,md:5,sm:4,xs:3,xxs:2},rows:{lg:216,md:240,sm:280,xs:250,xxs:150},breakpoints:{lg:1200,md:996,sm:800,xs:600,xxs:0}},layout:[{x:0,y:0,w:1,h:1,i:"0",img:"https://upload.wikimedia.org/wikipedia/commons/f/f9/Obama_portrait_crop.jpg"},{x:1,y:0,w:1,h:1,i:"1",img:"https://api.kevinmidboe.com/files/images/DSC_9029.JPG"},{x:2,y:0,w:1,h:1,i:"2"},{x:3,y:0,w:1,h:1,i:"3"},{x:4,y:0,w:1,h:1,i:"4"},{x:5,y:0,w:1,h:1,i:"5"}]}),watch:{location:function(e,t){console.log("input changed"),(!!this.selectedPlace&&this.selectedPlace.place_name_no)!==e&&this.debounce(this.call)}},created(){},mounted(){this.imageGrid=this.$refs.imageGrid},methods:{processForm:function(){let e={title:this.title,dateStart:this.dateStart,dateEnd:this.dateEnd,subtext:this.subtext,locationName:this.location,geoposition:this.selectedPlace.geometry.coordinates,mapboxData:this.selectedPlace};fetch("http://localhost:5000/api/adventure",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>console.log("response from posting to server:",e)).catch(e=>console.error("error from post request:",e))},processFile(e){this.files=e.target.files,console.log("files",this.files)},gridSettings(){let e=this.$refs.imageGrid.lastBreakpoint,t=this.grid.cols[e];console.log("gridSetting",e,t,this.$refs.imageGrid)},debounce(e,t=1e3){clearTimeout(this.timeout),this.timeout=setTimeout(()=>e.apply(this,arguments),t)},choosePlace(e){console.log("Chooosen"),this.location=e.place_name_no,this.selectedPlace=e,this.showAutocompleted=!1},hide(){this.showAutocompleted=!1},show(){this.showAutocompleted=!0},call(){i.a.get(`https://api.mapbox.com/geocoding/v5/mapbox.places/${this.location}.json`,{params:{access_token:"pk.eyJ1Ijoia2V2aW5taWRib2UiLCJhIjoiY2pydWhlamQyMHJ2NTRhdGN1em5ndXVyMyJ9.Ejdo_3iuuGOD662Bh6es4w",autocomplete:!0,language:"no"}}).then(e=>{this.features=e.data.features,this.showAutocompleted=!0}),console.log("CALLING")}},directives:{ClickOutside:l.a}};var w=function(e){n("Pl7v")},y=Object(d.a)(x,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"parent"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"slipping-left"},[this._v("registrer en ny opplevelse")]),this._v(" "),t("event-form")],1)])},[],!1,w,"data-v-613e049c",null);t.default=y.exports},Ecos:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\nimg[data-v-6c2239b0] {\n height: 300px;\n cursor: pointer;\n margin: 0 0.5rem;\n}\n@media screen and (max-width: 600px) {\nimg[data-v-6c2239b0] {\n background-color: red;\n height: unset;\n width: 100%;\n}\n}\n",""])},EudG:function(e,t,n){e.exports=n.p+"static/fonts/Ambroise-std-Demi.08b470f.ttf"},GeJz:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.field-autocompleted[data-v-38344836] {\n width: calc(100% - 1.26rem);\n position: absolute;\n padding: 0;\n margin: 0;\n margin-top: -6px;\n background-color: white;\n border-color: #cccccc;\n border-radius: 2px;\n border-style: solid;\n border-width: 1px;\n}\n.field-autocompleted li[data-v-38344836] {\n list-style: none;\n height: 2.3rem;\n line-height: 2.3rem;\n padding-left: 0.5rem;\n white-space: nowrap;\n overflow: hidden;\n}\n.field-autocompleted li[data-v-38344836]:hover, .field-autocompleted li[data-v-38344836]:focus {\n background-color: #e6e6e6;\n cursor: pointer;\n}\n.field-autocompleted .selected[data-v-38344836] {\n background-color: #e6e6e6;\n}\n",""])},GfHa:function(e,t){},Id91:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("7+uW"),i=n("NYxO"),a=n("olkN"),r={computed:{album:()=>a.a.getters.popoverAlbum,index:()=>a.a.getters.popoverAlbumIndex},created(){window.addEventListener("keyup",this.arrowNavigation)},methods:{hidePopover:()=>a.a.dispatch("hidePopover"),forwards:()=>a.a.dispatch("incrementPopoverImage"),backwards:()=>a.a.dispatch("decrementPopoverImage"),arrowNavigation(e){"ArrowLeft"===e.key?this.backwards():"ArrowRight"===e.key?this.forwards():"Escape"===e.key&&this.hidePopover()},beforeDestroy(){window.removeEventListener("keyup")}}},s=n("XyMi");var l=function(e){n("Q8mr")},c=Object(s.a)(r,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"touch",rawName:"v-touch:swipe.left",value:e.backwards,expression:"backwards",arg:"swipe",modifiers:{left:!0}},{name:"touch",rawName:"v-touch:swipe.right",value:e.forwards,expression:"forwards",arg:"swipe",modifiers:{right:!0}}],staticClass:"popover",on:{click:e.hidePopover}},[n("div",{staticClass:"popover-content"},[n("div",{staticClass:"image-container"},[n("img",{attrs:{src:e.album[e.index].url}}),e._v(" "),e._m(0)])]),e._v(" "),n("div",{staticStyle:{position:"fixed",width:"100%",bottom:"2rem"}},[n("div",{staticStyle:{display:"block",width:"max-content",margin:"0 auto"}},[n("button",{on:{click:e.backwards}},[e._v("Backwards")]),e._v(" "),n("button",{on:{click:e.forwards}},[e._v("Forwards")])])])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"other-elements"},[t("p",[this._v("There is something here")])])}],!1,l,"data-v-38a99f9a",null).exports,d=n("/ocq");o.default.use(d.a);let p=[{name:"Home",path:"/",components:n("lO7g")},{name:"Event page",path:"/event/:id",props:{default:!0},components:n("ozSN")},{name:"Edit event",path:"/edit",components:n("Dwu1")},{name:"Calendar",path:"/calendar",props:{default:{short:!1}},components:n("iyFI")},{name:"404",path:"*"}];const m=new d.a({routes:p});m.beforeEach((e,t,n)=>{console.log(e),n()});var h=m,u={name:"App",components:{Popover:c},computed:Object(i.b)(["popoverState"])};var v=function(e){n("hrK/")},f=Object(s.a)(u,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container",attrs:{id:"app"}},[t("router-view"),this._v(" "),this.popoverState?t("Popover",{staticClass:"popup"}):this._e()],1)},[],!1,v,null,null).exports,g=n("mtWM"),b=n.n(g),x=n("e6fC"),w=n("ufW0"),y=n.n(w);o.default.config.productionTip=!1,window.eventHub=new o.default,o.default.use(y.a),new o.default({el:"#app",axios:b.a,router:h,store:a.a,BootstrapVue:x.a,components:{App:f},template:""})},Nh6g:function(e,t,n){var o=n("iDlX");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("7c2ddbdf",o,!0,{})},Pl7v:function(e,t,n){var o=n("uNZN");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("9ba4f9fa",o,!0,{})},Q8mr:function(e,t,n){var o=n("QHsV");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("75901e28",o,!0,{})},QHsV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.popover[data-v-38a99f9a] {\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n background-color: rgba(0, 0, 0, 0.7);\n}\n.popover-content[data-v-38a99f9a] {\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n overflow: auto;\n}\n.popover img[data-v-38a99f9a] {\n max-height: 92vh;\n max-width: 92vw;\n}\n@media screen and (max-width: 600px) {\n.popover img[data-v-38a99f9a] {\n max-width: 95vw;\n}\n}\n.popover .other-elements[data-v-38a99f9a] {\n margin-top: -3px;\n padding: 1rem;\n color: white;\n background-color: rgba(0, 0, 0, 0.75);\n}\n.popover .hover-options[data-v-38a99f9a] {\n position: relative;\n background-color: rgba(0, 0, 0, 0.4);\n font-family: 'Proxima Nova Bold';\n font-weight: 600;\n width: calc(100% - 2rem);\n padding: 0.6rem 1rem;\n margin-top: -38px;\n z-index: 3;\n}\n.popover .hover-options span[data-v-38a99f9a] {\n cursor: pointer;\n padding: 0.1rem 0.2rem;\n}\n.popover .hover-options span[data-v-38a99f9a]:not(:first-child) {\n margin-left: 2rem;\n}\n",""])},R5aw:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},UVcO:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\nheader[data-v-3e2e7a7c] {\n width: 100%;\n height: 3.5rem;\n background-color: NavajoWhite;\n}\n.navigate-back[data-v-3e2e7a7c] {\n height: 100%;\n display: inline-block;\n background-color: blue;\n}\n",""])},UnLQ:function(e,t,n){var o=n("Ecos");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("19047dd7",o,!0,{})},XLFd:function(e,t,n){var o=n("UVcO");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("562ed736",o,!0,{})},Y9Cw:function(e,t,n){var o=n("GeJz");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("b4f288bc",o,!0,{})},asTL:function(e,t,n){var o=n("R5aw");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("769a02d0",o,!0,{})},"b9P+":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.button[data-v-a482c2dc] {\n -webkit-appearance: none;\n -webkit-backface-visibility: none;\n background-color: #272727;\n border-color: #272727;\n border-style: outset;\n border-width: 0px;\n border-radius: 3px;\n color: white;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n height: 42px;\n letter-spacing: 1px;\n line-height: 14px;\n margin-left: -10px;\n padding: 0 1rem;\n text-align: center;\n text-decoration: none;\n text-shadow: none;\n text-transform: uppercase;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0.1s;\n transition-duration: 0.1s;\n -webkit-transition-property: opacity;\n transition-property: opacity;\n -webkit-transition-timing-function: linear;\n transition-timing-function: linear;\n vertical-align: baseline;\n white-space: pre;\n -webkit-writing-mode: horizontal-tb;\n -ms-writing-mode: lr-tb;\n writing-mode: horizontal-tb;\n}\n",""])},"hrK/":function(e,t,n){var o=n("+GU0");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("7f5e0826",o,!0,{})},iDlX:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.gallery-container[data-v-14b34f92] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: space-evenly;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n padding: 1rem 0;\n}\n",""])},iyFI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={props:{short:{default:!0,type:Boolean}},data:()=>({}),created(){},beforeMount(){},methods:{}},i=n("XyMi");var a=function(e){n("4caJ")},r=Object(i.a)(o,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",[this._v("kalender")]),this._v("\n\n "+this._s(this.longList)+"\n")])},[],!1,a,"data-v-5bff958b",null);t.default=r.exports},lO7g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={components:{},data:()=>({}),created(){},beforeMount(){},methods:{}},i=n("XyMi");var a=function(e){n("XLFd")},r={components:{Header:Object(i.a)(o,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var e=this.$createElement,t=this._self._c||e;return t("header",[t("div",{staticClass:"navigate-back"},[this._v("Tilbake")])])}],!1,a,"data-v-3e2e7a7c",null).exports,EventPage:n("ozSN").default},data:()=>({title:"Leifs opplevelser",date:void 0,bool:!1}),methods:{navigate:function(){console.log(this.$router),this.$router.push("/edit")}}};var s=function(e){n("7Xkr")},l=Object(i.a)(r,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{staticClass:"container"},[t("h1",{staticClass:"header"},[this._v("leifs opplevelser")]),this._v(" "),t("event-page",{staticStyle:{height:"100%",overflow:"auto"}})],1)])},[],!1,s,"data-v-1c522e76",null);t.default=l.exports},myJO:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.previewWindow[data-v-4e7cb34e] {\n -webkit-appearance: none;\n -webkit-rtl-ordering: logical;\n -webkit-user-select: text;\n background-color: #fafafa;\n border: 1px solid #cccccc;\n border-radius: 3px;\n border-image-outset: 0px;\n border-image-repeat: stretch;\n border-image-slice: 100%;\n border-image-source: none;\n border-image-width: 1;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n cursor: auto;\n display: inline-block;\n font-family: 'Proxima Nova';\n letter-spacing: normal;\n font-size: 14px;\n line-height: 16px;\n width: 100%;\n margin-top: -6px;\n border-top: unset;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.previewWindow--title[data-v-4e7cb34e] {\n padding-left: 0.6rem;\n padding-top: 0.8rem;\n padding-bottom: 0.8rem;\n margin-bottom: 0.8rem;\n width: calc(100% - 0.6rem);\n font-size: 1rem;\n border-bottom: 1px solid #cccccc;\n}\n.previewWindow--image[data-v-4e7cb34e] {\n width: 100%;\n margin-left: 0.1rem;\n}\n.previewWindow--image .img[data-v-4e7cb34e] {\n display: inline-block;\n margin: 0.1rem;\n width: calc(25% - 0.3rem);\n height: 100px;\n background-size: cover;\n background-origin: content-box;\n background-repeat: no-repeat;\n}\n",""])},olkN:function(e,t,n){"use strict";var o=n("7+uW"),i=n("NYxO");o.default.use(i.a);const a={showPopover(e){e.popover=!0},hidePopover(e){e.popover=!1},setPopoverAlbum(e,t){e.popoverAlbum=t},setPopoverAlbumIndex(e,t){e.popoverAlbumIndex=t},incrementPopoverImage(e){let t=e.popoverAlbumIndex;t++,console.log("Setting popover index:",t),t>e.popoverAlbum.length-1&&(t=0),e.popoverAlbumIndex=t},decrementPopoverImage(e){let t=e.popoverAlbumIndex;t--,console.log("Setting popover index:",t),t<0&&(t=e.popoverAlbum.length-1),e.popoverAlbumIndex=t}};t.a=new i.a.Store({state:{popover:!1,popoverAlbum:[],popoverAlbumIndex:0},getters:{popoverState:e=>e.popover,popoverAlbum:e=>e.popoverAlbum,popoverAlbumIndex:e=>e.popoverAlbumIndex},actions:{showPopover:({commit:e})=>e("showPopover"),hidePopover:({commit:e})=>e("hidePopover"),setPopoverAlbum:({commit:e},t)=>e("setPopoverAlbum",t),setPopoverAlbumIndex:({commit:e},t)=>e("setPopoverAlbumIndex",t),incrementPopoverImage:({commit:e})=>e("incrementPopoverImage"),decrementPopoverImage:({commit:e})=>e("decrementPopoverImage")},mutations:a})},ozSN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("olkN"),i={props:{image:{type:Object,required:!0},index:{type:Number}},methods:{showPopover:()=>o.a.dispatch("showPopover"),setPopoverAlbumIndex:e=>o.a.dispatch("setPopoverAlbumIndex",e),popover(e){this.setPopoverAlbumIndex(this.index),this.showPopover(),this.$emit("click",e)}}},a=n("XyMi");var r=function(e){n("UnLQ")},s=Object(a.a)(i,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("\n "+e._s(e.index)+"\n "),n("img",{attrs:{src:e.image.url},on:{click:function(t){e.popover(e.image)}}}),e._v(" "),n("p",[e._v(e._s(e.image.name))])])},[],!1,r,"data-v-6c2239b0",null).exports,l={components:{},props:{text:{type:Object,required:!1}},data:()=>({}),created(){},beforeMount(){},methods:{}};var c=function(e){n("asTL")},d=Object(a.a)(l,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h3",[this._v(this._s(this.text.title))]),this._v(" "),t("p",[this._v(this._s(this.text.subtext))])])},[],!1,c,"data-v-055f4c01",null).exports,p=(n("NYxO"),{name:"Gallery-Item",components:{GalleryImage:s,GalleryText:d},props:{short:{default:!1,type:Boolean}},data:()=>({selected:void 0,gallery:[{type:"image",name:"Dress to impress",url:"https://static1.squarespace.com/static/585040955016e131e74667b0/5a4eeae7ec212d38915e64cd/5a4eeae7419202bdaaeaffc1/1515121386282/The-Marias-Art-2.jpg"},{type:"image",name:"Couple",url:"https://static1.squarespace.com/static/585040955016e131e74667b0/5a4eeae7ec212d38915e64cd/5a4eeaebec212d38915e659c/1515121395460/The-Marias-Art-6.PNG"},{type:"image",name:"Nice jacket",url:"https://static1.squarespace.com/static/585040955016e131e74667b0/5a4eeae7ec212d38915e64cd/5a4eeae8ec212d38915e64d2/1515121386336/The-Marias-Art-3.jpg?format=500w"},{type:"image",name:"plants 4 life",url:"https://static1.squarespace.com/static/585040955016e131e74667b0/5a4eeae7ec212d38915e64cd/5a4eeaee0852296d709ba5a6/1515121396456/The-Marias-Art-10.PNG?format=500w"},{type:"image",name:"Two brothers and a mountain that could never beat them",url:"https://api.kevinmidboe.com/files/images/DSC_9029.JPG"}]}),created(){this.setPopoverAlbum(this.gallery)},watch:{gallery:function(e){this.setPopoverAlbum(e)}},methods:{setPopoverAlbum:e=>o.a.dispatch("setPopoverAlbum",e),imageSelected(e){console.log("selected image",e),this.selected=e},selectedIndexInGallery(){const e=this.gallery,t=this.selected;for(var n=0;n({eventLocation:"Oslo, Gardermoen, Norge",startDate:void 0,endDate:void 0,subtext:"On November 1, 2018, we embarked on our tour with Triathalon. Thank you so much to everyone who came to see us, for buying our merch, for saying hello after the shows, to the amazing hard-working people at the venues, and of course to our team + Live Nation, Ones to Watch, for booking us on our favorite tour this year. And thank you to Claud, Girl Ultra and Kevin Krauter for playing these shows with us. \n\n Here are some of our favorite moments captured by one of our favorite people, Meghan Cummings (@meghancummings). "}),computed:{eventDate:function(){return{from:this.startDate||"28.09.18",until:this.endDate||"12.10.19"}}}};var u=function(e){n("/HXj")},v=Object(a.a)(h,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"form"},[n("router-link",{attrs:{to:"edit"}},[n("button",{staticClass:"button",attrs:{type:"submit"}},[e._v("Rediger")])])],1),e._v(" "),n("div",{staticClass:"gallery"},[n("div",{staticClass:"gallery--header"},[n("h1",[e._v("Topptur til gaustadtoppen æøå "+e._s(e.id))]),e._v(" "),n("div",{staticClass:"gallery--info"},[n("p",[e._v(e._s(e.eventDate.from)+" - "+e._s(e.eventDate.until))]),e._v(" "),n("p",[e._v(e._s(e.eventLocation)+". "),n("a",{attrs:{href:"#"}},[e._v("Se kart")])]),e._v(" "),n("p",[e._v(e._s(e.subtext))])])]),e._v(" "),n("gallery",{attrs:{short:!1}})],1)])},[],!1,u,"data-v-56a4e95a",null);t.default=v.exports},uNZN:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"\n.tools[data-v-613e049c] {\n position: fixed;\n bottom: 1rem;\n right: 1rem;\n}\n.tools > button[data-v-613e049c] {\n border: 2.5px solid #c91119;\n background-color: white;\n color: #c91119;\n}\n.tools > button[data-v-613e049c]:hover, .tools > button[data-v-613e049c]:active, .tools > button[data-v-613e049c]:focus, .tools > button.active[data-v-613e049c] {\n color: white;\n background-color: #c91119;\n}\n.image-grid[data-v-613e049c] {\n max-width: 1445px;\n}\n.grid-layout[data-v-613e049c] {\n width: 100vw;\n}\n.grid-item[data-v-613e049c] {\n background-color: NavajoWhite;\n font-size: 3rem;\n color: blue;\n}\n.grid-item > div > span[data-v-613e049c] {\n display: inline-block;\n position: absolute;\n}\n.grid-item > div[data-v-613e049c], .grid-item > div > img[data-v-613e049c] {\n background-position: center center;\n background-size: cover;\n background-repeat: no-repeat;\n height: inherit;\n width: inherit;\n}\n.parent[data-v-613e049c] {\n display: block;\n width: 70vw;\n margin: 4rem auto;\n}\n@media screen and (max-width: 650px) {\n.parent[data-v-613e049c] {\n margin: 4rem 1rem;\n width: unset;\n}\n}\n.container[data-v-613e049c] {\n color: rgba(0, 0, 0, 0.701961);\n line-height: 22.399999618530273px;\n padding-right: 0px;\n width: 100%;\n max-width: 612px;\n margin: 0 auto;\n margin-bottom: 3rem;\n}\n",""])},xW23:function(e,t,n){e.exports=n.p+"static/fonts/Proxima-Nova-Bold.1a23ce1.ttf"},zj2Q:function(e,t){}},["NHnr"]); //# sourceMappingURL=app.a3f8fa0d8948ba620bfc.js.map