platypush/platypush/backend/http/webapp/dist/static/js/201-legacy.b69dd152.js

2 lines
51 KiB
JavaScript
Raw Normal View History

2023-05-06 12:37:00 +02:00
(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[201],{4964:function(e,t,n){var i=n(5112),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},3929:function(e,t,n){var i=n(7850),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},6091:function(e,t,n){var i=n(6530).PROPER,r=n(7293),a=n(1361),o="…";e.exports=function(e){return r((function(){return!!a[e]()||o[e]()!==o||i&&a[e].name!==e}))}},7852:function(e,t,n){"use strict";var i=n(2109),r=n(1702),a=n(1236).f,o=n(7466),s=n(1340),l=n(3929),u=n(4488),c=n(4964),d=n(1913),f=r("".endsWith),p=r("".slice),m=Math.min,v=c("endsWith"),h=!d&&!v&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!v},{endsWith:function(e){var t=s(u(this));l(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:m(o(n),i),a=s(e);return f?f(t,a,r):p(t,r-a.length,r)===a}})},6755:function(e,t,n){"use strict";var i=n(2109),r=n(1702),a=n(1236).f,o=n(7466),s=n(1340),l=n(3929),u=n(4488),c=n(4964),d=n(1913),f=r("".startsWith),p=r("".slice),m=Math.min,v=c("startsWith"),h=!d&&!v&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!v},{startsWith:function(e){var t=s(u(this));l(e);var n=o(m(arguments.length>1?arguments[1]:void 0,t.length)),i=s(e);return f?f(t,i,n):p(t,n,n+i.length)===i}})},3210:function(e,t,n){"use strict";var i=n(2109),r=n(3111).trim,a=n(6091);i({target:"String",proto:!0,forced:a("trim")},{trim:function(){return r(this)}})},201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});n(8309);var i=n(6252),r=n(3577),a=n(9963),o={key:0,class:"children fade-in"};function s(e,t,n,s,l,u){var c,d,f,p=(0,i.up)("Entity",!0);return(0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["entity-container-wrapper",{"with-children":u.hasChildren,collapsed:u.isCollapsed,hidden:!(null!==(c=e.value)&&void 0!==c&&null!==(d=c.name)&&void 0!==d&&d.length)}])},[(0,i._)("div",{class:(0,r.C_)(["row item entity-container",{"with-children":u.hasChildren,collapsed:u.isCollapsed,blink:l.justUpdated}])},[(0,i._)("div",{class:(0,r.C_)(["adjuster",{"with-children":u.hasChildren}])},[((0,i.wg)(),(0,i.j4)((0,i.LL)(l.component),{value:e.value,parent:e.parent,children:e.children,loading:e.loading,ref:"instance",error:e.error||0==(null===(f=e.value)||void 0===f?void 0:f.reachable),onClick:u.onClick,onInput:t[0]||(t[0]=function(t){return e.$emit("input",t)}),onLoading:t[1]||(t[1]=function(t){return e.$emit("loading",t)})},null,8,["value","parent","children","loading","error","onClick"]))],2),u.hasChildren?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"col-1 collapse-toggler",onClick:t[2]||(t[2]=(0,a.iM)((function(){return u.toggleCollapsed&&u.toggleCollapsed.apply(u,arguments)}),["stop"]))},[(0,i._)("i",{class:(0,r.C_)(["fas",{"fa-chevron-down":u.isCollapsed,"fa-chevron-up":!u.isCollapsed}])},null,2)])):(0,i.kq)("",!0)],2),u.hasChildren&&!u.isCollapsed?((0,i.wg)(),(0,i.iD)("div",o,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.children,(function(n){return(0,i.wg)(),(0,i.iD)("div",{class:"child",key:n.id},[(0,i.Wm)(p,{value:n,parent:e.value,children:u.childrenByParentId(n.id),loading:e.loading,level:e.level+1,onShowModal:t[3]||(t[3]=function(t){return e.$emit("show-modal",t)}),onInput:function(t){return e.$emit("input",n)}},null,8,["value","parent","children","loading","level","onInput"])])})),128))])):(0,i.kq)("",!0)],2)}var l=n(4648),u=(n(7941),n(1539),n(9600),n(1249),n(4916),n(3123),n(7042),n(8783),n(3948),n(2262)),c=n(7909),d=n(5250),f={name:"Entity",mixins:[c["default"]],emits:["input","loading","update","show-modal"],data:function(){return{component:null,justUpdated:!1}},computed:{hasChildren:function(){return!!Object.keys(this.children||{}).length},isCollapsed:function(){return!this.hasChildren||this.collapsed},instance:function(){return this.$refs.instance}},methods:{valuesEqual:function(e,t){e=(0,l.Z)({},e),t=(0,l.Z)({},t);fo
//# sourceMappingURL=201-legacy.b69dd152.js.map