Files
leifsopplevelser/docs/static/js/app.bd295510d8bf60f6eba8.js
2019-02-20 01:43:51 +01:00

2 lines
39 KiB
JavaScript

webpackJsonp([1],{"+GU0":function(t,e,n){var o=n("kxFB");(t.exports=n("FZ+f")(!1)).push([t.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}\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(t,e,n){var o=n("1Fiz");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("7b069a4a",o,!0,{})},"1/oy":function(t,e){},"1BwE":function(t,e,n){var o=n("PHiN");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("162cb566",o,!0,{})},"1Fiz":function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.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(t,e,n){var o=n("AyGg");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("75d7f362",o,!0,{})},"7Qyf":function(t,e,n){var o=n("USbc");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("ba6e7d36",o,!0,{})},"9BEn":function(t,e,n){var o=n("S0KH");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);(0,n("po5z").default)("4a541054",o,!0,{})},AyGg:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\ndiv[data-v-5bff958b] {\n width: 70%;\n display: block;\n margin: 6rem auto 0;\n}\n",""])},Bzol:function(t,e,n){t.exports=n.p+"static/fonts/Proxima-Nova.8232099.ttf"},Dwu1:function(t,e,n){"use strict";Object.defineProperty(e,"__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(t,e){if(""===t)return void(this.resultMapboxLocations=[]);console.log("input changed"),(!!this.chosenLocation&&this.LocationName)!==t&&this.debounce(this.getMapboxPlaces)}},computed:{LocationName(){return this.chosenLocation?this.chosenLocation.place_name_no:void 0},tabIndex:t=>4+t},methods:{highlightNext(){let t=this.highlightedLocation;if(t<this.resultMapboxLocations.length-1)return t++,console.log("curr",t,this.$refs.listElement[t]),this.$refs.listElement[t].focus({preventScroll:!0}),void(this.highlightedLocation=t);this.$refs.listInput.focus({preventScroll:!0}),this.highlightedLocation=-1},highlightPrev(){let t=this.highlightedLocation;if(t>0)return t--,console.log("curr",t,this.$refs.listElement[t]),this.$refs.listElement[t].focus(),void(this.highlightedLocation=t);this.$refs.listInput.focus(),this.highlightedLocation=-1},debounce(t,e=1e3){clearTimeout(this.timeout),this.timeout=setTimeout(()=>t.apply(this,arguments),e)},locationSelected(t){console.log("Chosen"),this.chosenLocation=t,this.locationInput=this.LocationName,this.showAutocompleted=!1,this.$emit("newLocation",t)},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(t=>{this.resultMapboxLocations=t.data.features,this.showAutocompleted=!0}),console.log("CALLING")}},directives:{ClickOutside:l.a}},d=n("XyMi");var p=function(t){n("HaG4")},h={components:{FormElementLocation:Object(d.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"form-item required",staticStyle:{overflow:"hidden"}},[t._v("\n "+t._s(t.highlightedLocation)+"\n\n "),t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.locationInput,expression:"locationInput"}],ref:"listInput",attrs:{tabindex:4,type:"text"},domProps:{value:t.locationInput},on:{keyup:[function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?t.highlightNext(e):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.getMapboxPlaces(e):null}],click:t.show,input:function(e){e.target.composing||(t.locationInput=e.target.value)}}}),t._v(" "),t.showAutocompleted&&t.resultMapboxLocations.length>1?n("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hide,expression:"hide"}],staticClass:"field-autocompleted"},t._l(t.resultMapboxLocations,function(e,o){return n("li",{ref:"listElement",refInFor:!0,attrs:{tabindex:5+o},on:{click:function(n){t.locationSelected(e)},keyup:[function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;t.locationSelected(e)},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?t.highlightNext(e):null},function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?t.highlightPrev(e):null}]}},[t._v("\n \n "+t._s(e.place_name_no)+"\n ")])})):t._e()])},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"title"},[this._v("sted"),e("span",{staticClass:"required"},[this._v("*")])])}],!1,p,"data-v-53d766e8",null).exports},data:()=>({title:"",dateStart:"",dateEnd:"",chosenLocation:void 0,subtext:"",files:[]}),computed:{LocationName(){return this.chosenLocation?this.chosenLocation.place_name_no:void 0},LocationGeoposition(){return this.chosenLocation?this.chosenLocation.geometry.coordinates:void 0}},methods:{setLocation(t){console.log("detected location changed"),console.log("inputLocation",t),this.chosenLocation=t},processForm:function(){let t={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(t)}).then(t=>console.log("response from posting to server:",t)).catch(t=>console.error("error from post request:",t))},processFile(t){this.files=t.target.files,console.log("files",this.files)}}};var m=function(t){n("YwPb")},u=Object(d.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"form",on:{submit:function(t){t.preventDefault()}}},[n("div",{staticClass:"form-item required"},[t._m(0),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"field-element",attrs:{type:"text",tabindex:1},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),n("fieldset",{staticClass:"form-item"},[t._m(1),t._v(" "),n("div",{staticClass:"field first-name"},[n("label",{staticClass:"caption"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.dateStart,expression:"dateStart"}],attrs:{type:"date",spellcheck:"false",maxlength:"30",tabindex:2},domProps:{value:t.dateStart},on:{input:function(e){e.target.composing||(t.dateStart=e.target.value)}}}),t._v("\n fra dato\n ")])]),t._v(" "),n("div",{staticClass:"field last-name"},[n("label",{staticClass:"caption"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.dateEnd,expression:"dateEnd"}],attrs:{type:"date",spellcheck:"false",maxlength:"30",tabindex:3},domProps:{value:t.dateEnd},on:{input:function(e){e.target.composing||(t.dateEnd=e.target.value)}}}),t._v("\n til dato\n ")])])]),t._v(" "),n("form-element-location",{on:{newLocation:t.setLocation}}),t._v(" "),n("div",{staticClass:"form-item"},[t._m(2),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.subtext,expression:"subtext"}],domProps:{value:t.subtext},on:{input:function(e){e.target.composing||(t.subtext=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-item"},[n("label",{staticClass:"title"},[t._v("last opp bilder")]),t._v(" "),n("input",{attrs:{id:"file-upload",type:"file",multiple:""},on:{change:t.processFile}}),t._v("\n "+t._s(t.files.length)+"\n ")]),t._v(" "),t._m(3),t._v(" "),n("div",{staticClass:"hidden form-submission-text"},[t._v("Thank you!")]),t._v(" "),n("div",{staticClass:"hidden form-submission-html",attrs:{"data-submission-html":""}})],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"title"},[this._v("tittel "),e("span",{staticClass:"required"},[this._v("*")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("dato "),e("span",{staticClass:"required"},[this._v("*")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticClass:"title"},[this._v("love letter "),e("span",{staticClass:"required"},[this._v("*")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("button",{staticClass:"button",attrs:{type:"submit"}},[this._v("Legg til")])])}],!1,m,"data-v-3e3073b1",null).exports,f={components:{GridLayout:r.a.GridLayout,GridItem:r.a.GridItem,EventForm:u},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(t,e){console.log("input changed"),(!!this.selectedPlace&&this.selectedPlace.place_name_no)!==t&&this.debounce(this.call)}},created(){},mounted(){this.imageGrid=this.$refs.imageGrid},methods:{processForm:function(){let t={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(t)}).then(t=>console.log("response from posting to server:",t)).catch(t=>console.error("error from post request:",t))},processFile(t){this.files=t.target.files,console.log("files",this.files)},gridSettings(){let t=this.$refs.imageGrid.lastBreakpoint,e=this.grid.cols[t];console.log("gridSetting",t,e,this.$refs.imageGrid)},debounce(t,e=1e3){clearTimeout(this.timeout),this.timeout=setTimeout(()=>t.apply(this,arguments),e)},choosePlace(t){console.log("Chooosen"),this.location=t.place_name_no,this.selectedPlace=t,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(t=>{this.features=t.data.features,this.showAutocompleted=!0}),console.log("CALLING")}},directives:{ClickOutside:l.a}};var g=function(t){n("XQAZ")},b=Object(d.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"parent"},[n("div",{staticClass:"container"},[n("h1",{staticClass:"slipping-left"},[t._v("registrer en ny opplevelse")]),t._v(" "),n("event-form")],1),t._v(" "),n("div",{staticClass:"image-grid"},[n("grid-layout",{ref:"imageGrid",attrs:{layout:t.layout,colNum:3,rowHeight:t.rowHeight,responsive:!0,cols:t.grid.cols,breakpoints:t.grid.breakpoints,autoSize:!0,"is-draggable":t.reorder,"is-resizable":!1,"is-mirrored":!1,margin:[10,10],"use-css-transforms":!0},on:{"update:layout":function(e){t.layout=e}}},t._l(t.layout,function(e){return n("grid-item",{key:e.i,staticClass:"grid-item",attrs:{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i}},[n("div",{style:{"background-image":"url("+e.img+")"}},[n("span",[t._v(t._s(e.i))])])])}))],1),t._v(" "),n("div",{staticClass:"tools"},[n("button",{staticClass:"button",class:{active:t.reorder},on:{click:function(e){t.reorder=!t.reorder}}},[t._v(t._s(t.reorder?"submit":"reoder"))])]),t._v("\n "+t._s(t.reorder)+"\n\n")])},[],!1,g,"data-v-73aee421",null);e.default=b.exports},EudG:function(t,e,n){t.exports=n.p+"static/fonts/Ambroise-std-Demi.08b470f.ttf"},GfHa:function(t,e){},HaG4:function(t,e,n){var o=n("vTCl");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("1004a659",o,!0,{})},Id91:function(t,e){},NHnr:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("7+uW"),i=n("lO7g"),a=n("/ocq");o.default.use(a.a);let r=[{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 s=new a.a({routes:r});s.beforeEach((t,e,n)=>{console.log(t),n()});var l=s,c={name:"App",components:{Home:i.default},data:()=>({loaded:!1}),methods:{}},d=n("XyMi");var p=function(t){n("hrK/")},h=Object(d.a)(c,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"container",attrs:{id:"app"}},[e("router-view")],1)},[],!1,p,null,null).exports,m=n("mtWM"),u=n.n(m),f=n("e6fC"),g=n("ufW0"),b=n.n(g);o.default.config.productionTip=!1,window.eventHub=new o.default,o.default.use(b.a),new o.default({el:"#app",axios:u.a,router:l,BootstrapVue:f.a,components:{App:h},template:"<App/>"})},NlMX:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.tools[data-v-73aee421] {\n position: fixed;\n bottom: 1rem;\n right: 1rem;\n}\n.tools > button[data-v-73aee421] {\n border: 2.5px solid #c91119;\n background-color: white;\n color: #c91119;\n}\n.tools > button[data-v-73aee421]:hover, .tools > button[data-v-73aee421]:active, .tools > button[data-v-73aee421]:focus, .tools > button.active[data-v-73aee421] {\n color: white;\n background-color: #c91119;\n}\n.image-grid[data-v-73aee421] {\n max-width: 1445px;\n}\n.grid-layout[data-v-73aee421] {\n width: 100vw;\n}\n.grid-item[data-v-73aee421] {\n background-color: NavajoWhite;\n font-size: 3rem;\n color: blue;\n}\n.grid-item > div > span[data-v-73aee421] {\n display: inline-block;\n position: absolute;\n}\n.grid-item > div[data-v-73aee421], .grid-item > div > img[data-v-73aee421] {\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-73aee421] {\n display: block;\n width: 70vw;\n margin: 4rem auto;\n}\n@media screen and (max-width: 650px) {\n.parent[data-v-73aee421] {\n margin: 4rem 1rem;\n width: unset;\n}\n}\n.container[data-v-73aee421] {\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",""])},PB3E:function(t,e,n){var o=n("VaI6");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("77911082",o,!0,{})},PHiN:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\nimg[data-v-f7a47b14] {\n height: 300px;\n cursor: pointer;\n margin: 0 0.5rem;\n}\n@media screen and (max-width: 600px) {\nimg[data-v-f7a47b14] {\n background-color: red;\n height: unset;\n width: 100%;\n}\n}\n",""])},R5aw:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"",""])},S0KH:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,".header[data-v-587bb1be]{margin-bottom:5rem}h2[data-v-587bb1be]{text-align:center;font-weight:400}.container[data-v-587bb1be]{min-height:1029px;margin:25px auto 85px;padding:4em;max-width:888px;background-color:#fff}",""])},USbc:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.popover[data-v-53f7eab0] {\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-53f7eab0] {\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-53f7eab0] {\n max-height: 92vh;\n max-width: 92vw;\n}\n@media screen and (max-width: 600px) {\n.popover img[data-v-53f7eab0] {\n max-width: 95vw;\n}\n}\n.popover .other-elements[data-v-53f7eab0] {\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-53f7eab0] {\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-53f7eab0] {\n cursor: pointer;\n padding: 0.1rem 0.2rem;\n}\n.popover .hover-options span[data-v-53f7eab0]:not(:first-child) {\n margin-left: 2rem;\n}\n",""])},UVcO:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.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",""])},VaI6:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.gallery-container[data-v-2e65f3aa] {\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",""])},XLFd:function(t,e,n){var o=n("UVcO");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("562ed736",o,!0,{})},XQAZ:function(t,e,n){var o=n("NlMX");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("d34e4c60",o,!0,{})},YwPb:function(t,e,n){var o=n("mpxj");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("463a92a4",o,!0,{})},asTL:function(t,e,n){var o=n("R5aw");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("769a02d0",o,!0,{})},"hrK/":function(t,e,n){var o=n("+GU0");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);n("rjj0")("7f5e0826",o,!0,{})},iyFI:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={props:{short:{default:!0,type:Boolean}},data:()=>({}),created(){},beforeMount(){},methods:{}},i=n("XyMi");var a=function(t){n("4caJ")},r=Object(i.a)(o,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h1",[this._v("kalender")]),this._v("\n\n "+this._s(this.longList)+"\n")])},[],!1,a,"data-v-5bff958b",null);e.default=r.exports},lO7g:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={components:{},data:()=>({}),created(){},beforeMount(){},methods:{}},i=n("XyMi");var a=function(t){n("XLFd")},r=Object(i.a)(o,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,e=this._self._c||t;return e("header",[e("div",{staticClass:"navigate-back"},[this._v("Tilbake")])])}],!1,a,"data-v-3e2e7a7c",null).exports,s=n("ozSN"),l={components:{},props:{image:{type:Object,required:!0}},created(){window.addEventListener("keyup",this.arrowNavigation)},methods:{forwards(){eventHub.$emit("iteratePopoverImage",1)},backwards(){eventHub.$emit("iteratePopoverImage",-1)},arrowNavigation(t){"ArrowLeft"===t.key?this.backwards():"ArrowRight"===t.key&&this.forwards()},close(){eventHub.$emit("closePopover")},beforeDestroy(){window.removeEventListener("keyup")}}};var c=function(t){n("7Qyf")},d=Object(i.a)(l,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"touch",rawName:"v-touch:swipe.left",value:t.backwards,expression:"backwards",arg:"swipe",modifiers:{left:!0}},{name:"touch",rawName:"v-touch:swipe.right",value:t.forwards,expression:"forwards",arg:"swipe",modifiers:{right:!0}}],staticClass:"popover",on:{click:t.close}},[n("div",{staticClass:"popover-content"},[n("div",{staticClass:"image-container"},[n("img",{attrs:{src:t.image.url}}),t._v(" "),t._m(0)])]),t._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:t.backwards}},[t._v("Backwards")]),t._v(" "),n("button",{on:{click:t.forwards}},[t._v("Forwards")])])])])},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"other-elements"},[e("p",[this._v("There is something here")])])}],!1,c,"data-v-53f7eab0",null).exports,p={components:{Header:r,EventPage:s.default,Popover:d},data:()=>({title:"Leifs opplevelser",date:void 0,bool:!1,popoverImage:void 0,popoverShow:!1}),created(){this.date=new Date,eventHub.$on("openPopover",this.openPopover),eventHub.$on("closePopover",this.closePopover)},methods:{openPopover(t){this.popoverImage=t,this.popoverShow=!0,document.body.classList.add("disableScroll")},closePopover(t){this.popoverShow=!1,document.body.classList.remove("disableScroll")},navigate:function(){console.log(this.$router),this.$router.push("/edit")}}};var h=function(t){n("9BEn")},m=Object(i.a)(p,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[this.popoverShow?e("Popover",{staticClass:"popup",attrs:{image:this.popoverImage}}):this._e(),this._v(" "),e("div",{staticClass:"container"},[e("h1",{staticClass:"header"},[this._v("leifs opplevelser")]),this._v(" "),e("event-page",{staticStyle:{height:"100%",overflow:"auto"}})],1)],1)},[],!1,h,"data-v-587bb1be",null);e.default=m.exports},mpxj:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.form[data-v-3e3073b1] {\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[data-v-3e3073b1] {\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[data-v-3e3073b1] {\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[data-v-3e3073b1] {\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[data-v-3e3073b1] {\n max-width: 40vw;\n min-width: 120px;\n}\n}\n.form-item .field[data-v-3e3073b1]:last-of-type {\n margin-left: 11px;\n}\n.form-item .field .caption[data-v-3e3073b1] {\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[data-v-3e3073b1] {\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[data-v-3e3073b1] {\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}\n.field-autocompleted[data-v-3e3073b1] {\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-3e3073b1] {\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-3e3073b1]:hover {\n background-color: #e6e6e6;\n cursor: pointer;\n}\n.button[data-v-3e3073b1] {\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",""])},ozSN:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={components:{},props:{image:{type:Object,required:!0}},data:()=>({}),created(){},beforeMount(){},methods:{popOver(t){eventHub.$emit("openPopover",t),this.$emit("click",t)}}},i=n("XyMi");var a=function(t){n("1BwE")},r=Object(i.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("img",{attrs:{src:t.image.url},on:{click:function(e){t.popOver(t.image)}}}),t._v(" "),n("p",[t._v(t._s(t.image.name))])])},[],!1,a,"data-v-f7a47b14",null).exports,s={components:{},props:{text:{type:Object,required:!1}},data:()=>({}),created(){},beforeMount(){},methods:{}};var l=function(t){n("asTL")},c={name:"Gallery-Item",components:{GalleryImage:r,GalleryText:Object(i.a)(s,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h3",[this._v(this._s(this.text.title))]),this._v(" "),e("p",[this._v(this._s(this.text.subtext))])])},[],!1,l,"data-v-055f4c01",null).exports},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(){eventHub.$on("iteratePopoverImage",this.iteratePopoverImage)},methods:{imageSelected(t){this.selected=t,console.log(this.selected.name)},selectedIndexInGallery(){const t=this.gallery,e=this.selected;for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},iteratePopoverImage(t){let e=this.selectedIndexInGallery()+t;e>=this.gallery.length?e=0:-1==e&&(e=this.gallery.length-1);let n=this.gallery[e];eventHub.$emit("openPopover",n),this.selected=n}}};var d=function(t){n("PB3E")},p={components:{Gallery:Object(i.a)(c,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gallery-container"},t._l(t.gallery,function(e,o){return n("div",["image"===e.type?n("gallery-image",{attrs:{image:e},on:{click:t.imageSelected}}):t._e(),t._v(" "),"text"===e.type?n("gallery-text",{attrs:{text:e}}):t._e()],1)}))},[],!1,d,"data-v-2e65f3aa",null).exports,Calendar:n("iyFI").default},props:["id"],data:()=>({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 h=function(t){n("/HXj")},m=Object(i.a)(p,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"form"},[n("router-link",{attrs:{to:"edit"}},[n("button",{staticClass:"button",attrs:{type:"submit"}},[t._v("Rediger")])])],1),t._v(" "),n("div",{staticClass:"gallery"},[n("div",{staticClass:"gallery--header"},[n("h1",[t._v("Topptur til gaustadtoppen æøå "+t._s(t.id))]),t._v(" "),n("div",{staticClass:"gallery--info"},[n("p",[t._v(t._s(t.eventDate.from)+" - "+t._s(t.eventDate.until))]),t._v(" "),n("p",[t._v(t._s(t.eventLocation)+". "),n("a",{attrs:{href:"#"}},[t._v("Se kart")])]),t._v(" "),n("p",[t._v(t._s(t.subtext))])])]),t._v(" "),n("gallery",{attrs:{short:!1}})],1)])},[],!1,h,"data-v-56a4e95a",null);e.default=m.exports},vTCl:function(t,e,n){(t.exports=n("FZ+f")(!1)).push([t.i,"\n.form[data-v-53d766e8] {\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[data-v-53d766e8] {\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[data-v-53d766e8] {\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[data-v-53d766e8] {\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[data-v-53d766e8] {\n max-width: 40vw;\n min-width: 120px;\n}\n}\n.form-item .field[data-v-53d766e8]:last-of-type {\n margin-left: 11px;\n}\n.form-item .field .caption[data-v-53d766e8] {\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[data-v-53d766e8] {\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[data-v-53d766e8] {\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}\n.field-autocompleted[data-v-53d766e8] {\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-53d766e8] {\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-53d766e8]:hover, .field-autocompleted li[data-v-53d766e8]:focus {\n background-color: #e6e6e6;\n cursor: pointer;\n}\n.field-autocompleted .selected[data-v-53d766e8] {\n background-color: #e6e6e6;\n}\n.button[data-v-53d766e8] {\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",""])},xW23:function(t,e,n){t.exports=n.p+"static/fonts/Proxima-Nova-Bold.1a23ce1.ttf"},zj2Q:function(t,e){}},["NHnr"]);
//# sourceMappingURL=app.bd295510d8bf60f6eba8.js.map