(function(e){function o(o){for(var n,i,s=o[0],l=o[1],d=o[2],u=0,p=[];u<s.length;u++)i=s[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&p.push(r[i][0]),r[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);c&&c(o);while(p.length)p.shift()();return a.push.apply(a,d||[]),t()}function t(){for(var e,o=0;o<a.length;o++){for(var t=a[o],n=!0,s=1;s<t.length;s++){var l=t[s];0!==r[l]&&(n=!1)}n&&(a.splice(o--,1),e=i(i.s=t[0]))}return e}var n={},r={app:0},a=[];function i(o){if(n[o])return n[o].exports;var t=n[o]={i:o,l:!1,exports:{}};return e[o].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=e,i.c=n,i.d=function(e,o,t){i.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,o){if(1&o&&(e=i(e)),8&o)return e;if(4&o&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)i.d(t,n,function(o){return e[o]}.bind(null,n));return t},i.n=function(e){var o=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(o,"a",o),o},i.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},i.p="";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=o,s=s.slice();for(var d=0;d<s.length;d++)o(s[d]);var c=l;a.push([0,"chunk-vendors"]),t()})({0:function(e,o,t){e.exports=t("56d7")},"034f":function(e,o,t){"use strict";var n=t("85ec"),r=t.n(n);r.a},"56d7":function(e,o,t){"use strict";t.r(o);t("e260"),t("e6cf"),t("cca6"),t("a79d");var n=t("2b0e"),r=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{attrs:{id:"app"}},[t("SlideShow")],1)},a=[],i=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",[e.slideshow?t("div",{staticClass:"container"},[t("hooper",{on:{slide:e.resize,loaded:e.ready}},[t("hooper-pagination",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"}),t("hooper-navigation",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"}),t("hooper-progress",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"}),e._l(e.slideshow,(function(o,n){return t("slide",{key:n},[t("div",{staticClass:"slide-image"},[t("div",{staticClass:"slide-label",style:o.labelcss},[e._v(e._s(o.label))]),t("img",{staticStyle:{"background-color":"#fff"},attrs:{src:e.folderpath+o.image}})]),""!=o.info?t("div",{staticClass:"slide-text",domProps:{innerHTML:e._s(o.info)}}):t("div",{staticClass:"slide-text"},[t("p")])])}))],2)],1):t("div",[e._v("loading....")])])},s=[],l=(t("7db0"),t("4160"),t("c975"),t("d81d"),t("a434"),t("ac1f"),t("5319"),t("2909")),d=t("7e04"),c=(t("955f"),"true"===window.VLE.get_param("debug")),u={components:{Hooper:d["a"],Slide:d["e"],HooperNavigation:d["b"],HooperPagination:d["c"],HooperProgress:d["d"]},data:function(){return{folderpath:!1,slideshow:null,loaded:!1}},methods:{ready:function(){this.loaded=!0,this.resize()},resize:function(){this.loaded&&window.VLE.resize_iframe()},loadJSON:function(e,o){var t=this;console.log("loading file ",this.folderpath+e);var n=new XMLHttpRequest,r=[];n.overrideMimeType("application/json"),n.open("GET",this.folderpath+e,!0),n.onreadystatechange=function(){if(4==n.readyState&&"200"==n.status){var e=JSON.parse(n.responseText);r.push.apply(r,Object(l["a"])(e.map((function(e){var o=e.image;return o})))),r.forEach((function(e){return t.loadImage(t.folderpath+e,(function(){r.splice(r.indexOf(e),1),0===r.length&&o(n.responseText)}))}))}},n.send(null)},loadImage:function(e,o){var t=new Image;t.src=e,t.addEventListener("load",(function(){return o()}))}},beforeMount:function(){var e=this;c||"localhost"===window.location.hostname?(this.folderpath="example-data/",this.loadJSON("slideshow.json",(function(o){e.slideshow=JSON.parse(o)}))):window.VLE.get_folder("data",(function(o){console.log("Contents",o),e.folderpath=o.find((function(e){return"index.html"===e.path})).url.replace("/index.html",""),console.log(e.folderpath),e.loadJSON("slideshow.json",(function(o){e.slideshow=JSON.parse(o)}))}),(function(e){console.log("Error",e)}))}},p=u,f=(t("e353"),t("2877")),h=Object(f["a"])(p,i,s,!1,null,null,null),v=h.exports,g={name:"app",components:{SlideShow:v}},b=g,w=(t("034f"),Object(f["a"])(b,r,a,!1,null,null,null)),m=w.exports;n["a"].config.productionTip=!1,new n["a"]({render:function(e){return e(m)}}).$mount("#app")},"67df":function(e,o,t){},"85ec":function(e,o,t){},e353:function(e,o,t){"use strict";var n=t("67df"),r=t.n(n);r.a}});
//# sourceMappingURL=app.840379da.js.map