(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[5824],{6091:function(e,_,t){var n=t(6530).PROPER,r=t(7293),a=t(1361),s="​…᠎";e.exports=function(e){return r((function(){return!!a[e]()||s[e]()!==s||n&&a[e].name!==e}))}},3210:function(e,_,t){"use strict";var n=t(2109),r=t(3111).trim,a=t(6091);n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},3275:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6084),_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9584),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7327),core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1539),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1249),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8309),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4747),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9720),core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_7__),_Utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6813),_components_Loading__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(1232),_index__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9016),vue__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9963),vue__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(6252),mitt__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9652),bus=(0,mitt__WEBPACK_IMPORTED_MODULE_11__.Z)();__webpack_exports__["Z"]={name:"Elements",components:{Loading:_components_Loading__WEBPACK_IMPORTED_MODULE_9__.Z},mixins:[_Utils__WEBPACK_IMPORTED_MODULE_8__.Z],props:{content:{type:String}},data:function(){return{loading:!1,unwatch:null}},methods:{_parseActions:function(e){var _=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).filter((function(e){var _;return"actions"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())})),t=null!==_&&void 0!==_&&_.length?_[0].children:e.children,n=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(t).filter((function(e){var _;return"action"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==n&&void 0!==n&&n.length)return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(n).map((function(e){return{action:e.attributes.name.value,args:(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).reduce((function(e,_){var t=void 0;try{t=JSON.parse(_.innerText)}catch(r){var n;null!==(n=_.innerText)&&void 0!==n&&n.length&&(t=_.innerText)}return e[_.tagName.toLowerCase()]=t,e}),{})}}))},_parseVars:function(e){var _=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.children).filter((function(e){var _;return"vars"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==_&&void 0!==_&&_.length)return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(_[0].children).reduce((function(e,_){var t=void 0;try{t=JSON.parse(_.innerText)}catch(r){var n;null!==(n=_.innerText)&&void 0!==n&&n.length&&(t=_.innerText)}return e[_.tagName.toLowerCase()]=t,e}),{})},_parseHandlers:function _parseHandlers(element){var handlers={},parseHndlScript=function parseHndlScript(hndlText){return function(app){return eval("// noinspection JSUnusedLocalSymbols\n (async function (self) {\n ".concat(hndlText,"\n })"))(app)}},parseEventHndl=function parseEventHndl(hndlText){return function(app){return function(event){return eval("// noinspection JSUnusedLocalSymbols\n (async function (self, event) {\n ".concat(hndlText,"\n })"))(app,event)}}},hndlTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(element.children).filter((function(e){var _;return"handlers"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==hndlTags&&void 0!==hndlTags&&hndlTags.length){var mounted=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"mounted"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==mounted&&void 0!==mounted&&mounted.length&&(handlers.mounted=parseHndlScript(mounted[0].innerText));var refresh=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"refresh"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())})),_refresh$0$attributes;if(null!==refresh&&void 0!==refresh&&refresh.length)handlers.refresh={handler:parseHndlScript(refresh[0].innerText),interval:(null===(_refresh$0$attributes=refresh[0].attributes.interval)||void 0===_refresh$0$attributes?void 0:_refresh$0$attributes.value)||10};var events=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(hndlTags[0].children).filter((function(e){var _;return"event"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==events&&void 0!==events&&events.length&&(handlers.events=events.reduce((function(e,_){return e[_.attributes.type.value]=parseEventHndl(_.innerText),e}),{}))}var actionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(element.children).filter((function(e){var _;return"actions"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));if(null!==actionsTags&&void 0!==actionsTags&&actionsTags.length){var beforeActionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(actionsTags[0].children).filter((function(e){var _;return"before"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==beforeActionsTags&&void 0!==beforeActionsTags&&beforeActionsTags.length&&(handlers.beforeActions=parseHndlScript(beforeActionsTags[0].innerText));var afterActionsTags=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(actionsTags[0].children).filter((function(e){var _;return"after"===(null===(_=e.tagName)||void 0===_?void 0:_.toLowerCase())}));null!==afterActionsTags&&void 0!==afterActionsTags&&afterActionsTags.length&&(handlers.afterActions=parseHndlScript(afterActionsTags[0].innerText))}return handlers},_parseProps:function(e){return(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.attributes).reduce((function(e,_){return e[_.name]=_.value,e}),{})},propagateEvent:function(e){bus.emit("event",e)},_addEventHandler:function(){this.unwatch=this.subscribe((function(e){bus.emit("event",e)}))},_removeEventHandler:function(){this.unwatch&&(this.unwatch(),this.unwatch=null)}},mounted:function(){var e=this;this.loading=!0,this._addEventHandler();try{this.$refs.container.innerHTML=this.content,Object.entries(_index__WEBPACK_IMPORTED_MODULE_10__.Z).forEach((function(_){var t=(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__.Z)(_,2),n=t[0],r=t[1];e.$options.components[n]=r,(0,_home_blacklight_git_tree_platypush_platypush_backend_http_webapp_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__.Z)(e.$refs.container.getElementsByTagName(n)).forEach((function(_){var t=e._parseProps(_);t.actions=e._parseActions(_),t.handlers=e._parseHandlers(_),t._vars=e._parseVars(_);var n=document.createElement("div");n.setAttribute("class","component"),n.innerHTML=_.innerHTML,_.parentNode.replaceChild(n,_),(0,vue__WEBPACK_IMPORTED_MODULE_12__.ri)({render:function(){return(0,vue__WEBPACK_IMPORTED_MODULE_13__.h)(r,t)},data:function(){return{bus:bus}}}).mount(n)}))}));for(var _=0,t=["handlers","actions","vars"];_