text: !function(t){function e(e){for(var s,a,r=e[0],u=e[1],c=e[2],d=0,h=[];d<r.length;d++)a=r[d],o[a]&&h.push(o[a][0]),o[a]=0;for(s in u)Object.prototype.hasOwnProperty.call(u,s)&&(t[s]=u[s]);for(l&&l(e);h.length;)h.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],s=!0,r=1;r<n.length;r++){var u=n[r];0!==o[u]&&(s=!1)}s&&(i.splice(e--,1),t=a(a.s=n[0]))}return t}var s={},o={1:0},i=[];function a(e){if(s[e])return s[e].exports;var n=s[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=t,a.c=s,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},a.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./public";var r=window.webpackJsonp=window.webpackJsonp||[],u=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var l=u;i.push([15,0]),n()}([,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var s=n(4),o=n.n(s),i=n(7),a=n.n(i);window.Vue=o.a,window.axios=a.a,window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},window.Event=new class{constructor(){this.vue=new o.a}fire(t,e=null){this.vue.$emit(t,e)}listen(t,e){this.vue.$on(t,e)}};var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"entrequote-app"}},[e("section",{staticClass:"hero is-primary is-tiny round-top"},[this._m(0),this._v(" "),e("div",{staticClass:"hero-foot"},[e("nav",{staticClass:"tabs is-boxed is-fullwidth"},[e("div",{staticClass:"container"},[e("ul",[e("router-link",{attrs:{tag:"li",to:"/",exact:""}},[e("a",[e("i",{staticClass:"fas fa-th-list"})])]),this._v(" "),e("router-link",{attrs:{tag:"li",to:"/config"}},[e("a",[e("i",{staticClass:"fas fa-cog"})])])],1)])])])]),this._v(" "),e("section",{staticClass:"section boucherie round-bottom"},[e("div",{staticClass:"container"},[e("router-view")],1)])])};r._withStripped=!0;var u=n(1),c=!1;var l=function(t){c||n(23)},d=Object(u.a)({name:"entrequote-app"},r,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hero-body"},[e("div",{staticClass:"container has-text-centered simple-cursor"},[e("h1",{staticClass:"title"},[e("span",{staticClass:"red-meat"},[this._v("«")]),this._v(" "),e("span",{attrs:{title:"Tu reprendras bien une petite côtelette Dédé ?"}},[this._v("\n           EntreQuote  \n          ")]),this._v(" "),e("span",{staticClass:"red-meat"},[this._v("»")])]),this._v(" "),e("h2",[e("em",[this._v("Exquisite pieces & bits around the interweb")])])])])}],!1,l,null,null);d.options.__file="resources/assets/js/App.vue";var h=d.exports;var p={props:{id:{},text:{required:!0},author:{required:!1},src:{required:!1},createdAt:{required:!1}},data:()=>({quote:new class{constructor(t){for(let e in t)this[e]=t[e]}}({text:"",author:"unknown",src:"",created_at:0}),isVisible:!0,destroyAnimationTime:420}),mounted(){this.quote.text=this.text,this.quote.author=this.author,this.quote.src=this.src,this.quote.created_at=this.createdAt},methods:{onClickDestroy(){axios.delete(`/api/quotes/${this.id}`).then(this.onDestroy.bind(this)).catch(t=>console.log(t))},onDestroy(){!function(t,e,n){const s=[{transform:"translateX(0.0)",height:`${t.offsetHeight}px`},{transform:"scaleY(0.15)"},{transform:"scale(0.0)",height:"0%"}];t.animate(s,{duration:e,fill:"forwards",easing:"ease-in-out"}),window.setTimeout(n,e)}(this.$el,this.destroyAnimationTime,()=>{this.isVisible=!1,Event.fire("deletedQuote",this.id)})}}},f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"card quote-box"},[n("div",{staticClass:"quote-ctrl"},[n("a",{attrs:{"aria-label":"delete"},on:{click:t.onClickDestroy}},[n("i",{staticClass:"fas fa-times-circle"})])]),t._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"entrequote"},[n("span",{staticClass:"quote"},[t._v("«")]),t._v(t._s(this.quote.text)),n("span",{staticClass:"quote"},[t._v("»")])]),t._v(" "),n("div",{staticClass:"subtitle is-size-6 has-text-right has-text-grey-light"},[n("a",{staticClass:"quote-author",attrs:{target:"_blank",href:this.quote.src}},[t._v("\n        "+t._s(this.quote.author)+"\n      ")]),t._v("\n      "+t._s()+"\n    ")])])])};f._withStripped=!0;var v=!1;var g=function(t){v||n(21)},x=Object(u.a)(p,f,[],!1,g,null,null);x.options.__file="resources/assets/js/components/Quote.vue";var m=x.exports,b={props:{current:{required:!0},total:{required:!0}},methods:{onClickPage(t){t<=0||t>this.total||Event.fire("pageChange",t)},isCurrent(t){return t==this.current}}},_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",attrs:{id:"pagination",role:"navigation","aria-label":"pagination"}},[n("a",{staticClass:"pagination-previous",attrs:{disabled:1==t.current,href:"#"},on:{click:function(e){t.onClickPage(t.current-1)}}},[t._v("\n   Previous\n ")]),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{disabled:t.current==t.total,href:"#"},on:{click:function(e){t.onClickPage(t.current+1)}}},[t._v("\n   Next\n ")]),t._v(" "),n("ul",{staticClass:"pagination-list"},t._l(t.total,function(e){return n("li",[n("a",{staticClass:"pagination-link nomore",class:{current:t.isCurrent(e)},attrs:{"aria-label":"Page "+e,href:"#"},on:{click:function(n){t.onClickPage(e)}}},[t._v("\n       "+t._s(e)+"\n      ")])])}))])};_._withStripped=!0;var C=!1;var q=function(t){C||n(19)},w=Object(u.a)(b,_,[],!1,q,null,null);w.options.__file="resources/assets/js/components/Pagination.vue";var P={components:{Quote:m,Pagination:w.exports},data:()=>({quotesPerPage:8,json_quotes:[],totalQuotesCount:0,currentPageNumber:1}),mounted(){this.loadTotalQuotesCount(),this.loadPageQuotes(),Event.listen("pageChange",this.onPageChange),Event.listen("deletedQuote",this.onDeletedQuote)},methods:{loadTotalQuotesCount(){axios.get("/api/quotes/count").then(({data:t})=>this.totalQuotesCount=t)},loadPageQuotes(){const t=(this.currentPageNumber-1)*this.quotesPerPage;axios.get(`/api/quotes?start=${t}&limit=${this.quotesPerPage}`).then(({data:t})=>{this.json_quotes=t}).catch(t=>console.log(t))},onPageChange(t){this.currentPageNumber=t,this.loadPageQuotes()},onDeletedQuote(t){--this.totalQuotesCount,this.loadPageQuotes()}},computed:{totalPageCount:function(){return Math.ceil(this.totalQuotesCount/this.quotesPerPage)}}},y=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"container"},[e("div",{staticClass:"columns"},[e("div",{staticClass:"column"},[this._l(this.json_quotes,function(t){return e("Quote",{key:t.id,attrs:{id:t.id,text:t.text,author:t.author,src:t.src,createdAt:t.created_at}})}),this._v(" "),e("Pagination",{attrs:{current:this.currentPageNumber,total:this.totalPageCount}})],2)])])};y._withStripped=!0;var k=Object(u.a)(P,y,[],!1,null,null,null);k.options.__file="resources/assets/js/views/Listing.vue";var Q=k.exports;var j={data:()=>({config:new class{constructor(){this.quotesPerPage=32}}})},E=function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"configuration-box"},[this._v("\n  Parametrize me like one of your french asymptote.\n  \n")])};E._withStripped=!0;var $=!1;var O=function(t){$||n(17)},A=Object(u.a)(j,E,[],!1,O,null,null);A.options.__file="resources/assets/js/views/Configuration.vue";const S=[{path:"/",component:Q},{path:"/config",component:A.exports}];var D=new(n(14).a)({routes:S,linkActiveClass:"is-active",mode:"history"});const V=document.createElement("div");V.setAttribute("id","root"),document.querySelector("body").appendChild(V);new Vue({render:t=>t(h),router:D}).$mount("#root")},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,"\n.configuration-box {\n  padding: 32px;\n\n  border-radius: 3px;\n  background-color: rgba(200, 200, 200, 0.4);\n}\n",""])},function(t,e,n){var s=n(16);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(2).default)("23e7119a",s,!1,{})},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,"\n.current {\n  background-color: rgba(255, 155, 75, 0.7);\n}\n.nomore {\n  outline : none;\n}\n",""])},function(t,e,n){var s=n(18);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(2).default)("226e7c9c",s,!1,{})},function(t,e,n){(e=t.exports=n(3)(!1)).push([t.i,"@import url(https://fonts.googleapis.com/css?family=Slabo+27px);",""]),e.push([t.i,"\n.quote-box {\n  box-shadow:  8px 12px #963537;\n  border-radius: 2px 2px 4px 4px;\n  margin-bottom: 36px;\n  background-color: #444;\n}\n.quote-ctrl {\n  float: right;\n  margin: 0px 8px 0px 8px;\n}\n.quote-ctrl>a {\n  padding: 4px 6px 0px 6px;\n  border: 0;\n  background-color: rgba(0,0,0,0);\n  font-size: 75%;\n\n  color: rgba(255, 190, 190, 0.3);\n}\n.quote-ctrl>a:hover {\n  color: rgba(255, 190, 190, 0.7);\n}\n.quote {\n  color: #666;\n  font-style: bold;\n  font-size: 2em;\n  padding-left: 10px;\n  padding-right: 10px;\n}\n.entrequote {\n  color: #b8b0ac;\n  font-family: 'Slabo 27px', serif;\n  font-size: 1.15em;\n  font-style: italic;\n  line-height: 38px;\n  text-shadow:  2px 3px #533;\n}\n.quote-author {\n  font-family: 'Verdana';\n  color: #855;\n}\n.quote-author:hover {\n  color: #C77;\n}\n",""])},function(t,e,n){var s=n(20);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(2).default)("58424388",s,!1,{})},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,"\nhtml {\n  padding: 32px;\n  background-color: #eeeedc;\n}\n.red-meat {\n  color: #ffdcdc;\n}\n.boucherie {\n  background-color: #d04648;\n}\n.simple-cursor {\n  cursor: default;\n}\n.round-top {\n  border-radius: 2px 2px 0px 0px;\n}\n.round-bottom {\n  border-radius: 0px 0px 4px 4px;\n}\n",""])},function(t,e,n){var s=n(22);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);(0,n(2).default)("b2653a8c",s,!1,{})}]);