Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carousel with v-for and data question #77

Closed
prezmix opened this issue Jan 23, 2017 · 3 comments
Closed

Carousel with v-for and data question #77

prezmix opened this issue Jan 23, 2017 · 3 comments

Comments

@prezmix
Copy link

prezmix commented Jan 23, 2017

I am using the Carousel which works fine with static items but when I use it with a v-for eg.

<b-carousel id="infoscreen-carousel" :interval="3000" :indicators="false" :controls="false">
	<b-slide v-for="event in events">
	  <div class="carousel-image">
		<img v-if="event && event.image" v-bind:src="event.image.raw" v-bind:alt="event.title" v-bind:title="event.title"></div>
	  <div class="carousel-desc">
		<h2><a v-bind:href="event.url">{{ event.title | truncate(78) }}</a></h2>
		<p>
		  <span>{{ event.all_oist_category }}</span>
		  <span v-if="event.location">{{ event.location }}</span>
		  <span>{{ event.start_date | unixToString }}</span>
		</p>
		<p>{{ event.summary | cleanString | truncate(176) }}</p>
	  </div>
	</b-slide>
</b-carousel>

I get this error in bootstrap-vue.common.js?25a6:1

Uncaught TypeError: Cannot read property 'classList' of undefined
    at VueComponent.mounted (eval at <anonymous> (app.04b237a….js:2250), <anonymous>:1:9216)
    at callHook (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2758:19)
    at Object.insert (eval at <anonymous> (app.04b237a….js:678), <anonymous>:1769:5)
    at invokeInsertHook (eval at <anonymous> (app.04b237a….js:678), <anonymous>:4472:28)
    at Vue$3.patch [as __patch__] (eval at <anonymous> (app.04b237a….js:678), <anonymous>:4636:5)
    at Vue$3.Vue._update (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2639:19)
    at Vue$3.updateComponent (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2613:10)
    at Watcher.get (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2936:27)
    at new Watcher (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2928:12)
    at Vue$3.Vue._mount (eval at <anonymous> (app.04b237a….js:678), <anonymous>:2612:19)
