"use strict";(self["webpackChunkluckperms_web"]=self["webpackChunkluckperms_web"]||[]).push([[623],{94430:function(t,e,r){r.d(e,{A:function(){return c}});r(62010);var a=function(){var t=this,e=t._self._c;return e("img",{staticClass:"avatar",attrs:{src:"Hytale"===t.platform?"https://crafthead.net/hytale/helm/".concat(t.key,"/24"):"https://crafthead.net/helm/".concat(t.key,"/24"),alt:t.$t("avatar",{name:t.name}),title:t.title?t.$t("avatar",{name:t.name}):""},on:{error:t.replaceWithDefault}})},n=[],o=(r(27495),r(25440),"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA9klEQVR4nEWOvUoDQRSFv5nN7mQVsyISg0KwFgQ7K+sExEJ8AbUQDAiWWmmlIoKdPoFWYqOIheRFFGQ1oIKykCXETXZmMpAip7mXe8+fWJyPrDbgCUlP5+S5RkqJX/CwFsRCNXJjCBUUKCmJQfKXZmijh4TTvU0CPyAsluh22s5Okvx8cXH3hLg52rWhUnSzDM9TJO2E6kyZOH51ni7i/mTfrh9eslY/Y3v5EzUxzvXLFA/PB9weNxBXO6u2XJnDVxGPzabTwEZ9hdbHG+/fv4jzrZoNhCFupe41QmV2jLTTRzRqS9YYw/Rk5M6Q9XuEqug2XK9/BgqfVAJK5487AAAAAElFTkSuQmCC"),s={props:{id:{required:!0},name:{required:!1},title:{type:Boolean,default:!0}},computed:{key:function(){return this.id.replace(/-/g,"")},platform:function(){var t,e,r,a,n,o,s,i;return null!==(t=null!==(e=null!==(r=null===(a=this.$store.getters.metaData)||void 0===a?void 0:a.platform)&&void 0!==r?r:null===(n=this.$store.getters.verbose)||void 0===n||null===(o=n.metadata)||void 0===o?void 0:o.platform)&&void 0!==e?e:null===(s=this.$store.getters.tree)||void 0===s||null===(i=s.metadata)||void 0===i?void 0:i.platform)&&void 0!==t?t:"Minecraft"}},methods:{replaceWithDefault:function(t){t.target.src=o}}},i=s,l=r(845),u=(0,l.A)(i,a,n,!1,null,null,null),c=u.exports},87770:function(t,e,r){r.r(e),r.d(e,{default:function(){return _}});r(62010);var a=function(){var t=this,e=t._self._c;return e("main",{staticClass:"tree container"},[t.metaData?e("div",{staticClass:"tree-viewer"},[e("div",{staticClass:"col-1"},[e("h1",[t._v(t._s(t.$t("tree.title")))]),e("div",{staticClass:"meta-info"},[e("table",[e("tr",[e("td",[t._v(t._s(t.$t("tree.uploaded")))]),e("td",["00000000-0000-0000-0000-000000000000"!==t.metaData.uploader.uuid?e("avatar",{attrs:{id:t.metaData.uploader.uuid,title:!1}}):t._e(),t._v(" "+t._s(t.metaData.uploader.name)+" ")],1)]),e("tr",[e("td",{attrs:{title:t.$t("tree.started")}},[t._v(" "+t._s(t.$t("tree.time"))+" ")]),e("td",[t._v(t._s(t.metaData.time))])]),t.metaData.root?e("tr",[e("td",{attrs:{title:"Root"}},[t._v(" Root ")]),e("td",[e("code",[t._v(t._s(t.metaData.root))])])]):t._e(),t.metaData.referenceUser?e("tr",[e("td",{attrs:{title:t.$t("tree.user")}},[t._v(" "+t._s(t.$t("tree.user"))+" ")]),e("td",[e("avatar",{attrs:{id:t.metaData.referenceUser.uuid,name:t.metaData.referenceUser.name}}),t._v(" "+t._s(t.metaData.referenceUser.name)+" ")],1)]):t._e()])]),e("button",{on:{click:t.expandTree}},[e("font-awesome",{attrs:{icon:"plus-square"}}),t._v(" "+t._s(t.$t("tree.expand"))+" ")],1),e("button",{on:{click:t.collapseTree}},[e("font-awesome",{attrs:{icon:"minus-square"}}),t._v(" "+t._s(t.$t("tree.collapse"))+" ")],1)]),e("div",{staticClass:"col-2"},[e("div",t._l(t.treeData,(function(t,r){return e("branch",{key:r,attrs:{"branch-data":t,node:r}})})),1)])]):e("div",{staticClass:"tool-intro"},[e("div",[e("img",{attrs:{alt:"LuckPerms logo",src:r(63935)}}),e("div",{staticClass:"text"},[e("h1",[t._v("LuckPerms")]),e("p",[t._v(t._s(t.$t("tree.title")))]),t.errors.load||t.errors.unsupported?e("div",{staticClass:"error"},[t.errors.load?[e("h3",[t._v(t._s(t.$t("editor.error.title")))]),e("p",[t._v(t._s(t.$t("editor.error.info")))]),e("i18n",{attrs:{path:"editor.error.new",tag:"p"},scopedSlots:t._u([{key:"command",fn:function(){return[e("code",[t._v("/lp editor")])]},proxy:!0}],null,!1,3149427954)})]:t._e(),t.errors.unsupported?[e("h3",[t._v(t._s(t.$t("editor.unsupported.title")))]),e("i18n",{attrs:{path:"editor.unsupported.info",tag:"p"},scopedSlots:t._u([{key:"download",fn:function(){return[e("router-link",{attrs:{to:"/download"}},[t._v(" "+t._s(t.$t("editor.unsupported.download"))+" ")])]},proxy:!0}],null,!1,3233149032)})]:t._e()],2):[e("router-link",{attrs:{to:"/treeview/demo"}},[e("button",{staticClass:"button demo-button"},[t._v(" "+t._s(t.$t("tools.demo"))+" ")])]),e("p",[t._v(t._s(t.$t("tree.home.generate")))]),e("ul",[e("li",[e("code",[t._v("/lp tree ["+t._s(t.$t("tree.home.scope"))+"] ["+t._s(t.$t("tree.home.player"))+"]")])]),e("li",[t._v(t._s(t.$t("tree.home.url")))])])]],2)])])])},n=[],o=r(94430),s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"branch",class:t.node?"":"no-node"},[t.node?e("div",{staticClass:"node",on:{click:function(e){t.open=!t.open}}},[e("div",[t.hasChildren&&t.node?e("button",[e("font-awesome",{attrs:{icon:"caret-right",rotation:t.open?90:null}})],1):t._e(),e("code",[t._v(t._s(t.node))])]),t.result?e("code",{class:t.result},[t._v(" "+t._s(t.result)+" ")]):t._e()]):t._e(),t.open&&t.hasChildren?t._l(t.branchData,(function(t,r){return e("branch",{key:r,attrs:{node:r,"branch-data":t}})})):t._e()],2)},i=[],l=(r(74423),r(79432),r(21699),{name:"branch",components:{Branch:h},props:{node:String,branchData:Object},data:function(){return{open:!0}},computed:{hasChildren:function(){return Object.keys(this.branchData).length},checkResults:function(){var t;return null===(t=this.$store.getters.tree.data)||void 0===t?void 0:t.checkResults},result:function(){return this.checkResults&&Object.keys(this.checkResults).includes(this.node)?this.checkResults[this.node]:null}},created:function(){var t=this;this.$root.$on("collapseTree",(function(){t.node&&(t.open=!1)})),this.$root.$on("expandTree",(function(){t.open=!0}))}}),u=l,c=r(845),d=(0,c.A)(u,s,i,!1,null,null,null),h=d.exports,p=r(65952),v={metaInfo:{title:"Tree"},components:{Avatar:o.A,Branch:h},computed:{treeData:function(){var t,e=this.$store.getters.tree;return null!==(t=e.data)&&void 0!==t&&t.tree?e.data.tree:e.data},metaData:function(){var t;return null===(t=this.$store.state.tree)||void 0===t?void 0:t.metadata},errors:function(){return this.$store.state.tree.errors}},created:function(){var t;null!==(t=this.treeData)&&void 0!==t&&t.sessionId||(0,p.A)(this.$route,"getTreeData")},methods:{expandTree:function(){this.$root.$emit("expandTree")},collapseTree:function(){this.$root.$emit("collapseTree")}},watch:{$route:function(t){(0,p.A)(t,"getTreeData")}}},m=v,f=(0,c.A)(m,a,n,!1,null,null,null),_=f.exports},65952:function(t,e,r){r.d(e,{A:function(){return s}});var a=r(47546),n=r(24634),o=(r(79432),r(60649));function s(t,e){return i.apply(this,arguments)}function i(){return i=(0,n.A)((0,a.A)().mark((function t(e,r){var n,s,i,l,u,c;return(0,a.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.params.id,s=e.query,i=e.hash,l=Object.keys(s),n?u=e.params.id:l.length>0?(c=l[0],u="?".concat(c)):i&&(u=i),!u){t.next=6;break}return t.next=6,o.A.dispatch(r,u);case 6:case"end":return t.stop()}}),t)}))),i.apply(this,arguments)}}}]); //# sourceMappingURL=tree-legacy.6e26eacc.js.map