12345678 |
- /*!
- * 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([[35],{1208:function(e,t,r){"use strict";r.d(t,"a",function(){return a}),r.d(t,"b",function(){return n}),r.d(t,"i",function(){return i}),r.d(t,"h",function(){return c}),r.d(t,"d",function(){return o}),r.d(t,"g",function(){return s}),r.d(t,"c",function(){return l}),r.d(t,"f",function(){return u}),r.d(t,"e",function(){return p});var a="choiceView",n="manualSelectionView",i="smartsView",c={IDLE:"IDLE",RUNNING:"RUNNING",CANCELLED:"CANCELLED",ERRORED:"ERRORED",COMPLETED:"COMPLETED",NOT_CANCELLABLE:"NOT_CANCELLABLE"},o="EXECUTING",s="SUCCESS",l="CANCELLED",u="NOT_CANCELLABLE",p="NOT_AVAILABLE"},1425:function(e,t,r){"use strict";r.r(t),r.d(t,"isPendingSmarts",function(){return C}),r.d(t,"default",function(){return P});var a,n,i=r(6),c=r(16),o=r(1),s=r.n(o),l=r(3),u=r(19),p=r(70),h=r.n(p),g=r(2),d=r(1426),m=r.n(d),f=r(5),b=r(25),y=r(44),S=r(10),E=(r(521),r(1208)),v=r(1427),O=r(1430),j=r(1547),x=r(1550),w=r(1558);var _=((a={})[E.a]=j.a,a[E.b]=O.a,a[E.i]=x.a,a),I={},k={};function C(){return Object.keys(I).length>0}var P=Object(y.a)(S.r,{initializer:function(e,t){var r=I[t.storeId]||new v.a({context:e},t.storeId);return k[t.storeId]&&(k[t.storeId].remove(),delete k[t.storeId]),r},destroyer:function(e){if(e.isSmartsRunning)return I[e.storeId]=e,!1}})(n=Object(f.e)(function(e){return{moserPackage:e.moserPackage,packageEnrichStore:e,activeViewId:e.activeViewId,isManualSelectionActive:e.isManualSelectionActive,isSmartsSelectionActive:e.isSmartsSelectionActive,isSmartsRunning:e.isSmartsRunning,isLoading:e.isLoading,isOLAPPackage:e.isOLAPPackage,enrichError:e.enrichError,applyOverrides:e.applyOverrides,showNextView:e.showNextView,showPreviousView:e.showPreviousView,fetchPackage:e.fetchPackage,fetchTaxonomyOptions:e.fetchTaxonomyOptions,fetchPackageInfo:e.fetchPackageInfo,fetchSmartsTask:e.fetchSmartsTask,openConfirmDialog:e.openConfirmDialog,openPackageEnrichDialog:e.openPackageEnrich,previousChanges:e.previousChanges,undoMoserPackage:e.undoMoserPackage,setSelectedTreeItems:e.setSelectedTreeItems}})(n=Object(c.observer)(n=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this).state={disabledButtons:!1,isEnrichmentConfirmationVisible:!1},t._tid=function(e){return Object(b.a)("PackageEnrichDialog",e)},t._onSave=function(){t.setState({disabledButtons:!0}),t.props.applyOverrides().then(function(e){t.setState({disabledButtons:!1}),t._onClose(e)},function(){return t.setState({disabledButtons:!1})})},t._launchProgressIndicator=function(){k[t.props.storeId]=function(e){var t=e.store,r=e.packageName,a=e.onDetails,n=e.onComplete,c=new h.a,o=setInterval(function(){return t.fetchSmartsTask()},2e3);c.show(Object(g.getString)("packageEnrichRunningOn",{value:r,completed:t.percentComplete})),c.hideButton("cancel"),c.showButton("details");var s=Object(i.autorun)(function(){c.setComplete(t.percentComplete),c.setMessage(Object(g.getString)("packageEnrichRunningOn",{value:r,completed:t.percentComplete})),t.isSmartsErrored?(l(),c.fail(Object(g.getString)("packageEnrichFailedOn",{value:r}))):t.isSmartsRunning||(l(),c.setComplete(100,{isComplete:!0,completeMsg:Object(g.getString)("packageEnrichCompletedOn",{value:r})}),c.hideButton("details"),n())});function l(){c.remove(),clearInterval(o),s()}return c.onDetails(function(){c.REMOVE_DELAY=0,l(),a()}),setTimeout(function(){c.$el.parent()[0].style.zIndex=99},0),c}({store:t.props.packageEnrichStore,packageName:t.props.packageName,onDetails:function(){t.props.openPackageEnrichDialog(t.props.storeId,t.props.packageName)},onComplete:function(){delete I[t.props.storeId]}})},t._onClose=function(e){t.props.isSmartsRunning?t.props.openConfirmDialog(Object(g.getString)("packageEnrichConfirmCloseTitle"),Object(g.getString)("packageEnrichConfirmCloseBody")).then(function(r){r&&(t._launchProgressIndicator(),t.props.onClose(e))}):(delete I[t.props.storeId],t.props.onClose(e))},t._onConfirmation=function(e){var r=t.props,a=r.showPreviousView,n=r.undoMoserPackage,i=r.setSelectedTreeItems,c=r.moserPackage;e&&(n(c),i(),a()),t.setState({isEnrichmentConfirmationVisible:!1})},t._onPreviousClick=function(){var e=t.props,r=e.previousChanges,a=e.showPreviousView;r.size?t.setState({isEnrichmentConfirmationVisible:!0}):a()},t._getDialogTitle=function(){var e=t.props,r=e.activeViewId,a=e.packageName;return r===E.a?Object(g.getString)("packageEnrich",{value:a}):r===E.b?Object(g.getString)("packageEnrichManualHeader",{value:a}):Object(g.getString)("packageEnrichSmartHeader",{value:a})},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.moserPackage||(this.props.fetchPackage(),this.props.fetchTaxonomyOptions(),this.props.fetchPackageInfo())},r.render=function(){var e=this.props,t=e.activeViewId,r=e.isManualSelectionActive,a=e.isSmartsSelectionActive,n=e.showNextView,i=e.isLoading,c=e.isOLAPPackage,o=e.enrichError,p=this.state,h=p.disabledButtons,d=p.isEnrichmentConfirmationVisible,f=t===E.b?s.a.createElement(l.Dialog.Button,{disabled:h||i,primary:!0,label:Object(g.getString)("ok"),"aria-label":Object(g.getString)("ok"),"data-tid":this._tid("ok"),onClick:this._onSave}):null,b=t!==E.a||c||i?null:s.a.createElement(l.Dialog.Button,{disabled:h||!(r||a),primary:!0,label:Object(g.getString)("next"),"aria-label":Object(g.getString)("next"),"data-tid":this._tid("next"),onClick:n}),y=s.a.createElement(l.Dialog.Button,{disabled:h||i,label:t===E.b?Object(g.getString)("cancel"):Object(g.getString)("close"),"aria-label":t===E.b?Object(g.getString)("cancel"):Object(g.getString)("close"),"data-tid":this._tid(t===E.b?"cancel":"close"),onClick:this._onClose}),S=t!==E.a?s.a.createElement(l.Dialog.Button,{primary:!0,label:Object(g.getString)("previous"),"aria-label":Object(g.getString)("previous"),"data-tid":this._tid("previous"),onClick:this._onPreviousClick}):null,v=_[t];return s.a.createElement(l.Dialog,{width:"1200px",onClose:this._onClose},s.a.createElement(l.Dialog.Header,{"data-tid":this._tid("header")},s.a.createElement(l.TruncatedText,{value:this._getDialogTitle()})),s.a.createElement(l.Dialog.Body,null,i?s.a.createElement(l.FlexLayout,{height:"600px",justifyContent:"center",alignItems:"center",direction:"column"},s.a.createElement(l.FlexItem,null,s.a.createElement(l.ProgressIndicator,{size:"large"}))):c||o?s.a.createElement(u.EmptyState,{height:"600px",icon:m.a,header:Object(g.getString)("packageEnrichOlap"),body:c?Object(g.getString)("packageEnrichOlapDesc"):Object(g.getString)("packageEnrichErrorMsg",{message:o})}):s.a.createElement(v,this.props),d&&s.a.createElement(u.Overlay,null,s.a.createElement(w.a,{onConfirmation:this._onConfirmation}))),s.a.createElement(l.Dialog.Footer,null,f,S,b,y))},t}(o.Component))||n)||n)||n},1426:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([99],{"3865314c5959606874d4":function(t,r){t.exports=e},"890bc46e9f2eab82f183":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("df8c83bf9e007532fa0d"));t.default=n.a},df8c83bf9e007532fa0d:function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"error-enriching-package_128_v7",use:"error-enriching-package_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="error-enriching-package_128_v7"><circle class="ba-graphics-neutral-white4" cx="100" cy="100" r="100" /><path class="ba-graphics-white" d="M14.97 170.08h135.66" /><path class="ba-graphics-gray60" d="M150.63 172.08H15a2 2 0 110-4h135.63a2 2 0 010 4z" /><path class="ba-graphics-white" d="M2 170.08h4.97" /><path class="ba-graphics-gray60" d="M7 172.08H2a2 2 0 010-4h5a2 2 0 010 4z" /><path class="ba-graphics-white" d="M179.03 170.08H198" /><path class="ba-graphics-gray60" d="M198 172.08h-19a2 2 0 010-4h19a2 2 0 010 4z" /><path class="ba-graphics-white" d="M158.63 170.08h12.4" /><path class="ba-graphics-gray60" d="M171 172.08h-12.4a2 2 0 010-4H171a2 2 0 010 4z" /><rect class="ba-graphics-white" x="23.95" y="46.52" width="152" height="107" rx="6.21" /><path class="ba-graphics-gray60" d="M169.74 50.34a2.39 2.39 0 012.39 2.39v94.57a2.4 2.4 0 01-2.39 2.4H30.17a2.41 2.41 0 01-2.4-2.4V52.73a2.4 2.4 0 012.4-2.39h139.57m0-3.82H30.17A6.22 6.22 0 0024 52.73v94.57a6.22 6.22 0 006.22 6.22h139.52a6.21 6.21 0 006.26-6.22V52.73a6.21 6.21 0 00-6.21-6.21z" /><path class="ba-graphics-gray1" d="M176 67.28V52.7a6.21 6.21 0 00-6.21-6.22H30.17A6.22 6.22 0 0024 52.7v14.58z" /><path class="ba-graphics-gray60" d="M169.74 50.3a2.4 2.4 0 012.39 2.4v10.76H27.77V52.7a2.41 2.41 0 012.4-2.4h139.57m0-3.82H30.17A6.22 6.22 0 0024 52.7v14.58h152V52.7a6.21 6.21 0 00-6.21-6.22z" /><circle class="ba-graphics-gray60" cx="34.07" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="41.21" cy="56.82" r="2" /><circle class="ba-graphics-gray60" cx="48.34" cy="56.82" r="2" /><path class="ba-graphics-gray60" d="M113.42 101.63v13.94a.4.4 0 01-.24.41l-6.32 3.17-4.68 2.35-.32.15V107.8a.49.49 0 01.32-.52l8.41-4.22 2.53-1.28a2 2 0 01.3-.15zm0 17.92v13.71a.69.69 0 01-.45.73q-3.64 1.81-7.26 3.65l-3.46 1.74-.37.18v-13.83a.53.53 0 01.37-.55l7.57-3.8 3.29-1.67a2.49 2.49 0 01.31-.16zM86.6 101.64l1.33.66c3.24 1.62 6.47 3.26 9.71 4.87a.82.82 0 01.53.86v13.62l-.41-.16-6.31-3.18-4.62-2.31a.4.4 0 01-.26-.4v-13.71c.01-.07.02-.14.03-.25zm-14.53-7.32l1.33.68 8 4.06c.63.32 1.26.66 1.9 1a.52.52 0 01.32.55v13.82l-.52-.24-6.25-3.19-4.55-2.29a.38.38 0 01-.24-.37v-13.8a.86.86 0 01.01-.22zm26.06 45.25l-2.82-1.41-6.07-3-2.41-1.22a.4.4 0 01-.26-.42v-13.97l.74.35 8.48 4.28c.69.35 1.37.71 2.06 1a.45.45 0 01.29.47v13.43a3.62 3.62 0 01-.01.49zm-14.52-7.32l-2.71-1.36-8.48-4.27a.54.54 0 01-.37-.57v-13.81l.63.28 6.59 3.32c1.33.67 2.66 1.35 4 2a.59.59 0 01.37.62v13.34c-.01.12-.02.25-.03.45zm28.95-34l-2.15 1.14c-3.27 1.72-6.55 3.41-9.81 5.16a1.25 1.25 0 01-1.4 0c-1.84-1-3.74-2-5.61-3q-3-1.56-6.07-3.17l-.17-.11c.14-.09.25-.17.36-.23l5.46-2.7c2.09-1 4.17-2.06 6.24-3.12a1 1 0 011 0c1.47.74 3 1.48 4.42 2.18l7.41 3.64zm-9.39-7.84l1.49-.73q4.92-2.48 9.84-4.91a.78.78 0 01.74 0c1.65.77 3.32 1.51 5 2.27l5.76 2.64 1.25.56.22.14a4 4 0 01-.37.21l-11.06 5.83a.6.6 0 01-.58 0l-8.11-3.91c-1.33-.63-2.66-1.28-4-1.92a2 2 0 01-.18-.18zm-6.49.04c-.37.19-.69.37-1 .51l-11.19 5.49a.77.77 0 01-.8 0q-3.34-1.77-6.69-3.52l-4.33-2.26-.23-.14.52-.28 9.44-4.38c.74-.35 1.51-.7 2.28-1a.77.77 0 01.56 0c1.38.66 2.76 1.32 4.11 2l7.17 3.51zm14.94-7.35a1.12 1.12 0 01-.22.16l-9.4 4.58c-.62.31-1.24.6-1.84.92a.58.58 0 01-.57 0L93 85.55l-4.68-2.26-.19-.1 1.61-.74c3.15-1.45 6.26-2.89 9.39-4.37a1.65 1.65 0 011.53 0c3.16 1.48 6.35 2.91 9.52 4.36.48.2.94.43 1.44.66zm7.65 33.47l-2.59 1.3a.55.55 0 00-.33.57v13.83l.42-.2 11.23-5.64V112.2zm8.67-8.08V94.63a1.84 1.84 0 000-.31l-.29.13c-.69.37-1.38.7-2.07 1l-8.82 4.43a.63.63 0 00-.39.66v13.73z" /><circle class="ba-graphics-gray60" cx="101.94" cy="33.79" r="2" /><circle class="ba-graphics-gray60" cx="125.47" cy="24.44" r="2" /><path class="ba-graphics-gray60" d="M72.53 22.19a4 4 0 004-4 1 1 0 112 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><circle style="opacity:.1" cx="167.35" cy="119.66" r="20" /><circle class="ba-graphics-red50" cx="167.35" cy="115.66" r="20" /><rect class="ba-graphics-neutral-white4" x="165.35" y="104.68" width="3.99" height="13.98" rx="2" transform="rotate(180 167.35 111.67)" /><rect class="ba-graphics-neutral-white4" x="165.35" y="122.65" width="3.99" height="3.99" rx="2" transform="rotate(180 167.35 124.65)" /></symbol>'});c.a.add(o),t.a=o}},["890bc46e9f2eab82f183"])}(r(137))},1427:function(e,t,r){"use strict";r.d(t,"a",function(){return re});var a,n,i,c,o,s,l,u,p,h,g,d,m,f,b,y,S,E,v,O,j,x,w,_,I=r(6),k=r(0),C=r.n(k),P=r(5),F=r(775),T=r(4),M=r(8),D=r(14),R=r(2),L=r(33),A=r(113),z=r(87),V=r(220),N=r(1428),Q=r(52),B=r(869),U=r(41),H=r(1429),W=r(183),G=r(184),q=r(10),J=r(1208);function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function X(e,t,r,a){r&&Object.defineProperty(e,t,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(a):void 0})}function K(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function $(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t,r,a,n){var i={};return Object.keys(a).forEach(function(e){i[e]=a[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce(function(r,a){return a(e,t,r)||r},i),n&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(n):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}var ee=function(e){return e.tasks?e.tasks.find(function(e){return"SmartsCollection"===e.taskType}):null},te=function(e){var t=[];return e&&e.taskStep&&e.taskStep.concurrentTasks&&(e.taskStep.concurrentTasks.forEach(function(e){JSON.parse(e.info).fail.forEach(function(e){return t.push({message:e.name,details:(e.details||[]).map(function(e){return e?e.replace(/\\r\\n/g,"\n").replace(/\\n/g,"\n").replace(/\\t/g,"\t"):e})})})}),t.length)?t:e&&e.errorMessage?[{message:Object(R.getString)("packageEnrichError"),details:e.errorMessage}]:e&&e.entity?[{message:Object(R.getString)("packageEnrichError"),details:e.entity.msg}]:[]},re=(a=I.observable.ref,n=I.observable.ref,i=I.observable.ref,c=I.observable.ref,o=I.observable.ref,s=I.observable.ref,l=function(e){function t(t,r){var a;return(a=e.apply(this,arguments)||this)._gridStore=null,a.storeId=null,a.taskId=null,a.affinity=null,X(a,"packageInfo",u,$(a)),X(a,"lastFinishedResponse",p,$(a)),X(a,"previousEnrichmentResults",h,$(a)),X(a,"moserPackage",g,$(a)),X(a,"selected",d,$(a)),X(a,"taxonomyOptions",m,$(a)),X(a,"activeViewId",f,$(a)),X(a,"isManualSelectionActive",b,$(a)),X(a,"isSmartsSelectionActive",y,$(a)),X(a,"smartsStatus",S,$(a)),X(a,"excludedQuerySubjects",E,$(a)),X(a,"isRetrieveSampleDataChecked",v,$(a)),X(a,"autoRefresh",O,$(a)),X(a,"maxSampleRows",j,$(a)),X(a,"percentComplete",x,$(a)),X(a,"enrichError",w,$(a)),X(a,"previousChanges",_,$(a)),a.storeId=r,a}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.isQuerySubjectExcluded=function(e){return!!this.excludedQuerySubjects[Object(M.getUniqueId)(e)]},r._handleSmartsReponse=function(e){if(this.setPercentComplete(0),e.state===J.d)e.taskStep&&(this.setPercentComplete(C.a.ModuleUtils.taskPercentage(e)),this.setSmartsStatus(J.h.RUNNING));else{if(e.state===J.g)return this.setPercentComplete(0),this.setSmartsStatus(J.h.COMPLETED),this.setLastFinishedResponse(e),this.fetchPackageInfo();if(e.state===J.c)this.setPercentComplete(0),this.setSmartsStatus(J.h.CANCELLED);else{if(e.state===J.f)return this.setSmartsStatus(J.h.NOT_CANCELLABLE),this.setLastFinishedResponse(e),this.fetchPackageInfo();if(e.state===J.e){if(this.smartsStatus===J.h.RUNNING)return this.setSmartsStatus(J.h.IDLE),this.fetchPackageInfo()}else this.setPercentComplete(0),this.setSmartsStatus(J.h.ERRORED),this.setLastFinishedResponse(e)}}},r.qeueChange=function(e,t){this.previousChanges.has(Object(M.getUniqueId)(e))||this.previousChanges.set(Object(M.getUniqueId)(e),t)},r.undoChange=function(e){this.previousChanges.has(Object(M.getUniqueId)(e))&&(this.setTaxonomy(e,this.previousChanges.get(Object(M.getUniqueId)(e))),this.previousChanges.delete(Object(M.getUniqueId)(e)))},r.undoQSChange=function(e){var t=this;Object(D.s)(e).filter(function(e){return Object(T.isMoserObjectTypeOf)(e,C.a.MoserObjectTypes.QUERY_ITEM)||Object(T.isMoserObjectTypeOf)(e,C.a.MoserObjectTypes.CALCULATION)}).forEach(function(e){t.undoChange(e)})},r.undoMoserPackage=function(e){this.undoQSChange(e)},r.fetchPackageInfo=function(){var e=this;return Object(N.a)(this.context,{moduleId:this.storeId}).then(function(t){return e.action(function(){e.packageInfo=t;var r=ee(t);if(r)return e.taskId=r.taskID,e._handleSmartsReponse(r);e.previousEnrichmentResults=function(e){return e.statusInfo&&e.statusInfo.taskStatus}(t)})},function(t){return e.action(function(){e.enrichError=Object(L.a)(t)})})},r.fetchPackage=function(){var e=this;return Object(Q.a)(this.context,{type:C.a.UseSpecType.PACKAGE,moduleId:this.storeId}).then(function(t){return e.action(function(){e.moserPackage=Object(T.observeModule)(e.provider.getJSONObjectFactory().createModule(t))})},function(t){return e.action(function(){e.enrichError=Object(L.a)(t)})})},r.fetchTaxonomyOptions=function(){var e=this;return Object(B.a)(this.context).then(function(t){return e.action(function(){e.taxonomyOptions=Object(U.f)(t)})},function(t){return e.action(function(){e.enrichError=t.message})})},r.runSmarts=function(){var e=this;return this.setSmartsStatus(J.h.RUNNING),this.setLastFinishedResponse(null),Object(N.a)(this.context,{moduleId:this.storeId}).then(function(t){return e.action(function(){var r=ee(t);if(r)return e.setSmartsStatus(J.h.IDLE),e.taskId=r.taskID,e._handleSmartsReponse(r);var a={version:"1.0",dataSamplingSize:e.isRetrieveSampleDataChecked?e.maxSampleRows:-1,importPrimaryForeignKeys:!0},n=e.moserPackage.getQuerySubject();return a.excludedTables=n.filter(function(t){return e.isQuerySubjectExcluded(t)}).map(function(e){return e.getIdentifier()}),Object(H.a)(e.context,{moduleId:e.storeId,loadOptions:a}).then(function(t){return e.action(function(){return e.affinity=t.affinity,e.taskId=t.data.taskID})}).catch(function(t){return e.provider.showToast(Object(R.getString)("packageEnrichErrorMsg",{message:Object(L.a)(t.data)})),e.action(function(){e.setSmartsStatus(J.h.ERRORED),e.setPercentComplete(0)})})})},function(t){return e.action(function(){e.enrichError=Object(L.a)(t)})})},r.fetchSmartsTask=function(){var e=this;if(this.taskId)return Object(W.a)(this.context,{taskId:this.taskId,affinity:this.affinity,resourceId:this.storeId}).then(function(t){return e.action(function(){e._handleSmartsReponse(t)})},function(t){return e.action(function(){e.enrichError=Object(L.a)(t)})})},r.cancelSmarts=function(){var e=this;return Object(G.a)(this.context,{taskId:this.taskId,affinity:this.affinity}).then(function(){return e.action(function(){return e.setSmartsStatus(J.h.CANCELLED),e.fetchPackageInfo()})},function(t){return e.action(function(){e.enrichError=Object(L.a)(t)})})},r.setAutoRefresh=function(e){this.autoRefresh=e},r.setPercentComplete=function(e){this.percentComplete=e},r.setSmartsStatus=function(e){this.smartsStatus=e},r.setLastFinishedResponse=function(e){this.lastFinishedResponse=e},r.excludeQuerySubject=function(e,t){var r;this.excludedQuerySubjects=Y({},this.excludedQuerySubjects,((r={})[Object(M.getUniqueId)(e)]=t,r))},r.excludeAllQuerySubjects=function(){this.excludedQuerySubjects=this.moserPackage.getQuerySubject().reduce(function(e,t){return e[Object(M.getUniqueId)(t)]=!0,e},{})},r.includeAllQuerySubjects=function(){this.excludedQuerySubjects=this.moserPackage.getQuerySubject().reduce(function(e,t){return e[Object(M.getUniqueId)(t)]=!1,e},{})},r.invertExcludedQuerySubjects=function(){var e=this.excludedQuerySubjects;this.excludedQuerySubjects=this.moserPackage.getQuerySubject().reduce(function(t,r){var a=Object(M.getUniqueId)(r);return t[a]=!e[a],t},{})},r.hasWarning=function(e){return!!Object(T.isMoserObjectTypeOf)(e,C.a.MoserObjectTypes.FOLDER_TYPE)&&this.previousEnrichmentErrors.some(function(t){return t.message===e.getIdForExpression()})},r.isEnrichedQI=function(e){var t=this,r=e.getObjectType(),a=C.a.MoserObjectTypes,n=a.QUERY_ITEM,i=a.CALCULATION,c=a.QUERY_SUBJECT,o=a.MODULE;return r===n||r===i?this.previousChanges.has(Object(M.getUniqueId)(e)):(r===c||r===o)&&Object(D.s)(e).filter(function(e){return Object(T.isMoserObjectTypeOf)(e,n)||Object(T.isMoserObjectTypeOf)(e,i)}).some(function(e){return t.previousChanges.has(Object(M.getUniqueId)(e))})},r.setMaxSampleRows=function(e){this.maxSampleRows=e},r.setRetrieveSampleData=function(e){this.isRetrieveSampleDataChecked=e},r.setSelectedTreeItems=function(e){void 0===e&&(e=[]),this.selected=e},r.showNextView=function(){this.isManualSelectionActive?this.activeViewId=J.b:this.isSmartsSelectionActive&&(this.activeViewId=J.i)},r.showPreviousView=function(){this.activeViewId=J.a},r.setManualSelectionActive=function(){this.isManualSelectionActive=!0,this.isSmartsSelectionActive=!1},r.setSmartsSelectionActive=function(){this.isManualSelectionActive=!1,this.isSmartsSelectionActive=!0},r.setTaxonomy=function(e,t){this.action(Object(A.v)(e,t,t[0]===z.a?z.a:this.taxonomyOptions.find(function(e){return e.value===t[0]}).children.items[0].value))},r.applyOverrides=function(){var e=this.moserPackage,t=this.storeId;return Object(V.a)(this.context,{moduleId:t,module:e,type:C.a.UseSpecType.PACKAGE})},r.openConfirmDialog=function(e,t){return this.provider.openDialog(q.d,{title:e,body:t})},r.openPackageEnrich=function(e,t){return this.provider.openDialog(q.r,{storeId:e,packageName:t})},r.openDataErrorDialog=function(e){return this.provider.openDialog(q.f,{data:e})},function(e,t,r){t&&K(e.prototype,t),r&&K(e,r)}(t,[{key:"gridStore",get:function(){var e=this.gridQuerySubject;return e?new F.default({},this.storeId,e,void 0,C.a.UseSpecType.PACKAGE):null}},{key:"isLoading",get:function(){return!(this.enrichError||this.moserPackage&&this.taxonomyOptions&&this.packageInfo)}},{key:"isOLAPPackage",get:function(){return!(!this.moserPackage||!this.moserPackage.getQuerySubject().some(function(e){return Object(T.isOLAPItem)(e)}))}},{key:"gridQuerySubject",get:function(){var e=this.selected.length&&this.selected[0]&&Object(T.getAncestorOrSelf)(this.selected[0],C.a.MoserObjectTypes.QUERY_SUBJECT);return this.selected.map(function(e){return Object(T.getAncestorOrSelf)(e,C.a.MoserObjectTypes.QUERY_SUBJECT)}).every(function(t){return t&&t===e})?e:null}},{key:"isSmartsRunning",get:function(){return this.smartsStatus===J.h.RUNNING}},{key:"isCancellable",get:function(){return!(this.smartsStatus===J.h.NOT_CANCELLABLE)}},{key:"isSmartsCancelled",get:function(){return this.smartsStatus===J.h.CANCELLED}},{key:"isSmartsErrored",get:function(){return this.smartsStatus===J.h.ERRORED}},{key:"isSmartsCompleted",get:function(){return this.smartsStatus===J.h.COMPLETED}},{key:"totalNumTables",get:function(){return this.moserPackage.getQuerySubject().length}},{key:"numTablesSelected",get:function(){var e=this;return Object.keys(this.excludedQuerySubjects).reduce(function(t,r){return e.excludedQuerySubjects[r]?t-1:t},this.totalNumTables)}},{key:"enrichmentErrors",get:function(){return te(this.lastFinishedResponse)}},{key:"previousEnrichmentErrors",get:function(){return te(this.previousEnrichmentResults)}}]),t}(P.a),u=Z(l.prototype,"packageInfo",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=Z(l.prototype,"lastFinishedResponse",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),h=Z(l.prototype,"previousEnrichmentResults",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g=Z(l.prototype,"moserPackage",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=Z(l.prototype,"selected",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),m=Z(l.prototype,"taxonomyOptions",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),f=Z(l.prototype,"activeViewId",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return J.a}}),b=Z(l.prototype,"isManualSelectionActive",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=Z(l.prototype,"isSmartsSelectionActive",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=Z(l.prototype,"smartsStatus",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return J.h.IDLE}}),E=Z(l.prototype,"excludedQuerySubjects",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),v=Z(l.prototype,"isRetrieveSampleDataChecked",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),O=Z(l.prototype,"autoRefresh",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),j=Z(l.prototype,"maxSampleRows",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1e3}}),x=Z(l.prototype,"percentComplete",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),w=Z(l.prototype,"enrichError",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=Z(l.prototype,"previousChanges",[I.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Z(l.prototype,"gridStore",[P.d],Object.getOwnPropertyDescriptor(l.prototype,"gridStore"),l.prototype),Z(l.prototype,"isLoading",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isLoading"),l.prototype),Z(l.prototype,"isOLAPPackage",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isOLAPPackage"),l.prototype),Z(l.prototype,"gridQuerySubject",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"gridQuerySubject"),l.prototype),Z(l.prototype,"isSmartsRunning",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isSmartsRunning"),l.prototype),Z(l.prototype,"isCancellable",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isCancellable"),l.prototype),Z(l.prototype,"isSmartsCancelled",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isSmartsCancelled"),l.prototype),Z(l.prototype,"isSmartsErrored",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isSmartsErrored"),l.prototype),Z(l.prototype,"isSmartsCompleted",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"isSmartsCompleted"),l.prototype),Z(l.prototype,"totalNumTables",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"totalNumTables"),l.prototype),Z(l.prototype,"numTablesSelected",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"numTablesSelected"),l.prototype),Z(l.prototype,"enrichmentErrors",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"enrichmentErrors"),l.prototype),Z(l.prototype,"previousEnrichmentErrors",[I.computed],Object.getOwnPropertyDescriptor(l.prototype,"previousEnrichmentErrors"),l.prototype),Z(l.prototype,"qeueChange",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"qeueChange"),l.prototype),Z(l.prototype,"undoChange",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"undoChange"),l.prototype),Z(l.prototype,"undoQSChange",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"undoQSChange"),l.prototype),Z(l.prototype,"undoMoserPackage",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"undoMoserPackage"),l.prototype),Z(l.prototype,"fetchPackageInfo",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"fetchPackageInfo"),l.prototype),Z(l.prototype,"fetchPackage",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"fetchPackage"),l.prototype),Z(l.prototype,"fetchTaxonomyOptions",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"fetchTaxonomyOptions"),l.prototype),Z(l.prototype,"runSmarts",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"runSmarts"),l.prototype),Z(l.prototype,"fetchSmartsTask",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"fetchSmartsTask"),l.prototype),Z(l.prototype,"cancelSmarts",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"cancelSmarts"),l.prototype),Z(l.prototype,"setAutoRefresh",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setAutoRefresh"),l.prototype),Z(l.prototype,"setPercentComplete",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setPercentComplete"),l.prototype),Z(l.prototype,"setSmartsStatus",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setSmartsStatus"),l.prototype),Z(l.prototype,"setLastFinishedResponse",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setLastFinishedResponse"),l.prototype),Z(l.prototype,"excludeQuerySubject",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"excludeQuerySubject"),l.prototype),Z(l.prototype,"excludeAllQuerySubjects",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"excludeAllQuerySubjects"),l.prototype),Z(l.prototype,"includeAllQuerySubjects",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"includeAllQuerySubjects"),l.prototype),Z(l.prototype,"invertExcludedQuerySubjects",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"invertExcludedQuerySubjects"),l.prototype),Z(l.prototype,"hasWarning",[P.j],Object.getOwnPropertyDescriptor(l.prototype,"hasWarning"),l.prototype),Z(l.prototype,"isEnrichedQI",[P.j],Object.getOwnPropertyDescriptor(l.prototype,"isEnrichedQI"),l.prototype),Z(l.prototype,"setMaxSampleRows",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setMaxSampleRows"),l.prototype),Z(l.prototype,"setRetrieveSampleData",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setRetrieveSampleData"),l.prototype),Z(l.prototype,"setSelectedTreeItems",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setSelectedTreeItems"),l.prototype),Z(l.prototype,"showNextView",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"showNextView"),l.prototype),Z(l.prototype,"showPreviousView",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"showPreviousView"),l.prototype),Z(l.prototype,"setManualSelectionActive",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setManualSelectionActive"),l.prototype),Z(l.prototype,"setSmartsSelectionActive",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setSmartsSelectionActive"),l.prototype),Z(l.prototype,"setTaxonomy",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"setTaxonomy"),l.prototype),Z(l.prototype,"applyOverrides",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"applyOverrides"),l.prototype),Z(l.prototype,"openConfirmDialog",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"openConfirmDialog"),l.prototype),Z(l.prototype,"openPackageEnrich",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"openPackageEnrich"),l.prototype),Z(l.prototype,"openDataErrorDialog",[P.c],Object.getOwnPropertyDescriptor(l.prototype,"openDataErrorDialog"),l.prototype),l)},1428:function(e,t,r){"use strict";var a=r(18);t.a=function(e,t){var r=t.moduleId;return e.ajaxService({url:a.i+"/modules/"+r+"/info",data:{attributes:"status"}})}},1429:function(e,t,r){"use strict";var a=r(18);t.a=function(e,t){var r=t.moduleId,n=t.loadOptions;return e.resolveConnection(function(t){var i=a.i+"/modules/"+r+"/smarts";return(n||t)&&(i=encodeURI(i),t&&(i=i+"?connectionSpec="+encodeURIComponent(JSON.stringify({connections:t})))),e.ajaxService({url:i,method:"POST",rawResponse:!0,data:n?JSON.stringify({loadOptions:n}):null}).then(function(e){return{data:e.data,affinity:e.getResponseHeader(a.a)}})})}},1430:function(e,t,r){"use strict";r.d(t,"a",function(){return P});var a,n,i,c=r(1),o=r.n(c),s=r(16),l=r(0),u=r.n(l),p=r(20),h=r(3),g=r(269),d=r.n(g),m=r(106),f=r.n(m),b=r(757),y=r.n(b),S=r(2),E=r(57),v=r(5),O=r(8),j=r(821),x=r(1544),w=r.n(x),_=r(14);r(1545);function I(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var k=Object(v.e)(function(e){return{taxonomyProperties:e.taxonomyOptions.slice(),setTaxonomy:e.setTaxonomy,qeueChange:e.qeueChange,undoChange:e.undoChange,isEnrichedQI:e.isEnrichedQI}})(a=Object(s.observer)(a=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this)._onChange=function(e){var r=t.props,a=r.setTaxonomy,n=r.qeueChange,i=r.moserObjects,c=t._getSelected();a(i,e),n(i[0],c)},t._resetQISelection=function(){t.props.undoChange(t.props.moserObjects[0])},t}I(t,e);var r=t.prototype;return r._getSelected=function(e){void 0===e&&(e=this.props);var t=e.moserObjects,r=Object(O.getTaxonomy)(t[0]),a=t.every(function(e){return Object(O.getTaxonomy)(e)[0]===r[0]}),n=t.every(function(e){return Object(O.getTaxonomy)(e)[1]===r[1]});return a&&n?r:a?[r[0],null]:[]},r.render=function(){var e=this.props,t=e.taxonomyProperties,r=e.isEnrichedQI,a=e.moserObjects;return o.a.createElement(h.FlexLayout,{height:"60px"},o.a.createElement(h.FlexItem,null,o.a.createElement(h.SelectGroup,{selected:this._getSelected(),options:{items:(t||[]).slice()},onChange:this._onChange,customWidth:300})),o.a.createElement(h.FlexItem,{gutter:[1,0,0,0]},o.a.createElement(h.Tooltip,{title:Object(S.getString)("packageUndoEnrichment"),"aria-label":Object(S.getString)("packageUndoEnrichment"),orient:"bottom"},o.a.createElement(h.Button,{disabled:!r(a[0]),variant:"inline",icon:o.a.createElement(h.SVGIcon,{iconId:y.a.id}),onClick:this._resetQISelection}))))},t}(c.Component))||a)||a,C=Object(v.e)(function(e){return{hasWarning:e.hasWarning,isEnrichedQI:e.isEnrichedQI}})(n=Object(s.observer)(n=function(e){function t(){return e.apply(this,arguments)||this}return I(t,e),t.prototype.render=function(){var e=this.props,t=e.ObjectItem,r=e.treeProps,a=e.objectProps,n=e.hasWarning,i=e.isEnrichedQI,c=e.ObjectTreeItem,s=e.node,l=function(e,t){if(null==e)return{};var r,a,n={},i=Object.keys(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,["ObjectItem","treeProps","objectProps","hasWarning","isEnrichedQI","ObjectTreeItem","node"]);return o.a.createElement(h.FlexLayout,l,o.a.createElement(h.FlexItem,{gutter:[0,0,0,4],className:"bi-mui-packageEnrichView__warning-icon"},n(s)&&o.a.createElement(h.FlexItem,null,o.a.createElement(h.SVGIcon,{iconId:f.a.id,style:{fill:"orange"}}))),i(s)&&o.a.createElement(h.FlexItem,null,o.a.createElement("span",{className:"bi-mui-packageEnrichView__dot"})),o.a.createElement(h.FlexItem,{width:"100%"},o.a.createElement(c,r,o.a.createElement(t,a))))},t}(c.Component))||n)||n,P=Object(v.e)(function(e){return{selectedTreeItems:e.selected.slice(),gridStore:e.gridStore,autoRefresh:e.autoRefresh,moserPackage:e.moserPackage,setSelectedTreeItems:e.setSelectedTreeItems,setAutoRefresh:e.setAutoRefresh,hasWarning:e.hasWarning,isEnrichedQI:e.isEnrichedQI,undoQSChange:e.undoQSChange}})(i=Object(s.observer)(i=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this).state={filter:"",open:!1,warningFilterSelected:!1,unEnrichedItemsSelected:!1,enrichedItemsSelected:!1},t._filteButtonRef=void 0,t._onSelectionChange=function(e,r){t.props.setSelectedTreeItems(r)},t._filter=function(e){var r=t.props,a=r.hasWarning,n=r.isEnrichedQI,i=t.state,c=i.warningFilterSelected,o=i.enrichedItemsSelected,s=i.unEnrichedItemsSelected,l=e.getObjectType(),p=!0;return c&&o&&s?p=a(e)||n(e)||!n(e):c&&o?p=a(e)&&n(e):c&&s?p=a(e)||!n(e):o&&s?p=!n(e)||n(e):c?p=a(e):o?p=n(e):s&&(p=!n(e)),l===u.a.MoserObjectTypes.QUERY_ITEM||p&&(!e.isHidden||!e.isHidden())||l===u.a.MoserObjectTypes.FOLDER_TYPE&&t._hasQS(e)},t._hasQS=function(e){return Object(_.r)(e).some(t._filter)},t._onFilterWarningChange=function(e){t.setState({warningFilterSelected:e})},t._onFilterUnEnrichedChange=function(e){t.setState({unEnrichedItemsSelected:e})},t._onFilterEnrichedChange=function(e){t.setState({enrichedItemsSelected:e})},t._renderFilterControls=function(){var e=t.props.disabled;return o.a.createElement(h.FlexLayout,{width:"100%",justifyContent:"space-between"},o.a.createElement(h.FlexItem,{alignSelf:"center",gutter:[1]},Object(S.getString)("dataTree")),o.a.createElement(h.FlexItem,{alignSelf:"center",gutter:[1,3,1,0]},o.a.createElement(h.Tooltip,{title:Object(S.getString)("filterBy"),"aria-label":Object(S.getString)("filterBy"),orient:"bottom"},o.a.createElement(h.Button,{disabled:e,variant:"inline",ref:function(e){return t._filteButtonRef=e},onClick:function(){return t._openFlyout(!t.state.open)},icon:w.a.id})),t.state.open&&o.a.createElement(h.Flyout,{onClose:function(){t._openFlyout(!1),t._filteButtonRef.focus()},triggerNode:Object(p.findDOMNode)(t._filteButtonRef),domNodeToAttachTo:document.body},t._getFlyoutContent())))},t._openFlyout=function(e){t.setState({open:e})},t._moserObjectRenderer=function(e,t,r,a,n){return o.a.createElement(C,{key:t.key,node:e,treeProps:t,objectProps:r,ObjectTreeItem:a,ObjectItem:n})},t._resetQSSelection=function(e){(0,t.props.undoQSChange)(e)},t}I(t,e);var r=t.prototype;return r._getFlyoutContent=function(){return o.a.createElement(h.FlexLayout,{direction:"column",width:"100%",justifyContent:"space-around"},o.a.createElement(h.FlexItem,{gutter:[1,1]},o.a.createElement(h.Checkbox,{label:Object(S.getString)("packageEnrichUnEnrichedItems"),"aria-label":Object(S.getString)("packageEnrichUnEnrichedItems"),onChange:this._onFilterUnEnrichedChange,checked:this.state.unEnrichedItemsSelected})),o.a.createElement(h.FlexItem,{gutter:[1,1]},o.a.createElement(h.Checkbox,{label:Object(S.getString)("packageEnrichEnrichedItems"),"aria-label":Object(S.getString)("packageEnrichEnrichedItems"),onChange:this._onFilterEnrichedChange,checked:this.state.enrichedItemsSelected})),o.a.createElement(h.FlexItem,{gutter:[1,1]},o.a.createElement(h.Checkbox,{label:Object(S.getString)("itemsWithIssues"),"aria-label":Object(S.getString)("itemsWithIssues"),onChange:this._onFilterWarningChange,checked:this.state.warningFilterSelected})))},r.render=function(){var e=this,t=this.props,r=t.moserPackage,a=t.selectedTreeItems,n=t.gridStore,i=t.autoRefresh,c=t.setAutoRefresh,s=t.isEnrichedQI,l=a.filter(function(e){return e.getObjectType()===u.a.MoserObjectTypes.CALCULATION}),p=a.filter(function(e){return e.getObjectType()===u.a.MoserObjectTypes.MODULE}),g=a.filter(function(e){return e.getObjectType()===u.a.MoserObjectTypes.QUERY_SUBJECT}),m=a.filter(function(e){return e.getObjectType()===u.a.MoserObjectTypes.QUERY_ITEM}),f=l.length>0,b=p.length>0,x=g.length>0,w=m.length>0,_=o.a.createElement(h.FlexItem,{className:"bi-mui-packageEnrichView__taxonomySection",gutter:1},o.a.createElement(h.Container,{gutter:[0,0,1,0]},o.a.createElement("span",{className:"bi-mui-packageEnrichView__representsLabel"},Object(S.getString)("packageEnrichRepresentation")),w&&o.a.createElement(o.a.Fragment,null,"-",o.a.createElement(h.FlexLayout,{inline:!0},o.a.createElement(h.TruncatedText,{value:m.map(function(e){return e.getLabel()}).join(", ")}))),x&&o.a.createElement(o.a.Fragment,null,"-",o.a.createElement(h.FlexLayout,{inline:!0},o.a.createElement(h.TruncatedText,{value:g.map(function(e){return e.getLabel()}).join(", ")}))),b&&o.a.createElement(o.a.Fragment,null,"-",o.a.createElement(h.FlexLayout,{inline:!0},o.a.createElement(h.TruncatedText,{value:p.map(function(e){return e.getLabel()}).join(", ")})))),o.a.createElement(h.Container,{gutter:[0,0,2,0]},Object(S.getString)(w||x||b?"packageEnrichRepresentationHint":"packageEnrichRepresentationHintStart")),w&&o.a.createElement(k,{moserObjects:m}),f&&o.a.createElement(k,{moserObjects:l}),x&&o.a.createElement(h.FlexLayout,{height:"60px"},o.a.createElement(h.FlexItem,{gutter:[1,1,0,0]},Object(S.getString)("packageEnrichTableModificationReset")),o.a.createElement(h.FlexItem,{gutter:[1,0,0,0]},o.a.createElement(h.Tooltip,{title:Object(S.getString)("packageUndoEnrichment"),"aria-label":Object(S.getString)("packageUndoEnrichment"),orient:"bottom"},o.a.createElement(h.Button,{disabled:!s(g[0]),variant:"inline",icon:o.a.createElement(h.SVGIcon,{iconId:y.a.id}),onClick:function(){return e._resetQSSelection(g[0])}})))),b&&o.a.createElement(h.FlexLayout,{height:"60px"},o.a.createElement(h.FlexItem,{gutter:[1,1,0,0]},Object(S.getString)("packageEnrichModuleModificationReset")),o.a.createElement(h.FlexItem,{gutter:[1,0,0,0]},o.a.createElement(h.Tooltip,{title:Object(S.getString)("packageUndoEnrichment"),"aria-label":Object(S.getString)("packageUndoEnrichment"),orient:"bottom"},o.a.createElement(h.Button,{disabled:!s(p[0]),variant:"inline",icon:o.a.createElement(h.SVGIcon,{iconId:y.a.id}),onClick:function(){return e._resetQSSelection(p[0])}})))),(!w||!x||b)&&o.a.createElement(h.VSpacer,{size:"7"})),I=o.a.createElement(h.FlexItem,{height:"100%",relative:!0,grow:!0},n?o.a.createElement(v.b,{store:n},o.a.createElement(j.default,{enableSort:!1,useRowOptionsColumn:!1,selection:a,manualRefresh:!i})):o.a.createElement(h.FlexLayout,{alignItems:"center",justifyContent:"center",height:"100%",direction:"column"},f?o.a.createElement(h.Container,{maxWidth:300,className:"bi-mui-packageEnrichView__emptyMsg"},Object(S.getString)("packageEnrichSelectedStandAlone"),o.a.createElement(h.VSpacer,{size:1})):o.a.createElement(h.Container,{maxWidth:300,className:"bi-mui-packageEnrichView__emptyMsg"},o.a.createElement(h.SVGIcon,{themable:!0,intent:"primary",iconId:d.a.id,height:128,width:128}),o.a.createElement(h.VSpacer,{size:2}),o.a.createElement("strong",null,Object(S.getString)("packageEnrichSelectTables")),o.a.createElement(h.VSpacer,{size:1})))),C=o.a.createElement(h.FlexLayout,{direction:"column",width:"100%"},I,_);return o.a.createElement(h.FlexLayout,{direction:"column"},o.a.createElement(h.FlexLayout,{justifyContent:"space-between",style:{paddingBottom:"24px"}},o.a.createElement(h.FlexLayout,{direction:"column"},o.a.createElement(h.FlexItem,null,o.a.createElement(h.TruncatedText,{value:Object(S.getString)("packageEnrichManualSubHeader")}))),o.a.createElement(h.FlexItem,{gutter:[2,0,0,0]},o.a.createElement(h.ToggleSwitch,{label:Object(S.getString)("autoRefresh"),checked:i,onChange:c,small:!0}))),o.a.createElement(h.FlexLayout,{direction:"row",height:"600px",className:"bi-mui-packageEnrichView"},o.a.createElement(h.FlexItem,{minWidth:300},o.a.createElement(h.Container,{resizeMinConstraintsX:300,resizeMaxConstraintsX:800,height:"100%",width:"100%",resizable:!0},o.a.createElement(h.FlexLayout,{height:"100%",direction:"column"},this._renderFilterControls(),o.a.createElement(h.FlexItem,null,o.a.createElement(h.SearchInput,{fullWidth:!0,placeholder:Object(S.getString)("find"),onChange:function(t){return e.setState({filter:t})}})),o.a.createElement(h.FlexItem,{height:"100%",shrink:!0},o.a.createElement(E.a,{fullHeight:!0,filter:this.state.filter,rootObject:r,selectionMode:"multi",onSelectionChange:this._onSelectionChange,showFullPackage:!0,selectedNodes:a.reduce(function(e,t){return e[Object(O.getUniqueId)(t)]=t,e},{}),enableDnD:!1,moserObjectFilter:this._filter,moserObjectRenderer:this._moserObjectRenderer}))))),C))},t}(c.Component))||i)||i},1544:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([1228],{"01581141de67d789d6a6":function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"filter_24_v7",use:"filter_24_v7-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="filter_24_v7"><path d="M13.5 21h-3c-.8 0-1.5-.7-1.5-1.5v-5.7L3.4 8.2c-.2-.2-.4-.6-.4-1V4.5C3 3.7 3.7 3 4.5 3h15c.8 0 1.5.7 1.5 1.5v2.7c0 .4-.2.8-.4 1.1L15 13.8v5.7c0 .8-.7 1.5-1.5 1.5zm-9-16.5v2.7l6 6v6.3h3v-6.3l6-6V4.5h-15z" /></symbol>'});c.a.add(o),t.a=o},"3865314c5959606874d4":function(t,r){t.exports=e},c2f3d334d82fce6a97e2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("01581141de67d789d6a6"));t.default=n.a}},["c2f3d334d82fce6a97e2"])}(r(15))},1545:function(e,t,r){var a=r(1546);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(36)(a,n);a.locals&&(e.exports=a.locals)},1546:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,".bi-mui-packageEnrichView{border:1px solid}.bi-mui-packageEnrichView__representsLabel{font-weight:bolder;font-size:14px}.bi-mui-packageEnrichView__emptyMsg{text-align:center}.bi-mui-packageEnrichView__taxonomySection .ba-common-selectGroup__item{display:inline-block;margin-bottom:16px;margin-right:16px}.bi-mui-packageEnrichView__warning-icon{position:absolute}.bi-mui-packageEnrichView__dot{height:8px;width:8px;background-color:#00aa5e;border-radius:50%;display:inline-block;position:absolute;right:10px;margin-top:13px}.bi-mui-packageEnrichView{border-color:#eaeaea}",""])},1547:function(e,t,r){"use strict";r.d(t,"a",function(){return E});var a,n=r(1),i=r.n(n),c=r(16),o=r(17),s=r(19),l=r(20),u=r(3),p=r(152),h=r.n(p),g=r(1548),d=r.n(g),m=r(1549),f=r.n(m),b=r(2),y=r(5);var S="https://www.ibm.com/support/knowledgecenter/"+(0,o.getProductLocale)()+"/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.ca_mdlg.doc/t_enrich_source.html",E=Object(y.e)(function(e){return{isManualSelectionActive:e.isManualSelectionActive,isSmartsSelectionActive:e.isSmartsSelectionActive,setManualSelectionActive:e.setManualSelectionActive,setSmartsSelectionActive:e.setSmartsSelectionActive,showNextView:e.showNextView}})(a=Object(c.observer)(a=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this).state={open:!1},t._openFlyout=function(e){t.setState({open:e})},t._openMoreInroFlyOut=function(){return i.a.createElement(u.Flyout,{showX:!0,placement:"bottomCentred",onClose:function(){t._openFlyout(!1),t._moreInfoButton.focus()},title:Object(b.getString)("packageEnrichFlyoutTitle"),linkName:Object(b.getString)("learnMore"),href:S,textContent:Object(b.getString)("packageEnrichFlyoutContent"),padding:"default",triggerNode:Object(l.findDOMNode)(t._moreInfoButton),domNodeToAttachTo:document.body,style:{width:"450px"}})},t._moreInfoButton=void 0,t}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.isManualSelectionActive,a=t.isSmartsSelectionActive,n=t.setSmartsSelectionActive,c=t.setManualSelectionActive,o=t.showNextView,l=i.a.createElement(s.TextIcon,{className:"ba-mui-package-edit-choice-view__table-selection",onSelect:c,isSelected:r,onConfirm:o},i.a.createElement(s.TextIcon.Icon,{icon:f.a,height:128,width:128}),i.a.createElement(s.TextIcon.Header,{gutter:[3,0,1,0]},Object(b.getString)("packageEnrichManualOverrideHeader")),i.a.createElement(s.TextIcon.SubHeader,{maxWidth:"350px"},Object(b.getString)("packageEnrichManualOverrideSubHeader"))),p=i.a.createElement(s.TextIcon,{className:"ba-mui-package-edit-choice-view__smart-table-selection",onSelect:n,isSelected:a,onConfirm:function(){o()}},i.a.createElement(s.TextIcon.Icon,{icon:d.a,height:128,width:128}),i.a.createElement(s.TextIcon.Header,{gutter:[3,0,1,0]},Object(b.getString)("packageEnrichRunHeader")),i.a.createElement(s.TextIcon.SubHeader,{maxWidth:"350px"},Object(b.getString)("packageEnrichRunSubHeader")));return i.a.createElement(u.Container,{height:"600px"},i.a.createElement(u.FlexLayout,null,i.a.createElement(u.FlexItem,{gutter:[1,0,0,0]},i.a.createElement(u.Label,{label:Object(b.getString)("packageEnrichMethod"),style:{"padding-top":"2px"}})),i.a.createElement(u.FlexItem,{gutter:[1,0,0,0]},i.a.createElement(u.Button,{variant:"inline",ref:function(t){return e._moreInfoButton=t},icon:i.a.createElement(u.SVGIcon,{iconId:h.a.id,style:{"padding-left":"5px",curson:"pointer"}}),onClick:function(){return e._openFlyout(!e.state.open)}}),i.a.createElement(u.FlexLayout,null,i.a.createElement(u.FlexItem,null,this.state.open&&this._openMoreInroFlyOut())))),i.a.createElement(u.FlexLayout,{direction:"column",height:"100%",justifyContent:"center"},i.a.createElement(u.FlexItem,null,i.a.createElement(u.FlexLayout,{className:"ba-mui-package-edit-choice-view",justifyContent:"space-around"},i.a.createElement(u.FlexItem,{width:"50%"},p),i.a.createElement(u.FlexItem,{width:"50%"},l)))))},t}(n.Component))||a)||a},1548:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([103],{"3865314c5959606874d4":function(t,r){t.exports=e},"69cbce86306f5a17fdd9":function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"enrich-automatic_128_v7",use:"enrich-automatic_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="enrich-automatic_128_v7"><defs><linearGradient id="enrich-automatic_128_v7_a" x1="101.42" y1="160.72" x2="101.42" y2=".59" gradientTransform="rotate(.14 1575.093 -443.92)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" /><stop offset=".01" stop-color="#fff" stop-opacity=".99" /><stop offset=".23" stop-color="#fff" stop-opacity=".7" /><stop offset=".43" stop-color="#fff" stop-opacity=".45" /><stop offset=".62" stop-color="#fff" stop-opacity=".25" /><stop offset=".78" stop-color="#fff" stop-opacity=".12" /><stop offset=".91" stop-color="#fff" stop-opacity=".03" /><stop offset="1" stop-color="#fff" stop-opacity="0" /></linearGradient></defs><circle class="ba-graphics-gray40" cx="100.1" cy="100" r="100" /><path class="ba-graphics-gray80" d="M6.76 171.84H2a2 2 0 110-4h4.76a2 2 0 110 4z" /><path style="opacity:.75;fill:url(#enrich-automatic_128_v7_a)" d="M171.22 170.28a100 100 0 10-142.58-.34z" /><path class="ba-graphics-gray80" d="M100.09 4h.23a96 96 0 0167.57 164 95.4 95.4 0 01-67.79 28h-.23A96 96 0 0132.3 32a95.37 95.37 0 0167.79-28m0-4a100 100 0 00-.23 200h.24a100 100 0 00.23-200z" /><path class="ba-graphics-gray80" d="M197.91 172.3l-183.06-.44a2 2 0 110-4l183.06.44a2 2 0 010 4z" /><circle class="ba-graphics-white" cx="103.27" cy="17.26" r="2" /><circle class="ba-graphics-white" cx="132.41" cy="31.97" r="2" /><path class="ba-graphics-white" d="M61.94 30.81a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 01-1 1 1 1 0 01-1-1 4 4 0 00-4-4 1 1 0 01-1-1 1 1 0 011-1z" /><rect class="ba-graphics-white" x="24.05" y="46.52" width="152" height="107" rx="6.21" transform="rotate(.14 98.341 98.101)" /><path class="ba-graphics-gray80" d="M30.38 46.35v4l139.62.33a2.23 2.23 0 012.21 2.22l-.22 94.58a2.22 2.22 0 01-2.22 2.2l-139.58-.33a2.2 2.2 0 01-2.2-2.22l.22-94.57a2.22 2.22 0 012.22-2.21v-4m0 0a6.22 6.22 0 00-6.22 6.2l-.22 94.57a6.21 6.21 0 006.2 6.23l139.57.33a6.22 6.22 0 006.22-6.2l.22-94.57a6.22 6.22 0 00-6.2-6.23l-139.61-.33z" /><path class="ba-graphics-gray1" d="M176.14 63.59v-10.7a6.26 6.26 0 00-6.2-6.31l-139.55-.33a6.25 6.25 0 00-6.23 6.27v10.71z" /><circle class="ba-graphics-gray80" cx="34.27" cy="56.67" r="2" /><circle class="ba-graphics-gray80" cx="41.4" cy="56.69" r="2" /><circle class="ba-graphics-gray80" cx="48.54" cy="56.7" r="2" /><path class="ba-graphics-gray80" d="M30.38 46.32v4l139.62.33a2.21 2.21 0 011.57.65 2.24 2.24 0 01.64 1.57v10.58l-144-.34V52.52a2.22 2.22 0 012.22-2.2v-4m0 0a6.21 6.21 0 00-6.22 6.19V67.1l152 .36V52.88a6.21 6.21 0 00-6.2-6.23l-139.62-.33z" /><circle class="ba-graphics-gray80" style="opacity:.1" cx="140.19" cy="60.1" r="20" /><circle class="ba-graphics-highlight" cx="140.2" cy="56.1" r="20" /><path class="ba-graphics-white" d="M150.37 55.55a1.51 1.51 0 01-1.46-1.14 8.59 8.59 0 00-8.33-6.53A8.61 8.61 0 00132.7 53a1.5 1.5 0 01-2.7-1.23 11.64 11.64 0 0110.61-6.89 11.61 11.61 0 0111.24 8.81 1.51 1.51 0 01-1.1 1.81 1.49 1.49 0 01-.38.05z" /><path class="ba-graphics-white" d="M150.39 55.57a1.84 1.84 0 01-.33 0l-4.88-1.08a1.5 1.5 0 11.65-2.93l3.76.83 1.7-3.23a1.5 1.5 0 012.66 1.4l-2.23 4.24a1.51 1.51 0 01-1.33.77zm-9.86 12.49a11.59 11.59 0 01-11.24-8.8 1.5 1.5 0 012.91-.73 8.59 8.59 0 008.34 6.53 8.62 8.62 0 007.85-5.06 1.5 1.5 0 112.74 1.22 11.6 11.6 0 01-10.6 6.84z" /><path class="ba-graphics-white" d="M128.46 64.61a1.56 1.56 0 01-.69-.17 1.5 1.5 0 01-.63-2l2.23-4.24a1.5 1.5 0 011.65-.76l4.88 1.07a1.5 1.5 0 11-.64 2.93l-3.77-.83-1.7 3.23a1.5 1.5 0 01-1.33.77z" /><path class="ba-graphics-gray60" d="M140 128.72a16.23 16.23 0 01-16.18-16.26 2 2 0 012-2 2 2 0 012 2A12.23 12.23 0 00140 124.72a2 2 0 110 4z" /><path class="ba-graphics-gray40" d="M155.37 113.41a2 2 0 01-2-2 12.22 12.22 0 00-12.2-12.26 2 2 0 010-4 16.23 16.23 0 0116.19 16.27 2 2 0 01-1.99 1.99z" /><path class="ba-graphics-white" d="M36.1 84.47l5.39 5.35 5.19-5.33" /><path class="ba-graphics-gray80" d="M41.49 91.82a2 2 0 01-1.41-.58l-5.39-5.35a2 2 0 012.81-2.84l4 3.93 3.78-3.88a2 2 0 112.86 2.79l-5.19 5.32a2 2 0 01-1.41.61z" /><path class="ba-graphics-white" d="M60.84 114.46l5.34-5.4-5.32-5.19" /><path class="ba-graphics-gray80" d="M60.84 116.46a2 2 0 01-1.41-.58 2 2 0 010-2.83l3.92-4-3.87-3.79a2 2 0 112.79-2.86l5.32 5.19a2 2 0 01.6 1.42 2 2 0 01-.58 1.42l-5.34 5.4a2 2 0 01-1.43.63z" /><path class="ba-graphics-gray40" d="M163.71 118a2 2 0 00-2.82 0l-3.54 3.54v-10.19a2 2 0 00-2-2 2 2 0 00-2 2v10.19l-3.52-3.54a2 2 0 00-2.84 2.82l6.92 7 .19.16.12.09a1.19 1.19 0 00.22.12l.13.07.27.08h.1a1.87 1.87 0 00.77 0h.06a1.32 1.32 0 00.3-.09l.12-.06a1.67 1.67 0 00.23-.12l.16-.13a1.58 1.58 0 00.15-.12l7-7a2 2 0 00-.02-2.82zM142 105.89h-2.49l-.4 1.75a4.59 4.59 0 00-1.48.87l-1.8-.6-1.26 2.09 1.51 1.33a4.54 4.54 0 00-.07.75 6 6 0 00.06.74l-1.51 1.32 1.28 2.12 1.8-.59a4.61 4.61 0 001.48.88l.4 1.75H142l.4-1.74a4.78 4.78 0 001.48-.87l1.81.59 1.29-2.11-1.51-1.32a4.74 4.74 0 00.06-.75 4.65 4.65 0 00-.06-.75L147 110l-1.28-2.11-1.81.58a4.85 4.85 0 00-1.47-.87zm-1.26 7.9a1.7 1.7 0 110-3.39 1.7 1.7 0 110 3.39z" /><path class="ba-graphics-gray40" d="M144.72 124a13.53 13.53 0 01-4.37.77 12.55 12.55 0 01-12.52-12.58v-9.74l3.51 3.55a2 2 0 102.84-2.82l-6.92-7a1.15 1.15 0 00-.17-.14l-.14-.12-.15-.08a1.86 1.86 0 00-.2-.1h-.14a2 2 0 00-.23-.06h-.92l-.22.06-.17.09a1 1 0 00-.17.1 1.24 1.24 0 00-.18.14l-.14.11-7 7a2 2 0 102.83 2.83l3.54-3.54v10.19a2 2 0 00.06.49 16.53 16.53 0 0016.47 15.65 16.39 16.39 0 005.72-1 2 2 0 10-1.38-3.75zm-9.15-23.88a1.94 1.94 0 00.71-.13 12.67 12.67 0 014.56-.84 2 2 0 100-4 16.72 16.72 0 00-6 1.1 2 2 0 00.71 3.87zm-82.15-8.08v-10h55v10zm20.17 22.164l.025-10 35 .086-.025 10zm-.06 21.974l.024-10 35 .086-.024 10z" /><path class="ba-graphics-white" d="M60.79 136.44l5.34-5.4-5.32-5.19" /><path class="ba-graphics-gray80" d="M60.79 138.44a2 2 0 01-1.41-.58 2 2 0 010-2.83l3.92-4-3.88-3.78a2 2 0 012.8-2.86l5.32 5.19a2 2 0 010 2.84l-5.34 5.39a2 2 0 01-1.41.63z" /></symbol>'});c.a.add(o),t.a=o},"8f0c35a65ce8048023d0":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("69cbce86306f5a17fdd9"));t.default=n.a}},["8f0c35a65ce8048023d0"])}(r(137))},1549:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([76],{"2222c0da4e4dfccb89e7":function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"manual-override_128_v7",use:"manual-override_128_v7-usage",viewBox:"0 0 200 200",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" id="manual-override_128_v7"><defs><linearGradient id="manual-override_128_v7_a" x1="100" y1="157.11" x2="100" y2="-3.02" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" /><stop offset=".01" stop-color="#fff" stop-opacity=".99" /><stop offset=".23" stop-color="#fff" stop-opacity=".7" /><stop offset=".43" stop-color="#fff" stop-opacity=".45" /><stop offset=".62" stop-color="#fff" stop-opacity=".25" /><stop offset=".78" stop-color="#fff" stop-opacity=".12" /><stop offset=".91" stop-color="#fff" stop-opacity=".03" /><stop offset="1" stop-color="#fff" stop-opacity="0" /></linearGradient></defs><circle class="ba-graphics-gray40" cx="100" cy="100" r="100" /><path style="opacity:.75;fill:url(#manual-override_128_v7_a)" d="M171.29 170.11a100 100 0 10-142.58 0z" /><circle class="ba-graphics-white" cx="102.97" cy="17.25" r="2" /><circle class="ba-graphics-white" cx="132.15" cy="31.9" r="2" /><path class="ba-graphics-white" d="M61.68 30.9a4 4 0 004-4 1 1 0 012 0 4 4 0 004 4 1 1 0 010 2 4 4 0 00-4 4 1 1 0 11-2 0 4 4 0 00-4-4 1 1 0 010-2z" /><rect class="ba-graphics-white" x="23.95" y="46.52" width="152" height="107" rx="6.21" /><path class="ba-graphics-gray1" d="M176 63.41V52.7a6.25 6.25 0 00-6.21-6.29H30.17A6.26 6.26 0 0024 52.7v10.71z" /><path class="ba-graphics-white" d="M35.96 84.62l5.41 5.33 5.18-5.33m14.23 29.93l5.33-5.41-5.33-5.17m0 32.56l5.33-5.41-5.33-5.18" /><path class="ba-graphics-gray80" d="M6.83 168.06H2.07a2 2 0 100 4h4.76a2 2 0 100-4zm191.17 0h-24.75a100 100 0 10-146.5 0H14.92a2 2 0 100 4h15.75a100 100 0 00138.66 0H198a2 2 0 000-4zM4 100a96 96 0 11163.63 68.06H32.37A95.69 95.69 0 014 100zm96 96a95.57 95.57 0 01-63.35-23.94h126.7A95.57 95.57 0 01100 196z" /><path class="ba-graphics-gray80" d="M176 147.3V52.7a6.21 6.21 0 00-6.21-6.22H30.17A6.22 6.22 0 0024 52.7v94.6a6.22 6.22 0 006.22 6.22h139.52a6.21 6.21 0 006.26-6.22zM28 52.73a2.22 2.22 0 012.22-2.21h139.52a2.21 2.21 0 012.26 2.21v10.55H28zm0 94.57v-80h144v80a2.22 2.22 0 01-2.21 2.22H30.17A2.23 2.23 0 0128 147.3z" /><circle class="ba-graphics-gray80" cx="34.07" cy="56.82" r="2" /><circle class="ba-graphics-gray80" cx="41.21" cy="56.82" r="2" /><circle class="ba-graphics-gray80" cx="48.34" cy="56.82" r="2" /><path class="ba-graphics-gray80" d="M45.12 83.23l-3.78 3.89-4-3.92a2 2 0 10-2.81 2.85L40 91.38a2 2 0 001.4.58 2 2 0 001.42-.61L48 86a2 2 0 00-2.87-2.78zm17.05 19.3a2 2 0 00-2.79 2.87l3.89 3.78-3.92 4A2 2 0 0062.2 116l5.33-5.41a2 2 0 00.58-1.43 2 2 0 00-.61-1.41zm0 21.98a2 2 0 00-2.79 2.87l3.89 3.77-3.92 4a2 2 0 000 2.83 2 2 0 002.83 0l5.33-5.4a2 2 0 000-2.84z" /><rect class="ba-graphics-white" x="119.43" y="82.21" width="41.56" height="53.81" rx="2.26" /><path class="ba-graphics-gray40" d="M53.5 82.29h55v10h-55zm20.02 21.97h35v10h-35zm0 21.98h35v10h-35zm85.22-46.03h-37.05a4.26 4.26 0 00-4.26 4.26v49.29a4.26 4.26 0 004.26 4.26h37.05a4.27 4.27 0 004.26-4.26V84.47a4.27 4.27 0 00-4.26-4.26zm-20.53 26.91h-16.78v-9.44h16.78zm4-9.44H159v9.44h-16.79zm-20.78 13.44h16.78v9.43h-16.78zm20.78 0H159v9.43h-16.79zM159 84.47v9.21h-16.79v-9.47h16.53a.27.27 0 01.26.26zm-37.31-.26h16.52v9.47h-16.78v-9.21a.26.26 0 01.26-.26zm-.26 49.55v-9.21h16.78V134h-16.52a.26.26 0 01-.26-.24zm37.31.26h-16.53v-9.47H159v9.21a.27.27 0 01-.26.24z" /><rect class="ba-graphics-gray80" style="opacity:.1" x="124" y="43" width="34" height="34" rx="2" /><rect class="ba-graphics-highlight" x="124" y="39" width="34" height="34" rx="2" /><path class="ba-graphics-white" d="M138.47 63.7a2 2 0 01-1.41-.59l-5.22-5.22a2 2 0 012.83-2.83l3.8 3.81 9.34-9.34a2 2 0 012.82 2.83l-10.75 10.75a2 2 0 01-1.41.59z" /></symbol>'});c.a.add(o),t.a=o},"3865314c5959606874d4":function(t,r){t.exports=e},dfed42229fa8f56d383b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("2222c0da4e4dfccb89e7"));t.default=n.a}},["dfed42229fa8f56d383b"])}(r(137))},1550:function(e,t,r){"use strict";r.d(t,"a",function(){return j});var a,n=r(1),i=r.n(n),c=r(16),o=r(3),s=r(1551),l=r.n(s),u=r(242),p=r.n(u),h=r(106),g=r.n(h),d=r(156),m=r.n(d),f=r(93),b=r.n(f),y=r(17),S=r(2),E=r(5),v=r(1552);r(1211),r(1556);var O=1e4,j=Object(E.e)(function(e){return{moserPackage:e.moserPackage,packageInfo:e.packageInfo,isSmartsRunning:e.isSmartsRunning,isSmartsCancelled:e.isSmartsCancelled,isSmartsCompleted:e.isSmartsCompleted,isSmartsErrored:e.isSmartsErrored,isLoadingPackageData:e.isLoadingPackageData,isQuerySubjectExcluded:e.isQuerySubjectExcluded.bind(e),numTablesSelected:e.numTablesSelected,isRetrieveSampleDataChecked:e.isRetrieveSampleDataChecked,maxSampleRows:e.maxSampleRows,percentComplete:e.percentComplete,enrichmentErrors:e.enrichmentErrors,previousEnrichmentErrors:e.previousEnrichmentErrors,runSmarts:e.runSmarts,cancelSmarts:e.cancelSmarts,isCancellable:e.isCancellable,excludeAllQuerySubjects:e.excludeAllQuerySubjects,includeAllQuerySubjects:e.includeAllQuerySubjects,excludeQuerySubject:e.excludeQuerySubject,invertExcludedQuerySubjects:e.invertExcludedQuerySubjects,setRetrieveSampleData:e.setRetrieveSampleData,setMaxSampleRows:e.setMaxSampleRows,fetchSmartsTask:e.fetchSmartsTask,openDataErrorDialog:e.openDataErrorDialog,setManualSelectionActive:e.setManualSelectionActive,showNextView:e.showNextView,hasWarning:e.hasWarning}})(a=Object(c.observer)(a=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this)._interval=void 0,t._renderTable=function(e){return void 0===e&&(e=null),i.a.createElement("table",{style:{width:"100%"},className:"ba-mui-packageEnrichSmartsView__table"},i.a.createElement("tbody",null,i.a.createElement("tr",{className:"ba-mui-packageEnrichSmartsView__tableHeader"},i.a.createElement("th",null),i.a.createElement("th",{width:"40%"},Object(S.getString)("status")),i.a.createElement("th",{width:"40%"},Object(S.getString)("timestamp")),i.a.createElement("th",{width:"15%"})),e))},t._renderTableData=function(){var e=t.props,r=e.packageInfo,a=e.previousEnrichmentErrors,n=e.openDataErrorDialog,c=[];if(r.lastAnalysisCollection){var s=a.length?i.a.createElement(o.Button,{variant:"inline",icon:i.a.createElement(o.SVGIcon,{iconId:g.a.id,style:{fill:"orange"}}),onClick:function(){return n(a)},label:Object(S.getString)("packageEnrichDetails")}):i.a.createElement(o.SVGIcon,{iconId:p.a.id,style:{fill:"green"}});c.push({status:Object(S.getString)("packageEnrichLastSmartsApplied"),timestamp:r.lastAnalysisCollection,icon:s})}return r.lastOverrideUpdate&&c.push({status:Object(S.getString)("packageEnrichLastManualOverride"),timestamp:r.lastOverrideUpdate}),r.lastPublished&&c.push({status:Object(S.getString)("packageEnrichLastPublishDate"),timestamp:r.lastPublished}),c.sort(function(e,t){return e.timestamp>=t.timestamp?-1:1}),c.map(function(e){return i.a.createElement("tr",null,i.a.createElement("td",null),i.a.createElement("td",null,e.status),i.a.createElement("td",null,b.a.formatDateTime(e.timestamp,"medium",y.getTimeLocale())),i.a.createElement("td",null,e.icon))})},t._renderTree=function(){var e=t.props,r=e.moserPackage,a=e.excludeAllQuerySubjects,n=e.includeAllQuerySubjects,c=e.excludeQuerySubject,s=e.invertExcludedQuerySubjects,l=e.isQuerySubjectExcluded,u=e.numTablesSelected,p=e.isSmartsRunning,h=e.previousEnrichmentErrors,g=e.hasWarning;return i.a.createElement(o.Container,{className:"ba-mui-packageEnrichSmartsView__treeSection",height:"100%"},i.a.createElement(o.Container,{height:"100%"},i.a.createElement(v.a,{module:r,onSelect:function(e,t){return c(e,!t)},onClear:a,onSelectAll:n,onInvert:s,numSelected:u,isSelected:function(e){return!l(e)},disabled:p,previousEnrichmentErrors:h,hasWarning:g})))},t._maxSampleRowsOnValueAccept=function(e,r){var a=t.props.setMaxSampleRows;Number(e)===Number(r)&&a(e)},t._renderSampleData=function(){var e=t.props,r=e.isSmartsRunning,a=e.isRetrieveSampleDataChecked,n=e.setRetrieveSampleData,c=e.maxSampleRows;return i.a.createElement(o.FlexLayout,{direction:"row",justifyContent:"center"},i.a.createElement(o.FlexItem,null,i.a.createElement(o.Checkbox,{disabled:r,checked:a,onChange:n,label:Object(S.getString)("packageEnrichOptionSampleData",{value:O})})),i.a.createElement(o.FlexItem,{gutter:[0,0,0,1]},i.a.createElement(o.NumberInput,{onValueAccept:t._maxSampleRowsOnValueAccept,value:c,disabled:r||!a,min:0,max:O,scale:0})))},t._switchView=function(){var e=t.props,r=e.setManualSelectionActive,a=e.showNextView;r(),a()},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.isSmartsRunning&&this._runFetchSmartsInterval()},r.componentWillReceiveProps=function(e){e.isSmartsRunning&&!this.props.isSmartsRunning?(this._stopFetchSmartsInterval(),this._runFetchSmartsInterval()):!e.isSmartsRunning&&this.props.isSmartsRunning&&this._stopFetchSmartsInterval()},r.componentWillUnmount=function(){this._stopFetchSmartsInterval()},r._runFetchSmartsInterval=function(){this._interval=setInterval(this.props.fetchSmartsTask,2e3)},r._stopFetchSmartsInterval=function(){clearInterval(this._interval)},r.render=function(){var e,t=this.props,r=t.cancelSmarts,a=t.isLoadingPackageData,n=t.isSmartsRunning,c=t.isSmartsCancelled,s=t.isSmartsCompleted,u=t.isSmartsErrored,h=t.percentComplete,d=t.enrichmentErrors,f=t.openDataErrorDialog,b=t.isCancellable,y=t.runSmarts,E=t.numTablesSelected;return c?e=e=i.a.createElement(i.a.Fragment,null,i.a.createElement(o.SVGIcon,{iconId:m.a.id,style:{fill:"red"}}),i.a.createElement(o.HSpacer,{size:1}),i.a.createElement(o.Label,{label:Object(S.getString)("packageEnrichCancelled")})):s?e=d.length?i.a.createElement(i.a.Fragment,null,Object(S.getString)("packageEnrichCompletedWithErrors"),i.a.createElement(o.HSpacer,{size:1}),i.a.createElement(o.SVGIcon,{iconId:g.a.id,style:{fill:"orange"}}),Object(S.getString)(" packageEnrichCompletedWithErrorsDes")):i.a.createElement(i.a.Fragment,null,i.a.createElement(o.SVGIcon,{iconId:p.a.id,style:{fill:"green"}}),i.a.createElement(o.HSpacer,{size:1}),i.a.createElement(o.Label,{label:Object(S.getString)("packageEnrichCompleted")})):u&&(e=d.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(o.Button,{variant:"inline",icon:i.a.createElement(o.SVGIcon,{iconId:g.a.id,style:{fill:"orange"}}),onClick:function(){return f(d)},label:Object(S.getString)("packageEnrichError")})):i.a.createElement(i.a.Fragment,null,i.a.createElement(o.SVGIcon,{iconId:g.a.id,style:{fill:"orange"}}),i.a.createElement(o.HSpacer,{size:1}),i.a.createElement(o.Label,{label:Object(S.getString)("packageEnrichError")}))),i.a.createElement(o.FlexLayout,{direction:"column"},i.a.createElement(o.FlexItem,null,i.a.createElement(o.Label,{label:Object(S.getString)("packageEnrichSmartSubHeader")})),i.a.createElement(o.FlexLayout,{direction:"row",height:"600px",className:"ba-mui-packageEnrichSmartsView"},i.a.createElement(o.FlexItem,{minWidth:300},i.a.createElement(o.Container,{resizeMinConstraintsX:300,resizeMaxConstraintsX:500,height:"100%",width:"100%",resizable:!0},i.a.createElement(o.FlexItem,{height:"100%",basis:"350px",margin:[0,0,0,0]},i.a.createElement(o.FlexLayout,{height:"100%",direction:"column"},i.a.createElement(o.FlexItem,{grow:!0},this._renderTree()))))),i.a.createElement(o.FlexLayout,{height:"100%",minWidth:300,width:"100%"},i.a.createElement(o.FlexItem,{grow:"1"},i.a.createElement(o.FlexLayout,{alignItems:"center",direction:"column",height:"320px",justifyContent:"center"},i.a.createElement(o.FlexItem,{className:"ba-mui-packageEnrichSmartsView__iconPlaceholder"},n?i.a.createElement(o.ProgressIndicator,{progress:h,size:"large",determinate:!0,variant:"circle"}):i.a.createElement(o.SVGIcon,{iconId:l.a.id,size:"xlarge"})),n&&i.a.createElement(o.FlexItem,{textAlign:"center",gutter:[3,0,0,0]},i.a.createElement(o.Link,{disabled:!b,onClick:r,intent:"primary",variant:"frame"},Object(S.getString)("cancel"))),c||u||s?i.a.createElement(o.FlexLayout,{direction:"column",width:"100%",justifyContent:"center",alignItems:"center"},i.a.createElement(o.FlexItem,{gutter:[3,0],textAlign:"center"},e)):i.a.createElement(o.FlexItem,{width:"300px",gutter:[3,0],textAlign:"center"},i.a.createElement(o.Container,null,Object(S.getString)(n?"packageEnrichInProgress":"packageEnrichRun")),i.a.createElement(o.Container,null,Object(S.getString)(n?"packageEnrichInProgressDesc":"packageEnrichRunDesc"))),u&&i.a.createElement(o.FlexItem,{gutter:[1,0,2,0],textAlign:"center"},i.a.createElement(o.Container,null,i.a.createElement(o.SVGIcon,{iconId:g.a.id,style:{fill:"orange","padding-right":"10px","padding-bottom":"3px"}}),Object(S.getString)("packageEnrichViewSwitch")),i.a.createElement(o.Container,null,Object(S.getString)("packageEnrichViewSwitchDesc")),i.a.createElement(o.Container,null,i.a.createElement(o.Link,{className:"",onClick:this._switchView,intent:"primary",variant:"frame"},Object(S.getString)("packageEnrichViewSwitchLink")))),i.a.createElement(o.FlexItem,{textAlign:"center"},!n&&this._renderSampleData()),i.a.createElement(o.FlexItem,{gutter:[2,0,1,1]},!n&&i.a.createElement(o.Button,{intent:"primary",label:Object(S.getString)("run"),"aria-label":Object(S.getString)("run"),onClick:y,disabled:0===E}))),i.a.createElement(o.Container,{gutter:[6,4,0,4]},this._renderTable(a?null:this._renderTableData()),a&&i.a.createElement(o.FlexLayout,{justifyContent:"center"},i.a.createElement(o.FlexItem,null,i.a.createElement(o.ProgressIndicator,{size:"large"}))))))))},t}(n.Component))||a)||a},1551:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([100],{"2eb9ac76e4a765bf3f1f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("657b84f3ebdba935323c"));t.default=n.a},"3865314c5959606874d4":function(t,r){t.exports=e},"657b84f3ebdba935323c":function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"enrich-package_96_v7",use:"enrich-package_96_v7-usage",viewBox:"0 0 96 96",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" id="enrich-package_96_v7"><circle class="ba-graphics-gray1" cx="48" cy="48" r="48" /><path class="ba-graphics-gray80" d="M47.36 68.16A21 21 0 0130.08 59a20.77 20.77 0 01-3.68-11.8V30.56l3.68 3.68 4.48 4.48 4.16-4.16-8.64-8.64-6.24-6.24L9 34.56l4.32 4.32 8.16-8.16v16.8a26.43 26.43 0 0026.2 26.24 25 25 0 0010.72-2.4l-4.48-4.16a24.11 24.11 0 01-6.56.96zM83.2 57.28L75 65.44v-16.8A26.43 26.43 0 0048.8 22.4a25 25 0 00-10.72 2.4l4.16 4.2a18.66 18.66 0 016.56-1 21 21 0 0117.6 9.65A20.72 20.72 0 0169.76 49v16.8l-3.36-3.4-4.8-4.8-4.16 4.16 9 9 5.92 5.92L87.2 61.76z" /><path class="ba-graphics-highlight" d="M56.81 51.67l.12-.35.12-.36h4.15V45.2h-4.3l-.27-.69-.15-.33-.17-.33 2.97-2.97-4.16-4.16-3.17 3.03-.49-.21-.5-.18v-4.72h-5.92v4.72l-.31.1-.59.25-.29.14-3.29-3.29-4.16 4.16 3.24 3.24-.15.3-.14.31-.25.63h-4.3v5.76h4.15l.13.39.14.38.15.37.17.36-2.98 2.98 4.16 4.16 2.93-2.93.37.19.39.17.39.15.4.14v4.04h5.76v-4.1l.39-.14.38-.15.37-.17.36-.18 2.98 2.98 4.16-4.16-3.09-3.09.15-.34.15-.34z" /><circle class="ba-graphics-gray1" cx="48" cy="48" r="5.56" /></symbol>'});c.a.add(o),t.a=o}},["2eb9ac76e4a765bf3f1f"])}(r(137))},1552:function(e,t,r){"use strict";r.d(t,"a",function(){return S});var a,n,i,c=r(1),o=r.n(c),s=r(16),l=r(20),u=r(3),p=r(1553),h=r.n(p),g=r(0),d=r.n(g),m=r(2),f=r(8),b=r(14),y=(r(1554),r(758));var S=Object(s.observer)((i=n=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return(t=e.call.apply(e,[this].concat(a))||this).state={filter:null,isAllSelected:!0,open:!1,filterSelected:!1,warningFilterSelected:!1},t._defaultExpanded=void 0,t._openFlyout=function(e){t.setState({open:e})},t._filteredQuerySubjects=null,t._filteButtonRef=void 0,t._getQuerySubjects=function(){var e=t.state.filter,r=t.props.module.getQuerySubject();return e?r.filter(function(t){return t.getLabel().toLowerCase().indexOf(e.toLowerCase())>-1}):r},t._filter=function(e){var r=e.getObjectType();if(r===d.a.MoserObjectTypes.FOLDER_TYPE&&t._hasQS(e))return!0;if(r===d.a.MoserObjectTypes.QUERY_SUBJECT){var a=t.props.hasWarning,n=t.state,i=n.warningFilterSelected,c=n.filterSelected,o=!0;if(i&&c?o=a(e)&&t._isSelected(e):i?o=a(e):c&&(o=t._isSelected(e)),o)return!0}},t._getDefaultExpanded=function(){return t._defaultExpanded=t._defaultExpanded||Object(b.r)(Object(b.l)(t.props.module)).reduce(function(e,t){return t.getObjectType()===d.a.MoserObjectTypes.FOLDER_TYPE&&(e[Object(f.getUniqueId)(t)]=!0),e},{})},t._hasQS=function(e){return Object(b.r)(e).some(t._filter)},t._getFolderChildren=function(e){return Object(b.r)(e).filter(t._filter)},t._isSelected=function(e){return e.getObjectType()===d.a.MoserObjectTypes.QUERY_SUBJECT?t.props.isSelected(e):t._getFolderChildren(e).every(function(e){return t._isSelected(e)})},t._isIndeterminate=function(e){return e.getObjectType()===d.a.MoserObjectTypes.FOLDER_TYPE&&(!t._isSelected(e)&&t._getFolderChildren(e).some(function(e){return t._isSelected(e)}))},t._onSelect=function(e,r){if(e.getObjectType()===d.a.MoserObjectTypes.QUERY_SUBJECT)return t.props.onSelect(e,r);Object(b.r)(e).forEach(function(e){return t._onSelect(e,r)})},t._onChange=function(e){var r=t.props,a=r.onClear,n=r.onSelectAll;e?n():a(),t.setState({isAllSelected:e})},t._onFilterSelectedChange=function(e){t.setState({filterSelected:e})},t._onFilterWarningChange=function(e){t.setState({warningFilterSelected:e})},t._renderTablePickerControls=function(){var e=t.props,r=e.module,a=e.disabled,n=e.numSelected,i=e.onInvert;return o.a.createElement(u.FlexLayout,{direction:"row",justifyContent:"space-between"},o.a.createElement(u.FlexItem,{gutter:[1,1,1,3],alignSelf:"center"},Object(m.getString)("numSelected",{numSelected:n,total:r.getQuerySubject().length})),o.a.createElement(u.FlexItem,{gutter:[.5,1,0,0],alignSelf:"center"},o.a.createElement(u.Button,{disabled:a,variant:"inline",onClick:i,label:Object(m.getString)("invert"),"aria-label":Object(m.getString)("invert"),intent:"primary"})),o.a.createElement(u.FlexItem,{alignSelf:"center",gutter:[0,3,0,0]},o.a.createElement(u.Checkbox,{disabled:a,onChange:t._onChange,checked:n===r.getQuerySubject().length&&t.state.isAllSelected,indeterminate:n>0&&n<r.getQuerySubject().length})))},t._renderFilterControls=function(){var e=t.props.disabled;return o.a.createElement(u.FlexLayout,{width:"100%",justifyContent:"space-between"},o.a.createElement(u.FlexItem,{alignSelf:"center",gutter:[1]},Object(m.getString)("selectTables")),o.a.createElement(u.FlexItem,{alignSelf:"center",gutter:[1,3,1,0]},o.a.createElement(u.Tooltip,{title:Object(m.getString)("filterBy"),"aria-label":Object(m.getString)("filterBy"),orient:"bottom"},o.a.createElement(u.Button,{disabled:e,variant:"inline",ref:function(e){return t._filteButtonRef=e},onClick:function(){return t._openFlyout(!t.state.open)},icon:h.a.id})),t.state.open&&o.a.createElement(u.Flyout,{onClose:function(){return t._openFlyout(!1)},triggerNode:Object(l.findDOMNode)(t._filteButtonRef),domNodeToAttachTo:document.body},t.getFlyoutContent())))},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.getFlyoutContent=function(){return o.a.createElement(u.FlexLayout,{direction:"column",width:"100%",justifyContent:"space-around"},o.a.createElement(u.FlexItem,{gutter:[1,1]},o.a.createElement(u.Checkbox,{label:Object(m.getString)("selectedItmes"),"aria-label":Object(m.getString)("selectedItmes"),onChange:this._onFilterSelectedChange,checked:this.state.filterSelected})),o.a.createElement(u.FlexItem,{gutter:[1,1]},o.a.createElement(u.Checkbox,{label:Object(m.getString)("itemsWithIssues"),"aria-label":Object(m.getString)("itemsWithIssues"),onChange:this._onFilterWarningChange,checked:this.state.warningFilterSelected})))},r.render=function(){var e=this,t=this.props,r=t.module,a=t.disabled,n=t.isDisabled,i=t.hasWarning;return this._filteredQuerySubjects=this._getQuerySubjects(),o.a.createElement(u.FlexLayout,{direction:"column",height:"100%"},o.a.createElement(u.FlexLayout,{direction:"column",height:"100%"},o.a.createElement(u.FlexItem,null,this._renderFilterControls()),o.a.createElement(u.FlexItem,null,o.a.createElement(u.SearchInput,{fullWidth:!0,delay:100,placeholder:Object(m.getString)("search_box_default_text"),value:this.state.filter,onChange:function(t){return e.setState({filter:t})}})),this._renderTablePickerControls(),o.a.createElement(u.Separator,{className:"ba-mui-table-picker__horizontal-separator",hMargin:0}),o.a.createElement(u.FlexItem,{grow:!0},o.a.createElement(y.a,{data:r,filter:this.state.filter,isSelected:this._isSelected,isIndeterminate:this._isIndeterminate,isDisabled:function(){return a||n.apply(void 0,arguments)},onSelect:this._onSelect,moserObjectFilter:this._filter,showRootNodes:!1,defaultExpandedNodes:this._getDefaultExpanded(),hasWarning:i}))))},t}(c.Component),n.defaultProps={disabled:!1,onSelect:function(){},isSelected:function(){return!1},isDisabled:function(){return!1},hasWarning:function(){return!1}},a=i))||a},1553:function(e,t,r){"undefined"!=typeof self&&self,e.exports=function(e){return webpackJsonPBaGraphics([1227],{"24a8fdbab5ca12610187":function(e,t,r){"use strict";var a=r("9689a9c94ae38b47fa2c"),n=r.n(a),i=r("9ce58a7deea14f49ef01"),c=r.n(i),o=new n.a({id:"filter_32_v7",use:"filter_32_v7-usage",viewBox:"0 0 32 32",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="filter_32_v7"><path d="M18 28h-4c-1.1 0-2-.9-2-2v-7.6L4.6 11c-.4-.4-.6-.9-.6-1.4V6c0-1.1.9-2 2-2h20c1.1 0 2 .9 2 2v3.6c0 .5-.2 1-.6 1.4L20 18.4V26c0 1.1-.9 2-2 2zM6 6v3.6l8 8V26h4v-8.4l8-8V6H6z" /></symbol>'});c.a.add(o),t.a=o},"3865314c5959606874d4":function(t,r){t.exports=e},"3e425b7b4467f1ada350":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3865314c5959606874d4"),n=(r.n(a),r("24a8fdbab5ca12610187"));t.default=n.a}},["3e425b7b4467f1ada350"])}(r(15))},1554:function(e,t,r){var a=r(1555);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(36)(a,n);a.locals&&(e.exports=a.locals)},1555:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,".ba-mui-table-picker__listItem.is-disabled,.ba-mui-table-picker__listItem:hover.is-disabled{opacity:.5}.ba-mui-table-picker__horizontal-separator{border-color:#eaeaea}",""])},1556:function(e,t,r){var a=r(1557);"string"==typeof a&&(a=[[e.i,a,""]]);var n={hmr:!0,transform:void 0};r(36)(a,n);a.locals&&(e.exports=a.locals)},1557:function(e,t,r){(e.exports=r(32)(void 0)).push([e.i,".ba-mui-packageEnrichSmartsView__tableHeader{border-bottom:2px solid}.ba-mui-packageEnrichSmartsView__tableHeader th{padding-bottom:8px}.ba-mui-packageEnrichSmartsView__table td{padding:8px 8px 8px 0;border-bottom:1px solid;border-color:#eaeaea}.ba-mui-packageEnrichSmartsView__treeSection{border:1px solid;border-color:#eaeaea}.ba-mui-packageEnrichSmartsView__iconPlaceholder{padding-top:80px}.ba-mui-packageEnrichSmartsView{border:1px solid #eaeaea}",""])},1558:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var a=r(1),n=r.n(a),i=r(3),c=r(2);var o=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props.onConfirmation;return n.a.createElement(i.FlexLayout,{fullHeight:!0,direction:"column",justifyContent:"center"},n.a.createElement(i.FlexItem,{gutter:[0,0,2,0]},n.a.createElement("strong",null,Object(c.getString)("packageEnrichConfirmationTitle"))),n.a.createElement(i.FlexItem,{width:"100%"},n.a.createElement(i.FlexLayout,{direction:"column"},n.a.createElement(i.FlexItem,null,Object(c.getString)("packageEnrichWarning")),n.a.createElement(i.FlexItem,{gutter:[3,0,0,0]},Object(c.getString)("customBinGroupNumberChangeWarningProceed")),n.a.createElement(i.FlexItem,null,n.a.createElement(i.FlexLayout,null,n.a.createElement(i.FlexItem,{gutter:[2,1,0,0]},n.a.createElement(i.Button,{intent:"primary",variant:"frame",onClick:function(){e(!0)}},Object(c.getString)("leave"))),n.a.createElement(i.FlexItem,{gutter:[2,1,0,0]},n.a.createElement(i.Button,{intent:"primary",onClick:function(){e(!1)}},Object(c.getString)("cancel"))))))))},t}(a.Component)},700:function(e,t,r){"use strict";r.r(t);var a=r(1425);t.default={"components/PackageEnrichDialog":a}}}]);
- //# sourceMappingURL=pkgEnrich.js.map
|