module.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=109)}([function(t,e,n){"use strict";function i(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<5;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function o(){if("undefined"==typeof document)return!1;var t=document.documentElement.style;return void 0!==t.webkitTransition||void 0!==t.MozTransition||void 0!==t.OTransition||void 0!==t.MsTransition||void 0!==t.transition}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=i,e.csstransitions=o;"undefined"!=typeof window},function(t,e,n){"use strict"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.bCollapseToggle=e.bCollapse=e.bCarousel=e.bSlide=e.bListGroup=e.bListGroupItem=e.bNavItemDropdown=e.bNavItem=e.bNav=e.bTabs=e.bTab=e.bTooltip=e.bTable=e.bProgress=e.bPopover=e.bPagination=e.bNavbar=e.bModal=e.bMedia=e.bTags=e.bJumbotron=e.bFormSelect=e.bFormInput=e.bFormRadio=e.bFormFieldset=e.bFormCheckbox=e.bDropdownSelect=e.bDropdown=e.bCard=e.bBtn=e.bButton=e.bButtonRadio=e.bButtonGroup=e.bButtonCheckbox=e.bBreadcrumb=e.bAlert=void 0;var o=n(39),r=i(o),s=n(40),a=i(s),l=n(41),u=i(l),d=n(42),c=i(d),f=n(43),p=i(f),h=n(44),v=i(h),m=n(45),g=i(m),b=n(47),y=i(b),_=n(46),w=i(_),x=n(49),O=i(x),C=n(48),S=i(C),P=n(51),k=i(P),F=n(50),$=i(F),j=n(53),E=i(j),R=n(52),A=i(R),B=n(55),M=i(B),T=n(54),z=i(T),L=n(56),N=i(L),H=n(57),D=i(H),I=n(72),V=i(I),W=n(59),q=i(W),Y=n(58),X=i(Y),G=n(60),U=i(G),J=n(61),Z=i(J),K=n(64),Q=i(K),tt=n(63),et=i(tt),nt=n(62),it=i(nt),ot=n(65),rt=i(ot),st=n(66),at=i(st),lt=n(67),ut=i(lt),dt=n(68),ct=i(dt),ft=n(70),pt=i(ft),ht=n(71),vt=i(ht),mt=n(69),gt=i(mt),bt=n(73),yt=i(bt);e.bAlert=r.default,e.bBreadcrumb=a.default,e.bButtonCheckbox=u.default,e.bButtonGroup=c.default,e.bButtonRadio=p.default,e.bButton=v.default,e.bBtn=v.default,e.bCard=g.default,e.bDropdown=k.default,e.bDropdownSelect=$.default,e.bFormCheckbox=A.default,e.bFormFieldset=E.default,e.bFormRadio=M.default,e.bFormInput=z.default,e.bFormSelect=N.default,e.bJumbotron=D.default,e.bTags=V.default,e.bMedia=U.default,e.bModal=Z.default,e.bNavbar=rt.default,e.bPagination=at.default,e.bPopover=ut.default,e.bProgress=ct.default,e.bTable=pt.default,e.bTooltip=yt.default,e.bTab=gt.default,e.bTabs=vt.default,e.bNav=Q.default,e.bNavItem=et.default,e.bNavItemDropdown=it.default,e.bListGroupItem=X.default,e.bListGroup=q.default,e.bSlide=w.default,e.bCarousel=y.default,e.bCollapse=O.default,e.bCollapseToggle=S.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{localShow:this.show}},props:{show:{type:Boolean,default:!1},state:{type:String,default:"info"},dismissible:{type:Boolean,default:!1},dismissAfterSeconds:{type:Number,default:null}},computed:{classObject:function(){return["alert",this.alertState,this.dismissible?"alert-dismissible":"","fade","in"]},alertState:function(){return this.state&&"default"!==this.state?"alert-"+this.state:"alert-success"},show:{get:function(){return this.localShow},set:function(t){this.localShow=t}}},watch:{show:function(t,e){this.dismissAfterSeconds&&1==t&&0==e&&this.dismissCounter()}},mounted:function(){this.dismissAfterSeconds&&this.dismissCounter()},methods:{dismiss:function(){this.localShow=!1,this.$root.$emit("dismissed")},dismissCounter:function(){var t=this,e=this.dismissAfterSeconds;this.$emit("dismiss-count-down",e);var n=setInterval(function(){e<2||!t.show?(t.show&&t.dismiss(),clearInterval(n)):(e--,t.$emit("dismiss-count-down",e))},1e3)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{},props:{items:{type:Array,default:function(){return[]},required:!0}},methods:{onclick:function(t){this.$emit("click",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{classObject:function(){return["btn",btnVariant,btnSize,checked(index)?"active":""]},btnVariant:function(){return this.variant&&"default"!==this.variant?"btn-"+this.variant:"btn-secondary"},btnSize:function(){return this.size&&"default"!==this.size?"btn-"+this.size:""}},props:{list:{type:Array,default:[],required:!0},model:{type:Array,default:[]},size:{type:String,default:"md"},variant:{type:String,default:"default"},returnObject:{type:Boolean,default:!1}},methods:{checked:function(t){if(!this.list)return!1;var e=!1;if(this.returnObject)for(var n=0;n<this.model.length;n++)this.model[n].value===this.list[t].value&&(e=!0);else e=this.model.indexOf(this.list[t].value)!==-1;return e}},watch:{list:{}},mounted:function(){var t=this;this.list.forEach(function(e){t.returnObject?t.model.forEach(function(t){t.value===e.value&&(e.checked=!0)}):t.model.indexOf(e.value)!==-1&&(e.checked=!0)})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{classObject:function(){return["btn-"+(this.toolbar?"toolbar":"group"),this.vertical?"btn-group-vertical":"",this.size?"btn-group-"+this.size:""]}},props:{vertical:{type:Boolean,default:!1},toolbar:{type:Boolean,default:!1},size:{type:String,default:null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{selection:"",model:{}}},computed:{btnVariant:function(){return this.variant&&"default"!==this.variant?"btn-"+this.variant:"btn-secondary"},btnSize:function(){return this.size&&"default"!==this.size?"btn-"+this.size:""},btnActive:function(){return item.value}},props:{list:{type:Array,default:[],required:!0},size:{type:String,default:"md"},variant:{type:String,default:"default"},returnObject:{type:Boolean,default:!1}},watch:{selection:{handler:function(){var t=this;this.returnObject?this.list.forEach(function(e){e.value===t.selection&&(t.model=e)}):this.model=this.selection,this.$root.$emit("changed::button-radio",this.model)},deep:!0}},mounted:function(){this.selection=this.model.value}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{classObject:function(){return["btn",this.btnVariant,this.btnSize,this.btnBlock,this.btnDisabled,this.inactive?"btn-inactive":""]},btnBlock:function(){return this.block?"btn-block":""},btnVariant:function(){return this.variant?"btn-"+this.variant:"btn-secondary"},btnSize:function(){return this.size?"btn-"+this.size:""},btnDisabled:function(){return this.disabled?"disabled":""}},props:{block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inactive:{type:Boolean,default:!1},link:{type:String,default:""},role:{type:String,default:""},size:{type:String,default:"md"},variant:{type:String,default:"secondary"}},methods:{click:function(){this.$emit("click",this.link)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(1),e.default={replace:!0,computed:{cardVariant:function(){return this.variant&&"default"!==this.variant?"card-"+this.variant:"card-default"},cardInverse:function(){return"image-overlay"===this.type||"inverse"===this.type?"card-inverse":""},cardAlign:function(){return"text-"+this.align}},props:{align:{type:String,default:"left"},type:{type:String,default:"default"},variant:{type:String,default:"default"}},watch:{type:function(t){var e=this.$el.getElementsByClassName("card-block")[0]||this.$el.getElementsByTagName("div")[0];"image-overlay"===t?e.classList.add("card-img-overlay"):e.classList.remove("card-img-overlay")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);n(1);var o=(0,i.csstransitions)()?600:0,r={rtl:{outgoing:"left",incoming:"right",overlay:"next"},ltr:{outgoing:"right",incoming:"left",overlay:"prev"}};e.default={replace:!0,computed:{},data:function(){return{index:0,slidesCount:0,animating:!1,slides:[],direction:r.rtl}},props:{interval:{type:Number,default:5e3},indicators:{type:Boolean,default:!0},controls:{type:Boolean,default:!0}},methods:{prev:function(){this.animating||(this.index--,this.index<0&&(this.index=this.slidesCount))},next:function(){this.animating||(this.index++,this.index>this.slidesCount&&(this.index=0))},changeSlide:function(t){this.index=t},pause:function(){0!==this.interval&&"undefined"!=typeof this.interval&&clearInterval(this._intervalId)},start:function(){var t=this;0!==this.interval&&"undefined"!=typeof this.interval&&(this._intervalId=setInterval(function(){t.next()},this.interval))}},mounted:function(){this._items=this.$el.querySelectorAll(".carousel-item"),this.slidesCount=this._items.length-1,this.slides=Array.apply(null,{length:this._items.length}).map(Number.call,Number),this._items[0].classList.add("active"),this.start()},watch:{index:function(t,e){var n=this;this.animating=!0,this.direction=r.rtl,t<e&&(this.direction=r.ltr),this._items[t].classList.add(this.direction.incoming,this.direction.overlay),this._items[t].offsetWidth,this._items[t].classList.add("active"),this._items[e].classList.add(this.direction.outgoing),this._items[t].classList.remove(this.direction.incoming),this._carouselAnimation=setTimeout(function(){n._items[e].classList.remove(n.direction.outgoing,"active"),n._items[t].classList.remove(n.direction.overlay),n.animating=!1,n.$root.$emit("slid::carousel",t)},o)}},destroyed:function(){clearTimeout(this._carouselAnimation),clearInterval(this._intervalId)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{},props:{target:{type:String,default:""},targetGroup:{type:String,default:""}},methods:{toggle:function(){(this.target||this.targetGroup)&&(this.target&&this.targetGroup?this.$root.$emit("toggled::accordion",{id:this.target,group:this.targetGroup}):this.$root.$emit("toggled::collapse",{id:this.target,group:this.targetGroup}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);n(1);var o=(0,i.csstransitions)()?350:0;e.default={replace:!0,props:{id:{type:String,default:""},group:{type:String,default:""}},methods:{show:function(){var t=this;this.$el.classList.remove("collapse");var e=this.$el.scrollHeight;this.$el.classList.add("collapsing"),this.$el.offsetWidth,this.$el.style.height=e+"px",this._collapseAnimation=setTimeout(function(){t.$el.classList.remove("collapsing"),t.$el.classList.add("collapse","in")},o)},hide:function(){var t=this;this.$el.classList.remove("collapse"),this.$el.classList.remove("in"),this.$el.classList.add("collapsing"),this.$el.offsetWidth,this.$el.style.height="0px",this._collapseAnimation=setTimeout(function(){t.$el.classList.remove("collapsing"),t.$el.classList.add("collapse")},o)}},created:function(){var t=this,e=this.$root;e.$on("toggled::collapse",function(e){(e.id&&e.id===t.id&&!e.group||e.group&&e.group===t.group&&!e.id)&&((t.$el.className+" ").indexOf(" in ")>-1?t.hide():t.show())}),e.$on("toggled::accordion",function(e){if(e.id&&e.group&&e.group===t.group)if(e.id===t.id)(t.$el.className+" ").indexOf(" in ")>-1?t.hide():t.show();else{if((t.$el.className+" ").indexOf(" in ")===-1)return;t.hide()}})},destroyed:function(){clearTimeout(this._collapseAnimation)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,data:function(){return{show:!1,selected:!1}},computed:{btnVariant:function(){return this.variant&&"default"!==this.variant?"btn-"+this.variant:"btn-secondary"},btnSize:function(){return this.size&&"default"!==this.size?"btn-"+this.size:""},dropdownToggle:function(){return this.caret?"dropdown-toggle":""},displayItem:function(){if(this.returnObject&&this.model&&!this.model.text||!this.returnObject&&this.model&&0===this.model.length||this.forceDefault)return this.defaultText;if(this.returnObject&&this.model&&this.model.text)return this.model.text;if(!this.returnObject&&this.model){var t=this.model||"";return this.list.forEach(function(e){e.value===this.model&&(t=e.text)}),t}return""}},props:{id:{type:String},model:{required:!1},list:{type:Array,default:[],required:!0},caret:{type:Boolean,default:!0},position:{type:String,default:"left"},size:{type:String,default:""},variant:{type:String,default:"default"},defaultText:{type:String,default:"Plase select one"},forceDefault:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},dropup:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{toggle:function(t){this.show=!this.show,this.show?(this.$root.$emit("shown:dropdown",this.id),t.stopPropagation()):this.$root.$emit("hidden::dropdown",this.id)},select:function(t){this.returnObject?this.model=t:this.model=t.value,this.show=!1,this.$root.$emit("selected::dropdown",this.id,this.model)}},created:function(){var t=this.$root;t.$on("hide::dropdown",function(){this.show=!1})},mounted:function(){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{open:!1}},props:{split:{type:Boolean,default:!1},text:{type:String,default:""},size:{type:String,default:null},variant:{type:String,default:null},dropup:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},right:{type:Boolean,default:!1}},mounted:function(){var t=this;document.documentElement.addEventListener("click",function(){return t.setState(!1)},!0)},methods:{toggle:function(){this.setState(!this.open)},setState:function(t){this.open!=t&&(this.open=t,this.open?this.$emit("shown"):this.$emit("hidden"))},click:function(){this.split?this.$emit("click"):this.toggle()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(0);e.default={data:function(){return{localChecked:this.checked}},mounted:function(){this.change(this.localChecked)},computed:{inputState:function(){return this.state?"has-"+this.state:""}},props:{id:{type:String,default:null},name:{type:String,default:null},_value:{default:!0},disabled:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},inline:{type:Boolean,default:!0},custom:{type:Boolean,default:!0}},methods:{change:function(t){this.localChecked=t,this.$emit("change",t),this.$emit("input",t?this._value:void 0)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{inputState:function(){return this.state?"has-"+this.state:""}},props:{id:{type:String,default:null},state:{type:String,default:null},label:{type:String,default:null},description:{type:String,default:null},feedback:{type:String,default:null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default={computed:{stateIconType:function(){return this.stateIcon?"form-control-"+this.state:""},inputSize:function(){return this.size?"form-control-"+this.size:""}},methods:{onInput:function(t){if(this.formatter){var e=this.formatter(t);e!=t&&(t=e,this.$refs.input.value=e)}this.$emit("input",t)}},props:{value:{type:String,default:null},type:{type:String,default:"text"},id:{type:String,default:i.uniqueId},name:{type:String,default:null},placeholder:{type:String,default:null},size:{type:String,default:null},rows:{type:Number,default:null},textarea:{type:Boolean,default:!1},stateIcon:{type:Boolean,default:!0},formatter:{type:Function},state:{type:String,default:null},label:{type:String,default:null},description:{type:String,default:null},feedback:{type:String,default:null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default={data:function(){return{localValue:this.value}},computed:{inputState:function(){return this.state?"has-"+this.state:""}},props:{value:{default:null},name:{type:String,default:i.uniqueId},items:{type:Array,default:function(){return[]},required:!0},stacked:{type:Boolean,default:!1},state:{type:String,default:null},returnObject:{type:Boolean,default:!1}},watch:{localValue:function(t,e){t!==e&&(this.returnObject&&this.items.forEach(function(e){e.value===t&&(t=e)}),this.$emit("input",t))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default={data:function(){var t=this.value;return t&&t.length||(t=this.defaultOption.value),{selected:t}},mounted:function(){this.change(this.selected)},computed:{allOptions:function(){return[].concat(this.defaultOption,this.options)},inputState:function(){return this.state?"has-"+this.state:null},inputSize:function(){return this.size?"form-control-"+this.size:null}},props:{options:{type:Array,default:[],required:!0},defaultOption:{default:function(){}},value:{default:""},size:{type:String,default:""},disabled:{type:Boolean,default:!1},state:{type:String,default:null},label:{type:String,default:null},description:{type:String,default:null},feedback:{type:String,default:null},id:{type:String,default:i.uniqueId}},watch:{selected:function(t,e){t!==e&&this.change(t)}},methods:{change:function(t){this.$emit("input",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{},props:{fluid:{type:Boolean,default:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{listState:function(){return this.state&&"default"!==this.state?"list-group-item-"+this.state:""}},replace:!0,props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},state:{type:String,default:"default"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.listGroup={replace:!0,props:{flush:{type:Boolean,default:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{align:function(){return this.position.split(" ")},mediaVerticalAlign:function(){var t=this.align[0];return"media-"+t},mediaHorizontalAlign:function(){var t=this.align[1];return"media-"+t}},props:{position:{type:String,default:"top left"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);n(1);var o=(0,i.csstransitions)()?300:0;e.default={replace:!0,computed:{},data:function(){return{animateBackdrop:!1,animateModal:!1}},props:{id:{type:String,default:"default"},size:{type:String,default:"md"},fade:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0}},methods:{show:function(){var t=this;this.$el.style.display="block",this._body=document.querySelector("body");var e=this;this._modalAnimation=setTimeout(function(){e.animateBackdrop=!0,t._modalAnimation=setTimeout(function(){e._body.classList.add("modal-open"),e.animateModal=!0,e.$root.$emit("shown::modal")},e.fade?o:0)},0)},hide:function(){var t=this,e=this;this.animateModal=!1,this._modalAnimation=setTimeout(function(){e.animateBackdrop=!1,t._modalAnimation=setTimeout(function(){e._body.classList.remove("modal-open"),e.$el.style.display="none",e.$root.$emit("hidden::modal")},e.fade?o:0)},e.fade?o:0)},onClickOut:function(t){this.closeOnBackdrop&&t.target.id&&t.target.id===this.id&&this.hide()}},created:function(){var t=this,e=this.$root;e.$on("show::modal",function(e){return e===t.id&&t.show()}),e.$on("hide::modal",function(e){return e===t.id&&t.hide()})},mounted:function(){var t=this;document.addEventListener("keydown",function(e){var n=e.which||e.keyCode;27===n&&t.hide()})},destroyed:function(){clearTimeout(this._modalAnimation)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{show:!1}},computed:{dropdownToggle:function(){return this.caret?"dropdown-toggle":""}},props:{caret:{type:Boolean,default:!0},text:{type:String,default:""},dropup:{type:Boolean,default:!1},rightAlignment:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},class:["class"]},methods:{toggle:function(t){this.disabled||(this.show=!this.show,this.show?(this.$root.$emit("shown::dropdown"),t.stopPropagation()):this.$root.$emit("hidden::dropdown"))}},created:function(){var t=this,e=this.$root;e.$on("hide::dropdown",function(){t.show=!1})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{classObject:function(){return["nav-link",this.active?"active":"",this.disabled?"disabled":""]}},props:{link:{type:String,default:""},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onclick:function(){this.$emit("click",this.link)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{classObject:function(){return["nav",this.inline?"nav-inline":"",this.tabs?"nav-tabs":"",this.pills?"nav-pills":"",this.stacked?"nav-stacked":""]}},props:{inline:{type:Boolean,default:!0},tabs:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{classObject:function(){return["navbar",this.navbarType,this.navbarVariant,this.navbarfixed,this.full?"navbar-full":""]},navbarType:function(){return"navbar-"+this.type},navbarVariant:function(){return"bg-"+this.variant},navbarfixed:function(){return this.fixed?"navbar-fixed-"+this.fixed:""}},props:{type:{type:String,default:"light"},variant:{type:String,default:"faded"},fixed:{type:String,default:""},full:{type:Boolean,default:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{diff:1,showPrev:!1,showNext:!1,currentPage:1}},computed:{numberOfPages:function(){var t=Math.ceil(this.totalRows/this.perPage);return t<1?1:t},btnSize:function(){return this.size&&"default"!==this.size?"btn-"+this.size:""},pageLinks:function(){var t=this.limit;return this.currentPage>this.numberOfPages&&(this.currentPage=1),this.diff=1,this.showPrev=!1,this.showNext=!1,this.numberOfPages<=this.limit?this.numberOfPages:(this.currentPage<=this.limit-2&&(this.diff=1,this.showNext=!0,t=this.limit-2),this.currentPage>this.numberOfPages-this.limit+2&&(this.diff=this.numberOfPages-this.limit+3,this.showPrev=!0,t=this.limit-2),this.currentPage>=this.limit-2&&this.currentPage<=this.numberOfPages-this.limit+2&&(this.diff=this.currentPage-1,this.showPrev=!0,this.showNext=!0,t=this.limit-4),t)}},methods:{btnVariant:function(t){return t+this.diff===this.currentPage?"btn-"+this.variant:"btn-secondary"},_return:function(){}},watch:{currentPage:function(t){this.$emit("input",t)}},props:{limit:{type:Number,default:7},perPage:{type:Number,default:20},totalRows:{type:Number,default:20},size:{type:String,default:"secondary"},variant:{type:String,default:""}}}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(38),r=i(o);e.default={replace:!0,data:function(){return{show:!1}},computed:{popoverAlignment:function(){return this.position&&"default"!==this.position?"popover-"+this.position:"popover-top"}},props:{position:{type:String,default:"top"},triggers:{type:Array,default:function(){return["click","focus"]}},title:{type:String,default:""},text:{type:String,default:""}},methods:{toggle:function(t,e){if(this.show="undefined"!=typeof e?e:!this.show,this.show){var n={attachment:"bottom center",targetAttachment:"top center"};"bottom"===this.position&&(n={attachment:"top center",targetAttachment:"bottom center"}),"left"===this.position&&(n={attachment:"middle right",targetAttachment:"middle left"}),"right"===this.position&&(n={attachment:"middle left",targetAttachment:"middle right"}),this._popover.style.display="block",this._tether=new r.default({element:this._popover,target:this._trigger,attachment:n.attachment,targetAttachment:n.targetAttachment}),this.$root.$emit("shown::popover")}else this._tether&&(this._popover.style.display="none",this._tether.destroy()),this.$root.$emit("hidden::popover")},_eventHandler:function(t){("mouseenter"!==t.type&&"mouseleave"!==t.type||this.triggers.indexOf("click")===-1)&&(t.stopPropagation(),"click"===t.type?this.toggle(t):"mouseenter"===t.type||"focus"===t.type?this.toggle(t,!0):this.toggle(t,!1))}},created:function(){var t=this,e=this.$root;e.$on("hide::popover",function(){return t.toggle(null,!1)})},mounted:function(){this._trigger=this.$refs.trigger.children[0],this._popover=this.$refs.popover,this._popover.style.display="none";var t=this;this._trigger.addEventListener("click",function(e){return t._eventHandler(e)}),this.triggers.indexOf("hover")!==-1&&(this._trigger.addEventListener("mouseenter",function(e){return t._eventHandler(e)}),this._trigger.addEventListener("mouseleave",function(e){return t._eventHandler(e)})),this.triggers.indexOf("focus")!==-1&&"input"===this._trigger.tagName.toLowerCase()&&(this._trigger.addEventListener("focus",function(e){return t._eventHandler(e)}),this._trigger.addEventListener("blur",function(e){return t._eventHandler(e)}))},beforeDestroy:function(){this._trigger.removeEventListener("click",function(){return _this._eventHandler()}),this._trigger.removeEventListener("mouseenter",function(){return _this._eventHandler()}),this._trigger.removeEventListener("mouseleave",function(){return _this._eventHandler()}),this._trigger.removeEventListener("focus",function(){return _this._eventHandler()}),this._trigger.removeEventListener("blur",function(){return _this._eventHandler()})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{progressVariant:function(){return this.variant&&"default"!==this.variant?"progress progress-"+this.variant:"progress"}},props:{striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},value:{type:Number,default:0},max:{type:Number,default:100},variant:{type:String,default:"default"}},mounted:function(){this._progress=this.$refs.progress,this._progressBar=this.$refs.progressbar,this._progressBar.style.width=this.value+"%",this._progress.setAttribute("value",this.value)},watch:{value:function(t){this._progress.setAttribute("value",t),this._progressBar.style.width=this.value+"%"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,data:function(){return{fade:this.$parent.fade,animate:!1,active:!1}},props:{id:{type:String,default:""},title:{type:String,default:""},disabled:{type:Boolean,default:!1}},mounted:function(){var t=this.$parent.items;t.push({id:this.id,title:this.title,active:this.active,disabled:this.disabled})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{current:1}},props:{items:{type:Array,default:function(){return[]}},fields:{type:Object,default:function(){}},pagination:{type:Boolean,default:!1},perPage:{type:Number,default:20}},computed:{_items:function(){return this.items?this.items.slice((this.current-1)*this.perPage,this.current*this.perPage):[]}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=(0,i.csstransitions)()?150:0;e.default={replace:!0,data:function(){return{items:[]}},computed:{btnSize:function(){return this.size&&"default"!==this.size?"btn-"+this.size:""}},props:{fade:{type:Boolean,default:!0},size:{type:String,default:"md"}},methods:{getActive:function(){var t=-1;return this.items.forEach(function(e,n){e.active&&(t=n)}),t},setActive:function(t){var e=this;if(!this.items[t].disabled){var n=this.getActive();n!==-1&&(this.items[n].active=!1,this.$set(this.$children[n],"animate",!1),this.$set(this.$children[n],"active",!1)),this.$set(this.$children[t],"active",!0),this._tabAnimation=setTimeout(function(){e.items[t].active=!0,e.$set(e.$children[t],"animate",!0),e.$root.$emit("changed::tab",e.items[t].id)},this.fade?o:0)}}},mounted:function(){this.getActive()===-1&&this.setActive(0)},destroyed:function(){clearTimeout(this._tabAnimation)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{labelVariant:function(){return this.variant&&"default"!==this.variant?"tag-"+this.variant:"tag-default"},labelType:function(){return this.type?"tag-"+this.type:""}},props:{variant:{type:String,default:"default"},type:{type:String,default:""}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={replace:!0,computed:{}}},function(t,e,n){var i,o;/*! tether 1.4.0 */
!function(r,s){i=s,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o))}(this,function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.getBoundingClientRect(),n={};for(var i in e)n[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=o(r);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}return n}function r(t){var e=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var r=void 0;try{r=getComputedStyle(o)}catch(t){}if("undefined"==typeof r||null===r)return i.push(o),i;var s=r,a=s.overflow,l=s.overflowX,u=s.overflowY;/(auto|scroll)/.test(a+u+l)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(o)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){S&&document.body.removeChild(S),S=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,i=o(t),r=F();return i.top-=r.top,i.left-=r.left,"undefined"==typeof i.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeof i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function l(t){return t.offsetParent||document.documentElement}function u(){if($)return $;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");d(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);var o=n-i;return $={width:o,height:o}}function d(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function c(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=h(t).replace(n," ");v(t,i)}}function f(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{c(t,e);var n=h(t)+(" "+e);v(t,n)}}function p(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var n=h(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function h(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function v(t,e){t.setAttribute("class",e)}function m(t,e,n){n.forEach(function(n){e.indexOf(n)===-1&&p(t,n)&&c(t,n)}),e.forEach(function(e){p(t,e)||f(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function b(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function y(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function _(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){var n=e.top,i=e.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=n,t.left+=i}),t}function w(t,e){return"string"==typeof t.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&t.top.indexOf("%")!==-1&&(t.top=parseFloat(t.top,10)/100*e.height),t}function x(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeof e.nodeType&&!function(){var t=e,n=a(e),i=n,o=getComputedStyle(e);if(e=[i.left,i.top,n.width+i.left,n.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}U.forEach(function(t,n){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[n]+=parseFloat(o["border"+t+"Width"]):e[n]-=parseFloat(o["border"+t+"Width"])})}(),e}var O=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),C=void 0;"undefined"==typeof C&&(C={modules:[]});var S=null,P=function(){var t=0;return function(){return++t}}(),k={},F=function(){var t=S;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",P()),d(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),S=t);var e=t.getAttribute("data-tether-id");return"undefined"==typeof k[e]&&(k[e]=o(t),E(function(){delete k[e]})),k[e]},$=null,j=[],E=function(t){j.push(t)},R=function(){for(var t=void 0;t=j.pop();)t()},A=function(){function t(){i(this,t)}return O(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];"undefined"==typeof this.bindings&&(this.bindings={}),"undefined"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){if("undefined"!=typeof this.bindings&&"undefined"!=typeof this.bindings[t])if("undefined"==typeof e)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n}},{key:"trigger",value:function(t){if("undefined"!=typeof this.bindings&&this.bindings[t]){for(var e=0,n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,l=r.once,u=a;"undefined"==typeof u&&(u=this),s.apply(u,i),l?this.bindings[t].splice(e,1):++e}}}}]),t}();C.Utils={getActualBoundingClientRect:o,getScrollParents:r,getBounds:a,getOffsetParent:l,extend:d,addClass:f,removeClass:c,hasClass:p,updateClasses:m,defer:E,flush:R,uniqueId:P,Evented:A,getScrollBarSize:u,removeUtilElements:s};var B=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),M=function(t,e,n){for(var i=!0;i;){var o=t,r=e,s=n;i=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(o);if(null===u)return;t=u,e=r,n=s,i=!0,a=u=void 0}};if("undefined"==typeof C)throw new Error("You must include the utils.js file before tether.js");var T=C.Utils,r=T.getScrollParents,a=T.getBounds,l=T.getOffsetParent,d=T.extend,f=T.addClass,c=T.removeClass,m=T.updateClasses,E=T.defer,R=T.flush,u=T.getScrollBarSize,s=T.removeUtilElements,z=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var i=e[n];if(void 0!==t.style[i])return i}}(),L=[],N=function(){L.forEach(function(t){t.position(!1)}),R()};!function(){var t=null,e=null,n=null,i=function i(){return"undefined"!=typeof e&&e>16?(e=Math.min(e-16,250),void(n=setTimeout(i,250))):void("undefined"!=typeof t&&y()-t<10||(null!=n&&(clearTimeout(n),n=null),t=y(),N(),e=y()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var H={center:"center",left:"right",right:"left"},D={middle:"middle",top:"bottom",bottom:"top"},I={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},V=function(t,e){var n=t.left,i=t.top;return"auto"===n&&(n=H[e.left]),"auto"===i&&(i=D[e.top]),{left:n,top:i}},W=function(t){var e=t.left,n=t.top;return"undefined"!=typeof I[t.left]&&(e=I[t.left]),"undefined"!=typeof I[t.top]&&(n=I[t.top]),{left:e,top:n}},q=function(t){var e=t.split(" "),n=B(e,2),i=n[0],o=n[1];return{top:i,left:o}},Y=q,X=function(t){function e(t){var n=this;i(this,e),M(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),C.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(n)}),this.position()}return g(e,t),O(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=d(i,t);var o=this.options,s=o.element,a=o.target,l=o.targetModifier;if(this.element=s,this.target=a,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),f(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&f(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=Y(this.options.targetAttachment),this.attachment=Y(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(n)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,n=this.target;n===document.body?(n=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(n);var i=getComputedStyle(n),o=n.scrollWidth>n.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;o&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/n.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;s<408&&this.target===document.body&&(l=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var u=this.target.scrollTop/(n.scrollHeight-s);return e.top=u*(s-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&f(this.target,this.getClass("enabled")),f(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;c(this.target,this.getClass("enabled")),c(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),L.forEach(function(e,n){e===t&&L.splice(n,1)}),0===L.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(n.getClass("element-attached")+"-"+t),r.push(n.getClass("target-attached")+"-"+t)}),E(function(){"undefined"!=typeof n._addAttachClasses&&(m(n.element,n._addAttachClasses,r),n.options.addTargetClasses!==!1&&m(n.target,n._addAttachClasses,r),delete n._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=V(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return a(t.element)}),o=i.width,r=i.height;if(0===o&&0===r&&"undefined"!=typeof this.lastSize){var s=this.lastSize;o=s.width,r=s.height}else this.lastSize={width:o,height:r};var d=this.cache("target-bounds",function(){return t.getTargetBounds()}),c=d,f=w(W(this.attachment),{width:o,height:r}),p=w(W(n),c),h=w(this.offset,{width:o,height:r}),v=w(this.targetOffset,c);f=_(f,h),p=_(p,v);for(var m=d.left+p.left-f.left,g=d.top+p.top-f.top,b=0;b<C.modules.length;++b){var y=C.modules[b],x=y.position.call(this,{left:m,top:g,targetAttachment:n,targetPos:d,elementPos:i,offset:f,targetOffset:p,manualOffset:h,manualTargetOffset:v,scrollbarSize:k,attachment:this.attachment});if(x===!1)return!1;"undefined"!=typeof x&&"object"==typeof x&&(g=x.top,m=x.left)}var O={page:{top:g,left:m},viewport:{top:g-pageYOffset,bottom:pageYOffset-g-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-o+innerWidth}},S=this.target.ownerDocument,P=S.defaultView,k=void 0;return P.innerHeight>S.documentElement.clientHeight&&(k=this.cache("scrollbar-size",u),O.viewport.bottom-=k.height),P.innerWidth>S.documentElement.clientWidth&&(k=this.cache("scrollbar-size",u),O.viewport.right-=k.width),["","static"].indexOf(S.body.style.position)!==-1&&["","static"].indexOf(S.body.parentElement.style.position)!==-1||(O.page.bottom=S.body.scrollHeight-g-r,O.page.right=S.body.scrollWidth-m-o),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),o=n,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),n.right=S.body.scrollWidth-n.left-o.width+r.right,n.bottom=S.body.scrollHeight-n.top-o.height+r.bottom,O.page.top>=n.top+r.top&&O.page.bottom>=n.bottom&&O.page.left>=n.left+r.left&&O.page.right>=n.right){var s=e.scrollTop,u=e.scrollLeft;O.offset={top:O.page.top-n.top+s-r.top,left:O.page.left-n.left+u-r.left}}}(),this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),e&&R(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var n={};for(var i in t){n[i]={};for(var o in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if("undefined"!=typeof a[i]&&!b(a[i][o],t[i][o])){r=!0;break}}r||(n[i][o]=!0)}}var u={top:"",left:"",right:"",bottom:""},c=function(t,n){var i="undefined"!=typeof e.options.optimizations,o=i?e.options.optimizations.gpu:null;if(o!==!1){var r=void 0,s=void 0;if(t.top?(u.top=0,r=n.top):(u.bottom=0,r=-n.bottom),t.left?(u.left=0,s=n.left):(u.right=0,s=-n.right),window.matchMedia){var a=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;a||(s=Math.round(s),r=Math.round(r))}u[z]="translateX("+s+"px) translateY("+r+"px)","msTransform"!==z&&(u[z]+=" translateZ(0)")}else t.top?u.top=n.top+"px":u.bottom=n.bottom+"px",t.left?u.left=n.left+"px":u.right=n.right+"px"},f=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(u.position="absolute",c(n.page,t.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(u.position="fixed",c(n.viewport,t.viewport)):"undefined"!=typeof n.offset&&n.offset.top&&n.offset.left?!function(){u.position="absolute";var i=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==i&&E(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),c(n.offset,t.offset),f=!0}():(u.position="absolute",c({top:!0,left:!0},t.page)),!f)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var p=!0,h=this.element.parentNode;h&&1===h.nodeType&&"BODY"!==h.tagName;){if("static"!==getComputedStyle(h).position){p=!1;break}h=h.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var v={},m=!1;for(var o in u){var g=u[o],y=this.element.style[o];y!==g&&(m=!0,v[o]=g)}m&&E(function(){d(e.element.style,v),e.trigger("repositioned")})}}}]),e}(A);X.modules=[],C.position=N;var G=d(X,C),B=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=C.Utils,a=T.getBounds,d=T.extend,m=T.updateClasses,E=T.defer,U=["left","top","right","bottom"];C.modules.push({position:function(t){var e=this,n=t.top,i=t.left,o=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,l=r.width;if(0===l&&0===s&&"undefined"!=typeof this.lastSize){var u=this.lastSize;l=u.width,s=u.height}var c=this.cache("target-bounds",function(){return e.getTargetBounds()}),f=c.height,p=c.width,h=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&h.push(e),n&&h.push(n)}),h.forEach(function(t){["left","top","right","bottom"].forEach(function(e){h.push(t+"-"+e)})});var v=[],g=d({},o),b=d({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,u=t.pin;"undefined"==typeof a&&(a="");var d=void 0,c=void 0;if(a.indexOf(" ")>=0){var h=a.split(" "),m=B(h,2);c=m[0],d=m[1]}else d=c=a;var y=x(e,r);"target"!==c&&"both"!==c||(n<y[1]&&"top"===g.top&&(n+=f,g.top="bottom"),n+s>y[3]&&"bottom"===g.top&&(n-=f,g.top="top")),"together"===c&&("top"===g.top&&("bottom"===b.top&&n<y[1]?(n+=f,g.top="bottom",n+=s,b.top="top"):"top"===b.top&&n+s>y[3]&&n-(s-f)>=y[1]&&(n-=s-f,g.top="bottom",b.top="bottom")),"bottom"===g.top&&("top"===b.top&&n+s>y[3]?(n-=f,g.top="top",n-=s,b.top="bottom"):"bottom"===b.top&&n<y[1]&&n+(2*s-f)<=y[3]&&(n+=s-f,g.top="top",b.top="top")),"middle"===g.top&&(n+s>y[3]&&"top"===b.top?(n-=s,b.top="bottom"):n<y[1]&&"bottom"===b.top&&(n+=s,b.top="top"))),"target"!==d&&"both"!==d||(i<y[0]&&"left"===g.left&&(i+=p,g.left="right"),i+l>y[2]&&"right"===g.left&&(i-=p,g.left="left")),"together"===d&&(i<y[0]&&"left"===g.left?"right"===b.left?(i+=p,g.left="right",i+=l,b.left="left"):"left"===b.left&&(i+=p,g.left="right",i-=l,b.left="right"):i+l>y[2]&&"right"===g.left?"left"===b.left?(i-=p,g.left="left",i-=l,b.left="right"):"right"===b.left&&(i-=p,g.left="left",i+=l,b.left="left"):"center"===g.left&&(i+l>y[2]&&"left"===b.left?(i-=l,b.left="right"):i<y[0]&&"right"===b.left&&(i+=l,b.left="left"))),"element"!==c&&"both"!==c||(n<y[1]&&"bottom"===b.top&&(n+=s,b.top="top"),n+s>y[3]&&"top"===b.top&&(n-=s,b.top="bottom")),"element"!==d&&"both"!==d||(i<y[0]&&("right"===b.left?(i+=l,b.left="left"):"center"===b.left&&(i+=l/2,b.left="left")),i+l>y[2]&&("left"===b.left?(i-=l,b.left="right"):"center"===b.left&&(i-=l/2,b.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):u===!0&&(u=["top","left","right","bottom"]),u=u||[];var _=[],w=[];n<y[1]&&(u.indexOf("top")>=0?(n=y[1],_.push("top")):w.push("top")),n+s>y[3]&&(u.indexOf("bottom")>=0?(n=y[3]-s,_.push("bottom")):w.push("bottom")),i<y[0]&&(u.indexOf("left")>=0?(i=y[0],_.push("left")):w.push("left")),i+l>y[2]&&(u.indexOf("right")>=0?(i=y[2]-l,_.push("right")):w.push("right")),_.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),v.push(t),_.forEach(function(e){v.push(t+"-"+e)})}(),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),v.push(t),w.forEach(function(e){v.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(b.left=g.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(b.top=g.top=!1),g.top===o.top&&g.left===o.left&&b.top===e.attachment.top&&b.left===e.attachment.left||(e.updateAttachClasses(b,g),e.trigger("update",{attachment:b,targetAttachment:g}))}),E(function(){e.options.addTargetClasses!==!1&&m(e.target,v,h),m(e.element,v,h)}),{top:n,left:i}}});var T=C.Utils,a=T.getBounds,m=T.updateClasses,E=T.defer;C.modules.push({position:function(t){var e=this,n=t.top,i=t.left,o=this.cache("element-bounds",function(){return a(e.element)}),r=o.height,s=o.width,l=this.getTargetBounds(),u=n+r,d=i+s,c=[];n<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==d||c.push(t)}),i<=l.right&&d>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==n&&e!==u||c.push(t)});var f=[],p=[],h=["left","top","right","bottom"];return f.push(this.getClass("abutted")),h.forEach(function(t){f.push(e.getClass("abutted")+"-"+t)}),c.length&&p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),E(function(){e.options.addTargetClasses!==!1&&m(e.target,p,f),m(e.element,p,f)}),!0}});var B=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return C.modules.push({position:function(t){var e=t.top,n=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:n}));var o=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=B(s,2);o=a[0],r=a[1],o=parseFloat(o,10),r=parseFloat(r,10)}else o=i.top,r=i.left;return e+=o,n+=r,{top:e,left:n}}}}),G})},function(t,e,n){var i,o;i=n(3);var r=n(74);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(4);var r=n(79);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(5);var r=n(107);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(6);var r=n(86);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(7);var r=n(94);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(8);var r=n(101);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(9);var r=n(92);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(10);var r=n(98);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(11);var r=n(76);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(12);var r=n(104);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(13);var r=n(77);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(14);var r=n(90);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(15);var r=n(75);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(16);var r=n(87);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(17);var r=n(105);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(18);var r=n(102);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(19);var r=n(93);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(20);var r=n(81);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(21);var r=n(85);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(22);var r=n(78);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(23);var r=n(108);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(24);var r=n(97);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(25);var r=n(95);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(26);var r=n(88);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(27);var r=n(89);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(28);var r=n(100);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(29);var r=n(96);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(30);var r=n(83);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(31);var r=n(99);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(32);var r=n(103);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(33);var r=n(106);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),
o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(34);var r=n(91);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(35);var r=n(80);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(36);var r=n(82);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e,n){var i,o;i=n(37);var r=n(84);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=r.render,o.staticRenderFns=r.staticRenderFns,t.exports=i},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.localShow?n("div",{class:t.classObject,attrs:{role:"alert"}},[t.dismissible?n("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"alert","aria-label":"Close"},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.dismiss(e)}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]):t._e(),t._v(" "),t._t("default")],2):t._e()},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["btn-group",t.open?"open":"",t.dropup?"dropup":""]},[n("b-button",{class:[t.split?"":"dropdown-toggle"],attrs:{id:"dropdownMenuButton","aria-haspopup":"true","aria-expanded":t.open,variant:t.variant,size:t.size,disabled:t.disabled},on:{click:t.click}},[t._v("\n        "+t._s(t.text)+"\n    ")]),t._v(" "),t.split?n("b-button",{staticClass:"dropdown-toggle dropdown-toggle-split",attrs:{variant:t.variant,size:t.size,disabled:t.disabled},on:{click:t.toggle}},[n("span",{staticClass:"sr-only"},[t._v("Toggle Dropdown")])]):t._e(),t._v(" "),t.open?n("div",{class:["dropdown-menu",t.right?"dropdown-menu-right":""]},[t._t("default")],2):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel slide",attrs:{"data-ride":"carousel"},on:{mouseenter:function(e){t.pause()},mouseleave:function(e){t.start()}}},[n("ol",{directives:[{name:"show",rawName:"v-show",value:t.indicators,expression:"indicators"}],staticClass:"carousel-indicators"},t._l(t.slides,function(e,i){return n("li",{class:{active:e==i},on:{click:function(e){t.changeSlide(i)}}})})),t._v(" "),n("div",{staticClass:"carousel-inner",attrs:{role:"listbox"}},[t._t("default")],2),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.controls,expression:"controls"}],staticClass:"left carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.prev(e)}}},[n("span",{staticClass:"icon-prev",attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Previous")])]),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:t.controls,expression:"controls"}],staticClass:"right carousel-control",attrs:{href:"#",role:"button"},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.next(e)}}},[n("span",{staticClass:"icon-next",attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{staticClass:"sr-only"},[t._v("Next")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"collapse",attrs:{id:t.id}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:["list-group-item",t.listState,t.active?"active":"",t.disabled?"disabled":""]},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ol",{staticClass:"breadcrumb"},t._l(t.items,function(e){return n("li",{class:["breadcrumb-item",e.active?"active":null]},[e.active?t._e():n("a",{attrs:{href:"#"},domProps:{innerHTML:t._s(e.text)},on:{click:function(n){n.stopPropagation(),n.preventDefault(),t.onclick(e)}}}),t._v(" "),e.active?n("span",{domProps:{innerHTML:t._s(e.text)}}):t._e()])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tabs"},[n("ul",{staticClass:"nav nav-tabs"},t._l(t.items,function(e,i){return n("li",{staticClass:"nav-item",on:{click:function(e){t.setActive(i)}}},[n("span",{class:["nav-link","btn",t.btnSize,e.active?"active":"",e.disabled?"disabled":""]},[t._v("\n                  "+t._s(e.title)+"\n              ")])])})),t._v(" "),n("div",{staticClass:"tab-content"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form-fieldset",{attrs:{state:t.state,label:t.label,description:t.description,feedback:t.feedback,id:t.id}},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],class:["custom-select",t.inputSize],attrs:{id:t.id,options:t.allOptions,disabled:t.disabled},on:{change:function(e){t.selected=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e})[0]}}},t._l(t.allOptions,function(e){return n("option",{attrs:{disabled:e.disabled},domProps:{value:e.value,innerHTML:t._s(e.text)}})}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:["tag",t.labelVariant,t.labelType]},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"btn-group pagination",attrs:{role:"group","aria-label":"Pagination"}},[n("button",{class:["btn","btn-secondary",t.btnSize],attrs:{type:"button",disabled:1==t.currentPage},on:{click:function(e){e.preventDefault(),1==t.currentPage?t._return:t.currentPage--}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("«")])]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showPrev,expression:"showPrev"}],class:["btn","btn-secondary",t.btnSize,1==t.currentPage?"active":""],attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.currentPage=1}}},[t._v("1\n    ")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showPrev,expression:"showPrev"}],class:["btn","btn-secondary",t.btnSize]},[t._v("...")]),t._v(" "),t._l(t.pageLinks,function(e,i){return n("button",{class:["btn",t.btnSize,t.btnVariant(i),i+t.diff==t.currentPage?"active":"",i+t.diff!=t.currentPage?"hidden-xs-down":""],attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.currentPage=i+t.diff}}},[t._v(t._s(i+t.diff)+"\n    ")])}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.showNext,expression:"showNext"}],class:["btn","btn-secondary",t.btnSize]},[t._v("...")]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showNext,expression:"showNext"}],class:["btn","btn-secondary",t.btnSize,t.numberOfPages==t.currentPage?"active":""],attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.currentPage=t.numberOfPages}}},[t._v(t._s(t.numberOfPages)+"\n    ")]),t._v(" "),n("button",{class:["btn","btn-secondary",t.btnSize],attrs:{type:"button",disabled:t.currentPage==t.numberOfPages},on:{click:function(e){e.preventDefault(),t.currentPage==t.numberOfPages?t._return:t.currentPage++}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("»")])])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{ref:"trigger",staticClass:"tooltip-trigger"},[t._t("default")],2),t._v(" "),n("div",{ref:"tooltip",staticClass:"['tooltip','fade','in',tooltipAlignment]"},[n("div",{staticClass:"tooltip-inner"},[n("div",{staticClass:"tooltip-arrow"}),t._v(" "),n("div",{staticClass:"tooltip-content"},[t.text?n("span",{domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),n("div",{staticClass:"tooltip-content-wrapper"},[t.text?t._e():t._t("content")],2)])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"jumbotron",class:{"jumbotron-fluid":t.fluid}},[n("div",{staticClass:"container"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classObject,attrs:{role:"group"}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{class:[t.custom?"custom-control":null,t.custom?"custom-checkbox":null,t.inline?"form-check-inline":null]},[n("input",{class:[t.custom?"custom-control-input":null],attrs:{type:"checkbox",id:t.id,name:t.name,disabled:t.disabled},domProps:{value:t._value,checked:t.localChecked},on:{change:function(e){t.change(e.target.checked)}}}),t._v(" "),t.custom?n("span",{staticClass:"custom-control-indicator"}):t._e(),t._v(" "),n("span",{class:[t.custom?"custom-control-description":null]},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:{"nav-item":!0,open:t.show,dropdown:!t.dropup,dropup:t.dropup}},[n("a",{class:["nav-link",t.dropdownToggle],attrs:{href:"","aria-haspopup":"true","aria-expanded":t.show,disabled:t.disabled},on:{click:[function(e){e.stopPropagation(),t.toggle(e)},function(t){t.preventDefault()}]}},[t._t("default",[t._v("Slot")])],2),t._v(" "),n("div",{class:{"dropdown-menu":!0,"dropdown-menu-right":t.rightAlignment}},[t._t("dropdown-menu",[t._v('Slot "items"')])],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"nav-item",class:t.classObject,attrs:{href:"#"},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.onclick(e)}}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown-select",class:{open:t.show,dropdown:!t.dropup,dropup:t.dropup}},[n("button",{class:["btn","dropdown",t.dropdownToggle,t.btnVariant,t.btnSize],attrs:{id:t.id,role:"button","aria-haspopup":"true","aria-expanded":"show",disabled:t.disabled},on:{click:function(e){e.preventDefault(),t.toggle(e)}}},[n("span",{staticClass:"checked-items",domProps:{innerHTML:t._s(t.displayItem)}})]),t._v(" "),n("ul",{staticClass:"dropdown-menu",class:{"dropdown-menu-right":"right"==t.position},attrs:{"aria-labelledby":"dLabel"}},t._l(t.list,function(e){return n("li",[n("button",{staticClass:"dropdown-item",attrs:{click:t.select(e)}},[t._v(t._s(e.text))])])}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",[n("table",{staticClass:"table"},[n("thead",[n("tr",[t._l(t.fields,function(e){return[n("th",[t._v(t._s(e.label))])]})],2)]),t._v(" "),n("tbody",t._l(t._items,function(e){return n("tr",t._l(t.fields,function(i,o){return n("td",[t._t(o,[t._v(t._s(e[o]))],{value:e[o],item:e})],2)}))}))]),t._v(" "),t.pagination?n("div",{staticClass:"text-center"},[n("b-pagination",{directives:[{name:"model",rawName:"v-model",value:t.current,expression:"current"}],attrs:{size:"md",variant:"primary","total-rows":t.items.length,"per-page":t.perPage},domProps:{value:t.current},on:{input:function(e){t.current=e}}})],1):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["card",t.cardVariant,t.cardAlign,t.cardInverse]},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fieldset",{class:["form-group",this.stacked?"custom-controls-stacked":"",t.inputState]},t._l(t.items,function(e){return n("label",{class:["custom-control","custom-radio"]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.localValue,expression:"localValue"}],staticClass:"custom-control-input",attrs:{type:"radio",id:e.id,name:t.name,disabled:e.disabled},domProps:{value:e.value,checked:t._q(t.localValue,e.value)},on:{change:function(n){t.localValue=e.value}}}),t._v(" "),n("span",{staticClass:"custom-control-indicator"}),t._v(" "),n("span",{staticClass:"custom-control-description"},[t._v(t._s(e.text))])])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"btn-group",attrs:{"data-toggle":"buttons"}},t._l(t.list,function(e){return n("label",{class:["btn",t.btnVariant,t.btnSize,{disabled:e.disabled,active:t.selection==e.value}]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.selection,expression:"selection"}],attrs:{type:"radio",name:"options",autocomplete:"off",disabled:e.disabled},domProps:{value:e.value,checked:t._q(t.selection,e.value),innerHTML:t._s(e.text)},on:{change:function(n){t.selection=e.value}}})])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"none"}},[n("div",{class:{modal:!0,fade:t.fade,in:t.animateModal||!t.fade},staticStyle:{display:"block"},attrs:{id:t.id},on:{click:function(e){t.onClickOut(e)}}},[n("div",{class:["modal-dialog","modal-"+t.size],staticStyle:{"z-index":"9999"},attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[t._t("modal-header")],2),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("modal-body")],2),t._v(" "),n("div",{staticClass:"modal-footer"},[t._t("modal-footer")],2)])])]),t._v(" "),n("div",{staticClass:"modal-backdrop",class:{fade:t.fade,in:t.animateBackdrop||!t.fade}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.classObject},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media"},["media-left"==t.mediaHorizontalAlign?n("div",{class:[t.mediaHorizontalAlign,t.mediaVerticalAlign]},[t._t("aside")],2):t._e(),t._v(" "),n("div",{staticClass:"media-body"},[t._t("body")],2),t._v(" "),"media-right"==t.mediaHorizontalAlign?n("div",{class:[t.mediaHorizontalAlign,t.mediaVerticalAlign]},[t._t("aside")],2):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-item"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{ref:"trigger",staticClass:"popover-trigger"},[t._t("default")],2),t._v(" "),n("div",{ref:"popover",class:["popover",t.popoverAlignment]},[n("div",{staticClass:"popover-arrow"}),t._v(" "),t.title?n("h3",{staticClass:"popover-title"},[t._v(t._s(t.title))]):t._e(),t._v(" "),n("div",{staticClass:"popover-content"},[t.text?n("span",{domProps:{innerHTML:t._s(t.text)}}):t._e(),t._v(" "),n("div",{staticClass:"popover-content-wrapper"},[t.text?t._e():t._t("content")],2)])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{class:t.classObject},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classObject,on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.click(e)}}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-form-fieldset",{attrs:{state:t.state,label:t.label,description:t.description,feedback:t.feedback,id:t.id}},[t.textarea?t._e():n("input",{ref:"input",class:["form-control",t.stateIconType,t.inputSize],attrs:{type:t.type,id:t.id,name:t.name,placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)}}}),t._v(" "),t.textarea?n("textarea",{ref:"input",class:["form-control",t.stateIconType,t.inputSize],attrs:{type:t.type,id:t.id,name:t.name,placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)}}}):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("progress",{ref:"progress",class:[t.progressVariant,t.striped?"progress-striped":"",t.animated?"progress-animated":""],attrs:{value:t.value,max:t.max,"aria-valuenow":t.value,"aria-valuemin":0,"aria-valuemax":t.max}},[n("div",{staticClass:"progress"},[n("span",{ref:"progressbar",staticClass:"progress-bar",style:{width:t.value+"%"}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.toggle(e)}}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("fieldset",{class:["form-group","row",t.inputState]},[t.label?n("label",{class:["col-form-label","col-xs-2"],attrs:{for:t.id},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),n("div",{staticClass:"col-xs-10"},[t._t("default"),t._v(" "),t.feedback?n("div",{staticClass:"form-text text-muted",domProps:{innerHTML:t._s(t.feedback)}}):t._e(),t._v(" "),t.description?n("small",{staticClass:"form-text text-muted",domProps:{innerHTML:t._s(t.description)}}):t._e()],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tab-pane",class:{active:t.active,disabled:t.disabled,fade:t.fade,in:t.animate},attrs:{role:"tabpanel"}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"btn-group",attrs:{"data-toggle":"buttons"}},t._l(t.list,function(e,i){return n("label",{class:t.classObject},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.checked,expression:"item.checked"}],attrs:{type:"checkbox",autocomplete:"off",disabled:e.disabled},domProps:{value:e.value,checked:Array.isArray(e.checked)?t._i(e.checked,e.value)>-1:t._q(e.checked,!0),innerHTML:t._s(e.text)},on:{change:function(n){var i=e.checked,o=n.target,r=!!o.checked;if(Array.isArray(i)){var s=e.value,a=t._i(i,s);r?a<0&&(e.checked=i.concat(s)):a>-1&&(e.checked=i.slice(0,a).concat(i.slice(a+1)))}else e.checked=r}}})])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{class:{"list-group":!0,"list-group-flush":t.flush}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){o.installed||Object.keys(s).forEach(function(e){return t.component(e,s[e])})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var s=i(r);"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),e.default=o}]);
//# sourceMappingURL=bootstrap-vue.common.js.map


//////////////////
// WEBPACK FOOTER
// ./~/bootstrap-vue/build/bootstrap-vue.common.js
// module id = 277
// module chunks = 0

In Firefox Dev edition, error shows up as:

TypeError: this._items[0] is undefined

Really not sure how to go about this. Any help would be appreciated!

@prezmix
Copy link
Author

prezmix commented Jan 24, 2017

I have solved my error by using this approach instead.

<b-carousel id="infoscreen-carousel" :interval="3000" :indicators="false" :controls="false">
        <b-slide v-for="n in 10">
          <template v-if="events[n]">
            <div class="carousel-image">
              <img v-if="events[n].image" v-bind:src="events[n].image.raw" v-bind:alt="events[n].title" v-bind:title="events[n].title">
            </div>
            <div class="carousel-desc">
              <h2><a v-bind:href="events[n].url">{{ events[n].title | truncate(88) }}</a></h2>
              <p>
                <span>{{ events[n].all_oist_category }}</span>
                <span v-if="events[n].location">{{ events[n].location }}</span>
                <span>{{ events[n].start_date | unixToString }}</span>  
              </p>
              <p>{{ events[n].summary | cleanString | truncate(176) }}</p>
            </div>
          </template>
        </b-slide>
      </b-carousel>

Any comments would still be appreciate as to the correct approach.

Thank you

@pi0
Copy link
Member

pi0 commented Mar 2, 2017

Closing this as is a little old. Official carousel component support will be in next releases :)

@pi0 pi0 closed this as completed Mar 2, 2017
@flip111
Copy link

flip111 commented Feb 26, 2018

I tried to do the same by taking the carousal from the documentation and put the image links in the data section.

<template>
  <b-row>
    <b-col>
      <b-carousel id="carousel1"
                  style="text-shadow: 1px 1px 2px #333;"
                  controls
                  indicators
                  background="#ababab"
                  :interval="4000"
                  img-width="1024"
                  img-height="480"
                  v-model="slide"
                  @sliding-start="onSlideStart"
                  @sliding-end="onSlideEnd"
      >

        <b-carousel-slide v-for="image in images" v-bind:img-src="image"></b-carousel-slide>

      </b-carousel>

      <p class="mt-4">
        Slide #: {{ slide }}<br>
        Sliding: {{ sliding }}
      </p>

      <div v-for="image in images">{{image}}</div>
    </b-col>
  </b-row>
</template>

<script>
export default {
  data () {
    return {
      images:
      [ 'https://lorempixel.com/1024/480/technics/2/'
      , 'https://lorempixel.com/1024/480/technics/8/'
      , 'https://lorempixel.com/1024/480/technics/5/'
      ]
    }
  }
}
</script>

<style scoped>
</style>

The v-for works fine for this line <div v-for="image in images">{{image}}</div> but with the b-carousel-slide tag i get

(Emitted value instead of an instance of Error) <b-carousel-slide v-for="image in images">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.

Is there something in the carousel component that i need explicit keys now? (the carousel works though) How is this different than a regular div?

edit: changing

                  img-width="1024"
                  img-height="480"

to smaller sizes seems to have no effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants