text: define(["../../../@polymer/polymer/polymer-legacy.js","../../../@polymer/iron-list/iron-list.js","./hax-blox-browser-item.js","./hax-icons.js"],function(_polymerLegacy){"use strict";function _templateObject_01a1d7b056d411e99e8143b72aec9f54(){var data=babelHelpers.taggedTemplateLiteral(["\n    <style>\n      :host {\n        display: block;\n      }\n      hax-blox-browser-item {\n        margin: 10px;\n        -webkit-transition: 0.3s all linear;\n        transition: 0.3s all linear;\n      }\n      #ironlist {\n        min-height: 50vh;\n      }\n    </style>\n    <iron-list id=\"ironlist\" items=\"[[__bloxList]]\" as=\"blox\" grid=\"\">\n      <template>\n        <div class=\"blox-container\">\n          <hax-blox-browser-item\n            index=\"[[blox.index]]\"\n            layout=\"[[blox.details.layout]]\"\n            title=\"[[blox.details.title]]\"\n            tag=\"[[blox.details.tag]]\"\n            icon=\"[[blox.details.icon]]\"\n            author=\"[[blox.details.author]]\"\n            teaser=\"[[blox.details.teaser]]\"\n            description=\"[[blox.details.description]]\"\n            examples=\"[[blox.details.examples]]\"\n            status=\"[[blox.details.status]]\"\n            blox=\"[[blox.blox]]\"\n          ></hax-blox-browser-item>\n        </div>\n      </template>\n    </iron-list>\n  "]);_templateObject_01a1d7b056d411e99e8143b72aec9f54=function(){return data};return data}(0,_polymerLegacy.Polymer)({_template:(0,_polymerLegacy.html)(_templateObject_01a1d7b056d411e99e8143b72aec9f54()),is:"hax-blox-browser",properties:{bloxList:{type:Array,observer:"_bloxListChanged"}},ready:function ready(){document.body.addEventListener("hax-store-property-updated",this._haxStorePropertyUpdated.bind(this))},attached:function attached(){this.resetBrowser()},detached:function detached(){document.body.removeEventListener("hax-store-property-updated",this._haxStorePropertyUpdated.bind(this))},_haxStorePropertyUpdated:function _haxStorePropertyUpdated(e){if(e.detail&&babelHelpers.typeof(e.detail.value)!=="undefined"&&e.detail.property){if(babelHelpers.typeof(this[e.detail.property])!=="undefined"&&null!=this[e.detail.property]&&babelHelpers.typeof(this[e.detail.property].length)!=="undefined"){this.set(e.detail.property,[])}this.set(e.detail.property,e.detail.value)}},_bloxListChanged:function _bloxListChanged(newValue){if(babelHelpers.typeof(newValue)!=="undefined"){this.set("__bloxList",newValue)}},resetBrowser:function resetBrowser(){var _this=this;setTimeout(function(){_this.$.ironlist.fire("iron-resize");window.dispatchEvent(new Event("resize"))},100)}})});