/*! * 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([[30],{1774:function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return h});var o,i=r(0),n=r.n(i),a=r(1),l=r.n(a),p=r(16),u=r(3),c=r(25),s=r(5),g=r(161),d=r(2),m=r(10),b=r(44),y=r(1775),D=r(1776);var h=Object(b.a)(m.p,{initializer:function(e,t){return new y.a({},t.queryItems,t.navGroup)}})(o=Object(s.e)(function(e){return{rootObject:e.module,isEditing:!!e.editingDrillGroup,isStagedDrillGroupValid:!!e.isStagedDrillGroupValid,isStagedDrillGroupDirty:e.isStagedDrillGroupDirty,addSegments:e.addSegments,applyStagedDrillGroup:e.applyStagedDrillGroup}})(o=Object(p.observer)(o=function(e){function t(){for(var t,r=arguments.length,o=new Array(r),i=0;i0},function(e,t,r){t&&b(e.prototype,t),r&&b(e,r)}(t,[{key:"module",get:function(){return this.provider.getModule()}},{key:"segments",get:function(){return this.stagedDrillGroup.getSegment()}},{key:"stagedDrillGroupLabel",get:function(){return this.stagedDrillGroup.getLabel()}},{key:"stagedDrillGroupLabelPlaceholder",get:function(){var e="",t=this.stagedDrillGroup.getSegment();return t.length&&(e=t[0].getLabel(),t.length>1&&(e+=" - "+t[t.length-1].getLabel())),e}},{key:"isStagedDrillGroupValid",get:function(){return!!this.stagedDrillGroup.getSegment().length}},{key:"isStagedDrillGroupDirty",get:function(){var e=this.stagedDrillGroup,t=this.editingDrillGroup;if(t&&e.getSegment().length){var r=e.getSegment(),o=t.getSegment();return!o.length||o.length!==r.length||t.getLabel()!==e.getLabel()||r.some(function(e,t){return e.getRef()!==o[t].getRef()})}}}]),t}(p.a),n=D(i.prototype,"editingDrillGroup",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=D(i.prototype,"stagedDrillGroup",[l.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D(i.prototype,"module",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"module"),i.prototype),D(i.prototype,"segments",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"segments"),i.prototype),D(i.prototype,"stagedDrillGroupLabel",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"stagedDrillGroupLabel"),i.prototype),D(i.prototype,"stagedDrillGroupLabelPlaceholder",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"stagedDrillGroupLabelPlaceholder"),i.prototype),D(i.prototype,"isStagedDrillGroupValid",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isStagedDrillGroupValid"),i.prototype),D(i.prototype,"isStagedDrillGroupDirty",[l.computed],Object.getOwnPropertyDescriptor(i.prototype,"isStagedDrillGroupDirty"),i.prototype),D(i.prototype,"applyStagedDrillGroup",[o],Object.getOwnPropertyDescriptor(i.prototype,"applyStagedDrillGroup"),i.prototype),D(i.prototype,"addSegments",[p.c],Object.getOwnPropertyDescriptor(i.prototype,"addSegments"),i.prototype),D(i.prototype,"setLabel",[p.c],Object.getOwnPropertyDescriptor(i.prototype,"setLabel"),i.prototype),D(i.prototype,"moveSegment",[p.c],Object.getOwnPropertyDescriptor(i.prototype,"moveSegment"),i.prototype),D(i.prototype,"removeSegmentAt",[p.c],Object.getOwnPropertyDescriptor(i.prototype,"removeSegmentAt"),i.prototype),D(i.prototype,"canDrop",[p.j],Object.getOwnPropertyDescriptor(i.prototype,"canDrop"),i.prototype),i)},1776:function(e,t,r){"use strict";r.d(t,"a",function(){return m});var o,i=r(54),n=r.n(i),a=r(1),l=r.n(a),p=r(16),u=r(3),c=r(17),s=r(1029),g=r(2),d=r(5);r(1783);var m=Object(d.e)(function(e){return{segments:e.segments,moveSegment:e.moveSegment,removeSegmentAt:e.removeSegmentAt,addSegments:e.addSegments,setDrillGroupLabel:e.setLabel,drillGroupLabel:e.stagedDrillGroupLabel,drillGroupLabelPlaceholder:e.stagedDrillGroupLabelPlaceholder,canDrop:e.canDrop}})(o=Object(p.observer)(o=function(e){function t(){for(var t,r=arguments.length,o=new Array(r),i=0;i