(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-565ff11c"],{"030e":function(t,i,e){t.exports=e.p+"img/empty_state_folder.a58584d0.svg"},"051c":function(t,i,e){"use strict";var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"empty-state-container"},[e("div",{staticClass:"empty-state-img-wrapper"},[e("img",{attrs:{src:t.image,alt:""}})]),t.subtitle||t.description?e("div",{staticClass:"empty-state-text"},[t.subtitle?e("h4",{staticClass:"heading empty-state-subtitle"},[t._v(" "+t._s(t.subtitle)+" ")]):t._e(),e("can-i",{attrs:{permissions:[t.$options.ROLE_UNIT_ADMINISTRATION]}},[t.description?e("p",{staticClass:"empty-state-description"},[t._v(" "+t._s(t.description)+" ")]):t._e()])],1):t._e()])},a=[],s=e("e578"),o=e("f6f6"),r={name:"VEmptyState",components:{CanI:s["a"]},ROLE_UNIT_ADMINISTRATION:o["c"],props:{image:{type:String,required:!1,default:function(){return e("030e")}},subtitle:{type:String,required:!1,default:""},description:{type:String,required:!1,default:""}}},u=r,c=(e("a0a0"),e("2877")),d=Object(c["a"])(u,n,a,!1,null,"6e0df6ee",null);i["a"]=d.exports},"0a39":function(t,i,e){},"498a":function(t,i,e){"use strict";var n=e("23e7"),a=e("58a8").trim,s=e("c8d2");n({target:"String",proto:!0,forced:s("trim")},{trim:function(){return a(this)}})},"6a3e":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[e("can-i",{attrs:{permissions:[t.$options.ROLE_UNIT_ADMINISTRATION]}},[e("v-button",{attrs:{icon:"edit"},on:{click:t.goToEditCardInfo}},[t._v(" "+t._s(t.$t("page_unit.btn_edit_card_info"))+" ")])],1),t.isEmptyState?e("v-empty-state",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{subtitle:t.$t("page_unit.empty_states.unit_about.subtitle"),description:t.$t("page_unit.empty_states.unit_about.description")}}):e("div",{staticClass:"editor-artifact-content ql-editor",domProps:{innerHTML:t._s(t.unitAbout)}})],1)},a=[],s=(e("498a"),e("d3b7"),e("8096"),e("4af1")),o=e("e29f"),r=e("e578"),u=e("f6f6"),c=e("051c"),d={name:"UnitTabAbout",components:{VEmptyState:c["a"],CanI:r["a"],VButton:s["a"]},ROLE_UNIT_ADMINISTRATION:u["c"],data:function(){return{unitAbout:"",isLoading:!1}},created:function(){this.fetchCardInfo()},computed:{isEmptyState:function(){return!Boolean(this.unitAbout.trim())}},methods:{goToEditCardInfo:function(){var t=this.$route.params.unitID;this.$router.push({name:"edit_unit_info",params:{unitID:t}})},fetchCardInfo:function(){var t=this,i=this.$route.params.unitID;this.isLoading=!0,Object(o["c"])(i).then((function(i){t.unitAbout=i}))["finally"]((function(){t.isLoading=!1}))}}},p=d,f=e("2877"),l=Object(f["a"])(p,n,a,!1,null,null,null);i["default"]=l.exports},8096:function(t,i,e){},a0a0:function(t,i,e){"use strict";e("0a39")},c8d2:function(t,i,e){var n=e("5e77").PROPER,a=e("d039"),s=e("5899"),o="​᠎";t.exports=function(t){return a((function(){return!!s[t]()||o[t]()!==o||n&&s[t].name!==t}))}}}]);
//# sourceMappingURL=chunk-565ff11c.03befdb3.js.map