|
|
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=34)}({34:function(e,t,n){e.exports=n(38)},38:function(e,t,n){"use strict";n.r(t);var i={css:null,exports:{handleClick(){}},template:function(e,t,n,i){return e('<div class="buckets"><div class="tile is-ancestor"><div expr0="expr0" class="tile is-3 is-parent"></div></div><div class="buckets__more"><button expr5="expr5" type="button" class="button">\n More\n <span class="icon is-small is-left"><svg aria-hidden="true"><use xlink:href="/symbol-defs.svg#icon-add-circle"/></svg></span></button></div></div>',[{type:n.EACH,getKey:null,condition:null,template:e('<div class="tile is-child"><a expr1="expr1" class="buckets__item"><div class="content"><p expr2="expr2" class="title is-4"> </p><div expr3="expr3" class="tags are-medium"></div></div></a></div>',[{redundantAttribute:"expr1",selector:"[expr1]",expressions:[{type:t.ATTRIBUTE,name:"href",evaluate:function(e){return["/bucket/",e.bucket.id].join("")}}]},{redundantAttribute:"expr2",selector:"[expr2]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return[e.bucket.name].join("")}}]},{type:n.IF,evaluate:function(e){return e.bucket.tags&&e.bucket.tags.length>0},redundantAttribute:"expr3",selector:"[expr3]",template:e('<span expr4="expr4" class="tag is-white"></span>',[{type:n.EACH,getKey:null,condition:null,template:e(" ",[{expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.tag}}]}]),redundantAttribute:"expr4",selector:"[expr4]",itemName:"tag",indexName:null,evaluate:function(e){return e.bucket.tags}}])}]),redundantAttribute:"expr0",selector:"[expr0]",itemName:"bucket",indexName:null,evaluate:function(e){return e.props.buckets}},{redundantAttribute:"expr5",selector:"[expr5]",expressions:[{type:t.EVENT,name:"onclick",evaluate:function(e){return e.handleClick}}]}])},name:"buckets"},r={css:null,exports:{state:{items:[],index:0},onBeforeMount(){this.content=this.root.innerHTML,this.root.innerHTML=""},onMounted(e,t){const n=this.$(".tabs");t.wrapper=document.createElement("div"),t.wrapper.innerHTML=this.content,n.after(t.wrapper);for(let e=0;e<t.wrapper.children.length;e++)t.items.push(t.wrapper.children[e].title),t.wrapper.children[e].classList.add("accordion__item"),0===e&&t.wrapper.children[e].classList.add("accordion__item--active");this.update()},handleClick(e,t){for(let e=0;e<this.state.wrapper.children.length;e++)this.state.wrapper.children[e].classList.remove("accordion__item--active"),e===t&&(this.state.wrapper.children[e].classList.add("accordion__item--active"),this.state.index=e);this.update()},getCurrentClass(e){let t=[];return e===this.state.index&&t.push("is-active"),t.join(" ")}},template:function(e,t,n,i){return e('<div class="accordion"><div class="tabs mb-3"><ul><li expr6="expr6"></li></ul></div></div>',[{type:n.EACH,getKey:null,condition:null,template:e('<a expr7="expr7"> </a>',[{expressions:[{type:t.ATTRIBUTE,name:"class",evaluate:function(e){return e.getCurrentClass(e.index)}},{type:t.EVENT,name:"onclick",evaluate:function(e){return()=>e.handleClick(e.event,e.index)}}]},{redundantAttribute:"expr7",selector:"[expr7]",expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:function(e){return e.item}}]}]),redundan
|