/*! * Licensed Materials - Property of IBM * IBM Cognos Products: Modeling UI * (C) Copyright IBM Corp. 2020 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ (window.caModellingPerspective=window.caModellingPerspective||[]).push([[25],{1785:function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return d});var i,a=r(1),n=r.n(a),o=r(16),c=r(3),l=r(25),s=r(5),u=r(161),h=r(23),p=r(2),y=r(10),b=r(44),m=r(1786),g=r(1787);var d=Object(b.a)(y.m,{initializer:function(e,t){return new m.a({context:e},t.selection,e.rootStore.module)}})(i=Object(s.e)(function(e){return{itemHierarchyStore:e,saveHierarchy:e.saveHierarchy,setHierarchyLabel:e.setHierarchyLabel}},{addHierarchys:h.b})(i=Object(o.observer)(i=function(e){function t(){for(var t,r=arguments.length,i=new Array(r),a=0;a1)e+=" - "+r[r.length-1].getLabel()}return e},set:function(e){this._label=e}},{key:"parentQuerySubject",get:function(){return Object(b.getAncestorOrSelf)(this.entryObjects[0],s.a.MoserObjectTypes.QUERY_SUBJECT)}},{key:"parentItem",get:function(){return Object(b.getAncestorOrSelf)(this.entryObjects[0],s.a.MoserObjectTypes.ITEM_TYPE)}},{key:"isEditing",get:function(){return this.entryObjects[0].getObjectType()===s.a.MoserObjectTypes.ITEM_HIERARCHY}},{key:"isValid",get:function(){return!(!this.itemHierarchy||!this.itemHierarchy.getLocalRef().length)}},{key:"isDirty",get:function(){var e=this.originalItemHierarchy,t=this.itemHierarchy,r=this.originalLabel,i=this.label,a=e.getLocalRef(),n=t.getLocalRef();return r!==i||!a.length||!n.length||a.length!==n.length||c()(a,function(e,t){return e.getRef()!==n[t].getRef()})}}]),t}(h.a),n=g(a.prototype,"itemHierarchy",[u.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(a.prototype,"label",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"label"),a.prototype),g(a.prototype,"isEditing",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"isEditing"),a.prototype),g(a.prototype,"isValid",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"isValid"),a.prototype),g(a.prototype,"isDirty",[u.computed],Object.getOwnPropertyDescriptor(a.prototype,"isDirty"),a.prototype),g(a.prototype,"saveHierarchy",[i],Object.getOwnPropertyDescriptor(a.prototype,"saveHierarchy"),a.prototype),g(a.prototype,"setHierarchyLabel",[h.c],Object.getOwnPropertyDescriptor(a.prototype,"setHierarchyLabel"),a.prototype),a)},1787:function(e,t,r){"use strict";r.d(t,"a",function(){return y});var i,a=r(54),n=r.n(a),o=r(1),c=r.n(o),l=r(3),s=r(1029),u=r(2),h=r(23),p=r(5);r(1788);var y=Object(p.e)(null,{moveHierarchy:h.m,removeHierarchyAt:h.r,addHierarchys:h.b})(i=function(e){function t(){for(var t,r=arguments.length,i=new Array(r),a=0;a